OSDN Git Service

2011-05-09 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-09  Richard Guenther  <rguenther@suse.de>
2
3         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
4         for diagnostics.
5         (lto_symtab_merge): Likewise.  Do not register types here.
6         (lto_symtab_merge_decls_2): Likewise.
7         (lto_symtab_merge_decls_1): Likewise.
8         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
9         * gimple.c (enum gtc_mode): Declare.
10         (gimple_types_compatible_p): Make static.
11
12 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13
14         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
15         temporary register to match Pmode.
16
17 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
18
19         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
20         and *vec_concatv4si_1_avx.
21
22 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
23
24         PR rtl-optimization/48927
25         * ira-conflicts.c (commutative_constraint_p): Use
26         recog_data.alternative_enabled_p to disable alternatives where
27         "enabled" attribute is false.
28         (get_dup_num): Ditto.
29         * ira-lives.c (single_reg_class): Ditto.
30         (ira_implicitly_set_insn_hard_regs): Ditto.
31
32 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
33
34         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
35         (dataflow_set_preserve_mem_locs): Likewise.
36
37 2011-05-09  Philipp Thomas  <pth@suse.de>
38
39         * config/mep/mep.c (mep_validate_vliw): Syntax description
40         should not be translated.
41
42 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
43
44         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
45         * config/mips/mips-tables.opt: New file (generated).
46         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
47         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
48         MIPS_ARCH_OPTION_NATIVE): Define.
49         * config/mips/mips.c (mips_cpu_info_table): Move contents to
50         mips-cpus.def.
51         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
52         mips_parse_cpu): Remove.
53         (mips_cpu_info_from_opt, mips_default_arch): New.
54         (mips_handle_option): Don't assert that global structures are in
55         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
56         (mips_option_override): Use new variables and functions to set
57         state of these options.  Use strcmp to check for individual CPU names.
58         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
59         definition.
60         * config/mips/mips.opt (march=): Use ToLower and Enum.
61         (mips): Use ToLower, Enum and Var.
62         (mtune=): Use ToLower and Enum.
63         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
64
65 2011-05-08  Jan Hubicka  <jh@suse.cz>
66
67         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
68         Arrange type pairs to be UID ordered.
69         (gimple_lookup_type_leader): Make inline.
70
71 2011-05-09  Nick Clifton  <nickc@redhat.com>
72
73         PR target/48899
74         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
75         PROCESSOR_DEFAULT.
76
77         PR target/48897
78         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
79         variable 's'.
80
81 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
82
83         * combine.c (simplify_comparison): Abstract out parts into...
84         (simplify_compare_const): ... new function.
85         (try_combine): Generalize parallel arithmetic/compare combining
86         to call simplify_compare_const() and CANONICALIZE_COMPARE().
87
88 2011-05-08  Jan Hubicka  <jh@suse.cz>
89
90         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
91         (cgraph_create_virtual_clone): Call hooks once virtual clone
92         is finished.
93         * cgraph.h (cgraph_clone_node): Update prototype.
94         * ipa-cp.c (ipcp_estimate_growth): Use
95         estimate_ipcp_clone_size_and_time.
96         * ipa-inline-transform.c (clone_inlined_nodes): Update.
97         * lto-cgraph.c (input_node): Update.
98         * ipa-inline.c (recursive_inlining): Update.
99         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
100         (evaluate_conditions_for_known_args): Break out from ...
101         (evaluate_conditions_for_edge): ... here.
102         (evaluate_conditions_for_ipcp_clone): New function.
103         (inline_node_duplication_hook): Update clone summary based
104         on parameter map.
105         (estimate_callee_size_and_time): Rename to ...
106         (estimate_node_size_and_time): take NODE instead of EDGE;
107         take POSSIBLE_TRUTHS as argument.
108         (estimate_callee_size_and_time): Update.
109         (estimate_ipcp_clone_size_and_time): New function.
110         (do_estimate_edge_time): Update.
111
112 2011-05-08  Richard Guenther  <rguenther@suse.de>
113
114         PR middle-end/48908
115         PR middle-end/48905
116         * expmed.c (expand_shift_1): Compute adjusted constant shift
117         amount manually.
118
119 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
120
121         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
122
123 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
124
125         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
126
127 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
128
129         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
130
131 2011-05-07  Jan Hubicka  <jh@suse.cz>
132
133         * ipa-inline-transform.c (inline_call): Account when program size
134         decreases.
135         * ipa-inline.c (relative_time_benefit): New function.
136         (edge_badness): Reorganize to be power 2 based; fix thinko when
137         computing badness for negative growth; update comments to match
138         reality; better dumps.
139
140 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
141
142         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
143         type to bool and adjust comment.
144         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
145         (fold_mathfn_compare): Remove calls to global_bindings_p.
146         (fold_inf_compare): Likewise.
147         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
148         * c-tree.h (global_bindings_p): Adjust prototype.
149         * c-decl.c (global_bindings_p): Return bool and simplify.
150
151 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
152
153         PR tree-optimization/48837
154         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
155         when accumulator transformation is performed.
156
157 2011-05-06  Jan Hubicka  <jh@suse.cz>
158
159         * i386.h (ix86_tune_indices): Add
160         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
161         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
162         * i386.c (initial_ix86_tune_features): Add
163         X86_SOFTARE_PREFETCHING_BENEFICIAL.
164         (software_prefetching_beneficial_p): Remove predicate.
165         (ix86_option_override_internal): Use new macro.
166
167 2011-05-06  Jan Hubicka  <jh@suse.cz>
168
169         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
170
171 2011-05-06  Jan Hubicka  <jh@suse.cz>
172
173         * cgraph.c (cgraph_add_thunk): Create real function node instead
174         of alias node; finalize it and mark needed/reachale; arrange visibility
175         to be right and add it into the corresponding same comdat group list.
176         (dump_cgraph_node): Dump thunks.
177         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
178         cgraph_function_with_gimple_body_p,
179         cgraph_first_function_with_gimple_body,
180         cgraph_next_function_with_gimple_body): New functions.
181         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
182         New macros.
183         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
184         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
185         * cgraphunit.c (cgraph_finalize_function): Only look into possible
186         devirtualization when optimizing.
187         (verify_cgraph_node): Verify thunks.
188         (cgraph_analyze_function): Analyze thunks.
189         (cgraph_mark_functions_to_output): Output thunks only in combination
190         with function they are assigned to.
191         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
192         alias into normal node.
193         (assemble_thunks): New functoin.
194         (cgraph_expand_function): Use it.
195         * lto-cgraph.c (lto_output_node): Stream thunks.
196         (input_overwrite_node): Stream in thunks.
197         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
198         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
199         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
200         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
201         (inline_analyze_function): Do not care about thunk jump functions.
202         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
203         * ipa-prop.c (ipa_prop_write_jump_functions): Use
204         cgraph_function_with_gimple_body_p.
205         * passes.c (do_per_function_toporder): Use
206         cgraph_function_with_gimple_body_p.
207         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
208         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
209         (function_called_by_processed_nodes_p): Likewise.
210
211 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
212
213         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
214         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
215         entries.
216         (mabi=): Replace with separate entries for mabi=altivec,
217         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
218         mabi=ieeelongdouble and mabi=ibmlongdouble.
219         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
220         check for -mabi=spe without SPE ABI support here.
221         (rs6000_handle_option): Replace OPT_mabi_ handling with
222         OPT_mabi_altivec and OPT_mabi_spe handling.
223
224 2011-05-06  Cary Coutant  <ccoutant@google.com>
225
226         * dwarf2out.c (contains_subprogram_definition): New function.
227         (should_move_die_to_comdat): Call it.
228
229 2011-05-06  Jeff Law  <law@redhat.com>
230
231         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
232         remove_ctrl_stmt_and_useless_edges.
233         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
234         (fixup_template_block, thread_single_edge): Likewise.
235         (mark_threaded_blocks): Use THREAD_TARGET.
236
237 2011-05-06  Alan Modra  <amodra@gmail.com>
238
239         PR target/48900
240         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
241         const0_rtx as the arg to the dummy __tls_get_addr libcall.
242
243 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
244
245         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
246         constraint modifier to "r".
247
248 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
249
250         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
251         fall through for OPT_mcmodel_.
252
253 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
254
255         * config/s390/s390.c (s390_asm_trampoline_template): Comment
256         instruction sizes.
257         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
258
259 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
260
261         PR target/47930
262         * config/arm/arm.opt (marm): Document it.
263         (mthumb): Reject negative variant.
264
265 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
266
267         PR target/48898
268         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
269         Fix typo in "ccvt" variable name.
270
271 2011-05-06  Tristan Gingold  <gingold@adacore.com>
272
273         PR target/48895
274         * config/vms/vms-ar.c (main): Remove cwd variable.
275
276 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
277
278         PR debug/48902
279         * var-tracking.c (prepare_call_arguments): Move else before #endif.
280
281 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
282
283         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
284         * gimplify.c (gimplify_switch_expr): Likewise.
285         * omp-low.c (expand_omp_sections): Likewise.
286         * tree-eh.c (lower_try_finally_switch): Likewise.
287         (lower_eh_dispatch): Likewise.
288         * tree.h (build_case_label): Declare.
289         * tree.c (build_case_label): Define.
290
291 2011-05-05  Jason Merrill  <jason@redhat.com>
292
293         PR c++/40975
294         * tree-inline.c (copy_tree_r): Use copy_statement_list.
295         (copy_statement_list): Don't recurse.
296         * stor-layout.c (copy_self_referential_tree_r): Don't allow
297         STATEMENT_LIST.
298
299 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
300
301         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
302         through from -mfpu= handling.
303         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
304
305 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
306
307         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
308         POST_MODIFY.
309
310 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
311
312         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
313         for 11.31.
314         (hppa[12]*-*-hpux11*): Ditto.
315         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
316         * config/ia64/hpux-unix2003.h: New.
317         * config/pa/pa-hpux1131.opt: New.
318         * config/pa/pa-hpux1131.h: New.
319         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
320         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
321         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
322
323 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
324
325         PR debug/48853
326         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
327         instead of mode as 3rd argument to recursive call.
328         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
329         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
330         VOIDmode.
331         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
332         don't give up if mode is Pmode and mem_mode is not VOIDmode.
333         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
334         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
335
336 2011-05-05  Julian Brown  <julian@codesourcery.com>
337
338         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
339         parenthesis in D-register case.
340
341 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
342
343         * opt-functions.awk (var_type_struct): Handle Enum options.
344         * optc-gen.awk: Don't check range of variables of character type.
345         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
346         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
347         rs6000_sdata_name, rs6000_explicit_options): Remove.
348         (rs6000_option_override_internal): Check for -malign-power here.
349         Use global_options_set instead of rs6000_explicit_options.
350         (rs6000_parse_fpu_option): Remove.
351         (rs6000_handle_option): Access variables via opts and opts_set
352         pointers.  Use error_at and warning_at.  Add fall-through
353         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
354         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
355         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
356         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
357         here.  Don't use rs6000_parse_fpu_option.
358         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
359         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
360         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
361         (mrecip=): Use Var.
362         (mspe): Use Var and Save.
363         (mtraceback=): Use Enum and Var.
364         (rs6000_traceback_type): New Enum and EnumValue entries.
365         (mfloat-gprs=): Use Enum, Var and Save.
366         (rs6000_float_gprs): New Enum and EnumValue entries.
367         (mlong-double-): use Var and Save.
368         (msched-costly-dep=, minsert-sched-nops=): Use Var.
369         (malign-): Use Enum and Var.
370         (rs6000_alignment_flags): New Enum and EnumValue entries.
371         (mfpu=): Use Enum.
372         (fpu_type_t): New Enum and EnumValue entries.
373         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
374         global_options_set instead of rs6000_explicit_options.
375         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
376         global_options_set instead of rs6000_explicit_options.
377         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
378         global_options_set instead of rs6000_explicit_options.
379         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
380         global_options_set instead of rs6000_explicit_options.
381         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
382         global_options_set instead of rs6000_explicit_options.
383         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
384         global_options_set instead of rs6000_explicit_options.
385         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
386         definition.
387         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
388         global_options_set instead of rs6000_explicit_options.
389         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
390         (rs6000_cmodel): New Enum and EnumValue entries.
391         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
392         global_options_set instead of rs6000_explicit_options.
393         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
394         (mtls-size=): Use Enum and Var.
395         (rs6000_tls_size): New Enum and EnumValue entries.
396
397 2011-05-05  Michael Matz  <matz@suse.de>
398
399         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
400         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
401         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
402         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
403         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
404         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
405         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
406         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
407         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
408         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
409         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
410         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
411         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
412         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
413         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
414         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
415
416 2011-05-05  Richard Guenther  <rguenther@suse.de>
417
418         * expmed.c (expand_variable_shift): Rename to ...
419         (expand_shift_1): ... this.  Take an expanded shift amount.
420         For rotates recurse directly not building trees for the shift amount.
421         (expand_variable_shift): Wrap around expand_shift_1.
422         (expand_shift): Adjust.
423
424 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
425
426         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
427
428 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
429
430         * tree.h (get_pending_sizes): Remove prototype.
431         (put_pending_size): Likewise.
432         (put_pending_sizes): Likewise.
433         * stor-layout.c (pending_sizes): Delete.
434         (get_pending_sizes): Likewise.
435         (put_pending_size): Likewise.
436         (put_pending_sizes): Likewise.
437         (variable_size): Do not call put_pending_size and tidy up.
438         * function.h (struct function): Remove dont_save_pending_sizes_p.
439         * lto-streamer-in.c (input_function): Do not stream it.
440         * lto-streamer-out.c (output_function): Likewise.
441         * tree-inline.c (initialize_cfun): Do not copy it.
442         * c-decl.c (store_parm_decls): Do not set it.
443         * omp-low.c (create_task_copyfn): Likewise.
444         * tree-optimize.c (tree_rest_of_compilation): Likewise.
445
446 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
447
448         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
449         conditions.
450         (*movdf_internal): Ditto.
451         (*movdf_internal_nointeger): Ditto.
452         (*movsf_internal): Ditto.
453
454 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
455
456         * c-decl.c (finish_decl): Don't call get_pending_sizes.
457         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
458         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
459         (c_variable_size): Remove.
460         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
461         call put_pending_sizes.
462         (get_parm_info): Add parameter expr.  Use it to set
463         arg_info->pending_sizes.
464         (store_parm_decls): Use arg_info->pending_sizes instead or calling
465         get_pending_sizes.
466         * c-parser.c (c_parser_parms_declarator): Update call to
467         c_parser_parms_list_declarator.
468         (c_parser_parms_list_declarator): Take parameter expr.  Update
469         call to push_parm_decl.  Update recursive call.  Don't call
470         get_pending_sizes.  Update calls to get_parm_info.
471         (c_parser_objc_method_definition): Update calls to
472         c_parser_objc_method_decl and objc_start_method_definition.
473         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
474         (c_parser_objc_method_decl): Add parameter expr.  Update call to
475         grokparm.
476         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
477         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
478         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
479
480 2011-05-05  Michael Hope  <michael.hope@linaro.org>
481
482         PR pch/45979
483         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
484         __ARM_EABI__ hosts.
485
486 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
487
488         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
489         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
490         (spu_output_mi_thunk): New function.
491
492 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
493
494         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
495         targetm.asm_out.print_operand.
496         * config/sol2.c: Include target.h.
497
498 2011-05-04  Jan Hubicka  <jh@suse.cz>
499
500         * ipa-inline.c (reset_edge_caches): New function.
501         (update_caller_keys): Add check_inlinablity_for; do not
502         reset edge caches; remove now unnecesary loop.
503         (update_callee_keys): Add comments; reset node_growth_cache of callee.
504         (update_all_callee_keys): Likewise.
505         (inline_small_functions): Sanity check cache; update code
506         recomputing it.
507
508 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
509
510         PR rtl-optimization/47612
511         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
512         as the last insn of the sequence to be moved.
513
514 2011-05-04  Tobias Burnus  <burnus@net-b.de>
515
516         PR fortran/48864
517         * doc/invoke.texi (Ofast): Document that it
518         enables Fortran's -fno-protect-parens.
519
520 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
521
522         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
523
524 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
525
526         * stor-layout.c (variable_size): Do not issue errors.
527
528 2011-05-04  Richard Guenther  <rguenther@suse.de>
529
530         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
531         for array-ref indices.
532         (tree_coverage_counter_addr): Likewise.
533         (build_fn_info_type): Use size_int for index types.
534         (build_gcov_info): Likewise.
535
536 2011-05-04  Richard Guenther  <rguenther@suse.de>
537
538         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
539         to build_int_cst.
540         * c-typeck.c (really_start_incremental_init): Use bitsize_int
541         for constructor indices.
542         (push_init_level): Likewise.
543
544 2011-05-04  Richard Guenther  <rguenther@suse.de>
545
546         * explow.c (promote_mode): Move variable declarations before code.
547
548 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
549
550         * tree.h (build_function_type_array): Declare.
551         (build_varargs_function_type_array): Declare.
552         (build_function_type_vec, build_varargs_function_type_vec): Define.
553         * tree.c (build_function_type_array_1): New function.
554         (build_function_type_array): New function.
555         (build_varargs_function_type_array): New function.
556
557 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
558
559         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
560         before setting STMT_VINFO_TYPE.
561
562 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
563
564         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
565         instead of spu_pass_by_reference.
566
567 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
568
569         * calls.c (emit_library_call_value_1): Invoke
570         promote_function_mode hook on libcall arguments.
571         * explow.c (promote_function_mode, promote_mode): Handle TYPE
572         argument being NULL.
573         * targhooks.c (default_promote_function_mode): Lisewise.
574         * config/s390/s390.c (s390_promote_function_mode): Likewise.
575         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
576
577         * doc/tm.texi: Document that TYPE argument might be NULL.
578
579 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
580
581         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
582
583 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
584
585         From Bernd Schmidt
586         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
587
588 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
589
590         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
591         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
592         Move ...
593         * mips-tfile.c: ... here.
594         Don't include coretypes.h, tm.h, filenames.h.
595         (saber_stop): Remove definition and all calls.
596         [__SABER__]: Remove.
597         (__LINE__): Remove default.
598         (Size_t, Ptrdiff_t): Remove definitions.
599         Replace by size_t, ptrdiff_t.
600         [!MIPS_DEBUGGING_INFO]: Remove.
601         (SHASH_SIZE, THASH_SIZE): Remove defaults.
602         (progname): Add const.
603         (STATIC): Remove.
604         Replace all uses by static.
605         (ALIGN_SYMTABLE_OFFSET): Remove default.
606         * mips-tdump.c: Don't include coretypes.h, tm.h.
607         Remove !MIPS_IS_STAB guard.
608         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
609         $(TM_H), filenames.h dependencies.
610         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
611
612 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
613
614         From Jie Zhang
615         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
616         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
617
618 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
619
620         From Bernd Schmidt
621         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
622         account and save/restore RETS.
623         (PROFILE_BEFORE_PROLOGUE): Define.
624         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
625         the push insn to use predecrement.
626
627 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
628
629         From Jie Zhang
630         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
631
632 2011-05-04  Nick Clifton  <nickc@redhat.com>
633
634         * config/mn10300/mn10300.c: Include cfgloop.h.
635         (DUMP): New macro.
636         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
637         Lcc or a FLcc insn into the instruction stream.
638         (mn10300_block_contains_call): New function.  Returns true if the
639         given basic block contains a CALL insn.
640         (mn10300_loop_contains_call_insn): New function.  Returns true if
641         the given loop contains a CALL insn.
642         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
643         to use the SETLB and Lcc or FLcc insns.
644         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
645         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
646         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
647         disable the SETLB optimization.
648         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
649         __SETLB__ or __NO_SETLB__.
650         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
651         (movsf_internal): Handle MDR register.
652         (cmpsi): Make visible.
653         (setlb): New pattern.
654         (Lcc): New pattern.
655         (FLcc): New pattern.
656
657 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
658
659         PR target/48860
660         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
661         for reg<->xmm moves.
662         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
663         (vec_concatv2di_rex64_sse): Ditto.
664         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
665         (*vec_extractv2di_1_rex64): Ditto.
666
667         Revert:
668         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
669
670         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
671         reg<->xmm moves.
672         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
673
674 2011-05-04  Richard Guenther  <rguenther@suse.de>
675
676         * tree.h (int_const_binop): Remove notrunc argument.
677         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
678         create integer constants that are properly truncated.
679         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
680         (const_binop): Remove zero notrunc argument to int_const_binop.
681         (size_binop_loc): Likewise.
682         (fold_div_compare): Likewise.
683         (maybe_canonicalize_comparison_1): Likewise.
684         (fold_comparison): Likewise.
685         (fold_binary_loc): Likewise.
686         (multiple_of_p): Likewise.
687         * expr.c (store_constructor): Likewise.
688         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
689         (maybe_fold_stmt_addition): Likewise.
690         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
691         * stor-layout.c (layout_type): Likewise.
692         * tree-data-ref.c (tree_fold_divides_p): Likewise.
693         * tree-sra.c (build_ref_for_offset): Likewise.
694         (build_user_friendly_ref_for_offset): Likewise.
695         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
696         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
697         * tree-ssa-loop-niter.c (inverse): Likewise.
698         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
699         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
700         * tree-switch-conversion.c (check_range): Likewise.
701         (build_constructors): Likewise.
702         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
703         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
704         (extract_range_from_assert): Likewise.
705         (vrp_int_const_binop): Likewise.
706         (extract_range_from_binary_expr): Likewise.
707         (extract_range_from_unary_expr): Likewise.
708         (check_array_ref): Likewise.
709         (find_case_label_range): Likewise.
710         (simplify_div_or_mod_using_ranges): Likewise.
711         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
712         comparing case labels for merging.
713
714 2011-05-03  Mark Wielaard  <mjw@redhat.com>
715
716         * dwarf2out.c (debug_str_hash_forced): Removed.
717         (gen_label_for_indirect_string): Removed.
718         (get_debug_string_label): Removed.
719         (AT_string_form): Generate label directly.
720         (output_indirect_string): Test indirect_string_node for
721         DW_FORM_strp instead of checking label and refcount.
722         (prune_indirect_string): Removed.
723         (prune_unused_types): Don't check debug_str_hash_forced or
724         call prune_indirect_string.
725
726 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
727
728         PR other/48093
729         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
730
731 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
732
733         PR debug/47994
734         PR debug/47919
735         * combine.c (try_combine): Skip debug insns at m_split tests.
736
737 2011-04-26  Mark Wielaard  <mjw@redhat.com>
738
739         PR42288
740         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
741         when info_section_emitted.
742
743 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
744
745         * config/mips/mips-opts.h: New.
746         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
747         to mips-opts.h.
748         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
749         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
750         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
751         via opts pointer.
752         * config/mips/mips.h (enum mips_code_readable_setting): Move to
753         mips-opts.h.
754         (mips_abi, mips_code_readable): Don't declare.
755         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
756         (mabi=): Use Enum and Var.
757         (mips_abi): New Enum and EnumValue entries.
758         (mcode-readable=): Use Enum and Var.
759         (mips_code_readable_setting): New Enum and EnumValue entries.
760         (mr10k-cache-barrier=): Use Enum and Var.
761         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
762
763 2011-05-03  Jan Hubicka  <jh@suse.cz>
764
765         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
766         replace hash by pointer map.
767         (cgraph_node_set_element_def, cgraph_node_set_element,
768         const_cgraph_node_set_element, varpool_node_set_element_def,
769         varpool_node_set_element, const_varpool_node_set_element): Remove.
770         (free_cgraph_node_set, free_varpool_node_set): New function.
771         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
772         * tree-emutls.c: Free varpool node set.
773         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
774         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
775         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
776         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
777         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
778         Move here from ipa.c; implement using pointer_map
779         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
780         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
781         debug_cgraph_node_set, varpool_node_set_new,
782         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
783         dump_varpool_node_set, debug_varpool_node_set):
784         Move to ipa-uitls.c.
785         * passes.c (ipa_write_summaries): Update.
786
787 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
788
789         From Mike Frysinger:
790         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
791         bf542/bf544/bf547/bf548/bf549.
792
793 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
794
795         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
796
797 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
798
799         From Bernd Schmidt:
800         * config/bfin/bfin.md (MOVCC): New mode_macro.
801         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
802         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
803         comments from generated assembly.
804
805 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
806
807         From Bernd Schmidt
808         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
809         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
810         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
811         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
812         * config/bfin/lib1funcs.asm (___muldi3): New function.
813
814 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
815
816         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
817         build_function_type_list instead of build_function_type.
818         Rearrange initialization of `args' to do so.
819
820 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
821
822         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
823         instead of build_function_type.
824
825 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
826
827         * config/rs6000/rs6000.c (spe_init_builtins): Call
828         build_function_type_list instead of build_function_type.
829         (paired_init_builtins, altivec_init_builtins): Likewise.
830         (builtin_function_type): Likewise.
831
832 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
833
834         * config/sh/sh.c (sh_media_init_builtins): Call
835         build_function_type_list instead of build_function_type.
836
837 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
838
839         * config/sparc/sparc.c (sparc_file_end): Call
840         build_function_type_list instead of build_function_type.
841
842 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
843
844         * config/alpha/alpha.c (alpha_init_builtins): Call
845         build_function_type_list instead of build_function_type.
846
847 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
848
849         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
850         build_function_type_list instead of build_function_type.
851
852 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
853
854         * config/iq2000/i2000.c (iq2000_init_builtins): Call
855         build_function_type_list instead of build_function_type.
856         Delete `endlink' variable.
857
858 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
859
860         * config/avr/avr.c (avr_init_builtins): Call
861         build_function_type_list instead of build_function_type.
862
863 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
864
865         * config/picochip/picochip.c (picochip_init_builtins): Call
866         build_function_type_list instead of build_function_type.
867         Delete `endlink' variable.
868
869 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
870
871         * config/bfin/bfin.c (bfin_init_builtins): Call
872         build_function_type_list instead of build_function_type.
873
874 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
875
876         From Bernd Schmidt
877         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
878         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
879
880 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
881
882         From Jie Zhang:
883         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
884         libbffastfp overrides libgcc when -mfast-fp.
885
886 2011-05-03  Stuart Henderson <shenders@gcc.gnu.org>
887
888         Originally from Bernd Schmidt
889         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
890         * config/bfin/bfin.c (override_options): Test it and error if
891         TARGET_FDPIC.
892
893 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
894
895         Originally From Bernd Schmidt
896         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
897         FD-PIC.
898
899 2011-05-03  Jeff Law  <law@redhat.com>
900
901         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
902         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
903         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
904         than accessing AUX field directly.  Free the AUX field before
905         clearing it.
906         (thread_block, thread_through_loop_header): Likewise.
907         (thread_single_edge, mark_threaded_blocks): Likewise.
908         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
909         (register_jump_thread): Do not attempt to thread to a NULL edge.
910
911 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
912
913         * function.c (init_function_start): Call decide_function_section.
914         * varasm.c (decide_function_section): New function.
915         (assemble_start_function): When not using
916         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
917         or first_function_block_is_cold.
918         * rtl.h (decide_function_section): Declare.
919
920 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
921             Jakub Jelinek  <jakub@redhat.com>
922
923         PR target/48774
924         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
925         only succeed if req_mode is the same as set_mode.
926
927 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
928
929         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
930         * genemit.c (gen_exp): Handle RETURN.
931         * emit-rtl.c (verify_rtx_sharing): Likewise.
932         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
933         * rtl.c (copy_rtx): RETURN is shared.
934         * rtl.h (enum global_rtl_index): Add GR_RETURN.
935         (ret_rtx): New.
936         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
937         * config/s390/s390.c (s390_emit_epilogue): Likewise.
938         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
939         * config/cris/cris.c (cris_expand_return): Likewise.
940         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
941         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
942         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
943         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
944         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
945         Likewise.
946         * config/v850/v850.c (expand_epilogue): Likewise.
947         * config/bfin/bfin.c (bfin_expand_call): Likewise.
948         * config/arm/arm.md (epilogue): Likewise.
949         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
950         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
951         variable to ret_reg.
952
953 2011-05-03  Richard Guenther  <rguenther@suse.de>
954
955         PR lto/48846
956         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
957         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
958         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
959
960 2011-05-03  Richard Guenther  <rguenther@suse.de>
961
962         * c-decl.c (grokdeclarator): Instead of looking at
963         TREE_OVERFLOW check if the constant fits in the index type.
964
965 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
966
967         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
968         (vec_store_lanes<mode><mode>): Likewise.
969
970 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
971
972         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
973         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
974         convert_optab_index values.
975         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
976         * genopinit.c (optabs): Initialize the new optabs.
977         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
978         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
979         (expand_STORE_LANES): New functions.
980         * tree.h (build_array_type_nelts): Declare.
981         * tree.c (build_array_type_nelts): New function.
982         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
983         (vect_model_load_cost): Likewise.
984         (vect_store_lanes_supported, vect_load_lanes_supported)
985         (vect_record_strided_load_vectors): Declare.
986         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
987         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
988         (vect_transform_strided_load): Split out statement recording into...
989         (vect_record_strided_load_vectors): ...this new function.
990         * tree-vect-stmts.c (create_vector_array, read_vector_array)
991         (write_vector_array, create_array_ref): New functions.
992         (vect_model_store_cost): Add store_lanes_p argument.
993         (vect_model_load_cost): Add load_lanes_p argument.
994         (vectorizable_store): Try to use store-lanes functions for
995         interleaved stores.
996         (vectorizable_load): Likewise load-lanes and loads.
997         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
998         to vect_model_store_cost.
999         (vect_build_slp_tree): Likewise vect_model_load_cost.
1000
1001 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
1002
1003         * hooks.h (hook_bool_mode_uhwi_false): Declare.
1004         * hooks.c (hook_bool_mode_uhwi_false): New function.
1005         * target.def (array_mode_supported_p): New hook.
1006         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1007         * doc/tm.texi: Regenerate.
1008         * stor-layout.c (mode_for_array): New function.
1009         (layout_type): Use it.
1010         * config/arm/arm.c (arm_array_mode_supported_p): New function.
1011         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1012
1013 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
1014
1015         PR target/48723
1016         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1017         for -fstack-check if the size to allocate is negative.
1018
1019 2011-05-02  Lawrence Crowl  <crowl@google.com>
1020
1021         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1022         (timevar_cond_start): New for starting a timer only when it is not
1023         already running.
1024         (timevar_cond_stop): New for stopping a timer when it was not already
1025         running.
1026
1027         * timevar.c (timevar_stop): Enable start/stop timers to start again.
1028         (timevar_cond_start): New as above.
1029         (timevar_cond_stop): New as above.
1030
1031         * timevar.def: Add start/stop timers for compiler phases,
1032         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1033         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1034         and TV_PHASE_FINALIZE.
1035         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1036         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1037         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1038         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1039         Make unused TV_OVERLOAD into a start/stop timer.
1040
1041         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1042         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1043         to indicate that they are start/stop timers.
1044
1045         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1046         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1047         Move initialization to do_compile.
1048         (do_compile): Add initialization from above.
1049         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1050
1051         * c-decl.c (c_write_global_declarations): Add start/stop of
1052         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1053
1054         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1055         or TV_PARSE_INLINE, as appropriate.
1056         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1057         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1058
1059 2011-05-02  Jason Merrill  <jason@redhat.com>
1060
1061         PR c++/40975
1062         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1063
1064 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
1065
1066         PR c/35445
1067         * c-decl.c (finish_decl): Only create a composite if the types are
1068         compatible.
1069
1070 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1071
1072         * config/fr30/fr30-protos.h (Mmode): Don't define.
1073         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
1074         definition where used.
1075         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1076         define.  Expand definitions where used.
1077         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1078         Expand definitions where used.
1079         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1080         rx_function_arg, rx_function_arg_advance,
1081         rx_function_arg_boundary): Expand definitions of those macros.
1082         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
1083         definition where used.
1084
1085 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1086
1087         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1088         reg<->xmm moves.
1089         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1090         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
1091         with *movv2sf_internal_rex64_avx.
1092         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1093         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1094         Use %v prefix in insn mnemonic to handle TARGET_AVX.
1095         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
1096         "vex" in "prefix" attribute calculation.
1097         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
1098
1099 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
1100
1101         PR target/47951
1102         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1103         inputs match the output.
1104
1105 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
1106
1107         PR target/47955
1108         * config/m68k/m68k.c (m68k_expand_prologue): Set
1109         current_function_static_stack_size.
1110
1111 2011-05-02   Jan Hubicka  <jh@suse.cz>
1112
1113         * lto-streamer.c (lto_streamer_cache_insert_1,
1114         lto_streamer_cache_lookup, lto_streamer_cache_create,
1115         lto_streamer_cache_delete): Use pointer map instead of hashtable.
1116         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1117
1118 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
1119
1120         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1121         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1122         config/m68k/t-opts: New files.
1123         * config/m68k/m68k-tables.opt: New file (generated).
1124         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1125         extra_options and m68k/t-opts to tmake_file.
1126         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1127         (all_isas): Initialize using m68k-isas.def.
1128         (all_microarchs): Initialize using m68k-microarchs.def.
1129         (m68k_find_selection): Remove.
1130         (m68k_handle_option): Don't assert that global structures are in
1131         use.  Use error_at.  Access variables via opts pointer.  Don't
1132         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
1133         directly for -m68020-40 and -m68020-60.
1134         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1135         m68k_tune_entry here.
1136         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1137         to m68k-opts.h.
1138         (m68k_library_id_string): Remove declaration.
1139         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1140         (m68k_library_id_string): New Variable.
1141         (march=, mcpu=, mtune=): Use Enum and Var.
1142
1143 2011-05-02  Richard Guenther  <rguenther@suse.de>
1144
1145         * varasm.c (output_constructor_regular_field): Compute zero-based
1146         index with double-ints.  Make sure to ICE instead of producing
1147         wrong code.
1148         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1149         in asserts.  Properly use a signed type.
1150
1151 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
1152
1153         * config/i386/sse.md (V): New mode iterator.
1154         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
1155         TARGET_SSE2.
1156         (V_256): Rename from AVX256MODE.
1157         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
1158         condition to all users.
1159         (VF1): Ditto.
1160         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
1161         condition to all users.
1162         (VF_128): Make V4SF mode unconditional.
1163         (VF_256): Rename from AVX256MODEF2P.
1164         (VI4F_128): Rename from SSEMODE4S.
1165         (VI8F_128): Rename from SSEMODE2D.
1166         (VI4F_256): Rename from AVX256MODE8P.
1167         (VI8F_256): Rename from AVX256MODE4P.
1168         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1169         (ssescalarmodesuffix): Remove SF and DF modes.
1170         (SSEMODE124): Remove.
1171         (SSEMODE1248): Ditto.
1172         (SSEMODEF2P): Ditto.
1173         (AVXMODEF2P): Ditto.
1174         (AVXMODEFDP): Ditto.
1175         (AVXMODEFSP): Ditto.
1176         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1177         unconditional.
1178         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
1179         unconditional.
1180         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1181         xop_pcmov_<mode>256.  Use V mode iterator.
1182
1183         Adjust RTX patterns globally for renamed mode attributes.
1184
1185 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1186
1187         * haifa-sched.c (sched_emit_insn): Emit insn before first
1188         non-scheduled insn.  Inform back-end about new insn.  Add
1189         new insn to scheduled_insns list.
1190
1191 2011-05-02  Richard Guenther  <rguenther@suse.de>
1192
1193         PR tree-optimization/48822
1194         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1195         (process_scc): Indicate which iteration we start.
1196
1197 2011-05-02  Jan Hubicka  <jh@suse.cz>
1198
1199         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1200         (lto_section_overrun): New.
1201         * lto-section-out.c (append_block): Rename to ...
1202         (lto_append_block): ... this one; export.
1203         (lto_output_1_stream): Move lto lto-streamer.h
1204         (lto_output_data_stream): Update.
1205         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1206         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1207         functions.
1208
1209 2011-05-02  Richard Guenther  <rguenther@suse.de>
1210
1211         * tree.c (tree_code_counts): New global array.
1212         (record_node_allocation_statistics): Count individual tree codes.
1213         (dump_tree_statistics): Dump individual code stats.
1214
1215 2011-05-01  Jan Hubicka  <jh@suse.cz>
1216
1217         * ipa-inline.c (caller_growth_limits): Fix thinko when
1218         looking for largest stack frame.
1219         * ipa-inline.h (dump_inline_summary): Declare.
1220         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1221         on stack usage.
1222         (dump_inline_summary): Export.
1223         (debug_inline_summary): Declare as DEBUG_FUNCTION.
1224
1225 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
1226
1227         * reginfo.c (memory_move_cost): Change rclass argument type form
1228         'enum reg_class' to reg_class_t.
1229         * reload.h (memory_move_cost): Update prototype.
1230         * postreload.c reload_cse_simplify_set): Change type dclass var to
1231         reg_class_t.
1232         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1233         Update prototype.
1234         (ira_allocate_and_set_costs): Change aclass argument type form
1235         'enum reg_class' to reg_class_t.
1236         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1237         Change aclass argument type to reg_class_t.
1238         (update_conflict_hard_reg_costs): Change type aclass and pref vars
1239         to reg_class_t.
1240         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1241         memory_move_cost call.
1242
1243         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1244         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1245         Change type tmp var to reg_class_t.
1246
1247 2011-04-30  Jan Hubicka  <jh@suse.cz>
1248
1249         * ipa-inline.c (can_inline_edge_p): Disregard limits when
1250         inlining into function with flatten attribute.
1251         (want_inline_small_function_p): Be more realistic about inlining
1252         cold calls where callee size grows.
1253
1254 2011-04-30  Jan Hubicka  <jh@suse.cz>
1255
1256         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1257         flags.
1258
1259 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
1260
1261         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1262         PRINT_OPERAND_PUNCT_VALID_P): Remove.
1263         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1264         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1265         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1266         (print_operand): Rename to...
1267         (sparc_print_operand): ...this. Make static. Adjust
1268         sparc_print_operand function call.
1269         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1270         functions.
1271
1272 2011-04-30  Jan Hubicka  <jh@suse.cz>
1273
1274         PR middle-end/48752
1275         * ipa-inline.c (early_inliner): Disable when doing late
1276         addition of function.
1277
1278 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
1279
1280         * dwarf2out.c (get_address_mode): New inline.
1281         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1282         if not dwarf_strict emit
1283         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1284         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1285         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
1286         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1287         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1288         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1289         mem_loc_descriptor callers.
1290         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1291         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1292         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1293         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1294         (base_types): New variable.
1295         (get_base_type_offset, calc_base_type_die_sizes,
1296         base_type_for_mode, mark_base_types, base_type_cmp,
1297         move_marked_base_types): New functions.
1298         (calc_die_sizes): Assert that die_offset is 0 or equal to
1299         next_die_offset.
1300         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1301         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
1302         callers.  If not dwarf_strict, call mem_loc_descriptor even for
1303         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1304         (gen_subprogram_die): Don't give up on call site parameters
1305         with non-integral or large integral modes.  Adjust
1306         mem_loc_descriptor callers.
1307         (prune_unused_types): Call prune_unused_types_mark on base_types
1308         vector entries.
1309         (resolve_addr): Call mark_base_types.
1310         (dwarf2out_finish): Call move_marked_base_types.
1311
1312         PR tree-optimization/48809
1313         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1314         type.
1315         (gen_inbound_check): Don't compute index_expr - range_min in utype
1316         again, instead reuse SSA_NAME initialized in build_arrays.
1317         Remove two useless gsi_for_stmt calls.
1318
1319 2011-04-29  Jeff Law  <law@redhat.com>
1320
1321         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1322
1323 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1324
1325         * cgraph.h (cgraph_postorder): Remove declaration.
1326         * ipa-utils.h (ipa_free_postorder_info): Declare.
1327         (ipa_reverse_postorder): Likewise.
1328         * cgraphunit.c: Include ipa-utils.h.
1329         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1330         * ipa-inline.c: Include ipa-utils.h.
1331         (ipa_inline): Update call to ipa_reverse_postorder.
1332         * ipa-pure-const.c (propagate_pure_const): Update call to
1333         ipa_reduced_postorder and ipa_print_order.  Call
1334         ipa_free_postorder_info to clean up.
1335         (propagate_nothrow): Likewise.
1336         * ipa-reference.c (propagate): Removed a useless call to
1337         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1338         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
1339         * ipa.c: Include ipa-utils.h.
1340         (ipa_profile): Update call to ipa_reverse_postorder.
1341         (cgraph_postorder): Moved to...
1342         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1343         (ipa_utils_print_order): Renamed to ipa_print_order.
1344         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1345         comments.
1346         (ipa_free_postorder_info): New function.
1347         * passes.c: Include ipa-utils.h.
1348         (do_per_function_toporder): Update call to ipa_reverse_postorder.
1349         (ipa_write_summaries): Likewise.
1350         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1351         (cgraphunit.o): Likewise.
1352         (ipa.o): Likewise.
1353         (ipa-inline.o): Likewise.
1354
1355 2011-04-29  Jan Hubicka  <jh@suse.cz>
1356
1357         * gcc.dg/tree-ssa/inline-10.c: New testcase.
1358         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1359         * ipa-inline.h (clause_t): Turn into unsigned int.
1360         * ipa-inline-analysis.c (add_clause): Do more simplification.
1361         (and_predicates): Shortcut more cases.
1362         (predicates_equal_p): Move forward; check that clauses are properly
1363         ordered.
1364         (or_predicates): Shortcut more cases.
1365         (edge_execution_predicate): Rewrite as...
1366         (set_cond_stmt_execution_predicate): ... this function; handle
1367         __builtin_constant_p.
1368         (set_switch_stmt_execution_predicate): New .
1369         (compute_bb_predicates): New.
1370         (will_be_nonconstant_predicate): Update TODO.
1371         (estimate_function_body_sizes): Use compute_bb_predicates
1372         and free them later, always try to estimate if stmt is constant.
1373         (estimate_time_after_inlining, estimate_size_after_inlining):
1374         Gracefully handle optimized out edges.
1375         (read_predicate): Fix off by one error.
1376
1377 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1378
1379         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1380
1381 2011-04-27  Xinliang David Li  <davidxl@google.com>
1382
1383         * tree-profile.c (init_ic_make_global_vars): Set
1384         tls attribute on ic vars.
1385         * coverage.c (coverage_end_function): Initialize
1386         function_list with zero.
1387
1388 2011-04-29  Richard Guenther  <rguenther@suse.de>
1389
1390         * builtins.c (fold_builtin_classify_type): Use integer_type_node
1391         for the type of the result.
1392         (fold_builtin_isascii): Likewise.
1393         (fold_builtin_toascii): Use integer_type_node where appropriate.
1394         (fold_builtin_logb): Likewise.
1395         (fold_builtin_frexp): Likewise.
1396         (fold_builtin_strstr): Likewise.
1397         (fold_builtin_strpbrk): Likewise.
1398         (fold_builtin_fputs): Likewise.
1399         (fold_builtin_sprintf): Likewise.
1400         (fold_builtin_snprintf): Likewise.
1401         (fold_builtin_printf): Likewise.
1402         (do_mpfr_remquo): Use a proper type for the assigned constant.
1403         (do_mpfr_lgamma_r): Likewise.
1404         * dwarf2out.c (resolve_one_addr): Use size_int.
1405         * except.c (init_eh): Likewise.
1406         (assign_filter_values): Use integer_type_node for filter values.
1407         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1408         indices.
1409         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1410         for EH region numbers.
1411         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1412         for the shift amount.
1413
1414 2011-04-29  Richard Guenther  <rguenther@suse.de>
1415
1416         * expr.h (expand_shift): Rename to ...
1417         (expand_variable_shift): ... this.
1418         (expand_shift): Take a constant shift amount.
1419         * expmed.c (expand_shift): Rename to ...
1420         (expand_variable_shift): ... this.
1421         (expand_shift): New wrapper around expand_variable_shift.
1422         * expr.c (convert_move, emit_group_load_1, emit_group_store,
1423         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1424         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1425         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1426         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1427         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1428         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1429         emit_store_flag_1, emit_store_flag): Likewise.
1430         * builtins.c (expand_builtin_signbit): Likewise.
1431         * calls.c (load_register_parameters): Likewise.
1432         * function.c (assign_parm_setup_block): Likewise.
1433         * lower-subreg.c (resolve_shift_zext): Likewise.
1434         * optabs.c (widen_bswap, expand_abs_nojump,
1435         expand_one_cmpl_abs_nojump, expand_float): Likewise.
1436         * spu/spu.c (spu_expand_extv): Likewise.
1437         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1438
1439 2011-04-29  Richard Guenther  <rguenther@suse.de>
1440
1441         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1442         for the remapped region number.
1443         * predict.c (build_predict_expr): Use integer_type_node for the
1444         predict kind.
1445         * fold-const.c (fold_binary_loc): Use integer_type_node for
1446         the shift amount.  Use a proper type for the PLUS_EXPR operand.
1447
1448 2011-04-29  Michael Matz  <matz@suse.de>
1449
1450         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1451         other trees that just builtins.
1452         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1453
1454 2011-04-29  Richard Guenther  <rguenther@suse.de>
1455
1456         * tree-nested.c (get_trampoline_type): Use size_int.
1457         (get_nl_goto_field): Likewise.
1458         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1459         for all indexes.
1460         (lower_eh_constructs_2): Likewise.
1461         (lower_resx): Likewise.
1462         (lower_eh_dispatch): Likewise.
1463         * tree-mudflap.c (mf_build_string): Use size_int.
1464         (mudflap_register_call): Use integer_type_node for the flag.
1465         (mudflap_enqueue_constant): Use size_int.
1466         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1467         instead of rebuilding it.
1468
1469 2011-04-29  Richard Guenther  <rguenther@suse.de>
1470
1471         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1472         Handle OBJ_TYPE_REF.
1473         (find_func_aliases_for_call): Use it more consistently.
1474
1475 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
1476
1477         * haifa-sched.c (last_nondebug_scheduled_insn): New.
1478         (rank_for_schedule): Use it.
1479         (schedule_block): Set it.
1480
1481 2011-04-28  David Li  <davidxl@google.com>
1482
1483         * tree.c (crc32_string): Use crc32_byte.
1484         (crc32_byte): New function.
1485         * tree.h (crc32_byte): New function.
1486         * gcov.c (read_graph_file): Handle new cfg_cksum.
1487         (read_count_file): Ditto.
1488         * profile.c (instrument_values): Ditto.
1489         (get_exec_counts): Ditto.
1490         (read_profile_edge_counts): Ditto.
1491         (compute_branch_probabilities): Ditto.
1492         (compute_value_histograms): Ditto.
1493         (branch_prob): Ditto.
1494         (end_branch_prob): Ditto.
1495         * coverage.c (read_counts_file): Ditto.
1496         (get_coverage_counts): Ditto.
1497         (tree_coverage_counter_addr): Ditto.
1498         (coverage_checksum_string): Ditto.
1499         (coverage_begin_output): Ditto.
1500         (coverage_end_function): Ditto.
1501         (build_fn_info_type): Ditto.
1502         (build_fn_info_value): Ditto.
1503         * libgcov.c (gcov_exit): Ditto.
1504         * gcov-dump.c (tag_function): Ditto.
1505         (compute_checksum): Remove.
1506
1507 2011-04-29  Alan Modra  <amodra@gmail.com>
1508
1509         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1510         unspec plus offset.  Tidy macho code.
1511
1512 2011-04-29  Martin Jambor  <mjambor@suse.cz>
1513
1514         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1515         node instead of a decl.  Update all callers.
1516         * cgraph.h: Update declaration.
1517
1518 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
1519
1520         PR tree-optimization/48765
1521         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1522         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1523         to indicate if loop aware SLP is being used.  Scan the statements
1524         and update the vectorization factor according to the type of
1525         vectorization before statement analysis.
1526         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1527         pass it to vect_analyze_loop_operations.
1528         (vectorizable_reduction): Set number of copies to 1 in case of pure
1529         SLP statement.
1530         * tree-vect-stmts.c (vectorizable_conversion,
1531         vectorizable_assignment, vectorizable_shift,
1532         vectorizable_operation, vectorizable_type_demotion,
1533         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1534         Likewise.
1535         (vectorizable_condition): Move the check that it is not SLP
1536         vectorization before the number of copies check.
1537         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1538         to vectorize the loop using SLP.
1539
1540 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
1541
1542         PR middle-end/48597
1543         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1544         inline asm.
1545
1546 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
1547
1548         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1549         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1550         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1551         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1552         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1553         linux*.h headers.
1554         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1555         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1556         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1557         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1558         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1559         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1560         REG_NAME.
1561         * config/i386/linux.h (REG_NAME): Don't define.
1562         * config/i386/linux64.h (REG_NAME): Don't define.
1563         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1564         Undefine before defining.
1565
1566 2011-04-28  Jan Hubicka  <jh@suse.cz>
1567
1568         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1569         nonconstant_names array.
1570         (estimate_function_body_sizes): Build nonconstant_names array; handle
1571         BUILT_IN_CONSTANT_P.
1572
1573 2011-04-28  Richard Guenther  <rguenther@suse.de>
1574
1575         PR bootstrap/48804
1576         Revert
1577         2011-04-28  Richard Guenther  <rguenther@suse.de>
1578
1579         * tree-ssa-structalias.c (solve_constraints): Build succ graph
1580         as late as possible.
1581
1582 2011-04-28  Richard Guenther  <rguenther@suse.de>
1583
1584         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1585         (debug_constraint): Do it here.
1586         (dump_constraints): And here.
1587         (rewrite_constraints): And here.
1588         (dump_constraint_edge): Remove.
1589         (dump_constraint_graph): Rewrite to produce DOT output.
1590         (solve_constraints): Build succ graph as late as possible.
1591         Dump constraint graphs before and after solving.
1592
1593 2011-04-28  Richard Guenther  <rguenther@suse.de>
1594
1595         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1596         New function split out from ...
1597         (find_func_aliases): ... here.  Call it.
1598         (find_func_aliases_for_call): Likewise.
1599
1600 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1601
1602         * internal-fn.h (internal_fn_name_array): Declare.
1603         (internal_fn_flags_array): Likewise.
1604
1605 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1606
1607         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
1608         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1609         Move from sse.md.
1610         (ssemodefsuffix): Remove.
1611         (ssevecmodesuffix): New mode attribute.
1612         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1613         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1614         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1615         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1616         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1617         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1618         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1619         ssemodesuffix mode attribute.
1620         (float splitters): Use ssevecmodesuffix mode attribute.
1621         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1622         (sseinsmode): Rename from avxvecmode.
1623         (avxsizesuffix): Rename from avxmodesuffix.
1624         (sseintvecmode): Rename from avxpermvecmode.
1625         (ssedoublevecmode): Rename from ssedoublesizemode.
1626         (ssehalfvecmode): Rename from avxhalfvecmode.
1627         (ssescalarmode): Rename from avxscalarmode.
1628         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1629         templates for ssemodesuffix mode attribute.
1630         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1631         mode attribute.
1632
1633         Adjust RTX patterns globally for renamed mode attributes.
1634
1635 2011-04-27  Jan Hubcika  <jh@suse.cz>
1636
1637         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1638         * ipa-inline-analysis.c: Include alloc-pool.h.
1639         (edge_predicate_pool): New.
1640         (trye_predicate_p): New function
1641         (false_predicate_p): New function.
1642         (add_clause): Sanity check that false clauses are "optimized";
1643         never add clauses to predicate that is already known to be false.
1644         (and_predicate): Use flase_predicate_p.
1645         (evaulate_predicate): Rename to ...
1646         (evaluate_predicate): ... this one; update all callers; assert
1647         that false is not listed among possible truths.
1648         (dump_predicate): Use true_predicate_p.
1649         (account_size_time): Use false_predicate_p.
1650         (evaulate_conditions_for_edge): Rename to ...
1651         (evaluate_conditions_for_edge) ... this one.
1652         (edge_set_predicate): New function.
1653         (inline_edge_duplication_hook): Duplicate edge predicates.
1654         (inline_edge_removal_hook): Free edge predicates.
1655         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1656         (dump_inline_summary): Update.
1657         (estimate_function_body_sizes): Set edge predicates.
1658         (estimate_calls_size_and_time): Handle predicates.
1659         (estimate_callee_size_and_time): Update.
1660         (remap_predicate): Add toplev_predicate; update comment.
1661         (remap_edge_predicates): New function.
1662         (inline_merge_summary): Compute toplev predicate; update.
1663         (read_predicate): New function.
1664         (read_inline_edge_summary): Use it.
1665         (inline_read_section): Likewise.
1666         (write_predicate): New function.
1667         (write_inline_edge_summary): Use it.
1668         (inline_write_summary): Likewise.
1669         (inline_free_summary): Free alloc pool and edge summary vec.
1670
1671 2011-04-27  Richard Guenther  <rguenther@suse.de>
1672
1673         * tree-ssa-structalias.c (changed_count): Remove.
1674         (changed): Use a bitmap.
1675         (unify_nodes): Adjust.
1676         (do_sd_constraint): Likewise.
1677         (do_ds_constraint): Likewise.
1678         (do_complex_constraint): Likewise.
1679         (solve_graph): Likewise.
1680
1681 2011-04-27  Jan Hubicka  <jh@suse.cz>
1682
1683         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1684
1685 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
1686
1687         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1688         (avx_vperm2f128_*_operand): Ditto.
1689         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1690         Use avx_vpermilp_parallel in insn condition.
1691         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1692         Use avx_vperm2f128_parallel in insn condition.
1693
1694 2011-04-27  Richard Guenther  <rguenther@suse.de>
1695
1696         * Makefile.in (tree-ssa-structalias.o): Remove
1697         gt-tree-ssa-structalias.h dependency.
1698         (GTFILES): Remove tree-ssa-structalias.c.
1699         * tree.c (allocate_decl_uid): New function.
1700         (make_node_stat): Use it.
1701         (copy_node_stat): Likewise.
1702         * tree.h (allocate_decl_uid): Declare.
1703         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1704         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1705         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1706         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1707         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1708         (struct heapvar_map): Likewise.
1709         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1710         heapvar_insert): Likewise.
1711         (make_heapvar_for): Rename to ...
1712         (make_heapvar): ... this.  Simplify.
1713         (fake_var_decl_obstack): New global var.
1714         (build_fake_var_decl): New function.
1715         (make_constraint_from_heapvar): Adjust.
1716         (handle_lhs_call): Likewise.
1717         (create_function_info_for): Likewise.
1718         (intra_create_variable_infos): Likewise.
1719         (init_alias_vars): Allocate fake_var_decl_obstack.
1720         (init_alias_heapvars, delete_alias_heapvars): Remove.
1721         (compute_points_to_sets): Do not call init_alias_heapvars.
1722         (ipa_pta_execute): Likewise.
1723         (delete_points_to_sets): Free fake_var_decl_obstack.
1724
1725 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1726
1727         * config/spu/divmovti4.c (union qword_UTItype): New data type.
1728         (si_from_UTItype, si_to_UTItype): New functions.
1729         (__udivmodti4): Use them to implement type-punning.
1730         * config/spu/multi3.c (union qword_TItype): New data type.
1731         (si_from_TItype, si_to_TItype): New functions.
1732         (__multi3): Use them to implement type-punning.
1733
1734 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1735
1736         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1737
1738 2011-04-27  Jan Hubicka  <jh@suse.cz>
1739
1740         * ipa-prop.c (function_insertion_hook_holder): New holder.
1741         (ipa_add_new_function): New function.
1742         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1743         Register/deregister holder.
1744
1745 2011-04-27  Richard Guenther  <rguenther@suse.de>
1746
1747         PR tree-optimization/48772
1748         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1749
1750 2011-04-27  Richard Guenther  <rguenther@suse.de>
1751
1752         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1753         TARGET_MEM_REF handling.
1754
1755 2011-04-27  Nick Clifton  <nickc@redhat.com>
1756
1757         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1758         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1759         (REG_CLASS_NAMES): Likewise.
1760         (REG_CLASS_CONTENTS): Likewise.
1761         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1762         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
1763         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
1764         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
1765         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
1766         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1767         duplicate register classes.
1768         (frv_class_likely_spilled_p): Likewise.
1769         (frv_register_move_cost): Likewise.
1770
1771         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1772         end of the regno_reg_class array.
1773
1774 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
1775
1776         PR c/48742
1777         * c-typeck.c (build_binary_op): Don't wrap arguments if
1778         int_operands is true.
1779
1780 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
1781
1782         PR target/48767
1783         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1784         targetm.calls.must_pass_in_stack for void type.
1785
1786 2011-04-26  Jan Hubicka  <jh@suse.cz>
1787
1788         * cgraphbuild.c (build_cgraph_edges): Update call
1789         of cgraph_create_edge and cgraph_create_indirect_edge.
1790         * cgraph.c (cgraph_create_edge_including_clones,
1791         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1792         cgraph_update_edges_for_call_stmt_node): Do not take nest
1793         argument; do not initialize call_stmt_size/time.
1794         (dump_cgraph_node): Do not dump nest.
1795         (cgraph_clone_edge): Do not take loop_nest argument;
1796         do not propagate it; do not clone call_stmt_size/time.
1797         (cgraph_clone_node): Likewise.
1798         (cgraph_create_virtual_clone): Update.
1799         * cgraph.h (struct cgraph_edge): Remove
1800         call_stmt_size/call_stmt_time/loop_nest.
1801         (cgraph_create_edge, cgraph_create_indirect_edge,
1802         cgraph_create_edge_including_clones, cgraph_clone_node): Update
1803         prototype.
1804         * tree-emutls.c (gen_emutls_addr): Update.
1805         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
1806         loop_nest; handle indirect calls, too.
1807         (clone_inlined_nodes): Do not care about updating inline summaries.
1808         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
1809         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
1810         stream call_stmt_size/call_stmt_time/loop_nest.
1811         * ipa-inline.c (edge_badness): Update.
1812         (ipa_inline): dump summaries after inlining.
1813         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
1814         New.
1815         (inline_edge_summary): New function.
1816         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
1817         (inline_edge_removal_hook): Handle edge summaries.
1818         (inline_edge_duplication_hook): New hook.
1819         (inline_summary_alloc): Alloc hooks.
1820         (initialize_growth_caches): Do not register removal hooks.
1821         (free_growth_caches); Do not free removal hook.
1822         (dump_inline_edge_summary): New function.
1823         (dump_inline_summary): Use it.
1824         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
1825         (inline_update_callee_summaries): New function.
1826         (inline_merge_summary): Use it.
1827         (do_estimate_edge_time, do_estimate_edge_growth): Update.
1828         (read_inline_edge_summary): New function.
1829         (inline_read_section): Use it.
1830         (write_inline_edge_summary): New function.
1831         (inline_write_summary): Use it.
1832         (inline_free_summary): Free edge new holders.
1833         * tree-inline.c (copy_bb): Update.
1834
1835 2011-04-26  Jason Merrill  <jason@redhat.com>
1836
1837         * tree-eh.c (lower_try_finally_switch): Create the label along with
1838         the CASE_LABEL_EXPR.
1839
1840 2011-04-26  David S. Miller  <davem@davemloft.net>
1841             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1842
1843         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
1844         * configure: Regenerate.
1845
1846 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
1847
1848         PR target/48258
1849         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
1850         reduction.
1851         (VEC_reduc): New code iterator and splitters for vector reduction.
1852         (VEC_reduc_name): Ditto.
1853         (VEC_reduc_rtx): Ditto.
1854         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
1855         (reduc_<VEC_reduc_name>_v4sf): Ditto.
1856
1857         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1858         support for extracting SF on VSX.
1859
1860         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
1861         generating xscvspdp.
1862         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
1863         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
1864         double add, minimum, maximum vector reduction.
1865         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
1866         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
1867         optimize double vector reduction.
1868         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
1869
1870 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
1871
1872         * config/fr30/fr30.h (inhibit_libc): Don't define.
1873         * config/m32r/m32r-protos.h: Correct comment.
1874         * config/v850/v850.h (GHS_default_section_names,
1875         GHS_current_section_names): Use tree, not union tree_node *.
1876
1877 2011-04-26  Xinliang David Li  <davidxl@google.com>
1878
1879         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
1880         * c-family/c-opts.c (c_common_handle_option): Set
1881         warn_maybe_uninitialized.
1882         * opts.c (common_handle_option): Ditto.
1883         * common.opt:  New option.
1884         * tree-ssa.c (warn_uninit): Add one more parameter.
1885         (warn_uninitialized_var): Pass warning code.
1886         * tree-flow.h: Interface change.
1887
1888
1889 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1890
1891         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
1892         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
1893         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
1894
1895 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1896
1897         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
1898         * config/mips/mips.opt (mmips-tfile): Remove.
1899
1900         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
1901         mips-tdump reference to ...
1902         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
1903         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
1904         reference by Tru64 UNIX.
1905
1906 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
1907
1908         PR debug/48768
1909         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
1910         is error_mark_node, set value to NULL.
1911
1912         PR tree-optimization/48734
1913         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
1914         if return value from maybe_fold_*_comparsions isn't something
1915         the code is prepared to handle.
1916
1917 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
1918
1919         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
1920         mode check.
1921         (ext_QIreg_nomode_operands): Remove.
1922         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
1923         (*andsi_1): Ditto.
1924         (*andhi_1): Ditto.
1925
1926 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
1927
1928         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
1929
1930 2011-04-26  Richard Guenther  <rguenther@suse.de>
1931
1932         * c-typeck.c (build_unary_op): Do not expand array-refs via
1933         pointer arithmetic.  Only adjust qualifiers for function types.
1934
1935 2011-04-26  Richard Guenther  <rguenther@suse.de>
1936
1937         PR middle-end/48694
1938         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
1939         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
1940         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
1941         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
1942
1943 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
1944
1945         * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
1946         * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1947         * doc/extend.texi: Document __underlying_type.
1948
1949 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
1950
1951         * config/rs6000/titan.md (automata_option "progress"): Remove.
1952
1953 2011-04-25  Jeff Law  <law@redhat.com>
1954
1955         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
1956
1957 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
1958
1959         * system.h (ENUM_BITFIELD): Remove.
1960
1961 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
1962             Eric Botcazou  <ebotcazou@adacore.com>
1963
1964         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
1965         for STORE_FLAG_VALUE==-1 case.
1966
1967 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
1968
1969         PR target/43804
1970         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
1971         LEGITIMATE_PIC_OPERAND_P.
1972
1973 2011-04-24  Jan Hubicka  <jh@suse.cz>
1974
1975         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
1976         WPA hack.
1977         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
1978         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
1979         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
1980         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
1981         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
1982         Sanity check predicate length.
1983         (remap_predicate): Likewise; sanity check jump functions.
1984         (inline_read_section, inline_write_summary): Sanity check
1985         predicate length.
1986
1987 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
1988
1989         PR other/48748
1990         * doc/extend.texi (Type Traits): Document __is_standard_layout,
1991         __is_literal_type, and __is_trivial; update throughout about
1992         possibly cv-qualified void types.
1993
1994 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
1995
1996         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
1997         testsuite and make it version agnostic.
1998
1999 2011-04-22  Jan Hubicka  <jh@suse.cz>
2000
2001         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2002
2003 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
2004
2005         PR c/48685
2006         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2007         to VOID_TYPE even around MODIFY_EXPR.
2008
2009 2011-04-22  Mike Stump  <mikestump@comcast.net>
2010
2011         * gensupport.c (read_md_rtx): Fix typo in comment.
2012         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2013         comment.
2014
2015 2011-04-22  Jan Hubicka  <jh@suse.cz>
2016
2017         * gengtype.c (open_base_files): Add ipa-inline.h include.
2018         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2019         ipa-prop.c; update all uses.
2020         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2021         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2022         merge summary of inlined function into former caller.
2023         * ipa-inline.c (max_benefit): Remove.
2024         (edge_badness): Compensate for removal of benefits.
2025         (update_caller_keys): Use
2026         reset_node_growth_cache/reset_edge_growth_cache.
2027         (update_callee_keys): Likewise.
2028         (update_all_callee_keys): Likewise.
2029         (inline_small_functions): Do not collect max_benefit; do not reset
2030         estimated_growth; call free_growth_caches and initialize_growth_caches.
2031         * ipa-inline.h (struct condition, type clause_t, struct predicate,
2032         struct size_time_entry): New structures.
2033         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2034         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2035         and estimated_growth.
2036         (edge_growth_cache_entry): New structure.
2037         (node_growth_cache, edge_growth_cache): New global vars.
2038         (estimate_growth): Turn into inline.
2039         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2040         initialize_growth_caches, free_growth_caches): Declare.
2041         (estimate_edge_growth): Rewrite.
2042         (estimate_edge_time): Implement as inline cache lookup.
2043         (reset_node_growth_cache, reset_edge_growth_cache): New inline
2044         functions.
2045         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2046         (NUM_CONDITIONS): New constant.
2047         (predicate_conditions): New enum.
2048         (IS_NOT_CONSTANT): New constant.
2049         (edge_removal_hook_holder): New var.
2050         (node_growth_cache, edge_growth_cache): New global vars.
2051         (true_predicate, single_cond_predicate, false_predicate,
2052         not_inlined_predicate, add_condition, add_clause, and_predicates,
2053         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2054         dump_clause, dump_predicate, account_size_time,
2055         evaulate_conditions_for_edge): New functions.
2056         (inline_summary_alloc): Move to heap.
2057         (inline_node_removal_hook): Clear condition and entry vectors.
2058         (inline_edge_removal_hook): New function.
2059         (initialize_growth_caches, free_growth_caches): New function.
2060         (dump_inline_summary): Update.
2061         (edge_execution_predicate): New function.
2062         (will_be_nonconstant_predicate): New function.
2063         (estimate_function_body_sizes): Compute BB and constantness predicates.
2064         (compute_inline_parameters): Do not clear estimated_growth.
2065         (estimate_edge_size_and_time): New function.
2066         (estimate_calls_size_and_time): New function.
2067         (estimate_callee_size_and_time): New function.
2068         (remap_predicate): New function.
2069         (inline_merge_summary): New function.
2070         (do_estimate_edge_time): New function based on...
2071         (estimate_edge_time): ... this one.
2072         (do_estimate_edge_growth): New function.
2073         (do_estimate_growth): New function based on....
2074         (estimate_growth): ... this one.
2075         (inline_analyze_function): Analyze after deciding on jump functions.
2076         (inline_read_section): New function.
2077         (inline_read_summary): Use it.
2078         (inline_write_summary): Write all the new data.
2079         * ipa-prop.c (ipa_get_param_decl_index): Export.
2080         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2081         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2082         Declare.
2083         (ipa_get_lattice): Move here from ipa-cp.c
2084         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2085         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2086         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2087         cgraph_edge_inlinable_p): Remove.
2088         * cgraphunit.c: Include ipainline.h
2089         (cgraph_process_new_functions): Update call of
2090         compute_inline_parameters.
2091
2092 2011-04-22  Richard Guenther  <rguenther@suse.de>
2093
2094         * tree.c (build_int_cst): Properly create canonicalized integer
2095         constants.
2096         (build_int_cst_type): Remove scary comments.
2097
2098 2011-04-22  Xinliang David Li  <davidxl@google.com>
2099
2100         * toplev.c (process_options): Enable -Werror=coverage-mismatch
2101         by default when -Wno-error is not specified.
2102         * opts-global.c (decode_options): Remove call to
2103         control_warning_options.
2104
2105 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2106
2107         PR tree-optimization/48717
2108         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2109         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2110
2111 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
2112
2113         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
2114         definition where used.
2115
2116 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
2117
2118         PR c/48716
2119         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2120         TREE_STATIC variables declared inside of some OpenMP construct.
2121
2122 2011-04-22  Martin Jambor  <mjambor@suse.cz>
2123
2124         PR middle-end/48585
2125         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2126
2127 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2128
2129         PR c/36750
2130         * c-typeck.c (pop_init_level): Do not warn about initializing
2131         with ` = {0}'.
2132
2133 2011-04-22  Alan Modra  <amodra@gmail.com>
2134
2135         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2136         when returning call_cookie.
2137         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2138         pointers, to functions with no more vector args than the current
2139         function, and some non-local calls for ABI_V4.
2140         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2141         sibcall_nonlocal_aix64): Combine to ..
2142         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
2143         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2144         (sibcall_value_nonlocal_aix<mode>): ..likewise.
2145         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2146         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
2147         operand.
2148         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2149         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2150         sibcall_value_symbolic_64): Delete.
2151
2152 2011-04-21  Xinliang David Li  <davidxl@google.com>
2153
2154         * cgraph.h: Remove pid.
2155         * cgraph.c: Remove pid.
2156         * value-prof.c (init_node_map): New function.
2157         (del_node_map): New function.
2158         (find_func_by_funcdef_no): New function.
2159         (gimple_ic_transform): Call new function.
2160         * cgraphunit.c (cgraph_finalize_function): Remove pid.
2161         * function.c (get_last_funcdef_no): New function.
2162         * function.h (get_last_funcdef_no): New function.
2163         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2164         to libgcov function.
2165         (tree-profiling): Call node map init and delete function.
2166
2167 2011-04-21  Ian Lance Taylor  <iant@google.com>
2168
2169         * godump.c (go_format_type): Use exported Go name for anonymous
2170         field name.
2171
2172 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2173
2174         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2175         Call builtin_function_type_list instead of builtin_function_type.
2176         (UNARY, BINARY, TRINARY, QUAD): Likewise.
2177
2178 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2179
2180         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2181         build_function_type_list instead of build_function_type.
2182         Delete variable `endlink'.
2183
2184 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2185
2186         * config/s390/s390.c (s390_init_builtins): Call
2187         build_function_type_list instead of build_function_type.
2188
2189 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
2190
2191         * config/ia64/ia64.c (ia64_init_builtins): Call
2192         build_function_type_list instead of builtin_function_type.
2193
2194 2011-04-21  Easwaran Raman  <eraman@google.com>
2195
2196         * cfgexpand.c (stack_var): Remove OFFSET...
2197         (add_stack_var): ...and its reference here...
2198         (expand_stack_vars): ...and here.
2199         (stack_var_cmp): Sort by descending order of size.
2200         (partition_stack_vars): Change heuristic.
2201         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2202         (dump_stack_var_partition): Add newline after each partition.
2203
2204 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
2205             Jeff Law  <law@redhat.com>
2206
2207         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2208         * gengtype.c (matching_file_name_substitute): Likewise.
2209
2210 2011-04-21  Richard Guenther  <rguenther@suse.de>
2211
2212         PR lto/48703
2213         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2214
2215 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2216
2217         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2218
2219 2011-04-21  Richard Guenther  <rguenther@suse.de>
2220
2221         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2222         file name.
2223
2224 2011-04-21  Richard Guenther  <rguenther@suse.de>
2225
2226         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2227         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2228         Use DECL_P, not SSA_VAR_P.
2229         (ptr_derefs_may_alias_p): Likewise.
2230         (ptr_deref_may_alias_ref_p_1): Likewise.
2231         (decl_refs_may_alias_p): Likewise.
2232         (refs_may_alias_p_1): Likewise.
2233         (ref_maybe_used_by_call_p_1): Likewise.
2234         (call_may_clobber_ref_p_1): Likewise.
2235         (indirect_ref_may_alias_decl_p): Assume indirect refrences
2236         are either MEM_REF or TARGET_MEM_REF.
2237         (indirect_refs_may_alias_p): Likewise.
2238         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2239         for MEM_EXPR of indirect calls.
2240
2241 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2242
2243         * vmsdbgout.c (write_srccorr): Compute file length from the string.
2244         (dst_file_info_struct): Remove flen field.
2245         (lookup_filename): Remove code that set flen field.
2246
2247 2011-04-21  Tristan Gingold  <gingold@adacore.com>
2248
2249         * config/ia64/ia64.c (ia64_start_function): Add a guard.
2250
2251 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
2252
2253         PR target/48708
2254         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2255         vec_extract and vec_concat for non-SSE4_1 targets.
2256
2257 2011-04-21  Richard Guenther  <rguenther@suse.de>
2258
2259         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2260         return statements.
2261
2262 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2263
2264         * config/i386/cygming.h (union tree_node, TREE): Don't define or
2265         undefine.
2266         (FILE): Don't undefine.
2267
2268 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
2269
2270         * config/alpha/alpha.c (struct machine_function): Use rtx, not
2271         struct rtx_def *.
2272         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2273         struct rtx_def *.
2274         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2275         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2276         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2277         rtx_def *.
2278         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
2279         definitions where used.
2280         * config/microblaze/microblaze.h (struct microblaze_args): Use
2281         rtx, not struct rtx_def *.
2282         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2283         rtx_def *.
2284         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2285         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2286         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2287         not struct rtx_def *.
2288         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2289         struct rtx_def *.
2290         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2291         rtx_def *.
2292         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2293
2294 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2295
2296         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2297         operand_equal_p to compare DR_BASE_ADDRESSes.
2298         (vect_check_interleaving): Likewise.
2299
2300 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2301
2302         PR target/46329
2303         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2304         for all Neon struct constants.
2305
2306 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2307
2308         * target.def (legitimate_constant_p): New hook.
2309         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2310         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2311         * doc/tm.texi: Regenerate.
2312         * hooks.h (hook_bool_mode_rtx_true): Declare.
2313         * hooks.c (hook_bool_mode_rtx_true): Define.
2314         * system.h (LEGITIMATE_CONSTANT_P): Poison.
2315         * calls.c (precompute_register_parameters): Replace uses of
2316         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2317         (emit_library_call_value_1): Likewise.
2318         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2319         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2320         * ira-costs.c (scan_one_insn): Likewise.
2321         * recog.c (general_operand, immediate_operand): Likewise.
2322         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2323         * reload1.c (init_eliminable_invariants): Likewise.
2324
2325         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2326         mode argument.
2327         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2328         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2329         argument.
2330         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2331         * config/alpha/predicates.md (input_operand): Update call to
2332         alpha_legitimate_constant_p.
2333
2334         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2335         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2336         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2337         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2338         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2339         (arm_legitimate_constant_p): New functions.
2340         (arm_cannot_force_const_mem): Make static.
2341
2342         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2343
2344         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2345         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2346         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2347         instead of bfin_legitimate_constant_p.
2348         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
2349         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2350
2351         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2352
2353         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2354
2355         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2356         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2357         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2358         (frv_legitimate_constant_p): Make static.  Add a mode argument.
2359
2360         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2361         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2362         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2363
2364         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2365         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2366         * config/i386/i386.c (legitimate_constant_p): Rename to...
2367         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
2368         argument.
2369         (ix86_cannot_force_const_mem): Update accordingly.
2370         (ix86_legitimate_address_p): Likewise.
2371         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2372         * config/i386/i386.md: Update commentary.
2373
2374         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2375         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2376         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2377         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
2378
2379         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2380
2381         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2382         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2383         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2384         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
2385
2386         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2387         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2388         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2389
2390         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2391         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2392         (m32r_legitimate_constant_p): New function.
2393
2394         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2395         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2396         LEGITIMATE_CONSTANT_P.
2397         (LEGITIMATE_CONSTANT_P): Delete.
2398         * config/m68k/m68k.c (m68k_expand_prologue): Call
2399         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2400         (m68k_legitimate_constant_p): New function.
2401         * config/m68k/m68k.md: Update comments.
2402
2403         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2404         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2405         (mcore_legitimate_constant_p): New function.
2406
2407         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2408         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2409         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2410         Add a mode argument.
2411         (mep_legitimate_address): Update accordingly.
2412         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2413
2414         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2415         Delete.
2416         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2417         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2418         static.  Check OP's mode for VOIDmode.
2419         (microblaze_legitimate_constant_p): New function.
2420         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2421
2422         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2423         * config/mips/mips.c (mips_legitimate_constant_p): New function.
2424         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2425         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2426         * config/mips/predicates.md: Update comments.
2427
2428         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2429         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2430         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2431         (mmix_legitimate_constant_p): Make static, return a bool, and take
2432         a mode argument.
2433         (mmix_print_operand_address): Update accordingly.
2434
2435         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2436         Delete.
2437         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2438         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2439         static.  Add a mode argument.
2440         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2441
2442         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2443
2444         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2445         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2446         (pa_legitimate_constant_p): New function.
2447
2448         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2449
2450         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2451         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2452         (pdp11_legitimate_constant_p): New function.
2453
2454         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2455         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2456         (rs6000_legitimate_constant_p): New function.
2457
2458         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2459         (rx_legitimate_constant_p): ...this.
2460         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2461         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2462         (rx_legitimate_constant_p): ...this.
2463         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2464         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2465
2466         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2467         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2468         * config/s390/s390.c (legitimate_constant_p): Rename to...
2469         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
2470         and add a mode argument.
2471         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2472
2473         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2474
2475         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2476         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2477         (sh_legitimate_constant_p): New function.
2478
2479         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2480         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2481         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2482         (legitimate_constant_p): Rename to...
2483         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
2484         argument.
2485         (constant_address_p): Update accordingly.
2486
2487         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2488         argument and return a bool.
2489         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2490         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2491         (spu_legitimate_constant_p): Add a mode argument and return a bool.
2492         (spu_rtx_costs): Update accordingly.
2493         * config/spu/predicates.md (vec_imm_operand): Likewise.
2494
2495         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2496
2497         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2498         * config/v850/v850.c (v850_legitimate_constant_p): New function.
2499         (TARGET_LEGITIMATE_CONSTANT_P): Define.
2500
2501         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2502         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2503         * config/vax/vax.c (legitimate_constant_p): Likewise.
2504
2505         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2506         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2507         (xtensa_legitimate_constant_p): New function.
2508
2509 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
2510
2511         * target.def (cannot_force_const_mem): Add a mode argument.
2512         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2513         * doc/tm.texi: Regenerate.
2514         * hooks.h (hook_bool_mode_rtx_false): Declare.
2515         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2516         (hook_bool_mode_const_rtx_true): Likewise.
2517         (hook_bool_mode_rtx_false): New function.
2518         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2519         to be non-VOID.  Update call to cannot_force_const_mem.
2520         (find_reloads): Update accordingly.
2521         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2522         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2523         argument.
2524         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2525         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2526         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2527         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2528         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2529         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2530         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2531         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2532         (m68k_cannot_force_const_mem): ...this new function.
2533         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2534         argument.
2535         (mips_const_insns, mips_legitimize_const_move): Update calls.
2536         (mips_secondary_reload_class): Likewise.
2537         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2538         (pa_cannot_force_const_mem): ...this new function.
2539         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2540         (rs6000_cannot_force_const_mem): ...this new function.
2541         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2542         argument.
2543         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2544         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2545         to...
2546         (xtensa_cannot_force_const_mem): ...this new function.
2547
2548 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2549
2550         * config/mips/mips.c (mips16_build_function_stub): Call
2551         build_function_type_list instead of build_function_type.
2552         (mips16_build_call_stub): Likewise.
2553
2554 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2555
2556         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2557         instead of build_function_type.
2558
2559 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
2560
2561         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2562         instead of build_function_type.
2563
2564 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
2565
2566         PR target/48678
2567         * config/i386/i386.md (insv): Change operand 0 constraint to
2568         "register_operand".  Change operand 1 and 2 constraint to
2569         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
2570         * config/i386/sse.md (sse4_1_pinsrb): Export.
2571         (sse2_pinsrw): Ditto.
2572         (sse4_1_pinsrd): Ditto.
2573         (sse4_1_pinsrq): Ditto.
2574         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2575         * config/i386/i386.c (ix86_expand_pinsr): New.
2576
2577 2011-04-20  Easwaran Raman  <eraman@google.com>
2578
2579         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2580         containing union type only with -fstrict-aliasing.
2581
2582 2011-04-20  Jim Meyering  <meyering@redhat.com>
2583
2584         Remove useless if-before-free tests.
2585         * calls.c (expand_call, save_area): Likewise.
2586         * cfgcleanup.c (try_forward_edges): Likewise.
2587         * collect2.c (collect_execute): Likewise.
2588         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2589         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2590         * coverage.c (coverage_checksum_string): Likewise.
2591         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2592         * cselib.c (cselib_init): Likewise.
2593         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2594         (df_set_clean_cfg): Likewise.
2595         * function.c (free_after_compilation): Likewise.
2596         * gcc.c (do_spec_1, main): Likewise.
2597         * gcov.c (create_file_names): Likewise.
2598         * gensupport.c (identify_predicable_attribute): Likewise.
2599         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2600         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2601         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2602         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2603         * ipa-pure-const.c (local_pure_const): Likewise.
2604         * ipa-reference.c (propagate): Likewise.
2605         * ira-costs.c (free_ira_costs): Likewise.
2606         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2607         * matrix-reorg.c (mat_free): Likewise.
2608         * prefix.c (get_key_value): Likewise.
2609         * profile.c (compute_value_histograms): Likewise.
2610         * reload1.c (free_reg_equiv): Likewise.
2611         * sched-deps.c (free_deps): Likewise.
2612         * sel-sched-ir.c (fence_clear): Likewise.
2613         * sese.c (set_rename, if_region_set_false_region): Likewise.
2614         * tree-data-ref.c (free_rdg): Likewise.
2615         * tree-eh.c (lower_try_finally): Likewise.
2616         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2617         * tree-ssa-live.c (delete_var_map): Likewise.
2618         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2619         * tree-ssa-pre.c (phi_trans_add): Likewise.
2620
2621 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
2622
2623         PR tree-optimization/48611
2624         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2625         beyond ERT_MUST_NOT_THROW region.
2626
2627 2011-04-20  Catherine Moore  <clm@codesourcery.com>
2628
2629         * config/mips/mips.opt (mfix-24k): New.
2630         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2631         * config/mips/mips.md (length): Increase by 4 for stores if
2632         fixing 24K errata.
2633         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2634         all noreorder if fixing 24K errata.
2635         * doc/invoke.texi: Document mfix-24k.
2636
2637 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
2638
2639         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2640         quad-word modes, reduce to 9-bit index range when above 1016 limit.
2641
2642 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2643
2644         * config/arm/arm.c (arm_gen_constant): Move movw support ....
2645         (const_ok_for_op): ... to here.
2646
2647 2011-04-20  Kai Tietz  <ktietz@redhat.com>
2648
2649         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2650         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2651
2652 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
2653
2654         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2655
2656 2011-04-20  Richard Guenther  <rguenther@suse.de>
2657
2658         PR tree-optimization/47892
2659         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2660         are if-convertible.
2661
2662 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
2663
2664         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2665
2666 2011-04-20  Tristan Gingold  <gingold@adacore.com>
2667
2668         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2669
2670 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
2671
2672         PR target/18145
2673
2674         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2675         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2676         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2677         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2678         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2679
2680         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2681         New prototype.
2682
2683         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2684         (avr_asm_named_section, avr_asm_output_aligned_common,
2685         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2686         New functions to update...
2687         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2688         (avr_asm_init_sections): Overwrite section callbacks for
2689         data_section, bss_section.
2690         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2691         from here to...
2692         (avr_file_end): ...here.
2693
2694 2011-04-20  Richard Guenther  <rguenther@suse.de>
2695
2696         PR middle-end/48695
2697         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2698         objects and types here.  Adjust for their offset before comparing.
2699
2700 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2701
2702         * tree-vect-stmts.c (vectorizable_store): Only chain one related
2703         statement per copy.
2704
2705 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
2706
2707         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2708         (GIMPLE_H): Include $(INTERNAL_FN_H).
2709         (OBJS-common): Add internal-fn.o.
2710         (internal-fn.o): New rule.
2711         * internal-fn.def: New file.
2712         * internal-fn.h: Likewise.
2713         * internal-fn.c: Likewise.
2714         * gimple.h: Include internal-fn.h.
2715         (GF_CALL_INTERNAL): New gf_mask.
2716         (gimple_statement_call): Put fntype into a union with a new
2717         internal_fn field.
2718         (gimple_build_call_internal): Declare.
2719         (gimple_build_call_internal_vec): Likewise.
2720         (gimple_call_same_target_p): Likewise.
2721         (gimple_call_internal_p): New function.
2722         (gimple_call_internal_fn): Likewise.
2723         (gimple_call_fntype): Return null for internal calls.
2724         (gimple_call_set_fntype): Assert that the function is not internal.
2725         (gimple_call_set_fn): Likewise.
2726         (gimple_call_set_fndecl): Likewise.
2727         (gimple_call_set_internal_fn): New function.
2728         (gimple_call_addr_fndecl): Handle null functions.
2729         (gimple_call_return_type): Likewise null types.
2730         * gimple.c (gimple_build_call_internal_1): New function.
2731         (gimple_build_call_internal): Likewise.
2732         (gimple_build_call_internal_vec): Likewise.
2733         (gimple_call_same_target_p): Likewise.
2734         (gimple_call_flags): Handle calls to internal functions.
2735         (gimple_call_fnspec): New function.
2736         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2737         (gimple_has_side_effects): Handle null functions.
2738         (gimple_rhs_has_side_effects): Likewise.
2739         (gimple_call_copy_skip_args): Handle calls to internal functions.
2740         * cfgexpand.c (expand_call_stmt): Likewise.
2741         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2742         * gimple-fold.c (gimple_fold_call): Handle null functions.
2743         (gimple_fold_stmt_to_constant_1): Don't fold
2744         calls to internal functions.
2745         * gimple-low.c (gimple_check_call_args): Handle calls to internal
2746         functions.
2747         * gimple-pretty-print.c (dump_gimple_call): Likewise.
2748         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2749         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2750         (do_warn_unused_result): Likewise.
2751         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2752         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2753         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2754         the target of a call.
2755         (initialize_hash_element): Update accordingly.
2756         (hashable_expr_equal_p): Use gimple_call_same_target_p.
2757         (iterative_hash_hashable_expr): Handle calls to internal functions.
2758         (print_expr_hash_elt): Likewise.
2759         * tree-ssa-pre.c (can_value_number_call): Likewise.
2760         (eliminate): Handle null functions.
2761         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2762         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2763         (find_func_aliases): Likewise.
2764         * value-prof.c (gimple_ic_transform): Likewise.
2765         (gimple_indirect_call_to_profile): Likewise.
2766         * lto-streamer-in.c (input_gimple_stmt): Likewise.
2767         * lto-streamer-out.c (output_gimple_stmt): Likewise.
2768
2769 2011-04-19  Jan Hubicka  <jh@suse.cz>
2770
2771         * ipa-inline-transform.c (save_inline_function_body): Add comments.
2772         * ipa-inline.c (inline_small_functions): Compute summaries first,
2773         populate heap later.
2774
2775 2011-04-19  Jan Hubicka  <jh@suse.cz>
2776
2777         * cgraph.h (save_inline_function_body): Remove.
2778         * ipa-inline-transform.c: New file, broke out of...
2779         * ipa-inline.c: ... this one; Update toplevel comment.
2780         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2781         make global.
2782         (update_noncloned_frequencies): Move to ipa-inline-transform.c
2783         (cgraph_mark_inline_edge): Rename to inline_call; move to
2784         ipa-inline-transform.c.
2785         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2786         move to ipa-inline-transform.c
2787         (recursive_inlining, inline_small_functions, flatten_function,
2788         ipa_inline, inline_always_inline_functions,
2789         early_inline_small_functions): Update.
2790         (inline_transform): Move to ipa-inline-transform.c.
2791         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2792         Declare.
2793         * Makefile.in (ipa-inline-transform.o): New file.
2794         * cgraphunit.c (save_inline_function_body): Move to
2795         ipa-inline-transform.c
2796
2797 2011-04-19  DJ Delorie  <dj@redhat.com>
2798
2799         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
2800         registers if we already know there aren't any.
2801         (m32c_emit_epilogue): Don't emit a barrier here.
2802         (m32c_emit_eh_epilogue): Likewise.
2803         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
2804         operands at expand time.
2805         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
2806         int" wchar type.
2807         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
2808         duplicates.  Provide aliases instead.
2809         * config/m32c/prologue.md (eh_return): Emit a barrier here.
2810         (eh_epilogue): Add a "(return)" here as a hint to other parts of
2811         the compiler.
2812
2813 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
2814
2815         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
2816         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
2817         (general_or_i64_p, sparc_register_move_cost): New function.
2818
2819 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2820
2821         * doc/install.texi (Configuration, --enable-threads): Remove mach.
2822         Add lynx, mipssde.  Sort table.
2823
2824 2011-04-19  Xinliang David Li  <davidxl@google.com>
2825
2826         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
2827         not negative.
2828
2829 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
2830
2831         PR target/48678
2832         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
2833         is a SUBREG with non-MODE_INT mode inside of it.
2834
2835 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2836
2837         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
2838         also according to actual contants.
2839         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
2840         (gimple_fold_call): Use it.
2841         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
2842
2843 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2844
2845         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
2846         non-pointer assignments.
2847
2848 2011-04-19  Martin Jambor  <mjambor@suse.cz>
2849
2850         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
2851         account anc_offset and otr_type from the indirect edge info.
2852         * ipa-prop.c (get_ancestor_addr_info): New function.
2853         (compute_complex_ancestor_jump_func): Assignment analysis moved to
2854         get_ancestor_addr_info, call it.
2855         (ipa_note_param_call): Do not initialize information about polymorphic
2856         calls, return the indirect call graph edge.  Remove the last
2857         parameter, adjust all callers.
2858         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
2859         parameters.  Initialize polymorphic information in the indirect edge.
2860
2861 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
2862
2863         PR lto/48148
2864         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
2865         the types if they have different enumeration identifiers.
2866
2867 2011-04-19  Jan Hubicka  <jh@suse.cz>
2868
2869         * cgraph.h (cgraph_optimize_for_size_p): Declare.
2870         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
2871         * predict.c (cgraph_optimize_for_size_p): Break out from ...
2872         (optimize_function_for_size_p) ... here.
2873
2874 2011-04-19  Richard Guenther  <rguenther@suse.de>
2875
2876         PR lto/48207
2877         * tree.c (free_lang_data): Do not reset the decl-assembler-name
2878         langhook.
2879
2880 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
2881
2882         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
2883         if DECL_NO_INLINE_WARNING_P is set on the function.
2884
2885 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
2886
2887         PR fortran/47976
2888         * reload1.c (inc_for_reload): Return void. All callers changed.
2889         (emit_input_reload_insns): Don't try to delete previous output
2890         reloads to a register, or record spill_reg_store for autoincs.
2891
2892 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
2893
2894         * gengtype.h: Updated copyright year.
2895         (struct input_file_st): Add inpisplugin field.
2896         (type_fileloc): New function.
2897         * gengtype.c
2898         (write_typed_struct_alloc_def): Add gcc_assert.
2899         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
2900         (write_typed_alloc_defns): Don't output for plugin files.
2901         (input_file_by_name): Clear inpisplugin field.
2902         (main): Set inpisplugin field for plugin files.
2903
2904 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
2905
2906         * gengtype-state.c (string_eq): New.
2907         (read_state): Use string_eq instead of strcmp when creating the
2908         state_ident_tab.
2909
2910 2011-04-19  Wei Guozhi  <carrot@google.com>
2911
2912         PR target/47855
2913         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
2914         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
2915         linkage.
2916         * config/arm/constraints.md (Uu): New constraint.
2917         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
2918
2919 2011-04-19  Tristan Gingold  <gingold@adacore.com>
2920
2921         * config.gcc (-*-*-*vms): Added.
2922         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
2923         definitions moved.
2924         * config/vms/vms-ld.c: New file.
2925         * config/vms/vms-ar.c: New file.
2926         * config/vms/t-vmsnative: New file.
2927
2928 2011-04-18  Xinliang David Li  <davidxl@google.com>
2929
2930         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
2931
2932 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
2933
2934         PR middle-end/48661
2935         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
2936         if TREE_TYPE (v) is non-NULL.
2937
2938         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
2939         gimple_get_virt_mehtod_for_binfo.
2940         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
2941         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
2942         callers.
2943         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2944
2945 2011-04-18  Michael Matz  <matz@suse.de>
2946             Steve Ellcey  <sje@cup.hp.com>
2947
2948         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
2949         use its mode as source mode if it isn't VOIDmode.
2950
2951 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
2952
2953         * doc/passes.texi: Fill crossref nodes.
2954
2955 2011-04-18  Jim Meyering  <meyering@redhat.com>
2956
2957         Fix doubled-word typos in comments and strings
2958         * config/alpha/vms-unwind.h: s/for for/for/
2959         * config/arm/unwind-arm.h: Likewise.
2960         * config/microblaze/microblaze.c: Likewise.
2961         * config/sh/constraints.md: s/in in/in/
2962         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
2963
2964 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
2965
2966         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
2967         (AVX_FLOAT_MODE_P): Ditto.
2968         (AVX128_VEC_FLOAT_MODE_P): Ditto.
2969         (AVX256_VEC_FLOAT_MODE_P): Ditto.
2970         (AVX_VEC_FLOAT_MODE_P): Ditto.
2971         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
2972         (UNSPEC_MASKSTORE): Ditto.
2973         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
2974         Merge from <sse>_movmsk<ssemodesuffix> and
2975         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
2976         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
2977         iterator.
2978         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
2979         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
2980         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
2981
2982 2011-04-18  Jan Hubicka  <jh@suse.cz>
2983
2984         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
2985
2986         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
2987         (want_inline_function_called_once_p): Break out the logic from
2988         ipa_inline.
2989         (edge_badness): Ensure that profile is not misupdated.
2990         (lookup_recursive_calls): Prioritize by call frequencies.
2991         (inline_small_functions): Move program size estimates here;
2992         actually process whole queue even when unit growth has been
2993         met. (to properly compute inline_failed reasons and for the
2994         case unit size decrease.) Revisit comments on recursive inlining.
2995         (ipa_inline): Remove unit summary code; first inline hot calls
2996         of functions called once, cold calls next.
2997         (order, nnodes): Remove unused variables.
2998         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
2999         (GTFILES): Remove ipa-inline.c
3000         * sel-sched.c (fill_insns): Silence uninitialized var warning.
3001
3002 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3003
3004         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3005
3006 2011-04-18  Jie Zhang  <jie@codesourcery.com>
3007             Richard Earnshaw  <rearnsha@arm.com>
3008
3009         * arm.c (neon_builtin_type_bits): Remove.
3010         (typedef enum neon_builtin_mode): New.
3011         (T_MAX): Don't define.
3012         (typedef enum neon_builtin_datum): Remove bits, codes[],
3013         num_vars and base_fcode.  Add mode, code and fcode.
3014         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3015         VAR10): Change accordingly.
3016         (neon_builtin_data[]): Change accordingly
3017         (arm_init_neon_builtins): Change accordingly.
3018         (neon_builtin_compare): Remove.
3019         (locate_neon_builtin_icode): Remove.
3020         (arm_expand_neon_builtin): Change accordingly.
3021
3022         * arm.h (enum arm_builtins): Move to ...
3023         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3024
3025         * arm.c (arm_builtin_decl): Declare.
3026         (TARGET_BUILTIN_DECL): Define.
3027         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3028         (arm_builtin_decls[]): New.
3029         (arm_init_neon_builtins): Store builtin declarations in
3030         arm_builtin_decls[].
3031         (arm_init_tls_builtins): Likewise.
3032         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
3033         (arm_builtin_decl): New.
3034
3035 2011-04-18  Richard Guenther  <rguenther@suse.de>
3036
3037         * tree.c (upper_bound_in_type): Build properly canonicalized
3038         INTEGER_CSTs.
3039         (lower_bound_in_type): Likewise.
3040
3041 2011-04-18  Richard Guenther  <rguenther@suse.de>
3042
3043         * gimple.h (gimple_call_addr_fndecl): New function.
3044         (gimple_call_fndecl): Use it.
3045         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3046         for direct calls.
3047         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3048         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3049
3050 2011-04-18  Richard Guenther  <rguenther@suse.de>
3051
3052         PR middle-end/48650
3053         * tree.c (build_string): STRING_CST is now derived from tree_typed.
3054
3055 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3056
3057         PR lto/48492
3058         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3059         DECL_IN_CONSTANT_POOL without RTL.
3060
3061 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
3062             Ira Rosen  <ira.rosen@linaro.org>
3063
3064         PR target/48252
3065         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3066         to match neon_vzip/vuzp/vtrn_internal.
3067         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3068         outputs explicitly dependent on both inputs.
3069         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3070
3071 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
3072
3073         PR tree-optimization/48616
3074         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3075         whether the shift is by scalar or vector based on whether all SLP
3076         scalar stmts have the same rhs.
3077
3078 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
3079
3080         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3081         memory operands.
3082
3083 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
3084
3085         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3086         registers.
3087
3088 2011-04-17  Jan Hubicka  <jh@suse.cz>
3089
3090         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3091         * cgrpahunit.c (cgraph_finalize_function): Do not set
3092         finalized_by_frontend.
3093         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3094         finalized_by_frontend.
3095
3096 2011-04-17  Jan Hubicka  <jh@suse.cz>
3097
3098         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3099         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3100         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3101         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3102         method.
3103         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3104         gimple-fold.c
3105         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3106
3107 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3108
3109         PR lto/48538
3110         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3111         is non-null before accessing it.
3112         (input_cgraph): Remove trailing spaces.
3113
3114 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3115
3116         * params.def (sms-min-sc): New param flag.
3117         * modulo-sched.c (sms_schedule): Use it.
3118         * doc/invoke.texi (sms-min-sc): Document it.
3119
3120 2011-04-17  Jan Hubicka  <jh@suse.cz>
3121
3122         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3123         present, also set gimple_call_set_cannot_inline.
3124         * ipa-inline.c: Update toplevel comment.
3125         (MAX_TIME): Remove.
3126         (cgraph_clone_inlined_nodes): Fix linebreaks.
3127         (cgraph_check_inline_limits): Restructure to ...
3128         (caller_growth_limits): ... this one; be more tolerant
3129         on growth in nested inline chains; add explanatory comment;
3130         fix stack accounting thinko introduced by previous patch.
3131         (cgraph_default_inline_p): Remove.
3132         (report_inline_failed_reason): New function.
3133         (can_inline_edge_p): New function.
3134         (can_early_inline_edge_p): New function.
3135         (leaf_node_p): Move upwards in file.
3136         (want_early_inline_function_p): New function.
3137         (want_inline_small_function_p): New function.
3138         (want_inline_self_recursive_call_p): New function.
3139         (cgraph_edge_badness): Rename to ...
3140         (edge_badness) ... this one; fix linebreaks.
3141         (update_edge_key): Update call of edge_baddness; add
3142         detailed dump about queue updates.
3143         (update_caller_keys): Use can_inline_edge_p and
3144         want_inline_small_function_p.
3145         (cgraph_decide_recursive_inlining): Rename to...
3146         (recursive_inlining): Use can_inline_edge_p and
3147         want_inline_self_recursive_call_p; simplify and remove no longer
3148         valid FIXME.
3149         (cgraph_set_inline_failed): Remove.
3150         (add_new_edges_to_heap): Use can_inline_edge_p and
3151         want_inline_small_function_p.
3152         (cgraph_decide_inlining_of_small_functions): Rename to ...
3153         (inline_small_functions): ... this one; cleanup; use
3154         can/want predicates; cleanup debug ouput; work edges till fibheap
3155         is exhausted and do not stop once unit growth is reached; remove
3156         later loop processing remaining edges.
3157         (cgraph_flatten): Rename to ...
3158         (flatten_function): ... this one; use can_inline_edge_p
3159         and can_early_inline_edge_p predicates.
3160         (cgraph_decide_inlining): Rename to ...
3161         (ipa_inline): ... this one; remove unreachable nodes before
3162         inlining functions called once; simplify the pass.
3163         (cgraph_perform_always_inlining): Rename to ...
3164         (inline_always_inline_functions): ... this one; use
3165         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3166         (cgraph_decide_inlining_incrementally): Rename to ...
3167         (early_inline_small_functions): ... this one; simplify
3168         using new predicates; cleanup; make dumps prettier.
3169         (cgraph_early_inlining): Rename to ...
3170         (early_inliner): newer inline regular functions into always-inlines;
3171         fix updating of call stmt summaries.
3172         (pass_early_inline): Update for new names.
3173         (inline_transform): Fix formating.
3174         (gate_cgraph_decide_inlining): Rename to ...
3175         (pass_ipa_inline): ... this one.
3176         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3177         * ipa-inline-analysis.c (dump_inline_summary): Update.
3178         (compute_inline_parameters): Do not compute disregard_inline_limits;
3179         look for mismatching arguments.
3180         (estimate_growth): Fix handlig of non-trivial self recursion.
3181         (inline_read_summary): Do not read info->disregard_inline_limits.
3182         (inline_write_summary): Do not write info->disregard_inline_limits.
3183         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3184         and move all checks into can_inline_edge_p predicate; re-enable code
3185         comparing optimization levels.
3186         (expand_call_inline): Do not test inline_forbidden_into_p.
3187         * Makefile.in (ipa-inline.o): Update arguments.
3188
3189 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3190
3191         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3192
3193 2011-04-17  Revital Eres  <revital.eres@linaro.org>
3194
3195         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3196
3197 2011-04-17  Michael Matz  <matz@suse.de>
3198
3199         PR tree-optimization/48622
3200         PR lto/48645
3201         * ipa-inline-analysis.c (inline_read_summary): Read size/time
3202         in same order as they're written.
3203
3204 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3205
3206         * config/pa/predicates.md: Reorganize and simplify predicates.
3207         Eliminate duplicate code checks.
3208         (arith_operand): Rename to arith14_operand
3209         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3210         * config/pa/pa.md: Use renamed operands.
3211         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3212         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3213         arith11_operand, adddi3_operand, indexed_memory_operand,
3214         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3215         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3216         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3217         move_dest_operand, move_src_operand, prefetch_cc_operand,
3218         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3219         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3220         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3221         div_operand, int5_operand, movb_comparison_operator,
3222         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3223         arith_double_operand, ireg_operand, lhs_lshift_operand,
3224         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3225         integer_store_memory_operand): Likewise.
3226         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3227         (integer_store_memory_operand, read_only_operand,
3228         function_label_operand, borx_reg_operand,
3229         non_hard_reg_operand): Likewise.
3230         (eq_neq_comparison_operator): Delete unused operator.
3231         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3232         function_label_operand.
3233         (emit_move_sequence): Likewise.
3234
3235 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3236
3237         * config/i386/sse.md (sseunpackmode): New mode attribute.
3238         (ssepackmode): Ditto.
3239         (vec_pack_trunc_<mode>): Macroize expander from
3240         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3241         (vec_unpacks_lo_<mode>): Macroize expander from
3242         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3243         (vec_unpacks_hi_<mode>): Macroize expander from
3244         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3245         (vec_unpacku_lo_<mode>): Macroize expander from
3246         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3247         (vec_unpacku_hi_<mode>): Macroize expander from
3248         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3249         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3250         ix86_expand_sse4_unpack.
3251         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3252
3253 2011-04-16  Jan Hubicka  <jh@suse.cz>
3254
3255         * cgraphbuild.c: Include ipa-inline.h.
3256         (reset_inline_failed): Use initialize_inline_failed.
3257         * cgraph.c: Include ipa-inline.h.
3258         (cgraph_create_node_1): Do not initialize estimated_growth.
3259         (initialize_inline_failed): More to ipa-inline-analysis.c
3260         (dump_cgraph_node): Do not dump inline flags.
3261         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3262         and disregard_inline_limits flags.
3263         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3264         time, size, estimated_growth.
3265         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3266         Update.
3267         * cgraphunit.c (cgraph_decide_is_function_needed): Use
3268         DECL_DISREGARD_INLINE_LIMITS.
3269         (cgraph_analyze_function): Do not initialize
3270         node->local.disregard_inline_limits.
3271         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3272         inlinable, versionable and disregard_inline_limits.
3273         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3274         cgraph_check_inline_limits, cgraph_default_inline_p,
3275         cgraph_edge_badness, update_caller_keys, update_callee_keys,
3276         add_new_edges_to_heap): Update.
3277         (cgraph_decide_inlining_of_small_function): Update; set
3278         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3279         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3280         cgraph_decide_inlining_incrementally): Update.
3281         * ipa-inline.h (inline_summary): Add inlinable, versionable,
3282         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3283         time, size and estimated_growth parameters.
3284         (estimate_edge_growth): Update.
3285         (initialize_inline_failed): Declare.
3286         * ipa-split.c: Include ipa-inline.h
3287         (execute_split_functions): Update.
3288         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3289         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3290         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3291         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3292         estimated_growth to INT_MIN.
3293         (inline_node_duplication_hook): Likewise.
3294         (dump_inline_summary): Dump new fields.
3295         (compute_inline_parameters): Update.
3296         (estimate_edge_time, estimate_time_after_inlining,
3297         estimate_size_after_inlining, estimate_growth, inline_read_summary,
3298         inline_write_summary):
3299         (initialize_inline_failed): Move here from cgraph.c.
3300         * tree-sra.c: Include ipa-inline.h.
3301         (ipa_sra_preliminary_function_checks): Update.
3302         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3303         ipa-inline.h.
3304
3305 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
3306
3307         * config/i386/sse.md (V16): New mode iterator.
3308         (VI1, VI8): Ditto.
3309         (AVXMODEQI, AVXMODEDI): Remove.
3310         (sse2, sse3): New mode attribute.
3311         (mov<mode>): Use V16 mode iterator.
3312         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3313         (push<mode>1): Use V16 mode iterator.
3314         (movmisalign<mode>): Ditto.
3315         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3316         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3317         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3318         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3319         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3320         avx_movdqu<avxmodesuffix>.
3321         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3322         *avx_movdqu<avxmodesuffix>.
3323         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3324         avx_lddqu<avxmodesuffix>.
3325         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3326         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3327         avx_movnt<AVXMODEDI:mode>.
3328         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3329         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3330
3331 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
3332
3333         PR target/48629
3334         * haifa-sched.c (prune_ready_list, schedule_block): Use
3335         sched_pressure_p rather than flag_sched_pressure.
3336
3337 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
3338
3339         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3340         cgraph_get_node instead of cgraph_get_create_node.
3341
3342 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
3343
3344         * cfgexpand.c (expand_debug_expr): Use
3345         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3346
3347 2011-04-15  Michael Matz  <matz@suse.de>
3348
3349         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3350         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3351         * function.c (gimplify_parameters): Ditto.
3352         * gimplify.c (gimplify_vla_decl): Ditto.
3353
3354         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3355         (gimple_call_set_alloca_for_var): New inline function.
3356         (gimple_call_alloca_for_var_p): Ditto.
3357         * gimple.c (gimple_build_call_from_tree): Remember
3358         CALL_ALLOCA_FOR_VAR_P state.
3359         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3360
3361         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3362         calls if they were for VLA objects.
3363
3364 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3365
3366         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3367         of ADR_EXPRs.
3368
3369 2011-04-15  Martin Jambor  <mjambor@suse.cz>
3370
3371         PR middle-end/48601
3372         * tree-emutls.c (lower_emutls_function_body): Call
3373         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
3374         result is non-NULL.
3375
3376 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3377
3378         * c-decl.c (detect_field_duplicates): Call
3379         objc_detect_field_duplicates instead of objc_get_interface_ivars.
3380
3381 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
3382
3383         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3384         * gimple.c (gimple_asm_clobbers_memory_p): Define.
3385         * ipa-pure-const.c (check_stmt): Call it.
3386         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3387
3388 2011-04-15  Richard Guenther  <rguenther@suse.de>
3389
3390         PR tree-optimization/48290
3391         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3392         Properly decide inhibiting propagation based on the valueized
3393         operand.  Do loop-closed SSA form preserving here ...
3394         (init_copy_prop): ... not here.
3395
3396 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
3397
3398         PR target/48612
3399         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3400         (*ieee_smax<mode>3): Likewise.
3401
3402 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3403
3404         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3405         Replace match_operand with match_dup for the third operand in
3406         these expanders.
3407
3408 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3409
3410         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3411         to track processing of conditionals.  Update all callers.
3412         (try_combine, simplify_if_then_else): Update.
3413
3414 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
3415
3416         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3417         -fsched-pressure.
3418
3419 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
3420
3421         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3422         instead of match_operand for operand 3.
3423
3424 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
3425
3426         * recog.h (insn_operand_data): Add an "allows_mem" field.
3427         * genoutput.c (output_operand_data): Initialize it.
3428         * optabs.c (maybe_legitimize_operand_same_code): New function.
3429         (maybe_legitimize_operand): Use it when matching the original
3430         op->value.
3431
3432 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3433
3434         * gimplify.c: Fix issues in comments throughout.
3435         (voidify_wrapper_expr): Fix long line.
3436         (build_stack_save_restore): Likewise.
3437         (gimplify_loop_expr): Likewise.
3438         (gimplify_compound_lval): Likewise.
3439         (gimplify_init_ctor_eval): Likewise.
3440         (gimplify_modify_expr_rhs): Likewise.
3441         (omp_notice_threadprivate_variable): Likewise.
3442
3443 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3444
3445         * cfgexpand.c (expand_call_stmt): Convert the function type to the
3446         original one if this is not a builtin function.
3447
3448 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
3449
3450         PR target/48605
3451         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3452         offset it as needed based on top 2 bits in operands[3], change
3453         MEM mode to SFmode and mask those 2 bits away from operands[3].
3454
3455 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3456
3457         * c-parser.c (c_parser_objc_protocol_definition): Updated for
3458         change from objc_declare_protocols() to objc_declare_protocol().
3459
3460 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
3461
3462         * config/i386/sse.md (sse4_1): New mode attribute.
3463         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3464         avx_blend<ssemodesuffix><avxmodesuffix> and
3465         sse4_1_blend<ssemodesuffix> using VF mode iterator.
3466         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3467         avx_blendv<ssemodesuffix><avxmodesuffix> and
3468         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3469         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3470         avx_dp<ssemodesuffix><avxmodesuffix> and
3471         sse4_1_dp<ssemodesuffix> using VF mode iterator.
3472         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3473         (sse4_1_packusdw): Merge with *avx_packusdw.
3474         (sse4_1_pblendvb): Merge with *avx_pblendvb.
3475         (sse4_1_pblendw): Merge with *avx_pblendw.
3476         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3477         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3478         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3479         VF mode iterator.
3480         (sse4_1_round<ssescalarmodesuffix>): Merge with
3481         *avx_round<ssescalarmodesuffix>.
3482         (aesenc): Merge with *avx_aesenc.
3483         (aesenclast): Merge with *avx_aesenclast.
3484         (aesdec): Merge with *avx_aesdec.
3485         (aesdeclast): Merge with *avx_aesdeclast.
3486         (pclmulqdq): Merge with *pclmulqdq.
3487         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3488         New predicate.
3489         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3490
3491 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3492
3493         PR middle-end/48608
3494         * cfgexpand.c (get_decl_align_unit): Renamed to ...
3495         (align_local_variable): This.  Update DECL_ALIGN.
3496         (add_stack_var): Updated.
3497         (expand_one_stack_var): Likewise.
3498
3499 2011-04-14  Richard Guenther  <rguenther@suse.de>
3500
3501         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3502         Remove.
3503         (dse_initialize_block_local_data, dse_leave_block,
3504         record_voperand_set, get_stmt_uid): Likewise.
3505         (dse_possible_dead_store_p): Allow any kind of killing stmt.
3506         (dse_optimize_stmt): Remove voperand set handling code.
3507         Simplify and improve to handle any kind of killing stmt.
3508         (dse_record_phi): Remove.
3509         (dse_enter_block): Simplify.
3510         (tree_ssa_dse): Likewise.
3511         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3512
3513 2011-04-14  Jan Hubicka  <jh@suse.cz>
3514
3515         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3516         * cgraph.h (struct inline_summary): Move to ipa-inline.h
3517         (cgraph_local_info): Remove inline_summary.
3518         * ipa-cp.c: Include ipa-inline.h.
3519         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3520         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3521         accesor.
3522         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3523         (input_overwrite_node): Do not set inline summary.
3524         (input_node): Do not stream inline summary.
3525         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3526         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3527         growth; we do not have inline parameters computed for that anyway.
3528         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3529         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3530         (inline_summary_t): New type and VECtor.
3531         (debug_inline_summary, dump_inline_summaries): Declare.
3532         (inline_summary): Use VOCtor.
3533         (estimate_edge_growth): Kill hack computing call stmt size directly.
3534         * lto-section-in.c (lto_section_name): Add inline section.
3535         * ipa-inline-analysis.c: Include lto-streamer.h
3536         (node_removal_hook_holder, node_duplication_hook_holder): New holders
3537         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3538         (inline_summary_vec): Define.
3539         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3540         dump_inline_summaries): New functions.
3541         (estimate_function_body_sizes): Properly compute size/time of outgoing
3542         calls.
3543         (compute_inline_parameters): Alloc inline_summary; do not compute
3544         size/time of incomming calls.
3545         (estimate_edge_time): Avoid missing time summary hack.
3546         (inline_read_summary): Read inline summary info.
3547         (inline_write_summary): Write inline summary info.
3548         (inline_free_summary): Free all hooks and inline summary vector.
3549         * lto-streamer.h: Add LTO_section_inline_summary section.
3550         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3551         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3552
3553 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3554
3555         * tree-vectorizer.h (vect_strided_store_supported): Add a
3556         HOST_WIDE_INT argument.
3557         (vect_strided_load_supported): Likewise.
3558         (vect_permute_store_chain): Return void.
3559         (vect_transform_strided_load): Likewise.
3560         (vect_permute_load_chain): Delete.
3561         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3562         count argument.  Check that the count is a power of two.
3563         (vect_strided_load_supported): Likewise.
3564         (vect_permute_store_chain): Return void.  Update after above changes.
3565         Assert that the access is supported.
3566         (vect_permute_load_chain): Likewise.
3567         (vect_transform_strided_load): Return void.
3568         * tree-vect-stmts.c (vectorizable_store): Update calls after
3569         above interface changes.
3570         (vectorizable_load): Likewise.
3571         (vect_analyze_stmt): Don't check for strided powers of two here.
3572
3573 2011-04-14  Richard Guenther  <rguenther@suse.de>
3574
3575         PR tree-optimization/48590
3576         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3577         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3578         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3579         BUILT_IN_STACK_SAVE.
3580         * tree-ssa-dce.c (propagate_necessity): Handle
3581         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3582
3583 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
3584
3585         * c-parser.c (c_parser_objc_class_declaration): Updated call to
3586         objc_declare_class.
3587
3588 2011-04-14  Richard Guenther  <rguenther@suse.de>
3589
3590         * tree.h (get_object_alignment_1): Declare.
3591         * builtins.c (get_object_alignment_1): Split out worker from ...
3592         (get_object_alignment): ... here.
3593         * fold-const.c (get_pointer_modulus_and_residue): Use
3594         get_object_alignment_1.
3595
3596 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3597
3598         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3599         type parameter.
3600         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3601         parameter.  Generalise code to handle arrays as well as vectors.
3602         (vect_setup_realignment): Update accordingly.
3603         * tree-vect-stmts.c (vectorizable_store): Likewise.
3604         (vectorizable_load): Likewise.
3605
3606 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3607
3608         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3609         within the per-copy loop.
3610
3611 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3612
3613         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3614         in the dump file.
3615
3616 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
3617
3618         * doc/options.texi (Negative): Explicitly mention that the
3619         Negative chain must be circular.
3620
3621 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
3622
3623         * function.h (block_chainon): Declare.
3624         * function.c (block_chainon): Define.
3625
3626 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
3627             Eric Weddington  <eric.weddington@atmel.com>
3628             Georg-Johann Lay <avr@gjlay.de>
3629
3630         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3631         New Includes
3632         (avr_init_builtins, avr_expand_builtin,
3633         avr_expand_delay_cycles, avr_expand_unop_builtin,
3634         avr_expand_binop_builtin ): New functions.
3635         (avr_builtin_id): New enum
3636         (struct avr_builtin_description): New struct
3637         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3638         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3639
3640         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3641         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3642         UNSPECV_DELAY_CYCLES): new enumeration values
3643         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3644         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3645         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3646         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3647         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3648         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3649         "fmulsu"): New insns
3650
3651         * config/avr/avr-c.c: fix line endings
3652         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3653         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3654         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3655         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3656         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3657
3658         * doc/extend.texi (AVR Built-in Functions): New node
3659         (Target Builtins): Add documentation of AVR
3660         built-in functions.
3661
3662 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
3663
3664         PR target/44643
3665         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3666         alone. Error if non-const data has attribute progmem.
3667
3668 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3669
3670         * tree.h (struct tree_constructor): Include tree_typed instead of
3671         tree_common.
3672         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3673         TS_TYPED instead of TS_COMMON.
3674
3675 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
3676
3677         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3678         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3679         (sse2_psadbw): Merge with *avx_psadbw.
3680         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3681         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3682         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3683         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3684         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3685         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3686         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3687         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3688         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3689         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3690         (ssse3_palignrti): Merge with *avx_palignrti.
3691
3692 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3693
3694         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3695         * tree-ssanames.c (fini_ssanames): VEC_free it.
3696         (make_ssa_name_fn): Update for VECness of free_ssanames.
3697         (release_ssa_name, release_dead_ssa_names): Likewise.
3698         * tree.h (struct tree_ssa_name): Include tree_typed instead of
3699         tree_common.
3700         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3701         TS_TYPED instead of TS_COMMON.
3702
3703 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3704
3705         * postreload-gcse.c (gcse_after_reload_main): Add calls to
3706         statistics_counter_event.
3707         * tree-ssa-copyrename.c (stats): Define.
3708         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
3709         statistics_counter_event.
3710         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3711         (bswap_stats, widen_mul_stats): Define.
3712         (insert_reciprocals): Increment rdivs_inserted.
3713         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
3714         rfuncs_inserted.  Add calls to statistics_counter_event.
3715         (execute_cse_sincos_1): Increment inserted.
3716         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
3717         statistics_counter_event.
3718         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
3719         of bswap_stats.  Add calls to statistics_counter_event.
3720         (convert_mult_to_widen): Increment widen_mults_inserted.
3721         (convert_plusminus_to_widen): Increment maccs_inserted.
3722         (convert_mult_to_fma): Increment fmas_inserted.
3723         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
3724         calls to statistics_counter_event.
3725
3726 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
3727
3728         PR rtl-optimization/48455
3729         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3730         `temp_costs->mem_cost'.
3731
3732 2011-04-13  Jan Hubicka  <jh@suse.cz>
3733
3734         * ipa-inline.h: New file.
3735         * ipa-inline-analysis.c: New file. Broken out of ...
3736         * ipa-inline.c: ... this file; update toplevel comment;
3737         include ipa-inline.h
3738         (inline_summary): Move to ipa-inline.h
3739         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3740         ipa-inline-analysis.c.
3741         (cgraph_estimate_time_after_inlining): Rename to
3742         estiamte_time_after_inlining; move to ipa-inline-analysis.c
3743         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3744         to estimate_edge_growth.
3745         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3746         rename to estimate_size_after_inlining.
3747         (cgraph_mark_inline_edge): Update for new naming convention.
3748         (cgraph_check_inline_limits): Likewise.
3749         (cgraph_edge_badness): Likewise.
3750         (cgraph_decide_recursive_inlining): Likewise.
3751         (cgraph_decide_inlining_of_small_functions): Likewise.
3752         (cgraph_decide_inlining_incrementally): Likewise.
3753         (cgraph_estimate_growth): Rename to estimate_growth; move to
3754         ipa-inline-analysis.c.
3755         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3756         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3757         (compute_inline_parameters): Likewise.
3758         (compute_inline_parameters_for_current): Likewise.
3759         (pass_inline_parameters): Likewise.
3760         (inline_indirect_intraprocedural_analysis): Likewise.
3761         (analyze_function): Rename to inline_analyze_function; likewise.
3762         (add_new_function): Move to ipa-inline-analysis.c.
3763         (inline_generate_summary): Likewise.
3764         (inline_read_summary): Likewise.
3765         (inline_write_summary): Likewise.
3766         * Makefile.in (ipa-inline-analysis.c): New file.
3767
3768 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3769
3770         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3771         * configure: Regenerate.
3772
3773 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
3774
3775         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3776         instead of tree_common.
3777         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3778         Likewise.
3779         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3780         TS_TYPED rather than TS_COMMON.
3781         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3782
3783 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
3784
3785         PR target/45263
3786         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3787         r20 around calls of __tablejump_elpm__
3788
3789 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
3790
3791         PR middle-end/48591
3792         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3793         NULL.
3794         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3795
3796 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
3797
3798         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3799         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
3800         (cfi_vec): New typedef.
3801         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
3802         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
3803         (cie_cfi_vec): New static variable.
3804         (cie_cfi_head): Delete.
3805         (add_cfi): Accept a cfi_vec * as first argument. All callers and
3806         declaration changed. Use vector rather than list operations.
3807         (new_cfi): Don't initialize the dw_cfi_next field.
3808         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
3809         rather than list operations.
3810         (lookup_cfa): Use vector rather than list operations.
3811         (output_cfis): New argument upto. Accept a cfi_vec rather than
3812         a dw_cfi_ref list head as argument. All callers changed.
3813         Iterate over the vector using upto as a maximum index.
3814         (output_all_cfis): New static function.
3815         (output_fde): Use vector rather than list operations. Use the
3816         new upto argument for output_cfis rather than manipulating a
3817         list.
3818         (dwarf2out_begin_prologue): Change initializations to match
3819         new struct members.
3820         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
3821         from the vector length rather than searching for the end of a list.
3822         Use output_all_cfis.
3823         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
3824
3825 2011-04-13  Nick Clifton  <nickc@redhat.com>
3826
3827         * config/rx/rx.md (movmemsi): Do not use this pattern when
3828         volatile pointers are involved.
3829
3830 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
3831
3832         * config/i386/sse.md (pinsrbits): Remove.
3833         (sse2_packsswb): Merge with *avx_packsswb.
3834         (sse2_packssdw): Merge with *avx_packssdw.
3835         (sse2_packuswb): Merge with *avx_packuswb.
3836         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
3837         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
3838         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
3839         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
3840         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
3841         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
3842         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
3843         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
3844         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
3845         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
3846         (sse2_loadld): Merge with *avx_loadld.
3847         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
3848         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
3849         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
3850         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
3851         (vec_concatv2di): Merge with *vec_concatv2di_avx.
3852
3853 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
3854
3855         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
3856         calling TREE_CHAIN.
3857         * print-tree.c (print_node): Likewise.
3858         * tree-inline.c (copy_tree_r): Likewise.
3859         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
3860         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
3861         instead of TS_COMMON.
3862         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
3863         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
3864         (copy_node_stat): Zero TREE_CHAIN only if necessary.
3865         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
3866         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
3867         ...and these...
3868         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
3869         * tree.h: ...here.
3870         (TREE_CHAIN): Check for a TS_COMMON structure.
3871         (TREE_TYPE): Check for a TS_TYPED structure.
3872
3873 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
3874
3875         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3876         cgraph_get_create_node instead of cgraph_node.
3877
3878 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3879
3880         * c-parser.c (c_parser_initelt): Updated call to
3881         objc_build_message_expr.
3882         (c_parser_postfix_expression): Likewise.
3883
3884 2011-04-12  Kai Tietz  <ktietz@redhat.com>
3885
3886         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
3887         MASK_MS_BITFIELD_LAYOUT bit.
3888
3889 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
3890
3891         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
3892         assert it is always true.
3893         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
3894         moves.
3895
3896 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
3897
3898         * c-parser.c (c_lex_one_token): Rewritten conditional used when
3899         compiling Objective-C to be more efficient.
3900
3901 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
3902
3903         * opts-common.c (decode_cmdline_options_to_array): Remove variable
3904         argv_copied.
3905
3906 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3907
3908         * recog.h, genoutput.c, optabs.c: Revert last patch.
3909
3910 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3911
3912         PR target/48090
3913         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
3914
3915 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3916
3917         * recog.h (insn_operand_data): Add an "allows_mem" field.
3918         * genoutput.c (output_operand_data): Initialize it.
3919         * optabs.c (maybe_legitimize_operand_same_code): New function.
3920         (maybe_legitimize_operand): Use it when matching the original
3921         op->value.
3922
3923 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3924
3925         * genpreds.c (process_define_predicate): Move most processing
3926         to gensupport.c.  Continue to validate the expression.
3927         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
3928         (process_define_predicate): Move processing to gensupport.c.
3929         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
3930         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
3931         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
3932         argument.
3933         (valid_predicate_name_p): New function, split out from old
3934         genpreds.c:process_define_predicate.
3935         (process_define_predicate): New function, combining code from
3936         old genpreds.c and genrecog.c functions.
3937         (process_rtx): Call it for DEFINE_PREDICATE and
3938         DEFINE_SPECIAL_PREDICATE.
3939
3940 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
3941
3942         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
3943         size of a '%A' memory reference.
3944         (T_DREG, T_QREG): New neon_builtin_type_bits.
3945         (arm_init_neon_builtins): Assert that the load and store operands
3946         are neon_struct_operands.
3947         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
3948         (NEON_ARG_MEMORY): New builtin_arg.
3949         (neon_dereference_pointer): New function.
3950         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
3951         Handle NEON_ARG_MEMORY.
3952         (arm_expand_neon_builtin): Update after above interface changes.
3953         Use NEON_ARG_MEMORY for loads and stores.
3954         * config/arm/predicates.md (neon_struct_operand): New predicate.
3955         * config/arm/iterators.md (V_two_elem): Tweak formatting.
3956         (V_three_elem): Use BLKmode for accesses that have no associated mode.
3957         (V_four_elem): Tweak formatting.
3958         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
3959         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
3960         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
3961         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
3962         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
3963         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
3964         (neon_vst4<mode>): Replace pointer operand with a memory operand.
3965         Use %A in the output template.
3966         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
3967         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
3968         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
3969         the width of the memory access.  Remove post-increment.
3970         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
3971
3972 2011-04-12  Nick Clifton  <nickc@redhat.com>
3973
3974         * config/v850/v850.c (expand_prologue): Do not use the CALLT
3975         instruction for interrupt handlers if the target is the basic V850
3976         architecture.
3977         (expand_epilogue): Likewise.
3978
3979 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
3980
3981         PR rtl-optimization/48549
3982         * combine.c (propagate_for_debug): Also stop after BB_END of
3983         this_basic_block.  Process LAST and just stop processing after it.
3984         (combine_instructions): If last_combined_insn has been deleted,
3985         set last_combined_insn to its PREV_INSN.
3986
3987 2011-04-12  Richard Guenther  <rguenther@suse.de>
3988
3989         PR tree-optimization/46076
3990         * gimple.h (struct gimple_statement_call): Add fntype field.
3991         (gimple_call_fntype): Adjust.
3992         (gimple_call_set_fntype): New function.
3993         * gimple.c (gimple_build_call_1): Set the call function type.
3994         * gimplify.c (gimplify_call_expr): Preserve the function
3995         type the frontend used for the call.
3996         (gimplify_modify_expr): Likewise.
3997         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
3998         function type.
3999         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4000         function type.
4001         * tree-ssa.c (useless_type_conversion_p): Function pointer
4002         conversions are useless.
4003
4004 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4005
4006         * cgraph.h (cgraph_node): Remove function declaration.
4007         (cgraph_create_node): Declare.
4008         (cgraph_get_create_node): Likewise.
4009         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4010         Updated all callers.
4011         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4012         the decl does not already exist.  Call cgraph_get_create_node instead
4013         of cgraph_node.
4014         (cgraph_get_create_node): New function.
4015         (cgraph_same_body_alias): Update comment.
4016         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4017         assert it does not return NULL.
4018         (cgraph_update_edges_for_call_stmt): Likewise.
4019         (cgraph_clone_edge): Likewise.
4020         (cgraph_create_virtual_clone): Likewise.
4021         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4022         instead of cgraph_node.
4023         (cgraph_add_new_function): Call cgraph_create_node or
4024         cgraph_get_create_node instead of cgraph_node.
4025         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4026         instead of cgraph_node.
4027         (record_eh_tables): Likewise.
4028         (mark_address): Likewise.
4029         (mark_load): Likewise.
4030         (build_cgraph_edges): Call cgraph_get_create_node instead
4031         of cgraph_node.
4032         (rebuild_cgraph_edges): Likewise.
4033         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4034         instead of cgraph_node.
4035         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4036         cgraph_node.
4037         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4038         cgraph_create_node instead of cgraph_node.
4039         * c-decl.c (finish_function): Call cgraph_get_create_node instead
4040         of cgraph_node.
4041         * lto-cgraph.c (input_node): Likewise.
4042         * lto-streamer-in.c (input_function): Likewise.
4043         * varasm.c (mark_decl_referenced): Likewise.
4044         (assemble_alias): Likewise.
4045
4046 2011-04-12  Martin Jambor  <mjambor@suse.cz>
4047
4048         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4049         instead of cgraph_node and assert it does not return NULL.
4050         * lto-streamer-in.c (lto_read_body): Likewise.
4051         * omp-low.c (new_omp_context): Likewise.
4052         (create_task_copyfn): Likewise.
4053         * tree-emutls.c (lower_emutls_function_body): Likewise.
4054         * matrix-reorg.c (transform_allocation_sites): Likewise.
4055
4056 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
4057
4058         PR c/48552
4059         * c-typeck.c (build_asm_expr): Error out on attempts to use
4060         void type outputs or inputs for constraints that allow reg or
4061         don't allow memory.
4062
4063 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
4064             Richard Earnshaw  <rearnsha@arm.com>
4065
4066         PR target/48250
4067         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4068         to use sign-magnitude offsets. Reject unsupported unaligned
4069         cases. Add detailed description in comments.
4070         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4071         condition from TARGET_32BIT to TARGET_ARM.
4072
4073 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
4074
4075         * tree.h (struct typed_tree): New.
4076         (struct tree_common): Include it instead of tree_base.
4077         (TREE_TYPE): Update for new location of type field.
4078         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4079         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4080         (union tree_node): Add typed field.
4081         * treestruct.def (TS_TYPED): New.
4082         * lto-streamer.c (check_handled_ts_structures): Handle it.
4083         * tree.c (MARK_TS_TYPED): New macro.
4084         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4085
4086 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4087
4088         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4089         (force_nonfallthru): Do not alter the loop nest if no basic block
4090         was created.
4091
4092 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4093
4094         * config/i386/sse.md (VI): New mode iterator.
4095         (SSEMODEI): Remove.
4096         (AVX256MODEI): Ditto.
4097         (AVXMODEF4P): Ditto.
4098         (avxvecpsmode): Ditto.
4099         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
4100         (sse2_andnot<mode>3): New expander.
4101         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4102         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
4103         (<any_logic:code><mode>3): Use VI mode iterator.
4104         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4105         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
4106         (*andnottf3): Handle AVX three-operand constraints.
4107         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4108
4109 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4110             Robert Millan  <rmh@gnu.org>
4111
4112         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4113         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4114         GNU_USER_DYNAMIC_LINKER64): Define.
4115         (REG_NAME): Don't undefine.
4116         (MD_UNWIND_SUPPORT): Undefine.
4117         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4118         (REG_NAME): Don't undefine.
4119         (MD_UNWIND_SUPPORT): Undefine.
4120         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4121
4122 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4123
4124         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4125         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4126
4127 2011-04-11  Xinliang David Li  <davidxl@google.com>
4128
4129         * value-profile.c (check_ic_target): New function.
4130         (gimple_ic_transform): Sanity check indirect call target.
4131         * gimple-low.c (gimple_check_call_args): Interface change.
4132         (gimple_check_call_matching_types): New function.
4133         * tree-inline.c (tree_can_inline_p): Call new function.
4134
4135 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
4136
4137         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4138         tree-pretty-print.h & realmpfr.h.
4139
4140 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
4141
4142         PR middle-end/48464
4143         * ira.c (setup_pressure_classes): Fix typo in loop condition.
4144         (setup_allocno_and_important_classes): Ditto.
4145
4146 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4147
4148         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4149         GNU_USER_DYNAMIC_LINKER.
4150         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4151         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4152         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4153         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4154         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4155         GNU_USER_TARGET_OS_CPP_BUILTINS.
4156         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4157         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4158         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4159         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4160         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4161         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4162         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4163         GNU_USER_TARGET_OS_CPP_BUILTINS.
4164         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4165         GNU_USER_DYNAMIC_LINKER.
4166         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4167         GNU_USER_TARGET_OS_CPP_BUILTINS.
4168         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4169         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4170         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4171         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4172         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4173         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4174         GNU_USER_DYNAMIC_LINKER64): Remove.
4175         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4176         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4177         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4178         GNU_USER_DYNAMIC_LINKER.
4179         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4180         GNU_USER_TARGET_OS_CPP_BUILTINS.
4181         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4182         GNU_USER_TARGET_OS_CPP_BUILTINS.
4183         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4184         to GNU_USER_TARGET_OS_CPP_BUILTINS.
4185         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4186         GNU_USER_TARGET_OS_CPP_BUILTINS.
4187         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4188         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4189         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4190         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4191         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4192         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4193         GNU_USER_DYNAMIC_LINKER.
4194         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4195         GNU_USER_TARGET_OS_CPP_BUILTINS.
4196         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4197         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4198         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4199         GNU_USER_DYNAMIC_LINKER.
4200         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4201         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4202         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4203         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4204         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4205         GNU_USER_DYNAMIC_LINKER.
4206         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4207         GNU_USER_DYNAMIC_LINKERN32.
4208         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4209         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
4210         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
4211         GNU_USER_DYNAMIC_LINKER32.
4212         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4213         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4214         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4215         GNU_USER_DYNAMIC_LINKER.
4216         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4217         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4218         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4219         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4220         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4221         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4222         GNU_USER_DYNAMIC_LINKER32.
4223         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4224         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4225         GNU_USER_DYNAMIC_LINKER.
4226         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4227         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4228         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4229         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
4230         GNU_USER_DYNAMIC_LINKER64.
4231         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4232         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4233         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4234         GNU_USER_DYNAMIC_LINKER.
4235         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4236         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4237         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4238         GNU_USER_DYNAMIC_LINKER.
4239         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4240         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4241         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4242         GNU_USER_DYNAMIC_LINKER32.
4243         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4244         GNU_USER_DYNAMIC_LINKER64.
4245         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4246         GNU_USER_DYNAMIC_LINKER64.
4247         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4248         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4249         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4250         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4251         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4252
4253 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4254
4255         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
4256         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4257         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4258         GNU_USER_DYNAMIC_LINKER.
4259         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4260         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
4261         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4262         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4263         GNU_USER_DYNAMIC_LINKER64.
4264         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4265         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4266         GNU_USER_LINK_EMULATION.
4267         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4268         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4269         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4270         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4271         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4272         CPP_SPEC, CC1_SPEC): Remove.
4273         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4274         (GNU_USER_DYNAMIC_LINKER): Define.
4275         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4276         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4277         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4278         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4279         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4280         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4281         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4282         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4283         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4284         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4285         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4286         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4287         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4288         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4289         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4290         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4291         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4292         GNU_USER_DYNAMIC_LINKER.
4293         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4294         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4295         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4296         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4297         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4298         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
4299         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4300         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4301         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4302         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4303
4304 2011-04-11  Kai Tietz  <ktietz@redhat.com>
4305
4306         PR target/9601
4307         PR target/11772
4308         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4309         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4310         comment.
4311         (ix86_is_msabi_thiscall): Removed.
4312         (ix86_is_type_thiscall): Likewise.
4313         (ix86_get_callcvt): New function.
4314         (ix86_comp_type_attributes): Simplify check.
4315         (ix86_function_regparm): Use ix86_get_callcvt for calling
4316         convention attribute checks.
4317         (ix86_return_pops_args): Likewise.
4318         (ix86_static_chain): Likewise.
4319         (x86_this_parameter): Likewise.
4320         (x86_output_mi_thunk): Likewise.
4321         (ix86_function_type_abi): Optimize check for types without attributes.
4322         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4323         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4324         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4325         by flag-values.
4326         (IX86_BASE_CALLCVT): Helper macro.
4327         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4328         Use ix86_get_callcvt for calling convention attribute checks and avoid
4329         symbol-decoration for stdcall in TARGET_RTD case.
4330         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4331         Likewise.
4332         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4333         for declaration.
4334
4335 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
4336
4337         * config/i386/sse.md (VI_128): New mode iterator.
4338         (VI12_128): Rename from SSEMODE12.
4339         (VI14_128): Rename from SSEMODE14.
4340         (VI124_128): New mode iterator.
4341         (VI24_128): Rename from SSEMODE248.
4342         (VI248_128): Rename from SSEMODE248.
4343         (SSEMODE124C8): Remove.
4344         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4345         (*sse2_<plusminus_insn><mode>3): Merge with
4346         *avx_<plusminus_insn><mode>3.
4347         (*mulv8hi3): Merge with *avx_mulv8hi3.
4348         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4349         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4350         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4351         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4352         (ashr<mode>3): Merge with *avx_ashr<mode>3.
4353         (lshr<mode>3): Merge with *avx_lshr<mode>3.
4354         (ashl<mode>3): Merge with *avx_ashl<mode>3.
4355         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4356         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4357         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4358         (*<smaxmin:code>v8hi3): Ditto.
4359         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4360         (*<smaxmin:code>v16qi3): Ditto.
4361         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4362         (*sse2_eq<mode>3): Ditto.
4363         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4364         (*sse2_gt<mode>3): Ditto.
4365         (vcondv2di): Split out of vcond<mode>.
4366         (vconduv2di): Split out of vcondu<mode>.
4367
4368 2011-04-11  Richard Guenther  <rguenther@suse.de>
4369
4370         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4371         before calling tree_low_cst.
4372
4373 2011-04-11  Richard Guenther  <rguenther@suse.de>
4374
4375         * stor-layout.c (layout_type): Compute all array index size operations
4376         in the original type.
4377         (initialize_sizetypes): Add comment.
4378         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4379
4380 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
4381
4382         * common.opt (Tbss=, Tdata=, Ttext=): New options.
4383
4384 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4385
4386         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4387         of cgraph_node, handle NULL return value.
4388         (cgraph_global_info): Likewise.
4389         (cgraph_rtl_info): Likewise.
4390         * tree-inline.c (estimate_num_insns): Likewise.
4391         * gimplify.c (unshare_body): Likewise.
4392         (unvisit_body): Likewise.
4393         (gimplify_body): Likewise.
4394         * predict.c (optimize_function_for_size_p): Likewise.
4395         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4396         (call_may_clobber_ref_p_1): Likewise.
4397         * varasm.c (function_section_1): Likewise.
4398         (assemble_start_function): Likewise.
4399
4400 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4401
4402         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4403         of cgraph_node.
4404         * final.c (rest_of_clean_state): Likewise.
4405         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4406         * passes.c (pass_init_dump_file): Likewise.
4407         (execute_all_ipa_transforms): Likewise.
4408         (function_called_by_processed_nodes_p): Likewise.
4409         * predict.c (maybe_hot_frequency_p): Likewise.
4410         (probably_never_executed_bb_p): Likewise.
4411         (compute_function_frequency): Likewise.
4412         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4413         (unnest_nesting_tree_1): Likewise.
4414         (lower_nested_functions): Likewise.
4415         * tree-optimize.c (execute_fixup_cfg): Likewise.
4416         (tree_rest_of_compilation): Likewise.
4417         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4418         * tree-sra.c (ipa_early_sra): Likewise.
4419         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4420         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4421         * ipa.c (record_cdtor_fn): Likewise.
4422         * ipa-inline.c (cgraph_early_inlining): Likewise.
4423         (compute_inline_parameters_for_current): Likewise.
4424         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4425         * ipa-pure-const.c (local_pure_const): Likewise.
4426         * ipa-split.c (split_function): Likewise.
4427         (execute_split_functions): Likewise.
4428         * cgraphbuild.c (build_cgraph_edges): Likewise.
4429         (rebuild_cgraph_edges): Likewise.
4430         (cgraph_rebuild_references): Likewise.
4431         (remove_cgraph_callee_edges): Likewise.
4432         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4433         (verify_cgraph_node): Likewise.
4434         (cgraph_analyze_functions): Likewise.
4435         (cgraph_preserve_function_body_p): Likewise.
4436         (save_inline_function_body): Likewise.
4437         (save_inline_function_body): Likewise.
4438         * tree-inline.c (copy_bb): Likewise.
4439         (optimize_inline_calls): Likewise.
4440
4441 2011-04-11  Martin Jambor  <mjambor@suse.cz>
4442
4443         PR tree-optimization/48195
4444         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4445         ipa_check_create_edge_args.
4446         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4447         ipa_check_create_edge_args.
4448         * ipa-inline.c (inline_generate_summary): Do not call
4449         ipa_check_create_node_params and ipa_check_create_edge_args.
4450         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4451         ipa_check_create_edge_args.
4452
4453 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
4454
4455         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4456         instead of loop.
4457         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4458         * function.c (record_hard_reg_sets): Likewise.
4459         * ira.c (compute_regs_asm_clobbered): Likewise.
4460         * sched-deps.c (sched_analyze_1): Likewise.
4461         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4462
4463 2011-04-09  Xinliang David Li  <davidxl@google.com>
4464
4465         PR tree-optimization/PR48484
4466         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4467         has_valid_pred lazily
4468
4469 2011-04-09  Duncan Sands  <baldrick@free.fr>
4470
4471         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4472
4473 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4474
4475         * combine.c (combine_validate_cost): Adjust comments.  Set registered
4476         cost of I0 to zero at the end, if any.
4477
4478 2011-04-08  Xinliang David Li  <davidxl@google.com>
4479
4480         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4481         to insane profile data.
4482
4483 2011-04-08  Xinliang David Li  <davidxl@google.com>
4484
4485         * ipa-cp.c (ipcp_update_profiling): Correct
4486          negative scale factor due to insane profile data.
4487
4488 2011-04-08  Xinliang David Li  <davidxl@google.com>
4489
4490         * final.c (dump_basic_block_info): New function.
4491         (final): Dump basic block.
4492         (final_scan_insn): Remove old dump.
4493
4494 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
4495
4496         PR target/47829
4497         * config.gcc (i386-*-freebsd): Disable unwind table generation for
4498         crtbegin/crtend.
4499
4500 2011-04-08  Michael Matz  <matz@suse.de>
4501
4502         PR middle-end/48389
4503         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4504         functions.
4505         (rebuild_jump_labels): Call rebuild_jump_labels_1.
4506         * rtl.h (rebuild_jump_labels_chain): Declare.
4507         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4508         insns inserted on edges.
4509
4510 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
4511
4512         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4513         * config/arm/arm-arches.def: New.
4514         * config/arm/arm-opts.h: New.
4515         * config/arm/genopt.sh: New.
4516         * config/arm/arm-tables.opt: New (generated).
4517         * config/arm/arm.c (arm_handle_option, arm_target_help,
4518         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4519         (all_architectures): Get most table contents from arm-arches.def.
4520         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4521         arm_selected_tune here.
4522         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4523         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4524         (march=, mcpu=, mtune=): Use Enum and Var.
4525         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4526         (arm.o): Update dependencies.
4527
4528 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
4529
4530         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4531         of header_file.
4532         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4533         (write_typed_alloc_defns): Likewise.
4534         (main): Calls write_typed_alloc_defns with output_header.
4535
4536 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
4537
4538         PR inline-asm/48435
4539         * ira-color.c (setup_profitable_hard_regs): Add comments.
4540         Don't take prohibited hard regs into account.
4541         (setup_conflict_profitable_regs): Rename to
4542         get_conflict_profitable_regs.
4543         (check_hard_reg_p): Check prohibited hard regs.
4544
4545 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
4546
4547         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4548         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4549         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4550
4551 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4552
4553         PR target/48366
4554         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4555         move from floating point to shift amount register.
4556         (emit_move_sequence): Remove secondary reload support for floating
4557         point to shift amount amount register copies.
4558         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4559         amount register copies.
4560         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4561         register, return false if mode isn't a scalar integer mode.
4562         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4563
4564 2011-04-08  Richard Guenther  <rguenther@suse.de>
4565
4566         * gimple.c (gimple_call_flags): Remove kludge.
4567
4568 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4569
4570         * sel-sched.c (sel_region_init): Move call to
4571         sel_setup_region_sched_flags after setup_current_loop_nest.
4572
4573 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
4574
4575         PR rtl-optimization/48272
4576         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4577         init_insn_reg_pressure_info.  Adjust a caller.
4578         * sched-int.h (init_insn_reg_pressure_info): Declare.
4579         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4580         when sched-pressure is enabled.
4581
4582 2011-04-08  Richard Guenther  <rguenther@suse.de>
4583
4584         * gimple.c (gimple_set_modified): Do not queue calls to
4585         MODIFIED_NORETURN_CALLS here ...
4586         * tree-ssa-operands.c (update_stmt_operands): ... but here.
4587
4588 2011-04-08  Richard Guenther  <rguenther@suse.de>
4589
4590         PR lto/48467
4591         * toplev.c (lang_dependent_init): Do not open asm_out_file
4592         in WPA mode, nor perform debug machinery initialization.
4593         (finalize): Do not unlink asm_out_file in WPA mode.
4594
4595 2011-04-08  Richard Guenther  <rguenther@suse.de>
4596
4597         * gimple.h (gimple_call_fntype): New function.
4598         (gimple_call_return_type): Use it.
4599         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4600         * gimple-low.c (gimple_check_call_args): Likewise.
4601         * gimple.c (gimple_call_flags): Likewise.
4602         (gimple_call_arg_flags): Likewise.
4603         (gimple_call_return_flags): Likewise.
4604         * tree-cfg.c (verify_gimple_call): Likewise.
4605         (do_warn_unused_result): Likewise.
4606         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4607         * value-prof.c (gimple_ic_transform): Fix fndecl check.
4608
4609 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
4610
4611         PR rtl-optimization/48235
4612         * sel-sched.c (code_motion_process_successors): Recompute the last
4613         insn in basic block if control flow changed.
4614         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
4615         Update condition for ilist_remove.
4616
4617 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4618
4619         PR rtl-optimization/48302
4620         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4621         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
4622         it to record added preheader blocks.
4623         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
4624         on to sel_add_loop_preheaders.
4625         (sel_region_init): Move call to setup_current_loop_nest after
4626         sel_init_bbs.
4627
4628 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4629
4630         PR target/48273
4631         * cfgloop.h (loop_has_exit_edges): New helper.
4632         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4633         non-clonable.
4634         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4635         that have no exit edges.
4636
4637 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
4638
4639         PR rtl-optimization/48442
4640         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
4641         all callers.  Adjust assert.
4642
4643 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
4644
4645         PR tree-optimization/48377
4646         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4647         is_packed to true even for types with smaller TYPE_ALIGN than
4648         TYPE_SIZE.
4649
4650 2011-04-08  Richard Guenther  <rguenther@suse.de>
4651
4652         PR bootstrap/48513
4653         * doc/tm.texi: Re-generate.
4654
4655 2011-04-08  Wei Guozhi  <carrot@google.com>
4656
4657         PR target/47855
4658         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4659         * config/arm/arm.c (arm_attr_length_push_multi): New function.
4660         * config/arm/arm.md (*push_multi): Change the length computation to
4661         call a C function.
4662
4663 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
4664
4665         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4666         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4667         * doc/tm.texi: Regenerate.
4668         * system.h (ASM_OUTPUT_BSS): Poison.
4669         * varasm.c (asm_output_bss): Remove function.
4670         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4671
4672         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4673         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4674         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4675         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4676         Likewise.
4677         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4678         Likewise.
4679         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4680         Likewise.
4681         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4682
4683 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4684
4685         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4686         EnumValue lines.
4687
4688 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
4689
4690         * config/m68k/m68k.c (m68k_handle_option): Don't handle
4691         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4692         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4693         OPT_mcpu32.
4694         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4695         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4696         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4697         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4698         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4699         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4700         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4701         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4702         options.  Don't map other m68k options manually.  Don't handle
4703         old-style options as canonical.
4704         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4705         * doc/install.texi (m68k-*-*): Document binutils version requirement.
4706
4707 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4708
4709         * basic-block.h (force_nonfallthru): Move to...
4710         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4711         (force_nonfallthru): ...here.
4712         * cfghooks.c (force_nonfallthru): New function.
4713         * cfgrtl.c (force_nonfallthru): Rename into...
4714         (rtl_force_nonfallthru): ...this.
4715         (commit_one_edge_insertion): Do not set AUX field.
4716         (commit_edge_insertions): Do not discover new basic blocks.
4717         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4718         (cfg_layout_rtl_cfg_hooks): Likewise.
4719         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4720         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
4721         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4722
4723 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
4724
4725         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4726         Remove macros.
4727
4728 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
4729
4730         * config/i386/sse.md: Update copyright year.
4731         (avxcvtvecmode): Remove.
4732         (sse_movhlps): Merge with *avx_movhlps.
4733         (sse_movlhps): Merge with *avx_movlhps.
4734         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4735         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4736         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4737         (sse_loadhps): Merge with *avx_loadhps.
4738         (sse_storelps): Merge with *avx_storelps.
4739         (sse_loadlps): Merge with *avx_loadlps.
4740         (sse_movss): Merge with *avx_movss.
4741         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4742         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4743         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4744         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4745         (vec_set<mode>_0): Ditto.
4746         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4747         (sse4_1_insertps): Merge with *avx_insertps.
4748         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4749         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4750         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4751         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4752         (sse2_storehpd): Merge with *avx_storehpd.
4753         (sse2_loadhpd): Merge with *avx_loadhpd.
4754         (sse2_loadlpd): Merge with *avx_loadlpd.
4755         (sse2_movsd): Merge with *avx_movsd.
4756         (*vec_concatv2df): Merge with *vec_concatv2df.
4757
4758 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
4759
4760         PR debug/48343
4761         * combine.c (combine_instructions): Add last_combined_insn,
4762         update it if insn is after it, pass it to all try_combine calls.
4763         (try_combine): Add last_combined_insn parameter, pass it instead of
4764         i3 to propagate_for_debug.
4765
4766 2011-04-07  Nick Clifton  <nickc@redhat.com>
4767
4768         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4769         to handle MDR <-> data register transfers.
4770         (movhi_internal): Likewise.
4771
4772 2011-04-07  Alan Modra  <amodra@gmail.com>
4773
4774         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4775         previous stack info.
4776
4777 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4778
4779         PR target/43920
4780         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
4781         flow_find_cross_jump.  Swap variables to implement backward replacement.
4782         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4783
4784 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4785
4786         PR target/43920
4787         * cfgcleanup.c (walk_to_nondebug_insn): New function.
4788         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
4789         and bb2.
4790         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4791         src1 or src2.  Redirect edges to the last basic block.  Update
4792         frequency and count on multiple basic blocks in case of fallthru.
4793
4794 2011-04-07  Tom de Vries  <tom@codesourcery.com>
4795
4796         PR target/43920
4797         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4798         function.
4799         (old_insns_match_p): Change return type.  Replace return false/true
4800         with return dir_none/dir_both.  Use can_replace_by.
4801         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
4802         direction from dir_p.  Register replacement direction in dir, last_dir
4803         and afterlast_dir.  Handle new return type of old_insns_match_p using
4804         merge_dir.  Return replacement direction in dir_p.
4805         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
4806         return type of old_insns_match_p.
4807         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
4808         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
4809         flow_find_cross_jump.
4810         * basic-block.h (enum replace_direction): New type.
4811         (flow_find_cross_jump): Add parameter to declaration.
4812
4813 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
4814
4815         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
4816         (AVXMODEDCVTPS2DQ): Ditto.
4817         (VEC_FLOAT_MODE): Ditto.
4818         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
4819         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4820         (<any_logic:code><mode>3): Use VF mode iterator.
4821         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
4822         Use VF mode iterator.
4823         (copysign<mode>3): Use VF mode iterator.
4824         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
4825         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
4826         (*<any_logic:code><MODEF:mode>3): Merge with
4827         *avx_<any_logic:code><MODEF:mode>3.
4828         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
4829         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
4830         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
4831         (avx_cvtdq2ps<avxmodesuffix>): Remove.
4832         (sse2_cvtdq2ps): Use %v modifier.
4833         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
4834         (avx_cvtps2dq<avxmodesuffix>): Remove.
4835         (sse2_cvtps2dq): Use %v modifier.
4836         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
4837         (avx_cvttps2dq<avxmodesuffix>): Remove.
4838         (sse2_cvttps2dq): Use %v modifier.
4839         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
4840         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
4841         (sse2_cvtsd2siq): Fix insn template.
4842         (sse2_cvtsd2siq_2): Ditto.
4843         (sse2_cvttsd2siq): Ditto.
4844         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
4845         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
4846
4847 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
4848
4849         * gcov-io.c: Use GCC Runtime Library Exception.
4850
4851 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
4852
4853         PR debug/48466
4854         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
4855         as base_reg whatever register reg has been eliminated to, instead
4856         of hardcoding STACK_POINTER_REGNUM.
4857
4858 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
4859
4860         * doc/tm.texi.in: Document C target hooks as separate from general
4861         target hooks.
4862         * doc/tm.texi: Regenerate.
4863         * genhooks.c (struct hook_desc): Add docname field.
4864         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
4865         docname field.
4866         (hook_array): Include c-target.def.
4867         (emit_documentation): Use docname field in output.
4868         (emit_init_macros): Take docname argument.  Only emit definitions
4869         for hooks matching docname.
4870         (main): Expect additional arguments in all cases.  Pass argument
4871         to emit_init_macros.
4872         * target.def: Move initial macro definitions and comments to
4873         target-hooks-macros.h.
4874         (gcc_targetcm): Move to c-family/c-target.def.
4875         * target.h (targetcm): Move declaration to c-family/c-target.h.
4876         * targhooks.c (default_handle_c_option): Move to
4877         c-family/c-opts.c.
4878         * targhooks.h (default_handle_c_option): Move declaration to
4879         c-family/c-common.h.
4880         * target-hooks-macros.h: New file.
4881         * config.gcc (target_has_targetcm): Define and use to add to
4882         c_target_objs and cxx_target_objs.
4883         * config/default-c.c: New file.
4884         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
4885         of target.h and target-def.h.
4886         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
4887         (darwin_objc_construct_string, darwin_cfstring_ref_p,
4888         darwin_check_cfstring_format_arg): Make static.
4889         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4890         TARGET_STRING_OBJECT_REF_TYPE_P,
4891         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
4892         * config/darwin-protos.h (darwin_objc_construct_string,
4893         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
4894         declare.
4895         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
4896         TARGET_STRING_OBJECT_REF_TYPE_P,
4897         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
4898         * config/t-darwin (darwin-c.o): Update dependencies.
4899         * system.h (TARGET_HAS_TARGETCM): Poison.
4900         * Makefile.in (TARGET_H): Update.
4901         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
4902         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
4903         (default-c.o): New target.
4904         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
4905         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
4906         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
4907         c-target.def.
4908         (build/genhooks.o): Update dependencies.
4909
4910 2011-04-06  Richard Guenther  <rguenther@suse.de>
4911
4912         * ipa-inline.c (enum inlining_mode): Remove.
4913         (cgraph_flatten): Use some other token.
4914         (cgraph_edge_early_inlinable_p): New function, split out from ...
4915         (cgraph_perform_always_inlining): New function, split out from ...
4916         (cgraph_decide_inlining_incrementally): ... here.
4917         (cgraph_mark_inline_edge): Adjust.
4918         (cgraph_early_inlining): Re-structure.
4919         (pass_early_inline): Require SSA form.
4920
4921 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
4922             Julian Brown  <julian@codesourcery.com>
4923             Mark Shinwell  <shinwell@codesourcery.com>
4924
4925         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
4926         LO_REGS only for Thumb-1.
4927         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
4928         be used in short instructions when optimising for size on Thumb-2.
4929
4930 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
4931
4932         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
4933         associated with user returns to be preserved.
4934
4935 2011-04-06  Tristan Gingold  <gingold@adacore.com>
4936
4937         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
4938         symbol_queue_size, DBXOUT_DECR_NESTING,
4939         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
4940         if XCOFF_DEBUGGING_INFO.
4941
4942 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
4943
4944         * config/i386/i386.md (attribute isa): New.
4945         (attribute enabled): New.
4946         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
4947         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
4948         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
4949         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
4950         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
4951         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4952         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
4953         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
4954
4955         * config/i386/sse.md (VF): New mode iterator.
4956         (VF1): Ditto.
4957         (VF2): Ditto.
4958         (VF_128): Ditto.
4959         (SSEMODEF4): Remove.
4960         (attribute sse): Handle V8SF and V4DF modes.
4961         (<absneg:code><mode>2): Use VF mode iterator.
4962         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
4963         mode iterator.
4964         (<plusminus_insn><mode>3): Use VF mode iterator.
4965         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4966         Use VF mode iterator.
4967         (<sse>_vm<plusminus_insn><mode>3): Merge with
4968         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
4969         (mul<mode>3): Use VF mode iterator.
4970         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
4971         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
4972         mode iterator.
4973         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
4974         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
4975         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
4976         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
4977         mode iterator.
4978         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
4979         Use VF1 mode iterator.
4980         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
4981         (sqrt<VF2:mode>2): New expander.
4982         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
4983         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
4984         and sqrtv2df2.  Use VF mode iterator.
4985         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
4986         mode iterator.
4987         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
4988         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
4989         Use VF1 mode iterator.
4990         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
4991         (<smaxmin:code><mode>3): Use VF mode iterator.
4992         (*<smaxmin:code><mode>3_finite): Merge with
4993         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
4994         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4995         (<sse>_vm<smaxmin:code><mode>2): Merge with
4996         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
4997         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
4998         mode iterator.
4999         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
5000         mode iterator.
5001         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5002         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5003         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5004         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5005         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
5006         VF mode iterator.
5007         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5008         Use VF_128 mode iterator.
5009         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
5010         mode iterator.
5011         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
5012         VF_128 mode iterator.
5013         (vcond<mode>): Use VF mode iterator.
5014         * config/i386/predicates.md (sse_comparison_operator): Merge with
5015         avx_comparison_float_operator.  Do not declare as special_predicate.
5016         * config/i386/i386.c (struct builtin_description): Update for renamed
5017         compare patterns.
5018         (ix86_expand_args_builtin): Ditto.
5019         (ix86_expand_sse_compare_mask): Ditto.
5020
5021 2011-04-06  Richard Guenther  <rguenther@suse.de>
5022
5023         * tree-inline.c (estimate_num_insns): For calls simply account
5024         for all passed arguments and a used return value.
5025
5026 2011-04-06  Richard Guenther  <rguenther@suse.de>
5027
5028         PR tree-optimization/47663
5029         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5030         call_stmt_time fields.
5031         (cgraph_edge_inlinable_p): Declare.
5032         (cgraph_edge_recursive_p): New inline function.
5033         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5034         (cgraph_clone_edge): Copy it.
5035         * ipa-inline.c (cgraph_estimate_edge_time): New function.
5036         Account for call stmt time.
5037         (cgraph_estimate_time_after_inlining): Take edge argument.
5038         (cgraph_estimate_edge_growth): Account call stmt size.
5039         (cgraph_estimate_size_after_inlining): Take edge argument.
5040         (cgraph_mark_inline_edge): Adjust.
5041         (cgraph_check_inline_limits): Likewise.
5042         (cgraph_recursive_inlining_p): Remove.
5043         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5044         (cgraph_decide_recursive_inlining): Take edge argument and
5045         adjust.
5046         (cgraph_decide_inlining_of_small_functions): Do not avoid
5047         diags for recursive inlining here.
5048         (cgraph_flatten): Adjust.
5049         (cgraph_decide_inlining_incrementally): Likewise.
5050         (estimate_function_body_sizes): Remove call cost handling.
5051         (compute_inline_parameters): Initialize caller edge call costs.
5052         (cgraph_estimate_edge_growth): New function.
5053         (cgraph_estimate_growth): Use it.
5054         (cgraph_edge_badness): Likewise.
5055         (cgraph_check_inline_limits): Take an edge argument.
5056         (cgraph_decide_inlining_of_small_functions): Adjust.
5057         (cgraph_decide_inlining): Likewise.
5058         * tree-inline.c (estimate_num_insns): Only account for call
5059         return value if it is used.
5060         (expand_call_inline): Avoid diagnostics on recursive inline
5061         functions here.
5062         * lto-cgraph.c (lto_output_edge): Output edge call costs.
5063         (input_edge): Input edge call costs.
5064
5065 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5066
5067         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5068
5069 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
5070
5071         * doc/invoke.texi (Spec Files): Fix typo.
5072
5073 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5074
5075         * profile.c (branch_prob): Move declaration of local variable.  Remove
5076         obsolete ??? comment.  Expand the location explicitly instead of using
5077         the LOCATION_FILE and LOCATION_LINE macros.
5078
5079 2011-04-06  Wei Guozhi  <carrot@google.com>
5080
5081         PR target/47855
5082         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5083         (arm_cond_branch): Likewise.
5084         (arm_cond_branch_reversed): Likewise.
5085         (arm_jump): Likewise.
5086         (push_multi): Likewise.
5087         * config/arm/constraints.md (Py): New constraint.
5088
5089 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5090
5091         PR bootstrap/48471
5092         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5093         Move these...
5094         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5095         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5096         #ifdef DBX_DEBUGGING_INFO.
5097
5098 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
5099
5100         PR bootstrap/48403
5101         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5102         if old and new states differ.
5103
5104 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5105
5106         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5107         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5108         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5109         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5110         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5111         mcfv4e): Use Alias.
5112         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5113         ColdFire options to -mcpu= options.
5114
5115 2011-04-05  Jeff Law  <law@redhat.com>
5116
5117         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5118         check if BB is a successor of LOOP->header and return
5119         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5120
5121 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5122
5123         * cprop.c (struct reg_use): Remove.
5124         (reg_use_table): Make an array of RTX.
5125         (find_used_regs, constprop_register, local_cprop_pass,
5126         bypass_block): Simplify users of reg_use_table.
5127         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
5128         on one of the uses found by find_used_regs.
5129
5130 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5131
5132         PR bootstrap/48469
5133         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5134         declaration.
5135
5136 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5137
5138         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5139         as an rtx.
5140         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5141
5142 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
5143
5144         PR middle-end/48441
5145         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5146
5147 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5148
5149         * combine.c: Include obstack.h.
5150         (struct insn_link): Define.
5151         (uid_log_links): Adjust type.
5152         (FOR_EACH_LOG_LINK): New macro.
5153         (insn_link_obstack): Declare.
5154         (alloc_insn_link): Define.
5155         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
5156         type of link variables.
5157         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5158         (try_combine, record_promoted_values, distribute_notes): Likewise.
5159         (distribute_links): Likewise.  Tweak prototype.
5160         (clear_log_links): Delete.
5161         (adjust_for_new_dest): Call alloc_insn_link.
5162         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5163
5164 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5165
5166         * gcse.c (modify_mem_list): Convert to an array of VECs.
5167         (canon_modify_mem_list, compute_transp): Tweak formatting.
5168         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
5169         (load_killed_in_block_p): Likewise.
5170         (record_last_mem_set_info): Likewise.
5171         (clear_modify_mem_tables): Likewise.
5172
5173 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5174
5175         PR middle-end/48461
5176         * function.c (emit_use_return_register_into_block): Only define if
5177         HAVE_return.
5178
5179 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
5180
5181         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5182
5183 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
5184
5185         * config/rx/rx-opts.h: New.
5186         * config/rx/rx.c (rx_cpu_type): Remove.
5187         (rx_handle_option): Don't assert that global structures are in
5188         use.  Access variables via opts pointer.  Defer most handling of
5189         OPT_mint_register_.  Use error_at.
5190         (rx_option_override): Handle deferred OPT_mint_register_ here.
5191         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5192         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5193         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5194         (rx_cpu_types): New Enum and EnumValue entries.
5195         (mint-register=): Use Defer and use Var accordingly.
5196
5197 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5198
5199         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5200         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5201         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5202         Move these...
5203         (debug_free_queue, debug_nesting, symbol_queue_index):
5204         ...and these...
5205         * dbxout.c: ...to here.  Make static.
5206
5207 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
5208
5209         * gcse.c (modify_pair): Define.  Define a VEC of it.
5210         (canon_modify_mem_list): Convert to an array of VECs.
5211         (free_insn_expr_list_list): Delete.
5212         (clear_modify_mem_tables): Call VEC_free instead.
5213         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5214         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5215         (canon_list_insert, compute_transp): Likewise.
5216
5217 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5218
5219         PR target/43920
5220         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5221         for size.
5222
5223 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5224
5225         PR target/43920
5226         * function.c (emit_use_return_register_into_block): New function.
5227         (thread_prologue_and_epilogue_insns): Use
5228         emit_use_return_register_into_block.
5229
5230 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5231
5232         PR target/43920
5233         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5234         insn.
5235
5236 2011-04-05  Tom de Vries  <tom@codesourcery.com>
5237
5238         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5239
5240 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
5241
5242         * config/arm/arm.md (define_constants for unspec): Replace with
5243         define_c_enum.
5244         (define_constants for unspecv): Replace with define_c_enum.
5245         * config/arm/neon.md (define_constants for unspec): Replace with
5246         define_c_enum.
5247
5248 2011-04-04  Richard Henderson  <rth@redhat.com>
5249
5250         PR bootstrap/48400
5251         * dwarf2out.c (output_line_info): Always emit line info from
5252         at least one section.
5253         (dwarf2out_init): Create text_section_line_info here ...
5254         (set_cur_line_info_table): ... not here.
5255
5256 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5257
5258         PR target/48380
5259         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5260         not called.
5261
5262         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5263
5264 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
5265
5266         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5267         (expr_equiv_p): Remove.
5268         (insert_set_in_table): Look at <dest, src> pair instead of expr.
5269         (hash_scan_set): Update call to insert_set_in_table.
5270         (dump_hash_table): Dump <dest, src> pair.
5271         (lookup_set): Simplify.  Lookup <dest, src> pair.
5272         (compute_transp): Remove, fold heavily simplified code into...
5273         (compute_local_properties): ...here.  Expect COMP and TRANSP
5274         unconditionally.
5275         (find_avail_set): Take set directly from struct expr.
5276         (find_bypass-set): Likewise.
5277         (bypass_block): Likewise.
5278         (cprop_insn): Likewise.  Remove redundant INSN_P test.
5279
5280         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5281         checks on form of COND from find_implicit_sets to here.
5282         (find_implicit_sets): Cleanup control flow. Split critical edges
5283         if it exposes implicit sets.  Allocate/resize implicit_sets as
5284         necessary.
5285         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5286         changed something.  Run df_analyze after find_implicit_sets if any
5287         edges were split.  Do not allocate implicit_sets here.
5288
5289         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5290         (gcse_obstack): Renamed to cprop_obstack.
5291         (GNEW, GNEWVEC, GNEWVAR): Remove.
5292         (gmalloc): Remove.
5293         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5294         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5295         (gcse_alloc): Likewise, and rename to cprop_alloc.
5296         (alloc_gcse_men, free_gcse_mem): Remove.
5297         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5298         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5299         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5300
5301         * cprop.c (oprs_not_set_p): Remove.
5302         (mark_set, mark_clobber): Remove.
5303         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5304         (reg_not_set_p): New function.
5305         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5306         (cprop_insn): Likewise.
5307         (cprop_jump): Use FOR_EACH_EDGE.
5308
5309 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
5310
5311         PR bootstrap/48403
5312         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5313         (rank_for_schedule): Use scheduled_insns vector instead of
5314         last_scheduled_insn.
5315         (ok_for_early_queue_removal): Likewise.
5316         (queue_to_ready): Search forward in nonscheduled_insns_begin if
5317         we have a dbg_cnt.
5318         (choose_ready): Likewise.
5319         (commit_schedule): Use VEC_iterate.
5320         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
5321         a dbg_cnt, use it and ensure the first insn is in the ready list.
5322         (haifa_sched_init): Allocate scheduled_insns.
5323         (sched_extend_ready_list): Don't allocate it; reserve space.
5324         (haifa_sched_finish): Free it.
5325
5326 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5327
5328         * optc-gen.awk: Always remove type from Variable entry before
5329         recording in var_seen.
5330
5331 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
5332
5333         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5334         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5335         call to tidy_fallthru_edges.
5336
5337 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
5338
5339         * doc/options.texi (ToLower): Document.
5340         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5341         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5342         * opts.h (cl_option): Add cl_tolower field.
5343         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5344         arguments with lowercase strings.
5345         * config/rx/rx.opt (mcpu=): Add ToLower.
5346         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5347         argument.
5348
5349 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5350
5351         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5352
5353 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
5354
5355         * config/vax/vax.c: Include reload.h.
5356
5357 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
5358
5359         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5360         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5361         (sparc_preferred_reload_class): New function.
5362
5363 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
5364
5365         PR debug/48401
5366         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5367         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5368
5369 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
5370
5371         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5372         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5373
5374 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
5375
5376         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5377         (ASM_OUTPUT_ALIGNED_BSS): Define.
5378
5379 2011-04-03  Michael Matz  <matz@suse.de>
5380
5381         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5382         and next_slot members.
5383         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5384         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5385         (lto_streamer_cache_append): Declare.
5386         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5387         unsigned index, remove offset parameter, ensure that we append
5388         or update existing entries.
5389         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5390         parameter, update next_slot for append.
5391         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5392         parameter.
5393         (lto_streamer_cache_insert_at): Likewise.
5394         (lto_streamer_cache_append): New function.
5395         (lto_streamer_cache_lookup): Use unsigned index.
5396         (lto_streamer_cache_get): Likewise.
5397         (lto_record_common_node): Don't test tree_node_can_be_shared.
5398         (preload_common_node): Adjust call to lto_streamer_cache_insert.
5399         (lto_streamer_cache_delete): Don't free offsets member.
5400         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5401         (lto_output_string_with_length): Use lto_output_data_stream.
5402         (lto_output_tree_header): Remove ix parameter, don't write it.
5403         (lto_output_builtin_tree): Likewise.
5404         (lto_write_tree): Adjust callers to above, don't track and write
5405         offset, write unsigned index.
5406         (output_unreferenced_globals): Don't emit all global vars.
5407         (write_global_references): Use unsigned indices.
5408         (lto_output_decl_state_refs): Likewise.
5409         (write_symbol): Likewise.
5410         * lto-streamer-in.c (lto_input_chain): Move earlier.
5411         (input_function): Use unsigned index.
5412         (input_alias_pairs): Don't read and then ignore all global vars.
5413         (lto_materialize_tree): Remove ix_p parameter, don't read index,
5414         don't pass it back, use lto_streamer_cache_append.
5415         (lto_register_var_decl_in_symtab): Use unsigned index.
5416         (lto_register_function_decl_in_symtab): Likewise.
5417         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5418         index.
5419         (lto_get_builtin_tree): Don't read index, use
5420         lto_streamer_cache_append.
5421         (lto_read_tree): Adjust call to lto_materialize_tree.
5422
5423         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5424         don't use function calls in arguments to MIN.
5425
5426         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5427         twice.
5428
5429         * gimple.c (gimple_type_leader_entry): Mark deletable.
5430
5431 2011-04-03  Alan Modra  <amodra@gmail.com>
5432
5433         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5434
5435 2011-04-03  Michael Matz  <matz@suse.de>
5436
5437         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5438         an integer.
5439         * tree.h (tree_decl_non_common.vindex): Adjust comment.
5440
5441 2011-04-03  Michael Matz  <matz@suse.de>
5442
5443         * cgraphbuild.c (record_reference): Canonicalize constructor values.
5444         * gimple-fold.c (canonicalize_constructor_val): Accept being called
5445         without function context.
5446         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5447         current_function_decl and cfun.
5448
5449 2011-04-03  Michael Matz  <matz@suse.de>
5450
5451         * tree.c (decl_init_priority_insert): Don't create entry for
5452         default priority.
5453         (decl_fini_priority_insert): Ditto.
5454         (fields_compatible_p, find_compatible_field): Remove.
5455         * tree.h (fields_compatible_p, find_compatible_field): Remove.
5456         * gimple.c (gimple_compare_field_offset): Adjust block comment.
5457
5458 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
5459
5460         * combine.c (try_combine): Remove useless local variable.
5461
5462 2011-04-03  Richard Guenther  <rguenther@suse.de>
5463             Ira Rosen  <ira.rosen@linaro.org>
5464
5465         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5466         non-variable offsets and compare the remaining bases of the two
5467         accesses instead of looking for exact same data-ref.
5468
5469 2011-04-02  Kai Tietz  <ktietz@redhat.com>
5470
5471         PR target/48416
5472         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5473
5474         * i386.c (ix86_is_msabi_thiscall): New helper function.
5475         (ix86_is_type_thiscall): New helper function.
5476         (ix86_comp_type_attributes): Handle thiscall for method-functions
5477         special.
5478         (init_cumulative_args): Likewise.
5479         (find_drap_reg): Likewise.
5480         (ix86_static_chain): Likewise.
5481         (x86_this_parameter): Likewise.
5482         (x86_output_mi_thunk): Likewise.
5483
5484 2011-04-01  Olivier Hainque  <hainque@adacore.com>
5485             Nicolas Setton  <setton@adacore.com>
5486             Eric Botcazou  <ebotcazou@adacore.com>
5487
5488         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5489         (add_gnat_descriptive_type_attribute): New function.
5490         (gen_array_type_die): Call it.
5491         (gen_enumeration_type_die): Likewise.
5492         (gen_struct_or_union_type_die): Likewise.
5493         (modified_type_die): Likewise.
5494         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5495         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5496         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5497
5498 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5499
5500         PR bootstrap/48148
5501         * dwarf2out.c (resolve_addr): Don't call force_decl_die
5502         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5503
5504         Revert:
5505         2011-03-17  Richard Guenther  <rguenther@suse.de>
5506
5507         PR bootstrap/48148
5508         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5509         origin for decls in other ltrans units.
5510         (input_varpool_node): Likewise.
5511
5512 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
5513
5514         PR middle-end/48335
5515         * expr.c (expand_assignment): Handle all possibilities
5516         if TO_RTX is CONCAT.
5517         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5518         (store_split_bit_field): If SUBREG_REG (op0) or
5519         op0 itself has smaller mode than word, return it
5520         for offset 0 and const0_rtx for out-of-bounds stores.
5521         If word is const0_rtx, skip it.
5522
5523 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
5524
5525         * config/h8300/h8300.c (print_operand_address): Rename to...
5526         (h8300_print_operand_address): ...this. Make static. Adjust comments.
5527         Call h8300_print_operand and h8300_print_operand_address instead of
5528         print_operand and print_operand_address. Declare.
5529         (print_operand): Renake to...
5530         (h8300_print_operand): ...this. Make static. Adjust comments.
5531         Call h8300_print_operand instead of print_operand. Declare.
5532         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5533         (h8300_register_move_cost): Likewise.
5534         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5535         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5536         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5537         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5538         * config/h8300/h8300-protos.h (print_operand): Delete.
5539         (print_operand_address): Delete.
5540
5541 2011-04-01  Richard Henderson  <rth@redhat.com>
5542
5543         PR 48400
5544         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5545         in strict mode before dwarf4.  Re-order tests to early out
5546         before switching sections.
5547
5548 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
5549
5550         * config/h8300/constraints.md: New file.
5551         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
5552         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5553         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5554         * config/h8300/predicates.md (bit_operand): Likewise.
5555         (incdec_operand): Use satisfies_constraint_M and
5556         satisfies_constraint_O.  Don't use C code block.
5557         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5558         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5559         (compute_mov_length): Use satisfies_constraint_G.
5560         (fix_bit_operand): Use satisfies_constraint_U.
5561         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5562         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5563         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5564         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5565         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5566         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5567         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5568         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5569         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5570         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5571         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5572         (EXTRA_MEMORY_CONSTRAINT): Delete.
5573
5574 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
5575             Michael Meissner  <meissner@linux.vnet.ibm.com>
5576
5577         PR target/48262
5578         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5579         operands, as per the specifications.
5580
5581         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5582         (vec_extract_evenv4sf): Ditto.
5583         (vec_extract_evenv8hi): Ditto.
5584         (vec_extract_evenv16qi): Ditto.
5585         (vec_extract_oddv4si): Ditto.
5586
5587 2011-03-31  Mark Wielaard  <mjw@redhat.com>
5588
5589         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5590         high_pc attribute if the CU has no associated code. Only output
5591         DW_AT_entry_pc for CU if not generating strict dwarf and
5592         dwarf_version < 4.
5593
5594 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
5595
5596         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5597         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5598         out of ...
5599         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5600         * final.c (final_start_function): Call the new function rather
5601         than using a NULL argument for dwarf2out_frame_debug.
5602
5603         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5604         that contains the prologue.
5605
5606         * haifa-sched.c (queue_insn): New arg REASON.  All callers
5607         changed.  Print it in debugging output.
5608
5609         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5610
5611         * sched-ebb.c (begin_schedule_ready): Remove second argument.
5612         Split most of the code into...
5613         (begin_move_insn): ... here.  New function.
5614         (ebb_sched_info): Add a pointer to it.
5615         * haifa-sched.c (scheduled_insns): New static variable.
5616         (sched_extend_ready_list): Allocate it.
5617         (schedule_block): Use it to record the order of scheduled insns.
5618         Perform RTL changes to move insns only after all scheduling
5619         decisions have been made.
5620         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5621         begin_move_insn field.
5622         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5623         * sched-int.h (struct haifa_sched_info): Remove second argument
5624         from begin_schedule_ready hook.  Add new member begin_move_insn.
5625         * sched-rgn.c (begin_schedule_ready): Remove second argument.
5626         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5627
5628         * haifa-sched.c (prune_ready_list): New function, broken out of
5629         schedule_block.
5630         (schedule_block): Use it.
5631
5632 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5633
5634         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5635
5636 2011-04-01  Kai Tietz  <ktietz@redhat.com>
5637
5638         * config.gcc (*-*-mingw*): Allow as option the
5639         posix threading model.
5640         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
5641         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5642         definition.
5643         (CPP_SPEC): Add pthread/no-pthread handling.
5644         (LIB_SPEC): Likewise.
5645         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5646         (LIB_SPEC): Likewise.
5647         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5648         flag to pass -pthread option for shared libgcc build.
5649         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5650         for shared libgcc build.
5651         * config/i386/t-mingw-pthread: New file.
5652         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5653         New define to enable use of library pthread by default.
5654         * config/i386/mingw.opt (pthread): New driver option.
5655         (no-pthread): New driver option.
5656         * config/i386/cygming.opt: Make sure trailing empty line is retained.
5657         * config/i386/mingw-w64.opt: Likewise.
5658
5659 2011-04-01  Gary Funck <gary@intrepid.com>
5660
5661         * c-decl.c (grokdeclarator): Fix formatting.
5662
5663 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5664
5665         * expr.c (emit_block_move_via_movmem): Use n_generator_args
5666         instead of n_operands.
5667         (set_storage_via_setmem): Likewise.
5668         * optabs.c (maybe_gen_insn): Likewise.
5669         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5670         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5671         (mips_expand_builtin_direct): Likewise.
5672         * config/spu/spu.c (expand_builtin_args): Likewise.
5673
5674 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5675
5676         * recog.h (insn_data_d): Add n_generator_args.
5677         * genoutput.c (data): Likewise.
5678         (output_insn_data): Print it.
5679         (max_opno, num_dups): Delete.
5680         (scan_operands): Just fill in "d->operand[...]".
5681         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5682
5683 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
5684
5685         * gensupport.h (pattern_stats): New structure.
5686         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5687         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5688         (max_operand_1, max_operand_vec): Delete.
5689         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5690
5691 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
5692
5693         * emit-rtl.c (emit_pattern_after_setloc): New function.
5694         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5695         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5696         (emit_pattern_after): New function.
5697         (emit_insn_after, emit_jump_insn_after): Call it.
5698         (emit_call_insn_after, emit_debug_insn_after): Likewise.
5699         (emit_pattern_before_setloc): New function.
5700         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5701         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5702         Likewise.
5703         (emit_pattern_before): New function.
5704         (emit_insn_before, emit_jump_insn_before): Call it.
5705         (emit_call_insn_before, emit_debug_insn_before): Likewise.
5706
5707 2011-03-31  Richard Henderson  <rth@redhat.com>
5708
5709         * dwarf2out.c (dw_separate_line_info_ref): Remove.
5710         (dw_separate_line_info_entry): Remove.
5711         (enum dw_line_info_opcode): New.
5712         (dw_line_info_entry): Use it.
5713         (dw_line_info_table, dw_line_info_table_p): New.
5714         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5715         (line_info_table, line_info_label_num): Remove.
5716         (line_info_table_in_use): Remove.
5717         (separate_line_info_table): Remove.
5718         (separate_line_info_table_allocated): Remove.
5719         (separate_line_info_table_in_use): Remove.
5720         (LINE_INFO_TABLE_INCREMENT): Remove.
5721         (line_info_label_num): New.
5722         (cur_line_info_table): New.
5723         (text_section_line_info, cold_text_section_line_info): New.
5724         (separate_line_info): New.
5725         (SEPARATE_LINE_CODE_LABEL): Remove.
5726         (print_dwarf_line_table): Remove.
5727         (debug_dwarf): Don't dump it.
5728         (output_one_line_info_table): New.
5729         (output_line_info): Use it.
5730         (new_line_info_table): New.
5731         (set_cur_line_info_table): New.
5732         (dwarf2out_switch_text_section): Use it.
5733         (dwarf2out_begin_function): Likewise.
5734         (push_dw_line_info_entry): New.
5735         (dwarf2out_source_line): Rewrite for new line info tables.
5736         (dwarf2out_init): Remove dead initailizations.
5737
5738 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
5739
5740         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
5741         various flags.
5742         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5743         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5744         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5745         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5746         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5747         * opt-functions.awk (flag_init, switch_bit_fields): New.
5748         (switch_flags): Don't handle flags moved to bit-fields.  Don't
5749         generate CL_MISSING_OK or CL_SAVE.
5750         * optc-gen.awk: Update to generate bit-field output as well as
5751         flags field.
5752         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5753         bit-field instead of CL_REJECT_DRIVER flag.
5754         * opts-common.c (generate_canonical_option,
5755         decode_cmdline_option): Use bit-fields instead of CL_* flags.
5756         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5757         instead of CL_REJECT_NEGATIVE flag.
5758         * toplev.c (print_switch_values): Use cl_report bit-field instead
5759         of CL_REPORT flag.
5760
5761 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
5762
5763         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5764         a zero minimum index only if it is redundant.
5765
5766 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
5767
5768         PR rtl-optimization/48381
5769         * ira-color.c (assign_hard_reg): Use hard reg set intersection
5770         instead of ira_class_hard_reg_index for calculating conflicting
5771         hard registers.
5772
5773 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
5774
5775         * cprop.c: Clean up hash table building.
5776         (reg_avail_info): Remove.
5777         (oprs_available_p): Remove.
5778         (record_last_reg_set_info): Remove.
5779         (record_last_set_info): Remove.
5780         (reg_available_p): New function.
5781         (gcse_constant_p): Do not treat unfolded conditions as constants.
5782         (make_set_regs_unavailable): New function.
5783         (hash_scan_set): Simplify with new reg_available_p.
5784         (compute_hash_table_work): Traverse insns stream only once.
5785         Do not compute reg_avail_info. Traverse insns in reverse order.
5786         Record implicit sets after recording explicit sets from the block.
5787
5788 2011-03-31  Michael Matz  <matz@suse.de>
5789
5790         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5791
5792 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
5793
5794         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5795         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5796         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5797         (h8300_mode_dependent_address_p): New function.
5798         (h8300_get_index): Make static.
5799
5800 2011-03-31  Jeff Law  <law@redhat.com>
5801
5802         * reload1.c (elimination_effects): Fix typo in recent change.
5803
5804         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
5805         typo potentially leading to null pointer dereference.
5806
5807         * caller-save.c (new_saved_hard_reg): Eliminate return value.
5808         (setup_save_areas): Corresponding changes to avoid useless
5809         assignments.
5810
5811         * jump.c (reversed_comparison_code_parts): Avoid successive return
5812         statements when REVERSE_CONDITION is defined.
5813
5814         * expr.c (expand_assignment): Avoid useless assignments.
5815         (expand_expr_real_1): Likewise.
5816         (expand_expr_real_2): Avoid useless statements.
5817
5818         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
5819
5820         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5821
5822         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
5823         statements.
5824
5825         * stmt.c (expand_expr_stmt): Avoid useless assignment.
5826
5827 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
5828
5829         PR target/47109
5830         * doc/tm.texi.in (TARGET_VERSION): Remove.
5831         * doc/tm.texi: Regenerate.
5832         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
5833         * collect2.c (main): Don't use TARGET_VERSION.
5834         * mips-tdump.c (main): Don't use TARGET_VERSION.
5835         * mips-tfile.c (main): Don't use TARGET_VERSION.
5836         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
5837         * config/rs6000/vxworksae.h: Remove.
5838         * config/alpha/alpha.h (TARGET_VERSION): Remove.
5839         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
5840         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
5841         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
5842         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5843         * config/arm/arm.h (TARGET_VERSION): Remove.
5844         * config/arm/coff.h (TARGET_VERSION): Remove.
5845         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
5846         * config/arm/elf.h (TARGET_VERSION): Remove.
5847         * config/arm/freebsd.h (TARGET_VERSION): Remove.
5848         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
5849         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
5850         * config/arm/pe.h (TARGET_VERSION): Remove.
5851         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
5852         * config/arm/semi.h (TARGET_VERSION): Remove.
5853         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
5854         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
5855         * config/arm/vxworks.h (TARGET_VERSION): Remove.
5856         * config/avr/avr.h (TARGET_VERSION): Remove.
5857         * config/bfin/bfin.h (TARGET_VERSION): Remove.
5858         * config/fr30/fr30.h (TARGET_VERSION): Remove.
5859         * config/frv/frv.h (TARGET_VERSION): Remove.
5860         * config/h8300/h8300.h (TARGET_VERSION): Remove.
5861         * config/i386/cygwin.h (TARGET_VERSION): Remove.
5862         * config/i386/darwin.h (TARGET_VERSION): Remove.
5863         * config/i386/darwin64.h (TARGET_VERSION): Remove.
5864         * config/i386/djgpp.h (TARGET_VERSION): Remove.
5865         * config/i386/freebsd.h (TARGET_VERSION): Remove.
5866         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
5867         * config/i386/gnu.h (TARGET_VERSION): Remove.
5868         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
5869         * config/i386/i386elf.h (TARGET_VERSION): Remove.
5870         * config/i386/linux.h (TARGET_VERSION): Remove.
5871         * config/i386/linux64.h (TARGET_VERSION): Remove.
5872         * config/i386/lynx.h (TARGET_VERSION): Remove.
5873         * config/i386/mingw32.h (TARGET_VERSION): Remove.
5874         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
5875         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
5876         * config/i386/netware.h (TARGET_VERSION): Remove.
5877         * config/i386/nto.h (TARGET_VERSION): Remove.
5878         * config/i386/openbsd.h (TARGET_VERSION): Remove.
5879         * config/i386/vxworks.h (TARGET_VERSION): Remove.
5880         * config/ia64/elf.h (TARGET_VERSION): Remove.
5881         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
5882         * config/ia64/hpux.h (TARGET_VERSION): Remove.
5883         * config/ia64/linux.h (TARGET_VERSION): Remove.
5884         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
5885         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
5886         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5887         * config/lm32/lm32.h (TARGET_VERSION): Remove.
5888         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
5889         * config/m32c/m32c.h (TARGET_VERSION): Remove.
5890         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
5891         * config/m32r/m32r.h (TARGET_VERSION): Remove.
5892         * config/m68k/linux.h (TARGET_VERSION): Remove.
5893         * config/m68k/m68k.h (TARGET_VERSION): Remove.
5894         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
5895         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
5896         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
5897         * config/mep/mep.h (TARGET_VERSION): Remove.
5898         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
5899         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
5900         * config/mips/iris6.h (MACHINE_TYPE): Remove.
5901         * config/mips/linux.h (TARGET_VERSION): Remove.
5902         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
5903         * config/mips/vxworks.h (TARGET_VERSION): Remove.
5904         * config/mmix/mmix.h (TARGET_VERSION): Remove.
5905         * config/mn10300/linux.h (TARGET_VERSION): Remove.
5906         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
5907         * config/pa/pa.h (TARGET_VERSION): Remove.
5908         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
5909         * config/picochip/picochip.h (TARGET_VERSION): Remove.
5910         * config/rs6000/aix.h (TARGET_VERSION): Remove.
5911         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
5912         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
5913         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
5914         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
5915         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
5916         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
5917         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
5918         * config/rs6000/linux.h (TARGET_VERSION): Remove.
5919         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
5920         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
5921         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
5922         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
5923         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
5924         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
5925         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
5926         * config/s390/linux.h (TARGET_VERSION): Remove.
5927         * config/s390/s390.h (TARGET_VERSION): Remove.
5928         * config/s390/tpf.h (TARGET_VERSION): Remove.
5929         * config/score/score.h (TARGET_VERSION): Remove.
5930         * config/sh/linux.h (TARGET_VERSION): Remove.
5931         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
5932         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
5933         * config/sh/sh.h (TARGET_VERSION): Remove.
5934         * config/sh/sh64.h (TARGET_VERSION): Remove.
5935         * config/sh/superh.h (TARGET_VERSION): Remove.
5936         * config/sh/vxworks.h (TARGET_VERSION): Remove.
5937         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
5938         * config/sparc/linux.h (TARGET_VERSION): Remove.
5939         * config/sparc/linux64.h (TARGET_VERSION): Remove.
5940         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
5941         TARGET_NAME32, TARGET_NAME): Remove.
5942         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
5943         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
5944         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
5945         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
5946         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
5947         * config/spu/spu.h (TARGET_VERSION): Remove.
5948         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
5949         * config/v850/v850.h (TARGET_VERSION): Remove.
5950         * config/vax/linux.h (TARGET_VERSION): Remove.
5951         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
5952         * config/xtensa/elf.h (TARGET_VERSION): Remove.
5953         * config/xtensa/linux.h (TARGET_VERSION): Remove.
5954
5955 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
5956
5957         PR target/48142
5958         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
5959         frame-related from frame-unrelated adjustments to the stack pointer.
5960
5961 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
5962
5963         * common.opt (fdebug-types-section): Move earlier.
5964         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
5965
5966 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
5967
5968         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
5969         var.
5970
5971 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
5972
5973         * tree.h (CASE_CHAIN): Define.
5974         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
5975         (gimple_redirect_edge_and_branch): Likewise.
5976
5977 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
5978
5979         PR middle-end/48367
5980         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
5981         calculation.
5982
5983 2011-03-30  Jeff Law  <law@redhat.com>
5984
5985         * PR bootstrap/48371
5986         * reload1.c (reload): Fix botch in last change.
5987
5988         * reload.h (struct reload): Fix typo introduced in last change.
5989
5990 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
5991
5992         * config/arm/arm.opt (mhard-float, msoft-float): Mark
5993         Undocumented.  Remove help text.
5994         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
5995         -mhard-float.
5996
5997 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
5998
5999         * doc/options.texi (NegativeAlias): Document.
6000         (Alias): Mention NegativeAlias.
6001         * opt-functions.awk: Handle NegativeAlias.
6002         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6003         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6004         * opts.h (CL_NEGATIVE_ALIAS): Define.
6005         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6006         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6007         OPT_mspe_.
6008         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6009         Alias entries.
6010         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6011         mno-spe and mno-isel instead of mspe=no and -misel=no.
6012
6013 2011-03-29  Mark Wielaard  <mjw@redhat.com>
6014
6015         * common.opt (fdebug-types-section): New flag.
6016         * doc/invoke.texi: Document new -fno-debug-types-section flag.
6017         * dwarf2out.c (use_debug_types): New define.
6018         (struct die_struct): Mark die_id with GTY desc use_debug_types.
6019         (print_die): Guard output of type unit signatures using
6020         use_debug_types.
6021         (build_abbrev_table): Replace assert of dwarf_version >= 4
6022         with assert on use_debug_types.
6023         (size_of_die): Likewise.
6024         (unmark_dies): Likewise.
6025         (value_format): Decide AT_ref_external form on use_debug_types.
6026         (output_die): Replace dwarf_version version check guard with
6027         use_debug_types where appropriate.
6028         (modified_type_die): Likewise.
6029         (gen_reference_type_die): Likewise.
6030         (dwarf2out_start_source_file): Likewise.
6031         (dwarf2out_end_source_file): Likewise.
6032         (prune_unused_types_walk_attribs): Likewise.
6033         (dwarf2out_finish): Likewise.
6034
6035 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6036
6037         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6038
6039 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6040
6041         PR rtl-optimization/48332
6042         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6043         mode of input operand N and modeN to its actual mode.
6044
6045 2011-03-30  Jeff Law  <law@redhat.com>
6046
6047         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6048         define accessor macro.
6049         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6050         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6051         (reg_equiv_init): Likewise.
6052         (reg_equivs_size): New variable.
6053         (reg_equiv_init_size): Remove.
6054         (allocate_initial_values): Move prototype to here from....
6055         * integrate.h (allocate_initial_values): Remove prototype.
6056         * integrate.c: Include reload.h.
6057         (allocate_initial_values): Corresponding changes.
6058         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6059         (fix_reg_equiv_init, no_equiv): Corresponding changes.
6060         (update_equiv_regs): Corresponding changes.
6061         (ira): Corresponding changes.
6062         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6063         (push_secondary_reload): Corresponding changes.
6064         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6065         (make_memloc, find_reloads_address): Corresponding changes.
6066         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6067         (find_reloads_address_1): Corresponding changes.
6068         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6069         (refers_to_regno_for_reload_p): Corresponding changes.
6070         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6071         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6072         * reload1.c: Include ggc.h.
6073         (grow_reg_equivs): New function.
6074         (replace_pseudos_in, reload): Corresponding changes.
6075         (calculate_needs_all_insns, alter_regs): Corresponding changes.
6076         (eliminate_regs_1, elimination_effects): Corresponding changes.
6077         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6078         (delete_output_reload): Likewise.
6079         * caller-save.c (mark_referenced_regs): Corresponding changes.
6080         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6081         * frv/predicates.md (frv_load_operand): Corresponding changes.
6082         * microblaze/microblaze.c (double_memory_operand): Corresponding
6083         changes.
6084         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6085         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6086         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6087         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6088         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6089         changes.
6090         * pa/pa.c (emit_move_sequence): Corresponding changes.
6091         * vax/vax.c (nonindexed_address_p): Corresponding changes.
6092
6093 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6094
6095         PR target/47551
6096         * config/arm/arm.c (coproc_secondary_reload_class): Handle
6097         structure modes.  Don't check neon_vector_mem_operand for
6098         vector or structure modes.
6099
6100 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
6101             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6102
6103         PR target/43590
6104         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6105         operand 1 and reshuffle the operands to match.
6106         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6107
6108 2011-03-30  Christian Schüler  <cschueler@gmx.de>
6109
6110         PR driver/48208
6111         * config/c.opt (F): Added 'Driver' to -F option.
6112
6113         PR driver/48260
6114         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6115           handler function.
6116         * config/darwin.opt: Added '-arch' option.
6117
6118 2011-03-30  Nick Clifton  <nickc@redhat.com>
6119
6120         * config/rx/rx.md: Add peepholes and patterns to combine
6121         extending loads and simple arithmetic instructions.
6122         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6123         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6124         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6125         modes to use pre-decrement and post-increment addressing.
6126         (rx_is_restricted_memory_address): Add range checking of REG+INT
6127         addresses.
6128         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
6129         (rx_memory_move_cost): Adjust cost of stores.
6130         (rx_adjust_insn_length): New function.
6131
6132 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
6133
6134         PR c/48305
6135         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6136         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6137         matching arg00/arg01 types.
6138
6139 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
6140
6141         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6142         last_location to UNKNOWN_LOCATION.
6143
6144 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6145
6146         PR target/48349
6147         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6148         FLOAT_SSE_REGS.
6149
6150 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
6151             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6152
6153         PR bootstrap/48337
6154         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6155         Init(PROCESSOR_V7).
6156         (sparc_cpu): Likewise.
6157         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6158         PROCESSOR_V7.
6159
6160 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6161
6162         PR target/48336
6163         PR middle-end/48342
6164         PR rtl-optimization/48345
6165         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6166         hard regs for given mode from profitable regs when doing secondary
6167         allocation.
6168
6169 2011-03-29  Jeff Law  <law@redhat.com>
6170
6171         PR bootstrap/48327
6172         * tree-ssa-threadupdate.c (struct redirection_data): Remove
6173         do_not_duplicate field.
6174         (lookup_redirection_data): Corresponding changes.
6175         (create_duplicates): Always create a template block.
6176         (redirect_edges): Remove code which reused the original block
6177         when it was going to become unreachable code.
6178         (thread_block): Don't set do_not_duplicate field.
6179
6180 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
6181
6182         * lto-opts.c (register_user_option_p, lto_register_user_option):
6183         Make type argument unsigned.
6184         * lto-streamer.h (lto_register_user_option): Make type argument
6185         unsigned.
6186         * opth-gen.awk: Make CL_* macros unsigned.
6187         * opts-common.c (find_opt): Make lang_mask argument unsigned.
6188         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6189         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6190         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6191         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6192         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6193         (find_opt): Make lang_mask argument unsigned.
6194
6195 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6196
6197         PR rtl-optimization/48331
6198         PR rtl-optimization/48334
6199         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6200         for any used algorithm.
6201
6202 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
6203
6204         * ira-conflicts.c (build_object_conflicts): Add unused attribute
6205         to parent_max.
6206
6207 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
6208
6209         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6210         (alpha_option_override): Don't set alpha_sr_alias_set.
6211         (emit_frame_store_1): Use gen_frame_mem rather than calling
6212         set_mem_alias_set.
6213         (alpha_expand_epilogue): Ditto.
6214
6215 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
6216
6217         PR tree-optimization/48290
6218         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6219         vectorization, check that relevant phis in the basic block after
6220         the inner loop are really inner loop's exit phis.
6221
6222 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
6223
6224         PR debug/48190
6225         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6226         (cached_dw_loc_list_def): New structure.
6227         (cached_dw_loc_list): New typedef.
6228         (cached_dw_loc_list_table): New variable.
6229         (cached_dw_loc_list_table_hash): New function.
6230         (cached_dw_loc_list_table_eq): Likewise.
6231         (add_location_or_const_value_attribute): Take a bool cache_p.
6232         Cache the list when the parameter is true.
6233         (gen_formal_parameter_die): Update caller.
6234         (gen_variable_die): Likewise.
6235         (dwarf2out_finish): Likewise.
6236         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6237         while generating debug info for the decl.
6238         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6239         (dwarf2out_init): Initialize cached_dw_loc_list_table.
6240         (resolve_addr): Cache the result of resolving a chain of
6241         location lists.
6242
6243 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
6244
6245         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6246         conflict object hard regset nodes have intersecting hard reg sets.
6247
6248         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6249         after regstat_init_n_sets_and_refs.
6250
6251         * ira.c: Add more comments at the top.
6252         (setup_stack_reg_pressure_class, setup_pressure_classes):
6253         Add comments how we compute the register pressure classes.
6254         (setup_allocno_and_important_classes): Add more comments.
6255         (setup_class_translate_array, reorder_important_classes)
6256         (setup_reg_class_relations): Add comments.
6257
6258         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
6259         start of the file.
6260
6261         * ira-color.c: Add 2011 to the Copyright line.
6262         (assign_hard_reg):  Add more comments.
6263         (improve_allocation): Ditto.
6264
6265         * ira-costs.c: Add 2011 to the Copyright line.
6266         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6267         comments.
6268         (setup_regno_cost_classes_by_mode): Ditto.
6269
6270         Initial patches from ira-improv branch:
6271
6272         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6273
6274         * ira-build.c (ira_create_object): Remove initialization of
6275         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
6276         (ira_create_allocno): Remove initialization of
6277         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6278         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6279         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6280         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6281         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6282         Initialize ALLOCNO_ADD_DATA.
6283         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6284         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6285         ALLOCNO_REG.
6286         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
6287         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6288
6289         * ira.c (ira_reallocate): Remove.
6290         (setup_pressure_classes): Call
6291         ira_init_register_move_cost_if_necessary.  Use
6292         ira_register_move_cost instead of ira_get_register_move_cost.
6293         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6294         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6295
6296         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6297         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6298         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6299         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6300         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6301         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6302         Fix formatting.
6303         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6304         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6305         (struct allocno_color_data): New.
6306         (allocno_color_data_t): New typedef.
6307         (allocno_color_data): New definition.
6308         (ALLOCNO_COLOR_DATA): New macro.
6309         (struct object_color_data): New.
6310         (object_color_data_t): New typedef.
6311         (object_color_data): New definition.
6312         (OBJECT_COLOR_DATA): New macro.
6313         (update_copy_costs, calculate_allocno_spill_cost): Call
6314         ira_init_register_move_cost_if_necessary.  Use
6315         ira_register_move_cost instead of ira_get_register_move_cost.
6316         (move_spill_restore, update_curr_costs): Ditto.
6317         (allocno_spill_priority): Make it inline.
6318         (color_pass): Allocate and free allocno_color_dat and object_color_data.
6319         (struct coalesce_data, coalesce_data_t): New.
6320         (allocno_coalesce_data): New definition.
6321         (ALLOCNO_COALESCE_DATA): New macro.
6322         (merge_allocnos, coalesced_allocno_conflict_p): Use
6323         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6324         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6325         (coalesce_allocnos): Ditto.
6326         (setup_coalesced_allocno_costs_and_nums): Ditto.
6327         (collect_spilled_coalesced_allocnos): Ditto.
6328         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6329         (setup_slot_coalesced_allocno_live_ranges): Ditto.
6330         (coalesce_spill_slots): Ditto.
6331         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
6332         free allocno_coalesce_data.
6333
6334         * ira-conflicts.c: Fix formatting.
6335         (process_regs_for_copy): Call
6336         ira_init_register_move_cost_if_necessary.  Use
6337         ira_register_move_cost instead of ira_get_register_move_cost.
6338         (build_object_conflicts): Optimize.
6339
6340         * ira-costs.c (record_reg_classes): Optimize.  Call
6341         ira_init_register_move_cost_if_necessary.  Use
6342         ira_register_move_cost, ira_may_move_in_cost, and
6343         ira_may_move_out_cost instead of ira_get_register_move_cost and
6344         ira_get_may_move_cost.
6345         (record_address_regs): Ditto.
6346         (scan_one_insn): Optimize.
6347         (find_costs_and_classes): Optimize.
6348         (process_bb_node_for_hard_reg_moves): Call
6349         ira_init_register_move_cost_if_necessary.  Use
6350         ira_register_move_cost instead of ira_get_register_move_cost.
6351
6352         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6353         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6354         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6355         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6356         definitions.
6357         (ira_initiate_emit_data, ira_finish_emit_data)
6358         (create_new_allocno): New functions.
6359         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6360         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6361         Use ira_register_move_cost instead of ira_get_register_move_cost.
6362
6363         * ira-int.h: Fix some comments.
6364         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6365         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6366         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6367         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
6368         add_data.
6369         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
6370         bitfield after mode.  Make hard_regno a short int.  Make
6371         hard_regno short.  Remove first_coalesced_allocno and
6372         next_coalesced_allocno.  Move mem_optimized_dest_p,
6373         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6374         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
6375         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6376         temp, colorable_p.  Add new member add_data.
6377         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6378         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6379         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6380         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6381         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6382         (ALLOCNO_ADD_DATA): New macro.
6383         (ira_emit_data_t): New typedef.
6384         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
6385         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6386         from struct ira_allocno.
6387         (ALLOCNO_EMIT_DATA): New macro.
6388         (ira_allocno_emit_data, allocno_emit_reg): New.
6389         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6390         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6391         (OBJECT_ADD_DATA): New macro.
6392         (ira_reallocate): Remove.
6393         (ira_initiate_emit_data, ira_finish_emit_data): New.
6394         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6395         (ira_init_register_move_cost_if_necessary): New.
6396         (ira_object_conflict_iter_next): Merge into
6397         ira_object_conflict_iter_cond.
6398         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6399
6400         * ira-live.c (process_single_reg_class_operands): Call
6401         ira_init_register_move_cost_if_necessary.  Use
6402         ira_register_move_cost instead of ira_get_register_move_cost.
6403
6404         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
6405
6406         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6407
6408         * ira-costs.c: Fix formatting.
6409         (cost_classes, cost_classes_num): Remove.
6410         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6411         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6412         (cost_classes_del, cost_classes_htab): New.
6413         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6414         (initiate_regno_cost_classes, setup_cost_classes): New.
6415         (setup_regno_cost_classes_by_aclass): New.
6416         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6417         (record_reg_classes): Use regno_cost_classes instead of
6418         cost_classes.  Move checking opposite operand up.
6419         (record_address_regs): Use regno_cost_classes
6420         instead of cost_classes.
6421         (scan_one_insn): Ditto.  Use always general register.
6422         (print_allocno_costs): Use regno_cost_classes instead of
6423         cost_classes.
6424         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
6425         (find_costs_and_classes): Set up cost classes for each registers.
6426         Use also their mode for this.  Use regno_cost_classes instead of
6427         cost_classes.
6428         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6429         cost_classes.
6430         (free_ira_costs, ira_init_costs): Don't use cost_classes.
6431         (ira_costs, ira_set_pseudo_classes): Call
6432         initiate_regno_cost_classes and finish_regno_cost_classes.
6433
6434         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
6435
6436         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6437
6438         * target.def (ira_cover_classes): Remove.
6439
6440         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6441
6442         * doc/tm.texi.in: Ditto.
6443
6444         * ira-conflicts.c: Remove mentioning cover classes from the file.
6445         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
6446         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
6447
6448         * targhooks.c (default_ira_cover_classes): Remove.
6449
6450         * targhooks.h (default_ira_cover_classes): Ditto.
6451
6452         * haifa-sched.c: Remove mentioning cover classes from the file.
6453         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6454         ira_pressure_classes and ira_pressure_classes_num instead of
6455         ira_reg_class_cover_size and ira_reg_class_cover.  Use
6456         sched_regno_pressure_class instead of sched_regno_cover_class.
6457         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6458         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6459
6460         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
6461         classes from the file.
6462         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6463         (struct object_hard_regs, struct object_hard_regs_node): New.
6464         (struct ira_object): New members profitable_hard_regs,
6465         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6466         (struct ira_allocno): Rename cover_class to aclass.  Rename
6467         cover_class_cost and updated_cover_class_cost to class_cost and
6468         updated_class_cost.  Remove splay_removed_p and
6469         left_conflict_size.  Add new members colorable_p.
6470         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6471         (ALLOCNO_COLORABLE_P): New macro.
6472         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6473         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6474         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6475         (OBJECT_...): Rename parameter C to O.
6476         (OBJECT_PROFITABLE_HARD_REGS): New macro.
6477         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6478         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6479         (struct target_ira_int): New members x_ira_max_memory_move_cost,
6480         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6481         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6482         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6483         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
6484         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
6485         x_ira_reg_class_subunion.
6486         (ira_max_memory_move_cost, ira_max_register_move_cost)
6487         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6488         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6489         (ira_important_class_nums, ira_reg_class_superunion): New macros.
6490         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6491         (ira_reg_class_union): Rename to ira_reg_class_subunion.
6492         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6493         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6494         (ira_tune_allocno_costs_and_cover_classes): Rename to
6495         ira_tune_allocno_costs.
6496         (ira_debug_hard_regs_forest): New.
6497         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6498         (ira_object_conflict_iter_next): Fix comments.
6499         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6500         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6501         cover_class to aclass.
6502         (ira_allocate_and_accumulate_costs): Ditto.
6503         (ira_allocate_and_set_or_copy_costs): Ditto.
6504
6505         * opts.c (decode_options): Remove ira_cover_class check.
6506
6507         * ira-color.c: Remove mentioning cover classes from the file.  Use
6508         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6509         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6510         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6511         (splay-tree.h): Remove include.
6512         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6513         before copy_freq_compare_func.
6514         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6515         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6516         New definitions.
6517         (hard_regs_roots, hard_regs_node_vec): Ditto.
6518         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6519         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6520         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6521         (create_new_object_hard_regs_node): Ditto.
6522         (add_new_object_hard_regs_node_to_forest): Ditto.
6523         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6524         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6525         Ditto.
6526         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6527         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6528         (remove_unused_object_hard_regs_nodes): Ditto.
6529         (enumerate_object_hard_regs_nodes): Ditto.
6530         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6531         (object_hard_regs_subnode_t): Ditto.
6532         (struct object_hard_regs_subnode): Ditto.
6533         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6534         (setup_object_hard_regs_subnode_index): Ditto.
6535         (get_object_hard_regs_subnodes_num): Ditto.
6536         (form_object_hard_regs_nodes_forest): Ditto.
6537         (finish_object_hard_regs_nodes_tree): Ditto.
6538         (finish_object_hard_regs_nodes_forest): Ditto.
6539         (allocnos_have_intersected_live_ranges_p): Rename to
6540         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6541         (pseudos_have_intersected_live_ranges_p): Rename to
6542         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
6543         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6544         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6545         (update_copy_costs): Remove assert.  Skip cost update if the hard
6546         reg does not belong the class.
6547         (assign_hard_reg): Process only profitable hard regs.
6548         (uncolorable_allocnos_num): Make it scalar.
6549         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6550         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6551         and ira_reg_class_max_nregs.
6552         (bucket_allocno_compare_func): Check frequency first.
6553         (sort_bucket): Add compare function as a parameter.
6554         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6555         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6556         (push_allocno_to_stack): Rewrite for checking new allocno
6557         colorability.
6558         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
6559         (push_only_colorable): Pass new parameter to sort_bucket.
6560         (push_allocno_to_spill): Remove.
6561         (allocno_spill_priority_compare): Make it inline and rewrite.
6562         (splay_tree_allocate, splay_tree_free): Remove.
6563         (allocno_spill_sort_compare): New function.
6564         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
6565         build and use splay tree.  Choose first allocno in uncolorable
6566         allocno bucket to spill.  Remove setting spill cost.
6567         (all_conflicting_hard_regs): Remove.
6568         (setup_allocno_available_regs_num): Check only profitable hard
6569         regs.  Print info about hard regs nodes.
6570         (setup_allocno_left_conflicts_size): Remove.
6571         (put_allocno_into_bucket): Don't call
6572         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
6573         (improve_allocation): New.
6574         (color_allocnos): Call setup_profitable_hard_regs,
6575         form_object_hard_regs_nodes_forest, improve_allocation,
6576         finish_object_hard_regs_nodes_forest.  Setup spill cost.
6577         (print_loop_title): Use pressure classes.
6578         (color_allocnso): Ditto.
6579         (do_coloring): Remove allocation and freeing splay_tree_node_pool
6580         and allocnos_for_spilling.
6581         (ira_sort_regnos_for_alter_reg): Don't setup members
6582         {first,next}_coalesced_allocno.
6583         (color): Remove allocating and freeing removed_splay_allocno_vec.
6584         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6585         prohibited_class_mode_regs.
6586
6587         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
6588         formatting.
6589         (update_allocno_pressure_excess_length): Use pressure classes.
6590         (inc_register_pressure, dec_register_pressure): Check for pressure
6591         class.
6592         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6593         pressure class.  Use ira_reg_class_nregs instead of
6594         ira_reg_class_max_nregs.
6595         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6596         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6597         (single_reg_class): Use ira_reg_class_nregs instead of
6598         ira_reg_class_max_nregs.
6599         (process_bb_node_lives): Use pressure classes.
6600
6601         * ira-emit.c: Remove mentioning cover classes from the file.  Use
6602         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6603         (change_loop): Use pressure classes.
6604         (modify_move_list): Call ira_set_allocno_class instead of
6605         ira_set_allocno_cover_class.
6606
6607         * ira-build.c: Remove mentioning cover classes from the file.  Use
6608         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6609         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
6610         ALLOCNO_UPDATED_CLASS_COST instead of
6611         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
6612         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6613         (ira_create_allocno): Remove initialization of
6614         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
6615         ALLOCNO_COLORABLE_P.
6616         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6617         Update conflict regs for the objects.
6618         (create_cap_allocno): Remove assert.  Don't propagate
6619         ALLOCNO_AVAILABLE_REGS_NUM.
6620         (ira_free_allocno_costs): New function.
6621         (finish_allocno): Change a part of code into call of
6622         ira_free_allocno_costs.
6623         (low_pressure_loop_node_p): Use pressure classes.
6624         (object_range_compare_func): Don't compare classes.
6625         (setup_min_max_conflict_allocno_ids): Ditto.
6626
6627         * loop-invariant.c: Remove mentioning cover classes from the file.
6628         Use ira_pressure_classes and ira_pressure_classes_num instead of
6629         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
6630         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6631         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6632         Use reg_allocno_class instead of reg_cover_class.
6633         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6634         STACK_REG_COVER_CLASS.
6635         (get_regno_cover_class): Rename to get_regno_pressure_class.
6636         (move_loop_invariants): Initialize and finalize regstat.
6637
6638         * ira.c: Remove mentioning cover classes from the file.  Add
6639         comments about coloring without cover classes.  Use ALLOCNO_CLASS
6640         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
6641         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6642         setup_class_subset_and_memory_move_costs.
6643         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6644         (setup_cover_and_important_classes): Rename to
6645         setup_allocno_and_important_classes.
6646         (setup_class_translate_array): New.
6647         (setup_class_translate): Call it for allocno and pressure classes.
6648         (cover_class_order): Rename to allocno_class_order.
6649         (comp_reg_classes_func): Use ira_allocno_class_translate instead
6650         of ira_class_translate.
6651         (reorder_important_classes): Set up ira_important_class_nums.
6652         (setup_reg_class_relations): Set up ira_reg_class_superunion.
6653         (print_class_cover): Rename to print_classes.  Add parameter.
6654         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6655         Print pressure classes too.
6656         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
6657         setup_reg_subclasses.
6658         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6659         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6660         (setup_prohibited_class_mode_regs): Use
6661         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6662         (clarify_prohibited_class_mode_regs): New function.
6663         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6664         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6665         (ira_init_once): Initialize them.
6666         (free_register_move_costs): Process them.
6667         (ira_init): Move calls of find_reg_classes and
6668         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6669         Call clarify_prohibited_class_mode_regs.
6670         (ira_no_alloc_reg): Remove.
6671         (too_high_register_pressure_p): Use pressure classes.
6672
6673         * sched-deps.c: Remove mentioning cover classes from the file.
6674         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
6675         ira_pressure_classes and ira_pressure_classes_num instead of
6676         ira_reg_class_cover_size and ira_reg_class_cover.
6677         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6678         sched_regno_pressure_class instead of sched_regno_cover_class.
6679         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
6680         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6681
6682         * ira.h: Add 2010 to Copyright.
6683         (ira_no_alloc_reg): Remove external.
6684         (struct target_ira): Rename x_ira_hard_regno_cover_class,
6685         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6686         x_ira_class_translate to x_ira_hard_regno_allocno_class,
6687         x_ira_allocno_classes_num, x_ira_allocno_classes, and
6688         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
6689         x_ira_pressure_classes, x_ira_pressure_class_translate, and
6690         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
6691         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
6692         x_ira_no_alloc_regs.
6693         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6694         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6695         ira_allocno_classes_num and ira_allocno_classes.
6696         (ira_class_translate): Rename to ira_allocno_class_translate.
6697         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6698         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6699         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6700         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6701         (ira_no_alloc_regs): New.
6702
6703         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
6704         classes from the file.  Use ALLOCNO_CLASS instead of
6705         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
6706         ALLOCNO_COVER_CLASS_COST.
6707         (regno_cover_class): Rename to regno_aclass.
6708         (record_reg_classes): Use ira_reg_class_subunion instead of
6709         ira_reg_class_union.
6710         (record_address_regs): Check overflow.
6711         (scan_one_insn): Ditto.
6712         (print_allocno_costs): Print total mem cost fore regional allocation.
6713         (print_pseudo_costs): Use REG_N_REFS.
6714         (find_costs_and_classes): Use classes intersected with them on the
6715         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
6716         ira_reg_class_union.  Use ira_allocno_class_translate and
6717         regno_aclass instead of ira_class_translate and regno_cover_class.
6718         Modify code for finding regno_aclass.  Setup preferred classes for
6719         the next pass.
6720         (setup_allocno_cover_class_and_costs): Rename to
6721         setup_allocno_class_and_costs.  Use regno_aclass instead of
6722         regno_cover_class.  Use ira_set_allocno_class instead of
6723         ira_set_allocno_cover_class.
6724         (init_costs, finish_costs): Use regno_aclass instead of
6725         regno_cover_class.
6726         (ira_costs): Use setup_allocno_class_and_costs instead of
6727         setup_allocno_cover_class_and_costs.
6728         (ira_tune_allocno_costs_and_cover_classes): Rename to
6729         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
6730         by processing objects.  Use ira_reg_class_max_nregs instead of
6731         ira_reg_class_nregs.
6732
6733         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6734
6735         * sched-int.h: Remove mentioning cover classes from the file.
6736         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6737
6738         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
6739         classes from the file.
6740         (struct reg_pref): Rename coverclass into allocnoclass.
6741         (reg_cover_class): Rename to reg_allocno_class.
6742
6743         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6744
6745         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6746
6747         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6748
6749         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6750
6751         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6752
6753         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6754
6755         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6756
6757         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6758
6759         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6760
6761         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6762
6763         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6764         (i386_ira_cover_classes): Ditto.
6765
6766         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6767
6768         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6769
6770         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6771
6772         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6773
6774         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6775
6776         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6777
6778         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6779         (mips_ira_cover_classes): Ditto.
6780
6781         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6782
6783         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6784
6785         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6786
6787         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6788
6789         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6790
6791         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6792         (IRA_COVER_CLASSES_VSX): Ditto.
6793
6794         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6795         (rs6000_ira_cover_classes): Ditto.
6796
6797         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6798
6799         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
6800
6801         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
6802
6803         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
6804
6805         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
6806
6807         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
6808
6809         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
6810
6811         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
6812
6813         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
6814
6815         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
6816
6817 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
6818
6819         PR debug/48253
6820         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
6821         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
6822         dw_fde_unlikely_section_end_label, cold_in_std_section,
6823         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
6824         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
6825         fields.
6826         (output_fde): Use dw_fde_second_{begin,end} if second is
6827         true, otherwise dw_fde_{begin,end}.
6828         (output_call_frame_info): Test dw_fde_second_begin != NULL
6829         instead of dw_fde_switched_sections.
6830         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
6831         fields, initialize new fields.  Initialize in_std_section
6832         unconditionally from the first partition.
6833         (dwarf2out_end_epilogue): Don't override dw_fde_end when
6834         dw_fde_second_begin is non-NULL.
6835         (dwarf2out_switch_text_section): Stop initializing removed
6836         dw_fde_struct fields, initialize new fields, initialize
6837         also dw_fde_end here.  Set dw_fde_switch_cfi even when
6838         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
6839         (struct var_loc_list_def): Add last_before_switch field.
6840         (arange_table, arange_table_allocated, arange_table_in_use,
6841         ARANGE_TABLE_INCREMENT, add_arange): Removed.
6842         (size_of_aranges): Count !in_std_section and !second_in_std_section
6843         hunks in fdes, instead of looking at arange_table_in_use.
6844         (output_aranges): Add aranges_length argument, don't call
6845         size_of_aranges here.  Instead of using aranges_table*
6846         emit ranges for fdes when !in_std_section resp.
6847         !second_in_std_section.
6848         (dw_loc_list): Break ranges crossing section switch.
6849         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
6850         use dw_fde_second_end instead of dw_fde_end as end of last range.
6851         (gen_subprogram_die): Don't call add_arange.  Use
6852         dw_fde_{begin,end} for first partition and if switched
6853         section dw_fde_second_{begin,end} for the second.
6854         (var_location_switch_text_section_1,
6855         var_location_switch_text_section): New functions.
6856         (dwarf2out_begin_function): Initialize cold_text_section even
6857         when function_section () isn't text_section.
6858         (prune_unused_types): Don't walk arange_table.
6859         (dwarf2out_finish): Don't needlessly test
6860         flag_reorder_blocks_and_partition when testing cold_text_section_used.
6861         If info_section_emitted, call size_of_aranges and if it indicates
6862         non-empty .debug_aranges, call output_aranges with the computed
6863         size.  Stop using removed dw_fde_struct fields, use
6864         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
6865         for second.
6866
6867         PR debug/48203
6868         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
6869         create ENTRY_VALUE if incoming or address of incoming's MEM
6870         is a hard REG.
6871         * dwarf2out.c (mem_loc_descriptor): Don't emit
6872         DW_OP_GNU_entry_value of DW_OP_fbreg.
6873         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
6874         on ENTRY_VALUE is able to find the canonical parameter VALUE.
6875         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
6876         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
6877         ENTRY_VALUE_EXPs.
6878         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
6879         is a REG_P or MEM_P with REG_P address, compute hash directly
6880         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
6881         (preserve_only_constants): Don't clear VALUES forwaring
6882         ENTRY_VALUE to some other VALUE.
6883
6884 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
6885
6886         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
6887         instead of GEN_INT.
6888
6889 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
6890
6891         * cfgexpand.c (expand_gimple_cond): Always set the source location and
6892         block before expanding the statement.
6893         (expand_gimple_stmt_1): Likewise.  Set them here...
6894         (expand_gimple_stmt): ...and not here.  Tidy.
6895         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
6896         unknown.
6897
6898 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
6899
6900         * Makefile.in: New rule for cprop.o.
6901         * gcse.c: Move constant/copy propagation to cprop.c.
6902         (compute_local_properties): Only handle expression tables.
6903         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
6904         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
6905         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
6906         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
6907         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
6908         compute_cprop_data, find_used_regs, try_replace_reg,
6909         find_avail_set, cprop_jump, constprop_register, cprop_insn,
6910         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
6911         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
6912         find_bypass_set, reg_killed_on_edge, bypass_block,
6913         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
6914         execute_rtl_cprop, pass_rtl_cprop): Move to...
6915         * cprop.c: ...here.  New file, constant/copy propagation for RTL
6916         moved from gcse.c to here with minor cleanups in duplicated code.
6917
6918 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
6919
6920         * config/i386/i386.c (flag_opts): Fix a typo in
6921         -mavx256-split-unaligned-store.
6922
6923 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
6924
6925         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
6926         LIBCALL_VALUE): Remove macros.
6927         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6928         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6929         (h8300_function_value, h8300_libcall_value,
6930         h8300_function_value_regno_p): New functions.
6931
6932 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
6933
6934         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
6935
6936 2011-03-28  Jeff Law  <law@redhat.com>
6937
6938         * tree-ssa-threadupdate.c (redirect_edges): Call
6939         create_edge_and_update_destination_phis as needed.
6940         (create_edge_and_update_destination_phis): Accept new BB argument.
6941         All callers updated.
6942         (thread_block): Do not update the profile when threading around
6943         intermediate blocks.
6944         (thread_single_edge): Likewise.
6945         (determine_bb_domination_status): If BB is not a successor of the
6946         loop header, return NONDOMINATING.
6947         (register_jump_thread): Note when we register a jump thread around
6948         an intermediate block.
6949         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
6950         (thread_across_edge): Use it.
6951
6952 2011-03-28  Tristan Gingold  <gingold@adacore.com>
6953
6954         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
6955         when for_return is 2.
6956
6957 2011-03-28  Jeff Law  <law@redhat.com>
6958
6959         * var-tracking.c (canonicalize_values_mark): Delete unused
6960         lhs assignment.
6961         (canonicalize_values_star, set_variable_part): Likewise.
6962         (clobber_variable_part, delete_variable_part): Likewise.
6963
6964 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
6965
6966         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
6967
6968 2011-03-28  Martin Jambor  <mjambor@suse.cz>
6969
6970         * tree-inline.c (expand_call_inline): Do not check that destination
6971         node is analyzed.
6972         (optimize_inline_calls): Assert that destination node is analyzed.
6973         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
6974         not call tree_lowering_passes.
6975         * cgraph.h (cgraph_analyze_function): Declare.
6976         * cgraphunit.c (cgraph_analyze_function): Make public.
6977
6978 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
6979
6980         * config/sparc/sparc-opts.h: New.
6981         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
6982         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
6983         (sparc_option_override): Store processor_type enumeration rather
6984         than string in cpu_default.  Remove name and enumeration from
6985         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
6986         without using sparc_select.  Use target_flags_explicit instead of
6987         fpu_option_set.
6988         * config/sparc/sparc.h (enum processor_type): Move to
6989         sparc-opts.h.
6990         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
6991         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
6992         HeaderInclude entry.
6993         (mcpu=, mtune=): Use Var and Enum.
6994         (sparc_processor_type): New Enum and EnumValue entries.
6995
6996 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6997             Iain Sandoe  <iains@gcc.gnu.org>
6998
6999         PR target/48245
7000         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7001
7002 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
7003
7004         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7005         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7006         Insert new statements at it in lieu of STMT.
7007         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7008         * tree-vect-stmts.c (vectorizable_store): Likewise.
7009         (vectorizable_load): Likewise.
7010
7011 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
7012
7013         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7014         (divtf3): Ditto.
7015         (multf3): Ditto.
7016         (subtf3): Ditto.
7017
7018 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7019
7020         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7021         unaligned 256bit load/store.
7022         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7023         (*avx_movdqu<avxmodesuffix>): Likewise.
7024
7025 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7026
7027         PR target/48288
7028         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7029         * config/pa/pa.md (iordi3): Use new predicate in expander.
7030         (iorsi3): Likewise.
7031
7032 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
7033
7034         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7035         FUNCTION_VALUE_REGNO_P): Remove macros.
7036         * config/mips/mips-protos.h (mips_function_value): Remove.
7037         * config/mips/mips.c (mips_function_value): Rename to...
7038         (mips_function_value_1): ... this. Make static.  Handle receiving
7039         the function type in 'fn_decl_or_type' argument.
7040         (mips_function_value, mips_libcall_value,
7041         mips_function_value_regno_p): New function.
7042         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7043         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7044
7045 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7046
7047         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7048         and -mavx256-split-unaligned-store.
7049         (ix86_option_override_internal): Split 32-byte AVX unaligned
7050         load/store by default.
7051         (ix86_avx256_split_vector_move_misalign): New.
7052         (ix86_expand_vector_move_misalign): Use it.
7053
7054         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7055         -mavx256-split-unaligned-store.
7056
7057         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7058         256bit load/store.  Generate unaligned store on misaligned memory
7059         operand.
7060         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7061         256bit load/store.
7062         (*avx_movdqu<avxmodesuffix>): Likewise.
7063
7064         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7065         -mavx256-split-unaligned-store.
7066
7067 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7068
7069         PR target/38598
7070         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7071         Update commentary.
7072
7073 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
7074
7075         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7076         opno arguments with an expand_operand.  Use create_input_operand.
7077         (mips_prepare_builtin_target): Delete.
7078         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7079         functions.
7080         (mips_expand_builtin_direct): Use create_output_operand and
7081         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
7082         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
7083         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7084
7085 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
7086
7087         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7088         function.
7089         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7090
7091 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7092
7093         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7094         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
7095         basic blocks and call commit_edge_insertions directly.
7096         (fixup_abnormal_edges): Move from here to...
7097         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
7098         on the edges and return whether some have actually been inserted.
7099         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7100         compensation code.
7101
7102 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
7103
7104         PR rtl-optimization/48144
7105         * sel-sched-ir.c (merge_history_vect): Factor out from ...
7106         (merge_expr_data): ... here.
7107         (av_set_intersect): Rename to av_set_code_motion_filter.
7108         Update all callers.  Call merge_history_vect when an expression
7109         is found in both sets.
7110         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7111
7112 2011-03-26  Alan Modra  <amodra@gmail.com>
7113
7114         * config/rs6000/predicates.md (word_offset_memref_op): Handle
7115         cmodel medium addresses.
7116         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7117         64-bit gpr loads and stores.
7118         (rs6000_secondary_reload_ppc64): New function.
7119         * config/rs6000/rs6000-protos.h: Declare it.
7120         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7121
7122 2011-03-26  Alan Modra  <amodra@gmail.com>
7123
7124         PR target/47487
7125         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7126         GNU Go in traceback table.
7127
7128 2011-03-25  Richard Henderson  <rth@redhat.com>
7129
7130         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7131         if there are exactly 6 operands.
7132         (set_storage_via_setmem): Similarly.
7133
7134 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7135
7136         * collect2.c (write_c_file_stat): Handle backslash
7137         as right-hand directory separator.
7138         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7139         checking just for slash.
7140         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7141         instead of checking for trailing slash.
7142         * gcc.c (record_temp_file): Use filename_cmp instead
7143         of strcmp.
7144         (do_spec_1): Likewise.
7145         (replace_outfile_spec_function): Likewise.
7146         (is_directory): Use filename_ncmp instead of strncmp.
7147         (print_multilib_info): Likewise.
7148         * gcov.c (find_source): Use filename_cmp instead
7149         instead of strcmp.
7150         (make_gcov_file_name): Fix order of slash/backslash
7151         checks.
7152         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7153         (add_standard_paths): Likewise.
7154         * mips-tfile.c (saber_stop): Handle backslash.
7155         * prefix.c (update_path): Use filename_ncmp instead of
7156         strncmp.
7157         * profile.c (output_location): Use filename_cmp instead
7158         of strcmp.
7159         * read-md.c (handle_toplevel_file): Handle backslash.
7160         * tlink.c (frob_extension):  Likewise.
7161         * tree-cfg.c (same_line_p): Use filename_cmp instead of
7162         strcmp.
7163         * tree-dump.c (dequeue_and_dump): Handle backslash.
7164         * tree.c (get_file_function_name): Likewise.
7165         * gengtype.c (read_input_list): Likewise.
7166         (get_file_realbasename): Likewise.
7167         (get_output_file_with_visibility): Use filename_cmp
7168         instead of strcmp.
7169
7170 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
7171
7172         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7173         case to VFPv1.
7174
7175 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7176
7177         * fold-const.c (expr_location_or): New function.
7178         (fold_truth_not_expr): Call it.
7179
7180 2011-03-25  Jeff Law  <law@redhat.com>
7181
7182         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7183         va_end.
7184         * c-family/c-common.c (def_fn_type): Likewise.
7185         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7186         * emit-rtl.c (gen_rtvec): Likewise.
7187         * lto/lto-lang.c (def_fn_type): Likewise.
7188
7189 2011-03-25  Richard Guenther  <rguenther@suse.de>
7190
7191         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7192         also generate copies.
7193         (fini_copy_prop): Handle constant values properly.
7194
7195 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
7196
7197         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7198         mode size instead of bitsize with DWARF2_ADDR_SIZE.
7199         (hash_loc_operands, compare_loc_operands): Handle
7200         DW_OP_GNU_entry_value.
7201
7202 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7203
7204         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7205         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7206         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7207         comment and use macro TARGET_64BIT_MS_ABI instead.
7208         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7209         and change default behavior for 32-bit MS_ABI.
7210         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7211         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7212         32-bit, too.
7213         (ix86_cfun_abi): Likewise.
7214         (ix86_maybe_switch_abi): Adjust comment.
7215         (init_cumulative_args): Check for bit-ness in MS_ABI case.
7216         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7217         instead of checking for SYSV_ABI.
7218         (ix86_nsaved_sseregs): Likewise.
7219         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7220         to 16 bytes.
7221         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7222         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7223         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7224         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7225         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7226
7227 2011-03-25  Richard Guenther  <rguenther@suse.de>
7228
7229         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7230         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7231         (verify_gimple): Remove.
7232         * tree-cfg.c (verify_gimple_call): Merge verification
7233         from verify_stmts.
7234         (verify_gimple_phi): Merge verification from verify_stmts.
7235         (verify_gimple_label): New function.
7236         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7237         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7238         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7239         (verify_stmts): Rename to verify_gimple_in_cfg.
7240         (verify_gimple_in_cfg): New function.
7241         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7242         * tree-ssa.c (verify_ssa): Likewise.
7243         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7244
7245 2011-03-25  Richard Guenther  <rguenther@suse.de>
7246
7247         * passes.c (init_optimization_passes): Add FRE pass after
7248         early SRA.
7249
7250 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
7251             Andrew Stubbs  <ams@codesourcery.com>
7252
7253         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7254         for Cortex-A8.
7255         (arm_movdi_vfp_cortexa8): New pattern.
7256         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7257         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7258         instructions when tuning for Cortex-A8.  Set attribute "arch".
7259         * config/arm/arm.md: Move include arm-tune.md up a bit.
7260         (define_attr "arch"): Add "onlya8" and "nota8" values.
7261         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7262
7263 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
7264
7265         PR bootstrap/48282
7266         Revert:
7267         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7268
7269         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7270         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7271         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7272         * passes.c (init_optimization_passes): Move
7273         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7274
7275 2011-03-25  Kai Tietz  <ktietz@redhat.com>
7276
7277         * c-typeck.c (comptypes_internal): Replace target
7278         hook call of comp_type_attributes by version in tree.c file.
7279         * gimple.c (gimple_types_compatible_p_1): Likewise.
7280         * tree-ssa.c (useless_type_conversion_p): Likewise.
7281         * tree.c (build_type_attribute_qual_variant): Likewise.
7282         (attribute_value_equal): New static helper function.
7283         (comp_type_attributes): New function.
7284         (merge_attributes): Use attribute_value_equal for comparison.
7285         (attribute_list_contained): Likewise.
7286         * tree.h (comp_type_attributes): New prototype.
7287
7288 2011-03-25  Richard Guenther  <rguenther@suse.de>
7289
7290         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7291         of complex types at -O0.
7292         (verify_gimple_assign_binary): Likewise.
7293         (verify_gimple_assign_ternary): Likewise.
7294
7295 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7296
7297         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7298         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7299
7300 2011-03-24  Mark Wielaard  <mjw@redhat.com>
7301
7302         PR debug/48041
7303         * dwarf2out.c (output_abbrev_section): Only write table when
7304         abbrev_die_table_in_use > 1.
7305
7306 2011-02-24  Richard Henderson  <rth@redhat.com>
7307
7308         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7309         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7310         (alpha_expand_unaligned_load_words): Use extql.
7311         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7312         (emit_insxl): Handle all modes for consistency.
7313
7314 2011-02-24  Richard Henderson  <rth@redhat.com>
7315
7316         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7317         (alpha_expand_unaligned_load): Likewise.
7318         (alpha_expand_unaligned_store): Likewise.
7319         (alpha_expand_unaligned_load_words): Likewise.
7320         (alpha_expand_unaligned_store_words): Likewise.
7321         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7322         (alpha_split_lock_test_and_set_12): Likewise.
7323         (print_operand, alpha_fold_builtin_extxx): Likewise.
7324         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7325         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7326         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7327         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7328         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7329         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7330         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7331         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7332         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7333         (extwl, extll, extql): Similarly.
7334         (inswh, inslh, insqh): Similarly.
7335         (mskbl, mskwl, mskll, mskql): Similarly.
7336         (mskwh, msklh, mskqh): Similarly.
7337
7338 2011-02-24  Richard Henderson  <rth@redhat.com>
7339
7340         * config/alpha/alpha.md (attribute isa): Add er, ner.
7341         (attribute enabled): Handle them.
7342         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7343
7344 2011-02-24  Richard Henderson  <rth@redhat.com>
7345
7346         * config/alpha/alpha.md (attribute isa): Add vms.
7347         (attribute enabled): Handle it.
7348         (*movsf): Merge *movsf_{nofix,fix,nofp}.
7349         (*movdf): Merge *movdf_{nofix,fix,nofp}.
7350         (*movtf): Rename from *movtf_internal for consistency.
7351         (*movsi): Merge with *movsi_nt_vms.
7352         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7353         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7354         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7355         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7356
7357 2011-02-24  Richard Henderson  <rth@redhat.com>
7358
7359         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7360         (extendqisi2, extendhisi2): Likewise.
7361         (extendqidi2): Simplify BWX/non-BWX expansions.
7362         (extendhidi2): Similarly.
7363
7364 2011-02-24  Richard Henderson  <rth@redhat.com>
7365
7366         * config/alpha/alpha.md (attribute isa): New.
7367         (attribute enabled): New.
7368         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7369         (zero_extendqisi2, zero_extendqidi2): Similarly.
7370         (zero_extendhisi2, zero_extendhidi2): Similarly.
7371         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7372
7373 2011-02-24  Richard Henderson  <rth@redhat.com>
7374
7375         * config/alpha/predicates.md (input_operand): Revert last change;
7376         update comment to mention 32-bit VMS rather than Windows.
7377
7378 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7379
7380         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7381         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
7382         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7383         * passes.c (init_optimization_passes): Move
7384         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7385
7386 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7387
7388         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7389
7390 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7391
7392         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7393         correctly.
7394
7395 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
7396
7397         PR debug/48204
7398         * simplify-rtx.c (simplify_const_unary_operation): Call
7399         real_convert when changing mode class with FLOAT_EXTEND.
7400
7401 2011-03-24  Nick Clifton  <nickc@redhat.com>
7402
7403         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7404         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7405         * config/rx/rx.c (rx_option_override): Set align_jumps,
7406         align_loops and align_labels if not set by the user.
7407         (rx_align_for_label): New function.
7408         (rx_max_skip_for_label): New function.
7409         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7410         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7411         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7412         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7413         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7414
7415 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7416
7417         PR rtl-optimization/48263
7418         * optabs.c (expand_binop_directly): Reinstate convert_modes code
7419         and original commutative_p handling.  Use maybe_gen_insn.
7420
7421 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7422
7423         * reload.c (find_reloads_subreg_address): Add address_reloaded
7424         parameter and return true there if the full address has been
7425         reloaded.
7426         (find_reloads_toplev): Pass address_reloaded flag.
7427         (find_reloads_address_1): Don't use address_reloaded parameter.
7428
7429 2011-03-24  Jeff Law  <law@redhat.com>
7430
7431         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7432         unused variable "ann".
7433         (remove_unused_locals): Likewise.
7434
7435         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7436         statement.
7437
7438         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7439         after it is freed.
7440
7441 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7442
7443         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7444         for invalid symbolic addresses.
7445         (s390_secondary_reload): Don't use s390_check_symref_alignment for
7446         larl operands.
7447
7448 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7449
7450         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7451         the argument in calls to fold_truth_not_expr.
7452
7453 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7454
7455         * tree.c (record_node_allocation_statistics): New function.
7456         (make_node_stat, copy_node_stat, build_string): Call it.
7457         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7458         (build1_stat, build_omp_clause): Likewise.
7459
7460 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7461
7462         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7463         last commit.
7464
7465 2011-03-24  Richard Guenther  <rguenther@suse.de>
7466
7467         PR tree-optimization/48271
7468         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7469         blocks that still exist.
7470
7471 2011-03-24  Richard Guenther  <rguenther@suse.de>
7472
7473         PR tree-optimization/48270
7474         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7475         not free datarefs before ddrs.
7476
7477 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
7478
7479         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7480         from the address built for a reference with variable offset.
7481
7482 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
7483
7484         PR target/48237
7485         * config/i386/i386.md (*movdf_internal_rex64): Do not split
7486         alternatives that can be handled with movq or movabsq insn.
7487         (*movdf_internal): Disable for !TARGET_64BIT.
7488         (*movdf_internal_nointeger): Ditto.
7489         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7490
7491 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
7492
7493         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7494         (FUNCTION_ARG_ADVANCE): Likewise.
7495         * tm.texi.in: Change references to them to hook references.
7496         * tm.texi: Regenerate.
7497         * targhooks.c (default_function_arg): Eliminate check for target macro.
7498         (default_function_incoming_arg): Likewise.
7499         (default_function_arg_advance): Likewise.
7500         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7501         (function_arg_advance): Likewise.
7502         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7503
7504 2011-03-24  Richard Guenther  <rguenther@suse.de>
7505
7506         PR middle-end/48269
7507         * tree-object-size.c (addr_object_size): Do not double-account
7508         for MEM_REF offsets.
7509
7510 2011-03-24  Diego Novillo  <dnovillo@google.com>
7511
7512         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7513         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7514         (lto_input_data_block): Move from lto-opts.c.  Make extern.
7515         Update all users.
7516         (lto_input_string): Rename from input_string.  Make extern.
7517         Update all users.
7518         * lto-streamer-out.c (lto_output_string_with_length): Rename from
7519         output_string_with_length.
7520         Output 0 to indicate a non-NULL string.  Update all callers to
7521         not emit 0.
7522         (lto_output_string): Rename from output_string.  Make extern.
7523         Update all users.
7524         (lto_output_decl_state_streams): Make extern.
7525         (lto_output_decl_state_refs): Make extern.
7526         * lto-streamer.h (lto_input_string): Declare.
7527         (lto_input_data_block): Declare.
7528         (lto_output_string): Declare.
7529         (lto_output_string_with_length): Declare.
7530         (lto_output_decl_state_streams): Declare.
7531         (lto_output_decl_state_refs): Declare.
7532
7533 2011-03-24  Richard Guenther  <rguenther@suse.de>
7534
7535         PR tree-optimization/46562
7536         * tree.c (build_invariant_address): New function.
7537         * tree.h (build_invariant_address): Declare.
7538         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7539         a renamed function moved ...
7540         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7541         Take valueization callback parameter.
7542         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7543         * gimple-fold.h: New file.
7544         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7545         (ccp_fold, fold_const_aggregate_ref,
7546         fold_ctor_reference, fold_nonarray_ctor_reference,
7547         fold_array_ctor_reference, fold_string_cst_ctor_reference,
7548         get_base_constructor): Move ...
7549         * gimple-fold.c: ... here.
7550         (gimple_fold_stmt_to_constant_1): New function
7551         split out from ccp_fold.  Take a valueization callback parameter.
7552         Valueize all operands.
7553         (gimple_fold_stmt_to_constant): New wrapper function.
7554         (fold_const_aggregate_ref_1): New function split out from
7555         fold_const_aggregate_ref.  Take a valueization callback parameter.
7556         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7557         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7558         invariant POINTER_PLUS_EXPRs to invariant form.
7559         (vn_valueize): New function.
7560         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7561         * tree-vrp.c (vrp_valueize): New function.
7562         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7563         to fold statements to constants.
7564         * tree-ssa-pre.c (eliminate): Properly guard propagation of
7565         function declarations.
7566         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7567         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7568
7569 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
7570
7571         * config/h8300/predicates.md (jump_address_operand): Fix register
7572         mode check.
7573
7574 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
7575
7576         * doc/invoke.texi (max-stores-to-sink): Document.
7577         * params.h (MAX_STORES_TO_SINK): Define.
7578         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7579         if either vectorization or if-conversion is disabled.
7580         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7581         tree-vect-data-refs.c vect_equal_offsets.
7582         (dr_equal_offsets_p): New function.
7583         (find_data_references_in_bb): Remove static.
7584         * tree-data-ref.h (find_data_references_in_bb): Declare.
7585         (dr_equal_offsets_p): Likewise.
7586         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7587         (vect_drs_dependent_in_basic_block): Update calls to
7588         vect_equal_offsets.
7589         (vect_check_interleaving): Likewise.
7590         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7591         (cond_if_else_store_replacement): Rename to...
7592         (cond_if_else_store_replacement_1): ... this.  Change arguments and
7593         documentation.
7594         (cond_if_else_store_replacement): New function.
7595         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7596         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7597
7598 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
7599
7600         PR target/46934
7601         * config/arm/arm.md (casesi): Use the gen_int_mode() function
7602         to subtract lower bound instead of GEN_INT().
7603
7604 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
7605
7606         PR other/48179
7607         PR other/48221
7608         PR other/48234
7609         * doc/extend.texi (Alignment): Move section to match order in TOC.
7610         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7611         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7612
7613 2011-03-23  Jeff Law  <law@redhat.com>
7614
7615         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7616         before removing the edge.
7617
7618         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7619         it may have been freed by redirect_branch_edge or
7620         redirect_edge_succ_nodup.
7621
7622 2011-03-23  Richard Guenther  <rguenther@suse.de>
7623
7624         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7625         (check_va_list_escapes): Likewise.
7626         (check_all_va_list_escapes): Likewise.
7627
7628 2011-03-23  Richard Guenther  <rguenther@suse.de>
7629
7630         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7631         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7632         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7633         (alias.o): Likewise.
7634         (ipa-type-escape.o): Remove.
7635         (ipa-struct-reorg.o): Likewise.
7636         (GTFILES): Remove ipa-struct-reorg.c.
7637         * alias.c: Do not include ipa-type-escape.h.
7638         * tree-ssa-alias.c: Likewise.
7639         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7640         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7641         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7642         and ipa-type-escape passes.
7643         * tree-pass.h (pass_ipa_type_escape): Remove.
7644         (pass_ipa_struct_reorg): Likewise.
7645         * ipa-struct-reorg.h: Remove.
7646         * ipa-struct-reorg.c: Likewise.
7647         * ipa-type-escape.h: Likewise.
7648         * ipa-type-escape.c: Likewise.
7649         * doc/invoke.texi (-fipa-struct-reorg): Remove.
7650         (--param struct-reorg-cold-struct-ratio): Likewise.
7651         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7652         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7653         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7654
7655 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7656
7657         * config/s390/2084.md: Enable all insn reservations also for z9_ec
7658         cpu attribute value.
7659         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7660         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7661         * config/s390/s390.c (processor_flags_table): New constant array.
7662         (s390_handle_arch_option): Remove.
7663         (s390_handle_option): Remove s390_handle_arch_option invocations
7664         and OPT_mwarn_framesize_ handling.
7665         (s390_option_override): Remove s390_handle_arch_option invocation.
7666         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7667         warnings.
7668         * config/s390/s390.md (cpu attribute): Add z9_ec value.
7669         * config/s390/s390.opt (s390_tune, s390_arch)
7670         (march=): Replace s390_arch_option enum and values with
7671         processor_type.  Set variable name to s390_arch.  Set
7672         initialization value.
7673         (mtune=): Replace s390_arch_option with processor_type.  Set
7674         variable name to s390_tune.  Set initialization value.
7675
7676 2011-03-23  Julian Brown  <julian@codesourcery.com>
7677
7678         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7679         accesses which are not naturally aligned.
7680
7681 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7682
7683         PR target/47553
7684         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7685
7686 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
7687
7688         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7689         parameter from "int" to "enum insn_code".
7690         (expand_operand_type): New enum.
7691         (expand_operand): New structure.
7692         (create_expand_operand): New function.
7693         (create_fixed_operand, create_output_operand): Likewise
7694         (create_input_operand, create_convert_operand_to): Likewise.
7695         (create_convert_operand_from, create_address_operand): Likewise.
7696         (create_integer_operand): Likewise.
7697         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7698         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7699         (expand_insn, expand_jump_insn): Likewise.
7700         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7701         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7702         (expand_movstr, expand_builtin___clear_cache): Likewise.
7703         (expand_builtin_lock_release): Likewise.
7704         * explow.c (allocate_dynamic_stack_space): Likewise.
7705         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
7706         and use the default handling in that case.
7707         * expmed.c (check_predicate_volatile_ok): Delete.
7708         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7709         (emit_cstore): Likewise.
7710         * expr.c (emit_block_move_via_movmem): Likewise.
7711         (set_storage_via_setmem, expand_assignment): Likewise.
7712         (emit_storent_insn, try_casesi): Likewise.
7713         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
7714         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7715         (expand_vec_shift_expr, expand_binop_directly): Likewise.
7716         (expand_twoval_unop, expand_twoval_binop): Likewise.
7717         (expand_unop_direct, emit_indirect_jump): Likewise.
7718         (emit_conditional_move, vector_compare_rtx): Likewise.
7719         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7720         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7721         (expand_sync_lock_test_and_set): Likewise.
7722         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
7723         (emit_unop_insn): Likewise.
7724         (expand_copysign_absneg): Change icode to an insn_code.
7725         (create_convert_operand_from_type): New function.
7726         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7727         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7728         (expand_insn, expand_jump_insn): Likewise.
7729         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7730         than const_int_operand for operand 2.
7731
7732 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7733
7734         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7735         if possible.
7736
7737 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7738
7739         * emit-rtl.c (emit_pattern_before_noloc): New function.
7740         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7741         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7742         (emit_pattern_after_noloc): New function.
7743         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7744         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7745
7746 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
7747
7748         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7749         (__ffsDI2): Likewise.
7750
7751 2011-03-22  Richard Henderson  <rth@redhat.com>
7752
7753         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7754         of !TARGET_ABI_OPEN_VMS.
7755         (alpha_trampoline_init, alpha_start_function): Likewise.
7756         (alpha_expand_epilogue, alpha_file_start): Likewise.
7757         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7758         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7759         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7760         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7761         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7762
7763 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7764
7765         * config/s390/s390-opts.h: New.
7766         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7767         s390_arch_flags, s390_warn_framesize, s390_stack_size,
7768         s390_stack_guard): Remove.
7769         (s390_handle_arch_option): Return void.  Take enum
7770         s390_arch_option value instead of string and searching array.
7771         (s390_handle_option): Don't assert that global structures are in
7772         use.  Access variables via opts pointer.  Use error_at.  Don't use
7773         sscanf for -mstack-guard= or -mstack-size=.  Update call to
7774         s390_handle_arch_option.
7775         (s390_option_override): Update call to s390_handle_arch_option.
7776         (s390_emit_prologue): Use %d format for s390_stack_size in
7777         diagnostic.  Use %wd for HOST_WIDE_INT.
7778         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7779         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7780         * config/s390/s390.opt (config/s390/s390-opts.h): New
7781         HeaderInclude entry.
7782         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7783         s390_arch_flags, s390_warn_framesize): New Variable entries.
7784         (s390_arch_option): New Enum and EnumValue entries.
7785         (march=): Use Enum instead of Var.
7786         (mstack-guard=, mstack-size=): Use UInteger and Var.
7787         (mtune=): Use Enum.
7788
7789 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7790
7791         * config/score/score.c (score_handle_option): Don't assert that
7792         global structures are in use.  Access target_flags via opts
7793         pointer.  Use value of -march= option to determine target_flags
7794         settings.
7795         * config/score/score.opt (march=): Use Enum.
7796         (score_arch): New Enum and EnumValue entries.
7797
7798 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7799
7800         * config/mep/mep.c (option_mtiny_specified): Remove.
7801         (mep_option_override): Move register handling for -mivc2 from
7802         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
7803         instead of option_mtiny_specified.
7804         (mep_handle_option): Access target_flags via opts pointer.  Don't
7805         assert that global structures are in use.  Defer part of -mivc2
7806         handling and move it to mep_option_override.
7807         * config/mep/mep.opt (IVC2): New Mask entry.
7808         (mivc2): Use Var and Defer instead of Mask.
7809
7810 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7811
7812         * config/v850/v850-opts.h: New.
7813         * config/v850/v850.c (small_memory): Replace with
7814         small_memory_physical_max array.  Make that array static const.
7815         (v850_handle_memory_option): Take integer value of argument.  Take
7816         gcc_options pointer, option text and location.  Return void.
7817         Update for changes to small memory structures.
7818         (v850_handle_option): Access target_flags via opts pointer.  Don't
7819         assert that global structures are in use.  Update calls to
7820         v850_handle_memory_option.
7821         (v850_encode_data_area): Update references to small memory settings.
7822         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
7823         (enum small_memory_type): Move to v850-opts.h.
7824         * config/v850/v850.opt (config/v850/v850-opts.h): New
7825         HeaderInclude entry.
7826         (small_memory_max): New Variable entry.
7827         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
7828         (mtda, mzda): Likewise.
7829
7830 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7831
7832         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
7833         pointer.  Don't assert that global structures are in use.
7834
7835 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7836
7837         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
7838         via opts pointer.  Don't assert that global structures are in use.
7839
7840 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7841
7842         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
7843         (munix=93): Use Var.
7844         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
7845         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
7846         * config/pa/pa-opts.h: New.
7847         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
7848         (pa_handle_option): Don't assert that global structures are in
7849         use.  Access target_flags via opts pointer.  Don't handle
7850         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
7851         OPT_munix_98 here.
7852         (pa_option_override): Handle deferred OPT_mfixed_range_.
7853
7854 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7855
7856         * config/mn10300/mn10300-opts.h: New.
7857         * config/mn10300/mn10300.c (mn10300_processor,
7858         mn10300_tune_string): Remove.
7859         (mn10300_handle_option): Don't assert that global structures are
7860         in use.  Access mn10300_processor via opts pointer.  Don't handle
7861         OPT_mtune_ here.
7862         * config/mn10300/mn10300.h (enum processor_type): Move to
7863         mn10300-opts.h.
7864         (mn10300_processor): Remove.
7865         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
7866         HeaderInclude entry.
7867         (mn10300_processor): New Variable entry.
7868         (mtune=): Use Var.
7869
7870 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7871
7872         * config/microblaze/microblaze.c: Don't include opts.h.
7873         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
7874         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
7875         (mno-clearbss): Use Var and Warn.
7876
7877 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7878
7879         * config/m32r/m32r-opts.h: New.
7880         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
7881         (m32r_handle_option): Don't assert that global structures are in
7882         use.  Access target_flags and m32r_cache_flush_func via opts
7883         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
7884         OPT_mno_flush_trap here.
7885         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
7886         include of m32r-opts.h.
7887         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
7888         HeaderInclude entry.
7889         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
7890         (mmodel=): Use Enum and Var.
7891         (m32r_model): New Enum and EnumValue entries.
7892         (mno-flush-trap): Use Var.
7893         (msdata=): Use Enum and Var.
7894         (m32r_sdata): New Enum and EnumValue entries.
7895
7896 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7897
7898         * config/m32c/m32c.c: Don't include opts.h.
7899         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
7900         m32c_handle_option): Remove.
7901         (m32c_option_override): Check global_options_set.x_target_memregs
7902         instead of target_memregs_set.
7903         * config/m32c/m32c.h (target_memregs): Remove.
7904         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
7905         variable.
7906
7907 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7908
7909         * config/iq2000/iq2000-opts.h: New.
7910         * config/iq2000/iq2000.c: Don't include opts.h.
7911         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
7912         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
7913         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
7914         HeaderInclude entry.
7915         (iq2000_tune): New Variable entry.
7916         (march=): Add comment.  Use Enum.
7917         (iq2000_arch): New Enum and EnumValue entries.
7918         (mcpu=): Use Enum and Var.
7919         (iq2000_tune): New Enum and EnumValue entries.
7920
7921 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7922
7923         * config/ia64/ia64-opts.h: New.
7924         * config/ia64/ia64.c (ia64_tune): Remove.
7925         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
7926         here.  Use error_at.
7927         (ia64_option_override): Handle deferred OPT_mfixed_range_.
7928         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
7929         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
7930         HeaderInclude entry.
7931         (ia64_tune): New Variable entry.
7932         (mfixed-range=): Use Defer and Var.
7933         (mtune=): Use Enum and Var.
7934         (ia64_tune): New Enum and EnumValue entries.
7935
7936 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7937
7938         * config/frv/frv-opts.h: New.
7939         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
7940         frv-opts.h.
7941         (frv_cpu_type): Remove.
7942         * config/frv/frv.c: Don't include opts.h.
7943         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
7944         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
7945         (frv_cpu_type): New Variable entry.
7946         (frv_cpu): New Enum and EnumValue entries.
7947
7948 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7949
7950         * config/cris/cris.c (cris_handle_option): Access target_flags via
7951         opts pointer.  Don't assert that global structures are in use.
7952         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
7953         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
7954
7955 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7956
7957         * config/bfin/bfin-opts.h: New.
7958         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
7959         bfin_si_revision, bfin_workarounds): Remove.
7960         (bfin_cpus): Make static const.
7961         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
7962         not bfin_lib_id_given.
7963         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
7964         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
7965         pointer. Use error_at.  Don't assert that global structures are in use.
7966         * config/bfin/bfin.h: Include bfin-opts.h.
7967         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
7968         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
7969         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
7970         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
7971         entries.
7972
7973 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
7974
7975         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
7976         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
7977         or -msoft-float here.
7978         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
7979         -msoft-float and -mhard-float.
7980         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
7981         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7982         msoft-float.
7983         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
7984         -msoft-float.
7985         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
7986         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
7987         not mhard-float.
7988         (LIBGCC_SPEC): Don't handle -msoft-float.
7989         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
7990         -mhard-float.
7991         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
7992         msoft-float.
7993         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
7994         -mfloat-abi=*, not -msoft-float and -mhard-float.
7995         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
7996         -msoft-float.
7997         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
7998         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
7999         mhard-float and msoft-float.
8000         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8001         mfloat-abi=soft in comments, not mhard-float and msoft-float.
8002         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8003         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8004         mhard-float.
8005         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8006         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8007         msoft-float.
8008         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8009         not mhard-float.
8010         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8011         not msoft-float.
8012
8013 2011-03-22  Richard Henderson  <rth@redhat.com>
8014
8015         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8016         TARGET_ABI_WINDOWS_NT.
8017         (alpha_output_function_end_prologue): Likewise.
8018         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8019         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8020         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8021         (trap, *movsi_nt_vms): Likewise.
8022         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8023         (*tablejump_osf_nt_internal): Remove.
8024         * config/alpha/predicates.md (input_operand): Only test Pmode.
8025
8026 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8027
8028         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8029         via opts pointer.  Use error_at.  Don't assert that global
8030         structures are in use.
8031
8032 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8033
8034         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8035         (ix86_handle_option): Access ix86_isa_flags and
8036         ix86_isa_flags_explicit via opts pointer.  Don't assert that
8037         global structures are in use.
8038         (ix86_function_specific_save, ix86_function_specific_restore):
8039         Update ix86_isa_flags_explicit field name.
8040         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8041         (ix86_isa_flags_explicit): Rename TargetSave entry to
8042         x_ix86_isa_flags_explicit.
8043
8044 2011-03-22  Richard Henderson  <rth@redhat.com>
8045
8046         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8047         (alpha_option_override, direct_return): Likewise.
8048         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8049         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8050         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8051         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8052         (alpha_expand_epilogue, alpha_end_function): Likewise.
8053         (alpha_init_libfuncs): Likewise.
8054         (struct machine_function): Remove unicosmk members.
8055         (print_operand) ['t']: Remove.
8056         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8057         unicosmk_output_module_name, unicosmk_output_common,
8058         current_section_align, unicosmk_output_text_section_asm_op,
8059         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8060         unicosmk_section_type_flags, unicosmk_unique_section,
8061         unicosmk_asm_named_section, unicosmk_insert_attributes,
8062         unicosmk_output_align, unicosmk_defer_case_vector,
8063         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8064         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8065         unicosmk_output_ssib, unicosmk_add_call_info_word,
8066         unicosmk_extern_head, unicosmk_output_default_externs,
8067         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8068         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8069         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8070         * config/alpha/alpha-protos.h: Update.
8071         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8072         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8073         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8074         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8075         (*mulsi_se, mulvsi3): Likewise.
8076         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8077         (*divmodsi_internal, call, call_value, realign): Likewise.
8078         (moddi3, umoddi3): Likewise; remove duplicate expander.
8079         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8080         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8081         (*movdi_nofix): Remove r/U alternative.
8082         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8083         * config/alpha/constraints.md ("U"): Remove.
8084         * config/alpha/predicates.md (call_operand"): Don't test
8085         TARGET_ABI_UNICOSMK.
8086
8087 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8088
8089         * target.def (handle_option): Take gcc_options and
8090         cl_decoded_option pointers and location_t.
8091         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8092         * doc/tm.texi: Regenerate.
8093         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8094         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8095         * lto-opts.c (lto_reissue_options): Generate option structure for
8096         targetm.handle_option call.
8097         * opts.c (target_handle_option): Update call to
8098         targetm.handle_option.  Remove assertions about values now passed
8099         down to hook.
8100         * targhooks.c (default_target_handle_option): New.
8101         * targhooks.h (default_target_handle_option): Declare.
8102         * config/alpha/alpha.c: Include opts.h.
8103         (alpha_handle_option): Update to new hook interface.
8104         * config/arm/arm.c: Include opts.h.
8105         (arm_handle_option): Update to new hook interface.
8106         * config/arm/t-arm (arm.o): Update dependencies.
8107         * config/bfin/bfin.c: Include opts.h.
8108         (bfin_handle_option): Update to new hook interface.
8109         * config/cris/cris.c: Include opts.h.
8110         (cris_handle_option): Update to new hook interface.
8111         * config/frv/frv.c: Include opts.h.
8112         (frv_handle_option): Update to new hook interface.
8113         * config/i386/i386.c: Include opts.h.
8114         (ix86_handle_option): Update to new hook interface.
8115         (ix86_valid_target_attribute_inner_p): Generate option structure
8116         for call to ix86_handle_option.
8117         * config/i386/t-i386 (i386.o): Update dependencies.
8118         * config/ia64/ia64.c: Include opts.h.
8119         (ia64_handle_option): Update to new hook interface.
8120         * config/ia64/t-ia64 (ia64.o): Update dependencies.
8121         * config/iq2000/iq2000.c: Include opts.h.
8122         (iq2000_handle_option): Update to new hook interface.
8123         * config/m32c/m32c.c: Include opts.h.
8124         (m32c_handle_option): Update to new hook interface.
8125         * config/m32r/m32r.c: Include opts.h.
8126         (m32r_handle_option): Update to new hook interface.
8127         * config/m68k/m68k.c: Include opts.h.
8128         (m68k_handle_option): Update to new hook interface.
8129         * config/mep/mep.c: Include opts.h.
8130         (mep_handle_option): Update to new hook interface.
8131         * config/microblaze/microblaze.c: Include opts.h.
8132         (microblaze_handle_option): Update to new hook interface.
8133         * config/mips/mips.c: Include opts.h.
8134         (mips_handle_option): Update to new hook interface.
8135         * config/mn10300/mn10300.c: Include opts.h.
8136         (mn10300_handle_option): Update to new hook interface.
8137         * config/pa/pa.c: Include opts.h.
8138         (pa_handle_option): Update to new hook interface.
8139         * config/pdp11/pdp11.c: Include opts.h.
8140         (pdp11_handle_option): Update to new hook interface.
8141         * config/rs6000/rs6000.c: Include opts.h.
8142         (rs6000_handle_option): Update to new hook interface.
8143         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8144         * config/rx/rx.c: Include opts.h.
8145         (rx_handle_option): Update to new hook interface.
8146         * config/s390/s390.c: Include opts.h.
8147         (s390_handle_option): Update to new hook interface.
8148         * config/score/score.c: Include opts.h.
8149         (score_handle_option): Update to new hook interface.
8150         * config/sh/sh.c: Include opts.h.
8151         (sh_handle_option): Update to new hook interface.
8152         * config/sparc/sparc.c: Include opts.h.
8153         (sparc_handle_option): Update to new hook interface.
8154         * config/v850/v850.c: Include opts.h.
8155         (v850_handle_option): Update to new hook interface.
8156
8157 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8158
8159         * gcc.c (driver_unknown_option_callback): Only permit and save
8160         unknown -Wno- options.
8161         (driver_wrong_lang_callback): Save options directly instead of via
8162         driver_unknown_option_callback.
8163
8164 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8165
8166         * combine.c (simplify_set): Try harder to find the best CC mode when
8167         simplifying a nested COMPARE on the RHS.
8168
8169 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
8170
8171         * config/alpha/gnu.h: Remove.
8172         * config/arc: Remove directory.
8173         * config/arm/netbsd.h: Remove.
8174         * config/arm/t-pe: Remove.
8175         * config/crx: Remove directory.
8176         * config/i386/netbsd.h: Remove.
8177         * config/m68hc11: Remove directory.
8178         * config/m68k/uclinux-oldabi.h: Remove.
8179         * config/mcore/mcore-pe.h: Remove.
8180         * config/mcore/t-mcore-pe: Remove.
8181         * config/netbsd-aout.h: Remove.
8182         * config/rs6000/gnu.h: Remove.
8183         * config/sh/sh-symbian.h: Remove.
8184         * config/sh/symbian-base.c: Remove.
8185         * config/sh/symbian-c.c: Remove.
8186         * config/sh/symbian-cxx.c: Remove.
8187         * config/sh/symbian-post.h: Remove.
8188         * config/sh/symbian-pre.h: Remove.
8189         * config/sh/t-symbian: Remove.
8190         * config/svr3.h: Remove.
8191         * config/vax/netbsd.h: Remove.
8192         * config.build: Don't handle i[34567]86-*-pe.
8193         * config.gcc: Remove handling of deprecations for most deprecated
8194         targets.
8195         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8196         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8197         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8198         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8199         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8200         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8201         Remove cases.
8202         * config.host: Don't handle i[34567]86-*-pe.
8203         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8204         (ASM_SPEC32): Don't handle -mcall-gnu.
8205         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8206         -mcall-gnu.
8207         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8208         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8209         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8210         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8211         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8212         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8213         conditional on SYMBIAN.
8214         * configure.ac: Don't handle powerpc*-*-gnu*.
8215         * configure: Regenerate.
8216         * doc/extend.texi (interrupt attribute): Don't mention CRX.
8217         * doc/install-old.texi (m6811, m6812): Don't mention.
8218         * doc/install.texi (arc-*-elf*): Don't document multilib option.
8219         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8220         (m68k-uclinuxoldabi): Don't mention.
8221         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8222         Remove.
8223         (-mcall-gnu): Remove.
8224         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8225         families): Remove constraint documentation.
8226
8227 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
8228
8229         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8230         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8231         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8232
8233 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8234
8235         PR target/48226
8236         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8237         vector when peeking at the next token for vector, don't expand the
8238         keywords.
8239
8240 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
8241
8242         * config/avr/avr-protos.h (expand_epilogue): Change prototype
8243         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8244         * config/avr/avr.c (init_cumulative_args)
8245         (avr_function_arg_advance): Use it.
8246         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8247         sibcall epilogues.
8248         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8249         (avr_function_ok_for_sibcall): ...this new function.
8250         (avr_lookup_function_attribute1): New static Function.
8251         (avr_naked_function_p, interrupt_function_p)
8252         (signal_function_p, avr_OS_task_function_p)
8253         (avr_OS_main_function_p): Use it.
8254         * config/avr/avr.md ("sibcall", "sibcall_value")
8255         ("sibcall_epilogue"): New expander.
8256         ("*call_insn", "*call_value_insn"): New insn.
8257         ("call_insn", "call_value_insn"): Remove
8258         ("call", "call_value", "epilogue"): Change expander to handle
8259         sibling calls.
8260
8261 2011-03-21  Nick Clifton  <nickc@redhat.com>
8262
8263         * doc/invoke.texi (Overall Options): Move closing brace to end of
8264         options list.
8265         (Optimization Options): Add missing @gol.
8266         (Directory Options): Likewise.
8267         (i386 and x86-64 Options): Likewise.
8268         (RS6000 and PowerPC Options): Likewise.
8269         (i386 and x86-64 Windows Options): Likewise.
8270         (V850 Options): Add text missing from descriptions.
8271
8272 2011-03-22  Richard Henderson  <rth@redhat.com>
8273
8274         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8275         (avr_incoming_return_addr_rtx): New.
8276         (emit_push_byte): New.
8277         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
8278         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
8279         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
8280         (emit_pop_byte): New.
8281         (expand_epilogue): Use it.  Pop frame pointer by bytes.
8282         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8283         (INCOMING_RETURN_ADDR_RTX): New.
8284         (INCOMING_FRAME_SP_OFFSET): New.
8285         (ARG_POINTER_CFA_OFFSET): New.
8286         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8287         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8288         (pophi): Remove.
8289
8290         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8291
8292 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8293
8294         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8295         (FUNCTION_ARG_ADVANCE): Likewise.
8296         * tm.texi.in: Change references to them to hook references.
8297         * tm.texi: Regenerate.
8298         * targhooks.c (default_function_arg): Eliminate check for target
8299         macro.
8300         (default_function_incoming_arg): Likewise.
8301         (default_function_arg_advance): Likewise.
8302         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8303         (function_arg_advance): Likewise.
8304         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8305
8306 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
8307
8308         * tree.c (build_call_1): New function.
8309         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8310
8311 2011-03-22  Richard Guenther  <rguenther@suse.de>
8312
8313         PR tree-optimization/48228
8314         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8315         for single-arg PHIs.
8316
8317 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
8318
8319         PR rtl-optimization/48143
8320         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8321         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8322         sse2_cvtps2pd): Likewise.
8323
8324 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8325
8326         * recog.c (canonicalize_change_group): Use validate_unshare_change.
8327
8328 2011-03-22  Richard Guenther  <rguenther@suse.de>
8329
8330         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8331         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8332         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8333         and REALIGN_LOAD_EXPR.
8334         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8335         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8336         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8337         DOT_PROD_EXPR case ...
8338         (expand_expr_real_2): ... here.
8339         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8340         and REALIGN_LOAD_EXPR.
8341         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8342         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8343         (vect_create_epilog_for_reduction): Likewise.
8344         (vectorizable_reduction): Likewise.
8345         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8346         * tree-vect-stmts.c (vectorizable_load): Likewise.
8347
8348 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
8349
8350         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8351
8352 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8353
8354         * config/s390/s390.c (s390_delegitimize_address): Fix offset
8355         handling for PLTOFF/GOTOFF.
8356
8357 2011-03-22  Nick Clifton  <nickc@redhat.com>
8358
8359         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8360         trailing backslash from the end of the macro definition.
8361
8362 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8363
8364         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8365         and PLT unspecs.
8366
8367 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
8368
8369         * expr.h (prepare_operand): Move to...
8370         * optabs.h (prepare_operand): ...here and change the insn code
8371         parameter from "int" to "enum insn_code".
8372         (insn_operand_matches): Declare.
8373         * expr.c (init_expr_target): Use insn_operand_matches.
8374         (compress_float_constant): Likewise.
8375         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8376         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8377         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8378         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8379         Likewise.
8380         (gen_cond_trap): Likewise.
8381         (prepare_operand): Likewise.  Change icode to an insn_code.
8382         (insn_operand_matches): New function.
8383         * reload.c (find_reloads_address_1): Use insn_operand_matches.
8384         * reload1.c (gen_reload): Likewise.
8385         * targhooks.c (default_secondary_reload): Likewise.
8386
8387 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8388
8389         * config/alpha/alpha.md (unspec): New define_c_enum.
8390         (unspecv): Ditto.
8391
8392 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
8393
8394         PR debug/48214
8395         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8396         between a call and its CALL_ARG_LOCATION note.
8397
8398 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
8399
8400         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8401
8402 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8403
8404         PR c/42544
8405         PR c/48197
8406         * c-common.c (shorten_compare): If primopN is first sign-extended
8407         to opN and then zero-extended to result type, set primopN to opN.
8408
8409 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8410
8411         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8412         for barrier handlers.
8413
8414 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
8415
8416         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8417         UNSPEC constants to be in the unspec enumeration, and redefine
8418         all UNSPECV constants to be in the unspecv enumeration, so that
8419         dumps print which unspec/unspec_volatile this is.
8420         * config/rs6000/vector.md (UNSPEC_*): Ditto.
8421         * config/rs6000/paired.md (UNSPEC_*): Ditto.
8422         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8423         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8424         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8425
8426         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8427         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8428         UNSPECV_LWSYNC, since these are used as unspec_volatile.
8429         * config/rs6000/sync.md (isync, lwsync): Ditto.
8430
8431 2011-03-21  Richard Guenther  <rguenther@suse.de>
8432
8433         * params.def (lto-min-partition): Fix typo.
8434
8435 2011-03-21  Richard Guenther  <rguenther@suse.de>
8436
8437         PR c/47939
8438         * c-decl.c (grokdeclarator): Drop to the main variant only
8439         for array types.  Drop flag_gen_aux_info check.
8440
8441 2011-03-21  Richard Guenther  <rguenther@suse.de>
8442
8443         PR translation/47911
8444         * params.def (lto-partitions): Fix typo.
8445         (lto-min-partition): Fix wording.
8446
8447 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
8448
8449         * config/rs6000/t-freebsd: Remove duplication from file.
8450
8451 2011-03-21  Richard Guenther  <rguenther@suse.de>
8452
8453         PR middle-end/47661
8454         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8455
8456 2011-03-21  Richard Guenther  <rguenther@suse.de>
8457
8458         PR lto/48210
8459         * params.def (lto-partitions): Require at least 1 partition.
8460
8461 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8462
8463         * gthr-solaris.h: Remove.
8464         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8465         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8466         (LIB_SPEC): Likewise.
8467         * config/sol2.opt (threads): Remove.
8468         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8469         (sparc*-*-solaris2*): Likewise.
8470         * configure.ac (enable_threads): Enable solaris support.
8471         * configure: Regenerate.
8472         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8473         * doc/install.texi (Configuration, --enable-threads=lib): Remove
8474         solaris.
8475
8476 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8477
8478         * config.gcc: Obsolete *-*-solaris2.8*.
8479         * doc/install.texi (Specific, *-*-solaris2*): Document it.
8480
8481 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8482
8483         PR bootstrap/48135
8484         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8485         reference.  Solaris 8 perl works.
8486
8487 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8488
8489         PR bootstrap/48135
8490         * doc/install.texi (Prerequisites): Move jar etc. up.
8491         Explain support library version requirements.
8492
8493 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8494
8495         PR bootstrap/48135
8496         * doc/install.texi (Prerequisites): Move Perl to build
8497         requirements.  Always necessary on Solaris 2 with Sun ld.
8498
8499 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8500
8501         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8502         binutils 2.21.
8503         (Specific, i?86-*-solaris2.[89]): Likewise.
8504         (Specific, i?86-*-solaris2.10): Likewise.
8505         (Specific, mips-sgi-irix6): Likewise.
8506         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8507         Update for binutils 2.21.
8508
8509 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8510
8511         * configure.ac (gcc_cv_lto_plugin): Fix typo.
8512         Allow -fuse-linker-plugin for non-default plugin linker.
8513         * configure: Regenerate.
8514
8515 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8516
8517         PR bootstrap/48167
8518         * gengtype.c (files_rules): Added rule for cp/parser.h.
8519
8520 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
8521
8522         PR target/48213
8523         * config/s390/s390.c (s390_delegitimize_address): Don't call
8524         lowpart_subreg if orig_x has BLKmode.
8525
8526 2011-03-21  Kai Tietz  <ktietz@redhat.com>
8527
8528         PR target/12171
8529         * doc/plugins.texi: Adjust documentation for plugin register_callback.
8530         * tree.h (attribute_spec): Add new member affects_type_identity.
8531         * attribs.c (empty_attribute_table): Adjust attribute_spec
8532         initializers.
8533         * config/alpha/alpha.c: Likewise.
8534         * config/arc/arc.c: Likewise.
8535         * config/arm/arm.c: Likewise.
8536         * config/avr/avr.c: Likewise.
8537         * config/bfin/bfin.c: Likewise.
8538         * config/crx/crx.c: Likewise.
8539         * config/darwin.h: Likewise.
8540         * config/h8300/h8300.c: Likewise.
8541         * config/i386/cygming.h: Likewise.
8542         * config/i386/i386.c: Likewise.
8543         * config/ia64/ia64.c: Likewise.
8544         * config/m32c/m32c.c: Likewise.
8545         * config/m32r/m32r.c: Likewise.
8546         * config/m68hc11/m68hc11.c: Likewise.
8547         * config/m68k/m68k.c: Likewise.
8548         * config/mcore/mcore.c: Likewise.
8549         * config/mep/mep.c: Likewise.
8550         * config/microblaze/microblaze.c: Likewise.
8551         * config/mips/mips.c: Likewise.
8552         * config/rs6000/rs6000.c: Likewise.
8553         * config/rx/rx.c: Likewise.
8554         * config/sh/sh.c: Likewise.
8555         * config/sol2.h: Likewise.
8556         * config/sparc/sparc.c: Likewise.
8557         * config/spu/spu.c: Likewise.
8558         * config/stormy16/stormy16.c: Likewise.
8559         * config/v850/v850.c: Likewise.
8560
8561 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
8562
8563         * simplify-rtx.c (simplify_binary_operation_1): Handle
8564         (xor (and A B) C) case when B and C are both constants.
8565
8566 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
8567
8568         * tree-dfa.c (add_referenced_var): Fix typo in comment.
8569
8570 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
8571
8572         PR bootstrap/48168
8573         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8574
8575 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
8576
8577         PR rtl-optimization/48156
8578         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8579         assume df and df_lr are not NULL.
8580
8581 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8582
8583         PR debug/48023
8584         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8585         between a call and its CALL_ARG_LOCATION note.
8586
8587 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
8588
8589         PR debug/48178
8590         * config/sh/sh.c (find_barrier): Don't emit a constant pool
8591         between a call and its corresponding CALL_ARG_LOCATION note.
8592
8593 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
8594
8595         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8596         instead of loop. Use HARD_REGISTER_NUM_P predicate.
8597         * haifa-sched.c (setup_ref_regs): Ditto.
8598         * caller-save.c (add_used_regs_1): Ditto.
8599         * dse.c (look_for_hardregs): Ditto.
8600         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8601         * sched-rgn.c (check_live_1): Ditto.
8602
8603 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8604
8605         * c-decl.c (diagnose_mismatched_decls): Give an error for
8606         redefining a typedef with variably modified type.
8607
8608 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
8609
8610         * c-decl.c (grokfield): Don't allow typedefs for structures or
8611         unions with no tag by default.
8612         * doc/extend.texi (Unnamed Fields): Update.
8613
8614 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
8615
8616         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8617         Rewrite using indirect functions.
8618         (lwp_slwpcb): Ditto.
8619         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8620         (avx_vinsertf128<mode>): Ditto.
8621
8622 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8623
8624         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8625         unspecs.
8626
8627 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8628
8629         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8630         splitting between a call and its corresponding CALL_ARG_LOCATION note.
8631
8632 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
8633
8634         PR rtl-optimization/48170
8635         * gcse.c (hoist_code): Remove bogus asserts.
8636
8637 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
8638
8639         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8640         computation for prologue/epilogue.
8641
8642 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8643
8644         * Makefile.in (check-consistency): Remove.
8645
8646 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
8647
8648         PR debug/48176
8649         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8650         arange_table_in_use is 0, but either text_section_used or
8651         cold_text_section_used is true.  Don't call it if
8652         !info_section_emitted.
8653
8654 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
8655
8656         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8657         FUNCTION_VALUE_REGNO_P): Remove.
8658         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8659         Remove.
8660         * config/avr/avr.c (avr_ret_register): Make static inline.
8661         (avr_function_value_regno_p): New function.
8662         (avr_libcall_value): Make static. Add 'func' argument.
8663         (avr_function_value): Make static. Rename 'func' argument to
8664         'fn_decl_or_type', forward it to avr_libcall_value. Call
8665         avr_ret_register function instead of RET_REGISTER macro.
8666         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8667
8668 2011-03-18  Jason Merrill  <jason@redhat.com>
8669
8670         PR c++/23372
8671         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8672
8673 2011-03-18  Richard Guenther  <rguenther@suse.de>
8674
8675         * doc/install.texi (--enable-gold): Remove.
8676         (--with-plugin-ld): Document.
8677         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8678
8679 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
8680
8681         PR middle-end/47790
8682         * expr.c (optimize_bitfield_assignment_op): Revamp to work
8683         again after expansion changes.
8684
8685 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
8686
8687         * combine.c (try_combine): Do simplification only call of
8688         subst() on i2 even when i1 is present. Update comments.
8689
8690 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
8691
8692         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8693         and UNSPEC_PCREL_SYMOFF.
8694
8695 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8696
8697         * config/s390/s390.md: Use define_c_enum for the unspec constant
8698         definitions.
8699
8700 2011-03-18  Richard Henderson  <rth@redhat.com>
8701             Jakub Jelinek  <jakub@redhat.com>
8702
8703         PR bootstrap/48161
8704         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8705         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8706
8707 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8708
8709         PR middle-end/47725
8710         * combine.c (cant_combine_insn_p): Don't check zero/sign
8711         extended hard registers.
8712
8713 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8714
8715         PR middle-end/47725
8716         * combine.c (cant_combine_insn_p): Check zero/sign extended
8717         hard registers.
8718
8719 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
8720
8721         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8722         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8723         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8724         Change return type to bool.
8725         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8726
8727 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8728
8729         PR debug/48163
8730         * var-tracking.c (prepare_call_arguments): If CALL target
8731         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8732         pc instead of looking it up using cselib_lookup and use
8733         Pmode for it if x has VOIDmode.
8734         * dwarf2out.c (gen_subprogram_die): If also both first and
8735         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8736
8737         PR debug/48163
8738         * function.c (assign_parms): For data.passed_pointer parms
8739         use MEM of data.entry_parm instead of data.entry_parm itself
8740         as DECL_INCOMING_RTL.
8741         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8742         also when passed and declared mode is the same, DECL_RTL
8743         is a MEM with pseudo as address and DECL_INCOMING_RTL is
8744         a MEM too.
8745
8746 2011-03-16  Jeff Law  <law@redhat.com>
8747
8748         PR rtl-optimization/37273
8749         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8750         handle them like argument loads from stack slots.  Do not double
8751         count memory for memory constants and argument loads from stack slots.
8752
8753 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8754
8755         PR debug/48160
8756         * var-tracking.c (prepare_call_arguments): Check SUBREG.
8757
8758 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8759
8760         PR target/48171
8761         * config/i386/i386.opt: Add Save to -mavx and -mfma.
8762
8763 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8764
8765         PR bootstrap/48153
8766         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8767         if dwarf_strict.
8768         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8769         Clear call_arg_locations and call_arg_loc_last always.
8770
8771         PR middle-end/48152
8772         * var-tracking.c (prepare_call_arguments): If argument needs to be
8773         passed by reference, adjust argtype and mode.
8774
8775 2011-03-17  Richard Guenther  <rguenther@suse.de>
8776
8777         PR middle-end/48134
8778         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8779         a value make sure to fold the statement.
8780
8781 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
8782
8783         PR target/43872
8784         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8785         return condition with !cfun->calls_alloca.
8786
8787 2011-03-17  Richard Guenther  <rguenther@suse.de>
8788
8789         PR bootstrap/48148
8790         * lto-cgraph.c (input_overwrite_node): Clear the abstract
8791         origin for decls in other ltrans units.
8792         (input_varpool_node): Likewise.
8793
8794 2011-03-17  Richard Guenther  <rguenther@suse.de>
8795
8796         PR middle-end/48165
8797         * tree-object-size.c (compute_object_offset): Properly return
8798         the offset operand of MEM_REFs as sizetype.
8799
8800 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
8801
8802         PR rtl-optimization/48141
8803         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
8804         * dse.c: Include params.h.
8805         (active_local_stores_len): New variable.
8806         (add_wild_read, dse_step1): Clear it when setting active_local_stores
8807         to NULL.
8808         (record_store, check_mem_read_rtx): Decrease it when removing
8809         from the chain.
8810         (scan_insn): Likewise.  Increase it when adding to chain, if it
8811         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
8812         set active_local_stores to NULL before the addition.
8813         * Makefile.in (dse.o): Depend on $(PARAMS_H).
8814
8815         PR rtl-optimization/48141
8816         * dse.c (record_store): If no positions are needed in an insn
8817         that cannot be deleted, at least unchain it from active_local_stores.
8818
8819 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
8820
8821         PR debug/47510
8822         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
8823         (lookup_type_die_strip_naming_typedef): ... here.
8824         (get_context_die): Use it.
8825         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
8826         the anonymous struct named by the naming typedef.
8827
8828 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8829
8830         PR target/48154
8831         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
8832         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
8833
8834 2011-03-16  Jeff Law  <law@redhat.com>
8835
8836         * tree-vrp.c (identify_jump_threads): Slightly simplify type
8837         check for operands of conditional.  Allow type to be a pointer.
8838
8839 2011-03-16  Richard Guenther  <rguenther@suse.de>
8840
8841         PR tree-optimization/48149
8842         * fold-const.c (fold_binary_loc): Fold
8843         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
8844
8845 2011-03-16  Richard Guenther  <rguenther@suse.de>
8846
8847         PR tree-optimization/26134
8848         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
8849         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
8850         (non_rewritable_mem_ref_base): Handle complex type component
8851         accesses, constrain offsets for vector and complex extracts
8852         more properly.
8853
8854 2011-03-16  Richard Guenther  <rguenther@suse.de>
8855
8856         PR tree-optimization/48146
8857         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
8858         operands avoiding the need for renaming.
8859
8860 2011-03-16  Richard Guenther  <rguenther@suse.de>
8861
8862         * gimple-fold.c (maybe_fold_reference): Open-code relevant
8863         constant folding.  Move MEM_REF canonicalization first.
8864         Rely on fold_const_aggregate_ref for initializer folding.
8865         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
8866
8867 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
8868
8869         PR middle-end/48136
8870         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8871         arg0/arg1 or their arguments are always fold converted to matching
8872         types.
8873
8874         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
8875         to nargs.
8876
8877 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8878
8879         PR lto/46944
8880         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
8881         Handle in-tree gold.
8882         (ld_vers): Extract binutils version for gold.
8883         (gcc_cv_ld_hidden): Handle gold here.
8884         (gcc_cv_lto_plugin): Determine level of linker plugin support.
8885         * configure: Regenerate.
8886         * config.in: Regenerate.
8887         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
8888         -fuse-linker-plugin otherwise.
8889         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
8890         (LINK_COMMAND_SPEC): Use it.
8891         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
8892
8893 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
8894
8895         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
8896         * calls.c: Remove debug.h include.
8897         (emit_call_1): Don't call virtual_call_token debug hook.
8898         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
8899         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
8900         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
8901         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
8902         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
8903         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
8904         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
8905         dwarf2out_virtual_call): Remove.
8906         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
8907         copy_call_info and virtual_call hooks.
8908         (dwarf2out_init): Don't initialize vcall_insn_table,
8909         debug_dcall_section and debug_vcall_section.
8910         (prune_unused_types): Don't mark nodes from dcall_table.
8911         (dwarf2out_finish): Don't output dcall or vcall tables.
8912         * final.c (final_scan_insn): Don't call direct_call or
8913         virtual_call debug hooks.
8914         * debug.h (struct gcc_debug_hooks): Remove direct_call,
8915         virtual_call_token, copy_call_info and virtual_call hooks.
8916         (debug_nothing_uid): Remove prototype.
8917         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
8918         copy_call_info and virtual_call hooks.
8919         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8920         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
8921         * debug.c (do_nothing_debug_hooks): Likewise.
8922         (debug_nothing_uid): Remove.
8923         * doc/invoke.texi (-fenable-icf-debug): Remove.
8924         * common.opt (-fenable-icf-debug): Likewise.
8925
8926         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
8927         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
8928         call's MEM.  Handle functions returning aggregate through a hidden
8929         first pointer.  For virtual calls add clobbered pc to call arguments
8930         chain.
8931         * dwarf2out.c (gen_subprogram_die): Emit
8932         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
8933         can't be emitted.
8934
8935         PR debug/45882
8936         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
8937         * rtl.h (ENTRY_VALUE_EXP): Define.
8938         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
8939         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8940         * print-rtl.c (print_rtx): Likewise.
8941         * gengtype.c (adjust_field_rtx_def): Likewise.
8942         * var-tracking.c (vt_add_function_parameter): Adjust
8943         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
8944         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
8945         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
8946         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
8947         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
8948
8949         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
8950         Call var_location debug hook even on CALL_INSNs.
8951         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
8952         * rtl.def (ENTRY_VALUE): New.
8953         * dwarf2out.c: Include cfglayout.h.
8954         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8955         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
8956         (struct call_arg_loc_node): New type.
8957         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
8958         tail_call_site_count): New variables.
8959         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
8960         DW_TAG_GNU_call_site_parameter.
8961         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
8962         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
8963         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
8964         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
8965         and DW_AT_GNU_all_source_call_sites.
8966         (mem_loc_descriptor): Handle ENTRY_VALUE.
8967         (add_src_coords_attributes): Don't add enything if
8968         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
8969         (dwarf2out_abstract_function): Save and clear call_arg_location,
8970         call_site_count and tail_call_site_count around dwarf2out_decl call.
8971         (gen_call_site_die): New function.
8972         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
8973         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
8974         (dwarf2out_function_decl): Clear call_arg_locations,
8975         call_arg_loc_last, set call_site_count and tail_call_site_count
8976         to -1 and free block_map.
8977         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
8978         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
8979         followed by any real instructions.
8980         (dwarf2out_begin_function): Set call_site_count and
8981         tail_call_site_count to 0.
8982         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
8983         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
8984         attempt to force a DIE for it and worst case remove the attribute.
8985         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
8986         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
8987         the decl itself.
8988         * var-tracking.c: Include tm_p.h.
8989         (vt_stack_adjustments): For calls call note_register_arguments.
8990         (argument_reg_set): New variable.
8991         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
8992         ensure the VALUE is resolved.
8993         (call_arguments): New variable.
8994         (prepare_call_arguments): New function.
8995         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
8996         (struct expand_loc_callback_data): Add ignore_cur_loc field.
8997         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
8998         always use the best expression.
8999         (vt_expand_loc): Add ignore_cur_loc argument.
9000         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9001         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9002         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9003         note for all calls.
9004         (vt_add_function_parameter): Use cselib_lookup_from_insn.
9005         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9006         argument.  Don't call cselib_preserve_only_values and
9007         cselib_reset_table.
9008         (note_register_arguments): New function.
9009         (vt_initialize): Compute argument_reg_set.  Call
9010         vt_add_function_parameters before processing basic blocks instead of
9011         afterwards.  For calls call prepare_call_arguments before calling
9012         cselib_process_insn.
9013         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9014         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9015         (var-tracking.o): Depend on $(TM_P_H).
9016         * cfglayout.h (insn_scope): New prototype.
9017         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9018         * cfglayout.c (insn_scope): No longer static.
9019         * insn-notes.def (CALL_ARG_LOCATION): New.
9020         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9021         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9022         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9023         nothing for DECL_EXTERNAL BLOCK_VARS.
9024
9025 2011-03-16  Alan Modra  <amodra@gmail.com>
9026
9027         PR target/45844
9028         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9029         create invalid offset address for vsx splat insn.
9030         * config/rs6000/predicates.md (splat_input_operand): New.
9031         * config/rs6000/vsx.md (vsx_splat_*): Use it.
9032
9033 2011-03-15  Xinliang David Li  <davidxl@google.com>
9034
9035         PR c/47837
9036         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9037         (normalize_preds): New function.
9038         (is_use_properly_guarded): Normalize def predicates.
9039
9040 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9041
9042         PR target/46788
9043         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9044         in the output template.
9045
9046 2011-03-15  Richard Guenther  <rguenther@suse.de>
9047
9048         PR middle-end/47650
9049         * tree-pretty-print.c (dump_function_declaration): Properly
9050         dump unprototyped and varargs function types.
9051
9052 2011-03-15  Richard Guenther  <rguenther@suse.de>
9053
9054         PR tree-optimization/13954
9055         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9056         and friends.
9057
9058 2011-03-15  Richard Guenther  <rguenther@suse.de>
9059
9060         PR tree-optimization/48037
9061         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9062         selects into BIT_FIELD_REFs.
9063         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9064         vector select.
9065
9066 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
9067
9068         PR tree-optimization/48129
9069         * builtins.c (fold_builtin_snprintf): Convert to type of
9070         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9071         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9072
9073 2011-03-15  Richard Guenther  <rguenther@suse.de>
9074
9075         PR tree-optimization/41490
9076         * tree-ssa-dce.c (propagate_necessity): Handle returns without
9077         value but with VUSE.
9078         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9079         return statements.
9080         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9081         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9082         * tree-tailcall.c (find_tail_calls): Ignore returns.
9083
9084 2011-03-15  Richard Guenther  <rguenther@suse.de>
9085
9086         PR middle-end/48031
9087         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9088         or variable-indexed array accesses when in gimple form.
9089
9090 2011-03-15  Richard Guenther  <rguenther@suse.de>
9091
9092         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9093
9094 2011-03-15  Alan Modra  <amodra@gmail.com>
9095
9096         PR target/48032
9097         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9098         presume symbol_refs without a symbol_ref_decl are suitably
9099         aligned, nor other trees we may see here.  Handle anchor symbols.
9100         (legitimate_constant_pool_address_p): Comment.  Add mode param.
9101         Check cmodel=medium addresses.  Adjust all calls.
9102         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9103         creating cmodel=medium optimized access to locals.
9104         * config/rs6000/constraints.md (R): Pass QImode to
9105         legitimate_constant_pool_address_p.
9106         * config/rs6000/predicates.md (input_operand): Pass mode to
9107         legitimate_constant_pool_address_p.
9108         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9109         Update prototype.
9110
9111 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9112
9113         PR target/48053
9114         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9115         64-bit constants being loaded into registers other than GPRs such
9116         as loading 0 into a VSX register.
9117
9118 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9119
9120         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9121
9122 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9123
9124         PR middle-end/47917
9125         * builtins.c (fold_builtin_snprintf): New function.
9126         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9127         (fold_builtin_4): Likewise.
9128
9129         PR middle-end/38878
9130         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9131         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
9132         and C - X == X also strip nops from +/-/p+ operand.
9133         When optimizing -X == C, fold C to arg0's type.
9134
9135         PR debug/47946
9136         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9137         emit it as add_AT_int instead of add_AT_unsigned.
9138
9139 2011-03-14  Tom Tromey  <tromey@redhat.com>
9140
9141         * unwind-dw2.c: Include sys/sdt.h if it exists.
9142         (_Unwind_DebugHook): Use STAP_PROBE2.
9143         * config.in, configure: Rebuild.
9144         * configure.ac: Check for sys/sdt.h.
9145
9146 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
9147
9148         * config/i386/i386.md (ROUND_FLOOR): New constant.
9149         (ROUND_CEIL): Ditto.
9150         (ROUND_TRUNC): Ditto.
9151         (ROUND_MXCSR): Ditto.
9152         (ROUND_NO_EXC): Ditto.
9153         (rint<mode>2): Use new defines instead of numerical constants.
9154         (floor<mode>2): Ditto.
9155         (ceil<mode>2): Ditto.
9156         (btrunc<mode>2): Ditto.
9157         * config/i386/i386-builtin-types.def: Define ROUND function type
9158         aliases.
9159         * config/i386/i386.c (enum ix86_builtins): Add
9160         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9161         (struct builtin_description): Add
9162         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9163         (ix86_expand_sse_round): New static function.
9164         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9165         function types.
9166         (ix86_builtin_vectorized_function): Handle
9167         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9168
9169 2011-03-14  Tom Tromey  <tromey@redhat.com>
9170
9171         * c-parser.c (c_parser_asm_string_literal): Clear
9172         warn_overlength_strings.
9173
9174 2011-03-14  Tom Tromey  <tromey@redhat.com>
9175
9176         * c-parser.c (disable_extension_diagnostics): Save
9177         warn_overlength_strings.
9178         (restore_extension_diagnostics): Restore warn_overlength_strings.
9179
9180 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9181
9182         * BASE-VER: Change to 4.7.0.
9183
9184 2011-03-14  Richard Guenther  <rguenther@suse.de>
9185
9186         PR middle-end/48098
9187         * tree.c (build_vector_from_val): Adjust assert to requirements
9188         and reality.
9189
9190 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
9191
9192         PR bootstrap/48102
9193         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9194
9195 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
9196
9197         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9198         terms of target_flags_explicit. Adjust copyright year.
9199
9200         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9201         * config/rs6000/t-freebsd: New file. Add override for
9202         LIB2FUNCS_EXTRA.
9203
9204 2011-03-13  Chris Demetriou  <cgd@google.com>
9205
9206         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9207         (-fno-diagnostics-show-option): this, to reflect current default.
9208         (-Werror=): Update text about -fno-diagnostics-show-option.
9209
9210 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
9211
9212         PR target/48053
9213         * config/rs6000/predicates.md (easy_vector_constant_add_self,
9214         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9215         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9216         mode is not V2DImode or V2DFmode.
9217         (vspltis_constant): Do not handle V2DImode and V2DFmode.
9218         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9219         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9220         registers to 0.
9221         (movdi_internal64): Likewise.
9222
9223 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
9224
9225         PR tree-optimization/47127
9226         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9227         parameter.
9228         (set_cloog_options): Same.
9229         (scop_to_clast): Same.
9230         (print_clast_stmt): Do not call cloog_state_malloc and
9231         cloog_state_free.
9232         (print_generated_program): Same.
9233         (gloog): Same.
9234         * graphite-clast-to-gimple.h (cloog_state): Declared.
9235         (scop_to_clast): Adjust declaration.
9236         * graphite.c (cloog_state): Defined here.
9237         (graphite_initialize): Call cloog_state_malloc.
9238         (graphite_finalize): Call cloog_state_free.
9239
9240 2011-03-11  Jason Merrill  <jason@redhat.com>
9241
9242         * attribs.c (lookup_attribute_spec): Take const_tree.
9243         * tree.h: Adjust.
9244
9245 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
9246
9247         * config/sparc/sparc.c (sparc_option_override): Use
9248         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9249
9250 2011-03-11  Richard Guenther  <rguenther@suse.de>
9251
9252         PR tree-optimization/48067
9253         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9254         multiplication result will be only used once on the target
9255         stmt.
9256
9257 2011-03-11  Richard Guenther  <rguenther@suse.de>
9258
9259         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9260
9261 2011-03-11  Richard Guenther  <rguenther@suse.de>
9262
9263         PR lto/48073
9264         * tree.c (find_decls_types_r): Do not walk types only reachable
9265         from IDENTIFIER_NODEs.
9266
9267 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9268
9269         PR middle-end/48044
9270         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9271         all vnode->force_output nodes as needed.
9272
9273 2011-03-11  Jason Merrill  <jason@redhat.com>
9274
9275         PR c++/48069
9276         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9277         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9278
9279 2011-03-11  Martin Jambor  <mjambor@suse.cz>
9280
9281         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9282         cgraph_node.
9283
9284 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
9285
9286         PR tree-optimization/48063
9287         * ipa-inline.c (cgraph_decide_inlining): Don't try to
9288         inline functions called once if !tree_can_inline_p (node->callers).
9289
9290 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
9291
9292         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9293         extra_objs.
9294         * config/score/score3.c: Delete.
9295         * config/score/score3.h: Delete.
9296         * config/score/mul-div.S: Delete.
9297         * config/score/sfp-machine.h: Add new file.
9298         * config/score/constraints.md: Add new file.
9299         * config/score/t-score-softfp: Add new file.
9300         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9301         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9302         (score7_extra_constraint): Delete.
9303         (score7_option_override): Remove unused code.
9304         * config/score/score.c: Remove score3 and score5 define and code.
9305         * config/score/score.h: Remove score3 and score5 define and code.
9306         * config/score/score.md: Remove score3 template and unusual insn.
9307         * config/score/score.opt: Remove score3 and score5 options.
9308
9309 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9310
9311         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9312         when _HPUX_SOURCE is defined.
9313         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9314
9315 2011-03-10  Jason Merrill  <jason@redhat.com>
9316
9317         PR c++/48029
9318         * stor-layout.c (layout_type): Don't set structural equality
9319         on arrays of incomplete type.
9320         * tree.c (type_hash_eq): Handle comparing them properly.
9321
9322 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
9323
9324         PR debug/48043
9325         * config/s390/s390.c (s390_delegitimize_address): Make sure the
9326         result mode matches original rtl mode.
9327
9328 2011-03-10  Nick Clifton  <nickc@redhat.com>
9329
9330         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9331         (andsi3, andsi3_flags): Fix timings for three operand alternative.
9332
9333 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
9334
9335         PR rtl-optimization/47866
9336         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9337         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9338         if target wasn't scalar.
9339         * function.c (assign_stack_temp_for_type): Assert that neither
9340         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9341         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9342         macro.
9343         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9344
9345 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9346
9347         * config/s390/s390-protos.h (s390_label_align): New prototype.
9348         * config/s390/s390.c (s390_label_align): New function.
9349         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9350
9351 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9352
9353         PR target/47755
9354         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9355         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
9356         (output_vec_const_move): Ditto.
9357
9358 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
9359
9360         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9361         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9362         * config/mips/mips.c (mips_preferred_reload_class): Make static.
9363         Change 'rclass' argument and result type to reg_class_t.
9364         (TARGET_PREFERRED_RELOAD_CLASS): Define.
9365
9366 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
9367
9368         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9369         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9370         (TARGET_MEMORY_MOVE_COST): Define.
9371         (avr_register_move_cost, avr_memory_move_cost): New Functions.
9372
9373 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
9374
9375         PR debug/47881
9376         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9377         removed anything.
9378
9379         PR tree-optimization/48022
9380         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9381         for EQ/NE_EXPR.
9382
9383 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
9384
9385         PR debug/47991
9386         * var-tracking.c (find_use_val): Return NULL for
9387         cui->sets && cui->store_p BLKmode MEMs.
9388
9389 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
9390
9391         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9392         Remove.
9393         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9394         xstormy16_print_operand_address): Remove.
9395         * config/stormy16/stormy16.c (xstormy16_print_operand,
9396         xstormy16_print_operand_address): Make static.
9397         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9398
9399 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
9400
9401         PR target/47862
9402         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9403         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9404         before definition.
9405
9406 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
9407
9408         PR bootstrap/48000
9409         * cfgloopmanip.c (fix_bb_placements): Return immediately
9410         if FROM is BASE_LOOP's header.
9411
9412 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
9413
9414         * gimplify.c (gimplify_function_tree): Fix building calls
9415         to __builtin_return_address.
9416
9417 2011-03-07  Alan Modra  <amodra@gmail.com>
9418
9419         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9420         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9421         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9422         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9423         return_mode args.
9424         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9425         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9426         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9427         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9428         * config/rs6000/rs6000.c
9429         (rs6000_elf_end_indicate_exec_stack): Rename to..
9430         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
9431         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
9432         (rs6000_file_start): ..here.
9433         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9434         file scope variables.
9435         (call_ABI_of_interest): New function.
9436         (init_cumulative_args): Set above vars when function return value
9437         is a float, vector, or small struct.
9438         (rs6000_function_arg_advance_1): Likewise for function args.
9439         (rs6000_va_start): Set rs6000_passes_float if variable arg function
9440         references float args.
9441
9442 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
9443
9444         * doc/cfg.texi: Remove "See" before @ref.
9445         * doc/invoke.texi: Likewise.
9446
9447 2011-03-05  Jason Merrill  <jason@redhat.com>
9448
9449         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9450
9451 2011-03-05  Anthony Green  <green@moxielogic.com>
9452
9453         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9454
9455 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
9456
9457         PR rtl-optimization/47899
9458         * cfgloopmanip.c (fix_bb_placements): Fix first argument
9459         to flow_loop_nested_p when moving the loop upward.
9460
9461 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
9462
9463         PR target/47719
9464         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
9465
9466 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
9467
9468         PR tree-optimization/47967
9469         * ipa-cp.c (build_const_val): Return NULL instead of creating
9470         VIEW_CONVERT_EXPR for mismatching sizes.
9471         (ipcp_create_replace_map): Return NULL if build_const_val failed.
9472         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9473         give up on versioning.
9474
9475 2011-03-05  Alan Modra  <amodra@gmail.com>
9476
9477         PR target/47986
9478         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9479         full cmodel medium/large lo_sum + high addresses.
9480
9481 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9482
9483         * config/s390/s390.c (s390_decompose_address): Reject non-literal
9484         pool references in UNSPEC_LTREL_OFFSET.
9485
9486 2011-03-04  Jan Hubicka  <jh@suse.cz>
9487
9488         PR lto/47497
9489         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9490         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9491         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9492         Add node pointers.
9493         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9494         cgraph_add_thunk): Add node pointers.
9495         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9496         associated to right node.
9497         (input_node): Update use of cgraph_same_body_alias
9498         and cgraph_add_thunk.
9499
9500 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
9501
9502         * config/i386/i386.opt (mprefer-avx128): New flag.
9503         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9504         modes when the flag -mprefer-avx128 is on.
9505
9506 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
9507
9508         * dwarf2out.c (compare_loc_operands): Fix address handling.
9509
9510 2011-03-04  Alan Modra  <amodra@gmail.com>
9511
9512         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9513
9514 2011-03-04  Richard Guenther  <rguenther@suse.de>
9515
9516         PR middle-end/47968
9517         * expmed.c (extract_bit_field_1): Prefer vector modes that
9518         vec_extract patterns can handle.
9519
9520 2011-03-04  Richard Guenther  <rguenther@suse.de>
9521
9522         PR middle-end/47975
9523         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9524
9525 2011-03-04  Richard Henderson  <rth@redhat.com>
9526
9527         * explow.c (emit_stack_save): Remove 'after' parameter.
9528         (emit_stack_restore): Likewise.
9529         * expr.h: Update to match.
9530         * builtins.c, calls.c, stmt.c: Likewise.
9531         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9532         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9533         * function.c (expand_function_end): Insert the emit_stack_save
9534         sequence before parm_birth_insn instead of after.
9535
9536 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
9537
9538         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9539         (ssse3_pmaddubsw128): Ditto.
9540         (ssse3_pmaddubsw): Ditto.
9541
9542 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
9543
9544         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9545
9546 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
9547
9548         PR c/47963
9549         * gimplify.c (omp_add_variable): Only call omp_notice_variable
9550         on TYPE_SIZE_UNIT if it is a DECL.
9551
9552         PR debug/47283
9553         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9554         first operand is not is_gimple_mem_ref_addr, try to fold it.
9555         If the operand still isn't is_gimple_mem_ref_addr, clear
9556         MEM_EXPR on op0.
9557
9558 2011-03-03  Richard Guenther  <rguenther@suse.de>
9559
9560         PR middle-end/47283
9561         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9562         match comment.
9563         (refs_may_alias_p_1): For release branches return true if
9564         we are confused by our input.
9565
9566 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9567
9568         * config/s390/s390.c (s390_function_value): Rename to ...
9569         (s390_function_and_libcall_value): ... this.
9570         (s390_function_value): New function.
9571         (s390_libcall_value): New function.
9572         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9573         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9574         target macro definitions.
9575         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9576
9577 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
9578
9579         * config/i386/freebsd64.h (CC1_SPEC): Define.
9580         * config/i386/linux64.h (CC1_SPEC): Define.
9581         * config/i386/x86-64.h (CC1_SPEC): Don't define.
9582
9583 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
9584
9585         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9586         Remove.
9587         * config/stormy16/stormy16.c: Include reload.h.
9588         (xstormy16_memory_move_cost): New function.
9589         (TARGET_MEMORY_MOVE_COST): Define.
9590
9591 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
9592
9593         PR rtl-optimization/47925
9594         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9595         with side effects.  Remove the more-specific check for volatile asms.
9596
9597 2011-03-02  Alan Modra  <amodra@gmail.com>
9598
9599         PR target/47935
9600         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9601         toc relative addresses for valid offsets.
9602
9603 2011-03-01  Richard Guenther  <rguenther@suse.de>
9604
9605         PR tree-optimization/47890
9606         * tree-vect-loop.c (get_initial_def_for_induction): Set
9607         related stmt properly.
9608
9609 2011-03-01  Richard Guenther  <rguenther@suse.de>
9610
9611         PR lto/47924
9612         * lto-streamer.c (lto_record_common_node): Also register
9613         the canonical type.
9614
9615 2011-03-01  Richard Guenther  <rguenther@suse.de>
9616
9617         PR lto/46911
9618         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9619         Do not stream DECL_ABSTRACT_ORIGIN.
9620         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9621         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9622         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9623         Do not stream DECL_ABSTRACT_ORIGIN.
9624         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9625         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9626
9627 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
9628
9629         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9630         FUNCTION_VALUE_REGNO_P): Remove.
9631         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9632         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9633         Add 'outgoing' argument.
9634         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9635         function.
9636         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9637         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9638
9639 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
9640
9641         PR debug/28047
9642         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9643         (lookup_filename): Likewise.
9644         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9645
9646 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
9647             Jakub Jelinek  <jakub@redhat.com>
9648
9649         PR middle-end/47893
9650         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9651         (assign_stack_local_1): Change last argument type to int.
9652         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9653         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
9654         don't record padding space into frame_space_list nor use those areas.
9655         (assign_stack_local): Adjust caller.
9656         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9657         of assign_stack_local, pass 0 as last argument.
9658         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9659         callers.
9660
9661 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
9662
9663         PR debug/47283
9664         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9665         Use target address_mode and pointer_mode hooks instead of hardcoded
9666         Pmode and ptr_mode.  Handle some simple cases of extending if
9667         POINTERS_EXTEND_UNSIGNED < 0.
9668         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9669         Call convert_debug_memory_address.
9670         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9671         convert_debug_memory_address.
9672
9673         PR middle-end/46790
9674         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9675         * configure: Regenerated.
9676         * config.in: Regenerated.
9677         * varasm.c (default_function_section): Return NULL
9678         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9679
9680 2011-02-28  Martin Jambor  <mjambor@suse.cz>
9681
9682         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9683         the description to match the printed values.
9684
9685 2011-02-28  Richard Guenther  <rguenther@suse.de>
9686
9687         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9688         of the copied scope tree.
9689
9690 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9691
9692         * doc/extend.texi (Function Attributes): Avoid deeply (and
9693         wrongly) nested tables.
9694
9695 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
9696
9697         PR middle-end/47903
9698         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9699         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9700         r isn't op0 nor op1.
9701
9702 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9703
9704         * config/avr/avr.md: Remove magic comment for emacs.
9705
9706 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
9707
9708         PR target/45261
9709         * config/avr/avr.c (avr_option_override): Use error on bad options.
9710         (avr_help): New function.
9711         (TARGET_HELP): Define.
9712
9713 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
9714
9715         PR target/42240
9716         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9717         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9718
9719 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
9720
9721         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9722         (ARM Options): Ditto.
9723         (i386 and x86-64 Options): Ditto.
9724         (RX Options): Ditto.
9725         (SPARC Options): Ditto.
9726
9727 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
9728
9729         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9730         FreeBSD 6 and later.  Generally use cpu generic.
9731
9732 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
9733
9734         * doc/cpp.texi: Update copyright years.
9735
9736 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9737
9738         PR target/46898
9739         * config/lm32/lm32.md (ashrsi3): Added needed variable.
9740
9741 2011-02-25  Jon Beniston  <jon@beniston.com>
9742
9743         PR target/46898
9744         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9745         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9746         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9747         (lm32_block_move_inline): Add type cast to remove warning.
9748         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9749         (gen_int_relational): Move declarations to start of function.
9750
9751 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9752
9753         PR tree-optimization/45470
9754         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9755         can throw internally only.
9756         * tree-vect-stmts.c (vectorizable_call): Likewise.
9757
9758 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
9759
9760         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9761         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9762         * config/stormy16/stormy16-protos.h
9763         (xstormy16_preferred_reload_class): Remove.
9764         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9765         static. Change 'rclass' argument and return type to reg_class_t.
9766         (TARGET_PREFERRED_RELOAD_CLASS,
9767         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9768
9769 2011-02-24  Richard Guenther  <rguenther@suse.de>
9770
9771         * lto-streamer-in.c (input_bb): Do not find referenced vars
9772         in debug statements.
9773
9774 2011-02-23  Jason Merrill  <jason@redhat.com>
9775
9776         * common.opt (fabi-version): Document v5 and v6.
9777
9778 2011-02-23  Richard Guenther  <rguenther@suse.de>
9779
9780         PR tree-optimization/47849
9781         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9782
9783 2011-02-23  Jie Zhang  <jie@codesourcery.com>
9784
9785         * opts-common.c (decode_cmdline_option): Print empty string
9786         argument as "" in decoded->orig_option_with_args_text.
9787         * gcc.c (execute): Print empty string argument as ""
9788         in the verbose output.
9789         (do_spec_1): Keep empty string argument.
9790
9791 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
9792
9793         * config.gcc: Declare score-* and crx-* obsolete.
9794
9795 2011-02-23  Jie Zhang  <jie@codesourcery.com>
9796
9797         PR rtl-optimization/47763
9798         * web.c (web_main): Ignore naked clobber when replacing register.
9799
9800 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
9801
9802         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
9803         Remove.
9804
9805 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
9806
9807         PR doc/47848
9808         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
9809
9810 2011-02-22  Mike Stump  <mikestump@comcast.net>
9811
9812         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
9813         assembler.
9814         * configure: Regenerate.
9815
9816 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
9817
9818         PR rtl-optimization/46002
9819         * ira-color.c (update_copy_costs): Change class intersection
9820         test to reg_class_contents[] test of 'hard_regno'.
9821
9822 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
9823
9824         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
9825         than Driver option.
9826         * config/hpux11.opt (mt): Likewise.
9827         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
9828         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
9829         * config/vax/elf.opt (mno-asm-pic): Likewise.
9830         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
9831
9832 2011-02-21  Mike Stump  <mikestump@comcast.net>
9833
9834         PR target/47822
9835         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
9836         tree so we can get save the type.
9837         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
9838         for CFString instead of trying to use past the end of the builtins.
9839         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
9840         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
9841         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
9842         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
9843         Rename to darwin_builtin_cfstring.
9844         (darwin_init_cfstring_builtins): Return the built type.
9845
9846 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
9847
9848         PR target/47840
9849         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
9850         (_mm256_insert_epi64): Use _mm_insert_epi64.
9851
9852 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
9853
9854         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9855         * config/stormy16/stormy16-protos.h
9856         (xstormy16_mode_dependent_address_p): Remove.
9857         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9858         Make static. Change return type to bool. Change argument type to
9859         const_rtx. Remove dead code.
9860         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9861
9862 2011-02-21  Richard Guenther  <rguenther@suse.de>
9863
9864         PR lto/47820
9865         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9866         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9867         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
9868         TUs context.
9869         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9870         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
9871
9872 2011-02-20  Richard Guenther  <rguenther@suse.de>
9873
9874         PR lto/47822
9875         * tree.c (free_lang_data_in_decl): Clean builtins from
9876         the TU decl BLOCK_VARS.
9877
9878 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
9879
9880         PR debug/47620
9881         PR debug/47630
9882         * haifa-sched.c (fix_tick_ready): Skip tick computation
9883         for debug insns.
9884
9885 2011-02-19  Richard Guenther  <rguenther@suse.de>
9886
9887         PR lto/47647
9888         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
9889         Remove lazy BLOCK_VARS streaming.
9890         (lto_input_ts_block_tree_pointers): Likewise.
9891         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
9892
9893 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
9894
9895         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
9896
9897 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
9898
9899         * config/i386/biarch32.h, config/i386/mach.h,
9900         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
9901
9902 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
9903
9904         PR target/47800
9905         * config/i386/i386.md (peephole2 for shift and plus): Use
9906         operands[1] original mode in the first insn.
9907
9908 2011-02-18  Mike Stump  <mikestump@comcast.net>
9909
9910         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
9911
9912 2011-02-18  Jan Hubicka  <jh@suse.cz>
9913
9914         PR middle-end/47788
9915         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
9916         to zero when the function is not inlinable at all.
9917
9918 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9919
9920         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
9921         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9922         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
9923         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
9924         * config/pa/t-pa64: Likewise.
9925         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
9926
9927 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
9928
9929         PR driver/47787
9930         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
9931
9932 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9933
9934         PR target/47792
9935         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
9936
9937 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
9938
9939         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9940         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
9941         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
9942         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9943         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
9944         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
9945         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
9946         m32r_load_postinc_p, m32r_store_preinc_predec_p,
9947         m32r_legitimate_address_p): New functions.
9948         * config/m32r/constraints.md (constraint "S"): Don't use
9949         STORE_PREINC_PREDEC_P.
9950         (constraint "U"): Don't use LOAD_POSTINC_P.
9951
9952 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
9953
9954         PR rtl-optimization/46178
9955         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
9956         compute ira_hard_regno_cover_class[].
9957
9958 2011-02-18  Richard Guenther  <rguenther@suse.de>
9959
9960         PR lto/47798
9961         * lto-streamer.h (lto_global_var_decls): Declare.
9962         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
9963         statics for global var processing.
9964
9965 2011-02-18  Richard Guenther  <rguenther@suse.de>
9966
9967         PR tree-optimization/47737
9968         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
9969         edge dominance check.
9970
9971 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
9972
9973         PR debug/47780
9974         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
9975         avoid invalid rtx sharing.
9976
9977 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
9978
9979         * doc/cpp.texi (Obsolete Features): Add background on the
9980         origin of assertions.
9981
9982 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
9983
9984         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
9985         objc_abi == 2.
9986         * config/darwin.c (output_objc_section_asm_op): Added support for
9987         ABI v1 and v2.
9988         (is_objc_metadata): New.
9989         (darwin_objc2_section): New.
9990         (darwin_objc1_section): New.
9991         (machopic_select_section): Added support for ABI v1 and v2.
9992         (darwin_emit_objc_zeroed): New.
9993         (darwin_output_aligned_bss): Detect objc metadata and treat it
9994         appropriately.
9995         (darwin_asm_output_aligned_decl_common): Same.
9996         (darwin_asm_output_aligned_decl_local): Same.
9997         * config/darwin-sections.def: Updated for ABI v1 and v2.
9998         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
9999         compiling Objective-C code for the NeXT runtime, default to using
10000         ABI version 0 for 32-bit, and version 2 for 64-bit.
10001
10002 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10003
10004         * common.opt (optimize_fast): New Variable.
10005         * opts.c (default_options_optimization): Use opts->x_optimize_fast
10006         instead of local variable ofast.
10007
10008 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
10009
10010         * doc/invoke.texi (fobjc-abi-version): Documented.
10011         (fobjc-nilcheck): Documented.
10012         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10013         version.
10014
10015 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10016
10017         PR driver/47390
10018         * common.opt (export-dynamic): New Driver option.
10019         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10020
10021 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10022
10023         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10024
10025 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
10026             Jan Hubicka  <jh@suse.cz>
10027
10028         PR debug/47106
10029         PR debug/47402
10030         * cfgexpand.c (account_used_vars_for_block): Remove.
10031         (estimated_stack_frame_size): Use referenced vars.
10032         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10033         that were referenced in the original function.  Test src_fn
10034         rather than cfun.  Drop redundant get_var_ann.
10035         (setup_one_parameter): Drop redundant get_var_ann.
10036         (declare_return_variable): Likewise.
10037         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10038         (copy_arguments_for_versioning): Drop redundant get_var_ann.
10039         * ipa-inline.c (compute_inline_parameters): Do not compute
10040         disregard_inline_limits here.
10041         (compute_inlinable_for_current, pass_inlinable): New.
10042         (pass_inline_parameters): Require PROP_referenced_vars.
10043         * cgraphunit.c (cgraph_process_new_functions): Don't run
10044         compute_inline_parameters explicitly unless function is in SSA form.
10045         (cgraph_analyze_function): Set .disregard_inline_limits.
10046         * tree-sra.c (convert_callers): Compute inliner parameters
10047         only for functions already in SSA form.
10048
10049 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10050
10051         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10052         -mlittle-endian-data.
10053
10054 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
10055
10056         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10057         -mno-fpu, not -fpu and -no-fpu.
10058         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10059         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10060
10061 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
10062
10063         PR target/43653
10064         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10065         input reload with PLUS RTX.
10066
10067 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10068
10069         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10070         of InverseVar(MDMX).
10071
10072 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10073
10074         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10075         --m4-340.
10076
10077 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10078
10079         * config/mn10300/mn10300.opt (mno-crt0): New.
10080
10081 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10082
10083         * config/m68k/uclinux.opt (static-libc): New Driver option.
10084
10085 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10086
10087         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10088
10089 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
10090
10091         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10092         %{muser-extend-enabled}.
10093
10094 2011-02-16  Richard Guenther  <rguenther@suse.de>
10095
10096         PR tree-optimization/47738
10097         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10098         the TODO from tree_predictive_commoning.
10099
10100 2011-02-15  Jeff Law  <law@redhat.com>
10101
10102         Revert
10103         2011-01-25  Jeff Law  <law@redhat.com>
10104
10105         PR rtl-optimization/37273
10106         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10107         handle them like argument loads from stack slots.  Do not double
10108         count memory for memory constants and argument loads from stack slots.
10109
10110 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10111
10112         PR middle-end/47725
10113         * combine.c (cant_combine_insn_p): Revert the last change.
10114
10115 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10116
10117         PR target/47755
10118         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10119         mode for vector constants.  Remove code that checks for TImode.
10120
10121 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10122
10123         PR debug/47106
10124         PR debug/47402
10125         * cgraph.h (compute_inline_parameters): Return void.
10126         * ipa-inline.c (compute_inline_parameters): Adjust.
10127
10128 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10129
10130         PR debug/47106
10131         PR debug/47402
10132         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10133         rather than decl.
10134         * cfgexpand.c (estimated_stack_frame_size): Likewise.
10135         * ipa-inline.c (compute_inline_parameters): Adjust.
10136
10137 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10138
10139         PR debug/47106
10140         PR debug/47402
10141         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10142         Adjust all users.  Pass FN to...
10143         * tree-flow-inline.h (first_referenced_var): ... this.  Add
10144         fn argument.
10145         * ipa-struct-reorg.c: Adjust.
10146         * tree-dfa.c: Adjust.
10147         * tree-into-ssa.c: Adjust.
10148         * tree-sra.c: Adjust.
10149         * tree-ssa-alias.c: Adjust.
10150         * tree-ssa-live.c: Adjust.
10151         * tree-ssa.c: Adjust.
10152         * tree-ssanames.c: Adjust.
10153         * tree-tailcall.c: Adjust.
10154
10155 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
10156
10157         PR debug/47106
10158         PR debug/47402
10159         * tree-flow.h (referenced_var_lookup): Add fn parameter.
10160         Adjust all callers.
10161         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10162         * tree-flow-inline.h: Adjust.
10163         * gimple-pretty-print.c: Adjust.
10164         * tree-into-ssa.c: Adjust.
10165         * tree-ssa.c: Adjust.
10166         * cfgexpand.c: Adjust.
10167
10168 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10169
10170         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10171         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10172         (EXTRA_CONSTRAINT): Delete.
10173         * config/iq2000/constraints.md: New file.
10174         * config/iq2000/iq2000.md: Include it.
10175         (define_insn ""): Delete.
10176         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10177         unsupported constraint letters from patterns.
10178         (call_value, call_value_internal1): Likewise.
10179         (call_value_multiple_internal1): Likewise.
10180
10181 2011-02-15  Nick Clifton  <nickc@redhat.com>
10182
10183         * config/mn10300/mn10300.c: Include tm-constrs.h.
10184         (struct liw_data): New data structure describing an LIW candidate
10185         instruction.
10186         (extract_bundle): Use struct liw_data.  Allow small integer
10187         operands for some instructions.
10188         (check_liw_constraints): Use struct liw_data.  Remove swapped
10189         parameter.  Add comments describing the checks.  Fix bug when
10190         assigning the source of liw1 to the source of liw2.
10191         (liw_candidate): Delete.  Code moved into extract_bundle.
10192         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
10193         before swapping.
10194         * config/mn10300/predicates.md (liw_operand): New predicate.
10195         Allows registers and small integer constants.
10196         * config/mn10300/constraints.md (O): New constraint.  Accetps
10197         integers in the range -8 to +7 inclusive.
10198         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10199         for moving a small integer into a register.  Give this alternative
10200         LIW attributes.
10201         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10202         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10203         using the J,K,L and M constraints,
10204         (liw): Remove SI mode on second operands to allow for HI and QI
10205         mode values.
10206         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
10207         instruction.
10208
10209 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
10210
10211         PR middle-end/47725
10212         * combine.c (cant_combine_insn_p): Check zero/sign extended
10213         hard registers.
10214
10215 2011-02-15  Richard Guenther  <rguenther@suse.de>
10216
10217         PR tree-optimization/47743
10218         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10219         for a non-type-compatible VN lookup bail out.
10220
10221 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10222
10223         * config/fr30/constraints.md: New file.
10224         * config/fr30/fr30.md: Include it.
10225         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10226         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10227         (EXTRA_CONSTRAINT): Delete.
10228
10229 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
10230
10231         * config/frv/constraints.md: New file.
10232         * config/frv/predicates.md: Include it.
10233         * config/frv/frv.c (reg_class_from_letter): Delete.
10234         (frv_option_override): Don't initialize it.
10235         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10236         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10237         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10238         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10239         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10240         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10241         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10242         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10243         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10244         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10245         (REG_CLASS_FROM_CONSTRAINT): Delete.
10246
10247 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
10248
10249         PR middle-end/47581
10250         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10251         if frame size is 0 in a leaf function.
10252
10253 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10254
10255         PR pch/14940
10256         * config/alpha/host-osf.c: New file.
10257         * config/alpha/x-osf: New file.
10258         * config.host (alpha*-dec-osf*): Use it.
10259
10260 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10261
10262         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10263         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10264         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10265         (rx_mode_dependent_address_p): ...this. Make static. Change argument
10266         type to const_rtx.
10267         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10268
10269 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10270
10271         * config/stormy16/constraints.md: New file.
10272         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10273         Use satisfies_constraint_Q and satisfies_constraint_R.
10274         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10275         Delete.
10276         (xstormy16_legitiamte_address_p): Declare.
10277         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10278         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10279         (EXTRA_CONSTRAINT): Delete.
10280         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10281         Un-staticize.
10282         (xstormy16_extra_constraint_p): Delete.
10283
10284 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10285
10286         PR tree-optimization/46494
10287         * loop-unroll.c (split_edge_and_insert): Adjust comment.
10288         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10289         (pass_rtl_loop_done): Add TODO_verify_flow.
10290         * fwprop.c (pass_rtl_fwprop): Likewise.
10291         * modulo-sched.c (pass_sms): Likewise.
10292         * tree-ssa-dom.c (pass_dominator): Likewise.
10293         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10294         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10295         (pass_tree_loop_done): Likewise.
10296         * tree-ssa-pre.c (execute_pre): Likewise.
10297         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10298         * tree-ssa-sink.c (pass_sink_code): Likewise.
10299         * tree-vrp.c (pass_vrp): Likewise.
10300
10301 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10302
10303         * config/v850/constraints.md: New file.
10304         * config/v850/v850.md: Include it.
10305         * config/v850/predicates.md (reg_or_0_operand): Use
10306         satisfies_constraint_G.
10307         (special_symbolref_operand): Use satisfies_constraint_K.
10308         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10309         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10310         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10311         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10312         (EXTRA_CONSTRAINT): Delete.
10313         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10314         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10315         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10316
10317 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
10318
10319         PR target/47696
10320         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10321         description.
10322
10323 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
10324
10325         * config/mcore/constraints.md: New file.
10326         * config/mcore/mcore.md: Include it.
10327         * config/mcore/mcore.c (reg_class_from_letter): Delete.
10328         * config/mcore/mcore.h (reg_class_from_letter): Delete.
10329         (REG_CLASS_FROM_LETTER): Delete.
10330         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10331         insn_const_int_ok_for_constraint.
10332         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10333         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10334         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10335         (EXTRA_CONSTRAINT): Delete.
10336
10337 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10338
10339         PR ada/41929
10340         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10341         (IS_SIGHANDLER): Define.
10342         (sparc64_is_sighandler): New function, split off from
10343         sparc64_fallback_frame_state.
10344         (sparc_is_sighandler): New function, split off from
10345         sparc_fallback_frame_state.
10346         (sparc64_fallback_frame_state): Merge with ...
10347         (sparc_fallback_frame_state): ... this into ...
10348         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10349         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
10350         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
10351         stack instead of hardcoded offsets.
10352
10353 2011-02-14  Andriy Gapon  <avg@freebsd.org>
10354
10355         PR target/45808
10356         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10357
10358 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10359
10360         * configure: Regenerate.
10361
10362 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
10363
10364         PR driver/45731
10365         * gcc.c (asm_options): Correct spec matching --target-help.
10366
10367 2011-02-12  Martin Jambor  <mjambor@suse.cz>
10368
10369         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10370         to gimple call error.
10371
10372 2011-02-12  Mike Stump  <mikestump@comcast.net>
10373
10374         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10375         comments in backslash regions.
10376
10377 2011-02-12  Mike Stump  <mikestump@comcast.net>
10378             Jakub Jelinek  <jakub@redhat.com>
10379             Iain Sandoe  <iains@gcc.gnu.org>
10380
10381         PR target/47324
10382         * dwarf2out.c (output_cfa_loc): When required, apply the
10383         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10384         (output_loc_sequence): Likewise.
10385         (output_loc_operands_raw): Likewise.
10386         (output_loc_sequence_raw): Likewise.
10387         (output_cfa_loc): Likewise.
10388         (output_loc_list): Suppress register number adjustment when
10389         calling output_loc_sequence()
10390         (output_die): Likewise.
10391
10392 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
10393
10394         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10395         Remove macros.
10396         * config/xtensa/xtensa.c (xtensa_register_move_cost,
10397         xtensa_memory_move_cost): New functions.
10398         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10399
10400 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
10401
10402         PR lto/47225
10403         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10404         in the current directory.
10405         * configure: Rebuilt.
10406
10407 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10408
10409         * config/darwin.c (darwin_override_options): Add a hunk missed
10410         from the commit of r168571.  Trim comment line lengths and
10411         correct indents of the preceding block.
10412
10413 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
10414
10415         * gcc.c (driver_handle_option): Concatenate the argument to -F with
10416         the switch.
10417
10418 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10419
10420         * common.opt (nostartfiles): New Driver option.
10421
10422 2011-02-11  Xinliang David Li  <davidxl@google.com>
10423
10424         PR tree-optimization/47707
10425         * tree-chrec.c (convert_affine_scev): Keep type precision.
10426
10427 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
10428
10429         PR tree-optimization/47420
10430         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10431
10432 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
10433
10434         PR rtl-optimization/47614
10435         * rtl.h (check_for_inc_dec): Declare.
10436         * dse.c (check_for_inc_dec): Externalize...
10437         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10438         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10439
10440 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
10441
10442         PR driver/47678
10443         * gcc.c (main): Do not compile inputs if there were errors in
10444         option handling.
10445         * opts-common.c (read_cmdline_option): Check for wrong language
10446         after other error checks.
10447
10448 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
10449
10450         * cgraph.c: Fix comment typos.
10451         * cgraph.h: Likewise.
10452         * cgraphunit.c: Likewise.
10453         * ipa-cp.c: Likewise.
10454         * ipa-inline.c: Likewise.
10455         * ipa-prop.c: Likewise.
10456         * ipa-pure-const.c: Likewise.
10457         * ipa-ref.c: Likewise.
10458         * ipa-reference.c: Likewise.
10459
10460 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10461
10462         PR debug/47684
10463         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10464
10465 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10466
10467         PR testsuite/47400
10468         * doc/sourcebuild.texi (Require Support): Document
10469         dg-require-ascii-locale.
10470
10471 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
10472
10473         * doc/lto.texi (Write summary): Fix missing parentheses.
10474
10475 2011-02-10  DJ Delorie  <dj@redhat.com>
10476
10477         * config/m32c/m32c.c (m32c_option_override): Disable
10478         -fcombine-stack-adjustments until flag value tracking and compare
10479         optimization can be rewritten.
10480
10481 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
10482
10483         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10484         PROCESSOR_POWER7.
10485         (PROCESSOR_DEFAULT64): Likewise.
10486
10487 2011-02-10  Richard Henderson  <rth@redhat.com>
10488
10489         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10490         change from 2011-02-03.
10491         * config/rx/rx.c (flags_from_code): Likewise.
10492         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10493         is valid, n/pz otherwise.
10494         (rx_select_cc_mode): Return CCmode if Y is not zero.
10495
10496 2011-02-10  Richard Guenther  <rguenther@suse.de>
10497
10498         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10499
10500 2011-02-10  Richard Guenther  <rguenther@suse.de>
10501
10502         PR tree-optimization/47677
10503         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10504
10505 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
10506
10507         PR target/47665
10508         * combine.c (make_compound_operation): Only change shifts into
10509         multiplication for SCALAR_INT_MODE_P.
10510
10511 2011-02-10  Jie Zhang  <jie@codesourcery.com>
10512
10513         PR testsuite/47622
10514         Revert
10515         2011-02-05  Jie Zhang  <jie@codesourcery.com>
10516         PR debug/42631
10517         * web.c (entry_register): Don't clobber the number of the
10518         first uninitialized reference in used[].
10519
10520 2011-02-09  Richard Guenther  <rguenther@suse.de>
10521
10522         PR tree-optimization/47664
10523         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10524         all edges again.
10525
10526 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
10527
10528         PR target/46481
10529         PR target/47032
10530         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10531         PROCESSOR_POWER7.
10532         (PROCESSOR_DEFAULT64): Same.
10533         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10534
10535 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10536
10537         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10538
10539 2011-02-09  Martin Jambor  <mjambor@suse.cz>
10540
10541         PR middle-end/45505
10542         * tree-sra.c (struct access): New flags grp_scalar_read and
10543         grp_scalar_write.  Changed description of assignment read and write
10544         flags.
10545         (dump_access): Dump new flags, reorder all of them.
10546         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10547         to detect multiple scalar reads.
10548         (analyze_access_subtree): Use the new scalar read write flags instead
10549         of the old flags.  Adjusted comments.
10550
10551 2011-02-08  DJ Delorie  <dj@redhat.com>
10552
10553         PR target/47548
10554         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10555         patterns.
10556
10557 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10558
10559         * config/m68k/uclinux.opt: New.
10560         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10561
10562 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10563
10564         * config/cris/elf.opt (sim): New Driver option.
10565
10566 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10567
10568         * config/xtensa/elf.opt: New.
10569         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10570
10571 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10572
10573         * config/vax/elf.opt: New.
10574         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10575
10576 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10577
10578         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10579
10580 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10581
10582         * config/gnu-user.opt: New.
10583         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10584         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10585         *-*-uclinux*): Use gnu-user.opt.
10586
10587 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
10588
10589         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10590         * config/i386/gnu.h (CPP_SPEC): Likewise.
10591
10592 2011-02-08  Ian Lance Taylor  <iant@google.com>
10593
10594         * common.opt (fcx-limited-range): Add SetByCombined flag.
10595         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10596         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10597         (fassociative-math, freciprocal-math): Likewise.
10598         (funsafe-math-optimizations): Likewise.
10599         * opth-gen.awk: Handle SetByCombined.
10600         * optc-gen.awk: Likewise.
10601         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10602         (set_unsafe_math_optimizations_flags): Likewise.
10603         * doc/options.texi (Option properties): Document SetByCombined.
10604
10605 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
10606
10607         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10608         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10609         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10610         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10611         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10612
10613 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
10614
10615         PR tree-optimization/46834
10616         PR tree-optimization/46994
10617         PR tree-optimization/46995
10618         * graphite-sese-to-poly.c (used_outside_reduction): New.
10619         (detect_commutative_reduction): Call used_outside_reduction.
10620         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10621         translate_scalar_reduction_to_array only when at least one
10622         loop-phi/close-phi tuple has been detected.
10623
10624 2011-02-08  Richard Guenther  <rguenther@suse.de>
10625
10626         PR middle-end/47639
10627         * tree-vect-generic.c (expand_vector_operations_1): Update
10628         stmts here ...
10629         (expand_vector_operations): ... not here.  Cleanup EH info
10630         and the CFG if required.
10631
10632 2011-02-08  Richard Guenther  <rguenther@suse.de>
10633
10634         PR tree-optimization/47641
10635         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10636         require type compatibility.
10637
10638 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10639
10640         * gimple-low.c (lower_function_body): Don't remove the location of
10641         the return statement here.
10642         (lower_gimple_return): Do it here instead but only if the return
10643         statement is actually used twice.
10644
10645 2011-02-08  Richard Guenther  <rguenther@suse.de>
10646
10647         PR tree-optimization/47632
10648         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10649         unused up_to_stmt parameter, return whether cfg-cleanup is
10650         necessary, remove EH info properly.
10651         (forward_propagate_into_gimple_cond): Adjust caller.
10652         (forward_propagate_into_cond): Likewise.
10653         (forward_propagate_comparison): Likewise.
10654         (tree_ssa_forward_propagate_single_use_vars): Make
10655         forward_propagate_comparison case similar to the two others.
10656
10657 2011-02-08  Nick Clifton  <nickc@redhat.com>
10658
10659         * config/mn10300/mn10300.opt (mliw): New command line option.
10660         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10661         (liw_bundling): New automaton.
10662         (liw): New attribute.
10663         (liw_op): New attribute.
10664         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10665         (movsi_internal): Add LIW attributes.
10666         (andsi3): Likewise.
10667         (iorsi3): Likewise.
10668         (xorsi3): Likewise.
10669         (addsi3): Separate register and immediate alternatives.
10670         Add LIW attributes.
10671         (subsi3): Likewise.
10672         (cmpsi): Likewise.
10673         (aslsi3): Likewise.
10674         (lshrsi3): Likewise.
10675         (ashrsi3): Likewise.
10676         (liw): New pattern.
10677         * config/mn10300/mn10300.c (liw_op_names): New
10678         (mn10300_print_operand): Handle 'W' operand descriptor.
10679         (extract_bundle): New function.
10680         (check_liw_constraints): New function.
10681         (liw_candidate): New function.
10682         (mn10300_bundle_liw): New function.
10683         (mn10300_reorg): New function.
10684         (TARGET_MACHINE_DEPENDENT_REORG): Define.
10685         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10686         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10687         __LIW__ or __NO_LIW__.
10688         * doc/invoke.texi: Describe the -mliw command line option.
10689
10690 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10691
10692         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10693         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10694         pthread_mutex_unlock): Remove.
10695         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10696         * config/pa/t-pa64: Likewise.
10697         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10698         shared libc if not linking against libpthread.
10699         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10700
10701 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
10702
10703         PR target/47558
10704         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10705         on 10.6 and later to ensure that we always use the unwinder from
10706         the system.  Only add -no_compact_unwind when tarteting darwin
10707         10.6 or later.
10708
10709 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
10710
10711         PR target/46997
10712         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10713         (vec_interleave_lowv2sf): Ditto.
10714         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10715         (vec_extract_oddv2sf): Ditto.
10716
10717 2011-02-07  Mike Stump  <mikestump@comcast.net>
10718
10719         PR target/42333
10720         Add __ieee_divdc3 entry point.
10721         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10722         entry point.
10723         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10724         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10725         * config/darwin.c (darwin_rename_builtins): Add.
10726         * config/darwin-protos.h (darwin_rename_builtins): Add.
10727
10728 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
10729
10730         PR target/47636
10731         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10732         for the condition.
10733
10734 2011-02-07  Mike Stump  <mikestump@comcast.net>
10735
10736         * config/darwin.opt (mmacosx-version-min): Update default OS version.
10737
10738 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
10739
10740         PR target/47534
10741         * config/avr/libgcc.S (exit): Move .endfunc
10742
10743 2011-02-07  Richard Guenther  <rguenther@suse.de>
10744
10745         PR tree-optimization/47615
10746         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10747         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10748         (run_scc_vn): Initialize it.
10749         (visit_reference_op_load): Use it.
10750         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10751
10752 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10753
10754         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10755         DImode trapping arithmetic libfuncs.
10756
10757 2011-02-07  Richard Guenther  <rguenther@suse.de>
10758
10759         PR tree-optimization/47621
10760         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10761         two duplicates ...
10762         (execute_update_addresses_taken): ... here.  Make it more
10763         conservative in what we accept.
10764
10765 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10766
10767         * config/sparc/freebsd.h (ASM_SPEC): Define.
10768         * config/sparc/vxworks.h (ASM_SPEC): Define.
10769
10770 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
10771
10772         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10773
10774 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
10775
10776         * doc/invoke.texi: Remove reference to compiler internals from
10777         user documentation.
10778
10779         * reg-notes.def: Remove REG_VALUE_PROFILE.
10780         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10781
10782 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
10783
10784         PR middle-end/47610
10785         * varasm.c (default_section_type_flags): If decl is NULL,
10786         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10787
10788 2011-02-05  Jie Zhang  <jie@codesourcery.com>
10789
10790         PR debug/42631
10791         * web.c (entry_register): Don't clobber the number of the
10792         first uninitialized reference in used[].
10793
10794 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
10795
10796         PR tree-optimization/46194
10797         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10798         (build_classic_dist_vector_1): Do not represent classic distance
10799         vectors when the access functions are variating in different loops.
10800
10801 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10802
10803         * config/mips/iris6.opt: New.
10804         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
10805
10806 2011-02-04  Richard Henderson  <rth@redhat.com>
10807             Steve Ellcey  <sje@cup.hp.com>
10808
10809         PR target/46997
10810         * config/ia64/predicates.md (mux1_brcst_element): New.
10811         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
10812         * config/ia64/ia64.c (ia64_unpack_assemble): New.
10813         (ia64_unpack_sign): New.
10814         (ia64_expand_unpack): Rewrite using new routines.
10815         (ia64_expand_widen_sum): Ditto.
10816         (ia64_expand_dot_prod_v8qi): Ditto.
10817         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
10818         routines, add endian check.
10819         (pmpy2_even): Rename from pmpy2_r, add endian check.
10820         (pmpy2_odd): Rename from pmpy2_l, add endian check.
10821         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
10822         (vec_widen_smult_hi_v4hi): Ditto.
10823         (vec_widen_umult_lo_v4hi): Ditto.
10824         (vec_widen_umult_hi_v4hi): Ditto.
10825         (mulv2si3): Change endian checks.
10826         (sdot_prodv4hi): Rewrite with new calls.
10827         (udot_prodv4hi): New.
10828         (vec_pack_ssat_v4hi): Add endian check.
10829         (vec_pack_usat_v4hi): Ditto.
10830         (vec_pack_ssat_v2si): Ditto.
10831         (max1_even): Rename from max1_r, add endian check.
10832         (max1_odd): Rename from max1_l, add endian check.
10833         (*mux1_rev): Format change.
10834         (*mux1_mix): Ditto.
10835         (*mux1_shuf): Ditto.
10836         (*mux1_alt): Ditto.
10837         (*mux1_brcst_v8qi): Use new predicate.
10838         (vec_extract_evenv8qi): Remove endian check.
10839         (vec_extract_oddv8qi): Ditto.
10840         (vec_interleave_lowv4hi): Format change.
10841         (vec_interleave_highv4hi): Ditto.
10842         (mix2_even): Rename from mix2_r, add endian check.
10843         (mix2_odd): Rename from mux2_l, add endian check.
10844         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
10845         (vec_extract_evenodd_helper): Format change.
10846         (vec_extract_evenv4hi): Remove endian check.
10847         (vec_extract_oddv4hi): Remove endian check.
10848         (vec_interleave_lowv2si): Format change.
10849         (vec_interleave_highv2si): Format change.
10850         (vec_initv2si): Remove endian check.
10851         (vecinit_v2si): Add endian check.
10852         (reduc_splus_v2sf): Add endian check.
10853         (reduc_smax_v2sf): Ditto.
10854         (reduc_smin_v2sf): Ditto.
10855         (vec_initv2sf): Remove endian check.
10856         (fpack): Add endian check.
10857         (fswap): Add endian check.
10858         (vec_interleave_highv2sf): Add endian check.
10859         (vec_interleave_lowv2sf): Add endian check.
10860         (fmix_lr): Add endian check.
10861         (vec_setv2sf): Format change.
10862         (*vec_extractv2sf_0_be): Use shift to extract operand.
10863         (*vec_extractv2sf_1_be): New.
10864         (vec_pack_trunc_v4hi): Add endian check.
10865         (vec_pack_trunc_v2si): Format change.
10866
10867 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
10868
10869         PR inline-asm/23200
10870         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
10871         do bb, locus and block comparison and disallow loads if it is not set.
10872         (stmt_is_replaceable_p): New function.
10873         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
10874         callers.
10875         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
10876         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
10877         SSA_NAME_DEF_STMT.
10878         * tree-flow.h (stmt_is_replaceable_p): New prototype.
10879
10880 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10881
10882         * config/rs6000/xilinx.opt: New.
10883         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
10884
10885 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
10886
10887         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
10888
10889 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
10890
10891         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
10892         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
10893         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
10894         secondary_reload_info, xtensa_secondary_reload): Remove.
10895         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
10896         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
10897         (xtensa_preferred_reload_class): Make static. Change return and
10898         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
10899         Use CONST_DOUBLE_P predicate.
10900         (xtensa_preferred_output_reload_class): New function.
10901         (xtensa_secondary_reload): Make static.
10902
10903 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
10904
10905         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
10906         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
10907         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
10908
10909 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
10910
10911         PR middle-end/31490
10912         * output.h (SECTION_RELRO): Define.
10913         (SECTION_MACH_DEP): Adjust.
10914         (get_variable_section): New prototype.
10915         * varpool.c (varpool_finalize_named_section_flags): New function.
10916         (varpool_assemble_pending_decls): Call it.
10917         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
10918         * cgraphunit.c (cgraph_output_in_order): Call
10919         varpool_finalize_named_section_flags.
10920         * varasm.c (get_section): Allow section flags conflicts between
10921         relro and read-only sections if the section hasn't been declared yet.
10922         Set SECTION_OVERRIDE after diagnosing section type conflict.
10923         (get_variable_section): No longer static.
10924         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
10925         readonly sections that need relocations.
10926         (decl_readonly_section_1): New function.
10927         (decl_readonly_section): Use it.
10928
10929         Revert:
10930         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
10931                     Steve Ellcey  <sje@cup.hp.com>
10932
10933         PR middle-end/31490
10934         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
10935         if section attribute used.
10936
10937 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
10938
10939         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
10940         * config/darwin.c (SECTION_NO_ANCHOR): Define.
10941         (darwin_init_sections): Remove assertion.
10942
10943 2011-02-03  Nick Clifton  <nickc@redhat.com>
10944
10945         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
10946         lt and ge.
10947         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
10948         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
10949         instead of "n" and "pz".
10950         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
10951         CC_FLAG_S.
10952
10953 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
10954
10955         PR target/47312
10956         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
10957         fma, expand FMA_EXPR as fma{,f,l} call.
10958
10959         PR lto/47274
10960         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
10961         copy them into a unsigned char variable and pass address of it to
10962         lto_output_data_stream.
10963
10964         PR target/47564
10965         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
10966         around backend_init_target and lang_dependent_init_target calls.
10967         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
10968         (verify_cgraph_node): Don't call set_cfun here.  Use
10969         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
10970         Set error_found for incorrectly represented calls to thunks.
10971
10972 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
10973
10974         PR debug/43092
10975         PR rtl-optimization/43494
10976         * rtl.h (for_each_inc_dec_fn): New type.
10977         (for_each_inc_dec): Declare.
10978         * rtlanal.c (struct for_each_inc_dec_ops): New type.
10979         (for_each_inc_dec_find_inc_dec): New fn.
10980         (for_each_inc_dec_find_mem): New fn.
10981         (for_each_inc_dec): New fn.
10982         * dse.c (struct insn_size): Remove.
10983         (replace_inc_dec, replace_inc_dec_mem): Remove.
10984         (emit_inc_dec_insn_before): New fn.
10985         (check_for_inc_dec): Use it, along with for_each_inc_dec.
10986         (canon_address): Pass mem modes to cselib_lookup.
10987         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
10988         (cselib_lookup_from_insn): Likewise.
10989         (cselib_subst_to_values): Likewise.
10990         * cselib.c (find_slot_memmode): New var.
10991         (cselib_find_slot): New fn.  Use it instead of
10992         htab_find_slot_with_hash everywhere.
10993         (entry_and_rtx_equal_p): Use find_slot_memmode.
10994         (autoinc_split): New fn.
10995         (rtx_equal_for_cselib_p): Rename and implement in terms of...
10996         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
10997         Deal with autoinc.  Special-case recursion into MEMs.
10998         (cselib_hash_rtx): Likewise.
10999         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
11000         address and MEM modes.
11001         (cselib_subst_to_values): Add memmode, pass it on.
11002         Deal with autoinc.
11003         (cselib_lookup): Add memmode argument, pass it on.
11004         (cselib_lookup_from_insn): Add memmode.
11005         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11006         (struct cselib_record_autoinc_data): New.
11007         (cselib_record_autoinc_cb): New fn.
11008         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
11009         mode to cselib_lookup.  Reset autoinced REGs here instead of...
11010         (cselib_process_insn): ... here.
11011         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11012         to cselib_lookup.
11013         (add_uses): Likewise, also to cselib_subst_to_values.
11014         (add_stores): Likewise.
11015         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
11016         cselib_subst_to_values.
11017         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
11018         * gcse.c (do_local_cprop): Adjusted.
11019         * postreload.c (reload_cse_simplify_set): Adjusted.
11020         (reload_cse_simplify_operands): Adjusted.
11021         * sel-sched-dump (debug_mem_addr_value): Pass mode.
11022
11023 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
11024
11025         PR tree-optimization/45122
11026         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11027         unsafe assumptions when there's more than one loop exit.
11028
11029 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11030
11031         PR target/47272
11032         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11033         Document using vector double with the load/store builtins, and
11034         that the load/store builtins always use Altivec instructions.
11035
11036         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11037         to use altivec memory instructions, even on VSX.
11038         (vector_altivec_store_<mode>): Ditto.
11039
11040         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11041         function.
11042
11043         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11044         V2DF, V2DI support to load/store overloaded builtins.
11045
11046         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11047         altivec load/store builtins for V2DF/V2DI types.
11048
11049         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11050         set avoid indexed addresses on power6 if -maltivec.
11051         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11052         vector_altivec_load/vector_altivec_store builtins.
11053         (altivec_expand_st_builtin): Ditto.
11054         (altivec_expand_builtin): Add VSX memory builtins.
11055         (rs6000_init_builtins): Add V2DI types to internal types.
11056         (altivec_init_builtins): Add support for V2DF/V2DI altivec
11057         load/store builtins.
11058         (rs6000_address_for_altivec): Insure memory address is appropriate
11059         for Altivec.
11060
11061         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11062         vec_vsx_ld and vec_vsx_st.
11063         (vsx_store_<mode>): Ditto.
11064
11065         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11066         variables to hold long long types for VSX vector memory builtins.
11067         (RS6000_BTI_unsigned_long_long): Ditto.
11068         (long_long_integer_type_internal_node): Ditti.
11069         (long_long_unsigned_type_internal_node): Ditti.
11070
11071         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11072         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11073         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11074
11075         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11076         short cuts.
11077         (vec_vsx_st): Ditto.
11078
11079 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11080
11081         * config/pa/pa-hpux10.opt: New.
11082         * config/hpux11.opt (pthread): New Driver option.
11083         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11084         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11085
11086 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11087
11088         * config/ia64/vms.opt: New.
11089         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11090
11091 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11092
11093         PR target/47580
11094         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11095         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11096         generator functions.
11097         (vsx_floatuns<VSi><mode>2): Ditto.
11098         (vsx_fix_trunc<mode><VSi>2): Ditto.
11099         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11100
11101 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
11102
11103         * config/i386/djgpp.opt (posix): New Driver option.
11104
11105 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
11106
11107         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11108         Move to the unsupported targets list.
11109
11110 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
11111
11112         PR rtl-optimization/47525
11113         * df-scan.c: Update copyright years.
11114         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11115         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11116
11117 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11118
11119         * config/i386/sysv4.h (TARGET_VERSION): Remove.
11120         (SUBTARGET_RETURN_IN_MEMORY): Remove.
11121         (ASM_OUTPUT_ASCII): Remove.
11122         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11123
11124 2011-02-02  Jeff Law  <law@redhat.com>
11125
11126         PR middle-end/47543
11127         * reload.c (find_reloads_address): Handle reg+d address where both
11128         components are invalid by reloading the entire address.
11129
11130 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11131             Richard Guenther  <rguenther@suse.de>
11132
11133         PR tree-optimization/40979
11134         PR bootstrap/47044
11135         * passes.c (init_optimization_passes): After LIM call copy_prop
11136         and DCE to clean up.
11137         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11138
11139 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
11140
11141         PR tree-optimization/47576
11142         PR tree-optimization/47555
11143         * doc/invoke.texi (scev-max-expr-complexity): Documented.
11144         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11145         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11146         * tree-scalar-evolution.c (follow_ssa_edge): Use
11147         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11148
11149 2011-02-02  Richard Guenther  <rguenther@suse.de>
11150
11151         PR tree-optimization/47566
11152         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11153
11154 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11155
11156         PR debug/47106
11157         PR debug/47402
11158         * tree-inline.c (declare_return_variable): Remove unused caller
11159         variable.
11160
11161         PR debug/47106
11162         PR debug/47402
11163         * tree-flow-inline.h (clear_is_used, is_used_p): New.
11164         * cfgexpand.c (account_used_vars_for_block): Use them.
11165         * tree-nrv.c (tree_nrv): Likewise.
11166         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11167         (dump_scope_block): Likewise.
11168         (remove_unused_locals): Likewise.
11169
11170         PR debug/47106
11171         PR debug/47402
11172         * tree-inline.c (declare_return_variable): Add result decl to
11173         local decls only once.
11174         * gimple-low.c (record_vars_into): Mark newly-created variables
11175         as referenced.
11176
11177 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
11178
11179         PR debug/47498
11180         PR debug/47501
11181         PR debug/45136
11182         PR debug/45130
11183         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11184         debug insns.
11185         (no_real_insns_p, schedule_block, set_priorities): Drop special
11186         treatment of boundary debug insns.
11187         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11188         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11189         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11190         (BOUNDARY_DEBUG_INSN_P): Likewise.
11191         (SCHEDULE_DEBUG_INSN_P): Likewise.
11192         * sched-rgn.c (init_ready_list): Drop special treatment of
11193         boundary debug insns.
11194         * final.c (rest_of_clean_state): Clear notes' BB.
11195
11196 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11197
11198         * config/openbsd.opt (assert=): New Driver option.
11199
11200 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11201
11202         * config/i386/nto.opt: New.
11203         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11204
11205 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11206
11207         * config/i386/netware.opt: New.
11208         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11209
11210 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11211
11212         * config/interix.opt (posix): New Driver option.
11213
11214 2011-02-01  DJ Delorie  <dj@redhat.com>
11215
11216         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11217
11218         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11219         class for A0/A1.
11220
11221 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
11222
11223         PR tree-optimization/47561
11224         * toplev.c (process_options): Print the Graphite flags.  Add
11225         flag_loop_flatten to the list of options requiring Graphite.
11226
11227 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11228
11229         * config/i386/cygming.opt (posix): New Driver option.
11230
11231 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11232
11233         * config/arm/vxworks.opt: New.
11234         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11235
11236 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
11237
11238         * config/alpha/elf.opt: New.
11239         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11240         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11241
11242 2011-02-01  Richard Guenther  <rguenther@suse.de>
11243
11244         PR tree-optimization/47559
11245         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11246         store-motion on references that can throw.
11247
11248 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
11249
11250         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11251         * tree-pass.h (TDF_CSELIB): New macro.
11252         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11253         cselib_lookup): Check for it rather than for TDF_DETAILS.
11254
11255 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
11256
11257         PR driver/47547
11258         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11259         is HOST_BIT_BUCKET.
11260
11261         * opts.c (finish_options): Don't add x_aux_base_name if it is
11262         HOST_BIT_BUCKET.
11263
11264 2011-02-01  Richard Guenther  <rguenther@suse.de>
11265
11266         PR tree-optimization/47555
11267         Revert
11268         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
11269
11270         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11271
11272 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11273
11274         PR gcc/46692
11275         * config/lm32/t-lm32: Add multilib for all CPU options.
11276
11277 2011-02-01  Richard Guenther  <rguenther@suse.de>
11278
11279         PR tree-optimization/47541
11280         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11281         sure to have a field at offset zero.
11282
11283 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11284
11285         * config/arc/arc.opt (EB, EL): New Driver options.
11286
11287 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11288
11289         * config/alpha/osf5.opt: New.
11290         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11291
11292 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
11293
11294         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11295
11296 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
11297
11298         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11299         -floop-interchange.
11300         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11301         is an alias of -floop-interchange and that it requires the
11302         Graphite infrastructure.
11303         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11304         flag_loop_interchange based on the value of flag_tree_loop_linear.
11305
11306 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
11307             Richard Guenther  <rguenther@suse.de>
11308
11309         PR tree-optimization/47538
11310         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11311         type instead of r1type, except for comparisons.  For right
11312         shifts and comparisons punt if there are mismatches in
11313         sizetype vs. non-sizetype types.
11314
11315 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11316
11317         * doc/sourcebuild.texi (Effective-Target Keywords): Document
11318         avx_runtime.
11319
11320 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11321
11322         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11323         version number.
11324         * configure: Regenerate.
11325
11326 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11327
11328         * configure.ac (gcc_cv_ld_static_option): Define.
11329         (gcc_cv_ld_dynamic_option): Define.
11330         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11331         instead.
11332         (HAVE_LD_STATIC_DYNAMIC): Update message.
11333         (LD_STATIC_OPTION): Define.
11334         (LD_DYNAMIC_OPTION): Define.
11335         * configure: Regenerate.
11336         * config.in: Regenerate.
11337         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11338         HAVE_LD_STATIC_DYNAMIC]: Use them.
11339
11340 2011-01-31  Nick Clifton  <nickc@redhat.com>
11341
11342         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11343         registers inside interrupt handlers if the handler is not a leaf
11344         function.
11345
11346 2011-01-31  Nick Clifton  <nickc@redhat.com>
11347
11348         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11349         reg_renumber returning an INVALID_REGNUM.
11350
11351 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11352
11353         PR libgcj/44341
11354         * doc/install.texi: Document host options discarded when cross
11355         configuring target libraries.
11356
11357 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
11358
11359         Reverted:
11360         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11361         PR debug/45136
11362         PR debug/45130
11363         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11364         debug insns.
11365         (no_real_insns_p, schedule_block, set_priorities): Drop special
11366         treatment of boundary debug insns.
11367         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11368         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11369         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11370         (BOUNDARY_DEBUG_INSN_P): Likewise.
11371         (SCHEDULE_DEBUG_INSN_P): Likewise.
11372         * sched-rgn.c (init_ready_list): Drop special treatment of
11373         boundary debug insns.
11374         * final.c (rest_of_clean-state): Clear notes' BB.
11375
11376 2011-01-31  Alan Modra  <amodra@gmail.com>
11377
11378         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11379         toc relative expressions as we do in print_operand_address.
11380
11381 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
11382
11383         * doc/extend.texi: Follow spelling conventions.
11384         * doc/invoke.texi: Fix a typo.
11385
11386 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
11387
11388         * config/hpux11.opt: New.
11389         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11390         ia64*-*-hpux*): Use hpux11.opt.
11391
11392 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
11393
11394         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11395         to tmake_file.
11396
11397 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11398
11399         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11400         support sites.
11401
11402 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11403
11404         * doc/install.texi (Binaries): Remove outdated reference for
11405         Motorola 68HC11/68HC12 downloads.
11406
11407 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
11408
11409         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11410         Drepper's paper.
11411
11412 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
11413
11414         PR bootstrap/47147
11415         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11416         used by NetBSD.
11417
11418 2011-01-28  Ahmad Sharif  <asharif@google.com>
11419
11420         * value-prof.c (check_counter): Corrected error message.
11421
11422 2011-01-29  Jie Zhang  <jie@codesourcery.com>
11423
11424         * config/arm/arm.c (arm_legitimize_reload_address): New.
11425         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11426         arm_legitimize_reload_address.
11427         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11428
11429 2011-01-28  Ian Lance Taylor  <iant@google.com>
11430
11431         * godump.c (go_define): Ignore macros whose definitions include
11432         two adjacent operands.
11433
11434 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
11435
11436         PR target/42894
11437         * varasm.c (force_const_mem): Store copy of x in desc->constant
11438         instead of x itself.
11439         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11440         itself into REG_EQUAL note.
11441
11442 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
11443
11444         * config/freebsd.opt (posix, rdynamic): New Driver options.
11445
11446 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11447
11448         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11449         -Bstatic/-Bdynamic.
11450         * configure: Regenerate.
11451
11452 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
11453
11454         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11455         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11456
11457 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
11458
11459         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11460         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11461         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11462         (s390_preferred_reload_class): Make static. Change return and
11463         'rclass' argument type to reg_class_t.
11464
11465 2011-01-27  Jan Hubicka  <jh@suse.cz>
11466
11467         PR middle-end/46949
11468         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11469         (process_function_and_variable_attributes): Check defined weakrefs.
11470
11471 2011-01-27  Martin Jambor  <mjambor@suse.cz>
11472
11473         PR tree-optimization/47228
11474         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11475         build_ref_for_offset.
11476
11477 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11478
11479         * config/spu/spu-elf.h (ASM_SPEC): Remove.
11480
11481 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
11482
11483         PR rtl-optimization/46856
11484         * postreload.c (reload_combine_recognize_const_pattern): Do not
11485         separate cc0 setter and user on cc0 targets.
11486
11487 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
11488
11489         PR c/43082
11490         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11491         passed a VOID_TYPE expression, immediately emit an error and
11492         return error_mark_node.
11493
11494 2011-01-26  Jeff Law  <law@redhat.com>
11495
11496         PR rtl-optimization/47464
11497         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11498         rather than may_trap_p as needed.
11499
11500 2011-01-26  DJ Delorie  <dj@redhat.com>
11501
11502         PR rtl-optimization/46878
11503         * combine.c (insn_a_feeds_b): Check for the implicit cc0
11504         setter/user dependency as well.
11505
11506 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
11507
11508         PR rtl-optimization/44469
11509         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11510         after removing trivially dead basic blocks.
11511
11512 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11513
11514         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11515         * config/frv/frv.h (LINK_SPEC): Likewise.
11516         * config/i386/netware.h (LINK_SPEC): Likewise.
11517         * config/m68k/linux.h (ASM_SPEC): Likewise.
11518         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11519         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11520         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11521         * config/sparc/linux.h (ASM_SPEC): Likewise.
11522         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11523         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11524
11525 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11526
11527         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11528         * config/frv/frv.h (ASM_SPEC): Likewise.
11529         * config/m68k/linux.h (ASM_SPEC): Likewise.
11530         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11531         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11532         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11533         * config/sparc/linux.h (ASM_SPEC): Likewise.
11534         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11535         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11536
11537 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11538
11539         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11540         * config/frv/frv.h (LINK_SPEC): Likewise.
11541         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11542
11543 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
11544
11545         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11546         * config/frv/frv.h (ASM_SPEC): Likewise.
11547         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11548         * config/m68k/linux.h (ASM_SPEC): Likewise.
11549         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11550         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11551         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11552         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11553         * config/sparc/linux.h (ASM_SPEC): Likewise.
11554         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11555         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11556         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11557
11558 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
11559
11560         PR target/46997
11561         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11562         (*mux2): Ditto.
11563         (vec_extract_evenodd_help): Ditto.
11564         (vec_extract_evenv4hi): Ditto.
11565         (vec_extract_oddv4hi): Ditto.
11566         (vec_interleave_lowv2si): Ditto.
11567         (vec_interleave_highv2si): Ditto.
11568         (vec_extract_evenv2si): Ditto.
11569         (vec_extract_oddv2si: Ditto.
11570         (vec_pack_trunc_v2si): Ditto.
11571
11572 2011-01-22  Jan Hubicka  <jh@suse.cz>
11573
11574         PR target/47237
11575         * cgraph.h (cgraph_local_info): New field can_change_signature.
11576         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11577         signature can change.
11578         (ipcp_estimate_growth): Call sequence simplify only if calle signature
11579         can change.
11580         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11581         (cgraph_function_versioning): We can not change signature of functions
11582         that don't allow that.
11583         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11584         (lto_input_node): Likewise.
11585         * ipa-inline.c (compute_inline_parameters): Compute
11586         local.can_change_signature.
11587         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11588         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11589         functions that can not change signature.
11590         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11591         init_cumulative_args): Do not use local calling conventions
11592         for functions that can not change signature.
11593
11594 2011-01-22  Jan Hubicka  <jh@suse.cz>
11595
11596         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11597
11598 2011-01-26  Richard Guenther  <rguenther@suse.de>
11599
11600         PR tree-optimization/47190
11601         * cgraphunit.c (process_common_attributes): New function.
11602         (process_function_and_variable_attributes): Use it.
11603
11604 2011-01-26  Richard Guenther  <rguenther@suse.de>
11605
11606         PR lto/47423
11607         * cgraphbuild.c (record_eh_tables): Record reference to personality
11608         function.
11609
11610 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
11611
11612         PR debug/45454
11613         * sel-sched.c (moveup_expr): Don't let debug insns prevent
11614         non-debug insns from moving up.
11615
11616 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11617
11618         PR target/40125
11619         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11620         t-dlldir{,-x} fragment for build and add it to tmake_file.
11621         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11622         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11623         * config/i386/t-dlldir: New file.
11624         (SHLIB_DLLDIR): Define.
11625         * config/i386/t-dlldir-x: New file.
11626         (SHLIB_DLLDIR): Define.
11627         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11628         (SHLIB_INSTALL): Use it.
11629
11630 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
11631
11632         PR target/47246
11633         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11634         lower bound of the allowed Thumb-2 coprocessor load/store
11635         index range to -256. Add explaining comment.
11636
11637 2011-01-25  Ian Lance Taylor  <iant@google.com>
11638
11639         * godump.c (go_define): Improve lexing of macro expansion to only
11640         accept expressions which match Go spec.
11641
11642 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
11643
11644         PR c++/43601
11645         * tree.c (handle_dll_attribute): Handle it.
11646         * doc/extend.texi (@item dllexport): Mention it.
11647         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11648
11649 2011-01-25  Ian Lance Taylor  <iant@google.com>
11650
11651         PR tree-optimization/26854
11652         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11653         (decl_jump_unsafe): Move higher in file, with no other change.
11654         (bind): Set has_jump_unsafe_decl if appropriate.
11655         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11656         (check_earlier_gotos): Likewise.
11657         (c_check_switch_jump_warnings): Likewise.
11658
11659 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
11660
11661         * doc/invoke.texi (Warning Options): Add missing hyphen.
11662         (-fprofile-dir): Minor grammatical fixes.
11663         (-fbranch-probabilities): Likewise.
11664
11665 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
11666
11667         PR debug/45136
11668         PR debug/45130
11669         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11670         debug insns.
11671         (no_real_insns_p, schedule_block, set_priorities): Drop special
11672         treatment of boundary debug insns.
11673         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11674         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11675         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11676         (BOUNDARY_DEBUG_INSN_P): Likewise.
11677         (SCHEDULE_DEBUG_INSN_P): Likewise.
11678         * sched-rgn.c (init_ready_list): Drop special treatment of
11679         boundary debug insns.
11680         * final.c (rest_of_clean-state): Clear notes' BB.
11681
11682 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11683
11684         * Makefile.in (LAMBDA_H): Removed.
11685         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11686         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11687         lambda-trans.o, and tree-loop-linear.o.
11688         (lto-symtab.o): Remove dependence on LAMBDA_H.
11689         (tree-loop-linear.o): Remove rule.
11690         (lambda-mat.o): Same.
11691         (lambda-trans.o): Same.
11692         (lambda-code.o): Same.
11693         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11694         (tree-vect-slp.o): Same.
11695         * hwint.h (gcd): Moved here.
11696         (least_common_multiple): Same.
11697         * lambda-code.c: Removed.
11698         * lambda-mat.c: Removed.
11699         * lambda-trans.c: Removed.
11700         * lambda.h: Removed.
11701         * tree-loop-linear.c: Removed.
11702         * lto-symtab.c: Do not include lambda.h.
11703         * omega.c (gcd): Removed.
11704         * passes.c (init_optimization_passes): Remove pass_linear_transform.
11705         * tree-data-ref.c (print_lambda_vector): Moved here.
11706         (lambda_vector_copy): Same.
11707         (lambda_matrix_copy): Same.
11708         (lambda_matrix_id): Same.
11709         (lambda_vector_first_nz): Same.
11710         (lambda_matrix_row_add): Same.
11711         (lambda_matrix_row_exchange): Same.
11712         (lambda_vector_mult_const): Same.
11713         (lambda_vector_negate): Same.
11714         (lambda_matrix_row_negate): Same.
11715         (lambda_vector_equal): Same.
11716         (lambda_matrix_right_hermite): Same.
11717         * tree-data-ref.h: Do not include lambda.h.
11718         (lambda_vector): Moved here.
11719         (lambda_matrix): Same.
11720         (dependence_level): Same.
11721         (lambda_transform_legal_p): Removed declaration.
11722         (lambda_collect_parameters): Same.
11723         (lambda_compute_access_matrices): Same.
11724         (lambda_vector_gcd): Same.
11725         (lambda_vector_new): Same.
11726         (lambda_vector_clear): Same.
11727         (lambda_vector_lexico_pos): Same.
11728         (lambda_vector_zerop): Same.
11729         (lambda_matrix_new): Same.
11730         * tree-flow.h (least_common_multiple): Removed declaration.
11731         * tree-parloops.c (lambda_trans_matrix): Moved here.
11732         (LTM_MATRIX): Same.
11733         (LTM_ROWSIZE): Same.
11734         (LTM_COLSIZE): Same.
11735         (LTM_DENOMINATOR): Same.
11736         (lambda_trans_matrix_new): Same.
11737         (lambda_matrix_vector_mult): Same.
11738         (lambda_transform_legal_p): Same.
11739         * tree-pass.h (pass_linear_transform): Removed declaration.
11740         * tree-ssa-loop.c (tree_linear_transform): Removed.
11741         (gate_tree_linear_transform): Removed.
11742         (pass_linear_transform): Removed.
11743         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11744         flag_loop_interchange.
11745
11746 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11747
11748         PR tree-optimization/47265
11749         PR tree-optimization/47443
11750         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11751         if name still has some uses.
11752
11753 2011-01-25  Martin Jambor  <mjambor@suse.cz>
11754
11755         PR tree-optimization/47382
11756         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11757         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11758
11759 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
11760
11761         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11762         sjlj_except_unwind_info.
11763
11764 2011-01-25  Richard Guenther  <rguenther@suse.de>
11765
11766         PR tree-optimization/47426
11767         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11768         visible functions results escape.
11769
11770 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11771
11772         PR target/45701
11773         * config/arm/arm.c (any_sibcall_uses_r3): New function.
11774         (arm_get_frame_offsets): Use it.
11775
11776 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11777             Jakub Jelinek  <jakub@redhat.com>
11778
11779         PR tree-optimization/47271
11780         * tree-if-conv.c (bb_postdominates_preds): New.
11781         (if_convertible_bb_p): Call bb_postdominates_preds.
11782         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11783         (predicate_scalar_phi): Call bb_postdominates_preds.
11784
11785 2011-01-25  Nick Clifton  <nickc@redhat.com>
11786
11787         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11788         * config/rx/rx.c (rx_function_value): Likewise.
11789         (rx_promote_function_mode): Likewise.
11790         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11791         in order to make it legitimate.
11792         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11793         make sure that the first operand is the same as the result register.
11794         (addsi3_unspec): Delete.
11795         (subdi3): Do not accept immediate operands.
11796         (subdi3_internal): Likewise.
11797
11798 2011-01-25  Jeff Law  <law@redhat.com>
11799
11800         PR rtl-optimization/37273
11801         * ira-costs.c (scan_one_insn): Detect constants living in memory and
11802         handle them like argument loads from stack slots.  Do not double
11803         count memory for memory constants and argument loads from stack slots.
11804
11805 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
11806
11807         PR tree-optimization/47427
11808         PR tree-optimization/47428
11809         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11810         coalesce if the new root var would be TREE_READONLY.
11811
11812 2011-01-25  Richard Guenther  <rguenther@suse.de>
11813
11814         PR middle-end/47414
11815         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
11816         correct type for TBAA.
11817
11818 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11819
11820         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
11821         (close_phi_written_to_memory): Call for_each_index with
11822         dr_indices_valid_in_loop.
11823
11824 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11825
11826         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
11827         when it is initialized.
11828
11829 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11830
11831         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
11832         call to graphite_find_data_references_in_stmt.
11833         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
11834         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
11835         call to graphite_find_data_references_in_stmt.
11836         (analyze_drs_in_stmts): Same.
11837         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
11838         in which the scalar analysis of indices is performed.
11839         (create_data_ref): Same.  Update call to dr_analyze_indices.
11840         (find_data_references_in_stmt): Update call to create_data_ref.
11841         (graphite_find_data_references_in_stmt): Same.
11842         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
11843         declaration.
11844         (create_data_ref): Same.
11845         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
11846         call to create_data_ref.
11847
11848 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11849
11850         * graphite-sese-to-poly.c (build_poly_scop): Move
11851         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
11852
11853 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11854
11855         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
11856         VAR_DECL, PARM_DECL, and RESULT_DECL.
11857
11858 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11859
11860         * graphite-dependences.c (reduction_dr_1): Allow several reductions
11861         in a reduction PBB.
11862         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
11863         that have already been marked as PBB_IS_REDUCTION.
11864
11865 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11866
11867         * graphite-scop-detection.c (same_close_phi_node): New.
11868         (remove_duplicate_close_phi): New.
11869         (make_close_phi_nodes_unique): New.
11870         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
11871
11872 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11873
11874         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
11875         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
11876         of both data references to be the same.
11877
11878 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11879
11880         * graphite-dependences.c (build_lexicographical_constraint): Remove
11881         the gdim parameter.
11882         (build_lexicographical_constraint): Adjust call to
11883         ppl_powerset_is_empty.
11884         (dependence_polyhedron): Same.
11885         (graphite_legal_transform_dr): Same.
11886         (graphite_carried_dependence_level_k): Same.
11887         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
11888         parameter.
11889         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
11890
11891 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11892
11893         * graphite-sese-to-poly.c
11894         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
11895         (close_phi_written_to_memory): New.
11896         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
11897         and unshare_expr.
11898
11899 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11900
11901         * doc/install.texi: Update the expected version number of PPL to 0.11.
11902         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
11903         #if PPL_VERSION_MINOR < 11.
11904
11905 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11906
11907         * graphite-dependences.c: Include graphite-cloog-util.h.
11908         (new_poly_ddr): Inlined into dependence_polyhedron.
11909         (free_poly_ddr): Moved close by new_poly_ddr.
11910         (dependence_polyhedron_1): Renamed dependence_polyhedron.
11911         Early return NULL when ppl_powerset_is_empty returns true.
11912         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
11913         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
11914         (graphite_legal_transform_dr): Call new_poly_ddr.
11915         (graphite_carried_dependence_level_k): Same.
11916         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
11917         (dot_transformed_deps_stmt_1): Removed.
11918         (dot_deps_stmt_1): Call dot_deps_stmt_2.
11919         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
11920         (dot_deps_1): Call dot_deps_2.
11921         * Makefile.in (graphite-dependences.o): Add missing dependence on
11922         graphite-cloog-util.h.
11923
11924 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11925
11926         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
11927         (build_lexicographical_constraint): Same.
11928         (dependence_polyhedron_1): Same.
11929         (graphite_legal_transform_dr): Same.
11930         (graphite_carried_dependence_level_k): Same.
11931         * graphite-ppl.c (ppl_powerset_is_empty): New.
11932         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
11933         * tree-data-ref.c (dump_data_reference): Print the basic block index.
11934
11935 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11936
11937         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
11938         the "a followed by b" relation and document it.
11939
11940 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11941
11942         * graphite-dependences.c (build_lexicographical_constraint): Stop the
11943         iteration when the bag of constraints is empty.
11944
11945 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11946
11947         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
11948
11949 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11950
11951         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
11952         nest and two loop depths as parameters.
11953         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
11954         lst_perfect_nestify.
11955
11956 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11957
11958         * graphite-dependences.c (print_pddr): Call
11959         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
11960
11961 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
11962
11963         * graphite-ppl.c (debug_gmp_value): New.
11964         * graphite-ppl.h (debug_gmp_value): Declared.
11965
11966 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
11967
11968         * doc/install.texi: Document availability of cloog-0.16.
11969
11970 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
11971
11972         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
11973         invalid postdominance info.
11974
11975 2011-01-24  Jan Hubicka  <jh@suse.cz>
11976
11977         PR c/21659
11978         * doc/extend.texi (weak pragma): Drop claim that it must
11979         appear before definition.
11980         * varasm.c (merge_weak, declare_weak): Only sanity check
11981         that DECL is not output at a time it is declared weak.
11982
11983 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
11984
11985         * machmode.def: Fixed comments.
11986
11987 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
11988
11989         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
11990
11991 2011-01-24  Paul Koning  <ni1d@arrl.net>
11992
11993         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
11994         WORDS_BIG_ENDIAN.
11995
11996 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
11997
11998         PR target/46519
11999         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12000         (block_info): Add scanned and prev.
12001         (move_or_delete_vzeroupper_2): Return if the basic block
12002         has been scanned and the upper 128bit state is unchanged
12003         from the last scan.
12004         (move_or_delete_vzeroupper_1): Return true if the exit
12005         state is changed.
12006         (move_or_delete_vzeroupper): Visit basic blocks using the
12007         work-list based algorithm based on vt_find_locations in
12008         var-tracking.c.
12009
12010         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12011
12012 2011-01-24  Nick Clifton  <nickc@redhat.com>
12013
12014         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12015         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12016         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
12017         then define __v850e1__.
12018         * doc/invoke.texi: Document -mv850es.
12019
12020 2011-01-24  Richard Henderson  <rth@redhat.com>
12021
12022         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12023         compound unordered comparisons.
12024         * config/rx/rx.c (rx_split_fp_compare): Remove.
12025         * config/rx/rx-protos.h: Update.
12026         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12027         (cbranchsf4): Don't call rx_split_fp_compare.
12028         (*cbranchsf4): Use rx_split_cbranch.
12029         (*cmpsf): Don't accept "i" constraint.
12030         (*conditional_branch): Only valid after reload.
12031         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
12032
12033 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12034
12035         PR target/47385
12036         * config/rs6000/altivec.md (vector constant splitters): Add
12037         support for creating vector single precision constants if -mvsx is
12038         used and we would create the constant using Altivec primitives.
12039
12040 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
12041             Richard Sandiford  <rdsandiford@googlemail.com>
12042
12043         PR rtl-optimization/47166
12044         * reload1.c (emit_reload_insns): Disable the spill_reg_store
12045         mechanism for PRE_MODIFY and POST_MODIFY.
12046         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12047         reloadreg.
12048
12049 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
12050
12051         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12052
12053 2011-01-22  Jan Hubicka  <jh@suse.cz>
12054
12055         PR lto/47333
12056         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12057
12058 2011-01-22  Jan Hubicka  <jh@suse.cz>
12059
12060         PR tree-optimization/43884
12061         PR lto/44334
12062         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12063         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12064
12065 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
12066
12067         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12068         * config/s390/s390.c (s390_register_move_cost,
12069         s390_memory_move_cost): New.
12070         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12071
12072 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12073
12074         PR middle-end/47401
12075         * except.c (sjlj_assign_call_site_values): Move setting the
12076         crtl->uses_eh_lsda flag to ...
12077         (sjlj_mark_call_sites): ... here.
12078         (sjlj_emit_function_enter): Support NULL dispatch label.
12079         (sjlj_build_landing_pads): In a function with no landing pads
12080         that still has must-not-throw regions, generate code to register
12081         a personality function with empty LSDA.
12082
12083 2011-01-21  Richard Henderson  <rth@redhat.com>
12084
12085         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12086
12087         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12088
12089         * compare-elim.c: New file.
12090         * Makefile.in (OBJS-common): Add it.
12091         (compare-elim.o): New.
12092         * common.opt (fcompare-elim): New.
12093         * opts.c (default_options_table): Add OPT_fcompare_elim.
12094         * tree-pass.h (pass_compare_elim_after_reload): New.
12095         * passes.c (init_optimization_passes): Add it.
12096         * recog.h: Protect against re-inclusion.
12097         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12098         * doc/invoke.texi (-fcompare-elim): Document it.
12099         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12100         * doc/tm.texi: Rebuild.
12101
12102 2011-01-22  Nick Clifton  <nickc@redhat.com>
12103
12104         * config/rx/rx.md (cstoresf4): Pass comparison operator to
12105         rx_split_fp_compare.
12106
12107 2011-01-22  Nick Clifton  <nickc@redhat.com>
12108
12109         * config/rx/rx.md (UNSPEC_CONST): New.
12110         (deallocate_and_return): Wrap the amount popped off the stack in
12111         an UNSPEC_CONST in order to stop it being rejected by
12112         -mmax-constant-size.
12113         (pop_and_return): Add a "(return)" rtx.
12114         (call): Drop the immediate operand.
12115         (call_internal): Likewise.
12116         (call_value): Likewise.
12117         (call_value_internal): Likewise.
12118         (sibcall_internal): Likewise.
12119         (sibcall_value_internal): Likewise.
12120         (sibcall): Likewise.  Generate an explicit call using
12121         sibcall_internal.
12122         (sibcall_value): Likewise.
12123         (mov<>): FAIL if a constant operand is not legitimate.
12124         (addsi3_unpsec): New pattern.
12125
12126         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12127         (ok_for_max_constant): New function.
12128         (gen_safe_add): New function.
12129         (rx_expand_prologue): Use gen_safe_add.
12130         (rx_expand_epilogue): Likewise.
12131         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
12132         UNSPEC CONSTs.
12133
12134 2011-01-21  Jeff Law  <law@redhat.com>
12135
12136         PR tree-optimization/47053
12137         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12138         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12139         statements are deleted.
12140         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
12141         is nonempty, then purge dead edges and cleanup the CFG.
12142
12143 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12144
12145         PR debug/47402
12146         Temporarily revert:
12147         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12148         PR debug/47106
12149         * tree-dfa.c (create_var_ann): Mark variable as used.
12150
12151 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12152
12153         PR middle-end/45566
12154         * except.c (convert_to_eh_region_ranges): Emit queued no-region
12155         notes from other section in hot/cold partitioning even if
12156         last_action is -3.  Increment call_site_base.
12157
12158         PR rtl-optimization/47366
12159         * fwprop.c (forward_propagate_into): Return bool.  If
12160         any changes are made, -fnon-call-exceptions is used and
12161         REG_EH_REGION note is present, call purge_dead_edges
12162         and return true if it purged anything.
12163         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12164         any EH edges were purged.
12165
12166 2011-01-21  Jeff Law  <law@redhat.com>
12167
12168         PR rtl-optimization/41619
12169         * caller-save.c (setup_save_areas): Break out code to determine
12170         which hard regs are live across calls by examining the reload chains
12171         so that it is always used.
12172         Eliminate code which checked REG_N_CALLS_CROSSED.
12173
12174 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12175
12176         PR tree-optimization/47355
12177         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12178         NOP has non-debug uses beyond PHIs in new_bb.
12179
12180 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
12181
12182         PR debug/47106
12183         * cfgexpand.c (account_used_vars_for_block): Only account vars
12184         that are annotated as used.
12185         (estimated_stack_frame_size): Don't set TREE_USED.
12186         * tree-dfa.c (create_var_ann): Mark variable as used.
12187
12188 2011-01-21  Richard Guenther  <rguenther@suse.de>
12189
12190         PR middle-end/47395
12191         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12192
12193 2011-01-21  Richard Guenther  <rguenther@suse.de>
12194
12195         PR tree-optimization/47365
12196         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12197         (vn_reference_lookup_pieces): Adjust.
12198         (vn_reference_lookup): Likewise.
12199         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12200         (vn_reference_lookup_3): Only look through kills if in
12201         VN_WALKREWRITE mode.
12202         (vn_reference_lookup_pieces): Adjust.
12203         (vn_reference_lookup): Likewise.
12204         (visit_reference_op_load): Likewise.
12205         (visit_reference_op_store): Likewise.
12206         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12207         (compute_avail): Likewise.
12208         (eliminate): Likewise.
12209
12210 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
12211
12212         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12213         DECL_IGNORED_P non-reg vars if they are used.
12214
12215         PR tree-optimization/47391
12216         * varpool.c (const_value_known_p): Return false if
12217         decl is volatile.
12218
12219 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
12220
12221         PR bootstrap/47215
12222         * config/i386/i386.c (ix86_local_alignment): Handle
12223         case for va_list_type_node is nil.
12224         (ix86_canonical_va_list_type): Likewise.
12225
12226 2011-01-21  Alan Modra  <amodra@gmail.com>
12227
12228         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12229         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12230
12231 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12232
12233         * config/arm/arm.md (define_attr type): Rename f_load
12234         and f_store to f_fpa_load and f_fpa_store. Update.
12235         (write_conflict): Deal with rename fallout.
12236         (*push_fp_multi): Likewise.
12237         * config/arm/fpa.md (f_load): Use f_fpa_load.
12238         (f_store): Use f_fpa_store.
12239         (*movsf_fpa): Likewise.
12240         (*movdf_fpa): Likewise.
12241         (*movxf_fpa): Likewise.
12242         (*thumb2_movsf_fpa): Likewise.
12243         (*thumb2_movdf_fpa): Likewise.
12244         (*thumb2_movxf_fpa): Likewise.
12245         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12246         f_loadd and f_stored.
12247         (*thumb2_movdi_vfp): Likewise.
12248         (*thumb2_movsf_vfp): Fix attribute to f_loads.
12249         (*thumb2_movsi_vfp): Likewise.
12250         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12251         Use f_loads instead of f_load.
12252         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12253
12254 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
12255
12256         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12257         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12258         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12259         (xtensa_mode_dependent_address_p): New function.
12260         (constantpool_address_p): Make static. Change return type to bool.
12261         Change argument type to const_rtx. Use CONST_INT_P predicate.
12262
12263 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
12264
12265         PR debug/46583
12266         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12267
12268 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12269
12270         PR debug/47283
12271         * cfgexpand.c (expand_debug_expr): Instead of generating
12272         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12273         etc. handling.
12274
12275 2011-01-20  Richard Guenther  <rguenther@suse.de>
12276
12277         PR middle-end/47370
12278         * tree-inline.c (remap_gimple_op_r): Recurse manually for
12279         the pointer operand of MEM_REFs.
12280
12281 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
12282
12283         PR tree-optimization/46130
12284         * ipa-split.c (consider_split): If return_bb contains non-virtual
12285         PHIs other than for retval or if split_function would not adjust it,
12286         refuse to split.
12287
12288 2011-01-20  Richard Guenther  <rguenther@suse.de>
12289
12290         PR tree-optimization/47167
12291         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12292         Revert previous change, only avoid enumeral type changes.
12293
12294 2011-01-19  Mike Stump  <mikestump@comcast.net>
12295
12296         * doc/tm.texi.in (BRANCH_COST): Englishify.
12297         * doc/tm.texi (BRANCH_COST): Likewise.
12298
12299 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
12300
12301         PR c++/47291
12302         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12303         (gen_scheduled_generic_parms_dies): New functions.
12304         (gen_struct_or_union_type_die): Schedule template parameters DIEs
12305         generation for the end of CU compilation.
12306         (dwarf2out_finish): Generate template parameters DIEs here.
12307
12308 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12309
12310         PR debug/46240
12311         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12312         debug bind stmt on merge edges.
12313
12314 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12315
12316         PR debug/47079
12317         PR debug/46724
12318         * function.c (instantiate_expr): Instantiate incoming rtl of
12319         implicit arguments, and recurse on VALUE_EXPRs.
12320         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12321         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12322
12323 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
12324
12325         * c-parser.c (c_parser_for_statement): Initialize
12326         collection_expression.
12327
12328 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12329
12330         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12331
12332 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12333
12334         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12335         (LINK_SHLIB_SPEC): Don't use %(link_path).
12336         (SUBTARGET_EXTRA_SPECS): Remove link_path.
12337
12338 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12339
12340         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12341         (NO_SHARED_LIB_SUPPORT): Remove.
12342         (LINK_SHLIB_SPEC): Remove one conditional definition.
12343
12344 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
12345
12346         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12347         %{call_shared}.
12348         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12349         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12350         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12351         %{call_shared} and conditionals on these options not being passed.
12352         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12353         %{call_shared}.
12354
12355 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12356
12357         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12358         simplify.
12359
12360         * ipa-split.c: Spelling fixes.
12361
12362 2011-01-19  Richard Henderson  <rth@redhat.com>
12363
12364         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12365         (*mulsi3): Likewise.
12366
12367         * longlong.h [__mn10300__] (count_leading_zeros): New.
12368         [__mn10300__] (umul_ppmm, smul_ppmm): New.
12369         [__mn10300__] (add_ssaaaa, subddmmss): New.
12370         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12371         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12372
12373 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12374
12375         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12376
12377 2011-01-19  Richard Henderson  <rth@redhat.com>
12378
12379         * config/mn10300/mn10300.md (addsi3_flags): New.
12380         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12381         (subsi3_flags, subc_internal, subdi3): New.
12382         (subdi3_internal, *subdi3_degenerate): New.
12383         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12384
12385         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12386         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12387         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
12388         * config/mn10300/mn10300-protos.h: Update.
12389         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12390         (return_ret): Likewise.  Rename from return_internal_regs.
12391         (return_internal): Remove.
12392
12393         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12394         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12395         (mn10300_legitimate_constant_p): Likewise.
12396         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12397         (mn10300_frame_size): New.
12398         (mn10300_expand_prologue): Use it.
12399         (mn10300_expand_epilogue): Likewise.
12400         (mn10300_initial_offset): Likewise.
12401         * config/mn10300/mn10300-protos.h: Update.
12402         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12403         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12404         (prologue, epilogue, return_internal): Tidy output code.
12405         (mn10300_store_multiple_operation, return): Likewise.
12406         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12407         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12408         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12409         (load_pic, am33_load_pic): New.
12410         (mn10300_load_pic0, mn10300_load_pic1): New.
12411
12412         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12413         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12414         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12415         (cc_flags_for_mode, cc_flags_for_code): New.
12416         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12417         overflow flag is not valid.  Validate that the flags we need
12418         for the comparison are valid.
12419         (mn10300_output_cmp): Remove.
12420         (mn10300_output_add): New.
12421         (mn10300_select_cc_mode): Use cc_flags_for_code.
12422         (mn10300_split_cbranch): New.
12423         (mn10300_match_ccmode): New.
12424         (mn10300_split_and_operand_count): New.
12425         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12426         to the function.
12427         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12428         (addsi3): ... here.  Use mn10300_output_add.
12429         (*addsi3_flags): New.
12430         (*am33_subsi3, *mn10300_subsi3): Merge...
12431         (subsi3): ... here.  Use attribute isa.
12432         (*subsi3_flags): New.
12433         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
12434         when possible.
12435         (*am33_andsi3, *mn10300_andsi3): Merge...
12436         (andsi3): ... here.
12437         (*andsi3_flags): New.
12438         (andsi3 splitters): New.
12439         (*am33_iorsi3, *mn10300_iorsi3): Merge...
12440         (iorsi3): ... here.
12441         (*iorsi3_flags): New.
12442         (*am33_xorsi3, *mn10300_xorsi3): Merge...
12443         (xorsi3): ... here.
12444         (*xorsi3_flags): New.
12445         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12446         (one_cmplsi2): ... here.
12447         (*one_cmplsi2_flags): New.
12448         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
12449         instead of "dax" in constraints.  Use mn10300_split_cbranch.
12450         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
12451         use matching constraints to eliminate a self-comparison.
12452         (*integer_conditional_branch): Rename from integer_conditional_branch.
12453         Use int_mode_flags to match CC_REG.
12454         (*cbranchsi4_btst, *btstsi): New.
12455         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
12456         mn10300_split_cbranch.
12457         (*am33_cmpsf): Rename from am33_cmpsf.
12458         (*float_conditional_branch): Rename from float_conditional_branch.
12459         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12460         (zero_extendqisi2): ... here.
12461         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12462         (zero_extendhisi2): ... here.
12463         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12464         (extendqisi2): ... here.
12465         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12466         (extendhisi2): ... here.
12467         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12468         (ashlsi3): ... here.
12469         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12470         (lshrsi3): ... here.
12471         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12472         (ashrsi3): ... here.
12473         (consecutive add peephole): Remove.
12474         * config/mn10300/predicates.md (label_ref_operand): New.
12475         (int_mode_flags): New.
12476         (CCZN_comparison_operator): New.
12477
12478         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12479         (throughput_42_latency_43): New reservation.
12480         (mulsidi3, umulsidi3): New expanders.
12481         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
12482         the MDR register to allocation; separately allocate the low and
12483         high parts of the DImode result.
12484         (umulsidi3_internal): Similarly.
12485         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12486         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
12487         (udivsi3, umodsi3): Remove.
12488         (udivmodsi4, divmodsi4): New expanders.
12489         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
12490         (*divmodsi4): Simiarly.
12491         (ext_internal): New.
12492
12493         * config/mn10300/constraints.md ("z"): New constraint.
12494         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12495         (FIXED_REGISTERS): Don't fix MDR.
12496         (CALL_USED_REGSITERS): Reformat nicely.
12497         (REG_ALLOC_ORDER): Add MDR.
12498         (enum regclass): Add MDR_REGS.
12499         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12500         (IRA_COVER_CLASSES): Add MDR_REGS.
12501         (REGNO_REG_CLASS): Handle MDR_REG.
12502         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12503         (mn10300_register_move_cost): Likewise.
12504         * config/mn10300/mn10300.md (MDR_REG): New.
12505         (*movsi_internal): Handle moves to/from MDR_REGS.
12506
12507         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12508         POST_MODIFY.
12509         (mn10300_secondary_reload): Tidy combination reload classes.
12510         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12511         addresses for AM33.  Allow symbolic offsets for reg+imm.
12512         (mn10300_regno_in_class_p): New.
12513         (mn10300_legitimize_reload_address): New.
12514         * config/mn10300/mn10300.h (enum reg_class): Remove
12515         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12516         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
12517         SP_OR_GENERAL_REGS.
12518         (REG_CLASS_NAMES): Update to match.
12519         (REG_CLASS_CONTENTS): Likewise.
12520         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12521         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12522         (REGNO_IN_RANGE_P): Remove.
12523         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12524         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12525         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12526         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12527         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12528         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12529         (REGNO_GENERAL_P): New.
12530         (HAVE_POST_MODIFY_DISP): New.
12531         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12532         (LEGITIMIZE_RELOAD_ADDRESS): New.
12533         * config/mn10300/mn10300-protos.h: Update.
12534
12535         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12536         DATA_REGS for AM33 stack-pointer destination.
12537         (mn10300_preferred_output_reload_class): Likewise.
12538         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12539         into a form appropriate for ...
12540         (TARGET_SECONDARY_RELOAD): New.
12541         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12542         * config/mn10300/mn10300-protos.h: Update.
12543         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12544         reload_insi; use the "A" constraint for the scratch; handle AM33
12545         moves of sp to non-address registers.
12546
12547         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12548         (*movqi_internal): ... here.
12549         (*am33_movhi, *mn10300_movhi): Merge into...
12550         (*movhi_internal): ... here.
12551         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
12552         as the source/destination of moves from/to SP.
12553         (movsf): Only allow for AM33-2.
12554         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12555         any integer constant constraint.  Only allow for AM33-2.  Tidy
12556         all of the alternative outputs.
12557         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12558         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
12559         for MN103.
12560         (udivsi3, umodsi3): New patterns for MN103 only.
12561
12562 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
12563
12564         * doc/tm.texi.in: Spell out that a lack of register class unions
12565         can lead to ICEs.
12566         * doc/tm.texi: Regenerate.
12567
12568 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
12569
12570         PR rtl-optimization/47337
12571         * dce.c (check_argument_store): New function.
12572         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
12573
12574         PR tree-optimization/47290
12575         * tree-eh.c (infinite_empty_loop_p): New function.
12576         (cleanup_empty_eh): Use it.
12577
12578 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
12579
12580         PR target/46997
12581         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12582         (a64_expand_widen_sum): Ditto.
12583         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12584         (vec_extract_evenodd_help): Ditto.
12585         (vec_extract_evenv4hi): Ditto.
12586         (vec_extract_oddv4hi): Ditto.
12587         (vec_extract_evenv2si): Ditto.
12588         (vec_extract_oddv2si): Ditto.
12589         (vec_extract_evenv2sf): Ditto.
12590         (vec_extract_oddv2sf): Ditto.
12591         (vec_pack_trunc_v4hi: Ditto.
12592         (vec_pack_trunc_v2si): Ditto.
12593         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12594         (vec_interleave_highv8qi): Ditto.
12595         (mix1_r): Ditto.
12596         (vec_extract_oddv8qi): Ditto.
12597         (vec_interleave_lowv4hi): Ditto.
12598         (vec_interleave_highv4hi): Ditto.
12599         (vec_interleave_lowv2si): Ditto.
12600         (vec_interleave_highv2si): Ditto.
12601
12602 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12603
12604         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12605         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12606         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
12607         (pa_c_mode_for_suffix): New.
12608         (TARGET_EXPAND_BUILTIN): Define.
12609         (TARGET_C_MODE_FOR_SUFFIX): Define.
12610         (pa_builtins): Define.
12611         (pa_init_builtins): Register __float128 type and init new support
12612         builtins.
12613         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12614         * config/pa/quadlib.c (_U_Qfcopysign): New.
12615
12616 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
12617
12618         PR middle-end/46894
12619         * explow.c (allocate_dynamic_stack_space): Do not assume more than
12620         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12621         are defined.
12622
12623 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12624
12625         PR tree-optimization/47179
12626         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12627         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12628
12629 2011-01-18  Richard Guenther  <rguenther@suse.de>
12630
12631         PR rtl-optimization/47216
12632         * emit-rtl.c: Include tree-flow.h.
12633         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12634         of replicating it with different semantics.
12635         * Makefile.in (emit-rtl.o): Adjust.
12636
12637 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12638
12639         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12640         (cortex_a9_dp): Handle neon types correctly.
12641
12642 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
12643
12644         PR rtl-optimization/47299
12645         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12646         subtarget.  Use normal multiplication if both operands are constants.
12647         * expmed.c (expand_widening_mult): Don't try to optimize constant
12648         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
12649         before using it.
12650
12651 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12652
12653         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
12654         spacing after 'e.g.', typos, comma, hyphenation.
12655
12656 2011-01-17  Richard Henderson  <rth@redhat.com>
12657
12658         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12659         (rx_restricted_mem_operand): New.
12660         (rx_shift_operand): Use register_operand.
12661         (rx_source_operand, rx_compare_operand): Likewise.
12662         * config/rx/rx.md (addsi3_flags): New expander.
12663         (adddi3): Rewrite as expander.
12664         (adc_internal, *adc_flags, adddi3_internal): New patterns.
12665         (subsi3_flags): New expander.
12666         (subdi3): Rewrite as expander.
12667         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12668
12669         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12670         (rx_init_builtins): Remove sat builtin.
12671         (rx_expand_builtin): Likewise.
12672         * config/rx/rx.md (ssaddsi3): New.
12673         (*sat): Rename from sat.  Represent the CC_REG input.
12674
12675         * config/rx/predicates.md (rshift_operator): New.
12676         * config/rx/rx.c (rx_expand_insv): Remove.
12677         * config/rx/rx-protos.h: Update.
12678         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
12679         operand to the canonical position.
12680         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12681         (*bitclr, *bitclr_in_memory): Similarly.
12682         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12683         (insv): Retain the zero_extract in the expansion.
12684
12685         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12686         (bswaphi2, bitinvert, revw): Likewise.
12687
12688         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12689         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12690         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12691         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12692         (bitset, bitset_in_memory): Likewise.
12693         (bitinvert, bitinvert_in_memory): Likewise.
12694         (bitclr, bitclr_in_memory): Likewise.
12695         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12696         (rx_strend, rx_cmpstrn): Likewise.
12697         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
12698         (bitop peep2 patterns): Remove.
12699
12700         * config/rx/rx.c (rx_match_ccmode): New.
12701         * config/rx/rx-protos.h: Update.
12702         * config/rx/rx.md (abssi2): Clobber, don't set flags.
12703         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12704         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12705         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12706         (fix_truncsfsi2, floatsisf2): Likewise.
12707         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12708         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12709         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12710         (*subsi3_flags, *xorsi3_flags): New.
12711
12712         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12713
12714         * config/rx/rx.c (rx_print_operand): Remove workaround for
12715         unsplit comparison operations.
12716
12717         * config/rx/rx.md (movsicc): Split after reload.
12718         (*movsicc): Merge *movsieq and *movsine via match_operator.
12719         (*stcc): New pattern.
12720
12721         * config/rx/rx.c (rx_float_compare_mode): Remove.
12722         * config/rx/rx.h (rx_float_compare_mode): Remove.
12723         * config/rx/rx.md (cstoresi4): Split after reload.
12724         (*sccc): New pattern.
12725
12726         * config/rx/predicates.md (label_ref_operand): New.
12727         (rx_z_comparison_operator): New.
12728         (rx_zs_comparison_operator): New.
12729         (rx_fp_comparison_operator): New.
12730         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12731         Validate that the flags are set properly for the comparison.
12732         (rx_gen_cond_branch_template): Remove.
12733         (rx_cc_modes_compatible): Remove.
12734         (mode_from_flags): New.
12735         (flags_from_code): Rename from flags_needed_for_conditional.
12736         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12737         (rx_select_cc_mode): Likewise.
12738         (rx_split_fp_compare): New.
12739         (rx_split_cbranch): New.
12740         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12741         (*cbranchsi4): Use match_operator and rx_split_cbranch.
12742         (*cbranchsf4): Similarly.
12743         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
12744         match_operator and rx_split_cbranch.
12745         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12746         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
12747         (*cmpsi): Rename from cmpsi.
12748         (*tstsi): Rename from tstsi.
12749         (*cmpsf): Rename from cmpsf; use CC_Fmode.
12750         (*conditional_branch): Rename from conditional_branch.
12751         (*reveresed_conditional_branch): Remove.
12752         (b<code>): Remove expander.
12753         * config/rx/rx-protos.h: Update.
12754
12755         * config/rx/rx.c (rx_compare_redundant): Remove.
12756         * config/rx/rx.md (cmpsi): Don't use it.
12757         * config/rx/rx-protos.h: Update.
12758
12759         * config/rx/rx-modes.def (CC_F): New mode.
12760         * config/rx/rx.c (rx_select_cc_mode): New.
12761         * config/rx/rx.h (SELECT_CC_MODE): Use it.
12762         * config/rx/rx-protos.h: Update.
12763
12764 2011-01-17  Richard Henderson  <rth@redhat.com>
12765
12766         * except.c (dump_eh_tree): Fix stray ; after for statement.
12767
12768 2011-01-17  Richard Guenther  <rguenther@suse.de>
12769
12770         PR tree-optimization/47313
12771         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12772         handling before copying the body.  Properly deal with
12773         by-reference result in SSA form.
12774
12775 2011-01-17  Ian Lance Taylor  <iant@google.com>
12776
12777         PR target/47219
12778         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12779         (struct_value_alias_set): Don't define.
12780         (sparc_option_override): Don't set sparc_sr_alias_set and
12781         struct_value_alias_set.
12782         (save_or_restore_regs): Use gen_frame_mem rather than calling
12783         set_mem_alias_set.
12784         (sparc_struct_value_rtx): Likewise.
12785
12786 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
12787
12788         PR target/47318
12789         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12790         (_mm_maskstore_pd): Likewise.
12791         (_mm_maskload_ps): Likewise.
12792         (_mm_maskstore_ps): Likewise.
12793         (_mm256_maskload_pd): Change mask to __m256i.
12794         (_mm256_maskstore_pd): Likewise.
12795         (_mm256_maskload_ps): Likewise.
12796         (_mm256_maskstore_ps): Likewise.
12797
12798         * config/i386/i386-builtin-types.def: Updated.
12799         (ix86_expand_special_args_builtin): Likewise.
12800
12801         * config/i386/i386.c (bdesc_special_args): Update
12802         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
12803         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
12804         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
12805         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
12806
12807         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
12808         Use <avxpermvecmode> on mask register.
12809         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
12810
12811 2011-01-17  Olivier Hainque  <hainque@adacore.com>
12812             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12813             Eric Botcazou  <ebotcazou@adacore.com>
12814
12815         PR target/46655
12816         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
12817         if <= USHRT_MAX in 32-bit mode.
12818
12819 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12820
12821         * doc/install.texi (Configuration, Specific): Wrap long
12822         lines in examples.  Allow line wrapping in long options
12823         and URLs where beneficial for PDF output.
12824
12825 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
12826
12827         * config/mips/mips.c (mips_classify_symbol): Don't return
12828         SYMBOL_PC_RELATIVE for nonlocal labels.
12829
12830 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
12831
12832         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
12833
12834 2011-01-15  Jan Hubicka  <jh@suse.cz>
12835
12836         PR tree-optimization/47276
12837         * ipa.c (function_and_variable_visibility): Do not try to mark alias
12838         declarations as needed.
12839
12840 2011-01-15  Martin Jambor  <mjambor@suse.cz>
12841
12842         * common.opt (fdevirtualize): New flag.
12843         * doc/invoke.texi (Option Summary): Document it.
12844         * opts.c (default_options_table): Add devirtualize flag.
12845         * ipa-prop.c (detect_type_change): Return immediately if
12846         devirtualize flag is not set.
12847         (detect_type_change_ssa): Likewise.
12848         (compute_known_type_jump_func): Likewise.
12849         (ipa_analyze_virtual_call_uses): Likewise.
12850
12851 2011-01-14  Martin Jambor  <mjambor@suse.cz>
12852
12853         PR tree-optimization/45934
12854         PR tree-optimization/46302
12855         * ipa-prop.c (type_change_info): New type.
12856         (stmt_may_be_vtbl_ptr_store): New function.
12857         (check_stmt_for_type_change): Likewise.
12858         (detect_type_change): Likewise.
12859         (detect_type_change_ssa): Likewise.
12860         (compute_complex_assign_jump_func): Check for dynamic type change.
12861         (compute_complex_ancestor_jump_func): Likewise.
12862         (compute_known_type_jump_func): Likewise.
12863         (compute_scalar_jump_functions): Likewise.
12864         (ipa_analyze_virtual_call_uses): Likewise.
12865         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
12866
12867 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12868
12869         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
12870         * config/i386/i386.opt (msse5): New Alias.
12871
12872 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12873
12874         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12875         * config/sparc/linux64.h (CC1_SPEC): Likewise.
12876         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12877         * config/sparc/sparc.h (CC1_SPEC): Likewise.
12878
12879 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12880
12881         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
12882         -mcpu options.
12883         * config/sparc/linux64.h (CC1_SPEC): Likewise.
12884         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
12885         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
12886         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
12887         Likewise.
12888         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
12889
12890 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12891
12892         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
12893
12894 2011-01-14  Mike Stump  <mikestump@comcast.net>
12895
12896         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
12897         * config/fr30/fr30.md: Likweise
12898         (movsi_push): Likewise.
12899         (movsi_pop): Likewise.
12900         (enter_func): Likewise.
12901         * config/moxie/moxie.md (movsi_push): Likewise.
12902         (movsi_pop): Likewise.
12903
12904 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12905
12906         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
12907         %{no_archive} %{exact_version}.
12908         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
12909         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
12910         %{no_archive} %{exact_version}.
12911         * config/mips/openbsd.h (LINK_SPEC): Likewise.
12912         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
12913         * config/mips/vxworks.h: Likewise.
12914
12915 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12916
12917         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
12918
12919 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12920
12921         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
12922         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
12923
12924 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12925
12926         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
12927         -nodefaultlib.
12928
12929 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12930
12931         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
12932         for mcpu not cpu.
12933         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
12934         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
12935         not cpu.
12936         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
12937         Don't handle -shlib.
12938
12939 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12940
12941         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
12942         (CC1_SPEC): Don't handle -profile.
12943
12944 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12945
12946         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
12947         * config/mips/mips.h (CC1_SPEC): Likewise.
12948
12949 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12950
12951         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
12952         * config/mips/mips.h (CC1_SPEC): Likewise.
12953
12954 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12955
12956         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
12957         * config/m32r/linux.h (LINK_SPEC): Likewise.
12958         * config/mips/linux.h (LINK_SPEC): Likewise.
12959         * config/mips/linux64.h (LINK_SPEC): Likewise.
12960         * config/sparc/linux.h (LINK_SPEC): Likewise.
12961         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
12962         LINK_SPEC): Likewise.
12963         * config/xtensa/linux.h (LINK_SPEC): Likewise.
12964
12965 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12966
12967         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
12968         %{version:-v}.
12969         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
12970
12971 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12972
12973         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
12974         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
12975
12976 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
12977
12978         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
12979
12980 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12981
12982         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
12983         supports -Bstatic/-Bdynamic.
12984         * configure: Regenerate.
12985
12986 2011-01-14  Jan Hubicka  <jh@suse.cz>
12987             Jack Howarth  <howarth@bromo.med.uc.edu>
12988
12989         PR target/46037
12990         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
12991         when checking debug_info_level. Test write_symbols instead of
12992         debug_hooks->var_location when setting flag_var_tracking_uninit.
12993
12994 2011-01-14  Richard Guenther  <rguenther@suse.de>
12995
12996         PR tree-optimization/47179
12997         * target.def (ref_may_alias_errno): New target hook.
12998         * targhooks.h (default_ref_may_alias_errno): Declare.
12999         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13000         (default_ref_may_alias_errno): New function.
13001         * target.h (struct ao_ref_s): Declare.
13002         * tree-ssa-alias.c: Include target.h.
13003         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13004         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13005         (targhooks.o): Likewise.
13006         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13007         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13008
13009 2011-01-14  Richard Guenther  <rguenther@suse.de>
13010
13011         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
13012
13013 2011-01-14  Richard Guenther  <rguenther@suse.de>
13014
13015         PR tree-optimization/47280
13016         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13017         return CFG changes.
13018         (tree_ssa_forward_propagate_single_use_vars): Deal with
13019         CFG changes from associate_plusminus.
13020
13021 2011-01-14  Richard Guenther  <rguenther@suse.de>
13022
13023         PR middle-end/47281
13024         Revert
13025         2011-01-11  Richard Guenther  <rguenther@suse.de>
13026
13027         PR tree-optimization/46076
13028         * tree-ssa.c (useless_type_conversion_p): Conversions from
13029         unprototyped to empty argument list function types are useless.
13030
13031 2011-01-14  Richard Guenther  <rguenther@suse.de>
13032
13033         PR tree-optimization/47286
13034         * tree-ssa-structalias.c (new_var_info): Register variables are global.
13035
13036 2011-01-14  Martin Jambor  <mjambor@suse.cz>
13037
13038         PR middle-end/46823
13039         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13040
13041 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
13042
13043         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13044         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13045         * config/xtensa/xtensa.c (xtensa_libcall_value,
13046         xtensa_function_value_regno_p): New functions.
13047         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13048
13049 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
13050
13051         PR c++/47213
13052         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13053         PE specific hook.
13054         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13055         New function prototype.
13056         * config/i386/winnt.c (i386_pe_assemble_visibility):
13057         Warn only if attribute was specified by user.
13058
13059 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13060
13061         PR target/47251
13062         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13063         floating point.
13064         (floatunsdidf2_fcfidu): Ditto.
13065
13066 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13067
13068         * config/s390/s390.c (print_operand_address): Replace 'error' with
13069         'output_operand_lossage'.
13070         (print_operand): Likewise.
13071
13072 2011-01-13  Jeff Law  <law@redhat.com>
13073
13074         PR rtl-optimization/39077
13075         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13076         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13077         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13078         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13079         * gcse.c (prune_insertions_deletions): New function.
13080         (compute_pre_data): Use it.
13081
13082 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
13083
13084         PR debug/PR46973
13085         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13086         static function.
13087         (prune_unused_types_mark): Use it.
13088
13089 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
13090
13091         PR rtl-optimization/45352
13092         * sel-sched.c: Update copyright years.
13093         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13094         in the advancing loop when we have issued issue_rate insns.
13095
13096 2011-01-12  Richard Henderson  <rth@redhat.com>
13097
13098         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13099         (TARGET_MD_ASM_CLOBBERS): New.
13100
13101         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13102         (TARGET_DELEGITIMIZE_ADDRESS): New.
13103
13104         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13105         (clzsi2, *bsch): New patterns.
13106
13107         * config/mn10300/mn10300.md (INT): New mode iterator.
13108         (*mov<INT>_clr): New pattern, and peep2 to generate it.
13109
13110         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13111         flag_split_wide_types.
13112
13113         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13114         (mn10300_trampoline_init): Rewrite without a template, an immediate
13115         load and a direct branch.
13116         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13117
13118 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
13119
13120         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13121         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13122         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13123         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13124
13125 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
13126
13127         PR debug/47209
13128         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13129         of type.
13130
13131 2011-01-12  Jan Hubicka  <jh@suse.cz>
13132
13133         PR driver/47244
13134         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13135         (PLUGIN_COND_CLOSE): New macro.
13136         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13137
13138 2011-01-12  Richard Guenther  <rguenther@suse.de>
13139
13140         PR lto/47259
13141         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13142         register variables in a MEM_REF.
13143
13144 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
13145
13146         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13147         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13148         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13149         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13150         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13151         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13152         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13153         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13154         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13155         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13156         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13157         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13158         * config/gnu-user.h: New.  Copied from linux.h.
13159         (LINUX_TARGET_STARTFILE_SPEC): Rename to
13160         GNU_USER_TARGET_STARTFILE_SPEC.
13161         (LINUX_TARGET_ENDFILE_SPEC): Rename to
13162         GNU_USER_TARGET_ENDFILE_SPEC.
13163         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13164         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13165         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13166         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13167         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13168         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13169         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13170         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13171         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13172         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13173         * config/arm/linux-eabi.h (CC1_SPEC): Use
13174         GNU_USER_TARGET_CC1_SPEC.
13175         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13176         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13177         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13178         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13179         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13180         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13181         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13182         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13183
13184 2011-01-12  Richard Guenther  <rguenther@suse.de>
13185
13186         PR other/46946
13187         * doc/invoke.texi (ffast-math): Document it is turned on
13188         with -Ofast.
13189
13190 2011-01-12  Jan Hubicka  <jh@suse.cz>
13191
13192         PR tree-optimization/47233
13193         * opts.c (common_handle_option): Disable ipa-reference with profile
13194         feedback.
13195
13196 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13197
13198         * c-parser.c (c_parser_objc_at_property_declaration): Improved
13199         error message.
13200
13201 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
13202
13203         * c-parser.c (c_lex_one_token): Updated and reindented some
13204         comments.  No changes in code.
13205
13206 2011-01-11  Ian Lance Taylor  <iant@google.com>
13207
13208         * godump.c (go_output_var): Don't output the variable if there is
13209         already a type with the same name.
13210
13211 2011-01-11  Ian Lance Taylor  <iant@google.com>
13212
13213         * godump.c (go_format_type): Don't generate float80.
13214
13215 2011-01-11  Richard Henderson  <rth@redhat.com>
13216
13217         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13218         declaration.  Rewrite for both speed and size.
13219         (mn10300_address_cost_1): Remove.
13220         (mn10300_register_move_cost): New.
13221         (mn10300_memory_move_cost): New.
13222         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
13223         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
13224         extensions, shifts, BSWAP, CLZ.
13225         (mn10300_wide_const_load_uses_clr): Remove.
13226         (TARGET_REGISTER_MOVE_COST): New.
13227         (TARGET_MEMORY_MOVE_COST): New.
13228         * config/mn10300/mn10300-protos.h: Update.
13229         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13230
13231         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13232         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13233         * config/mn10300/mn10300-protos.h: Update.
13234         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13235         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13236         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13237         (*test_int_bitfield, *test_byte_bitfield): Remove.
13238         (*bit_test, *subreg_bit_test): Remove.
13239         * config/mn10300/predicates.md (const_8bit_operand): Remove.
13240
13241         * config/mn10300/constraints.md ("c"): Rename from "A".
13242         ("A", "D"): New constraint letters.
13243         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13244         (fmssf4, fnmasf4, fnmssf4): Likewise.
13245
13246         * config/mn10300/mn10300.md (isa): New attribute.
13247         (enabled): New attribute.
13248
13249         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13250         (abssf2, negsf2): Define only for hardware fp.
13251         (sqrtsf2): Reformat.
13252         (addsf3, subsf3, mulsf3): Merge expander and insn.
13253
13254         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13255         (DEBUGGER_AUTO_OFFSET): Remove.
13256         (DEBUGGER_ARG_OFFSET): Remove.
13257
13258         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13259         Emit register stores with the same offsets as the hardware.
13260         (mn10300_store_multiple_operation): Don't check that the register
13261         save offsets are monotonic.
13262         * config/mn10300/mn10300-protos.h: Update.
13263
13264         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13265
13266         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13267         in terms of the value on the stack, not the MDR register.
13268
13269 2011-01-11  Jan Hubicka  <jh@suse.cz>
13270
13271         PR lto/45721
13272         PR lto/45375
13273         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13274         (symbol_alias_set_destroy, symbol_alias_set_contains,
13275         propagate_aliases_backward): Declare.
13276         * lto-streamer-out.c (struct sets): New sturcture.
13277         (trivally_defined_alias): New function.
13278         (output_alias_pair_p): Rewrite.
13279         (output_unreferenced_globals): Fix output of alias pairs.
13280         (produce_symtab): Likewise.
13281         * ipa.c (function_and_variable_visibility): Set weak alias destination
13282         as needed in lto.
13283         * varasm.c (symbol_alias_set_t): Remove.
13284         (symbol_alias_set_destroy): Export.
13285         (propagate_aliases_forward, propagate_aliases_backward): New functions
13286         based on ...
13287         (compute_visible_aliases): ... this one; remove.
13288         (trivially_visible_alias): New
13289         (trivially_defined_alias): New.
13290         (remove_unreachable_alias_pairs): Rewrite.
13291         (finish_aliases_1): Reorganize code checking if alias is defined.
13292         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13293         in LTO mode.
13294
13295 2011-01-11  Richard Guenther  <rguenther@suse.de>
13296
13297         PR tree-optimization/46076
13298         * tree-ssa.c (useless_type_conversion_p): Conversions from
13299         unprototyped to empty argument list function types are useless.
13300
13301 2011-01-11  Richard Guenther  <rguenther@suse.de>
13302
13303         PR middle-end/45235
13304         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13305         volatile MEMs as MEM_READONLY_P.
13306
13307 2011-01-11  Richard Guenther  <rguenther@suse.de>
13308
13309         PR tree-optimization/47239
13310         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13311
13312 2011-01-11  Jeff Law  <law@redhat.com>
13313
13314         PR tree-optimization/47086
13315         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13316         IVs from statements that might throw.
13317
13318 2011-01-10  Jan Hubicka  <jh@suse.cz>
13319
13320         PR lto/45375
13321         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13322
13323 2011-01-10  Jan Hubicka  <jh@suse.cz>
13324
13325         PR lto/45375
13326         * profile.c (read_profile_edge_counts): Ignore profile inconistency
13327         when correcting profile.
13328
13329 2011-01-10  Jan Hubicka  <jh@suse.cz>
13330
13331         PR lto/46083
13332         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13333         DECL_FINI_PRIORITY.
13334         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13335         Restore DECL_FINI_PRIORITY.
13336
13337 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13338
13339         * doc/gimple.texi: Fix quoting of multi-word return values in
13340         @deftypefn statements.  Ensure presence of return value.  Wrap
13341         overlong @deftypefn lines.
13342         (is_gimple_operand, is_gimple_min_invariant_address): Remove
13343         descriptions of removed functions.
13344         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13345         of multi-word return value in @deftypefn statement.
13346
13347 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13348
13349         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13350         (Conditional Expressions, Logical Operators)
13351         (Statement and operand traversals): Do not indent smallexample
13352         code.  Fix duplicate function argument in example.
13353
13354 2011-01-10  Jeff Law  <law@redhat.com>
13355
13356         PR tree-optimization/47141
13357         * ipa-split.c (split_function): Handle case where we are
13358         returning a value and the return block has a virtual operand phi.
13359
13360 2011-01-10  Jan Hubicka  <jh@suse.cz>
13361
13362         PR tree-optimization/47234
13363         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13364         (pass_feedback_split_functions): Declare.
13365         * passes.c (init_optimization_passes): Add ipa-split as subpass of
13366         tree-profile.
13367         * ipa-split.c (gate_split_functions): Update comments; disable
13368         split-functions for profile_arc_flag and branch_probabilities.
13369         (gate_feedback_split_functions): New function.
13370         (execute_feedback_split_functions): New function.
13371         (pass_feedback_split_functions): New global var.
13372
13373 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
13374
13375         PR lto/46760
13376         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13377         calling gimple_call_set_cannot_inline.
13378
13379 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
13380
13381         * config/darwin-sections.def: Remove unused section.
13382
13383 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
13384
13385         PR c++/47218
13386         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13387
13388 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
13389
13390         PR objc/47232
13391         * c-parser.c (c_parser_declaration_or_fndef): Improved
13392         error message.
13393
13394 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
13395
13396         * config/i386/winnt.c (i386_pe_start_function): Make sure
13397         to switch back to function's section.
13398
13399 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
13400
13401         PR gcc/46902
13402         PR testsuite/46912
13403         * plugin.c: Move include of dlfcn.h from here...
13404         * system.h: ... to here.
13405
13406 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13407
13408         * doc/cpp.texi (C++ Named Operators): Fix markup for header
13409         file name.
13410         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13411         two extra empty pages in PDF output.
13412
13413 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
13414
13415         PR objc/47078
13416         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13417         for error recovery purposes behave as if it was not specified so
13418         that the default type is usd.
13419
13420 2011-01-07  Jan Hubicka  <jh@suse.cz>
13421
13422         PR tree-optmization/46469
13423         * ipa.c (function_and_variable_visibility): Clear needed flags on
13424         nodes with external decls; handle weakrefs merging correctly.
13425
13426 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
13427
13428         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13429         not false.
13430
13431 2011-01-07  Jan Hubicka  <jh@suse.cz>
13432
13433         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13434         and no longer claim that gold is required for linker plugin.
13435         * configure: Regenerate.
13436         * gcc.c (PLUGIN_COND): New macro.
13437         (LINK_COMMAND_SPEC): Use it.
13438         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13439         * config.in (HAVE_LTO_PLUGIN): New.
13440         * configure.ac (--with-lto-plugin): New parameter; autodetect
13441         HAVE_LTO_PLUGIN.
13442
13443 2011-01-07  Jan Hubicka  <jh@suse.cz>
13444
13445         PR tree-optimization/46367
13446         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13447         when we can update original.
13448         (cgraph_mark_inline_edge): Sanity check.
13449         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13450
13451 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13452
13453         * config/spu/spu.h (ASM_COMMENT_START): Define.
13454
13455 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
13456
13457         PR driver/42445
13458         * gcc.c (%>S): New.
13459         (SWITCH_KEEP_FOR_GCC): Likewise.
13460         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13461         (do_spec_1): Handle "%>".
13462
13463         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13464
13465 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
13466
13467         PR target/47201
13468         * config/i386/i386.c (ix86_delegitimize_address): If
13469         simplify_gen_subreg fails, return orig_x.
13470
13471         PR bootstrap/47187
13472         * value-prof.c (gimple_stringop_fixed_value): Handle
13473         lhs of the call properly.
13474
13475 2011-01-07  Jan Hubicka  <jh@suse.cz>
13476
13477         PR lto/45375
13478         * lto-opt.c (lto_reissue_options): Set flag_shlib.
13479
13480 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13481
13482         * target.def (function_switched_text_sections): New hook.
13483         * doc/tm.texi: Regenerated.
13484         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13485         * final.c (default_function_switched_text_sections): New.
13486         (final_scan_insn): Call function_switched_text_sections when a
13487         mid-function section change occurs.
13488         * output.h (default_function_switched_text_sections): Declare.
13489         * config/darwin-protos.h (darwin_function_switched_text_sections):
13490         Likewise.
13491         * config/darwin.c (darwin_function_switched_text_sections): New.
13492         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13493
13494 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
13495
13496         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
13497         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
13498         the secondary code fragment when outputting for DWARF == 2.
13499
13500 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
13501
13502         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13503         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13504         Remove.
13505         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13506         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13507
13508 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
13509
13510         PR debug/46704
13511         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13512         when it is not empty.
13513
13514 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
13515
13516         Bobcat Enablement
13517         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13518         (case ${target}): Add btver1.
13519         * config/i386/driver-i386.c (host_detect_local_cpu): Let
13520         -march=native recognize btver1 processors.
13521         * config/i386/i386-c.c (ix86_target_macros_internal): Add
13522         btver1 def_and_undef
13523         * config/i386/i386.c (struct processor_costs btver1_cost): New
13524         btver1 cost table.
13525         (m_BTVER1): New definition.
13526         (m_AMD_MULTIPLE): Includes m_BTVER1.
13527         (initial_ix86_tune_features): Add btver1 tune.
13528         (processor_target_table): Add btver1 entry.
13529         (static const char *const cpu_names): Add btver1 entry.
13530         (software_prefetching_beneficial_p): Add btver1.
13531         (ix86_option_override_internal): Add btver1 instruction sets.
13532         (ix86_issue_rate): Add btver1.
13533         (ix86_adjust_cost): Add btver1.
13534         * config/i386/i386.h (TARGET_BTVER1): New definition.
13535         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13536         (enum processor_type): Add PROCESSOR_BTVER1.
13537         * config/i386/i386.md (define_attr "cpu"): Add btver1.
13538
13539 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13540
13541         PR target/43309
13542         * config/i386/i386.c (legitimize_tls_address)
13543         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13544         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13545         (tls_initial_exec_64_sun): New pattern.
13546
13547 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
13548
13549         * doc/invoke.texi (Overall Options): Improve wording and markup
13550         of the description of -wrapper.
13551
13552 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13553
13554         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13555         rdynamic, threads): New Driver options.
13556
13557 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13558
13559         PR target/38118
13560         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13561         if coming from .tdata.
13562         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13563
13564 2011-01-06  Jan Hubicka  <jh@suse.cz>
13565
13566         PR lto/47188
13567         * collect2.c (main): Do not enable LTOmode when plugin is active.
13568
13569 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13570
13571         PR other/45915
13572         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13573         --version output if supported.
13574         * configure: Regenerate.
13575
13576 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
13577
13578         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13579         Driver options.
13580
13581 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
13582
13583         PR c/47150
13584         * c-convert.c (convert): When converting a complex expression
13585         other than COMPLEX_EXPR to a different complex type, ensure
13586         c_save_expr is called instead of save_expr, unless in_late_binary_op.
13587         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13588         when converting COMPLEX_TYPE.
13589
13590 2011-01-06  Ira Rosen  <irar@il.ibm.com>
13591
13592         PR tree-optimization/47139
13593         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13594         only the last reduction value is used outside the loop.  Update
13595         documentation.
13596
13597 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
13598
13599         * config/rtems.opt: New.
13600         * config.gcc (*-*-rtems*): Use rtems.opt.
13601
13602 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
13603
13604         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13605         processors do not support 3DNow instructions.
13606
13607 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13608
13609         * config/spu/spu.c (spu_option_override): Set parameter
13610         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13611
13612 2011-01-05  Jan Hubicka  <jh@suse.cz>
13613
13614         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13615         at the command line.
13616
13617 2011-01-05  Martin Jambor  <mjambor@suse.cz>
13618
13619         PR lto/47162
13620         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13621         deltas on streamed outgoing edges.
13622         (output_node_opt_summary): Output info for outgoing edges only when
13623         the node is in new parameter set.
13624         (output_cgraph_opt_summary): New parameter set, passed to the two
13625         aforementioned functions.  Update its forward declaration and its
13626         callee too.
13627
13628 2011-01-05  Tom Tromey  <tromey@redhat.com>
13629
13630         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13631         operator to c_finish_omp_atomic.
13632         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13633         (build_unary_op): Update.
13634         (build_modify_expr): Update.
13635         (build_asm_expr): Update.
13636
13637 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13638
13639         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13640         newly inserted insns.
13641         (pad_bb): Likewise.
13642         (spu_emit_branch_hint): Likewise.
13643         (insert_hbrp_for_ilb_runout): Likewise.
13644         (spu_machine_dependent_reorg): Call df_finish_pass after
13645         schedule_insns returns.
13646
13647 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13648
13649         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13650
13651 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
13652
13653         PR tree-optimization/47005
13654         * tree-sra.c (struct access): Add 'non_addressable' bit.
13655         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13656         (decide_one_param_reduction): Return 0 if the parameter is passed by
13657         reference and one of the accesses in the group is non_addressable.
13658
13659 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13660
13661         PR tree-optimization/47056
13662         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13663         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
13664         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
13665
13666 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
13667
13668         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13669         initializer.  Skip view conversions from aggregate types.
13670
13671 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
13672
13673         PR bootstrap/47055
13674         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13675
13676 2011-01-04  Philipp Thomas  <pth@suse.de>
13677
13678         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13679         obvious typo.
13680
13681 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13682
13683         * function.c (thread_prologue_and_epilogue_insns): Do not crash
13684         on empty epilogue sequences.
13685
13686 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
13687
13688         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13689         non-static): New Driver options.
13690
13691 2011-01-04  Jie Zhang  <jie@codesourcery.com>
13692
13693         PR driver/47137
13694         * gcc.c (default_compilers[]): Set combinable field to 0
13695         for all assembly languages.
13696
13697 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
13698
13699         * config/mips/loongson3a.md: New file.
13700         * config/mips/mips.md: Include loongson3a.md.
13701         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13702         TUNE_LOONGSON_3A.
13703
13704 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
13705
13706         PR middle-end/47017
13707         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13708         instead of convert_memory_address_addr_space on the base expression.
13709
13710 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13711
13712         * config/spu/spu.c (spu_option_override): Update error text
13713         for bad -march= / -mtune= values.
13714
13715 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13716
13717         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13718         if branch-hint optimization will be performed.
13719
13720 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13721
13722         PR tree-optimization/47148
13723         * ipa-split.c (split_function): Convert arguments to
13724         DECL_ARG_TYPE if possible.
13725
13726         PR tree-optimization/47155
13727         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13728         when computing uns.
13729
13730         PR rtl-optimization/47157
13731         * combine.c (try_combine): If undobuf.other_insn becomes
13732         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13733         and set *new_direct_jump_p too.
13734
13735 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
13736
13737         PR tree-optimization/47021
13738         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13739
13740 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
13741
13742         * gcc.c (process_command): Update copyright notice dates.
13743         * gcov.c (print_version): Likewise.
13744         * gcov-dump.c (print_version): Likewise.
13745         * mips-tfile.c (main): Likewise.
13746         * mips-tdump.c (main): Likewise.
13747
13748 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13749
13750         PR tree-optimization/46801
13751         * tree-sra.c (type_internals_preclude_sra_p): Check whether
13752         aggregate fields start at byte boundary instead of the bit-field flag.
13753
13754 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
13755
13756         PR driver/47137
13757         * gcc.c (main): Revert revision 168407.
13758
13759 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13760
13761         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13762
13763 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13764
13765         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13766         vector optab to expand vector/scalar shift, update gimple to vector.
13767
13768 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13769
13770         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13771         a thunk.
13772
13773 2011-01-03  Martin Jambor  <mjambor@suse.cz>
13774
13775         PR tree-optimization/46984
13776         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13777         HOST_WIDE_INT.
13778         (cgraph_create_indirect_edge): Fixed line length.
13779         (cgraph_indirect_call_info): Declare.
13780         (cgraph_make_edge_direct) Update declaration.
13781         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13782         (cgraph_create_indirect_edge): Use it.
13783         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
13784         callees.
13785         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13786         the new thunk_delta representation.
13787         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13788         HOST_WIDE_INT.
13789         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13790         (ipa_read_indirect_edge_info): Likewise.
13791         * lto-cgraph.c (output_edge_opt_summary): New function.
13792         (output_node_opt_summary): Call it on all outgoing edges.
13793         (input_edge_opt_summary): New function.
13794         (input_node_opt_summary): Call it on all outgoing edges.
13795
13796 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
13797
13798         PR driver/47137
13799         * gcc.c (main): Don't check have_o when settting combine_inputs.
13800
13801 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
13802
13803         * regrename.c: Add general comment describing the pass.
13804         (struct du_head): Remove 'length' field.
13805         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
13806         (regrename_optimize): Do not sort chains.  Rework comments, add others.
13807         Force renaming to the preferred class (if any) in the first pass and do
13808         not consider registers that belong to it in the second pass.
13809         (create_new_chain): Do not set 'length' field.
13810         (scan_rtx_reg): Likewise.
13811
13812 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
13813
13814         PR tree-optimization/47140
13815         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
13816         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
13817         to bit_value_binop.
13818
13819         PR rtl-optimization/47028
13820         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
13821         parm_birth_insn instead of at the beginning of first bb.
13822
13823 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
13824
13825         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
13826         Remove the word "see" before "@pxref".
13827         * doc/rtl.texi: Remove the word "see" before "@pxref".
13828
13829 2011-01-01  Jan Hubicka  <jh@suse.cz>
13830
13831         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
13832         memory.
13833
13834 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
13835
13836         PR target/38662
13837         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
13838
13839 \f
13840 Copyright (C) 2011 Free Software Foundation, Inc.
13841
13842 Copying and distribution of this file, with or without modification,
13843 are permitted in any medium without royalty provided the copyright
13844 notice and this notice are preserved.