OSDN Git Service

c05031a00693c87c70d953bff89994ab79a0886c
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
2
3         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
4         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
5         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
6         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
7         config/stormy16/stormy16.c, config/v850/v850.c,
8         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
9         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
10         Avoid "." or "\n" at end of diagnostics and capital letters at
11         start of diagnostics.
12         * combine.c, cse.c: Don't translate dump file output.
13         * toplev.c (print_version): Only translate output if going to
14         stderr.
15
16 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
17
18         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
19         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
20         typos.
21
22 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23
24         * pa.c (fix_range): Fix typo in comment.
25
26 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
27
28         * tree-vrp.c (extract_range_from_assert): Replace
29         fold (build (...)) with fold_build2.
30
31 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
32
33         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
34         gcc_gfc_char_table, init_dynamic_gfc_info): New.
35         (format_types_orig, handle_format_attribute): Add support for
36         format "gcc_gfc".
37
38 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
39
40         * varasm.c (assemble_variable): Fix format specifier thinko.
41
42 2005-07-03  Ira Rosen  <irar@il.ibm.com>
43
44         PR tree-optimization/22029 (and 22135)
45         * tree-pretty-print.c (dump_generic_node): Check that the node is not
46         a phi node before calling dump_vops.
47
48 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
49
50         * tree-dump.h (dump_string_field): Declare.
51         * tree-dump.c: Use it instead of dump_string.
52         (dump_string_field): Make non-static.
53
54 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
55
56         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
57         up the minimal CFG stuff always when optimize > 0.  Call
58         split_all_insns_noflow in PIC case if needed.
59
60 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
61             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
62
63         PR c++/18279
64         * c-decl.c (c_write_global_declarations): Dump contents of
65         external scope to.
66         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
67         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
68         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
69         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
70         is enabled.
71         
72 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
73
74         * c-common.h (GCC_DIAG_STYLE): Define.
75         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
76         version for format checking to 4.1.
77         * c-format.c: Include toplev.h after c-common.h.
78         (enum format_type): Add gcc_tdiag_format_type.
79         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
80         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
81         (format_types_orig): Add gcc_tdiag.
82         (init_dynamic_diag_info): Support gcc_tdiag formats.
83         (handle_format_attribute): Likewise.
84         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
85         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
86         version for format checking to 4.1.
87         (warning0, warning, error, pedwarn, sorry): Use
88         ATTRIBUTE_GCC_DIAG.
89         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
90         (finish_aliases_1): Do not use %qE.
91         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
92         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
93         Correct format bugs.
94         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
95         parameter to unsigned HOST_WIDE_INT.
96         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
97
98 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
99
100         PR middle-end/21742
101         * expr.c (write_complex_part): Use adjust_address for MEM.
102         (read_complex_part): Same.
103
104 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
105
106         Fix PR tree-optimization/22280
107
108         * tree-sra.c (generate_element_init): Remove useless loop.
109
110 2005-07-02  Richard Henderson  <rth@redhat.com>
111
112         * config/alpha/alpha.c (alpha_legitimize_address): Check for
113          TLS_MODEL_NONE.
114         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
115
116 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
117
118         PR middle-end/14490
119         * fold-const.c (fold_binary): Handle the return value of
120         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
121         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
122
123 2005-07-02  Jeff Law  <law@redhat.com>
124
125         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
126         a eliminate type conversion which feeds an equality comparison
127         if the original type or either operand in the comparison is a
128         function pointer.
129
130 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
131
132         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
133         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
134         texts.
135         * config/avr/avr.c: Do not use '`' as left quote.
136         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
137         Remove "." from end of diagnostics.  Make diagnostics start with
138         lowercase letter.
139
140 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
141             Joseph S. Myers  <joseph@codesourcery.com>
142
143         * toplev.c (default_tree_printer): Handle setting location with
144         '+' flag.
145         * c-objc.common.c (c_tree_printer): Likewise.
146         * c-format.c (gcc_diag_flag_specs): Add '+'.
147         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
148         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
149         formats.
150         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
151         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
152         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
153         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
154         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
155         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
156         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
157         format arguments where %J is used without %D.
158
159 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
160
161         * gcc.c (LINK_SSP_SPEC): Define.
162         (link_ssp_spec): New variable.
163         (LINK_COMMAND_SPEC): Add %(link_ssp).
164         (static_specs): Add link_ssp_spec.
165         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
166         * configure: Rebuilt.
167         * config.in: Rebuilt.
168
169         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
170         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
171         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
172         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
173         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
174         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
175         -0x7008(2) instead of reading __stack_chk_guard variable.
176         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
177         number.
178         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
179         (stack_protect_set, stack_protect_test): Use *_tls* patterns
180         if TARGET_THREAD_SSP_OFFSET is defined.
181         (stack_tls_protect_set_si, stack_tls_protect_set_di,
182         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
183
184         Revert:
185         2005-06-27  Richard Henderson  <rth@redhat.com>
186         * libgcc-std.ver (GCC_4.1.0): New.
187         * libgcc.h (__stack_chk_guard): Declare.
188         (__stack_chk_fail, __stack_chk_fail_local): Declare.
189         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
190         * mklibgcc.in (lib2funcs): Add them.
191
192 2005-07-01  Richard Henderson  <rth@redhat.com>
193
194         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
195         void * before struct sigcontext *.
196         (x86_fallback_frame_state): Likewise.
197
198 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
199
200         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
201
202 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
203
204         PR tree-opt/22269
205         * tree-ssa-reassoc.c (should_transpose): Fix which operand
206         we check for SSA_NAME for.
207
208 2005-06-29  Daniel Berlin  <dberlin@dberlin.org>
209
210         Fix PR tree-optimization/22071
211         
212         * tree-ssa-structalias.c (offset_overlaps_with_access): New
213         function.
214         (get_constraint_for_component_ref): Use it.
215
216 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
217
218         PR other/22264
219         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
220         print out the last new line.
221
222 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
223
224         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
225         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
226         * config/cris/cris.c (cris_conditional_register_usage): Adjust
227         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
228         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
229         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
230         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
231         (enum reg_class): New member CC0_REGS.
232         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
233         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
234         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
235         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
236         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
237         Adjust for register now described.
238
239 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
240
241         PR target/22262
242         * config/i386/i386.md (stack_protect_test_si,
243         stack_protect_test_di): Add earlyclobber for scratch 3.
244         * config/rs6000/rs6000.md (stack_protect_testsi,
245         stack_protect_testdi): Add earlyclobber for scratch 3,
246         remove earlyclobber from scratch 4.
247
248 2005-06-30  Diego Novillo  <dnovillo@redhat.com>
249
250         PR 21584
251         PR 22219
252         * tree-ssa-alias.c (create_name_tags): Also process
253         non-dereferenced pointers.
254         Remove argument 'ai'.  Update all callers.
255
256 2005-06-30  Andrew Pinski  <pinskia@physics.uc.edu>
257
258         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET):
259         Set to 0 for FRAME_GROWS_DOWNWARD.
260         (REGISTER_NAMES): Add sfp.
261
262 2005-07-01  Kelley Cook  <kcook@gcc.gnu.org>
263
264         * config/arm/libunwind.S, config/arm/pr-support.c,
265         config/arm/unwind-arm.c, config/arm/unwind-arm.h,
266         config/c4x/predicates.md, tree-object-size.c: Update FSF address.
267
268 2005-06-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
269
270         PR target/22260
271         * config/sparc/sparc.c (emit_and_preserve): Add 2nd register.
272         Preserve the 2nd register too, if present.
273         (sparc_output_mi_thunk) <PIC case>: Preserve the PIC register too.
274         Adjust call to emit_and_preserve.
275
276 2005-06-30  Zack Weinberg  <zack@codesourcery.com>
277             Jakub Jelinek  <jakub@redhat.com>
278
279         * pretty-print.h (PP_NL_ARGMAX): New.
280         (text_info): Add locus.
281         (struct chunk_info): New.
282         (output_buffer): Add formatted_obstack, chunk_obstack, and
283         cur_chunk_array. Change obstack to a pointer.
284         (pp_wrapping_mode_t, pp_wrapping_mode, pp_set_verbatim_wrapping): New.
285         (struct pretty_print_info): Replace ideal_maximum_length and
286         prefixing_rule with wrapping.
287         (pp_line_cutoff, pp_prefixing_rule): Update to match.
288         Update prototypes and wrapper macros throughout.
289         * pretty-print.c (pp_formatted_text_data, pp_append_r)
290         (pp_base_clear_output_area, pp_construct, pp_base_formatted_text)
291         (pp_base_last_position_in_text, pp_base_newline, pp_base_character):
292         Update for changes to pp structure.
293         (pp_base_prepare_to_format, pp_base_format_text): Delete.
294         (pp_base_format, pp_base_output_formatted_text): New functions.
295         (pp_base_format_verbatim): Use pp_set_verbatim_wrapping.
296         (pp_verbatim): Clear text.locus.
297         (pp_printf): Likewise.  Use pp_format and pp_output_formatted_text.
298         * c-objc-common.c (c_tree_printer): Update function signature.
299         * diagnostic.c (diagnostic_initialize): Update for changes to
300         pp structure.
301         (diagnostic_report_diagnostic): Call pp_format and then
302         pp_output_formatted_text.
303         (verbatim): Clear text.locus.
304         * diagnostic.h (diagnostic_prefixing_rule, diagnostic_line_cutoff):
305         Update for changes to pp structure.
306
307         * c-lang.c: No need to include c-pretty-print.h.
308         * Makefile.in: Remove bogus line containing only a tab.
309         (c-lang.o): Update dependencies.
310         * toplev.c (announce_function): Don't use verbatim.
311         (default_tree_printer): Update signature.
312
313         * objc/objc-lang.c: No need to include c-pretty-print.h.
314         * objc/Make-lang.in: Update dependencies.
315
316 2005-06-29  Daniel Berlin  <dberlin@dberlin.org>
317
318         * tree-complex.c (complex_variable_components): Now a hashtable.
319         (cvc_lookup): Ditto.
320         (cvc_insert): Ditto.
321         (create_components): Use referenced var iterator.
322         Initialize hashtable.   Use cvc_insert/lookup.
323         (extract_components): Use cvc_insert/lookup.
324         (update_complex_components): Ditto.
325         (update_complex_components_on_edge): Ditto.
326         * tree-dfa.c (referenced_vars): Now a hashtable.
327         (dump_referenced_vars): Use iterator.
328         (referenced_var_lookup): New function.
329         (referenced_var_insert): Ditto.
330         (add_referenced_var): Use referenced_var_insert.
331         (mark_new_vars_to_rename): Use DECL_UID.
332         * tree-flow-inline.h (first_htab_element): New function.
333         (end_htab_p): Ditto.
334         (next_htab_element): Ditto.
335         (first_referenced_var): Ditto.
336         (end_referenced_vars_p): Ditto.
337         (next_referenced_var): Ditto.
338         (is_call_clobbered): Use DECL_UID.
339         (mark_call_clobbered): Ditto.
340         (clear_call_clobbered): Ditto.
341         (mark_non_addressable): Ditto.
342         * tree-flow.h (htab_iterator): New struct.
343         (FOR_EACH_HTAB_ELEMENT): New macro.
344         (struct int_tree_map): New struct.
345         (int_tree_map_hash): Prototype.
346         (int_tree_map_eq): Ditto.
347         (referenced_var_iterator): Ditto.
348         (FOR_EACH_REFERENCED_VAR): New macro.
349         (referenced_vars): Now a hashtable.
350         * tree-into-ssa.c (symbol_marked_for_renaming): Use DECL_UID.
351         (add_new_name_mapping): Ditto.
352         (mark_def_sites): Ditto.
353         (insert_phi_nodes): Use referenced_var iterator.
354         (mark_def_site_blocks): Ditto.
355         (mark_sym_for_renaming): Use DECL_UID.
356         * tree-sra.c (is_sra_candidate_decl): Use DECL_UID.
357         (lookup_element): Ditto.
358         (find_candidates_for_sra): Use referenced_vars iterator.
359         Use DECL_UID.
360         * tree-ssa-alias.c (NUM_REFERENCES): New macro.
361         (NUM_REFERENCES_CLEAR): Ditto.
362         (NUM_REFERENCES_INC): Ditto.
363         (NUM_REFERENCES_SET): Ditto.
364         (alias_obstack): New bitmap obstack.
365         (struct alias_map_d): Use bitmap, not sbitmap.
366         (struct alias_info): Remove num_references.
367         (init_alias_info): Use referenced_var iterator.
368         Initialize bitmap obstack.
369         (delete_alias_info): Use referenced_var iterator.
370         Free bitmap obstack.
371         (compute_points_to_and_addr_escape): Use DECL_UID.
372         Use new NUM_REFERENCES macros.
373         (compute_flow_sensitive_aliasing): may_aliases is now a bitmap.
374         Use new NUM_REFERENCES macros.
375         (group_aliases_into): Update prototype to use bitmap.
376         (setup_pointers_and_addressables): Use referenced_vars iterator.
377         Use DECL_UID. Use new NUM_REFERENCES macros.
378         (add_pointed_to_var): Use DECL_UID.
379         (dump_alias_info): Use referenced_var iterator.
380         (add_type_alias): Ditto.
381         (used_portions): Now a hashtable.
382         (used_part_map_eq): New function.
383         (used_part_map_hash): Ditto.
384         (free_used_part_map): Ditto.
385         (up_lookup): Ditto.
386         (up_insert): Ditto.
387         (get_or_create_used_part_for): Use up_lookup.
388         (create_overlap_variables_for): Ditto.
389         (find_used_portions): Use up_insert.
390         Use DECL_UID.
391         (create_structure_vars): Init used_portions hashtable, use
392         referenced_vars iterator.
393         * tree-ssa-live.c (create_ssa_var_map): sbitmaps became bitmaps.
394         Use DECL_UID.
395         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Use DECL_UID.
396         * tree-ssa-operands.c (get_asm_expr_operands): Ditto.
397         (note_addressable): Ditto.
398         * tree-ssa-structalias.c (set_uids_in_ptset): Ditto.
399         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
400         referenced_var iterator.
401         Use DECL_UID.
402         (delete_tree_ssa): Ditto.
403         (int_tree_map_eq): New function.
404         (int_tree_map_hash): Ditto.
405         * tree-stdarg.c (find_va_list_reference): Use DECL_UID.
406         (va_list_ptr_read): Ditto.
407         (va_list_counter_struct_op): Ditto.
408         (va_list_ptr_write): Ditto.
409         (check_va_list_escapes): Ditto.
410         (check_all_va_list_escapes): Ditto.
411         (execute_optimize_stdarg): Ditto.
412         * tree-tailcall.c (suitable_for_tail_opt_p): Used referenced_var
413         iterator. 
414
415 2005-06-30  Andrew Pinski  <pinskia@physics.uc.edu>
416
417         * config/rs6000/darwin.h (FRAME_POINTER_REGNUM): Rename to ...
418         (HARD_FRAME_POINTER_REGNUM): this.
419
420 2005-06-30  Jan Hubicka  <jh@suse.cz>
421
422         * ipa-inline.c (cgraph_clone_inlined_nodes): Revert previous patch.
423
424 2005-06-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
425
426         PR middle-end/22247
427         * tree-ssa-structalias.c (build_constraint_graph, scc_visit,
428         process_unification_queue, init_topo_info, topo_visit,
429         init_scc_info, free_scc_info, perform_var_substitution,
430         solve_graph): Use unsigned instead of uint.
431         
432 2005-06-30  Jakub Jelinek  <jakub@redhat.com>
433
434         * function.c (gen_stack_protect_test): Add third argument.
435
436 2005-06-30  J. D. Johnston  <jjohnst@us.ibm.com>
437
438         * gthr-tpf.h (CE2THRCPTR): Change field offset to 16.
439
440 2005-06-30  Kazu Hirata  <kazu@codesourcery.com>
441
442         * config/c4x/c4x-protos.h: Remove the prototypes for those
443         functions removed from c4x.c.  Add prototypes for those
444         functions exported in c4x.c.
445         * config/c4x/c4x.c (any_operand, fp_zero_operand,
446         const_operand, stik_const_operand, not_const_operand,
447         reg_operand, r0r1_reg_operand, r2r3_reg_operand,
448         ext_low_reg_operand, ext_reg_operand, std_reg_operand,
449         std_or_reg_operand, addr_reg_operand, index_reg_operand,
450         dp_reg_operand, sp_reg_operand, st_reg_operand,
451         rc_reg_operand, call_address_operand,
452         symbolic_address_operand, dst_operand, src_operand,
453         src_hi_operand, lsrc_operand, tsrc_operand,
454         nonimmediate_src_operand, nonimmediate_lsrc_operand,
455         reg_or_const_operand, par_ind_operand, parallel_operand):
456         Remove.
457         (c4x_immed_float_p, c4x_a_register, c4x_x_register,
458         c4x_K_constant, c4x_N_constant, c4x_O_constant,
459         c4x_S_indirect): Export.
460         * config/c4x/c4x.h (PREDICATE_CODES): Remove.
461         * config/c4x/c4x.md: Include predicates.md.
462         * config/c4x/predicates.md: New.
463
464 2005-06-30  Jakub Jelinek  <jakub@redhat.com>
465
466         * function.c (stack_protect_epilogue): Pass label to
467         stack_protect_test, assume it emitted also the conditional
468         branch.
469         * doc/md.texi (stack_protect_test): Adjust documentation.
470         * config/i386/i386.md (stack_protect_test): Add third argument,
471         emit beq with operands[2].
472         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Define to
473         flag_stack_protect != 0.
474         * config/rs6000/rs6000.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
475         constants.
476         (stack_protect_set, stack_protect_test): New expanders.
477         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
478         stack_protect_testdi): New insns.
479         * config/rs6000/rs6000.c (rs6000_stack_protect_fail): New function.
480         (TARGET_STACK_PROTECT_FAIL): Define.
481         (rs6000_generate_compare): Handle UNSPEC_SP_TEST.
482
483         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Increment.
484         (DWARF_FRAME_REGISTERS, DWARF_REG_TO_UNWIND_COLUMN): Adjust, so
485         that addition of sfp doesn't change these.
486         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
487         REG_ALLOC_ORDER): Add sfp.
488         (INT_REGNO_P): Include FRAME_POINTER_REGNUM.
489         (FRAME_POINTER_REGNUM): Define to 113.
490         (HARD_FRAME_POINTER_REGNUM): Define to 31.
491         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add sfp.
492         (STARTING_FRAME_OFFSET): Set to 0 for FRAME_GROWS_DOWNWARD.
493         (ELIMINABLE_REGS): Never eliminate to
494         FRAME_POINTER_REGNUM, but HARD_FRAME_POINTER_REGNUM
495         instead.  Add eliminations from FRAME_POINTER_REGNUM.
496         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P):
497         Include FRAME_POINTER_REGNUM.
498         (REGISTER_NAMES): Add sfp.
499         * config/rs6000/rs6000.c (rs6000_reg_names): Add sfp.
500         (alt_reg_names): Likewise.
501         (rs6000_stack_info): Handle FRAME_GROWS_DOWNWARD.
502         (rs6000_emit_prologue): Use HARD_FRAME_POINTER_REGNUM
503         instead of FRAME_POINTER_REGNUM.
504         (rs6000_initial_elimination_offset): Never eliminate to
505         FRAME_POINTER_REGNUM, but HARD_FRAME_POINTER_REGNUM
506         instead.  Add elimination offsets from FRAME_POINTER_REGNUM.
507
508         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Only return non-zero
509         if DEFAULT_ABI == ABI_V4.
510
511 2005-06-30  Steven Bosscher  <stevenb@suse.de>
512
513         * coretypes.h (tls_model): Add TLS_MODEL_NONE as 0.
514         * tree.h (struct tree_decl): New field `tls_model'.
515         (DECL_TLS_MODEL): New.
516         (DECL_THREAD_LOCAL_P): Rename from DECL_THREAD_LOCAL, make it
517         a predicate.
518         * rtl.h (decl_default_tls_model): Add prototype for it.
519         * varasm.c (decl_tls_model): Rewritten and renamed to ...
520         (decl_default_tls_model): ... this.
521         (default_encode_section_info): Use DECL_TLS_MODEL instead of
522         decl_tls_model.
523         (assemble_variable): Replace DECL_THREAD_LOCAL with
524         DECL_THREAD_LOCAL_P.
525         (default_section_type_flags_1): Likewise.
526         (categorize_decl_for_section): Likewise.
527         * tree.c (staticp): Likewise.
528         (recompute_tree_invarant_for_addr_expr): Likewise.
529         * drawf2out (loc_descriptor_from_tree_1): Likewise.
530         * c-decl.c (diagnose_mismatched_decls): Likewise.
531         with DECL_THREAD_LOCAL_P.
532         (start_decl): Likewise.
533         * print-tree.c (print_node): Likewise.  Print the TLS model.
534         (grokdeclarator): Set the default DECL_TLS_MODEL here.
535         * c-common.c (handle_tls_model_attribute): Rewrite to set the
536         TLS model up based on the attribute.  Never add the attribute
537         to the decl's attributes list.
538         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Replace
539         DECL_THREAD_LOCAL with DECL_THREAD_LOCAL_P.
540
541 2005-06-30  Zdenek Dvorak  <dvorakz@suse.cz>
542
543         PR testsuite/21967
544         * tree-ssa-live.c (mark_all_vars_used_1): Ignore variables in
545         TMR_ORIGINAL.
546
547 2005-06-30  Bernd Schmidt  <bernd.schmidt@analog.com>
548
549         * config/bfin/bfin.md (addv2hi3, subv2hi3, sminv2hi3, smaxv2hi3,
550         mulv2hi3, negv2hi2, absv2hi2): Pattern names fixed by appending the
551         necessary digit.
552
553 2005-06-29  David Edelsohn  <edelsohn@gnu.org>
554
555         * config/rs6000/rs6000.c (rs6000_file_start): Use PPC405_ERRATUM77.
556
557 2005-06-29  Diego Novillo  <dnovillo@redhat.com>
558
559         PR 22234
560         * tree-ssa-copy.c (fini_copy_prop): Do not overwrite copy_of
561         when following copy-of chains.
562
563 2005-06-30  Jan Hubicka  <jh@suse.cz>
564
565         * function.h (struct function): Add saved blocks/unexpanded var list.
566         * gimple-low.c (record_vars): Insert only VAR_DECLs.
567         * tree-inline.c (add_lexical_block): Declare; do not clear sublocks.
568         (remap_decl): Do not declare vars.
569         (remap_block): Do not care inserting blocks.
570         (remap_blocks): New function.
571         (copy_body_r): Update debug info.
572         (expand_call_inline): Duplicate callee block tree into caller;
573         copy all the unexpanded_var_list.
574         (save_body): Save unexpanded_var_list and blocks.
575         * tree-optimize.c (tree_rest_of_optimization): Restore
576         blocks/unexpanded_var_list.
577
578 2005-06-29  Richard Henderson  <rth@redhat.com>
579
580         * config/ia64/ia64.c (ia64_expand_vecint_minmax): Use us_minus and
581         plus for V4HImode UMAX.
582
583 2005-06-29  Joseph S. Myers  <joseph@codesourcery.com>
584
585         * c-tree.h (default_function_array_conversion): Take and return
586         struct c_expr.
587         * c-typeck.c (default_function_array_conversion): Split into
588         array_to_pointer_conversion and function_to_pointer_conversion.
589         Take and return struct c_expr.
590         (array_to_pointer_conversion): Do not handle type qualifiers or
591         COMPOUND_EXPRs specially.
592         (build_function_call): Call function_to_pointer_conversion for
593         function designators.
594         (build_unary_op): Call array_to_pointer_conversion, not
595         default_function_array_conversion.
596         (digest_init, output_init_element): Likewise.
597         * c-parser.c: All callers of default_function_array_conversion
598         changed.
599
600 2005-06-29  Ziemowit Laski  <zlaski@apple.com>
601
602         * config/darwin.c (machopic_select_section): constant ObjC string
603         objects now always have type "__builtin_ObjCString".
604
605 2005-06-29  Richard Henderson  <rth@redhat.com>
606
607         * config/alpha/alpha.md (vec_shl_<VEC>, vec_shr_<VEC>): New.
608
609 2005-06-29  Richard Henderson  <rth@redhat.com>
610
611         * tree-vect-transform.c (vect_min_worthwhile_factor): Declare.
612         (vect_create_epilog_for_reduction): Don't use vec_shr if the
613         operation is emulated.
614         (vectorizable_reduction): Duplicate vect_min_worthwhile_factor
615         tests from vectorizable_operation.
616
617 2005-06-29  Caroline Tice  <ctice@apple.com>
618
619         Fix PR 21956
620         * varasm.c (assemble_start_function):  Add "L" to beginning of
621         local labels, so assembler & linker treat them as local.
622         
623 2005-06-29  Richard Henderson  <rth@redhat.com>
624
625         * config/i386/i386.c (ix86_expand_int_vcond): Remove unsignedp
626         argument.  Simplify canonicalization of condition.  Use unsigned
627         saturating subtraction for QI and HImode unsigned compares.  Use
628         bit arithmetic tricks for SImode unsigned compares.
629         * config/i386/i386-protos.h (ix86_expand_int_vcond): Update decl.
630         * config/i386/sse.md (SSEMODE14): New.
631         (umaxv8hi3): Use us_minus+plus to avoid vcond.
632         (umaxv4si3): New.
633         (smax<SSEMODE14>3): Rename from smaxv16qi3 and macroize.
634         (smin<SSEMODE14>3): Similarly with sminv16qi3.
635         (umin<SSEMODE24>3): Similarly with uminv8hi3.
636
637 2005-06-29  Ian Lance Taylor  <ian@airs.com>
638
639         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Change
640         GEN_INT to gen_int_for_mode when storing register size to memory.
641
642 2005-06-29  Stuart Hastings  <stuart@apple.com>
643
644         * gcc/config/i386/mmintrin.h: Mark vector intrinsics always_inline.
645         * gcc/config/i386/emmintrin.h: Likewise.
646         * gcc/config/i386/pmmintrin.h: Likewise.
647         * gcc/config/i386/xmmintrin.h: Likewise.
648                                         
649 2005-06-29  Steve Ellcey  <sje@cup.hp.com>
650
651         PR middle-end/21969
652         * tree.h (TYPE_VECTOR_SUBPARTS): Change to shift expression.
653         (SET_TYPE_VECTOR_SUBPARTS): New.
654         * tree.c (make_vector_type): Replace TYPE_VECTOR_SUBPARTS with
655         SET_TYPE_VECTOR_SUBPARTS.
656         * tree-vect-transform.c (vect_transform_loop): Add cast.
657
658 2005-06-29  Andreas Krebbel  <krebbel1@de.ibm.com>
659
660         * config/s390/s390.c (s390_decompose_address): Accept invalid
661         displacements for addresses containing frame_pointer_rtx or
662         virtual_stack_vars_rtx.
663         (s390_frame_info): Replaced use of STARTING_FRAME_OFFSET.
664         (s390_initial_elimination_offset): New offset when eliminating the 
665         soft frame pointer.
666         * config/s390/s390.h (FRAME_GROWS_DOWNWARD): Defined as 1.
667         (STARTING_FRAME_OFFSET, STACK_DYNAMIC_OFFSET): Definitions changed.
668
669 2006-06-28  Ziemowit Laski  <zlaski@apple.com>
670
671         * c-common.c (flag_next_runtime): Move...
672         * toplev.c (flag_next_runtime): ... here.
673         * c-common.h (flag_next_runtime): Move...
674         * flags.h (flag_next_runtime): ... here.
675         * config/darwin-c.c: Include flags.h.
676         * config/t-darwin (darwin-c.o): Depend on flags.h.
677
678 2005-06-29  Kaz Kojima  <kkojima@gcc.gnu.org>
679
680         * config/sh/linux-unwind.h (shmedia_fallback_frame_state):
681         Disable aliasing warning with void * cast.
682         (sh_fallback_frame_state): Likewise.
683
684 2005-06-29  Kaz Kojima  <kkojima@gcc.gnu.org>
685
686         * target.h (gcc_target): New field allocate_initial_value.
687         * target-def.h (TARGET_ALLOCATE_INITIAL_VALUE): New macro.
688         (TARGET_INITIALIZER): Include it.
689         * integrate.c (allocate_initial_values): Use
690         targetm.allocate_initial_value.
691         * system.h: Poison ALLOCATE_INITIAL_VALUE.
692         * config/sh/sh-protos.h (sh_pr_n_sets): Delete.
693         * config/sh/sh.c (sh_pr_n_sets): Make it static.
694         (sh_allocate_initila_value): New function.
695         (TARGET_ALLOCATE_INITIAL_VALUE): Override default.
696         * config/sh/sh.h (ALLOCATE_INITIAL_VALUE): Delete.
697         * doc/tm.texi (TARGET_ALLOCATE_INITIAL_VALUE): Rename and
698         update from ALLOCATE_INITIAL_VALUE.
699
700 2005-06-28  Richard Henderson  <rth@redhat.com>
701
702         * tree-vectorizer.c (vect_is_simple_reduction): Compare types
703         using TYPE_MAIN_VARIANT.
704
705 2005-06-28  Richard Henderson  <rth@redhat.com>
706
707         * config/ia64/ia64.c (ia64_expand_vecint_compare): Decompose to EQ
708         when using psubN.uuu.
709
710 2005-06-29  Kelley Cook <kcook@gcc.gnu.org>
711
712         * doc/gcc.texi: Update FSF address.
713
714 2005-06-28  Eric Christopher  <echristo@redhat.com>
715
716         PR c/22052
717         PR c/21975
718         * c-decl.c (diagnose_mismatched_decls): Define DECL_EXTERN_INLINE.
719         Use. Fix detection of invalid extern inline redefinition.
720
721 2005-06-28  Diego Novillo  <dnovillo@redhat.com>
722
723         * tree-optimize.c (init_tree_optimization_passes): Fix typo.
724
725 2005-06-28  Andrew Pinski  <pinskia@physics.uc.edu>
726
727         * config/rs6000/rs6000.md (setmemsi): s/operand/operands/.
728
729 2005-06-28  Richard Henderson  <rth@redhat.com>
730
731         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use unsigned
732         saturating subtraction for QI and HImode unsigned compares.  Use
733         bit arithmetic tricks for SImode unsigned compares.
734         (ia64_expand_vcondu_v2si): Remove.
735         (ia64_expand_vecint_cmov): Don't call it.
736
737 2005-06-28  Richard Henderson  <rth@redhat.com>
738
739         * rtlanal.c (nonzero_bits1): Use the mode of the value for
740         determining integral-ness for comparisons.
741
742 2005-06-28  Andrew Pinski  <pinskia@physics.uc.edu>
743
744         * config/rs6000/rs6000.md (setmemsi): Fix operand 2.
745
746 2005-06-28  Joseph S. Myers  <joseph@codesourcery.com>
747
748         * target.h (invalid_conversion, invalid_unary_op,
749         invalid_binary_op): New hooks.
750         * target-def.h (TARGET_INVALID_CONVERSION,
751         TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP,
752         TARGET_INITIALIZER): Likewise.
753         * hooks.h (hook_constcharptr_tree_tree_null,
754         hook_constcharptr_int_tree_null,
755         hook_constcharptr_int_tree_tree_null): New.
756         * hooks.c (hook_constcharptr_tree_tree_null,
757         hook_constcharptr_int_tree_null,
758         hook_constcharptr_int_tree_tree_null): Likewise.
759         * gcc/doc/tm.texi (TARGET_INVALID_CONVERSION,
760         TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Document.
761         * c-convert.c (convert): Use invalid_conversion hook.
762         * c-typeck.c (build_unary_op): Use invalid_unary_op hook.
763         (build_binary_op): Use invalid_binary_op hook.
764         * config/ia64/ia64-modes.def: Define RFmode.
765         * config/ia64/ia64-protos.h (spill_xfmode_operand): Remove.
766         (ia64_expand_movxf_movrf): New.
767         * config/ia64/ia64.md (movxf): Move code to
768         ia64_expand_movxf_movrf.
769         (movrf, movrf_internal): New.
770         * ia64.c (ia64_invalid_conversion, ia64_invalid_unary_op,
771         ia64_invalid_binary_op, TARGET_INVALID_CONVERSION,
772         TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): New.
773         (spill_xfmode_operand): Rename to spill_xfmode_rfmode_operand.
774         Add mode parameter.  Make static.
775         (ia64_expand_movxf_movrf): New, moved from ia64.md.  Handle RFmode
776         as well as XFmode.
777         (ia64_function_arg, ia64_function_value, ia64_register_move_cost,
778         ia64_scalar_mode_supported_p): Handle RFmode as well as XFmode.
779         (ia64_init_builtins): Set up __fpreg as RFmode.
780         (ia64_mangle_fundamental_type): Mangle __fpreg as u7__fpreg.
781
782 2006-06-28  Adrian Straetling  <straetling@de.ibm.com>
783
784         * builtins.c: (expand_builtin_memset): Rewrite to support
785         'set_storage_via_setmem'.
786         * expr.c: (enum insn_code setmem_optab): Define.
787         (enum insn_code clrmem_optab): Remove.
788         (set_storage_via_setmem): New function.
789         (clear_storage_via_setmem): Remove.
790         (clear_storage): Replace call to "clear_storage_via_clrmem" with
791         "set_storage_via_setmem".
792         * expr.h: (set_storage_via_setmem): Declare.
793         (CLEAR_RATIO): Redefine using HAVE_setmemM.
794         * optabs.h: (enum insn_code setmem_optab): Declare.
795         (enum insn_code clrmem_optab): Remove.
796         * optabs.c: (init_optabs): Initialize setmem_optab.
797         (enum insn_code clrmem_optab): Remove.
798         * genopinit.c: (otabs): Likewise.
799         * doc/md.texi: Document new standard pattern 'setmem'. Remove
800           'clrmem'.
801         * config/alpha/alpha.c: (alpha_expand_block_clear): Adjust
802         'operands' ordering.
803         * config/frv/frv.c: (frv_expand_block_clear): Likewise.
804         * config/rs6000/rs6000.c: (expand_block_clear): Likewise.
805         * config/alpha/alpha.md: ("clrmemqi", "clrmemdi"): Rename to "setmemM".
806         FAIL on operands[2]!=const0_rtx. Adjust 'operands' ordering.
807         * config/avr/avr.md: ("clrmemhi"): Likewise.
808         * config/frv/frv.md: ("clrmemsi"): Likewise.
809         * config/i386/i386.md: ("clrmemsi", "clrmemdi"): Likewise.
810         * config/pa/pa.md: ("clrmemsi", "clrmemdi"): Likewise.
811         * config/rs6000/rs6000.md: ("clrmemsi"): Likewise.
812         * config/s390/s390.md: ("clrmem<mode>"): Likewise.
813
814 2005-06-28  Paul Brook  <paul@codesourcery.com>
815
816         * Makefile.in: Set and use UNWIND_H.  Install as unwind.h.
817         * c-decl.c (finish_decl): Call default_init_unwind_resume_libfunc.
818         * except.c (add_ehspec_entry): Generate arm eabi filter lists.
819         (assign_filter_values): Ditto.
820         (output_ttype): New function.
821         (output_function_exception_table): Use output_ttype.  Generate arm
822         eabi filter lists.
823         (default_init_unwind_resume_libfunc): New function.
824         * except.h (default_init_unwind_resume_libfunc): Add prototype.
825         * optabs.c (init_optabs): Don't set unwind_resume_libfunc.
826         * opts.c (decode_options): Use targetm.unwind_tables_default.
827         * target-def.h (TARGET_ASM_TTYPE): Provide and use definition.
828         (TARGET_ARM_EABI_UNWINDER, TARGET_UNWIND_TABLES_DEFAULT): Ditto.
829         * target.h (struct gcc_target): Add asm.ttype, unwind_tables_default
830         and arm_eabi_unwinder.
831         * unwind-c.c: Support Arm EABI unwinder.
832         * unwind.h: Rename ...
833         * unwind-generic.h: ... To this.
834         * doc/tm.texi (TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER): Document.
835         (TARGET_UNWID_TABLES_DEFAULT): Document.
836
837         * config/arm/arm-protos.h (arm_output_fn_unwind): Add prototype.
838         * config/arm/arm.c (arm_unwind_emit, arm_output_ttype): New functions.
839         (TARGET_UNWIND_EMIT, TARGET_ASM_TTYPE, TARGET_ARM_EABI_UNWINDER):
840         Define.
841         (thumb_pushpop, thumb_output_function_prologue): Output unwinding
842         directives.
843         (arm_unwind_emit_stm, arm_unwind_emit_set): New functions.
844         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS): Only define when
845         !TARGET_UNWIND_INFO.
846         (ARM_OUTPUT_FN_UNWIND, ARM_EABI_UNWIND_TABLES): Define.
847         * config/arm/bpabi.h (TARGET_UNWIND_INFO): Define.
848         * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME,
849         ASM_DECLARE_FUNCTION_SIZE): Use ARM_OUTPUT_FN_UNWIND.
850         * config/arm/lib1funcs.asm: Include libunwind.S.
851         * config/arm/libgcc-bpabi.ver: Add unwinding routines.
852         * config/arm/libunwind.S: New file.
853         * config/arm/pr-support.c: New file.
854         * config/arm/t-bpabi (LIB1ASMFUNCS): Add _unwind.
855         (UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
856         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH, LIB2ADDEHDEP): Set.
857         * config/arm/unwind-arm.c: New file.
858         * config/arm/unwind-arm.h: New file.
859         * config/i386/t-netware (USER_H): Remove unwind.h.
860         * config/ia64/ia64.h (TARGET_UNWIND_TABLES_DEFAULT): Define.
861
862 2005-06-28  DJ Delorie  <dj@redhat.com>
863
864         * c-decl.c (pop_scope): Move warning control into warning call.
865         (diagnose_mismatched_decls): Likewise.
866         (pushdecl): Likewise.
867         (start_decl): Likewise.
868         (grokparms): Likewise.
869         (start_function): Likewise.
870         (store_parm_decls_newstyle): Likewise.
871         (store_parm_decls_oldstyle): Likewise.
872         (finish_function): Likewise.
873         (declspecs_add_scspec): Likewise.
874         * c-format.c (decode_format_attr): Likewise.
875         (maybe_read_dollar_number): Likewise.
876         (avoid_dollar_number): Likewise.
877         (finish_dollar_format_checking): Likewise.
878         (check_format_info): Likewise.
879         (check_format_info_main): Likewise.
880         (check_format_types): Likewise.
881         (format_type_warning): Likewise.
882         * c-typeck.c (function_types_compatible_p): Likewise.
883         (build_array_ref): Likewise.
884         (convert_arguments): Likewise.
885         (build_c_cast): Likewise.
886         (store_init_value): Likewise.
887         (process_init_element): Likewise.
888         (c_start_case): Likewise.
889         * stor-layout.c (finalize_record_size): Likewise.
890         * tree-cfg.c (execute_warn_function_noreturn): Likewise.
891         * tree-inline.c (expand_call_inline): Likewise.
892
893 2005-06-28  Uros Bizjak  <uros@kss-loka.si>
894
895         PR target/22134
896         * config/i386/i386.md (fist<mode>2_with_temp splitter):
897         Clobber memory operand, not scratch register.
898
899 2005-06-28  Andreas Krebbel  <krebbel1@de.ibm.com>
900
901         * config/s390/s390.c (machine_function): New field has_landing_pad_p.
902         (s390_set_has_landing_pad_p, s390_reg_clobbered_rtx,
903          s390_regs_ever_clobbered): New functions.
904         (s390_return_addr_rtx): Use get_hard_reg_initial_value.
905         (s390_register_info, s390_init_frame_layout, s390_update_frame_layout):
906         Use s390_regs_ever_clobbered.
907         (s390_emit_prologue): Don't use r14 as temp reg if its content is used
908         for builtin_return_address.
909         * config/s390/s390.md ("exception_receiver"): New expander.
910         * config/s390/s390-protos.h (s390_set_has_landing_pad_p): Prototype
911         added.
912
913 2005-06-28  Andreas Krebbel  <krebbel1@de.ibm.com>
914
915         * except.c (current_function_has_exception_handlers): Function 
916         description added and if statements merged.
917
918 2005-06-28  Richard Henderson  <rth@redhat.com>
919
920         * config/i386/sse.md (smaxv16qi3): Fix buffer overflow.
921         (sminv16qi3, umaxv8hi3, uminv8hi3): Likewise.
922
923 2005-06-27  Richard Henderson  <rth@redhat.com>
924
925         * config/ia64/ia64.c (ia64_expand_vcondu_v2si): Generate proper
926         comparison operations.
927         (ia64_expand_vecint_minmax): Fix size of xops.
928         * config/ia64/vect.md (umax<VECINT>3): Fix fallback pattern typo.
929         (vec_shl_<VECINT>, vec_shr_<VECINT>): New.
930
931 2005-06-27  Richard Henderson  <rth@redhat.com>
932
933         * tree-vect-transform.c (get_initial_def_for_reduction): Use correct
934         type for DEF and INIT_VAL.  Pretend MIN/MAX need epilogue adjustment.
935
936 2005-06-27  Richard Henderson  <rth@redhat.com>
937
938         * config/i386/sse.md (vec_shl_<SSEMODEI>, vec_shr_<SSEMODEI>): New.
939         (smaxv16qi3, umaxv8hi3, sminv16qi3, uminv8hi3): New.
940
941 2005-06-27  Richard Henderson  <rth@redhat.com>
942
943         * tree-vect-transform.c (vect_create_epilog_for_reduction): Remove
944         duplicate little-endian adjustment.
945
946 2005-06-28  Kelley Cook  <kcook@gcc.gnu.org>
947
948         * doc/include/texinfo.tex: Import from upstream CVS.
949
950 2005-06-28  Jan Hubicka  <jh@suse.cz>
951
952         * cgraph.c (cgraph_remove_node): Do not release function bodies until
953         full cgraph is built.
954         * cgraph.h (cgraph_decide_inlining_incrementally): Add early argument.
955         * cgraphunit.c (cgraph_finalize_function): Update call of
956         cgraph_decide_inlining_incrementally.
957         (initialize_inline_failed): Break out of ...
958         (cgraph_analyze_function): ... here.
959         (rebuild_cgraph_edges): New function.
960         (pass_rebuild_cgraph_edges): New pass.
961         * common.opt (fearly-inlining): New flag.
962         * ipa-inline.c: Include ggc.h
963         (cgraph_clone_inlined_nodes): Avoid re-using of original copy
964         when cgraph is not fully built.
965         (cgraph_decide_inlining_incrementally): Add early mode.
966         (cgraph_early_inlining): New function.
967         (cgraph_gate_early_inlining): Likewise.
968         (pass_early_ipa_inline): New pass.
969         * ipa.c (cgraph_postorder): NULLify aux pointer.
970         * tree-inline.c (expand_call_inline): Avoid warning early.
971         * tree-optimize.c (pass_early_local_passes): New.
972         (execute_cleanup_cfg_pre_ipa): New.
973         (pass_cleanup_cfg): New.
974         (register_dump_files): Fix handling subpasses of IPA pass.
975         (init_tree_optimization_passes): Add early passes.
976         (execute_ipa_pass_list): Fix handling of subpasses of IPA pass.
977         * passes.h (pass_early_tree_profile, pass_rebuild_cgraph_edges,
978         pass_early_ipa_inline): New passes.
979         * tree-profile.c (do_early_tree_profiling, pass_early_tree_profile): New.
980
981         * invoke.texi: Document early-inlining.
982
983 2005-06-28  Kelley Cook  <kcook@gcc.gnu.org>
984
985         * doc/include/fdl.texi: Merge in changes from upstream.
986         * doc/include/gpl.texi: Likewise.
987
988 2005-06-27  Diego Novillo  <dnovillo@redhat.com>
989
990         PR 21959
991         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Handle type
992         casts between unsigned and signed types with different size
993         or precision.
994
995 2005-06-28  Jan Hubicka  <jh@suse.cz>
996
997         * tree-optimize.c (exercute_free_datastructures):
998         Do not disband implicit edges; do not attempt to build insn list;
999         do not free cfg annotations.
1000         (execute_free_cfg_annotations); Disband implicit edges here;
1001         free cfg annotations here too.
1002         (pass_free_cfg_annotations); New pass.
1003         (init_tree_optimization_passes); Add pass_free_cfg_annotations.
1004         * tree-ssa-operands.c (free_ssa_operands); Recover; export.
1005         * tree-ssa-operands.h (free_ssa_operands); declare.
1006         * tree-ssa.c (delete_tree_ssa); Free SSA operand; mark stmt modified;
1007         kill PHI nodes.
1008         * tree-ssanames.c (release_defs): Kill addresses_taken.
1009
1010         * basic-block.h (basic_block_def): Kill rbi.
1011         (reorder_block_def): Kill; Remove next field (replaced by aux);
1012         move other fields to ...
1013         (rtl_bb_info): ... here.
1014         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
1015         copy_bb, connect_traces, add_labels_and_missing_jumps
1016         fix_up_fall_thru_edges, fix_crossing_conditional_branches,
1017         duplicate_computed_gotos, partition_hot_cold_basic-blocks):
1018         Update to new fields.
1019         * cfg.c (initialize_bb_rbi): Kill.
1020         * cfglayout.c (record_effective_endpoints, fixup_reorder_chain,
1021         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update.
1022         * cfgrtl.c (cfg_layout_create_basic_block): Do not initialize rbi.
1023         (try_redirect_by_replacing_jump): Update rbi references.
1024         (cfg_layout_split_block): Likewise.
1025         (cfg_layout_delete_block): Likewise.
1026         (cfg_layout_merge_blocks): Likewise.
1027         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1028         * passes.c (rest_of_handle_sms): Likewise.
1029         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
1030
1031 2005-06-27  David Edelsohn  <edelsohn@gnu.org>
1032
1033         * config/rs6000/rs6000.c (rs6000_file_start): Note PPC405 erratum
1034         in verbose_asm output.
1035         * config/rs6000/rs6000.h (PPC405_ERRATUM77): Bracket with
1036         CONFIG_PPC405CR.
1037         * config.gcc (powerpc with_which): Define CONFIG_PPC405CR for
1038         405cr.
1039
1040 2005-06-27  Jakub Jelinek  <jakub@redhat.com>
1041
1042         * builtin-attrs.def (DEF_ATTR_FOR_INT): Add for 5 and 6.
1043         (DEF_LIST_INT_INT): Add for 4,0, 4,5, 5,0, 5,6.
1044         (ATTR_NOTHROW_NONNULL_4, ATTR_NOTHROW_NONNULL_5): Define.
1045         (ATTR_FORMAT_PRINTF_4_0, ATTR_FORMAT_PRINTF_4_5,
1046         ATTR_FORMAT_PRINTF_5_0, ATTR_FORMAT_PRINTF_5_6): Define.
1047         * builtins.c: Include tree-flow.h.
1048         (expand_builtin_mempcpy, expand_builtin_memmove): Comment fixes.
1049         (expand_builtin_object_size, expand_builtin_memory_chk,
1050         maybe_emit_chk_warning, maybe_emit_sprintf_chk_warning,
1051         compute_object_offset, compute_builtin_object_size,
1052         fold_builtin_object_size): New functions.
1053         (expand_builtin): Handle BUILT_IN_OBJECT_SIZE and BUILT_IN_*_CHK.
1054         (fold_builtin_1): Likewise.  Handle BUILT_IN_{,V}{,F}PRINTF
1055         and BUILT_IN_{,F}PRINTF_UNLOCKED.
1056         (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
1057         fold_builtin_strncpy_chk, fold_builtin_strcat_chk,
1058         fold_builtin_strncat_chk, fold_builtin_sprintf_chk,
1059         fold_builtin_snprintf_chk, fold_builtin_printf, fold_builtin_fprintf):
1060         New functions.
1061         * builtins.def (BUILT_IN_OBJECT_SIZE, BUILT_IN_MEMCPY_CHK,
1062         BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK, BUILT_IN_MEMSET_CHK,
1063         BUILT_IN_STPCPY_CHK, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK,
1064         BUILT_IN_STRNCAT_CHK, BUILT_IN_STRNCPY_CHK, BUILT_IN_SNPRINTF_CHK,
1065         BUILT_IN_SPRINTF_CHK, BUILT_IN_VSNPRINTF_CHK, BUILT_IN_VSPRINTF_CHK,
1066         BUILT_IN_FPRINTF_CHK, BUILT_IN_PRINTF_CHK, BUILT_IN_VFPRINTF_CHK,
1067         BUILT_IN_VPRINTF_CHK): New builtins.
1068         * builtin-types.def (DEF_FUNCTION_TYPE_5, DEF_FUNCTION_TYPE_VAR_4):
1069         Document.
1070         (BT_FN_SIZE_CONST_PTR_INT, BT_FN_INT_INT_CONST_STRING_VALIST_ARG,
1071         BT_FN_PTR_PTR_CONST_PTR_SIZE_SIZE, BT_FN_PTR_PTR_INT_SIZE_SIZE,
1072         BT_FN_STRING_STRING_CONST_STRING_SIZE_SIZE,
1073         BT_FN_INT_FILEPTR_INT_CONST_STRING_VALIST_ARG,
1074         BT_FN_INT_STRING_INT_SIZE_CONST_STRING_VALIST_ARG,
1075         BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VALIST_ARG,
1076         BT_FN_INT_INT_CONST_STRING_VAR, BT_FN_INT_FILEPTR_INT_CONST_STRING_VAR,
1077         BT_FN_INT_STRING_INT_SIZE_CONST_STRING_VAR,
1078         BT_FN_INT_STRING_SIZE_INT_SIZE_CONST_STRING_VAR): New types.
1079         * c-common.c (DEF_FUNCTION_TYPE_5, DEF_FUNCTION_TYPE_6,
1080         DEF_FUNCTION_TYPE_VAR_4, DEF_FUNCTION_TYPE_VAR_5): Define.
1081         * Makefile.in (OBJS-common): Add tree-object-size.o.
1082         (tree-object-size.o): Add dependencies.
1083         * tree-pass.h (pass_object_sizes): Add.
1084         * tree-optimize.c (init_tree_optimization_passes): Add
1085         pass_object_sizes.
1086         * tree-object-size.c: New file.
1087         * tree.h (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
1088         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk,
1089         compute_builtin_object_size, init_object_sizes, fini_object_sizes):
1090         New prototypes.
1091         * tree-ssa-ccp.c (get_strlen): Rename to ...
1092         (get_maxval_strlen): ...this function.  Handle also computing of maximum
1093         string length and maximum integral value.
1094         (ccp_fold_builtin): Handle BUILT_IN_*_CHK.  Use get_maxval_strlen
1095         instead of get_strlen.  Pass CALLEE and ARGLIST variables to the
1096         folding functions instead of computing them again.
1097         (execute_fold_all_builtins): Retry ccp_fold_builtin if a builtin changed
1098         into some other builtin.
1099         * doc/extend.texi (Object Size Checking): Document.
1100
1101         * regrename.c (copy_value): Fix comment.
1102
1103         * toplev.c (process_options): Use if (FRAME_GROWS_DOWNWARD)
1104         instead of preprocessor conditionals.
1105
1106         * targhooks.c (default_hidden_stack_protect_fail): Fall back to
1107         default_external_stack_protect_fail if visibility is not supported
1108         or not flag_pic.
1109         * config/i386/i386.c (ix86_stack_protect_fail): New function.
1110         (TARGET_STACK_PROTECT_FAIL): Define.
1111         * config/i386/i386.md (stack_protect_si): Change CLOBBER into
1112         SET to zero.
1113         (stack_protect_di): Likewise.  Use %k2 instead of %2 to avoid
1114         invalid instruction xorl %rax, %rax.
1115
1116 2005-06-27  Richard Henderson  <rth@redhat.com>
1117
1118         * c-cppbuiltin.c (c_cpp_builtins): Add __SSP_ALL__ and __SSP__.
1119         * cfgexpand.c: Include params.h.
1120         (has_protected_decls, has_short_buffer): New.
1121         (expand_stack_vars): Take a predicate to determine what to expand.
1122         (defer_stack_allocation): True when flag_stack_protect on.
1123         (SPCT_HAS_LARGE_CHAR_ARRAY, SPCT_HAS_SMALL_CHAR_ARRAY): New.
1124         (SPCT_HAS_ARRAY, SPCT_HAS_AGGREGATE): New.
1125         (stack_protect_classify_type, stack_protect_decl_phase): New.
1126         (stack_protect_decl_phase_1, stack_protect_decl_phase_2): New.
1127         (add_stack_protection_conflicts, create_stack_guard): New.
1128         (expand_used_vars): Add stack protection logic.
1129         (tree_expand_cfg): Likewise.
1130         * common.opt (Wstack-protector): New.
1131         (fstack-protector, fstack-protector-all): New.
1132         * function.c: Include predict.h.
1133         (assign_parm_adjust_stack_rtl): Zap stack_parm when stack protect
1134         wants to copy the parameter into the stack frame.
1135         (stack_protect_prologue, stack_protect_epilogue): New.
1136         (expand_function_end): Call stack_protect_epilogue.  Do 
1137         sjlj_emit_function_exit_after after naked_return_label.
1138         * function.h (struct function): Add stack_protect_guard.
1139         * params.def (PARAM_SSP_BUFFER_SIZE): New.
1140         * toplev.c (process_options): Disable flag_stack_protect and/or
1141         warn_stack_protect based on FRAME_GROWS_DOWNWARD.
1142         * tree.h (stack_protect_prologue): Declare.
1143
1144         * target-def.h (TARGET_STACK_PROTECT_GUARD): New.
1145         (TARGET_STACK_PROTECT_FAIL): New.
1146         (TARGET_INITIALIZER): Add them.
1147         * target.h (struct gcc_target): Add stack_protect_guard and
1148         stack_protect_fail.
1149         * targhooks.c: Include ggc.h, gty header.
1150         (stack_chk_guard_decl, default_stack_protect_guard): New.
1151         (stack_chk_fail_decl, default_external_stack_protect_fail): New.
1152         (default_hidden_stack_protect_fail): New.
1153         * targhooks.h (default_stack_protect_guard): Declare.
1154         (default_external_stack_protect_fail): Declare.
1155         (default_hidden_stack_protect_fail): Declare.
1156         * config/i386/i386.c (TARGET_STACK_PROTECT_FAIL): New.
1157         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New.
1158         (trap): Use ud2.
1159         (conditional_trap, conditional_trap_1): Remove.
1160         (stack_protect_set, stack_protect_set_si, stack_protect_set_di): New.
1161         (stack_protect_test, stack_protect_test_si, stack_protect_test_di): New.
1162         * doc/md.texi (stack_protect_set, stack_protect_test): New.
1163         * doc/tm.texi (TARGET_STACK_PROTECT_GUARD): New.
1164         (TARGET_STACK_PROTECT_FAIL): New.
1165
1166         * libgcc-std.ver (GCC_4.1.0): New.
1167         * libgcc.h (__stack_chk_guard): Declare.
1168         (__stack_chk_fail, __stack_chk_fail_local): Declare.
1169         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
1170         * mklibgcc.in (lib2funcs): Add them.
1171
1172 2005-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1173
1174         PR c/21911
1175         * c-common.c (check_function_sentinel): Pass in named argument
1176         list, skip over named arguments before looking for a sentinel.
1177         (check_function_arguments): Pass in named argument list.
1178         * c-common.h (check_function_arguments): Likewise.
1179         * c-typeck.c (build_function_call): Likewise.
1180
1181 2005-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1182
1183         * genautomata.c (decl_mode_check_failed,
1184         regexp_mode_check_failed): Add noreturn attribute.
1185
1186 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
1187
1188         * cfg.c, tree-vect-transform.c, tree.def: Fix comment typos.
1189         * doc/invoke.texi: Fix typos.
1190
1191         * builtins.c, c-common.c, c-convert.c, c-decl.c, c-typeck.c,
1192         convert.c, lambda-code.c, predict.c, tree-cfg.c,
1193         tree-complex.c, tree-data-ref.c, tree-if-conv.c,
1194         tree-mudflap.c, tree-scalar-evolution.c, tree-ssa-ccp.c,
1195         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
1196         tree-ssa-loop-manip.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
1197         tree-vect-analyze.c, tree-vect-transform.c, tree-vectorizer.c,
1198         tree.c: Use fold_buildN instead of fold (buildN (...)).
1199
1200 2005-06-26  Gerald Pfeifer  <gerald@pfeifer.com>
1201
1202         * doc/install.texi (Specific): Do not specify the concrete
1203         versions of GCC provided by Cygwin.  Simplify the part on
1204         building on Cygwin.
1205
1206 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
1207
1208         * config/arc/arc-protos.c: Remove the prototype for
1209         arc_finalize_pic.
1210         * config/arc/arc.c (arc_finalize_pic): Remove.
1211         * config/arc/arc.h (FINALIZE_PIC): Likewise.
1212         * config/bfin/bfin.h (FINALIZE_PIC): Likewise.
1213         * config/rs6000/rs6000.h (FINALIZE_PIC): Likewise.
1214
1215 2005-06-26  Jakub Jelinek  <jakub@redhat.com>
1216
1217         PR middle-end/17965
1218         * calls.c (expand_call, emit_library_call_value_1): Use xmalloc/free
1219         instead of alloca for really big argument sizes.
1220
1221         PR middle-end/22028
1222         * gimplify.c (gimplify_type_sizes): Check for type == error_mark_node
1223         earlier in the function.
1224
1225         * regrename.c (copy_value): Don't replace fixed or global
1226         regs with older regs.
1227
1228         * defaults.h (FRAME_GROWS_DOWNWARD): Define to 0 if not defined.
1229         * function.c (get_func_frame_size): Use if (FRAME_GROWS_DOWNWARD)
1230         instead of preprocessor conditionals.
1231         (assign_stack_local_1, assign_stack_temp_for_type): Likewise.
1232         * cfgexpand.c (FRAME_GROWS_DOWNWARD): Don't redefine to 1 or 0
1233         depending on if it was or was not defined previously.
1234         * doc/rtl.texi (VIRTUAL_STACK_VARS_REGNUM): Mention that only non-zero
1235         definition of FRAME_GROWS_DOWNWARD means frame grows downward.
1236         * doc/tm.texi (FRAME_GROWS_DOWNWARD): Likewise.
1237         * config/m68hc11/m68hc11.h (FRAME_GROWS_DOWNWARD): Define to 0.  Update
1238         comment.
1239         * config/pa/pa.h (FRAME_GROWS_DOWNWARD): Likewise.
1240         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Likewise.
1241         * config/stormy16/stormy16.h (FRAME_GROWS_DOWNWARD): Define to 0.
1242         * config/c4x/c4x.h (FRAME_GROWS_DOWNWARD): Likewise.
1243         * config/sh/sh.h (FRAME_GROWS_DOWNWARD): Likewise.
1244         * config/ia64/ia64.h (FRAME_GROWS_DOWNWARD): Likewise.
1245         * config/iq2000/iq2000.h (FRAME_GROWS_DOWNWARD): Likewise.
1246         * config/pdp11/pdp11.h (FRAME_GROWS_DOWNWARD): Define to 1.  Update
1247         comment.
1248         * config/i860/i860.h (FRAME_GROWS_DOWNWARD): Likewise.
1249         * config/h8300/h8300.h (FRAME_GROWS_DOWNWARD): Likewise.
1250         * config/arc/arc.h (FRAME_GROWS_DOWNWARD): Likewise.
1251         * config/vax/vax.h (FRAME_GROWS_DOWNWARD): Likewise.
1252         * config/sparc/sparc.h (FRAME_GROWS_DOWNWARD): Likewise.
1253         * config/i386/i386.h (FRAME_GROWS_DOWNWARD): Likewise.
1254         * config/fr30/fr30.h (FRAME_GROWS_DOWNWARD): Likewise.
1255         * config/frv/frv.h (FRAME_GROWS_DOWNWARD): Likewise.
1256         * config/mn10300/mn10300.h (FRAME_GROWS_DOWNWARD): Likewise.
1257         * config/bfin/bfin.h (FRAME_GROWS_DOWNWARD): Likewise.
1258         * config/ns32k/ns32k.h (FRAME_GROWS_DOWNWARD): Likewise.
1259         * config/v850/v850.h (FRAME_GROWS_DOWNWARD): Likewise.
1260         * config/alpha/alpha.h (FRAME_GROWS_DOWNWARD): Update comment.
1261         * config/s390/s390.h (FRAME_GROWS_DOWNWARD): Likewise.
1262         * config/arm/arm.h (FRAME_GROWS_DOWNWARD): Likewise.
1263         * config/alpha/unicosmk.h (FRAME_GROWS_DOWNWARD): Define to 1.
1264         * config/cris/cris.h (FRAME_GROWS_DOWNWARD): Likewise.
1265         * config/m68k/m68k.h (FRAME_GROWS_DOWNWARD): Likewise.
1266         * config/mmix/mmix.h (FRAME_GROWS_DOWNWARD): Likewise.
1267
1268 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
1269
1270         PR tree-optimization/22026
1271         * tree-vrp.c (extract_range_from_binary_expr): Drop to
1272         VR_VARYING if a binary expression involving VR_ANTI_RANGE is
1273         PLUS_EXPR, MINUS_EXPR, or unsigned MULT_EXPR.
1274
1275 2005-06-26  Kazu Hirata  <kazu@codesourcery.com>
1276
1277         * Makefile.in (OBJS-common): Remove duplicate object file
1278         names.
1279
1280 2005-06-25  Jan Hubicka  <jh@suse.cz>
1281
1282         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update profile.
1283         * cfg.c (update_bb_profile_for_threading): Fix rescaling.
1284
1285         * passes.c (rest_of_handle_branch_prob): Do not rebuild profiling info
1286         when not neecesary
1287         (rest_of_compilation): Fix conditional on branch prob pass.
1288         * predict.c (tree_estimate_probability): Enable strip_builtin_expect
1289         when not loop optimizing.
1290
1291 2005-06-25  Bernd Schmidt  <bernd.schmidt@analog.com>
1292
1293         * config/bfin/bfin.md (ror_one, rol_one, ashrdi3, ashldi3, lshrdi3):
1294         New patterns.
1295         (movbi): Add alternative to set CC to zero.
1296         (compare_eq, compare_ne, compare_le, compare_lt, compare_leu,
1297         compare_ltu): Now named patterns.
1298
1299 2005-06-25  Kelley Cook  <kcook@gcc.gnu.org>
1300
1301         * all files: Update FSF address in copyright headers.
1302
1303 2005-06-25  Kelley Cook  <kcook@gcc.gnu.org>
1304
1305         * gengtype.c: Update FSF address in copyright header.
1306         (create_file): Update FSF in outputed copyright header.
1307
1308 2005-06-24  Kazu Hirata  <kazu@codesourcery.com>
1309
1310         * cfglayout.c (block_locators_locs, line_locators_locs,
1311         line_locators_lines, file_locators_locs): Change the type to
1312         VEC(int,heap)*.
1313         (insn_locators_initialize, change_scope, insn_scope,
1314         locator_line, insn_line, locator_file): Use VEC instead of
1315         VARRAY.
1316
1317 2005-06-24  Jason Merrill  <jason@redhat.com>
1318
1319         * tree-nrv.c (tree_nrv): Fix to check assignments to the
1320         RESULT_DECL rather than just RETURN_EXPRs.
1321         (finalize_nrv_r): Adjust.
1322
1323 2005-06-24  Jan Hubicka  <jh@suse.cz>
1324
1325         * tree-optimize.c (init_tree_optimization_passes): Fix flags of
1326         all_passes and all_ipa_passes.
1327
1328         * c-common.c: Include cgraph.h
1329         (handle_externally_visible_attribute): New function.
1330         (c_common_att): Add "externally_visible" attribute.
1331         * cgraph.c (decide_is_variable_needed): Obey externally
1332         visible flag.
1333         (cgraph_varpool_finalize_decl): Avoid redundant checking.
1334         * cgraph.h (struct cgraph_node): New flag externally_visible.
1335         (decide_is_function_needed): Obey externally visible flag.
1336         (cgraph_finalize_function): Avoid redundant checks.
1337         (cgraph_function_and_variable_visibility): Bring symbols local
1338         when asked for.
1339         * common.opt (fwhole-program): New flag.
1340
1341         * doc/invoke.texi (-fwhole-program): Document.
1342
1343 2005-06-24  Mark Mitchell  <mark@codesourcery.com>
1344
1345         PR 22171
1346         * tree-ssa-operands.c (get_expr_operands): Check s_ann for NULL
1347         before use.
1348
1349 2005-06-23  Mark Mitchell  <mark@codesourcery.com>
1350
1351         PR 22000
1352         * tree-ssa-operands.c (get_expr_operands): Check the volatility of
1353         the FIELD_DECL and set s_ann->has_volatile_ops accordingly.
1354
1355 2005-06-24  Jan Hubicka  <jh@suse.cz>
1356
1357         * opts.c (decode_options): Enable unit-at-a-time by default at -O1.
1358
1359 2005-06-23  Jeff Law  <law@redhat.com>
1360
1361         * tree-optimize.c (init_tree_optimization_passes): Move
1362         copy prop pass to run just before VRP.
1363         * tree-vrp.c (remove_range_assertions): Remove copies created
1364         by ASSERT_EXPR removal.
1365
1366 2005-06-23  Kazu Hirata  <kazu@codesourcery.com>
1367
1368         PR tree-optimization/22117
1369         * tree-vrp.c (extract_range_from_binary_expr): Compute a
1370         correct range when adding two pointers.
1371
1372 2005-06-23  Jason Merrill  <jason@redhat.com>
1373
1374         PR c++/19317
1375         Leave the return slot target in the MODIFY_EXPR rather than making
1376         it an argument, but only use it if the CALL_EXPR has a flag set.
1377         * tree.h (CALL_EXPR_HAS_RETURN_SLOT_ADDR): Rename to
1378         CALL_EXPR_RETURN_SLOT_OPT.
1379         * calls.c (expand_call): Adjust.
1380         * tree-inline.c (expand_call_inline): Adjust.
1381         * tree-pretty-print.c (dump_generic_node): Adjust.
1382
1383         And set the flag as appropriate.
1384         * gimplify.c (gimplify_modify_expr_rhs): Set
1385         CALL_EXPR_HAS_RETURN_SLOT_ADDR where the LHS is obviously safe.
1386         * tree-nrv.c (execute_return_slot_opt): Set
1387         CALL_EXPR_HAS_RETURN_SLOT_ADDR based on escape analysis.
1388         * tree-pass.h: Declare pass_return_slot.
1389         * tree-optimize.c (init_tree_optimization_passes): Add it.
1390         
1391 2005-06-23  David Edelsohn  <edelsohn@gnu.org>
1392
1393         PR target/21760
1394         * config/rs6000/rs6000.h (PPC405_ERRATUM77): New.
1395         * config/rs6000/rs6000.md: Move atomic instructions to ...
1396         * config/rs6000/sync.md: Here.
1397         Change sync_compare_and_swap<mode> to define_expand.  All stwcx
1398         patterns test PPC405_ERRATUM77.
1399
1400 2005-06-23  Jan Hubicka  <jh@suse.cz>
1401         
1402         * tree-inline.c (copy_body_r): Remap labels correctly.
1403
1404 2005-06-22  Alan Modra  <amodra@bigpond.net.au>
1405
1406         * config/rs6000/sysv4.h (TARGET_ASM_EXCEPTION_SECTION): Delete.
1407
1408 2005-06-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1409
1410         PR middle-end/20593
1411         * varasm.c (compute_reloc_for_constant): Treat VIEW_CONVER_EXPR
1412         the same as the other cast operands.
1413         (output_addressed_constants): Likewise.
1414
1415 2005-06-21  Jeff Law  <law@redhat.com>
1416
1417         * tree-vrp.c (extract_range_from_unary_expr): Handle type
1418         conversions better.
1419
1420 2005-06-21  Dorit Nuzman  <dorit@il.ibm.com>
1421
1422         * genopinit.c (vec_shl_optab, vec_shr_optab): Initialize new optabs.
1423         (reduc_plus_optab): Removed.  Replcaed with...
1424         (reduc_splus_optab, reduc_uplus_optab): Initialize new optabs.
1425         * optabs.c (optab_for_tree_code): Return reduc_splus_optab or
1426         reduc_uplus_optab instead of reduc_plus_optab.
1427         (expand_vec_shift_expr): New function.
1428         (init_optabs): Initialize new optabs. Remove initialization of
1429         reduc_plus_optab.
1430         (optab_for_tree_code): Return vec_shl_optab/vec_shr_optab
1431         for VEC_LSHIFT_EXPR/VEC_RSHIFT_EXPR.
1432         * optabs.h (OTI_reduc_plus): Removed. Replaced with...
1433         (OTI_reduc_splus, OTI_reduc_uplus): New.
1434         (reduc_plus_optab): Removed.  Replcaed with...
1435         (reduc_splus_optab, reduc_uplus_optab): New optabs.
1436         (vec_shl_optab, vec_shr_optab): New optabs.
1437         (expand_vec_shift_expr): New function declaration.
1438
1439         * tree.def (VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR): New tree-codes.
1440         * tree-inline.c (estimate_num_insns_1): Handle new tree-codes.
1441         * expr.c (expand_expr_real_1): Handle new tree-codes.
1442         * tree-pretty-print.c (dump_generic_node, op_symbol, op_prio): Likewise.
1443         * tree-vect-generic.c (expand_vector_operations_1): Add assert.
1444
1445         * tree-vect-transform.c (vect_create_epilog_for_reduction): Add two
1446         alternatives for generating reduction epilog code.
1447         (vectorizable_reduction): Don't fail of direct reduction support is
1448         not available.
1449         (vectorizable_target_reduction_pattern): Likewise.
1450
1451         * config/rs6000/altivec.md (reduc_smax_v4si, reduc_smax_v4sf,
1452         reduc_umax_v4si, reduc_smin_v4si, reduc_smin_v4sf, reduc_umin_v4si,
1453         reduc_plus_v4si, reduc_plus_v4sf): Removed.
1454         (vec_shl_<mode>, vec_shr_<mode>, altivec_vsumsws_nomode,
1455         reduc_splus_<mode>, reduc_uplus_v16qi): New.
1456
1457 2005-06-20  Daniel Berlin  <dberlin@dberlin.org>
1458
1459         * c-typeck.c (build_function_call): Set fundecl = function again.
1460         * tree-ssa-alias.c (find_used_portions): Address taking causes the
1461         entire variable to be used.
1462         * tree-ssa-structalias.c (do_structure_copy): Fix handling of
1463         unknown size variables, and structure copies from addressof
1464         operations.  Simplify how we do *a = *b type structure copies.
1465         (init_base_vars): Add ANYTHING = &ANYTHING constraint the right
1466         way.  READONLY's address is not taken by default.
1467         INTEGER dereference should point to anything.
1468         (create_variable_info_for): It's okay for the first field to not start
1469         at 0.
1470
1471 2005-06-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1472
1473         config/sh/linux.h (FUNCTION_PROFILER): Constify a char*.
1474
1475 2005-06-20  Roger Sayle  <roger@eyesopen.com>
1476             Fariborz Jahanian <fjahanian@apple.com>
1477
1478         * combine.c (simplify_set): Simplify setting of CC register
1479         by removing redundant compare with 0 on RHS.
1480
1481 2005-06-20  Jan Beulich  <jbeulich@novell.com>
1482
1483         * config/i386/netware-libgcc.def: Update copyright.
1484         * config/i386/netware-libgcc.exp (__divdc3, __divsc3, __divxc3,
1485         __muldc3, __mulsc3, __mulxc3, __powidf2, __powisf2, __powixf2): Add.
1486         * config/i386/netware.c (gen_stdcall_decoration,
1487         gen_fastd_decoration): Merge into ...
1488         (gen_stdcall_or_fastcall_decoration): ... this. Adjust to match
1489         WinNT's changes.
1490         (gen_regparm_prefix): Adjust to match i386_nlm_encode_section_info.
1491         (i386_nlm_encode_section_info): Adjust to match WinNT's changes.
1492         * config/i386/t-nwld (SHLIB_LINK): Also create libgcc.imp alias of
1493         libgcc_s.imp. Use 'expr' rather than $(()) shell expressions.
1494         * gthr-nks.h (__gthread_objc_mutex_allocate): Kill another dubious
1495         use of NX_MUTEX_RECURSIVE.
1496
1497 2005-06-19  Roger Sayle  <roger@eyesopen.com>
1498
1499         * fold-const.c (swap_tree_comparison): Add support for unordered
1500         floating point comparisons.
1501         * tree-vrp.c (opposite_comparison): Delete.
1502         (extract_range_from_assert): Replace calls to opposite_comparison
1503         with calls to swap_tree_comparison.
1504         (register_edge_assert_for): Likewise.
1505         (vrp_evaluate_conditional): Likewise.
1506
1507 2005-06-20  Kaz Kojima  <kkojima@gcc.gnu.org>
1508
1509         * integrate.c (allocate_initial_values): Update the references
1510         to global_live_at_start and global_live_at_end.
1511
1512 2005-06-20  Jan Hubicka  <jh@suse.cz>
1513
1514         * cfgloop.h (DLTHE_RECORD_COPY_NUMBER): New flag.
1515         * cfgloopmanip.c (duplicate_loop_to_header_edge): Set aux flags only
1516         when asked for.
1517         * loop-unroll.c (peel_loop_completely, unroll_loop_constant_iterations,
1518         unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
1519         Update call of duplicate_loop_to_header_edge.
1520         (apply_opt_in_copies): Clear out aux pointers.
1521
1522 2005-06-19  Joseph S. Myers  <joseph@codesourcery.com>
1523
1524         * config/i386/i386.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
1525         (ix86_mangle_fundamental_type): New.
1526         * config/ia64/ia64.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Define.
1527         (ia64_mangle_fundamental_type): New.
1528
1529 2005-06-19  Roger Sayle  <roger@eyesopen.com>
1530
1531         * c-decl.c (grokdeclarator): Only check TREE_OVERFLOW on
1532         INTEGER_CST nodes.
1533         * c-typeck.c (build_c_cast): Only preserve TREE_OVERFLOW on
1534         CONSTANT_CLASS_P nodes.
1535
1536 2005-06-19  Richard Henderson  <rth@redhat.com>
1537
1538         * config/ia64/vect.md (vec_extractv2sf_1): Fix cut-and-paste error;
1539         the shift is always required.
1540
1541 2005-06-19  Richard Henderson  <rth@redhat.com>
1542
1543         * config/ia64/ia64-modes.def (V4SF): Add.
1544         * config/ia64/ia64.c (ia64_legitimate_constant_p): Handle CONST_VECTOR.
1545         * config/ia64/ia64.h (CANNOT_CHANGE_MODE_CLASS): Allow vector to 
1546         integer mode changes in fp regs.
1547         * config/ia64/ia64.md (UNSPEC_VECT_EXTR): New.
1548         * config/ia64/vect.md (smaxv2sf3, sminv2sf3): Fix typos in names.
1549         (reduc_plus_v2sf, reduc_smax_v2sf, reduc_smin_v2sf): New.
1550         (vcondv2sf): Use gen_fpack
1551         (fpack): Remove * from name.
1552         (fswap, fmix_l, fmix_r, fmix_lr): New.
1553         (vec_setv2sf, vec_extractv2sf_0_le, vec_extractv2sf_0_be): New.
1554         (vec_extractv2sf_1, vec_extractv2sf): New.
1555
1556 2005-06-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1557
1558         * combine.c (make_compound_operation): Use simplify_subreg.  Delete
1559         a optimization already done by simplify_subreg.
1560
1561 2005-06-19  Ulrich Weigand  <uweigand@de.ibm.com>
1562
1563         * loop.c (scan_loop): Do not consider insns setting the frame
1564         pointer to be candidates for hoisting.
1565
1566 2005-06-19  Uros Bizjak  <uros@kss-loka.si>
1567
1568         * config/i386/i386.md (*cmpfp_0_sf, *cmpfp_0_df, cmpfp_0_xf):
1569         Remove instruction patterns.
1570         (*cmpfp_0): New instruction pattern. Set "unit" attribute to "i387".
1571         (*cmpfp_sf, *cmpfp_df, *cmpfp_xf, *cmpfp_u, *_cmpfp_<mode>):
1572         Set "unit" attribute to "i387".
1573         (*pushsf, *pushsf_rex64, *pushdf_nointeger, *pushdf_integer)
1574         (*pushxf_nointeger, *pushxf_integer): Set "unit" attribute to "i387"
1575         for alternative 0.
1576         (*truncdfsf_mixed, *truncdfsf_i387, *truncxfsf2_mixed)
1577         (*truncxfsf2_i387, *truncxfdf2_mixed, *truncxfdf2_i387): Set "unit"
1578         attribute to "i387" when "type" attribute equals "multi".
1579         (*floathisf2_i387, *floatsisf2_mixed, *floatsisf2_i387)
1580         (*floatdisf2_mixed, *floatdisf2_i387, *floathidf2_i387)
1581         (*floatsidf2_mixed, *floatsidf2_i387, *floatdidf2_mixed)
1582         (*floatdidf2_i387, floathixf2, floatsixf2, floatdixf2): Set "unit"
1583         attribute to "i387" when "type" attribute equals "multi".
1584         * config/i386/mmx.md (*mov<mode>_internal_rex64)
1585         (*mov<mode>_internal, *movv2sf_internal_rex64, *movv2sf_internal):
1586         Set "unit" attribute to "mmx" when "type" attribute equals "ssecvt".
1587         (mmx_pmovmskb): Correct wrong "type" and "mode" attributes.
1588         * config/i386/sse.md (sse_cvtps2pi, sse_cvttps2pi, sse_cvtpd2di)
1589         (sse_cvttpd2pi): Set "unit" attribute to "mmx".
1590         (sse2_cvtpi2pd): Split register constraints. Set "unit" attribute
1591         to "mmx" for "y" operand 1.
1592
1593 2005-06-19  Uros Bizjak  <uros@kss-loka.si>
1594
1595         * config/i386/i386.c (ix86_function_arg_regno_p): Add MMX_REGNO_P
1596         for TARGET_MMX.  Use MMX_REGPARM_MAX and SSE_REGPARM_MAX for MMX
1597         and SSE registers to determine if regno is valid.
1598         (ix86_function_value_regno_p): Depend FIRST_FLOAT_REG on
1599         TARGET_FLOAT_RETURNS_IN_80387 also for TARGET_64BIT. Clean up.
1600
1601 2005-06-18  Richard Henderson  <rth@redhat.com>
1602
1603         * tree-complex.c (init_dont_simulate_again): Clear DONT_SIMULATE_AGAIN
1604         for control-altering statements; set it again for returns.
1605         (complex_visit_stmt): Return SSA_PROP_VARYING for stmts that are
1606         not MODIFY_EXPR.
1607
1608 2005-06-18  Richard Henderson  <rth@redhat.com>
1609
1610         PR tree-opt/22116
1611         * tree-ssa-pre.c (create_expression_by_pieces): Set
1612         DECL_COMPLEX_GIMPLE_REG_P.
1613         (insert_into_preds_of_block): Likewise.
1614
1615 2005-06-18  Steven Bosscher  <stevenb@suse.de>
1616
1617         * Makefile.in: Fix tree-cfgcleanup.c dependencies.
1618
1619 2005-06-18  Richard Henderson  <rth@redhat.com>
1620
1621         * expr.c (store_constructor): Use store of 0 to indicate value
1622         death instead of a clobber.
1623
1624         * config/i386/i386.c (ix86_expand_reduc_v4sf): New.
1625         * config/i386/i386-protos.h (ix86_expand_reduc_v4sf): Declare.
1626         * config/i386/sse.md (reduc_plus_v4sf): New.
1627         (reduc_smax_v4sf, reduc_smin_v4sf): New.
1628
1629 2005-06-18  James A. Morrison  <phython@gcc.gnu.org>
1630
1631         * fold_const (fold_binary): Fold X % (2**N) to X & (2**N - 1) for
1632         nonnegative values of X.
1633
1634 2005-06-18  Uros Bizjak  <uros@kss-loka.si>
1635
1636         * doc/md.texi (Standard Names): Change insn pattern name
1637         from truncM2 to btruncM2 for 'trunc' built-in description.
1638         Add rintM2 insn pattern description.
1639
1640 2005-06-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1641
1642         * c-decl.c (locate_old_decl): Add format attribute.
1643         (implicit_decl_warning): Likewise.
1644
1645         * diagnostic.h (verbatim): Move ...
1646         * toplev.h (verbatim): ... here.  Add ATTRIBUTE_GCC_DIAG.
1647         * pretty-print.h (pp_verbatim): Add ATTRIBUTE_GCC_PPDIAG.
1648
1649 2005-06-18  Roger Sayle  <roger@eyesopen.com>
1650
1651         PR target/22083
1652         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Remove definition.
1653
1654 2005-06-18  Dorit Nuzman  <dorit@il.ibm.com>
1655
1656         * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): New
1657         tree-codes.
1658         * optabs.h (OTI_reduc_smax, OTI_reduc_umax, OTI_reduc_smin,
1659         OTI_reduc_umin, OTI_reduc_plus): New optabs for reduction. 
1660         (reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab,
1661         reduc_plus_optab): New optabs for reduction.
1662         * expr.c (expand_expr_real_1): Handle new tree-codes.
1663         * tree-inline.c (estimate_num_insns_1): Handle new tree-codes.
1664         * tree-pretty-print.c (dump_generic_node, op_prio, op_symbol): Handle
1665         new tree-codes.
1666         * optabs.c (optab_for_tree_code): Handle new tree-codes.
1667         (init_optabs): Initialize new optabs.
1668         * genopinit.c (optabs): Define handlers for new optabs. 
1669
1670         * tree-vect-analyze.c (vect_analyze_operations): Fail vectorization in
1671         case of a phi that is marked as relevant. Call vectorizable_reduction.
1672         (vect_mark_relevant): Phis may be marked as relevant.
1673         (vect_mark_stmts_to_be_vectorized): The use corresponding to the 
1674         reduction variable in a reduction stmt does not mark its defining phi
1675         as relevant. Update documentation accordingly.
1676         (vect_can_advance_ivs_p): Skip reduction phis.
1677         * tree-vect-transform.c (vect_get_vec_def_for_operand): Takes
1678         additional argument. Handle reduction.
1679         (vect_create_destination_var): Update call to vect_get_new_vect_var.
1680         Handle non-vector argument.
1681         (get_initial_def_for_reduction): New function.
1682         (vect_create_epilog_for_reduction): New function. 
1683         (vectorizable_reduction): New function.
1684         (vect_get_new_vect_var): Handle new vect_var_kind.       
1685         (vectorizable_assignment, vectorizable_operation, vectorizable_store,
1686         vectorizable_condition): Update call to vect_get_new_vect_var.
1687         (vect_transform_stmt): Call vectorizable_reduction.
1688         (vect_update_ivs_after_vectorizer): Skip reduction phis.
1689         (vect_transform_loop): Skip if stmt is both not relevant and not live.
1690         * tree-vectorizer.c (reduction_code_for_scalar_code): New function.
1691         (vect_is_simple_reduction): Was empty - added implementation.
1692         * tree-vectorizer.h (vect_scalar_var): New enum vect_var_kind value.
1693         (reduc_vec_info_type): New enum vect_def_type value.
1694         * config/rs6000/altivec.md (reduc_smax_v4si, reduc_smax_v4sf,
1695         reduc_umax_v4si, reduc_smin_v4si, reduc_umin_v4sf, reduc_smin_v4sf,
1696         reduc_plus_v4si, reduc_plus_v4sf): New define_expands.
1697
1698         * tree-vect-analyze.c (vect_determine_vectorization_factor): Remove
1699         ENABLE_CHECKING around gcc_assert.
1700         * tree-vect-transform.c (vect_do_peeling_for_loop_bound,
1701         (vect_do_peeling_for_alignment, vect_transform_loop, 
1702         vect_get_vec_def_for_operand): Likewise.
1703
1704 2005-06-18  Joseph S. Myers  <joseph@codesourcery.com>
1705
1706         * config/ia64/ia64.c (ia64_function_arg): Set up a PARALLEL for a
1707         big-endian unnamed __float80 value.
1708
1709 2005-06-18  Richard Henderson  <rth@redhat.com>
1710
1711         PR tree-opt/22103
1712         * tree-sra.c (generate_copy_inout): Handle SSA_NAME complex
1713         destinations.
1714
1715 2005-06-17  Richard Henderson  <rth@redhat.com>
1716
1717         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Use
1718         initialize_original_copy_tables and free_original_copy_tables.
1719         (vect_do_peeling_for_alignment): Likewise.
1720
1721 2005-06-17  Pat Haugen  <pthaugen@us.ibm.com>
1722
1723         * bb-reorder.c (find_traces_1_round): Use succ block frequency
1724         instead of edge frequency for calls to better_edge_p.
1725
1726 2005-06-17  Andrew Pinski  <pinskia@physics.uc.edu>
1727
1728         PR tree-opt/22105
1729         * tree-ssa-loop-im.c (for_each_index): Handle COMPLEX_CST.
1730
1731 2005-06-17  Steve Ellcey  <sje@cup.hp.com>
1732
1733         PR target/19889
1734         * config/ia64/hpux.h (FUNCTION_PROFILER): New (dummy).
1735         (PROFILE_HOOK): New.
1736         (PROFILE_BEFORE_PROLOGUE): Undef.
1737         (NO_PROFILE_COUNTERS): New.
1738         * config/ia64/ia64-protos.h (ia64_profile_hook): New.
1739         * config/ia64/ia64.c (ia64_compute_frame_size): Add ifdef.
1740         (gen_mcount_func_rtx): New.
1741         (ia64_profile_hook): New.
1742         * config/ia64/ia64.md (ip_value): New.
1743
1744 2005-06-17  Devang Patel  <dpatel@apple.com>
1745
1746         * config/rs6000/predicates.md (s5bit_cint_operand,
1747         u5bit_cint_operand): New.
1748         * config/rs6000/altivec.md (altivec_vspltb, altivec_vsplth,
1749         altivec_vspltisw_v4sf): Use new 5 bit constant operand predicates.
1750         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Fix signed
1751         5 bit constant check.
1752         
1753 2005-06-17  Richard Henderson  <rth@redhat.com>
1754
1755         * local-alloc.c (update_equiv_regs): Update reg_equiv_init
1756         properly when moving an initialization insn.
1757
1758 2005-06-17  Paolo Bonzini  <bonzini@gnu.org>
1759
1760         * aclocal.m4 (gcc_AC_CHECK_TOOL): Do not overwrite the
1761         passed variable.
1762         * configure.ac: Regenerate.
1763
1764 2005-06-17  Jan Hubicka  <jh@suse.cz>
1765
1766         * tree-optimize.c (execute_ipa_pass_list): New.
1767         (ipa_passes): Use it.
1768
1769 2005-06-16  Richard Henderson  <rth@redhat.com>
1770
1771         PR tree-opt/22022
1772         * tree-complex.c (update_phi_components): Avoid no-op moves.
1773
1774 2005-06-16  Joseph S. Myers  <joseph@codesourcery.com>
1775
1776         * Makefile.in (cc1-checksum.c): Use
1777         build/genchecksum$(build_exeext), not build/genchecksum$(exeext).
1778
1779 2005-06-16  Geoffrey Keating  <geoffk@apple.com>
1780
1781         * gengtype.c (adjust_field_rtx_def): Don't add a skip to
1782         basic_block types.
1783
1784         * config/t-slibgcc-darwin (SHLIB_SOVERSION): Rename from
1785         SHLIB_MINOR.
1786         (SHLIB_REVISION): Delete.
1787         (SHLIB_VERSTRING): Update to compensate.
1788         (SHLIB_SONAME): Just use one '.' in the name.
1789
1790 2005-06-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
1791
1792         PR tree-optimization/22018
1793         * tree-vrp.c (vrp_int_const_binop): Overhaul handling of overflow.
1794
1795 2005-06-16  Richard Henderson  <rth@redhat.com>
1796
1797         PR tree-opt/22035
1798         * builtins.c (fold_builtin_complex_mul): Remove.
1799         (fold_builtin_complex_div): Remove.
1800         (fold_builtin_1): Don't call them.
1801         * fold-const.c (fold_complex_add, fold_complex_mult_parts,
1802         fold_complex_mult, fold_complex_div_parts, fold_complex_div): Remove.
1803         (fold_binary): Don't call them.  Don't expand complex comparisons to
1804         elementary comparisons.
1805         * tree-complex.c (init_dont_simulate_again): Enhance search for 
1806         stmts that require decomposition.
1807         (complex_visit_stmt): Handle RETURN_EXPR properly.
1808         (create_components): Handle no referenced variables properly.
1809         * tree.h (fold_complex_mult_parts): Remove.
1810         (fold_complex_div_parts): Remove.
1811
1812 2005-06-16  Richard Guenther  <rguenth@gcc.gnu.org>
1813
1814         * doc/extend.texi: Document sseregparm target attribute.
1815         Clarify fastcall and regparm documentation.
1816         * config/i386/i386.h: Adjust float_in_sse documentation.
1817         * config/i386/i386.c: Add new target attribute sseregparm.
1818         (ix86_handle_cdecl_attribute, ix86_handle_regparm_attribute):
1819         Merge into ...
1820         (ix86_handle_cconv_attribute): ... here.  Also handle
1821         sseregparm attribute.
1822         (ix86_comp_type_attributes): Compare sseregparm attributes.
1823         (ix86_function_sseregparm): New function, split out from ...
1824         (init_cumulative_args): ... here.  Use to decide use
1825         of SSE registers and error in case of missing support.
1826         (ix86_value_regno): Likewise.
1827         (function_arg_advance): Do not bail out for DFmode if we need
1828         to pass doubles in registers.
1829         (function_arg): Likewise.
1830
1831 2005-06-16  Paolo Bonzini  <bonzini@gnu.org>
1832             Daniel Jacobowitz  <dan@codesourcery.com>
1833             Alan Modra <amodra.bigpond.net.au>
1834
1835         * configure.ac (gcc_version): Set near the beginning.
1836         (as, ld, nm): Do not link in-tree tools.  Set gcc_cv_* if tools are
1837         found in the tree.  Use gcc_AC_PROG to find the tools in the system.
1838         (objdump): Do not look for it.
1839         * Makefile.in (NM_FOR_TARGET): Point to ./nm
1840         (ORIGINAL_AS_FOR_TARGET, ORIGINAL_LD_FOR_TARGET,
1841         ORIGINAL_NM_FOR_TARGET): Substitute from autoconf.
1842         (as, ld, nm): New rules.
1843         (libgcc.mk): Depend on them.
1844         * aclocal.m4 (gcc_AC_TOOL_DIRS, gcc_AC_CHECK_TOOL,
1845         gcc_AC_BUILD_EXEEXT): New.
1846         (gcc_AC_CHECK_PROG_VER): Use gcc_AC_BUILD_EXEEXT.
1847         * configure: Regenerate.
1848
1849 2005-06-16  Jan Hubicka  <jh@suse.cz>
1850
1851         * basic-block.h (rtl_bb_info): Break out head_, end_,
1852         global_live_at_start, global_live_at_end from ...
1853         (basic_block_def): ... here; update all references
1854         (BB_RTL): New flag.
1855         (init_rtl_bb_info): Declare.
1856         * cfgexpand.c (expand_gimple_basic_block): Init bb info, set BB_RTL
1857         flag.
1858         * cfgrtl.c: Include ggc.h
1859         (create_basic_block_structure): Init bb info.
1860         (rtl_verify_flow_info_1): Check BB_RTL flag and rtl_bb_info pointer.
1861         (init_rtl_bb_info): New function.
1862         (rtl_merge_block, cfglayout_merge_block): Copy global_live_at_end here.
1863         * cfghooks.c (merge_block): Do not copy global_live_at_end here.
1864         * cfg.c (clear_bb_flags): Skip BB_RTL flag.
1865         (dump_flow_info): Gueard global_live_* dumping.
1866
1867         * Makefile.in (cfg.o): Add new dependencies.
1868         * basic-block.h (reorder_block_def): Kill
1869         original/copy/duplicated/copy_number fields.
1870         (BB_DUPLICATED): New flag.
1871         (initialize_original_copy_tables, free_original_copy_tables,
1872         set_bb_original, get_bb_original, set_bb_copy, get_bb_copy): New.
1873         * cfg.c: Include hashtab.h and alloc-pool.h
1874         (bb_original, bb_copy, original_copy_bb_pool): New static vars.
1875         (htab_bb_copy_original_entry): New struct.
1876         (bb_copy_original_hash, bb_copy_original_eq): New static functions.
1877         (initialize_original_copy_tables, free_original_copy_tables,
1878         set_bb_original, get_bb_original, set_bb_copy, get_bb_copy): New
1879         global functions.
1880         * cfghooks.c (duplicate_block): Update original/copy handling.
1881         * cfglayout.c (fixup_reorder_chain): Likewise.
1882         (cfg_layout_initialize): Initialize orignal_copy tables.
1883         (cfg_layout_finalize): FInalize original_copy tables.
1884         (can_copy_bbs_p): Use BB_DUPLICATED flag.
1885         (copy_bbs): Likewise.
1886         * cfgloopmanip.c (update-single_exits_after_duplication): Likewise.
1887         (duplicate_loop_to_header_edge): Likewise; update handling of
1888         copy_number.
1889         (loop_version): Likewise.
1890         * dominance.c (get_dominated_by_region): Use BB_DUPLICATED_FLAG.
1891         * except.c (expand_resx_expr): Check that reg->resume is not set.
1892         * loop-unroll.c (unroll_loop_constant_iterations,
1893         unroll_loop_runtime_iterations, apply_opt_in_copies): Update
1894         copy/original handling.
1895         * loop-unwitch.c (unswitch_loop): Likewise.
1896         * tree-cfg.c (create_bb): Do not initialize RBI.
1897         (disband_implicit_edges): Do not kill RBI.
1898         (add_phi_args_after_copy_bb): Use new original/copy mapping.
1899         (add_phi_args_after_copy): Use BB_DUPLICATED flag.
1900         (tree_duplicate_sese_region): Update original/copy handling.
1901         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
1902         * tree-ssa-loop-manip.c (copy_phi_node_args): Likewise.
1903         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
1904
1905 2005-06-15  Andrew Pinski  <pinskia@physics.uc.edu>
1906
1907         PR tree-opt/21923
1908         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Conversions between
1909         integer types whos ranges are different are not useless.
1910
1911 2005-06-15  Andrew Pinski  <pinskia@physics.uc.edu>
1912
1913         PR tree-opt/22024
1914         * tree-ssa-reassoc.c (init_reassoc): Also give chain decl a distint
1915         rank.
1916
1917 2005-06-15  Diego Novillo  <dnovillo@redhat.com>
1918
1919         * tree-ssa-structalias.c (dump_solution_for_var): Reformat
1920         output.
1921         (dump_sa_points_to_info): Make extern.
1922         (debug_sa_points_to_info): New.
1923         * tree-ssa-structalias.h (TREE_SSA_STRUCTALIAS_H): Rename from
1924         TREE_ALIAS_COMMON.
1925         (dump_sa_points_to_info): Declare.
1926         (debug_sa_points_to_info): Declare.
1927
1928 2005-06-15  Joseph S. Myers  <joseph@codesourcery.com>
1929
1930         * c-tree.h (default_function_array_conversion): Declare.
1931         * c-typeck.c (default_function_array_conversion): Export.  Correct
1932         comment.
1933         (default_conversion): Do not call
1934         default_function_array_conversion.  Do not allow FUNCTION_TYPE.
1935         (build_function_call): Call default_function_array_conversion on
1936         the function.
1937         (convert_arguments): Do not call it on the function arguments.
1938         (build_unary_op): Do not allow ARRAY_TYPE or FUNCTION_TYPE for
1939         TRUTH_NOT_EXPR.  Call default_function_array_conversion for taking
1940         address of ARRAY_REF.
1941         (build_compound_expr): Do not call
1942         default_function_array_conversion.
1943         (build_c_cast): Do not call default_function_array_conversion.
1944         (convert_for_assignment): Do not call default_conversion.
1945         (digest_init): Call default_function_array_conversion to convert
1946         string constants and compound literals to pointers, but not
1947         otherwise.
1948         (output_init_element): Likewise.
1949         (build_asm_expr): Do not call default_function_array_conversion.
1950         (c_process_expr_stmt): Likewise.
1951         (c_objc_common_truthvalue_conversion): Likewise.  Do not allow
1952         FUNCTION_TYPE.
1953         * c-parser.c (c_parser_expression_conv): New.
1954         (c_parser_asm_operands, c_parser_expr_list): Add convert_p
1955         argument.  All callers changed.  Call
1956         default_function_array_conversion if convert_p.
1957         (c_parser_initializer, c_parser_initval): Call
1958         default_function_array_conversion except for string constants and
1959         compound literals.
1960         (c_parser_initelt): Call default_function_array_conversion for
1961         ObjC expression received.
1962         (c_parser_statement_after_labels): Call c_parser_expression_conv
1963         for return and expression statements.
1964         (c_parser_paren_condition, c_parser_for_statement,
1965         c_parser_conditional_expression): Call c_parser_expression_conv.
1966         (c_parser_expr_no_commas, c_parser_conditional_expression,
1967         c_parser_binary_expression, c_parser_cast_expression,
1968         c_parser_unary_expression): Call
1969         default_function_array_conversion.
1970
1971 2005-06-15  Diego Novillo  <dnovillo@redhat.com>
1972
1973         * tree-vrp.c (vrp_int_const_binop): Do not handle MAX_EXPR
1974         when the result overflows.
1975
1976 2005-06-15  David Ung  <davidu@mips.com>
1977
1978         * config/mips/mips.c (mips_rtx_cost_data): Add cost for 4kc, 4kp,
1979         24k and 24kx.
1980         
1981 2005-06-15  Richard Sandiford  <richard@codesourcery.com>
1982
1983         * doc/invoke.texi (-mips16): Fix typo.
1984
1985 2005-06-15  David Ung  <davidu@mips.com>
1986
1987         * config/mips/mips.h (GENERATE_MIPS16E): New definition.
1988         * config/mips/mips.md (zero_extend<SHORT:mode><GPR:mode>2):
1989         Changed expand condition to exclude generating of "and" if
1990         GENERATE_MIPS16E is true.
1991         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): New pattern for
1992         matching mips16e zeb/zeh.
1993         (*extend<SHORT:mode><GPR:mode>2_mips16e): New pattern for matching
1994         mips16e seb/seh. 
1995         (*extend<SHORT:mode><GPR:mode>2): Disable this pattern for
1996         GENERATE_MIPS16E. 
1997         * doc/invoke.texi (MIPS Options): Add comment to -mips16
1998         indicating MIPS16e ASE is used if targetting for MIPS32 or MIPS64.
1999         
2000 2005-06-15  Diego Novillo  <dnovillo@redhat.com>
2001
2002         PR 22018
2003         * tree-vrp.c (vrp_int_const_binop): New.
2004         (extract_range_from_binary_expr): Call it.
2005         Unify handling division and multiplication.
2006
2007 2005-06-15  Aldy Hernandez  <aldyh@redhat.com>
2008
2009         * c-common.h (same_scalar_type_ignoring_signedness): Protoize.
2010
2011         * c-common.c (same_scalar_type_ignoring_signedness): New.
2012
2013         * c-typeck.c (build_binary_op): Check compatability of vector
2014         types.  Move error report after switch.
2015         Do not clobber code[01] on *_DIV_EXPR case.
2016
2017         * testsuite/gcc.dg/simd-1.c: Update error messages.
2018         * testsuite/gcc.dg/simd-1b.c: Re-enable tests.  Update error
2019         messages.
2020         * testsuite/gcc.dg/simd-2.c: Update error messages.
2021         * testsuite/gcc.dg/simd-4.c: New.
2022
2023 2005-06-15  Bernd Schmidt  <bernd.schmidt@analog.com>
2024
2025         * Makefile.in (local-alloc.o): Depend on $(GGC_H) and reload.h.
2026         * local-alloc.c: Include "ggc.h" and "reload.h".
2027         (struct equivalence): New member is_arg_equivalence.
2028         (local_alloc): Always call update_equiv_regs.
2029         (update_equiv_regs): Allocate reg_equiv_init; set reg_equiv_init_size.
2030         Detect equivalences made by stores to memory in a second pass.
2031         Return early if not optimizing.
2032         Initialize reg_equiv_init for all equivalences; treat equivalences for
2033         REG_EQUIV notes existing before this pass specially.
2034         (no_equiv): Don't clear reg_equiv_init or remove notes if the
2035         is_arg_equivalence field is set.
2036         * reload.h (reg_equiv_init, reg_equiv_init_size): Declare.
2037         * reload1.c (reg_equiv_init): No longer static.
2038         (reg_equiv_init_size): New variable.
2039         (reload): Don't allocate reg_equiv_init; don't free it when done but
2040         clear it.
2041         Restructure equivalence set up code not to set reg_equiv_init, but to
2042         clear it when we can't use an equivalence.
2043         Undo change disabling equivalences for MEM_READONLY_P memrefs.
2044         Dump equivalencing insns to dump_file.
2045
2046 2005-06-14  Richard Sandiford  <richard@codesourcery.com>
2047
2048         * config/mips/mips.c (machine_function): Add varargs_size field.
2049         (mips_setup_incoming_varargs): Store the amount of extra stack space
2050         there rather than in *pretend_size.  When saving registers, always
2051         expect virtual_incoming_args_rtx to point to the start of the
2052         pretend arguments.
2053         (mips_va_start): Remove alignment hack.  Handle all
2054         !EABI_FLOAT_VARARGS_P cases in the same way.
2055         (compute_frame_size): Handle varargs_size.  Remove the redundant
2056         !TARGET_OLDABI condition in the handling of pretend_args_size.
2057         (mips_initial_elimination_offset): Remove the now-redundant check
2058         of TARGET_NEWABI.
2059
2060 2005-06-14  Jeff Law  <law@redhat.com>
2061
2062         * tree-vrp.c (local_fold): Remove.
2063         (simplify_using_ranges): Use fold_convert, not local_fold.  Tweak
2064         DIV/MOD case slightly for readability.
2065
2066 2005-06-14  Frank Ch. Eigler  <fche@redhat.com>
2067
2068         PR mudflap/21023
2069         * tree-mudflap.c (mudflap_finish_file): Exclude non-public
2070         rather than static objects (!) from libmudflap registration.
2071
2072 2005-06-14  Richard Sandiford  <richard@codesourcery.com>
2073
2074         * opt-functions.awk (global_state_p, needs_state_p, static_var): New.
2075         (var_ref): Take the option's flags as a second parameter.  Check
2076         static_var.
2077         * optc-gen.awk: Declare local state variables.  Pass flags to var_ref.
2078
2079 2005-06-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
2080
2081         PR target/20301
2082         * config/sparc/sol2.h (ASM_GENERATE_INTERNAL_LABEL): Emit
2083         unsigned index numbers.
2084
2085 2005-06-13  Geoffrey Keating  <geoffk@apple.com>
2086
2087         * Makefile.in (install-man): Doesn't really depend on installdirs.
2088         (various rules for installing manpages): Do depend on installdirs.
2089
2090 2005-06-14  Nathan Sidwell  <nathan@codesourcery.com>
2091
2092         * unwind-dw2-fde-darwin.c (examine_objects): Fix aliasing in
2093         read_encoded_value_with_base call.
2094         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
2095         * unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
2096         * unwind-dw2.c (extract_cie_info): Fix aliasing in
2097         read_encoded_value call.
2098         (execute_cfa_program, uw_frame_state_for): Likewise.
2099
2100 2005-06-13  Roger Sayle  <roger@eyesopen.com>
2101
2102         PR rtl-optimization/22053
2103         * reg-stack.c (compensate_edge): Correct mistake in the assertion
2104         checking of EDGE_ABNORMAL_CALL edges; complex return values can
2105         result in the top two stack slots, st(0) and st(1), being live.
2106
2107 2005-06-13  Jeff Law  <law@redhat.com>
2108
2109         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): No longer
2110         simplify DIV, MOD or ABS expressions using VRP information.
2111         Remove WALK_DATA parameter.  Prototype and all callers updated.
2112         (eliminate_redundant_computations): Remove WALK_DATA parameter.
2113         Prototype and all callers updated.
2114         (optimize_stmt): WALK_DATA parameter is now unused.
2115
2116         * tree-vrp.c (local_fold): New function.  Like fold, but
2117         strips useless type conversions in the result.
2118         (simplify_using_ranges): New function, largely cribbed from
2119         tree-ssa-dom.c::simplify_rhs_and_lookup_avail_expr.
2120         (vrp_finalize): Call simplify_using_ranges.
2121
2122 2005-06-13  Mark Mitchell  <mark@codesourcery.com>
2123
2124         * config/i386/x86-64.h (ASM_SPEC): Explicitly pass --64 to the
2125         assembler in 64-bit mode.
2126
2127 2005-06-13  David Edelsohn  <edelsohn@gnu.org>
2128
2129         Revert scc_operand patch.
2130         * config/rs6000/predicates.md (scc_operand): Delete.
2131         * config/rs6000/rs6000.md (scc_operand): Change to scc_eq_operand.
2132
2133 2005-06-13  Zdenek Dvorak  <dvorakz@suse.cz>
2134
2135         PR middle-end/21985
2136         * fold-const.c (split_address_to_core_and_offset): Always return
2137         the address of the base object.
2138
2139 2005-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
2140
2141         * doc/invoke.texi (Blackfin Options): Document -mlong-calls.
2142
2143 2005-06-12  Richard Henderson  <rth@redhat.com>
2144
2145         PR tree-opt/21994
2146         * tree-complex.c (update_complex_components_on_edge): New.
2147         (update_parameter_components): Use it.
2148         (update_phi_components): Likewise.
2149         (expand_complex_move): Likewise for is_ctrl_altering_stmt.
2150
2151 2005-06-12  James A. Morrison  <phython@gcc.gnu.org>
2152
2153         PR tree-optimization/14796
2154         * fold-const (fold_binary): Transform (X << C) >> C into X & (-1>>C)
2155         for unsigned types.
2156
2157 2005-06-12  Kazu Hirata  <kazu@codesourcery.com>
2158
2159         * cgraphunit.c, tree-ssa-loop-ivopts.c,
2160         tree-ssa-structalias.c, tree-vectorizer.c, tree-vectorizer.h,
2161         config/sparc/sparc.c: Fix comment typos.
2162
2163 2005-06-12  Richard Earnshaw  <richard.earnshaw@arm.com>
2164
2165         * arm/ieee754-df.s (aeabi_dcmpeq, aeabi_dcmplt, aeabi_dcmple)
2166         (aeabi_dcmpge, aeabi_dcmpgt): Maintain 8-byte stack alignment.
2167         * arm/ieee754-sf.s (aeabi_l2f, aeabi_fcmpeq, aeabi_fcmplt)
2168         (aeabi_fcmple, aeabi_fcmpge, aeabi_fcmpgt): Likewise.
2169
2170 2005-06-12  James A. Morrison  <phython@gcc.gnu.org>
2171
2172         PR tree-optimization/14796
2173         * fold-const.c (fold_binary): Transform (A >> C) << C into
2174         one BIT_AND_EXPR.
2175         <shift>: Transform (A OP c1) OP c2 into A OP (c1 + c2).
2176
2177 2005-06-11  Geoffrey Keating  <geoffk@apple.com>
2178
2179         * config/rs6000/predicates.md (reg_or_arith_cint_operand): Delete.
2180         (reg_or_add_cint_operand): Rename from reg_or_add_cint64_operand.
2181         Handle SImode.
2182         (reg_or_sub_cint_operand): Likewise.
2183         (mask_operand): Handle DImode.
2184         (mask64_operand): Delete.
2185         (and64_operand): Delete.
2186         * config/rs6000/rs6000.c (num_insns_constant): Use mask_operand
2187         instead of mask64_operand.
2188         (print_operand): Likewise.
2189         (rs6000_rtx_costs): Use mask_operand and reg_or_add_cint_operand and
2190         reg_or_sub_cint_operand instead of *64_* variants.
2191         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Use mask_operand
2192         instead of mask64_operand.
2193         * config/rs6000/rs6000.md: Use mask_operand and and_operand instead
2194         of *64_* variants.
2195         (FP): New.
2196         (add_op2): Delete.
2197         (add<mode>3): Use reg_or_add_cint_operand.
2198         (sub_op2): Delete.
2199         (sub<mode>3): Use reg_or_sub_cint_operand.
2200         (udiv<mode>3, div<mode>3, div<mode>3_no_mq, mod<mode>3,
2201         mov<mode>_internal2, mov<mode>, cmp<mode>, cmp<mode>,
2202         cmp<mode>_internal1, indirect_jump<mode>, ctr<mode>,
2203         ctr<mode>_internal1, ctr<mode>_internal2, ctr<mode>_internal5,
2204         ctr<mode>_internal6, save_fpregs_<mode>, return_internal_<mode>,
2205         return_and_restore_fpregs_<mode>, eh_set_lr_<mode>,
2206         various unnamed patterns): New.
2207         (udivsi3, divsi3, divsi3_no_mq, modsi3, movsi_internal2, movsi,
2208         cmpsi, cmpsi_internal1, indirect_jumpsi, ctrsi, ctrsi_internal1,
2209         ctrsi_internal2, ctrsi_internal5, ctrsi_internal6, save_fpregs_si,
2210         return_internal_si, return_and_restore_fpregs_si, eh_set_lr_si,
2211         udivdi3, divdi3, divdi3_no_mq, moddi3, movdi_internal2, movdi,
2212         cmpdi, cmpdi_internal1, indirect_jumpdi, ctrdi, ctrdi_internal1,
2213         ctrdi_internal2, ctrdi_internal5, ctrdi_internal6, save_fpregs_di,
2214         return_internal_di, return_and_restore_fpregs_di, eh_set_lr_di,
2215         movhi, movqi, cmpsf, cmpdf, cmptf, various unnamed patterns):
2216         Delete.
2217
2218 2005-06-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2219
2220         * rtl.h (to_rtx_code): Remove.
2221         * machmode.h (to_machine_mode): Likewise.
2222         * read-rtl.c (apply_mode_macro): Replace to_machine_mode with
2223         explicit cast.
2224         (apply_mode_maps): Likewise.
2225         (read_rtx_1): Likewise.
2226         (apply_code_macro): Replace to to_rtx_code with explicit cast.
2227         (check_code_macro): Likewise.
2228         (read_rtx_1): Likewise.
2229
2230 2005-06-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2231
2232         * c-typeck.c (convert_for_assignment): Avoid checking
2233         OPT_Wc___compat, as it is always true.
2234
2235 2005-06-11  David Edelsohn  <edelsohn@gnu.org>
2236
2237         * config/rs6000/rs6000.md (eq<mode>_compare): Restrict to Pmode.
2238
2239 2005-06-11  Daniel Berlin  <dberlin@dberlin.org>
2240
2241         Fix PR tree-optimization/22005
2242         Fix PR tree-optimization/22025
2243         
2244         * tree-ssa-structalias.c (struct variable_info): Add has_union
2245         member.
2246         (create_variable_info_for):  Mark variables containing unions.
2247         Don't sort the field stack if notokay is true.
2248         (find_what_p_points_to): Convert variables containing unions back
2249         to their SFT's if necessary.
2250         
2251 2005-06-11  Daniel Berlin  <dberlin@dberlin.org>
2252
2253         * lambda-code.c (replace_uses_equiv_to_x_with_y): Verify the step
2254         is an INTEGER_CST before calling int_cst_value.
2255
2256 2005-06-10  Uros Bizjak  <uros@kss-loka.si>
2257
2258         PR target/21981
2259         * config/i386/i386.c (ix86_function_value_regno_p): Return true
2260         for FIRST_MMX_REG if TARGET_MMX.
2261         (ix86_return_in_memory): Return 1 for MMX/3dNow vectors. Delete
2262         wrong comment.
2263         (ix86_struct_value_rtx): Emit warning for MMX ABI violations.
2264         (ix86_value_regno): Return FIRST_MMX_REG for MMX vector modes.
2265
2266 2005-06-10  Daniel Berlin  <dberlin@dberlin.org>
2267
2268         * lambda-code.c (replace_uses_equiv_to_x_with_y): Check step
2269         and access function against chrec_dont_know.
2270           
2271 2005-06-10  Daniel Berlin  <dberlin@dberlin.org>
2272
2273         * lambda-code.c (replace_uses_of_x_with_y): Renamed and rewritten
2274         slightly.
2275         (exit_phi_for_loop_p): New function.
2276         (can_put_in_inner_loop): Ditto.
2277         (can_convert_to_perfect_nest): Ditto.
2278         (perfect_nestify): Create iv with right type.
2279         Rewrite statements in correct order.    
2280
2281 2005-06-10  Keith Besaw  <kbesaw@us.ibm.com>
2282
2283         * tree-ssa-alias.c (new_type_alias): Use existing type
2284         tag if VAR has just one in its may_aliases list.
2285
2286 2005-06-10  Fariborz Jahanian <fjahanian@apple.com>
2287
2288         * rs6000/predicates.md (scc_operand): New.
2289         * rs6000/rs6000.md : Use scc_operand for eq:SI compares.
2290
2291 2005-06-10  Dorit Nuzman  <dorit@il.ibm.com>
2292
2293         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): DRs whose
2294         dependence-distance modulo VF is 0 are recorded in the 
2295         SAME_ALIGN_REFs VEC in each DR.
2296         (vect_enhance_data_refs_alignment): Avoid 80 column overflow. The
2297         alignment information of DRs that are in the SAME_ALIGN_REFs VEC of the
2298         DR we want to peel for, is set to 0.
2299         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Fix printout.
2300         * tree-vectorizer.c (destroy_loop_vec_info): Free the SAME_ALIGN_REFs
2301         VEC.
2302         * tree-vectorizer.h (dr_p): New type. Defined to use the VEC API.
2303         (_stmt_vec_info): Added new field same_align_refs.
2304         (STMT_VINFO_SAME_ALIGN_REFS): New macro.
2305
2306 2005-06-10  Nathan Sidwell  <nathan@codesourcery.com>
2307
2308         * vec.h (VEC_safe_grow): Append MEM_STAT_INFO.
2309
2310 2005-06-10  Alan Modra  <amodra@bigpond.net.au>
2311
2312         * config/rs6000/linux.h (NO_PROFILE_COUNTERS): Define.
2313         * config/rs6000/linux64.h (NO_PROFILE_COUNTERS): Define as 1.
2314         * config/rs6000/rs6000.c (output_function_profiler): Obey
2315         NO_PROFILE_COUNTERS.  Handle TARGET_SECURE_PLT.  Use "bcl 20,31"
2316         for -fPIC.  Delete save_lr and substitute its value into strings.
2317
2318 2005-06-09  Dale Johannesen  <dalej@apple.com>
2319
2320         * config/i386/i386.c (optimization_options):  Make -fno-math-errno
2321         the default on Darwin.
2322         * config/rs6000/rs6000.c (optimization_options):  Ditto.
2323         * doc/invoke.texi (-fno-math-errno): Document.
2324
2325 2005-06-09  Dale Johannesen  <dalej@apple.com>
2326
2327         * config/rs6000/rs6000.c (TARGET_INSN_VALID_WITHIN_DOLOOP):
2328         Change to TARGET_INVALID_WITHIN_DOLOOP.
2329
2330 2005-06-09  David Edelsohn  <edelsohn@gnu.org>
2331
2332         * config/rs6000/rs6000.md (eq): Convert to define_insn_and_split.
2333         * config/rs6000/predicates.md (scc_eq_operand): New.
2334
2335 2005-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
2336
2337         * config/sh/sh.md (mextr_rl): Set buffer size properly.
2338         (*mextr_lr): Likewise.
2339
2340 2005-06-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2341
2342         PR c/21759
2343         * c.opt (Wc++-compat): New.
2344         * doc/invoke.texi (-Wc++-compat): Document.
2345         * c-typeck.c (convert_for_assignment): Check for implicit
2346         conversion void* -> T*.
2347
2348 2005-06-09  Gabriel Dos Reis  <gdr@integrable-solutions.edu>
2349
2350         * machmode.h (to_machine_mode): New.
2351         * rtl.h (to_rtx_code): Likewise.
2352         * read-rtl.c (apply_mode_macro): Convert mode to machine_mode.
2353         (print_c_condition): Convert return value of htab_find().
2354         (apply_code_macro): Add explicit cast when convertin to enums.
2355         (apply_mode_maps): Likewise.
2356         (check_code_macro): Likewise.
2357         (read_rtx_1): Likewise.
2358
2359 2005-06-09  Richard Henderson  <rth@redhat.com>
2360
2361         * config/ia64/ia64.c (update_set_flags): Just return for IF_THEN_ELSE.
2362         Use SCALAR_FLOAT_MODE_P.
2363         * config/ia64/vect.md (vcondv2sf): Remove code check on comparison.
2364         (fselect): Rename from fpcmp; use %F.
2365         (fpcmp): New.
2366
2367 2005-06-09  Jan Hubicka  <jh@suse.cz>
2368
2369         * cgraphunit.c (cgraph_create_edges): Do not walk BLOCK; finalize
2370         local statics when doing unit-at-a-time.
2371         (cgraph_varpool_assemble_pending_decls): Output debug info.
2372         * dwarf2out.c (decls_for_scope): Skip local statics.
2373         (dwarf2out_decl): Handle local statics.
2374         * passes.c (rest_of_decl_compilation): Do not differentiate
2375         local and global statics in unit-at-a-time.
2376         * tree-inline.c (remap_decls): Put local static into
2377         unexpanded_vars_list rather than introducing duplicated VAR_DECL
2378         node.
2379
2380 2005-06-09  Daniel Berlin  <dberlin@dberlin.org>
2381
2382         * config/rs6000/rs6000.c: (rs6000_insn_valid_within_doloop): Fix
2383         prototype.
2384
2385 2005-06-08  Daniel Berlin  <dberlin@dberlin.org>
2386
2387         * Makefile.in (OBJS-common): Add tree-ssa-structalias.o.
2388         * tree-flow.h (find_what_p_points_to): Add prototype.
2389         (push_fields_onto_fieldstack): Ditto.
2390         (sort_fieldstack): Ditto.
2391         * tree-optimize.c (init_tree_optimization_passes): Add
2392         pass_build_pta and pass_del_pta.
2393         * tree-pass.h (pass_build_pta): New structure.
2394         (pass_del_pta): Ditto.
2395         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Disambiguate
2396         using new alias analyzer.
2397         (push_fields_onto_fieldstack): Removed from here.
2398         (bitpos_of_field): Ditto.
2399         (fieldoff_compare): Ditto.
2400         * tree-ssa-structalias.c: New file.
2401         * tree-ssa-structalias.h: Ditto.
2402
2403 2005-06-09  Nathan Sidwell  <nathan@codesourcery.com>
2404
2405         * c-typeck.c (build_c_cast): Check type punning on COMPONENT_REF
2406         too.
2407
2408 2005-06-09  Bernd Schmidt  <bernd.schmidt@analog.com>
2409
2410         * config/bfin/bfin.c (enum bfin_builtins): Moved here from...
2411         * config/bfin/bfin.h (enum bfin_builtins): ... here.
2412
2413 2005-06-09  Adrian Straetling  <straetling@de.ibm.com>
2414
2415         * target.h (insn_valid_within_doloop): Rename into
2416         "invalid_within_doloop".  Change return type to "const char *".
2417         Update Comment.
2418         * targhooks.h (default_insn_valid_within_doloop): Rename into
2419         "default_invalid_within_doloop". 
2420         * targhooks.c (default_insn_valid_within_doloop): Likewise.
2421         Update Comment.
2422         * target-def.h (TARGET_INSN_VALID_WITHIN_DOLOOP): Rename target hook
2423         into "TARGET_INVALID_WITHIN_DOLOOP". Default it to
2424         "default_invalid_within_doloop".
2425         * hooks.c (hook_constcharptr_rtx_null): New function.
2426         (hook_bool_rtx_true): Remove.
2427         * hooks.h (hook_constcharptr_rtx_null): Declare.
2428         (hook_bool_rtx_true): Remove.
2429         * loop-doloop.c (doloop_valid_p): Temporarily store return value of
2430         "invalid_within_doloop" and print error message if non-null.
2431         Update Comment.
2432         * doc/tm.texi: Update documentation.
2433         * config/s390/s390.c: Adjust to new hook name and new default hook.
2434         * config/rs6000/rs6000.c: (rs6000_insn_valid_within_doloop): Rename
2435         into "rs6000_invalid_within_doloop".
2436         (rs6000_invalid_within_doloop): Change return type to "static const
2437         char *" and replace return values.  Update Comment.
2438
2439 2005-06-09  Bernd Schmidt  <bernd.schmidt@analog.com>
2440
2441         * config/bfin/bfin.opt (mlong-calls): New.
2442         * config/bfin/predicates.md (call_insn_operand): Disallow SYMBOL_REF
2443         if TARGET_LONG_CALLS.
2444
2445 2005-06-09  Richard Henderson  <rth@redhat.com>
2446
2447         PR tree-opt/20610
2448         * tree.h (DECL_COMPLEX_GIMPLE_REG_P): New.
2449         (struct tree_decl): Add gimple_reg_flag.
2450         * integrate.c (copy_decl_for_inlining): Copy it.
2451         * gimplify.c (internal_get_tmp_var): Set it.
2452         (gimplify_bind_expr): Likewise.
2453         (gimplify_function_tree): Likewise.
2454         (gimplify_modify_expr_complex_part): New.
2455         (gimplify_modify_expr): Use it.
2456         * tree-gimple.c (is_gimple_reg_type): Allow complex.
2457         (is_gimple_reg): Allow complex with DECL_COMPLEX_GIMPLE_REG_P set.
2458
2459         * tree-complex.c (complex_lattice_t): New.
2460         (complex_lattice_values, complex_variable_components): New.
2461         (some_nonzerop, find_lattice_value, is_complex_reg,
2462         init_parameter_lattice_values, init_dont_simulate_again, 
2463         complex_visit_stmt, complex_visit_phi, create_components,
2464         update_complex_components, update_parameter_components, 
2465         update_phi_components, update_all_vops, expand_complex_move): New.
2466         (extract_component): Handle INDIRECT_REF, COMPONENT_REF, ARRAY_REF,
2467         SSA_NAME.
2468         (update_complex_assignment): Use update_complex_components;
2469         handle updates of return_expr properly.
2470         (expand_complex_addition): Use complex lattice values.
2471         (expand_complex_multiplication): Likewise.
2472         (expand_complex_division): Likewise.
2473         (expand_complex_libcall): Use update_complex_components.
2474         (expand_complex_comparison): Use update_stmt.
2475         (expand_complex_operations_1): Use expand_complex_move, retrieve
2476         lattice values.
2477         (tree_lower_complex): Compute lattice values.
2478         (tree_lower_complex_O0): Duplicate from tree_lower_complex.
2479         (pass_lower_complex_O0): Rename from pass_lower_complex.
2480         (pass_lower_complex, gate_no_optimization): New.
2481         * tree-optimize.c (init_tree_optimization_passes): Update for
2482         complex pass changes.
2483         * tree-pass.h (pass_lower_complex_O0): Declare.
2484
2485 2005-06-08  Dale Johannesen  <dalej@apple.com>
2486
2487         * config/darwin.c (darwin_binds_local_p):  New.
2488         * config/darwin-protos.h (darwin_binds_local_p):  Declare it.
2489         * config/i386/i386.c (TARGET_BINDS_LOCAL_P):  Use it for TARGET_MACHO.
2490         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Remove.
2491         (TARGET_BINDS_LOCAL_P):  Change it to darwin_binds_local_p.
2492
2493 2005-06-08  Aldy Hernandez  <aldyh@redhat.com>
2494
2495         * config/rs6000/rs6000.h: Remove rs6000_long_double_size_string,
2496         rs6000_isel, rs6000_spe, rs6000_alignment_string,
2497         rs6000_sched_restricted_insns_priority_str,
2498         rs6000_sched_restricted_insns_priority, rs6000_abi_string.
2499
2500 2005-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
2501
2502         * tree-ssa-address.c (addr_for_mem_ref): Use LAST_VIRTUAL_REGISTER
2503         instead of FIRST_PSEUDO_REGISTER for creating pseudoregisters.
2504         * tree-ssa-loop-ivopts.c (add_cost, multiply_by_cost,
2505         multiplier_allowed_in_address_p, get_address_cost): Ditto.
2506
2507 2005-06-08  Richard Henderson  <rth@redhat.com>
2508
2509         * config/ia64/ia64.h (NO_PROFILE_COUNTERS): New.
2510         * config/ia64/ia64.c (ia64_output_function_profiler): Honor it.
2511         Emit out3 load right after alloc.
2512
2513 2005-06-08  Aldy Hernandez  <aldyh@redhat.com>
2514
2515         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2516         rs6000_explicit_options.
2517
2518 2005-06-08  Richard Henderson  <rth@redhat.com>
2519
2520         * config/ia64/ia64.h (FUNCTION_PROFILER): Move implementation ...
2521         * config/ia64/ia64.c (ia64_output_function_profiler): ... here; add
2522         unwind markup.
2523         * config/ia64/ia64-protos.h (ia64_output_function_profiler): Declare.
2524
2525 2005-06-08  Joseph S. Myers  <joseph@codesourcery.com>
2526
2527         * config/sol2-c.c (cmn_err_char_table): Allow width for %b
2528         formats.
2529
2530 2005-06-08  James A. Morrison  <phython@gcc.gnu.org>
2531
2532         PR target/20666
2533         * config/sparc/sparc.c (sparc_fold_builtin): New function
2534         (sparc_vis_mul8x16): New function.
2535         (sparc_handle_vis_mul8x16): New function.
2536         (TARGET_FOLD_BUILTIN): Define to sparc_fold_builtin.
2537
2538 2005-06-08  David Edelsohn  <edelsohn@gnu.org>
2539
2540         * config/rs6000/rs6000.md (call_indirect_nonlocal_aix32): Prefer
2541         CTR to LR.
2542         (call_indirect_nonlocal_aix64): Same.
2543         (call_value_indirect_nonlocal_aix32): Same.
2544         (call_value_indirect_nonlocal_aix64): Same.
2545
2546         PR target/10588
2547         (eq): Use CLZ splitter for compare with zero.
2548
2549 2005-06-08  Bernd Schmidt  <bernd.schmidt@analog.com>
2550
2551         * config/bfin/bfin.c (bfin_return_in_memory): Simplify; return
2552         everything larger than 8 bytes in memory.
2553
2554         * config/bfin/bfin.h (enum bfin_builtins): New.
2555         * config/bfin/bfin.md (UNSPEC_VOLATILE_CSYNC, UNSPEC_VOLATILE_SSYNC):
2556         New constants.
2557         (csync, ssync): New insn patterns.
2558         * config/bfin/bfin.c (bfin_init_builtins, bfin_expand_builtin):
2559         New functions.
2560         (def_builtin): New macro.
2561         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
2562
2563         From Jie Zhang  <jie.zhang@analog.com>
2564         * config/bfin/bfin.h (ASM_OUTPUT_ALIGN): Gas now emulates the
2565         behavior of the native assembler in VDSP. So change accordingly.
2566         
2567 2005-06-08  Sebastian Pop  <pop@cri.ensmp.fr>
2568
2569         * tree-data-ref.c (compute_estimated_nb_iterations,
2570         analyze_array_indexes, compute_overlap_steps_for_affine_1_2,
2571         analyze_subscript_affine_affine, find_data_references_in_loop):
2572         Fixed to use chrec_contains_undetermined to test the values of
2573         loop->estimated_nb_iterations.
2574         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
2575         Compute the estimation only when loop->estimated_nb_iterations
2576         has not yet been initialized.
2577         (convert_step_widening, scev_probably_wraps_p): Add a call to
2578         estimate_numbers_of_iterations_loop.
2579         * tree-vrp.c (execute_vrp): Don't call estimate_numbers_of_iterations.
2580
2581 2005-06-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
2582
2583         PR debug/21946
2584         * dwarf2out.c (add_loc_descr_op_piece): Move to the
2585         DWARF2_DEBUGGING_INFO section.
2586
2587 2005-06-08  Richard Henderson  <rth@redhat.com>
2588
2589         PR target/21721
2590         * config/ia64/ia64.c (emit_predicate_relation_info): Skip p0.
2591
2592 2005-06-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
2593
2594         PR target/21889
2595         * target.h (gcc_target) <asm_out>: New field output_dwarf_dtprel.
2596         * target-def.h (TARGET_ASM_OUTPUT_DWARF_DTPREL): New macro.
2597         (TARGET_ASM_OUT): Add it.
2598         * doc/tm.texi (Debugging Info): Document it.
2599         * dwarf2out.c (output_loc_operands) <INTERNAL_DW_OP_tls_addr>:
2600         Test it instead of ASM_OUTPUT_DWARF_DTPREL.
2601         (loc_descriptor_from_tree_1) <VAR_DECL>: Likewise.
2602         * system.h: Poison ASM_OUTPUT_DWARF_DTPREL.
2603         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Delete.
2604         * config/frv/frv.c (frv_output_dwarf_dtprel): Make static and unused.
2605         (gen_inlined_tls_plt): Remove unused variable MEM.
2606         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to frv_output_dwarf_dtprel.
2607         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
2608         * config/i386/i386-protos.h (i386_output_dwarf_dtprel): Delete.
2609         * config/i386/i386.c (i386_output_dwarf_dtprel): Make static and
2610         unused.
2611         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to i386_output_dwarf_dtprel.
2612         * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
2613         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): Delete.
2614         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Make static and
2615         unused.
2616         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to ia64_output_dwarf_dtprel.
2617         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
2618         * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Delete.
2619         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Make static and
2620         unused.
2621         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to rs6000_output_dwarf_dtprel
2622         * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
2623         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): Delete.
2624         * config/s390/s390.c (s390_output_dwarf_dtprel): Make static and
2625         unused.
2626         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to s390_output_dwarf_dtprel.
2627         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
2628         * config/sparc/sol2-gas.h (TARGET_SUN_TLS): Define to 0.
2629         (TARGET_GNU_TLS): Define to 1.
2630         * config/sparc/sparc-protos.h (sparc_output_dwarf_dtprel): Delete.
2631         * config/sparc/sparc.c (sparc_output_dwarf_dtprel): Make static and
2632         unused.
2633         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to sparc_output_dwarf_dtprel
2634         if TARGET_GNU_TLS only.
2635         * config/sparc/sparc.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
2636
2637         * config.gcc (sparc64-*-solaris2*): Include tm-dwarf2.h last.
2638         (sparc-*-solaris2*): Likewise on Solaris 7 and up.
2639
2640 2005-06-07  Dale Johannesen  <dalej@apple.com>
2641
2642         * config/i386/i386.md (movqi_1):  Fix case where source
2643         is memory and destination EDI.
2644
2645 2005-06-08  Kazu Hirata  <kazu@codesourcery.com>
2646
2647         * config/c4x/c4x.h (PREDICATE_CODES): Remove mem_operand.
2648
2649 2005-06-07  Eric Christopher  <echristo@redhat.com>
2650
2651         * system.h: Poison EXTRA_CC_MODES.
2652         * config/frv/frv.h (SELECT_CC_MODE): Rewrite comment.
2653         * config/ia64/ia64.h (SELECT_CC_MODE): Ditto.
2654         * doc/md.texi (Jump Patterns): Replace reference to
2655         EXTRA_CC_MODES with machine-modes.def.
2656         * doc/rtl.texi (Machine Modes): Ditto.
2657
2658 2005-06-07  Richard Henderson  <rth@redhat.com>
2659
2660         * varasm.c (initialize_cold_section_name): Fix alloca buffer overflow.
2661         (assemble_start_function): Fix strcmp confusion.
2662
2663 2005-06-07  Uros Bizjak  <uros@kss-loka.si>
2664
2665         * config/i386/i386.h (enum ix86_entity): New.
2666         (enum ix86_stack_slot): New.
2667         (OPTIMIZE_MODE_SWITCHING): Redefine to use
2668         ix86_optimize_mode_switching[] array.
2669         (NUM_MODES_FOR_MODE_SWITCHING): Redefine for 4 entities.
2670         (MODE_NEEDED): Use ix86_mode_needed() function.
2671         (EMIT_MODE_SET): Redefine for changed emit_i387_cw_initialization ()
2672         function.
2673         (struct machine_function): Use optimize_mode_switching[] array.
2674
2675         * config/i386/i386.c (MAX_386_STACK_LOCALS): Remove.
2676         (ix86_mode_needed): New function.
2677         (emit_i387_cw_initialization): Cleanup. Use mode to calculate
2678         correct stack positions for stored control words.
2679         (assign_386_stack_local): Use enum ix86_stack_slot. Change assert.
2680         (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR]: Change constant to
2681         SLOT_TEMP.
2682         [IX86_BUILTIN_STMXCSR]: Same.
2683
2684         * config/i386/i386-protos.h (assign_stack_local): Change prototype.
2685         (emit_i387_cw_initialization): Change prototype.
2686         (ix86_mode_needed): New prototype.
2687
2688         * config/i386/i386.md (i387_cw attribute): Change order of elements.
2689         (truncdfsf2, truncxfsf2, truncxfdf2, fix_trunc<mode>_fisttp_i387_1)
2690         (*fix_trunc<mode>_i387_1, lrint<mode>2, *fist<mode>2_floor_1)
2691         (*fist<mode>2_ceil_1): Change constant in call to
2692         assign_386_stack_local to SLOT_TEMP.
2693         (*fix_trunc<mode>_i387_1): Change constant in call to
2694         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_TRUNC.
2695         Use new ix86_optimize_mode_switching[] array.
2696         (frndintxf2_floor, *fist<mode>2_floor_1): Change constants in call to
2697         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_FLOOR.
2698         Use new ix86_optimize_mode_switching[] array.
2699         (frndintxf2_ceil, *fist<mode>2_ceil_1):  Change constants in call to
2700         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_CEIL.
2701         Use new ix86_optimize_mode_switching[] array.
2702         (frndintxf2_trunc): Change constants in call to
2703         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_TRUNC.
2704         Use new ix86_optimize_mode_switching[] array.
2705         (frndintxf2_mask_pm): Change constants in call to
2706         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_MASK_PM.
2707         Use new ix86_optimize_mode_switching[] array.
2708
2709         (define_peephole2): Change constant from 17 to FLAGS_REG;
2710
2711 2005-06-07  Richard Henderson  <rth@redhat.com>
2712
2713         PR rtl-opt/21528
2714         * rtlanal.c (reg_overlap_mentioned_p) <MEM>: Handle 'E' formats.
2715
2716 2005-06-07  Dale Johannesen  <dalej@apple.com>
2717
2718         * tree-nested.c (finalize_nesting_tree_1):  Disable
2719         warn_padded around layout_type call.
2720
2721 2005-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
2722
2723         * tree-ssa-loop-ivopts.c (rewrite_use_outer): Unshare the expression
2724         before emiting it.
2725
2726 2005-06-07  Eric Christopher  <echristo@redhat.com>
2727
2728         * config/mips/predicates.md: Revert previous patch.
2729
2730 2005-06-07  Jakub Jelinek  <jakub@redhat.com>
2731
2732         PR middle-end/21850
2733         * tree.c (get_unwidened): Stop at NOP_EXPR/CONVERT_EXPR that convert
2734         from vector types.
2735
2736 2005-06-07  Diego Novillo  <dnovillo@redhat.com>
2737
2738         * tree-ssa-threadupdate.c (struct thread_stats_d): Declare.
2739         (thread_stats): New local variable.
2740         (redirect_edges): Increment count of threaded edges.
2741         (thread_through_all_blocks): Initialize thread_stats.
2742         Display number of threaded jumps if TDF_STATS is enabled.
2743
2744 2005-06-07  Kazu Hirata  <kazu@codesourcery.com>
2745
2746         * sbitmap.h (sbitmap_iter_init): Consistently treat bit_num as
2747         the current bit index with no modulo.
2748
2749 2005-06-07  Sebastian Pop  <pop@cri.ensmp.fr>
2750
2751         PR 18403 and meta PR 21861.
2752         * Makefile.in (tree-chrec.o): Depend on CFGLOOP_H and TREE_FLOW_H.
2753         * tree-chrec.c: Include cfgloop.h and tree-flow.h.
2754         (evolution_function_is_invariant_rec_p,
2755         evolution_function_is_invariant_p): New.
2756         (chrec_convert): Use an extra parameter AT_STMT for refining the
2757         information that is passed down to convert_step.  Integrate the 
2758         code that was in count_ev_in_wider_type.
2759         * tree-chrec.h (count_ev_in_wider_type): Removed.
2760         (chrec_convert): Modify its declaration.
2761         (evolution_function_is_invariant_p): Declared.
2762         (evolution_function_is_affine_p): Use evolution_function_is_invariant_p.
2763         * tree-flow.h (can_count_iv_in_wider_type): Renamed convert_step.
2764         (scev_probably_wraps_p): Declared.
2765         * tree-scalar-evolution.c (count_ev_in_wider_type): Removed.
2766         (follow_ssa_edge_in_rhs, interpret_rhs_modify_expr):
2767         Use an extra parameter AT_STMT for refining the information that is
2768         passed down to convert_step.
2769         (follow_ssa_edge_inner_loop_phi, follow_ssa_edge,
2770         analyze_scalar_evolution_1): Initialize AT_STMT with the current
2771         analyzed statement.
2772         (instantiate_parameters_1): Don't know yet how to initialize AT_STMT.
2773         * tree-ssa-loop-ivopts.c (idx_find_step): Update the use of 
2774         can_count_iv_in_wider_type to use convert_step.
2775         * tree-ssa-loop-niter.c (can_count_iv_in_wider_type_bound): Move 
2776         code that is independent of the loop over the known iteration
2777         bounds to convert_step_widening, the rest is moved to
2778         proved_non_wrapping_p.
2779         (scev_probably_wraps_p): New.
2780         (can_count_iv_in_wider_type): Renamed convert_step.
2781         * tree-vrp.c (adjust_range_with_scev): Take an extra AT_STMT parameter.
2782         Use scev_probably_wraps_p for computing init_is_max.
2783         (vrp_visit_assignment): Pass the current analyzed statement to 
2784         adjust_range_with_scev.
2785         (execute_vrp): Call estimate_numbers_of_iterations for refining the 
2786         information provided by scev analyzer.
2787
2788 2005-06-07  Eric Christopher  <echristo@redhat.com>
2789
2790         * config/mips/predicates.md (sleu_operand): Use
2791         IN_RANGE to specify range of operand.
2792
2793 2005-06-07  Steven Bosscher  <stevenb@suse.de>
2794
2795         PR tree-optimization/21847
2796         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): With
2797         -fnon-call-exceptions, also mark statements inherently
2798         necessary if they may throw.
2799
2800 2005-06-07  Adrian Straetling  <straetling@de.ibm.com>
2801
2802         * config/s390/s390.md: ("UNSPECV_MB", "UNSPECV_CAS"): New constants.
2803         ("type"): Add "sem" to 'type' attribute.
2804         ("memory_barrier", "*memory_barrier", "sync_compare_and_swapdi",
2805         "sync_compare_and_swapsi", "sync_compare_and_swap_ccdi",
2806         "sync_compare_and_swap_ccsi", "*sync_compare_and_swap_ccdi",
2807         "*sync_compare_and_swap_ccsi"): New patterns.
2808         * config/s390/2064.md: ("z_sem"): New insn_reservation.
2809         * config/s390/2084.md: ("x_sem"): New insn_reservation.
2810         * config/s390/s390.c: (s390_compare_emitted): New global variable.
2811         (s390_emit_compare): Do not emit comparison again after cas.
2812         * config/s390/s390.h (s390_compare_emitted): Declare.
2813
2814 2005-06-07  Kazu Hirata  <kazu@codesourcery.com>
2815
2816         * sbitmap.h (sbitmap_iterator, sbitmap_iter_init,
2817         sbitmap_iter_cond, sbitmap_iter_next): New.
2818         * bt-load.c, cfganal.c, combine.c, ddg.c, flow.c,
2819         modulo-sched.c, sbitmap.c, sched-rgn.c, tree-into-ssa.c,
2820         tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Update
2821         uses of EXECUTE_IF_SET_IN_SBITMAP to the new style.
2822
2823 2005-06-07  Zdenek Dvorak  <dvorakz@suse.cz>
2824
2825         * tree-ssa-address.c: New file.
2826         * Makefile.in (tree-ssa-address.o): Add.
2827         * expr.c (expand_expr_real_1): Do not handle REF_ORIGINAL on
2828         INDIRECT_REFs.  Handle TARGET_MEM_REFs.
2829         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REFs.
2830         * tree-flow.h (struct mem_address): New.
2831         (struct affine_tree_combination): Moved from tree-ssa-loop-ivopts.c.
2832         (create_mem_ref, addr_for_mem_ref, get_address_description,
2833         maybe_fold_tmr, multiplier_allowed_in_address_p,
2834         multiply_by_cost):  Declare.
2835         * tree-mudflap.c (mf_xform_derefs_1): Handle TARGET_MEM_REFs.
2836         * tree-pretty-print.c (dump_generic_node): Ditto.
2837         * tree-ssa-loop-im.c (for_each_index): Ditto.
2838         * tree-ssa-loop-ivopts.c (may_be_unaligned_p,
2839         find_interesting_uses_address): Ditto.
2840         (rewrite_address_base, build_addr_strip_iref): Removed.
2841         (struct affine_tree_combination): Moved to tree-flow.h.
2842         (get_ref_tag, copy_ref_info): New functions.
2843         (rewrite_use_address): Produce TARGET_MEM_REFs.
2844         (tree_ssa_iv_optimize): Do not call update_ssa
2845         and rewrite_into_loop_closed_ssa.
2846         (tree_to_aff_combination): Use build_fold_addr_expr instead of
2847         build_addr_strip_iref.
2848         (unshare_aff_combination): New function.
2849         (fold_affine_sum): Removed.
2850         (get_computation_at): Use get_computation_aff.  Unshare the result.
2851         (get_computation_aff, multiplier_allowed_in_address_p): New function.
2852         (multiply_by_cost): Exported.
2853         (get_address_cost): Use multiplier_allowed_in_address_p.
2854         * tree-ssa-operands.c (get_tmr_operands): New function.
2855         (get_expr_operands): Handle TARGET_MEM_REFs.
2856         * tree.c (copy_node_stat): Copy annotations for TARGET_MEM_REFs.
2857         (build): Handle 7 arguments.
2858         (build7_stat): New function.
2859         * tree.def (TARGET_MEM_DEF): New.
2860         * tree.h (REF_ORIGINAL): Removed.
2861         (TMR_SYMBOL, TMR_BASE, TMR_INDEX, TMR_STEP, TMR_OFFSET, TMR_ORIGINAL,
2862         TMR_TAG, build7): New macros.
2863         (build7_stat, tree_mem_ref_addr, copy_mem_ref_info): Declare.
2864         * tree-ssa-ccp.c (fold_stmt_r): Call maybe_fold_tmr.
2865         * doc/c-tree.texi: Document TARGET_MEM_REF.
2866         * doc/tree-ssa.texi: Add TARGET_MEM_REF to gimple grammar.
2867
2868 2005-06-07  Jakub Jelinek  <jakub@redhat.com>
2869
2870         PR debug/21946
2871         * dwarf2out.c (add_loc_descr_op_piece): New function.
2872         (multiple_reg_loc_descriptor, concat_loc_descriptor,
2873         loc_descriptor): Use it.
2874         * var-tracking.c: Include regs.h and expr.h.
2875         (emit_note_insn_var_location): Skip over pieces where offset
2876         is smaller than previous offset plus previous piece mode size.
2877         Optimize adjacent hard registers or memory locations.
2878         * Makefile.in (var-tracking.o): Depend on $(REGS_H) and $(EXPR_H).
2879
2880 2005-06-07  Richard Guenther  <rguenth@gcc.gnu.org>
2881
2882         * c-typeck.c (c_finish_if_stmt): Use void_type_node as type
2883         for COND_EXPR.
2884         * gimplify.c (gimplify_cond_expr): No need to fix up the
2885         type of COND_EXPRs.
2886
2887 2005-06-07  Richard Guenther  <rguenth@gcc.gnu.org>
2888
2889         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Fix
2890         comments.
2891
2892 2005-06-07  Geoffrey Keating  <geoffk@apple.com>
2893
2894         * config/rs6000/host-darwin.c (segv_handler): Widen the possible
2895         'stwux' instructions that are considered to be stack decrements.
2896
2897         * rtlanal.c (subreg_offset_representable_p): Handle objects
2898         with holes.
2899
2900 2005-06-06  Uros Bizjak  <uros@kss-loka.si>
2901
2902         * mode-switching.c (optimize_mode_switching): Fix n_exprs parameter
2903         in call to pre_edge_lcm.
2904
2905 2005-06-06  Kaz Kojima  <kkojima@gcc.gnu.org>
2906
2907         * config/sh/linux-unwind.h (SH_DWARF_FRAME_XD0): Remove for SH5.
2908         (SH_DWARF_FRAME_PR, SH_DWARF_FRAME_GBR, SH_DWARF_FRAME_MACL)
2909         (SH_DWARF_FRAME_MACH, SH_DWARF_FRAME_PC, SH_DWARF_FRAME_FPUL):
2910         Likewise.
2911         (SH_DWARF_FRAME_FP0, SH_DWARF_FRAME_FPSCR): Define to the correct
2912         dwarf register number for SHmedia.
2913         (shmedia_fallback_frame_state): New.
2914         (MD_FALLBACK_FRAME_STATE_FOR): Define to it for SH5.
2915
2916         * config/sh/linux.h (FUNCTION_PROFILER): Provide SHMEDIA version.
2917
2918 2005-06-06  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2919
2920         * c-lex.c (lex_string): Use XOBFINISH.
2921         * collect2.c (extract_string, dump_file): Likewise.
2922         * dbxout.c (dbxout_finish_complex_stabs): Likewise.
2923         * gcc.c (init_spec, build_search_list, convert_filename, 
2924         set_collect_gcc_options, do_spec_2, do_spec_1, main): Likewise.
2925         * genpreds.c (write_predicate_subfunction): Likewise.
2926         * genflags.c (main): Likewise.
2927         * read-rtl.c (mode_attr_index, apply_macro_to_string, 
2928         join_c_conditions, read_quoted_string, read_braced_string, 
2929         read_rtx_1): Likewise.
2930         * stringpool.c (ggc_alloc_string): Likewise.
2931         * tlink.c (obstack_fgets, recompile_files): Likewise.
2932
2933 2005-06-06  Jakub Jelinek  <jakub@redhat.com>
2934
2935         * intl.h (G_): New macro.
2936         * rtl-error.c (error_for_asm, warning_for_asm): Use gmsgid
2937         instead of msgid for argument name.
2938         * tree-ssa.c (warn_uninit): Likewise.
2939         * c-parser.c (c_parser_error): Likewise.
2940         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
2941         * config/darwin-c.c (BAD): Likewise.
2942         * config/c4x/c4x-c.c (BAD): Likewise.
2943         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
2944         * c-errors.c (pedwarn_c99, pedwarn_c90): Likewise.
2945         * c-common.c (c_parse_error): Likewise.
2946         * diagnostic.c (diagnostic_set_info, verbatim, inform, warning,
2947         warning0, pedwarn, error, sorry, fatal_error, internal_error):
2948         Likewise.
2949         (fnotice): Use cmsgid instead of msgid for argument name.
2950         * gcov.c (fnotice): Likewise.
2951         * protoize.c (notice): Likewise.
2952         * final.c (output_operand_lossage): Likewise.
2953         * gcc.c (fatal, notice): Likewise.
2954         (error): Use gmsgid instead of msgid for argument name.
2955         * collect2.c (notice, fatal_perror, fatal): Use cmsgid instead
2956         of msgid for argument name.
2957         (error): Use gmsgid instead of msgid for argument name.
2958         * c-decl.c (locate_old_decl, implicit_decl_warning): Use G_()
2959         instead of N_().
2960         * c-typeck.c (readonly_error, convert_for_assignment): Likewise.
2961         * tree-inline.c (inline_forbidden_p_1): Likewise.
2962         * ABOUT-GCC-NLS: Require gettext 0.14.5 or later.  Mention the new
2963         conventions for marking translations.
2964         * doc/install.texi: Mention gettext 0.14.5 or later requirement.
2965
2966         * tree-chrec.c (reset_evolution_in_loop): Use build3 instead of
2967         build2.
2968
2969         * fold-const.c (operand_equal_p): Don't return 1, if element
2970         chains for 2 VECTOR_CSTs are not the same length.
2971
2972         PR regression/21897
2973         * fold-const.c (fold_ternary) <case BIT_FIELD_REF>: Don't crash if
2974         not all VECTOR_CST elements are given.
2975
2976         * combine.c (try_combine): Use hard_regno_nregs array instead of
2977         HARD_REGNO_NREGS macro.
2978         * config/rs6000/rs6000.c (rs6000_split_multireg_move,
2979         rs6000_register_move_cost, rs6000_memory_move_cost): Likewise.
2980         * config/ia64/ia64.c (mark_reg_gr_used_mask): Likewise.
2981
2982 2005-06-06  Daniel Berlin  <dberlin@dberlin.org>
2983
2984         * tree-ssa-reassoc.o: New.
2985         (OBJS-common): Add tree-ssa-reassoc.o
2986         * timevar.def: Add TV_TREE_REASSOC
2987         * tree-optimize.c (pass_reassoc): Add call.
2988         * tree-pass.h (pass_reassoc): Add.
2989         * tree-ssa-reassoc.c: New file.
2990
2991 2005-06-06  Eric Christopher  <echristo@redhat.com>
2992
2993         target/21927
2994         * expr.c (do_store_flag): Remove check for non-negative BRANCH_COST.
2995
2996 2005-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2997
2998         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard with
2999         HAVE_GAS_MAX_SKIP_P2ALIGN.
3000         (HAVE_AS_DWARF2_DEBUG_LINE): Remove.
3001
3002 2005-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3003
3004         * Makefile.in (mips-tfile.o): Add $(srcdir)/../include prefix to
3005         getopt.h dependency.
3006         (mips-tdump.o): Likewise.
3007
3008 2005-06-06  Jan Hubicka  <jh@suse.cz>
3009
3010         * predict.c (tree_predict_edge): Don't drop useless predictions;
3011         check that it is not called too late in the game.
3012         (gate_estimate_probability): New gate.
3013         (pass_profile): Gate.
3014         * tree-mudflap.c (mf_build_check_statement_for): Do not drop
3015         predictions; update CFG instead.
3016         * cfgrtl.c (rtl_verify_flow_info): Check that predcitions are consumed.
3017
3018 2005-06-06  Jie Zhang  <jie.zhang@analog.com>
3019
3020         * config.gcc (bfin*-uclinux*): New.
3021         * config/bfin/uclinux.h: New file.
3022
3023 2005-06-06  Ben Elliston  <bje@au.ibm.com>
3024
3025         * doc/md.texi (Insn Splitting): Fix some wording.
3026
3027 2005-06-05  David Edelsohn  <edelsohn@gnu.org>
3028
3029         * config/rs6000/rs6000.c (rs6000_emit_swdivsf): New function.
3030         (rs6000_emit_swdivdf): New function.
3031         * config/rs6000/rs6000.md (fres): New pattern.
3032         (divsf3): Add approximation through rs6000_emit_swdivsf.
3033         (fred): New pattern.
3034         (divdf3): Add approximation through rs6000_emit_swdivdf.
3035         * config/rs6000/rs6000-protos.h (rs6000_emit_swdivsf): Declare.
3036         (rs6000_emit_swdivdf): Declare.
3037         * config/rs6000/rs6000.opt (mswdiv): New option.
3038         * doc/invoke.texi (RS/6000 and PowerPC Options): Document mswdiv.
3039
3040 2005-06-05  Zdenek Dvorak  <dvorakz@suse.cz>
3041
3042         PR tree-optimization/21846
3043         * tree-cfg.c (replace_uses_by): Update information stored at loops.
3044         * tree-flow.h (substitute_in_loop_info): Declare.
3045         * tree-scalar-evolution.c (initialize_scalar_evolutions_analyzer):
3046         Ensure that chrec_dont_know and chrec_known have a type.
3047         * tree-ssa-loop-niter.c (substitute_in_loop_info): New function.
3048
3049 2005-06-05  Steven Bosscher  <stevenb@suse.de>
3050
3051         * config/i386/i386.c (x86_use_loop): Remove.
3052         * config/i386/i386.h (x86_use_loop): Remove extern decl.
3053         (TARGET_USE_LOOP): Remove.
3054         * config/i386/i386.md (doloop_end, doloop_end_internal): Remove.
3055         Also remove related define_splits.
3056
3057 2005-06-05  Dorit Nuzman  <dorit@il.ibm.com>
3058
3059         * tree-flow.h (stmt_ann_d): Move aux to ...
3060         (tree_ann_common_d): ... here.
3061         * tree-ssa-loop-im.c (LIM_DATA, determine_invariantness_stmt,
3062         move_computations_stmt, schedule_sm): Update references to
3063         aux.
3064         * tree-vectorizer.h (set_stmt_info, vinfo_for_stmt): Likewise.
3065         * tree-vect-transform.c (vect_create_index_for_vector_ref): Update
3066         call to set_stmt_info.
3067         (vect_transform_loop): Likewise.
3068         * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info):
3069         Likewise.
3070
3071         * tree-vect-analyze.c (vect_analyze_scalar_cycles): Made void instead of
3072         bool.
3073         (vect_mark_relevant): Takes two additional arguments - live_p and
3074         relevant_p. Set RELEVANT_P and LIVE_P according to these arguments.
3075         (vect_stmt_relevant_p): Differentiate between a live stmt and a
3076         relevant stmt. Return two values = live_p and relevant_p.
3077         (vect_mark_stmts_to_be_vectorized): Call vect_mark_relevant and
3078         vect_stmt_relevant_p with additional arguments. Phis are no longer
3079         put into the worklist (analyzed seperately in analyze_scalar_cycles).
3080         (vect_determine_vectorization_factor): Also check for LIVE_P, because a
3081         stmt that is marked as irrelevant and live, cause it's only used out
3082         side the loop, may need to be vectorized (e.g. reduction).
3083         (vect_analyze_operations): Examine phis. Call
3084         vectorizable_live_operation for for LIVE_P stmts. Check if
3085         need_to_vectorize.
3086         (vect_analyze_scalar_cycles): Update documentation. Don't fail
3087         vectorization - just classify the scalar cycles created by the loop
3088         phis. Call vect_is_simple_reduction.
3089         (vect_analyze_loop): Call to analyze_scalar_cycles moved earlier.
3090         * tree-vect-transform.c (vect_create_index_for_vector_ref): Update
3091         call to set_stmt_info.
3092         (vect_get_vec_def_for_operand): Code reorganized - the code that
3093         classifies the type of use was factored out to vect_is_simple_use.
3094         (vectorizable_store, vect_is_simple_cond): Call vect_is_simple_use with
3095         additional arguments.
3096         (vectorizable_assignment): Likewise. Also make sure the stmt is relevant
3097         and computes a loop_vec_def.
3098         (vectorizable_operation, vectorizable_load, vectorizable_condition):
3099         Likewise.
3100         (vectorizable_live_operation): New.
3101         (vect_transform_stmt): Handle LIVE_P stmts.
3102         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new fields
3103         STMT_VINFO_LIVE_P and STMT_VINFO_DEF_TYPE.
3104         (new_loop_vec_info, destroy_loop_vec_info): Also handle phis.
3105         (vect_is_simple_use): Determine the type of the def and return it
3106         in a new function argument. Consider vect_reduction_def and
3107         vect_induction_def, but for now these are not supported.
3108         (vect_is_simple_reduction): New. Empty for now.
3109         * tree-vectorizer.h (vect_def_type): New enum type.
3110         (_stmt_vec_info): Added new fields - live and _stmt_vec_info.
3111         (STMT_VINFO_LIVE_P, STMT_VINFO_DEF_TYPE): New accessor macros.
3112         (vect_is_simple_use): New arguments added to function declaration.
3113         (vect_is_simple_reduction): New function declaration.
3114         (vectorizable_live_operation): New function declaration.
3115
3116         * tree-vect-analyze.c (vect_can_advance_ivs_p): Add debug printout.
3117         (vect_can_advance_ivs_p): Likewise.
3118         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Likewise.
3119
3120 2005-06-05  Eric Christopher  <echristo@redhat.com>
3121
3122         * config/mips/mips.c (mips_rtx_costs): Remove unused variable.
3123
3124 2005-06-05  Hans-Peter Nilsson  <hp@bitrange.com>
3125
3126         PR target/21914
3127         * config/mmix/mmix.md ("*movdicc_real_foldable")
3128         ("*movdfcc_real_foldable", "*bCC_foldable")
3129         ("*bCC_inverted_foldable"): Specify DImode for register being
3130         compared.
3131
3132 2005-06-04  Roger Sayle  <roger@eyesopen.com>
3133
3134         * reg-stack.c (struct block_info_def): Correct grammar typo.
3135         (compensate_edge): Clean-up.  Perform as little work as possible
3136         when src and dest stacks match.  Avoid modifying block_info.
3137         Reorder and simplify assertion checks.  Avoid unnecessary copying
3138         of regstack structure.
3139         (convert_regs_1): Set the done flag here...
3140         (convert_regs_2): ... instead of here.
3141
3142 2005-06-04  Dale Johannesen  <dalej@apple.com>
3143
3144         * config/rs6000/rs6000.c (no_global_regs_above): New.
3145         (rs6000_emit_prologue):  Use it; cosmetic formatting fixes.
3146         (rs6000_emit_epilogue):  Use it; cosmetic formatting fixes.
3147         (rs6000_conditional_register_usage): Don't put Darwin PIC
3148         register in global_regs.
3149         (rs6000_stack_info):  Don't set lr_save_p just because Darwin 
3150         PIC reg used.
3151         (rs6000_emit_prologue):  Save LR in R0 around Darwin PIC setup,
3152         if not done by lr_save_p.
3153         * config/rs6000/rs6000.md (insnv1_internal1):  Back out 05-18 patch.
3154         Use rotate instead of ashift.
3155         (call_indirect_nonlocal_sysv):  Prefer CTR to LR.
3156         (call_value_indirect_nonlocal_sysv):  Ditto.
3157
3158 2005-06-04  Jan Hubicka  <jh@suse.cz>
3159
3160         * cgraphunit.c (cgraph_reset_node): Break out from ...
3161         (cgraph_finalize_function): ... here.
3162         (cgraph_finalize_compilation_unit): Reset nodes where backend
3163         removed the body.
3164
3165 2005-06-04  Richard Henderson  <rth@redhat.com>
3166
3167         PR target/21888
3168         * config/alpha/alpha.c (alpha_align_insns): Don't insert nops
3169         until we've passed initial ldgp.
3170
3171 2005-06-04  Daniel Berlin  <dberlin@dberlin.org>
3172
3173         * cfgexpand.c (expand_one_var): Use DECL_HAS_VALUE_EXPR_P.
3174         * dwarf2out.c (loc_descriptor_from_tree_1): Ditto.
3175         * expr.c (expand_var): Ditto.   
3176         * function.c (gimplify_parameters): Use SET_DECL_VALUE_EXPR too.
3177         * gimplify.c (gimplify_decl_expr): Ditto.
3178         (gimplify_expr): Ditto.
3179         * tree-mudflap.c (mf_decl_eligible_p): Use DECL_HAS_VALUE_EXPR_P.
3180         * tree.c (value_expr_for_decl): New.
3181         (print_value_expr_statistics): New.
3182         (init_ttree): Init value_expr_for_decl.
3183         (decl_value_expr_lookup): New.
3184         (decl_value_expr_insert): Ditto.
3185         (copy_node_stat): Copy DECL_VALUE_EXPR status.
3186         * tree.h (DECL_VALUE_EXPR): Use hashtable.
3187         (SET_DECL_VALUE_EXPR): New.
3188         (DECL_HAS_VALUE_EXPR_P): New.
3189
3190 2005-06-04  Steven Bosscher  <stevenb@suse.de>
3191
3192         * lcm.c: Move all mode-switching related functions from here...
3193         * mode-switching.c: ...to this new file.
3194         * doc/passes.texi: Update accordingly.
3195
3196         * basic-block.h (label_value_list): Remove extern decl.
3197         * cfgrtl.c (label_value_list): Remove.
3198         (can_delete_label_p): Don't look at it.
3199         * cfgcleanup.c (cleanup_cfg): Don't free it.
3200
3201         * common.opt: Don't refer to non-existing flag_alias_check.
3202
3203 2005-06-04  David Edelsohn  <edelsohn@gnu.org>
3204
3205         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power5.
3206
3207 2005-06-04  Kazu Hirata  <kazu@codesourcery.com>
3208
3209         * function.c (prologue, epilogue, sibcall_epilogue): Change
3210         their types to VEC(int,heap)*.
3211         (free_after_compilation): Free the three vectors above.
3212         (init_function_for_compilation, record_insns, contains,
3213         prologue_epilogue_contains, sibcall_epilogue_contains,
3214         reposition_prologue_and_epilogue_notes): Use VEC instead of
3215         VARRAY.  (init_function_once): Remove.
3216         * function.h: Remove the prototype for init_function_once.
3217         * toplev.c (backend_init): Don't call init_function_once.
3218
3219 2005-06-04  Jan Hubicka  <jh@suse.cz>
3220
3221         * predict.c (tree_predict_edge): Do not predict entry edge and
3222         single succestor edge.
3223
3224 2005-06-04  Joseph S. Myers  <joseph@codesourcery.com>
3225
3226         PR c/21873
3227         * c-typeck.c (push_init_level): Don't pop levels without braces if
3228         implicit == 1.
3229
3230 2005-06-03  Sebastian Pop  <pop@cri.ensmp.fr>
3231         
3232         * tree-data-ref.c (compute_self_dependence): New function.
3233         (compute_all_dependences): Use it.
3234
3235 2005-06-03  Geoffrey Keating  <geoffk@apple.com>
3236
3237         * c-parser.c (c_parser_parms_declarator): Don't use chainon().
3238         (c_parser_expr_list): Don't use chainon().
3239
3240         * config/darwin.h (LINK_SPEC): Pass -syslibroot to linker
3241         when -isysroot passed.
3242
3243 2005-06-03  Joseph S. Myers  <joseph@codesourcery.com>
3244
3245         PR c/21879
3246         * c-decl.c (start_function): Restore label_context_stack_se and
3247         label_context_stack_vm  if returning with an error.
3248
3249 2005-06-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3250
3251         * configure.ac: Check declaration for asprintf, needed by
3252         libiberty.h. 
3253         * configure: Regenerate.
3254         * config.in: Likewise.
3255
3256 2005-06-03  Diego Novillo  <dnovillo@redhat.com>
3257
3258         * tree-ssa-dom.c (record_edge_info): Use last_basic_block to
3259         allocate info array.
3260         * tree-vrp.c (extract_range_from_unary_expr): Set resulting
3261         range to varying in cast expressions that change
3262         TYPE_PRECISION.
3263
3264 2005-06-03  Eric Christopher  <echristo@redhat.com>
3265
3266         * config/mips/mips.opt: Add RejectNegative to divide-breaks and
3267         divide-traps.
3268
3269 2005-06-03  Jan Hubicka  <jh@suse.cz>
3270
3271         * basic-block.h (remove_predictions_associated_with_edge): Declare.
3272         * cfg.c (remove_edge): Use it.
3273         * predict.c (remove_predictions_associated_with_edge): New function.
3274
3275 2005-06-03  Pat Haugen  <pthaugen@us.ibm.com>
3276
3277         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
3278         Clear call_realy_used_regs[r2] when ABI_AIX.
3279
3280 2005-06-03  Richard Guenther  <rguenth@gcc.gnu.org>
3281
3282         PR middle-end/21858
3283         * fold-const.c (fold_binary): Fix type mismatches in folding
3284         of comparisons.
3285
3286 2005-06-03  Kazu Hirata  <kazu@codesourcery.com>
3287
3288         * cgraph.c, cgraphunit.c, config/mips/mips.c: Fix comment
3289         typos.
3290
3291 2005-06-03  Joseph S. Myers  <joseph@codesourcery.com>
3292
3293         * collect2.c (maybe_unlink): Use unlink_if_ordinary.
3294
3295 2005-06-02  Bernd Schmidt  <bernd.schmidt@analog.com>
3296
3297         * reload1.c (reload): Revert my previous patch.
3298
3299 2005-06-03  Nick Clifton  <nickc@redhat.com>
3300
3301         * config/arm/semi.h (ASM_SPEC): Fix typo passing -mfloat-abi to
3302         assembler.
3303
3304 2005-06-03  Kazu Hirata  <kazu@codesourcery.com>
3305
3306         PR tree-optimization/21849
3307         * tree-ssa-copy.c (dump_copy_of): Call sbitmap_zero.
3308
3309 2005-06-02  Richard Henderson  <rth@redhat.com>
3310
3311         * Makefile.in (tree-vect-generic.o): New.
3312         (OBJS-common, GTFILES, s-gtype): Add it.
3313         * tree-complex.c (build_replicated_const, vector_inner_type,
3314         vector_last_type, vector_last_nunits, build_word_mode_vector_type,
3315         elem_op_func, tree_vec_extract, do_unop, do_binop, do_plus_minus,
3316         do_negate, expand_vector_piecewise, expand_vector_parallel, 
3317         expand_vector_addition, expand_vector_operation, 
3318         type_for_widest_vector_mode, expand_vector_operations_1, 
3319         gate_expand_vector_operations, expand_vector_operations, 
3320         pass_lower_vector_ssa): Move to tree-vect-generic.c.
3321         (tree_lower_complex): Rename from tree_lower_operations.
3322         (pass_lower_complex): Rename from pass_pre_expand.
3323         * tree-vect-generic.c: New file.
3324         * tree-pass.h (pass_lower_complex): Rename from pass_pre_expand.
3325         (pass_lower_vector): New.
3326         * tree-optimize.c (init_tree_optimization_passes): Update to match.
3327
3328 2005-06-02  Richard Henderson  <rth@redhat.com>
3329
3330         * modulo-sched.c (doloop_register_get): Protect against 
3331         doloop_end not defined.
3332
3333 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
3334
3335         * config/sh/sh.c (general_movsrc_operand,
3336         general_movdst_operand, arith_reg_operand, arith_reg_dest,
3337         logical_reg_operand, int_gpr_dest, fp_arith_reg_operand,
3338         fp_arith_reg_dest, arith_operand, arith_reg_or_0_operand,
3339         xor_operand, cmp_operand, logical_operand, and_operand,
3340         fpscr_operand, fpul_operand, symbol_ref_operand,
3341         commutative_float_operator, noncommutative_float_operator,
3342         unary_float_operator, binary_float_operator,
3343         binary_logical_operator, equality_comparison_operator,
3344         greater_comparison_operator, less_comparison_operator,
3345         shift_operator, logical_operator, target_reg_operand,
3346         target_operand, mextr_bit_offset, extend_reg_operand,
3347         trunc_hi_operand, extend_reg_or_0_operand, minuend_operand,
3348         general_extend_operand, ua_address_operand,
3349         cache_address_operand, inqhi_operand, sh_rep_vec, sh_1el_vec,
3350         sh_const_vec, ua_offset, sh_register_operand, cmpsi_operand,
3351         shift_count_reg_operand, shift_count_operand,
3352         unaligned_load_operand): Move to ...
3353         * config/sh/predicates.md: ... here.
3354         * config/sh/sh.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
3355         Remove.
3356
3357 2005-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
3358
3359         * tree.c (build_common_builtin_nodes): Fix the return type on
3360         __builtin_memcmp.
3361
3362 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
3363
3364         * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Remove.
3365         (find_interesting_uses_address): Use build_fold_addr_expr instead.
3366         (strip_offset_1): Likewise.
3367         (tree_to_aff_combination): Likewise.
3368
3369 2005-06-02  DJ Delorie  <dj@redhat.com>
3370
3371         * convert.c (convert_to_pointer): Avoid recursion if no conversion
3372         is needed.
3373
3374 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
3375
3376         * tree-chrec.c (chrec_fold_plus_1): Ensure we build
3377         binary operations with the correct types.
3378         * tree-ssa-loo-ivopts.c (idx_find_step): Use sizetype
3379         for all computation.
3380
3381 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
3382
3383         * tree-vrp.c, config/arm/arm.md, config/arm/arm1020e.md,
3384         config/rs6000/rs6000.md: Fix comment typos.  Follow splling
3385         conventions.
3386         * doc/install.texi: Fix a typo.
3387
3388 2005-06-02  Jan Hubicka  <jh@suse.cz>
3389
3390         * cgraphunit.c (cgraph_function_and_variable_visibility): Extern
3391         inline functions are not local.
3392
3393 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
3394
3395         * gimplify.c (gimplify_ctx): Change the type of case_labels to
3396         VEC from VARRAY.
3397         (gimplify_switch_expr, gimplify_case_label_expr): Adjust uses
3398         of case_labels.
3399
3400 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
3401
3402         * c-typeck.c (build_indirect_ref): Build INDIRECT_REF
3403         with correct type.
3404
3405 2005-06-02  Ulrich Weigand  <uweigand@de.ibm.com>
3406
3407         * config/s390/s390.c (s390_add_execute): Do not handle out-of-pool
3408         execute templates.
3409         (s390_dump_pool): Likewise.
3410         (s390_mainpool_start, s390_mainpool_finish): Likewise.
3411         (s390_chunkify_start): Likewise.
3412         (s390_dump_execute): Remove.
3413         (s390_reorg): Handle out-of-pool execute templates.
3414
3415 2005-06-02  Adrian Straetling  <straetling@de.ibm.com>
3416
3417         * optabs.c: (expand_bool_compare_and_swap): Emit barrier after
3418           unconditional jump.
3419
3420 2005-06-02  Jan Hubicka  <jh@suse.cz>
3421
3422         * cgraph.c (cgraph_node): Maintain master clones.
3423         (cgraph_remove_node): Likewise.
3424         (availability_names): New static variable.
3425         (dump_cgraph_node): Dump availability.
3426         (dump_cgraph_varpool_node): Likewise.
3427         (cgraph_is_master_clone, cgraph_master_clone,
3428         cgraph_function_body_availability,
3429         cgraph_variable_initializer_availability): New functions.
3430         * cgraph.h (availability): New enum.
3431         (struct cgraph_node): Add master_clone.
3432         (cgraph_is_master_clone, cgraph_master_clone,
3433         cgraph_function_body_availability,
3434         cgraph_variable_initializer_availability): Declare.
3435         * cgraphunit.c (cgraph_expand_function): Setcgraph_function_flags_ready.
3436         (cgraph_remove_unreachable_nodes): Remove unreachable nodes.
3437         * ipa-inline.c (cgraph_decide_inlining): Do not call
3438         cgraph_remove_unreachable_nodes.
3439
3440         * cgraphunit.c (cgraph_function_and_variable_visibility): Fix typo in
3441         previous patch.
3442
3443 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
3444
3445         PR 21582
3446         * tree-vrp.c (nonnull_arg_p): New.
3447         (get_value_range): Call it.
3448
3449 2005-06-02  Eric Christopher  <echristo@redhat.com>
3450
3451         * config/mips/mips.h (processor_type): Remove PROCESSOR_DEFAULT,
3452         add PROCESSOR_MAX.
3453         (mips_rtx_cost_data): New datatype.
3454         (MEMORY_MOVE_COST): Use data from structure.
3455         (BRANCH_COST): Ditto.
3456         (LOGICAL_OP_NON_SHORT_CIRCUIT): Define to zero.
3457         * config/mips/mips.md (cpu): Rework for processor_type changes.
3458         * config/mips/mips.c (mips_cost): New variable.
3459         (DEFAULT_COSTS): Define.
3460         (mips_rtx_cost_data): New.
3461         (mips_rtx_costs): Use. Minor formatting changes. Use COSTS_N_INSNS
3462         for NEG cost. Add support for FLOAT, UNSIGNED_FLOAT, FIX,
3463         FLOAT_EXTEND, FLOAT_TRUNCATE, and SQRT.
3464         (override_options): Set cost data.
3465         (mips_register_move_cost): Formatting changes.
3466         (bdesc_arrays): Use PROCESSOR_MAX.
3467         (mips_init_builtins): Ditto.
3468
3469 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
3470
3471         PR 21765
3472         * doc/invoke.texi: Document -ftree-vrp.
3473
3474 2005-06-02  Dorit Nuzman  <dorit@il.ibm.com>
3475
3476         PR tree-optimization/21734
3477         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop): Use the
3478         phi_result when current_def is not available.
3479         (slpeel_update_phi_nodes_for_guard1): Don't fail if current_def is not
3480         available.      
3481
3482 2005-06-02  David Edelsohn  <edelsohn@gnu.org>
3483
3484         * config/rs6000/rs6000.c (rs6000_insn_valid_within_doloop): New.
3485         (TARGET_INSN_VALID_WITHIN_DOLOOP): Define.
3486
3487 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
3488
3489         * tree-vrp.c (has_assert_expr, maybe_add_assert_expr): Remove.
3490
3491 2005-06-02  Jan Hubicka  <jh@suse.cz>
3492
3493         * cgraph.c (dump_cgraph_node): Print new flags.
3494         (dump_cgraph_varpool_node): Likewise.
3495         (decide_variable_is_needed): Initialize externally_visible flag.
3496         * cgraph.h (cgraph_local_info): Add externally_visible flag.
3497         (cgraph_varpool_node): Likewise.
3498         (cgraph_function_flags_ready): Declare.
3499         * cgraph.c (cgraph_mark_local_functions): Rename to ...
3500         (cgraph_function_and_variable_visibility) ... this one; handle
3501         externally_visible flags.
3502         (decide_is_function_needed): Set externally_visible flag.
3503         (cgraph_finalize_function): Deal properly with early cleanups.
3504         (cgraph_optimize): Update call of
3505         cgraph_function_and_variable_visibility.
3506
3507 2005-06-02 Steven Bosscher  <stevenb@suse.de>
3508            Mostafa Hagog <mustafa@il.ibm.com>
3509
3510         * cfgloop.h (doloop_condition_get): Make external.
3511         * loop-doloop.c (doloop_condition_get): Generalize to make it
3512         usable in modulo-sched.c.
3513         * modulo-sched.c (doloop_register_get): Use
3514         doloop_condition_get instead of duplicating it.
3515
3516 2005-06-02  Bernd Schmidt  <bernd.schmidt@analog.com>
3517
3518         * reload1.c (reload): Undo 2005-04-20 change.  Make sure we detect
3519         the correct set of init_insns that need deletion.
3520         * local-alloc.c (update_equiv_regs): When substituting sole definition
3521         into sole use of a reg, delete it from liveness information.
3522
3523 2005-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
3524
3525         * config/sh/sh.h (TARGET_FPU_DOUBLE): Use MASK_SH4.
3526
3527 2005-06-01  Diego Novillo  <dnovillo@redhat.com>
3528
3529         PR 14341, PR 21332, PR 20701, PR 21029, PR 21086, PR 21090
3530         PR 21289, PR 21348, PR 21367, PR 21368, PR 21458.
3531         * fold-const.c (invert_tree_comparison): Make extern.
3532         * tree-flow.h (enum value_range_type): Move to tree-ssa-propagate.
3533         (struct value_range_def): Limewise.
3534         (get_value_range): Remove.
3535         (dump_value_range): Remove.
3536         (dump_all_value_ranges): Remove.
3537         (debug_all_value_ranges): Remove.
3538         (vrp_evaluate_conditional): Declare.
3539         * tree-ssa-propagate.c (struct prop_stats_d): Add field
3540         num_pred_folded.
3541         (substitute_and_fold): Add argument use_ranges_p.
3542         Update all callers.
3543         If use_ranges_p is true, call fold_predicate_in to fold
3544         predicates using range information.
3545         Ignore ASSERT_EXPRs.
3546         Change debugging output to only show statements that have been
3547         folded.
3548         (replace_phi_args_in): Move debugging output code from
3549         substitute and fold.
3550         (fold_predicate_in): New local function.
3551         * tree-ssa-propagate.h (enum value_range_type): Move from
3552         tree-flow.h.
3553         (struct value_range_d): Likewise.
3554         Add field 'equiv'. 
3555         (value_range_t): Rename from value_range.
3556         * tree-vrp.c (found_in_subgraph): Rename from found.
3557         (get_opposite_operand): Remove.
3558         (struct assert_locus_d): Declare.
3559         (assert_locus_t): Declare.
3560         (need_assert_for): Declare.
3561         (asserts_for): Declare.
3562         (blocks_visited): Declare.
3563         (vr_value): Declare.
3564         (set_value_range): Add argument 'equiv'.
3565         Don't drop to VARYING ranges that cover all values in the
3566         type.
3567         Make deep copy of equivalence set 'equiv'.
3568         (copy_value_range): New local function.
3569         (set_value_range_to_undefined): New local function.
3570         (compare_values): Return -2 if either value has overflowed.
3571         (range_includes_zero_p): New local function.
3572         (extract_range_from_assert): Flip the predicate code if the
3573         name being asserted is on the RHS of the predicate.
3574         Avoid creating unnecessary symbolic ranges if the comparison
3575         includes another name with a known numeric range.
3576         Update the equivalnce set of the new range when asserting
3577         EQ_EXPR predicates.
3578         (extract_range_from_ssa_name): Update the equivalence set of
3579         the new range with VAR.
3580         (extract_range_from_binary_expr): Also handle TRUTH_*_EXPR.
3581         If -fwrapv is used, set the resulting range to VARYING if the
3582         operation overflows.  Otherwise, use TYPE_MIN_VALUE and
3583         TYPE_MAX_VALUE to represent -INF and +INF.
3584         Fix handling of *_DIV_EXPR.
3585         (extract_range_from_unary_expr): Handle MINUS_EXPR and
3586         ABS_EXPR properly by switching the range around if necessary.
3587         (extract_range_from_comparison): New local function.
3588         (extract_range_from_expr): Call it.
3589         (adjust_range_with_scev): Do not adjust the range if using
3590         wrapping arithmetic (-fwrapv).
3591         (dump_value_range): Also show equivalence set.
3592         Show -INF and +INF for TYPE_MIN_VALUE and TYPE_MAX_VALUE.
3593         (build_assert_expr_for): Also build ASSERT_EXPR for EQ_EXPR.
3594         (infer_value_range): Change return value to bool.
3595         Add arguments 'comp_code_p' and 'val_p'.
3596         Do not attempt to infer ranges from statements that may throw.
3597         Store the comparison code in comp_code_p.
3598         Store the other operand to be used in the predicate in val_p.
3599         (dump_asserts_for): New.
3600         (debug_asserts_for): New.
3601         (dump_all_asserts): New.
3602         (debug_all_asserts): New.
3603         (register_new_assert_for): New.
3604         (register_edge_assert_for): New.
3605         (find_conditional_asserts): New.
3606         (find_assert_locations): New.
3607         (process_assert_insertions_for): New.
3608         (process_assert_insertions): New.
3609         (insert_range_assertions): Initialize found_in_subgraph,
3610         blocks_visited, need_assert_for and asserts_for.
3611         Call find_assert_locations and process_assert_insertions.
3612         (remove_range_assertions): Add more documentation.
3613         (vrp_initialize): Change return type to void.
3614         Do not try to guess if running VRP is worth it.  
3615         (compare_name_with_value): New.
3616         (compare_names): New.
3617         (vrp_evaluate_conditional): Add argument 'use_equiv_p'.  If
3618         use_equiv_p is true, call compare_names and
3619         compare_name_with_value to compare all the ranges for every
3620         name in the equivalence set of the predicate operands.
3621         Update all callers.
3622         (vrp_meet): Try harder not to derive a VARYING range.
3623         If two values meet, the resulting equivalence set is the
3624         intersection of the two equivalence sets.
3625         (vrp_visit_phi_node): Call copy_value_range to get the current
3626         range information of the LHS.
3627         (vrp_finalize): Create a value vector representing all the
3628         names that ended up with exactly one value in their range.
3629         Call substitute_and_fold.
3630         (execute_vrp): Document equivalence sets in ranges.
3631         * tree.h (SSA_NAME_VALUE_RANGE): Remove.
3632         (struct tree_ssa_name): Remove field value_range.
3633         (invert_tree_comparison): Declare.
3634
3635 2005-06-01  Daniel Berlin  <dberlin@dberlin.org>
3636
3637         Fix PR tree-optimization/21839
3638
3639         * gimplify.c (zero_sized_field_decl): New function.
3640         (gimplify_init_ctor_eval): Use it.
3641
3642 2005-06-01  Josh Conner <jconner@apple.com>
3643
3644         PR 21478
3645         * gimplify.c (gimplify_init_constructor): Don't spill initializer
3646         to read-only memory if it's sparse.
3647
3648 2005-06-01  Ramana Radhakrishnan  <ramana@codito.com>
3649
3650         * doc/rtl.texi: Remove references to NOTE_INSN_SETJMP. 
3651         Add documentation for REG_SETJMP
3652
3653 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
3654
3655         * stmt.c (expand_case): Use build_int_cst.
3656         (node_has_low_bound): Likewise, and correct type mismatch.
3657         (node_has_high_bound): Likewise.
3658         * fold-const.c (fold_binary): Ensure we build trees
3659         with the correct types - undo what STRIP_NOPS possibly did.
3660
3661 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
3662
3663         * tree.h (fold_indirect_ref_1): Export from fold-const.c.
3664         * fold-const.c (fold_indirect_ref_1): No longer static.
3665         * tree-inline.c (copy_body_r): Use fold_indirect_ref_1 for
3666         folding, if possible.
3667
3668 2005-06-01  Joseph S. Myers  <joseph@codesourcery.com>
3669
3670         * common.opt (fjump-tables): New.
3671         * doc/invoke.texi (-fno-jump-tables): Document.
3672         * stmt.c (expand_end_case_type): Do not emit jump tables unless
3673         flag_jump_tables.
3674
3675 2005-06-01  Richard Earnshaw  <richard.earnshaw@arm.com>
3676
3677         * arm.md (bunordered, bordered, bungt, bunlt, bunge, bunle, buneq)
3678         (bltgt, arm_buneq, arm_bltgt, sunordered, sordered, sungt, sunge)
3679         (sunlt, sunle): Enable patterns on VFP.
3680
3681         * arm.md (attribute 'type'): Add new types - f_loads floadd, f_stores,
3682         f_stored, f_flag, f_cvt.
3683         (generic_sched): No-longer used for the arm1020e and arm1022e cores.
3684         Include arm1020e.md.
3685         * vfp.md (fmstat): New cpu unit.  Add an exclusion set between it and
3686         the ds and fmac pipelines.  Re-work all load and store patterns and
3687         all conversion patterns to use new attributes.  Adjust reservation
3688         descriptions accordingly.
3689         * arm1020e.md: New file.
3690         * t-arm: Add dependency.
3691
3692 2005-06-01  Jan Hubicka  <jh@suse.cz>
3693
3694         * except.c (struct eh_region): Kill unused fields.
3695         * basic-block.h (struct basic_block_def): Likewise.
3696
3697 2005-06-01  J"orn Rennecke <joern.rennecke@st.com>
3698
3699         PR rtl-optimization/21767
3700         * rtl.h (function_invariant_p): Re-add declaration.
3701         * reload1.c (function_invariant_p): No longer static.
3702         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL notes that
3703         might have become invalid.
3704
3705 2005-06-01  Jakub Jelinek  <jakub@redhat.com>
3706
3707         PR c/21536
3708         PR c/20760
3709         * gimplify.c (gimplify_decl_expr): Call gimplify_type_sizes
3710         on variable sizes types if a decl is a pointer to a VLA.
3711         (gimplify_type_sizes): Handle POINTER_TYPE and REFERENCE_TYPE.
3712         Call gimplify_type_sizes on aggregate fields.  Prevent infinite
3713         recursion.
3714
3715         * fold-const.c (fold_ternary): Optimize BIT_FIELD_REF of VECTOR_CST.
3716
3717         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss, _mm_set1_ps,
3718         _mm_set_ps, _mm_setr_ps): Add __extension__.
3719         * config/i386/emmintrin.h (_mm_set_sd, _mm_set1_pd, _mm_set_pd,
3720         _mm_setr_pd, _mm_setzero_pd, _mm_set_epi64x, _mm_set_epi64x,
3721         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128):
3722         Likewise.
3723         (_mm_clflush): Don't use return in void function.
3724
3725         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128,
3726         _mm_castps_pd, _mm_castps_si128, _mm_castsi128_ps, _mm_castsi128_pd):
3727         Use __inline instead of inline.
3728
3729 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
3730
3731         * fold-const.c (fold_binary): Fix types in strlen vs.
3732         zero comparison folding.
3733
3734 2005-06-01  Richard Henderson  <rth@redhat.com>
3735
3736         * configure.ac (HAVE_AS_JSRDIRECT_RELOCS): New.
3737         * config.in, configure: Rebuild.
3738         * config/alpha/alpha.c (print_operand): Add 'j'.
3739         * alpha.md (divmodsi_internal_er_1): Use it.
3740         (divmoddi_internal_er_1): Likewise.
3741
3742 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
3743
3744         * system.h (TARGET_OPTIONS, TARGET_SWITCHES): Poison.
3745         * opts.h (print_filtered_help): Delete.
3746         * opts.c (handle_option, decode_options): Remove calls to
3747         set_target_switch.
3748         (print_target_help): New function.
3749         (common_option, print_help): Call print_target_help instead of
3750         display_target_options.
3751         (print_filtered_help): Make static.
3752         * toplev.h (display_target_options, set_target_switch): Delete.
3753         * toplev.c (target_switches, target_options, display_target_options)
3754         (set_target_switch): Delete.
3755         (print_switch_values): Remove handling of TARGET_SWITCHES and
3756         TARGET_OPTIONS.
3757         (default_get_pch_validity): Likewise.  Only treat target_flags
3758         specially if targetm.check_pch_target_flags is nonnull.
3759         (pch_option_mismatch): New function.
3760         (default_pch_valid_p): Use it.  Remove handling of TARGET_SWITCHES
3761         and TARGET_OPTIONS.  Only treat target_flags specially if
3762         targetm.check_pch_target_flags is nonnull.
3763         * config/ia64/ia64.c (ia64_override_options): Don't mention
3764         TARGET_OPTIONS in comment.
3765         * config/m68k/m68k-none.h (CC1_SPEC): Likewise.
3766         * doc/invoke.texi: Remove a reference to TARGET_SWITCHES.
3767         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS): Don't mention the
3768         interaction with TARGET_SWITCHES.
3769         (TARGET_@var{featurename}, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
3770
3771 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
3772
3773         * config/sh/sh.c (multcosts): Check sh_multcost rather than
3774         sh_multcost_str.
3775         (sh_register_move_cost): Likewise sh_gettrcost and sh_gettrcost_str.
3776         (sh_multcost_str, sh_gettrcost_str, sh_div_str, sh_divsi3_libfunc)
3777         (cut2_workaround_str): Delete.
3778         * config/sh/sh.h (SUBTARGET_OPTIONS, TARGET_OPTIONS)
3779         (TARGET_SH5_CUT2_WORKAROUND, sh_multcost_str, sh_gettrcost_str)
3780         (sh_div_str, sh_divsi3_libfunc, cut2_workaround_str): Delete.
3781         * config/sh/sh.opt (mcut2-workaround, mdiv=, mdivsi3_libfunc=)
3782         (mgettrcost=, multcost=): New options.
3783
3784 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
3785
3786         * opts.h (cl_option_state): New structure.
3787         (get_option_state): Declare.
3788         * opts.c (get_option_state): New function.
3789         * toplev.c (option_affects_pch_p): New function.
3790         (default_get_pch_validity): Store the state of all options for which
3791         option_affects_pch_p returns true.
3792         (default_pch_valid_p): Check the state of those options here.
3793         Only check target_flags separately if targetm.check_pch_target_Flags
3794         is nonnull or if TARGET_SWITCHES is defined.
3795
3796 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
3797
3798         * config/mips/mips-protos.h (mips_use_ins_ext_p): Remove parameter
3799         names.
3800
3801 2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>
3802
3803         * modulo-sched.c (undo_generate_reg_moves ): Fix PR 21138.
3804
3805 2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>
3806
3807         * gcse.c (compute_transp, load_killed_in_block): Use 
3808         MEM_READONLY_P.
3809
3810 2005-06-01  David.Billinghurst  <David.Billinghurst@riotinto.com>
3811
3812         PR target/21854
3813         * config/mips/mips-protos.h: Declare mips_use_ins_ext_p
3814         
3815 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3816
3817         * errors.h (warning, error, fatal, internal_error): Add printf
3818         attribute.
3819         * genmodes.c (make_vector_mode): Fix format arguments.
3820
3821 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3822
3823         * basic-block.h, bb-reorder.c, c-gimplify.c, config/darwin.c,
3824         config/rs6000/rs6000-c.c, dominance.c, gimple-low.c, gimplify.c,
3825         lambda-code.c, lambda-trans.c, tree-browser.c, tree-cfg.c,
3826         tree-chrec.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
3827         tree-if-conv.c, tree-into-ssa.c, tree-loop-linear.c,
3828         tree-mudflap.c, tree-nomudflap.c, tree-outof-ssa.c,
3829         tree-pretty-print.c, tree-scalar-evolution.c, tree-sra.c,
3830         tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
3831         tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-live.c,
3832         tree-ssa-operands.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
3833         tree-ssa-propagate.c, tree-ssa-sink.c, tree-ssa-threadupdate.c,
3834         tree-ssa-uncprop.c, tree-ssa.c, tree-vect-analyze.c,
3835         tree-vect-transform.c, tree-vectorizer.c, vec.c: Don't include
3836         errors.h and include toplev.h if necessary.
3837         
3838         * rtl.c, varray.c: If we're compiling as a GENERATOR_FILE, include
3839         errors.h otherwise include toplev.h.
3840         
3841         * Makefile.in: Update dependencies.
3842         
3843 2005-06-01  Danny Smith  <dannysmith@users.sourceforge.net>
3844
3845         * config/i386/cygming.h (NO_PROFILE_COUNTERS): Define.
3846
3847 2005-05-31  Geoffrey Keating  <geoffk@geoffk.org>
3848
3849         * config/rs6000/rs6000.md (sync_boolcshort_internal): New.
3850         * config/rs6000/rs6000.c (rs6000_emit_sync): Shift count must
3851         be complemented for big-endian.  Mask for AND must be rotated,
3852         not shifted.  Handle short operands with NOT on the memory
3853         operation.
3854
3855 2005-05-30  Daniel Berlin  <dberlin@dberlin.org>
3856
3857         * c-objc-common.c (c_tree_printer): Check flag before hashtable.
3858         Use DECL_DEBUG_EXPR and SET_DECL_DEBUG_EXPR.
3859         * dwarf2out.c (dwarf2out_var_location): Ditto.
3860         * toplev.c (default_tree_printer): Ditto.
3861         * tree-outof-ssa.c (create_temp): Ditto.
3862         * tree-sra.c (instantiate_element): Ditto.
3863         * var-tracking.c (track_expr_p): Ditto.
3864         * tree.c (struct tree_map): New structure.
3865         (debug_expr_for_decl): New.
3866         (tree_map_eq): New function.
3867         (tree_map_hash): Ditto.
3868         (tree_map_marked_p): Ditto.
3869         (print_debug_expr_statistics): Ditto.
3870         (decl_debug_expr_lookup): Ditto.
3871         (decl_debug_expr_insert): Ditto.
3872         (dump_tree_statistics): Dump debug_expr hashtable stats.
3873         * tree.h (DECL_DEBUG_EXPR): Change
3874         (SET_DECL_DEBUG_EXPR): Add.
3875         
3876 2005-06-01  Alan Modra  <amodra@bigpond.net.au>
3877
3878         * configure.ac: Add --enable-secureplt.
3879         (HAVE_AS_REL16): Test for R_PPC_REL16 relocs.
3880         * config.in: Regenerate.
3881         * configure: Regenerate.
3882         * config.gcc (powerpc64-*-linux*, powerpc-*-linux*): Add
3883         rs6000/secureplt.h to tm_file when enable_secureplt.
3884         * doc/invoke.texi (msecure-plt, mbss-plt): Document.
3885         * doc/install.texi: Document --enable-targets and --enable-secureplt.
3886         Correct xrefs to "Using the GNU Compiler Collection (GCC)".
3887         * config/rs6000/secureplt.h: New file.
3888         * config/rs6000/sysv4.h (TARGET_SECURE_PLT): Define.
3889         (SUBTARGET_OVERRIDE_OPTIONS): Error if -msecure-plt given without
3890         assembler support.
3891         (CC1_SECURE_PLT_DEFAULT_SPEC): Define.
3892         (CC1_SPEC): Delete duplicate mno-sdata.  Invoke cc1_secure_plt_default.
3893         (SUBTARGET_EXTRA_SPECS): Add cc1_secure_plt_default.
3894         * config/rs6000/sysv4.opt (msecure-plt, bss-plt): Add options.
3895         * config/rs6000/rs6000.h (TARGET_SECURE_PLT): Define.
3896         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Handle
3897         TARGET_SECURE_PLT got register load sequence.
3898         (rs6000_emit_prologue): Call rs6000_emit_load_toc_table when
3899         TARGET_SECURE_PLT.
3900         (rs6000_elf_declare_function_name): Don't emit toc address offset
3901         word when TARGET_SECURE_PLT.
3902         * config/rs6000/rs6000.md (elf_high, elf_low): Move past load_toc_*.
3903         (load_toc_v4_PIC_1) Enable for TARGET_SECURE_PLT.
3904         (load_toc_v4_PIC_3b, load_toc_v4_PIC_3c): New insns.
3905         (call, call_value): Mark pic_offset_table_rtx used for sysv pic and
3906         TARGET_SECURE_PLT.
3907         (call_nonlocal_sysv, call_value_nonlocal_sysv, sibcall_nonlocal_sysv,
3908         sibcall_value_nonlocal_sysv): Add 32768 offset when TARGET_SECURE_PLT
3909         and -fPIC.
3910         * config/rs6000/tramp.asm (trampoline_initial): Use "bcl 20,31".
3911         (__trampoline_setup): Likewise.  Init r30 before plt call.
3912
3913 2005-05-31  DJ Delorie  <dj@redhat.com>
3914
3915         * expr.c (convert_move): When a partial_int requires multiple
3916         conversion steps, make sure successive steps convert the
3917         intermediate value, not the original value.
3918
3919         * expmed.c (expand_mult): Convert partial_int multiplies to
3920         shift/add combinations too.
3921
3922         * genmodes.c (mode_data): Add wider_2x.
3923         (calc_wider_mode): Calculate twice-wider mode too.
3924         (emit_mode_wider): Emit twice-wider mode too.
3925         * machmode.h (mode_2xwider, GET_MODE_2XWIDER_MODE): New.
3926         * expr.c (expand_expr_real_1): Use it for expanding
3927         multiplies.
3928
3929 2005-05-31  Zdenek Dvorak  <dvorakz@suse.cz>
3930
3931         PR tree-optimization/21817
3932         * tree-ssa-loop-im.c (for_each_index): Handle VECTOR_CST.
3933
3934 2005-05-31  Pat Haugen  <pthaugen@us.ibm.com>
3935
3936         * loop.c (loop_invariant_p, valid_initial_value_p): Revert last
3937         change.
3938
3939 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
3940
3941         PR middle-end/20931
3942         PR middle-end/20946
3943         * fold-const.c (fold_checksum_tree): Copy types also if
3944         TYPE_CONTAINS_PLACEHOLDER_INTERNAL is set.
3945         Don't call fold_checksum_tree for TREE_LIST's TREE_CHAIN
3946         first.
3947         Tail recurse TREE_LIST's TREE_CHAIN.
3948
3949 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
3950
3951         PR tree-opt/21732
3952         * tree-ssa-copy.c (dump_copy_of): Create a bitmap and don't visit a
3953         SSA_NAME twice and cause the loop to become finite.  Remove the test
3954         for val.
3955
3956 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
3957
3958         * tree-cfg.c (verify_expr): Add checking for COND_EXPR's conditional
3959         expression.
3960
3961 2005-05-31  Richard Sandiford  <rsandifo@redhat.com>
3962
3963         * doc/tm.texi (TARGET_GET_PCH_VALIDITY, TARGET_PCH_VALID_P): Tweak
3964         the documentation to make it more future-proof.
3965         (TARGET_CHECK_PCH_TARGET_FLAGS): Document this new hook.
3966         * target.h (gcc_target): Add check_pch_target_flags.
3967         * target-def.h (TARGET_CHECK_PCH_TARGET_FLAGS): New macro.
3968         (TARGET_INITIALIZER): Include it.
3969         * toplev.c (default_pch_valid_p): Use targetm.check_pch_target_flags.
3970         * config/sh/sh-protos.h (sh_pch_valid_p): Delete.
3971         * config/sh/sh.c (TARGET_PCH_VALID_P, sh_pch_valid_p): Delete.
3972         (sh_check_pch_target_flags): New function.
3973         (TARGET_CHECK_PCH_TARGET_FLAGS): Override default.
3974
3975 2005-05-31  Richard Guenther  <rguenth@gcc.gnu.org>
3976
3977         * fold-const.c (extract_array_ref): Handle more cases,
3978         do some useful canonicalization of the base.
3979         (fold_binary): Explicitly deal with arrays of zero-sized
3980         structures during folding of &a[i] == &a[j].
3981
3982 2005-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
3983
3984         * doc/install.texi (sparc-sun-solaris2*): Update note
3985         about Sun bug 4910101.
3986         (sparc-sun-solaris2.7): Document bootstrap
3987         failure with Sun WorkShop 6 99/08/18 as.
3988
3989 2005-05-30  Pat Haugen  <pthaugen@us.ibm.com>
3990
3991         * loop.c (loop_invariant_p, valid_initial_value_p): Use
3992         regs_invalidated_by_call instead of call_used_regs.
3993
3994 2005-05-30  Paolo Carlini  <pcarlini@suse.de>
3995
3996         PR middle-end/21743
3997         * builtins.def (BUILT_IN_CLOG, BUILT_IN_CLOGF, BUILT_IN_CLOGL):
3998         Enable.
3999         * doc/extend.texi: Add clog, clogf, clogl.
4000
4001 2005-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4002
4003         PR middle-end/20303
4004         * c-pragma.c: Include "vec.h".
4005         (handle_pragma_visibility): Use VEC.
4006
4007         * doc/invoke.texi: Remove the nested visibility push limit.
4008
4009 2005-05-30  Roger Sayle  <roger@eyesopen.com>
4010
4011         PR rtl-optimization/15422
4012         * reg-stack.c (starting_stack_p): New static global.
4013         (straighten_stack): Delete prototype. Change to update the stack
4014         before the current insn.
4015         (subst_stack_regs): Update call to straighten stack.
4016         (emit_swap_insn): Delete prototype.  For the first insn in a
4017         basic block, update stack_in instead of emitting a real swap.
4018         (change_stack): When changing the stack before the first insn
4019         in a basic block, update stack_in instead of emitting real code.
4020         (compensate_edges): Clear starting_stack_p during compensation.
4021         (convert_regs_1): Keep track of starting_stack_p whilst processing
4022         a basic block.
4023
4024 2005-05-30  Kazu Hirata  <kazu@cs.umass.edu>
4025
4026         * tree-ssa-ccp.c (const_val): Make it static.
4027
4028 2005-05-29  Geoffrey Keating  <geoffk@apple.com>
4029
4030         PR target/21761
4031         * config/rs6000/rs6000.md: Remove stray TARGET_32BIT from
4032         pattern involving `:P'.
4033
4034         * Makefile.in (install-cpp): Depend on installdirs.
4035
4036 2005-05-30  Kazu Hirata  <kazu@cs.umass.edu>
4037
4038         * tree-outof-ssa.c (_elim_graph): Change the type of edge_list
4039         to VEC(int,heap)*.
4040         (new_elim_graph, clear_elim_graph, delete_elim_graph,
4041         elim_graph_add_edge, elim_graph_remove_succ_edge,
4042         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED): Use VEC
4043         instead of VARRAY.
4044
4045 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
4046
4047         * cgraphunit.c, ipa-inline.c, loop-iv.c, modulo-sched.c,
4048         opts.c, postreload-gcse.c, tree-browser.def, tree-eh.c,
4049         tree-ssa-copyrename.c, tree-vect-analyze.c: Fix typos and
4050         follow spelling conventions in error/dump messages.
4051
4052 2005-05-29  Roger Sayle  <roger@eyesopen.com>
4053             Richard Henderson  <rth@redhat.com>
4054
4055         * ifcvt.c (noce_emit_move_insn): Construct a SET pattern directly
4056         if the RHS isn't suitable for calling emit_move_insn.
4057
4058 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
4059
4060         * tree-ssa-ccp.c (ccp_fold): Return immediately after calling
4061         fold_unary and fold_binary.
4062
4063 2005-05-29  Roger Sayle  <roger@eyesopen.com>
4064
4065         * reg-stack.c (propagate_stack): Always copy the source stack to
4066         the destination.  This routine is now only called when this is safe.
4067         (better_edge): New function split out from convert_regs_1 to
4068         determine which of two edges is better to propagate across.
4069         (convert_regs_1):  We need only search for a best edge if the
4070         stack layout hasn't been defined yet.  Use better_edge to help
4071         find beste.  No longer traverse unnecessary edges.
4072
4073 2005-05-29  Keith Besaw  <kbesaw@us.ibm.com>
4074
4075         * tree-ssa-alias.c (new_type_alias): New procedure to
4076         create a type memory tag for a pointer with a may-alias
4077         set determined from a variable declaration.
4078         * tree-flow.h: export declaration of new_type_alias
4079         * tree-optimize.c (init_tree_optimization_passes): document
4080         that pass_may_alias cannot be called after pass_vectorize.
4081         * tree-vect-transform (vect_create_data_ref_ptr): Call
4082         new_type_alias when an type memory tag isn't available
4083         for a reference.
4084         (vectorizable_store): Use copy_virtual_operands to update
4085         virtual defs in place (so that loop_version can be called).
4086         Call mark_for_renaming for the virtual defs in case peeling
4087         is done and virtual uses outside the loop need to be updated.
4088
4089 2005-05-29  Dorit Naishlos  <dorit@il.ibm.com>
4090
4091         PR tree-optimization/21639
4092         * tree-complex.c (pass_lower_vector_s): Remove TODO_ggc_collect.
4093
4094 2005-05-29  Jan Hubicka  <jh@suse.cz>
4095
4096         PR tree-optimization/21562
4097         * cfgexpand.c (construct_init_block): Deal properly with the case
4098         of entry edge not pointing to very first basic block.
4099
4100 2005-05-28  Kazu Hirata  <kazu@cs.umass.edu>
4101
4102         * tree-ssa-ccp.c (ccp_fold): Remove code that produces
4103         non-gimple min invariant.
4104
4105         * Makefile.in (OBJS-common): Add tree-cfgcleanup.o.
4106         * tree-flow.h: Add prototypes for start_recording_case_labels
4107         and end_recording_case_labels.
4108         * tree-cfg.c (start_recording_case_labels,
4109         end_recording_case_labels): Export.
4110         (cleanup_tree_cfg_loop, modified_noreturn_calls,
4111         cleanup_control_flow, cleanup_control_expr_graph,
4112         remove_fallthru_edge, phi_alternatives_equal,
4113         tree_forwarder_block_p, has_abnormal_incoming_edge_p,
4114         remove_forwarder_block, cleanup_forwarder_blocks,
4115         remove_forwarder_block_with_phi, merge_phi_nodes,
4116         gate_merge_phi, pass_merge_phi): Move to ...
4117         * tree-cfgcleanup.c: ... here.
4118
4119         * basic-block.h: Remove forward declaration of bb_ann_d.
4120
4121 2005-05-28  Jan Hubicka  <jh@suse.cz>
4122
4123         * tree-ssa-threadupdate.c: (create_edge_and_update_destination_phis):
4124         Update profile.
4125         * value-prof.c (tree_divmod_fixed_value_transform): Be more verbose in
4126         debug output.
4127         (tree_mod_subtract): Fix profile updating code.
4128         (tree_divmod_values_to_profile): Do not produce useless value profilers
4129         for divisions.
4130
4131 2005-05-28  Kazu Hirata  <kazu@cs.umass.edu>
4132
4133         * tree-ssa-dom.c (vrp_element_p): Define.
4134         (vrp_hash_elt): Change the type of records to
4135         VEC(vrp_element_p,heap).
4136         (vrp_free): New.
4137         (tree_ssa_dominator_optimize): Pass vrp_free to htab_create.
4138         Update uses of VRP records.
4139         (simplify_cond_and_lookup_avail_expr, record_range): Update
4140         uses of VRP records.
4141
4142         * tree-inline.c (cfun_stack): Change the type to
4143         VEC(function_p,heap).
4144         (push_cfun, pop_cfun): Use VEC instead of VARRAY.
4145
4146 2005-05-27  Ian Lance Taylor  <ian@airs.com>
4147
4148         * c-decl.c (add_stmt): Add C frontend specific version.
4149         (stmts_are_full_exprs_p): Remove.
4150         * c-common.h (STMT_IS_FULL_EXPR_P): Remove.
4151         (stmts_are_full_exprs_p): Don't declare.
4152         * c-semantics.c (add_stmt): Remove.
4153
4154 2005-05-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4155
4156         * config/mips/mips-protos.h (mips_declare_object): Add printf
4157         attribute.
4158         * config/mips/mips.c (mips_declare_object_name): Fix format
4159         argument.
4160
4161 2005-05-27  Roger Sayle  <roger@eyesopen.com>
4162
4163         * reg-stack.c (compensate_edge): Remove original prototype.
4164         (propagate_stack): New function to copy the stack layout
4165         at the start of a basic block from the layout at the end of
4166         one of its predecessors.
4167         (compensate_edge): Assume that both source and destination
4168         blocks have already had their stack layouts defined.
4169         (compensate_edges): Traverse all non-entry edges in the CFG
4170         and call compensate_edge on each in turn.
4171         (convert_regs_1): Change return type to void.  Call
4172         propagate_stack instead of compensate_edge.
4173         (convert_regs_2): Change return type to void.  Update call
4174         to convert_regs_1 to ignore the (now void) return value.
4175         (convert_regs): Update calls to convert_regs_2 to ignore
4176         the (now void) return value.  After all the basic blocks have
4177         been processed, call compensate_edges to actually emit new
4178         insns.
4179         (reg_to_stack): Initialize the aux info for each basic block
4180         with FOR_EACH_BB instead of which FOR_EACH_BB_REVERSE.
4181
4182 2005-05-28  Jan Hubicka  <jh@suse.cz>
4183
4184         * except.c (can_throw_internal_1, can_throw_external_1): Add 
4185         "is_resx" argument.
4186         (can_throw_external, can_throw_internal): Bring into sync wrt
4187         dealing resx.
4188         * except.h (can_throw_internal_1, can_throw_external_1): Update
4189         prototype.
4190         * tree-eh.c (tree_can_throw_internal, tree_can_throw_external):
4191         Deal properly with resx.
4192
4193 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
4194
4195         * basic-block.h (basic_block_def): Add phi_nodes and
4196         predictions.  Remove tree_annotations.
4197         * predict.c (tree_predicted_by_p, tree_predict_edge,
4198         combine_predictions_for_bb): Adjust references to predictions.
4199         * tree-cfg.c (init_empty_tree_cfg, create_bb): Don't call
4200         create_block_annotation.
4201         (create_block_annotation, free_blocks_annotatios,
4202         clear_blocks_annotations): Remove.
4203         (dump_cfg_stats): Don't print out the memory spent on
4204         bb_ann_d.
4205         (delete_tree_cfg_annotations): Don't call free_blocks_annotations.
4206         * tree-flow-inline.h (bb_ann): Remove.
4207         (phi_nodes, set_phi_nodes): Update references to phi_nodes.
4208         * tree-flow.h (bb_ann_d): Remove.
4209         * tree-if-conv.c (process_phi_nodes): Update a reference to
4210         phi_nodes.
4211         * tree-phinodes.c (reserve_phi_args_for_new_edge,
4212         create_phi_node, remove_phi_node): Likewise.
4213         * tree-pretty-print.c (dump_generic_bb_buff): Don't call bb_ann.
4214         * tree-ssa-dom.c (threaded_blocks): New.
4215         (tree_ssa_dominator_optimize): Initialize, clear, and free
4216         threaded_blocks. Update a call to thread_through_all_blocks.
4217         (thread_across_edge): Use threaded_blocks instead of setting
4218         incoming_edge_threaded.
4219         * tree-ssa-threadupdate.c (threaded_through_all_blocks): Take
4220         a bitmap of blocks that are threaded through.
4221         * tree.h: Move the prototype of threaded_through_blocks to
4222         tree-flow.h.
4223
4224         * domwalk.c (walk_dominator_tree, init_walk_dominator_tree,
4225         fini_walk_dominator_tree): Use VEC instead of VARRAY.
4226         * domwalk.h (dom_walk_data): Change the type of
4227         block_data_stack and free_block_data to VEC(void_p,heap)*.
4228         * tree-ssa-dse.c (dse_initialize_block_local_data,
4229         dse_optimize_stmt, dse_record_phis, dse_finalize_block): Use
4230         VEC instead of VARRAY.
4231
4232 2005-05-27  Jan Hubicka  <jh@suse.cz>
4233
4234         * cgraph.c: Include tree-gimple.h
4235         (cgraph_edge): Rename expr to stmt.
4236         (cgraph_create_edge): Likewise.
4237         (cgraph_clone_node): Likewise.
4238         * cgraph.h (cgraph_node): Use call_stmt instead of call_expr.
4239         * cgraphunit.c (record_call_1): Rename to ...
4240         (record_reference): ... this one; do not build edges.
4241         (cgraph_varpool_analyze_pending_decls): Call record_reference directly.
4242         (current_basic_block): Kill.
4243         (cgraph_create_edges): Rewrite to work on gimple statements nicely.
4244         (verify_cgraph_node): Likewise.
4245         * tree-inline.c (copy_body_r): Do not mess up with cgraph edges.
4246         (copy_bb): Mess up with cgraph edges here; simplify EH handling.
4247         (copy_edges_for_bb): Simplify EH handling.
4248         (expand_call_inline): Pass statement to cgraph_edge and
4249         cgraph_create_edge.
4250
4251 2005-05-27  Richard Guenther  <rguenth@gcc.gnu.org>
4252
4253         * tree-inline.c (copy_body_r): Manually fold *& to deal
4254         with ADDR_EXPRs with mismatched types for now.
4255
4256         * gimplify.c (fold_indirect_ref_rhs): New function.
4257         (gimplify_modify_expr_rhs): Use it instead of pessimistic
4258         fold_indirect_ref.
4259
4260         * fold-const.c (fold_indirect_ref_1): Add type argument;
4261         make sure the resulting expression is of this type.
4262         (build_fold_indirect_ref, fold_indirect_ref): Adjust callers.
4263
4264 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
4265
4266         PR tree-optimization/21658
4267         * tree-ssa-ccp.c (ccp_fold): Call fold_binary instead of
4268         fold_binary_to_constant.  Likewise, call fold_unary instead of
4269         fold_unary_to_constant.
4270
4271 2005-05-27  Nathan Sidwell  <nathan@codesourcery.com>
4272
4273         * vec.h: Implement integral type vector specialization.
4274         (VEC_T): Define a non-GTY structure.
4275         (VEC_T_GTY): Define a GTY structure.
4276         (VEC_TA): Rename to ...
4277         (VEC_TA_GTY): ... here.
4278         (DEF_VEC_I, DEF_VEC_ALLOC_I): New.
4279         (DEF_VEC_P, DEF_VEC_ALLOC_P): Adjust.
4280         (DEF_VEC_FUNC_P, DEF_VEC_ALLOC_FUNC_P): New, broken out of
4281         DEF_VEC_P and DEF_VEC_ALLOC_P.
4282         (DEF_VEC_O, DEF_VEC_ALLOC_O): Adjust.
4283         (DEF_VEC_FUNC_O, DEF_VEC_ALLOC_FUNC_O): New, broken out of
4284         DEF_VEC_O and DEF_VEC_ALLOC_O.
4285         * global.c: Use DEF_VEC_I, DEF_VEC_ALLOC_I.
4286         * lambda-code.c: Likewise.
4287         * tree-into-ssa.c: Likewise.
4288         * tree-ssa-live.c: Likewise.
4289
4290 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
4291
4292         * tree-into-ssa.c (update_ssa): Ensure that the operand cache
4293         is up-to-date.
4294         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
4295         update_stmt_if_modified before calling update_ssa.
4296
4297 2005-05-27  Ralf Corsepius  <ralf.corsepius@rtems.org>
4298
4299         * config/rs6000/t-rtems: Remove roe multilib variant.
4300
4301 2005-05-26  Roger Sayle  <roger@eyesopen.com>
4302
4303         PR tree-optimization/9814
4304         * ifcvt.c (noce_emit_move_insn): If we fail to recognize the move
4305         instruction, add the necessary clobbers by re-expanding the RTL
4306         for arithmetic operations via optab.c's expand_unop/expand_binop.
4307         (noce_try_bitop): New function to optimize bit manipulation idioms
4308         of the form "if (x & C) x = x op C" and "if (!(x & C) x = x op C".
4309         (noce_process_if_block): Call noce_try_bitop.
4310
4311 2005-05-26  Roger Sayle  <roger@eyesopen.com>
4312
4313         * reg-stack.c (convert_regs_entry, convert_regs_exit,
4314         convert_regs_1, convert_regs_2, convert_regs): Delete prototypes.
4315         (reg_to_stack): Move to end of the file.  Initialize the per
4316         basic block information here, instead of...
4317         (convert_regs_entry): Here.
4318         (convert_regs): Change unused return type to void.
4319
4320 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
4321
4322         * c-pch.c, timevar.c, timevar.h, unwind-compat.c,
4323         unwind-dw2-fde-compat.c, unwind-dw2-fde.c, config/mmix/mmix.h,
4324         config/rs6000/eabispe.h, config/rs6000/lynx.h,
4325         config/sh/elf.h, config/sh/symbian-pre.h,
4326         config/sparc/sparc-protos.h: Update copyright.
4327
4328 2005-05-26  Mike Stump  <mrs@apple.com>
4329
4330         * darwin.h (ASM_OUTPUT_LABELREF): Handle quoted non-lazy pointers
4331         for Objective-C++.
4332         
4333 2005-05-26  Richard Guenther  <rguenth@gcc.gnu.org>
4334
4335         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
4336         See through ADDR_EXPR in finding place to propagate into.
4337
4338 2005-05-26  Kazu Hirata  <kazu@cs.umass.edu>
4339
4340         * c-common.c, c-parser.c, cfgbuild.c, cfghooks.c, cfghooks.h,
4341         cfgrtl.c, cgraphunit.c, ddg.c, expr.h, gcse.c, ggc-page.c,
4342         ggc-zone.c, gimplify.c, ipa-inline.c, longlong.h, targhooks.c,
4343         tree-flow-inline.h, tree-pass.h, tree-ssa-dse.c,
4344         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
4345         tree-ssa-operands.c, tree-vect-analyze.c,
4346         tree-vect-transform.c, tree-vectorizer.c, tree.c,
4347         config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
4348         config/frv/frv.md, config/i386/i386.c, config/i386/sse.md,
4349         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
4350         config/mcore/mcore.c, config/mips/mips.c, config/mips/mips.md,
4351         config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
4352         config/rs6000/rs6000.h, config/sh/sh.c, config/sh/sh.md,
4353         config/sh/ushmedia.h, config/sparc/sparc.c,
4354         config/sparc/sparc.md, config/stormy16/stormy-abi: Fix comment
4355         typos.  Follow spelling conventions.
4356         * doc/invoke.texi, doc/tm.texi, doc/tree-ssa.texi: Fix typos.
4357         Follow spelling conventions.
4358
4359 2005-05-26  David Ung  <davidu@mips.com>
4360
4361         * config/mips/mips.c (mips_use_ins_ext_p): New helper function
4362         that determines whether the MIPS32/64 R2 ext/ins should be used.
4363         * config/mips/mips.h (ISA_HAS_EXT_INS): New macro.
4364         * config/mips/mips.md (extzv): Changed predicate for operand to
4365         nonimmediate_operand. Add code to generate insn patterns for
4366         extzvsi and extzvdi.
4367         (extzv<mode>): New pattern to match mips32/64 r2 ext insn.
4368         (insv): Similarly for insertion.
4369         (insv<mode>): Similarly.
4370
4371 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
4372
4373         * simplify-rtx.c (avoid_constant_pool_reference): Support
4374         offsetted addresses in the constant pool.
4375
4376 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
4377
4378         * df.h (DF_SUBREGS, df_local_def_available_p, df_insn_modified_p): New.
4379         * df.c (DF_SUBREGS, df_local_def_available_p, df_insn_modified_p): New.
4380
4381 2005-05-26  Jakub Jelinek  <jakub@redhat.com>
4382
4383         PR target/21716
4384         * reg-stack.c (swap_rtx_condition): Don't crash if %ax user was not
4385         found in the basic block and last insn in the basic block is not
4386         INSN_P.  Remove explicit unspec numbers that are no longer valid
4387         from comments.
4388
4389 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
4390
4391         * tree-vect-transform.c (vectorizable_operation): Try word_mode
4392         vectorization if UNITS_PER_WORD == UNITS_PER_SIMD_WORD, even
4393         if a vector mode is available.
4394
4395 2005-05-25  Roger Sayle  <roger@eyesopen.com>
4396
4397         PR middle-end/21709
4398         * fold-const.c (const_binop): Check for division by zero during
4399         complex division.
4400
4401 2005-05-26  Ian Lance Taylor  <ian@airs.com>
4402
4403         * reload1.c (verify_initial_elim_offsets): Add braces to avoid
4404         having a declaration after a statement.
4405
4406 2005-05-26  Richard Sandiford  <rsandifo@redhat.com>
4407
4408         * opt-functions.awk (var_type): New function.
4409         (var_set): Use CLVC_STRING if var_type returns "const char *".
4410         * opth-gen.awk: Use var_type to find out the types of variables.
4411         Don't print comments above each "extern" definition.
4412         * optc-gen.awk: Use var_type in the same way.
4413         * opts.h (cl_var_cond): Rename to...
4414         (cl_var_type): ...this.  Add CLVC_STRING.
4415         (cl_option): Make "flag_var" a "void *" pointer.  Replace "var_cond"
4416         with "var_type".
4417         * opts.c (handle_option, option_enabled): Update after above name
4418         change.  Cast flag_var before using it.  Handle CLVC_STRING.
4419         
4420         * config/alpha/alpha.h (alpha_tls_size): Delete.
4421         * config/alpha/alpha.c (alpha_tls_size, alpha_cpu_string)
4422         (alpha_tune_string, alpha_tp_string, alpha_fprm_string)
4423         (alpha_fptm_string, alpha_mlat_string): Delete.
4424         (alpha_handle_option): Don't set the above variables here.  Use the
4425         integer argument to check the validity of -mtls-size=.
4426         * config/alpha/alpha.opt (mcpu=, mtune=, mfp-rounding-mode=)
4427         (mfp-trap-mode=, mtrap-precision=, mmemory-latency=): Add Var()s.
4428         (mtls-size=): Likewise.  Convert to a UInteger and initialize the
4429         variable to 32.
4430
4431         * config/arc/arc.c (arc_cpu_string, arc_text_string)
4432         (arc_data_string, arc_rodata_string): Delete.
4433         (arc_handle_option): Don't set the above variables here.
4434         * config/arc/arc.opt (mcpu=, mtext=, mdata=, mrodata=): Add Var()s
4435         and initialize them.
4436
4437         * config/arm/arm.c (target_fpu_name, target_fpe_name)
4438         (target_float_abi_name, target_abi_name, structure_size_string)
4439         (arm_pic_register_string): Delete.
4440         (arm_handle_option): Don't set the above variables here, except
4441         in the handling of -mhard-float and -msoft-float.
4442         * config/arm/arm.opt (mabi=, mfloat-abi=, mfp=, mfpe=, mfpu=)
4443         (mpic-register=, mstructure-size-boundary=): Add Var()s.
4444
4445         * config/avr/avr.c (avr_init_stack, avr_mcu_name, TARGET_HANDLE_OPTION)
4446         (avr_handle_option): Delete.
4447         * config/avr/avr.opt (mmcu=, minit-stack=): Add Var()s and initialize
4448         them.
4449
4450         * config/bfin/bfin.c (bfin_library_id): Delete.
4451         (bfin_handle_option): Don't set it.
4452         * config/bfin/bfin.opt (mshared-library-id=): Add Var().
4453
4454         * config/c4x/c4x.h (c4x_rpts_cycles): Delete.
4455         * config/c4x/c4x.c (c4x_rpts_cycles): Delete.
4456         (c4x_handle_option): Don't set c4x_rpts_cycles here.
4457         * config/c4x/c4x.opt (mrpts=): Add Var().
4458
4459         * config/cris/aout.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't set
4460         cris_elinux_stacksize_str here.
4461         * config/cris/aout.opt (melinux-stacksize=): Add Var().
4462         * config/cris/cris.h (cris_max_stackframe_str, cris_cpu_str)
4463         (cris_tune_str, cris_elinux_stacksize_str): Delete.
4464         * config/cris/cris.c (cris_max_stackframe_str, cris_cpu_str)
4465         (cris_tune_str, cris_elinux_stacksize_str): Delete.
4466         (cris_handle_option): Don't set the above variables here.
4467         * config/cris/cris.opt (mcpu=, march=, mtune=, mmax-stackframe=)
4468         (max-stackframe=): Add Var()s.
4469
4470         * config/i386/i386.h (ix86_tune_string, ix86_arch_string): Delete.
4471         * config/i386/i386.c (ix86_cmodel_string, ix86_asm_string)
4472         (ix86_tls_dialect_string, ix86_tune_string, ix86_arch_string)
4473         (ix86_fpmath_string, ix86_regparm_string, ix86_align_loops_string)
4474         (ix86_align_jumps_string, ix86_preferred_stack_boundary_string)
4475         (ix86_branch_cost_string, ix86_align_funcs_string): Delete.
4476         (ix86_handle_option): Don't set the above variables here.
4477         * config/i386/i386.opt (malign-functions=, malign-jumps=)
4478         (malign-loops=, march=, masm=, mbranch-cost=, mcmodel=, mfpmath=)
4479         (mpreferred-stack-boundary=, mregparm=, mtls-dialect=, mtune=): Add
4480         Var()s.
4481
4482         * config/ia64/ia64.h (ia64_tls_size): Delete.
4483         * config/ia64/ia64.c (ia64_tls_size): Delete.
4484         (ia64_handle_option): Treat -mtls-size= as a UInteger option,
4485         reading the integer argument from the "value" parameter.  Don't
4486         set ia64_tls_size here.
4487         * config/ia64/ia64.opt (mtls-size=): Turn into a UInteger option.
4488         Add Var() and Init().
4489
4490         * config/m32r/m32r.h (m32r_cache_flush_func): Delete.
4491         (m32r_cache_flush_trap): Delete.
4492         * config/m32r/m32r.c (m32r_cache_flush_func): Delete.
4493         (m32r_cache_flush_trap): Delete.
4494         (m32r_handle_option): Don't set the above variables when handling
4495         -mflush-func= and -mflush-trap=.
4496         * config/m32r/m32r.opt (-mflush-func=, -mflush-trap=): Add Var()s
4497         and Init()s.
4498
4499         * config/mips/mips.h (mips_cache_flush_func): Delete.
4500         * config/mips/mips.c (mips_arch_string, mips_tune_string)
4501         (mips_cache_flush_func): Delete.
4502         (mips_handle_option): Don't set the above variables when handling
4503         -march=, -mtune= and -mflush-func=.
4504         * config/mips/mips.opt (march=, mflush-func=, mtune=): Add Var()s.
4505
4506         * config/s390/s390.c (s390_arch_string): Delete.
4507         (s390_handle_option): Don't set it here.
4508         * config/s390/s390.opt (march=): Add Var().
4509
4510         * config/sparc/sparc.h (sparc_cmodel_string): Delete.
4511         * config/sparc/sparc.c (sparc_cmodel_string): Delete.
4512         (sparc_handle_option): Don't set it here.
4513         * config/sparc/sparc.opt (mcmodel=): Add Var().
4514
4515 2005-05-25  Roger Sayle  <roger@eyesopen.com>
4516
4517         * convert.c (convert_to_integer) <POINTER_TYPE>: Avoid recursive
4518         call to convert_to_integer by building the NOP_EXPR directly.
4519
4520 2005-05-25  Richard Sandiford  <rsandifo@redhat.com>
4521
4522         * config/rs6000/rs6000.opt (mprioritize-restricted-insns=): Fix typo.
4523
4524 2005-05-25  Daniel Berlin  <dberlin@dberlin.org>
4525             Jeff Law  <law@redhat.com>
4526
4527         * tree-cfg.c (verify_expr, case ADDR_EXPR): Verify invariant,
4528         constant and side_effects of the ADDR_EXPR are consistent.
4529
4530         * tree-nested.c (convert_local_reference): Set CURRENT_FUNCTION_DECL
4531         appropriately around calls to recompute_tree_invarant_for_addr_expr.
4532
4533 2005-05-25  Ulrich Weigand  <uweigand@de.ibm.com>
4534
4535         * config/s390/s390.c (GP_ARG_NUM_REG, FP_ARG_NUM_REG): New defines.
4536         (s390_function_arg, s390_gimplify_va_arg): Use them.
4537         (s390_register_info): Save only required subset of argument
4538         registers into save area for va_list.
4539         (s390_va_start): Initialize only required elements of va_list struct.
4540         (s390_build_builtin_va_list): Set va_list_[gf]pr_counter_field.
4541
4542 2005-05-25  Ulrich Weigand  <uweigand@de.ibm.com>
4543
4544         * reload1.c (verify_initial_elim_offsets): Return boolean status
4545         instead of aborting.
4546         (reload): Adapt verify_initial_elim_offsets call site.  Restart
4547         main loop if some initial elimination offsets changed.
4548
4549 2005-05-25  Adam Nemet  <anemet@lnxw.com>
4550
4551         * config/rs6000/lynx.h (CC1_SPEC): Use -maix-struct-return instead
4552         of -mno-svr4-struct-return.
4553
4554 2005-05-25  Daniel Berlin  <dberlin@dberlin.org>
4555
4556         Fix PR tree-optimization/21705
4557         
4558         * tree-ssa-pre.c (in_fre): New static variable.
4559         (create_value_expr_from): Recursively value number reference ops
4560         in argument lists.
4561         (can_value_number_call): Temporary restrict only exists for
4562         PRE, not FRE.
4563
4564 2005-05-25  Kazu Hirata  <kazu@cs.umass.edu>
4565
4566         * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Replace
4567         sizeof (bitmap *) with sizeof (bitmap).
4568
4569 2005-05-25  Daniel Berlin <dberlin@dberlin.org>
4570
4571         * lambda-code.c (perfect_nestify): Call update_stmt on the exit
4572         condition.
4573
4574 2005-05-25  Adrian Straetling  <straetling@de.ibm.com>
4575
4576         * config/s390/s390.c (TARGET_INSN_VALID_WITHIN_DOLOOP): Set to
4577         hook_bool_rtx_true.
4578
4579 2005-05-25  Jan Hubicka  <jh@suse.cz>
4580
4581         * Makefile.in (ipa-inline.o): Add COEVERAGE_H dependency.
4582         * cgraph.c (cgraph_create_node): Reset estimated_growth.
4583         * cgraph.h (cgraph_global_info): Add estimated_growth.
4584         * ipa-inline.c: Include coverage.h
4585         (max_insns, max_count): New static variables.
4586         (cgraph_estimate_size_after_inlining): Cache the result.
4587         (cgraph_estimate_growth):
4588         * passes.c (rest_of_clean_state): Kill coverage_end_function.
4589         * timevar.def (TV_INLINE_HEURISTICS): New timevar.
4590         * tree-optimize.c (init_tree_optimization_passes): Move profiling before
4591         inlining.
4592         (ipa_passes): Initialize bitmaps.
4593
4594 2005-05-25  Adrian Straetling  <straetling@de.ibm.com>
4595
4596         * loop-doloop.c: Include "target.h". 
4597           (doloop_valid_p): Move tests to function in targhooks.c.
4598         * target.h (struct gcc_target): New target hook
4599           "insn_valid_within_doloop".
4600         * target-def.h: Define default value for "insn_valid_within_doloop".
4601           (TARGET_INITIALIZER): Insert new target hook into initializer.
4602         * targhooks.c (default_insn_valid_within_doloop): New function.
4603         * targhooks.h (default_insn_valid_within_doloop): Declare.
4604         * hooks.c (hook_bool_rtx_true): New function.
4605         * hooks.h (hook_bool_rtx_true): Declare.
4606         * doc/tm.texi: Add documentation for new target hook.
4607
4608 2005-05-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
4609
4610         PR target/21412
4611         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): New macro
4612         * config/sparc/sparc-protos.h (tls_symbolic_operand): Delete.
4613         (sparc_tls_referenced_p): New prototype.
4614         * config/sparc/sparc.c (tls_symbolic_operand): Delete.
4615         (sparc_expand_move): Look for TLS addresses with constant offsets.
4616         (legitimate_constant_p): Use SPARC_SYMBOL_REF_TLS_P instead of
4617         tls_symbolic_operand.
4618         (legitimate_pic_operand_p): Likewise.
4619         (legitimate_address_p): Likewise.
4620         (legitimize_address): Likewise.
4621         (sparc_tls_symbol_ref_1): New function.
4622         (sparc_tls_referenced_p): New function.
4623         * config/sparc/predicates.md (tgd_symbolic_operand): Use
4624         SYMBOL_REF_TLS_MODEL instead of tls_symbolic_operand.
4625         (tld_symbolic_operand): Likewise.
4626         (tie_symbolic_operand): Likewise.
4627         (tle_symbolic_operand): Likewise.
4628
4629 2005-05-24  DJ Delorie  <dj@redhat.com>
4630         
4631         * common.opt (-Wattributes): New.  Default true.
4632         * doc/invoke.texi (-Wno-attributes): Document.
4633         
4634         * attribs.c (decl_attributes): Move warning control from if() to
4635         warning(OPT_*).
4636         * c-common.c (handle_packed_attribute): Likewise.
4637         (handle_nocommon_attribute): Likewise.
4638         (handle_common_attribute): Likewise.
4639         (handle_noreturn_attribute): Likewise.
4640         (handle_noinline_attribute): Likewise.
4641         (handle_always_inline_attribute): Likewise.
4642         (handle_used_attribute): Likewise.
4643         (handle_unused_attribute): Likewise.
4644         (handle_const_attribute): Likewise.
4645         (handle_transparent_union_attribute): Likewise.
4646         (handle_constructor_attribute): Likewise.
4647         (handle_destructor_attribute): Likewise.
4648         (handle_mode_attribute): Likewise.
4649         (handle_alias_attribute): Likewise.
4650         (handle_visibility_attribute): Likewise.
4651         (handle_tls_model_attribute): Likewise.
4652         (handle_malloc_attribute): Likewise.
4653         (handle_returns_twice_attribute): Likewise.
4654         (handle_pure_attribute): Likewise.
4655         (handle_deprecated_attribute): Likewise.
4656         (handle_vector_size_attribute): Likewise.
4657         (handle_nothrow_attribute): Likewise.
4658         (handle_cleanup_attribute): Likewise.
4659         (handle_warn_unused_result_attribute): Likewise.
4660         (handle_sentinel_attribute): Likewise.
4661         * c-decl.c (diagnose_mismatched_decls): Likewise.
4662         (start_decl): Likewise.
4663         (grokdeclarator): Likewise.
4664         (start_function): Likewise.
4665         * c-format.c (check_function_format): Likewise.
4666         * stor-layout.c (place_field): Likewise.
4667         (finalize_record_size): Likewise.
4668         * tree.c (handle_dll_attribute)): Likewise.
4669         * varasm.c (default_assemble_visibility): Likewise.
4670         * config/darwin.c (darwin_handle_weak_import_attribute): Likewise.
4671         (darwin_assemble_visibility): Likewise.
4672         * config/arc/arc.c (arc_handle_interrupt_attribute): Likewise.
4673         * config/arm/arm.c (arm_handle_fndecl_attribute): Likewise.
4674         (arm_handle_isr_attribute): Likewise.
4675         * config/avr/avr.c (avr_handle_progmem_attribute): Likewise.
4676         (avr_handle_fndecl_attribute): Likewise.
4677         * config/bfin/bfin.c (handle_int_attribute): Likewise.
4678         * config/c4x/c4x.c (c4x_handle_fntype_attribute): Likewise.
4679         * config/h8300/h8300.c (h8300_handle_fndecl_attribute): Likewise.
4680         (h8300_handle_eightbit_data_attribute): Likewise.
4681         (h8300_handle_tiny_data_attribute): Likewise.
4682         * config/i386/i386.c (ix86_handle_cdecl_attribute): Likewise.
4683         (ix86_handle_regparm_attribute): Likewise.
4684         (ix86_handle_struct_attribute): Likewise.
4685         * config/i386/winnt.c (ix86_handle_shared_attribute): Likewise.
4686         (i386_pe_encode_section_info): Likewise.
4687         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
4688         * config/ip2k/ip2k.c (ip2k_handle_progmem_attribute): Likewise.
4689         (ip2k_handle_fndecl_attribute): Likewise.
4690         * config/m32r/m32r.c (m32r_handle_model_attribute): Likewise.
4691         * config/m68hc11/m68hc11 (m68hc11_handle_page0_attribute): Likewise.
4692         (m68hc11_handle_fntype_attribute): Likewise.
4693         (m68hc11_encode_section_info): Likewise.
4694         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
4695         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
4696         * config/ns32k/ns32k.c (ns32k_handle_fntype_attribute): Likewise.
4697         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute): Likewise.
4698         * config/sh/sh.c (sh_handle_interrupt_handler_attribute): Likewise.
4699         (sh_handle_sp_switch_attribute): Likewise.
4700         (sh_handle_trap_exit_attribute): Likewise.
4701         * config/sh/symbian.c (sh_symbian_dllimport_p): Likewise.
4702         (sh_symbian_handle_dll_attribute): Likewise.
4703         * config/stormy16/stormy16.c (xstormy16_handle_interrupt_attribute): Likewise.
4704         (xstormy16_handle_below100_attribute): Likewise.
4705         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
4706
4707         * c-common.c (unsigned_conversion_warning): Move warning control
4708         from if() to warning(OPT_*).
4709         (c_common_truthvalue_conversion): Likewise.
4710         (c_do_switch_warnings): Likewise.
4711         * c-decl.c (diagnose_mismatched_decls): Likewise.
4712         (diagnose_mismatched_decls): Likewise.
4713         (define_label): Likewise.
4714         (grokdeclarator): Likewise.
4715         * c-format.c (check_format_info): Likewise.
4716         * c-lex.c (interpret_integer): Likwise.
4717         (lex_string): Likewise.
4718         * c-opts.c (c_common_post_options): Likewise.
4719         * c-parser.c (c_parser_unary_expression): Likewise.
4720         * c-pragma.c (handle_pragma_redefine_extname): Likewise.
4721         (handle_pragma_extern_prefix): Likewise.
4722         * c-typeck.c (build_binary_op): Likewise.
4723         * gcse.c (is_too_expensive): Likewise.
4724         * opts.c (decode_options): Likewise.
4725         * stor-layout.c (place_field): Likewise.
4726         * tree-cfg.c (remove_bb): Likewise.
4727
4728         * c.opt (-Wreturn-type): Add Var(warn_return_type).
4729         * flags.h (warn_return_type): Remove.
4730         * toplev.c (warn_return_type): Likewise.
4731
4732 2005-05-24  Kelley Cook  <kcook@gcc.gnu.org>
4733
4734         * configure.ac: Don't use gcc_AC_C_LONG_LONG.  Check for
4735         existence of long long and __int64 before determining their size.
4736         * aclocal.m4: Delete gcc_AC_C_LONG_LONG.
4737         * configure, config.h.in:  Regenerate.
4738
4739 2005-05-24  Kelley Cook  <kcook@gcc.gnu.org>
4740
4741         * configure: Regenerate.
4742
4743 2005-05-24  Ziemowit Laski  <zlaski@apple.com>
4744
4745         * c-common.h (objc_comptypes): Remove prototype.
4746         (objc_compare_types): New prototype.
4747         (objc_volatilized_decl): Likewise.
4748         (objc_type_quals_match): Likewise.
4749         * c-decl.c (objc_mark_locals_volatile): Streamline by calling
4750         objc_volatilize_decl().
4751         * c-typeck.c (comp_target_types): Remove third parameter; do
4752         not call objc_comptypes().
4753         (comptypes): Remove calls to objc_comptypes().
4754         (build_function_call): Extend compatible prototype check to ObjC.
4755         (build_conditional_expr): Adjust call to comp_target_types().
4756         (convert_for_assignment): Call objc_compare_types() instead of
4757         objc_comptypes(); adjust calls to comp_target_types(); call
4758         objc_type_quals_match() before issuing qualifier mismatch
4759         warnings.
4760         (build_binary_op): Call objc_compare_types() before issuing
4761         pointer mismatch warnings; adjust calls to
4762         comp_target_types().
4763         * stub-objc.c (objc_comptypes): Remove stub.
4764         (objc_compare_types): New stub.
4765         (objc_volatilized_decl): Likewise.
4766         (objc_type_quals_match): Likewise.
4767
4768 2005-05-24  Paolo Carlini  <pcarlini@suse.de>
4769
4770         * config/ia64/ia64intrin.h: Define nothing for C++:
4771         overloaded builtins have been ported to C++.
4772
4773 2005-05-24  Jeff Law  <law@redhat.com>
4774
4775         * tree-nested.c (build_addr): New "context" argument.  Temporarily
4776         set current_function_decl around the call to build the ADDR_EXPR.
4777         (get_static_chain): Pass proper context to build_addr.
4778         (convert_nl_goto_reference): Likewise.
4779         (convert_tramp_reference): Likewise.
4780         (final_nesting_tree_1): Likewise.
4781         * tree-profile.c (tree_gen_interval_profiler): Likewise.
4782         (tree_gen_pow2_profiler): Likewise.
4783         (tree_gen_one_value_profiler): Likewise.
4784         * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Likewise.
4785         * tree.h (build_addr): Update prototype.
4786
4787 2005-05-24  Kazu Hirata  <kazu@cs.umass.edu>
4788
4789         * tree-flow.h (bb_ann_d): Remove has_escape_site.
4790         * tree-ssa-alias.c (compute_points_to_addr_escape): Don't
4791         write to has_escape_site.
4792
4793 2005-05-24  Jeff Law  <law@redhat.com>
4794
4795         * Makefile.in (tree-cfg.o): Depend on tree-ssa-propagate.h.
4796         * tree-cfg.c: Include tree-ssa-propagate.h.
4797         (replace_uses_by): Call recompute_tree_invarant_for_addr_expr as
4798         needed.
4799
4800 2005-05-24  Nick Clifton  <nickc@redhat.com>
4801
4802         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4803         __NO_FPRS__ when 'f' class registers will not be available. 
4804
4805 2005-05-24  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4806
4807         * config/m32r/m32r.c (m32r_expand_block_move):  Return 0 if
4808         nothing was done.
4809         * config/m32r/m32r.md (movmemsi):  If m32r_expand_block_move did
4810         nothing then FAIL.
4811         * config/m32r/m32r/m32r-protos.h  (m32r_expand_block_move): Update
4812         prototype.
4813
4814 2005-05-23  Jeff Law  <law@redhat.com>
4815
4816         * tree-ssa-dom.c (cprop_into_stmt): Do not call
4817         recompute_tree_invariant_for_addr_expr here.
4818         (optimize_stmt): Call it here instead and do so if anything
4819         at all has changed in the statement and the RHS is an ADDR_EXPR.
4820         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): If
4821         needed, call recompute_tree_invariant_for_addr_expr.
4822         * tree-ssa-propagate.c (substitute_and_fold): Call
4823         recompute_tree_invariant_for_addr_expr as needed.
4824
4825 2005-05-23  Andreas Krebbel  <krebbel1@de.ibm.com>
4826
4827         * config/s390/s390.c (s390_optimize_prologue): Don't replace an insn
4828         saving less registers than the replacement.
4829
4830 2005-05-23  Jan Hubicka  <jh@suse.cz>
4831
4832         * tree-flow.h (stmt_ann_d): Kill GTY ((skip)) mark on BB.
4833
4834 2005-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
4835
4836         * config/sparc/sparc-protos.h (sparc_expand_move): New prototype.
4837         * config/sparc/sparc.c (sparc_expand_move): New function.
4838         (sparc_emit_set_const64): Rewrite assert condition on entry.
4839         (legitimate_constant_p) <CONST_VECTOR>: New case.
4840         (legitimize_pic_address): Use TARGET_ARCH64 to select the mode.
4841         * config/sparc/sparc.md (movqi, movhi, movsi, movdi, movV32,
4842         movV64, movtf): Use nonimmediate_operand for the first operand.
4843         Rewrite.  Only invoke sparc_expand_move.
4844         * config/sparc/predicates.md (input_operand): Reorder tests.
4845
4846 2005-05-23  Jan Beulich  <jbeulich@novell.com>
4847
4848         * gthr-posix.h (__gthread_recursive_mutex_init_function): Add
4849         missing return statement.
4850
4851 2005-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
4852
4853         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Use
4854         emit_move_insn for moves to TFmode stack slots.
4855
4856 2005-05-21  Richard Guenther  <rguenth@gcc.gnu.org>
4857
4858         * tree-stdarg.c (execute_optimize_stdarg): Handle references
4859         to va_list of the form &va[0].
4860
4861 2005-05-20  Jan Hubicka  <jh@suse.cz>
4862
4863         * Makefile.in (insn-emit.o): Add basic-block.h dependency.
4864         * genemit.c (main): Make insn-emit to include basic-block.h too.
4865
4866 2005-05-20  Jan Hubicka  <jh@suse.cz>
4867
4868         * cgraphunit.c (cgraph_expand_function): Force function being lowered.
4869
4870 2005-05-19  Richard Henderson  <rth@redhat.com>
4871
4872         * config/alpha/alpha.c (emit_unlikely_jump, emit_load_locked,
4873         emit_store_conditional): Split out from ...
4874         (alpha_split_atomic_op): ... here.
4875         (alpha_split_compare_and_swap): New; extract from .md file.
4876         (alpha_split_lock_test_and_set): Likewise.
4877         * config/alpha/alpha-protos.h: Update.
4878         * config/alpha/sync.md (sync_compare_and_swap<I48MODE>): Move
4879         split code into alpha.c.
4880         (sync_lock_test_and_set<I48MODE>): Likewise.
4881
4882 2005-05-19  Richard Henderson  <rth@redhat.com>
4883
4884         * unwind.h, unwind-pe.h: Revert gcc_unreachable change of 05-17.
4885
4886 2005-05-19  Richard Henderson  <rth@redhat.com>
4887
4888         * config/i386/sse.md (mulv4si3): Use all register inputs.
4889         (mulv2di3): Likewise.
4890
4891 2005-05-19  Richard Guenther  <rguenth@gcc.gnu.org>
4892
4893         * tree-ssa-loop-ivopts.c (determine_base_object): Use
4894         build_fold_addr_expr to generate trees of correct type.
4895         Use fold_buildN if possible.
4896
4897 2005-05-19  Jan Hubicka  <jh@suse.cz>
4898
4899         * basic-block.h (REG_BR_PROB_BASE): Define.
4900         * cgraph.c (cgraph_create_edge): Initialize loop_nest and count.
4901         (dump_cgraph_node): Dump count.
4902         (cgraph_clone_edge): Rescale counts.
4903         (cgraph_clone_node): Likewise.
4904         * cgraph.h: Include basic-block.h
4905         (cgraph_node): Add count.
4906         (cgraph_edge): Add count and loop_nest.
4907         (cgraph_node, cgraph_edge, cgraph_clone_edge, cgraph_clone_node):
4908         Update prototypes.
4909         * cgraphunit.c: Kill now redundant inlining comment.
4910         (cgraph_create_edges): Make static, maintain current basic block;
4911         fix pasto.
4912         (record_call_1): Fill in new fields.
4913         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
4914         cgraph_clone_node.
4915         (cgraph_decide_recursive_inlining): Likewise.
4916         * rtl.h (REG_BR_PROB_BASE): Kill.
4917         * tree-inline.c (copy_body_r): Update call of cgraph_clone_edge.
4918         (expand_call_inline): Update call of cgraph_create_edge.
4919         * tree-optimize.c (tree_rest_of_compilation): Likewise.
4920
4921 2005-05-19  Nick Clifton  <nickc@redhat.com>
4922
4923         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use the
4924         new rs6000_explicit_options structure.
4925
4926 2005-05-19  Richard Henderson  <rth@redhat.com>
4927
4928         PR target/21390
4929         * config/alpha/alpha.c (alpha_emit_conditional_branch): Move 
4930         TFmode code swapping ...
4931         (alpha_emit_xfloating_compare): ... here.
4932         (alpha_emit_setcc): Update to match.
4933         (alpha_lookup_xfloating_lib_func): Assert TARGET_HAS_XFLOATING_LIBS.
4934
4935 2005-05-19  Richard Henderson  <rth@redhat.com>
4936
4937         PR target/21657
4938         * config/ia64/ia64.c (ia64_expand_tls_address): Remove extra
4939         memory indirection in local-dynamic case.
4940
4941 2005-05-18  Jie Zhang  <jie.zhang@analog.com>
4942             Bernd Schmidt  <bernd.schmidt@analog.com>
4943
4944         * config/bfin/bfin.c (branch_dest): Add comment why it's
4945         necessary.
4946         * config/bfin/bfin.md (attr "length" default): Change the offset of
4947         forward conditional branch of length 4 from 4096 to 4092.
4948
4949 2005-05-19  Jan Beulich  <jbeulich@novell.com>
4950
4951         * unwind-compat.c: Include tconfig.h and tsystem.h.
4952         * unwind-dw2-fde-compat.c: Likewise.
4953
4954 2005-05-18  Richard Henderson  <rth@redhat.com>
4955
4956         PR 21541
4957         * ifcvt.c (noce_process_if_block): Avoid conversion when the
4958         memory destination is readonly.
4959
4960 2005-05-18  Richard Henderson  <rth@redhat.com>
4961
4962         PR 21541
4963         * tree-ssa-operands.c (opf_non_specific): New.
4964         (get_asm_expr_operands): Set it.
4965         (add_call_clobber_ops, add_call_read_ops): Likewise.
4966         (add_stmt_operand): Test it instead of opf_kill_def when
4967         considering unmodifiable variables.
4968
4969         * tree-ssa-operands.c (get_expr_operands): Fix exact test.
4970
4971 2005-05-19  Kazu Hirata  <kazu@cs.umass.edu>
4972
4973         * cfgexpand.c, tree-cfg.c, tree-inline.c, tree-optimize.c,
4974         tree-ssa-forwprop.c: Fix comment typos.
4975         * doc/invoke.texi: Fix a typo.
4976
4977 2005-05-18  Richard Henderson  <rth@redhat.com>
4978
4979         * config.gcc (powerpc-*-linux*): Include linux64.opt when
4980         including linux64.h.
4981
4982 2005-05-18  Richard Henderson  <rth@redhat.com>
4983
4984         * tree-cfg.c (pass_remove_useless): Revert last change.
4985         * tree-optimize.c (init_tree_optimization_passes): Initialize
4986         all_lowering_passes with PROP_gimple_any.
4987
4988 2005-05-18  Devang Patel  <dpatel@apple.com>
4989
4990         * config/rs6000/rs6000.md (insvsi_internal1): Subtract shift from
4991         the mask end.
4992         
4993 2005-05-18  Richard Henderson  <rth@redhat.com>
4994
4995         * tree-ssa-forwprop.c (cfg_changed): New.
4996         (tidy_after_forward_propagate_addr): New.
4997         (forward_propagate_addr_expr): Use it, and fold_stmt_inplace.
4998         (forward_propagate_addr_into_variable_array_index): Likewise.
4999         (tree_ssa_forward_propagate_single_use_vars): Cleanup cfg if
5000         edges were removed.
5001
5002 2005-05-18  Geoffrey Keating  <geoffk@apple.com>
5003
5004         * dummy-checksum.c: New.
5005         * genchecksum.c: New.
5006         * c.opt (print_pch_checksum): New flag.
5007         * c-pch.c (struct c_pch_validity): Make much shorter.
5008         (no_checksum): New.
5009         (host_machine): Remove.
5010         (target_machine): Remove.
5011         (get_ident): Change PCH version number.
5012         (pch_init): When -fverbose-asm, print out the compiler fingerprint.
5013         Don't put triplets or version string in PCH validity data.
5014         Do put the compiler checksum in the validity data.
5015         (c_common_valid_pch): Don't check triplets or version string.  Do
5016         check checksum.
5017         (c_common_print_pch_checksum): New.
5018         * c-opts.c (c_common_handle_option): Add OPT_print_pch_checksum.
5019         Print fingerprint with -v.
5020         * c-common.h (c_common_print_pch_checksum): New.
5021         (executable_checksum): New.
5022         * Makefile.in (STAGEMOVESTUFF): Add cc1*-dummy, *-checksum.c.
5023         (cc1-dummy): New rule.
5024         (cc1-checksum.c): New rule.
5025         (cc1-checksum.o): New rule.
5026         (cc1): Add checksum support.
5027         (build/genchecksum): New.
5028         (build/genchecksum.o): New.
5029         (dummy-checksum.o): New.
5030         (genobjnames): Add genchecksum.o.
5031         (mostlyclean): Remove *-checksum.c.
5032         (gnucompare): Add libgcc to list of directories checked.
5033         Make comparison problems in libgcc/ and with checksum files only
5034         be warnings.
5035         * doc/invoke.texi (Precompiled Headers): Remove caution.
5036         Document that it must be the exact same binary.  Add a few
5037         known-safe flags to the list.
5038
5039         * rs6000/predicates.md (fix_trunc_dest_operand): New.
5040         * rs6000/rs6000.md (fix_truncdfsi2): Use fix_trunc_dest_operand.
5041         Check that a memory operand is valid before trying to use it.
5042         
5043         * tree-cfg.c (pass_remove_useless): This pass works on trees.
5044
5045 2005-05-18  Richard Guenther  <rguenth@gcc.gnu.org>
5046
5047         * tree.c (build1_stat): Don't try to handle two-operand
5048         tree codes.
5049
5050 2005-05-18  Richard Sandiford  <rsandifo@redhat.com>
5051
5052         * config.gcc (sh*-*-*): Define SUPPORT_* macros to 1.
5053         * config/sh/sh.h: Update mask names throughout.
5054         (target_flags, ISIZE_BIT, DALIGN_BIT, SH1_BIT, SH2_BIT, SH3_BIT)
5055         (SH_E_BIT, HARD_SH4_BIT, FPU_SINGLE_BIT, SH4_BIT, SH4A_BIT, FMOVD_BIT)
5056         (SH5_BIT, SPACE_BIT, BIGTABLE_BIT, RELAX_BIT, USERMODE_BIT)
5057         (HITACHI_BIT, NOMACSAVE_BIT, PREFERGOT_BIT, PADSTRUCT_BIT)
5058         (LITTLE_ENDIAN_BIT, IEEE_BIT, SAVE_ALL_TR_BIT, HARD_SH2A_BIT)
5059         (HARD_SH2A_DOUBLE_BIT, INDEXED_ADDRESS_BIT, PT_FIXED_BIT)
5060         (INVALID_SYMBOLS_BIT, ADJUST_UNROLL_BIT, TARGET_DUMPISIZE)
5061         (TARGET_ALIGN_DOUBLE, TARGET_SH1, TARGET_SH2, TARGET_SH3)
5062         (TARGET_HARD_SH4, TARGET_FPU_SINGLE, TARGET_SH5, TARGET_FMOVD)
5063         (TARGET_IEEE, TARGET_SMALLCODE, TARGET_BIGTABLE, TARGET_RELAX)
5064         (TARGET_HITACHI, TARGET_NOMACSAVE, TARGET_PADSTRUCT)
5065         (TARGET_LITTLE_ENDIAN, TARGET_USERMODE, TARGET_PREFERGOT)
5066         (TARGET_SAVE_ALL_TARGET_REGS, TARGET_ALLOW_INDEXED_ADDRESS)
5067         (TARGET_PT_FIXED, TARGET_INVALID_SYMBOLS, TARGET_ADJUST_UNROLL)
5068         (TARGET_SWITCH_SH1, TARGET_SWITCH_SH2, TARGET_SWITCH_SH2E)
5069         (TARGET_SWITCH_SH2A, TARGET_SWITCH_SH2A_SINGLE_ONLY)
5070         (TARGET_SWITCH_SH2A_SINGLE, TARGET_SWITCH_SH2A_NOFPU)
5071         (TARGET_SWITCH_SH3, TARGET_SWITCH_SH3E, TARGET_SWITCH_SH4_SINGLE_ONLY)
5072         (TARGET_SWITCH_SH4_SINGLE, TARGET_SWITCH_SH4_NOFPU, TARGET_SWITCH_SH4)
5073         (TARGET_SWITCH_SH4A, TARGET_SWITCH_SH4A_SINGLE_ONLY)
5074         (TARGET_SWITCH_SH4A_SINGLE, TARGET_SWITCH_SH4A_NOFPU)
5075         (TARGET_SWITCH_SH4AL, TARGET_SWITCH_SH5_64MEDIA)
5076         (TARGET_SWITCH_SH5_64MEDIA_NOFPU, TARGET_SWITCHES_SH5_32MEDIA)
5077         (TARGET_SWITCHES_SH5_32MEDIA_NOFPU, TARGET_SWITCH_SH5_32_ANY_EXTRA)
5078         (TARGET_SWITCH_SH5_MEDIA_ANY_EXTRA, TARGET_SWITCHES)
5079         (SUBTARGET_SWITCHES): Delete.
5080         (TARGET_SH2E, TARGET_SH2A, TARGET_SH2A_SINGLE, TARGET_SH2A_DOUBLE)
5081         (TARGET_SH3E, TARGET_CACHE32, TARGET_SUPERSCALAR, TARGET_HARVARD)
5082         (TARGET_FPU_DOUBLE, TARGET_SH4A_ARCH, TARGET_SHMEDIA32)
5083         (TARGET_SHMEDIA64): Redefine using other TARGET_* macros.
5084         (TARGET_SH4): Undefine options.h definition and check MASK_SH1 as well.
5085         (SUPPORT_SH1, SUPPORT_SH2E, SUPPORT_SH4, SUPPORT_SH4_SINGLE)
5086         (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Make numeric.
5087         (SUPPORT_SH2): Define to 1 if SUPPORT_SH1.
5088         (SUPPORT_SH3): Likewise SUPPORT_SH2.
5089         (SUPPORT_SH4_NOFPU): Likewise SUPPORT_SH3.
5090         (SUPPORT_SH4A_NOFPU, SUPPORT_SH4AL, SUPPORT_SH2A_NOFPU): Likewise
5091         SUPPORT_SH4_NOFPU.
5092         (SUPPORT_SH3E): Likewise SUPPORT_SH2E.
5093         (SUPPORT_SH4_SINGLE_ONLY, SUPPORT_SH4A_SINGLE_ONLY)
5094         (SUPPORT_SH2A_SINGLE_ONLY): Likewise SUPPORT_SH3E.
5095         (SUPPORT_SH4A): Likewise SUPPORT_SH4.
5096         (SUPPORT_SH4A_SINGLE): Likewise SUPPORT_SH4_SINGLE.
5097         (SUPPORT_SH5_32MEDIA): Likewise SUPPORT_SH5_COMPACT.
5098         (SUPPORT_SH5_32MEDIA_NOFPU): Likewise SUPPORT_SH5_COMPACT_NOFPU.
5099         (SUPPORT_ANY_SH5_32MEDIA, SUPPORT_ANY_SH5_64MEDIA)
5100         (SUPPORT_ANY_SH5): New macros.
5101         (TARGET_NONE): Replace with...
5102         (MASK_ARCH): ...this new macro.
5103         * config/sh/elf.h: Update mask names
5104         * config/sh/linux.h: Likewise.
5105         * config/sh/little.h: Likewise.
5106         * config/sh/netbsd-elf.h: Likewise.
5107         * config/sh/symbian-pre.h: Likewise.
5108         * config/sh/sh.c (sh_handle_option): New function.
5109         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
5110         (calc_live_regs): Use MASK_FPU_SINGLE instead of FPU_SINGLE_BIT.
5111         (sh_target_switches, target_switches): Delete.
5112         (sh_pch_valid_p): Check for specific differences in the target_flags
5113         settings.
5114         (sh_init_cumulative_args): Use MASK_HITACHI instead of HITACHI_BIT.
5115         * config/sh/sh.opt: New file.
5116
5117 2005-05-18  Richard Henderson  <rth@redhat.com>
5118
5119         PR target/21632
5120         * config/ia64/ia64.c (ia64_extra_constraint) <'T'>: Use
5121         small_addr_symbolic_operand.
5122
5123 2005-05-18  Jeff Law  <law@redhat.com>
5124
5125         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
5126         propagate an ADDR_EXPR if the definition and use sites are
5127         in different EH regions.
5128
5129 2005-05-18  Ian Lance Taylor  <ian@airs.com>
5130
5131         * read-rtl.c (mode_attr_index): Use obstack_grow0, not
5132         obstack_grow.
5133
5134 2005-05-18  Daniel Berlin  <dberlin@dberlin.org>
5135
5136         * cfgrtl.c (purge_dead_edges): Don't remove fake edges.
5137
5138 2005-05-18  Daniel Berlin  <dberlin@dberlin.org>
5139         
5140         Fix PR tree-optimization/21407
5141
5142         * tree-ssa-operands.c (note_addressable): Change
5143         COMPONENT_REF handling in response to aliasing
5144         discussion.
5145
5146 2005-05-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
5147
5148         * config/sparc/sol2.h (TARGET_DEFAULT): Add back MASK_APP_REGS.
5149         * config/sparc/sol2-64.h (TARGET_DEFAULT): Likewise.
5150         * config/sparc/sp-elf.h (TARGET_DEFAULT): Delete.
5151         * doc/invoke.texi (SPARC options): Document that -mapp-regs is
5152         the default on Solaris too.
5153
5154 2005-05-17  Daniel Berlin  <dberlin@dberlin.org>
5155
5156         * tree-ssa-pre.c (find_or_generate_expression): CALL_EXPR
5157         is okay too.
5158
5159 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
5160
5161         * timevar.def (TV_SCEV_CONST): New timevar.
5162         * tree-optimize.c (init_tree_optimization_passes): Add
5163         pass_scev_cprop.
5164         * tree-pass.h (pass_scev_cprop): Declare.
5165         * tree-scalar-evolution.c (scev_const_prop): New function.
5166         * tree-scalar-evolution.h (scev_const_prop): Declare.
5167         * tree-ssa-loop.c (gate_scev_const_prop, pass_scev_cprop):
5168         New.
5169         * tree-cfg.c (replace_uses_by): Export.
5170         * tree-flow.h (replace_uses_by): Declare.
5171
5172 2005-05-17  Ziemowit Laski  <zlaski@apple.com>
5173             Mike Stump  <mrs@apple.com>
5174
5175         Yet more Objective-C++...
5176
5177         * c-common.h (objc_finish_try_stmt): Add.
5178         (objc_build_synchronized): Add.
5179         (objc_generate_write_barrier): Add.
5180         * stub-objc.c (objc_build_synchronized): Add return value.
5181         (objc_finish_try_stmt): Likewise.
5182         (objc_generate_write_barrier): Add.
5183
5184         * c-common.h (objc_rewrite_function_call): Add.
5185         * c-typeck.c (build_function_call): Allow objc to rewrite
5186         FUNCTION_DECLs.
5187         (build_modify_expr): Allow objc to generate write barriers.
5188         * c.opt (Wassign-intercept): Add.
5189         (Wstrict-selector-match): Add.
5190         (fobjc-call-cxx-cdtors): Add.
5191         (fobjc-direct-dispatch): Add.
5192         (fobjc-gc): Add.
5193         * dbxout.c (get_lang_number): Add Objective-C++ support.
5194         * doc/invoke.texi (-fobjc-call-cxx-cdtors): Likewise.
5195         (-Wstrict-selector-match): Likewise.
5196         (-fobjc-direct-dispatch): Likewise.
5197         (-Wassign-intercept): Likewise.
5198         (Overall Options): Likewise.
5199         * gengtype.c (get_output_file_with_visibility): Likewise.
5200         * stub-objc.c (objc_rewrite_function_call): Add.
5201         * config/darwin.h (ASM_OUTPUT_LABELREF): Improved quoting support.
5202
5203         * c-common.c (flag_objc_exceptions): Remove.
5204         (flag_objc_sjlj_exceptions): Remove.
5205         * c-decl.c (objc_mark_locals_volatile): Don't change decls
5206         that are already ok.
5207         * c-opts.c (c_common_handle_option, case
5208         OPT_fobjc_exceptions): Remove.
5209         (case OPT_fobjc_sjlj_exceptions): Remove
5210         * c.opt (fobjc-call-cxx-cdtors): Have opt create the flag.
5211         (fobjc-exceptions): Likewise.
5212         (fobjc-sjlj-exceptions): Likewise.
5213         * config/rs6000/darwin.h (OFFS_MSGSEND_FAST): Add.
5214         (OFFS_ASSIGNIVAR_FAST): Add.
5215         
5216 2005-05-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
5217
5218         * config/sparc/sparc.md (movhi): Do not test constness
5219         of operand #1 twice.
5220         (movsi): Likewise.
5221         (movdi): Unconditionally accept zero as second operand
5222         when the first is memory.
5223         (movdi_insn_sp32): Handle above case.
5224         (DImode splitter): Use predicates.
5225         (DImode splitter): Use const_zero_operand predicate.
5226         (movsf_insn): Swap 2 alternatives.
5227
5228 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
5229
5230         * tree-ssa-loop-ivopts.c (find_bivs, find_givs_in_stmt_scev): Apply
5231         expand_simple_operations to bases of the ivs.
5232         (tree_int_cst_sign_bit): Export.
5233         * tree-flow.h (expand_simple_operations): Declare.
5234         * tree-ssa-loop-niter.c (number_of_iterations_cond): Use
5235         tree_int_cst_sign_bit.
5236         (expand_simple_operations): Export.
5237         * tree.h (tree_int_cst_sign_bit): Declare.
5238
5239 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
5240
5241         * tree-cfg.c (tree_can_merge_blocks_p): Allow phi nodes in the
5242         merged block.
5243         (replace_uses_by): New function.
5244         (tree_merge_blocks): Eliminate the phi nodes in the merged block.
5245         * tree-flow.h (fold_stmt_inplace): Declare.
5246         * tree-ssa-ccp.c (fold_stmt_inplace): New function.
5247         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update dominance
5248         info after cfg cleanup.
5249
5250 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
5251
5252         * cfgloop.h (just_once_each_iteration_p): Declaration changed.
5253         * cfgloopanal.c (just_once_each_iteration_p): Make the loop argument
5254         const.
5255
5256 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
5257
5258         * ggc-page.c (ggc_alloc_stat): Record amount of memory allocated.
5259         * ggc-zone.c (ggc_alloc_zone_1): Ditto.
5260         * timevar.c (timevar_ggc_mem_total): New variable.
5261         (GGC_MEM_BOUND): New constant.
5262         (get_time): Record ggc memory status.
5263         (timevar_accumulate): Accumulate amount of ggc memory.
5264         (timevar_print): Print consumption of ggc memory.
5265         * timevar.def (TV_FIND_REFERENCED_VARS, TV_TREE_REDPHI,
5266         TV_TREE_LOOP_BOUNDS, TV_TREE_LOOP_IVCANON, TV_TREE_VECTORIZATION,
5267         TV_TREE_LINEAR_TRANSFORM): Shorten strings to fit in 22 characters.
5268         * timevar.h (struct timevar_time_def): Add ggc_mem field.
5269         (timevar_ggc_mem_total): Declare.
5270
5271 2005-05-17  Kazu Hirata  <kazu@cs.umass.edu>
5272
5273         * tree-into-ssa.c (update_ssa): Clean up by shortening the
5274         live range of DFS.
5275
5276 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
5277
5278         * config/cris/cris.md (ncond, ocode, rcond): Remove separate
5279         define_code_attr.
5280         ("b<ncond:code>", "b<ocond:code>", "b<rcond:code>")
5281         ("*b<ncond:code>_reversed", "*b<ocond:code>_reversed")
5282         ("*b<rcond:code>_reversed", "s<ncond:code>", "s<rcond:code>")
5283         ("s<ocond:code>"): Rename from respectively "b<ncond>",
5284         "b<ocond>", "b<rcond>", ("*b<ncond>_reversed",
5285         "*b<ocond>_reversed", "*b<rcond>_reversed", "s<ncond>",
5286         "s<rcond>" and "s<ocond>".
5287         ("b<ocond:code>", "*b<ocond:code>_reversed")
5288         ("*b<rcond:code>_reversed"): Remove extraneous backslashes in
5289         output statement section.
5290
5291 2005-05-17  Roger Sayle  <roger@eyesopen.com>
5292
5293         * c-typeck.c (common_type): Also handle BOOLEAN_TYPEs.
5294
5295 2005-05-17  Steven Bosscher  <stevenb@suse.de>
5296             Stuart Hastings <stuart@apple.com>
5297             Jan Hubicka  <jh@suse.cz>
5298             Dale Johannesen  <dalej@apple.com>
5299
5300         * cgraph.h (cgraph_node): Add 'lowered' state.
5301         (cgraph_lower_function): Declare.
5302         * cgraphunit.c (cgraph_finalize_function): Initialize lowered flag.
5303         (cgraph_lower_function): New function.
5304         (cgraph_create_edges): Deal with lowered function bodies.
5305         (verify_cgraph_node): Likewise.
5306         (cgraph_analyze_function): Do lowering job.
5307         (cgraph_build_static_cdtor): Likewise.
5308         * function.h (struct function): Add saved_eh and saved_cfg.
5309         * integrate.c (copy_decl_for_inlining): Kill LABEL_DECL_UID field.
5310         * tree-cfg.c (fold_cond_expr_cond): Export.
5311         * tree-flow.h (fold_cond_expr_cond): Declare.
5312         * tree-inline.c: Include basic-block, ggc, tree-flow, except.h and
5313         pointer-set.
5314         (struct_inline_data): Kill fnd, first_inlined_fn, ret_label,
5315         in_target_cleanup_p, tree_pruner, tsi; add callee, caller and
5316         callee_cfun, block, eh_region, eh_region_offset.
5317         (inlining_p): New predicate.
5318         (remap_decl): Update for new inline_data; declare newly created inline
5319         vars in low gimple way.
5320         (copy_body_r): Update for new datastructure, simplify some of handling
5321         when we are in gimple; remap LABEL_DECLs for EH; copy TREE_BLOCK;
5322         deal with RESX_EXPRs.
5323         (copy_bb): New.
5324         (copy_edges_for_bb): Likewise.
5325         (remap_decl_1): New.
5326         (copy_cfg_body): New.
5327         (copy_generic_body): Rewrite to work on low gimple.
5328         (copy_body): Turn into simple wrapper around copy_cfg_body.
5329         (setup_one_parameter): Insert new statements into given basic block.
5330         (initialize_initialized_parameters): Likewise, reorganize way things are
5331         gimplified.
5332         (declare_return_variable): Update for new inline data datastructure.
5333         (inline_forbidden_p): Work on low gimple.
5334         (estimate_num_insns): Likewise.
5335         (expand_call_inline): Work on CFG.
5336         (push_cfun, pop_cfun): New functions.
5337         (cfun_stack): New stack.
5338         (add_lexical_block): New function.
5339         (gimple_expand_calls_inline): Work on basic block.
5340         (optimize_inline_calls): Likewise.
5341         (clone_body, save_body, unsave_ewpr_now): Update for new
5342         datastructures.
5343         (declare_inline_vars): Work on block instead of bind_expr.
5344         (inlining_p): New predicate.
5345         * tree-inline.h (push_cfun, pop_cfun): Declare.
5346         * tree-optimize.c: Include except.h
5347         (all_lowering_passes): New variable.
5348         (execute_fixup_cfg, pass_fixup_cfg): New pass.
5349         (init_tree_optimization_passes): Move some to all_lowering_passes.
5350         (tree_lowering_passes): New function.
5351         (tree_rest_of_compilation): Register cfg hooks; save/unsave eh.
5352         * tree-pass.h (tree_lowering_passes): Declare
5353
5354 2005-05-17  Nathan Sidwell  <nathan@codesourcery.com>
5355
5356         * unwind-dw2-fde-darwin.c: Include tsystem.h.
5357
5358 2005-05-17  Jeff Law  <law@redhat.com>
5359
5360         * Makefile.in (tree-ssa-forwprop.o): Depend on langhooks.h.
5361         * tree-ssa-forwprop.c: Include langhooks.h.
5362         (forward_propagate_addr_expr_into_variable_array_index): New.
5363         (forward_propagate_addr_expr): New.
5364         (tree_ssa_forward_propagate_single_use_vars): Loop over all
5365         the statements in the block instead of just the last statement.
5366         Call forward_propagate_addr_expr as needed.
5367         (pass_forwprop): Update the SSA graph after forward propagation is
5368         complete.
5369
5370 2005-05-17  Nathan Sidwell  <nathan@codesourcery.com>
5371
5372         * unwind-dw2-fde-glibc.c (base_from_cb_data,
5373         _Unwind_IteratePhdrCallback): Use gcc_assert and gcc_unreachable as
5374         appropriate.
5375         * unwind-dw2-fde.c (__deregister_frame_info_bases,
5376         base_from_object, fde_split, end_fde_sort): Likewise.
5377         * unwind-dw2.c (_Unwind_GetGR, _Unwind_SetGR, execute_stack_op, 
5378         execute_cfa_program, _Unwind_SetSpColumn, uw_update_context_1,
5379         uw_init_context_1): Likewise.
5380         * unwind.inc (_Unwind_RaiseException_Phase2, _Unwind_Resume,
5381         _Unwind_Resume_or_Rethrow): Likewise.
5382         * unwind-pe.h (__gxx_abort): Do not define.
5383         (size_of_encoded_value, base_of_encoded_value,
5384         read_encoded_value_with_base): Use gcc_unreachable.
5385         * unwind.h (_Unwind_GetTextRelBase): Likewise.
5386
5387 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
5388
5389         * config/arm/lib1funcs.asm (cfi_pop, cfi_push, cfi_start)
5390         (cfi_end): New macros.
5391         (RETLDM): Use cfi_pop.  Expect an eight byte stack frame.
5392         (ARM_LDIV0, THUMB_LDIV0, DIV_FUNC_END): Use CFI macros.  Create
5393         an eight byte stack frame.
5394         (__NR_tkill): Define.
5395         (__div0): Use gettid tkill on GNU/Linux.
5396         (_arm_return): Add CFI.
5397         (Lchange_\register, .Lchange_lr): Create an eight byte stack frame.
5398
5399 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
5400
5401         * configure.ac: Remove spaces around assignment to
5402         gcc_cv_ld_sysroot.
5403         * configure: Regenerated.
5404
5405 2005-05-17  David Edelsohn  <edelsohn@gnu.org>
5406
5407         * config/rs6000/aix.h (TARGET_ALTIVEC_VRSAVE): Delete.
5408         * config/rs6000/rs6000.c (rs6000_explicit_options): Add
5409         aix_struct_ret.
5410         (rs6000_override_options): Do not protect TARGET_ALTIVEC_VRSAVE.
5411         Modify aix_struct_return variable, not target_flags.
5412         (rs6000_handle_option): Do not protect TARGET_ALTIVEC_VRSAVE.
5413         (rs6000_return_in_memory): Test aix_struct_return.
5414         * config/rs6000/rs6000.opt (maix-struct-return): Convert to
5415         independent variable.  Report mxl-compat.
5416
5417 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
5418
5419         * config/bfin/bfin.md (eh_return): Add missing DONE.
5420
5421 2005-05-17  Ian Lance Taylor  <ian@airs.com>
5422
5423         * read-rtl.c (struct macro_traverse_data): Add unknown_mode_attr
5424         field.
5425         (mode_attr_index): Remove check for defined attribute.  Remove
5426         infile parameter.  Change all callers.
5427         (apply_mode_maps): Add unknown parameter.  Change caller.  Always
5428         return after finding attribute.
5429         (apply_macro_to_rtx): Add unknown_mode_attr parameter.  Change
5430         callers.
5431         (apply_macro_traverse): Set mtd->unknown_mode_attr.
5432         (read_rtx): Use mtd.unknown_mode_attr to check for an undefined
5433         attribute used for a mode.
5434
5435 2005-05-17  Paolo Bonzini  <bonzini@gnu.org>
5436
5437         * tree-ssa-math-opts.c: New file.
5438
5439 2005-05-17  Paolo Bonzini  <bonzini@gnu.org>
5440
5441         * Makefile.in: Add tree-ssa-math-opts.c.
5442         * expr.c (expand_expr_real_1) <case RDIV_EXPR>: Never emit as a*(1/b).
5443         * fold-const.c (distribute_real_division): New.
5444         (fold_binary) <case PLUS_EXPR, case MINUS_EXPR>: Use it.
5445         * tree-pass.h (pass_cse_reciprocals): New.
5446         * tree-optimize.c (init_tree_optimization_passes): Run it.
5447         * doc/passes.texi: Document the new pass.
5448
5449 2005-05-17  Richard Guenther  <rguenth@gcc.gnu.org>
5450
5451         PR middle-end/21595
5452         * builtins.c (fold_builtin_constant_p): Handle
5453         &"string cst"[0] as constant.
5454
5455 2005-05-17  Richard Henderson  <rth@redhat.com>
5456
5457         * config/i386/sse.md (mulv16qi3, mulv2di3): New.
5458
5459 2005-05-17  Jakub Jelinek  <jakub@redhat.com>
5460
5461         PR middle-end/21492
5462         * cfgcleanup.c (try_crossjump_to_edge): update_forwarder_flag for
5463         src2 if src2 has been split.
5464
5465         PR tree-optimization/21610
5466         * c-typeck.c (decl_constant_value_for_broken_optimization): If not
5467         returning DECL, call unshare_expr.
5468
5469 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
5470
5471         * config/cris/cris.md: Unquote preparation and output statements.
5472         (BWD, WD, BW): New, mode-macros.
5473         (S, s, m, mm, nbitsm1): New, mode-attrs.
5474         (szext, shift, shiftrt, ncond, ocond, rcond): New, code-macros.
5475         (u, su, shlr, slr, ncond, ocond, rcond, rCC, oCC, roCC): New,
5476         code-attrs.
5477         ("tst<mode>"): Replace "tstqi", "tsthi" and "tstsi".
5478         ("*cmp_ext<mode>"): Replace "*cmp_extsi" and "*cmp_exthi".
5479         ("*cmp_swapext<mode>"): Replace "*cmp_swapextqi" and
5480         "*cmp_swapexthi".
5481         ("cmp<mode>"): Replace "cmphi" and "cmpqi".
5482         ("movdi"): Move misplaced head comment regarding necessity of
5483         movdi from movsi to here.
5484         ("*mov_side<mode>_biap"): Replace "*mov_sideqi_biap" and
5485         "*mov_sidehi_biap".
5486         ("*mov_side<mode>"): Replace "*mov_sideqi" and "*mov_sidehi".
5487         ("*mov_side<mode>_biap_mem", "*mov_sidehi_biap_mem"): Replace
5488         "*mov_sideqi_biap_mem".
5489         ("*mov_side<mode>_mem"): Replace "*mov_sideqi_mem" and
5490         "*mov_sidehi_mem".
5491         ("*clear_side<mode>_biap"): Replace "*clear_sidesi_biap",
5492         "*clear_sidehi_biap" and "*clear_sideqi_biap".
5493         ("*clear_side<mode>"): Replace "*clear_sidesi", "*clear_sidehi"
5494         and "*clear_sideqi".
5495         ("*ext_side<mode>si_biap"): Replace "*ext_sideqisi_biap" and
5496         "*ext_sidehisi_biap".
5497         ("*ext_side<mode>si"): Replace "*ext_sideqisi" and
5498         "*ext_sidehisi".
5499         ("reload_in<mode>"): Replace "reload_inhi" and "reload_inqi".
5500         ("reload_out<mode>"): Replace "reload_outhi" and "reload_outqi".
5501         ("extend<mode>di2"): Replace "extendhidi2" and "extendqidi2".
5502         ("extend<mode>si2"): Replace "extendhisi2" and "extendqisi2".
5503         ("zero_extend<mode>si2"): Replace "zero_extendhisi2" and
5504         "zero_extendqisi2".
5505         ("*op_side<mode>_biap"): Replace "*op_sideqi_biap",
5506         "*op_sidehi_biap" and "*op_sidesi_biap".
5507         ("*op_side<mode>"): Replace "*op_sideqi", "*op_sidehi" and
5508         "*op_sidesi".
5509         ("*op_swap_side<mode>_biap"): Replace "*op_swap_sideqi_biap",
5510         "*op_swap_sidehi_biap" and "*op_swap_sidesi_biap".
5511         ("*op_swap_side<mode>"): Replace "*op_swap_sideqi",
5512         "*op_swap_sidehi" and "*op_swap_sidesi".
5513         ("sub<mode>3"): Replace "subhi3" and "subqi3", correcting a typo
5514         in the N alternative of "subqi3".
5515         ("*extop<mode>si_side_biap"): Replace "*extopqisi_side_biap" and
5516         "*extophisi_side_biap".
5517         ("*extop<mode>si_side"): Replace "*extopqisi_side" and
5518         "*extophisi_side".
5519         ("*extop<mode>si_swap_side_biap"): Replace
5520         "*extopqisi_swap_side_biap" and "*extophisi_swap_side_biap".
5521         ("*extop<mode>si_swap_side"): Replace "*extopqisi_swap_side" and
5522         "*extophisi_swap_side".
5523         ("*extop<mode>si"): Replace "*extopqisi" and "*extophisi".
5524         ("*extop<mode>si_swap"): Replace "*extopqisi_swap" and
5525         "*extophisi_swap".
5526         ("<u>mul<s><mode>3"): Replace "umulhisi3", "umulqihi3",
5527         "mulqihi3", "mulhisi3" and "mulhisi3".
5528         ("<u>mulsidi3"): Replace "mulsidi3" and "umulsidi3".
5529         ("<su>mulsi3_highpart"): Replace "smulsi3_highpart" and
5530         "umulsi3_highpart".
5531         ("xor<mode>3"): Replace "xorhi3" and "xorqi3".
5532         ("neg<mode>2"): Replace "negsi2", "neghi2" and "negqi2".
5533         ("one_cmpl<mode>2"): Replace "one_cmplhi2" and "one_cmplqi2".
5534         ("<shlr>si3"): Replace "ashrsi3", "lshrsi3" and "ashlsi3".
5535         ("ashr<mode>3"): Replace "ashrhi3" and "ashrqi3".
5536         ("*expanded_<shlr><mode>"): Replace "*expanded_ashrhi",
5537         "*expanded_ashrqi", "*expanded_lshrhi" and "*expanded_lshrqi".
5538         ("*<shlr><mode>_lowpart"): Replace "*ashrhi_lowpart",
5539         "*ashrqi_lowpart", "*lshrhi_lowpart" and "*lshrqi_lowpart".
5540         ("lshr<mode>3"): Replace "lshrhi3" and "lshrqi3".
5541         ("ashl<mode>3"): Replace "ashlhi3" and "ashlqi3".
5542         ("*ashl<mode>_lowpart"): Replace "*ashlqi_lowpart" and
5543         "*ashlhi_lowpart".
5544         ("abs<mode>2"): Replace "abshi2" and "absqi2".
5545         ("b<ncond>"): Replace "beq", "bne", "bgtu", "bltu", "bgeu" and
5546         "bleu".
5547         ("b<ocond>"): Replace "bgt" and "ble".
5548         ("b<rcond>"): Replace "blt" and "bge".
5549         ("*b<ncond>_reversed"): Replace "*beq_reversed", "*bne_reversed",
5550         "*bgtu_reversed", "*bltu_reversed", "*bgeu_reversed" and
5551         "*bleu_reversed".
5552         ("*b<ocond>_reversed"): Replace "*bgt_reversed" and
5553         "*ble_reversed".
5554         ("*b<rcond>_reversed"): Replace "*blt_reversed" and
5555         "*blt_reversed".
5556         ("s<ncond>"): Replace "sgeu", "sltu", "seq", "sgtu", "sleu" and
5557         "sne".
5558         ("s<rcond>"): Replace "sge" and "slt".
5559         ("s<ocond>"): Replace "sgt" and "sle".
5560         ("clear.[bwd] [rx=rx+rz.S2]"): Replace split clear.d
5561         [rx=rx+rz.S2], clear.w [rx=rx+rz.S2] and clear.b [rx=rx+rz.S2].
5562         ("clear.[bwd] [rx=rx+i]"): Replace splits clear.d [rx=rx+i],
5563         clear.w [rx=rx+i] and clear.b [rx=rx+i].
5564
5565 2005-05-17  Jakub Jelinek  <jakub@redhat.com>
5566
5567         * varasm.c (struct constant_descriptor_tree): Add hash field.
5568         (const_desc_hash): Just return hash field.
5569         (const_desc_eq): If hash values are different, return 0 immediately.
5570         (output_constant_def): Compute hash field of temporary key, use
5571         htab_find_slot_with_hash instead of htab_find_slot.  Set hash in
5572         newly built constant descriptor.
5573         (lookup_constant_def): Compute hash field of temporary key, use
5574         htab_find_with_hash instead of htab_find.
5575
5576 2005-05-16  Richard Henderson  <rth@redhat.com>
5577
5578         * config/i386/sse.md (mulv4si3): New.
5579
5580 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
5581
5582         * config/cris/cris.h (EXTRA_CONSTRAINT_T): Remove FIXME and
5583         tests for noncanonical versions of reg+constant and
5584         reg+reg*{1,2,4}.
5585
5586 2005-05-16  Richard Henderson  <rth@redhat.com>
5587             Steven Bosscher <stevenb@suse.de>
5588
5589         PR tree-opt/21399
5590         * tree-eh.c (maybe_clean_or_replace_eh_stmt): Rename from 
5591         maybe_clean_eh_stmt; take old stmt parameter.  Update EH
5592         region data structure to match replacement.
5593         * tree-flow.h: Update to match.
5594         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
5595         * tree-ssa-dom.c (optimize_stmt): Likewise.
5596         * tree-ssa-pre.c (eliminate): Likewise.
5597         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
5598
5599 2005-05-16  Caroline Tice  <ctice@apple.com>
5600
5601         * bb-reorder.c (verify_hot_cold_block_grouping):  Replace
5602         internal_error with gcc_assert.
5603         * dwarf2out.c (dwarf2out_switch_text_section):  Likewise.
5604         * function.h (struct function): Remove space between "*" and
5605         struct field names.
5606         * varasm.c (initialize_cold_section_name):   Add gcc_assert;
5607         modify to use alloca.
5608         (unlikely_text_section): Add check for flag_function_sections.
5609         (assemble_start_function):  Move call to resolve_section, so it
5610         comes before first call to unlikely_text_section.
5611         (assemble_end_function):  Add test and call to function_section
5612         if appropriate.
5613         
5614 2005-05-16  Roger Sayle  <roger@eyesopen.com>
5615
5616         * c-common.c (c_common_truthvalue_conversion): Use fold_build2
5617         instead of build_binary_op when performing code transformations
5618         to avoid error messages about constructs not it the user's code.
5619
5620 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
5621
5622         * tree-ssa-pre.c: Fix a comment typo.
5623
5624 2005-05-16  Richard Henderson  <rth@redhat.com>
5625
5626         PR target/21556
5627         * config/ia64/ia64.md (load_dtpmod, load_ltoff_dtpmod, load_dtprel,
5628         load_dtprel64, load_dtprel22, load_dtprel_gd, load_ltoff_dtprel,
5629         add_dtprel, add_dtprel14, add_dtprel22, load_tprel, load_tprel64,
5630         load_tprel22, load_tprel_ie, load_ltoff_tprel, add_tprel, add_tprel14,
5631         add_tprel22): Remove mode from symbolic operand.
5632
5633 2005-05-16  Richard Sandiford  <rsandifo@redhat.com>
5634
5635         * optc-gen.awk: Include intl.h after the externally-provided files.
5636
5637 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
5638
5639         * tree-ssa-copy.c (copy_prop_visit_assignment): Clean up by
5640         folding a COND_EXPR_COND in a nondestructive manner.
5641
5642 2005-05-16  Fariborz Jahanian <fjahanian@apple.com>
5643
5644         * config/rs6000/altivec.md (altivec_vmrghb, altivec_vmrghh, 
5645         altivec_vmrghw, altivec_vmrglb, altivec_vmrglh, altivec_vmrglw):
5646         New values for vec_select definitions and bitmask for element
5647         selection.
5648          
5649 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
5650
5651         * dwarf2out.c (used_rtx_varray): Rename to used_rtx_array.
5652         Change the type to VEC(rtx,gc)*.
5653         (mem_loc_descriptor, add_const_value_attributes,
5654         dwarf2out_init): Adjust uses of used_rtx_varray.
5655
5656         * tree-data-ref.c (compute_all_dependences): Change the type
5657         of dependence_relations to VEC(ddr_p,heap)**.
5658         (compute_data_dependences_for_loop): Change the type of
5659         allrelations to VEC(ddr_p,heap)*.
5660
5661 2005-05-16  Richard Sandiford  <rsandifo@redhat.com>
5662
5663         * Makefile.in (options.c): Tell optc-gen.awk to include config.h,
5664         system.h, coretypes.h and tm.h.
5665         (options.o): Update dependencies accordingly.
5666         * optc-gen.awk: Allow header_name to be a list of filenames.
5667         Handle the "Condition" flag.
5668         * opts.h (CL_DISABLED): New flag.
5669         * opts.c (handle_option): Print an error for CL_DISABLED options.
5670         * doc/options.texi: Document the "Condition" option flag.
5671
5672 2005-05-16  Paolo Bonzini  <bonzini@gnu.org>
5673
5674         * tree-inline.c (estimate_num_insns_1): Handle VEC_COND_EXPR.
5675
5676 2005-05-15  Roger Sayle  <roger@eyesopen.com>
5677
5678         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Only
5679         check for TREE_OVERFLOW on INTEGER_CST trees.
5680         * tree-chrec.c (chrec_convert): Only clear TREE_OVERFLOW on
5681         CONSTANT_CLASS_P tree nodes.
5682
5683 2005-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5684
5685         PR target/21551
5686         * config/ia64/ia64.c (ia64_expand_move): Don't add addend twice.
5687
5688 2005-05-15  Daniel Berlin  <dberlin@dberlin.org>
5689             
5690         Fix PR tree-optimization/21576
5691         
5692         * tree-ssa-pre.c (expression_node_pool): New pool.
5693         (comparison_node_pool): Ditto.
5694         (list_node_pool): Ditto.
5695         (pool_copy_list): New function.
5696         (phi_translate): Handle CALL_EXPR.
5697         (valid_in_set): Ditto.
5698         (create_expression_by_pieces): Ditto.
5699         (insert_into_preds_of_block): Ditto.
5700         (insert_aux): Ditto.
5701         (compute_avail): Ditto.
5702         (create_value_expr_from): Handle TREE_LIST and CALL_EXPR.
5703         (can_value_number_call): New function.
5704         (find_leader): Update comment.
5705         (init_pre): Create new pools.
5706         (fini_pre): Free new pools.
5707         (pass_pre): Add TODO_update_ssa for the future when we are going
5708         to need vops.
5709         * tree-vn.c (expressions_equal_p): Handle TREE_LIST.
5710         (set_value_handle): Ditto.
5711         (get_value_handle): Ditto.
5712
5713 2005-05-15  Richard Earnshaw  <richard.earnshaw@arm.com>
5714
5715         * arm.c (thumb_unexpanded_epilogue): Delete unused variable 'mode'.
5716
5717 2005-05-15  Andreas Jaeger  <aj@suse.de>
5718
5719         * gcc.c (pfatal_pexecute): Remove unused local function.
5720
5721 2005-05-15  Richard Sandiford  <rsandifo@redhat.com>
5722
5723         * optc-gen.awk: Remove excess indentation.
5724         * opth-gen.awk: Likewise.
5725
5726 2005-05-14  Kaz Kojima  <kkojima@gcc.gnu.org>
5727
5728         * config/sh/sh.c (sh_output_mi_thunk): Check cfun->cfg instead
5729         of basic_block_info.  Call init_flow and find_basic_blocks
5730         before dbr_schedule if needed.
5731
5732 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
5733
5734         * tree-optimize.c (init_tree_optimization_passes): Move
5735         pass_cd_dce in place of the last pass_dce.
5736
5737         PR tree-optimization/21563
5738         * tree-vrp.c (compare_value): Return boolean_false_node when
5739         SSA_NAME in "if (SSA_NAME == CST)" is strictly smaller than or
5740         strictly larger than CST.
5741
5742 2005-05-14  Nathan Sidwell  <nathan@codesourcery.com>
5743             Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5744
5745         * config/vax/vax.c: (print_operand_address) Use gcc_unreachable() and
5746         gcc_assert().
5747         (rev_cond_name) Likewise.
5748         (vax_float_literal) Likewise.
5749         * config/vax/vax.md: Likewise.
5750
5751 2005-05-14  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5752
5753         * config/vax/vax.md: define_constant VAXens AP, FP, SP and PC
5754         registers and use them (specifically the stack pointer).
5755         * config/vax/vax.h: Use above defines right here.
5756
5757         * config/vax/vax.c: (override_options) Remove 'register' keyword.
5758         (split_quadword_operands) Likewise. (rev_cond_name) Likewise.
5759         (vax_float_literal) Likewise. (vax_rtx_costs) Remove trailing
5760         whitespace.
5761         * config/vax/vax.h: Remove 'register' keyword. Misc. whitespace fixes,
5762         mostly removal of trailing spaces...
5763         * config/vax/vax-modes.def: Remove trailing whitespace.
5764
5765         * config/vax/elf.h: Update whitespace.
5766
5767 2005-05-14  Richard Guenther  <rguenth@gcc.gnu.org>
5768
5769         Revert
5770         2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
5771         * fold-const.c (fold_indirect_ref_1): Avoid removing
5772         NOP_EXPRs with type qualifiers like const.
5773
5774 2005-05-14  Jan Hubicka  <jh@suse.cz>
5775
5776         Patch by Richard Henderson:
5777         * tree-eh.c (tree_can_throw_internal, tree_can_throw_external):
5778         Handle RESX expressions properly.
5779
5780         * tree-eh.c (record_stmt_eh_region): Use add_stmt_to_eh_region.
5781         (add_stmt_to_eh_region_fn): Nest into CALL_EXPR.
5782         (remove_stmt_from_eh_region_fn): Likewise.
5783
5784         * tree-cfg.c (execute_warn_function_return): Break out noreturn
5785         warning too..
5786         (execute_warn_function_noreturn): ... here.
5787         (pass_warn_function_noreturn): New pass.
5788         * tree-pass.h (pass_warn_function_noreturn): Declare
5789         * tree-optimize.c (init_tree_optimization_passes): Move return
5790         warnings early and add noreturn warnings at place of previous
5791         return warnings.
5792
5793 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
5794
5795         * tree-ssa-live.c (tpa_init, tpa_delete, tpa_compact,
5796         root_var_init, type_var_init): Use VEC instead of VARRAY.
5797         * tree-ssa-live.h (tree_partition_associator_d): Change the
5798         type of trees to VEC(tree,heap)*.
5799         (tpa_tree): Use VEC instead of VARRAY.
5800
5801 2005-05-14  Richard Guenther  <rguenth@gcc.gnu.org>
5802
5803         * fold-const.c (div_if_zero_remainder): New function.
5804         (try_move_mult_to_index): Use it.
5805
5806 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
5807
5808         * tree-eh.c (leh_tf_state): Change the type of dest_array to
5809         VEC(tree,heap)*.
5810         (maybe_record_in_goto_queue, lower_try_finally_onedest,
5811         lower_try_finally_copy, lower_try_finally_switch,
5812         lower_try_finally): Use VEC instead of VARRAY.
5813
5814 2005-05-14  Hans-Peter Nilsson  <hp@axis.com>
5815
5816         * config/cris/cris.h (Node: Register Classes): Remove obsoleted
5817         comment regarding defined register classes.
5818         (LEGITIMIZE_RELOAD_ADDRESS): Do not define.
5819
5820 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
5821
5822         * tree-optimize.c (init_tree_optimization_passes): Move
5823         pass_merge_phi before the first pass_dominator.
5824
5825 2005-05-13  Richard Earnshaw  <richard.earnshaw@arm.com>
5826
5827         * arm.h (INITIALIZE_TRAMPOLINE): Make the call to __clear_cache
5828         unconditional.
5829
5830 2005-05-13  Josh Conner  <jconner@apple.com>
5831
5832         * config/arm/arm.c (arm_size_return_regs): New.
5833         (thumb_unexpanded_epilogue): replace in-line calculation
5834         of return registers with call to arm_size_return_regs.
5835         (use_return_insn): Include test of which registers are
5836         being used to hold return values, to accommodate
5837         vector return values.
5838
5839 2005-05-11  Aldy Hernandez  <aldyh@redhat.com>
5840
5841         * config/rs6000/sysv4.opt (mlittle): Handle.
5842
5843         * config/rs6000/rs6000.c (rs6000_handle_option): Set
5844         target_flags_explicit when appropriate.
5845
5846 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
5847
5848         PR middle-end/20714:
5849         * optabs.c (no_conflict_data): New struct.
5850         (no_conflict_move_test): New function.
5851         (emit_no_conflict_block): Use it.
5852
5853 2005-05-13  Adam Nemet  <anemet@lnxw.com>
5854
5855         * doc/invoke.texi (Debugging Options): Option
5856         -fdump-translation-unit only works with C++ now.
5857
5858 2005-05-13  Hans-Peter Nilsson  <hp@axis.com>
5859
5860         Replace calls to abort in CRIS port.
5861         * config/cris/cris.h (CRIS_ASSERT): New macro.
5862         * config/cris/cris.md ("*movsi_internal"): Use CRIS_ASSERT and
5863         internal_error instead of abort.
5864         ("movsi"): Ditto.  Unquote preparation statement section.
5865         ("call", "call_value"): Ditto, but use gcc_assert where
5866         appropriate.  Tweak comments.
5867         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Define in terms of
5868         CRIS_ASSERT.
5869         (cris_op_str): Call internal_error, not abort.
5870         (cris_print_operand): Tweak "abort" reference to "die" in comment.
5871         (cris_initial_elimination_offset): Call gcc_unreachable, not abort.
5872         (cris_notice_update_cc): Call internal_error, not abort.
5873         (cris_expand_return, cris_expand_prologue, cris_gen_movem_load)
5874         (cris_emit_movem_store, cris_asm_output_symbol_ref)
5875         (cris_output_addr_const_extra): Use CRIS_ASSERT, don't call abort.
5876         (cris_symbol, cris_got_symbol): Use CRIS_ASSERT instead of
5877         ENABLE_CHECKING-guarded abort call.
5878         (cris_split_movdx): Use CRIS_ASSERT instead of abort with test.
5879         Use internal_error at end of test-chain.
5880
5881 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
5882
5883         PR rtl-optimization/20769:
5884         * bt-load.c (compute_defs_uses_and_gen): Check for the blockage
5885         pattern emitted by expand_nl_goto_receiver.
5886
5887         PR middle-end/20793:
5888         * integrate.c (allocate_initial_values): Update register liveness
5889         information.
5890
5891 2005-05-13  Josh Conner  <jconner@apple.com>
5892
5893         * arm.c (arm_return_in_memory): Add handling for vector return types.
5894
5895 2005-05-13  David Ung  <davidu@mips.com>
5896
5897         * config/mips/mips.h (processor_type): Add new PROCESSOR_4KP
5898         name.
5899         * config/mips/mips.c: Add 4km alias.
5900         * config/mips/mips.md: Add 4kp to cpu attrib and include 4k.md.
5901         * config/mips/4k.md: New file, add 4Kc/4Kp DFA pipeline
5902         description.
5903
5904 2005-05-13  Jan Hubicka  <jh@suse.cz>
5905
5906         * c-decl.c (finish_function): Suppress "control reaches end of
5907         non-void function" when "no return statement in function
5908         returning non-void" is issued.
5909
5910         * tree-inline.c (copy_body_r): Simplify substituted ADDR_EXPRs.
5911         * tree-optimize.c (pass_gimple): Kill.
5912         (init_tree_optimization_passes): Kill pass_gimple.
5913         * tree-cfg.c (build_tree_cfg): Do verify_stmts to check that we are gimple.
5914         * tree-dump.c (dump_files): Rename .generic to .gimple.*
5915
5916 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
5917
5918         PR rtl-optimization/20756:
5919         * basic-block.h (PROP_DEAD_INSN): Define.
5920         * flow.c (propagate_one_insn): Set during mark_set_regs call
5921         for a dead insn.
5922         (mark_set_1): Emit a clobber when we are about to delete a dead insn
5923         that kills a live register.
5924
5925 2005-05-13  Adrian Straetling  <straetling@de.ibm.com>
5926
5927         * config/s390/s390.md: ("DBL"): New mode attribute.
5928         ("*movmem_long_64", "*movmem_long_31"): Merge to "*movmem_long".
5929         ("*clrmem_long_64", "*clrmem_long_31"): Merge to "*clrmem_long".
5930         ("*cmpmem_long_64", "*cmpmem_long_31"): Merge to "*cmpmem_long".
5931
5932 2005-05-13  Richard Guenther  <rguenth@gcc.gnu.org>
5933
5934         * c-format.c (check_format_arg): Handle string literals of
5935         the form &"string"[offset].
5936
5937         * g++.dg/warn/format4.C: New testcase.
5938
5939 2005-05-13  Kazu Hirata  <kazu@cs.umass.edu>
5940
5941         * config/mips/3000.md, config/mips/4000.md,
5942         config/mips/4100.md, config/mips/4300.md, config/mips/4600.md,
5943         config/mips/5000.md, config/mips/7000.md, config/mips/9000.md,
5944         config/mips/generic.md, config/pdp11/pdp11.md,
5945         config/sh/crt1.asm, config/sh/lib1funcs.asm,
5946         config/sh/sh-modes.def, config/sh/sh-protos.h,
5947         config/sh/shmedia.md, config/sh/ushmedia.h: Update copyright.
5948
5949 2005-05-13  Richard Henderson  <rth@redhat.com>
5950
5951         * function.c (instantiate_virtual_regs_in_insn): Do not simplify
5952         addition to move unless dest is a register.  Do not skip
5953         instantiation in dest on addition simplification.
5954
5955 2005-05-13  Hans-Peter Nilsson  <hp@axis.com>
5956
5957         * config/cris/cris.c (cris_print_operand) <case 'H'; case
5958         CONST_INT>: Use operand_subword and HOST_WIDE_INT_PRINT_DEC for
5959         output; don't have special case for HOST_BITS_PER_WIDE_INT == 32.
5960
5961 2005-05-13  Jan Hubicka  <jh@suse.cz>
5962
5963         * basic-block.h (FOR_ALL_BB_FN): New macro.
5964         (init_flow): Initialize cfg structure.
5965         * function.c (allocate_struct_function): Do not initialize cfg structure.
5966         * tree-cfg.c (init_empty_tree_cfg): Break out from ...
5967         (build_tree_cfg): ... here.
5968         * tree-flow.h (init_empty_tree_cfg): Declare.
5969
5970 2005-05-12  Steven Bosscher <stevenb@suse.de>
5971
5972         Fix PR tree-optimization/21520
5973         * tree-ssa-pre.c (phi_translate): Use fully_constant_expression
5974         to attempt to fold constants.
5975
5976 2005-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
5977
5978         * config/sh/sh.c: Declare the prototype of sh_adjust_unroll_max
5979         only when TARGET_ADJUST_UNROLL_MAX is defined.
5980         (general_movsrc_operand): Use the C style comment.
5981         (ua_offset): Use prototype.
5982
5983 2005-05-12  Zdenek Dvorak  <dvorakz@suse.cz>
5984
5985         * tree-ssa-loop-im.c (struct mem_ref): Add field "next".
5986         (struct hmr_data, hoist_memory_reference, memref_del,
5987         struct fmrv_data): Removed.
5988         (hoist_memory_references, free_mem_ref, free_mem_refs): New functions.
5989         (gather_mem_refs, gather_mem_refs_stmt): Add new references to the
5990         list.
5991         (find_more_ref_vops): Traverse the list of memory references.
5992         (determine_lsm_loop): Work with the list of memory references instead
5993         of traversing the hashtable.
5994
5995 2005-05-12  Steven Bosscher  <stevenb@suse.de>
5996             Stuart Hastings <stuart@apple.com>
5997             Jan Hubicka  <jh@suse.cz>
5998
5999         * except.c  (duplicate_eh_region_1, duplicate_eh_region_2,
6000         duplicate_eh_regions): New functions, based on old
6001         implementation removed with RTL inliner.
6002         (reachable_next_level): Modify behaviour pre-inline.
6003         * except.h (duplicate_eh_regions_map, duplicate_eh_regions):
6004         Declare.
6005         * function.h (struct function): Add after_inlining flag.
6006         * tree-optimize.c (tree_rest_of_compilation): Set it.
6007         * tree-eh.c (add_stmt_to_eh_region_fn): Initialize hashtable
6008         when needed.
6009         * tree-cfg.c (label_to_block_fn): Deal with cases where
6010         label was never insterted into code.
6011
6012 2005-05-12  Zack Weinberg  <zack@codesourcery.com>
6013
6014         * doc/cpp.texi: Document that #sccs is a synonym for #ident.
6015
6016 2005-05-12  Daniel Berlin  <dberlin@dberlin.org>
6017
6018         Fix PR tree-optimization/21532
6019         * tree-ssa-pre.c (create_expression_by_pieces): stmt
6020         needs to go onto the inserted_exprs list.
6021
6022 2005-05-12  Ian Lance Taylor  <ian@airs.com>
6023
6024         * c-common.h (statement_code_p): Don't declare.
6025         (STATEMENT_CODE_P): Don't define.
6026         (INIT_STATEMENT_CODES): Don't define.
6027         * c-common.c (statement_code_p): Don't define.
6028
6029 2005-05-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
6030
6031         * config/sparc/sparc.h: Remove dead code.
6032         * config/sparc/sparc.c (sparc_compute_frame_size): Use
6033         FIRST_PARM_OFFSET for the size of the register window area.
6034         (emit_save_regs): Rename into emit_save_or_restore_regs.
6035         Add 'action' parameter.  Use 4095 as upper bound for the offset.
6036         Pass 'action' to save_or_restore_regs.
6037         (emit_restore_regs): Delete.
6038         (sparc_expand_prologue): Call emit_save_or_restore_regs.
6039         (sparc_expand_epilogue): Likewise.
6040         * config/sparc/sparc.md (mode macro P): Move.
6041         (movdi_insn_sp32_v9, movdi_insn_sp32): Swap.
6042         (mov<V32:mode> expander): Move to the top of the V32 section.
6043         (movdf_insn_sp32_v9_no_fpu, movdf_insn_sp32_v9): Swap.
6044         (movtf_insn_sp64_hq, movtf_insn_sp64): Swap.
6045         (sibcall_epilogue): Move.
6046
6047 2005-05-12  Richard Earnshaw  <richard.earnshaw@arm.com>
6048
6049         PR target/21501
6050         * arm.c (arm_gen_constant): Sign-extend intermediate values when
6051         synthesizing a constant of the difference of two immediates.
6052
6053 2005-05-12  Richard Earnshaw  <richard.earnshaw@arm.com>
6054
6055         * arm/vfp.md (negsf2_vfp): Add alternative using integer registers.
6056         (negdf2_vfp): Likewise.  Convert to define_insn_and_split and split
6057         the alternatives using integer registers into the appropriate
6058         primitives.
6059
6060 2005-05-11 Kenneth Zadeck <zadeck@naturalbridge.com>
6061
6062         * bitmap.c (bitmap_elmt_to_freelist, bitmap_element_allocate,
6063         bitmap_elt_clear_from, bitmap_clear): Changed freelist structure.
6064         * bitmap.h: Fixed comments.
6065
6066 2005-05-11  Richard Henderson  <rth@redhat.com>
6067
6068         PR target/21412
6069         * config/ia64/ia64.c (TARGET_CANNOT_FORCE_CONST_MEM): New.
6070         (ia64_cannot_force_const_mem): New.
6071         (tls_symbolic_operand_type): New.
6072         (ia64_legitimate_constant_p): New.
6073         (ia64_expand_load_address): Return true on success.  Improve
6074         checks for when we should not split.
6075         (ia64_expand_tls_address): New addend operand.  Distribute it
6076         as appropriate to the tls_kind.  Delay referencing gp.
6077         (ia64_expand_move): Split symbolic addend as necessary.  Handle
6078         tls symbols with addends.
6079         * config/ia64/ia64-protos.h: Update.
6080         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): False for r0,
6081         p0, f0, f1, and r13.
6082         (LEGITIMATE_CONSTANT_P): Move to ia64_legitimate_constant_p.
6083         * config/ia64/ia64.md (UNSPEC_DTPMOD): New.
6084         (symbolic_operand splitter): Pass everything through
6085         ia64_expand_load_address and FAIL or DONE as appropriate.
6086         (load_fptr): Only accept after reload.
6087         (load_fptr_internal1, gprel64_offset, load_gprel64, load_symptr_high,
6088         load_symptr_low, load_ltoff_dtpmod,
6089         (load_dtpmod): New.
6090         (load_dtprel): Only accept tls symbols.
6091         (load_dtprel64, load_dtprel22): Likewise.
6092         (load_tprel, load_tprel64, load_tprel22): Likewise.
6093         (load_dtprel_gd, load_ltoff_dtprel, load_tprel_ie): New.
6094         (add_dtprel): Only accept tls symbols.  Canonicalize PLUS.
6095         (add_dtprel14, add_dtprel22): Likewise.
6096         (add_tprel, add_tprel14, add_tprel22): Likewise.
6097         * config/ia64/predicates.md (small_addr_symbolic_operand): New.
6098         (any_offset_symbol_operand, aligned_offset_symbol_operand): New.
6099         (got_symbolic_operand): Check CONST offsets.
6100         (tls_symbolic_operand, ld_tls_symbolic_operand): New.
6101         (ie_tls_symbolic_operand, le_tls_symbolic_operand): New.
6102         (move_operand): Don't handle tls here.  Check CONST offsets.
6103
6104 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
6105
6106         * config/mips/7000.md (rm7_impy_si_mult): Just match imul and imadd.
6107         Remove hilo_operand check.
6108         (rm7_impy_si_mul): Just match imul3.  Remove hilo_operand check.
6109         * config/mips/predicates.md (hilo_operand): Delete.
6110
6111 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
6112
6113         * config/mips/sr71k.md, config/mips/7000.md: Reformat.
6114
6115 2005-05-11  Kazu Hirata  <kazu@cs.umass.edu>
6116
6117         PR tree-optimizer/18472
6118         * tree-if-conv.c (tree_if_convert_stmt,
6119         if_convertible_modify_expr_p): Don't handle GOTO_EXPR.
6120
6121 2005-05-11  Jan Hubicka  <jh@suse.cz>
6122
6123         * Makefile.in (tree-eh.o: Kill gt-tree-eh.h dependency.
6124         (GTFILES): add except.h.
6125         * except.c (eh_status): Add throw_stmt_table.
6126         (set_eh_throw_stmt_table, get_eh_throw_stmt_table): New functions.
6127         * except.h (add_stmt_to_eh_region_fn, remove_stmt_from_eh_region_fn,
6128         lookup_stmt_eh_region_fn): Declare.
6129         (throw_stmt_node): New structure.
6130         (set_eh_throw_stmt_table, get_eh_throw_stmt_table): New.
6131         * gengtype.c (open_base_files): Add except.h to inlines.
6132         * tree-eh.c (throw_stmt_node): Kill.
6133         (record_stmt_eh_region): Update.
6134         (add_stmt_to_eh_region_fn): Break out from ...
6135         (add_stmt_to_eh_region): ... here.
6136         (remove_stmt_from_eh_region_fn): Break out from ...
6137         (remove_stmt_from_eh_region): ... here.
6138         (lookup_stmt_eh_region_fn): Break out from ...
6139         (lookup_stmt_eh_region): ... here.
6140         (honor_protect_cleanup_actions): Use build_resx.
6141         (lower_try_finally_onedest): Likewise.
6142         (lower_try_finally_copy): Likewise.
6143         (lower_try_finally_switch): Likewise.
6144         (lower_eh_constructs): Update eh table construction.
6145         * tree.c (build_resx): New.
6146         * tree.h (build_resx): Declare.
6147
6148 2005-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6149
6150         * libgcov.c (gcov_exit): Set prefix_length to 0 if no relocation
6151         is needed.
6152
6153 2005-05-11  Kazu Hirata  <kazu@cs.umass.edu>
6154
6155         * fold-const.c, libgcov.c: Fix comment typos.
6156
6157         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove
6158         redundant code.
6159
6160 2005-05-11  Daniel Jacobowitz  <dan@codesourcery.com>
6161
6162         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
6163         * config/arm/arm.h (SUBTARGET_FRAME_POINTER_REQUIRED): Provide
6164         default definition.
6165         (FRAME_POINTER_REQUIRED): Use SUBTARGET_FRAME_POINTER_REQUIRED.
6166
6167 2005-05-11  Nathan Sidwell  <nathan@codesourcery.com>
6168
6169         PR bootstrap/21481
6170         * crtstuff.c: Include auto-host.h again, for now.
6171
6172 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
6173
6174         * config/mips/24k.md: Remove trailing whitespace.
6175
6176 2005-05-11  David Ung  <davidu@mips.com>
6177
6178         * config/mips/mips.md (type): Add imul3.
6179         (length, hazard, may_clobber_hilo): Check for imul3.
6180         (mulsi3_mult3, muldi3_mult3, *muls, <su>mulsi3_highpart_mulhi_internal)
6181         (*<su>mulsi3_highpart_neg_mulhi_internal): Set attr to imul3.
6182         * config/mips/24k.md (r24k_int_mul3): Enable this reservation
6183         for a 3 operand mul and its bypasses.
6184         * config/mips/3000.md (r3k_imul): Add imul3 to reservations.
6185         * config/mips/4000.md (r4k_imul): Likewise.
6186         * config/mips/4100.md (r4100_imul_si, r4100_imul_di):  Likewise.
6187         * config/mips/4130.md (vr4130_class, vr4130_mulsi)
6188         (vr4130_muldi): Likewise.
6189         * config/mips/4300.md (r4300_imul_si, r4300_imul_di): Likewise.
6190         * config/mips/4600.md (r4600_imul, r4650_imul): Likewise.
6191         * config/mips/5000.md (r5k_imul_si, r5k_imul_di): Likewise.
6192         * config/mips/5400.md (ir_vr54_imul_si, ir_vr54_imul_di)
6193         (ir_vr54_imadd_si): Likewise.
6194         * config/mips/5500.md (ir_vr55_imul_si, ir_vr55_imul_di):  Likewise.
6195         * config/mips/7000.md (rm7_impy_si_mult, rm7_impy_si_mul)
6196         (rm7_impy_di): Likewise.
6197         * config/mips/9000.md (rm9k_mulsi, rm9k_muldi):  Likewise.
6198         * config/mips/generic.md (generic_imul): Likewise.
6199         * config/mips/sb1.md (ir_sb1_mulsi, ir_sb1_muldi): Likewise.
6200         * config/mips/sr71k.md (ir_sr70_imul_si, ir_sr70_imul_di):  Likewise.
6201
6202 2005-05-11  J"orn Rennecke <joern.rennecke@st.com>
6203
6204         PR middle-end/20371:
6205         * tree.h (record_layout_info_s): New member prev_packed.
6206         * stor-layout.c (update_alignment_for_field): Fix comment about
6207         KNOWN_ALIGN.  For MS bitfields, if we start a new run, make sure
6208         we start it properly aligned.
6209         (place_field): At the beginning of a record, pass 0 as KNOWN_ALIGN
6210         to update_alignment_for_field, and recompute it afterwards using
6211         the alignment of the record.
6212         When a packed bitfield precedes an MS bitfield, don't add padding
6213         at the end of the packed bitfield on behalf of the base type of
6214         the packed bit field.
6215         Don't adjust rli->bitpos at the end
6216         of an MS bitfield run if we already adjusted bitpos/offset for an
6217         alignment as large or larger than the bitfield type size.
6218         Take possible record alignment > BIGGEST_ALIGNMENT into account
6219         when calculating actual_align.
6220         Only put packed buit fields into rli->prev_field if they end up
6221         suitably aligned.
6222         Also set rli->remaining_in_alignment when we re-set rli->prev_field.
6223         Update rli->remaining_in_alignment when we have already started a
6224         run of bit fields and we process a packed bit field.
6225
6226 2005-05-11  Sebastian Pop  <pop@cri.ensmp.fr>
6227
6228         * tree-data-ref.c (find_data_references_in_loop): Give up when
6229         the body of the loop contains a CALL_EXPR or an ASM_EXPR: they
6230         may embed arbitrary side effects.
6231         Remove the assumption that GIMPLE form contains a single array
6232         access per statement.
6233         When the statement contains virtual operands, fail if it is not
6234         a MODIFY_EXPR or a CALL_EXPR.
6235         Return after the dont know node is inserted.
6236
6237 2005-05-11  Richard Earnshaw  <richard.earnshaw@arm.com>
6238
6239         * arm.md (negsf2, negdf2): Permit these expands when compiling for VFP.
6240
6241 2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
6242
6243         PR middle-end/19807
6244         PR tree-optimization/19639
6245         * fold-const.c (try_move_mult_to_index): Handle INTEGER_CST
6246         and generic summands for char* as s * delta, too, folding &a[i]
6247         CODE x to &a[i CODE x/s].  Use tree_int_cst_equal
6248         for comparison of steps.  Convert types for index addition.
6249         (fold_binary): Adjust the callers to always dispatch to
6250         try_move_mult_to_index.
6251         * tree-ssa-propagate.c (set_rhs): Avoid setting rhs to
6252         expr with non-gimple ARRAY_REF offset.
6253
6254 2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
6255
6256         * fold-const.c (fold_indirect_ref_1): Avoid removing
6257         NOP_EXPRs with type qualifiers like const.
6258
6259 2005-05-11  Richard Henderson  <rth@redhat.com>
6260
6261         PR c/21502
6262         * c-decl.c (finish_decl): Propagate the completed array type of
6263         a global variable into the binding.
6264
6265 2005-05-10  Matt Kraai  <kraai@ftbfs.org>
6266
6267         * Makefile.in (gtype-desc.o, build/genautomata.o)
6268         (build/varray.o): Depend on $(VARRAY_H).
6269
6270 2005-05-10  Diego Novillo  <dnovillo@redhat.com>
6271
6272         * tree-optimize.c (init_tree_optimization_passes): Re-organize
6273         optimization passes to do an initial batch of scalar cleanups.
6274
6275 2005-05-10  Ian Lance Taylor  <ian@airs.com>
6276
6277         * read-rtl.c (struct macro_traverse_data): Define.
6278         (map_attr_string): New static function, broken out of
6279         apply_macro_to_string.
6280         (mode_attr_index, apply_mode_maps): New static functions.
6281         (apply_macro_to_string): Call map_attr_string.
6282         (apply_macro_to_rtx): Add mode_maps and infile parameters.  Change
6283         all callers.
6284         (apply_macro_traverse): Expect data to point to a struct
6285         macro_traverse_data.
6286         (read_rtx): Add mode_maps local variable.  Use mode_traverse_data
6287         to pass data through htab_traverse.
6288         (read_rtx_1): Add mode_maps parameter.  Change all callers.
6289         Handle mode names which are attribute strings.
6290         * doc/md.texi (Substitutions): Rename from String Substitutions.
6291         Change references.  Document using attributes as modes.
6292
6293 2005-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
6294
6295         * tree-cfg.c (tree_duplicate_sese_region): Update profile.
6296         * tree-optimize.c (init_tree_optimization_passes) Swap
6297         pass_ch and pass_profile.
6298         * tree-ssa-loop-ch.c (copy_loop_headers): Do not update profile
6299         here.  Remove rewrite_into_loop_closed_ssa call.
6300
6301 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
6302
6303         * config/s390/s390.c: (s390_const_double_ok_for_constraint_p): New
6304         function.
6305         (legitimate_reload_constant_p): Add check for const double zero.
6306         * config/s390/s390.md: Add comment for constraint letter 'G'.
6307         ("*movdf_64", "*movdf_31", "movsf"): Add constraint and proper
6308         attributes for new case.
6309         * config/s390/s390.h: (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Define it as
6310         s390_const_double_ok_for_constraint_p.
6311         * config/s390/s390-protos.h (s390_const_double_ok_for_constraint_p):
6312         Add prototype.
6313
6314 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
6315
6316         PR tree-optimization/21170
6317         * tree-ssa-dom.c, tree-ssa-threadupdate.c: Replace
6318         rewrite_ssa_into_ssa in comments with update_ssa.
6319
6320 2005-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
6321
6322         * tree-ssa-loop-im.c: Include hashtab.h.
6323         (struct mem_ref_loc): New.
6324         (struct mem_ref): Describe the set of references with the same
6325         shape.
6326         (max_stmt_uid, get_stmt_uid, record_mem_ref, free_mem_refs,
6327         maybe_queue_var, fem_single_reachable_address,
6328         for_each_memref, single_reachable_address,
6329         is_call_clobbered_ref, determine_lsm_reg): Removed.
6330         (record_mem_ref_loc, free_mem_ref_locs, determine_lsm_ref,
6331         hoist_memory_reference, memref_hash, memref_eq, memref_del,
6332         gather_mem_refs_stmt, gather_mem_refs, find_more_ref_vops):
6333         New functions.
6334         (rewrite_mem_refs, schedule_sm): Use mem_ref_loc list.
6335         (determine_lsm_loop): Rewritten.
6336         (determine_lsm): Do not set stmt uids.
6337
6338 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
6339
6340         * config/s390/s390.md: Add comment lines for 'f' and 't' constraint
6341         letters.
6342
6343 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
6344
6345         * config/s390/s390.md: ("anddi3","andsi3","andhi3","andqi3"): Merge.
6346         ("iordi3", "iorsi3", "iorhi3", "iorqi3"): Merge.
6347         ("xordi3", "xorsi3", "xorhi3", "xorqi3"): Merge.
6348
6349 2005-05-10  Jeff Law  <law@redhat.com>
6350
6351         * tree-ssa-dom.c (dom_opt_finalize_block): Do not call
6352         thread_across_edge for any abnormal edges.
6353
6354 2005-05-10  Richard Henderson  <rth@redhat.com>
6355
6356         * config/ia64/ia64.c (ia64_expand_atomic_op): New.
6357         * config/ia64/ia64-protos.h: Declare it.
6358         * config/ia64/sync.md (I124MODE, FETCHOP, fetchop_name): New.
6359         (sync_add<I48MODE>, sync_old_add<I48MODE>): Remove.
6360         (sync_<FETCHOP><IMODE>, sync_nand<IMODE>): New.
6361         (sync_old_<FETCHOP><IMODE>, sync_old_nand<IMODE>): New.
6362         (sync_new_<FETCHOP><IMODE>, sync_new_nand<IMODE>): New.
6363         (cmpxchg_rel_<I124MODE>): Split from cmpxchg_acq_<IMODE>.  Zero
6364         extend result; use release semantics.
6365         (cmpxchg_rel_di): Rename from cmpxchg_acq_<IMODE>; use release.
6366         (sync_val_compare_and_swap_<IMODE>): Update to match.
6367
6368 2005-05-10  Richard Henderson  <rth@redhat.com>
6369
6370         * optabs.c (expand_compare_and_swap_loop): Don't clobber old value
6371         before comparing it for success.
6372
6373 2005-05-10  Richard Henderson  <rth@redhat.com>
6374
6375         * config/ia64/sync.md (sync_add<I48MODE>): Fix arguments for
6376         no return value pattern.
6377
6378 2005-05-10  Grigory Zagorodnev  <grigory.zagorodnev@intel.com>
6379             H.J. Lu  <hongjiu.lu@intel.com>
6380
6381         * libgcov.c (create_file_directory): New function. Create
6382         directory for the given file name.
6383         (gcov_max_filename): New static var. Keeps size of the longest
6384         file name.
6385         (gcov_exit): Always try to create directory for output
6386         file. Relocate each filename basing on environment vars.
6387         (__gcov_init): Remember the longest file name.
6388         * tsystem.h: include filenames.h to get IS_DIR_SEPARATOR
6389         * doc/gcov.texi (Cross-profiling): New node documenting
6390         cross-profiling management.
6391         * doc/invoke.texi (-fprofile-arcs): Add xref to cross-profiling.
6392
6393 2005-05-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
6394
6395         * config/sparc/sparc.c (mem_min_alignment): Do not rely
6396         on MEM_ALIGN if TARGET_UNALIGNED_DOUBLES.
6397
6398 2005-05-10  Bob Wilson  <bob.wilson@acm.org>
6399
6400         * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Rearrange special
6401         case code to avoid one move instruction.
6402         (__umodsi3, __modsi3): Merge duplicated code sequences.
6403
6404 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
6405
6406         * config/mips/24k.md, config/sh/divtab.c, config/sh/sh.c,
6407         config/sh/sh.md, config/sh/superh.h: Fix comment typos.
6408         * doc/invoke.texi: Fix typos.
6409
6410         * tree-data-ref.c (analyze_array_indexes, analyze_array,
6411         init_data_ref, access_functions_are_affine_or_constant_p,
6412         free_data_refs): Use VEC instead of VARRAY.
6413         * tree-data-ref.h (data_reference): Change the type of
6414         access_fns to VEC(tree,gc)*.
6415         (DR_ACCESS_FN, DR_NUM_DIMENSIONS): Use VEC instead of VARRAY.
6416
6417 2005-05-10  Gabor Loki <loki@gcc.gnu.org>
6418
6419         PR c/17913
6420         * c-typeck.c (build_conditional_expr): Remove reducing cond_expr.
6421         * fold-const.c (fold): Expand the condition of reducing cond_expr.
6422         (contains_label_1, contains_label_p): New functions for checking
6423         labels in a sub-tree.
6424
6425 2005-05-10  Joseph S. Myers  <joseph@codesourcery.com>
6426
6427         PR c/21342
6428         * c-decl.c (pushdecl): When there is a declaration in the current
6429         scope and the declarations are external linkage, check for
6430         compatibility with the type in the external scope and update the
6431         type in the external scope with the composite type information.
6432         Do not form a composite type of the new type and the visible type
6433         if they are incompatible.
6434
6435 2005-05-10  Nathan Sidwell  <nathan@codesourcery.com>
6436
6437         * crtstuff.c: Revert part of 2005-05-08 Change.
6438         (IN_LIBGCC2): Define.
6439
6440 2005-05-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
6441
6442         * config/sparc/sparc.c (fp_sethi_p): Test !SPARC_SIMM13_P and
6443         remove redundant test.
6444         (fp_mov_p): Accept 0.
6445         (fp_high_losum_p): Remove redundant test.
6446         * config/sparc/predicates.md (const_high_operand): Explicitly test
6447         (not small_int_operand).
6448         (fp_const_high_losum_operand): New.
6449         * config/sparc/sparc.md (movsi_insn): Do not emit 'clr'.  Reorder.
6450         (movdi_insn_sp32_v9): Use canonical predicates.
6451         (movdi_insn_sp32): Test !TARGET_V9 instead of !TARGET_ARCH64.
6452         (movdi_insn_sp64_novis): Delete.
6453         (movdi_insn_sp64_vis): Rename into movdi_insn_sp64.
6454         (movsf_insn_novis): Delete.
6455         (movsf_insn_vis): Rename into movsf_insn.
6456         (movsf_no_f_insn): Rename into movsf_insn_no_fpu.
6457         (movsf_lo_sum): Use fp_const_high_losum_operand.
6458         (movsf_high): Likewise.
6459         (movsf_high_losum splitter): Likewise.
6460         (mov<V32:mode> expander): Use register_or_zero_operand.
6461         (mov<V64:mode> expander): Likewise.
6462         (movdf_insn_sp32): Use register_or_zero_operand.
6463         (movdf_no_e_insn_sp32): Use register_or_zero_operand.
6464         Rename into movdf_insn_sp32_no_fpu.
6465         (movdf_no_e_insn_v9_sp32): Use register_or_zero_operand.
6466         Rename into movdf_insn_sp32_v9_no_fpu.
6467         (movdf_insn_v9only_novis): Delete.
6468         (movdf_insn_v9only_vis): Rename into movdf_insn_sp32_v9.
6469         (movdf_insn_sp64_novis): Delete.
6470         (movdf_insn_sp64_vis): Rename into movdf_insn_sp64.
6471         (movdf_no_e_insn_sp64): Use register_or_zero_operand.
6472         Rename into movdf_insn_sp64_no_fpu.
6473         (movtf expander): Use register_or_zero_operand.
6474         (movtf_insn_sp32): Delete.
6475         (movtf_insn_vis_sp32): Use register_or_zero_operand.
6476         Rename into movtf_insn_sp32.
6477         (movtf_no_e_insn_sp32): Use register_or_zero_operand.
6478         Rename into movtf_insn_sp32_no_fpu.
6479         (movtf_insn_hq_sp64): Delete.
6480         (movtf_insn_hq_vis_sp64): Use register_or_zero_operand.
6481         Rename into movtf_insn_sp64_hq.
6482         (movtf_insn_sp64): Delete.
6483         (movtf_insn_vis_sp64): Use register_or_zero_operand.
6484         Rename into movtf_insn_sp64.
6485         (movtf_no_e_insn_sp64): Use register_or_zero_operand.
6486         Rename into movtf_insn_sp64_no_fpu.
6487
6488 2005-05-10  Nathan Sidwell  <nathan@codesourcery.com>
6489
6490         * config/stormy16/stormy16.c (xstormy16_emit_cbranch): Use
6491         gcc_assert and gcc_unreachable as appropriate.
6492         (xstormy16_split_cbranch, xstormy16_output_cbranch_hi,
6493         xstormy16_output_cbranch_si, xstormy16_split_move,
6494         xstormy16_initial_elimination_offset,
6495         xstormy16_encode_section_info, xstormy16_print_operand_address,
6496         xstormy16_expand_call, xstormy16_expand_arith,
6497         xstormy16_output_shift, xstormy16_init_builtins): Likewise.
6498
6499 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
6500
6501         * tree-outof-ssa.c (_elim_graph): Change the type of nodes and
6502         const_copies to VEC(tree,heap)*.
6503         (new_elim_graph, delete_elim_graph, elim_graph_size,
6504         elim_graph_add_node, eliminate_build, eliminate_phi): Use VEC
6505         instead of VARRAY.
6506
6507 2005-05-10  Joseph S. Myers  <joseph@codesourcery.com>
6508
6509         PR other/21052
6510         * doc/extend.texi (Type Attributes): Correct example syntax.
6511
6512 2005-05-09  Joseph S. Myers  <joseph@codesourcery.com>
6513
6514         PR c/21160
6515         * doc/invoke.texi (-Wuninitialized): Update documentation.
6516
6517 2005-05-09  Richard Earnshaw  <richard.earnshaw@arm.com>
6518
6519         * arm.c (const_ok_for_arm): Use a faster algorithm.
6520
6521 2005-05-09  David Edelsohn  <edelsohn@gnu.org>
6522
6523         PR target/21477
6524         * config/rs6000/rs6000.md (add_op2): New.
6525         (add<mode>3): Use it.
6526
6527 2005-05-09  Richard Earnshaw  <richard.earnshaw@arm.com>
6528
6529         * arm.c (arm_gen_constant): Add new heuristic for generating
6530         constant integers that can be expressed as the difference of two
6531         valid immediates.
6532
6533 2005-05-09  Roger Sayle  <roger@eyesopen.com>
6534
6535         * c-tree.h (parser_build_unary_op): New prototype.
6536         * c-typeck.c (parser_build_unary_op): New function to construct
6537         a unary operation in the C parser.
6538         * c-parser.c (c_parser_unary_expression):  Use the new function
6539         parser_build_unary_op when appropriate.
6540
6541 2005-05-09  Mark Mitchell  <mark@codesourcery.com>
6542
6543         PR 18655
6544         * dwarf2out.c (output_call_frame_info): Use DWARF2_FRAME_REG_OUT
6545         before outputting DWARF_FRAME_RETURN_COLUMN.
6546
6547 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6548
6549         * config/s390/s390.c: (s390_branch_condition_mask,
6550         s390_branch_condition_mnemonic, s390_extra_constraint_str,
6551         s390_const_ok_for_constraint_p, s390_expand_plus_operand,
6552         legitimize_pic_address, s390_emit_tls_call_insn,
6553         legitimize_tls_address, legitimize_tls_address,
6554         s390_expand_addcc, print_shift_count_operand, print_operand,
6555         addr_generation_dependency_p, annotate_constant_pool_refs,
6556         s390_split_branches, find_constant_pool_ref,
6557         replace_constant_pool_ref, s390_add_constant, s390_find_constant,
6558         s390_find_execute, s390_mainpool_start, s390_chunkify_start,
6559         s390_output_pool_entry, s390_function_value,
6560         s390_call_saved_register_used, s390_emit_call): Replace
6561         conditional aborts by gcc_assert and unconditional by gcc_unreachable.
6562         (s390_select_ccmode, s390_match_ccmode_set, s390_extract_part,
6563         s390_cannot_force_const_mem, s390_output_dwarf_dtprel,
6564         get_some_local_dynamic_name, s390_function_arg_size,
6565         s390_function_arg_advance, s390_function_arg,
6566         s390_expand_builtin, s390_gen_rtx_const_DI): Replace abort in
6567         default case by gcc_unreachable.
6568         * config/s390/s390.md: ("*cjump_31", "*icjump_31", "*jump31"): Replace
6569         conditional abort by gcc_assert.
6570         ("doloop_si31"): Replace abort in last else by gcc_unreachable.
6571         ("main_pool", "pool"): Replace unconditional abort by gcc_unreachable.
6572
6573 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6574
6575         * config/s390/s390.c: (s390_decompose_address,
6576         tls_symbolic_operand, legitimate_pic_operand_p,
6577         legitimate_constant_p, legitimate_reload_constant_p,
6578         s390_expand_plus_operand, legitimate_address_p,
6579         legitimate_la_operand_p, ): Remove 'register' from signature.
6580         (symbolic_reference_mentioned_p,
6581         tls_symbolic_reference_mentioned_p): Remove 'register' from local
6582         variable declarations.
6583         (legitimize_address): Remove 'register' from
6584         signature and local variable declarations.
6585
6586 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6587
6588         * config/s390/s390-protos.h: (s390_match_ccmode,
6589         s390_match_ccmode_set, reg_used_in_mem_p,
6590         symbolic_reference_mentioned_p, tls_symbolic_reference_mentioned_p,
6591         legitimate_la_operand_p, preferred_la_operand_p,
6592         s390_short_displacement, addr_generation_dependency_p,
6593         legitimate_reload_constant_p, legitimate_address_p): Change return type
6594         into 'bool'.
6595         (s390_tm_ccmode): Change type of parameter "mixed" into 'bool'.
6596         * config/s390/s390.c: (s390_match_ccmode,
6597         symbolic_reference_mentioned_p, tls_symbolic_reference_mentioned_p,
6598         legitimate_reload_constant_p): Change return type into 'bool'.
6599         (preferred_la_operand_p,legitimate_la_operand_p, legitimate_address_p):
6600         Likewise.  Additionally adapted comment.
6601         (s390_extra_constraint_p): Change Comment to reflect 'int' return type.
6602         (s390_tm_ccmode): Change type of parameter "mixed" into 'bool'.
6603         (s390_decompose_address): Change the type of the internal flags
6604         "pointer", "base_ptr", "indx_ptr", and the return value into 'bool'.
6605         (struct s390_address): Change type of "pointer" into bool.
6606         * config/s390/s390.md: ("*tmdi_reg", "*tmsi_reg", "tm<mode>_full"):
6607         Adapt calls for 's390_tm_ccmode' to the new signature.
6608
6609 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6610
6611         * config/s390/s390.c: (s390_match_ccmode_set,
6612         s390_branch_condition_mnemonic, s390_short_displacement,
6613         s390_decompose_address, get_thread_pointer, legitimize_tls_address,
6614         print_shift_count_operand, get_some_local_dynamic_name,
6615         get_some_local_dynamic_name_1, reg_used_in_mem_p,
6616         addr_generation_dependency_p, s390_split_branches,
6617         annotate_constant_pool_refs, find_constant_pool_ref,
6618         replace_constant_pool_ref, find_ltrel_base, replace_ltrel_base,
6619         s390_optimize_prologue, find_unused_clobbered_reg, s390_frame_area,
6620         s390_register_info, s390_frame_info, s390_init_frame_layout,
6621         s390_update_frame_layout, save_fpr, restore_fpr, save_gprs,
6622         restore_gprs, s390_function_arg_size, s390_function_arg_float,
6623         s390_init_machine_status, s390_assemble_integer, s390_handle_option,
6624         s390_encode_section_info, s390_cannot_force_const_mem,
6625         s390_delegitimize_address, s390_return_in_memory, s390_init_builtins,
6626         s390_expand_builtin, s390_output_mi_thunk, s390_safe_attr_type,
6627         s390_adjust_priority, s390_issue_rate,
6628         s390_first_cycle_multipass_dfa_lookahead, s390_cannot_copy_insn_p,
6629         s390_rtx_costs, s390_address_cost, s390_reorg, s390_valid_pointer_mode,
6630         s390_build_builtin_va_list, s390_gimplify_va_arg,
6631         s390_function_ok_for_sibcall, s390_call_saved_register_used,
6632         s390_pass_by_reference, s390_fixed_condition_code_regs,
6633         s390_cc_modes_compatible s390_mainpool_start,, s390_mainpool_finish,
6634         s390_mainpool_cancel, s390_chunkify_start, s390_chunkify_finish,
6635         s390_chunkify_cancel, s390_start_pool, s390_end_pool,
6636         s390_add_pool_insn, s390_find_pool, s390_add_constant,
6637         s390_find_constant, s390_add_execute, s390_find_execute,
6638         s390_execute_label, s390_execute_target, s390_dump_pool,
6639         s390_dump_execute, s390_alloc_pool, s390_free_pool): Remove prototypes.
6640         Move target macro definitions to the end of the file.  Move several
6641         functions within the file to assure correct compiling.
6642
6643 2005-05-09  Steven Bosscher  <stevenb@suse.de>
6644
6645         * calls.c (purge_reg_equiv_notes): Remove, fold into...
6646         (fixup_tail_calls): ...here.  Only look at insns between the
6647         start of the function and the FUNCTION_BEG insn note.
6648
6649         * gcse.c (one_cprop_pass): Fix typos in dumps.
6650
6651         * tree-ssa-operands.h (FOR_EACH_PHI_ARG): Fix typos.
6652
6653 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6654
6655         * config/s390/s390.h: Move xxx_REGNUM definitions to s390.md.
6656         * config/s390/s390.md: ("SIBCALL_REGNUM", "BASE_REGNUM",
6657         "RETURN_REGNUM", "CC_REGNUM", "TP_REGNUM"): New constants.
6658         Replace every occurrence of '(reg:<MODE> 33)' by '(reg:<MODE>
6659         CC_REGNUM)'.
6660         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Replace
6661         '(reg:<MODE> 36)' by '(reg:<MODE> TP_REGNUM)'.
6662         ("*sibcall_br", "*sibcall_value_br"): Replace '(reg:DI 1)' by '(reg:DI
6663         REG_SC)'.
6664
6665 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6666
6667         * config/s390/s390.md: ("gf") New mode attribute.
6668         ("fixuns_truncdfdi2", "fixuns_truncdfsi2", "fixuns_truncsfdi2",
6669         "fixuns_truncsfsi2"): Merge.
6670         ("fix_truncdfdi2", "fix_truncsfdi2"): Merge.
6671         ("fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee", "fix_truncsfdi2_ieee",
6672         "fix_truncsfsi2_ieee"): Merge.
6673
6674 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6675
6676         * config/s390/s390.md: ("FPR") New mode macro.
6677         ("de", "dee"): New mode attributes.
6678         ("cmpdf", "cmpsf"): Merge.
6679         ("*cmpdf_ccs_0", "*cmpsf_ccs_0"): Merge.
6680         ("*cmpdf_ccs_0_ibm", "*cmpdf_ccs_0_ibm"): Merge.
6681         ("*cmpdf_ccs", "*cmpsf_ccs"): Merge.
6682         ("*cmpdf_ccs_ibm", "*cmpsf_ccs_ibm"): Merge.
6683         ("floatdidf2", "floatdisf2"): Merge.
6684         ("adddf3", "addsf3"): Merge.
6685         ("*adddf3", "*addsf3"): Merge.
6686         ("*adddf3_cc", "*addsf3_cc"): Merge.
6687         ("*adddf3_cconly", "*addsf3_cconly"): Merge.
6688         ("*adddf3_ibm", "*addsf3_ibm"): Merge.
6689         ("subdf3", "subsf3"): Merge.
6690         ("*subdf3", "*subsf3"): Merge.
6691         ("*subdf3_cc", "*subsf3_cc"): Merge.
6692         ("*subdf3_cconly", "*subsf3_cconly"): Merge.
6693         ("*subdf3_ibm", "*subsf3_ibm"): Merge.
6694         ("muldf3", "mulsf3"): Merge.
6695         ("*muldf3", "*mulsf3" "): Merge.
6696         ("*muldf3_ibm", "*mulsf3_ibm"): Merge.
6697         ("*fmadddf", "*fmaddsf"): Merge.
6698         ("*fmsubdf", "*fmsubsf"): Merge.
6699         ("divdf3", "divsf3"): Merge.
6700         ("*divdf3", "*divsf3"): Merge.
6701         ("*divdf3_ibm", "*divsf3_ibm"): Merge.
6702         ("negdf2", "negsf2"): Merge.
6703         ("*negdf2_cc", "*negsf2_cc"): Merge.
6704         ("*negdf2_cconly", "*negsf2_cconly"): Merge.
6705         ("*negdf2", "*negsf2"): Merge.
6706         ("*negdf2_ibm", "*negsf2_ibm"): Merge.
6707         ("absdf2", "abssf2"): Merge.
6708         ("*absdf2_cc", "*abssf2_cc"): Merge.
6709         ("*absdf2_cconly", "*abssf2_cconly"): Merge.
6710         ("*absdf2", "*abssf2"): Merge.
6711         ("*absdf2_ibm", "*abssf2_ibm"): Merge.
6712         ("*negabsdf2_cc", "*negabssf2_cc"): Merge.
6713         ("*negabsdf2_cconly", "*negabssf2_cconly"): Merge.
6714         ("*negabsdf2", "*negabssf2"): Merge.
6715         ("sqrtdf2", "sqrtsf2"): Merge.
6716
6717 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6718
6719         * config/s390/s390.c: (s390_adjust_priority): Adapt to changed
6720         attribute names.
6721         * config/s390/2084.md: ("x_fsimpd", "x_fsimps", "x_fdivd", "x_fdivs",
6722         "x_floadd", "x_floads", "x_fstored", "x_fstores"): Rename to
6723         ("x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
6724         "x_floadsf", "x_fstoredf", "x_fstoresf") and replace 'type'
6725         attribute names.
6726         * config/s390/s390.md: ("type"): Rename "fsimpd, fsimps, floadd, floads,
6727         fstored, fstores, fmuld, fmuls, fdivd, fdivs, fsqrtd, fsqrts" to
6728         "fsimpdf, fsimpsf, floaddf, floadsf, fstoredf, fstoresf, fmuldf,
6729         fmulsf, fdivdf, fdivsf, fsqrtdf, fsqrtsf".
6730         ("*cmpdf_ccs_0", "*cmpdf_css_0_ibm", "*cmpdf_ccs",
6731         "*cmpdf_ccs_ibm", "*cmpsf_ccs_0", "*cmpsf_css_0_ibm",
6732         "*cmpsf_ccs", "*cmpsf_ccs_ibm", "*movdi_64", "*movdi_31",
6733         "*movsi_zarch", "*movsi_esa", "*movdf_64", "*movdf_31", "movsf",
6734         "*muldf3", "*muldf3_ibm", "*fmadddf", "*fmsubdf", "*mulsf3",
6735         "mulsf3_ibm", "*fmaddsf", "fmsubsf", "*divdf3", "*divdf3_ibm",
6736         "*negdf2_cc", "*negdf2_cconly", "*negdf2", "*negdf2_ibm",
6737         "*negsf2_cc", "*negsf2_cconly", "*negsf2", "*absdf2_cc",
6738         "*absdf2_cconly", "*absdf2", "*absdf2_ibm", "*abssf2_cc",
6739         "*abssf2_cconly", "*abssf2", "*abssf2_ibm", "*negabsdf2_cc",
6740         "*negabsdf2_cconly", "*negabsdf2", "*negabssf2_cc",
6741         "*negabssf2_cconly", "*negabssf2", "sqrtdf2", "sqrtsf2"): Rename
6742         'type' value.
6743         ("*divsf3"): Additionally rename second pattern to
6744         "*divsf3_ibm".
6745         ("truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
6746         "*adddf3", "*adddf3_cc", "*adddf3_cconly", "*adddf3_ibm",
6747         "*addsf3", "*addsf3_cc", "*addsf3_cconly", "*subdf3",
6748         "subdf3_cc", "*subdf3_cconly", "*subdf3_ibm", "*subsf3",
6749         "subsf3_cc", "*subsf3_cconly", "*subsf3_ibm"): Merge identical
6750         'type values' and rename 'type' value.
6751         ("*addsf3"): Additionally rename second pattern to
6752         "*addsf3_ibm".
6753
6754 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6755
6756         * config/s390/s390.md: ("SHIFT"): New mode macro.
6757         ("lr", "shift"): New mode attributes.
6758         ("ashldi3", "lshrdi3"): Merge.
6759         ("*ashldi3_31", "*lshrdi3"_31): Merge.
6760         ("*ashldi3_64", "*lshrdi3"_64): Merge.
6761         ("ashlsi3", "lshrsi3"): Merge.
6762
6763 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6764
6765         * config/s390/s390.md: ("DSI", "SCOND"): New mode
6766         macros.
6767         ("E", "g"): New mode attributes.
6768         ("*adddi3_alc_cc", "*addsi3_alc_cc"): Merge.
6769         ("*adddi3_alc", "*addsi3_alc"): Merge.
6770         ("*subdi3_slb_cc", "*subsi3_slb_cc"): Merge.
6771         ("*subdi3_slb", "*subsi3_slb"): Merge.
6772         ("adddicc", "addsicc"): Merge.
6773         ("*sconddi", "*scondsi"): Merge.
6774         ("*sconddi_neg", "*scondsi_neg"): Merge.
6775         ("sltu", "sgtu", "sleu", "sgeu"): Merge.
6776         ("negdi2", "negsi2"): Extract expander pattern from
6777         "negsi2" and merge with "negdi2".
6778         ("*negdi2"): Merge with instruction pattern of "negsi2".
6779         ("*negdi2_cc", "*negsi2_cc"): Merge.
6780         ("*negdi2_cconly", "*negsi2_cconly"): Merge.
6781         ("rotldi3", "rotlsi3"): Merge.
6782
6783 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6784
6785         * config/s390/s390.md: ("hc"): New mode attribute.
6786         ("extendhidi2", "extendqidi2"): Merge.
6787         ("*extendhidi2", "*extendqidi2"): Merge.
6788         ("extendhisi2", "extendqisi2"): Merge.
6789         ("zero_extendhidi2", "zero_extendqidi2"): Merge.
6790         ("*zero_extendhidi2", "*zero_extendqidi2"): Merge.
6791         Merged 2 define_split.
6792         ("*zero_extendhisi2", "*zero_extendqisi2"): Merge.
6793         ("*zero_extendhisi2_64", "*zero_extendqisi2_64"): Merge.
6794
6795 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6796
6797         * config/s390/s390.md: ("COMPARE"): New mode macro.
6798         ("beq", "bne", "bgt", "bgtu", "blt", "bltu", "bge", "bgeu",
6799         "ble", "bleu", "bunordered", "bordered", "buneq", "bunlt",
6800         "bungt", "bunle", "bunge", "bltgt"): Merge.
6801
6802 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6803
6804         * config/s390/s390.md: ("INT"): New mode macro.
6805         ("one_cmpldi2", "one_cmplsi2", "one_cmplhi2", "one_cmplqi2"):
6806         Merge.
6807
6808 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6809
6810         * config/s390/s390.md: ("GPR", "P"): New mode macros.
6811         ("cmpdi", "cmpsi"): Merge.
6812         ("strlendi", "strlensi"): Merge.
6813         ("*strlendi", "*strlensi"): Merge.
6814         ("movmemdi", "movmemsi"): Merge.
6815         ("clrmemdi", "clrmemsi"): Merge.
6816
6817 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
6818
6819         * config/s390/s390.md: ("HQI"): New mode macro.
6820         ("icm_lo", "icm_hi", "max_uint"): New mode attributes.
6821         ("*tmhi_full", "*tmqi_full"): Merge.
6822         ("*tsthiCCT", "*tstqiCCT"): Merge.
6823         ("*tsthi", "*tstqi"): Merge.
6824         ("*tsthi_cconly", "tstqi_cconly"): Merge.
6825         ("*sethighhisi", "*sethighqisi"): Merge.
6826
6827 2005-05-09  Kazu Hirata  <kazu@cs.umass.edu>
6828
6829         * crtstuff.c, integrate.h, tree-scalar-evolution.h,
6830         config/alpha/unicosmk.h, config/arc/arc.md,
6831         config/arm/bpabi.h, config/arm/coff.h, config/arm/elf.h,
6832         config/arm/ieee754-df.S, config/arm/ieee754-sf.S,
6833         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
6834         config/arm/semi.h, config/arm/uclinux-elf.h,
6835         config/arm/wince-pe.h, config/fr30/fr30.c,
6836         config/rs6000/altivec.h: Update copyright.
6837
6838 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
6839
6840         * config/pdp11/pdp11.c (pdp11_output_function_prologue): Use
6841         gcc_assert and gcc_unreachable as appropriate.
6842         (pdp11_output_function_epilogue, output_move_double,
6843         output_move_quad, print_operand_address, output_jump,
6844         output_addr_const_pdp11): Likewise.
6845         * config/pdp11/pdp11.h (FUNCTION_PROFILER,
6846         ASM_OUTPUT_ALIGN): Likewise.
6847         * config/pdp11/pdp11.md: Likewise.
6848         (extendhisi2, subhi3, subqi3): Likewise.
6849
6850 2005-05-09  David Edelsohn  <edelsohn@gnu.org>
6851
6852         PR middle-end/21237
6853         * dojump.c (do_jump, MINUS_EXPR): Build NE_EXPR and fall through
6854         to NE_EXPR case.
6855
6856 2005-05-09  Kazu Hirata  <kazu@cs.umass.edu>
6857
6858         * config/ia64/ia64.c: Fix a comment typo.
6859
6860 2005-05-09  Richard Earnshaw  <rearnsha@arm.com>
6861
6862         PR target/21397
6863         * arm.c (ARM_OPT_SET_CPU, ARM_OPT_SET_ARCH, ARM_OPT_SET_TUNE): Define.
6864         (arm_override_options): Use them instead of manifest constants.  Don't
6865         allow -march to override the -mtune setting.
6866
6867 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
6868
6869         * config/iq2000/iq2000.c (abort_with_insn): Use fancy_abort.
6870         (gen_int_relational): Use gcc_unreachable and gcc_assert as necessary.
6871         (function_arg_advance, function_arg, save_restore_insns,
6872         iq2000_expand_prologue, iq2000_output_conditional_branch,
6873         expand_one_builtin, print_operand):
6874         * config/iq2000/iq2000.md (tablejump): Likewise.
6875
6876 2005-05-09  David Ung  <davidu@mips.com>
6877
6878         * config/mips/mips.h (processor_type): Add names for the 24K.
6879         * config/mips/mips.c (mips_cpu_info_table): Add names for the 24K
6880         processor family.
6881         * config/mips/mips.md (cnv_mode): New attribute for recording the
6882         conversion types of float convert insns.
6883         (cpu): Add 24k and 24kx.
6884         (include): Include 24k.md file.
6885         (truncdfsf2, extendsfdf2, fix_truncdfsi2_insn, fix_truncdfsi2_macro)
6886         (fix_truncdfdi2, fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2)
6887         (floatdisf2): Setup cnv_mode.
6888         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): Changed mode to SF and
6889         setup cnv_mode.
6890         * config/mips/24k.md: New file, contains 24k DFA pipeline
6891         description.
6892
6893 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
6894
6895         * config/sh/sh.c (print_operand_address): Use gcc_assert and
6896         gcc_unreachable as appropriate.
6897         (print_operand, prepare_move_operands, prepare_scc_operands,
6898         output_movedouble, output_branch, shift_insns_rtx, gen_shifty_op,
6899         gen_shl_and, shl_sext_kind, gen_datalabel_ref, dump_table,
6900         fixup_mova, gen_far_branch, sh_reorg, split_branches,
6901         final_prescan_insn, output_stack_adjust, sh_expand_epilogue,
6902         sh_set_return_address, sh_setup_incoming_varargs,
6903         initial_elimination_offset, sh_pch_valid_p, get_free_reg,
6904         sh_expand_builtin, sh_output_mi_thunk, extract_sfunc_addr,
6905         check_use_sfunc_addr): Likewise.
6906         * config/sh/netbsd-elf.h (FUNCTION_PROFILER): Likewise.
6907         * config/sh/sh.h (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
6908         * config/sh/symbian.c (sh_symbian_mark_dllexport,
6909         sh_symbian_mark_dllimport): Likewise.
6910         * config/sh/sh.md: Likewise.
6911         (movdicc, call_pop, call_value_pop, casesi_worker_1,
6912         casesi_worker_2, casesi_shift_media, casesi_load_media,
6913         return_media): Likewise.
6914
6915 2005-05-08  Roger Sayle  <roger@eyesopen.com>
6916
6917         PR inline-asm/8788
6918         * stmt.c (expand_asm_operands): Avoid calling force_reg on BLKmode
6919         operands.
6920
6921 2005-05-08  Richard Henderson  <rth@redhat.com>
6922
6923         * config/alpha/alpha.c (adjust_address): Fix typo last change.
6924
6925 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
6926
6927         * config/m68hc11/m68hc11.h (REG_VALID_P): A regno must be >= 0
6928         and -1 can happen in reg_renumber when no hard register is assigned.
6929
6930 2005-05-08  Steven Bosscher  <stevenb@suse.de>
6931             Kazu Hirata  <kazu@cs.umass.edu>
6932
6933         PR tree-optimization/14841, tree-optimization/15838
6934         * tree-ssa-ccp.c (fold_const_aggregate_ref): New.
6935         (evaluate_stmt): Call it.
6936
6937 2005-05-08  Jakub Jelinek  <jakub@redhat.com>
6938
6939         * config/ia64/ia64.c (ia64_override_options): Don't set
6940         ia64_flag_var_tracking and clear flag_var_tracking here...
6941         (ia64_file_start): ... but here.
6942
6943 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
6944
6945         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use gcc_assert
6946         and gcc_unreachable as appropriate.
6947         (expand_prologue, expand_epilogue, m68hc11_gen_lowpart,
6948         m68hc11_gen_highpart, print_operand, print_operand_address,
6949         m68hc11_expand_compare, m68hc11_expand_compare_and_branch,
6950         m68hc11_gen_movhi): Likewise.
6951         * config/m68hc11/m68hc11.h (HARD_X_REGNUM): Reword comment.
6952         * config/m68hc11/m68hc11.md: Reword comment.
6953
6954 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
6955
6956         PR target/21281
6957         * config/m68hc11/predicates.md (splitable_operand): An immediate is
6958         allowed.
6959
6960 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
6961
6962         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Do not allow
6963         the 68HC12 address indirect addressing mode as it is not supported by
6964         bset and bclr.
6965         * config/m68hc11/m68hc11-protos.h
6966         (m68hc11_valid_addressing_p): Declare.
6967         (m68hc11_add_mode): Declare.
6968         * config/m68hc11/m68hc11.c (m68hc11_valid_addressing_p): Rename from
6969         register_indirect_p and export it.
6970         (m68hc11_z_replacement): Use emit_insn_after when adding the save Z
6971         instruction so that it is part of the good BB.
6972         (m68hc11_gen_movhi): Fix invalid generation of indexed indirect
6973         addressing with movw.
6974         (m68hc11_gen_movqi): Use pula and pulb instead of lda and ldb for
6975         68HC12.
6976         * config/m68hc11/m68hc11.h (ADDR_STRICT, ADDR_INCDEC, ADDR_INDEXED,
6977         ADDR_OFFSET, ADDR_INDIRECT, ADDR__CONST): Moved from m68hc11.c.
6978         * config/m68hc11/m68hc11.md ("movhi_const0"): Use this pattern only
6979         for 68HC11.
6980         ("*movhi_68hc12"): Handle movhi_const0.
6981         ("*subhi3", "subqi3"): Use general_operand for operand 1.
6982         ("*subhi3_zext"): Likewise.
6983
6984 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
6985
6986         PR target/19051
6987         * config/m68hc11/m68hc11.md ("mulqi3"): Use general_operand for
6988         operand 1 and fix constraints.
6989         ("mulqihi3"): Use general_operand for operand 2.
6990
6991 2005-05-08  Julian Brown  <julian@codesourcery.com>
6992             H.J. Lu  <hongjiu.lu@intel.com>
6993             Paul Brook  <paul@codesourcery.com>
6994
6995         * configure.ac: Set ld_vers_major, ld_vers_minor and ld_vers_patch for
6996         GNU linker. Support linker version x.x.x.x.x. Require GNU linker
6997         20050308/2.16.0 or newer for comdat group.
6998         * configure: Regenerated.
6999         * config.in: Regenerated.
7000         * varasm.c (default_function_rodata_section): Put .rodata section in
7001         COMDAT group when necessary.
7002         (default_elf_asm_named_section): Rename HAVE_GAS_COMDAT_GROUP to
7003         HAVE_COMDAT_GROUP.
7004         (default_unique_section_1): Don't use .gnu.linkonce when COMDAT is
7005         available.
7006
7007 2005-05-08  Kazu Hirata  <kazu@cs.umass.edu>
7008
7009         * tree-dfa.c (referenced_vars, add_referenced_var): Use VEC
7010         instead of VARRAY.
7011         * tree-flow.h (num_referenced_var, referenced_var): Likewise.
7012         * tree-into-ssa.c (mark_def_site_blocks): Likewise.
7013         * tree-ssa.c (init_tree_ssa, delete_tree_ssa): Likewise.
7014         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
7015
7016 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
7017
7018         PR target/16925
7019         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Handle split of
7020         64-bit constants on 64-bit hosts.
7021         (m68hc11_split_logical): Simplify.
7022         (m68hc11_split_move): Likewise.
7023
7024 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
7025             Paolo Bonzini  <bonzini@gnu.org>
7026
7027         * Makefile.in (cs-tconfig.h): Pass USED_FOR_TARGET to mkconfig.sh
7028         * aclocal.m4 (GCC_TARGET_TEMPLATE, AH_TEMPLATE): New.
7029         * configure.ac (enable_checking): Fix typos in runtime_checking.
7030         (ENABLE_RUNTIME_CHECKING): Mark as target template.
7031         (xm_file): Prepend auto-host.h
7032         (HAVE_GAS_HIDDEN, HAVE_LD_EH_FRAME_HDR): Mark as target template.
7033         * mkconfig.sh: Do not automatically define USED_FOR_TARGET in
7034         tconfig.h.
7035         * crtstuff.c: Do not include auto-host.h.
7036         (IN_LIBGCC2): Do not define.
7037         * gcov-io.h: Include tconfig.h, not auto-host.h.
7038         * libgcc2.c: Do not include auto-host.h.
7039         (abort): Do not undefine.
7040         * libgcov.c: Remove unneeded comment about config.h.
7041         * unwind-dw2-fde-glibc.c: Do not inlude auto-host.h.
7042         * config.in, configure: Regenerated.
7043
7044 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
7045             Falk Hueffner  <falk@debian.org>
7046
7047         * config/alpha/alpha.c (tls_symbolic_operand_1): Use gcc_assert
7048         and gcc_unreachable as appropriate.
7049         (get_aligned_mem, get_unaligned_address,
7050         alpha_emit_set_long_const, alpha_emit_conditional_branch,
7051         alpha_emit_setcc, alpha_emit_conditional_move,
7052         alpha_lookup_xfloating_lib_func, alpha_compute_xfloating_mode_arg,
7053         alpha_emit_xfloating_libcall, alpha_split_tfmode_pair,
7054         alpha_expand_unaligned_load, alpha_expand_block_move,
7055         alpha_expand_zap_mask, get_trap_mode_suffix,
7056         get_round_mode_suffix, get_some_local_dynamic_name,
7057         print_operand_address, function_arg, alpha_return_in_memory,
7058         function_value, alpha_expand_builtin,
7059         alpha_initial_elimination_offset, alpha_expand_epilogue,
7060         summarize_insn, alpha_handle_trap_shadows, alphaev5_insn_pipe,
7061         alphaev5_next_group, alpha_align_insns,
7062         unicosmk_initial_elimination_offset, unicosmk_unique_section,
7063         unicosmk_ssib_name): Likewise.
7064         * config/alpha/alpha.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
7065         * config/alpha/unicosmk.h (TRAMPOLINE_TEMPLATE,
7066         ASM_OUTPUT_ADDR_DIFF_ELT, ASM_OUTPUT_ADDR_DIFF_VEC): Likewise.
7067         * config/alpha/vms.h (INITIAL_ELIMINATION_OFFSET,
7068         ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
7069         * config/alpha/alpha.md (*divmodsi_internal_er,
7070         *divmoddi_internal_er, ashldi3, *insxl, sibcall, call_osf,
7071         call_nt, call_umk, call_vms, call_value, sibcall_value,
7072         call_value_osf, call_value_nt, call_value_vms, call_value_umk,
7073         *call_vms_1, *movmemdi_1, *clrmemdi_1, *call_value_vms_1): Likewise.
7074         * config/alpha/predicates.md (input_operand): Likewise.
7075
7076 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
7077
7078         * config/frv/frv.c (frv_default_flags_for_cpu): Use gcc_assert and
7079         gcc_unreachable, as appropriate.
7080         (frv_function_prologue, frv_alloc_temp_reg,
7081         frv_initial_elimination_offset, frv_expand_block_move,
7082         frv_expand_block_clear, frv_print_operand_jump_hint,
7083         frv_legitimize_tls_address, unspec_got_name, frv_emit_move,
7084         frv_emit_movsi, frv_split_cond_move, frv_split_minmax,
7085         frv_ifcvt_modify_insn, frv_ifcvt_modify_final,
7086         frv_adjust_field_align, frv_insn_unit, frv_cond_flags,
7087         frv_sort_insn_group, frv_reorder_packet, frv_matching_accg_mode,
7088         frv_in_small_data_p, frv_asm_out_constructor,
7089         frv_asm_out_destructor, frv_output_dwarf_dtprel): Likewise.
7090         * config/frv/frv.md (reload_incc_fp, *cond_exec_si_binary1,
7091         *cond_exec_si_binary2, *cond_exec_si_divide, *cond_exec_si_unary1,
7092         *cond_exec_sf_conv, *cond_exec_sf_add, call, sibcall, call_value,
7093         sibcall_value, casesi): Likewise.
7094
7095         * config/mn10300/mn10300.c (print_operand): Use gcc_assert and
7096         gcc_unreachable as appropriate.
7097         (print_operand_address, mn10300_print_reg_list, expand_prologue,
7098         expand_epilogue, notice_update_cc, initial_offset,
7099         mn10300_address_cost_1): Likewise.
7100         * config/mn10300/mn10300.md: Likewise.
7101         (absdf2, abssf2, negdf2, negsf2): Likewise.
7102
7103 2005-05-08  Richard Sandiford  <rsandifo@redhat.com>
7104
7105         PR target/21416
7106         * config/mips/mips.c (mips_emit_compare): Don't reverse UNGE and UNGT
7107         comparisons.
7108         * config/mips/mips.md (swapped_fcond): New code macro and attribute.
7109         (sgt_<mode>, sge_<mode>): Generalize to all members of swapped_fcond,
7110         including sunge_<mode> and sungt_<mode>.
7111
7112 2005-05-08  Richard Sandiford  <rsandifo@redhat.com>
7113
7114         * integrate.h (get_hard_reg_initial_val): Change type of register
7115         parameter from int to unsigned int.
7116         (has_hard_reg_initial_val): Likewise.
7117         * integrate.c (get_hard_reg_initial_val): Likewise.
7118         (has_hard_reg_initial_val): Likewise.  Remove cast to unsigned int.
7119
7120 2005-05-08  Kazu Hirata  <kazu@cs.umass.edu>
7121
7122         * except.c (eh_status): Change the type of ttype_data to
7123         VEC(tree,gc)*.
7124         (add_ttypes_entry, assign_filter_values,
7125         output_function_exception_table): Use VEC instead of VARRAY.
7126
7127 2005-05-07  David Edelsohn  <edelsohn@gnu.org>
7128
7129         * config/rs6000/rs6000.md (popcount<mode>2): Fix non-C90 constant.
7130
7131 2005-05-07  Paul Brook  <paul@codesourcery.com>
7132
7133         * Makefile.in: Fix dependencies.
7134         (GCOV_IO_H, VARRAY_H): Set.
7135
7136 2005-05-07  Anthony Green  <green@redhat.com>
7137
7138         PR bootstrap/21403
7139         * configure.ac (STMP_FIXPROTO): Fix [ ] consumption problem in
7140         x$STMP_FIXPROTO test.
7141         * configure: Rebuilt.
7142
7143 2005-05-07  Joseph S. Myers  <joseph@codesourcery.com>
7144
7145         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Do not define
7146         inappropriate feature test macros if flag_iso.
7147
7148 2005-05-07  Joseph S. Myers  <joseph@codesourcery.com>
7149
7150         * config/ia64/hpux.h (NO_IMPLICIT_EXTERN_C): Define.
7151
7152 2005-05-07  Hans-Peter Nilsson  <hp@axis.com>
7153
7154         PR target/21441
7155         * config/cris/cris.md ("*movdi_insn", "*mov_sidesisf_biap")
7156         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
7157         Handle moved operand being in special register.
7158         ("smulsi3_highpart", "umulsi3_highpart"): Change .error into
7159         presumed working insn.
7160         (mover2side): Add FIXME.
7161
7162 2005-05-07  Richard Sandiford  <rsandifo@redhat.com>
7163
7164         * integrate.c (get_func_hard_reg_initial_val): Delete.
7165         (has_func_hard_reg_initial_val): Delete.
7166         (get_hard_reg_initial_val): Inline the old implementation of
7167         get_func_hard_reg_initial_val.  Use has_hard_reg_initial_val
7168         instead of has_func_hard_reg_initial_val to test for an existing
7169         pseudo.  Only create an rtx if a new initial value entry is needed.
7170         (has_hard_reg_initial_val): Scan the initial value list directly.
7171         Don't create an rtx.
7172
7173 2005-05-07  David Edelsohn  <edelsohn@gnu.org>
7174
7175         * config.gcc ({powerpc,rs6000}-ibm-aix*): Remove rs6000/aix.opt
7176         from extra_options.
7177         * config.in (HAVE_AS_POPCNTB): New.
7178         * configure.ac (HAVE_AS_MFCRF): Add .machine "pwr5" to AIX test.
7179         (HAVE_AS_POPCNTB): New.
7180         * configure: Regenerated.
7181         * config/rs6000/aix.h (TARGET_XL_COMPAT): Delete.
7182         * config/rs6000/rs6000.c (rs6000_override_options, power5): Add
7183         MASK_POPCNTB.  Uncomment rs6000_sched_restricted_insns_priority
7184         and rs6000_sched_costly_dep.
7185         * config/rs6000/rs6000.h (TARGET_POPCNTB): New.
7186         (TARGET_XL_COMPAT): Delete.
7187         * config/rs6000/rs6000.md (UNSPEC_POPCNTB): New.
7188         (popcount<mode>2): New.
7189         (popcntb<mode>2): New.
7190         * config/rs6000/rs6000.opt (mpopcntb): New.
7191
7192         * opt-functions.awk (var_set): Emit OPTION_MASK_ for InverseMask
7193         if variable name exists.
7194
7195 2005-05-07  Matt Kraai  <kraai@ftbfs.org>
7196
7197         * Makefile.in (c-gimplify.o): Depend on $(RTL_H) instead of rtl.h.
7198
7199 2005-05-07  Richard Henderson  <rth@redhat.com>
7200
7201         PR target/21412
7202         * config/rs6000/rs6000.c (rs6000_emit_move): Look for tls addresses
7203         with constant offsets.
7204
7205 2005-05-07  Nathan Sidwell  <nathan@codesourcery.com>
7206
7207         * config/v850/v850.c (print_operand): Use gcc_assert and
7208         gcc_unreachable, as appropriate.
7209         (print_operand_address, v850_handle_data_area_attribute,
7210         v850_encode_data_area, construct_restore_jr, construct_save_jarl,
7211         v850_insert_attributes, construct_prepare_instruction): Likewise.
7212         * config/v850/v850.h (INITIAL_ELIMINATION_OFFSET): Likewise.
7213         * config/v850/v850.md (movsicc, *sasf_1): Likewise.
7214
7215 2005-05-07  Kazu Hirata  <kazu@cs.umass.edu>
7216
7217         * tree-ssa-loop-ivcanon.c, config/i386/i386.c,
7218         config/rs6000/rs6000.h: Fix comment typos.
7219
7220 2005-05-07  Richard Sandiford  <rsandifo@redhat.com>
7221
7222         * doc/invoke.texi: Remove documentation for MIPS' -mint64 option.
7223         * config/mips/mips.c (TARGET_SCALAR_MODE_SUPPORTED_P): Delete.
7224         (mips_scalar_mode_supported_p): Delete.
7225
7226 2005-05-06  Eric Christopher  <echristo@redhat.com>
7227
7228         * config/mips/mips.opt: Remove -mint64 option.
7229         * config/mips/mips.c (override_options): Remove -mint64
7230         handling.
7231         * config/mips/mips.h (INT_TYPE_SIZE): Define to 32.
7232         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove
7233         64-bit integer handling.
7234         * doc/invoke.texi (Option Summary): Remove -mint64 for
7235         mips.
7236
7237 2005-05-06  Zdenek Dvorak  <dvorakz@suse.cz>
7238
7239         PR tree-optimization/19401
7240         * tree-flow.h (tree_unroll_loops_completely): Declaration changed.
7241         * tree-ssa-loop-ivcanon.c (enum unroll_level): New.
7242         (estimated_unrolled_size): New function.
7243         (try_unroll_loop_completely, canonicalize_loop_induction_variables,
7244         tree_unroll_loops_completely): Always unroll loops if the code size
7245         does not increase.
7246         * tree-ssa-loop.c (tree_complete_unroll): Indicate whether all
7247         loops should be unrolled completely.
7248         (gate_tree_complete_unroll): Run complete unrolling unconditionally.
7249
7250 2005-05-06  Zdenek Dvorak  <dvorakz@suse.cz>
7251
7252         PR rtl-optimization/21254
7253         * loop-iv.c (iv_number_of_iterations): Simplify infiniteness
7254         assumptions for loops that otherwise do not roll.
7255         (find_simple_exit): Prefer # of iterations that is guaranteed
7256         not to be infinite.
7257         * loop-unroll.c (decide_peel_once_rolling,
7258         decide_peel_completely): Check whether the loop is infinite.
7259
7260 2005-05-06  Pat Haugen  <pthaugen@us.ibm.com>
7261
7262         * config/rs6000/sysv4.opt: Fix typo.
7263
7264 2005-05-06  Denis Vlasenko  <vda@port.imtp.ilyichevsk.odessa.ua>
7265             Jakub Jelinek  <jakub@redhat.com>
7266
7267         PR target/21329
7268         * config/i386/i386.c (ix86_expand_movmem): Don't use rep; movsb
7269         for -Os if (movsl;)*(movsw;)?(movsb;)? sequence is shorter.
7270         Don't use rep; movs{l,q} if the repetition count is really small,
7271         instead use a sequence of movs{l,q} instructions.
7272
7273 2005-05-06  Jeff Law  <law@redhat.com>
7274
7275         PR tree-optimization/21380
7276         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
7277         thread through a block with no preds.
7278
7279 2005-05-06  Kazu Hirata  <kazu@cs.umass.edu>
7280
7281         * tree-ssa-operands.c (clobbered_v_may_defs, clobbered_vuses,
7282         ro_call_vuse, fini_ssa_operands, add_call_clobber_ops,
7283         add_call_read_ops): Use VEC instead of VARRAY.
7284
7285 2005-05-06  Nathan Sidwell  <nathan@codesourcery.com>
7286
7287         * config/mcore/mcore.c (mcore_print_operand_address): Use
7288         gcc_assert and gcc_unreachable as appropriate.
7289         (mcore_print_operand, mcore_gen_compare_reg, mcore_output_call,
7290         mcore_output_andn, output_inline_const, mcore_output_move,
7291         mcore_output_movedouble, mcore_expand_block_move,
7292         layout_mcore_frame, mcore_initial_elimination_offset,
7293         mcore_expand_prolog, mcore_mark_dllexport,
7294         mcore_mark_dllimport): Likewise.
7295         * config/mcore/mcore.h (switch_to_section): Likewise.
7296         * config/mcore/mcore.md: Likewise.
7297
7298 2005-05-06  Aldy Hernandez  <aldyh@redhat.com>
7299
7300         * config/rs6000/linux64.h: Remove MASK_PROFILE_KERNEL, and
7301         TARGET_PROFILE_KERNEL.
7302
7303         * config/rs6000/rs6000.c (output_profile_hook): Add comment to
7304         TARGET_PROFILE_KERNEL use.
7305
7306 2005-05-06  Nathan Sidwell  <nathan@codesourcery.com>
7307
7308         * config/m32r/m32r.c (m32r_encode_section_info): Use gcc_assert
7309         and gcc_unreachable, as appropriate.
7310         (gen_compare, gen_split_move_double, m32r_setup_incoming_varargs,
7311         m32r_expand_prologue, m32r_output_function_epilogue,
7312         m32r_legitimize_pic_address, m32r_print_operand_address,
7313         emit_cond_move, m32r_function_symbol,
7314         m32r_output_block_move): Likewise.
7315         * config/m32r/m32r.h (INITIAL_ELIMINATION_OFFSET): Likewise.
7316         * config/m32r/m32r.md ( *movsi_insn, *zero_branch_insn,
7317         *rev_zero_branch_insn): Likewise.
7318
7319 2005-05-06  Jakub Jelinek  <jakub@redhat.com>
7320
7321         PR c++/20961
7322         * varasm.c (merge_weak): Remove NEWDECL from WEAK_DECLS chain
7323         if both NEWDECL and OLDDECL are already weak.
7324
7325 2005-05-06  Richard Sandiford  <rsandifo@redhat.com>
7326
7327         * config/rs6000/sysv4.h (EXTRA_SUBTARGET_SWITCHES): Delete.
7328
7329 2005-05-05  J"orn Rennecke  <joern.rennecke@st.com>
7330             Kaz Kojima  <kkojima@gcc.gnu.org>
7331
7332         * config/sh/sh.c (sh_builtin_saveregs): Use copy_to_mode_reg
7333         and plus_constant.
7334
7335 2005-05-05  Aldy Hernandez  <aldyh@redhat.com>
7336             David Edelsohn  <edelsohn@gnu.org>
7337
7338         * config.gcc: Add .opt magic for the rs6000 ports.
7339
7340         * doc/invoke.texi: Document -mabi= option properly.  Document
7341         -misel and -mno-sel.  Document -mspe and -mno-spe.  Document
7342         -mvrsave and -mno-vrsave.  Document deprecation of -mspe= and
7343         -misel=.
7344
7345         * config/rs6000/aix.h: Remove XL_COMPAT stuff.  Remove
7346         SUBTARGET_SWITCHES and SUBSUBTARGET_SWITCHES.  Define
7347         TARGET_XL_COMPAT.
7348
7349         * config/rs6000/aix.opt: New.
7350         * config/rs6000/aix41.opt: New.
7351         * config/rs6000/aix64.opt: New.
7352         * config/rs6000/darwin.opt: New.
7353         * config/rs6000/linux64.opt: New.
7354         * config/rs6000/rs6000.opt: New.
7355         * config/rs6000/sysv4.opt: New.
7356
7357         * config/rs6000/sysv4.h: Delete definitions of MASK_* and
7358         associated TARGET_*.  Remove SUBTARGET_OPTIONS,
7359         SUBTARGET_SWITCHES.
7360         Define TARGET_USES_SYSV4_OPT.
7361         * config/rs6000/aix41.h: Remove SUBSUBTARGET_SWITCHES.
7362         * config/rs6000/aix43.h: Remove SUBSUBTARGET_SWITCHES.  Define
7363         TARGET_USES_AIX64_OPT.
7364         * config/rs6000/aix51.h: Same.
7365         * config/rs6000/aix52.h: Same.
7366         * config/rs6000/darwin.h: Remove SUBTARGET_SWITCHES,
7367         MASK_MACHO_DYNAMIC_NO_PIC, TARGET_MACHO_DYNAMIC_NO_PIC.
7368         Use TARGET_ALTIVEC_VRSAVE instead of rs6000_altivec_vrsave.
7369         Define TARGET_DYNAMIC_NO_PIC as TARGET_MACHO_DYNAMIC_NO_PIC.
7370         * config/rs6000/linux64.h: Use
7371         rs6000_explicit_options.  Remove EXTRA_SUBTARGET_SWITCHES.
7372
7373         * config/rs6000/rs6000.c: Remove definitions of
7374         rs6000_sched_restricted_insns_priority,
7375         rs6000_long_double_size_string, rs6000_altivec_vrsave,
7376         rs6000_altivec_vrsave_string, rs6000_isel, rs6000_spe,
7377         rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string,
7378         rs6000_abi_string, rs6000_warn_altivec_long, rs6000_longcall,
7379         rs6000_alignment_string.  Define rs6000_explicit_options.
7380         (rs6000_parse_abi_options): Remove.
7381         (rs6000_parse_alignment_option): Remove.
7382         (rs6000_parse_float_gprs_option): Remove.
7383         (rs6000_handle_option): New.  Define TARGET_HANDLE_OPTION.  Define
7384         TARGET_DEFAULT_TARGET_FLAGS.
7385         (rs6000_override_options): Revamp to use new .opt machinery.
7386
7387         * config/rs6000/rs6000.h: Remove old MASK_* and TARGET_* in favor
7388         of new .opt machinery.  Remove target_flags.  Redefine
7389         TARGET_MFCRF and TARGET_POWERPC64.  Remove TARGET_SWITCHES,
7390         SUBTARGET_SWITCHES, TARGET_OPTIONS, SUBTARGET_OPTIONS,
7391         rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string,
7392         rs6000_altivec_vrsave_string, rs6000_altivec_vrsave,
7393         rs6000_longcall_switch, rs6000_default_long_calls,
7394         rs6000_sched_costly_dep_str, rs6000_sched_costly_dep,
7395         rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch, and
7396         TARGET_ALTIVEC_VRSAVE.
7397
7398 2005-05-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
7399
7400         * config.gcc (hppa1.1-*-rtems*): Remove.
7401         * config/pa/rtems.h: Remove.
7402
7403 2005-05-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
7404
7405         * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
7406         Exclude roe/603e multilib variants.
7407
7408 2005-05-04  Denis Chertykov  <denisc@overta.ru>
7409
7410         PR target/21284
7411         * config/avr/avr.c (avr_output_addr_vec_elt): Use special section
7412         for output.
7413
7414 2005-05-05  Richard Sandiford  <rsandifo@redhat.com>
7415
7416         * config.gcc (arm*-wince-pe*, arm-*-pe*, strongarm-*-pe): Add
7417         arm/pe.opt to $extra_options.
7418         * config/arm/arm.h (target_flags, target_fpu_name, target_fpe_name)
7419         (target_float_abi_name, target_float_switch, target_abi_name)
7420         (ARM_FLAG_APCS_FRAME, ARM_FLAG_POKE, ARM_FLAG_FPE, ARM_FLAG_APCS_STACK)
7421         (ARM_FLAG_APCS_FLOAT, ARM_FLAG_APCS_REENT, ARM_FLAG_BIG_END)
7422         (ARM_FLAG_INTERWORK, ARM_FLAG_LITTLE_WORDS, ARM_FLAG_NO_SCHED_PRO)
7423         (ARM_FLAG_ABORT_NORETURN, ARM_FLAG_SINGLE_PIC_BASE)
7424         (ARM_FLAG_LONG_CALLS, ARM_FLAG_THUMB, THUMB_FLAG_BACKTRACE)
7425         (THUMB_FLAG_LEAF_BACKTRACE, THUMB_FLAG_CALLEE_SUPER_INTERWORKING)
7426         (THUMB_FLAG_CALLER_SUPER_INTERWORKING, CIRRUS_FIX_INVALID_INSNS)
7427         (TARGET_APCS_FRAME, TARGET_POKE_FUNCTION_NAME, TARGET_FPE)
7428         (TARGET_APCS_STACK, TARGET_APCS_FLOAT, TARGET_APCS_REENT)
7429         (TARGET_BIG_END, TARGET_INTERWORK, TARGET_LITTLE_WORDS)
7430         (TARGET_NO_SCHED_PRO, TARGET_ABORT_NORETURN, TARGET_SINGLE_PIC_BASE)
7431         (TARGET_LONG_CALLS, TARGET_THUMB, TARGET_CALLER_INTERWORKING)
7432         (TARGET_CIRRUS_FIX_INVALID_INSNS, SUBTARGET_SWITCHES, TARGET_SWITCHES)
7433         (TARGET_OPTIONS, arm_cpu_select, arm_select,  structure_size_string)
7434         (arm_pic_register_string): Delete.
7435         (TARGET_BACKTRACE): Redefine using TARGET_TPCS_LEAF_FRAME and
7436         TARGET_TPCS_FRAME.
7437         (TARGET_DEFAULT, CONDITIONAL_REGISTER_USAGE): Update mask names.
7438         * config/arm/coff.h (TARGET_DEFAULT): Likewise.
7439         * config/arm/elf.h (TARGET_DEFAULT): Likewise.
7440         * config/arm/netbsd-elf.h (TARGET_DEFAULT): Likewise.
7441         * config/arm/netbsd.h (TARGET_DEFAULT): Likewise.
7442         * config/arm/semi.h (TARGET_DEFAULT): Likewise.
7443         * config/arm/uclinux-elf.h (TARGET_DEFAULT): Likewise.
7444         * config/arm/wince-pe.h (TARGET_DEFAULT): Likewise.
7445         * config/arm/pe.h (TARGET_DEFAULT): Likewise.
7446         (TARGET_FLAG_NOP_FUN, TARGET_NOP_FUN_DLLIMPORT): Delete.
7447         (SUBTARGET_SWITCHES): Delete.
7448         * config/arm/arm.c (target_float_switch): Delete.
7449         (arm_cpu_select): Moved from config/arm/arm.h.
7450         (target_fpu_name, target_fpe_name, target_float_abi_name)
7451         (target_abi_name, structure_size_string, arm_pic_register_string)
7452         (arm_select): Make static.
7453         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
7454         (arm_handle_option): New function.
7455         (arm_override_options): Update target_flags checks for new mask names.
7456         Remove target_float_switch code.
7457         (arm_expand_prologue, thumb_expand_prologue): Check
7458         !TARGET_SCHED_PROLOG instead of TARGET_NO_SCHED_PRO.
7459         * config/arm/arm.opt, config/arm/pe.opt: New files.
7460
7461 2005-05-05  Nathan Sidwell  <nathan@codesourcery.com>
7462
7463         * config/arc/arc.c (get_arc_condition_code): Use gcc_assert &
7464         gcc_unreachable as appropriate.
7465         (arc_double_limm_p, arc_setup_incoming_varargs,
7466         arc_compute_function_type, arc_output_function_prologue,
7467         arc_output_function_epilogue, arc_eligible_for_epilogue_delay,
7468         output_shift, arc_print_operand, arc_print_operand_address,
7469         arc_final_prescan_insn): Likewise.
7470         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
7471
7472 2005-05-04  Geoffrey Keating  <geoffk@apple.com>
7473
7474         * config/rs6000/rs6000.md (P): Use TARGET_*BIT rather than
7475         comparing Pmode.
7476         (SDI): New.
7477         (cmp): Delete.
7478         (wd): New.
7479         (add<mode>3, add<mode>3_internal1, add<mode>3_internal2,
7480         add<mode>3_internal3, one_cmpl<mode>2, sub<mode>3, neg<mode>2,
7481         clz<mode>2, ctz<mode>2, ffs<mode>2): New.
7482         (addsi3, addsi3_internal1, addsi3_internal2, addsi3_internal3,
7483         (one_cmplsi2, subsi3, negsi2, clzsi2, ctzsi2, ffssi2): Remove.
7484         (adddi3, adddi3_internal1, adddi3_internal2, adddi3_internal3,
7485         (one_cmpldi2, subdi3, negdi2, clzdi2, ctzdi2, ffsdi2): Remove.
7486         (sync_compare_and_swap<mode>): Use <wd> rather than <cmp>.
7487
7488 2005-05-05  Paul Brook  <paul@codesourcery.com>
7489
7490         * Makefile.in: Replace dependencies on basic-block.h, c-pragma.h,
7491         cfgloop.h, diagnostic.h, insn-attr.h, langhooks-def.h, params.h,
7492         regs.h, system.h, tree-dump.h, tree-gimple.h, tree-scalar-evolution.h
7493         and tree-data-ref.h with *_H variables.
7494
7495 2005-05-05  Kelley Cook  <kcook@gcc.gnu.org>
7496
7497         * config/m32r/xm-m32r.h, config/m32r/xm-linux.h: Delete files.
7498
7499 2005-05-05  Kelley Cook  <kcook@gcc.gnu.org>
7500
7501         * system.h: Poison BYTEORDER and HOST_WORDS_BIG_ENDIAN.
7502
7503 2005-05-04  Gerald Pfeifer  <gerald@pfeifer.com>
7504
7505         * doc/contrib.texi (Contributors): Add Mostafa Hagog and Ayal Zaks.
7506
7507 2005-05-04 Fariborz Jahanian <fjahanian@apple.com>
7508
7509         * config/rs6000/rs6000.c (rs6000_emit_prologue): Emit
7510         setting of vrsave register for current function after
7511         call to save_world is emitted.
7512
7513 2005-05-05  Hans-Peter Nilsson  <hp@bitrange.com>
7514
7515         * config/mmix/predicates.md: New file.
7516         * config/mmix/mmix.c (mmix_symbolic_or_address_operand)
7517         (mmix_reg_or_constant_operand, mmix_reg_cc_operand)
7518         (mmix_foldable_comparison_operator, mmix_comparison_operator)
7519         (mmix_reg_or_0_operand, mmix_reg_or_8bit_operand): Remove.
7520         * config/mmix/mmix.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
7521         Don't define.
7522         * config/mmix/mmix.md: Include predicates.md.
7523         ("call", "call_value"): Force address to register if it isn't a
7524         mmix_symbolic_or_address_operand.
7525
7526 2005-05-04  Andrew MacLeod  <amacleod@redhat.com>
7527
7528         * tree-flow-inline.h (op_iter_init_use, op_iter_init_def): Assert that
7529         the flags are of appropriate types.
7530         (num_ssa_operands): Generalize using the generic interface.
7531         * tree-ssa-dce.c (remove_dead_stmt): Don't ask for kills on a DEF
7532         iterator.
7533
7534 2005-05-04  Richard Sandiford  <rsandifo@redhat.com>
7535
7536         * protoize.c (version_flag, quiet_flag, nochange_flag, nosave_flag)
7537         (keep_flag, local_flag, global_flag, cplusplus_flag): Make extern.
7538
7539 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
7540
7541         * tree-outof-ssa.c (edge_leader, stmt_list,
7542         analyze_edges_for_bb): Use VEC instead of VARRAY.
7543         (init_analayze_edges_for_bb, fini_analayze_edges_for_bb): New.
7544         (perform_edge_inserts): Call init_analayze_edges_for_bb and
7545         fini_analayze_edges_for_bb.
7546
7547 2005-05-04  James E Wilson  <wilson@specifixinc.com>
7548
7549         PR driver/21112
7550         * gcc.c (process_command): In the second argv scan loop, ignore
7551         Xassembler and Xpreprocessor, along with their argument.
7552
7553 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
7554
7555         * tree-flow-inline.h, tree-ssa-operands.c,
7556         tree-ssa-operands.h, tree-ssa-opfinalize.h:
7557         Likewise. tree-vn.c: Fix comment typos.
7558         * doc/passes.texi, doc/tree-ssa.texi: Fix typos.
7559
7560 2005-05-04  Paolo Bonzini  <bonzini@gnu.org>
7561
7562         * doc/tm.texi (Target Hooks): Document
7563         TARGET_RESOLVE_OVERLOADED_BUILTIN.
7564
7565 2005-05-04  Paul Brook  <paul@codesourcery.com>
7566
7567         * Makefile.in: Change dependencies on target.h to $(TARGET_H).
7568
7569 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
7570
7571         * dwarf2out.c (incomplete_types, retry_incomplete_types,
7572         gen_struct_or_union_type_die, dwarf2out_init): Use VEC instead
7573         of VARRAY.
7574
7575         * loop-unroll.c (var_to_expand, analyze_insn_to_expand_var,
7576         get_expansion, expand_var_during_unrolling,
7577         insert_var_expansion_initialization,
7578         combine_var_copies_in_loop_exit, release_var_copies): Use VEC
7579         instead of VARRAY.
7580
7581         * tree-ssa-loop-ivopts.c (rewrite_address_base): Don't call
7582         update_stmt.
7583
7584 2004-05-03  Andrew Pinski  <pinskia@physics.uc.edu>
7585
7586         PR middle-end/15618
7587         * fold-const.c (fold_widened_comparison): Treat BOOLEAN_TYPE
7588         the same as INTEGER_TYPE.
7589         (fold_binary): Fold "bool_var != 0" to bool_var.
7590         Fold "bool_var == 1" to bool_var.
7591
7592 2004-05-03  Richard Henderson  <rth@redhat.com>
7593
7594         PR middle-end/21318
7595         * function.c (instantiate_virtual_regs_in_insn): Use the mode
7596         from recog_data instead of insn_data.
7597
7598 2005-05-03  DJ Delorie  <dj@redhat.com>
7599
7600         * common.opt (fdiagnostics-show-option): No variable is needed.
7601         * diagnostic.h (diagnostic_context): Add show_option_requested flag.
7602         * diagnostic.c (diagnostic_initialize): Initialize show_option_requested.
7603         (diagnostic_report_diagnostic): Test for enabled diagnostics here.
7604         Save and restore original message format.  Use flag in context
7605         instead of global.
7606         (warning): Don't test for enabled warnings here.
7607         * opts.c (common_handle_option): Handle -fdiagnostics-show-option
7608         here.
7609
7610 2005-05-04  Kelley Cook  <kcook@gcc.gnu.org>
7611
7612         * config/m32r/xm-m32r.h: Don't define HOST_WORDS_BIG_ENDIAN.
7613         * config/m32r/xm-linux.h: Don't undefine HOST_WORDS_BIG_ENDIAN.
7614         * mips-tfile.c: Use WORDS_BIG_ENDIAN instead of HOST_WORDS_BIG_ENDIAN.
7615         * aclocal.m4: Don't include accross.m4.
7616         * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
7617         Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
7618         * configure, config.in: Regenerate.
7619
7620 2005-05-04  Jakub Jelinek  <jakub@redhat.com>
7621
7622         PR middle-end/21265
7623         * expr.h (enum block_op_methods): Add BLOCK_OP_TAILCALL.
7624         (clear_storage): Add argument.
7625         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall):
7626         Add tailcall argument, set CALL_EXPR_TAILCALL of the CALL_EXPR to
7627         tailcall.
7628         (emit_block_move): Handle BLOCK_OP_TAILCALL method.
7629         (clear_storage): Add method argument, handle BLOCK_OP_TAILCALL.
7630         (store_expr, store_constructor): Adjust callers.
7631         * builtins.c (expand_builtin_memcpy): Pass BLOCK_OP_TAILCALL
7632         to emit_block_move if CALL_EXPR_TAILCALL (exp).
7633         (expand_builtin_memmove): Add ORIG_EXP argument, copy
7634         CALL_EXPR_TAILCALL from ORIG_EXP to the new CALL_EXPR.
7635         (expand_builtin_bcopy): Replace ARGLIST and TYPE arguments
7636         with EXP.  Pass EXP to expand_builtin_memmove.
7637         (expand_builtin_memset): Add ORIG_EXP argument, pass
7638         BLOCK_OP_TAILCALL to clear_storage if CALL_EXPR_TAILCALL (orig_exp).
7639         (expand_builtin_bzero): Replace ARGLIST argument with EXP.
7640         Pass EXP to expand_builtin_memset.
7641         (expand_builtin_strcmp): Copy CALL_EXPR_TAILCALL from EXP to
7642         the new CALL_EXPR.
7643         (expand_builtin_strncmp): Likewise.
7644         (expand_builtin_printf): Replace ARGLIST argument with EXP.
7645         Copy CALL_EXPR_TAILCALL from EXP to the new CALL_EXPR.
7646         (expand_builtin_fprintf): Likewise.
7647         (expand_builtin): Adjust calls to
7648         expand_builtin_{memmove,bcopy,memset,bzero,{,f}printf}.
7649
7650         * config/i386/i386.c (ix86_expand_vector_set): Fix setting 3rd and 4th
7651         item in V4SF mode.
7652
7653         PR rtl-optimization/21239
7654         * combine.c (combine_simplify_rtx) <case VEC_SELECT>: Fix a typo.
7655
7656 2005-05-03  Kazu Hirata  <kazu@cs.umass.edu>
7657
7658         * tree-flow.h (tree_ann_common_d): Move aux to ...
7659         (stmt_ann_d): ... here.
7660         * tree-ssa-loop-im.c (LIM_DATA, determine_invariantness_stmt,
7661         move_computations_stmt, schedule_sm): Update references to
7662         aux.
7663         * tree-vectorizer.h (set_stmt_info, vinfo_for_stmt): Likewise.
7664
7665         * tree-cfg.c (remove_bb): Remove a redundant call to
7666         set_bb_for_stmt.
7667         * tree-if-conv.c (replace_phi_with_cond_modify_expr):
7668         Likewise.
7669
7670 2005-05-03  Richard Henderson  <rth@redhat.com>
7671
7672         * config/rs6000/rs6000.c: Remove conflict markers.
7673
7674         * cfg.c (dump_flow_info): Use max_reg_num, not max_regno.
7675
7676 2005-05-03  James E Wilson  <wilson@specifixinc.com>
7677
7678         * dwarf2out.c (lookup_filename): Call maybe_emit_file.
7679
7680 2005-05-03  DJ Delorie  <dj@redhat.com>
7681
7682         * c-decl.c (store_parm_decls_oldstyle): Let diagnostic machinery
7683         decide if the warning will be printed.
7684         * calls.c (expand_call): Likewise.
7685         * function.c (init-function_start): Likewise.
7686
7687         * common.opt (-fdiagnostics-show-option): New.
7688         * opts.c (option_enabled): Accept the option index instead of a
7689         pointer to the option descriptor.
7690         * opts.h (option_enabled): Likewise.
7691         * toplev.c (print_switch_values): Pass option index, not option
7692         descriptor.
7693         * diagnostic.h (diagnostic_info): Add option_index.
7694         * diagnostic.c: Include opts.h.
7695         (diagnostic_set_info): Initialize option_index.
7696         (diagnostic_report_diagnostic): Amend option name if appropriate.
7697         (warning): Check to see if the specified warning is enabled.
7698         Store option index.
7699         * doc/invoke.texi (-fdiagnostics-show-options): Document.
7700
7701 2005-05-03  Richard Henderson  <rth@redhat.com>
7702
7703         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix ALL_REGS and
7704         SPEC_OR_GEN_REGS definitions.
7705
7706 2005-05-03  Alexandre Oliva  <aoliva@redhat.com>
7707
7708         PR target/16888
7709         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Clear reg names
7710         for unavailable registers.
7711
7712 2005-05-03  Kazu Hirata  <kazu@cs.umass.edu>
7713
7714         * tree-cfg.c (tree_forwarder_block_p): Fix a typo.
7715
7716         * cfglayout.c (block_locators_blocks,
7717         insn_locators_initialize, insn_scope): Use VEC instead of
7718         VARRAY.
7719
7720         * tree-mudflap.c (deferred_static_decls, mudflap_enqueue_decl,
7721         mudflap_finish_file, mudflap_finish_file): Use VEC instead of
7722         VARRAY.
7723
7724 2005-05-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
7725
7726         * config/sparc/predicates.md (const_compl_high_operand): New.
7727         * config/sparc/sparc.c (sparc_emit_set_safe_HIGH64): Rename into
7728         gen_safe_HIGH64.
7729         (sparc_emit_set_const64_quick1): Adjust for above change.
7730         (sparc_emit_set_const64_quick2): Likewise.
7731         (sparc_emit_set_const64_longway): Likewise.
7732         (sparc_emit_set_const64): Likewise.
7733         * config/sparc/sparc.md (movhi_const64_special, movsi_const64_special,
7734         movdi_const64_special): Delete.
7735         (logical constant splitters): Use const_compl_high_operand.
7736
7737 2005-05-03  Richard Guenther  <rguenth@gcc.gnu.org>
7738
7739         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Use STRIP_TYPE_NOPS
7740         rather than STRIP_NOPS.
7741
7742 2005-05-03  Jakub Jelinek  <jakub@redhat.com>
7743
7744         PR rtl-optimization/21330
7745         * loop-unswitch.c (may_unswitch_on): Set *cinsn only when
7746         returning non-NULL.
7747         (unswitch_single_loop): Clear cinsn when retrying.
7748
7749         PR target/21297
7750         * config/i386/i386.c (legitimize_address): When canonicalizing
7751         ASHIFT into MULT, multiply by 1 << shift_count instead of
7752         1 << log2 (shift_count).
7753
7754 2005-05-03  Andrew MacLeod  <amacleod@redhat.com>
7755
7756         * lambda-code.c (gcc_loop_to_lambda_loop,
7757         lambda_loopnest_to_gcc_loopnest, phi_loop_edge_uses_def,
7758         stmt_is_bumper_for_loop, perfect_nest_p, replace_uses_of_x_with_y): Use
7759         generic operand interface.
7760         * tree-data-ref.c (find_data_references_in_loop): Use generic interface.
7761         * tree-dfa.c (collect_dfa_stats_r, mark_new_vars_to_rename): Use
7762         generic operand interface.
7763         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
7764         link_imm_use, link_imm_use_stmt, relink_imm_use, relink_imm_use_stmt,
7765         next_safe_imm_use, has_zero_uses, has_single_use, single_imm_use,
7766         num_imm_uses): Use ssa_use_operand_t.
7767         (get_def_ops, get_use_ops, get_v_may_def_ops, get_vuse_ops,
7768         get_v_must_def_ops): Delete.
7769         (get_def_from_ptr, get_phi_result_ptr): Get def directly now.
7770         (get_use_op_ptr, get_def_op_ptr, get_v_may_def_result_ptr,
7771         get_v_may_def_op_ptr, get_vuse_op_ptr, get_v_must_def_result_ptr,
7772         get_v_must_def_kill_ptr): Delete.
7773         (delink_stmt_imm_use): Move and use new operand interface.
7774         (op_iter_next_use, op_iter_next_def, op_iter_next_tree, op_iter_init,
7775         op_iter_next_tree): Use new operand implementation.
7776         (clear_and_done_ssa_iter): New.  Initialize a blank operand iterator.
7777         (op_iter_init_use, op_iter_init_def, op_iter_init_tree): Add iterator
7778         type check.
7779         (op_iter_next_mustdef, op_iter_next_maydef,
7780         op_iter_next_must_and_may_def): Delete. Replace with...
7781         (op_iter_next_maymustdef): New.  Combine must and may next operations.
7782         (op_iter_init_maydef, op_iter_init_mustdef,
7783         op_iter_init_must_and_may_def): Use new interface.
7784         (single_ssa_tree_operand ): New.  Process single operands only as trees.
7785         (single_ssa_use_operand): New.  Process single operands only as uses.
7786         (single_ssa_def_operand): New.  Process single operands only as defs.
7787         (zero_ssa_operands): New.  Return TRUE if there are zero operands of the
7788         specified types.
7789         (num_ssa_operands): New.  Count the number of specified operands.
7790         (compare_ssa_operands_equal): New.  Compare two statements' operands.
7791         (single_phi_def): New.  Return true if PHI has one def of the specified
7792         operand type.
7793         (op_iter_init_phiuse): New.  Initialize the iterator for PHI arguments.
7794         (op_iter_init_phidef): New.  Initialize the iterator for the PHI def.
7795         * tree-flow.h (struct immediate_use_iterator_d): Use ssa_use_operand_t.
7796         (struct stmt_ann_d): Operands field no longer require GTY().
7797         (vn_compute, vn_lookup_or_add, vn_add, vn_lookup): Change prototype.
7798         * tree-into-ssa.c (mark_def_sites): Use SSA_OP_VMUSTKILL.
7799         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
7800         dump_replaceable_exprs, rewrite_trees): Use generic interface.
7801         * tree-phinodes.c (make_phi_node, release_phi_node, resize_phi_node):
7802         Use use_operand_p instead of ssa_imm_use_t *.
7803         * tree-pretty-print.c (dump_vops): check if operands are active before
7804         dumping virtual operands.
7805         * tree-sra.c (sra_walk_function): Use ZERO_SSA_OPERANDS.
7806         * tree-ssa-ccp.c (likely_value): Use ZERO_SSA_OPERANDS.
7807         (ccp_fold): Use new interface.
7808         (ccp_visit_stmt): Remove unused variables and code.
7809         (convert_to_gimple_builtin): Insert statements before calling
7810         mark_new_vars_to_rename.
7811         * tree-ssa-copy.c (stmt_may_generate_copy): Use ZERO_SSA_OPERANDS.
7812         (copy_prop_visit_cond_stmt): Use generic interface.
7813         * tree-ssa-dom.c (struct expr_hash_elt): Use stmt pointer, not the
7814         annotation in table.
7815         (thread_across_edge): Use generic interface.
7816         (initialize_hash_element): Initialzie with stmt, not annotation.
7817         (eliminate_redundant_computations): Use generic interface.
7818         (record_equivalences_from_stmt): Pass stmt, not annotation.
7819         (avail_expr_hash, real_avail_expr_hash, avail_expr_eq): Use generic
7820         interface.
7821         * tree-ssa-dse.c (dse_optimize_stmt): Use ZERO_SSA_OPERANDS.
7822         * tree-ssa-loop-ivopts.c (find_invariants_stmt,
7823         find_interesting_uses_stmt, protect_loop_closed_ssa_form_use): Use
7824         generic operand interface.
7825         * tree-ssa-loop-niter.c (chain_of_csts_start, get_val_for): Use generic
7826         interface.
7827         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Use Generic operand
7828         Interface.
7829         * tree-ssa-operands.c (struct opbuild_list_d): New.  Operand build type.
7830         (build_defs, build_uses, build_v_may_defs, build_vuses,
7831         build_v_must_defs): Change type to struct opbuild_list_d.
7832         (ops_active): New.  Operands active boolean.
7833         (operand_memory, operand_memory_index): New.  Operand memory managers.
7834         (allocate_def_optype, allocate_use_optype, allocate_v_may_def_optype,
7835         allocate_vuse_optype, allocate_v_must_def_optype): Delete.
7836         (free_uses, free_defs, free_vuses, free_v_may_defs, free_v_must_defs):
7837         Change from functions to static variable list heads.
7838         (opbuild_initialize_virtual): New.  Initialize a virtual build list.
7839         (opbuild_initialize_real): New.  Initialize a virtual build list.
7840         (opbuild_free): New.  Free a build list.
7841         (opbuild_num_elems): New.  Number of items in a list.
7842         (opbuild_append_real): New.  Add a real (tree *) operand.
7843         (opbuild_append_virtual): New.  Add and sort a virtual (tree) operand.
7844         (opbuild_first): New.  Return first element index in a list.
7845         (opbuild_next): New.  Return next element in a list.
7846         (opbuild_elem_real): New.  Return real element.
7847         (opbuild_elem_virtual): New.  Return virtual element.
7848         (opbuild_elem_uid): New.  Return UID of virtual element.
7849         (opbuild_clear): New.  Reset an operand list.
7850         (opbuild_remove_elem): New.  Remove an element form a list.
7851         (ssa_operands_active): New.  Return true if operand cache is active.
7852         (init_ssa_operands, fini_ssa_operands): Initialize new implementation.
7853         (ssa_operand_alloc): New.  Allocate memory from an operand chunk.
7854         (correct_use_link): Use use_operand_p.
7855         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_defs,
7856         finalize_ssa_vuses, finalize_ssa_v_must_defs): New implmentation.
7857         (cleanup_v_may_defs): Use new implmentation.
7858         (finalize_ssa_stmt_operands, start_ssa_stmt_operands): New
7859         implementation.
7860         (append_def, append_use, append_v_may_def, append_vuse,
7861         append_v_must_def): Call opbuild_append routine instead of using varray.
7862         (build_ssa_operands): Simplify to simply use stmt, don't maintain a
7863         global parse_old_ops variable.
7864         (free_ssa_operands): New implementation.
7865         (update_stmt_operands): Move.  Change argument to build_ssa_operands.
7866         (copy_virtual_operands): Move. New generic implementation.
7867         (create_ssa_artficial_load_stmt): Move. New implementation.
7868         (swap_tree_operands): Update for new implementation.
7869         (get_expr_operands): Add stmt parameter to calls to swap_tree_operands.
7870         (add_call_clobber_ops, add_call_read_ops): Initialize opbuild list
7871         rather than a varray.
7872         (verify_imm_links): Use use_operand_p.
7873         (dump_immediate_uses_for): If the immediate use variable is a virtual
7874         variable, show the virtual ops in the stmt.
7875         * tree-ssa-operands.h (def_operand_p): No longer a structure.
7876         (NULL_DEF_OPERAND_P): Now a #define.
7877         (def_optype_d, use_optype_d, v_def_use_operand_type, v_may_def_optype_d,
7878         vuse_operand_type, vuse_optype_d, v_must_def_optype_d): Delete.
7879         (def_optype_d, use_optype_d, maydef_optype_d, vuse_optype_d,
7880         mustdef_optype_d): New.  Use Linked list representation.
7881         (SSA_OPERAND_MEMORY_SIZE): New.  Size of operand memory chunk.
7882         (struct ssa_operand_memory_d): New.  Allocated Chunk node.
7883         (struct stmt_operands_d): Change to new pointers that are not GTY.
7884         (STMT_USE_OPS, NUM_USES, SET_USE_OP, STMT_DEF_OPS, NUM_DEFS, SET_DEF_OP,
7885         STMT_V_MAY_DEF_OPS, NUM_V_MAY_DEFS, SET_V_MAY_DEF_RESULT,
7886         SET_V_MAY_DEF_OP, STMT_VUSE_OPS, NUM_VUSES, SET_VUSE_OP,
7887         STMT_V_MUST_DEF_OPS, NUM_V_MUST_DEFS, SET_V_MUST_DEF_RESULT,
7888         SET_V_MUST_DEF_KILL): Delete.
7889         (V_MAY_DEF_OPS, V_MAY_DEF_RESULT_PTR, V_MAY_DEF_RESULT,
7890         V_MAY_DEF_OP_PTR, V_MAY_DEF_OP): Rename to MAYDEF_*.
7891         (V_MUST_DEF_OPS, V_MUST_DEF_RESULT_PTR, V_MUST_DEF_RESULT,
7892         V_MUST_DEF_KILL_PTR, V_MUST_DEF_KILL): Rename to MUSTDEF_*.
7893         (enum ssa_op_iter_type): Operand iterator typechecking values.
7894         (struct ssa_operand_iterator_d): Use linked lists of operands.
7895         (SSA_OP_VMUSTDEFKILL): Rename to SSA_OP_VMUSTKILL.
7896         (FOR_EACH_SSA_MAYDEF_OPERAND, FOR_EACH_SSA_MUSTDEF_OPERAND,
7897         FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): Use op_iter_next_maymustdef.
7898         (FOR_EACH_PHI_ARG): New.  Iterate over PHI arguments.
7899         (FOR_EACH_PHI_OR_STMT_USE): New.  Iterate over PHI or stmt uses.
7900         (FOR_EACH_PHI_OR_STMT_DEF): New.  Iterate over PHI or stmt defs.
7901         (SINGLE_SSA_TREE_OPERAND, SINGLE_SSA_USE_OPERAND,
7902         SINGLE_SSA_DEF_OPERAND, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): New.
7903         * tree-ssa-opfinalize.h: New.  Function templates for expansion.
7904         (FINALIZE_ALLOC): Expands into alloc_def, alloc_use, alloc_maydef,
7905         alloc_vuse, and alloc_mustdef.
7906         (FINALIZE_FUNC): Expands into finalize_ssa_def_ops,
7907         finalize_ssa_use_ops, finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
7908         and finalize_ssa_v_must_def_ops.
7909         * tree-ssa-pre.c (add_to_sets): Pass tree to vn_add.
7910         (create_value_expr_from): Use stmt not vuse_optype as a parameter. Pass
7911         stmt around.
7912         (compute_avail): Use generic iterator interface.
7913         * tree-ssa-propagate.c (first_vdef): Use generic operand interface.
7914         (stmt_makes_single_load, stmt_makes_single_store): Use
7915         ZERO_SSA_OPERANDS.
7916         * tree-ssa-sink.c (is_hidden_global_store): Use ZERO_SSA_OPERANDS.
7917         (statement_sink_location): Use generic interface.
7918         * tree-ssa.c (verify_ssa):  Use %p in fprintf.  Use generic interface.
7919         (delete_tree_ssa): Don't call release_defs.  Call release_ssa_name and
7920         reset the immediate use link nodes.
7921         (stmt_references_memory_p): Use ZERO_SSA_OPERANDS.
7922         * tree-ssanames.c (make_ssa_name): Use use_operand_p.
7923         * tree-tailcall.c (find_tail_calls): Use ZERO_SSA_OPERANDS.
7924         (eliminate_tail_call): Use generic operand interface.
7925         * tree-vect-analyze.c (vect_analyze_data_refs): Use ZERO_SSA_OPERANDS.
7926         (vect_mark_relevant, vect_mark_stmts_to_be_vectorized): Use generic
7927         interface.
7928         * tree-vect-transform.c (update_vuses_to_preheader): Use generic
7929         interface.
7930         * tree-vectorizer.c (rename_variables_in_bb): Use generic interface.
7931         * tree-vn.c (struct val_expr_pair_d): Cache statment pointer instead of
7932         vuse_optype.
7933         (vn_compute, val_expr_pair_hash, vn_add, vn_lookup, vn_lookup_or_add):
7934         Use statement pointer instead of vuse_optype.  Use generic interface.
7935         * tree-vrp.c (maybe_add_assert_expr): Use generic interface.
7936         (stmt_interesting_for_vrp, vrp_visit_stmt): Use ZERO_SSA_OPERANDS.
7937         * tree.h (struct ssa_imm_use_d): Renamed to ssa_use_operand_d.
7938         (tree_ssa_name, phi_arg_d): Use ssa_use_operand_d.
7939         * doc/tree-ssa.texi: Update documentation for operand interface.
7940
7941 2005-05-03  Nathan Sidwell  <nathan@codesourcery.com>
7942
7943         * config/darwin.c (machopic_define_symbol): Use gcc_assert or
7944         gcc_unreachable as appropriate.
7945         (machopic_function_base_name, machopic_indirect_data_reference,
7946         machopic_legitimize_pic_address, darwin_non_lazy_pcrel): Likewise.
7947         * config/host-darwin.c (darwin_gt_pch_use_address): Likewise
7948         * config/rs6000/altivec.md (*mov<mode>_internal,
7949         build_vector_mask_for_load): Likewise.
7950         * config/rs6000/darwin.md (movdf_low_si, movdf_low_di,
7951         *call_nonlocal_darwin64, *call_value_nonlocal_darwin64,
7952         *sibcall_symbolic_64, *sibcall_value_symbolic_64): Likewise.
7953         * config/rs6000/predicates.md (easy_fp_constant,
7954         logical_operand): Likewise.
7955         * config/rs6000/rs6000.c (spe_expand_predicate_builtin,
7956         compute_save_world_info, rs6000_emit_prologue,
7957         rs6000_output_mi_thunk): Reword comments to avoid 'abort'.
7958         * config/rs6000/host-darwin.c (segv_handler): Use fancy_abort
7959         directly.
7960
7961 2005-05-03  Uros Bizjak  <uros@kss-loka.si>
7962
7963         PR middle-end/21282
7964         * convert.c (convert_to_integer): Convert ceil and floor in
7965         c99 mode only.
7966
7967 2005-04-29  Geoffrey Keating  <geoffk@apple.com>
7968
7969         PR target/20813
7970         * config/rs6000/rs6000.md (floatsidf2_internal): Merge to create
7971         define_insn_and_split.  Split only when memory operand is
7972         offsettable.  Use adjust_address rather than plus_constant.
7973         (floatunssidf2_internal): Likewise.
7974         (fix_truncdfsi2_internal): Split only when memory operand is
7975         offsettable.  Use adjust_address rather than plus_constant.
7976         (fix_trunctfsi2_internal): Likewise.
7977         (floatsidf2_internal): Likewise.
7978
7979 2005-05-02  Diego Novillo  <dnovillo@redhat.com>
7980
7981         * tree-vrp.c (set_value_range_to_nonnull): Declare inline.
7982         (set_value_range_to_null): Likewise.
7983         (set_value_range_to_varying): New function.  Use it in all
7984         call sites that used to call set_value_range (vr, VR_VARYING, ...).
7985         (extract_range_from_assert): If the integral type has a
7986         super-type, and LIMIT is not within MIN and MAX values of that
7987         type, set the resulting range to VR_VARYING.
7988
7989 2005-05-02  Hans-Peter Nilsson  <hp@bitrange.com>
7990
7991         * config/mmix/mmix.opt: New file.
7992         * config/mmix/mmix.h: Move options-related comments to mmix.opt.
7993         (mmix_cc1_ignored_option): Don't declare.
7994         (TARGET_OPTIONS, TARGET_MASK_LIBFUNCS, TARGET_MASK_ABI_GNU)
7995         (TARGET_MASK_FCMP_EPSILON, TARGET_MASK_ZERO_EXTEND)
7996         (TARGET_MASK_KNUTH_DIVISION, TARGET_MASK_TOPLEVEL_SYMBOLS)
7997         (TARGET_MASK_BRANCH_PREDICT, TARGET_MASK_USE_RETURN_INSN)
7998         (TARGET_MASK_BASE_ADDRESSES, TARGET_LIBFUNC, TARGET_ABI_GNU,
7999         (TARGET_FCMP_EPSILON, TARGET_ZERO_EXTEND, TARGET_KNUTH_DIVISION)
8000         (TARGET_TOPLEVEL_SYMBOLS, TARGET_BRANCH_PREDICT)
8001         (TARGET_BASE_ADDRESSES, TARGET_USE_RETURN_INSN, TARGET_SWITCHES):
8002         Don't define.
8003         (TARGET_DEFAULT): Change TARGET_MASK_... to MASK_...
8004         * config/mmix/mmix.c (mmix_cc1_ignored_option): Remove.
8005         (TARGET_DEFAULT_TARGET_FLAGS): Override default.
8006
8007 2005-05-02  Joseph S. Myers  <joseph@codesourcery.com>
8008
8009         PR c/15698
8010         * c-tree.h (C_DECL_BUILTIN_PROTOTYPE): New.
8011         * c-decl.c (current_function_prototype_built_in,
8012         current_function_prototype_arg_types): New.
8013         (merge_decls): Keep source location of prototype followed by
8014         nonprototype declaration.  Update C_DECL_BUILTIN_PROTOTYPE.
8015         (builtin_function): Set C_DECL_BUILTIN_PROTOTYPE.
8016         (start_function): Always set current_function_prototype_locus,
8017         current_function_prototype_built_in and
8018         current_function_prototype_arg_types.  Check for external
8019         prototype whether or not visible for external function and set
8020         current_function_prototype_arg_types accordingly.
8021         (store_parm_decls_oldstyle): Use
8022         current_function_prototype_arg_types for checking old-style
8023         definition against prototype.  Give warnings only if
8024         current_function_prototype_built_in).
8025
8026 2005-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
8027
8028         * ggc.h (ggc_alloc_zone_pass_stat): New macro.
8029         (ggc_alloc_zone_stat): Don't define.
8030         * ggc-zone.c (ggc_alloc_typed_stat, ggc_alloc_stat): Use
8031         ggc_alloc_zone_pass_stat.
8032         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Likewise.
8033         * tree.c (make_node_stat, copy_node_stat, make_tree_binfo_stat)
8034         (make_tree_vec_stat, tree_cons_stat, build1_stat): Likewise.
8035
8036 2005-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
8037
8038         * calls.c (expand_call): Handle current_function_pretend_args_size
8039         when checking for sibcalls.
8040
8041 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
8042
8043         PR tree-optimization/21294
8044         * tree-vrp.c (vrp_expr_computes_nonzero): New.
8045         (extract_range_from_expr): Call vrp_expr_computes_nonzero.
8046
8047 2005-05-02  Janis Johnson  <janis187@us.ibm.com>
8048
8049         PR 19985
8050         * gcov-io.h: Declare gcov external functions hidden.
8051
8052 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
8053
8054         * tree-ssa-uncprop.c (equiv_hash_elt, remove_equivalence,
8055         record_equiv, tree_ssa_uncprop, uncprop_into_successor_phis):
8056         Use VEC instead of VARRAY.
8057         (equiv_free): New.
8058
8059         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Factor
8060         out common code.
8061
8062 2005-05-02  Paolo Bonzini  <bonzini@gnu.org>
8063
8064         * c-common.c (resolve_overloaded_builtin): Forward to target
8065         hook for BUILT_IN_MD built-ins.
8066         * c-typeck.c (finish_call_expr): Call resolve_overloaded_builtin
8067         for all types of built-in.
8068         * target-def.h (TARGET_RESOLVE_OVERLOADED_BUILTIN): New.  Use it
8069         in the definition of the target hooks struct.
8070         * target.h (struct gcc_target): Add resolve_overloaded_builtin.
8071         * config/rs6000/altivec.h: Rewritten.
8072         * config/rs6000/rs6000-c.c (struct altivec_builtin_types,
8073         altivec_resolve_overloaded_builtin, altivec_build_resolved_builtin,
8074         rs6000_builtin_type, rs6000_builtin_type_compatible,
8075         altivec_overloaded_builtins, rs6000_builtin_type,
8076         rs6000_builtin_type_compatible): New.
8077         * config/rs6000/rs6000.c (rs6000_builtin_types, rs6000_builtin_decls):
8078         New.
8079         (def_builtin): Turn into a function.  Check for duplicates and store
8080         the builtin into rs6000_builtin_decls.
8081         (bdesc_3arg, bdesc_dst, bdesc_altivec_preds, bdesc_2arg,
8082         bdesc_1arg): Add overloaded builtins.
8083         (altivec_expand_builtin): Check for unresolved overloaded builtins,
8084         do not support ALTIVEC_COMPILETIME_ERROR.
8085         (rs6000_init_builtins): Add opaque 128-bit vector, and internal
8086         nodes to represent front-end types.
8087         (altivec_init_builtins, rs6000_common_init_builtins): Create builtins
8088         with opaque arguments and/or return values.
8089         * config/rs6000/rs6000.h (enum rs6000_builtins): Remove
8090         ALTIVEC_COMPILETIME_ERROR and add Altivec overloaded builtins.
8091         (rs6000_builtin_type_index): New.
8092         (is_ev64_opaque_type): Rename to...
8093         (rs6000_is_opaque_type): ... this.
8094         (rs6000_cpu_cpp_builtins): Install the resolve_overloaded_builtin
8095         target hook.
8096
8097 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
8098
8099         * function.c (reorder_blocks, reorder_blocks_1): Use VEC
8100         instead of VARRAY.
8101
8102 2005-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8103             Bernd Schmidt  <bernd.schmidt@analog.com>
8104
8105         * config/bfin/bfin.c (emit_link_insn, effective_address_32bit_p,
8106         print_address_operand, print_operand, legitimize_pic_address,
8107         asm_conditional_branch, bfin_gen_compare, output_push_multiple,
8108         output_pop_multiple): Use gcc_assert or gcc_unreachable as
8109         appropriate.
8110         * config/bfin/bfin.md (movsf splitter, beq, bne): Likewise.
8111
8112 2005-05-02  Dorit Naishlos  <dorit@il.ibm.com>
8113
8114         * doc/passes.texi: Document vectorization pass.
8115
8116 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
8117
8118         * tree-scalar-evolution.c (get_exit_conditions_rec,
8119         select_loops_exit_conditions,
8120         number_of_iterations_for_all_loops,
8121         analyze_scalar_evolution_for_all_loop_phi_nodes,
8122         scev_analysis): Use VEC instead of VARRAY.
8123
8124 2005-05-02  Michael Matz  <matz@suse.de>
8125
8126         PR c++/19542
8127         * c-common.c (c_common_nodes_and_builtins): Create global null_node.
8128         (warn_strict_null_sentinel): Define.
8129         (check_function_sentinel): Check for null_node as valid sentinel too.
8130         * c-common.h (c_tree_index): Added CTI_NULL.
8131         (null_node) Define global_tree[CTI_NULL].
8132         (warn_strict_null_sentinel): Declare.
8133         * c-opts.c: (c_common_handle_option): Handle -Wstrict-null-sentinel.
8134         * c.opt: (Wstrict-null-sentinel): New C++ option.
8135         * doc/invoke.texi (C++ Options): Document -Wstrict-null-sentinel.
8136
8137 2005-05-01  Kazu Hirata  <kazu@cs.umass.edu>
8138
8139         * gimplify.c (gimplify_compound_lval): Use VEC instead of
8140         VARRAY.
8141
8142         * global.c (calculate_reg_pav): Use VEC instead of VARRAY.
8143
8144         * dwarf2out.c (decl_scope_table, push_decl_scope,
8145         pop_decl_scope, scope_die_for, dwarf2out_init): Use VEC
8146         instead of VARRAY.
8147
8148 2005-05-01  Mark Mitchell  <mark@codesourcery.com>
8149
8150         PR C++/14391
8151         * c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1
8152         if !flag_weak.
8153         * doc/cpp.texi (__DEPRECATED): Document.
8154         (__EXCEPTIONS): Likewise.
8155         (__GXX_WEAK__): Likewise.
8156
8157         * function.c (INVOKE__main): Do not define.
8158         (expand_main_function): Check HAS_INIT_SECTION when determining
8159         whether or not to call __main.
8160
8161 2005-05-01  Kazu Hirata  <kazu@cs.umass.edu>
8162
8163         * tree-ssa-loop-ivopts.c: Fix a comment typo.
8164
8165 2005-01-05  Paul Brook  <paul@codesourcery.com>
8166
8167         * config/arm/arm.h (ARM_EMIT_TRAMPOLINE_CACHE_CLEAR): Define.
8168         (INITIALIZE_TRAMPOLINE): Use it.
8169         * config/arm/linux-gas.h (INITIALIZE_TRAMPOLINE): Remove.
8170         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Remove.
8171         * config/arm/netbsd-elf.h (INITIALIZE_TRAMPOLINE): Remove.
8172
8173 2005-05-01  Gerald Pfeifer  <gerald@pfeifer.com>
8174
8175         * doc/install.texi (Specific): Omit dots in the @anchors names
8176         for i?86-*-sco3.2v5*, i?86-*-solaris2.10, and sparc-sun-solaris2.7.
8177         Omit underscores for x86_64-*-* and the "all ELF targets" entry.
8178
8179 2005-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
8180
8181         PR tree-optimization/18316
8182         PR tree-optimization/19126
8183         * tree.c (build_int_cst_type): Avoid shift by size of type.
8184         * tree-scalar-evolution.c (simple_iv): Add allow_nonconstant_step
8185         argument.
8186         * tree-scalar-evolution.h (simple_iv): Declaration changed.
8187         * tree-ssa-loop-ivopts.c (struct iv_cand): Add depends_on
8188         field.
8189         (dump_cand): Dump depends_on information.
8190         (determine_biv_step): Add argument to simple_iv call.
8191         (contains_abnormal_ssa_name_p): Handle case expr == NULL.
8192         (find_bivs, find_givs_in_stmt_scev): Do not require step to be a
8193         constant.
8194         (add_candidate_1): Record depends_on for candidates.
8195         (tree_int_cst_sign_bit, constant_multiple_of): New functions.
8196         (get_computation_at, get_computation_cost_at, may_eliminate_iv):
8197         Handle ivs with nonconstant step.
8198         (iv_ca_set_remove_invariants, iv_ca_set_add_invariants): New functions.
8199         (iv_ca_set_no_cp, iv_ca_set_cp): Handle cand->depends_on.
8200         (create_new_iv): Unshare the step before passing it to create_iv.
8201         (free_loop_data): Free cand->depends_on.
8202         (build_addr_strip_iref): New function.
8203         (find_interesting_uses_address): Use build_addr_strip_iref.
8204         (strip_offset_1): Split the recursive part from strip_offset.
8205         Strip constant offset component_refs and array_refs.
8206         (strip_offset): Split the recursive part to strip_offset_1.
8207         (add_address_candidates): Removed.
8208         (add_derived_ivs_candidates): Do not use add_address_candidates.
8209         (add_iv_value_candidates): Add candidates with stripped constant
8210         offset.  Consider all candidates with initial value 0 important.
8211         (struct affine_tree_combination): New.
8212         (aff_combination_const, aff_combination_elt, aff_combination_scale,
8213         aff_combination_add_elt, aff_combination_add,
8214         tree_to_aff_combination, add_elt_to_tree, aff_combination_to_tree,
8215         fold_affine_sum): New functions.
8216         (get_computation_at): Use fold_affine_sum.
8217         * tree-ssa-loop-manip.c (create_iv): Handle ivs with nonconstant step.
8218         * tree-ssa-loop-niter.c (number_of_iterations_exit): Add argument
8219         to simple_iv call.
8220
8221 2005-04-30  Michael Matz  <matz@suse.de>
8222
8223         * config/i386/i386.md (movmemsi): Also active when
8224         TARGET_INLINE_ALL_STRINGOPS.
8225
8226 2005-04-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
8227
8228         PR bootstrap/20633
8229         * config/freebsd-spec.h (FBSD_CPP_SPEC): Add %(cpp_arch).
8230
8231 2005-04-30  Paul Brook  <paul@codesourcery.com>
8232
8233         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Always use .thumb_set in
8234         thumb mode.
8235         * config/arm/ieee754-df.S: Use __INTERWORKING_STUBS__.
8236         * config/arm/ieee754-sf.S: Ditto.
8237         * config/arm/lib1funcs.asm: Define and use __INTERWORKING_STUBS__.
8238         (FUNC_ALIAS): Use .thumb_set for thumb routines.
8239
8240 2005-04-30  Kazu Hirata  <kazu@cs.umass.edu>
8241
8242         * tree-ssanames.c: Fix a comment typo.
8243         * doc/options.texi: Fix a typo.
8244
8245 2005-04-30  Nathan Sidwell  <nathan@codesourcery.com>
8246
8247         * config/h8300/h8300.c (byte_reg): Use gcc_assert and
8248         gcc_unreachable as appropriate.
8249         (split_adds_subs, cond_string, print_operand,
8250         h8300_initial_elimination_offset, h8300_classify_operand,
8251         h8300_unary_length, h8300_short_immediate_length,
8252         h8300_bitfield_length, h8300_binary_length,
8253         h8300_insn_length_from_table, compute_mov_length, output_plussi,
8254         compute_plussi_length, compute_plussi_cc, output_logical_op,
8255         compute_logical_op_length, compute_logical_op_cc,
8256         output_h8sx_shift, get_shift_alg, h8300_shift_needs_scratch_p,
8257         output_a_shift, compute_a_shift_length, compute_a_shift_cc,
8258         output_a_rotate, compute_a_rotate_length, fix_bit_operand,
8259         h8300_regs_ok_for_stm): Likewise.
8260         * config/h8300/h8300.md (*movsi_h8300, *movsf_h8300,
8261         monitor_prologue): Likewise.
8262
8263 2005-04-30  Kazu Hirata  <kazu@cs.umass.edu>
8264
8265         * loop-invariant.c (invariants, create_new_invariant,
8266         get_inv_cost, best_gain_for_invariant,
8267         find_invariants_to_move, move_invariants,
8268         init_inv_motion_data, free_inv_motion_data): Use VEC instead
8269         of VARRAY.
8270
8271 2005-04-29  Richard Henderson  <rth@redhat.com>
8272
8273         * function.c (instantiate_decls): Remove valid_only argument.
8274         (instantiate_decls_1, instantiate_decl): Likewise.
8275         (instantiate_virtual_regs_1): Delete.
8276         (instantiate_virtual_regs_lossage): Delete.
8277         (instantiate_virtual_regs_in_rtx): New.
8278         (safe_insn_predicate): New.
8279         (instantiate_virtual_regs_in_insn): New.
8280         (instantiate_virtual_regs): Update to match all that.  Only run
8281         instantiate_decls once.
8282
8283 2005-04-29  Richard Henderson  <rth@redhat.com>
8284             Daniel Jacobowitz  <dan@codesourcery.com>
8285
8286         * gengtype.c (write_func_for_structure): Split out ...
8287         (output_type_enum): ... new function.  Fix thinko accessing
8288         TYPE_PARAM_STRUCT data.
8289
8290 2005-04-29  Tom Tromey  <tromey@redhat.com>
8291
8292         * tree.c (build_block): Removed unused 'tags' argument.
8293         * tree.h (build_block): Removed argument.
8294
8295 2005-04-29  Michael Matz  <matz@suse.de>
8296
8297         PR rtl-optimization/21144
8298         * postreload.c (reload_cse_move2add): Check for VOIDmode.
8299
8300 2005-04-29  Bob Wilson  <bob.wilson@acm.org>
8301
8302         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Define to disable
8303         flag_reorder_blocks.
8304
8305 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
8306
8307         PR tree-optimization/21030
8308         * tree-vrp.c (adjust_range_with_scev): Do not create invalid
8309         ranges where VR->MAX is smaller than VR->MIN.
8310
8311 2005-04-29  Devang Patel  <dpatel@apple.com>
8312
8313         PR tree-optimization/21272
8314         PR tree-optimization/21266
8315         * tree-if-conv.c (find_phi_replacement_condition): Fix think-o.
8316
8317 2005-04-29  Kazu Hirata  <kazu@cs.umass.edu>
8318
8319         * tree-flow-inline.h: Fix a comment typo.
8320         * doc/tree-ssa.texi: Fix a typo.
8321
8322         * tree-flow-inline.h, tree-ssa-operands.c: Fix comment typos.
8323
8324 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
8325
8326         * config/fr30/fr30.c (fr30_expand_prologue): Use gcc_assert and
8327         gcc_unreachable as appropriate.
8328         (fr30_expand_epilogue, fr30_setup_incoming_varargs,
8329         fr30_print_operand, fr30_move_double): Likewise.
8330         * config/fr30/fr30.md (*movsi_internal, *movsf_internal): Likewise.
8331
8332 2005-04-29  Mark Mitchell  <mark@codesourcery.com>
8333
8334         * config/arm/arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a
8335         definition has already been provided.
8336         (ARM_EABI_DTORS_SECTION_OP): Likewise.
8337         * config/arm/symbian.h (ARM_EABI_CTORS_SECTION_OP): Define.
8338         (ARM_EABI_DTORS_SECTION_OP): Likewise.
8339
8340 2005-04-29  Jim Tison  <jtison@us.ibm.com>
8341
8342         * config/s390/s390.md ("prologue_tpf", "epilogue_tpf"): Alter
8343         trace hooks calls to improve performance.
8344
8345 2005-04-29  Julian Brown  <julian@codesourcery.com>
8346             Mark Mitchell  <mark@codesourcery.com>
8347             Paul Brook  <paul@codesourcery.com>
8348
8349         * crtstuff.c: Handle targets that use .init_array.
8350         * function.c (HAS_INIT_SECTION): Do not define. Instead, make sure
8351         that INVOKE__main is set correctly.
8352         (expand_main_function): Test INVOKE__main.
8353         * libgcc2.c: Do not define __main when using .init_array.
8354         * config/arm/arm.c (arm_elf_asm_constructor): New function.
8355         * config/arm/arm.h (CTORS_SECTION_ASM_OP): Define, with specialized
8356         libgcc version.
8357         (DTORS_SECTION_ASM_OP): Likewise.
8358         (CTOR_LIST_BEGIN): Define specially when in libgcc.
8359         (CTOR_LIST_END): Likewise.
8360         (DTOR_LIST_BEGIN): Likewise.
8361         (DTOR_LIST_END): Likewise.
8362         * config/arm/bpapi.h (INIT_SECTION_ASM_OP): Do not define it.
8363         (FINI_SECTION_ASM_OP): Likewise.
8364         (INIT_ARRAY_SECTION_ASM_OP): Define.
8365         (FINI_ARRAY_SECTION_ASM_OP): Likewise.
8366         * config/arm/elf.h (TARGET_ASM_CONSTRUCTOR): Define.
8367         (SUPPORTS_INIT_PRIORITY): Evaluate to false for EABI based targets.
8368         * doc/tm.texi (INIT_ARRAY_SECTION_ASM_OP): Document.
8369         (FINI_ARRAY_SECTION_ASM_OP): Likewise.
8370
8371 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
8372
8373         * config/m68k/m68k.c (m68k_initial_elimination_offset): Use
8374         gcc_assert and gcc_unreachable as appropriate.
8375         (output_dbcc_and_branch, output_scc_di, legitimize_pic_address,
8376         const_int_cost, output_move_const_into_data_reg,
8377         output_move_qimode, output_move_double, find_addr_reg,
8378         print_operand, print_operand_address): Likewise.
8379         * config/m68k/m68k.md (adddi3, subdi3, negsf2, negdf2, abssf2,
8380         absdf2, sordered, sunordered, suneq, sunge, sungt, sunle, sunlt,
8381         sltgt, bordered, bunordered, buneq, bunge, bungt, bunle, bunlt,
8382         bltgt, *bordered_rev, *bunordered_rev, *buneq_rev, *bunge_rev,
8383         *bunle_rev, *bunlt_rev, *bltgt_rev, negxf2, absxf2,
8384         conditional_trap): Likewise.
8385         * config/m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Remove unreachable code.
8386
8387 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
8388
8389         * config/xtensa/xtensa.c (gen_int_relational): Use gcc_assert and
8390         gcc_unreachable as appropriate.
8391         (gen_conditional_move, xtensa_split_operand_pair,
8392         xtensa_split_operand_pair, xtensa_copy_incoming_a7,
8393         xtensa_copy_incoming_a7, xtensa_copy_incoming_a7,
8394         xtensa_copy_incoming_a7, xtensa_output_literal,
8395         xtensa_output_literal, xtensa_output_literal): Likewise.
8396         * config/xtensa/xtensa.h (INITIAL_ELIMINATION_OFFSET): Likewise.
8397         * config/xtensa/xtensa.md (*btrue, *bfalse, *ubtrue, *ubfalse,
8398         *bittrue, *bitfalse, *masktrue, *maskfalse, movsicc_internal0,
8399         movsicc_internal1, movsfcc_internal0,
8400         movsfcc_internal1): Likewise.
8401
8402 2005-04-28  James E Wilson  <wilson@specifixinc.com>
8403
8404         * config/i386/i386.h (HI_REGISTER_NAMES): Fix typos in comment.
8405         (ADDITIONAL_REGISTER_NAMES): Delete obsolete mmx register entries.
8406
8407 2005-04-28  DJ Delorie  <dj@redhat.com>
8408
8409         * opt-functions.awk (var_set): Emit proper initializer for
8410         non-target bitfields.
8411
8412 2005-04-28  Devang Patel  <dpatel@apple.com>
8413
8414         * dbxout.c (have_used_extensions): Remove.
8415         (dbxout_type_fileds, dbxout_type, dbxout_symbol): Remove use of
8416         have_used_extensions.
8417
8418 2005-04-28  James E Wilson  <wilson@specifixinc.com>
8419
8420         * doc/install.texi: Update -enable-languages info.  Correct path to
8421         html docs.
8422
8423 2005-04-28  DJ Delorie  <dj@redhat.com>
8424
8425         * optc-gen.awk (END): Make sure no variable is defined more
8426         than once.
8427         * opth-gen.awk (END): Allocate bits on a per-variable basis.
8428         Allow for bitfield variables other than target_flags.
8429         * doc/options.text (Mask): Document that you may specify a
8430         variable other than target_flags.
8431
8432 2005-04-28  Martin Koegler <mkoegler@auto.tuwien.ac.at>
8433
8434         PR rtl-optimization/18877
8435         * reload.c (decompose) <case REG, case SUBREG>: Handle pseudo reg
8436         number in val.start.
8437
8438 2005-04-28  David Edelsohn  <edelsohn@gnu.org>
8439
8440         PR target/20813
8441         * config/rs6000/aix43.h (SUBSUBTARGET_SWITCHES, aix64): Add
8442         MASK_PPC_GFXOPT.
8443         * config/rs6000/aix51.h (SUBSUBTARGET_SWITCHES, aix64): Same.
8444         * config/rs6000/aix52.h (SUBSUBTARGET_SWITCHES, aix64): Same.
8445         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES, 64): Same.
8446
8447 2005-04-28  Richard Earnshaw  <richard.earnshaw@arm.com>
8448
8449         * arm.c (legitimize_pic_address): Fix sense of assertion test for
8450         creating pseudos when the base offset is too large.
8451
8452 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
8453
8454         * global.c (earlyclobber_regclass): Change the type to
8455         VEC(int,heap).
8456         (check_earlyclobber): Update uses of earlyclobber_regclass.
8457         (mark_reg_use_for_earlyclobber): Likewise.
8458         (calculate_local_reg_bb_info): Allocate and free
8459         earlyclobber_regclass using the VEC API.
8460
8461 2005-04-28  Nathan Sidwell  <nathan@codesourcery.com>
8462
8463         * tree-ssa-alias.c (push_fields_onto_fieldstack): Remove bogus
8464         assert.
8465
8466 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
8467
8468         * modulo-sched.c, tree-stdarg.c: Use targetm.foo instead of
8469         (*targetm.foo).
8470
8471         * config.gcc: Obsolete c4x-* and tic4x-*.
8472
8473         * tree.h (edge_def): Remove.
8474
8475         * bt-load.c, cfgexpand.c, dwarf2out.c, emit-rtl.c, expr.c,
8476         function.c, global.c, lcm.c, loop-invariant.c, optabs.c,
8477         reorg.c, resource.c, tree-ssa-loop-ivopts.c, value-prof.c: Use
8478         JUMP_P, LABEL_P, REG_P, MEM_P, NONJUMP_INSN_P, and INSN_P
8479         where appropriate.
8480
8481         * attribs.c, c-pragma.c, caller-save.c, cfghooks.h,
8482         coverage.c, cselib.h, domwalk.c, domwalk.h, errors.c,
8483         errors.h, gcov-dump.c, gcov-io.c, gcov-io.h, gen-protos.c,
8484         genattrtab.h, genextract.c, gthr-win32.h, insn-notes.def,
8485         integrate.c, lambda-mat.c, lambda.h, libgcov.c, local-alloc.c,
8486         machmode.def, mips-tfile.c, params.c, pretty-print.c,
8487         print-rtl.c, protoize.c, regmove.c, sched-vis.c, tree-chrec.h,
8488         tree-data-ref.h, vec.h, config/darwin-c.c, config/sol2-c.c,
8489         config/sol2.c, config/arm/arm-cores.def, config/arm/cirrus.md,
8490         config/arm/symbian.h, config/c4x/c4x.c, config/c4x/c4x.h,
8491         config/i386/cygming.h, config/i386/djgpp.h,
8492         config/i386/lynx.h, config/i386/netware.c,
8493         config/i386/winnt.c, config/ia64/ia64-c.c,
8494         config/iq2000/iq2000.c, config/m32r/little.h,
8495         config/m68k/m68k-protos.h, config/m68k/m68k.h,
8496         config/m68k/m68k.md, config/mcore/mcore.c,
8497         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.md,
8498         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
8499         config/mn10300/mn10300.h, config/ns32k/netbsd.h,
8500         config/ns32k/ns32k.c, config/ns32k/ns32k.h,
8501         config/pa/pa-hpux11.h, config/pdp11/pdp11.c,
8502         config/pdp11/pdp11.h, config/rs6000/darwin.h,
8503         config/rs6000/default64.h, config/rs6000/rs6000-c.c,
8504         config/s390/2064.md, config/s390/2084.md,
8505         config/s390/s390-modes.def, config/s390/s390-protos.h,
8506         config/s390/tpf.h, config/sh/sh.h, config/sh/symbian.c,
8507         config/stormy16/stormy16.c, config/vax/vax-protos.h,
8508         config/vax/vax.c, config/vax/vax.h,
8509         config/xtensa/lib1funcs.asm, config/xtensa/xtensa.md: Update
8510         copyright.
8511
8512 2005-04-28  Joseph S. Myers  <joseph@codesourcery.com>
8513
8514         * c-typeck.c (build_compound_expr): Correct logic in last change.
8515
8516 2005-04-27  James E. Wilson  <wilson@specifixinc.com>
8517
8518         * config/ia64/ia64.c (update_set_flags): Delete ppred and pcond
8519         parameters.  Replace conditional move code with assert checking for
8520         ar.lc.  Delete obsolete comments.
8521         (set_src_needs_barrier): Delete cond parameter, and code using it.
8522         (rtx_needs_barrier): Delete initialization of cond.  Fix typo in
8523         assert checking for PR_REGS.  Fix calls to update_set_flags and
8524         set_src_needs_barrier.
8525         (group_barrier_needed): Renamed from group_barrier_needed_p.  Fix all
8526         callers.  Rewrite explanatory comment before the function.
8527         (safe_group_barrier_needed): Renamed from safe_group_barrier_needed_p.
8528         Fix all callers.
8529
8530 2005-04-27  Mike Stump  <mrs@apple.com>
8531
8532         * doc/cpp.texi: gcc now implements universal character names.
8533
8534 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
8535
8536         PR c/21159
8537         * c-typeck.c (build_compound_expr): Don't warn for left-hand side
8538         being a compound expression whose right-hand side is cast to void.
8539
8540 2005-04-27  Caroline Tice  <ctice@apple.com>
8541
8542         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
8543         Remove targetm.have_named_sections test.
8544         (fix_edges_for_rarely_executed_code): Likewise.
8545         (insert_section_boundary_note): Likewise.
8546         (reorder_basic_blocks): Check partitioning flag before calling
8547         verify_hot_cold_block_grouping.
8548         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
8549         the function struct rather than global variables.
8550         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
8551         (COLD_END_LABEL): Likewise
8552         (cold_text_section_label): New static global variable.
8553         (cold_end_label): Likewise.
8554         (dwarf2out_switch_text_section): Get hot/cold section labels from
8555         the function struct rather than global variables; test to make sure
8556         cfun is defined.
8557         (output_aranges): Use cold_text_section_label and cold_end_label;
8558         check partitioning flag before putting out delta.
8559         (output_ranges): Remove incorrect code attempting to use
8560         hot/cold labels.
8561         (output_line_info): Get cold section label from function struct; test
8562         to make sure cfun is defined.
8563         (add_location_or_const_value_attribute): Likewise.
8564         (dwarf2out_var_location): Likewise.
8565         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
8566         write out cold_text_section_label if partition flag is set.
8567         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
8568         * function.h (struct function): Add new fields to point to hot/cold
8569         section labels: hot_section_label, cold_section_label,
8570         hot_section_end_label and cold_section_end_label; also add new field
8571         for cold text section name, unlikely_text_section_name.
8572         * opts.c (decode_options): Turn off partitioning flag if
8573         !targetm.have_named_sections.
8574         * output.h (hot_section_label): Remove.
8575         (hot_section_end_label): Remove.
8576         (cold_section_end_label): Remove.
8577         (unlikely_section_label): Remove.
8578         (unlikely_text_section_name): Remove.
8579         * passes.c (rest_of_handle_final):  Remove extra blank line.
8580         * varasm.c (unlikely_section_label): Remove.
8581         (hot_section_label): Remove.
8582         (hot_section_end_label): Remove.
8583         (cold_section_end_label): Remove.
8584         (unlikely_text_section_name):  Remove.
8585         (initialize_cold_section_name): Modify to call
8586         targetm.strip_name_encoding; to store cold section name in current
8587         function struct, if it exists; and to only use the decl_section_name
8588         if flag_named_sections is true.
8589         (unlikely_text_section): Modify to get section name out of current
8590         function struct, if there is one; otherwise build it from
8591         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
8592         (in_unlikely_text_section): Likewise.
8593         (named_section): Modify to get/put cold section name in current function
8594         struct, if there is one.
8595         (function_section):  Change 'bool unlikely' to 'int reloc'; check
8596         targetm.have_named_sections before calling named_section.
8597         (current_function_section): Likewise.
8598         (assemble_start_function): Modify to get/put unlikely_text_section_name
8599         in current function struct; modify to get hot/cold section labels
8600         from function struct; initialize labels using
8601         ASM_GENERATE_INTERNAL_LABEL;
8602         test partitioning flag before writing out hot section label.
8603         (assemble_end_function): Test partitioning flag before writing out
8604         hot/cold section labels.
8605         (default_section_type_flags_1):  Get cold text section name from
8606         function struct if there is one; Set flags correctly for
8607         cold text section if there is not a current function struct.
8608
8609 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
8610
8611         * tree-ssa-propagate.c (set_rhs): Revert last change.
8612
8613 2005-04-27  Steve Ellcey  <sje@cup.hp.com>
8614
8615         * explow.c (convert_memory_address): Add gcc_assert.
8616
8617 2005-04-27  Mark Mitchell  <mark@codesourcery.com>
8618
8619         * configure.ac: Check for ld --sysroot support.
8620         * gcc.c: Document %R specifier for specs.
8621         (SYSROOT_SPEC): New macro.
8622         (sysroot_spec): New variable.
8623         (static_specs): Add sysroot_spec.
8624         (main): Pass the sysroot spec to the linker if appropriate.
8625         * configure: Regenerated.
8626         * config.in: Likewise.
8627
8628 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
8629
8630         * fold-const.c (fold_binary): Use build_fold_addr_expr
8631         for address calculation and INDIRECT_REF handling.
8632
8633 2005-04-27  Andrew Haley  <aph@redhat.com>
8634
8635         * postreload-gcse.c (hash_scan_set): Remove bogus assertion.
8636
8637 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
8638
8639         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Reserve arm frame
8640         pointer when thumb backtracing is on.
8641
8642         * config/fp-bit.c (abort): Revert change.
8643
8644 2005-04-27  Ian Lance Taylor  <ian@airs.com>
8645
8646         * c-semantics.c (add_stmt): Don't test STATEMENT_CODE_P.
8647
8648 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
8649
8650         * tree-ssa-dce.c: Fix a comment typo.
8651
8652 2005-04-27  David S. Miller  <davem@davemloft.net>
8653
8654         * explow.c (allocate_dynamic_stack_space SETJMP_VIA_SAVE_AREA):
8655         Kill setjmpless_size.  current_function_calls_setjmp is completely
8656         computed when we are called, so just use the optimized size value
8657         instead of using REG_SAVE_AREA notes.
8658         (optimize_save_area_alloca): Delete....
8659         * rtl.h (optimize_save_area_alloca): Likewise...
8660         * passes.c (rest_of_compilation): and don't call it any more.
8661         * reg-notes.def (SAVE_AREA): Delete.
8662
8663 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
8664
8665         * config/fp-bit.c (abort): Add noreturn attribute.
8666
8667         * config/avr/avr.c (avr_naked_function_p): Use gcc_assert and
8668         gcc_unreachable as appropriate.
8669         (ptrreg_to_str, cond_string, avr_normalize_condition): Likewise.
8670         * config/avr/avr.h (ASM_OUTPUT_REG_PUSH,
8671         ASM_OUTPUT_REG_POP): Likewise.
8672
8673 2005-04-27  Paolo Bonzini  <bonzini@gnu.org>
8674
8675         * tree-complex.c (expand_vector_operations_1): Do not build
8676         VIEW_CONVERT_EXPR's for the lhs.
8677
8678 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
8679
8680         * config/pa/pa.h (PRINT_OPERAND_ADDRESS): Use gcc_assert, remove
8681         unnecessary noncanonical RTL handling.
8682         * config/pa/pa64-linux.h (INITIAL_ELIMINATION_OFFSET): Use
8683         gcc_assert and gcc_unreachable.
8684
8685         * config/arm/arm.h (ARM_PRINT_OPERAND_ADDRESS): Use gcc_assert and
8686         gcc_unreachable as appropriate.
8687         (THUMB_PRINT_OPERAND_ADDRESS): Likewise.
8688         * config/arm/arm.c (arm_override_options, arm_compute_func_type,
8689         use_return_insn, const_ok_for_op, arm_gen_constant,
8690         arm_canonicalize_comparison, legitimize_pic_address,
8691         thumb_find_work_register, arm_load_pic_register, arm_rtx_costs_1,
8692         arm_cirrus_insn_p, cirrus_reorg, minmax_code,
8693         load_multiple_sequence, emit_ldm_seq, store_multiple_sequence,
8694         emit_stm_seq, arm_gen_movmemqi, arm_select_dominance_cc_mode,
8695         arm_select_cc_mode, arm_reload_in_hi, arm_reload_out_hi,
8696         move_minipool_fix_forward_ref, move_minipool_fix_backward_ref,
8697         dump_minipool, create_fix_barrier, push_minipool_fix, arm_reorg,
8698         fp_immediate_constant, fp_const_from_val, vfp_output_fstmx,
8699         output_call, output_mov_long_double_fpa_from_arm,
8700         output_mov_long_double_arm_from_fpa,
8701         output_mov_double_fpa_from_arm, output_mov_double_arm_from_fpa,
8702         output_move_double, arithmetic_instr, shift_op, int_log2,
8703         output_return_instruction, arm_output_function_prologue,
8704         arm_output_epilogue, arm_output_function_epilogue,
8705         emit_multi_reg_push, arm_get_frame_offsets,
8706         arm_compute_initial_elimination_offset, arm_expand_prologue,
8707         arm_print_operand, arm_assemble_integer, get_arm_condition_code,
8708         arm_final_prescan_insn, arm_init_iwmmxt_builtins,
8709         arm_expand_binop_builtin, thumb_pushpop, thumb_far_jump_used_p,
8710         thumb_compute_initial_elimination_offset,
8711         thumb_output_function_prologue, thumb_load_double_from_address,
8712         thumb_output_move_mem_multiple, thumb_reload_out_hi,
8713         arm_emit_vector_const, arm_dbx_register_number): Likewise.
8714         * config/arm/pe.c (arm_mark_dllexport, arm_mark_dllimport): Likewise.
8715         * config/arm/arm.md (thumb_extendhisi2,
8716         *thumb_extendhisi2_insn_v6, *thumb_extendqisi2,
8717         *thumb_extendqisi2_v6, movhi, *thumb_movhi_insn,
8718         thumb_movhi_clobber, movqi, *arm_buneq, *arm_bltgt,
8719         *arm_buneq_reversed, *arm_bltgt_reversed, suneq, sltgt): Likewise.
8720         * config/arm/cirrus.md (*cirrus_arm_movdi,
8721         *cirrus_movdf_hard_insn): Likewise.
8722         * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
8723
8724 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
8725
8726         * tree-flow.h (ssa_names): Change the type to VEC(tree,gc).
8727         (num_ssa_names): Use VEC_length.
8728         (ssa_names): Use VEC_index.
8729         * tree-ssanames.c (ssa_names): Change the type to
8730         VEC(tree,gc).
8731         (init_ssanames, fini_ssa_names, make_ssanames,
8732         release_ssa_name): Update uses of ssa_names.
8733
8734         * dojump.c, emit-rtl.c, expmed.c, expr.c, stmt.c, stor-layout.c:
8735         Use fold_buildN instead of fold (buildN (...)).
8736
8737 2005-04-27  Devang Patel <dpatel@apple.com>
8738
8739         * dbxout.c (dbxout_type): Check use_gnu_debug_info_extensions.
8740
8741 2005-04-27  Matt Thomas <matt@3am-software.com>
8742             Jan-Benedict Glaw <jbglaw@microdata-pos.de>
8743
8744         * config/vax/vax.c (vax_rtx_costs): Whitespace cleanup.
8745         (vax_output_mi_thunk): Ditto.
8746         (vax_notice_cc_update): Ditto.
8747         (INDEX_REGISTER_P): Add trailing \.
8748         (BASE_REGISTER_P): Add trailing \.
8749         (legitimate_address_p): Whitespace cleanup.  Remove trailing \.
8750
8751 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
8752
8753         * tree-ssa-propagate.c (set_rhs): Check operand of
8754         ADDR_EXPR for gimpliness, too.
8755
8756 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
8757
8758         * tree-ssa-pre.c: Fix a comment typo.
8759
8760 2005-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
8761
8762         PR tree-optimization/21171
8763         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not
8764         record address uses if the reference is volatile.
8765
8766 2004-04-27  Paolo Bonzini  <bonzini@gnu.org>
8767
8768         * tree-complex.c (expand_vector_operation): New, extracted from
8769         expand_vector_operations_1.
8770         (tree_vec_extract): Build a NOP_EXPR.
8771         (expand_vec_parallel): Do not care about returning the correct type.
8772         (expand_vector_operations_1): Call expand_vector_operation.
8773         Build the VIEW_CONVERT_EXPR on the left side of MODIFY_EXPRs.
8774
8775         * tree-complex.c (gate_expand_vector_operations): New.
8776         (pass_lower_vector_ssa): Use it.
8777         * tree-optimize.c (init_tree_optimization_passes): Include
8778         pass_lower_vector_ssa.
8779         * tree-vect-transform.c (vect_min_worthwhile_factor): New.
8780         (vectorizable_operation): Use it.
8781         * tree-vectorizer.c (get_vectype_for_scalar_type): Accept
8782         integer modes for the vector type.
8783
8784         * defaults.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
8785         * tree-vect-analyze.c (vect_enhance_data_refs_alignment):
8786         Do not cope with UNITS_PER_SIMD_WORD == 0.
8787         * tree-vectorizer.c (get_vectype_for_scalar_type): Check
8788         if the scalar type is not bigger than UNITS_PER_SIMD_WORD.
8789         (vectorize_loops): Do not check that UNITS_PER_SIMD_WORD > 0.
8790         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
8791         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
8792         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
8793         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
8794
8795         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): Remove.
8796         * config/bfin/bfin.h (UNITS_PER_SIMD_WORD): Remove.
8797         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): Remove.
8798
8799         * doc/tm.texi (UNITS_PER_WORD): Rephrase more accurately.
8800         (UNITS_PER_SIMD_WORD): New.
8801
8802 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
8803
8804         * config/ia64/ia64.c (ia64_encode_addr_area): Use gcc_assert and
8805         gcc_unreachable as appropriate.
8806         (ia64_expand_load_address, ia64_expand_tls_address,
8807         ia64_split_tmode, ia64_split_tmode_move, ia64_expand_compare,
8808         ia64_expand_vecint_compare, ia64_expand_vecint_minmax,
8809         next_scratch_gr_reg, ia64_initial_elimination_offset,
8810         ia64_expand_prologue, ia64_expand_epilogue,
8811         ia64_output_dwarf_dtprel, ia64_print_operand,
8812         ia64_register_move_cost, first_instruction, rws_access_regno,
8813         update_set_flags, rtx_needs_barrier, group_barrier_needed_p,
8814         ia64_sched_init, ia64_variable_issue,
8815         ia64_first_cycle_multipass_dfs_lookahead_guard,
8816         ia64_dfa_new_cycle, issue_nops_and_insn, get_template, bundling,
8817         ia64_st_address_bypass_p, ia64_ld_address_bypass_p, process_set,
8818         process_for_unwind_directive, ia64_hpux_file_end): Likewise.
8819         * config/ia64/ia64.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
8820         * config/ia64/ia64.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
8821         * config/ia64/predicates.md (got_symbolic_operand,
8822         sdata_symbolic_operand): Likewise.
8823         * config/ia64/vect.md (vcondv2sf): Likewise.
8824
8825 2005-04-27  Matt Thomas <matt@3am-software.com>
8826
8827         * config/vax/vax.c (legitimate_constant_address_p): New.  Formerly
8828         CONSTANT_ADDRESS_P in config/vax/vax.h
8829         (legitimate_constant_p): Added.  Formerly CONSTANT_P in vax.h.
8830         (INDEX_REGISTER_P): New.
8831         (BASE_REGISTER_P): New.
8832         (indirectable_constant_address_p): New.  Adapted from
8833         INDIRECTABLE_CONSTANT_ADDRESS_P in vax.h. Use SYMBOL_REF_LOCAL_P.
8834         (indirectable_address_p): New.  Adapted from
8835         INDIRECTABLE_ADDRESS_P in vax.h.
8836         (nonindexed_address_p): New.  Adapted from
8837         GO_IF_NONINDEXED_ADDRESS in vax.h.
8838         (index_temp_p): New.  Adapted from INDEX_TERM_P in vax.h.
8839         (reg_plus_index_p): New.  Adapted from GO_IF_REG_PLUS_INDEX in vax.h.
8840         (legitimate_address_p): New.  Adapted from
8841         GO_IF_LEGITIMATE_ADDRESS in vax.h.
8842         (vax_mode_dependent_address_p): New.  Adapted from
8843         GO_IF_MODE_DEPENDENT_ADDRESS in vax.h.
8844         * config/vax/vax.h (CONSTANT_ADDRESS_P): Use
8845         legitimate_constant_address_p.
8846         (CONSTANT_P): Use legitimate_constant_p.
8847         (INDIRECTABLE_CONSTANT_ADDRESS_P): Removed.
8848         (INDIRECTABLE_ADDRESS_P): Removed.
8849         (GO_IF_NONINDEXED_ADDRESS): Removed.
8850         (INDEX_TEMP_P): Removed.
8851         (GO_IF_REG_PLUS_INDEX): Removed.
8852         (GO_IF_LEGITIMATE_ADDRESS): Use legitimate_address_p. Two
8853         definitions, depending on whether REG_OK_STRICT is defined.
8854         (GO_IF_MODE_DEPENDENT_ADDRESS): Use vax_mode_dependent_address_p.
8855         Two definitions, depending on whether REG_OK_STRICT is defined.
8856         * config/vax/vax-protos.h (legitimate_constant_address_p): Prototype
8857         added.
8858         (legitimate_constant_p): Prototype added.
8859         (legitimate_address_p): Prototype added.
8860         (vax_mode_dependent_address_p): Prototype added.
8861
8862 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
8863
8864         * tree.h (phi_arg_d): Expand a comment in phi_arg_d.
8865
8866 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
8867
8868         PR c/21213
8869         * c-decl.c (finish_struct): Don't dereference NULL TYPE_FIELDS of
8870         transparent union.
8871
8872 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
8873
8874         PR c/20740
8875         * c-format.c (init_dynamic_asm_fprintf_info): Give errors, not
8876         assertion failures, if __gcc_host_wide_int__ is not properly
8877         defined.
8878         (init_dynamic_diag_info): Give errors, not assertion failures, if
8879         location_t, tree or __gcc_host_wide_int__ are not properly
8880         defined.
8881
8882 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
8883
8884         * tree-ssa-loop-ivopts.c (ivopts_data, decl_rtl_to_reset,
8885         n_iv_uses, iv_use, n_iv_cands, iv_cand,
8886         tree_ssa_iv_optimize_init, record_use, add_candidate_1,
8887         prepare_decl_rtl, free_loop_data,
8888         tree_ssa_iv_optimize_finalize): Use the VEC API instead of
8889         VARRAY.
8890
8891         * tree.h (tree_phi_node): Add a comment about the order of PHI
8892         arguments.
8893
8894 2005-04-26  Paul Brook  <paul@codesourcery.com>
8895
8896         * config/arm/arm.md (thumb_mulsi3): Use two-operand assembly form.
8897
8898 2005-04-26  Nathan Sidwell  <nathan@codesourcery.com>
8899
8900         * config/mips.mips.c (mips_legitimize_tls_address): Use
8901         gcc_unreachable.
8902
8903         * config/mmix/mmix.c (mmix_assemble_integer): Use gcc_assert.
8904         * config/mmix/crti.asm (_init): Reword comment to avoid 'abort'.
8905         * config/mmix/mmix.md (nonlocal_goto_receiver): Likewise.
8906
8907         * config/sparc/sparc.h (enum reg_class): Reword comment to avoid
8908         'abort'.
8909
8910 2005-04-26  Jeff Law  <law@redhat.com>
8911
8912         * tree-flow-inline.h (op_iter_next_must_and_may_def): New.
8913         (op_iter_init_must_and_may_def): Likewise.
8914         (unmodifiable_var_p): Move to a later point in the file.
8915         * tree-ssa-operands.h (FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): New.
8916         * tree-ssa-dse.c (need_imm_uses_for): Remove, no longer needed.
8917         (dse_record_phis): Directly check for virtual operands rather than
8918         using need_imm_uses_for.
8919         (dse_optimize_stmt): Handle V_MUST_DEF operands.  Handle case where
8920         store has multiple V_{MAY,MUST}_DEF operands.
8921
8922 2005-04-26  Andrew MacLeod  <amacleod@redhat.com>
8923
8924         * tree-cfg.c (bsi_replace): Delink immediate uses for the original
8925         stmt.
8926
8927 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
8928
8929         * tree-cfg.c (lv_adjust_loop_header_phi): Speed up moving a
8930         call to find_edge outside a loop to go through a PHI chain.
8931
8932 2004-04-26  Richard Guenther  <rguenth@gcc.gnu.org>
8933
8934         PR tree-optimization/17598
8935         * fold-const.c (fold_binary): Fold comparisons of addresses
8936         of COMPONENT_REFs which reference the same field to
8937         comparisons of the addresses of the base objects.
8938
8939 2005-04-26  Julian Brown  <julian@codesourcery.com>
8940
8941         * config/arm/arm.c (arm_return_in_msb): New function.
8942         (arm_must_pass_in_stack): New function.
8943         (TARGET_RETURN_IN_MSB): Define target hook.
8944         (TARGET_MUST_PASS_IN_STACK): Define target hook.
8945         (arm_function_value): Pad small aggregate return.
8946         (arm_pad_arg_upward): New function.
8947         (arm_pad_reg_upward): New function.
8948         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Include complex values.
8949         (FUNCTION_ARG_PADDING): Define macro.
8950         (BLOCK_REG_PADDING): Define macro.
8951         (PAD_VARARGS_DOWN): Correct padding for AAPCS.
8952         * config/arm/arm-protos.h (arm_pad_arg_upward): Declare function.
8953         (arm_pad_reg_upward): Declare function.
8954
8955 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
8956
8957         * basic-block.h (ei_cond): New.
8958         (FOR_EACH_EDGE): Call ei_cond.
8959
8960         PR tree-optimization/21047
8961         * fold-const.c (fold_binary): Abort on ASSERT_EXPR.
8962         (fold): Don't handle ASSERT_EXPR.
8963
8964 2005-04-25  Roger Sayle  <roger@eyesopen.com>
8965
8966         * sched-deps.c (sched_analyze_1): On STACK_REGS targets, x87, treat
8967         all writes to any stack register as a read/write dependency on
8968         FIRST_STACK_REG.
8969         (sched_analyze_2): Likewise, for reads from any stack register.
8970
8971 2005-04-25  Richard Henderson  <rth@redhat.com>
8972
8973         * final.c (output_addr_const): Revert 2005-04-09 change.
8974
8975 2005-04-25  Mike Stump  <mrs@apple.com>
8976
8977         * config/darwin.c (darwin_encode_section_info): Always set
8978         MACHO_SYMBOL_STATIC for all ! TREE_PUBLIC symbols.
8979
8980 2005-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8981
8982         * collect2.c, gcc.c, gcov-dump.c, gcov.c, gen-protos.c,
8983         gensupport.c, protoize.c, toplev.c: Replace calls to
8984         `unlock_stream' with `unlock_std_streams'.
8985
8986 2005-04-25  Devang Patel <dpatel@apple.com>
8987
8988         * dbxout.c (dbxout_type): Emit attribute vector.
8989
8990 2005-04-05  Paul Brook  <paul@codesourcery.com>
8991
8992         * target-def.h (TARGET_CXX_USE_AEABI_ATEXIT): Define.
8993         * target.h (struct gcc_target): Add cxx.use_aeabi_atexit.
8994         * config/arm/arm.c (arm_cxx_atexit_name): New function.
8995         (TARGET_CXX_USE_AEABI_ATEXIT): New macro.
8996         * cp/decl.c (get_atexit_node): Reorder arguments for __aeabi_atexit.
8997         (register_dtor_fn): Likewise.
8998         * doc/tm.texi: Document TARGET_CXX_USE_AEABI_ATEXIT.
8999
9000 2005-04-25  Ian Lance Taylor  <ian@airs.com>
9001
9002         * c-common.def (EXPR_STMT): Remove, moved to C++ frontend.
9003         * c-common.h (EXPR_STMT_EXPR): Don't define.
9004         (c_common_stmt_codes): Don't define.
9005         * c-dump.c (c_dump_tree): Remove EXPR_STMT case.
9006         * c-gimplify.c (gimplify_expr_stmt): Remove.
9007         (c_gimplify_expr): Remove EXPR_STMT case.
9008         * c-objc-common.c (c_objc_common_init): Remove stmt_codes and call
9009         to INIT_STATEMENT_CODES.
9010         * c-pretty-print.c (pp_c_statement): Just call dump_generic_node.
9011
9012 2005-04-25  Jan Hubicka  <jh@suse.cz>
9013
9014         * tree-cfg.c (tree_duplicate_bb): Duplicate EH region too.
9015
9016         * except.c: Include diagnostic.h
9017         (dump_eh_tree, verify_eh_tree): New functions.
9018         * except.h (verify_eh_tree, dump_eh_tree, verify_eh_edges): Declare.
9019         * tree-cfg.c (tree_verify_flow_info): verify eh edges.
9020         (dump_function_to_file): dump eh tree.
9021         * tree-eh.c (mark_eh_edge): New function.
9022         (mark_eh_edge_found_error): New static variable.
9023         (verify_eh_edges): New function.
9024
9025 2005-04-25  Nathan Sidwell  <nathan@codesourcery.com>
9026
9027         * tree-ssa-alias.c (fieldoff_t): Remove.
9028         (fieldoff_s): typedef the structure itself.  Create a vector of
9029         objects.
9030         (push_fields_onto_fieldstack): Return count of fields pushed.
9031         Remove peeling of first field.  Adjust.
9032         (fieldoff_compare): Adjust.
9033         (create_overlap_variables_for): Adjust.
9034
9035 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
9036
9037         * doc/invoke.texi (Blackfin Options): Avoid empty @opindex line.
9038
9039 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
9040
9041         PR bootstrap/21215
9042         * doc/install.texi: Document correct assembler and linker to use
9043         on i?86-*-solaris2.10.
9044
9045 2005-04-25  Steven Bosscher  <stevenb@suse.de>
9046
9047         Fix PR tree-optimization/21173
9048
9049         * tree-ssa-pre.c (create_expression_by_pieces): Simplify code.
9050         Unshare expression we pass to force_gimple_operand.
9051
9052 2005-04-25  J"orn Rennecke <joern.rennecke@st.com>
9053             Stephen Clarke <stevec@superh.com>
9054             Roger Sayle <roger@eyesopen.com>
9055
9056         PR rtl-optimization/20413
9057         * cfgrtl.c (redirect_edge_and_branch): Use Pmode instead of
9058         VOIDmode for LABEL_REF.
9059         * final.c (shorten_branches): Likewise.
9060         * jump.c (mark_all_labels, redirect_exp_1): Likewise.
9061         * loop.c (reg_dead_after_loop): Likewise.
9062         * varasm.c (decode_addr_const): Likewise.
9063         * doc/rtl.texi: Document mode requirement for LABEL_REF.
9064
9065 2005-04-25  Ralf Corsepius  <ralf.corsepius@rtems.org>
9066
9067         * config.gcc (avr-*-*): Remove redundant "case".
9068
9069 2005-04-25  Kazu Hirata  <kazu@cs.umass.edu>
9070
9071         * tree-vect-analyze.c (vect_mark_relevant): Take
9072         VEC(tree,heap) instead of varray_type as an argument.
9073         (vect_mark_stmts_to_be_vectorized): Change the type of
9074         worklist to VEC(tree,heap).  Adjust uses of worklist.
9075
9076 2005-04-24  Devang Patel  <dpatel@apple.com>
9077
9078         *  config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
9079
9080 2005-04-24  Ian Lance Taylor  <ian@airs.com>
9081
9082         * c-semantics.c (build_stmt): Remove test of specific tree codes
9083         for TREE_SIDE_EFFECTS handling.
9084
9085 2005-04-24  Per Bothner  <per@bothner.com>
9086
9087         * c-opts.c (finish_options):  Make the line-number of the <built-in>
9088         location 0, as assumed elsewhere, rather than 1.
9089
9090 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
9091
9092         * tree-ssa-uncprop.c (equiv_stack): Change the type o
9093         VEC(tree,heap).
9094         (tree_ssa_uncprop, uncprop_finalize_block,
9095         uncprop_initialize_block): Update uses of equiv_stack.
9096
9097 2005-04-24  Richard Henderson  <rth@redhat.com>
9098
9099         PR rtl-opt/21163
9100         * simplify-rtx.c (simplify_binary_operation) <IOR>: Check
9101         for SCALAR_INT_MODE_P instead of not MODE_CC before returning
9102         constm1_rtx.
9103         <AND, LSHIFTRT, UMIN>: Use CONST0_RTX.
9104         <UDIV, UMOD>: Use CONST0_RTX and CONST1_RTX.
9105         <DIV, MOD>: Likewise.
9106
9107 2005-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9108
9109         * collect2.c (main): Unlock the stdio streams.
9110         * gcc.c (main): Likewise.
9111         * gcov-dump.c (main): Likewise.
9112         * gcov.c (main): Likewise.
9113         * gen-protos.c (main): Likewise.
9114         * gensupport.c (init_md_reader_args_cb): Likewise.
9115         * protoize.c (main): Likewise.
9116         * toplev.c (general_init): Likewise.
9117
9118 2005-04-24  Jakub Jelinek  <jakub@redhat.com>
9119
9120         PR middle-end/20991
9121         * cgraph.h (cgraph_local_info): Add vtable_method field.
9122         * varasm.c (mark_decl_referenced): If cgraph_global_info_ready
9123         and node is vtable_method, finalized and not reachable, don't do
9124         anything.
9125
9126 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
9127
9128         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Use
9129         COMPARISON_CLASS_P.
9130         * tree-ssa-pre.c (create_value_expr_from): Use
9131         CONSTANT_CLASS_P and REFERENCE_CLASS_P.
9132         * tree-ssa-propagate.c (stmt_makes_single_load,
9133         stmt_makes_single_store): Use REFERENCE_CLASS_P.
9134         * tree-vect-transform.c (vect_is_simple_cond): Use
9135         COMPARISON_CLASS_P.
9136         * tree-vrp.c (extract_range_from_assert,
9137         build_assert_expr_for, fp_predicate, has_assert_expr): Use
9138         COMPARISON_CLASS_P.
9139
9140         * tree-ssa-live.c (build_tree_conflict_graph): Change the type
9141         of tpa_to_clear to VEC(int,heap).  Update uses of
9142         tpa_to_clear.  Free tpa_to_clear at the end.
9143
9144 2005-04-24  Andrew Pinski  <pinskia@physics.uc.edu>
9145
9146         * tree.h (TREE_THIS_VOLATILE): Document the effect on a
9147         function decl.
9148
9149 2005-04-24  Nathan Sidwell  <nathan@codesourcery.com>
9150
9151         * config/rs6000/rs6000.c (rs6000_override_options): Use gcc_assert
9152         and gcc_unreachable as appropriate.
9153         (num_insns_constant, output_vec_const_move,
9154         build_mask64_2_operands, rs6000_output_dwarf_dtprel,
9155         rs6000_emit_set_const, rs6000_emit_move,
9156         spe_build_register_parallel, function_arg,
9157         rs6000_move_block_from_reg, altivec_expand_predicate_builtin,
9158         spe_expand_predicate_builtin, spe_expand_evsel_builtin,
9159         rs6000_expand_builtin, spe_init_builtins, altivec_init_builtins,
9160         rs6000_common_init_builtins, expand_block_clear,
9161         expand_block_move, validate_condition_mode, ccr_bit, extract_MB,
9162         extract_ME, rs6000_get_some_local_dynamic_name,
9163         rs6000_output_function_entry, print_operand,
9164         print_operand_address, rs6000_generate_compare, rs6000_emit_sCOND,
9165         output_cbranch, output_e500_flip_gt_bit,
9166         rs6000_emit_vector_compare, rs6000_emit_vector_compare,
9167         rs6000_emit_cmove, rs6000_emit_minmax, rs6000_split_multireg_move,
9168         compute_save_world_info, rs6000_stack_info,
9169         rs6000_emit_load_toc_table, rs6000_frame_related,
9170         spe_synthesize_frame_save, rs6000_emit_epilogue,
9171         rs6000_output_function_epilogue, rs6000_hash_constant, output_toc,
9172         output_function_profiler, rs6000_trampoline_size,
9173         rs6000_initialize_trampoline, find_addr_reg,
9174         rs6000_machopic_legitimize_pic_address,
9175         rs6000_initial_elimination_offset,
9176         rs6000_dbx_register_number): Likewise.
9177         * config/rs6000/rs6000.md (*fix_truncdfsi2_internal,
9178         *movdf_hardfloat32, *movdf_softfloat32, *fix_trunctfsi2_internal,
9179         *movti_power, *movti_string, call, call_value, sibcall,
9180         sibcall_value): Likewise.
9181         * config/rs6000/spe.md (*movdf_e500_double,
9182         *movv2si_internal): Likewise.
9183         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Remove 'abort'
9184         from comment.
9185
9186 2005-04-24  Richard Henderson  <rth@redhat.com>
9187
9188         PR target/21101
9189         * config/i386/i386.h (CANNOT_CHANGE_MODE_CLASS): Move guts to ...
9190         * config/i386/i386.c (ix86_cannot_change_mode_class): ... here.
9191         Deny modes smaller than 4 bytes.
9192         * config/i386/i386-protos.h: Update.
9193
9194 2005-04-24  Ralf Corsepius  <ralf.corsepius@rtems.org>
9195
9196         * config.gcc (h8300-*-rtems*): Add h8300-*-rtemscoff*.
9197         Switch h8300-*-rtems* to ELF.
9198
9199 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
9200
9201         * vec.h (VEC_safe_grow): Replace grow with safe_grow.
9202
9203 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
9204
9205         * ipa-inline.c, tree-ssa-operands.h: Fix comment typos.
9206
9207 2005-04-23  Richard Guenther  <rguenth@gcc.gnu.org>
9208
9209         PR middle-end/21082
9210         * fold-const.c: Fold &a[i]-&a[j] to i-j.
9211
9212 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
9213
9214         * tree-ssa-loop-niter.c (tree_simplify_using_condition): Expand simple
9215         definitions of ssa names in condition.  Split recusive part to ...
9216         (tree_simplify_using_condition_1): New function.
9217         (expand_simple_operations): New function.
9218
9219 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
9220
9221         * tree-ssa-loop-ivopts.c (struct cost_pair): Add value field.
9222         (find_interesting_uses_cond): Do not use integer_zerop and
9223         integer_nonzerop to check for integer constants.
9224         (set_use_iv_cost): Record the value field.
9225         (determine_use_iv_cost_generic, determine_use_iv_cost_address,
9226         determine_use_iv_cost_outer): Set the value field of the cost pair.
9227         (may_eliminate_iv): Do not return the comparison code.
9228         (iv_elimination_compare): New function.
9229         (determine_use_iv_cost_condition): Set the value field.  Record
9230         noneliminable invariants correctly.
9231         (rewrite_use_compare, rewrite_use_outer): Use the value field.
9232
9233 2005-04-23  DJ Delorie  <dj@redhat.com>
9234
9235         * diagnostic.c (warning): Accept parameter to classify warning option.
9236         (warning0): New, for when a pointer to an error() like function is needed.
9237         * errors.c (warning): Likewise.
9238         * errors.h (warning, warning0): Adjust prototypes.
9239         * toplev.h (warning, warning0): Likewise.
9240
9241         * attribs.c, builtins.c, c-common.c, c-decl.c, c-format.c,
9242         c-gimplify.c, c-lex.c, c-objc-common.c, c-opts.c, c-parser.c,
9243         c-pragma.c, c-typeck.c, calls.c, cgraph.c, coverage.c, emit-rtl.c,
9244         fold-const.c, fortran/trans-decl.c, function.c, gcse.c,
9245         genautomata.c, haifa-sched.c, opts.c, passes.c, regclass.c,
9246         reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
9247         tree-dump.c, tree-inline.c, tree-mudflap.c, tree-optimize.c,
9248         tree-ssa.c, tree.c, varasm.c: Adjust warning() callers.
9249
9250         * config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
9251         config/avr/avr.c, config/bfin/bfin.c, config/c4x/c4x-c.c,
9252         config/c4x/c4x.c, config/cris/cris.c, config/darwin-c.c,
9253         config/darwin.c, config/darwin.h, config/h8300/h8300.c,
9254         config/i386/cygming.h, config/i386/djgpp.h, config/i386/i386.c,
9255         config/i386/winnt.c, config/ia64/ia64-c.c, config/ia64/ia64.c,
9256         config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
9257         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.c,
9258         config/mmix/mmix.c, config/ns32k/ns32k.c, config/pa/pa-hpux11.h,
9259         config/pa/pa.c, config/rs6000/aix43.h, config/rs6000/aix51.h,
9260         config/rs6000/aix52.h, config/rs6000/darwin.h,
9261         config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
9262         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
9263         config/sh/symbian.c, config/sol2-c.c, config/sol2.c,
9264         config/stormy16/stormy16.c, config/v850/v850-c.c,
9265         config/v850/v850.c, config/xtensa/xtensa.c: Adjust warning()
9266         callers.
9267
9268 2005-04-23  Richard Henderson  <rth@redhat.com>
9269
9270         PR rtl-opt/21102
9271         * simplify-rtx.c (simplify_binary_operation): Fix mode check before
9272         performing some integral scalar simplifications.
9273
9274 2005-04-23  Richard Henderson  <rth@redhat.com>
9275
9276         PR target/21099
9277         * config/i386/i386.c (ix86_split_to_parts): Use proper mode when
9278         simplifying CONST_VECTOR.
9279
9280 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
9281
9282         * tree-ssa-live.c (live_worklist): Take a stack allocated on
9283         heap as an argument.  Update uses of stack.
9284         (calculate_live_on_entry): Allocate stack on heap.
9285
9286         * tree-ssa-live.c (build_tree_conflict_graph): Allocate
9287         partition_link and tpa_nodes on heap.
9288
9289         * tree-ssa-dce.c (worklist): Change to VEC(tree,heap).
9290         (mark_stmt_necessary, propagate_necessity,
9291         mark_really_necessary_kill_operand_phis): Update uses of
9292         worklist.
9293         (tree_dce_init): Allocate worklist using VEC_alloc.
9294         (tree_dce_done): Free worklist using VEC_free.
9295
9296 2005-04-23  Mike Stump  <mrs@apple.com>
9297
9298         * config/darwin.c (machopic_indirection_name): Don't use
9299         quotes needlessly.
9300         (darwin_emit_unwind_label): Use user_label_prefix instead of
9301         "_".
9302
9303 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
9304
9305         * final.c, ipa-inline.c, varasm.c: Fix comment typos.
9306
9307 2005-04-23  Hans-Peter Nilsson  <hp@axis.com>
9308
9309         * config.gcc <cris-*>: Specify .opt files.
9310         * config/cris/cris.opt, config/cris/elf.opt, config/cris/aout.opt,
9311         config/cris/linux.opt: New files.
9312         * config/cris/aout.h (CRIS_SUBTARGET_SWITCHES)
9313         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
9314         (TARGET_ELF): Override to 0.
9315         (CRIS_SUBTARGET_HANDLE_OPTION): Override to handle -melinux and
9316         -melinux-stacksize=N.
9317         * config/cris/cris.c: (cris_handle_option): New function.
9318         (TARGET_DEFAULT_TARGET_FLAGS): Override.
9319         (TARGET_HANDLE_OPTION): Override to cris_handle_option.
9320         (cris_override_options): Use MASK_*, not TARGET_MASK_*.
9321         * config/cris/cris.h (TARGET_MASK_SVINTO, TARGET_SVINTO,
9322         (TARGET_MASK_CCINIT, TARGET_CCINIT, TARGET_MASK_PDEBUG)
9323         (TARGET_PDEBUG, TARGET_MASK_SIDE_EFFECT_PREFIXES)
9324         (TARGET_SIDE_EFFECT_PREFIXES, TARGET_MASK_EXPAND_MUL)
9325         (TARGET_EXPAND_MUL, TARGET_MASK_STACK_ALIGN, TARGET_STACK_ALIGN)
9326         (TARGET_MASK_CONST_ALIGN, TARGET_CONST_ALIGN)
9327         (TARGET_MASK_DATA_ALIGN, TARGET_DATA_ALIGN)
9328         (TARGET_MASK_PROLOGUE_EPILOGUE, TARGET_PROLOGUE_EPILOGUE)
9329         (TARGET_MASK_ETRAX4_ADD, TARGET_ETRAX4_ADD)
9330         (TARGET_MASK_ALIGN_BY_32, TARGET_ALIGN_BY_32, TARGET_MASK_ELF)
9331         (TARGET_ELF, TARGET_MASK_LINUX, TARGET_LINUX)
9332         (TARGET_MASK_AVOID_GOTPLT, TARGET_AVOID_GOTPLT)
9333         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG, TARGET_SWITCHES)
9334         (CRIS_SUBTARGET_SWITCHES, TARGET_OPTIONS)
9335         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
9336         (TARGET_LINUX): Define 0.
9337         (TARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
9338         (CRIS_SUBTARGET_DEFAULT): Define to 0, not TARGET_MASK_ELF.
9339         (CRIS_SUBTARGET_DEFAULT): New empty default macro.
9340         * config/cris/linux.h (CRIS_SUBTARGET_SWITCHES): Don't define.
9341         (TARGET_LINUX): Override to 1.
9342         (CRIS_SUBTARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
9343
9344 2005-04-23  Nathan Sidwell  <nathan@codesourcery.com>
9345
9346         * haifa-sched.c (schedule_block): Fix thinko in previous
9347         assertification patch.
9348
9349 2005-04-23  Richard Sandiford  <rsandifo@redhat.com>
9350
9351         * config.gcc (hppa[12]*-*-hpux10*): Add pa/pa-hpux.opt to
9352         $extra_options.  Also add pa/pa-hpux1010.opt for hpux10.[1-9]*.
9353         (hppa*64*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
9354         pa/pa-hpux.opt, pa/pa-hpux1010.opt and pa/pa64-hpux.opt to
9355         $extra_options.  Also add pa/pa-hpux1111.opt for hpux11.[1-9]*.
9356         (hppa[12]*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
9357         pa/pa-hpux.opt to $extra_options.  Also add pa/pa-hpux1111.opt
9358         for hpux11.[1-9]*.
9359         * config/pa/pa.h (architecture_type, rtx_def, pa_arch_string, pa_arch)
9360         (pa_fixed_range_string, pa_cpu_string, pa_unix_string, target_flags)
9361         (MASK_PA_11, MASK_DISABLE_FPREGS, TARGET_DISABLE_FPREGS)
9362         (MASK_NO_SPACE_REGS, TARGET_NO_SPACE_REGS, MASK_JUMP_IN_DELAY)
9363         (TARGET_JUMP_IN_DELAY, MASK_DISABLE_INDEXING, TARGET_DISABLE_INDEXING)
9364         (MASK_PORTABLE_RUNTIME, TARGET_PORTABLE_RUNTIME, MASK_GAS, TARGET_GAS)
9365         (MASK_SOFT_FLOAT, TARGET_SOFT_FLOAT, MASK_LONG_LOAD_STORE)
9366         (TARGET_LONG_LOAD_STORE, MASK_FAST_INDIRECT_CALLS)
9367         (TARGET_FAST_INDIRECT_CALLS, MASK_BIG_SWITCH, TARGET_BIG_SWITCH)
9368         (MASK_PA_20, MASK_SIO, TARGET_SIO, MASK_GNU_LD, TARGET_GNU_LD)
9369         (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_PA_11, TARGET_PA_20)
9370         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS)
9371         (SUBTARGET_OPTIONS): Delete.
9372         (TARGET_PA_10): Redefine in terms of TARGET_PA_11 and TARGET_PA_20.
9373         (TARGET_SCHED_DEFAULT): Define to a PROCESSOR_* enum (PROCESSOR_8000)
9374         instead of a string.
9375         * config/pa/pa.c (pa_arch, pa_arch_string, pa_fixed_range_string)
9376         (pa_cpu_string, pa_unix_string): Delete.
9377         (pa_cpu): Initialize to TARGET_SCHED_DEFAULT.
9378         (flag_pa_unix): Initialize based on TARGET_HPUX_11_11 and
9379         TARGET_HPUX_10_10.
9380         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
9381         (pa_handle_option): New function.
9382         (override_options): Remove handling of -march=, -mfixed-range=,
9383         -mschedule= and -munix=.
9384         * config/pa/pa-hpux.h (SUBTARGET_SWITCHES): Delete.
9385         * config/pa/pa-hpux1010.h (SUBTARGET_OPTIONS): Delete.
9386         * config/pa/pa-hpux10.h (SUBTARGET_OPTIONS): Delete.
9387         * config/pa/pa-hpux1111.h (SUBTARGET_OPTIONS): Delete.
9388         * config/pa/pa-hpux11.h (SUBTARGET_OPTIONS): Delete.
9389         * config/pa/pa64-hpux.h (SUBTARGET_SWITCHES): Delete.
9390         * config/pa/pa64-start.h (TARGET_PA_11, TARGET_PA_20): #undef before
9391         redefining.
9392         * config/pa/pa.opt: New file.
9393         * config/pa/pa-hpux.opt: New file.
9394         * config/pa/pa-hpux1010.opt: New file.
9395         * config/pa/pa-hpux1111.opt: New file.
9396         * config/pa/pa64-hpux.opt: New file.
9397
9398 2005-04-22  David S. Miller  <davem@davemloft.net>
9399
9400         * rtl.h (CONST_DOUBLE): Fix comment, a CONST_DOUBLE holds an
9401         integer when it's mode is VOIDmode not DImode.
9402
9403 2005-04-22  Geoffrey Keating  <geoffk@apple.com>
9404
9405         * config/rs6000/rs6000.md (sync_add<mode>_internal,
9406         sync_addshort_internal, sync_sub<mode>_internal, sync_andsi_internal,
9407         sync_anddi_internal, sync_boolsi_internal, sync_booldi_internal,
9408         sync_boolc<mode>_internal, sync_boolc<mode>_internal2,
9409         sync_boolcc<mode>_internal, sync_lock_test_and_set<mode>): Use
9410         "bne- $-xxx" rather than local labels.
9411         (sync_lock_release<mode>): Add second operand.
9412         (lwsync): Use .long rather than a more meaningful opcode.
9413         * doc/md.texi (Standard Names): Add description of second
9414         parameter to sync_lock_test_and_set.
9415
9416 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
9417
9418         PR tree-optimization/21088
9419         * fold-const.c (fold_unary, fold_binary, fold_ternary):
9420         Export.
9421         * tree-vrp.c (compare_values): Use fold_binary to compare
9422         pointers.  Use boolean_type_node as the type of a comparison
9423         expression being folded.
9424         * tree.h: Add prototypes for fold_unary, fold_binary,
9425         fold_ternary.
9426
9427         * tree-ssa-dom.c: Fix formatting.
9428
9429 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
9430
9431         * Makefile.in (tree-into-ssa.o): Add dependency on PARAMS_H.
9432         * lambda-code.c (perfect_nestify): Mark virtual operands in
9433         the moved statement for renaming.
9434         * params.def (PARAM_MIN_VIRTUAL_MAPPINGS): Define.
9435         (PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
9436         * params.h (MIN_VIRTUAL_MAPPINGS): Define.
9437         (VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
9438         * tree-flow.h (struct var_ann_d): Update comments.
9439         (rewrite_to_new_ssa_names_bb, rewrite_to_new_ssa_names,
9440         allocate_ssa_names, find_phi_node_for, dump_tree_ssa,
9441         debug_tree_ssa, debug_def_blocks, dump_tree_ssa_stats,
9442         debug_tree_ssa_stats, rewrite_ssa_into_ssa,
9443         dump_repl_tbl, debug_repl_tbl, dump_names_replaced_by,
9444         debug_names_replaced_by): Remove declarations.
9445         (delete_update_ssa, get_current_def, set_current_def): Declare.
9446         (rewrite_into_loop_closed_ssa): Add new argument.  Update
9447         all callers.
9448         * tree-into-ssa.c: Include params.h.
9449         (old_virtual_ssa_names): Remove.  Update all users.
9450         (need_to_replace_names_p): Remove.  Update all users.
9451         (struct update_ssa_stats_d): Declare.
9452         (update_ssa_stats): New local.
9453         (dump_tree_ssa, debug_tree_ssa, debug_def_blocks,
9454         dump_tree_ssa_stats, debug_tree_ssa_stats,
9455         dump_update_ssa, debug_update_ssa,
9456         dump_names_replaced_by, debug_names_replaced_by): Declare.
9457         (get_current_def, set current_def): Make extern.
9458         (is_old_name, is_new_name): Protect against references
9459         past the end of the sets.
9460         (add_new_name_mapping): Assert that OLD and NEW are
9461         different SSA names for the same symbol.
9462         When adding a virtual mapping, update stats for virtual
9463         mapping heuristic.
9464         (insert_phi_nodes_for): If UPDATE_P is true, create the
9465         LHS of the new PHI by duplicating SSA name VAR.
9466         (insert_phi_nodes_1): Remove.  Update all users.
9467         (insert_phi_nodes): Remove second argument.  Update all
9468         users.
9469         (maybe_replace_use, maybe_replace_def): New.
9470         (rewrite_update_stmt): Call them.
9471         (mark_def_interesting): Remove calls to is_gimple_reg.
9472         (prepare_phi_args_for_update): Remove.  Update all users.
9473         (prepare_block_for_update): Only process virtual operands
9474         and GIMPLE registers in normal form.
9475         (prepare_use_sites_for): New.
9476         (prepare_names_to_update): Rename from prepare_def_sites.
9477         Call prepare_use_sites_for.
9478         (dump_update_ssa): Rename from dump_repl_tbl.
9479         Update all users.
9480         Show statistics for virtual mapping heuristic.
9481         (debug_update_ssa): Rename from debug_debug_repl_tbl.
9482         (init_update_ssa): Initialize UPDATE_SSA_STATS.
9483         (delete_update_ssa): Make extern.
9484         (mark_set_for_renaming): If the set is empty, do nothing.
9485         (release_ssa_name_after_update_ssa): Update comment.
9486         (insert_updated_phi_nodes_for): Do not remove existing
9487         PHI nodes for symbols.
9488         (switch_virtuals_to_full_rewrite_p): New.
9489         (switch_virtuals_to_full_rewrite): New.
9490         (update_ssa): Call them.
9491         Clear REWRITE_THIS_STMT and REGISTER_DEFS_IN_THIS_STMT
9492         for every statement before updating.
9493         If all the names in NEW_SSA_NAMES have been marked for
9494         removal, do nothing.
9495         Only start at the top of the CFG if there are symbols in
9496         SYMS_TO_RENAME.
9497         (ssa_rewrite_finalize_block): Remove.
9498         (ssa_register_new_def): Remove.
9499         (ssa_rewrite_stmt): Remove.
9500         (ssa_rewrite_phi_arguments): Remove.
9501         (ssa_rewrite_initialize_block): Remove.
9502         (ssa_mark_def_sites): Remove.
9503         (ssa_mark_def_sites_initialize_block): Remove.
9504         (ssa_mark_phi_uses): Remove.
9505         (rewrite_ssa_into_ssa): Remove.
9506         * tree-phinodes.c (find_phi_node_for): Remove.
9507         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
9508         Call update_ssa.
9509         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops):
9510         Remove calls to verify_dominators and
9511         verify_loop_structure.
9512         (tree_unswitch_single_loop): Call update_ssa.
9513         * tree-ssa.c (verify_ssa): Assert that need_ssa_update_p
9514         returns false.
9515         Call verify_stmts.
9516         (delete_tree_ssa): Assert that need_ssa_update_p returns
9517         false.
9518         * tree-vect-transform.c (vect_transform_loop): Call update_ssa.
9519         * tree-vectorizer.c (allocate_new_names, rename_def_op,
9520         free_new_names): Remove.  Update all users.
9521         (rename_use_op): Call get_current_def.
9522         (rename_variables_in_bb): Do not handle any real or
9523         virtual definition.
9524         (slpeel_update_phis_for_duplicate_loop): Call
9525         get_current_def and set_current_def instead of using
9526         SSA_NAME_AUX.
9527         (slpeel_update_phi_nodes_for_guard2): Reformat comments.
9528         (slpeel_can_duplicate_loop_p): Call need_ssa_update_p,
9529         ssa_names_to_replace and delete_update_ssa.
9530         * doc/invoke.texi: Document --param min-virtual-mappings
9531         and --param virtual-mappings-ratio.
9532
9533 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
9534
9535         * tree-cfg.c (tree_duplicate_bb): Call create_new_def_for
9536         for newly created PHI nodes.
9537         Call create_new_def_for for every new V_MAY_DEF and
9538         V_MUST_DEF on the copied statement.
9539         (struct ssa_name_map_entry): Remove.
9540         (ssa_name_map_entry_hash): Remove.
9541         (ssa_name_map_entry_eq): Remove.
9542         (allocate_ssa_names): Remove.
9543         (rewrite_to_new_ssa_names_def): Remove.
9544         (rewrite_to_new_ssa_names_use): Remove.
9545         (rewrite_to_new_ssa_names_bb): Remove.
9546         (rewrite_to_new_ssa_names): Remove.
9547         (tree_duplicate_sese_region): Remove variables ver,
9548         definitions, phi, ssa_name_map and bi.
9549         Call need_ssa_update_p instead of any_marked_for_rewrite_p.
9550         Call update_ssa.
9551         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
9552         update_ssa instead of rewrite_ssa_into_ssa.
9553         * tree-ssa-loop-manip.c (add_exit_phis_edge): Call
9554         create_new_def_for.
9555         (find_uses_to_rename_use): Add argument 'need_phis'.
9556         (find_uses_to_rename_stmt): Do not scan virtual operands.
9557         (find_uses_to_rename): Only scan PHI nodes for
9558         non-virtual names.
9559         (rewrite_into_loop_closed_ssa): Call update_ssa.
9560         (check_loop_closed_ssa_use): Ignore virtual operands.
9561         (check_loop_closed_ssa_stmt): Likewise.
9562         (verify_loop_closed_ssa): Do nothing if CURRENT_LOOPS is
9563         NULL.
9564         (rename_variables, set_phi_def_stmts): Remove.
9565         (tree_duplicate_loop_to_header_edge): Reformat comment.
9566         Remove variables BB, I and DEFINITIONS.
9567         Call need_ssa_update_p.
9568         Call update_ssa.
9569         (lv_adjust_loop_header_phi): Reformat comment.
9570         * tree-ssanames.c (ssa_names_to_rewrite): Remove.
9571         (marked_for_rewrite_p, any_marked_for_rewrite_p,
9572         mark_for_rewrite, unmark_all_for_rewrite,
9573         marked_ssa_names): Remove.  Update all users.
9574         (release_ssa_name): If VAR has been registered for SSA
9575         updating, do nothing.
9576         * tree-vrp.c (new_ssa_names, old_ssa_names): Remove.
9577         (build_assert_expr_for): Call register_new_name_mapping.
9578         (insert_range_assertions): Update call to update_ssa.
9579         * tree.h (mark_for_rewrite, unmark_all_for_rewrite,
9580         marked_for_rewrite_p, any_marked_for_rewrite_p,
9581         marked_ssa_names): Remove.
9582
9583 2005-04-22  Jeff Law  <law@redhat.com>
9584
9585         * tree-ssa-dom.c (block_defs_stack): Remove, no longer needed.
9586         (restore_currdefs_to_original_value): Likewise.
9587         (register_definitions_for_stmt): Likewise.
9588         (tree_ssa_dominator_optimize): No longer initialize CURRENT_DEF
9589         for each variable.  Do not allocate/free block_defs_stack either.
9590         Do not iterate if we just thread jumps.  Only iterate if the
9591         tree_cleanup_cfg does useful work (temporary).
9592         (dom_opt_initialize_block): No longer push a marker on
9593         BLOCK_DEFS_STACK.
9594         (dom_opt_finalize_block): Removal call to restore currdefs.
9595         Relax restrictions for recording edge equivalences.
9596         (record_equivalences_from_phis): No longer need to track
9597         CURRENT_DEF.
9598         (optimize_stmt): Similarly.
9599         (thread_across_edge): Simplify by removing the requirement that
9600         statements in the block we are threading through must be nops.
9601         (initialize_hash_element): Handle GOTO_EXPR.
9602
9603 2005-04-22  David S. Miller  <davem@davemloft.net>
9604
9605         * sched-vis.c (print_value): Use CONST_DOUBLE_LOW and
9606         CONST_DOUBLE_HIGH.
9607         * config/sparc/sparc.c (sparc_rtx_costs): Likewise, and
9608         fix check on CONST_DOUBLE mode.  It should be VOIDmode
9609         when it is representing an integer.
9610
9611 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
9612
9613         * builtins.c (gimplify_va_arg_expr): Reword comments to avoid
9614         'abort'. Use gcc_assert and gcc_unreachable as appropriate.
9615         * c-format.c (get_constant, decode_format_attr, get_flag_spec,
9616         find_char_info_specifier_index,
9617         find_length_info_modifier_index): Likewise.
9618         * c-typeck.c (composite_type, pop_init_level): Likewise.
9619         * combine.c (cant_combine_insn_p, try_combine): Likewise.
9620         * cse.c (cse_insn): Likewise
9621         * dominance.c (calc_dfs_tree): Likewise
9622         dwarf2out.c (loc_descriptor_from_tree_1,
9623         add_abstract_origin_attribute, force_decl_die,
9624         force_type_die): Likewise
9625         emit-rtl.c (operand_subword_force): Likewise
9626         explow.c (hard_function_value): Likewise
9627         expmed.c (store_bit_field, expand_divmod,
9628         emit_store_flag_force): Likewise
9629         expr.c (emit_move_multi_word, store_expr,
9630         expand_expr_real_1): Likewise
9631         final.c (this_is_asm_operands, shorten_branches, final_scan_insn,
9632         output_operand): Likewise
9633         flow.c (recompute_reg_usage): Likewise
9634         * function.c (assign_stack_temp_for_type, assign_temp,
9635         handle_epilogue_set): Likewise
9636         * genextract.c (main): Likewise
9637         * gimplify.c (mostly_copy_tree_r, gimplify_return_expr,
9638         gimplify_modify_expr_rhs, gimplify_expr): Likewise
9639         * haifa-sched.c (ready_lastpos, ready_remove_first, ready_element,
9640         ready_remove, rm_line_notes, rm_other_notes,
9641         schedule_block): Likewise
9642         mips-tfile.c (copy_object, out_of_bounds): Likewise
9643
9644 2005-04-22 David Edelsohn  <edelsohn@gnu.org>
9645
9646         PR target/20813
9647         * config/rs6000/default64.h (TARGET_DEFAULT): Add MASK_PPC_GFXOPT.
9648         * config/rs6000/rs6000.c (processor_target_table): Rename rs64a to
9649         rs64.  Add MASK_PPC_GFXOPT to powerpc64 and rs64.
9650         (rs6000_init_libfuncs): Set TFmode optabs to xlq names if
9651         TARGET_XL_COMPAT.
9652         * doc/invoke.texi (PowerPC options): Change rs64a to rs64.
9653
9654 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
9655
9656         * lambda-code.c: Define VEC(int,heap), VEC(lambda_loop,heap).
9657         (gcc_tree_to_linear_expression): Convert to heap allocated
9658         vectors.
9659         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
9660         lbv_to_gcc_expression, lle_to_gcc_expression,
9661         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
9662         perfect_nestify): Likewise.
9663         lambda.h (gcc_loopnest_to_lambda_loopnest,
9664         lambda_loopnest_to_gcc_loopnest): Likewise.
9665         tree-loop-linear.c (linear_transform_loops): Likewise.
9666
9667 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
9668
9669         * config/sparc/predicates.md (arith_double_operand): Use
9670         trunc_int_for_mode if HOST_BITS_PER_WIDE_INT >=64.
9671         * config/sparc/sparc.md (movqi, movhi, movsi, movqi): Use gen_int_mode.
9672         (DImode, DFmode constant splitters): Likewise.  Remove code for
9673         TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT < 64.
9674         (logical constant splitters): Use const_int_operand predicate.
9675         (lshrsi3_extend): Remove code for TARGET_ARCH64 &&
9676         HOST_BITS_PER_WIDE_INT < 64.
9677
9678 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
9679
9680         * config/pa/pa.c (legitimize_pic_address): Use gcc_assert and
9681         gcc_unreachable as appropriate.
9682         (force_mode, emit_move_sequence, singlemove_string,
9683         output_move_double, output_fp_move_double, find_addr_reg,
9684         output_block_move, output_block_clear, output_and,
9685         output_64bit_and, output_ior, output_64bit_ior, store_reg_modify,
9686         pa_adjust_cost, pa_issue_rate, print_operand,
9687         output_global_address, output_arg_descriptor, output_cbranch,
9688         output_lbranch, output_bb, output_bvb, output_dbra, output_movb,
9689         output_call): Likewise.
9690         * config/pa/pa.md (call, call_value, sibcall, sibcall_value,
9691         prefetch, prefetch_cc, prefetch_nocc): Likewise.
9692
9693 2005-04-22  Zdenek Dvorak  <dvorakz@suse.cz>
9694
9695         * Makefile.in (LIBGCOV): Add _gcov_interval_profiler,
9696         _gcov_pow2_profiler and _gcov_one_value_profiler.
9697         (tree-profile.o): Add GGC_H and gt-tree-profile.h dependency.
9698         (GTFILES): Add $(srcdir)/tree-profile.c.
9699         * gcov-io.h (__gcov_interval_profiler, __gcov_pow2_profiler,
9700         __gcov_one_value_profiler): Declare.
9701         * gimplify.c (force_gimple_operand): Check whether the statements
9702         should be produced in ssa form.
9703         (force_gimple_operand_bsi): New function.
9704         * libgcov.c (__gcov_interval_profiler, __gcov_pow2_profiler,
9705         __gcov_one_value_profiler): New functions.
9706         * rtl-profile.c (rtl_gen_pow2_profiler): Only measure whether
9707         the profiled value is a power of two or not.
9708         * tree-cfg.c (tree_block_ends_with_condjump_p): Handle empty blocks.
9709         * tree-flow.h (in_ssa_p): Declare.
9710         (force_gimple_operand_bsi): Declare.
9711         * tree-into-ssa.c (in_ssa_p): New variable.
9712         (rewrite_into_ssa): Set in_ssa_p.
9713         * tree-outof-ssa.c (rewrite_out_of_ssa): Set in_ssa_p.
9714         * tree-profile.c: Include ggc.h and gt-tree-profile.h.
9715         (gcov_type_node, tree_interval_profiler_fn, tree_pow2_profiler_fn,
9716         tree_one_value_profiler_fn): New variables.
9717         (tree_init_edge_profiler): Initialize the profiler function decls.
9718         (tree_gen_edge_profiler): Use global gcov_type_node.
9719         (prepare_instrumented_value): New function.
9720         (tree_gen_interval_profiler, tree_gen_interval_profiler,
9721         tree_gen_one_value_profiler): Call the library functions instead of
9722         creating instrumentation code.
9723         * tree.c (build_fn_decl): New function.
9724         * tree.h (build_fn_decl): Declare.
9725         * value-prof.c (rtl_divmod_values_to_profile,
9726         rtl_find_values_to_profile, rtl_mod_pow2_value_transform,
9727         tree_mod_pow2_value_transform, tree_find_values_to_profile):
9728         Do not handle may_be_other and precise values of exponents at pow2
9729         profiler.
9730         (tree_mod_subtract_transform): Reflect that value field of
9731         histogram has changed meaning.
9732         (tree_divmod_values_to_profile): Record the values correctly.
9733         (tree_values_to_profile): Update comment.
9734         * value-prof.h (struct histogram_value_t): Remove pow2 data.
9735
9736 2005-04-22  Joseph S. Myers  <joseph@codesourcery.com>
9737
9738         * varasm.c (do_assemble_alias): Return early if TREE_ASM_WRITTEN
9739         (decl).
9740
9741 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
9742
9743         * config/i386/i386.md (length_immediate): Use gcc_assert or
9744         gcc_unreachable, as appropriate.
9745         (*movsi_1, *movqi_1, reload_outqi, *movdi_1_rex64, *pushsf,
9746         *pushsf_rex64, *truncxfsf2_mixed, *truncxfsf2_i387,
9747         *truncxfdf2_mixed, *truncxfdf2_i387, *adddi_1_rex64,
9748         *adddi_2_rex64, *adddi_3_rex64, *adddi_4_rex64, *adddi_5_rex64,
9749         *addsi_1, addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
9750         *addsi_3_zext, *addsi_4, *addsi_5, *addhi_1_lea, *addhi_1,
9751         *addhi_2, *addhi_3, *addhi_4, *addhi_5, *addqi_1_lea, *addqi_1,
9752         *addqi_1_slp, *addqi_2, *addqi_3, *addqi_4, *addqi_5, addqi_ext_1,
9753         *addqi_ext_1_rex64, *anddi_1_rex64, *andsi_1, *andhi_1,
9754         *ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashlsi3_1, *ashlsi3_1_zext,
9755         *ashlsi3_cmp, *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1,
9756         *ashlhi3_cmp, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
9757         pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64,
9758         pro_epilogue_adjust_stack_rex64_2, prefetch, *prefetch_sse,
9759         *prefetch_sse_rex): Likewise.
9760         * config/i386/predicates.md (x86_64_immediate_operand,
9761         x86_64_zext_immediate_operand, symbolic_operand,
9762         no_seg_address_operand, aligned_operand,
9763         memory_displacement_operand): Likewise.
9764         * config/i386/sse.md (*mov<mode>_internal,
9765         *movv2df_internal): Likewise.
9766
9767 2005-04-22  Jan Hubicka  <jh@suse.cz>
9768
9769         * Makefile.in (ipa.o, ipa-inline.o): New files.
9770         * cgraph.h (cgraph_remove_unreachable_nodes, cgraph_postorder,
9771         cgraph_decide_inlining_incrementally, cgraph_clone_inlined_nodes,
9772         cgraph_mark_inline_edge, cgraph_default_inline_p): Declare.
9773         * cgraphunit.c (cgraph_default_inline_p,
9774         cgraph_decide_inlining_incrementally,  ncalls_inlined,
9775         nfunctions_inlined, initial_insns, overall_insns,
9776         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
9777         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
9778         cgraph_mark_inline, cgraph_check_inline_limits,
9779         cgraph_default_inline_p, cgraph_recursive_inlining_p,
9780         update_callee_keys, lookup_recursive_calls,
9781         cgraph_decide_recursive_inlining, cgraph_set_inline_failed,
9782         cgraph_decide_inlining_of_small_functions, cgraph_decide_inlining,
9783         cgraph_decide_inlining_incrementally, cgraph_gate_inlining,
9784         pass_ipa_inline): Move to ipa-inline.c
9785         (cgraph_postorder, cgraph_remove_unreachable_nodes): Move to ipa.c
9786         * ipa.c: New file.
9787         * ipa-inline.c: New file.
9788
9789 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
9790
9791         * doc/invoke.texi (SPARC options): Document that -mapp-regs
9792         is turned off by default on Solaris.
9793
9794 2005-04-21  Roger Sayle  <roger@eyesopen.com>
9795
9796         * c-common.h (objc_build_method_signature): Update prototype.
9797         * stub-objc.c (objc_build_method_signature): Update the stub
9798         implementation to accept and ignore additional parameter.
9799         * c-parser.c (c_parser_objc_method_decl): Reorgnize to pass
9800         the value of ellipsis to objc_build_method_signature instead
9801         of setting TREE_OVERFLOW on the parms TREE_LIST node.
9802
9803 2005-04-21  Geoffrey Keating  <geoffk@apple.com>
9804
9805         * config/rs6000/rs6000-protos.h (rs6000_emit_sync): New.
9806         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Use
9807         gen_rtx_* not gen_rtx_fmt_*.
9808         (rs6000_emit_vector_select): Likewise.
9809         (rs6000_emit_sync): New.
9810         * config/rs6000/rs6000.md (GPR, INT, INT1): New mode macros.
9811         (larx, stcx, cmp): New mode substitutions.
9812         (UNSPEC_SYNC, UNSPEC_SYNC_OP, UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC,
9813         UNSPEC_ISYNC): New constants.
9814         (rlwinm): Give name.
9815         (memory_barrier, isync, lwsync): New insns.
9816         (sync_compare_and_swap<mode>, sync_lock_test_and_set<mode>): New insn.
9817         (sync_lock_release<mode>): New expander.
9818         (sync_add<mode>, sync_sub<mode>, sync_ior<mode>, sync_and<mode>,
9819         sync_xor<mode>, sync_nand<mode>, sync_old_add<mode>,
9820         sync_old_sub<mode>, sync_old_ior<mode>, sync_old_and<mode>,
9821         sync_old_xor<mode>, sync_old_nand<mode>, sync_new_add<mode>,
9822         sync_new_sub<mode>, sync_new_ior<mode>, sync_new_and<mode>,
9823         sync_new_xor<mode>, sync_new_nand<mode>): New expanders.
9824         (sync_add<mode>_internal, sync_addshort_internal,
9825         sync_sub<mode>_internal, sync_andsi_internal, sync_anddi_internal,
9826         sync_boolsi_internal, sync_booldi_internal, sync_boolc<mode>_internal,
9827         sync_boolc<mode>_internal2, sync_boolcc<mode>_internal): New insns.
9828
9829         * doc/md.texi (Standard Names): sync_compare_and_swap's operand 0
9830         is the memory before, not after, the operation.  Clarify
9831         barrier requirements.
9832
9833 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
9834
9835         * cfghooks.h (struct cfg_hooks): Reword comments to avoid 'abort'.
9836         * lambda.h (lambda_vector_min_nz): Likewise.
9837         * langhooks.h (struct lang_hooks_for_types,
9838         struct lang_hooks): Likewise.
9839         * output.h (assemble_integer, this_is_asm_operands): Likewise.
9840         * tree.h: Likewise.
9841         * vec.h: Likewise.
9842         * tree-flow-inline.h (relink_imm_use): Use gcc_assert.
9843
9844         * optabs.c (prepare_cmp_insn, emit_cmp_and_jump_insns): Reword
9845         comments to avoid 'abort'.  Use gcc_assert as necessary.
9846         * opts.c (common_handle_option): Likewise.
9847         * pretty-print.c (pp_base_format_text): Likewise.
9848         * print-rtl.c (print_rtx): Likewise.
9849         * read-rtl.c (read_rtx_filename, read_rtx_1): Likewise.
9850         * regmove.c (try_auto_increment): Likewise.
9851         * reload.c (find_valid_class, find_reloads_toplev,
9852         find_equiv_reg): Likewise.
9853         * reload1.c (reload, forget_old_reloads_1, function_invariant_p,
9854         merge_assigned_reloads): Likewise.
9855         * tree-inline.c (inline_forbidden_p_1,
9856         estimate_num_insns_1): Likewise.
9857         * tree-optimize.c (execute_todo): Likewise.
9858         * tree-outof-ssa.c (eliminate_phi): Likewise.
9859         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
9860         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Likewise.
9861         * tree-ssa-operands.c (parse_ssa_operands,
9862         get_indirect_ref_operands, create_ssa_artficial_load_stmt): Likewise.
9863         * tree-ssa-pre.c (find_or_generate_expression): Likewise.
9864         * tree-ssanames.c (release_ssa_name): Likewise.
9865         * tree.c (int_bit_position, int_byte_position, tree_low_cst,
9866         walk_tree): Likewise.
9867
9868         * tree-ssa-operands.c (verify_abort): Fold into ..
9869         (verify_imm_links): ... here.
9870
9871 2005-04-21  Richard Henderson  <rth@redhat.com>
9872
9873         * config/alpha/sync.md (sync_new_nand<I48MODE>): Fix constraints
9874         on non-memory operand for previous inversion.
9875
9876 2005-04-21  Devang Patel  <dpatel@apple.com>
9877
9878         PR optimization/20994
9879         * tree-if-conv.c (find_phi_replacement_condition): Avoid generating
9880         x = !(a == b) : p , q;.
9881         (pass_if_conversion): Verify stmts and flow.
9882
9883 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
9884
9885         * optabs.c (gen_conditional_trap): Restore #define.
9886
9887         * alias.c (true_dependence): Remove 'abort' from comments. Use
9888         gcc_assert and gcc_unreachable as appropriate.
9889         (canon_true_dependence): Likewise.
9890         * bb-reorder.c (connect_traces): Likewise.
9891         * c-common.c (c_add_case_label): Likewise.
9892         * c-decl.c (finish_function): Likewise.
9893         * caller-save.c (insert_restore, insert_save): Likewise.
9894         * cfg.c (update_bb_profile_for_threading): Likewise.
9895         * cfganal.c (flow_active_insn_p): Likewise.
9896         * cfgexpand.c (add_reg_br_prob_note): Likewise.
9897         * cfgrtl.c (rtl_redirect_edge_and_branch_force, rtl_split_edge,
9898         cfg_layout_merge_blocks): Likewise.
9899         * ifcvt.c (cond_exec_process_insns, merge_if_block,
9900         find_if_block): Likewise.
9901         * integrate.c (allocate_initial_values): Likewise.
9902         * jump.c (reverse_condition, reverse_condition_maybe_unordered,
9903         swap_condition, unsigned_condition, signed_condition,
9904         mark_jump_label, invert_jump_1, rtx_renumbered_equal_p,
9905         reg_or_subregno): Likewise.
9906         * lambda-code.c (lambda_compute_auxillary_space,
9907         lambda_transform_legal_p): Likewise.
9908         * lambda-mat.c (lambda_matrix_inverse_hard): Likewise.
9909         * langhooks.c (lhd_set_decl_assembler_name, lhd_type_promotes_to,
9910         lhd_incomplete_type_error, lhd_expand_expr,
9911         lhd_types_compatible_p, lhd_tree_size): Likewise.
9912         * lcm.c (create_pre_exit, optimize_mode_switching): Likewise.
9913         * local-alloc.c (update_equiv_regs): Likewise.
9914         * loop-unroll.c (peel_loop_completely
9915         unroll_loop_constant_iterations, unroll_loop_runtime_iterations,
9916         peel_loop_simple, unroll_loop_stupid,
9917         analyze_iv_to_split_insn): Likewise.
9918         * loop.c (gen_prefetch, find_and_verify_loops,
9919         basic_induction_var): Likewise.
9920         * modulo-sched.c (normalize_sched_times, check_nodes_order): Likewise.
9921         * value-prof.c (tree_find_values_to_profile): Likewise.
9922         * varasm.c (named_section, default_assemble_integer,
9923         decode_addr_const): Likewise.
9924
9925 2005-04-21 Alan Modra  <amodra@bigpond.net.au>
9926            Fariborz Jahanian <fjahanian@apple.com>
9927
9928         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Fix size of
9929         portion of argument passed in fpr.
9930         * expr.c (emit_push_insn): Fix computation of 'offset' used to
9931         decide on partial argument save on stack.
9932
9933 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
9934
9935         * config/sparc/predicates.md, config/sparc/sparc.md: Fix
9936         comment typos.
9937
9938 2005-04-21  Jan Hubicka  <jh@suse.cz>
9939
9940         * cgraphunit.c: Include tree-pass.h
9941         (cgraph_decide_recursive_inlining,
9942         cgraph_decide_inlining_of_small_function, cgraph_set_inline_failed,
9943         cgraph_decide_inlining): Dump goes to dump_file.
9944         (cgraph_optimize): Call ipa passes instead of inliner.
9945         (cgraph_gate_inlining, pass_ipa_inline): New.
9946         * tree-optimize.c (all_ipa_passes): New static variable.
9947         (register_one_dump_file): Dead with IPA passes.
9948         (register_dump_files): Likewise.
9949         (init_tree_optimization_passes): Initialize IPA passes.
9950         (execute_todo): Do cgraph dump when asked to, do not dump function body
9951         for IPA pass.
9952         * tree-pass.h (TODO_dump_cgraph): New macro.
9953         (ipa_passes): Declare.
9954         * Makefile.in (cgraphunit.o): Add dependency on cgraphunit.h
9955
9956 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
9957
9958         * config/i386/i386.c (type_natural_mode): Use gcc_unreachable and
9959         gcc_assert instead of abort.
9960         (classify_argument, examine_argument, construct_container,
9961         contains_128bit_aligned_vector_p, ix86_check_movabs,
9962         standard_80387_constant_opcode, standard_80387_constant_rtx,
9963         ix86_initial_elimination_offset, ix86_compute_frame_layout,
9964         pro_epilogue_adjust_stack, ix86_expand_epilogue,
9965         ix86_address_cost, legitimate_address_p, legitimize_pic_address,
9966         legitimize_tls_address, output_pic_addr_const,
9967         i386_output_dwarf_dtprel, put_condition_code, print_reg,
9968         get_some_local_dynamic_name, print_operand, print_operand_address,
9969         output_387_binary_op, emit_i387_cw_initialization,
9970         output_fix_trunc, output_fp_compare, ix86_output_addr_vec_elt,
9971         ix86_expand_clear, ix86_expand_binary_operator,
9972         ix86_expand_unary_operator, ix86_match_ccmode, ix86_cc_mode,
9973         ix86_cc_modes_compatible, ix86_fp_comparison_codes,
9974         ix86_fp_comparison_arithmetics_cost, ix86_expand_fp_compare,
9975         ix86_expand_branch, ix86_expand_setcc,
9976         ix86_expand_carry_flag_compare, ix86_expand_fp_movcc,
9977         ix86_expand_int_addcc, ix86_split_to_parts, ix86_split_long_move,
9978         ix86_expand_movmem, ix86_expand_call, assign_386_stack_local,
9979         memory_address_length, ix86_attr_length_immediate_default,
9980         ix86_attr_length_address_default, ix86_agi_dependant,
9981         x86_initialize_trampoline, ix86_init_mmx_sse_builtins,
9982         ix86_expand_binop_builtin, ix86_force_to_memory,
9983         ix86_secondary_memory_needed, ix86_avoid_jump_misspredicts,
9984         x86_emit_floatuns): Likewise.
9985         * config/i386/netware.c (gen_regparm_prefix,
9986         i386_nlm_strip_name_encoding): Likewise.
9987         * config/i386/winnt.c (i386_pe_mark_dllexport): Likewise.
9988
9989 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
9990
9991         * optabs.c (gen_condiational_trap): Remove #define.
9992         (add_equal_note): Assertify. Remove explicit indirection from
9993         call via function pointer.
9994         (expand_ternary_op, expand_simple_binop, expand_binop,
9995         expand_twoval_unop, expand_twoval_binop,
9996         expand_twoval_binop_libfunc, expand_simple_unop expand_unop,
9997         emit_unop_insn,  emit_no_conflict_block,  prepare_cmp_insn,
9998         prepare_operand emit_cmp_and_jump_insn_1, emit_cmp_and_jump_insns,
9999         prepare_float_lib_cmp, emit_conditional_move,
10000         emit_conditional_add, gen_add2_insn, gen_add3_insn,
10001         have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn,
10002         expand_float, expand_fix, debug_optab_libfuncs, gen_cond_trap,
10003         vector_compare_rtx, expand_vec_cond_expr): Likewise.
10004
10005 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
10006
10007         * vec.h: Update API to separate allocation mechanism from type.
10008         (VEC_safe_grow): New.
10009         * vec.c (calculate_allocation): New.
10010         (vec_gc_o_reserve, vec_heap_o_reserve): Adjust.
10011         (vec_gc_free, vec_heap_free): Remove.
10012         * gengtype-lex.l (DEF_VEC_): Process mult-argument macros.  Adjust.
10013         (VEC): Likewise.
10014         (mangle_macro_name): New.
10015         (struct macro_def): New.
10016         (struct macro): Add multiple argument values.
10017         (macro_expans_end): New.
10018         (push_macro_expansion):  Chain on new macro. Process multiple
10019         args, create follow on expansion. Return follow on argument.
10020         (macro_input): Deal with multiple arguments.
10021
10022         * tree.h: Define VEC(tree,heap) and VEC(tree,gc).
10023         (struct tree_binfo): Adjust.
10024         * basic-block.h: Define VEC(edge,gc).
10025         (struct edge_def): Adjust.
10026         (struct basic_block_def, struct edge_iterator): Likewise.
10027         (ei_container, ei_start_1, ei_last_1): Likewise.
10028         * cfg.c (connect_src, connect_dest): Likewise.
10029         * cfgrtl.c (force_nonfallthru_and_redirect)
10030         * dbxout.c (dbxout_type)
10031         * dwarf2out.c (gen_member_die)
10032         * lambda-code.c: Define VEC(int,gc), VEC(lambda_loop,gc).
10033         (gcc_tree_to_linear_expression): Adjust.
10034         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
10035         lbv_to_gcc_expression, lle_to_gcc_expression,
10036         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
10037         perfect_nestify): Likewise.
10038         * lambda.h (gcc_loopnest_to_lambda_loopnest,
10039         lambda_loopnest_to_gcc_loopnest): Adjust prototypes.
10040         * profile.c (instrument_values): Adjust.
10041         * tree-cfg.c (modified_noreturn_calls): Adjust.
10042         (remove_fallthru_edge): Likewise.
10043         * tree-dump.c (dequeue_and_dump): Adjust.
10044         * tree-flow-inline.h (mark_stmt_modified): Adjust.
10045         * tree-flow.h (modified_noreturn_calls): Adjust.
10046         (tree_on_heap): Remove. (yay!)
10047         (register_new_def): Adjust.
10048         * tree-into-ssa.c: Define VEC(int,heap).
10049         (block_defs_stack): Adjust.
10050         (find_idf, insert_phi_nodes, register_new_def,
10051         rewrite_initialize_block, rewrite_finalize_block,
10052         register_new_update_single, rewrite_update_init_block,
10053         rewrite_update_fini_block, rewrite_blocks,
10054         ssa_rewrite_finalize_block, ssa_register_new_def,
10055         ssa_rewrite_initialize_block, rewrite_ssa_into_ssa): Likewise.
10056         * tree-loop-linear.c (linear_transform_loops): Adjust.
10057         * tree-ssa-alias.c: Define VEC(fieldoff_t,heap).
10058         (push_fields_onto_fieldstack, create_overlap_variables_for): Adjust.
10059         * tree-ssa-dom.c (avail_exprs_stack, block_defs_stack,
10060         stmts_to_rescan, const_and_copies_stack, nonzero_vars_stack,
10061         vrp_variables_stack): Adjust declarations.
10062         (tree_ssa_dominator_optimize): Adjust.
10063         (dom_opt_initialize_block, remove_local_expressions_from_table,
10064         restore_nonzero_vars_to_original_value,
10065         restore_vars_to_original_value,
10066         restore_currdefs_to_original_value, dom_opt_finalize_block,
10067         record_var_is_nonzero, record_cond, record_const_or_copy_1,
10068         optimize_stmt, update_rhs_and_lookup_avail_expr,
10069         lookup_avail_expr, record_range): Likewise.
10070         * tree-ssa-pre.c: Define VEC(basic_block,heap).
10071         (compute_antic_aux): Adjust.
10072         (inserted_exprs, create_expression_by_pieces,
10073         insert_into_preds_of_block, eliminate, mark_operand_necessary,
10074         remove_dead_inserted_code, fini_pre): Likewise.
10075         * tree-ssa-propagate.c (interesting_ssa_edges): Adjust.
10076         (varying_ssa_edges, add_ssa_edge, process_ssa_edge_worklist.
10077         ssa_prop_init): Likewise.
10078         * tree-ssa.c: Define VEC(bitmap,heap).
10079         (verify_name_tags): Adjust.
10080         * value-prof.c (rtl_divmod_values_to_profile): Adjust.
10081         (insn_prefetch_values_to_profile, rtl_find_values_to_profile,
10082         tree_divmod_values_to_profile, tree_find_values_to_profile,
10083         value_profile_transformations): Likewise.
10084         * value-prof.h: Define VEC(histogram_value,heap).
10085         * varasm.c: Remove alias_pair pointer typedef, define
10086         VEC(alias_pair,gc).
10087         (finish_aliases_1, finish_aliases_2, assemble_alias): Adjust.
10088
10089         * config/pa/pa.c (typedef extern_symbol): Typedef the structure,
10090         not a pointer to it.  Create an object vector.
10091         (extern_symbols): Turn into an object vector.
10092         (pa_hpux_asm_output_external, pa_hpux_file_end): Adjust.
10093
10094 2005-04-21  Sebastian Pop  <pop@cri.ensmp.fr>
10095
10096         PR/20742
10097         * Makefile.in (tree-chrec.o): Depend on params.h.
10098         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): New parameter with
10099         default value 20.
10100         * tree-chrec.c: Depend on params.h.  Replace build with buildN,
10101         and fold build with fold_buildN.
10102         (chrec_fold_plus_1): Fail with a chrec_don_know when the size of
10103         the expression exceeds PARAM_SCEV_MAX_EXPR_SIZE.
10104         (tree_contains_chrecs): Compute an estimation of the size of the
10105         given expression.
10106         * tree-chrec.h (tree_contains_chrecs): Modify its declaration.
10107         (tree_does_not_contain_chrecs): Update the use of tree_contains_chrecs.
10108         * tree-scalar-evolution.c (simple_iv): Ditto.
10109         * doc/invoke.texi (scev-max-expr-size): Documented.
10110
10111 2005-04-21  Richard Sandiford  <rsandifo@redhat.com>
10112
10113         * config.gcc (*-*-darwin*): Add darwin.opt to $extra_options.
10114         (i[34567]86-pc-msdosdjgpp*): Likewise i386/djgpp.opt.
10115         (i[34567]86-*-lynxos*, powerpc-*-lynxos*): Likewise lynx.opt.
10116         (i[34567]86-*-sco3.2v5*): Likewise i386/sco5.opt.
10117         (i[34567]86-*-pe, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10118         (i[34567]86-*-uwin*): Likewise i386/cygming.opt.
10119         * config/darwin.h (darwin_one_byte_bool, darwin_fix_and_continue)
10120         (darwin_fix_and_continue_switch, SUBTARGET_OPTIONS): Delete.
10121         * config/darwin.c (darwin_one_byte_bool, darwin_fix_and_continue)
10122         (darwin_fix_and_continue_switch): Delete.
10123         * config/lynx.h (SUBTARGET_OS_LYNX_SWITCHES): Delete.
10124         (SUBTARGET_SWITCHES): Delete.
10125         * config/i386/i386.h (target_flags, MASK_80387, MASK_RTD)
10126         (MASK_ALIGN_DOUBLE, MASK_SVR3_SHLIB, MASK_IEEE_FP, MASK_FLOAT_RETURNS)
10127         (MASK_NO_FANCY_MATH_387, MASK_OMIT_LEAF_FRAME_POINTER)
10128         (MASK_STACK_PROBE, MASK_NO_ALIGN_STROPS, MASK_INLINE_ALL_STROPS)
10129         (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS, MASK_MMX)
10130         (MASK_SSE, MASK_SSE2, MASK_SSE3, MASK_3DNOW, MASK_3DNOW_A)
10131         (MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT)
10132         (MASK_TLS_DIRECT_SEG_REFS, MASK_NO_RED_ZONE, TARGET_80387)
10133         (TARGET_RTD, TARGET_ALIGN_DOUBLE, TARGET_PUSH_ARGS)
10134         (TARGET_ACCUMULATE_OUTGOING_ARGS, TARGET_SVR3_SHLIB, TARGET_IEEE_FP)
10135         (TARGET_128BIT_LONG_DOUBLE, TARGET_NO_FANCY_MATH_387)
10136         (TARGET_USE_FANCY_MATH_387, TARGET_OMIT_LEAF_FRAME_POINTER)
10137         (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Delete.
10138         (TARGET_FLOAT_RETURNS_IN_80387): Make an alias of TARGET_FLOAT_RETURNS.
10139         (TARGET_64BIT): Undef before redefining.
10140         (TARGET_TLS_DIRECT_SEG_REFS, TARGET_STACK_PROBE)
10141         (TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS, TARGET_SSE)
10142         (TARGET_SSE2, TARGET_SSE3, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A)
10143         (TARGET_RED_ZONE, TARGET_USE_MS_BITFIELD_LAYOUT, TARGET_SWITCHES)
10144         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS)
10145         (ix86_fpmath_string, ix86_tls_dialect_string, ix86_cmodel_string)
10146         (ix86_asm_string, ix86_regparm, ix86_regparm_string)
10147         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
10148         (ix86_debug_arg_string, ix86_debug_addr_string)
10149         (ix86_align_loops_string, ix86_align_jumps_string)
10150         (ix86_align_funcs_string): Delete.
10151         * config/i386/cygming.h (MASK_NOP_FUN_DLLIMPORT)
10152         (TARGET_NOP_FUN_DLLIMPORT, SUBTARGET_SWITCHES): Delete.
10153         * config/i386/djgpp.h (MASK_BNU210, SUBTARGET_SWITCHES): Delete.
10154         (SUBTARGET_OVERRIDE_OPTIONS): Check TARGET_BNU210.
10155         * config/i386/lynx.h (SUBTARGET_SWITCHES): Delete.
10156         * config/i386/sco5.h (MASK_COFF, TARGET_ELF)
10157         (SUBTARGET_SWITCHES): Delete.
10158         * config/i386/i386.c (ix86_debug_arg_string): Delete.
10159         (ix86_debug_addr_string): Delete.
10160         (ix86_cmodel_string, ix86_asm_string, ix86_tls_dialect_string)
10161         (ix86_fpmath_string, ix86_regparm_string, ix86_regparm)
10162         (ix86_align_loops_string, ix86_align_jumps_string)
10163         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
10164         (ix86_align_funcs_string): Make static.
10165         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
10166         (ix86_handle_option): New function.
10167         (TARGET_USE_MS_BITFIELD_LAYOUT): Delete.
10168         (ix86_ms_bitfield_layout_p): Check TARGET_MS_BITFIELD_LAYOUT.
10169         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove handling
10170         of darwin_fix_and_continue_switch.
10171         (darwin_one_byte_bool): Delete.
10172         * config/rs6000/lynx.h (EXTRA_SUBTARGET_SWITCHES): Delete.
10173         * config/rs6000/rs6000.c (rs6000_override_options): Update assignment
10174         to darwin_one_byte_bool.
10175         * config/darwin.opt, config/lynx.opt, config/i386/cygming.opt,
10176         * config/i386/djgpp.opt, config/i386/i386.opt,
10177         * config/i386/sco5.opt: New files.
10178
10179 2005-04-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
10180
10181         * config/sparc/sparc.c (reg_or_0_operand, const1_operand,
10182         fp_zero_operand, fp_register_operand, intreg_operand,
10183         fcc_reg_operand, fcc0_reg_operand, icc_or_fcc_reg_operand,
10184         call_operand, call_operand_address, tgd_symbolic_operand,
10185         tld_symbolic_operand, tie_symbolic_operand, tle_symbolic_operand,
10186         symbolic_operand, symbolic_memory_operand, label_ref_operand,
10187         sp64_medium_pic_operand, data_segment_operand,
10188         text_segment_operand, splittable_symbolic_memory_operand,
10189         reg_or_nonsymb_mem_operand, splittable_immediate_memory_operand,
10190         eq_or_neq, normal_comp_operator, noov_compare_op,
10191         noov_compare64_op, v9_regcmp_op, extend_op, cc_arithop,
10192         cc_arithopn, arith_operand, arith_4096_operand, arith_add_operand,
10193         const64_operand, const64_high_operand, arith11_operand,
10194         arith10_operand, arith_double_operand, arith_double_4096_operand,
10195         arith_double_add_operand, arith11_double_operand,
10196         arith10_double_operand, small_int, small_int_or_double,
10197         uns_small_int, uns_arith_operand, clobbered_register,
10198         input_operand, compare_operand): Delete.
10199         (sparc_emit_set_const32): Use predicates in assertion.  Remove special
10200         code for TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT != 64.
10201         (sparc_emit_set_const64): Call gcc_unreachable if H_B_P_W_I == 32.
10202         (GEN_HIGHINT64, GEN_INT64): Delete.
10203         (sparc_emit_set_safe_HIGH64, gen_safe_SET64, gen_safe_OR64,
10204         gen_safe_XOR64): Adjust for above deletion.
10205         (sparc_emit_set_const64): Support only H_B_P_W_I == 64 and CONST_INTs.
10206         Use 'unsigned HOST_WIDE_INT' instead of 'long' for bitmask.
10207         (legitimate_constant_p): Use const_zero_operand instead.
10208         (sparc_extra_constraint_check): Likewise.
10209         * config/sparc/sparc.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'O'.
10210         (PREFERRED_RELOAD_CLASS): Use const_zero_operand.
10211         (PREDICATE_CODES): Delete.
10212         * config/sparc/sparc.md: Include predicates.md.
10213         (All patterns): Adjust for new predicate names.
10214         (cmpdi, cmpdi_sp64): Use arith_operand predicate.
10215         (movhi_const64_special, movsi_const64_special): Add 'K' constraint.
10216         (movdi): Use general_operand predicate.
10217         (movdi_sp64_dbl): Delete.
10218         (movdi_const64_special): Add 'N' constraint.
10219         (movdicc): Use arith10_operand predicate.
10220         (movdi_cc_sp64, movdi_cc_sp64_trunc): Use arith11_operand predicate.
10221         (movdi_cc_reg_sp64): Use arith10_operand predicate.
10222         (movdi_cc_reg_sp64_trunc): Delete.
10223         (cmp_zero_extract, cmp_zero_extract_sp64): Use small_int_operand.
10224         (adddi3_sp64, cmp_ccx_plus, cmp_ccx_plus_set): Use arith_operand.
10225         (subdi3_sp32): Delete.
10226         (subdi3_insn_sp32): Change to define_insn_and_split.
10227         (subdi3_sp64, cmp_minus_ccx, cmp_minus_ccx_set): Use arith_operand.
10228         (muldi3, muldi3_sp64, muldi3_v8plus): Likewise.
10229         (smulsi3_highpart_v8plus, const_smulsi3_highpart_v8plus,
10230         umulsi3_highpart_v8plus, const_umulsi3_highpart_v8plus): Use
10231         small_int_operand predicate.
10232         (divdi3, udivdi3): Use arith_operand predicate.
10233         (udivsi3, udivsi3_sp32, udivsi3_sp64): Use nonimmediate_operand.
10234         (and<V64I>3_sp64, ior<V64I>3_sp64, xor<V64I:mode>3_sp64,
10235         xor_not_<V64I:mode>_sp64) : Use arith_operand predicate.
10236         (xordi3_sp64_dbl): Delete.
10237         (cmp_ccx_arith_op, cmp_ccx_arith_op_set, cmp_ccx_xor_not,
10238         cmp_ccx_xor_not_set, cmp_ccx_arith_op_not, cmp_ccx_arith_op_not_set,
10239         cmp_ccx_neg, cmp_ccx_set_neg, one_cmpl<V64I>2_sp64, cmp_ccx_not,
10240         cmp_ccx_set_not): Use arith_operand predicate.
10241         (ashrsi3_extend2, lshrsi3_extend2 et al.): Use small_int_operand.
10242         * config/sparc/predicates.md: New file.
10243
10244 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
10245
10246         PR tree-optimization/14846
10247         * fold-const.c (fold_single_bit_test_into_sign_test): New,
10248         split out from ...
10249         (fold_single_bit_test): ... here.
10250         (fold_binary): Call fold_single_bit_test_into_sign_test
10251         instead of fold_single_bit_test.
10252
10253 2005-04-20  James E Wilson  <wilson@specifixinc.com>
10254
10255         PR c++/20805
10256         * dwarf2out.c (gen_variable_die): Don't emit a specification if this
10257         is another declaration.
10258
10259 2005-04-21  Hans-Peter Nilsson  <hp@axis.com>
10260
10261         * config/cris/predicates.md: New file.
10262         * config/cris/cris-protos.h (cris_store_multiple_op_p)
10263         (cris_movem_load_rest_p): Declare.
10264         * config/cris/cris.c (cris_store_multiple_op): Return bool, not int.
10265         (cris_movem_load_rest_p): Ditto.  Globalize.
10266         (cris_bdap_operand, cris_bdap_biap_operand,
10267         cris_orthogonal_operator, cris_commutative_orth_op,
10268         cris_operand_extend_operator,
10269         cris_additive_operand_extend_operator, cris_extend_operator,
10270         cris_plus_or_bound_operator, cris_mem_op,
10271         cris_general_operand_or_symbol,
10272         cris_general_operand_or_gotless_symbol,
10273         cris_general_operand_or_plt_symbol, cris_mem_call_operand,
10274         cris_load_multiple_op): Remove predicate functions.
10275         (cris_symbol, cris_gotless_symbol) <case UNSPEC>: Return 0, don't
10276         abort, for UNSPECs other than CRIS_UNSPEC_PLT.
10277         * config/cris/cris.h (PREDICATE_CODES): Don't define.
10278         * config/cris/cris.md: Include predicates.md.
10279         ("call", "call_value"): Generate CONSTs of Pmode, not VOIDmode.
10280
10281 2005-04-20  Ian Lance Taylor  <ian@airs.com>
10282
10283         * c-common.def: Remove STMT_EXPR (moved to cp/cp-tree.def).
10284         * c-common.h (STMT_EXPR_STMT): Don't define.
10285         (STMT_EXPR_NO_SCOPE): Don't define.
10286         * c-dump.c (c_dump_tree): Don't handle STMT_EXPR.
10287         * c-pretty-print.c (pp_c_primary_expression): Likewise.
10288         (pp_c_expression): Likewise.
10289
10290 2005-04-20  Richard Henderson  <rth@redhat.com>
10291
10292         PR target/21100
10293         * config/i386/mmx.md (push<MMXMODE>1): Fix predicate thinko.
10294
10295 2005-04-20  Jeff Law  <law@redhat.com>
10296
10297         * reload1.c (reload): Ignore equivalences between pseudos and
10298         read only memory.
10299
10300 2005-04-20  Joseph S. Myers  <joseph@codesourcery.com>
10301
10302         PR c/12913
10303         * c-tree.h (struct c_label_list): Update comment.
10304         (struct c_label_context): Rename to struct c_label_context_se.
10305         (label_context_stack): Rename to label_context_stack_se.
10306         (C_DECL_UNJUMPABLE_VM, C_DECL_UNDEFINABLE_VM, struct
10307         c_label_context_vm, label_context_stack_vm, c_begin_vm_scope,
10308         c_end_vm_scope): New.
10309         (C_DECL_DECLARED_BUILTIN, C_DECL_USED): Use FUNCTION_DECL_CHECK.
10310         * c-decl.c (pop_scope): Call c_end_vm_scope.
10311         (pushdecl): Call c_begin_vm_scope for variably modified
10312         declarations.
10313         (define_label): Check for jumping into scope of identifier with
10314         variably modified type.  Push label on stack for those defined at
10315         current context of identifiers with variably modified type.
10316         (start_function): Create stack level for context of identifiers
10317         with variably modified type.
10318         (finish_function): Pop stack level for context of identifiers with
10319         variably modified type.
10320         * c-typeck.c (label_context_stack): Rename to
10321         label_context_stack_se.
10322         (label_context_stack_vm, c_begin_vm_scope, c_end_vm_scope): New.
10323         (c_finish_goto_label): Check for jumping into scope of identifier
10324         with variably modified type.  Push label on stack for those jumped
10325         to from current context of identifiers with variably modified
10326         type.
10327         (struct c_switch): Add blocked_vm.
10328         (c_start_case): Initialize blocked_vm.
10329         (do_case): Check blocked_vm.
10330         (c_finish_case): Add comment.
10331         (c_begin_stmt_expr, c_finish_stmt_expr): Update for renamed
10332         variable label_context_stack.
10333
10334 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
10335
10336         * tree-ssa-phiopt.c (tree_ssa_phi_opt): Update calls to
10337         conditional_replacement, value_replacement, abs_replacement,
10338         minmax_replacement.
10339         (replace_phi_edge_with_variable): Remove argument BB.
10340         (conditional_replacement, value_replacement,
10341         minmax_replacement, abs_replacement): Remove argument PHI_BB.
10342         Update a call to replace_phi_edge_with_variable.
10343
10344         * tree-ssa-phiopt.c: Fix comments.
10345
10346 2005-04-20  Michael Matz  <matz@suse.de>
10347
10348         PR20973
10349         * reload.c (push_reload, find_dummy_reload): Check for uninitialized
10350         pseudos.
10351
10352 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
10353
10354         * tree-ssa-phiopt.c: Fix comment typos.
10355
10356         PR tree-optimization/21116
10357         * tree-ssa-phiopt.c: Fix a typo.
10358
10359 2005-04-19  Richard Henderson  <rth@redhat.com>
10360
10361         * builtins.c (expand_builtin_sync_operation): Revert last change.
10362         * optabs.c (expand_bool_compare_and_swap): Compare vs old value,
10363         not vs new value.
10364         (expand_compare_and_swap_loop): Likewise.
10365         (expand_sync_operation): Remove fallback from NAND to AND; invert
10366         memory operand when expanding from cmpxchg.
10367         (expand_sync_fetch_operation): Likewise.
10368         * doc/extend.texi (Atomic Builtins): Fix docs for nand and
10369         compare-and-swap.
10370
10371         * config/alpha/alpha.c (alpha_split_atomic_op): Invert memory operand
10372         when implementing NAND.  Fix double-add for AFTER.
10373         * config/alpha/sync.md (sync_nand<I48MODE>): Invert memory operand.
10374         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
10375         (sync_compare_and_swap<I48MODE>): Fix compare vs zero.  Return old
10376         memory value.
10377         (sync_lock_test_and_set<I48MODE>): Remove extra label and last
10378         memory barrier.
10379
10380         * config/i386/sync.md (sync_compare_and_swap<IMODE>): Fix pattern
10381         to return old memory value.
10382         (sync_compare_and_swap_cc<IMODE>): Likewise.
10383
10384         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Early
10385         return pre-reload.  Don't consider output or anti dependencies.
10386         * config/ia64/sync.md (IMODE): New.
10387         (modesuffix): Add QI and HI.
10388         (memory_barrier): Simplify expansion.
10389         (sync_compare_and_swap<IMODE>): Use IMODE, not I48MODE.
10390         (cmpxchg_acq_<IMODE>): Likewise.
10391         (sync_lock_test_and_set<IMODE>): Likewise.
10392         (sync_lock_release<IMODE>): Likewise.
10393
10394 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
10395
10396         * fold-const.c (fold_binary): Fold ~(X ^ Y) to ~X ^ Y or X ^ ~Y if
10397         ~X or ~Y simplify.
10398
10399 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
10400
10401         * fold-const (fold_binary):  Fold ~X ^ ~ Y to X ^ Y.
10402
10403 2005-04-20  Michael Pogue  <michael.pogue@sun.com>
10404             Joseph S. Myers  <joseph@codesourcery.com>
10405
10406         * c.opt (Wint-to-pointer-cast, Wpointer-to-int-cast): New options.
10407         * c-typeck.c (build_c_cast): Check these options.
10408         * doc/invoke.texi: Document these options.
10409
10410 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
10411
10412         * tree-ssa-phiopt.c: Update a comment about the pass.
10413
10414 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
10415
10416         * tree-ssa-phiopt.c, config/arm/arm.c, config/fr30/fr30.md,
10417         config/mcore/mcore.c: Fix comment typos.
10418
10419 2005-04-19  Daniel Jacobowitz  <dan@codesourcery.com>
10420
10421         * Makefile.in (libgcc.mk): Pass GCC_FOR_TARGET.
10422         * mklibgcc.in: Use $GCC_FOR_TARGET instead of ./xgcc.
10423
10424 2005-04-19  Paul Brook  <paul@codesourcery.com>
10425
10426         * config/arm/arm.c (arm_init_libfuncs): Clear mod optabs.
10427
10428 2005-04-19  Andrew Haley  <aph@redhat.com>
10429
10430         PR java/21022
10431         * dbxout.c (dbxout_type_fields): Check DECL_IGNORED_P before
10432         looking at a field's bitpos.
10433
10434 2005-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10435
10436         * system.h (fopen, fdopen, freopen): Define these to the unlocked
10437         libiberty functions.
10438
10439 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
10440
10441         PR tree-optimization/21096
10442         * tree-ssa-copy.c (fini_copy_prop): Free cached_last_copy_of.
10443
10444 2005-04-19  Alan Modra  <amodra@bigpond.net.au>
10445
10446         PR target/21098
10447         * config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
10448         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.
10449
10450 2005-04-19  Alexandre Oliva  <aoliva@redhat.com>
10451
10452         * tree-cfg.c (dump_function_to_file): Use cfun info only if it
10453         refers to the function being dumped.
10454
10455 2005-04-18  Daniel Jacobowitz  <dan@codesourcery.com>
10456
10457         * varasm.c (assemble_start_function): Remove reset of in_section.
10458
10459 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
10460
10461         PR tree-optimization/21085
10462         * fold-const (fold_binary): Don't change X % -C to X % C if C has
10463         overflowed.
10464
10465 2005-04-19  Ben Elliston  <bje@au.ibm.com>
10466
10467         * doc/invoke.texi (Optimize Options): Refer to the correct
10468         optimisation flag -ftree-dominator-opts, not -ftree-dom.
10469
10470 2005-04-18  Christopher Jaillet <christophe.jaillet@wanadoo.fr>
10471
10472         * config/rs6000/rs6000.c (machopic_output_stub):  Increase
10473         alloca argument to be big enough.
10474
10475 2005-04-18  Alexandre Oliva  <aoliva@redhat.com>
10476
10477         PR middle-end/21049
10478         * tree-cfg.c (dump_function_to_file): Do not crash if cfun or
10479         cfun->cfg are NULL.
10480
10481 2005-04-18  Tom Tromey  <tromey@redhat.com>
10482
10483         * cgraphunit.c (cgraph_finalize_compilation_unit): Fix a comment
10484         typo.
10485
10486 2005-04-18  Richard Henderson  <rth@redhat.com>
10487
10488         * config/alpha/alpha.c (alpha_split_atomic_op): New.
10489         (alphaev5_insn_pipe): Add LD_L, ST_C, MB types.
10490         (alphaev4_insn_pipe): Likewise.  Correct IST and LDSYM pipes.
10491         * config/alpha/alpha-protos.h: Update.
10492         * config/alpha/alpha.md (UNSPECV_MB, UNSPECV_LL, UNSPECV_SC): New.
10493         (UNSPECV_ATOMIC, UNSPECV_CMPXCHG, UNSPECV_XCHG): New.
10494         (attr type): Add ld_l, st_c, mb.
10495         (andsi_internal, andnotsi3, iorsi_internal, one_cmplsi_internal,
10496         iornotsi3, xorsi_internal, xornotsi3): New.
10497         * config/alpha/ev4.md (ev4_ld): Add ld_l.
10498         (ev4_ist_c, ev4_mb): New.
10499         * config/alpha/ev5.md (ev5_st): Add st_c, mb.
10500         (ev5_ld_l): New.
10501         * config/alpha/ev6.md (ev6_ild): Add ld_l.
10502         (ev6_ist): Add st_c.
10503         (ev6_mb): New.
10504         * config/alpha/sync.md: New file.
10505
10506 2005-04-18  Richard Henderson  <rth@redhat.com>
10507
10508         * builtins.c (expand_builtin_sync_operation): Fold nand to and
10509         for constants.
10510
10511         * optabs.c (expand_sync_operation): Fix typo expanding nand to and.
10512
10513 2005-04-18  Devang Patel  <dpatel@apple.com>
10514
10515         * config/rs6000/atlivec.md (mulv4si3): New pattern.
10516
10517 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
10518
10519         PR tree-optimization/20922
10520         * fold-const.c (fold_binary): Fold X - c > X and X + c < X to false.
10521         Fold X + c >= X and fold X - c <= X to true.
10522
10523 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
10524
10525         * config/ia64/unwind-ia64.c (emergency_reg_state_free): Make an
10526         unsigned int.
10527         (emergency_labeled_state_free): Likewise.
10528
10529 2005-04-18  Nick Clifton  <nickc@redhat.com>
10530
10531         * config/h8300/h8300.md (jump): Remove prescan parameter from
10532         calls to final_scan_insn.
10533
10534         * config/arc/arc.c (arc_output_function_epilogue): Remove prescan
10535         parameter from calls to final_scan_insn.
10536
10537         * config.gcc (m68hc12): Use the m68hc11.opt file for target
10538         specific options.
10539         (v850e, v850e1): Use the v850.opt file for target specific
10540         options.
10541
10542 2005-04-18  Kazu Hirata  <kazu@cs.umass.edu>
10543
10544         PR tree-optimization/21001
10545         * tree-optimize.c (init_tree_optimization_passes): Move the
10546         first pass_forwprop immediately before pass_vrp.
10547
10548 2005-04-17  Ian Lance Taylor  <ian@airs.com>
10549
10550         * c-common.def (SIZEOF_EXPR, ARROW_EXPR, ALIGNOF_EXPR): Remove.
10551         * c-common.c (c_sizeof_or_alignof_type): Change second parameter
10552         from enum tree_code op to bool is_sizeof.
10553         * c-common.h (c_sizeof_or_alignof_type): Update declaration.
10554         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
10555         * c-pretty-print.c (pp_c_postfix_expression): Remove ARROW_EXPR
10556         case.
10557         (pp_c_unary_expression): Remove SIZEOF_EXPR and ALIGNOF_EXPR
10558         cases.
10559         (pp_c_expression): Remove ARROW_EXPR, SIZEOF_EXPR, and
10560         ALIGNOF_EXPR cases.
10561
10562 2005-04-17  Ian Lance Taylor  <ian@airs.com>
10563
10564         * system.h: Poison DONT_ACCESS_GBLS_AFTER_EPILOGUE.
10565
10566 2005-04-17  Richard Henderson  <rth@redhat.com>
10567
10568         * config/alpha/alpha.c (va_list_skip_additions): Only define if
10569         TARGET_ABI_OSF.
10570         (TARGET_STDARG_OPTIMIZE_HOOK): Likewise.
10571         (alpha_stdarg_optimize_hook): Likewise.  Allow for one more round
10572         of indirection through ssa names while looking for the gpr counter
10573         field.
10574         (alpha_setup_incoming_varargs) <TARGET_ABI_OSF>: Make use of the
10575         saved va_list_gpr_size and va_list_fpr_size.
10576
10577 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
10578
10579         * tree-vrp.c (compare_values): Check that VAL1 and VAL2 are
10580         both pointers or both integers.
10581
10582         * tree-vrp.c (maybe_add_assert_expr): Don't assert
10583         ASSERT_EXPRs for single-use variable.
10584
10585         * tree-into-ssa.c: Fix a comment typo.
10586
10587 2005-04-17  Richard Sandiford  <rsandifo@redhat.com>
10588
10589         * config/mips/iris6.h (DRIVER_SELF_SPECS): Check -march as well as
10590         -mipsN before forcing a default of -mips2.
10591
10592 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
10593
10594         * predict.h (IS_TAKEN): Remove.
10595         * rtl.h (NOTE_PREDICTION): Likewise.
10596
10597         * modulo-sched.c (CFG_HOOKS): Remove.
10598
10599         * c-parser.c (N_C_TTYPES): Remove.
10600
10601         * tree-flow-inline.h (get_stmt_operands): Remove.
10602         * lambda-code.c, tree-ssa-loop-unswitch.c,
10603         tree-ssa-operands.c, tree-ssa-pre.c, tree-ssa-propagate.c,
10604         tree-ssa-sink.c, tree-ssa.c, tree-tailcall.c,
10605         tree-vect-transform.c, tree-vectorizer.c, tree-vrp.c): Remove
10606         calls to get_stmt_operands.
10607         * doc/tree-ssa.texi: Don't mention get_stmt_operands.
10608
10609 2005-04-17  Richard Henderson  <rth@redhat.com>
10610
10611         PR target/20375
10612         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Advance a copy
10613         of CUMULATIVE_ARGS past the last named argument.
10614         (alpha_va_start): Expect pretend_args_size only if strictly less than
10615         6 named arguments.
10616
10617 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
10618
10619         PR middle-end/21024
10620         * builtins.c (expand_builtin_strcat): Convert the result of
10621         strlen to the right type.
10622         * fold-const.c (fold_binary) <PLUS_EXPR>: Use fold_convert to
10623         avoid creating type mismatches.
10624         <GE_EXPR>: Pass op0 and op1 to fold_build2 to avoid creating
10625         type mismatches.
10626
10627         * c-lex.c (WCHAR_TYPE_SIZE, WCHAR_BYTES): Remove.
10628
10629 2005-04-16  Richard Henderson  <rth@redhat.com>
10630
10631         PR target/21051
10632         * builtins.c (expand_builtin) <BUILT_IN_BOOL_COMPARE_AND_SWAP_*>:
10633         Use the mode of boolean_type_node when the user doesn't provide one.
10634         * config/ia64/sync.md (sync_lock_release<I48MODE>): Use operand 1.
10635
10636 2005-04-16  Alexandre Oliva  <aoliva@redhat.com>
10637
10638         PR target/20126
10639         * loop.c (loop_givs_rescan): Handle non-replaceable (plus (reg)
10640         (const)).
10641
10642         * tree-scalar-evolution.c (interpret_rhs_modify_expr): Fix typo in
10643         comment.
10644
10645 2005-04-16  Roger Sayle  <roger@eyesopen.com>
10646             Steven Bosscher  <stevenb@suse.de>
10647
10648         * fold-const.c (fold_binary_to_constant): Delete obsolete comment.
10649         (fold_unary_to_constant): Likewise.
10650
10651 2005-04-16  Kazu Hirata  <kazu@cs.umass.edu>
10652
10653         * basic-block.h: Adjust the value of PROP_SCAN_DEAD_STORES,
10654         PROP_ASM_SCAN.
10655
10656 2005-04-16  Gerald Pfeifer  <gerald@pfeifer.com>
10657
10658         * doc/install.texi (Specific): Avoid using asterisks in @anchor
10659         names related to target triplets.
10660         Remove i?86-*-esix from platform directory.
10661         Remove powerpc-*-eabiaix from platform directory.
10662
10663 2005-04-16  Joseph S. Myers  <joseph@codesourcery.com>
10664
10665         PR middle-end/20491
10666         * config/ia64/ia64.c (rtx_needs_barrier): Recurse instead of
10667         falling through from SUBREG case to REG.
10668
10669 2005-04-15  Roger Sayle  <roger@eyesopen.com>
10670
10671         * fold-const.c (fold_relational_hi_lo): Delete function and prototype.
10672         (fold_binary): Update comment mentioning fold_relational_hi_lo.
10673         (fold_binary_to_constant): Simplify using fold_binary.
10674         (fold_unary_to_constant): Likewise, simplify using fold_unary.
10675
10676 2005-04-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10677
10678         * gthr-posix.c (pthread_cancel): Define.
10679         (pthread_mutexattr_init): Likewise.
10680         (pthread_mutexattr_settype): Likewise.
10681         (pthread_mutexattr_destroy): Likewise.
10682
10683 2005-04-15  David S. Miller  <davem@davemloft.net>
10684
10685         PR target/20673
10686         * config/sparc/sparc.h (sparc_hard_reg_printed): Mark as GTY(()).
10687
10688 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
10689
10690         PR tree-optimization/21031
10691         * tree-ssa-forwprop.c (ssa_name_defined_by_comparison_p): New.
10692         (forward_propagate_into_cond_1): Call it.  Forward propagate
10693         integer-integer casts into COND_EXPRs.
10694
10695 2005-04-15  Dave Korn  <dave.korn@artimi.com>
10696
10697         * gcc.c (default_compilers): Clarify obscure error message when
10698         reading from standard input.
10699
10700 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
10701
10702         * basic-block.h (PROP_EQUAL_NOTES): Remove.
10703         * flow.c (propagate_one_insn): Don't use PROP_EQUAL_NOTES.
10704
10705         * tree-ssa-alias.c (init_alias_info): Remove a call to
10706         get_stmt_operands.
10707
10708 2005-04-15  Andrew MacLeod  <amacleod@redhat.com>
10709
10710         * tree-vect-analyze.c (vect_stmt_relevant_p): Process immediate uses
10711         of non-virtual PHI nodes like we use to.
10712
10713 2005-05-15  Paolo Bonzini  <bonzini@gnu.org>
10714
10715         * genattrtab.c (ATTR_EQ_ATTR_P): Remove.
10716         (attr_copy_rtx): Do not use it.
10717
10718 2005-04-15  Andrew Macleod  <amacleod@redhat.com>
10719
10720         * doc/tree-ssa.texi: Grammer/abbreviation updates.
10721
10722 2005-04-15  Diego Novillo  <dnovillo@redhat.com>
10723
10724         * tree-vect-transform.c (vectorizable_store): Mark necessary
10725         objects in the vectorized store needing renaming.  Update the
10726         SSA graph for V_MAY_DEF operands in the original store.
10727
10728 2005-04-14  Daniel Berlin <dberlin@dberlin.org>
10729
10730         * tree-ssa-pre.c (compute_avail): It's okay to have
10731         TREE_INVARIANT's here, and value number the resulting expressions.
10732         (create_expression_by_pieces): Make sure operands that were
10733         min_invariant when we started, stay that way.
10734
10735 2005-04-15  David Edelsohn  <edelsohn@gnu.org>
10736
10737         * doc/install.texi (*-ibm-aix*): Add comment about system limits.
10738
10739 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
10740
10741         PR tree-optimization/20936.
10742         * tree-ssa-ccp.c (visit_assignment): Fix a typo.
10743
10744 2005-04-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
10745
10746         * doc/invoke.texi: Fix typos.
10747         * doc/md.texi: Likewise.
10748         * doc/rtl.texi: Likewise.
10749         * doc/sourcebuild.texi: Likewise.
10750         * doc/tm.texi: Likewise.
10751
10752 2005-04-15  Uros Bizjak  <uros@kss-loka.si>
10753
10754         PR tree-optimization/21004
10755         * convert.c (convert_to_integer): Convert ceilf, ceill, floorf
10756         and floorl in c99 mode only.
10757         * builtins.c (expand_builtin_int_roundingfn): Assert that
10758         fallback_fndecl is not NULL_TREE.
10759
10760 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
10761
10762         * cfgrtl.c (purge_all_dead_edge): Remove an unused argument.
10763         * basic-block.h: Update the prototype for
10764         purge_all_dead_edges.
10765         * cfgexpand.c (tree_expand_cfg): Update a call to
10766         purge_all_dead_edges.
10767         * combine.c (combine_instructions): Likewise.
10768         * passes.c (rest_of_handle_old_regalloc, rest_of_handle_cse,
10769         rest_of_handle_cse2, rest_of_handle_gcse,
10770         rest_of_handle_postreload): likewise.
10771
10772 2005-04-15  Alexandre Oliva  <aoliva@redhat.com>
10773
10774         PR middle-end/20739
10775         * gimplify.c (gimplify_addr_expr): Compensate for removal of
10776         e.g. cv-qualification conversions.
10777
10778 2005-04-14  Mike Stump  <mrs@apple.com>
10779
10780         * config/darwin-c.c (framework_construct_pathname): We must
10781         find all headers of a framework in the first instance of it
10782         found in the seach path.
10783
10784 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
10785
10786         PR tree-optimization/21021
10787         * tree-vrp.c (compare_values): Work around a bug in the front
10788         end that produces a comparison of mismatched types.
10789
10790 2004-04-14  Richard Henderson  <rth@redhat.com>
10791
10792         * config/ia64/ia64.h (enum fetchop_code): Remove.
10793         (enum ia64_builtins): Move ...
10794         * config/ia64/ia64.c (enum ia64_builtins): ... here.  Remove all
10795         members except BSP and FLUSHRS.
10796         (ia64_init_builtins): Remove __sync builtins.
10797         (ia64_expand_builtin): Likewise.
10798         (ia64_expand_fetch_and_op, ia64_expand_op_and_fetch): Remove.
10799         (ia64_expand_compare_and_swap, ia64_expand_lock_test_and_set): Remove.
10800         (ia64_expand_lock_release): Remove.
10801         * config/ia64/ia64.md (mf): Move to sync.md.
10802         (mf_internal, fetchadd_acq_si, fetchadd_acq_di, cmpxchg_acq_si,
10803         cmpxchg_acq_di, xchgsi, xchgdi): Likewise.
10804         * config/ia64/sync.md: New file.
10805         (memory_barrier): Rename from mf.
10806         (fetchadd_acq_<I48MODE>): Macroize from _si/_di patterns.
10807         (cmpxchg_acq_<I48MODE>): Likewise.
10808         (sync_lock_test_and_set<I48MODE>): Likewise.
10809
10810         * config/ia64/ia64intrin.h: Define nothing for C; limit #defines
10811         to c++.  Remove __sync* declarations.  s/_si/_4/.  s/_di/_8/.
10812
10813 2004-04-14  Richard Henderson  <rth@redhat.com>
10814
10815         * config/i386/i386.c (x86_cmpxchg, x86_xadd): New.
10816         (ix86_compare_emitted): New.
10817         (ix86_expand_compare): Use ix86_compare_emitted if set.
10818         (ix86_expand_setcc): Only emit REG_EQUAL if both ix86_compare_op0
10819         and ix86_compare_op0 are set.
10820         * config/i386/i386.h (x86_cmpxchg, x86_xadd): Declare.
10821         (TARGET_CMPXCHG, TARGET_XADD): New.
10822         (ix86_compare_emitted): Declare.
10823         * config/i386/i386.md: Include sync.md
10824         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2): New.
10825         (UNSPECV_XCHG, UNSPECV_LOCK): New.
10826         * config/i386/sync.md: New file.
10827
10828 2004-04-14  Richard Henderson  <rth@redhat.com>
10829
10830         PR middle-end/14311
10831         * builtin-types.def (BT_BOOL, BT_VOLATILE_PTR, BT_I1, BT_I2,
10832         BT_I4, BT_I8, BT_FN_VOID_VPTR, BT_FN_I1_VPTR_I1, BT_FN_I2_VPTR_I2,
10833         BT_FN_I4_VPTR_I4, BT_FN_I8_VPTR_I8, BT_FN_BOOL_VPTR_I1_I1,
10834         BT_FN_BOOL_VPTR_I2_I2, BT_FN_BOOL_VPTR_I4_I4, BT_FN_BOOL_VPTR_I8_I8,
10835         BT_FN_I1_VPTR_I1_I1, BT_FN_I2_VPTR_I2_I2, BT_FN_I4_VPTR_I4_I4,
10836         BT_FN_I8_VPTR_I8_I8): New.
10837         * builtins.def (DEF_SYNC_BUILTIN): New.
10838         (BUILT_IN_FETCH_AND_ADD_N, BUILT_IN_FETCH_AND_ADD_1,
10839         BUILT_IN_FETCH_AND_ADD_2, BUILT_IN_FETCH_AND_ADD_4,
10840         BUILT_IN_FETCH_AND_ADD_8, BUILT_IN_FETCH_AND_SUB_N,
10841         BUILT_IN_FETCH_AND_SUB_1, BUILT_IN_FETCH_AND_SUB_2,
10842         BUILT_IN_FETCH_AND_SUB_4, BUILT_IN_FETCH_AND_SUB_8,
10843         BUILT_IN_FETCH_AND_OR_N, BUILT_IN_FETCH_AND_OR_1,
10844         BUILT_IN_FETCH_AND_OR_2, BUILT_IN_FETCH_AND_OR_4,
10845         BUILT_IN_FETCH_AND_OR_8, BUILT_IN_FETCH_AND_AND_N,
10846         BUILT_IN_FETCH_AND_AND_1, BUILT_IN_FETCH_AND_AND_2,
10847         BUILT_IN_FETCH_AND_AND_4, BUILT_IN_FETCH_AND_AND_8,
10848         BUILT_IN_FETCH_AND_XOR_N, BUILT_IN_FETCH_AND_XOR_1,
10849         BUILT_IN_FETCH_AND_XOR_2, BUILT_IN_FETCH_AND_XOR_4,
10850         BUILT_IN_FETCH_AND_XOR_8, BUILT_IN_FETCH_AND_NAND_N,
10851         BUILT_IN_FETCH_AND_NAND_1, BUILT_IN_FETCH_AND_NAND_2,
10852         BUILT_IN_FETCH_AND_NAND_4, BUILT_IN_FETCH_AND_NAND_8,
10853         BUILT_IN_ADD_AND_FETCH_N, BUILT_IN_ADD_AND_FETCH_1,
10854         BUILT_IN_ADD_AND_FETCH_2, BUILT_IN_ADD_AND_FETCH_4,
10855         BUILT_IN_ADD_AND_FETCH_8, BUILT_IN_SUB_AND_FETCH_N,
10856         BUILT_IN_SUB_AND_FETCH_1, BUILT_IN_SUB_AND_FETCH_2,
10857         BUILT_IN_SUB_AND_FETCH_4, BUILT_IN_SUB_AND_FETCH_8,
10858         BUILT_IN_OR_AND_FETCH_N, BUILT_IN_OR_AND_FETCH_1,
10859         BUILT_IN_OR_AND_FETCH_2, BUILT_IN_OR_AND_FETCH_4,
10860         BUILT_IN_OR_AND_FETCH_8, BUILT_IN_AND_AND_FETCH_N,
10861         BUILT_IN_AND_AND_FETCH_1, BUILT_IN_AND_AND_FETCH_2,
10862         BUILT_IN_AND_AND_FETCH_4, BUILT_IN_AND_AND_FETCH_8,
10863         BUILT_IN_XOR_AND_FETCH_N, BUILT_IN_XOR_AND_FETCH_1,
10864         BUILT_IN_XOR_AND_FETCH_2, BUILT_IN_XOR_AND_FETCH_4,
10865         BUILT_IN_XOR_AND_FETCH_8, BUILT_IN_NAND_AND_FETCH_N,
10866         BUILT_IN_NAND_AND_FETCH_1, BUILT_IN_NAND_AND_FETCH_2,
10867         BUILT_IN_NAND_AND_FETCH_4, BUILT_IN_NAND_AND_FETCH_8,
10868         BUILT_IN_BOOL_COMPARE_AND_SWAP_N, BUILT_IN_BOOL_COMPARE_AND_SWAP_1,
10869         BUILT_IN_BOOL_COMPARE_AND_SWAP_2, BUILT_IN_BOOL_COMPARE_AND_SWAP_4,
10870         BUILT_IN_BOOL_COMPARE_AND_SWAP_8, BUILT_IN_VAL_COMPARE_AND_SWAP_N,
10871         BUILT_IN_VAL_COMPARE_AND_SWAP_1, BUILT_IN_VAL_COMPARE_AND_SWAP_2,
10872         BUILT_IN_VAL_COMPARE_AND_SWAP_4, BUILT_IN_VAL_COMPARE_AND_SWAP_8,
10873         BUILT_IN_LOCK_TEST_AND_SET_N, BUILT_IN_LOCK_TEST_AND_SET_1,
10874         BUILT_IN_LOCK_TEST_AND_SET_2, BUILT_IN_LOCK_TEST_AND_SET_4,
10875         BUILT_IN_LOCK_TEST_AND_SET_8, BUILT_IN_LOCK_RELEASE_N,
10876         BUILT_IN_LOCK_RELEASE_1, BUILT_IN_LOCK_RELEASE_2,
10877         BUILT_IN_LOCK_RELEASE_4, BUILT_IN_LOCK_RELEASE_8,
10878         BUILT_IN_SYNCHRONIZE: New.
10879         * builtins.c (called_as_built_in): Rewrite from CALLED_AS_BUILT_IN
10880         as a function.  Accept __sync_ as a prefix as well.
10881         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
10882         expand_builtin_lock_test_and_set, expand_builtin_synchronize,
10883         expand_builtin_lock_release): New.
10884         (expand_builtin): Call them.
10885         * c-common.c (DEF_BUILTIN): Don't require __builtin_ prefix if
10886         neither BOTH_P nor FALLBACK_P are defined.
10887         (builtin_type_for_size): New.
10888         (sync_resolve_size, sync_resolve_params, sync_resolve_return): New.
10889         (resolve_overloaded_builtin): New.
10890         * c-common.h (resolve_overloaded_builtin): Declare.
10891         (builtin_type_for_size): Declare.
10892         * c-typeck.c (build_function_call): Invoke resolve_overloaded_builtin.
10893         * expr.c (sync_add_optab, sync_sub_optab, sync_ior_optab,
10894         sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab,
10895         sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab,
10896         sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab,
10897         sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab,
10898         sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap,
10899         sync_compare_and_swap_cc, sync_lock_test_and_set,
10900         sync_lock_release): New.
10901         * optabs.h: Declare them.
10902         * expr.h (expand_val_compare_and_swap, expand_bool_compare_and_swap,
10903         expand_sync_operation, expand_sync_fetch_operation,
10904         expand_sync_lock_test_and_set): Declare.
10905         * genopinit.c (optabs): Add sync optabs.
10906         * optabs.c (init_optabs): Initialize sync optabs.
10907         (expand_val_compare_and_swap_1, expand_val_compare_and_swap,
10908         expand_bool_compare_and_swap, expand_compare_and_swap_loop,
10909         expand_sync_operation, expand_sync_fetch_operation,
10910         expand_sync_lock_test_and_set): New.
10911         * doc/extend.texi (Atomic Builtins): New section
10912         * doc/md.texi (Standard Names): Add sync patterns.
10913
10914 2005-04-14  Alexandre Oliva  <aoliva@redhat.com>
10915
10916         * tree-eh.c (lower_try_finally_copy): Generate new code in
10917         response to goto_queue entries as if the queue was sorted by
10918         index, not pointers.
10919         (lower_try_finally_switch): Likewise.
10920
10921 2005-04-14  Richard Henderson  <rth@redhat.com>
10922
10923         * config/i386/i386.c (ix86_expand_sse_cmp): Split out from ...
10924         (ix86_expand_sse_movcc): ... here.  Take cmp as a pre-computed
10925         register.
10926         (ix86_expand_fp_movcc): Update to match.
10927         (ix86_expand_fp_vcond, ix86_expand_int_vcond): New.
10928         * config/i386/i386-protos.h: Update.
10929         * config/i386/sse.md (vcondv4sf, vcondv2df): New.
10930         (vcond<SSEMODE124>, vcondu<SSEMODE12>): New.
10931
10932 2005-04-14  Joseph S. Myers  <joseph@codesourcery.com>
10933
10934         * doc/cpp.texi, doc/install.texi: Change references to GCC 3.5 to
10935         refer to 4.0.
10936
10937 2005-04-14  Julian Brown  <julian@codesourcery.com>
10938
10939         * Revert elfos.h part of my patch from 2005-04-13 for causing libstdc++
10940         link failures on ppc64 Linux.
10941
10942 2005-04-14  Andreas Krebbel  <krebbel1@de.ibm.com>
10943
10944         * config.gcc: Set cpu_type for s390.
10945
10946 2005-04-14  Daniel Berlin  <dberlin@dberlin.org>
10947
10948         Fix PR tree-optimization/20963
10949         * tree-ssa-pre.c (compute_avail): Remove special case for
10950         TREE_INVARIANT.
10951         (create_expression_by_pieces): Add value numbers for forced out
10952         statements.
10953
10954 2005-04-14  Hans-Peter Nilsson  <hp@axis.com>
10955
10956         * config/cris/cris.md: Replace references to (reg:SI 16) with
10957         (reg:SI CRIS_SRP_REGNUM).
10958
10959 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
10960
10961         PR tree-optimization/20657
10962         * tree-vrp.c (extract_range_from_expr): Notice INTEGER_CST to
10963         create an appropriate range from it.
10964
10965 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
10966
10967         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST_FLOOR> and
10968         <UNSPEC_FIST_CEIL> case.
10969
10970         * config/i386/i386.md (UNSPEC_FIST_FLOOR, UNSPEC_FIST_CEIL): New.
10971         (*fist<mode>2_floor_1, fistdi2_floor, fistdi2_floor_with_temp)
10972         (fist<mode>2_floor, fist<mode>2_floor_with_temp): New isns patterns
10973         to implement lfloor and llfloor built-ins as x87 intrinsic function.
10974         (fistdi2_floor, fist<mode>2_floor splitters): New splitters.
10975         (lfloor<mode>2): New expanders.
10976         (*fist<mode>2_ceil_1, fistdi2_ceil, fistdi2_ceil_with_temp)
10977         (fist<mode>2_ceil, fist<mode>2_ceil_with_temp): New isns patterns
10978         to implement lceil and llceil built-ins as x87 intrinsic function.
10979         (fistdi2_ceil, fist<mode>2_ceil splitters): New splitters.
10980         (lceil<mode>2): New expanders.
10981
10982 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
10983
10984         * convert.c (convert_to_integer): Convert (long int)trunc{,f,l},
10985         and (long long int)ceil{,f,l} into FIX_TRUNC_EXPR.
10986
10987 2005-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
10988
10989         PR target/20927
10990         * config/s390/s390-modes.def: Define TFmode.
10991
10992 2005-04-13  Richard Sandiford  <rsandifo@redhat.com>
10993
10994         * config/mips/mips.h (ASM_OUTPUT_CASE_LABEL): Delete.
10995         (JUMP_TABLES_IN_TEXT_SECTION): Define.
10996         * config/mips/mips.c (mips16_insn_length): Remove reference to
10997         JUMP_TABLES_IN_TEXT_SECTION.
10998
10999 2005-04-13 Fariborz Jahanian <fjahanian@apple.com>
11000
11001         * simplify-rtx.c (simplify_binary_operation_1): Return
11002         scalar or vector of constant 0, depending on the xor's
11003         mode.
11004
11005 2005-04-13  Dale Johannesen  <dalej@apple.com>
11006
11007         * objc/Make-lang.in (objc-lang.o):  Depend on tree-gimple.h.
11008         (objc-act.o):  Ditto.
11009         * objc/objc-act.c (objc_gimplify_expr):  New.
11010         (objc_get_callee_fndecl):  New.
11011         * objc/objc-act.h:  Include tree-gimple.h.  Declare new functions.
11012         * objc/objc-lang.c (LANG_HOOKS_GIMPLIFY_EXPR):  Define.
11013         (LANG_HOOKS_GET_CALLEE_FNDECL):  Define.
11014
11015 2005-04-13  Devang Patel  <dpatel@apple.com>
11016
11017         * tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra
11018         temp variables.
11019
11020 2005-04-13  Hans-Peter Nilsson  <hp@axis.com>
11021
11022         CRIS prologue as RTL.
11023         * config/cris/cris-protos.h (cris_emit_movem_store)
11024         (cris_expand_prologue): Prototype.
11025         * config/cris/cris.c (struct machine_function): New member
11026         stdarg_regs.
11027         (cfa_label_num, cris_target_asm_function_prologue): Remove.
11028         (TARGET_ASM_FUNCTION_PROLOGUE): Don't override.
11029         (cris_general_operand_or_gotless_symbol): Accept CRIS_UNSPEC_GOT.
11030         (cris_load_multiple_op, cris_return_address_on_stack)
11031         (cris_return_address_on_stack_for_return): ISO-Cify.
11032         (cris_store_multiple_op): New predicate function.
11033         (cris_expand_prologue, cris_emit_movem_store): New functions.
11034         (cris_print_operand) <case 'O'>: Handle modifications other than
11035         post-increment.
11036         (cris_symbol, cris_got_symbol): Return 0 for CRIS_UNSPEC_GOT.
11037         (cris_gotless_symbol): Return 1 for CRIS_UNSPEC_GOT.
11038         (cris_gen_movem_load): Rearrange slightly to make local variable
11039         src a parameter, removing osrc.
11040         (cris_setup_incoming_varargs): Set machine_function member
11041         stdarg_regs to correspond to the number of registers that need to
11042         be saved.
11043         * config/cris/cris.h (EXTRA_CONSTRAINT_S): Accept
11044         CRIS_UNSPEC_GOT.
11045         (PREDICATE_CODES): Add cris_store_multiple_op.  Make
11046         cris_general_operand_or_gotless_symbol accept UNSPEC.
11047         * config/cris/cris.md (CRIS_UNSPEC_GOT): New constant.
11048         ("*movsi_internal") <alternative 8>: Handle CRIS_UNSPEC_GOT.
11049         ("*cris_store_multiple"): New pattern.  Tweak common comment above
11050         this and "*cris_load_multiple".
11051         ("prologue"): New define_expand.
11052
11053         * config/cris/cris.md ("epilogue"): Conditionalize on
11054         TARGET_PROLOGUE_EPILOGUE.
11055
11056 2005-04-13  Steve Ellcey  <sje@cup.hp.com>
11057
11058         PR target/20924
11059         * config/ia64/ia64.md (divsf3_internal_lat): Generate frcpa with
11060         fpsr 0 instead of fpsr 1.
11061         (divsf3_internal_thr): Ditto.
11062         (divdf3_internal_lat): Ditto.
11063         (divdf3_internal_thr): Ditto.
11064         (divxf3_internal_lat): Ditto.
11065         (divxf3_internal_thr): Ditto.
11066
11067 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
11068
11069         PR tree-optimization/20913
11070         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Fold COND_EXPR.
11071
11072         PR tree-optimization/20702
11073         * tree-vrp.c (maybe_add_assert_expr): Recurse into
11074         dominator children that haven't been walked into.
11075
11076 2005-04-13  Julian Brown  <julian@codesourcery.com>
11077
11078         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from
11079         being used for symbols with vague linkage when HAVE_GAS_COMDAT_GROUP
11080         is true.
11081
11082 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
11083
11084         * basic-block.h, tree-ssa-uncprop.c, varasm.c,
11085         config/i386/sse.md: Fix comment typos.
11086
11087         * genattrtab.c (NULL_ATTR): Remove.
11088         * ifcvt.c (NULL_EDGE): Likewise.
11089
11090         * rtl.h (RTX_EXPR_FIRST, RTX_EXPR_LAST): Remove.
11091
11092         * rtl.h (NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS,
11093         NOTE_PREDICT): Remove.
11094
11095 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
11096
11097         * configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
11098         * configure: Regenerate.
11099         * config.in: Likewise.
11100         * system.h: Declare vsnprintf if not already declared.
11101
11102 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
11103
11104         * optc-gen.awk: Handle stand-alone Mask records.
11105         * opth-gen.awk: Likewise.
11106         * doc/options.texi (Option file format): Document them.
11107         * config.gcc (sparc-*-netbsdelf*, sparc-*-linux*, sparc64-*-freebsd*,
11108         sparc64-*-linux*, sparc64-*-netbsd*): Add long-double-switch.opt.
11109         (sparc64-*-openbsd*, sparc64-*-elf*): Add little-endian.opt.
11110         * config/sparc/sparc.h (MASK_FPU, MASK_UNALIGNED_DOUBLES,
11111         MASK_V8, MASK_SPARCLITE, MASK_SPARCLET, MASK_V9,
11112         MASK_DEPRECATED_V8_INSNS, MASK_IMPURE_TEXT, MASK_APP_REGS,
11113         MASK_HARD_QUAD, MASK_LITTLE_ENDIAN, MASK_PTR64, MASK_64BIT,
11114         MASK_STACK_BIAS, MASK_FPU_SET, MASK_VIS, MASK_V8PLUS,
11115         MASK_FASTER_STRUCTS, MASK_LONG_DOUBLE_128): Delete.
11116         (TARGET_FPU, TARGET_UNALIGNED_DOUBLES, TARGET_V8, TARGET_SPARCLITE,
11117         TARGET_SPARCLET, TARGET_V9, TARGET_DEPRECATED_V8_INSNS,
11118         TARGET_IMPURE_TEXT, TARGET_APP_REGS, MASK_HARD_QUAD,
11119         TARGET_LITTLE_ENDIAN, TARGET_PTR64, TARGET_64BIT, MASK_STACK_BIAS,
11120         TARGET_FPU_SET, TARGET_VIS, TARGET_V8PLUS, TARGET_FASTER_STRUCTS,
11121         TARGET_LONG_DOUBLE_128): Likewise.
11122         (TARGET_SWITCHES, SUBTARGET_SWITCHES): Likewise.
11123         (TARGET_OPTIONS, SUBTARGET_OPTIONS): Likewise.
11124         * config/sparc/freebsd.h (SUBTARGET_SWITCHES): Likewise.
11125         * config/sparc/linux.h (SUBTARGET_SWITCHES): Likewise.
11126         * config/sparc/linux64.h (SUBTARGET_SWITCHES): Likewise.
11127         * config/sparc/netbsd-elf.h (SUBTARGET_SWITCHES): Likewise.
11128         * config/sparc/sp64-elf.h (SUBTARGET_SWITCHES): Likewise.
11129         * config/sparc/sparc.c (fpu_option_set): New global.
11130         (sparc_handle_option): New function.
11131         (sparc_override_options): Test fpu_option_set.
11132         (TARGET_DEFAULT_TARGET_FLAGS): Set to TARGET_DEFAULT.
11133         (TARGET_HANDLE_OPTION): Set to sparc_handle_option.
11134         * config/sparc/sparc.opt: New file.
11135         * config/sparc/little-endian.opt: Likewise.
11136         * config/sparc/long-double-switch.opt: Likewise.
11137
11138 2005-04-13  Bernd Schmidt  <bernd.schmidt@analog.com>
11139
11140         * config/bfin/bfin.c (bfin_lib_id_given): New static variable.
11141         (bfin_handle_options): Set it if -mshared-library-id= is seen.
11142         * config/bfin/bfin.opt (mshared-library-id=): Lose
11143         Var(bfin_lib_id_given).
11144
11145 2005-04-13  Matt Thomas  <matt@3am-software.com>
11146
11147         * config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before
11148         defining.
11149
11150 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
11151
11152         * rtl.h (CLEAR_RTX_FLAGS): Remove.
11153
11154         * cgraphunit.c (INSNS_PER_CALL): Remove.
11155
11156         * tree-ssa-forwprop.c (vars,
11157         record_single_argument_cond_exprs,
11158         substitute_single_use_vars): Remove.
11159         (forward_propagate_into_cond_1, forward_propagate_into_cond):
11160         New.
11161         (tree_ssa_forward_propagate_single_use_vars): Call
11162         forward_propagate_into_cond for each COND_EXPR.
11163
11164         * tree-inline.c (INSNS_PER_STMT): Remove.
11165
11166 2005-04-12  Richard Henderson  <rth@redhat.com>
11167
11168         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Split ...
11169         (ix86_expand_sse_fp_minmax): ... from ...
11170         (ix86_expand_fp_movcc): ... here.
11171         (ix86_expand_sse_movcc): Rewrite from ix86_split_sse_movcc.
11172         * config/i386/i386-protos.h: Update.
11173         * config/i386/i386.md (UNSPEC_IEEE_MIN, UNSPEC_IEEE_MAX): New.
11174         (sse_setccsf, sse_setccdf): Allow before reload.
11175         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): Remove.
11176         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): Remove.
11177         (ieee_sminsf3, ieee_smaxsf3, ieee_smindf3, ieee_smaxdf3): New.
11178         * config/i386/sse.md (andsf3, nandsf3, iorsf3, xorsf3): New.
11179         (anddf3, nanddf3, iordf3, xordf3): New.
11180
11181 2005-04-12  Jeff Law  <law@redhat.com>
11182
11183         * Makefile.in (OBJS-common): Add tree-ssa-uncprop.o.
11184         (tree-ssa-uncprop.o): Add dependencies.
11185         * tree-cfg.c (remove_useless_stmts_bb, remove_useless_stmts): Remove.
11186         * tree-flow.h (remove_useless_stmts): Remove prototype.
11187         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
11188         remove_useless_stmts.
11189         * timevar.def (TV_TREE_SSA_UNCPROP): New timevar.
11190         * tree-optimize.c (init_tree_optimization_passes): Add uncprop pass.
11191         * tree-pass.h (pass_uncprop): Declare.
11192         * tree-ssa-uncprop.c: New file.
11193
11194 2005-04-12  James E. Wilson  <wilson@specifixinc.com>
11195
11196         PR target/20670
11197         * unwind-ia64.c (uw_intall_context): Add missing load of r27.
11198
11199 2005-04-12  Caroline Tice  <ctice@apple.com>
11200
11201         Temporary fix for partitioning problems.
11202         * passes.c (rest_of_handle_final): Remove code that
11203         frees unlikely_text_section_name,
11204         * varasm.c (assemble_start_function): Test for partitioning
11205         flag before writing out section labels.
11206         (assemble_end_function): Test for partitioning flag before
11207         writing out section labels.
11208
11209 2005-04-12  Steven Bosscher  <stevenb@suse.de>
11210             Stuart Hastings <stuart@apple.com>
11211             Jan Hubicka  <jh@suse.cz>
11212
11213         * Makefile.in: Add function.h to BASIC_BLOCK_H.  Remove all
11214         references to gt-tree-cfg.h.
11215         * basic-block.h (struct basic_block_def): Don't skip rbi
11216         for garbage collection.
11217         (struct reorder_block_def): Make GTY-able.
11218         (struct control_flow_graph): New structure.
11219         (n_edges, n_basic_blocks, last_basic_block, basic_block_info,
11220         BASIC_BLOCK, EXIT_BLOCK_PTR, ENTRY_BLOCK_PTR): No longer vars,
11221         but instead defines to the control_flow_graph for cfun.
11222         (label_to_block_map): New define, points to the label map of
11223         the control_flow_graph for cfun.
11224         (n_edges_for_function, n_basic_blocks_for_function,
11225         last_basic_block_for_function, basic_block_info_for_function,
11226         EXIT_BLOCK_PTR_FOR_FUNCTION, ENTRY_BLOCK_PTR_FOR_FUNCTION,
11227         basic_block_info_for_function, label_to_block_map_for_function):
11228         Counterparts for the above, taking a struct function as an extra
11229         argument.
11230         (alloc_rbi_pool, free_rbi_pool): Remove prototypes.
11231         * cfg.c: (n_edges, n_basic_blocks, last_basic_block,
11232         basic_block_info, ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Remove.
11233         (alloc_rbi_pool, free_rbi_pool): Remove.
11234         (initialize_bb_rbi): Use ggc_alloc_cleared instead of pool_alloc.
11235         * cfglayout.c: (cfg_layout_initialize): Don't allocate the rbi pool
11236         here...
11237         (cfg_layout_finalize) ... and don't free it here.
11238         * cfgrtl.c (cfg_layout_delete_block): Zero out rbi so it gets
11239         garbage collected.
11240         * flow.c (free_basic_block_vars): Set label_to_block_map and
11241         n_edges to zero too.
11242         * function.h (struct function): Add cfg field.
11243         * function.c (allocate_struct_function): Allocate the cfg.
11244         * tree-cfg.c (label_to_block_map): Remove.
11245         (build_tree_cfg): Don't allocate the rbi pool here...
11246         (delete_tree_cfg_annotations): ...and don't free it here.
11247         Also don't nullify label_to_block_map for cfun.
11248
11249 2005-04-12  Caroline Tice  <ctice@apple.com>
11250
11251         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
11252         Revert my patch from April 9.
11253         (fix_edges_for_rarely_executed_code): Revert my patch from April 9.
11254         (reorder_basic_blocks): Revert my patch from April 9.
11255         (insert_section_boundary_note): Revert my patch from April 9.
11256         * dbxout.c (dbxout_function_end): Revert my patch from April 9.
11257         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): Revert my patch from April 9.
11258         (COLD_END_LABEL):  Revert my patch from April 9.
11259         (cold_text_section_label):  Revert my patch from April 9.
11260         (cold_end_label): Revert my patch from April 9.
11261         (dwarf2out_switch_text_section): Revert my patch from April 9.
11262         (output_aranges): Revert my patch from April 9.
11263         (output_ranges):  Revert my patch from April 9.
11264         (output_line_info): Revert my patch from April 9.
11265         (add_location_or_const_value_attribute):  Revert my patch from April 9.
11266         (dwarf2out_var_location): Revert my patch from April 9.
11267         (dwarf2out_init):  Revert my patch from April 9.
11268         (dwarf2out_finish): Revert my patch from April 9.
11269         * function.h (struct function): Revert my patch from April 9.
11270         * opts.c (decode_options): Revert my patch from April 9.
11271         * output.h (unlikely_section_label, hot_section_label,
11272         hot_section_end_label, cold_section_end_label,
11273         unlikely_text_section_name): Revert my patch from April 9.
11274         * passes.c (rest_of_handle_final): Revert my patch from April 9.
11275         * varasm.c (unlikely_section_label, hot_section_label,
11276         hot_section_end_label, cold_section_end_label,
11277         unlikely_text_section_name): Revert my patch from April 9.
11278         (initialize_cold_section_name): Revert my patch from April 9.
11279         (unlikely_text_section): Revert my patch from April 9.
11280         (in_unlikely_text_section): Revert my patch from April 9.
11281         (named_section): Revert my patch from April 9.
11282         (function_section): Revert my patch from April 9.
11283         (current_function_section): Revert my patch from April 9.
11284         (assemble_start_function): Revert my patch from April 9.
11285         (assemble_end_function): Revert my patch from April 9.
11286         (default_section_type_flags_1): Revert my patch from April 9.
11287
11288 2005-04-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
11289
11290         * config/sparc/sparc.h (APPLY_RESULT_SIZE): Set to 24 in 64-bit mode.
11291         * config/sparc/sparc.md (untyped_call): Save the registers manually.
11292
11293         * config/sparc/sparc.c (legitimate_address_p): Use TARGET_ARCH32.
11294
11295 2005-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
11296
11297         PR middle-end/20917
11298         * config/s390/s390.md ("*set_tp"): Use SET in pattern.
11299         ("set_tp_64", "set_tp_31"): Adapt expanded pattern.
11300
11301 2004-04-12  Richard Henderson  <rth@redhat.com>
11302
11303         * config/i386/i386.md (UNSPEC_FIX, UNSPEC_MOVA, UNSPEC_SHUFFLE,
11304         UNSPEC_PSHUFLW, UNSPEC_PSHUFHW, UNSPEC_ADDSUB, UNSPEC_HADD,
11305         UNSPEC_HSUB, UNSPEC_MOVSHDUP, UNSPEC_MOVSLDUP, UNSPEC_MOVDDUP): Remove.
11306         (UNSPEC_*, UNSPECV_*): Renumber.
11307
11308 2005-04-12  Frank Ch. Eigler  <fche@redhat.com>
11309
11310         PR mudflap/19266
11311         From Richard Henderson <rth@redhat.com>:
11312         * tree-mudflap.c (mf_build_check_statement_for): Correct block
11313         splitting logic.
11314
11315 2005-04-12  Dorit Naishlos  <dorit@il.ibm.com>
11316
11317         * tree-cfg.c (tree_verify_flow_info): Use LABEL_EXPR_LABEL.
11318
11319 2005-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
11320
11321         * config/bfin/bfin.c (bfin_library_id_string): Remove.
11322         (bfin_library_id): New variable.
11323         (bfin_expand_prologue): Use bfin_library_id and bfin_lib_id_given
11324         instead of bfin_library_id_string.
11325         (bfin_handle_option): New function.
11326         (override_options): Remove most code to deal with shared library IDs,
11327         just check they aren't used without -mid-shared-library.
11328         (TARGET_HANDLE_OPTION): Define.
11329         * config/bfin/bfin.h (TARGET_OPTIONS): Delete macro.
11330         * config/bfin/bfin.opt (mshared-library-id=): New.
11331
11332 2005-04-12  Kazu Hirata  <kazu@cs.umass.edu>
11333
11334         * tree-vect-transform.c: Fix comment typos.
11335
11336 2005-04-12 Mostafa Hagog <mustafa@il.ibm.com>
11337
11338         * postreload-gcse.c (eliminate_partially_redundant_load): Don't
11339         split critical edges when not possible/profitable.
11340
11341 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
11342
11343         * config/ns32k/ns32k.h (target_flags, MASK_32081, MASK_RTD)
11344         (MASK_REGPARM, MASK_32532, MASK_32332, MASK_NO_SB, MASK_NO_BITFIELD)
11345         (MASK_HIMEM, MASK_32381, MASK_MULT_ADD, MASK_SRC, MASK_IEEE_COMPARE)
11346         (TARGET_32081, TARGET_32381, TARGET_MULT_ADD, TARGET_RTD)
11347         (TARGET_REGPARM, TARGET_32532, TARGET_32332, TARGET_SB, TARGET_HIMEM)
11348         (TARGET_BITFIELD, TARGET_IEEE_COMPARE, TARGET_SWITCHES): Delete.
11349         (OVERRIDE_OPTIONS): Clear MASK_SB instead of setting MASK_NO_SB.
11350         * config/ns32k/netbsd.h (TARGET_DEFAULT): Remove MASK_NO_SB and
11351         MASK_NO_BITFIELD.
11352         * config/ns32k/ns32k.c (ns32k_handle_option): New function.
11353         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
11354         * config/ns32k/ns32k.opt: New file.
11355
11356 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
11357
11358         * config.gcc (m68k-*-linux*): Add m68k/ieee.opt to $extra_options.
11359         * config/m68k/m68k.h (target_flags, MASK_68020, TARGET_68020)
11360         (MASK_68030, TARGET_68030, MASK_68040, TARGET_68040, MASK_68040_ONLY)
11361         (TARGET_68040_ONLY, MASK_68060, TARGET_68060, MASK_5200, TARGET_5200)
11362         (MASK_CFV3, TARGET_CFV3, MASK_CFV4, TARGET_CFV4, MASK_528x)
11363         (TARGET_528x, MASK_CF_HWDIV, TARGET_CF_HWDIV, MASK_68881, TARGET_68881)
11364         (MASK_BITFIELD, TARGET_BITFIELD, MASK_SHORT, TARGET_SHORT)
11365         (MASK_ALIGN_INT, TARGET_ALIGN_INT, MASK_PCREL, TARGET_PCREL)
11366         (MASK_NO_STRICT_ALIGNMENT, TARGET_STRICT_ALIGNMENT, MASK_RTD)
11367         (TARGET_RTD, MASK_SEP_DATA, TARGET_SEP_DATA, MASK_ID_SHARED_LIBRARY)
11368         (TARGET_ID_SHARED_LIBRARY, MASK_ALL_CF_BITS, TARGET_SWITCHES)
11369         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Delete.
11370         (MASK_COLDFIRE): Formatting fixes.
11371         (TARGET_COLDFIRE): Turn into a boolean value for consistency.
11372         * config/m68k/linux.h (SUBTARGET_SWITCHES): Delete.
11373         * config/m68k/m68k.c (m68k_library_id_string): Initialize to
11374         "_current_shared_library_a5_offset_".
11375         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
11376         (MASK_ALL_CPU_BITS): New macro.
11377         (m68k_handle_option): New function.
11378         (override_options): Remove handling of m68k_library_id_string.
11379         * config/m68k/m68k.opt: New file.
11380         * config/m68k/ieee.opt: New file.
11381
11382 2005-04-11  Mark Mitchell  <mark@codesourcery.com>
11383
11384         * target-def.h (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
11385         (TARGET_CXX_DETERMINE_CLASS_VISIBILITY): New macro.
11386         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
11387         (TARGET_CXX): Adjust accordingly.
11388         * target.h (struct gcc_target): Remove epxort_class_data.  Add
11389         determine_class_data_visibility and class_data_always_comdat.
11390         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
11391         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Document.
11392         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
11393         * config/arm/arm.c (arm_cxx_export_class_data): Remove.
11394         (arm_cxx_determine_class_data_visibility): New.
11395         (arm_cxx_class_data_always_comdat): Likewise.
11396         (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
11397         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
11398         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
11399         * config/arm/arm.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P): Define.
11400         * config/arm/symbian.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P):
11401         Define.
11402
11403 2005-04-11  Devang Patel  <dpatel@apple.com>
11404
11405         * tree-data-ref.c (build_classic_dist_vector,
11406         compute_subscript_distance): Make externally visible.
11407         * tree-data-ref.h (build_classic_dist_vector,
11408         compute_subscript_distance): Same.
11409         * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
11410         Check distance vector against vectorization factor.
11411         (vect_analyze_loop): Determine vectorizaion factor before
11412         analyzing data dependences.
11413         * tree-vectorizer.c (loops_num): Make it externally visible and
11414         rename ...
11415         * tree-vectorizer.c (vect_loops_num): ... new name.
11416         * tree-vectorizer.h  (vect_loops_num): New.
11417
11418 2005-04-11  Devang Patel  <dpatel@apple.com>
11419
11420         * tree-vect-analyze.c (vect_analyze_operations): Check
11421         vectorizable codition.
11422         * tree-vect-transform.c (vect_is_simple_cond): New function.
11423         (vectorizable_condition): New function.
11424         (vect_transform_stmt): Handle condition_vec_info_type.
11425         * tree-vectorizer.h (enum stmt_vec_info_type): Add
11426         condition_vec_info_type.
11427         (vectorizable_condition): New.
11428
11429 2005-04-11  Geoffrey Keating  <geoffk@apple.com>
11430
11431         * config/i386/i386.h (TARGET_FPMATH_DEFAULT): New.
11432         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT): New.
11433         * config/i386/i386.c (override_options): Use TARGET_FPMATH_DEFAULT.
11434
11435         * config/i386/darwin.h (ASM_SPEC): Use -arch i386 not -arch i686.
11436         (SUBTARGET_EXTRA_SPECS): Always 'i386'.
11437
11438         * dwarf2out.c (output_line_info): Don't try to dereference
11439         a NULL current_function_decl.
11440
11441         * config/t-slibgcc-darwin: Don't put shared libraries in
11442         directories other than $(slibdir).
11443         * config/rs6000/darwin.h: Find -m64 libgcc under the name the
11444         OS uses for it.
11445
11446 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
11447
11448         PR tree-optimization/20933
11449         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Move
11450         logic to reject aliases between read-only and writable
11451         variables ...
11452         (may_alias_p): ... here.
11453         (get_tmt_for): Do not associate read-only tags to pointers
11454         whose pointed-to type is not read-only.
11455         * tree-ssa.c (verify_ssa): Check that memory stores have at
11456         least one V_MAY_DEF or V_MUST_DEF.
11457
11458 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11459
11460         PR/17092
11461         * configure.ac (gcc_UNLOCKED_FUNCS): New.
11462         (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for gcc_UNLOCKED_FUNCS.
11463         * system.h (putchar, getc, getchar, clearerr, feof, fileno,
11464         fflush, fgetc, fgets, ferror, fread): Redefine to the associated
11465         _unlocked function.
11466         (fwrite_unlocked): Fix prototype.
11467
11468         * configure, config.in: Regenerate.
11469
11470 2005-04-11  David Edelsohn  <edelsohn@gnu.org>
11471
11472         * tree-ssa-loop-im.c: Include real.h.
11473         (determine_invariantness_stmt): If real division divisor is
11474         invariant and flag_unsafe_math_optimizations enabled, generate
11475         invariant reciprocal for hoisting.
11476         * Makefile.in (tree-ssa-loop-im.o): Add real.h dependency.
11477
11478 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
11479
11480         Fix PR tree-optimization/20926
11481
11482         * tree-ssa-alias.c (add_type_alias): Handle subvars.
11483
11484 2005-04-11  Devang Patel  <dpatel@apple.com>
11485
11486         * config/rs6000.c (rs6000_emit_vector_select): Fix vector select
11487         operand ordering.
11488
11489 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
11490
11491         * fold-const.c (fold_binary_op_with_conditional_arg):
11492         use fold_buildN instead of "fold (buildN" in some
11493         non obvious places.
11494         (fold_unary): Likewise.
11495         (fold_binary): Likewise.
11496
11497 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
11498
11499         Fix PR tree-optimization/20612
11500         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Fix increment
11501         handling
11502         (perfect_nestify): preheaderbb is *not* part of loop of the
11503         old destination.
11504
11505 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
11506
11507         * tree-ssa-alias.c (may_alias_p): If the variable
11508         is a global variable and the pointer is parameter
11509         and -fargument-noalias-global is used, then
11510         the pointer cannot alias the variable.
11511
11512 2005-04-11  James A. Morrison  <phython@gcc.gnu.org>
11513
11514         * config/sparc/sparc.c: Use gcc_assert and gcc_unreachable.
11515         * config/sparc/sparc.h: Likewise.
11516         * config/sparc/sparc.md: Likewise.
11517
11518 2005-04-11  Kazu Hirata  <kazu@cs.umass.edu>
11519
11520         * tree-vrp.c (maybe_add_assert_expr): Move a comment.
11521
11522         * tree-vrp.c: Fix a comment typo.
11523
11524 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
11525
11526         PR tree-optimization/20920
11527         * tree-pretty-print.c (dump_generic_node): Show '(ab)' if an
11528         SSA_NAME flows through an abnormal edge.
11529         * tree-vrp.c (infer_value_range): Ignore SSA names that flow
11530         through abnormal edges.
11531         (maybe_add_assert_expr): Likewise.
11532
11533 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
11534
11535         * config/s390/s390.h (s390_tune_string, s390_arch_string)
11536         (s390_warn_framesize_string, s390_warn_dynamicstack_string)
11537         (s390_stack_size_string, s390_stack_guard_string, target_flags)
11538         (MASK_HARD_FLOAT, MASK_SMALL_EXEC, MASK_DEBUG_ARG, MASK_64BIT)
11539         (MASK_ZARCH, MASK_MVCLE, MASK_TPF_PROFILING, MASK_NO_FUSED_MADD)
11540         (MASK_BACKCHAIN, MASK_PACKED_STACK, TARGET_HARD_FLOAT)
11541         (TARGET_SOFT_FLOAT, TARGET_SMALL_EXEC, TARGET_DEBUG_ARG)
11542         (TARGET_64BIT, TARGET_ZARCH, TARGET_MVCLE, TARGET_TPF_PROFILING)
11543         (TARGET_NO_FUSED_MADD, TARGET_FUSED_MADD, TARGET_BACKCHAIN)
11544         (TARGET_PACKED_STACK, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
11545         * config/s390/s390.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
11546         (TARGET_HANDLE_OPTION): Likewise.
11547         (s390_tune): Initialize to PROCESSOR_max.
11548         (s390_arch_string): Make static.
11549         (s390_tune_string, s390_warn_framesize_string): Delete.
11550         (s390_warn_dynamicstack_string, s390_stack_size_string): Delete.
11551         (s390_stack_guard_string, s390_warn_dynamicstack_p): Delete.
11552         (s390_handle_arch_option, s390_handle_option): New functions.
11553         (override_options): Remove parsing of option strings.
11554         * config/s390/s390.opt: New file.
11555
11556 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
11557
11558         * tree-complex.c (expand_vector_operations): Call
11559         update_stmt_if_modified.
11560
11561 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
11562
11563         * tree-vect-analyze (vect_determine_vectorization_factor):
11564         Do not use GET_MODE_NUNITS.
11565         * tree-vect-transform.c (vect_get_vec_def_for_operand,
11566         (vectorizable_load, vect_transform_loop): Likewise.
11567
11568 2005-04-11  Uros Bizjak  <uros@kss-loka.si>
11569
11570         * builtins.def (BUILT_IN_LCEIL, BUILT_IN_LCEILF, BUILT_IN_LCEILL)
11571         (BUILT_IN_LLCEIL, BUILT_IN_LLCEILF, BUILT_IN_LLCEILL): New.
11572         * optabs.h (enum optab_index): Add new OTI_lceil.
11573         (lceil_optab): Define corresponding macro.
11574         * optabs.c (init_optabs): Initialize lceil_optab.
11575         * genopinit.c (optabs): Implement lceil_optab using lceilsi2
11576         and lceildi2 patterns.
11577         * builtins.c (expand_builtin_int_roundingfn): Handle
11578         BUILT_IN_LCEIL{,F,L} and BUILT_IN_LLCEIL{,F,L}.
11579         (fold_builtin_int_roundingfn): Handle BUILT_IN_LCEIL{,F,L} and
11580         BUILT_IN_LLCEIL{,F,L}.
11581         (fold_builtin_1): Fold BUILT_IN_LCEIL{,F,L} and
11582         BUILT_IN_LLCEIL{,F,L} using fold_builtin_int_roundingfn.
11583         (mathfn_built_in): Handle BUILT_IN LCEIL and BUILT_IN_LLCEIL.
11584         (expand_builtin): Expand BUILT_IN_LCEIL{,F,L} and
11585         BUILT_IN_LLCEIL{,F,L} using expand_builtin_int_roundingfn.
11586         * convert.c (convert_to_integer): Convert (long int)ceil{,f,l},
11587         into lceil built-in function and (long long int)ceil{,f,l} into
11588         llceil built-in function.
11589         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LCEIL and
11590         BUILT_IN_LLCEIL.
11591
11592 2005-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11593
11594         * pa/quadlib.c (_U_Qfneg): Toggle sign bit instead of subtracting from
11595         zero.
11596
11597 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
11598
11599         * config/arm/arm.c: Fix a comment typo.
11600         * doc/tree-ssa.texi: Fix a typo.
11601
11602 2005-04-10  Steven Bosscher  <stevenb@suse.de>
11603
11604         * cselib.c (clear_table): Rename to cselib_clear_table.
11605         * cselib.h (cselib_clear_table): Add prototype.
11606         * gcse.c (gcse_main): Make 'f' argument unused.
11607         (alloc_gcse_mem): Do not walk the insn chain, walk the contents
11608         of each basic block instead.
11609         (compute_sets, compute_hash_table_work): Likewise.
11610         (constprop_register): Change int 'alter_jumps' argument to bool.
11611         (do_local_cprop): Likewise.
11612         (local_cprop_pass): Likewise.  Also walk basic blocks instead of
11613         the insn chain.  Explicitly clear the cselib tables after finishing
11614         one basic block.  Make sure there are no unterminated libcall blocks.
11615         Update compute_sets call.
11616         (cprop): Walk basic blocks instead of the insn chain.
11617         (one_cprop_pass, compute_ld_motion_mems, compute_store_table):
11618         Likewise.
11619         (bypass_jumps): Update alloc_gcse_mem, compute_sets, and
11620         one_cprop_pass calls.
11621
11622 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
11623
11624         * combine.c (combine_simplify_rtx): Remove a transformation that
11625         relies on an invalid assumption about rtl sign-extension semantics.
11626
11627 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
11628
11629         * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
11630         to build_int_cst_wide.
11631
11632 2005-04-09  Alexandre Oliva  <aoliva@redhat.com>
11633
11634         PR target/20126
11635         * loop.c (loop_givs_rescan): If replacement of DEST_ADDR failed,
11636         set the original address pseudo to the correct value before the
11637         original insn, if possible, and leave the insn alone, otherwise
11638         create a new pseudo, set it and replace it in the insn.
11639         * recog.c (validate_change_maybe_volatile): New.
11640         * recog.h (validate_change_maybe_volatile): Declare.
11641
11642 2005-04-09  Caroline Tice  <ctice@apple.com>
11643
11644         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
11645         Remove targetm.have_named_sections test.
11646         (fix_edges_for_rarely_executed_code): Likewise.
11647         (insert_section_boundary_note): Likewise.
11648         (reorder_basic_blocks): Check partitioning flag before calling
11649         verify_hot_cold_block_grouping.
11650         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
11651         the function struct rather than global variables.
11652         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
11653         (COLD_END_LABEL): Likewise
11654         (cold_text_section_label): New static global variable.
11655         (cold_end_label): Likewise.
11656         (dwarf2out_switch_text_section): Get hot/cold section labels from
11657         the function struct rather than global variables.
11658         (output_aranges): Use cold_text_section_label and cold_end_label;
11659         check partitioning flag before putting out delta.
11660         (output_ranges): Remove incorrect code attempting to use
11661         hot/cold labels.
11662         (output_line_info): Get cold section label from function struct.
11663         (add_location_or_const_value_attribute): Likewise.
11664         (get_subprogram_die): Get hot/cold section labels from function struct.
11665         (dwarf2out_var_location): Likewise.
11666         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
11667         write out cold_text_section_label if partition flag is set.
11668         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
11669         * function.h (struct function): Add new fields to point to hot/cold
11670         section labels: hot_section_label, cold_section_label,
11671         hot_section_end_label and cold_section_end_label; also add new field
11672         for cold text section name, unlikely_text_section_name.
11673         * opts.c (decode_options): Turn off partitioning flag if
11674         !targetm.have_named_sections.
11675         * output.h (hot_section_label): Remove.
11676         (hot_section_end_label): Remove.
11677         (cold_section_end_label): Remove.
11678         (unlikely_section_label): Remove.
11679         (unlikely_text_section_name): Remove.
11680         * passes.c (rest_of_handle_final):  Remove code that frees
11681         unlikely_text_section_name.
11682         * varasm.c (unlikely_section_label): Remove.
11683         (hot_section_label): Remove.
11684         (hot_section_end_label): Remove.
11685         (cold_section_end_label): Remove.
11686         (unlikely_text_section_name):  Remove.
11687         (initialize_cold_section_name): Modify to call
11688         targetm.strip_name_encoding; to store cold section name in current
11689         function struct, if it exists; and to only use the decl_section_name
11690         if flag_named_sections is true.
11691         (unlikely_text_section): Modify to get section name out of current
11692         function struct, if there is one; otherwise build it from
11693         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
11694         (in_unlikely_text_section): Likewise.
11695         (named_section): Modify to get/put cold section name in current function
11696         struct, if there is one.
11697         (function_section):  Change 'bool unlikely' to 'int reloc'; check
11698         targetm.have_named_sections before calling named_section.
11699         (current_function_section): Likewise.
11700         (assemble_start_function): Modify to get/put unlikely_text_section_name
11701         in current function struct; modify to get hot/cold section labels
11702         from function struct; initialize labels using
11703         ASM_GENERATE_INTERNAL_LABEL;
11704         test partitioning flag before writing out hot section label.
11705         (assemble_end_function): Test partitioning flag before writing out
11706         hot/cold section labels.
11707         (default_section_type_flags_1):  Modify to use array instead of
11708          char* for unlikely_text_section_name; set flags correctly for
11709          cold text section if there is not a current function decl.
11710
11711 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
11712
11713         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
11714         and TI_VA_LIST_FPR_COUNTER_FIELD.
11715         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
11716         * tree-pass.h (pass_stdarg): Add.
11717         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
11718         * tree-stdarg.c: New file.
11719         * tree-stdarg.h: New file.
11720         * Makefile.in (OBJS-common): Add tree-stdarg.o.
11721         (tree-stdarg.o): Add dependencies.
11722         * function.h (struct function): Add va_list_gpr_size and
11723         va_list_fpr_size fields.
11724         * function.c (allocate_struct_function): Initialize them.
11725         * target.h (struct gcc_target): Add stdarg_optimize_hook.
11726         * target-def.h (TARGET_STDARG_OPTIMIZE_HOOK): Define.
11727         (TARGET_INITIALIZER): Add it.
11728
11729         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
11730         va_list_{g,f}pr_counter_field.
11731         (ix86_setup_incoming_varargs): Don't do anything if reg_save
11732         area will not be used.  Only save registers that tree-stdarg.c
11733         detected they need saving.
11734         (ix86_va_start): Don't set up fields that won't be used.
11735
11736         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
11737         va_list_{g,f}pr_counter_field.
11738         (setup_incoming_varargs): Don't do anything if reg_save
11739         area will not be used.  Only save registers that tree-stdarg.c
11740         detected they need saving.
11741         (rs6000_va_start): Don't set up fields that won't be used.
11742
11743         * config/alpha/alpha.c: Include tree-flow.h and tree-stdarg.h.
11744         (alpha_build_builtin_va_list): Initialize va_list_gpr_counter_field.
11745         (va_list_skip_additions, alpha_stdarg_optimize_hook): New functions.
11746         (TARGET_STDARG_OPTIMIZE_HOOK): Define.
11747
11748 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
11749
11750         PR target/20795
11751         * config/i386/i386.c (construct_container): Pass empty aligned
11752         struct, union or class in memory.
11753
11754 2005-04-09  Kazu Hirata  <kazu@cs.umass.edu>
11755
11756         * dominance.c, gthr-win32.h, reg-stack.c, tree-ssa-copy.c,
11757         tree-ssa-operands.c, tree-ssa.c, tree-vrp.c, varasm.c,
11758         config/alpha/alpha.c, config/arm/arm.c, config/m32r/m32r.h,
11759         config/rs6000/predicates.md: Fix comment typos.
11760
11761         * sched-int.h (haifa_insn_data): Remove blockage and units.
11762         (INSN_UNIT, INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK,
11763         ENCODE_BLOCKAGE, UNIT_BLOCKED, BLOCKAGE_RANGE,
11764         MIN_BLOCKAGE_COST, MAX_BLOCKAGE_COST): Remove.
11765
11766 2005-04-09  Jan Hubicka  <jh@suse.cz>
11767             Steven Bosscher  <stevenb@suse.de>
11768
11769         * cfglayout.c (copy_bbs): Rename n_edges to num_edges.
11770         * cfgloop.c (get_loop_exit_edges): Likewise.
11771         * cfgloopmanip.c (fix_irreducible_loops): Likewise.
11772         (unloop): Likewise.
11773         * loop-unroll.c (analyze_insns_in_loop): Likewise.
11774         * tree-cfg.c (dump_cfg_status): Likewise.
11775
11776 2005-04-09  David Edelsohn  <edelsohn@gnu.org>
11777
11778         * config/rs6000/predicates.md (altivec_register_operand): Remove
11779         redundant match_code test.
11780         (gpc_reg_operand): Same.
11781         (cc_reg_operand): Same.
11782         (cc_reg_not_cr0_operand): Same.
11783
11784 2005-04-09  Jan Hubicka  <jh@suse.cz>
11785
11786         Forgotten hunk from my last merge patch:
11787         * final.c (output_addr_const): Do not call mark_referenced.
11788
11789 2005-04-09  Andrew MacLeod  <amacleod@redhat.com>
11790
11791         * doc/tree-ssa.texi: Add immediate use documentation.
11792
11793 2005-04-09  Richard Earnshaw <richard.earnshaw@arm.com>
11794
11795         * arm.c (FL_WBUF): Define.
11796         (arm_tune_strongarm): Renamed from arm_is_strong.  All uses changed.
11797         (arm_is_6_or_7): Delete.
11798         (arm_tune_wbuf): New.
11799         (arm_override_options): Set arm_tune_wbuf.
11800         * arm.h (arm_tune_strongarm): Renamed from arm_is_strong.
11801         (arm_is_6_or_7): Delete declaration.
11802         (arm_tune_wbuf): New declartion.
11803         * arm.md (is_strongarm): Derive from arm_tune_strongarm.
11804         (model_wbuf): Derive from arm_tune_wbuf.
11805         * arm-cores.def (arm600, arm610, arm620, arm700, arm700i, arm710)
11806         (arm720, arm710c, arm7100, arm7500, arm7500fe, arm710t, arm720t)
11807         (arm740t): Mark CPUs as having a write buffer.
11808
11809 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
11810
11811         * config/i386/i386.md (*fp_jcc_7_387): Use 'const0_operand' instead
11812         of 'const_double_operand' in operand 2 constraints.  Update enable
11813         condition.
11814
11815 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
11816
11817         * builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL)
11818         (BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
11819         * optabs.h (enum optab_index): Add new OTI_lfloor.
11820         (lfloor_optab): Define corresponding macro.
11821         * optabs.c (init_optabs): Initialize lfloor_optab.
11822         * genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
11823         and lfloordi2 patterns.
11824         * builtins.c (expand_builtin_int_roundingfn): New prototype.
11825         (expand_builtin_int_roundingfn): New function.
11826         (fold_builtin_int_roundingfn): New prototype.
11827         (fold_builtin_int_roundingfn): New function, renamed from
11828         fold_builtin_lround.
11829         Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
11830         BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
11831         (fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
11832         BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
11833         (mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
11834         (expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
11835         BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
11836         * convert.c (convert_to_integer): Convert (long int)floor{,f,l},
11837         into lfloor built-in function and (long long int)floor{,f,l} into
11838         llfloor built-in function.
11839         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
11840         BUILT_IN_LLFLOOR.
11841
11842 2005-04-08  Ian Lance Taylor  <ian@airs.com>
11843
11844         * c-common.def: Move FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
11845         CONTINUE_STMT, and SWITCH_STMT to cp/cp-tree.def.
11846         * c-common.h (WHILE_COND, WHILE_BODY): Move to cp/cp-tree.h.
11847         (DO_COND, DO_BODY): Likewise.
11848         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Likewise.
11849         (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Likewise.
11850         (c_common_stmt_codes): Remove FOR_STMT, WHILE_STMT, DO_STMT,
11851         BREAK_STMT, CONTINUE_STMT, and SWITCH_STMT.
11852         (build_continue_stmt, build_break_stmt): Don't declare.
11853         (c_do_switch_warnings): Update declaration.
11854         * c-gimplify.c (enum bc_t): Remove.
11855         (struct c_gimplify_ctx, ctxp): Remove.
11856         (push_context, pop_context): Remove static functions.
11857         (c_genericize): Don't call push_context or pop_context.
11858         (begin_bc_block, finish_bc_block): Remove static functions.
11859         (build_bc_goto): Likewise.
11860         (gimplify_c_loop): Likewise.
11861         (gimplify_for_stmt, gimplify_while_stmt): Likewise.
11862         (gimplify_do_stmt, gimplify_switch_stmt): Likewise.
11863         (c_gimplify_expr): Remove handling of FOR_STMT, WHILE_STMT,
11864         DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
11865         * c-common.c (c_do_switch_warnings): Rename from
11866         c_do_switch_warnings_1.
11867         (c_do_switch_warnings) [old version]: Remove.
11868         (c_do_switch_expr_warnings): Remove.
11869         * c-typeck.c (c_finish_case): Call new c_do_switch_warnings
11870         function instead of c_do_switch_expr_warnings.
11871         * c-dump.c (c_dump_tree): Remove handling of BREAK_STMT,
11872         CONTINUE_STMT, DO_STMT, FOR_STMT, SWITCH_STMT, and WHILE_STMT.
11873         * c-pretty-print.c (pp_c_statement): Likewise.
11874         * c-semantics.c (build_break_stmt, build_continue_stmt): Remove.
11875
11876 2005-04-08  Devang Patel  <dpatel@apple.com>
11877
11878         * tree-if-conv.c (find_phi_replacement_condition): New parameter, loop.
11879         While selecting replacement condition pay attention to loop header.
11880
11881 2005-04-08  Diego Novillo  <dnovillo@redhat.com>
11882
11883         Merge from tree-cleanup-branch: VRP, store CCP, store
11884             copy-prop, incremental SSA updating of FUD chains and
11885             newly exposed symbols.
11886
11887         * Makefile.in (tree-ssa-copy.o): Depend on tree-ssa-propagate.h.
11888         (OBJS-common): Add tree-vrp.o.
11889         (tree-vrp.o): New rule.
11890         * basic-block.h (nearest_common_dominator_for_set): Declare.
11891         * common.opt (ftree-store-ccp): New flag.
11892         (ftree-copy-prop): New flag.
11893         (ftree-vrp): New flag.
11894         (ftree-store-copy-prop): New flag.
11895         * dominance.c (nearest_common_dominator_for_set): New.
11896         * domwalk.c (walk_dominator_tree): Only traverse
11897         statements in blocks marked in walk_data->interesting_blocks.
11898         * domwalk.h (struct dom_walk_data): Add field interesting_blocks.
11899         * fold-const.c (fold): Handle ASSERT_EXPR.
11900         * opts.c (decode_options): Set flag_tree_copy_prop at -O1.
11901         Set flag_tree_store_ccp, flag_tree_store_copy_prop and
11902         flag_tree_vrp at -O2.
11903         * timevar.def (TV_TREE_VRP): Define.
11904         (TV_TREE_COPY_PROP): Define.
11905         (TV_TREE_STORE_COPY_PROP): Define.
11906         (TV_TREE_SSA_INCREMENTAL): Define.
11907         (TV_TREE_STORE_CCP): Define.
11908         * tree-cfg.c (tree_can_merge_blocks_p): Remove reference
11909         to kill_redundant_phi_nodes from comment.
11910         (verify_expr): Handle ASSERT_EXPR.
11911         * tree-dfa.c (mark_new_vars_to_rename): Remove second
11912         argument.  Update all users.
11913         (mark_call_clobbered_vars_to_rename): Remove.  Update all
11914         users.
11915         * tree-flow-inline.h (unmodifiable_var_p): New.
11916         * tree-flow.h (enum value_range_type): Declare.
11917         (struct value_range_def): Declare.
11918         (value_range): Declare.
11919         (remove_all_phi_nodes_for): Remove.  Update all users.
11920         (find_phi_node_for): Declare.
11921         (add_type_alias): Declare.
11922         (count_uses_and_derefs): Declare.
11923         (kill_redundant_phi_nodes): Remove.
11924         (rewrite_into_ssa): Remove.
11925         (rewrite_def_def_chains): Remove.
11926         (update_ssa, register_new_name_mapping, create_new_def_for,
11927         need_ssa_update_p, name_registered_for_update_p,
11928         release_ssa_name_after_update_ssa, dump_repl_tbl,
11929         debug_repl_tbl, dump_names_replaced_by,
11930         debug_names_replaced_by, mark_sym_for_renaming,
11931         mark_set_for_renaming, get_current_def, set_current_def,
11932         get_value_range, dump_value_range, debug_value_range,
11933         dump_all_value_ranges, debug_all_value_ranges,
11934         expr_computes_nonzero, loop_depth_of_name,
11935         unmodifiable_var_p): Declare.
11936         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle
11937         ASSERT_EXPR.
11938         * tree-into-ssa.c (block_defs_stack): Update comment.
11939         (old_ssa_names, new_ssa_names, old_virtual_ssa_names,
11940         syms_to_rename, names_to_release, repl_tbl,
11941         need_to_initialize_update_ssa_p, need_to_update_vops_p,
11942         need_to_replace_names_p): New locals.
11943         (NAME_SETS_GROWTH_FACTOR): Define.
11944         (struct repl_map_d): Declare.
11945         (struct mark_def_sites_global_data): Add field
11946         interesting_blocks.
11947         (enum rewrite_mode): Declare.
11948         (REGISTER_DEFS_IN_THIS_STMT): Define.
11949         (compute_global_livein): Use last_basic_block instead of
11950         n_basic_blocks.
11951         (set_def_block): Remove last argument.  Update all callers.
11952         (prepare_use_operand_for_rename): Remove.  Update all callers.
11953         (prepare_def_operand_for_rename): Remove.  Update all callers.
11954         (symbol_marked_for_renaming): New.
11955         (is_old_name): New.
11956         (is_new_name): New.
11957         (repl_map_hash): New.
11958         (repl_map_eq): New.
11959         (repl_map_free): New.
11960         (names_replaced_by): New.
11961         (add_to_repl_tbl): New.
11962         (add_new_name_mapping): New.
11963         (mark_def_sites): Assume that all the operands in the
11964         statement are in normal form.
11965         (find_idf): Assert that the block in the stack is valid.
11966         (get_default_def_for): New.
11967         (insert_phi_nodes_for): Add new argument 'update_p'.
11968         Add documentation.
11969         If update_p is true, add a new mapping between the LHS of
11970         each new PHI and the name that it replaces.
11971         (insert_phi_nodes_1): Only call find_idf if needed.
11972         (get_reaching_def): Call get_default_def_for.
11973         (rewrite_operand): Remove.
11974         (rewrite_stmt): Do nothing if REGISTER_DEFS_IN_THIS_STMT
11975         and REWRITE_THIS_STMT are false.
11976         Assume that all the operands in the statement are in
11977         normal form.
11978         (rewrite_add_phi_arguments): Don't use PHI_REWRITTEN.
11979         (rewrite_virtual_phi_arguments): Remove.
11980         (invalidate_name_tags): Remove.
11981         (register_new_update_single, register_new_update_set,
11982         rewrite_update_init_block, replace_use,
11983         rewrite_update_fini_block, rewrite_update_stmt,
11984         rewrite_update_phi_arguments): New.
11985         rewrite_blocks): Remove argument 'fix_virtual_phis'.
11986         Add arguments 'entry', 'what' and 'blocks'.
11987         Initialize the dominator walker according to 'what' and
11988         'blocks'.
11989         Start the dominator walk at 'entry'.
11990         (mark_def_site_blocks): Add argument 'interesting_blocks'.
11991         Use it to configure the dominator walker.
11992         (rewrite_into_ssa): Remove argument 'all'.
11993         Make internal.
11994         (rewrite_all_into_ssa): Remove.
11995         (rewrite_def_def_chains): Remove.
11996         (mark_def_interesting, mark_use_interesting,
11997         prepare_phi_args_for_update, prepare_block_for_update,
11998         prepare_def_site_for, prepare_def_sites,
11999         dump_names_replaced_by, debug_names_replaced_by,
12000         dump_repl_tbl, debug_repl_tbl, init_update_ssa,
12001         delete_update_ssa, create_new_def_for,
12002         register_new_name_mapping, mark_sym_for_renaming,
12003         mark_set_for_renaming, need_ssa_update_p,
12004         name_registered_for_update_p, ssa_names_to_replace,
12005         release_ssa_name_after_update_ssa,
12006         insert_updated_phi_nodes_for, update_ssa): New.
12007         * tree-loop-linear.c (linear_transform_loops): Call
12008         update_ssa instead of rewrite_into_ssa.
12009         * tree-optimize.c (vars_to_rename): Remove.
12010         Update all users.
12011         (init_tree_optimization_passes): Replace
12012         pass_redundant_phi with pass_copy_prop.
12013         Add pass_vrp.
12014         Replace pass_ccp with pass_store_ccp.
12015         Add pass_store_copy_prop after pass_store_ccp.
12016         (execute_todo): If the TODO_ flags don't include updating
12017         the SSA form, assert that it does not need to be updated.
12018         Call update_ssa instead of rewrite_into_ssa and
12019         rewrite_def_def_chains.
12020         If TODO_verify_loops is set, call verify_loop_closed_ssa.
12021         (tree_rest_of_compilation):
12022         * tree-pass.h (TODO_dump_func, TODO_ggc_collect,
12023         TODO_verify_ssa, TODO_verify_flow, TODO_verify_stmts,
12024         TODO_cleanup_cfg): Renumber.
12025         (TODO_verify_loops, TODO_update_ssa,
12026         TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
12027         TODO_update_ssa_only_virtuals): Define.
12028         (pass_copy_prop, pass_store_ccp, pass_store_copy_prop, pass_vrp):
12029         Declare.
12030         * tree-phinodes.c (make_phi_node): Update documentation.
12031         (remove_all_phi_nodes_for): Remove.
12032         (find_phi_node_for): New.
12033         * tree-pretty-print.c (dump_generic_node): Handle ASSERT_EXPR.
12034         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Likewise.
12035         (interpret_rhs_modify_expr): Likewise.
12036         * tree-sra.c (decide_instantiations): Mark all symbols in
12037         SRA_CANDIDATES for renaming.
12038         (mark_all_v_defs_1): Rename from mark_all_v_defs.
12039         (mark_all_v_defs): New function.  Update all users to call it
12040         with the whole list of scalarized statements, not just the
12041         first one.
12042         * tree-ssa-alias.c (count_ptr_derefs): Make extern.
12043         (compute_flow_insensitive_aliasing): If the tag is
12044         unmodifiable and the variable isn't or vice-versa, don't
12045         make them alias of each other.
12046         (setup_pointers_and_addressables): If the type tag for
12047         VAR is about to change, mark the old one for renaming.
12048         (add_type_alias): New.
12049         * tree-ssa-ccp.c: Document SSA-CCP and STORE-CCP.
12050         (ccp_lattice_t): Rename from latticevalue.
12051         (value): Remove.  Update all users.
12052         (const_val): New local variable.
12053         (do_store_ccp): New local variable.
12054         (dump_lattice_value): Handle UNINITIALIZED.
12055         (debug_lattice_value): New.
12056         (get_default_value): Re-write.
12057         (set_lattice_value): Re-write.
12058         (def_to_varying): Remove.  Update all users.
12059         (likely_value): Return VARYING for statements that make
12060         stores when STORE_CCP is false.
12061         Return VARYING for any statement other than MODIFY_EXPR,
12062         COND_EXPR and SWITCH_EXPR.
12063         (ccp_initialize): Re-write.
12064         (replace_uses_in, replace_vuse_in, substitute_and_fold):
12065         Move to tree-ssa-propagate.c.
12066         (ccp_lattice_meet): Handle memory stores when
12067         DO_STORE_CCP is true.
12068         (ccp_visit_phi_node): Likewise.
12069         (ccp_fold): Likewise.
12070         (evaluate_stmt): Likewise.
12071         (visit_assignment): Likewise.
12072         (ccp_visit_stmt): Likewise.
12073         (execute_ssa_ccp): Add argument 'store_ccp'.  Copy it
12074         into DO_STORE_CCP.
12075         (do_ssa_ccp): New.
12076         (pass_ccp): Use it.
12077         (do_ssa_store_ccp): New.
12078         (gate_store_ccp): New.
12079         (pass_store_ccp): Declare.
12080         * tree-ssa-copy.c: Include tree-ssa-propagate.h.
12081         (may_propagate_copy): Reformat.
12082         Don't abort if ORIG is a virtual and DEST isn't.
12083         If NEW does not have alias information but DEST does,
12084         copy it.
12085         (copy_of, cached_last_copy_of, do_store_copy_prop, enum
12086         copy_prop_kind, which_copy_prop): Declare.
12087         (stmt_may_generate_copy, get_copy_of_val,
12088         get_last_copy_of, set_copy_of_val, dump_copy_of,
12089         copy_prop_visit_assignment, copy_prop_visit_cond_stmt,
12090         copy_prop_visit_stmt, copy_prop_visit_phi_node,
12091         init_copy_prop, fini_copy_prop, execute_copy_prop,
12092         gate_copy_prop, do_copy_prop, gate_store_copy_prop,
12093         store_copy_prop): New.
12094         (pass_copy_prop, pass_store_copy_prop): Declare.
12095         * tree-ssa-dom.c (struct opt_stats_d): Add fields
12096         'num_const_prop' and 'num_copy_prop'.
12097         (cprop_operand): Update them.
12098         (dump_dominator_optimization_stats): Dump them.
12099         (tree_ssa_dominator_optimize): Call update_ssa instead of
12100         rewrite_into_ssa.
12101         (loop_depth_of_name): Declare extern.
12102         (simplify_cond_and_lookup_avail_expr): Guard against NULL
12103         values for LOW or HIGH.
12104         (cprop_into_successor_phis): Only propagate if NEW != ORIG.
12105         (record_equivalences_from_stmt): Call expr_computes_nonzero.
12106         (cprop_operand): Only propagate if VAL != OP.
12107         * tree-ssa-dse.c (dse_optimize_stmt): Mark symbols in removed
12108         statement for renaming.
12109         * tree-ssa-loop-im.c (move_computations): Call update_ssa.
12110         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call
12111         add_type_alias if necessary.
12112         Call mark_new_vars_to_rename.
12113         (tree_ssa_iv_optimize): If new symbols need to be renamed,
12114         mark every statement updated, call update_ssa and
12115         rewrite_into_loop_closed_ssa.
12116         * tree-ssa-loop-manip.c (add_exit_phis): Do not remove DEF_BB
12117         from LIVEIN if VAR is a virtual.
12118         * tree-ssa-loop.c (tree_loop_optimizer_init): Call update_ssa.
12119         * tree-ssa-operands.c (get_expr_operands): Handle ASSERT_EXPR.
12120         (get_call_expr_operands): Reformat statement.
12121         (add_stmt_operand): Don't create V_MAY_DEFs for read-only
12122         symbols.
12123         * tree-ssa-propagate.c (ssa_prop_init): Initialize
12124         SSA_NAME_VALUE for every name.
12125         (first_vdef, stmt_makes_single_load, stmt_makes_single_store,
12126         get_value_loaded_by): New.
12127         (replace_uses_in, replace_vuses_in, replace_phi_args_in,
12128         substitute_and_fold): Move from tree-ssa-ccp.c.
12129         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t,
12130         first_vdef, stmt_makes_single_load, stmt_makes_single_store,
12131         get_value_loaded_by, replace_uses_in, substitute_and_fold):
12132         Declare.
12133         * tree-ssa.c (verify_use): Fix error message.
12134         (propagate_into_addr, replace_immediate_uses, get_eq_name,
12135         check_phi_redundancy, kill_redundant_phi_nodes,
12136         pass_redundant_phi): Remove.  Update all users.
12137         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
12138         add_type_alias, if necessary.
12139         * tree-vectorizer.h (struct _stmt_vect_info): Update
12140         documentation for field 'memtag'.
12141         * tree-vrp.c: New file.
12142         * tree.def (ASSERT_EXPR): Define.
12143         * tree.h (ASSERT_EXPR_VAR): Define.
12144         (ASSERT_EXPR_COND): Define.
12145         (SSA_NAME_VALUE_RANGE): Define.
12146         (struct tree_ssa_name): Add field 'value_range'.
12147         (PHI_REWRITTEN): Remove.
12148         (struct tree_phi_node): Remove field 'rewritten'.
12149         * doc/invoke.texi (-fdump-tree-storeccp, -ftree-copy-prop,
12150         -ftree-store-copy-prop): Document.
12151         * doc/tree-ssa.texi: Remove broken link to McCAT's compiler.
12152         Document usage of update_ssa.
12153
12154 2005-04-08  David Edelsohn  <edelsohn@gnu.org>
12155
12156         PR target/20814
12157         * config/rs6000/predicates.md (altivec_register_operand): Accept
12158         SUBREG.
12159         (and64_operand): Do not limit CONST_INT to mask64_operand.
12160         (and64_2_operand): Do not limit CONST_INT to mask64_1or2_operand.
12161         (and_operand): Do not limit CONST_INT to mask_operand.
12162
12163 2005-04-09  Hans-Peter Nilsson  <hp@axis.com>
12164
12165         PR rtl-optimization/20466
12166         * flow.c (invalidate_mems_from_set): Handle a MEM by checking it
12167         for overlap of the address of each list member.
12168         (mark_set_1): Call invalidate_mems_from_set for MEMs too.
12169
12170 2005-04-08  Mike Stump  <mrs@apple.com>
12171
12172         * config/darwin.c (indirect_data): Fix typo in strncmp logic.
12173
12174         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use 5 nops,
12175         instead of 4.
12176
12177 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
12178
12179         * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
12180
12181         * function.c (push_function_context_to): Don't set
12182         contains_functions.
12183         * function.h (function): Remove contains_functions.
12184         (current_function_contains_functions): Remove.
12185
12186         * function.h (function): Remove instrument_entry_exit.
12187         (current_function_instrument_entry_exit): Remove.
12188
12189         * function.h (nonlocal_labels): Remove.
12190
12191         * tree.h (STRIP_MAIN_TYPE_NOPS): Remove.
12192
12193         * genattrtab.c (attr_desc): Remove negative_ok and unsigned_p.
12194         (check_attr_value, write_attr_get, write_expr_attr_cache,
12195         find_attr, make_internal_attr): Don't reference negative_ok or
12196         unsigned_p.
12197         * genattrtab.h (ATTR_NEGATIVE_OK, ATTR_UNSIGNED,
12198         ATTR_FUNC_UNITS, ATTR_BLOCKAGE): Remove.
12199         (ATTR_STATIC): Adjust the value.
12200
12201         * c-common.h (C_ARTIFICIAL_STRING_P): Remove.
12202
12203 2005-04-08  Ulrich Weigand  <uweigand@de.ibm.com>
12204
12205         * config/s390/tpf.h (ASM_SPEC): Define.
12206
12207 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
12208
12209         * tree-flow.h: Remove the prototype for
12210         redirect_immediate_uses.
12211         (TDFA_USE_OPS, TDFA_USE_VOPS): Remove.
12212
12213 2005-04-08  Richard Earnshaw  <richard.earnshaw@arm.com>
12214
12215         * arm.c (arm_const_double_by_parts): New function.
12216         * arm-protos.h (arm_const_double_by_parts): Add prototype.
12217         * arm.md (define_split for 64-bit constants): Add another one.
12218
12219 2005-04-08  Andrew MacLeod  <amacleod@redhat.com>
12220
12221         * tree-ssa-operands.c (correct_use_link): Remove linear scan.
12222
12223 2005-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12224
12225         * system.h: Revert last change.
12226
12227 2005-04-08  Richard Sandiford  <rsandifo@redhat.com>
12228
12229         * config/xtensa/xtensa.h (target_flags, MASK_NO_FUSED_MADD)
12230         (MASK_CONST16, TARGET_NO_FUSED_MADD, TARGET_CONST16)
12231         (TARGET_SWITCHES): Delete.
12232         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
12233         * config/xtensa/xtensa.md (muladdsf3, mulsubsf3): Check
12234         TARGET_FUSED_MADD instead of !TARGET_NO_FUSED_MADD.
12235         * config/xtensa/xtensa.opt: New file.
12236
12237 2005-04-08  Ben Elliston  <bje@au.ibm.com>
12238
12239         * config/fp-bit.c: Include L_mul_tf in #endif comment.
12240         * config/fp-bit.h: Tidy comments.
12241
12242 2005-04-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12243
12244         * system.h: Poison PARAMS.
12245
12246 2005-04-07  Richard Sandiford  <rsandifo@redhat.com>
12247
12248         * config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
12249         (MASK_G_FLOAT, TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT)
12250         (TARGET_SWITCHES): Delete.
12251         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
12252         * config/vax/vax.opt: New file.
12253
12254 2005-04-07  Daniel Berlin  <dberlin@dberlin.org>
12255
12256         * tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
12257
12258 2005-04-07  Ian Lance Taylor  <ian@airs.com>
12259
12260         * config/iq2000/iq2000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Don't
12261         define.
12262         * config/mips/mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
12263         * config/sparc/sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE):
12264         Likewise.
12265
12266 2005-04-07  Kazu Hirata  <kazu@cs.umass.edu>
12267
12268         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Consider
12269         all immediate uses in PHI nodes.
12270
12271 2005-04-07  Richard Earnshaw  <richard.earnshaw@arm.com>
12272
12273         * arm.c (arm_const_double_inline_cost): Handle any constant by
12274         using gen_lowpart and gen_highpart_mode.
12275         (note_invalid_constants): All constants in an RTX with a constraint
12276         that permits memory are now pushed to the constant pool.
12277         (output_move_double): Delete code to handle reg to reg and
12278         constant to reg moves.
12279         (const_double_needs_minipool, output_mov_immediate): Delete.
12280         * arm.h (EXTRA_CONSTRAINT_STR_ARM): All 'D' variants now handle
12281         CONST_INT and CONST_VECTOR.
12282         * arm.md (ANY64): New mode macro.
12283         (arm_movdi): Split reg-reg and const-reg moves.  Simplify constraints.
12284         (movdf_soft_insn): Split reg-reg and const-reg moves.
12285         (split patterns for 64-bit constant and register moves): New.
12286         * cirrus.md (cirrus_arm_movdi): Split reg-reg and const-reg moves.
12287         (cirrus_movdf_hard_insn): Likewise.
12288         * fpa.md (movdf_fpa): Likewise.
12289         * iwmmxt.md (iwmmxt_arm_movdi): Likewise.
12290         (movv8qi_internal, movv4hi_internal, movv2si_internal): Fix
12291         constraints.
12292         (movv2si_internal_2): Likewise.
12293         * vfp.md (arm_movdi_vfp): Split reg-reg and const-reg moves.
12294         (movdf_vfp): Likewise.
12295         * arm-protos.h (output_mov_immediate): Delete prototype.
12296
12297 2005-04-07  Joseph S. Myers  <joseph@codesourcery.com>
12298
12299         PR target/20093
12300         * simplify-rtx.c (simplify_unary_operation_1): Check
12301         SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
12302
12303 2005-04-06  James E Wilson  <wilson@specifixinc.com>
12304
12305         PR target/20717
12306         * cgraphunit.c (record_call_1, case FDESC_EXPR): Handle same as
12307         ADDR_EXPR.
12308
12309 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
12310
12311         * coverage.h (GCOV_TYPE_NODE): Delete.
12312         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref)
12313         (build_ctr_info_type): Use get_gcov_type () instead of GCOV_TYPE_NODE.
12314         * tree-profile.c (tree_gen_edge_profiler, tree_gen_interval_profiler)
12315         (tree_gen_pow2_profiler, tree_gen_one_value_profiler): Likewise.
12316         * value-prof.c (tree_divmod_fixed_value_transform): Delete.
12317
12318 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
12319
12320         PR other/20792
12321         * Makefile.in (gcc.pot): Remove options.c dependency.
12322         * optc-gen.awk: Don't quote help strings with N_().
12323
12324 2005-04-06  James A. Morrison  <phython@gcc.gnu.org>
12325
12326         * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
12327         the function returns a pointer type.
12328
12329 2005-04-06  Daniel Berlin  <dberlin@dberlin.org>
12330
12331         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): New
12332         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): New
12333         * doc/invoke.texi: Documnet salias-max-implicit-fields.
12334         * tree-ssa-alias.c (struct used_part): Add implicit_uses and
12335         explicit_uses members.
12336         (get_or_create_used_part_for): Initialize new fields.
12337         (fieldoff_compare): New function.
12338         (create_overlap_variables_for): Count number of fields, use
12339         heuristic to determine whether to create subvars for vars with
12340         only implicit uses.
12341         Sort the field list by offset and avoid creating duplicate SFT's.
12342
12343 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
12344
12345         * c.opt (-F): Remove trailing whitespace from help string.
12346         (-finput-charset): Use a tab to separate the switch name and help
12347         string.
12348         * common.opt (-fsched-stalled-insns, -fsched-stalled-insns-dep)
12349         (-ftree-vectorizer-verbose): Likewise.
12350
12351 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
12352
12353         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Look at
12354         a PHI argument where a use occurs instead of all PHI arguments.
12355
12356 2005-04-06  Joseph S. Myers  <joseph@codesourcery.com>
12357
12358         * c-decl.c (finish_decl): Apply pending #pragma weak regardless of
12359         scope.
12360
12361 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
12362
12363         * cse.c, tree-flow-inline.h, tree-flow.h, tree-ssa-operands.c,
12364         tree-ssa-sink.c, tree.h, config/bfin/bfin.c,
12365         config/bfin/bfin.h: Fix comment typos.
12366
12367 2005-04-06  Ranjit Mathew  <rmathew@hotmail.com>
12368
12369         * doc/install.texi: Update the URL for Jacks.
12370         * doc/sourcebuild.texi: Likewise.
12371
12372 2005-04-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
12373
12374         PR target/17245
12375         * config/sparc/sparc.c (legitimate_address_p): Remove 'imm2'.
12376         Revert 2004-10-08 patch.  Reject TFmode LO_SUM in 32-bit mode.
12377
12378 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
12379
12380         * Makefile.in (LIBGCC2_CFLAGS): Revert -pipe change.
12381
12382 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
12383
12384         * config/v850/v850-protos.h (override_options): Delete.
12385         * config/v850/v850.h (target_flags, MASK_GHS, MASK_LONG_CALLS, MASK_EP)
12386         (MASK_PROLOG_FUNCTION, MASK_DEBUG, MASK_V850, MASK_V850E)
12387         (MASK_SMALL_SLD, MASK_BIG_SWITCH, MASK_NO_APP_REGS, MASK_DISABLE_CALLT)
12388         (MASK_STRICT_ALIGN, MASK_US_BIT_SET, MASK_US_MASK_SET, TARGET_GHS)
12389         (TARGET_LONG_CALLS, TARGET_EP, TARGET_PROLOG_FUNCTION, TARGET_V850)
12390         (TARGET_BIG_SWITCH, TARGET_DEBUG, TARGET_V850E, TARGET_US_BIT_SET)
12391         (TARGET_SMALL_SLD, TARGET_DISABLE_CALLT, TARGET_NO_APP_REGS)
12392         (TARGET_STRICT_ALIGN, TARGET_SWITCHES, TARGET_OPTIONS)
12393         (OVERRIDE_OPTIONS): Delete.
12394         (MASK_CPU): Redefine as MASK_V850 | MASK_V850E.
12395         (small_memory_info): Remove the value field.
12396         (CONDITIONAL_REGISTER_USAGE): Check !TARGET_APP_REGS rather than
12397         TARGET_NO_APP_REGS.
12398         * config/v850/v850.c (small_memory): Remove the value field.
12399         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
12400         (override_options): Delete.
12401         (v850_handle_memory_option, v850_handle_option): New functions.
12402         * config/v850/v850.opt: New file.
12403
12404 2005-04-06  Geoffrey Keating  <geoffk@apple.com>
12405
12406         * config.host: Add a section for generic hosts, and a subsection
12407         for Darwin.  Add a case for x86-darwin.  Update ppc-darwin case.
12408         * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c.
12409         * config/host-darwin.h: New.
12410         * config/x-darwin: New.
12411         * config/i386/host-i386-darwin.c: New.
12412         * config/i386/x-darwin: New.
12413         * config/rs6000/host-darwin.c: Include host-darwin.h.
12414         (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c.
12415         (darwin_rs6000_gt_pch_use_address): Likewise.
12416         * config/rs6000/x-darwin: Change name of .o built, update
12417         dependencies for changes to rs6000/host-darwin.c.
12418
12419 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
12420
12421         PR target/17824
12422         * config/c4x/c4x.h (ASM_PROG, LD_PROG): Remove.
12423
12424 2005-04-06  Dorit Naishlos  <dorit@il.ibm.com>
12425
12426         * tree-vect-analyze.c (vect_analyze_loop_form): Call
12427         split_loop_exit_edge instead of loop_split_edge_with.
12428
12429 2005-04-06  Paolo Bonzini  <bonzini@gnu.org>
12430
12431         * config/rs6000/altivec.md (UNSPEC_VSLW, UNSPEC_SUBS,
12432         UNSPEC_SET_VSCR): New constants, used throughout.
12433         (*andc3_v4sf): New.
12434         (altivec_vspltisb, altivec_vsplitish, altivec_vsplitisw):
12435         Replace with...
12436         (altivec_vspltis<VI_char>): ... this pattern, using
12437         a QImode const_int_operand for the immediate.
12438         (abs<mode>2, absv4sf2, altivec_abss_<mode>): Rewrite as
12439         define_expands.
12440
12441 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
12442
12443         PR target/17822
12444         * config/avr/t-avr (AR_FOR_TARGET,RANLIB_FOR_TARGET): Remove.
12445
12446 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
12447
12448         * Makefile.in (LIBGCC2_CFLAGS): Compile with -pipe.
12449
12450 2005-04-06  Ben Elliston  <bje@au.ibm.com>
12451
12452         * gcc.c: Correct comment about DEFAULT_SWITCH_TAKES_ARG and
12453         DEFAULT_WORD_SWITCH_TAKES_ARG which incorrectly reported these
12454         macros as living in "this file" and not gcc.h.
12455
12456 2005-04-06  Ben Elliston  <bje@au.ibm.com>
12457
12458         * doc/invoke.texi (Optimize Options): Mention -ftree-lrs, not
12459         -ftree-live_range_split.  Perhaps renamed at some point?
12460
12461 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
12462
12463         PR target/20625
12464         * tree-ssa-loop-ivopts.c (generic_type_for): New function.
12465         (add_candidate_1): Use generic_type_for instead of unsigned_type_for.
12466
12467 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
12468
12469         * tree-flow.h (number_of_iterations_cond): Declaration removed.
12470         * tree-ssa-loop-niter.c (number_of_iterations_cond): Made static.
12471         (number_of_iterations_special): New function.
12472         (number_of_iterations_exit): Use number_of_iterations_special.
12473         Use simplify_using_outer_evolutions only at -O3.
12474         (number_of_iterations_cond, tree_simplify_using_condition,
12475         simplify_using_initial_conditions, loop_niter_by_eval,
12476         compare_trees, can_count_iv_in_wider_type_bound,
12477         simplify_using_outer_evolutions): Use fold_build.
12478
12479 2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
12480
12481         * doc/install.texi (Configuration): Document --with-java-home.
12482
12483 2005-04-05  Richard Henderson  <rth@redhat.com>
12484
12485         PR target/20342
12486         PR target/20447
12487         * config/i386/i386.c (print_operand): Handle vector zeros.
12488         (ix86_split_to_parts): Handle CONST_VECTOR.
12489         (ix86_hard_regno_mode_ok): Allow MMX modes in general regs.
12490         (ix86_modes_tieable_p): Use ix86_hard_regno_mode_ok to decide
12491         what modes to tie for MMX and SSE registers.
12492         * config/i386/i386.h (MMX_REG_MODE_P): Remove.
12493         * config/i386/i386.md: Extend move 0 -> xor peephole to apply
12494         to vector modes as well.
12495         * config/i386/predicates.md (const0_operand): Handle VOIDmode
12496         properly as an input mode.
12497
12498 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
12499
12500         * tree-ssa-operands.c (verify_abort): Use %p for pointers.
12501
12502 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
12503
12504         * tree-pretty-print.c (dump_generic_node): Use %p for pointer.
12505
12506 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
12507
12508         * config/i386/i386.c (init_cumulative_args): For -m32 -mfpmath=sse
12509         and local functions, set sse_nregs to 8 and float_in_sse.
12510         (function_arg_advance, function_arg): If float_in_sse, pass
12511         SFmode and DFmode arguments in SSE registers.
12512         * config/i386/i386.h (CUMULATIVE_ARGS): Add float_in_sse field.
12513
12514         * config/i386/i386.c (ix86_value_regno): Only optimize local functions
12515         of -funit-at-a-time.
12516
12517 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
12518
12519         * config/i386/i386-protos.h (ix86_function_value): Accept two
12520         arguments, like the target macro.
12521         * config/i386/i386.h (FUNCTION_VALUE): Pass both arguments.
12522         * config/i386/i386.c (ix86_function_value): Accept the second
12523         argument of the target macro.
12524         (ix86_function_ok_for_sibcall): Pass a function pointer to
12525         ix86_function_value.
12526         (ix86_function_value, ix86_libcall_value) [!TARGET_64BIT]: Adjust
12527         call to ix86_value_regno).
12528         (ix86_value_regno): Add support for returning floating point values
12529         in SSE registers.
12530
12531 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
12532
12533         PR tree-optimization/20076
12534         * tree-inline.c (inline_forbidden_p_1): Prevent inlining functions
12535         that call __builtin_return or __builtin_apply_args.
12536
12537 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
12538
12539         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use update_stmt.
12540         Use immediate use iterator.
12541         (stmt_is_bumper_for_loop): Use immediate use iterator.
12542         * predict.c (strip_builtin_expect): Use update_stmt.
12543         * tree-cfg.c (update_modified_stmts): New. Call update_stmt_if_modified
12544         on all elements of a STATEMENT_LIST.
12545         (bsi_insert_before, bsi_insert_after): Call update_modified_stmts.
12546         (bsi_remove): Remove imm_use links and mark the stmt as modified.
12547         (bsi_replace): Mark stmt as modified and the update it.
12548         * tree-complex.c (update_complex_assignment): Call mark_stmt_modified.
12549         (expand_complex_libcal): Call update_stmt.
12550         (expand_complex_comparison): Call mark_stmt_modified.
12551         (expand_complex_operations_1): Call update_stmt_if_modified.
12552         (expand_vector_operations_1): Call mark_stmt_modified.
12553         * tree-dfa.c (compute_immediate_uses, free_df_for_stmt, free_df,
12554         compute_immediate_uses_for_phi, compute_immediate_uses_for_stmt,
12555         add_immediate_use, redirect_immediate_use,
12556         redirect_immediate_uses, dump_immediate_uses, debug_immediate_uses,
12557         dump_immediate_uses_for, debug_immediate_uses_for): Delete.
12558         (mark_new_vars_to_rename): Call update_stmt.
12559         * tree-dump.c (dump_option_value_in): Add "stmtaddr".
12560         * tree-flow-inline.h (modify_stmt): Rename to mark_stmt_modified.
12561         Ignore PHI nodes.
12562         (unmodify_stmt): Delete.
12563         (update_stmt): New.  Force an update of a stmt.
12564         (update_stmt_if_modified): update a stmt if it is out of date.
12565         (get_stmt_operands): Verify stmt is NOT modified.
12566         (stmt_modified_p): Update comment.
12567         (delink_imm_use): Remove a use node from its immuse list.
12568         (link_imm_use_to_list): Link a use node to a specific list.
12569         (link_imm_use): Link a node to the correct list.
12570         (set_ssa_use_from_ptr): Set a use node to a specific value, and insert
12571         it in the correct list, if appropriate.
12572         (link_imm_use_stmt): Link a use node, and set the stmt pointer.
12573         (relink_imm_use): Link a use node in place of another node in a list.
12574         (relink_imm_use_stmt): LInk a node in place of another node, and set
12575         the stmt pointer.
12576         (end_safe_imm_use_traverse): New.  Terminate a safe immuse iterator.
12577         (end_safe_imm_use_p): New.  Check for the end of a safe immuse iterator.
12578         (first_safe_imm_use): New.  Initialize a safe immuse iterator.
12579         (next_safe_imm_use): New.  Proceed to next safe immuse iterator value.
12580         (end_readonly_imm_use_p): New.  Check for end of a fast immuse iterator.
12581         (first_readonly_imm_use): New.  Initialize a fast immuse iterator.
12582         (next_readonly_imm_use): New.  Get the next fast immuse iterator value.
12583         (has_zero_uses): New.  Return true if there are no uses of a var.
12584         (has_single_use): New.  Return true if there is only a single use of a
12585         variable.
12586         (single_imm_use): New.  Return the simgle immediate use.
12587         (num_imm_uses): New.  Return the number of immediate uses.
12588         (get_v_must_def_ops): Use is now a pointer.
12589         (use_operand_p, get_v_may_def_op_ptr, get_vuse_op_ptr,
12590         get_v_must_def_kill_ptr, get_phi_arg_def_ptr): Return the address of
12591         the use node.
12592         (get_immediate_uses, num_immediate_uses, immediate_use): Delete.
12593         (delink_stmt_imm_use): Delink all immuses from a stmt.
12594         (phi_arg_index_from_use): New.  Return a phi arg index for a use.
12595         * tree-flow.h (struct dataflow_d): Delete.
12596         (immediate_use_iterator_d): New.  Immediate use iterator struct.
12597         (FOR_EACH_IMM_USE_FAST): New.  Macro for read only immuse iteration.
12598         (FOR_EACH_IMM_USE_SAFE): New.  Macro for write-safe immuse iteration.
12599         (BREAK_FROM_SAFE_IMM_USE): New.  Macro for earlyu exit from write-safe
12600         iteration.
12601         (struct stmt_ann_d): Remove dataflow_t from struct.
12602         * tree-if-conv.c (tree_if_conversion).  Don't call free_df.
12603         (if_convertible_phi_p): Use FAST immuse iterator.
12604         (if_convertible_loop_p): Don't call compute_immediate_uses.
12605         (replace_phi_with_cond_modify_expr): Call update_stmt.
12606         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites): Call
12607         update_stmt_if_modified.
12608         (rewrite_all_into_ssa): Initialize ssa operands.
12609         * tree-loop-linear.c (linear_transform_loops): Don't call free_df or
12610         compute_immediate_uses.
12611         * tree-optimize.c (execute_todo): Call verify_ssa whenever the
12612         ssa_property is available.
12613         (execute_one_pass):  Change parameters passed to execute_todo.
12614         * tree-outof-ssa.c (rewrite_trees): Don't call modify_stmt.
12615         (remove_ssa_form): Call fini_ssa_operands.
12616         (insert_backedge_copies): Delete call to modify_stmt.
12617         * tree-phinodes.c (make_phi_node): Initialize use nodes.
12618         (release_phi_node): Delink any use nodes before releasing.
12619         (resize_phi_node): Relink any use nodes.
12620         (remove_phi_arg_num): Delink the use node.
12621         (remove_phi_node): Release the ssa_name AFTER releasing the phi node.
12622         (remove_all_phi_nodes_for): Release phi node first.
12623         * tree-pretty-print.c (dump_generic_node): Print stmt address.
12624         * tree-sra.c (mark_all_v_defs): Call update_stmt_if_modified.
12625         (scalarize_use, scalarize_copy): Call update_stmt.
12626         * tree-ssa-alias.c (compute_may_aliases): Update all modified stmts.
12627         (compute_points_to_and_addr_escape): Call mark_stmt_modified.
12628         * tree-ssa-cpp.c (need_imm_uses_for): Delete.
12629         (ccp_initialize): Remove call to compute_immediate_uses.
12630         (substitute_and_fold, execute_fold_all_builtins): Call update_stmt.
12631         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update all modified
12632         stmts.
12633         (simplify_cond_and_lookup_avail_expr): Call mark_stmt_modified.
12634         (simplify_switch_and_lookup_avail_expr): Call mark_stmt_modified.
12635         (eliminate_redundant_computations): Call mark_stmt_modified.
12636         (cprop_operand): Call mark_stmt_modified.
12637         (optimize_stmt): Call update_stmt_if_modified and mark_stmt_modified.
12638         * tree-ssa-dse.c (fix_phi_uses, fix_stmt_v_may_defs): Delete.
12639         (dse_optimize_stmt): Use new immuse interface.
12640         (tree_ssa_dse): Remove calls to compute_immediate_uses and free_df.
12641         * tree-ssa-forwprop.c (need_imm_uses_for): Delete.
12642         (substitute_single_use_vars): Use new immuse interface.
12643         (tree_ssa_forward_propagate_single_use_vars): Remove calls to free_df
12644         and compute_immediate_uses.
12645         * tree-ssa-loop-im.c (single_reachable_address): Use new immuse
12646         interface.
12647         (rewrite_mem_refs): Call update_stmt.
12648         (determine_lsm): Remove call to compute_imm_uses and free_df.
12649         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Call update_stmt.
12650         (try_unroll_loop_completely): Call update_stmt.
12651         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call update_stmt.
12652         (rewrite_use_compare): Call update_stmt.
12653         (compute_phi_arg_on_exit): Insert each stmt before trying to process.
12654         (rewrite_use) : Call update_stmt.
12655         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Add arg to call.
12656         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Call
12657         update_stmt.
12658         * tree-ssa-operands.c (NULL_USE_OPERAND_P): Remove declaration.
12659         (allocate_use_optype, allocate_vuse_optype): Adjust allocation size.
12660         (free_uses, free_vuses, free_v_may_defs, free_v_must_defs): Delink
12661         use nodes.
12662         (initialize_vuse_operand): New.  Initialize a vuse operand.
12663         (initialize_v_may_def_operand): New.  Initialize a maydef operand.
12664         (initialize_v_must_def_operand): New.  Initialize a mustdef operand.
12665         (finalize_ssa_defs): Use stmt parameter.
12666         (correct_use_link): Ensure a use node is in the correct list, and has
12667         the correct stmt pointer.
12668         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_vuses,
12669         finalize_ssa_v_must_defs): Also initialize use nodes.
12670         (finalize_ssa_stmt_operands): Pass extra stmt operands.
12671         (build_ssa_operands): Seperate parsing from final operand construction.
12672         (parse_ssa_operands): New.  Parse entry point for operand building.
12673         (swap_tree_operands): New.  Swap 2 tree operands.
12674         (update_stmt_operands): Ranamed from get_stmt_operands.  Always builds
12675         operands.
12676         (get_expr_operands): Call swap_tree_operands when needed.
12677         (copy_virtual_operands): Use initialize routines for virtual use ops.
12678         (create_ssa_artficial_load_stmt): Add extra stmt parameter.
12679         (verify_abort): New.  Issue imm_use error.
12680         (verify_imm_links): New Verify imm_use links for a var.
12681         (dump_immediate_uses_for): New.  Dump imm_uses for a var to file.
12682         (dump_immediate_uses): New.  Dump imm_uses for all vars to file.
12683         (debug_immediate_uses): New.  Dump imm_uses for all vars to stderr.
12684         (debug_immediate_uses_for): New.  Dump imm_uses for a var to stderr.
12685         * tree-ssa-operands.h (struct use_operand_ptr): Delete.
12686         (NULL_USE_OPERAND_P) Define.
12687         (use_optype_d, v_def_use_operand_type, vuse_optype_d): Add immediate
12688         use node.
12689         (struct vuse_operand_type): New struct.
12690         (SET_USE): Call set_ssa_use_from_ptr.
12691         (USE_STMT): Define.
12692         (PHI_ARG_INDEX_FROM_USE): Define.
12693         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Set the phi
12694         argument via SET_USE, not PHI_ARG_DEF_TREE.
12695         * tree-ssa-pre.c (eliminate): Call update_stmt.
12696         * tree-ssa-propagate.c (cfg_blocks_get): Use imm_use iterators.  Don't
12697         call free_df.
12698         * tree-ssa-sink.c (all_immediate_uses_same_place): Use imm_use iterator.
12699         (nearest_common_dominator_of_uses): Use imm_use iterator.
12700         (statement_sink_location): Use imm_use iterator and interface.
12701         (execute_sink_code): Don't call compute_immediate_uses or free-df.
12702         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): Use
12703         PHI_ARG_DEF, not PHI_ARG_DEF_TREE.
12704         * tree-ssa.c (verify_use, verify_phi_args): Verify some imm_use info.
12705         (verify_ssa): Ensure no stmt is marked modify after optimization pass
12706         if new parameter is true.
12707         (init_tree_ssa): Don't initialize operand cache here.
12708         (delete_tree_ssa): Don't destroy operand cache here.
12709         (propagate_into_addr): Pass in a use pointer, return true if anything
12710         was changed.
12711         (replace_immediate_uses): Use imm_use iterator, call update_stmt.
12712         (check_phi_redundancy): Use imm_use iterator.
12713         (kill_redundant_phi_nodes): Don't call compute_immediate_uses or
12714         free_df.
12715         * tree-ssanames.c (make_ssa_name): Initialize imm_use node.
12716         (release_ssa_name): Delink node and all elements in its imm_use list.
12717         * tree-tailcall.c (adjust_return_value): Call update_stmt.
12718         * tree-vect-analyze.c (vect_stmt_relevant_p): Use imm_use iterator.
12719         * tree-vectorizer.c (need_imm_uses_for): Delete.
12720         (vectorize_loops): Dont call compute_immediate_uses or free_df.
12721         * tree.h (struct ssa_imm_use_d): Define.
12722         (SSA_NAME_IMM_USE_NODE): Define.
12723         (struct tree_ssa_name): Add imm_use node.
12724         (PHI_DF): Delete.
12725         (PHI_ARG_IMM_USE_NODE): Define.
12726         (struct phi_arg_d): Add imm_use node.
12727         (struct tree_phi_node): Remove struct dataflow_d element.
12728         (TDF_STMTADDR): Define.
12729
12730 2005-04-05  Dale Johannesen  <dalej@apple.com>
12731
12732         * doc/invoke.texi (Optimization Options):  Remove
12733         duplicate -fcse-follow-jumps.  Add -fweb.
12734         (-ftree-lim):  Fix spelling (-ftree-loop-im, invariants).
12735         (-fivcanon):  Fix spelling (-ftree-loop-ivcanon).
12736
12737 2005-04-05  Per Bothner  <per@bothner.com>
12738
12739         * tree-ssa.c (execute_early_warn_uninitialized): Pass context node
12740         to talk_tree as 'data' parameter, rather than EXPR_LOCUS.
12741         (warn_uninit): Get EXPR_LOCUS from context now instead.
12742         This fixes a USE_MAPPED_LOCATION testsuite failure.
12743
12744         * tree-ssa.c (warn_uninitialized_var): Remove useless local.
12745
12746 2005-04-05  Per Bothner  <per@bothner.com>
12747
12748         * c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
12749         of the artification 'return 0' in main() to BUILTINS_LOCATION.
12750         * tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
12751         before warning.
12752
12753 2004-04-05  Devang Patel  <dpatel@apple.com>
12754
12755         * config/rs600/altivec.md (altivec_vsr<VI_char>): Rename to ..
12756         (lhsr<mode>3): ... new name.
12757         (altivec_vsra<VI_char>): Rename to ..
12758         (ashr<mode>3): ... new name.
12759         * config/rs6000/rs6000.c (builtin_description): Rename shift
12760         operations.
12761
12762 2004-04-05  Paolo Bonzini  <bonzini@gnu.org>
12763
12764         * combine.c (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Use
12765         gen_lowpart_for_combine.
12766         * cse.c (gen_lowpart_if_possible): Move...
12767         * rtlhooks.c (gen_lowpart_if_possible): ... here.  Also try
12768         gen_lowpart_SUBREG.
12769         (gen_lowpart_no_emit_general): Use it.
12770
12771 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
12772
12773         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Undefine before
12774         overriding.
12775
12776 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
12777
12778         * system.h: Fix typo.
12779
12780 2005-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
12781
12782         * config/bfin/bfin-modes.def: New file.
12783         * config/bfin/bfin-protos.h: New file.
12784         * config/bfin/bfin.c: New file.
12785         * config/bfin/bfin.h: New file.
12786         * config/bfin/bfin.md: New file.
12787         * config/bfin/bfin.opt: New file.
12788         * config/bfin/crti.s: New file.
12789         * config/bfin/crtn.s: New file.
12790         * config/bfin/elf.h: New file.
12791         * config/bfin/lib1funcs.asm: New file.
12792         * config/bfin/predicates.md: New file.
12793         * config/bfin/t-bfin: New file.
12794         * config/bfin/t-bfin-elf: New file.
12795         * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler):
12796         Document new attributes.
12797         (interrupt, interrupt_handler, saveall): Update documentation for
12798         these attributes.
12799         * doc/install.texi (Specific): Add entry for the Blackfin.
12800         * doc/invoke.texi (Blackfin Options): New section.
12801         * doc/md.texi (Blackfin family): New section to document constraints.
12802         * config.gcc: Add bfin*-* and bfin*-elf configurations.
12803
12804 2005-04-05  Olivier Hainque  <hainque@adacore.com>
12805
12806         * config/mips/iris6.h (DWARF_FRAME_RETURN_COLUMN): Redefine to
12807         match what the system unwinder expects.
12808         * config/mips/mips.c (mips_frame_set): If we're saving the return
12809         address register and the dwarf return address column number differs
12810         from the hard register number, adjust the note reg to refer to the
12811         former.
12812
12813 2004-04-05  Richard Sandiford  <rsandifo@redhat.com>
12814
12815         * config/mn10300/mn10300-protos.h (mn10300_override_options): Declare.
12816         * config/mn10300/mn10300.h (target_flags, TARGET_MULT_BUG)
12817         (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
12818         (processor_type): New enum.
12819         (mn10300_processor): New variable.
12820         (TARGET_AM33, TARGET_AM33_2): Redefine in terms of mn10300_processor.
12821         (PROCESSOR_DEFAULT, OVERRIDE_OPTIONS): New macros.
12822         * config/mn10300/linux.h (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
12823         (PROCESSOR_DEFAULT): New macro.
12824         * config/mn10300/mn10300.c (mn10300_processor): New variable.
12825         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
12826         (mn10300_handle_option, mn10300_override_options): New functions.
12827         * config/mn10300/mn10300.opt: New file.
12828
12829 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
12830             Sebastian Pop <sebastian.pop@cri.ensmp.fr>
12831
12832         PR tree-optimization/19903
12833         * tree-chrec.c (chrec_convert): Return chrec_dont_know for constants
12834         that don't fit in their type after conversion.
12835
12836 2005-04-05  Uros Bizjak <uros@kss-loka.si>
12837
12838         PR target/20421
12839         * config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
12840         (frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
12841         Allocate local stack slots here.  Set ix86_optimize_mode_switching.
12842         flag here. Implement using define_insn_and_split.
12843         (frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
12844         (frndintxf2_mask_pm_i387): New insn patterns.
12845         (floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
12846         Do not set ix86_optimize_mode_switching flag.
12847         (ceilsf2, ceildf2, ceilxf2): Same.
12848         (btruncsf2, btruncdf2, btruncxf2): Same.
12849         (nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
12850
12851 2005-04-05  Ian Lance Taylor  <ian@airs.com>
12852
12853         PR debug/9963
12854         * config/i386/cygming.h (ASM_OUTPUT_EXTERNAL): Pass DECL to
12855         i386_pe_record_external_function.
12856         (i386_pe_record_external_function): Update declaration.
12857         * config/i386/winnt.c (struct extern_list): Add decl field.
12858         (i386_pe_record_external_function): Add decl parameter.
12859         (i386_pe_file_end): Check TREE_ASM_WRITTEN on decl, not
12860         identifier.
12861         * config/i386/i386-protos.h (i386_pe_record_external_function):
12862         Update declaration.
12863
12864 2005-04-05  Kazu Hirata  <kazu@cs.umass.edu>
12865
12866         * config/m68k/m68k-protos.h: Add a prototype for
12867         valid_dbcc_comparison_p_2.
12868         * config/m68k/m68k.c (not_sp_operand, symbolic_operand,
12869         extend_operator, const_uint32_operand, const_sint32_operand,
12870         general_src_operand, nonimmediate_src_operand,
12871         memory_src_operand, post_inc_operand, pre_dec_operand,
12872         pcrel_address): Move to predicates to predicates.md.
12873         * config/m68k/m68k.h (PREDICATE_CODES): Remove.
12874         * config/m68k/m68k.md: Include predicates.md.
12875         * config/m68k/predicates.md: New.
12876
12877 2005-04-04  Roger Sayle  <roger@eyesopen.com>
12878
12879         * config/i386/i386.md (*truncdfsf2_i387_1): New pattern.
12880
12881         * fold-const.c (maybe_lvalue_p): Delete orphaned comment.
12882
12883 2005-04-04  Ian Lance Taylor  <ian@airs.com>
12884
12885         * c-typeck.c (struct c_switch): Rename switch_stmt field to
12886         switch_expr.
12887         (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT.
12888         (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND.
12889         (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY.
12890         Call c_do_switch_expr_warnings rather than c_do_switch_warnings.
12891         * c-common.c (c_do_switch_warnings_1): New static function broken
12892         out of c_do_switch_warnings.
12893         (c_do_switch_warnings): Call c_do_switch_warnings_1.
12894         (c_do_switch_expr_warnings): New function.
12895         * c-common.h (c_do_switch_expr_warnings): Declare.
12896
12897 2005-04-04  David Edelsohn  <edelsohn@gnu.org>
12898             Daniel Jacobowitz  <dan@codesourcery.com>
12899
12900         * tree-eh.c (tree_could_trap_p): Allow non-constant floating point
12901         trapping divide.
12902         * rtlanal.c (may_trap_p): Same.
12903
12904 2005-04-04  Dale Johannesen  <dalej@apple.com>
12905
12906         * ChangeLog:  remove reference to ChangeLog.12.
12907
12908 2005-04-05  Hans-Peter Nilsson  <hp@axis.com>
12909
12910         CRIS epilogue as RTL.
12911         * config/cris/cris.md: Change all 0 in unspec 0 to
12912         CRIS_UNSPEC_PLT.
12913         (CRIS_UNSPEC_PLT, CRIS_UNSPEC_FRAME_DEALLOC): New constants.
12914         ("*cris_load_multiple", "cris_frame_deallocated_barrier"): New
12915         patterns.
12916         ("return"): Change to define_expand.  Call cris_expand_return for
12917         actual expansion.
12918         ("*return_expanded"): New pattern.
12919         ("epilogue"): New define_expand.
12920         * config/cris/cris.h (PREDICATE_CODES): Add
12921         cris_load_multiple_op.
12922         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Correct test for unspec
12923         type.
12924         (enum cris_retinsn_type): New.
12925         (struct machine_function): New member return_type.
12926         (TARGET_ASM_FUNCTION_EPILOGUE): Don't override.
12927         (cris_target_asm_function_epilogue): Remove, moving RTLified
12928         contents to...
12929         (cris_expand_epilogue): New function.
12930         (cris_reg_saved_in_regsave_area, cris_movem_load_rest_p,
12931         (cris_gen_movem_load, cris_load_multiple_op)
12932         (cris_return_address_on_stack_for_return, cris_expand_return): New
12933         functions.
12934         (cris_target_asm_function_prologue)
12935         (cris_initial_frame_pointer_offset): Call
12936         cris_reg_saved_in_regsave_area instead of complicated expression.
12937         Call cris_return_address_on_stack instead of an expression.
12938         (cris_print_operand) <case 'o', case 'O'>: New cases.
12939         (cris_return_address_on_stack): Change return-type to bool.
12940         (cris_simple_epilogue): Ditto.  Return false if registers are
12941         saved.
12942         * config/cris/cris-protos.h (cris_simple_epilogue)
12943         (cris_return_address_on_stack): Adjust prototype return type.
12944         (cris_gen_movem_load, cris_expand_epilogue, cris_expand_return)
12945         (cris_return_address_on_stack_for_return): New prototypes.
12946
12947 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
12948
12949         * config/frv/frv.h (PREDICATE_CODES): Add CONST to
12950         gpr_or_int12_operand.
12951
12952         * config/frv/frv-protos.h: Add a prototype to
12953         frv_legitimate_memory_operand and frv_const_unspec_p.
12954         (frv_unspec): Move from frv.c.
12955         * config/frv/frv.c (frv_unspec): Move to frv-protos.h.
12956         (frv_const_unspec_p, frv_legitimate_memory_operand_): Export.
12957         (ldd_address_operand, fdpic_fptr_operand, frv_load_operand,
12958         gpr_or_fpr_operand, gpr_or_int12_operand,
12959         gpr_fpr_or_int12_operand, fpr_or_int6_operand,
12960         gpr_or_int10_operand, gpr_or_int_operand, int12_operand,
12961         int6_operand, int5_operand, uint5_operand, uint4_operand,
12962         uint1_operand, int_2word_operand, uint16_operand,
12963         upper_int16_operand, integer_register_operand,
12964         gpr_no_subreg_operand, fpr_operand, even_reg_operand,
12965         odd_reg_operand, even_gpr_operand, odd_gpr_operand,
12966         quad_fpr_operand, even_fpr_operand, odd_fpr_operand,
12967         dbl_memory_one_insn_operand, dbl_memory_two_insn_operand,
12968         move_destination_operand, movcc_fp_destination_operand,
12969         frv_function_symbol_referenced_p, move_source_operand,
12970         condexec_dest_operand, condexec_source_operand,
12971         reg_or_0_operand, lr_operand, fdpic_operand, got12_operand,
12972         const_unspec_operand, gpr_or_memory_operand,
12973         gpr_or_memory_operand_with_scratch, fpr_or_memory_operand,
12974         icc_operand, fcc_operand, cc_operand, icr_operand,
12975         fcr_operand, cr_operand, call_operand, sibcall_operand,
12976         symbolic_operand, relational_operator,
12977         integer_relational_operator, float_relational_operator,
12978         ccr_eqne_operator, minmax_operator,
12979         condexec_si_binary_operator, condexec_si_media_operator,
12980         condexec_si_divide_operator, condexec_si_unary_operator,
12981         condexec_sf_conv_operator, condexec_sf_add_operator,
12982         condexec_memory_operand, intop_compare_operator, acc_operand,
12983         even_acc_operand, quad_acc_operand, accg_operand: Move to
12984         predicates.md.
12985         * config/frv/frv.h (PREDICATE_CODES): Remove.
12986         * config/frv/frv.md: Include predicates.md.
12987         * config/frv/predicates.md: New.
12988
12989 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
12990
12991         PR target/19537
12992         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
12993         * tree-ssa-loop-ivopts.c: Include langhooks.h.
12994         (add_standard_iv_candidates_for_size): New function, extracting code
12995         from add_standard_iv_candidates and parameterizing it by type size.
12996         (add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
12997
12998 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
12999
13000         * system.h (GCOV_SIZE_TYPE): Unposion.
13001         * gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
13002         (GCOV_TYPE_SIZE): ...this new macro.
13003         * coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
13004         * coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
13005         (rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
13006         (build_fn_info_type, build_fn_info_value, build_ctr_info_type)
13007         (build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
13008         instead of unsigned_intSI_type_node.
13009         * rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
13010         (rtl_gen_one_value_profiler_no_edge_manipulation)
13011         (rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
13012         * value-prof.c: Include coverage.h.
13013
13014 2005-04-02  Daniel Berlin  <dberlin@dberlin.org>
13015             Diego Novillo <dnovillo@redhat.com>
13016
13017         Fix PR tree-optimization/20703
13018         Fix PR tree-optimization/20725
13019
13020         * tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
13021         (create_expression_by_pieces): Ditto.
13022         (valid_in_set): Ditto. Also handle tcc_declaration.
13023         (find_or_generate_expression): Handle comparison class.
13024         (insert_into_preds_of_block): Ditto.
13025         (insert_aux): Ditto.
13026         (create_value_expr_from): Handle comparison class, recursively
13027         handle reference nodes.
13028         (compute_avail): Handle comparison classes, rewrite a little cleaner.
13029         (execute_pre): Fix spacing.
13030         (do_fre): Renamed to execute_fre.
13031
13032 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
13033
13034         * doc/invoke.texi (SPARC options): Document that
13035         -mlittle-endian is not supported on Linux either.
13036
13037 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
13038
13039         PR target/4198
13040         PR target/12027
13041         * config.gcc (Obsolete configurations): Remove
13042         sparclite-*-coff*, sparclite-*-elf* and sparc86x-*-elf*.
13043         (sparclite-*-coff*): Delete.
13044         (sparclite-*-elf*): Likewise.
13045         (sparc86x-*-elf*): Likewise.
13046         (target_cpu_default) <sparc*-*-*>: Remove sparc86x.
13047         * config/sparc/lite.h: Delete.
13048         * config/sparc/litecoff.h: Likewise.
13049         * config/sparc/liteelf.h: Likewise.
13050         * config/sparc/sp86x-elf.h: Likewise.
13051         * config/sparc/t-sparclite: Likewise.
13052         * config/sparc/t-sp86x: Likewise.
13053
13054 2005-04-04  Adrian Straetling  <straetling@de.ibm.com>
13055
13056         * config/s390/s390-protos.h: (s390_comparison,
13057         s390_alc_comparison, s390_slb_comparison, const0_operand,
13058         consttable_operand, larl_operand, s_operand,
13059         shift_count_operand, bras_sym_operand, load_multiple_operation,
13060         store_multiple_operation, s390_plus_operand): Remove prototypes.
13061         (s390_legitimate_address_without_index_p): New prototype.
13062         * config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
13063         to s390.h.
13064         (s390_comparison, s390_alc_comparison, s390_slb_comparison,
13065         const0_operand, consttable_operand, larl_operand, s_operand,
13066         shift_count_operand, bras_sym_operand, load_multiple_operation,
13067         store_multiple_operation, s390_plus_operand): Move to
13068         predicates.md.
13069         (check_mode): Remove.
13070         (s390_branch_condition_mask): Remove 'static'. Move prototype to
13071         s390-protos.h.
13072         (s390_legitimate_address_without_index_p): New.
13073         * config/s390/s390.h (PREDICATE_CODES): Remove.
13074         * config/s390/s390.md: Include predicates.md.
13075         * config/s390/predicates.md: New.
13076
13077 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
13078
13079         PR target/20446
13080         * config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
13081         * config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
13082         (NEED_INDICATE_EXEC_STACK): Define to 1.
13083         * config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
13084         (NEED_INDICATE_EXEC_STACK): Define to 1.
13085         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
13086         (add_pc_to_pic_symbol): Rename into pic_helper_symbol.
13087         (add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
13088         (pic_helper_emitted_p): New global.
13089         (emit_pic_helper): New function extracted from...
13090         (load_pic_register): ...here.  Add 'delay_pic_helper' parameter.
13091         Do not call emit_pic_helper if delay_pic_helper is true.
13092         (sparc_expand_prologue): Pass 'false' to load_pic_register.
13093         (sparc_output_mi_thunk): Pass 'true' to load_pic_register.
13094         (sparc_file_end): New function.
13095
13096 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
13097
13098         * config/mcore/mcore-protos.h: Remove the prototypes for
13099         mcore_arith_reg_operand, mcore_general_movsrc_operand,
13100         mcore_general_movdst_operand, mcore_reload_operand,
13101         mcore_arith_J_operand, mcore_arith_K_operand,
13102         mcore_arith_K_operand_not_0, mcore_arith_M_operand,
13103         mcore_arith_K_S_operand, mcore_arith_imm_operand,
13104         mcore_arith_any_imm_operand, mcore_arith_O_operand,
13105         mcore_literal_K_operand, mcore_addsub_operand,
13106         mcore_compare_operand, mcore_load_multiple_operation,
13107         mcore_store_multiple_operation, mcore_call_address_operand.
13108         Add a prototype for const_ok_for_mcore.
13109         * config/mcore/mcore.c (mcore_call_address_operand,
13110         mcore_general_movsrc_operand, mcore_general_movdst_operand,
13111         mcore_arith_reg_operand, mcore_reload_operand,
13112         mcore_arith_J_operand, mcore_arith_K_operand,
13113         mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
13114         mcore_arith_M_operand, mcore_arith_imm_operand,
13115         mcore_arith_any_imm_operand, mcore_arith_O_operand,
13116         mcore_literal_K_operand, mcore_addsub_operand,
13117         mcore_compare_operand, mcore_load_multiple_operation,
13118         mcore_store_multiple_operation): Move to predicates.md.
13119         (const_ok_for_mcore): Export.
13120         * config/mcore/mcore.h (PREDICATE_CODES): Remove.
13121         * config/mcore/mcore.md: Include predicates.md.
13122         * config/mcore/predicates.md: New.
13123
13124         * config/mcore/predicates.md: Fix a comment typo.
13125
13126 2005-04-04  Andreas Krebbel  <krebbel1@de.ibm.com>
13127             Adrian Straetling  <straetling@de.ibm.com>
13128
13129         * config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
13130         * config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
13131         * config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
13132         attribute.
13133         ("imul"): Removed from "type" attribute.
13134         ("*muldi3_sign", "muldi3"): Changed type to imuldi.
13135         ("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"):
13136         Changed type to imulsi.
13137         ("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
13138
13139 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
13140
13141         * config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
13142         (RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
13143         (SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
13144         (TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
13145         (TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
13146         (TARGET_SWITCHES, mcore_stack_increment_string)
13147         (TARGET_OPTIONS): Delete.
13148         (TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
13149         than *_BIT constants.
13150         (TARGET_8ALIGN): #undef old definition before redefining to 1.
13151         * config/mcore/mcore.c (mcore_stack_increment_string): Delete.
13152         (TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
13153         (mcore_override_options): Delete mcore_stack_increment code.
13154         Change use of M340_BIT to MASK_M340.
13155         * config/mcore/mcore.opt: New file.
13156
13157 2005-04-04  Ian Lance Taylor  <ian@airs.com>
13158
13159         * config/arm/arm.c (replace_symbols_in_block): Remove static
13160         function.
13161
13162 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
13163
13164         * config/fr30/fr30-protos.h: Remove the prototypes for
13165         stack_add_operand, add_immediate_operand,
13166         high_register_operand, low_register_operand, call_operand,
13167         di_operand, and nonimmediate_di_operand.
13168         * config/fr30/fr30.c (stack_add_operand,
13169         add_immediate_operand, high_register_operand,
13170         low_register_operand, call_operand, di_operand,
13171         nonimmediate_di_operand): Move to predicates.md.
13172         * config/fr30/fr30.h (PREDICATE_CODES): Remove.
13173         * config/fr30/fr30.md: Include predicates.md.
13174         * config/fr30/predicates.md: New.
13175
13176         * config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
13177         LABEL_REF to mcore_general_movsrc_operand.  Add SYMBOL_REF to
13178         mcore_call_address_operand.
13179
13180         * config/sh/sh.h (PREDICATE_CODES): Add CONST to
13181         general_movsrc_operand.
13182
13183 2005-04-04  Alan Modra  <amodra@bigpond.net.au>
13184
13185         * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
13186         after freeing.
13187
13188 2005-04-04  Richard Earnshaw  <richard.earnshaw@arm.com>
13189
13190         PR target/14812
13191         * arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
13192         a negated value.
13193
13194 2005-04-04  Richard Henderson  <rth@redhat.com>
13195             Jakub Jelinek  <jakub@redhat.com>
13196
13197         PR rtl-optimization/16104
13198         * fold-const.c (fold_unary): Fix folding of vector conversions.
13199
13200 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
13201
13202         * config.gcc (xstormy16-*-elf): Set extra_options.
13203         * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
13204         * config/stormy16/stormy16.opt: New file.
13205
13206 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
13207
13208         * config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
13209         (TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
13210         (TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
13211         (TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
13212         (TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
13213         (TARGET_UNIX_ASM): Delete.
13214         (TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
13215         * config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
13216         * config/pdp11/pdp11.c (pdp11_handle_option): New function.
13217         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
13218         * config/pdp11/pdp11.opt: New file.
13219
13220 2005-04-03  Roger Sayle  <roger@eyesopen.com>
13221             Alexandre Oliva  <aoliva@redhat.com>
13222
13223         PR c++/19199
13224         * fold-const.c (non_lvalue): Split tests into...
13225         (maybe_lvalue_p): New function.
13226         (fold_cond_expr_with_comparison): Preserve lvalue-ness for the
13227         C++ front-end prior to lowering into gimple form.
13228
13229 2005-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13230
13231         * builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
13232         BUILT_IN_STRNCASECMP): New.
13233         * doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
13234         and strndup.
13235
13236 2005-04-03  Richard Earnshaw  <richard.earnshaw@arm.com>
13237
13238         PR target/14812
13239         * arm.md (addsi3_compare0_for_combiner): Delete.
13240         (addsi3_compare0_scratch_for_combiner): Delete.
13241         (cmpsi_neg_shiftsi): Delete.
13242         (compare_negsi_si): New pattern.
13243         (cmpsi_negshiftsi_si): New pattern.
13244         (negated_cbranchsi4): Restrict to equality_operator.
13245
13246         * arm.md (movhi_insn_arch4): delete trailing white space from assembler
13247         template.
13248
13249 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
13250
13251         * cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
13252         Fix comment typos.
13253
13254         * doc/install.texi: Fix a typo.
13255
13256 2005-04-03  Steven Bosscher  <stevenb@suse.de>
13257
13258         PR middle-end/20648
13259         * bb-reorder.c (duplicate_computed_gotos): Do not unfactor
13260         a computed goto if the edge to the computed goto block has
13261         incoming abnormal edges.  Clarify how the function works.
13262
13263 2005-04-03  Nathan Sidwell  <nathan@codesourcery.com>
13264
13265         * params.c (set_param_value): Use gcc_assert & gcc_unreachable.
13266         * passes.c (open_dump_file, rest_of_handle_final): Likewise.
13267         * postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
13268         hash_scan_set, reg_set_between_after_reload_p,
13269         reg_used_between_after_reload_p, get_avail_load_store_reg,
13270         eliminate_partially_redundant_load): Likewise.
13271         * postreload.c (reload_cse_simplify_set,
13272         reload_combine_note_use): Likewise.
13273         * predict.c (predict_insn, expected_value_to_br_prob,
13274         propagate_freq, expensive_function_p): Likewise.
13275         * print-rtl.c (print_rtx): Likewise.
13276         * profile.c (instrument_edges, instrument_values,
13277         compute_branch_probabilities, branch_prob, union_groups,
13278         tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
13279         * protoize.c (in_system_include_dir, file_could_be_converted,
13280         file_normally_convertible, gen_aux_info_file, seek_to_line,
13281         do_cleaning): Likewise.
13282         * tree-ssa-alias.c (collect_points_to_info_r): Likewise.
13283         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
13284         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
13285
13286 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
13287
13288         * cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
13289         * modulo-sched.c (undo_replace_buff_elem): New structure.
13290         (kernel_number_of_cycles, ps_unschedule_node,
13291         undo_generate_reg_moves,free_undo_replace_buff,
13292         undo_permute_partial_schedule,  loop_single_full_bb_p,
13293         SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
13294         build_loops_structure, get_sched_window): New.
13295         (generate_reg_moves): Return undo_replace_buff_elem and other
13296         fixes.
13297         (generate_prolog_epilog): Remove old loop versioning.
13298         (sms_schedule): Use loop information and loop_version.
13299         (sms_schedule_by_order): Split part of it to get_sched_window.
13300         * passes.c (rest_of_handle_sms): call cfg_layout_initialize
13301         cfg_layout_finalize and free_dominance_info before/after SMS.
13302
13303 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
13304
13305         * cfghooks.c (lv_flush_pending_stmts,
13306         cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
13307         lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
13308         * cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
13309         lv_add_condition_to_bb,
13310         lv_adjust_loop_header_phi, extract_cond_bb_edges,
13311         flush_pending_stmts): New in cfg_hooks structure.
13312         (cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
13313         extract_cond_bb_edges, lv_adjust_loop_header_phi,
13314         lv_add_condition_to_bb): New declarations.
13315         * cfgloop.h (duplicate_loop_to_header_edge): Change return type to
13316         bool.
13317         (loop_version): Declare.
13318         * cfgloopmanip.c (cfghooks.h): Include.
13319         (duplicate_loop_to_header_edge): Change return type to bool.
13320         (loop_version, lv_adjust_loop_entry_edge): Move here.
13321         * cfgrtl.c (cfgloop.h): Include.
13322         (rtl_verify_flow_info_1): Fix.
13323         (rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
13324         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
13325         initialization.
13326         * tree-cfg.c (tree_lv_adjust_loop_header_phi,
13327         tree_lv_add_condition_to_bb): New.
13328         (tree_cfg_hooks): Add new hooks to initialization.
13329         * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
13330         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
13331
13332 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
13333
13334         * config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
13335         xstormy16_below100_or_register,
13336         xstormy16_splittable_below100_or_register, and
13337         nonimmediate_nonstack_operand.
13338
13339         * config/stormy16/stormy16-protos.h: Remove the prototypes for
13340         xstormy16_ineqsi_operator, equality_operator,
13341         inequality_operator, shift_operator,
13342         xstormy16_below100_operand, xstormy16_below100_or_register,
13343         xstormy16_splittable_below100_or_register,
13344         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
13345         * config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
13346         equality_operator, inequality_operator,
13347         xstormy16_below100_operand, xstormy16_below100_or_register,
13348         xstormy16_splittable_below100_or_register,
13349         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
13350         nonimmediate_nonstack_operand, shift_operator): Move to
13351         predicates.md.
13352         * config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
13353         * config/stormy16/stormy16.md: Include predicates.md.
13354         * config/stormy16/predicates.md: New.
13355
13356 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
13357
13358         * config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
13359         small_int, large_int, reg_or_0_operand, simple_memory_operand,
13360         equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
13361         move_operand, power_of_2_operand): Move to predicates.md.
13362         * config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
13363         PREDICATE_CODE): Remove.
13364         * config/iq2000/iq2000.md: Include predicates.md.
13365         * config/iq2000/predicates.md: New.
13366
13367 2005-04-02  Richard Sandiford  <rsandifo@redhat.com>
13368
13369         * config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
13370         (MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
13371         (MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
13372         (TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
13373         (TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
13374         (TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
13375         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
13376         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
13377         (TARGET_M68HC11): Delete.
13378         (TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
13379         * config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
13380         * config/m68hc11/m68hc11.c (m68hc11_regparm_string)
13381         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
13382         (nb_soft_regs): Delete.
13383         (TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
13384         (m68hc11_override_options): Remove the code that caters for MASK_M6811
13385         and MASK_M6812 being set simultaneously.  Change the code that sets
13386         the default m68hc11_soft_reg_count to use integers instead of strings.
13387         (m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
13388         m68hc11_soft_reg_count (which now has an int type) as the number
13389         of soft registers.
13390         * config/m68hc11/m68hc11.opt: New file.
13391
13392 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
13393
13394         * config/fr30/fr30.h (PREDICATE_CODES): Remove
13395         fp_displacement_operand, sp_displacement_operand.
13396
13397         * config/m68hc11/m68hc11-protos.h: Add a prototype for
13398         m68hcc_auto_inc_p.
13399         Remove the prototypes for tst_operand, cmp_operand,
13400         stack_register_operand, d_register_operand,
13401         hard_addr_reg_operand, splitable_operand,
13402         m68hc11_logical_operator, m68hc11_arith_operator,
13403         m68hc11_non_shift_operator, m68hc11_shift_operator,
13404         m68hc11_unary_operator, m68hc11_eq_compare_operator,
13405         non_push_operand, hard_reg_operand, and
13406         reg_or_some_mem_operand.
13407         * config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
13408         extern.
13409         (tst_operand, cmp_operand, non_push_operand,
13410         splitable_operand, reg_or_some_mem_operand,
13411         stack_register_operand, d_register_operand,
13412         hard_addr_reg_operand, hard_reg_operand,
13413         m68hc11_eq_compare_operator, m68hc11_logical_operator,
13414         m68hc11_arith_operator, m68hc11_non_shift_operator,
13415         m68hc11_shift_operator, m68hc11_unary_operator): Move to
13416         predicates.md.
13417         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
13418         * config/m68hc11/m68hc11.md: Include predicates.md.
13419         * config/m68hc11/predicates.md: New.
13420
13421 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
13422
13423         PR debug/19345
13424         * dwarf2out.c (add_abstract_origin_attribute): Revert accidental
13425         change checked in along with 2005-03-03's patch for debug/20253.
13426         * tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
13427         (remap_decl): Insert type decl in map earlier.
13428
13429 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
13430
13431         PR tree-optimization/20640
13432         * tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
13433         post-dominator if it has phi nodes.
13434         (eliminate_unnecessary_stmts): Remove dead phis in all blocks
13435         before dead statements.
13436
13437 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
13438
13439         PR middle-end/20491
13440         * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
13441
13442 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
13443
13444         PR rtl-optimization/20290
13445         * loop.c (for_each_insn_in_loop): Don't assume the loop body runs
13446         in every iteration if the entry point is the exit test.
13447
13448 2005-04-02  Hans-Peter Nilsson  <hp@axis.com>
13449
13450         * config/cris/cris.md (attribute "length"): Define.
13451
13452 2005-04-02  Geoffrey Keating  <geoffk@apple.com>
13453
13454         * config/rs6000/predicates.md (indexed_or_indirect_operand): New.
13455         (word_offset_memref_operand): New.
13456         * config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
13457         (indexed_or_indirect_operand): Delete.
13458         * config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
13459         (indexed_or_indirect_operand): Delete.
13460
13461         * config/rs6000/t-darwin8: Comment out ppc64 multilib.
13462
13463         PR 20650
13464         * config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
13465         a register.
13466
13467         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
13468         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
13469
13470 2005-04-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13471
13472         * gcc/config/vax/vax.md: Spellcheck, fix whitespace.
13473
13474 2005-04-01  Ian Lance Taylor  <ian@airs.com>
13475
13476         * gcc.c: Don't include <sys/resource.h> or declare getrusage.
13477         (rus, prus): Remove static variables.
13478         (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
13479         (process_command): Permit report_times and use_pipes together.
13480
13481 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
13482
13483         * c-decl.c (validate_proto_after_old_defn): Look at
13484         TYPE_MAIN_VARIANT of argument types.
13485
13486 2005-04-01  Paul Brook  <paul@codesourcery.com>
13487
13488         * config/arm/arm.c (thumb_call_via_label): Include space for SP.
13489         (arm_output_function_epilogue): Allow call_via_SP.
13490         (thumb_call_via_reg, arm_file_end): Ditto.
13491         * config/arm/arm.h (struct machine_function): Include space for SP.
13492         (thumb_call_via_label): Update declaration.
13493
13494 2005-04-01  Ian Lance Taylor  <ian@airs.com>
13495
13496         * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
13497         doing a peephole optimization, once again put any notes in the
13498         proper position.
13499
13500 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
13501
13502         * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
13503
13504 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
13505
13506         * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
13507         (block_alloc, find_free_reg): Likewise.
13508         * loop-doloop.c (doloop_modify): Likewise.
13509         * loop-invariant.c (record_use): Likewise.
13510         * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
13511         get_iv_value, canon_condition, eliminate_implied_condition,
13512         eliminate_implied_condition, simplify_using_initial_values,
13513         shorten_into_mode, canonicalize_iv_subregs,
13514         iv_number_of_iterations): Likewise.
13515         * loop-unroll.c (expand_var_during_unrolling): Likewise.
13516         * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
13517         unswitch_loop): Likewise.
13518         * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
13519         move_movables, replace_call_address, find_and_verify_loops,
13520         rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
13521         record_giv, final_giv_value, general_induction_var,
13522         simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
13523         loop_giv_dump): Likewise.
13524
13525         * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
13526         GCOV_CHECK_WRITING): Remove.
13527         (gcov_position, gcov_rewrite): Use gcc_assert.
13528         * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
13529         gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
13530         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
13531         gcc_assert.
13532
13533 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
13534
13535         * tree-inline.c: Fix a typo.
13536
13537 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
13538
13539         * configure.ac (enable-checking): Explicitly set all variables for
13540         collective switch values.  Alphabetize variables. Rename
13541         ac_checking_valgrind to ac_valgrind_checking.  Allow 'none' as
13542         synonym for 'no'.
13543         * doc/install.texi (enable-checking): Update documentation.
13544         * configure: Rebuilt.
13545
13546 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
13547
13548         * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
13549         possible.
13550
13551 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
13552
13553         * arm.c (adjacent_mem_locations): Reject volatile memory refs.
13554         Also reject cases where this pattern will cause load delay stalls
13555         unless optimizing for size and it will produce a shorter sequence.
13556         * arm.md (arith_adjacent_mem): Make better use of ldm addressing
13557         variants to avoid pre-adjusting the base when possible.
13558
13559 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
13560
13561         * arm.md (minmax_arithsi): Reject all eliminable registers, not just
13562         the frame and argument pointers.
13563         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
13564         (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
13565         (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
13566         (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
13567         (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
13568         (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
13569
13570 2005-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
13571
13572         * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
13573         with entry for selectany attribute.
13574         * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
13575         Declare.
13576         * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
13577         (i386_pe_asm_named_section): Handle sections generated by
13578         selectany attribute.
13579         * doc/extend.texi (selectany): Document attribute.
13580
13581 2005-04-01  Paolo Bonzini  <bonzini@gnu.org>
13582             Jan Hubicka  <jh@suse.cz>
13583
13584         * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
13585         to fix addresses involving EBP and ESP.
13586         (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
13587         for SUBREGed registers.
13588         (legitimate_address_p): Accept SUBREGed registers.
13589
13590 2005-04-01  Jakub Jelinek  <jakub@redhat.com>
13591
13592         PR c++/19406
13593         * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
13594         (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
13595         for FIELD_DECLs.
13596
13597 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
13598
13599         * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
13600
13601 2005-04-01  James E Wilson  <wilson@specifixinc.com>
13602
13603         PR c++/20505
13604         * dwarf2out.c (rtl_for_decl_init): New function.
13605         (rtl_for_decl_location): Extracted from here.
13606         (tree_add_const_value_attribute): Call rtl_for_decl_init and
13607         add_const_value_attribute.  Delete initializer_constant_valid_p call.
13608
13609 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
13610
13611         * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
13612         lambda-code.c, loop.c, machmode.def, mips-tfile.c,
13613         modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
13614         tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
13615         config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
13616         config/i386/i386.md, config/rs6000/predicates.md,
13617         config/rs6000/rs6000.c, config/s390/fixdfdi.h,
13618         config/s390/s390.c, config/stormy16/stormy16.c,
13619         config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
13620         typos.
13621
13622 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
13623
13624         PR c/17855
13625         * gimplify.c (gimplify_expr): Create a temporary for lvalue
13626         COND_EXPR and CALL_EXPR.
13627
13628 2005-03-31  Vladimir Makarov  <vmakarov@redhat.com>
13629
13630         PR target/20632
13631         * genautomata.c (first_cycle_unit_presence): Check all alternative
13632         states for unit presence.
13633
13634         * doc/md.texi: Remove remark about impossibility to query unit
13635         presence in non nondeterministic automaton state.
13636
13637         * config/ia64/ia64.c (get_template): Change order of unit querying.
13638
13639 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
13640
13641         * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
13642         obsolete comment.
13643
13644 2005-03-31  Zdenek Dvorak  <dvorakz@suse.cz>
13645
13646         * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
13647         flag for edges outside any loops.
13648
13649 2005-03-31  Janis Johnson  <janis187@us.ibm.com>
13650
13651         * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
13652
13653 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
13654
13655         * tree-ssa-alias.c: Follow spelling conventions.
13656         * doc/tree-ssa.texi: Fix a typo.
13657
13658 2005-03-31  J"orn Rennecke <joern.rennecke@st.com>
13659
13660         * postreload-gcse.c: Include target.h.
13661         (gcse_after_reload_main): Return early if we cannot modify jumps.
13662         * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
13663
13664 2005-03-31  David Edelsohn  <edelsohn@gnu.org>
13665
13666         * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
13667         expensive operations.
13668
13669 2005-03-31  Ian Lance Taylor  <ian@airs.com>
13670
13671         * collect2.c (lderrout): New variable.
13672         (collect_exit): Dump ldout to stdout.  Dump and unlink lderrout,
13673         if it is set, to stderr.
13674         (handler): Unlink lderrout if it is set.
13675         (dump_file): Add "to" parameter.  Change all callers.
13676         (main): Initialize lderrout.
13677         (collect_execute): Add errname parameter.  Change all callers.
13678         Rename redir parameter to outname.  Never pass
13679         PEX_STDERR_TO_STDOUT to pex_run.
13680         * collect2.h (collect_execute, dump_file): Update declarations.
13681         * tlink.c (tlink_execute): Add errname parameter.  Change all
13682         callers.
13683         (do_tlink): Check lderrout as well as ldout.
13684
13685 2005-03-31  Caroline Tice  <ctice@apple.com>
13686
13687         * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
13688         (bb-reorder.o): Add errors.h to list of requirements.
13689         (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
13690         profiledbootstrap flags.
13691         * bb-reorder.c (errors.h): Add new include.
13692         (struct bbro_basic_block_data_def): Add new field, in_trace.
13693         (add_unlikely_executed_notes):  Remove function.
13694         (mark_bb_for_unlikely_executed_section): Remove function.
13695         (insert_section_boundary_note): New function.
13696         (verify_hot_cold_block_grouping): New function.
13697         (push_to_next_round_p): Remove variables and tests that push all
13698         cold blocks to last round.
13699         (find_traces): Remove code that added extra round of trace finding
13700         when doing partitioning.
13701         (find_traces_1_round) :  Remove variable last_round;  add code to
13702         update new struct field, in_trace; correct trace_length where it was
13703         incorrect before (after call to copy_bb); change code that pushed all
13704         cold blocks to last round. Instead verify that all blocks going into
13705         a trace belong in the same partition.
13706         (connect_traces): Modify to connect the traces in two passes, if the
13707         function contains both hot and cold blocks.  The first pass connects
13708         all the traces for blocks in the partition that the first block in
13709         the function belongs to; the second pass connnects all the traces
13710         containing blocks that belong in the other partition.
13711         (find_rarely_executed_basic_blocks_and_crossing_edges):  Remove
13712         code that automatically put the first block in a function into the
13713         hot partition if the function had any hot blocks.
13714         (fix_crossing_unconditional_branches): Check number of succ edges
13715         before attempting to get one.
13716         (fix_edges_for_rarely_executed_code):  Update comment describing
13717         function.
13718         (reorder_basic_blocks):  Add code to initialize new field (in_trace);
13719         remove call to add_unlikely_executed_notes; add call to
13720         verify_hot_cold_block_grouping.
13721         (duplicate_computed_gotos): Don't change computed goto if it's a
13722         crossing edge.
13723         (partition_hot_cold_basic_blocks):  Update function comment.
13724         * cfgcleanup.c (try_simplify_condjump): Remove redundacy from
13725         condition.
13726         (try_forward_edges): Likewise.
13727         (merge_blocks_move_predecessor_nojumps): Likewise.
13728         (merge_blocks_move_successor_nojumps): Likewise.
13729         (merge_blocks_move): Likewise.
13730         (try_crossjump_bb): Likewise.
13731         * cfglayout.c (update_unlikely_executed_notes): Remove function.
13732         (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
13733         notes to cold bb's; remove call to update_unlikely_executed_notes.
13734         (duplicate_insn_chain):  change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
13735         NOTE_INSN_SWITCH_TEXT_SECTIONS.
13736         * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
13737         function declaration.
13738         * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
13739         from consideration.
13740         (rtl_can_merge_blocks): Remove redundancy from condition.
13741         (try_redirect_by_replacing_jump): Likewise.
13742         (force_nonfallthru_and_redirect): Remove code for adding
13743         UNLIKELY_EXECUTED_CODE notes to cold bb's.
13744         (commit_one_edge_insertion): Likewise.
13745         (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
13746         * dbxout.c (FORCE_TEXT): Replace function_section with
13747         current_function_section.
13748         (struct dbx_debug_h): Add do_nothing function for new debug_hooks
13749         function, switch_text_section.
13750         (struct xcoff_debug): Likewise.
13751         (dbxout_function_end): Add code to put out label diffs for both
13752         hot and cold sections.
13753         * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
13754         for new debug_hooks funciton, switch_text_section..
13755         * debug.h (struct gcc_debug_hooks):  Add new function to debug_hooks,
13756         switch_text_section.
13757         * dwarf2out.c (struct dw_fde_struct):  Add five new fields:
13758         dw_fde_hot_section_label, dw_fde_hot_section_end_label,
13759         dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and
13760         dw_fde_switched_sections.
13761         (output_call_frame_info):  Add test to see if function switches text
13762         sections in the middle; if so, use appropriate extra hot and cold
13763         section labels to compute size deltas for the hot and cold sections.
13764         (dwarf2out_begin_prologue): Add code to initialize new fields in
13765         dw_fde_struct.
13766         (dwarf2out_switch_text_section): New function (invoked through
13767         debug_hook); updates new fields in dw_fde_struct appropriately and
13768         increments separate_line_info_table_in_use.
13769         (dwarf2_debug_hooks): Initialize switch_text_section function to be
13770         dwarf2out_switch_text_section.
13771         (struct var_loc_node): Add new field, section_label.
13772         (output_aranges): Add code to check whether in hot or cold section and
13773         use the appropriate label in calculating deltas.
13774         (output_ranges): Likewise.
13775         (output_line_info): Add code to check which section we're in and
13776         use appropriate hot/cold label.
13777         (add_location_or_constant_value_attribute): Likewise.
13778         (gen_subprogam_die): Modify arange attributes to use correct labels.
13779         (dwarf2out_begin_block): Change call to function_section into call to
13780         current_function_section.
13781         (dwarf2out_end_block): Likewise.
13782         (dwarf2out_source_line): Likewise.
13783         (dwarf2out_var_location): Add code to check whether in hot or cold
13784         section and use the appropriate label.
13785         * except.c (output_function_exception_table): Change call to
13786         function_section into call to current_function_section.
13787         * final.c (profile_function): Likewise.
13788         (scan_ahead_for_unlikely_executed_note): Remove function.
13789         (final_scan_insn):  Remove calls to
13790         scan_ahead_for_unlikely_executed_note, and related code for switching
13791         to cold section, except for the single time
13792         NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered;  add calls to
13793         debug_hooks->switch_text_sections; replace appropriate calls to
13794         function_section with calls to current_function_section.
13795         * ifcvt.c (find_if_case_1): Remove redundancy from condition, add
13796         test_bb to condition.
13797         (find_if_case_2): Likewise.
13798         * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
13799         NOTE_INSN_SWITCH_TEXT_SECTIONS.  Update comment appropriately.
13800         * opts.c (decode_options): Change warning about hot/cold partitioning
13801         with exceptionss to inform (so as not to cause bootstrap failures);
13802         remove warning about partitioning with DWARF debug info.
13803         * output.h (current_function_section): Add new function decl.
13804         (insert_section_boundary_note): Likewise.
13805         (enum in_section): Move this declaration here from varasm.c.
13806         (unlikely_section_label): Likewise.
13807         (unlikely_text_section_name): Likewise.
13808         (last_text_section_name): New global variable.
13809         (last_text_section): Likewise.
13810         (hot_section_label): Likewise.
13811         (hot_section_end_label): Likewise.
13812         (cold_section_end_label): Likewise.
13813         * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
13814         * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
13815         to NOTE_INSN_SWITCH_TEXT_SECTIONS.
13816         * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note
13817         insn from consideration.
13818         * sdbout.c (sdb_debug_hooks): Add do_nothing for new function,
13819         switch_text_section.
13820         * varasm.c (basic-block.h): Add new include.
13821         (unlikely_section_label_printed): Remove global variable.
13822         (unlikely_section_label): Make global variable not be static any more.
13823         (unlikely_text_section_name): Likewise.
13824         (hot_section_end_label): New global variable (not static)
13825         (first_function_block_is_cold): Likewise.
13826         (hot_section_label): Likewise.
13827         (cold_section_end_label): Likewise..
13828         (last_text_section): New global variable, not static.
13829         (last_text_section_name): New global variable, not static.
13830         (initialize_cold_section_name): New function.
13831         (enum in_section): Move declaration to output.h.
13832         (text_section): Update last_text_section.
13833         (unlikely_text_section): Replace code to determine cold section name
13834         with call to initialize_cold_section_name; Add code to update
13835         last_text_section; remove code for printing out label.
13836         (named_section_real): Add code to update last_text_section and
13837         last_text_section_name as appropriate.
13838         (function_section): Change test for 'unlikely' to depend on
13839         first_function_block_is_cold (moved old test to
13840         current_function_section).
13841         (current_function_section): New function.
13842         (assemble_start_function): Move code that frees
13843         unlikely_text_section_name; initialize hot_section_end_label;
13844         print hot and cold section labels at the start of the function;
13845         set first_function_block_is_cold, if appropriate; initialize l
13846         ast_text_section; add call to insert_section_boundary_note.
13847         (assemble_end_function):  Add code to write out hot and cold section
13848         end labels.
13849         *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
13850         switch_text_section.
13851         * config/darwin.c (machopic_select_section): Replace incorrect
13852         function in base_funs; update reloc for cold sections if necessary.
13853         * config/darwin.h (SECTION_FUNCTION):  Add code to update
13854         last_text_section if appropriate.
13855         (text_unlikely_section): Remove.
13856         * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
13857         * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
13858         * config/xtensa/xtensa.c (override_options): Turn off hot/cold
13859         partitioning for this architecture.
13860
13861 2005-03-31  Olivier Hainque  <hainque@adacore.com>
13862
13863         * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
13864         defined and non-zero.
13865
13866 2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
13867
13868         PR c++/18644
13869         * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
13870         semantics.
13871
13872 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
13873
13874         PR target/20611
13875         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
13876         label operand.  Remove (use (unspec..)).  Don't emit a label on
13877         the offset word.
13878         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
13879         generate inline label for load_toc_v4_PIC_1b.
13880         (rs6000_emit_load_toc_table): Likewise.
13881
13882 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
13883
13884         * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
13885         ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
13886
13887 2005-03-29  Devang Patel  <dpatel@apple.com>
13888
13889         * tree-sra.c (decide_block_copy): Disable scalarization of
13890         sub-elements.
13891
13892 2005-03-30  Stuart Hastings  <stuart@apple.com>
13893             Dale Johannesen  <dalej@apple.com>
13894
13895         * Makefile.in (print-tree.o):  Depend on tree-iterator.h.
13896         * print-tree.c (print_node):  Add case STATEMENT_LIST.
13897
13898 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
13899
13900         * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
13901         (powerpc64-*-linux*): Use it.  Rearrange tm_file assignment.
13902         (powerpc-*-linux*): Build a biarch compiler when --enable-targets
13903         is given with "powerpc64*" or "all", or when --with-cpu chooses
13904         a 64-bit cpu.
13905
13906 2005-03-30  James E. Wilson  <wilson@specifixinc.com>
13907
13908         PR debug/20268
13909         * dwarf2out.c (add_high_low_attributes): New function, extracted from
13910         gen_lexical_block_die.
13911         (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
13912
13913 2005-03-31  Jan Hubicka  <jh@suse.cz>
13914
13915         2004-11-02  Jan Hubicka  <jh@suse.cz>
13916
13917         * cgraph.c (cgraph_varpool_node_name): New function.
13918         (dump_cgraph_varpool_node): New function.
13919         (dump_varpool): New function.
13920         * cgraphunit.c (cgraph_optimize): Dump varpool.
13921
13922         2004-10-16  Jan Hubicka  <jh@suse.cz>
13923
13924         * cgraph.c (decide_is_variable_needed): New function.
13925         (cgraph_varpool_finalize_decl): Use it.
13926         * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
13927         unit-at-a-time.
13928         * final.c (output_addr_const): Do not call mark_referenced.
13929         * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
13930         always go via cgraph.
13931         * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
13932         (check_global_declarations): Ifdef out code clearing DECL_RTL.
13933         * tree-optimize.c (execute_inline): Mark functions called.
13934         * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
13935
13936         2004-10-11  Jan Hubicka  <jh@suse.cz>
13937
13938         * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
13939         (cgraph_varpool_last_needed_node): New static variable.
13940         (enqueue_needed_varpool_node): Break out from ...; add items to the
13941         end of queue; update first pointers.
13942         (cgraph_varpool_mark_needed_node): ... here.
13943         (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
13944         (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
13945         * cgraph.h (cgraph_varpool_node): Add analyzed field.
13946         (cgraph_varpool_first_unanalyzed_node): Declare.
13947         * cgraphunit.c: Include output.h.
13948         (cgraph_varpool_analyze_pending_decls): New function.
13949         (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
13950         for errors, analyze pending decls.
13951         (cgraph_finalize_compilation_unit): Only analyze decls.
13952         (cgraph_optimize): Assemble the decls after expanding.
13953
13954 2005-03-30  Daniel Berlin  <dberlin@dberlin.org>
13955
13956         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
13957         subvars get marked properly in tags for grouping.
13958         (add_pointed_to_var): Mark only actual pointed to
13959         variables/subvars in addresses needed.
13960         (create_overlap_variables_for): Clear call clobbered on original
13961         variable.
13962         * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
13963         addresable vars with subvars into list.
13964         * tree-ssa.c (verify_ssa_name): Verify original is not used where
13965         subvar should be.
13966
13967 2005-03-30  Richard Henderson  <rth@redhat.com>
13968
13969         * cgraph.h (struct cgraph_node): Add alias.
13970         * varasm.c (assemble_alias): Set it.
13971         * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
13972         avoid calling cgraph_expand_function.
13973
13974 2005-03-30  Tom Tromey  <tromey@redhat.com>
13975
13976         * tree.def (FILE_TYPE): Removed.
13977         * typeclass.h (enum type_class): Removed file_type_class.
13978         * dwarf2out.c (is_base_type): Updated.
13979         (gen_type_die): Likewise.
13980         * dbxout.c (dbxout_type): Updated.
13981         * builtins.c (type_to_class): Updated.
13982         * tree.c (type_contains_placeholder_1): Updated.
13983         * config/sparc/sparc.c (sparc_type_code): Updated.
13984         * config/ia64/ia64.c (hfa_element_mode): Updated.
13985         * expr.c (count_type_elements): Updated.
13986         * stor-layout.c (layout_type): Updated.
13987         * tree-inline.c (remap_type): Updated.
13988         * tree-pretty-print.c (dump_generic_node): Updated.
13989
13990 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
13991
13992         * builtins.c (expand_builtin_powi): Fix mode of
13993         2nd argument to match int.
13994         * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
13995         2nd argument type to int.
13996         * libgcc2.c: Change prototype of __powi* functions to use
13997         int.
13998
13999 2005-03-30  Dale Johannesen  <dalej@apple.com>
14000
14001         PR middle-end/19225
14002         * calls.c (expand_call):  Flush pending deferrals before
14003         throwing call.
14004
14005 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
14006
14007         PR c/772
14008         PR c/17913
14009         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
14010         C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
14011         c_label_context, label_context_stack): New.
14012         * c-decl.c (define_label): Check for jumps into statement
14013         expressions.  Add label to list of defined labels.
14014         (start_function): Push context on label_context_stack.
14015         (finish_function): Pop context from label_context_stack.
14016         * c-typeck.c (label_context_stack): New.
14017         (c_finish_goto_label): Check for jumps into statement
14018         expressions.  Add label to list of jumped to labels.
14019         (struct c_switch): Add blocked_stmt_expr.
14020         (c_start_case): Initialize it.
14021         (do_case): Check it.
14022         (c_finish_case): Verify !blocked_stmt_expr.
14023         (c_begin_stmt_expr):  Push context on label_context_stack.
14024         Increment blocked_stmt_expr.  Mark labels jumped to from outside
14025         as undefinable.
14026         (c_finish_stmt_expr): December blocked_stmt_expr.  Mark labels
14027         defined in the statement expression and no longer jumpable to.
14028         Mark labels jumped to from just outside the statement expression
14029         as again definable.  Pop context from label_context_stack.
14030         * doc/extend.texi (Statement Exprs): Update.
14031
14032 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
14033
14034         PR c/20368
14035         * c-decl.c (start_function): Check for old_decl being
14036         error_mark_node.
14037
14038 2005-03-30  Ian Lance Taylor  <ian@airs.com>
14039
14040         * final.c (final): Remove prescan parameter.  Change all callers.
14041         (final_scan_insn): Remove prescan parameter.  Change all callers.
14042
14043 2005-03-30  Kazu Hirata  <kazu@cs.umass.edu>
14044
14045         * tree-vectorizer.c: Fix comment typos.
14046
14047 2005-03-30  Sebastian Pop  <pop@cri.ensmp.fr>
14048
14049         * tree-scalar-evolution.c (instantiate_parameters_1): Return
14050         as soon as a chrec_dont_know is detected.
14051
14052 2005-03-31  Danny Smith  <dannysmith@users.sourceforge.net>
14053
14054         Merge from csl-arm-branch.
14055         2004-02-12  Mark Mitchell  <mark@codesourcery.com>
14056
14057         * tlink.c (recompile_files): Do not assume that "rename" can
14058         overwrite an existing file.
14059
14060 2005-03-31  Paolo Bonzini  <bonzini@gnu.org>
14061
14062         * gcc/configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
14063         * gcc/configure: Regenerate.
14064
14065 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
14066
14067         * doc/install.texi: Update binutils requirement for powerpc*-linux.
14068
14069         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
14070
14071         * calls.c (struct arg_data): Update "partial" comment.
14072         (load_register_parameters): Update "nregs" comment.
14073
14074 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
14075
14076         * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
14077         (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
14078         (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
14079         (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
14080         (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
14081         (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
14082         than target_flags & 0.
14083         * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
14084         (iq2000_arch, iq2000_parse_cpu): Delete.
14085         (TARGET_HANDLE_OPTION): Override default.
14086         (iq2000_handle_option): New function.
14087         (override_options): Remove -march= and -mcpu= handling.
14088         * config/iq2000/iq2000.opt: New file.
14089
14090 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
14091
14092         * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
14093         * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
14094         (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
14095         (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
14096         (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
14097         (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
14098         (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
14099         (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
14100         (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
14101         (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
14102         (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
14103         (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
14104         (c4x_rpts_cycles_string, c4x_cpu_version_string)
14105         (TARGET_OPTIONS): Delete.
14106         (c4x_rpts_cycles, c4x_cpu_version): Declare.
14107         (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
14108         (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
14109         * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
14110         (c4x_cpu_version_string): Delete.
14111         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
14112         (c4x_handle_option): New function.  Map -m3x and -m4x options to the
14113         equivalent -mcpu= option.
14114         (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
14115         Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
14116         TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
14117         or clearing the appropriate MASK_* bit.
14118         (c4x_file_start): Use c4x_cpu_version.
14119         * config/c4x/c4x.opt: New file.
14120
14121 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
14122
14123         * doc/options.texi: Document the new MaskExists flag.
14124         * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
14125         if the option has the MaskExists flag.
14126
14127 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
14128
14129         * opt-functions.awk (flag_set_p, test_flag): New functions.
14130         (switch_flags): Use them.
14131         * opth-gen.awk: Use flag_set_p to check for flags.
14132         * optc-gen.awk: Likewise.  Use opt_args to check for Init(...) flags.
14133
14134 2005-03-30  Ian Lance Taylor  <ian@airs.com>
14135
14136         * config.host (i[34567]86-*-mingw32*): Don't set
14137         host_can_use_collect2 to no.
14138
14139 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
14140
14141         PR target/20203
14142         * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
14143         Remove convert_memory_address call duplicating that in memory_address.
14144
14145 2005-03-29  Richard Henderson  <rth@redhat.com>
14146
14147         PR c/20519
14148         * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
14149         (build_compound_literal): Likewise.  Propagate decl type into the
14150         initializer.
14151         (finish_decl): Likewise.  Use new return value from complete_array_type
14152         for zero sized arrays.
14153         (complete_array_type): Move ...
14154         * c-common.c (complete_array_type): ... here.  Change first argument
14155         to pointer-to-type-node.  Consistently use sizetype for the index
14156         except for zero sized arrays.  Detect zero sized arrays for pedantic
14157         mode diagnostics.  Create a new type node instead of modifying the
14158         old node in place.
14159         * c-tree.h (complete_array_type): Move decl ...
14160         * c-common.h (complete_array_type): ... here.
14161
14162 2005-03-29  Richard Henderson  <rth@redhat.com>
14163
14164         PR tree-opt/19108
14165         * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
14166
14167 2005-03-29  Kazu Hirata  <kazu@cs.umass.edu>
14168
14169         * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
14170         debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
14171         rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
14172         tree-profile.c, tsystem.h, value-prof.h: Update copyright.
14173
14174 2005-03-29  Eric Christopher  <echristo@redhat.com>
14175
14176         * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
14177         truthvalue conversion removal.
14178
14179 2005-03-29  Ian Lance Taylor  <ian@airs.com>
14180
14181         PR bootstrap/14316
14182         * collect2.c: Never include <vfork.h>.
14183         (VFORK_STRING, vfork): Don't define.
14184         (pid): Remove global variable.
14185         (handler): Call raise instead of kill (getpid(), ...).
14186         (collect_wait): Add pex parameter.  Change all callers.  Use
14187         pex_get_status rather than pwait.
14188         (do_wait): Add pex parameter.  Change all callers.
14189         (collect_execute): Return struct pex_obj * rather than void.  Use
14190         pex routines rather than pexecute.
14191         (fork_execute): Get pex_obj from collect_execute, and pass it to
14192         do_wait.
14193         (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
14194         Only declare quit_handler if SIGQUIT is defined.
14195         (scan_libraries): Likewise.
14196         * collect2.h (collect_execute): Update declaration.
14197         (collect_wait): Update declaration.
14198         * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
14199         pass it to collect_wait.
14200
14201 2005-03-29  Joseph S. Myers  <joseph@codesourcery.com>
14202
14203         PR c/20672
14204         * c-parser.c (c_parser_compound_statement_nostart): Give error
14205         message for EOF instead of just setting parser->error.
14206
14207 2005-03-29  Dorit Naishlos  <dorit@il.ibm.com>
14208
14209         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
14210         (slpeel_update_phi_nodes_for_guard1): New function.
14211         (slpeel_update_phi_nodes_for_guard2): New function.
14212         (slpeel_tree_peel_loop_to_edge): Call above new functions instead
14213         of slpeel_update_phi_nodes_for_guard.
14214         (vectorize_loops): Remove call to loop_closed_rewrite.
14215         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
14216         assertion.
14217
14218 2005-03-29  Richard Sandiford  <rsandifo@redhat.com>
14219
14220         * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
14221         (TARGET_LITTLE_ENDIAN): New macro.
14222         * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
14223         (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
14224         (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
14225         (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
14226         (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
14227         (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
14228         (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
14229         (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
14230         (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
14231         (TARGET_OPTIONS): Delete.
14232         (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
14233         (CACHE_FLUSH_TRAP): Turn into an integer.
14234         (TARGET_LITTLE_ENDIAN): Define to 0 by default.
14235         (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
14236         -mflush-trap is in use.
14237         * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
14238         (m32r_cache_flush_trap_string): Delete.
14239         (m32r_model) Initialize to M32R_MODEL_DEFAULT.
14240         (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
14241         (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
14242         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
14243         (m32r_handle_option): New function.  Move -mflush-trap=, -mflush-func=,
14244         -mmodel= and -msdata= handling from...
14245         (m32r_init): ...here.
14246         * config/m32r/m32r.opt: New file.
14247
14248 2005-03-29  Keith Besaw  <kbesaw@us.ibm.com>
14249
14250         * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
14251         (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
14252         * tree-vect-analyze.c (vect_object_analysis): additional parm
14253         pass back a "struct ptr_info_def *" with the points-to info.
14254         (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
14255         statement using info returned from vect_object_analysis.
14256         * tree-vect-transform.c (update_vuses_to_preheader): New function.
14257         (vect_create_data_ref_ptr): Remove updates to vars_to_rename
14258         for virtual uses and defs when creating a replacement vector
14259         reference.  Call duplicate_ssa_name_ptr_info to define points-to
14260         info for vector pointer replacement using STMT_VINFO_PTR_INFO.
14261         (vectorizable_store): copy_virtual_operands and update
14262         definition statements.
14263         (vectorizable_load): copy_virtual_operands.  Remove call to
14264         mark_call_clobbered_vars_to_rename for call to "const" builtin.
14265         * tree-vectorizer.c (vectorize_loops): Remove calls to
14266         rewrite_into_ssa and bitmap_clear (vars_to_rename).
14267         (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
14268         * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
14269         define macro STMT_VINFO_PTR_INFO for use in accessing.
14270         * tree.h add export of duplicate_ssa_name_ptr_info.
14271         * rs6000.c (altivec_init_builtins): Declare builtin function
14272         __builtin_altivec_mask_for_load to be "const".
14273
14274 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
14275
14276         PR middle-end/20622
14277         * cgraph.h (struct cgraph_varpool_node): Add alias field.
14278         * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
14279         assemble_variable on aliases.
14280         * varasm.c (assemble_alias): Set node->alias.
14281         * toplev.c (wrapup_global_declarations): Don't call
14282         rest_of_decl_compilation on aliases again.
14283
14284 2005-03-29  Paul Brook  <paul@codesourcery.com>
14285
14286         * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
14287         * config/arm/arm.c (arm_dbx_register_number): New function.
14288         * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
14289
14290 2005-03-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
14291
14292         PR middle-end/20263
14293         * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
14294         the DECL_NAME, not the DECL_ASSEMBLER_NAME.
14295
14296 2005-03-29  Dale Johannesen <dalej@apple.com>
14297
14298         * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
14299         $(TREE_H) and $(COVERAGE_H).
14300         * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
14301         * opts.c (common_handle_option): Enable tree-based value transforms.
14302         * toplev.c (process_options): Ditto.
14303         * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
14304         refers to references to this type.
14305         * tree-flow.h: (struct stmt_ann_d): Add histograms field.
14306         * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
14307         for may_be_more, may_be_less.
14308         (rtl_gen_pow2_profiler): Adjust.
14309         (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
14310         (rtl_gen_one_value_profiler): Adjust.
14311         (rtl_gen_const_delta_profiler): Adjust.
14312         * tree-profile.c (tree_gen_interval_profiler): Implement.
14313         (tree_gen_pow2_profiler): Ditto.
14314         (tree_gen_one_value_profiler): Ditto.
14315         (tree_profiling): New.
14316         (pass_tree_profile): Reference it.
14317         * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
14318         tree.h, gcov-io.h.
14319         (insn_divmod_values_to_profile): Rename to
14320         rtl_divmod_values_to_profile. Adjust.
14321         (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
14322         (insn_prefetch_values_to_profile): Adjust.
14323         (rtl_value_profile_transformations): Adjust.
14324         (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
14325         (gen_mod_pow2): Rename to rtl_mod_pow2.
14326         (gen_mod_subtract): Rename to rtl_mod_subtract.
14327         (divmod_fixed_value_transform): Rename to
14328         rtl_divmod_fixed_value_transform.
14329         (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
14330         (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
14331         (rtl_find_values_to_profile): Adjust.
14332         (tree_value_profile_transformations): Implement.
14333         (tree_divmod_values_to_profile): New.
14334         (tree_values_to_profile): New.
14335         (tree_divmod_fixed_value): New.
14336         (tree_mod_pow2): New.
14337         (tree_mod_subtract): New.
14338         (tree_divmod_fixed_value_transform): New.
14339         (tree_mod_pow2_value_transform): New.
14340         (tree_mod_subtract_transform): New.
14341         (tree_find_values_to_profile): Implement.
14342         * profile.c (instrument_values):  Free histograms.
14343         (compute_value_histograms): Adjust. Implement tree version.
14344
14345 2005-03-29  Uros Bizjak  <uros@kss-loka.si>
14346
14347         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
14348         * config/i386/i386.c (output_fix_trunc): Add new round_mode
14349         variable.  Output "fldcw" depending on round_mode.
14350         * config/i386/i386.md (UNSPEC_FIST): New.
14351         (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
14352         New isns patterns to implement lrint and llrint built-ins as x87
14353         intrinsic function.
14354         (fistdi2, fist<mode>2 splitters): New splitters.
14355         (lrint<mode>2): New expanders.
14356
14357 2005-03-28  Ian Lance Taylor  <ian@airs.com>
14358
14359         * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
14360         0 when calling final_scan_insn.
14361
14362 2005-03-28  Jan Hubicka  <jh@suse.cz>
14363
14364         PR middle-end/20635
14365         * varasm.c (mark_decl_referenced): Do not mark extern inline functions
14366         as needed.
14367
14368         * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
14369         types where possible.
14370
14371 2005-03-26  Per Bothner  <per@bothner.com>
14372
14373         Make -f[no-]show-column also control non-cpp diagnostics.
14374         * c.opt (fshow-column): Move option from here ...
14375         * common.opt (fshow-column): ... to here.
14376         * diagnostic.c (diagnostic_build_prefix): Only print column number
14377         if flag_show_column.
14378
14379 2005-03-27  Steven Bosscher  <stevenb@suse.de>
14380
14381         * vax-protos.h (vax_output_int_move, vax_output_int_add,
14382         vax_output_conditional_branch): New prototypes.
14383         * vax.c (vax_output_int_move, vax_output_int_add): New functions,
14384         extracted from vax.md mov and add patterns.
14385         (vax_output_conditional_branch): New function to output conditional
14386         branch instructions.
14387         * vax.md: Use mode macros for arithmetic and mov patterns.
14388         Use code macros for the jump patterns.
14389
14390 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
14391
14392         * Makefile.in (libbackend.o): Depend on version files;
14393         add custom generation command.
14394
14395 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
14396
14397         PR target/20636
14398         * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
14399         sure that we have a REG before getting its REGNO.
14400
14401 2005-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14402
14403         * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
14404         * builtins.def (BUILT_IN_STRNDUP): New.
14405
14406 2005-03-25  Pat Haugen  <pthaugen@us.ibm.com>
14407
14408         PR tree-optimization/20470
14409         * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
14410         ABS(x-y).
14411
14412 2005-03-25  Mike Stump  <mrs@apple.com>
14413
14414         * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
14415         sized objects.
14416
14417 2005-03-25  Geoffrey Keating  <geoffk@apple.com>
14418
14419         * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
14420         Use our own structure definitions.
14421
14422         * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
14423         (fix_truncdfsi2): Allow registers or memory as destination.
14424         When TARGET_PPC_GFXOPT, generate simplified pattern.
14425         (fix_truncdfsi2_internal): Use define_insn_and_split.
14426         (fix_truncdfsi2_internal_gfxopt): New.
14427         (fctiwz): Don't confuse register allocation by giving it no choices.
14428         (stfiwx): New.
14429         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
14430         (EXTRA_MEMORY_CONSTRAINT): Likewise.
14431         * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
14432         * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
14433
14434 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
14435
14436         * dominance.c (free_dominance_info): Speed up by freeing et
14437         data structures without maintaining other nodes.
14438         * et-forest.c (et_free_tree_force): New.
14439         * et-forest.h: Add a prototype for et_free_tree_force.
14440
14441         * tree.c (get_set_constructor_bits,
14442         get_set_constructor_bytes): Remove.
14443         * tree.h: Remove the corresponding prototypes.
14444
14445 2005-03-25  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
14446
14447         PR target/15491
14448         * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs.
14449         (vax_rtx_costs): Return false when passed unsupported rtx's.  Handle
14450         FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE.  Fix costs for POST_INC,
14451         PRE_DEC, NEG and NOT.
14452
14453 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
14454
14455         * fold-const.c: Convert uses of fold (build (...)) to
14456         fold_buildN.
14457
14458 2005-03-25  Zdenek Dvorak  <dvorakz@suse.cz>
14459
14460         PR rtl-optimization/20249
14461         * cse.c (insert_regs): Do not record equivalence of registers in
14462         different modes.
14463
14464 2005-03-24  Kazu Hirata  <kazu@cs.umass.edu>
14465
14466         * emit-rtl.c (reverse_comparison): Remove.
14467         * rtl.h: Remove the corresponding prototype.
14468
14469 2005-03-24  James E Wilson  <wilson@specifixinc.com>
14470
14471         * doc/install.texi (--enable-altivec): Delete docs.
14472
14473 2005-03-24  David Edelsohn  <edelsohn@gnu.org>
14474
14475         * config/rs6000/predicates.md (easy_fp_constant): Return 0 for
14476         SFmode and DFmode before reload when
14477         flag_unsafe_math_optimizations not enabled.
14478
14479 2005-03-24  Geoffrey Keating  <geoffk@apple.com>
14480
14481         * c.opt (fvisibility-inlines-hidden): Allow for ObjC++.
14482
14483         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Add
14484         MASK_128BIT_LONG_DOUBLE, MASK_ALIGN_DOUBLE.
14485
14486 2005-03-24  Nathan Sidwell  <nathan@codesourcery.com>
14487
14488         * configure.ac (enable-checking): Add 'runtime' option.
14489         * doc/install.texi (enable-checking): Document 'runtime' checking.
14490         * tsystem.h (gcc_assert, gcc_unreachable): Define.
14491         * config.in: Regenerated.
14492         * configure: Regenerated.
14493
14494 2005-03-23  Uros Bizjak  <uros@kss-loka.si>
14495
14496         * optabs.h (enum optab_index): Remove OTI_llrint.
14497         (llrint_optab): Remove macro.
14498         * optabs.c (init_optabs): Remove llrint_optab initialization.
14499         * genopinit.c (optabs): Remove llrint_optab implementation.
14500         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
14501         using lrint_optab.
14502
14503 2005-03-24  Alexandre Oliva  <aoliva@redhat.com>
14504
14505         PR rtl-optimization/20532
14506         * simplify-rtx.c (simplify_binary_operation_1): Protect from
14507         overflow when adding coefficients for PLUS or MINUS.
14508         (simplify_binary_operation_1): Handle CONST_DOUBLE exact power of
14509         two as multiplier.
14510
14511 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
14512
14513         * langhooks.h (truthvalue_conversion): Remove.
14514         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
14515         LANG_HOOKS_TRUTHVALUE_CONVERSION.
14516         * system.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Poison.
14517         * gimplify.c (gimple_boolify): Don't use truthvalue_conversion.
14518         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
14519
14520 2005-03-23  Kazu Hirata  <kazu@cs.umass.edu>
14521
14522         * params.def: Fix a typo.
14523         * config/mips/mips.c: Follow the spelling convensions.
14524         * doc/invoke.texi: Fix typos.
14525
14526 2005-03-23  Daniel Berlin  <dberlin@dberlin.org>
14527
14528         Fix PR tree-optimization/20601
14529
14530         * tree-ssa-pre.c (insert_aux): Add missing condition to
14531         constification.
14532
14533 2005-03-23  Ian Lance Taylor  <ian@airs.com>
14534
14535         * final.c (final_scan_insn): Don't remove no-op instructions.
14536         * reload1.c (reload): Remove simple no-op instructions even when
14537         not optimizing.
14538
14539 2005-03-23  Dorit Naishlos  <dorit@il.ib.com>
14540
14541         PR tree-optimization/20501
14542         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
14543         reporting that peeling for alignment is applied moved to...
14544         * (vect_analyze_data_refs_alignment): Here.
14545
14546 2005-03-23  Ian Lance Taylor  <ian@airs.com>
14547
14548         * reorg.c (dbr_schedule): Remove #if 0 code to call final.
14549
14550 2005-03-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14551
14552         * config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.
14553         Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A.
14554
14555 2005-03-23  Hans-Peter Nilsson  <hp@axis.com>
14556
14557         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
14558         imply that this is called once, independent of asms in code.
14559         Adjust to now being pased output and input lists.  Mention helper
14560         function decl_overlaps_hard_reg_set_p.
14561         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
14562         hook_tree_tree_identity and to take three trees, returning third.
14563         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
14564         prototype.
14565         * stmt.c: include hard-reg-set.h before tree.h.
14566         (decl_overlaps_hard_reg_set_p): New function, broken out from...
14567         (decl_conflicts_with_clobbers_p): Call
14568         decl_overlaps_hard_reg_set_p.
14569         (expand_asm_operands): Pass output and input lists in call to
14570         targetm.md_asm_clobbers.
14571         * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
14572         hook_tree_tree_tree_tree_3rd_identity.
14573         * target.h (struct gcc_target.md_asm_clobbers): Take three tree
14574         parameters.
14575         * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
14576         * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
14577         parameters, first two unused.
14578         * config/cris/cris.c (cris_md_asm_clobbers): Adjust to added
14579         parameters.  Only add MOF to clobbers if there's no 'h' mentioned
14580         in constraint letters and MOF is not mentioned as a asm-declared
14581         register in neither of the input and output lists.
14582
14583 2005-03-23  DJ Delorie  <dj@redhat.com>
14584
14585         * optabs.c (expand_binop): Make sure the first subword's result
14586         gets stored.
14587
14588 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
14589
14590         * c-common.c (c_common_truthvalue_conversion): Adjust comment.
14591         Call c_common_truthvalue_conversion rather than
14592         lang_hooks.truthvalue_conversion.
14593         * c-convert.c (convert): Call c_objc_common_truthvalue_conversion.
14594         * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to
14595         c-typeck.c.
14596         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to
14597         c_common_truthvalue_conversion.
14598         * c-parser.c (c_parser_paren_condition, c_parser_for_statement,
14599         c_parser_conditional_expression, c_parser_binary_expression): Call
14600         c_objc_common_truthvalue_conversion.
14601         * c-typeck.c (build_unary_op): Call
14602         c_objc_common_truthvalue_conversion.
14603         (build_conditional_expr): Do not call
14604         lang_hooks.truthvalue_conversion.
14605         (build_binary_op): Call c_common_truthvalue_conversion.
14606         (c_objc_common_truthvalue_conversion): Moved from
14607         c-objc-common.c.  Call default_function_array_conversion instead
14608         of default_conversion.
14609
14610 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
14611
14612         * c-common.h (default_conversion): Remove.
14613         (perform_integral_promotions): Add.
14614         * c-tree.h (default_conversion): Add.
14615         * c-typeck.c (perform_integral_promotions): New, split out from
14616         default_conversion.
14617         * c-common.c (check_case_value): Use perform_integral_promotions,
14618         not default_conversion.
14619         (c_add_case_label): Don't continue processing case label after
14620         found to be pointer.
14621
14622 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
14623
14624         * gcc.c (do_spec_1): Do not add a -L path for a directory in
14625         the prefix list if we have already added a multilib directory
14626         based on that path.
14627         (main): Do not add MD_EXEC_PREFIX to the list of directories to
14628         search with -L.
14629
14630 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
14631
14632         * reload1.c (indirect_symref_ok, reload_obstack): Make them
14633         static.
14634         * reload.h: Remove the prototype for indirect_symref_ok.
14635
14636         * reload1.c (indirect_symref_ok): Make it global.
14637         * reload.h: Add a prototype for indirect_symref_ok.
14638
14639 2005-03-22  Kaz Kojima  <kkojima@gcc.gnu.org>
14640
14641         * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
14642         ashlhi3 expander.
14643
14644 2005-03-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
14645
14646         * tree.h (DECL_IGNORED_P, DECL_IN_SYSTEM_HEADER): Clarify comments.
14647
14648 2005-03-22  Daniel Berlin  <dberlin@dberlin.org>
14649
14650         * c-opts.c (c_common_parse_file): Only start/end main source file
14651         if debug hooks says the writer wants it.
14652         * dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
14653         member.
14654         (xcoff_debug_hooks): Ditto.
14655         * debug.c (do_nothing_hooks): Ditto.
14656         * debug.h (gcc_debug_hooks): Ditto.
14657         * dwarf2out.c (dwarf2_debug_hooks): Ditto.
14658         * sdbout.c (sdb_debug_hooks): Ditto.
14659         * vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
14660
14661 2005-03-22  Mark Mitchell  <mark@codesourcery.com>
14662
14663         * doc/extend.texi: Deprecate C++ min/max operators.
14664
14665 2005-03-22  Zdenek Dvorak  <dvorakz@suse.cz>
14666
14667         * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve
14668         artificial original candidates.
14669
14670 2005-03-22  Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
14671             Jan Hubicka  <jh@suse.cz>
14672             Steven Bosscher <stevenb@suse.de>
14673
14674         * cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
14675         call cost based on argument sizes.
14676         (cgraph_mark_inline_edge): Avoid inline unit from shrinking by
14677         inlining.
14678         * params.def: (max-inline-inssn-single): Set to 450.
14679         (max-inline-insns-auto): Set to 90.
14680         (max-inline-insns-recursive): Set to 450
14681         (max-inline-insns-recursive-auto): Set to 450.
14682         (large-function-insns): Set to 2700.
14683         (inline-call-cost): New parameter.
14684         * tree-inline.c (estimate_move_cost): New function.
14685         (estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
14686         for non-gimple-regs, set cost to 0 for gimple-regs.  Compute call size
14687         based on arguments.
14688         * tree-inline.h (estimate_move_cost): Declare.
14689         * invoke.texi: (max-inline-inssn-single): Change default to 450.
14690         (max-inline-insns-auto): Change default to 90.
14691         (max-inline-insns-recursive): Change default to 450
14692         (max-inline-insns-recursive-auto): Change default to 450.
14693         (large-function-insns): Change default to 2700.
14694         (inline-call-cost): Document new parameter.
14695
14696 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
14697
14698         * config/i860/i860.h (target_flags, TARGET_XP, TARGET_SWITCHES)
14699         (TARGET_DEFAULT): Delete.
14700         * config/i860/i860.opt: New file.
14701
14702 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
14703
14704         * config/frv/frv-protos.h (frv_branch_cost_string, frv_branch_cost_int)
14705         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
14706         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
14707         (frv_sched_lookahead): Delete.
14708         * config/frv/frv.h (MASK_DEFAULT_ALLOC_CC): Move to frv.c.
14709         (target_flags, MASK_GPR_32, MASK_FPR_32, MASK_SOFT_FLOAT)
14710         (MASK_ALLOC_CC, MASK_DWORD, MASK_DOUBLE, MASK_MEDIA, MASK_MULADD)
14711         (MASK_LIBPIC, MASK_ACC_4,  MASK_PACK, MASK_LONG_CALLS)
14712         (MASK_ALIGN_LABELS, MASK_LINKED_FP, MASK_BIG_TLS, MASK_DEBUG_ARG)
14713         (MASK_DEBUG_ADDR, MASK_DEBUG_STACK, MASK_DEBUG, MASK_DEBUG_LOC)
14714         (MASK_DEBUG_COND_EXEC, MASK_NO_COND_MOVE, MASK_NO_SCC)
14715         (MASK_NO_COND_EXEC, MASK_NO_VLIW_BRANCH, MASK_NO_MULTI_CE)
14716         (MASK_FDPIC, MASK_INLINE_PLT, MASK_GPREL_RO, MASK_DEFAULT)
14717         (TARGET_GPR_32, TARGET_FPR_32, TARGET_SOFT_FLOAT, TARGET_ALLOC_CC)
14718         (TARGET_DWORD, TARGET_DOUBLE, TARGET_MEDIA, TARGET_MULADD)
14719         (TARGET_LIBPIC, TARGET_ACC_4, TARGET_DEBUG_ARG, TARGET_DEBUG_ADDR)
14720         (TARGET_DEBUG_STACK, TARGET_DEBUG, TARGET_DEBUG_LOC)
14721         (TARGET_DEBUG_COND_EXEC, TARGET_NO_COND_MOVE, TARGET_NO_SCC)
14722         (TARGET_NO_COND_EXEC, TARGET_NO_VLIW_BRANCH, TARGET_NO_MULTI_CE)
14723         (TARGET_NO_NESTED_CE, TARGET_FDPIC, TARGET_INLINE_PLT, TARGET_BIG_TLS)
14724         (TARGET_GPREL_RO, TARGET_PACK, TARGET_LONG_CALLS, TARGET_ALIGN_LABELS)
14725         (TARGET_LINKED_FP, TARGET_GPR_64, TARGET_FPR_64, TARGET_HARD_FLOAT)
14726         (TARGET_FIXED_CC, TARGET_COND_MOVE, TARGET_SCC, TARGET_COND_EXEC)
14727         (TARGET_VLIW_BRANCH, TARGET_MULTI_CE, TARGET_NESTED_CE, TARGET_ACC_8)
14728         (TARGET_SWITCHES, TARGET_OPTIONS, DEFAULT_CONDEXEC_TEMPS)
14729         (DEFAULT_BRANCH_COST, DEFAULT_CONDEXEC_INSNS): Delete.
14730         * config/frv/frv.c (frv_branch_cost_string, frv_branch_cost_int)
14731         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
14732         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
14733         (frv_sched_lookahead): Delete.
14734         (MASK_DEFAULT_ALLOC_CC): Moved from frv.h.
14735         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
14736         (frv_handle_option): New function.  Move -mcpu= handling from...
14737         (frv_override_options): ...here.  Remove handling of other
14738         TARGET_OPTIONS.
14739         (frv_ifcvt_modify_tests): Check !TARGET_COND_EXEC instead of
14740         TARGET_NO_COND_EXEC and !TARGET_NESTED_CE to TARGET_NO_NESTED_CE.
14741         (frv_ifcvt_modify_multiple_tests): Likewise !TARGET_MULTI_CE
14742         and TARGET_NO_MULTI_CE.
14743         (frv_for_each_packet): Likewise TARGET_NO_VLIW_BRANCH and
14744         !TARGET_VLIW_BRANCH.
14745         * config/frv/frv.opt: New file.
14746
14747 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
14748
14749         * fold-const.c (fold_ternary): Take decomposed arguments of
14750         CALL_EXPR.
14751         (fold): Update a call to fold_ternary.
14752
14753         * fold-const.c (fold_build1, fold_build2, fold_build3): New.
14754         * tree.h: Add corresponding prototypes.
14755
14756 2005-03-22  Jakub Jelinek  <jakub@redhat.com>
14757
14758         PR target/20561
14759         * cfglayout.c (reemit_insn_block_notes): Don't put block notes in
14760         between jump table and its label.
14761         * final.c (shorten_branches): Handle notes in between ADDR_VEC
14762         resp. ADDR_DIFF_VEC and the label preceeding it.
14763         (final_scan_insn): Likewise.  Ensure ADDR_VEC resp. ADDR_DIFF_VEC
14764         is emitted in the right section.
14765
14766 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
14767
14768         * fold-const.c (fold_unary, fold_binary): Update comments
14769         about arguments.
14770
14771 2005-03-22  Hans-Peter Nilsson  <hp@axis.com>
14772
14773         PR rtl-optimization/20527
14774         * combine.c (can_combine_p) [AUTO_INC_DEC]: When INSN has an
14775         REG_INC note, test that the register also isn't mentioned in PRED
14776         or SUCC.
14777
14778 2005-03-22  Ben Elliston  <bje@au.ibm.com>
14779
14780         * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
14781         and definition.
14782
14783 2005-03-21  Mike Stump  <mrs@apple.com>
14784
14785         * varasm.c (default_assemble_visibility): Remove extra ().
14786
14787 2005-03-21  Roger Sayle  <roger@eyesopen.com>
14788
14789         PR middle-end/20557
14790         * bb-reorder.c (duplicate_computed_gotos): Use can_duplicate_block_p
14791         to determine whether a block can be duplicated, rather than test
14792         whether the block contains noncopyable insns ourselves.
14793
14794 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
14795
14796         * config/i860/i860.h (PREDICATE_CODES): Remove nonexistent
14797         predicates.
14798
14799 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
14800
14801         * config/ip2k/ip2k.h (target_flags, TARGET_SWITCHES): Delete.
14802
14803 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
14804
14805         * config/fr30/fr30.h (TARGET_SMALL_MODEL_MASK, TARGET_SMALL_MODEL)
14806         (TARGET_DEFAULT, target_flags, TARGET_SWITCHES): Delete.
14807         * config/fr30/fr30.opt: New file.
14808
14809 2005-03-18  Daniel Berlin  <dberlin@dberlin.org>
14810
14811         Fix PR tree-optimization/20542
14812
14813         * tree-flow-inline.h (overlap_subvar): Move to here.
14814         * tree-ssa-operands.c: From here.
14815         * tree-flow.h (overlap_subvar): Declare.
14816         * tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
14817         * tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
14818         for variables with subvars.
14819
14820 2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
14821
14822         PR middle-end/20177
14823         * ddg.c (create_ddg_dependence): Ignore reg-anti dependency.
14824         * modulo-sched.c (const_iteration_count): Return on NULL
14825         pre-header.
14826         (print_node_sched_params): Return on NULL dump_file.
14827         (generate_reg_moves): Handle reg-anti dependencies and disregard
14828         closing branch when generating register moves.
14829         (sms_schedule): Mark the SMSed block dirty.
14830         * passes.c (rest_of_handle_sms): Call update_life_info for all
14831         basic-blocks.
14832         * testsuite/gcc.dg/20050321-1.c: New test.
14833
14834 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
14835
14836         * config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
14837         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
14838         movqi_internal): Likewise.
14839
14840 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
14841
14842         * config/xtensa/xtensa-protos.h: (xtensa_simm7, xtensa_uimm8,
14843         xtensa_uimm8x2, xtensa_uimm8x4, xtensa_ai4const, xtensa_lsi4x4,
14844         xtensa_b4const): Delete prototypes.
14845         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b, xtensa_b4constu,
14846         xtensa_mask_immediate, xtensa_mem_offset): Update prototypes.
14847         (xtensa_b4const_or_zero, xtensa_const_ok_for_letter_p,
14848         xtensa_extra_constraint): New prototypes.
14849         (add_operand, arith_operand, nonimmed_operand, mem_operand,
14850         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
14851         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
14852         move_operand, const_float_1_operand, fpmem_offset_operand,
14853         branch_operator, ubranch_operator, boolean_operator): Delete prototypes.
14854         * config/xtensa/xtensa.c (b4const_or_zero): Rename to ...
14855         (xtensa_b4const_or_zero): ...this.  Change return type to bool and
14856         argument type to HOST_WIDE_INT.
14857         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b,
14858         xtensa_mask_immediate): Likewise.
14859         (xtensa_uimm8, xtensa_uimm8x2, xtensa_uimm8x4, xtensa_b4const):
14860         Likewise.  Also make these functions static.
14861         (xtensa_simm7, xtensa_ai4const, xtensa_lsi4x4): Delete.
14862         (xtensa_const_ok_for_letter_p): New.
14863         (add_operand, arith_operand, nonimmed_operand, mem_operand,
14864         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
14865         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
14866         move_operand, const_float_1_operand, fpmem_offset_operand,
14867         branch_operator, ubranch_operator, boolean_operator): Move to
14868         predicates.md.
14869         (smalloffset_mem_p): Inline code from xtensa_lsi4x4.
14870         (xtensa_mem_offset): Change return type to bool.
14871         (xtensa_extra_constraint): New.
14872         (gen_int_relational): Update type of const_range_p function pointer.
14873         Use xtensa_b4const_or_zero.
14874         * config/xtensa/xtensa.h (CONST_OK_FOR_LETTER_P): Define to
14875         xtensa_const_ok_for_letter_p.  Update comments.
14876         (EXTRA_CONSTRAINT): Define to xtensa_extra_constraint.
14877         (PREDICATE_CODES): Delete.
14878         * config/xtensa/xtensa.md: Include predicates.md.
14879         * config/xtensa/predicates.md: New file.
14880
14881 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
14882
14883         * config/v850/v850-protos.h: Remove the prototypes for
14884         reg_or_int9_operand, reg_or_const_operand,
14885         pattern_is_ok_for_prepare, pattern_is_ok_for_dispose,
14886         reg_or_0_operand, reg_or_int5_operand, call_address_operand,
14887         movsi_source_operand, power_of_two_operand,
14888         not_power_of_two_operand, special_symbolref_operand,
14889         pattern_is_ok_for_prologue, pattern_is_ok_for_epilogue, and
14890         register_is_ok_for_epilogue.
14891         * config/v850/v850.c (reg_or_0_operand, reg_or_int5_operand,
14892         reg_or_int9_operand, reg_or_const_operand,
14893         call_address_operand, special_symbolref_operand,
14894         movsi_source_operand, power_of_two_operand,
14895         not_power_of_two_operand, register_is_ok_for_epilogue,
14896         pattern_is_ok_for_epilogue, pattern_is_ok_for_prologue,
14897         pattern_is_ok_for_dispose, pattern_is_ok_for_prepare): Move to
14898         predicates.md.
14899         * config/v850/v850.h (PREDICATE_CODES): Remove.
14900         * config/v850/v850.md: Include predicates.md.
14901         * config/v850/predicates.md: New.
14902
14903 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
14904
14905         * Makefile.in (BASEVER, DEVPHASE, DATESTAMP)
14906         (BASEVER_c, DEVPHASE_c, DATESTAMP_c)
14907         (BASEVER_s, DEVPHASE_s, DATESTAMP_s, version): Set with :=.
14908         (itoolsdir, itoolsdatadir): Move definition above new first use.
14909         (install-itoolsdirs): New rule.
14910         (install-mkheaders): Depend on install-itoolsdirs, not
14911         install-include-dir.
14912
14913 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
14914
14915         * tree-into-ssa.c: Remove obsolete comments.
14916
14917 2005-03-21  Richard Guenther  <rguenth@gcc.gnu.org>
14918
14919         * tree-ssa-loop.c (gate_tree_complete_unroll): Run complete
14920         unrolling if -fpeel-loops is specified, too.
14921         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
14922         Remove superfluous check for flag_unroll_loops.
14923
14924 2005-03-21  Uros Bizjak  <uros@kss-loka.si>
14925
14926         * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
14927         (lrint_optab, llrint_optab): Define corresponding macros.
14928         * optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
14929         * genopinit.c (optabs): Implement lrint_optab using lrintsi2
14930         pattern and llrint_optab using llrintdi2 patterns.
14931         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
14932         using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
14933         (expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
14934         BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
14935         flag_unsafe_math_optimizations is set.
14936
14937 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
14938
14939         * combine.c (combine_simplify_rtx, simplify_if_then_else,
14940         simplify_logical, if_then_else_cond, known_cond,
14941         simplify_comparison): Adjust calls to reverse_comparison.
14942         Don't use combine_reversed_comparison_code).
14943         (combine_reversed_comparison_code): Remove.
14944         (reversed_comparison): Using reversed_comparison_code, move it...
14945         * jump.c (reversed_comparison): ... here.
14946         * rtl.h (reversed_comparison): Add prototype.
14947
14948 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
14949
14950         * builtins.c (fold_builtin): Take decomposed arguments of
14951         CALL_EXPR.
14952         * fold-const.c (fold_ternary): Update a call to fold_builtin.
14953         * gimplify.c (gimplify_call_expr): Likewise.
14954         * tree-ssa-ccp.c (ccp_fold, ccp_fold_builtin): Likewise.
14955         * tree.h: Update the prototype of fold_builtin.
14956
14957 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
14958
14959         * rtl.h (struct rtx_hooks): Add gen_lowpart_no_emit.
14960         * rtlhooks.c (gen_lowpart_no_emit_general): New.
14961         * rtlhooks-def.h (gen_lowpart_no_emit_general): Declare.
14962         (RTL_HOOKS_GEN_LOWPART_NO_EMIT): New.
14963         * simplify-rtx.c (simplify_binary_operation_1): Use it.
14964
14965 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
14966
14967         * builtins.c (fold_builtin_1): Take decomposed arguments of
14968         CALL_EXPR.
14969         (fold_builtin): Update a call to fold_builtin_1.
14970
14971 2005-03-21  Nathan Sidwell  <nathan@codesourcery.com>
14972
14973         PR other/20564
14974         * gcov.c (output_lines): Only output function block summary when
14975         outputting branch information.
14976         * doc/gcov.texi: Document format of preamble and additional block
14977         information lines.
14978
14979 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
14980
14981         * libgcc2.h (LIBGCC2_HAS_SF_MODE): New macro.
14982         (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_TF_MODE, LIBGCC2_HAS_XF_MODE): Make
14983         the defaults false if BITS_PER_UNIT != 8.
14984         (SFtype, SCtype, __fixsfdi, __floatdisf, __fixunssfSI, __fixunssfDI)
14985         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE rather
14986         than BITS_PER_UNIT != 8.
14987         (L_fixdfdi, L_fixsfdi, L_fixtfdi, L_fixunsdfdi, L_fixunsdfsi)
14988         (L_fixunssfdi, L_fixunssfsi, L_fixunstfdi, L_fixunsxfdi, L_fixunsxfsi)
14989         (L_fixxfdi, L_floatdidf, L_floatdisf, L_floatditf, L_floatdixf): Remove
14990         #undefs.
14991         * libgcc2.c (__fixunssfDI, __fixsfdi, __floatdisf, __fixunssfSI)
14992         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE.
14993
14994 2005-03-20  Roger Sayle  <roger@eyesopen.com>
14995
14996         PR middle-end/20539
14997         * fold-const.c (fold_binary): Fix type mismatch between
14998         TRUTH_{AND,OR,XOR}_EXPR nodes an their operands' types.
14999         (fold_binary) <TRUTH_XOR_EXPR>: Avoid calling invert_truthvalue
15000         for non-truth-valued expressions.
15001
15002         * c-common.c (c_common_truthvalue_conversion): Handle ERROR_MARK
15003         and FUNCTION_DECL in the main switch.
15004         <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
15005         TRUTH_XOR_EXPR>: When changing the result type of these tree nodes,
15006         we also need to convert their operands to match.
15007         <TRUTH_NOT_EXPR>: Likewise.
15008
15009 2005-03-21  Joseph S. Myers  <joseph@codesourcery.com>
15010
15011         * c-common.c (lvalue_or_else): Replace by lvalue_error; only give
15012         diagnostic without checking whether an lvalue.
15013         * c-common.h (lvalue_p): Remove.
15014         (enum lvalue_use): Update comment.
15015         (lvalue_or_else): Replace by lvalue_error.
15016         * c-typeck.c (lvalue_p): Make static.
15017         (lvalue_or_else): New.  Call lvalue_error.
15018
15019 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
15020
15021         * config/rs6000/rs6000.c (rs6000_parm_start): New function.
15022         (function_arg_advance): Use rs6000_parm_start.
15023         (function_arg, rs6000_arg_partial_bytes): Likewise.
15024
15025 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
15026
15027         * c-common.c (check_case_value): Adjust comment about stripping
15028         NOPs.
15029         (handle_vector_size_attribute): Don't strip NON_LVALUE_EXPR.
15030         * c-typeck.c (default_conversion, convert_arguments,
15031         build_modify_expr, convert_for_assignment, store_init_value,
15032         digest_init): Use STRIP_TYPE_NOPS instead of stripping nops
15033         manually.  Remove inaccurate comments.
15034
15035 2005-03-20  Roger Sayle  <roger@eyesopen.com>
15036             Joseph S. Myers  <joseph@codesourcery.com>
15037
15038         * varasm.c (do_assemble_alias): Restore comment describing function.
15039         Annotate the target parameter as potentially unused.
15040
15041 2005-03-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
15042
15043         PR target/18551
15044         * config/avr/avr.c (avr_output_function_prologue): Do not use
15045         current_function_name() in a label, use a local label instead.
15046
15047 2005-03-20  David Edelsohn  <edelsohn@gnu.org>
15048
15049         * config/rs6000/rs6000.c (rs6000_generate_compare): Test
15050         flag_finite_math_only, not flag_unsafe_math_optimizations.
15051
15052 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
15053
15054         * builtins.c (fold_builtin_1): Update a call to
15055         targetm.fold_builtin.
15056         * hooks.c (hook_tree_tree_bool_null): Rename to
15057         hook_tree_tree_tree_bool_null.  Take one more argument of type
15058         tree.
15059         * hooks.h: Update the prototype of hook_tree_tree_bool_null.
15060         * target-def.h (TARGET_FOLD_BUILTIN): Define it as
15061         hook_tree_tree_tree_bool_null.
15062         * target.h (gcc_target): Update the prototype of fold_builtin.
15063         * config/alpha/alpha.c (alpha_fold_builtin): Take decomposed
15064         arguments of CALL_EXPR.
15065         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update.  Mention the
15066         new prototype.
15067
15068 2005-03-20  Jan Hubicka  <jh@suse.cz>
15069
15070         * cgraph.h (cgraph_node): Add prev_clone pointer.
15071         * cgraph.c (cgraph_remove_node): Remove from doubly linked chain.
15072         (cgraph_clone_node): Produce doubly linked chain.
15073
15074 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
15075
15076         * c-common.c (handle_aligned_attribute, check_function_sentinel,
15077         get_nonnull_operand, handle_sentinel_attribute,
15078         check_function_arguments_recurse): Do not strip NOPS from
15079         INTEGER_CSTs.
15080         * c-decl.c (check_bitfield_type_and_width, build_enumerator):
15081         Likewise.
15082         * c-format.c (get_constant): Likewise.
15083         * c-parser.c (c_parser_postfix_expression): Likewise.
15084         * c-typeck.c (set_init_index): Likewise.
15085         (convert_arguments): Don't check for NOP_EXPR containing integer
15086         constant.
15087
15088 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
15089
15090         * builtins.c (fold_fixed_mathfn, fold_builtin_trunc,
15091         fold_builtin_floor, fold_builtin_ceil, fold_builtin_lround):
15092         Take decomposed arguments of CALL_EXPR.
15093         (fold_builtin_1): Update calls to the functions mentioned
15094         above.
15095
15096 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
15097
15098         * c-decl.c (check_bitfield_type_and_width): Require bit-field
15099         width to have integer type.
15100         (build_enumerator): Require enumerator value to have integer type.
15101
15102 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
15103
15104         * doc/extend.texi (__builtin_inf): Move statement about INFINITY
15105         to __builtin_inff.
15106
15107 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
15108
15109         * c.opt (ansi, std=iso9899:1990, std=iso9899:1999,
15110         std=iso9899:199x): Correct descriptions.
15111
15112 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
15113
15114         * config.gcc: Consistently use solaris2.1[0-9]* instead of
15115         solaris2.1[0-9].
15116
15117 2005-03-19  Kazu Hirata  <kazu@cs.umass.edu>
15118
15119         * builtins.c (fold_builtin_memcpy): Take decomposed arguments
15120         of CALL_EXPR.
15121         (expand_builtin_memcpy, fold_builtin_1): Update calls to
15122         fold_builtin_memcpy.
15123
15124         * builtins.c (fold_trunc_transparent_mathfn): Take decomposed
15125         arguments of CALL_EXPR.
15126         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil,
15127         fold_builtin_found, fold_builtin_1): Update calls to
15128         fold_trunc_transparent_mathfn.
15129
15130 2005-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15131
15132         PR middle-end/20493
15133         * fold-const.c (fold_widened_comparison): Don't optimize casts of
15134         function pointers on targets that require function pointer
15135         canonicalization.
15136         (fold_sign_changed_comparison): Likewise.
15137
15138 2005-03-19  Bernd Schmidt  <bernd.schmidt@analog.com>
15139
15140         * combine.c (try_combine): When changing the mode of a hard reg, make
15141         sure that doing so is valid.
15142
15143 2005-03-19  Richard Sandiford  <rsandifo@redhat.com>
15144
15145         * config/avr/avr.c (avr_init_stack, avr_mcu_name): Make static.
15146         (TARGET_HANDLE_OPTION): Override default.
15147         (avr_handle_option): New function.
15148         * config/avr/avr.h (MASK_ALL_DEBUG, MASK_ORDER_1, MASK_INSN_SIZE_DUMP)
15149         (MASK_ORDER_2, MASK_NO_TABLEJUMP, MASK_INT8, MASK_NO_INTERRUPTS)
15150         (MASK_CALL_PROLOGUES, MASK_TINY_STACK, MASK_SHORT_CALLS)
15151         (TARGET_ORDER_1, TARGET_ORDER_2, TARGET_INT8, TARGET_NO_INTERRUPTS)
15152         (TARGET_INSN_SIZE_DUMP, TARGET_CALL_PROLOGUES, TARGET_TINY_STACK)
15153         (TARGET_NO_TABLEJUMP, TARGET_SHORT_CALLS, TARGET_ALL_DEBUG)
15154         (TARGET_SWITCHES, avr_init_stack, avr_mcu_name)
15155         (TARGET_OPTIONS): Delete.
15156         * config/avr/avr.opt: New file.
15157
15158 2005-03-18  2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
15159
15160         * config/m32r/m32r-protos.h: Remove the prototypes for
15161         call_address_operand, symbolic_operand, seth_add3_operand,
15162         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
15163         reg_or_uint16_operand, reg_or_cmp_int16_operand,
15164         two_insn_const_operand, move_src_operand,
15165         move_double_src_operand, move_dest_operand,
15166         eqne_comparison_operator, signed_comparison_operator,
15167         large_insn_p, conditional_move_operand, carry_compare_operand,
15168         m32r_block_immediate_operand, extend_operand,
15169         reg_or_eq_int16_operand, int8_operand, and
15170         reg_or_zero_operand.
15171         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
15172         seth_add3_operand, int8_operand, cmp_int16_operand,
15173         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
15174         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
15175         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
15176         move_double_src_operand, move_dest_operand,
15177         eqne_comparison_operator, signed_comparison_operator,
15178         extend_operand, small_insn_p, large_insn_p,
15179         conditional_move_operand, carry_compare_operand,
15180         m32r_block_immediate_operand): Move to predicates.md.
15181         (MAX_MOVE_BYTES): Move to m32r.h.
15182         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
15183         * config/m32r/m32r.md: Include predicates.md.
15184         * config/m32r/predicates.md: New.
15185
15186 2005-03-18  James E Wilson  <wilson@specifixinc.com>
15187
15188         PR c++/19769
15189         * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
15190         origin.
15191
15192 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
15193
15194         * config/mn10300/mn10300-protos.h: Remove the prototypes for
15195         call_address_operand, const_8bit_operand.
15196         * config/mn10300/mn10300.c (call_address_operand,
15197         const_8bit_operand, const_1f_operand): Move to predicates.md.
15198         * config/mn10300/mn10300.h (PREDICATE_CODES): Remove.
15199         * config/mn10300/mn10300.md: Include predicates.md.
15200         * config/mn10300/predicates.md: New.
15201
15202 2005-03-18  Joseph S. Myers  <joseph@codesourcery.com>
15203
15204         * c-common.c, c-decl.c, c-format.c, c-typeck.c: Use %D for
15205         declarations in diagnostics and %E for identifiers, not %s.
15206
15207 2005-03-18  Jan Hubicka  <jh@suse.cz>
15208             Dale Johannesen  <dalej@apple.com>
15209
15210         * basic-block.h (scale_bbs_frequencies_int,
15211         scale_bbs_frequencies_gcov_type): Declare.
15212         * cfg.c (RDIV): New macro.
15213         (update_bb_frequency_for_threading): Fix.
15214         * basic-block.h (scale_bbs_frequencies_int,
15215         scale_bbs_frequencies_gcov_type): New.
15216         * cfgloopmanip.c (scale_bbs_frequencies): Kill.
15217         (scale_loop_frequencies, duplicate_loop_to_header_edge): Use
15218         scale_bbs_frequencies_int.
15219         * tree-ssa-loop-ch.c (copy_loop_headers): Fix profiling info.
15220
15221 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
15222
15223         * config/m32r/m32r-protos.h: Remove the prototypes for
15224         call_address_operand, symbolic_operand, seth_add3_operand,
15225         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
15226         reg_or_uint16_operand, reg_or_cmp_int16_operand,
15227         two_insn_const_operand, move_src_operand,
15228         move_double_src_operand, move_dest_operand,
15229         eqne_comparison_operator, signed_comparison_operator,
15230         large_insn_p, conditional_move_operand, carry_compare_operand,
15231         m32r_block_immediate_operand, extend_operand,
15232         reg_or_eq_int16_operand, int8_operand, and
15233         reg_or_zero_operand.
15234         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
15235         seth_add3_operand, int8_operand, cmp_int16_operand,
15236         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
15237         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
15238         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
15239         move_double_src_operand, move_dest_operand,
15240         eqne_comparison_operator, signed_comparison_operator,
15241         extend_operand, small_insn_p, large_insn_p,
15242         conditional_move_operand, carry_compare_operand,
15243         m32r_block_immediate_operand): Move to predicates.md.
15244         (MAX_MOVE_BYTES): Move to m32r.h.
15245         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
15246         * config/m32r/m32r.md: Include predicates.md.
15247         * config/m32r/predicates.md: New.
15248
15249         * config/pa/pa-protos.h: Add prototypes for magic_milli and
15250         shadd_constant_p.
15251         * config/pa/pa.c (reg_or_0_operand, call_operand_address,
15252         symbolic_operand, symbolic_memory_operand,
15253         reg_or_0_or_nonsymb_mem_operand, reg_before_reload_operand,
15254         indexed_memory_operand, move_dest_operand, move_src_operand,
15255         prefetch_cc_operand, prefetch_nocc_operand,
15256         reg_or_cint_move_operand, pic_label_operand, fp_reg_operand,
15257         arith_operand, arith11_operand, pre_cint_operand,
15258         post_cint_operan, arith_double_operand, ireg_or_int5_operand,
15259         ireg_operand, int5_operand, uint5_operand, int11_operand,
15260         uint32_operand, arith5_operand, and_operand, ior_operand,
15261         lhs_lshift_operand, lhs_lshift_cint_operand, arith32_operand,
15262         pc_or_label_operand, div_operand, plus_xor_ior_operator,
15263         shadd_operand, movb_comparison_operator,
15264         cmpib_comparison_operator): Move to predicates.md.
15265         (magic_milli, shadd_constant_p): Make it extern.
15266         * config/pa/pa.h (PREDICATE_CODES): Remove.
15267         * config/pa/pa.md: Include predicates.md.
15268         * config/pa/predicates.md: New.
15269
15270         * config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent
15271         predicate.
15272
15273 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
15274
15275         * hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c,
15276         config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
15277         config/alpha/freebsd.h, config/alpha/linux.h,
15278         config/alpha/netbsd.h, config/alpha/osf5.h,
15279         config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h,
15280         config/h8300/h8300-protos.h, config/h8300/h8300.c,
15281         config/h8300/h8300.h, config/ia64/unwind-ia64.c,
15282         doc/cppopts.texi: Update copyright.
15283
15284 2005-03-18  Jan Hubicka  <jh@suse.cz>
15285
15286         PR middle-end/20225
15287         * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called
15288         too late.
15289         * varasm.c (find_decl_and_mark_needed): Mark needed only when not
15290         called too late.
15291
15292 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
15293
15294         * tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
15295         VEC_safe_push.
15296
15297 2005-03-18  Paolo Bonzini  <bonzini@gnu.org>
15298
15299         * combine.c (gen_binary): Remove.
15300         (known_cond, simplify_shift_const, find_split_point,
15301         combine_simplify_rtx, simplify_if_then_else, simplify_set,
15302         simplify_logical, expand_field_assignment, extract_left_shift,
15303         force_to_mode, if_then_else_cond, apply_distributive_law,
15304         simplify_and_const_int, simplify_shift_const, gen_lowpart_for_combine,
15305         simplify_comparison, reversed_comparison): Replace with
15306         simplify_gen_binary, simplify_gen_relational or
15307         distribute_and_simplify_rtx.
15308         (distribute_and_simplify_rtx): New function.
15309
15310 2005-03-18  Alexey Neyman  <alex.neyman@auriga.ru>
15311             Paolo Bonzini  <gcc.gnu.org>
15312
15313         * calls.c (setjmp_call_p, special_function_p): Update comments
15314         at the head of the functions.
15315
15316 2005-03-18  Jan Hubicka  <jh@suse.cz>
15317
15318         * tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
15319
15320         * cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether
15321         function body should be released; do not proactively release function
15322         bodies in non-unit-at-a-time mode.
15323
15324 2005-03-18  Ralf Corsepius  <ralf.corsepius@rtems.org>
15325
15326         * config/i386/t-rtems-i386 (MULTILIBS): Remove k6, athlon,
15327         mno-fp-ret-in-387 multilib variants.
15328
15329 2005-03-18  Richard Sandiford  <rsandifo@redhat.com>
15330
15331         * common.opt (m): Remove.
15332         * opts.c (handle_option): Pass 'm' options to set_target_switch if
15333         table lookup fails.
15334         (common_handle_option): Remove OPT_m case.
15335
15336 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
15337
15338         * builtins.c (fold_builtin_bitop): Take decomposed arguments
15339         of CALL_EXPR.
15340         (fold_builtin_1): Update a call to fold_builtin_bitop.
15341
15342         * builtins.c (fold_builtin_signbit): Take decomposed arguments
15343         of CALL_EXPR.
15344         (fold_builtin_1): Update a call to fold_builtin_signbit.
15345
15346 2005-03-17  Dorit Naishlos  <dorit@il.ibm.com>
15347
15348         PR tree-optimization/20474
15349         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the
15350         size_type of the relevant pointer. Check for COMPLETE_TYPE_P.
15351
15352 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
15353
15354         * config/h8300/h8300-protos.h: Remove prototypes for
15355         general_operand_src, general_operand_dst, single_one_operand,
15356         single_zero_operand, call_insn_operand,
15357         two_insn_adds_subs_operand, small_call_insn_operand,
15358         jump_address_operand, bit_operand, bit_memory_operand,
15359         stack_pointer_operand, const_int_gt_2_operand,
15360         const_int_ge_8_operand, const_int_qi_operand,
15361         const_int_hi_operand, incdec_operand, bit_operator,
15362         nshift_operator, eqne_operator, gtle_operator,
15363         gtuleu_operator, iorxor_operator.
15364         Add prototypes for h8sx_shift_type h8sx_classify_shift and
15365         h8300_ldm_stm_parallel.
15366         * config/h8300/h8300.c (h8sx_shift_type,): Move to
15367         h8300-protos.h.
15368         (SYMBOL_FLAG_FUNCVEC_FUNCTION, SYMBOL_FLAG_EIGHTBIT_DATA,
15369         SYMBOL_FLAG_TINY_DATA): Move to h8300.h.
15370         (h8300_ldm_stm_parallel): Make it extern.
15371         (h8300_ldm_parallel, h8300_stm_parallel,
15372         h8300_return_parallel, general_operand_src,
15373         general_operand_dst, h8300_dst_operand, h8300_src_operand,
15374         nibble_operand, reg_or_nibble_operand, single_one_operand,
15375         single_zero_operand, call_insn_operand,
15376         two_insn_adds_subs_operand, small_call_insn_operand,
15377         jump_address_operand, bit_operand, bit_memory_operand,
15378         stack_pointer_operand, const_int_gt_2_operand,
15379         const_int_ge_8_operand, const_int_qi_operand,
15380         const_int_hi_operand, incdec_operand, eqne_operator,
15381         gtle_operator, gtuleu_operator, iorxor_operator, bit_operator,
15382         h8sx_binary_memory_operator, h8sx_unary_memory_operator,
15383         h8sx_unary_shift_operator, h8sx_binary_shift_operator,
15384         nshift_operator): Move to predicates.md.
15385         * config/h8300/h8300.h (PREDICATE_CODES): Remove.
15386         * config/h8300/h8300.md: Include predicates.md.
15387         * config/h8300/predicates.md: New.
15388
15389 2005-03-17  Richard Henderson  <rth@redhat.com>
15390
15391         * config.gcc (ia64*-*-hpux*): Add extra_options.
15392         * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove.
15393         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
15394         * config/ia64/ia64.c (ia64_fixed_range_string): Remove.
15395         (ia64_tls_size_string, ia64_tune_string): Remove.
15396         (ia64_tune): Init to PROCESSOR_ITANIUM2.
15397         (TARGET_DEFAULT_TARGET_FLAGS): New.
15398         (TARGET_HANDLE_OPTION): New.
15399         (ia64_override_options): Move options parsing ...
15400         (ia64_handle_option): ... here.  New.
15401         * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS,
15402         MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32,
15403         MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC,
15404         MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR,
15405         MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR,
15406         MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM,
15407         MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD,
15408         TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES,
15409         TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC,
15410         TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR,
15411         TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR,
15412         TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT,
15413         TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM,
15414         TARGET_EARLY_STOP_BITS): Remove.
15415         (TARGET_ILP32): Default false.
15416         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove.
15417         (enum ia64_inline_type): New.
15418         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
15419         * config/ia64/ia64.md: Update for new definitions of
15420         TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT.
15421         * config/ia64/ia64.opt: New file.
15422         * config/ia64/ilp32.opt: New file.
15423
15424 2005-03-17  H.J. Lu  <hongjiu.lu@intel.com>
15425
15426         PR target/18380
15427         * config/ia64/unwind-ia64.c (_Unwind_FindTableEntry): Removed.
15428
15429 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
15430
15431         * config/h8300/h8300.c (h8300_init_once): Use MASK_H8300S_1
15432         instead of MASK_H8300S.
15433         * config/h8300/h8300.h (target_flags, MASK_H8300S, MASK_MAC,
15434         MASK_INT32, MASK_ADDRESSES, MASK_QUICKCALL, MASK_SLOWBYTE,
15435         MASK_NORMAL_MODE, MASK_RELAX, MASK_H8300H, MASK_ALIGN_300,
15436         MASK_H8300SX, TARGET_INT32, TARGET_ADDRESSES,
15437         TARGET_QUICKCALL, TARGET_SLOWBYTE, TARGET_H8300H,
15438         TARGET_H8300XS, TARGET_NORMAL_MODE, TARGET_ALIGN_300,
15439         TARGET_SWITCHES): Remove.
15440         (TARGET_H8300S): Redefine interms of TARGET_H8300S_1 and
15441         TARGET_H8300SX.
15442         * config/h8300/h8300.opt: New.
15443
15444         * config/alpha/alpha.opt, config/arc/arc.opt,
15445         config/h8300/h8300.opt, config/mips/mips.opt: Add copyright
15446         notices.
15447
15448 2005-03-17  Ian Lance Taylor  <ian@airs.com>
15449
15450         * gmon.c: Remove.
15451
15452 2005-03-17  Richard Sandiford  <rsandifo@redhat.com>
15453
15454         * config/arc/arc.c (arc_cpu_string): Make static.  Default to "base"
15455         (arc_text_string, arc_data_string, arc_rodata_string): Make static.
15456         (TARGET_HANDLE_OPTION): Override default.
15457         (arc_handle_option): New function.
15458         (arc_init): Remove code to set arch_cpu_string.
15459         * config/arc/arc.h (target_flags, TARGET_MASK_MANGLE_CPU)
15460         (TARGET_MANGLE_CPU, TARGET_MASK_MANGLE_CPU_LIBGCC)
15461         (TARGET_MANGLE_CPU_LIBGCC, TARGET_MASK_ALIGN_LOOPS, TARGET_ALIGN_LOOPS)
15462         (TARGET_MASK_BIG_ENDIAN, TARGET_BIG_ENDIAN, TARGET_MASK_NO_COND_EXEC)
15463         (TARGET_NO_COND_EXEC, TARGET_SWITCHES, TARGET_DEFAULT)
15464         (SUBTARGET_SWITCHES, arc_cpu_string, arc_text_string, arc_data_string)
15465         (arc_rodata_string, TARGET_OPTIONS): Delete.
15466         * config/arc/arc.opt: New file.
15467
15468 2005-03-17  Richard Henderson  <rth@redhat.com>
15469
15470         * doc/extend.texi (Weak Pragmas): New section.
15471         (attribute alias): Clarify that target must be in the same
15472         translation unit.
15473
15474 2005-03-17  Richard Henderson  <rth@redhat.com>
15475
15476         * config/alpha/alpha.opt: New file.
15477         * config/alpha/alpha.c (alpha_tune): New.  Rename all existing uses
15478         of alpha_cpu.
15479         (alpha_cpu_string, alpha_tune_string, alpha_tp_string,
15480         alpha_fprm_string, alpha_fptm_string): Make static.
15481         (alpha_tls_size_string): Remove.
15482         (alpha_handle_option): New.
15483         (override_options): Update for alpha_cpu/alpha_tune split.
15484         (alpha_file_start): Likewise.
15485         (TARGET_DEFAULT_TARGET_FLAGS): New.
15486         (TARGET_HANDLE_OPTION): New.
15487         * config/alpha/alpha.h (alpha_tune): Declare.
15488         (MASK_FP, MASK_FPREGS, TARGET_FPREGS, MASK_GAS, TARGET_GAS,
15489         MASK_IEEE_CONFORMANT, TARGET_IEEE_CONFORMANT, MASK_IEEE, TARGET_IEEE,
15490         MASK_IEEE_WITH_INEXACT, TARGET_IEEE_WITH_INEXACT, MASK_BUILD_CONSTANTS,
15491         TARGET_BUILD_CONSTANTS, MASK_FLOAT_VAX, TARGET_FLOAT_VAX, MASK_BWX,
15492         TARGET_BWX, MASK_MAX, TARGET_MAX, MASK_FIX, TARGET_FIX, MASK_CIX,
15493         TARGET_CIX, MASK_EXPLICIT_RELOCS, TARGET_EXPLICIT_RELOCS,
15494         MASK_SMALL_DATA, TARGET_SMALL_DATA, MASK_TLS_KERNEL, TARGET_TLS_KERNEL,
15495         MASK_SMALL_TEXT, TARGET_SMALL_TEXT, MASK_LONG_DOUBLE_128,
15496         TARGET_LONG_DOUBLE_128, MASK_CPU_EV5, TARGET_CPU_EV5, MASK_CPU_EV6,
15497         TARGET_CPU_EV6, MASK_SUPPORT_ARCH): Remove.
15498         (TARGET_SWITCHES, TARGET_OPTIONS): Remove.
15499         (TARGET_DEFAULT): Remove MASK_FP.
15500         (TARGET_FP): Redefined based on TARGET_SOFT_FP.
15501         (TARGET_SUPPORT_ARCH): Default on if HAVE_AS_EXPLICIT_RELOCS.
15502         (alpha_cpu_string, alpha_tune_string, alpha_fprm_string,
15503         alpha_fptm_string, alpha_tp_string, alpha_mlat_string,
15504         alpha_tls_size_string): Remove.
15505         * config/alpha/alpha.md (prefetch): Use alpha_cpu.
15506         (attribute tune): Rename from attribute cpu.
15507         * config/alpha/ev4.md: Update to match.
15508         * config/alpha/ev5.md, config/alpha/ev6.md: Likewise.
15509         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove MASK_FP.
15510         * config/alpha/linux.h (TARGET_DEFAULT): Likewise.
15511         * config/alpha/netbsd.h (TARGET_DEFAULT): Likewise.
15512         * config/alpha/osf5.h (TARGET_DEFAULT): Likewise.
15513         * config/alpha/vms.h (TARGET_DEFAULT): Likewise.
15514
15515 2005-03-16  James E. Wilson  <wilson@specifixinc.com>
15516
15517         * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
15518         and return without creating new state if before_nops_num is nonzero.
15519         * config/ia64/ia64.md (first_insn): New attribute.
15520         (alloc): Set it to yes.
15521
15522 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
15523
15524         * tree-vectorizer.c (new_vec_stmt_info): Initialize
15525         STMT_VINFO_SUBVARS to NULL.
15526         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
15527
15528 2005-03-16 Dale Johannesen  <dalej@apple.com>
15529
15530         * rtlanal.c (find_first_parameter_load):  Rewrite to
15531         return actual first param load or the call if none,
15532         instead of first in block, when not all loads exist.
15533
15534 2005-03-16  Roger Sayle  <roger@eyesopen.com>
15535
15536         * optabs.c (expand_copysign_absneg): Make static.
15537         * optabs.h (expand_copysign_absneg): Delete prototype.
15538         * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
15539
15540 2005-03-16  Richard Henderson  <rth@redhat.com>
15541
15542         PR middle-end/15700
15543         * varasm.c (struct alias_pair): Rename from struct output_def_pair.
15544         (alias_pairs): Rename from output_defs.
15545         (find_decl_and_mark_needed): Split out from assemble_alias.
15546         (do_assemble_alias): New.
15547         (assemble_output_def): Remove.
15548         (finish_aliases_1, finish_aliases_2): New.
15549         (process_pending_assemble_output_defs): Remove.
15550         (assemble_alias): Defer aliases for which we don't yet have a
15551         non-external decl for the target symbol.
15552         * passes.c (rest_of_decl_compilation): Register variables with cgraph.
15553         * cgraphunit.c (cgraph_finalize_compilation_unit): Use finish_aliases_1.
15554         * toplev.c (compile_file): Use finish_aliases_2 instead of
15555         process_pending_assemble_output_defs.
15556         * tree.h (finish_aliases_1, finish_aliases_2): Declare.
15557         (process_pending_assemble_output_defs): Remove.
15558
15559 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
15560
15561         Fix PR tree-optimization/20489
15562
15563         * tree-ssa-alias.c (push_fields_onto_fieldstack): DTRT
15564         for empty structures.
15565
15566 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
15567
15568         Fix PR tree-optimization/20490
15569
15570         * tree-ssa-pre.c (create_expression_by_pieces): Use
15571         force_gimple_operand on result of fold.
15572
15573 2005-03-16  Andrew Pinski  <pinskia@physics.uc.edu>
15574
15575         * config/i386/emmintrin.h (_mm_extract_epi16): Correct the number
15576         of closing parenthesis.
15577
15578 2005-03-16  Kazu Hirata  <kazu@cs.umass.edu>
15579
15580         * builtins.c (expand_movstr): Update a call to
15581         fold_builtin_strcpy.
15582         (expand_builtin_strncpy): Update a call to
15583         fold_builtin_strncpy.
15584         (fold_builtin_strcpy, fold_builtin_strncpy): Take decomosed
15585         arguments of CALL_EXPR.
15586         (fold_builtin_1): Update calls to fold_builtin_strcpy and
15587         fold_builtin_strncpy.
15588         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
15589         * tree.h: Update the prototypes of fold_builtin_strcpy and
15590         fold_builtin_strncpy.
15591
15592 2005-03-16  Steven Bosscher  <stevenb@suse.de>
15593             Dorit Naishlos  <dorit@il.ibm.com>
15594
15595         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Copy
15596         UNITS_PER_SIMD_WORD to a local variable to avoid a "division by zero"
15597         error.
15598
15599 2005-03-16  Steven Bosscher  <stevenb@suse.de>
15600
15601         * tree-inline.c (walk_type_fields, walk_tree,
15602         walk_tree_without_duplicates): Move from here...
15603         * tree.c: ...to here.
15604
15605 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
15606
15607         * BASE-VER, DATESTAMP, DEV-PHASE: New files.
15608         * Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
15609         (BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
15610         (BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
15611         (version): Define using $(BASEVER_c).
15612         (Makefile, config.status, build/gcov-iov.o): No longer depends on
15613         version.c.
15614         (version.o): Depend on version files; add custom generation command.
15615         (prefix.o): Define BASEVER on command line.
15616         (s-iov): Depend on version files; adjust command.
15617         (TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
15618         Add gcc-vers.texi.
15619         (gcc-vers.texi): New rule.
15620         (doc/%.info, doc/%.dvi): Add -I . to command line.
15621         (doc/gccinstall.dvi): Likewise.
15622         (PACKAGE): Delete.  All uses replaced with "gcc".
15623         * aclocal.m4: Do not include gcc-version.m4.
15624         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
15625         Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
15626         Set is_release based on contents of DEV-PHASE.
15627         Set gcc_version based on contents of BASE-VER.
15628         Define WIN32_REGISTRY_KEY only if the user overrode the default.
15629         * config.in, configure: Regenerate.
15630         * gccbug.in: Determine version of GCC in use at runtime.
15631         * gcov-iov.c: Get version number and development phase from
15632         command line, not by including version.c.
15633         * intl.c: Replace all uses of PACKAGE with "gcc".
15634         * libada-mk.in: Delete unused "gcc_version" variable.
15635         * prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
15636         * version.c: (VERSUFFIX): New hook for redistributors; adjust
15637         commentary to match.
15638         (version_string): Put together from pieces.
15639         * config/alpha/x-vms: Do not use $(gcc_version).
15640         * config/i386/t-nwld: Likewise.
15641         * doc/include/gcc-common.texi: Include gcc-vers.texi for
15642         version-GCC and DEVELOPMENT.
15643
15644 2005-03-15  Roger Sayle  <roger@eyesopen.com>
15645
15646         PR tree-optimization/17454
15647         * tree.c (tree_size): Add case for TREE_BINFO.
15648         * fold-const.c (fold_checksum_tree): Only clear the overloaded
15649         field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set.
15650
15651 2005-03-15  Roger Sayle  <roger@eyesopen.com>
15652
15653         * optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
15654         op1 whilst expanding the signed widenening multiply variant.
15655
15656 2005-03-15  Richard Sandiford  <rsandifo@redhat.com>
15657
15658         * toplev.c (display_target_options): Avoid unused variable warning if
15659         TARGET_SWITCHES and TARGET_OPTIONS are both undefined.
15660         * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static.
15661         (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete.
15662         (mips_isa): Initialize to MIPS_ABI_DEFAULT.
15663         (mips_isa_info): New variable.
15664         (mips_parse_cpu): Remove the first argument and leave the caller
15665         to report errors.
15666         (TARGET_HANDLE_OPTION): Override default.
15667         (mips_handle_option): New function.  Move option validation code from...
15668         (override_options): ...here.  Update calls to mips_parse_cpu.
15669         * config/mips/mips.h (mips_arch_string, mips_tune_string)
15670         (mips_isa_string, mips_abi_string, TARGET_OPTIONS)
15671         (SUBTARGET_TARGET_OPTIONS): Delete.
15672         * config/mips/mips.opt (mabi=, march=, mflush-func=, mips)
15673         (mno-flush-func, mtune=): New options.
15674
15675 2005-03-15  Roger Sayle  <roger@eyesopen.com>
15676             Richard Henderson  <rth@redhat.com>
15677
15678         * real.c (c4x_single_format, c4x_extended_format): Provide values
15679         for signbit_ro for c4x's single and extended floating point formats.
15680         * optabs.c (expand_copysign): Use the floating point format's
15681         signbit_ro for expanding via expand_copysign_absneg, and it's
15682         signbit_rw field for expanding via expand_copysign_bit.
15683
15684 2005-03-15  Dorit Naishlos  <dorit@il.ibm.com>
15685
15686         * tree-vectorizer.h (unknown_alignment_for_access_p): Replaced by
15687         known_alignment_for_access_p.
15688         (known_alignment_for_access_p): New.
15689         (do_peeling_for_alignment): Field made int instead of bool and renamed
15690         to peeling_for_alignment.
15691         (LOOP_DO_PEELING_FOR_ALIGNMENT): Renamed to LOOP_PEELING_FOR_ALIGNMENT.
15692         * tree-vect-analyze.c (vect_determine_vectorization_factor): New. This
15693         functionality used to be in vect_analyze_operations.
15694         (vect_analyze_operations): Code to determine vectorization factor was
15695         moved to vect_determine_vectorization_factor.
15696         (vect_enhance_data_refs_alignment): Update to correct alignment when it
15697         is known instead of -1.  Set LOOP_PEELING_FOR_ALIGNMENT to peeling
15698         factor.
15699         (vect_analyze_loop): Call vect_determine_vectorization_factor (used to
15700         be part of vect_analyze_operations).
15701         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Use fold when
15702         creating the guard condition, as the number of iterations may be
15703         constant.
15704         (slpeel_tree_peel_loop_to_edge): Use new name of
15705         LOOP_DO_PEELING_FOR_ALIGNMENT. Set it to 0 instead of false.
15706         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Handle known
15707         alignment case more efficiently. Use LOOP_PEELING_FOR_ALIGNMENT.
15708         (vect_do_peeling_for_alignment): Use fold.
15709         (vect_transform_loop): Use new name of LOOP_DO_PEELING_FOR_ALIGNMENT.
15710
15711         (vect_update_inits_of_dr): Renamed to
15712         vect_update_init_of_dr.
15713         (vect_update_inits_of_drs): Use new name of vect_update_inits_of_dr.
15714         (vectorizable_store): Fix assertion to use == instead of =.
15715
15716 2005-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
15717
15718         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
15719         call_used_regs for wCG registers.
15720
15721 2005-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
15722
15723         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
15724         for non-offsettable memory references to cope with outstanding reload
15725         replacements, take 2.
15726
15727 2005-03-15  Uros Bizjak  <uros@kss-loka.si>
15728
15729         PR target/18668
15730         * config/i386/i386.h (x86_fisttp): New.
15731         (TARGET_FISTTP): New macro.
15732         * config/i386/i386.c (x86_fisttp): Set for NOCONA.
15733         (output_fix_trunc): Add fisttp parameter.  Generate fisttp x87
15734         instruction when fisttp flag is set.
15735         * config/i386/i386-protos.h (output_fix_trunc): Change declaration.
15736
15737         * config/i386/i386.md (type attribute): Add fisttp.
15738         (unit attribute): Set to i387 for fisttp type.
15739         (X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
15740         (fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
15741         TARGET_FISTTP.
15742         (fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
15743         Generate fisttp patterns for TARGET_FISTTP. Implement using mode
15744         macros.
15745         (fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
15746         patterns for TARGET_FISTTP.  Enable patterns for
15747         (TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
15748         (fix_trunc<mode>_i387_fisttp_1, fix_trunc<mode>_i387_fisttp,
15749         fix_trunc<mode>_i387_fisttp_with_temp): New instruction patterns to
15750         implement fisttp x87 insn.
15751         (fix_trunc*_i387_fisttp splitters): New patterns.
15752         (*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
15753         Rename to *fix_trunc<mode>_i387_1.  Implement using mode macros.
15754         Disable patterns for TARGET_FISTTP.  Add comment about FLAGS_REG
15755         clobber.
15756         (fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
15757         Rename to fix_trunc<mode>_i387 and fix_trunc<mode>_i387_with_temp.
15758         Implement using mode macros. Disable patterns for TARGET_FISTTP.
15759         (fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
15760         fix_trunchi_nomemory): Rename to fix_trunc<mode>_i387 and
15761         fix_trunc<mode>_i387_with_temp. Implement using mode macros.
15762         Disable patterns for TARGET_FISTTP.
15763         (fix_trunc*_i387 splitters): Implement usign mode macros.
15764         (fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
15765         fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
15766         (fix_trunx*_sse peephole2s): Implement using mode macros.
15767
15768 2005-03-15  J"orn Rennecke <joern.rennecke@st.com>
15769
15770         PR rtl-optimization/20291
15771         * combine.c (try_combine): If splitting fails, re-try with
15772         original combined pattern, i.e. before clobber stripping.
15773
15774 2005-03-14  Eric Christopher  <echristo@redhat.com>
15775
15776         * config/mips/mips.h (DWARF_CIE_DATA_ALIGNMENT): Change for
15777         STACK_GROWS_DOWNWARD.
15778
15779 2005-03-14  Roger Sayle  <roger@eyesopen.com>
15780
15781         * real.h (struct real_format): Split the signbit field into two
15782         two fields, signbit_ro and signbit_rw.
15783         * real.c (ieee_single_format, mips_single_format, ieee_double_format,
15784         mips_double_format, ieee_extended_motorola_format,
15785         ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format,
15786         ieee_extended_intel_128_format, ibm_extended_format,
15787         mips_extended_format, ieee_quad_format, mips_quad_format,
15788         vax_f_format, vax_d_format, vax_g_format, i370_single_format,
15789         i370_double_format, c4x_single_format, c4x_extended_format,
15790         real_internal_format): Update initializers for new field.
15791         * builtins.c (expand_builtin_signbit): Use signbit_ro field of the
15792         real_format structure.
15793         * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw
15794         field of the real_format structure.
15795
15796 2005-03-14  Daniel Berlin <dberlin@dberlin.org>
15797
15798         Fix PR tree-optimization/20458
15799
15800         * tree-flow-inline.h (mark_call_clobbered): Don't fiddle
15801         DECL_EXTERNAL on STRUCT_FIELD tags.
15802         (clear_call_clobbered): Ditto.
15803         * tree-ssa-operands.c (note_addressable): Make sure the original
15804         variable doesn't slip into the addressable list if we have
15805         subvars.
15806         * tree-tailcall.c (suitable_for_tail_opt_p): Look at STRUCT_FIELD
15807         tags too.
15808
15809 2005-03-14  Geoffrey Keating  <geoffk@apple.com>
15810
15811         * doc/cppopts.texi (-fexec-charset): Add concept index entry.
15812         (-fwide-exec-charset): Likewise.
15813         (-finput-charset): Likewise.
15814         * doc/invoke.texi (Warning Options): Document -Wnormalized=.
15815         * c-opts.c (c_common_handle_option): Handle -Wnormalized=.
15816         * c.opt (Wnormalized): New.
15817
15818 2005-03-14  Devang Patel  <dpatel@apple.com>
15819
15820         * doc/invoke.texi: Add reference to Visibility document.
15821
15822 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
15823
15824         * config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to
15825         MASK_SPLIT_ADDRESSES.
15826         * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete.
15827         (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD)
15828         (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT)
15829         (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS)
15830         (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN)
15831         (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16)
15832         (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY)
15833         (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400)
15834         (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN)
15835         (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE)
15836         (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D)
15837         (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64)
15838         (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE)
15839         (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS)
15840         (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT)
15841         (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA)
15842         (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN)
15843         (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD)
15844         (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV)
15845         (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1)
15846         (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120)
15847         (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS)
15848         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32)
15849         (TARGET_EXPLICIT_RELOCS): Delete.
15850         (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete.
15851         (TARGET_OPTIONS): Remove entry for -mfix-vr4130.
15852         * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
15853         (override_options): Set MASK_LONG64 if -mint64 is given and no
15854         -mlongXX option is.  Complain about -mint64 -mlong32.
15855         (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename
15856         MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT.
15857         * config/mips/mips.opt: New file.
15858
15859 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
15860
15861         * config.gcc (extra_options): New variable for listing option files.
15862         Add ${cpu_type}/${cpu_type}.opt to it if that file exists.
15863         * configure.ac (extra_opt_files): New AC_SUBST variable.
15864         (tm_file_list, tm_include_list): Include options.h first.
15865         * configure: Regenerate.
15866         * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables.
15867         (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files)
15868         (s-options-h): New rule.
15869         (options.h): Depend on it.
15870         (TEXI_GCCINT_FILES): Add options.texi.
15871         * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare.
15872         * hooks.c (hook_bool_size_t_constcharptr_int_true): New function.
15873         * target.h (gcc_target): Add default_target_flags and handle_option.
15874         * target-def.h (TARGET_DEFAULT_TARGET_FLAGS)
15875         (TARGET_HANDLE_OPTION): New macros.
15876         (TARGET_INITIALIZER): Include them.
15877         * opt-functions.awk (opt_args, nth_arg): New functions.
15878         (switch_flags): Handle the "Target" flag.
15879         (var_args): Delete.
15880         (var_name): Use opt_args and nth_arg.
15881         (var_set, var_ref): Likewise.  Handle "Mask" and "InverseMask".
15882         * opth-gen.awk: Declare target_flags.  Declare MASK_* and TARGET_*
15883         macros for the "Mask" and "InverseMask" options.
15884         * opts.h (cl_var_cond): New enum.
15885         (cl_option): Replace the "has_set_value" and "set_value" fields with
15886         "var_cond" and "var_value".
15887         (CL_TARGET): New macro.
15888         (option_enabled, print_filtered_help): Declare.
15889         (decode_options): Move definition.
15890         * opts.c (handle_option): Search for the original option before
15891         removing any "no-" prefix.  Handle CL_TARGET.  Adjust for the new
15892         var_cond and var_value fields.  Use targetm.handle_option to handle
15893         target options.
15894         (decode_options): Set target_flags to targetm.default_target_flags.
15895         (print_filtered_help): Make global.  Handle CL_TARGET.
15896         (option_enabled): New function.
15897         * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES.
15898         (display_target_options, set_target_switch, print_switch_values)
15899         (default_pch_valid_p): Guard uses of target_switches with
15900         #ifdef TARGET_SWITCHES.  Also...
15901         (display_target_options): Display the CL_TARGET entries in cl_options.
15902         (set_target_option): Don't complain about the "" option when
15903         TARGET_SWITCHES is undefined.
15904         (print_switch_values): Use option_enabled.
15905         (default_pch_valid_p): Check cl_options[] when looking for something
15906         that has changed the value of target_flags.
15907         * c.opt: Remove documentation from top of file.
15908         * doc/gccint.texi: Add an "Options" chapter.  Include options.texi.
15909         * doc/sourecebuild.texi: Refer to the new options documentation
15910         instead of c.opt.  Document machine-specific .opt files.
15911         * doc/tm.texi (target_flags): Say that this variable is declared
15912         by options.h.
15913         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document.
15914         (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as
15915         an alternative.
15916         * doc/options.texi: New file.
15917
15918 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
15919
15920         PR middle-end/18628
15921         * cse.c (fold_rtx_mem): Don't fold a load from a jumptable into a
15922         register.
15923
15924 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
15925
15926         PR c++/20280
15927         * gimplify.c (gimplify_cond_expr): Add fallback argument.  Use a
15928         temporary variable of pointer type if an lvalues is required.
15929         (gimplify_modify_expr_rhs): Request an rvalue from it.
15930         (gimplify_expr): Pass fallback on.
15931
15932 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
15933
15934         * cfgbuild.c: Update comments.
15935
15936 2005-03-14  Roger Sayle  <roger@eyesopen.com>
15937
15938         PR rtl-optimization/17236
15939         * optabs.c (expand_doubleword_mult): New helper function split out
15940         from expand_binop.  Permute the order in which instructions are
15941         emitted to minimize the number of simultaneously live registers.
15942         (expand_binop): Call expand_doubleword_mult to synthesize a double
15943         word multiplication.
15944
15945 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
15946
15947         * basic-block.h: Update the prototypes of cached_make_edge and
15948         rtl_make_eh_edge.
15949         * cfg.c (cached_make_edge): Take edge_cache representing one
15950         row of the adjacency matrix of edges.
15951         * cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
15952         (make_edges): Initialize edge_cache to represent one row of
15953         the adjacency matrix of edges.
15954
15955 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
15956
15957         * tree-ssa-phiopt.c (minmax_replacement, blocks_in_phiopt_order):
15958         New functions.
15959         (tree_ssa_phiopt): Use blocks_in_phiopt_order and minmax_replacement.
15960         Remove unused removed_phis variable.
15961         (conditional_replacement): Use build1/build2.
15962         (abs_replacement): Use last_and_only_stmt and build1/build2.
15963
15964 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
15965
15966         * builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
15967         ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
15968         * builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
15969         (BUILT_IN_PREFETCH): Set the NOVOPS attribute.
15970         * c-common.c (handle_novops_attribute): New function.
15971         (c_common_attribute_table): Add "no vops" entry.
15972         * c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
15973         * calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
15974         * tree-ssa-operands.c (get_call_expr_operands): Do not
15975         create virtual operands for calls with ECF_NOVOPS flag.
15976         * tree.h (DECL_IS_NOVOPS): New macro.
15977         (struct tree_decl): Add novops_flag.
15978         (ECF_NOVOPS): New constant.
15979
15980 2005-03-14  Uros Bizjak  <uros@kss-loka.si>
15981
15982         PR target/17688
15983         * config/i386/i386.c (x86_use_himode_fiop): New.
15984         (x86_use_simode_fiop): Rename from x86_use_fiop.
15985         * config/i386/i386.h (x86_use_himode_fiop): Declare.
15986         (TARGET_USE_HIMODE_FIOP): New.
15987         (x86_use_simode_fiop): Rename from x86_use_fiop.
15988         (TARGET_USE_SIMODE_FIOP): Rename from TARGET_USE_FIOP.
15989
15990         * config/i386/i386.md (X87MODEI12): New mode macro define.
15991         (*cmpfp_<mode>): Rename from *cmpfp_si.  Use X87MODEI12 mode macro
15992         to implement x87 FP compare with HImode input operands.
15993         (*fp_jcc_8<mode>_387, splitter): Rename from *fp_jcc_8_387.
15994         Use X87MODEI12 mode macro to handle HImode input operands.
15995         (*fop_sf_2<mode>_i387, *fop_sf_3<mode>_i387, *fop_df_2<mode>_i387,
15996         *fop_df_3<mode>_i387, *fop_xf_2<mode>_i387, *fop_xf_3<mode>_i387):
15997         Renamed from *fop_sf_2_i387, *fop_sf_3_i387, *fop_df_2_i387,
15998         *fop_df_3_i387, *fop_xf_2_i387, *fop_xf_3_i387. Use X87MODEI12 mode
15999         macro to implement x87 operators with HImode input operands.
16000         (fop splitters): Use X87MODEI12 mode macro to handle HImode
16001         input operands.
16002
16003 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
16004
16005         * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
16006         integer_zerop.
16007         * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
16008         constants invariant.
16009
16010 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
16011
16012         * basic-block.h (BB_VISITED): Removed.
16013         * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag.
16014
16015 2005-03-14  Falk Hueffner  <falk@debian.org>
16016
16017         PR bootstrap/20424
16018         * config/alpha/alpha.c (alpha_fold_builtin_cmpbge): Fix typo.
16019
16020 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
16021
16022         * ggc-zone.c: Fix comment typos.
16023
16024         * alloc-pool.c, except.h, ggc-common.c, ggc-zone.c, ggc.h,
16025         stringpool.c, config/mips/mips-protos.h: Update copyright.
16026
16027 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
16028
16029         * config/rs6000/rs6000-protos.h: Replace "struct rtx_def *"
16030         throughout with its typedef, "rtx".
16031         * config/rs6000/rs6000.c: Likewise.  Formatting fixes.
16032         (rs6000_tls_symbol_ref_1): Remove inline keyword.
16033         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Formatting.  Reorder
16034         regs in comment to match code.
16035
16036 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
16037
16038         * except.c (check_handled): Make it static.
16039         * except.h: Remove the corresponding prototype.
16040
16041         * function.c (get_func_frame_size): Make it static.
16042         * function.h: Remove the corresponding type.
16043
16044         * regclass.c (reg_class_superclasses, reg_class_subclasses):
16045         Make them static.
16046         * hard-reg-set.h: Remove the corresponding declarations.
16047
16048         * tree-cfg.c (verify_stmts): Check that
16049         bb_for_stmt (stmt) == bb for every PHI node and statement.
16050
16051 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
16052
16053         * config.gcc: Remove excess indentation.
16054         (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548.
16055
16056 2005-03-13  Roger Sayle  <roger@eyesopen.com>
16057
16058         PR middle-end/19331
16059         * tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
16060         * fold-const.c (fold_sign_changed_comparison): Likewise.
16061         (fold_binary): Optimize comparisons against widened operands if
16062         the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.
16063
16064 2005-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
16065
16066         * config/sparc/sparc.c (struct_value_alias_set): New global variable.
16067         (sparc_override_options): Initialize it.
16068         (sparc_struct_value_rtx): Set it on the MEM to be returned.
16069
16070 2005-03-13  David Edelsohn  <edelsohn@gnu.org>
16071
16072         * config/rs6000/predicates.md (mem_or_easy_const_operand): Delete.
16073         (reg_or_none500mem_operand): New predicate.
16074         (zero_reg_mem_operand): New predicate.
16075         * config/rs6000/rs6000.md (extendsfdf2): Change operand1 predicate
16076         to reg_or_none500mem_operand.
16077         (extendsfdf2_fpr): Add MEM alternative.
16078         (extenddftf2_internal): Change operand2 predicate to
16079         zero_reg_mem_operand.
16080
16081 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
16082
16083         * ggc-zone.c: Rewritten.
16084
16085         * alloc-pool.c (dump_alloc_pool_statistics): Don't print statistics
16086         if there are none.
16087         * configure.ac: Define GGC_ZONE for --with-gc=zone.
16088         * config.in: Regenerated.
16089         * configure: Regenerated.
16090         * gengtype.c (write_types_process_field, write_func_for_structure):
16091         Pass new argument to gt_pch_note_object.
16092         * ggc-common.c (struct ptr_data): Add TYPE.
16093         (gt_pch_note_object): Take TYPE argument and save it.
16094         (call_count): Update call to ggc_pch_count_object.
16095         (call_alloc): Update call to ggc_pch_alloc_object.
16096         (gt_pch_save): Call ggc_pch_prepare_write after paddng the PCH
16097         file.
16098         * ggc-none.c (rtl_zone, garbage_zone, ggc_alloc_zone_stat): Delete.
16099         * ggc-page.c (rtl_zone, tree_zone, garbage_zone)
16100         (ggc_alloc_zone_stat): Delete.
16101         (ggc_pch_count_object, ggc_pch_alloc_object): Add TYPE argument.
16102         * ggc.h (gt_pch_note_object, ggc_pch_count_object)
16103         (ggc_pch_alloc_object): Update prototypes.
16104         (garbage_zone): Delete.
16105         (tree_zone, rtl_zone, ggc_alloc_zone_stat, ggc_alloc_zone): Move to
16106         GGC_ZONE conditional.  Update.  Change tree_zone and rtl_zone into
16107         pointers.
16108         (tree_id_zone): New variable.
16109         (ggc_alloc_cleared_zone): Remove unused.
16110         (ggc_alloc_zone): Define.
16111         (ggc_alloc_rtvec, ggc_alloc_tree): Update to use ggc_alloc_zone.
16112         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Use
16113         ggc_alloc_zone_stat.
16114         * stringpool.c (gt_pch_n_S): Update call to gt_pch_note_object.
16115         * tree.c (copy_node_stat, make_tree_binfo_stat, make_tree_vec_stat)
16116         (tree_cons_stat, build1_stat): Update call to ggc_alloc_zone_stat.
16117         (make_node_stat): Likewise.  Use tree_id_zone.
16118
16119 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
16120             Joseph S. Myers  <joseph@codesourcery.com>
16121
16122         * configure.ac: Check for MIPS TLS.
16123         * configure: Regenerated.
16124         * config/mips/mips-protos.h (enum mips_symbol_type): Add
16125         SYMBOL_TLS, SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL,
16126         SYMBOL_GOTTPREL, and SYMBOL_TPREL.
16127         * config/mips/mips.c (mips_regno_to_class): Handle V1_REG.
16128         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
16129         (mips_classify_symbol, mips_symbolic_constant_p)
16130         (mips_symbolic_address_p, mips_symbol_insns): Handle TLS symbols.
16131         (mips_tls_operand_p, mips_call_tls_get_addr)
16132         (mips_legitimize_tls_address, mips_cannot_force_const_mem)
16133         (mips_tls_symbol_ref_1): New functions.
16134         (mips_legitimize_address, mips_legitimize_const_move): Call
16135         mips_legitimize_tls_address.
16136         (override_options): Handle V1_REG and TLS symbols.  Disable TLS
16137         for MIPS16.
16138         * config/mips/mips.h (enum reg_class, REG_CLASS_NAMES)
16139         (REG_CLASS_CONTENTS, GR_REG_CLASS_P): Include V1_REG.
16140         (mips_char_to_class): Document V1_REG.
16141         (HAVE_AS_TLS): Provide default.
16142         * config/mips/mips.md (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): New
16143         constants.
16144         (load_got<mode>): Renamed from *load_got<mode>.  Allow when
16145         !TARGET_ABICALLS.
16146         (tls_get_tp_<mode>): New instruction.
16147
16148 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
16149
16150         * configure.ac: Update checks for target tools.
16151         * configure: Regenerated.
16152
16153 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
16154
16155         * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
16156
16157 2005-03-13  Roger Sayle  <roger@eyesopen.com>
16158
16159         * expmed.c (expand_mult): Use synthetic multiplication sequences for
16160         more classes of DImode multiplication by constant.  Allow both
16161         multiplication by small negative constants (by performing a
16162         multiplication by a positive constant and negating the result) and
16163         multiplications by large powers of two, by using a left shift.
16164
16165 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
16166
16167         * tree-into-ssa.c (find_idf): Speed up by putting the indexes
16168         of basic blocks into work_stack.
16169
16170         * builtin-attrs.def, c-lex.c, c-pragma.h, reg-stack.c,
16171         config/mips/vr.h: Update copyright.
16172
16173         * c-decl.c (c_init_decl_processing): Remove useless calls to
16174         build_function_type.
16175
16176         * builtins.c (fold_trunc_transparent_mathfn,
16177         fold_fixed_mathfn, fold_builtin_atan, fold_builtin_trunc,
16178         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
16179         fold_builtin_lround, fold_builtin_bitop, fold_builtin_memcpy,
16180         fold_builtin_strcpy, fold_builtin_strncpy,
16181         fold_builtin_signbit): Use TYPE (TYPE (fndecl)) instead of
16182         TREE_TYPE (exp).
16183
16184         * builtins.c (expand_builtin_mathfn_3): Remove local variable
16185         before_call.
16186
16187         * lambda-code.c (lambda_compute_auxillary_space): Remove local
16188         variable determinant.
16189
16190         * tree-cfg.c (group_case_labels): Remove local variable type.
16191
16192         * tree-ssa-live.c (build_tree_conflict_graph): Remove local
16193         variable ann.
16194
16195         * tree-ssa-phiopt.c (value_replacement): Remove local variable
16196         result.
16197
16198 2005-03-13  Andy Hutchinson  <HutchinsonAndy@netscape.net>
16199
16200         PR target/18251
16201         * config/avr/avr.md (movmemhi): Rewrite as RTL loop.
16202         (*movmemqi_insn): Delete.
16203         (*movmemhi): Delete.
16204
16205 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
16206
16207         * builtins.c (fold_builtin_classify): Take decomposed
16208         arguments of CALL_EXPR.
16209         (fold_builtin_1): Update a call to fold_builtin_classify.
16210
16211 2005-03-13  Joseph S. Myers  <joseph@codesourcery.com>
16212
16213         PR c/20402
16214         * c-parser.c (c_parser_struct_or_union_specifier): Don't fall
16215         through into call to parser_xref_tag after parse error.
16216         (c_parser_struct_declaration): Consistently return NULL_TREE on
16217         error.
16218
16219 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
16220
16221         * tree-flow-inline.h (ref_contains_array_ref): New function.
16222         (lookup_subvars_for_var): Ditto.
16223         (get_subvars_for_var): Ditto.
16224         (var_can_have_subvars): Ditto.
16225
16226         * tree-flow.h (mem_tag_kind): Add STRUCT_FIELD.
16227         (struct subvar): New type.
16228
16229         * tree-dfa.c (okay_component_ref_for_subvars): New function.
16230
16231         * tree-optimize.c (init_tree_optimization_passes): Call
16232         pass_create_structure_vars.
16233
16234         * tree-ssa-alias.c: Include vec.h.
16235         (init_alias_info): Don't auto-clear call clobbered on struct-field
16236         tags.
16237         (compute_flow_insensitive_aliasing): Handle subvars.
16238         (group_aliases): Handle STRUCT_FIELD aliases.
16239         (setup_pointers_and_addressables): Ditto.
16240         Don't mark variables non-addressable if they still have
16241         addressable subvars.
16242         Also mark subvars addressable when the real variable is marked
16243         addressable.
16244         (add_pointed_to_var): Try to prune the pointed-to set by only
16245         pointing to subvars when possible.
16246         Otherwise, make sure we set addresses_needed and pt_vars to
16247         properly include subvars.
16248         (bitpos_of_field): New function.
16249         (push_fields_onto_fieldstack): Ditto.
16250         (get_or_create_used_part_for): Ditto.
16251         (create_overlap_variables_for): Ditto.
16252         (find_used_portions): Ditto.
16253         (create_structure_vars): Ditto.
16254         (pass_create_structure_vars): New structure.
16255
16256         * tree-ssa-operands.c (finalize_ssa_v_must_defs): Remove assert.
16257         (get_expr_operands): Handle subvars.  Also try to turn
16258         COMPONENT_REF accesses into must-defs now that we can accurately
16259         portray it.
16260         (note_addressable): Try to only mark as addressable those subvars
16261         we know a COMPONENT_REF touches.
16262         (overlap_subvar): New function.
16263
16264         * tree-vect-analyze.c (vect_object_analysis): Add new parameter.
16265         Handle subvar storing.
16266         (vect_address_analysis): Update caller of vect_object_analysis.
16267
16268         * tree-vect-transform.c (vect_create_data_ref_ptr): Copy subvars.
16269
16270         * tree-vectorizer.h (struct _stmt_vec_info): Add subvars member.
16271         (STMT_VINFO_SUBVARS): New macro.
16272
16273         * common.opts: add flag_tree_salias.
16274
16275         * opts.c (decode_options): flag_tree_salias defaults to on.
16276
16277         * doc/invoke.texi: Document fdump-tree-svars and -ftree-salias.
16278
16279         * doc/tree-ssa.texi: Document structural alias analysis.
16280
16281 2005-03-12  Steven Bosscher  <stevenb@suse.de>
16282
16283         * tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
16284         * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it.
16285         * tree-ssa-operands.c (get_expr_operands): Likewise.
16286         (get_expr_operands): Likewise for ERROR_MARK.
16287
16288 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
16289
16290         * tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
16291         var.
16292
16293         * tree-ssa-phiopt.c (tree_ssa_phiopt): Remove local variable
16294         removed_phis.
16295
16296         * tree-ssa-pre.c (compute_avail): Remove local variable val.
16297         (mark_operand_necessary): Remove local variable ver.
16298
16299         * tree-vect-transform.c (vect_get_new_vect_var): Remove local
16300         variable prefix_len.
16301
16302         * value-prof.c (mod_subtract_transform): Remove local variable
16303         value.
16304
16305         * builtins.c (fold_builtin_exponent): Take decomposed
16306         arguments of CALL_EXPR.
16307         (fold_builtin_1): Update a call to fold_builtin_exponent.
16308
16309         * builtins.c (fold_builtin_logarithm): Take decomposed
16310         arguments of CALL_EXPR.
16311         (fold_builtin_1): Update a call to fold_builtin_logarithm.
16312
16313         * c-decl.c (c_init_decl_processing): Remove local variables
16314         ptr_ftype_void and ptr_ftype_ptr.
16315
16316         * gimplify.c (gimplify_expr): Remove local variables r0 and
16317         r1.
16318
16319         * reg-stack.c (move_for_stack_reg): Remove local variable
16320         push_insn.
16321         (compare_for_stack_reg): Remove local variable flags_user.
16322         (convert_regs_1): Remove local variable deleted.
16323
16324         * tree-if-conv.c (tree_if_convert_cond_expr): Remove local
16325         variable new_cond.
16326         (combine_blocks): Remove local variables exits and new_e.
16327
16328         * tree-inline.c (expand_call_inline): Remove local variable
16329         decl.
16330
16331         * tree-ssa-live.c (create_ssa_var_map,
16332         calculate_live_on_entry): Remove local variable snn.
16333
16334 2005-03-12  Geoffrey Keating  <geoffk@apple.com>
16335
16336         * c-lex.c (c_lex_with_flags): Add parameter to call to
16337         cpp_spell_token.
16338
16339 2005-03-11  Per Bothner  <per@bothner.com>
16340
16341         * c-tree.h (struct c_declarator): New id_loc field.
16342         * c-pragma.h (c_lex_with_flags): Take position reference.
16343         * c-lex.c (c_lex_with_flags): Set passed-in location from cpp token,
16344         iff USE_MAPPED_LOCATION. (Type doesn't match otherwise.)
16345         (c_lex): Pass dummy location to c_lex_with_flags.
16346         * c-parser.c (c_lex_one_token): Set c_token's location using
16347         c_lex_with_flags, instead of input_location, which might be "ahead".
16348         (c_parser_direct_declarator): Set declarator's id_loc from
16349         c_token's id_loc.
16350         * c-decl.c (grokdeclarator): Set DECL_SOURCE_LOCATION from
16351         declarator's id_loc, rather than probably-imprecise input_location.
16352         (build_id_declarator): Initialize c_declarator's id_loc field.
16353
16354 2005-03-11  Roger Sayle  <roger@eyesopen.com>
16355
16356         PR middle-end/20419
16357         * builtins.c (expand_builtin_signbit): Force the signbit's word
16358         into an integer register to avoid SUBREGs of floating point modes.
16359
16360 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
16361
16362         * cfglayout.c, loop-doloop.c, profile.c, target-def.h,
16363         target.h, targhooks.c, tracer.c, tree-ssa-loop-ch.c,
16364         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, vec.c, vmsdbgout.c,
16365         config/m32r/m32r.md, config/xtensa/xtensa.h: Update copyright.
16366
16367 2005-03-11  David Edelsohn  <edelsohn@gnu.org>
16368
16369         PR rtl-optimization/20306
16370         * expr.c (emit_move_complex): Set try_int false if mode is
16371         MODE_COMPLEX_FLOAT and mov_optab exists for inner mode.  Only try
16372         emit_block_move if try_int is true.
16373
16374 2005-03-11  Richard Henderson  <rth@redhat.com>
16375
16376         PR target/20415
16377         * config/i386/mmx.md (vec_dupv4hi): Fix predicate.
16378         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Update
16379         to match.
16380
16381 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
16382
16383         * config/mips/mips.h (mips_fix_vr4130_string): Declare.
16384         (TARGET_FIX_VR4130): New macro.
16385         (TARGET_OPTIONS): Add -mfix-vr4130.
16386         (ISA_HAS_MACCHI): New macro.
16387         (ASM_SPEC): Add -mfix-vr4130.
16388         * config/mips/mips.c (mips_fix_vr4130_string): New variable.
16389         (override_options): Handle mips_fix_vr4130_string.
16390         (mips_avoid_hazards): Clear all_noreorder_p
16391         if we're working around VR4130 errata and the macc alternatives
16392         are not available.
16393         * config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
16394         (*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
16395         * config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
16396         (MULTILIB_DEFAULTS): Remove leading "march=".
16397         (DRIVER_SELF_SPECS): Likewise.  Make -mfix-vr4130 imply -march=vr4130
16398         if no architecture option is given.
16399         * config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
16400         VR4130 multilibs.
16401         (MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
16402         * doc/invoke.texi: Document -mfix-vr4130.
16403
16404 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
16405
16406         * config/mips/mips.c (override_options): Only warn about -mint64
16407         deprecation if TARGET_INT64.
16408
16409 2005-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16410
16411         * builtin-attrs.def (ATTR_NONNULL_LIST, ATTR_NOTHROW_NONNULL,
16412         ATTR_CONST_NOTHROW_NONNULL, ATTR_PURE_NOTHROW_NONNULL,
16413         ATTR_MALLOC_NOTHROW_NONNULL): New "nonnull" attribute lists which
16414         are non-specific regarding the nonnull parameter positions.
16415         (ATTR_NONNULL_1_2, ATTR_NONNULL_1_4, ATTR_NOTHROW_NONNULL_1_2,
16416         ATTR_NOTHROW_NONNULL_1_4, ATTR_CONST_NOTHROW_NONNULL_1,
16417         ATTR_PURE_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1_2,
16418         ATTR_MALLOC_NOTHROW_NONNULL_1): Delete.
16419
16420         * builtins.def: Use the non-specific "nonnull" attibute lists.
16421
16422 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
16423
16424         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
16425         single_pred_edge, single_succ, single_pred): Improve comments.
16426
16427 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
16428
16429         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
16430         single_pred_edge, single_succ, single_pred): New inline functions.
16431         * bb-reorder.c (rotate_loop, find_traces_1_round,
16432         add_labels_and_missing_jumps, fix_up_fall_thru_edges,
16433         duplicate_computed_gotos): Use the single_succ/pred functions.
16434         * cfganal.c (forwarder_block_p): Ditto.
16435         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
16436         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
16437         outgoing_edges_match, try_crossjump_to_edge, try_optimize_cfg,
16438         merge_seq_blocks): Ditto.
16439         * cfghooks.c (split_edge, tidy_fallthru_edges): Ditto.
16440         * cfglayout.c (fixup_reorder_chain): Ditto.
16441         * cfgloop.c (mark_single_exit_loops, update_latch_info,
16442         canonicalize_loop_headers, verify_loop_structure): Ditto.
16443         * cfgloopmanip.c (remove_path, unloop, loop_delete_branch_edge,
16444         mfb_update_loops, create_preheader, force_single_succ_latches,
16445         create_loop_notes): Ditto.
16446         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
16447         force_nonfallthru_and_redirect, rtl_tidy_fallthru_edge,
16448         commit_one_edge_insertion, purge_dead_edges,
16449         cfg_layout_can_merge_blocks_p): Ditto.
16450         * except.c (sjlj_emit_function_enter): Ditto.
16451         * flow.c (init_propagate_block_info): Ditto.
16452         * function.c (thread_prologue_and_epilogue_insns): Ditto.
16453         * gcse.c (find_implicit_sets, bypass_conditional_jumps,
16454         insert_insn_end_bb): Ditto.
16455         * ifcvt.c (merge_if_block, find_if_block, find_if_case_1,
16456         find_if_case_2): Ditto.
16457         * lambda-code.c (perfect_nestify): Ditto.
16458         * lcm.c (optimize_mode_switching): Ditto.
16459         * loop-doloop.c (doloop_modify): Ditto.
16460         * loop-init.c (loop_optimizer_init): Ditto.
16461         * loop-iv.c (simplify_using_initial_values): Ditto.
16462         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
16463         * loop-unswitch.c (unswitch_loop): Ditto.
16464         * modulo-sched.c (generate_prolog_epilog): Ditto.
16465         * predict.c (combine_predictions_for_insn, estimate_probability,
16466         tree_estimate_probability, last_basic_block_p,
16467         estimate_bb_frequencies): Ditto.
16468         * profile.c (branch_prob): Ditto.
16469         * regrename.c (copyprop_hardreg_forward): Ditto.
16470         * sched-rgn.c (is_cfg_nonregular, find_rgns, update_live): Ditto.
16471         * tracer.c (layout_superblocks): Ditto.
16472         * tree-cfg.c (tree_can_merge_blocks_p, tree_merge_blocks,
16473         cfg_remove_useless_stmts_bb, cleanup_control_flow,
16474         cleanup_control_expr_graph, disband_implicit_edges,
16475         tree_find_edge_insert_loc, bsi_commit_edge_inserts,
16476         tree_verify_flow_info, tree_make_forwarder_block,
16477         tree_forwarder_block_p, remove_forwarder_block,
16478         remove_forwarder_block_with_phi, merge_phi_nodes): Ditto.
16479         * tree-if-conv.c (tree_if_conversion): Ditto.
16480         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
16481         * tree-ssa-dce.c (remove_dead_stmt): Ditto.
16482         * tree-ssa-dom.c (dom_opt_finalize_block): Ditto.
16483         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
16484         copy_loop_headers): Ditto.
16485         * tree-ssa-loop-im.c (loop_commit_inserts): Ditto.
16486         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Ditto.
16487         * tree-ssa-loop-manip.c (split_loop_exit_edge, ip_normal_pos,
16488         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Ditto.
16489         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Ditto.
16490         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Ditto.
16491         * tree-ssa-phiopt.c (tree_ssa_phiopt, value_replacement): Ditto.
16492         * tree-ssa-pre.c (compute_antic_aux, insert_aux, init_pre): Ditto.
16493         * tree-ssa-threadupdate.c (redirect_edges): Ditto.
16494         * tree-tailcall.c (independent_of_stmt_p, find_tail_calls,
16495         eliminate_tail_call, tree_optimize_tail_calls_1): Ditto.
16496         * tree-vect-analyze.c (vect_analyze_loop_form): Ditto.
16497         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
16498         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard,
16499         slpeel_add_loop_guard): Ditto.
16500
16501 2005-03-11  James A. Morrison  <phython@gcc.gnu.org>
16502
16503         PR tree-optimization/15784
16504         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
16505         and -1 - A to ~A.
16506
16507         * stmt.c (expand_case): Don't change index_type.  Convert minval
16508         to the proper type.
16509
16510         PR tree-optimization/20130
16511         * fold-const.c (fold): Fold x * -1 into -x.
16512
16513 2005-03-11  Kaz Kojima  <kkojima@gcc.gnu.org>
16514
16515         PR rtl-optimization/20331
16516         * rtlanal.c (modified_between_p): Check its address first for MEM.
16517         (modified_in_p): Likewise.
16518
16519 2005-03-11  Joseph S. Myers  <joseph@codesourcery.com>
16520
16521         * config.gcc (hppa*64*-*-hpux11*): Use pa/t-hpux-shlib.
16522
16523 2005-03-10  Steven Bosscher  <stevenb@suse.de>
16524
16525         * expr.c (expand_expr_real_1): If possible, use a conditional
16526         move for expanding MIN_EXPR and MAX_EXPR.
16527         Use temp for moving around rtx-en.
16528
16529 2005-03-10  Andrew Pinski  <pinskia@physics.uc.edu>
16530
16531         PR rtl-opt/20412
16532         * simplify-rtx.c (simplify_relational_operation_1): Fix typo - check the
16533         correct mode.
16534
16535 2005-03-10  Roger Sayle  <roger@eyesopen.com>
16536
16537         * builtins.c (expand_builtin_signbit): Extend to handle floating
16538         point modes wider than the largest integer type, using the
16539         operand_subword_force function to obtain the signbit's word.
16540
16541 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
16542
16543         PR target/20322
16544         * combine.c (try_combine): If recog_for_combine added CLOBBERs
16545         to NEWI2PAT, fail to combine if they are used by NEWPAT.
16546
16547 2005-03-10  Aldy Hernandez  <aldyh@redhat.com>
16548
16549         * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section.
16550
16551 2005-03-10  Kazu Hirata  <kazu@cs.umass.edu>
16552
16553         * tree-outof-ssa.c (analyze_edges_for_bb): Make the return
16554         type void.
16555         (perform_edge_inserts): Unconditionally call
16556         free_dominator_info.
16557
16558         * tree-outof-ssa.c (analyze_edges_for_bb): Update a comment.
16559
16560 2005-03-10  Bob Wilson  <bob.wilson@acm.org>
16561
16562         * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
16563
16564 2005-03-10  Nathan Sidwell  <nathan@codesourcery.com>
16565
16566         * bitmap.c (bitmap_copy): Remove manual loop unrolling.
16567
16568         * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and
16569         gcc_unreachable.
16570         (rtl_register_value_prof_hooks,
16571         tree_value_profile_transformations,
16572         tree_register_value_prof_hooks): Likewise.
16573         * var-tracking.c (stack_adjust_offset_pre_post,
16574         variable_htab_free, variable_union, dataflow_set_different_2,
16575         count_uses, variable_was_changed, set_frame_base_location,
16576         set_variable_part, emit_note_insn_var_location, vt_emit_notes,
16577         vt_add_function_parameters): Likewise.
16578         * varasm.c (named_section_real, named_section, make_decl_rtl,
16579         asm_emit_uninitialised, assemble_integer, decode_addr_const,
16580         const_hash_1, compare_constant, copy_constant, force_const_mem,
16581         output_constant_pool_2, output_constant_pool_1, output_constant,
16582         output_constructor, make_decl_one_only, decl_tls_model,
16583         default_no_named_section, default_elf_select_section_1,
16584         default_unique_section_1): Likewise.
16585         * vec.c (vec_gc_o_reserve, vec_heap_o_reserve): Likewise.
16586         * vmsdbgout.c (addr_const_to_string): Likewise.
16587
16588         PR c++/20375
16589         * function.c (struct assign_parm_data_one): Remove last_named
16590         field.
16591         (assign_parm_find_data_types): Don't determine last_named.
16592         Reorder named_parm determination.
16593         (assign_parms): Only setup varargs on the last non-varadic
16594         parameter.
16595
16596 2005-03-10  Kazuhiro Inaoka  <inaoka.lazuhiro@renesas.com>
16597
16598         * config/m32r/m32r.md (load_sda_base_32): New pattern.  Loads
16599         sda base address on medium model.
16600
16601 2005-03-10  Zdenek Dvorak  <dvorakz@suse.cz>
16602
16603         * Makefile.in (tree-optimize.o): Add CFGLOOP_H dependence.
16604         * cfgloop.c (flow_loop_nodes_find): Export.
16605         * cfgloop.h (flow_loop_nodes_find, fix_loop_structure):
16606         Declare.
16607         * cfgloopmanip.c (fix_loop_structure): New function.
16608         * predict.c (predict_loops): Clean up the loops information.
16609         * tree-cfg.c (cleanup_tree_cfg_loop): New function.
16610         (tree_can_merge_blocks_p, remove_bb, tree_forwarder_block_p): Respect
16611         loop structure.
16612         * tree-flow.h (cleanup_tree_cfg_loop): Declare.
16613         (rewrite_into_loop_closed_ssa): Declaration changed.
16614         * tree-loop-linear.c (linear_transform_loops): Add argument to
16615         rewrite_into_loop_closed_ssa call.
16616         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
16617         * tree-ssa-loop-im.c (move_computations): Ditto.
16618         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
16619         * tree-vectorizer.c (vectorize_loops): Ditto.
16620         * tree-optimize.c: Include cfgloop.h.
16621         (execute_todo): Choose whether to call cleanup_tree_cfg or
16622         cleanup_tree_cfg_loop.
16623         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables,
16624         (tree_unroll_loops_completely): Enable cleanup_tree_cfg_loop call.
16625         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Enable
16626         cleanup_tree_cfg_loop call.
16627         * tree-ssa-loop-manip.c (find_uses_to_rename_bb): New function.
16628         (find_uses_to_rename, rewrite_into_loop_closed_ssa): Support
16629         work on part of cfg.
16630
16631 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
16632
16633         PR inline-asm/20314
16634         * gimplify.c (gimplify_asm_expr): Handle input/output constraints
16635         with multiple alternatives.
16636
16637         * stmt.c (parse_output_constraint): Fix a typo.
16638
16639 2005-03-09  Bob Wilson  <bob.wilson@acm.org>
16640
16641         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Use "no-transform"
16642         assembly directive instead of deprecated "no-generics".
16643
16644 2005-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
16645
16646         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
16647         for non-offsettable memory references to cope with outstanding reload
16648         replacements.
16649         * config/s390/s390.md ("reload_outti"): Call find_replacement to
16650         avoid losing outstanding address reloads.
16651         ("reload_outdi", "reload_outdf"): Likewise.
16652
16653 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16654
16655         * builtins.c (fold_builtin_cbrt, fold_builtin_pow): Rearrange
16656         code.  Add more cbrt transformations.
16657
16658 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16659
16660         * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case.
16661
16662 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
16663
16664         * fold-const.c (fold_unary, fold_binary, fold_ternary): Return
16665         NULL_TREE when a given tree is not simplified.
16666         (fold): Return the original tree when any of the functions
16667         mentioned above NULL_TREE.
16668
16669         * fold-const.c (fold_unary, fold_binary): Take decomposed
16670         arguments, code, type, op0, and op1 in case of fold_binary.
16671         (fold): Update calls to fold_unary and fold_binary.
16672
16673 2005-03-09  Roger Sayle  <roger@eyesopen.com>
16674
16675         * builtins.c (fold_builtin_unordered_cmp): Change prototype to take
16676         a fndecl and an arglist instead of a CALL_EXPR, exp.
16677
16678 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
16679
16680         * cfglayout.c (fixup_reorder_chain): Remove old_bb.
16681
16682         * cfgrtl.c (cfg_layout_merge_blocks): Remove new_e.
16683
16684         * expr.c (expand_assignment): Remove orig_to_rtx.
16685
16686         * fold-const.c (int_const_binop): Remove no_overflow.
16687
16688         * ifcvt.c (noce_emit_move_insn): Remove inmode.
16689
16690         * loop-iv.c (get_biv_step_1): Remove lhs.
16691
16692         * loop-unroll.c (analyze_insns_in_loop): Remove preheader.
16693
16694         * real.c (real_nan): Remove neg.
16695
16696         * function.c (thread_prologue_and_epilogue_insns): Remove i
16697         and newinsn.
16698
16699         * tree-data-ref.c (array_base_name_differ_p): Remove ta and
16700         tb.
16701
16702         * tree-eh.c (tree_could_trap_p): Remove idx.
16703
16704         * tree-into-ssa.c (ann): Remove ann.
16705
16706         * tree-outof-ssa.c (num_nodes): Remove num_nodes.
16707
16708         * tree-sra.c (decide_block_copy): Remove inst_count.
16709
16710         * tree-ssa-alias.c (may_alias_p): Remove v_ann.
16711
16712         * tree-ssa-loop-im.c (lhs): Remove.
16713
16714         * cfgbuild.c (state, STATE, SET_STATE,
16715         BLOCK_USED_BY_TABLEJUMP, FULL_STATE): Move just before
16716         make_edges.
16717         (make_edges): Speed up by skipping blocks with BLOCK_ORIGINAL.
16718         (find_basic_blocks): Set the state of each basic block to
16719         BLOCK_NEW.
16720
16721 2005-03-08  Jeff Law  <law@redhat.com>
16722
16723         * tree-cfg.c (cleanup_control_flow): If removal of a computed
16724         goto results in the removal of edges in the CFG, then we need
16725         to recompute dominators.
16726
16727 2005-03-09  Ben Elliston  <bje@au.ibm.com>
16728
16729         * c-common.c (c_do_switch_warnings): Comment fix.
16730
16731 2005-03-08  Julian Brown  <julian@codesourcery.com>
16732
16733         * Patch from 2005-03-08 reverted for causing regressions and
16734         ppc-darwin bootstrap failure.
16735
16736 2005-03-08  Fariborz Jahanian <fjahanian@apple.com>
16737
16738         * config/rs6000/rs6000.c (invalid_arg_for_unprototyped_fn):
16739         Define the real function for ppc-darwin.
16740         * c-typeck.c (convert_arguments): Check for target-specific
16741         invalid argument call to unprototyped function.
16742         * target-def.h (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
16743         New Macro.
16744         * target.h (invalid_arg_for_unprototyped_fn): New field
16745         in struct calls.
16746         * targhooks.c (hook_invalid_arg_for_unprototyped_fn): New
16747         default target hook.
16748         * targhooks.h (hook_invalid_arg_for_unprototyped_fn):
16749         Declare.
16750
16751 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
16752
16753         * c-typeck.c (constructor_stack, constructor_range_stack,
16754         initializer_stack): Make them static.
16755
16756         * cfg.c (rbi_pool): Make it static.
16757
16758         * gimple-low.c (lower_stmt_body): Make it static.
16759         * tree-flow.h: Remove the corresponding prototype.  Don't
16760         declare lower_data.
16761
16762         * sched-deps.c (cache_size): Make it static.
16763
16764         * stor-layout.c (lang_adjust_rli): Make it static.
16765
16766 2005-03-08  Julian Brown  <julian@codesourcery.com>
16767
16768         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
16769         from being used for symbols with vague linkage when
16770         HAVE_GAS_COMDAT_GROUP is true.
16771
16772 2005-03-08  J"orn Rennecke <joern.rennecke@st.com>
16773
16774         * jump.c (invert_jump_1): Don't call redirect_jump_1 with
16775         nlabel == JUMP_LABEL (jump).
16776
16777 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
16778
16779         * c-common.c, c-opts.c, combine.c, cse.c, dojump.c,
16780         gimplify.c, tree-dfa.c, tree-ssa-loop-ivopts.c,
16781         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-sink.c,
16782         tree-vect-analyze.c, tree.def, tree.h: Fix comment formatting.
16783
16784 2005-03-08  Alexey Neyman  <alex.neyman@auriga.ru>
16785
16786         PR c/14411
16787         * calls.c (flags_from_decl_or_type): Handle eturns_twice' attribute.
16788         * c-common.c (handle_returns_twice): New function.
16789         (c_common_attribute_table): Declare eturns_twice' attribute.
16790         * doc/extend.texi: Document eturns_twice' attribute.
16791         * tree.h (DECL_IS_RETURNS_TWICE): New macro.
16792         (struct tree_decl): Add returns_twice_flag.
16793
16794 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
16795
16796         * tree-ssa-phiopt.c: Fix a comment typo.
16797
16798         * c-semantics.c, cfghooks.c, diagnostic.h, loop-iv.c,
16799         loop-unswitch.c, modulo-sched.c, stor-layout.c, tree-gimple.h,
16800         config/i386/cygwin1.c, doc/cfg.texi, doc/objc.texi: Update
16801         copyright.
16802
16803 2005-03-08  Richard Henderson  <rth@redhat.com>
16804
16805         * config/alpha/alpha.c (code_for_builtin): Replace special-case
16806         builtin codes with ctzdi2, clzdi2, popcountdi2.
16807         (struct alpha_builtin_def): Add is_const.
16808         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it.
16809         (alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New.
16810         (alpha_init_builtins): Init them.  Set nothrow and const attributes
16811         on builtins.
16812         (alpha_fold_builtin_cmpbge, alpha_fold_builtin_zapnot,
16813         alpha_fold_builtin_extxx, alpha_fold_builtin_insxx,
16814         alpha_fold_builtin_mskxx, alpha_fold_builtin_umulh,
16815         alpha_fold_vector_minmax, alpha_fold_builtin_perr,
16816         alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb,
16817         alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw,
16818         alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz,
16819         alpha_fold_builtin_ctpop, alpha_fold_builtin): New.
16820         (TARGET_FOLD_BUILTIN): New.
16821         * config/alpha/alpha.md (UNSPEC_CTTZ): Remove.
16822         (UNSPEC_CTLZ, UNSPEC_CTPOP): Remove.
16823         (ffsdi2): Use ctz.
16824         (cttz, builtin_cttz, builtin_ctlz, builtin_ctpop): Remove.
16825
16826 2005-03-08  Ira Rosen  <irar@il.ibm.com>
16827
16828         PR tree-optimization/20122
16829         * tree-vect-analyze.c (vect_object_analysis): Analyze initial
16830         condition of access function instead of base.
16831
16832 2005-03-07  Jeff Law  <law@redhat.com>
16833             Steven Bosscher  <stevenb@suse.de>
16834
16835         * tree-cfg.c (find_taken_edge_computed_goto): New function.
16836         (find_taken_edge): Call find_taken_edge_computed_goto as
16837         appropriate.  Allow any gimple invariant rather than just
16838         INTEGER_CST for VAL.
16839         (cleanup_control_flow): Cleanup a computed goto which has turned
16840         into a simple goto.
16841         (tree_merge_blocks): If block B has any forced labels, move
16842         them to the start of block A.
16843         * tree-ssa-dom.c (thread_across_edge): Allow threading across
16844         computed gotos as well.
16845         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Handle
16846         removal of unnecessary computed gotos too.
16847         (lookup_redirection_data): Fix type of INSERT argument.  Callers
16848         updated.
16849
16850 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
16851
16852         * tree-ssa-phiopt.c: Update copyright.  Fix indentations.
16853         Remove trailing spaces.
16854
16855         * gimplify.c (gimple_push_bind_expr, gimple_pop_bind_expr,
16856         unshare_all_trees): Make them static.
16857         * tree-gimple.h: Remove the corresponding prototypes.
16858
16859         * diagnostic.h: Remove unused prototype
16860         debug_output_buffer.
16861         * modulo-sched.c: Remove unused prototype
16862         set_row_column_for_ps.
16863
16864         * tree-ssa-phiopt.c (tree_ssa_phiopt,
16865         replace_phi_edge_with_variable): Remove unused variable i.
16866
16867 2005-03-07  Per Bothner  <per@bothner.com>
16868
16869         * tree.h (DECL_IS_BUILTIN): Reverted my patch from earlier today.
16870
16871 2005-03-06  Andrew Pinski  <pinskia@physics.uc.edu>
16872
16873         PR tree-opt/17671
16874         * tree-ssa-phiopt.c (tree_ssa_phiopt): Rewrite so we base the
16875         bbs on the COND_EXPR instead of the PHI_NODEs.
16876         (candidate_bb_for_phi_optimization): Remove.
16877         (replace_phi_with_stmt): Rename to ...
16878         (replace_phi_edge_with_variable): this and change so that we
16879         replace the phi argument instead of removing the PHI.
16880         (conditional_replacement): Change so we deal with PHI with more
16881         than two arguments.
16882         (value_replacement): Likewise.
16883         (abs_replacement): Likewise.
16884
16885 2005-03-07  Aldy Hernandez  <aldyh@redhat.com>
16886
16887         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_eq_bit to
16888         output_e500_flip_gt_bit.
16889
16890         * config/rs6000/rs6000.c (print_operand): case D: Print out bit 31
16891         as bit 31.
16892         (rs6000_generate_compare): Fix logic to look at the correct bits.
16893         (output_e500_flip_eq_bit): Rename to output_e500_flip_gt_bit.
16894         Look at GT bit.
16895         (rs6000_emit_sCOND): Rename gen_e500_flip_eq_bit to
16896         gen_e500_flip_gt_bit.  Rename gen_move_from_CR_eq_bit to
16897         gen_move_from_CR_gt_bit.
16898
16899         * config/rs6000/rs6000.md ("move_from_CR_eq_bit"): Change bit
16900         ("move_from_CR_eq_bit"): Rename to move_from_CR_gt_bit.
16901         (UNSPEC_MV_CR_EQ): Rename to UNSPEC_MV_CR_GT.
16902
16903         * config/rs6000/spe.md ("e500_cr_ior_compare"): New.
16904         (E500_CR_IOR_COMPARE): New constant.
16905
16906 2005-03-08  Earl Chew <earl_chew@agilent.com>
16907             David Billinghurst <David.Billinghurst@riotinto.com>
16908
16909         * config/i386/host-cygwin.c: New file to support precompiled
16910         headers on cygwin
16911         * config/i386/x-cygwin: Use host-cygwin.c on cygwin host
16912         * config.host: Use above files for cygwin host.
16913
16914 2005-03-07  David Edelsohn  <edelsohn@gnu.org>
16915
16916         * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
16917         ordering ops from earlier change.
16918
16919 2005-03-07  Per Bothner  <per@bothner.com>
16920
16921         Various fixes to allow us to again build if --enable-mapped-location:
16922         * c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of
16923         unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
16924         * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of
16925         local variable loc. Change logic appropriately.
16926         * tree-vect-transform.c (vect_finish_stmt_generation): Use
16927         EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION.
16928         * c-parser.c (c_parser_for_statement): Initialize loc variable.
16929         * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of
16930         DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues.
16931
16932 2005-03-07  Richard Sandiford  <rsandifo@redhat.com>
16933
16934         PR rtl-optimization/19683
16935         * reload1.c (choose_reload_regs): Pass the number of bits, not the
16936         number of bytes, to smallest_int_for_mode.  Fix arguments to
16937         REG_CANNOT_CHANGE_MODE_P.
16938
16939 2005-03-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
16940
16941         * reorg.c (relax_delay_slots): Check that the jump is
16942         conditional before trying to invert it.
16943
16944 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
16945
16946         * bb-reorder.c (max_entry_frequency, max_entry_frequency):
16947         Make them static.
16948
16949         * calls (stack_arg_under_construction): Make it static.
16950
16951         * flow.c (regs_live_at_setjmp): Make it static.
16952         * flow.h: Remove the corresponding prototype.
16953
16954         * reload1.c (reload_startobj, reload_firstobj,
16955         something_needs_operands_changed, reload_inherited,
16956         reload_inheritance_insn, reload_override_in,
16957         reload_spill_index): Make them static.
16958
16959         * recog.c (verify_changes): Make it static.
16960         * recog.h: Remove the corresponding prototype.
16961
16962         * cfgbuild.c (find_sub_basic_blocks): Remove.
16963         * basic-block.h: Remove the corresponding prototype.
16964         * cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks
16965         in comments.
16966         * doc/cfg.texi: Don't mention find_sub_basic_blocks.
16967
16968         * tree-ssa-operands.c (check_build_stmt): Remove.
16969
16970         * stor-layout.c (set_alignment): Remove.
16971         * tree.h: Remove the corresponding prototype.
16972
16973         * tree-ssa-pre.c (has_abnormal_preds): Make it static.
16974
16975         * tree-ssa-dce.c (control_dependence_map,
16976         visited_control_parents): Make them static.
16977
16978         * cfghooks.c (verify_flow_info): Remove local variable
16979         num_bb_notes.
16980
16981         * cfgrtl.c (rtl_verify_flow_info_1): Remove local variable
16982         last_bb_seen.
16983
16984         * loop-unswitch.c (unswitch_loop): Remove local variable src.
16985
16986 2005-03-07  David Billinghurst <David.Billinghurst@riotinto.com>
16987
16988         * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv.
16989
16990 2005-03-07  Joseph S. Myers  <joseph@codesourcery.com>
16991
16992         * config/ia64/hpux.h (LINK_SPEC): Add -z.
16993         * config/ia64/ia64.c (ia64_function_value): Return a REG not a
16994         PARALLEL for an empty structure.
16995
16996 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
16997
16998         * fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
16999
17000         * fold-const.c (fold_binary): Unroll the very first "for"
17001         loop.
17002
17003 2005-03-06  David Edelsohn  <edelsohn@gnu.org>
17004
17005         * config/rs6000/predicates.md (branch_comparison_operator): Remove
17006         redundant match_code test.
17007         (scc_comparison_operator): Swap match_operand and match_code
17008         tests.
17009         (branch_positive_comparison_operator): Same.
17010         (trap_comparison_operator): Use comparison_operator and swap with
17011         match_code test.
17012
17013 2005-03-06  Marek Michalkiewicz  <marekm@amelek.gda.pl>
17014
17015         PR target/20288
17016         * config/avr/avr.c (print_operand): Add 'p' and 'r'.
17017         (out_movhi_r_mr): Read low byte of volatile MEM first.
17018         (out_movhi_mr_r): Write high byte of volatile MEM first.
17019
17020 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
17021
17022         * cselib.c (reg_values, reg_values_size): Make them static.
17023
17024         * cse.c (cse_reg_info_table): Make it static.
17025
17026         * fold-const.c (fold_unary): Use build1 instead of copy_node.
17027
17028 2005-03-06  Zdenek Dvorak  <dvorakz@suse.cz>
17029
17030         * cse.c (find_best_addr): Use canon_for_address.
17031
17032 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
17033
17034         * cse.c (fold_rtx_subreg, fold_rtx_mem): New.
17035         (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle
17036         SUBREG and MEM, respectively.
17037
17038         * fold-const.c (fold_binary): Use code instead of t.
17039
17040         * fold-const.c (optimize_minmax_comparison): Take decomposed
17041         arguments code, type, op0, and op1 instead of t.
17042         (fold_binary): Update a call to optimize_minmax_comparison.
17043
17044         * fold-const.c (fold_range_test): Take decomposed arguments
17045         code, type, op0, and op1 instead of t.
17046         (fold_binary): Update a call to fold_range_test.
17047
17048         * fold-const.c (fold_binary_op_with_conditional_arg): Take
17049         decomposed arguments code, type, op0, and op1 instead of t.
17050         (fold_binary): Update a call to fold_range_test.
17051
17052 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
17053
17054         * fold-const.c (fold_binary): Avoid directly using the original
17055         expression t as much as possible.
17056
17057 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
17058
17059         * c-semantics.c (build_stmt): Use TYPE_P instead of
17060         IS_NON_TYPE_CODE_CLASS.
17061         * tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
17062         (NON_TYPE_CHECK): Use TYPE_P instead of
17063         IS_NON_TYPE_CODE_CLASS.
17064
17065         * fold-const.c (fold): Remove handling of binary expressions.
17066
17067 2005-03-05  James A. Morrison  <phython@gcc.gnu.org>
17068
17069         * doc/c-tree.texi: Wrap comments in @r{}.
17070         * doc/cpp.texi: Likewise.
17071         * doc/cppinternals.texi: Likewise.
17072         * doc/extend.texi: Likewise.
17073         * doc/md.texi: Likewise.
17074         * doc/objc.texi: Likewise.
17075         * doc/sourcebuild.texi: Likewise.
17076         * doc/tm.texi: Likewise.
17077         * doc/tree-ssa.texi
17078
17079 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
17080
17081         * predict.c (apply_return_prediction): Standardize PHI chain
17082         walking.
17083         * tree-ssa.c (ssa_redirect_edge): Likewise.
17084
17085         * genattrtab.c, genemit.c, genoutput.c, genrecog.c,
17086         gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c:
17087         Update copyright.
17088
17089         * tree-phinodes.c (remove_phi_node): Drop the last argument.
17090         * tree-flow.h: Adjust the prototype for remove_phi_node.
17091         * lambda-code.c (perfect_nestify): Adjust a call to
17092         remove_phi_node.
17093         * tree-cfg.c
17094         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
17095         * tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
17096         Likewise.
17097         * tree-ssa-dce.c (remove_dead_phis): Likewise.
17098         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
17099         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
17100         * tree-ssa.c (kill_redundant_phi_nodes): Likewise.
17101
17102         * combine.c (simplify_and_const_int): Use gen_int_mode instead
17103         of GEN_INT (trunc_int_for_mode (...)).
17104         * loop-iv.c (iv_number_of_iterations): Likewise.
17105         * postreload.c (reload_cse_move2add): Likewise.
17106         * simplify-rtx.c (simplify_const_unary_operation,
17107         simplify_const_binary_operation): Likewise.
17108         * stor-layout.c (get_mode_bounds): Likewise.
17109
17110         * fold-const.c (fold_binary): New.
17111         (fold): Call fold_binary on binary expressions.
17112
17113 2005-03-05  Richard Sandiford  <rsandifo@redhat.com>
17114
17115         * doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
17116         * config/mips/mips.h (MASK_SYM32, TARGET_SYM32): New macros.
17117         (TARGET_SWITCHES): Add -msym32 and -mno-sym32.
17118         (ABI_HAS_64BIT_SYMBOLS): Set to false if TARGET_SYM32.
17119         (ASM_SPEC): Pass down -msym32 and -mno-sym32.
17120
17121 2005-03-04  Devang Patel  <dpatel@apple.com>
17122
17123         PR tree-optimization/18815
17124         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
17125         loops with zero exit edges.
17126
17127 2005-03-04  Devang Patel  <dpatel@apple.com>
17128
17129         * doc/invoke.texi: Remove reference to webpage that does not exist.
17130
17131 2005-03-04  John David Anglin  <dave.danglin@nrc-cnrc.gc.ca>
17132             Joseph S. Myers  <joseph@codesourcery.com>
17133
17134         PR c++/19797
17135         * pa/elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define.
17136         (ASM_OUTPUT_EXTERNAL): Call pa_hpux_asm_output_external.
17137         * pa-protos.h (pa_hpux_asm_output_external): Add prototype.
17138         * pa.c (get_plabel): Change argument to symbol_ref.  Call
17139         maybe_get_identifier instead of get_identifier.
17140         (pa_hpux_asm_output_external, pa_hpux_file_end): New functions.
17141         (struct deferred_plabel): Replace name field with symbol field.
17142         (TARGET_ASM_FILE_END): Define as pa_hpux_file_end if
17143         ASM_OUTPUT_EXTERNAL_REAL is defined.
17144         (output_global_address): Use output_addr_const for output of all
17145         symbol_refs.
17146         (output_deferred_plabels): Use symbol_ref instead of name for address
17147         output.
17148         * pa.h (SYMBOL_FLAG_REFERENCED, SYMBOL_REF_REFERENCED_P,
17149         ASM_OUTPUT_SYMBOL_REF): New macros.
17150         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use assemble_name_raw.  Update
17151         comment.
17152         (ASM_WEAKEN_LABEL): Use targetm.asm_out.globalize_label to globalize
17153         label.
17154
17155 2005-03-05  Joseph S. Myers  <joseph@codesourcery.com>
17156
17157         * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for
17158         *-*-hpux11.[1-9]*, not just for *-*-hpux11.11.
17159
17160 2005-03-04  Jeff Law  <law@redhat.com>
17161
17162         * basic-block.h (rediscover_loops_after_threading): Declare.
17163         * tree-ssa-dom.c: Include cfgloop.h.
17164         (tree_ssa_dominator_optimize): Discover loops and some basic
17165         properties.  Remove forwarder blocks recreated by loop header
17166         canonicalization.  Also mark backedges in the CFG.
17167         * tree-ssa-threadupdate.c: Include cfgloop.h
17168         (rediscover_loops_after_threading): Define.
17169         (struct local_info): New field, JUMP_THREADED.
17170         (prune_undesirable_thread_requests): New function.
17171         (redirect_edges): Clear EDGE_ABNORMAL.  If edges were threaded
17172         then record that fact for the callers of redirct_edges.
17173         (thread_block): If BB has incoming backedges, then call
17174         prune_undesirable_thraed_requests.    Note when we are
17175         going to have to rediscover loop information.  Return a
17176         boolean indicating if any jumps were threaded.
17177         (thread_through_all_blocks): Bubble up boolean indicating
17178         if any jumps were threaded.
17179         * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h
17180         (tree-ssa-threadupdate.o): Similarly.
17181
17182 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
17183
17184         * fold-const.c (fold_ternary): Unroll the "for" loop to
17185         extract operands.
17186
17187 2005-03-04  Andrew Haley  <aph@redhat.com>
17188
17189         * unwind-dw2-fde-glibc.c (struct
17190         unw_eh_callback_data.check_cache): New field.
17191         (frame_hdr_cache): New.
17192         (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info.
17193         Cache frame header info.
17194
17195 2005-03-04  Richard Sandiford  <rsandifo@redhat.com>
17196
17197         * rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
17198         (print_c_condition): Declare.
17199         * read-rtl.c (ptr_loc): New structure.
17200         (ptr_locs, ptr_loc_obstack, joined_conditions)
17201         (joined_conditions_obstack): New variables.
17202         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
17203         (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
17204         (join_c_conditions, print_c_condition): New functions.
17205         (apply_macro_to_string): Associate the new string with the same
17206         source location as the old one.
17207         (add_condition_to_string): Use join_c_conditions.
17208         (read_string): Use set_rtx_ptr_loc to record a filename and line
17209         number for the string.
17210         (read_rtx): Initialize the new variables above.
17211         * genattrtab.c (write_test_expr, write_attr_value): Use
17212         print_c_condition.
17213         * genconditions.c (write_header): Don't define MAYBE_EVAL.  Move its
17214         comment above the GCC_VERSION check.
17215         (write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
17216         Inline the definition of MAYBE_EVAL.
17217         * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
17218         * genoutput.c (process_template): Likewise.
17219         * genpreds.c (write_predicate_subfunction): Likewise.
17220         (write_predicate_expr): Use print_c_condition.
17221         * genrecog.c (write_cond): Likewise.
17222         * gensupport.c (process_rtx): Use join_c_conditions to join the
17223         conditions of a define_insn_and_split.  Record a source location
17224         for the string after the "&&".
17225         (alter_test_for_insn): Use join_c_conditions.
17226
17227 2005-03-04  Andrew Pinski  <pinskia@physics.uc.edu>
17228
17229         Revert for now:
17230         2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
17231         PR tree-optimization/15784
17232         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
17233         and -1 - A to ~A.
17234
17235 2005-03-04  Ben Elliston  <bje@au.ibm.com>
17236
17237         * gcc.c (option_map): Add --coverage.
17238         (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
17239         (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'.
17240         * config/darwin.h: Pass -lgcov for `coverage'.
17241         * doc/invoke.texi (Debugging Options): Document --coverage.
17242
17243 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
17244
17245         * gcse.c (bypass_block): Use find_edge wherever possible.
17246
17247 2005-03-03  Daniel Berlin <dberlin@dbrelin.org>
17248
17249         Fix PR debug/20253
17250
17251         * c-opts.c (c_common_parse_file): Call start_source_file
17252         and end_source_file at the approriate times.
17253
17254         * dwarf2out.c (dwarf2out_finish): Don't auto-end
17255         the main file, it will be done for us now.
17256
17257 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
17258
17259         * fold-const.c (fold_ternary): New.
17260         (fold): Call fold_ternary on ternary expressions.  Remove
17261         handling of ternary expressions.
17262
17263 2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
17264
17265         PR tree-optimization/15784
17266         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
17267         and -1 - A to ~A.
17268
17269 2005-03-03  David Edelsohn  <edelsohn@gnu.org>
17270
17271         * config/rs6000/predicates.md (branch_comparison_operator):
17272         Convert from C block to conditional format.
17273
17274 2005-03-03  Jan Hubicka  <jh@suse.cz>
17275
17276         * tree-dfa.c (add_referenced_var): Don't walk initializer of external
17277         and non-constant public variables.
17278
17279 2005-03-03  Kazu Hirata  <kazu@cs.umass.edu>
17280
17281         * tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
17282         with LABEL_EXPR.
17283
17284         * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
17285         EDGE_I.
17286
17287         * tree-phinodes.c (remove_phi_node): Clean up by factoring out
17288         calls to release_ssa_name and release_phi_node.
17289
17290         * fold-const.c (fold): Remove handling of unary expressions.
17291
17292         * fold-const.c (fold_unary): Avoid directly using the original
17293         expression t as much as possible.
17294
17295 2005-03-03  Roger Sayle  <roger@eyesopen.com>
17296             Andrew Pinski  <pinskia@physics.uc.edu>
17297
17298         * jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
17299         RETURN rtx, and not a LABEL_REF containing a NULL pointer.
17300
17301 2005-03-03  Hans-Peter Nilsson  <hp@axis.com>
17302
17303         Describe special registers SRP and MOF as allocatable registers.
17304         * config/cris/cris.c (cris_md_asm_clobbers): New function.
17305         (TARGET_MD_ASM_CLOBBERS): Define to cris_md_asm_clobbers.
17306         (cris_conditional_register_usage): Enable CRIS_MOF_REGNUM if
17307         TARGET_HAS_MUL_INSNS.
17308         (cris_print_operand) <case 'd'>: New case.
17309         <case REG>: Allow CRIS_MOF_REGNUM and CRIS_SRP_REGNUM.
17310         * config/cris/cris.h (CRIS_PC_REGNUM, CRIS_SRP_REGNUM): Don't
17311         define.
17312         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS)
17313         (REG_ALLOC_ORDER): Update for MOF.
17314         (enum reg_class): New members MOF_REGS, GENERAL_REGS and
17315         SPECIAL_REGS.
17316         (GENERAL_REGS): No longer a define of ALL_REGS.
17317         (REGNO_REG_CLASS, REG_CLASS_CONTENTS, REG_CLASS_NAMES)
17318         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
17319         Adjust accordingly.
17320         (CRIS_SPECIAL_REGS_CONTENTS): New macro.
17321         (REG_CLASS_FROM_LETTER): Allocate 'h' and 'x'.
17322         (SECONDARY_RELOAD_CLASS): Define.
17323         (STACK_POINTER_REGNUM): Define as CRIS_SP_REGNUM.
17324         (FRAME_POINTER_REGNUM): Define as CRIS_FP_REGNUM.
17325         (ARG_POINTER_REGNUM): Define as CRIS_AP_REGNUM.
17326         (STATIC_CHAIN_REGNUM): Define as CRIS_STATIC_CHAIN_REGNUM.
17327         (REGISTER_MOVE_COST): Define.
17328         (PIC_OFFSET_TABLE_REGNUM): Define in terms of CRIS_GOT_REGNUM.
17329         * config/cris/cris.md (CRIS_GOT_REGNUM, CRIS_STATIC_CHAIN_REGNUM)
17330         (CRIS_FP_REGNUM, CRIS_SP_REGNUM, CRIS_SRP_REGNUM, CRIS_AP_REGNUM)
17331         (CRIS_MOF_REGNUM): New define_constants.
17332         ("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for
17333         special registers.
17334         ("reload_inhi", "reload_outhi", "reload_inqi", "reload_outqi"):
17335         New patterns.
17336         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3")
17337         ("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"):
17338         Adjust for MOF being properly described as a register.
17339         (indir_to_reg_split): Name this split.  Conditionalize on the
17340         destination register being a general register.
17341         (movei): Conditionalize on on operands 0 and 1 having the same
17342         register class.
17343
17344 2005-03-03  Alan Modra  <amodra@bigpond.net.au>
17345
17346         PR target/20277
17347         * config/rs6000/rs6000.c (rs6000_override_options): Don't allow
17348         -mcpu to override any other explicitly given flags.
17349
17350 2005-03-02  J"orn Rennecke <joern.rennecke@st.com>
17351
17352         * recog.c (verify_changes, confirm_change_group): New functions,
17353         broken out of apply_change_group.
17354         (apply_change_group): Use them.
17355         * recog.h (verify_change, confirm_change_group): Declare.
17356         * rtl.h (redirect_jump_2): Declare.
17357         * jump.c (redirect_exp, invert_exp): Delete.
17358         (invert_exp_1): Take second parameter.  Return value.  Changed caller.
17359         (redirect_jump_2): New function, broken out of redirect_jump.
17360         (redirect_jump): Use redirect_jump_1 and redirect_jump_2.
17361         (invert_jump): Use invert_jump_1 and redirect_jump_2.
17362         * ifcvt.c (dead_or_predicable): Use redirect_jump_2.
17363
17364 2005-03-02  Geoffrey Keating  <geoffk@apple.com>
17365
17366         * varasm.c (named_section): Use xstrdup rather than doing it by
17367         hand.
17368
17369         * config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.
17370
17371 2005-03-02  Devang Patel  <dpatel@apple.com>
17372
17373         Undo PR tree-optimization/18815 fix.
17374
17375 2005-03-02  Devang Patel  <dpatel@apple.com>
17376
17377         PR tree-optimization/18815
17378         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
17379         loops with zero exit edges.
17380
17381 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
17382
17383         * cfg.c (connect_src, connect_dest, disconnect_src,
17384         disconnct_dest): New.
17385         (unchecked_make_edge, remove_edge, redirect_edge_succ,
17386         redirect_edge_pred): Use the new functions.
17387
17388         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
17389         free_dominance_info only when needed.
17390
17391 2005-03-02  David Edelsohn  <edelsohn@gnu.org>
17392
17393         PR target/20276
17394         * config/rs6000/predicates.md (reg_or_cint64_operand): Fix typo.
17395         (reg_or_sub_cint64_operand): Same.
17396
17397 2005-03-02  Jeff Law  <law@redhat.com>
17398
17399         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
17400         CFG_ALTERED in the main DOM iteration loop.
17401
17402 2005-03-02  Mark Mitchell  <mark@codesourcery.com>
17403
17404         PR c++/19916
17405         * varasm.c (initializer_constant_valid_p): Allow conversions
17406         between OFFSET_TYPEs.  Tidy.
17407
17408 2005-03-02  Hans-Peter Nilsson  <hp@axis.com>
17409
17410         * config/cris/cris.md ("return"): Remove epilogue delay list
17411         sanity check.
17412
17413 2005-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
17414
17415         * config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
17416         for Thumb.
17417         * config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.
17418
17419 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
17420
17421         * cfgloop.h, cfgloopanal.c, cfgloopmanip.c, conflict.c,
17422         loop-init.c, loop-unroll.c, print-tree.c, reg-notes.def,
17423         config/m68k/m68k.c, config/mips/mips.h,
17424         config/rs6000/rs6000-protos.h, doc/contrib.texi,
17425         doc/include/gcc-common.texi: Update copyright.
17426
17427         PR middle-end/18029 and PR middle-end/18030
17428         * expr.c (optimize_bitfield_assignment_op): Add a special case
17429         to handle BIT_IOR_EXPR and BIT_XOR_EXPR.
17430
17431         * fold-const.c (fold_unary): New.
17432         (fold): Call fold_unary on unary expressions.
17433
17434 2005-03-02  Richard Guenther  <rguenth@gcc.gnu.org>
17435
17436         * cgraph.h (struct cgraph_edge): Add prev_caller and
17437         prev_callee fields.
17438         (cgraph_node_remove_callees): Export.
17439         * cgraph.c (cgraph_create_edge): Initialize prev_caller
17440         and prev_callee.
17441         (cgraph_edge_remove_callee): New function.
17442         (cgraph_edge_remove_caller): Likewise.
17443         (cgraph_remove_edge): Use.
17444         (cgraph_redirect_edge_callee): Likewise.
17445         (cgraph_node_remove_callees): New function.
17446         (cgraph_node_remove_callers): Likewise.
17447         (cgraph_remove_node): Use.
17448         * tree-optimize.c (tree_rest_of_compilation): Use
17449         cgraph_node_remove_callees instead of manual loop.
17450         * cgraphunit.c (cgraph_finalize_function): Likewise.
17451         (cgraph_expand_function): Likewise.
17452         (cgraph_remove_unreachable_nodes): Likewise.
17453
17454 2005-03-02  Joseph S. Myers  <joseph@codesourcery.com>
17455
17456         PR c/8927
17457         * c-tree.h (undeclared_variable, build_external_ref): Add extra
17458         argument.
17459         * c-decl.c (undeclared_variable): Take location as argument.
17460         * c-typeck.c (build_external_ref): Likewise.
17461         * c-parser.c (c_parser_postfix_expression): Pass location of
17462         identifier to build_external_ref.
17463
17464 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
17465
17466         * config/rs6000/rs6000.md (cceq splitter): Use operand mode, not
17467         CCEQ mode for branch_positive_comparison_operator test.
17468         * config/rs6000/predicates (branch_comparison_operator): Revert to
17469         define_predicate.
17470         (scc_comparison_operator): Same.
17471         (branch_positive_comparison_operator): Same.
17472
17473 2005-03-01  Hans-Peter Nilsson  <hp@axis.com>
17474
17475         * config/cris/cris.c (cris_eligible_for_epilogue_delay)
17476         (cris_delay_slots_for_epilogue): Remove.
17477         (save_last): Move into cris_target_asm_function_epilogue.
17478         (cris_target_asm_function_epilogue): Remove tests for file being
17479         NULL.
17480         * config/cris/cris-protos.h (cris_eligible_for_epilogue_delay)
17481         (cris_delay_slots_for_epilogue): Remove prototypes.
17482         * config/cris/cris.h (DELAY_SLOTS_FOR_EPILOGUE)
17483         (ELIGIBLE_FOR_EPILOGUE_DELAY): Do not define.
17484
17485 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
17486
17487         * config/rs6000/predicates.md (branch_comparison_operator): Change
17488         to define_special_predicate.
17489         (scc_comparison_operator): Same.
17490         (branch_positive_comparison_operator): Same.
17491
17492 2005-03-01  Daniel Berlin <dberlin@dberlin.org>
17493
17494         * Makefile.in (tree-ssa-sink.o): New.
17495         (OBJS-common): Add tree-ssa-sink.o.
17496         * common.opt: Add -ftree-sink
17497         * opts.c (decode_options): flag_tree_sink is set at O1 or higher.
17498         * timevar.def (TV_TREE_SINK): new timevar.
17499         * tree-flow.h (is_hidden_global_store): Prototype.
17500         * tree-optimize.c (init_tree_optimization_passes): Add
17501         pass_sink_code.
17502         * tree-pass.h (pass_sink_code): New.
17503         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move checking
17504         for non-obvious global store store to is_hidden_global_store, and
17505         call that new function.
17506         * tree-ssa-sink.c: New file.
17507         * doc/invoke.texi: Document -fdump-tree-sink and -ftree-sink.
17508         * doc/passes.texi: Document forward store motion.
17509         * testsuite/gcc.dg/tree-ssa/ssa-sink-1.c: New test
17510         * testsuite/gcc.dg/tree-ssa/ssa-sink-2.c: New test
17511         * testsuite/gcc.dg/tree-ssa/ssa-sink-3.c: New test
17512         * testsuite/gcc.dg/tree-ssa/ssa-sink-4.c: New test
17513
17514 2005-03-01  Per Bothner  <per@bothner.com>
17515
17516         * diagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION
17517         and we have a non-zero column-number, add it to the message.
17518         Also factor out the diagnostic_kind_text.
17519
17520 2005-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
17521
17522         * cfgloop.c (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
17523         flow_loop_pre_header_scan, flow_loop_pre_header_find,
17524         flow_loop_scan): Removed.
17525         (flow_loop_dump): Do not dump removed fields.
17526         (flow_loop_free): Do not free removed fields.
17527         (flow_loops_find): Flags argument removed.  Do not call flow_loop_scan.
17528         (loop_exit_edge_p): New function.
17529         * cfgloop.h (struct loop): Removed fields pre_header, pre_header_edges,
17530         num_pre_header_edges, entry_edges, num_entries, exit_edges,
17531         num_exits, exits_doms.
17532         (LOOP_TREE, LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
17533         LOOP_EDGES, LOOP_ALL): Removed.
17534         (flow_loop_scan): Declaration removed.
17535         (loop_exit_edge_p, mark_loop_exit_edges): Declare.
17536         * cfgloopmanip.c (create_loop_notes): Do not pass flags to
17537         flow_loops_find.
17538         * ifcvt.c (mark_loop_exit_edges): Moved to cfgloopanal.c.
17539         (if_convert): Call flow_loops_find and flow_loops_free
17540         when calling mark_loop_exit_edges.
17541         * cfgloopanal.c (mark_loop_exit_edges): Moved from
17542         ifcvt.c.  Removed the flow_loops_find, flow_loops_free and
17543         free_dominance_info calls.
17544         * loop-init.c (flow_loops_find): Ditto.
17545         * passes.c (rest_of_handle_branch_prob): Ditto.
17546         * lambda-code.c (perfect_nestify): Do not call flow_loops_find.
17547         * loop-unroll.c (analyze_insns_in_loop): Do not use
17548         EDGE_LOOP_EXIT.
17549         * predict.c (predict_loops): Do not call flow_loop_scan.
17550         Use get_loop_exit_edges.
17551         (tree_estimate_probability): Do not pass flags to flow_loops_find.
17552         * tree-if-conv.c (bb_with_exit_edge_p): Take loop as argument.
17553         Do not use EDGE_LOOP_EXIT.
17554         (tree_if_convert_cond_expr, if_convertible_modify_expr_p): Pass loop
17555         to bb_with_exit_edge_p.
17556         (if_convertible_loop_p): Do not call flow_loop_scan.  Use
17557         loop->single_exit.  Do not use EDGE_LOOP_EXIT.  Pass loop
17558         to bb_with_exit_edge_p.
17559         (combine_blocks): Pass loop to bb_with_exit_edge_p.  Do not use
17560         EDGE_LOOP_EXIT.
17561         * tree-loop-linear.c (linear_transform_loops): Do not call
17562         flow_loop_scan.  Use loop->single_exit.
17563         * tree-vect-analyze.c (vect_analyze_operations): Use loop->single_exit.
17564         (vect_analyze_loop_form): Do not call flow_loop_scan.
17565         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Use
17566         loop->single_exit.
17567         (vect_do_peeling_for_loop_bound): Use loop_preheader_edge and
17568         loop->single_exit.
17569         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
17570         slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
17571         slpeel_tree_duplicate_loop_to_edge_cfg,
17572         slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
17573         Use loop_preheader_edge and loop->single_exit.  Do not call
17574         flow_loop_scan.
17575
17576 2005-03-01  Nick Clifton  <nickc@redhat.com>
17577
17578         * config/arm/arm.c (thumb_find_work_register): Check all of the
17579         argument registers to see if they are free, and a couple of
17580         special cases where the last argument register but can be proved
17581         to be available during the function's prologue.
17582         (print_multi_reg, arm_compute_save_reg0_reg12_mask,
17583         output_return_instruction, emit_multi_reg_push, thumb_pushpop,
17584         thumb_unexpanded_epilogue): Use unsigned long as the type for the
17585         register bit-mask.
17586         (thumb_compute_save_reg_mask): Likewise.  Also use
17587         thumb_find_work_register() to ensure that there is agreement about
17588         which work register is going to be used in the prologue.
17589         (thumb_output_function_prologue): Use unsigned long as the type
17590         for the register bit-mask.  Also delay pushing the link register if
17591         other high registers are going to be pushed.
17592         (thumb_compute_save_reg_mask, emit_multi_reg_push,
17593         print_multi-reg, number_of_first_bit_set, thumb_pushpop): Remove
17594         redundant prototypes.
17595
17596 2005-02-28  John David Anglin  <dave.anglin#nrc-cnrc.gc.ca>
17597
17598         PR target/19819
17599         * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow allow hard registers during
17600         and after reload in REG+REG indexed addresses without REG_POINTER
17601         set in the base and not set in the index.
17602
17603 2005-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
17604
17605         * config/sh/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
17606         Don't undefine here.
17607         (HANDLE_PRAGMA_PACK_PUSH_POP): Delete.
17608         (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC): Likewise.
17609         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
17610         (LIB_SPEC, LINK_EH_SPEC, STARTFILE_SPEC, ENDFILE_SPEC,
17611         LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED, TARGET_C99_FUNCTIONS):
17612         Delete.
17613         * config.gcc (sh*-*-linux*): Use config/linux.h.
17614
17615 2005-02-28  Dale Johannesen  <dalej@apple.com>
17616             Stan Shebs  <shebs@apple.com>
17617
17618         Rewrite of 64-bit Darwin structure-by-value pass/return.
17619         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): New fields
17620         intoffset, use_stack, named.
17621         * config/rs6000/rs6000.c (rs6000_darwin64_function_arg):  Remove.
17622         (rs6000_darwin64_record_arg_advance_flush):  New.
17623         (rs6000_darwin64_record_arg_advance_recurse): New.
17624         (rs6000_darwin64_record_arg_flush):  New.
17625         (rs6000_darwin64_record_arg_recurse):  New.
17626         (rs6000_darwin64_record_arg):  New.
17627         (rs6000_return_in_memory):  Remove AGGREGATE_TYPE_P check.
17628         (function_arg_boundary):  Handle 128-bit aligned structs.
17629         (function_arg_advance):  Rewrite darwin64 struct handling.
17630         (function_arg):  Call rs6000_darwin64_record_arg.
17631         (function_arg_partial_nregs):  Handle darwin64 structs.
17632         (rs6000_darwin64_function_value):  Remove.
17633         (rs6000_function_value):  Call rs6000_darwin64_record_arg.
17634
17635 2005-02-28  Roger Sayle  <roger@eyesopen.com>
17636
17637         PR tree-optimization/20216
17638         * tree-chrec.c (tree_fold_factorial): Delete.
17639         (tree_fold_binomial): Change argument list to take a return type
17640         and change the type of K to unsigned int.  Rewrite to avoid explicit
17641         evaluation of factorials, and (recursively) calling fold to perform
17642         compile-time arithmetic.  Return NULL on (internal) overflow.
17643         (chrec_evaluate): Change type of K to an unsigned int.  Avoid
17644         calling tree_fold_binomial unnecessarily.  Return chrec_dont_know
17645         if any intermediate calculation overflows.
17646         (chrec_apply): Update call to chrec_evaluate.
17647
17648 2005-02-28  James E Wilson  <wilson@specifixinc.com>
17649
17650         * config/mips/mips.h (NO_PROFILE_COUNTERS): Define.
17651
17652 2005-02-28  Joseph S. Myers  <joseph@codesourcery.com>
17653
17654         PR c/20245
17655         * c-parser.c (c_parser_compound_statement): Return error_mark_node
17656         instead of NULL_TREE on error.
17657
17658 2005-02-28  David Edelsohn  <edelsohn@gnu.org>
17659
17660         * config/rs6000/rs6000.c (EASY_VECTOR_15): Remove.
17661         (EASY_VECTOR_15_ADD_SELF): Remove.
17662         (num_insns_constant_wide): Not static.
17663         (validate_condition_mode): Not static.
17664         (toc_relative_expr_p): Not static.
17665         (legitimate_indirect_address_p): Not static.
17666         (macho_lo_sum_memory_operand): Not static.
17667         (invalid_e500_subreg): Not static.
17668         (easy_vector_same): Not static.
17669         (easy_vector_splat_const): Not static.
17670         (RS6000_SYMBOL_REF_TLS_P): Remove.
17671         (any_operand): Delete.
17672         (any_parallel_operand): Delete.
17673         (count_register_operand): Delete.
17674         (altivec_register_operand): Delete.
17675         (xer_operand): Delete.
17676         (s8bit_cint_operand): Delete.
17677         (short_cint_operand): Delete.
17678         (u_short_cint_operand): Delete.
17679         (non_short_cint_operand): Delete.
17680         (exact_log2_cint_operand): Delete.
17681         (gpc_reg_operand): Delete.
17682         (cc_reg_operand): Delete.
17683         (cc_reg_not_cr0_operand): Delete.
17684         (reg_or_short_operand): Delete.
17685         (reg_or_neg_short_operand): Delete.
17686         (reg_or_aligned_short_operand): Delete.
17687         (reg_or_u_short_operand): Delete.
17688         (reg_or_cint_operand): Delete.
17689         (reg_or_arith_cint_operand): Delete.
17690         (reg_or_add_cint64_operand): Delete.
17691         (reg_or_sub_cint64_operand): Delete.
17692         (reg_or_logical_cint_operand): Delete.
17693         (got_operand): Delete.
17694         (got_no_const_operand): Delete.
17695         (easy_fp_constant): Delete.
17696         (easy_vector_constant): Delete.
17697         (easy_vector_constant_add_self): Delete.
17698         (zero_constant): Delete.
17699         (zero_fp_constant): Delete.
17700         (volatile_mem_operand): Delete.
17701         (offsettable_mem_operand): Delete.
17702         (mem_or_easy_const_operand): Delete.
17703         (add_operand): Delete.
17704         (non_add_cint_operand): Delete.
17705         (logical_operand): Delete.
17706         (non_logical_cint_operand): Delete.
17707         (mask_operand): Delete.
17708         (mask_operand_wrap): Delete.
17709         (mask64_operand): Delete.
17710         (mask64_2_operand): Delete.
17711         (and64_operand): Delete.
17712         (and64_2_operand): Delete.
17713         (and_operand): Delete.
17714         (reg_or_mem_operand): Delete.
17715         (lwa_operand): Delete.
17716         (symbol_ref_operand): Delete.
17717         (call_operand): Delete.
17718         (current_file_function_operand): Delete.
17719         (input_operand): Delete.
17720         (rs6000_nonimmediate_operand): Delete.
17721         (rs6000_tls_symbol_ref): Delete.
17722         (save_world_operation): Delete.
17723         (restore_world_operation): Delete.
17724         (load_multiple_operation): Delete.
17725         (store_multiple_operation): Delete.
17726         (vrsave_operation): Delete.
17727         (mfcr_operation): Delete.
17728         (mtcrf_operation): Delete.
17729         (lmw_operation): Delete.
17730         (stmw_operation): Delete.
17731         (branch_comparison_operator): Delete.
17732         (branch_positive_comparison_operator): Delete.
17733         (scc_comparison_operator): Delete.
17734         (trap_comparison_operator): Delete.
17735         (boolean_operator): Delete.
17736         (boolean_or_operator): Delete.
17737         (min_max_operator): Delete.
17738         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Move to here.
17739         (EASY_VECTOR_15): Moved to here.
17740         (EASY_VECTOR_15_ADD_SELF): Move to here.
17741         (PREDICATE_CODES): Delete.
17742         * config/rs6000/rs6000-protos.h: Delete predicate functions.
17743         Declare functions no longer static.
17744         * config/rs6000/predicates.md: New.
17745         * config/rs6000/rs6000.md: Include predicates.md
17746
17747 2005-02-28  Kazu Hirata  <kazu@cs.umass.edu>
17748
17749         * calls.c (emit_call_1): Don't use  REG_ALWAYS_RETURN.
17750         (emit_library_call_value_1): Don't use LCT_ALWAYS_RETURN and
17751         REG_ALWAYS_RETURN.
17752         * cfgrtl.c (need_fake_edge_p): Likewise.
17753         * combine.c (distribute_notes): Likewise.
17754         * emit-rtl.c (try_split): Likewise.
17755         * recog.c (peephole2_opimize): Likewise.
17756         * reg-notes.def (ALWAYS_RETURN): Remove.
17757         * rtl.h (LCT_ALWAYS_RETURN): Remove.
17758         * tree-cfg.c (need_fake_edge_p): Don't use ECF_ALWAYS_RETURN.
17759         * tree.h (ECF_ALWAYS_RETURN): Remove.
17760
17761 2005-02-28  Roger Sayle  <roger@eyesopen.com>
17762
17763         PR middle-end/19874
17764         * tree-ssa.c (tree_ssa_useless_type_conversion_1): A conversion
17765         between different machine modes is never a "useless" conversion.
17766
17767 2005-02-28  Geert Bosch  <bosch@gnat.com>
17768
17769         PR ada/15977
17770         * doc/contrib.texi: List contributors for Ada front end
17771
17772 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
17773
17774         * simplify-rtx.c (simplify_unary_operation_1,
17775         simplify_const_unary_operation): New, extracted from...
17776         (simplify_unary_operation): ... this one.
17777         (simplify_binary_operation_1,
17778         simplify_const_binary_operation): New, extracted from...
17779         (simplify_binary_operation): ... this one.
17780         * rtl.h (simplify_const_unary_operation,
17781         simplify_const_binary_operation): Add prototypes.
17782
17783 2005-02-28  Julian Brown  <julian@codesourcery.com>
17784
17785         * config/elfos.h: Revert my patch from 2005-02-25 since it broke
17786         building libjava and caused PR regression/20228.
17787
17788 2005-02-28  Paolo Bonzini  <bonzini@gnu.org>
17789
17790         PR bootstrap/17383
17791         * Makefile.in (host_subdir): New.
17792         (build_objdir): New.  Replace ../$(build_subdir) with it throughout.
17793         * configure: Regenerate.
17794
17795 2005-02-27  Zack Weinberg  <zack@codesourcery.com>
17796
17797         * config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
17798         * config/pa/t-hpux-shlib (SHLIB_INSTALL): Create the
17799         installation directory first.
17800
17801 2005-02-28  Hans-Peter Nilsson  <hp@axis.com>
17802
17803         PR target/19065.
17804         * config/cris/cris.h (EXTRA_CONSTRAINT_Q): Accept only (mem (reg)),
17805         not including (reg). Do not check for reg being CRIS_PC_REGNUM.
17806         (EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
17807         * config/cris/cris.md: Tweak comments referring to Q.
17808         ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
17809         ("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
17810         ("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
17811         ("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
17812         ("*andqi_lowpart", "iorsi3", "iorhi3", "iorqi3", "uminsi3"):
17813         Insert spaces in constraints to align alternatives vertically for
17814         readability.
17815         ("cmphi"): Ditto.  Add separate alternative for operand 0 "r",
17816         operand 1: "M".
17817
17818 2005-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17819
17820         PR rtl-optimization/17728
17821         * pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
17822         operand 0 from general_operand to move_dest_operand.
17823
17824 2005-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17825
17826         * pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
17827         instead of trying to save and restore TREE_SYMBOL_REFERENCED.
17828         * pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
17829         (ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.
17830
17831 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
17832
17833         * configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
17834         * configure: Regenerate.
17835         * libada-mk.in: Remove CC; rename
17836         cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.
17837
17838 2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>
17839
17840         PR tree-opt/20188
17841         * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
17842         for the lhs, also walk over the tree.  Likewise for rhs.
17843
17844 2005-02-26  Zdenek Dvorak  <dvorakz@suse.cz>
17845
17846         * tree-ssa-dom.c (simple_iv_increment_p): New function.
17847         (simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
17848         Do not propagate value of iv before increment over the increment.
17849
17850 2005-02-25  Joseph S. Myers  <joseph@codesourcery.com>
17851
17852         * c-parser.c: New file.
17853         * c-parse.in: Remove.
17854         * Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
17855         Remove.
17856         (c-parser.o): Add dependencies.
17857         (C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
17858         maintainer-clean, TAGS): Update.
17859         * c-config-lang.in (gtfiles): Update.
17860         * gengtype-lex.l: Don't handle "@@".
17861         * stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
17862         objc_build_synchronized, objc_begin_try_stmt,
17863         objc_begin_catch_clause, objc_finish_catch_clause,
17864         objc_build_finally_clause, objc_finish_try_stmt): New.
17865         * c-tree.h (struct c_declspecs): Add declspecs_seen_p and
17866         type_seen_p.
17867         (c_parse_init): Update comment.
17868         * c-decl.c (c_init_decl_processing): Update comment.
17869         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
17870         declspecs_add_scspec, declspecs_add_attrs): Initialize and update
17871         new c_declspecs members.
17872
17873 2005-02-25  Julian Brown  <julian@codesourcery.com>
17874
17875         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
17876         from being used for symbols with vague linkage when
17877         HAVE_GAS_COMDAT_GROUP is true.
17878
17879 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
17880
17881         * doc/include/gcc-common.texi (version-GCC): Update to 4.1.
17882
17883 2005-02-25  Steve Ellcey  <sje@cup.hp.com>
17884
17885         PR target/19930
17886         * doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
17887         (LIBGCC2_HAS_DF_MODE): New.
17888         (LIBGCC2_HAS_XF_MODE): New.
17889         (LIBGCC2_HAS_TF_MODE): New.
17890         * libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
17891         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
17892         * libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
17893         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
17894         (LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
17895         * config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
17896         and add _fixtfdi, _fixunstfdi, _floatditf
17897         * lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
17898         L_fixunstfdi, L_floatditf.
17899         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
17900         (LIBGCC2_HAS_TF_MODE): Define.
17901
17902 2005-02-25  Diego Novillo  <dnovillo@redhat.com>
17903
17904         PR tree-optimization/20204
17905         * tree-into-ssa.c (insert_phi_nodes_for): Do not use
17906         REWRITE_THIS_STMT markers on PHI nodes.
17907         (rewrite_initialize_block): Likewise.
17908
17909 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
17910
17911         * version.c (version_string): Update to 4.1.
17912
17913 2005-02-25  Paolo Carlini  <pcarlini@suse.de>
17914
17915         * doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
17916         Clarify that the alternative way doesn't work in GNU C++.
17917
17918 2005-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
17919
17920         PR tree-optimization/19937
17921         * tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
17922         to the type of the induction variable.
17923
17924 2005-02-25  Kaz Kojima  <kkojima@gcc.gnu.org>
17925
17926         PR rtl-optimization/20117
17927         * bb-reorder.c (duplicate_computed_gotos): Don't duplicate
17928         the block including noncopyable insn.
17929
17930 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
17931
17932         * cse.c (delete_trivially_dead_insns): Speed up by minimizing
17933         calls to find_reg_note.
17934
17935 2005-02-24  Richard Henderson  <rth@redhat.com>
17936
17937         PR tree-opt/20127
17938         * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
17939         the type.
17940
17941 2005-02-24  Fariborz Jahanian <fjahanian@apple.com>
17942
17943         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
17944         vector types if to use base reg for misaligned non-word ld/std.
17945
17946 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
17947
17948         PR target/14619
17949         * config/cris/cris.c (cris_target_asm_function_prologue): Create
17950         dwarf2 label manually and put it after, not before the prologue.
17951
17952 2005-02-24  David Edelsohn  <edelsohn@gnu.org>
17953
17954         PR target/19019
17955         * reload.c (operands_match_p): Only increment register number for
17956         SCALAR_INT_MODE_P modes in multiple hard registers.
17957
17958         * config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
17959         Fix formatting.
17960
17961 2005-02-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
17962
17963         * ChangeLog.5: Fix log message typo(s).
17964         * ChangeLog.7: Likewise.
17965         * ChangeLog.tree-ssa: Likewise.
17966         * cfgexpand.c: Fix comment typo(s).
17967         * conflict.c: Likewise.
17968         * defaults.h: Likewise.
17969         * dwarf2out.c: Likewise.
17970         * gcse.c: Likewise.
17971         * ggc-page.c: Likewise.
17972         * tree-eh.c: Likewise.
17973         * tree-ssa-dom.c: Likewise.
17974
17975 2005-02-24  Jakub Jelinek  <jakub@redhat.com>
17976
17977         PR target/19019
17978         * mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
17979         * config/rs6000/darwin-ldouble.c: Only use the .symver directives
17980         if SHARED is defined.
17981
17982         PR target/20196
17983         * config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
17984         allow splitting only if operands 0 and 3 don't overlap.
17985
17986 2005-02-24  Richard Henderson  <rth@redhat.com>
17987
17988         PR middle-end/19953
17989         * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
17990         (fold_builtin_1): Call them.
17991         * fold-const.c (fold_complex_mult_parts): Split out from ...
17992         (fold_complex_mult): ... here.  Fix typo in both imaginary case.
17993         (fold_complex_div_parts, fold_complex_div): New.
17994         (fold): Use them.
17995         * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.
17996
17997 2005-02-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17998
17999         * tree-ssa-ccp.c (visit_assignment): Verify that result of
18000         VIEW_CONVERT_EXPR is_gimple_min_invariant.
18001
18002         * print-tree.c (print_node_brief): Print LABEL_DECL_UID.
18003         (print_node): Likewise.
18004         Print TYPE_SIZES_GIMPLIFIED.
18005
18006 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
18007
18008         * config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
18009         ("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
18010         operands as commutative in constraints.
18011
18012 2005-02-24  Diego Novillo  <dnovillo@redhat.com>
18013
18014         * tree-into-ssa.c: Re-organize internal functions.
18015
18016 2005-02-24  Richard Henderson  <rth@redhat.com>
18017
18018         PR middle-end/18902
18019         * c-opts.c (c_common_post_options): Set flag_complex_method to 2
18020         for c99.
18021         * common.opt (fcx-limited-range): New.
18022         * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
18023         * toplev.c (flag_complex_method): Initialize to 1.
18024         (process_options): Set flag_complex_method to 0 if
18025         flag_cx_limited_range.
18026         * doc/invoke.texi (-fcx-limited-range): New.
18027
18028 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
18029
18030         * cse.c (delete_trivially_dead_insns): Speed up by using
18031         NEXT_INSN and PREV_INSN directly instead of next_real_insn and
18032         prev_real_insn.
18033
18034 2005-02-24  Andrea Tarani  <andrea.tarani@gilbarco.com>
18035
18036         * config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
18037         functions when -mid-shared-library is being used.
18038
18039 2005-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
18040
18041         * doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
18042         (LINK_LIBGCC_SPECIAL_1): Don't mention it.
18043         * gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
18044         * system.h: Poison LINK_LIBGCC_SPECIAL.
18045
18046 2005-02-23  James E Wilson  <wilson@specifixinc.com>
18047
18048         * gengtype.c (note_insn_name): Make 1 element larger.
18049
18050 2005-02-23  Roger Sayle  <roger@eyesopen.com>
18051
18052         PR target/20018
18053         PR rtl-optimization/20097
18054         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
18055         BImode SUBREGs of SImode registers which confuse the ia64 backend.
18056
18057 2005-02-23  David Edelsohn  <edelsohn@gnu.org>
18058
18059         * t-aix43 (SHLIB_INSTALL): Create directory for shared library.
18060         * t-aix52 (SHLIB_INSTALL): Same.
18061
18062 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
18063
18064         * genpreds.c: Update copyright.
18065
18066 2005-02-23  Michael Beach  <michaelb@ieee.org>
18067
18068         PR target/20159
18069         * config/sparc/t-elf (startup files): Assemble with CPP.
18070
18071 2005-02-23  Paolo Bonzini  <bonzini@gnu.org>
18072
18073         * genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
18074         (write_predicate_expr): Likewise.
18075
18076 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
18077
18078         PR tree-optimization/20100
18079         PR tree-optimization/20115
18080         * tree-optimize.c (init_tree_optimization_passes): Remove
18081         pass_maybe_create_global_var.
18082         * tree-pass.h (pass_maybe_create_global_var): Remove.
18083         * tree-ssa-alias.c (aliases_computed_p): Declare.
18084         (struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
18085         (count_calls_and_maybe_create_global_var): Remove.
18086         (pass_maybe_create_global_var): Remove.
18087         (init_alias_info): Do not declare aliases_computed_p.
18088         (maybe_create_global_var): If the function contains no
18089         call-clobbered variables and a mix of pure/const and regular
18090         function calls, create .GLOBAL_VAR.
18091         Mark all call-clobbered variables for renaming.
18092         (merge_pointed_to_info): Update comment.
18093         (add_pointed_to_var): Likewise.
18094         (is_escape_site): Likewise.
18095         Accept struct alias_info * instead of size_t *.
18096         Update all users.
18097         Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
18098         as necessary.
18099         * tree-ssa-operands.c (get_call_expr_operands): If
18100         ALIASES_COMPUTED_P is false, do not add call-clobbering
18101         operands.
18102         * tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
18103         (delete_tree_ssa): Likewise.
18104
18105 2005-02-22  James E Wilson  <wilson@specifixinc.com>
18106
18107         * toplev.c (backend_init): Don't call init_adjust_machine_modes here.
18108         (do_compile): Do call it here.
18109
18110 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
18111
18112         PR rtl-optimization/20017.
18113         * passes.c (rest_of_handle_combine, rest_of_handle_cse,
18114         rest_of_handle_cse2, rest_of_handle_gcse): Call
18115         delete_dead_jumptables immediately before calling cleanup_cfg.
18116
18117 2005-02-22  Devang Patel  <dpatel@apple.com>
18118
18119         PR 19952
18120         * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
18121         all labels
18122
18123 2005-02-22  David Edelsohn  <edelsohn@gnu.org>
18124
18125         * config/rs6000/aix.h (WINT_TYPE): Define.
18126
18127 2005-02-22  Stan Shebs  <shebs@apple.com>
18128
18129         * config/rs6000/rs6000.c (rs6000_override_options): Default to
18130         natural alignment for 64-bit Darwin.
18131         (rs6000_parse_alignment_option): Warn about uses of -malign-power
18132         on 64-bit Darwin.
18133         * doc/invoke.texi: Document this.
18134
18135 2005-02-22  DJ Delorie  <dj@redhat.com>
18136
18137         * c-common.c (c_common_type_for_mode): Pass the mode's precision
18138         to make_[un]signed_type, not the mode itself.
18139
18140 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
18141
18142         * cfg.c (cached_make_edge): Call make_edge if edge cache is
18143         not available.  Use tail calls wherever possible.
18144         (make_edge): Call unchecked_make_edge to create an edge.
18145
18146         * tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
18147         (coalesce_ssa_name): Don't check for
18148         SSANORM_USE_COALESCE_LIST.
18149         (rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.
18150
18151 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
18152
18153         * tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
18154         (rewrite_into_ssa): ... here.
18155
18156 2005-02-21  Alexandre Oliva  <aoliva@redhat.com>
18157
18158         PR tree-optimization/19786
18159         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add one
18160         tag to another's may-alias bitmap when adding to the other's list.
18161
18162 2005-02-21  DJ Delorie  <dj@redhat.com>
18163
18164         * tree-ssa-loop-ivopts.c (computation_cost): Start register
18165         numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard
18166         registers in unsupported ways.
18167         * expmed.c (init_expmed): Likewise.
18168
18169 2005-02-21  Stan Cox  <scox@redhat.com>
18170
18171         * config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
18172
18173 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
18174
18175         * tree-cfg.c (fold_cond_expr_cond): New.
18176         (make_edges): Call fold_cond_expr_cond.
18177         (find_taken_edge): Accept nothing but INTEGER_CST.
18178         (find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
18179         and 1.
18180         (find_taken_edge_switch_expr): Remove a check for INTEGER_CST.
18181
18182         * flow.c (delete_dead_jumptables): Speed up by scanning insns
18183         that do not belong to any basic block.
18184
18185 2005-02-21  Jeff Law  <law@redhat.com>
18186
18187         * cfganal.c (find_unreachable_blocks): Manually CSE load of
18188         e->dest.
18189
18190 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
18191
18192         * tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
18193         (SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
18194         Adjust their definitions.
18195         (remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
18196         (rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.
18197
18198         * c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
18199         genautomata.c, langhooks.c, langhooks.h, system.h,
18200         config/arm/lib1funcs.asm: Update copyright.
18201
18202 2005-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
18203
18204         * dbxout.c (dbxout_function_end): Emit Lscope label always.
18205
18206 2005-02-21  Richard Guenther  <rguenth@gcc.gnu.org>
18207
18208         PR bootstrap/13770
18209         * doc/install.texi: Document --with-gc.
18210
18211 2005-02-21  Paolo Bonzini  <bonzini@gnu.org>
18212
18213         * simplify-rtx.c (simplify_unary_operation): Add a missing
18214         "break" statement.
18215
18216 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
18217
18218         PR tree-optimization/18663
18219         * tree-ssa-dom.c (extract_range_from_cond): Return 0
18220         if the type has variable bounds.
18221
18222 2005-02-20  Kazu Hirata  <kazu@cs.umass.edu>
18223
18224         * gcse.c: Remove an obsolete comment.
18225
18226         * cse.c (init_cse_reg_info): Use xmalloc instead of xrealloc.
18227
18228 2005-02-20  Hans-Peter Nilsson  <hp@axis.com>
18229
18230         * doc/extend.texi (Function Attributes) <Attribute const>: The
18231         attribute "pure" is below this text, not above.
18232
18233 2005-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18234
18235         * pa.c (pa_assemble_integer, get_plabel): Small cleanups.
18236         (pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
18237         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.
18238
18239 2005-02-20  Zack Weinberg  <zack@codesourcery.com>
18240
18241         PR 18785
18242         * langhooks.h (struct lang_hooks): Add to_target_charset.
18243         * langhooks.c (lhd_to_target_charset): New function.
18244         * langhooks-def.h: Declare lhd_to_target_charset.
18245         (LANG_HOOKS_TO_TARGET_CHARSET): New macro.
18246         (LANG_HOOKS_INITIALIZER): Update.
18247         * c-common.c (c_common_to_target_charset): New function.
18248         * c-common.h: Declare it.
18249         * c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
18250         c_common_to_target_charset.
18251
18252         * defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
18253         (TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
18254         Delete definitions.
18255         * system.h: Poison them.
18256         * doc/tm.texi: Don't discuss them.
18257         * builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
18258         * c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
18259         (pp_c_char): Do not attempt to generate letter escapes for
18260         newline, tab, etc.
18261         * config/arm/arm.c (output_ascii_pseudo_op): Likewise.
18262         * config/mips/mips.c (mips_output_ascii): Likewise.
18263
18264 2005-02-20  Dorit Naishlos  <dorit@il.ibm.com>
18265
18266         PR tree-optimization/19951
18267         * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
18268         is abnormal.
18269
18270 2005-02-19  Steven Bosscher  <stevenb@suse.de>
18271
18272         PR middle-end/19698
18273         * function.h (struct function): New field `max_loop_depth'.
18274         * cfgloop.c (establish_preds): Update maximum loop depth seen so far.
18275         (flow_loops_find): Reset the max loop depth count before finding loops.
18276         * flow.c (MAX_LIVENESS_ROUNDS): New constant.
18277         (update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
18278         (calculate_global_regs_live): Make sure the loop will terminate
18279         when the initial sets are not empty.
18280
18281 2005-02-19  Zack Weinberg  <zack@codesourcery.com>
18282
18283         * mklibgcc.in: If libgcc_eh.a would be empty, put a dummy
18284         object inside.
18285         * config/ia64/hpux.h: Don't define LIBGCC_SPEC.
18286
18287 2005-02-19  Richard Sandiford  <rsandifo@redhat.com>
18288
18289         PR other/19525
18290         * doc/invoke.texi: Remove documentation of %M spec.
18291         * gcc.c: Likewise.
18292         (init_spec): Remove %M suffix from -lgcc_s.
18293         (do_spec_1): Remove 'M' case.
18294         * mklibgcc.in: Remove SHLIB_MULTILIB handling.  Expect SHLIB_LINK
18295         to put shared libraries in the multilib directory.  Remove the
18296         shlib_so_soname substitution variable.  Don't add a multilib encoding
18297         to shlib_base_name.  Set shlib_slibdir_qual to the full pathname
18298         reported by -print-multi-os-directory.  Pass @multilib_dir@ to
18299         SHLIB_INSTALL as well as SHLIB_LINK.
18300         * config/t-slibgcc-elf-ver (SHLIB_SONAME): Use @shlib_base_name@.
18301         (SHLIB_NAME): Delete.
18302         (SHLIB_DIR): New macro.
18303         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_SOLINK) in $(SHLIB_DIR).
18304         (SHLIB_INSTALL): Adjust accordingly.
18305         * config/t-slibgcc-darwin: As for t-slibgcc-elf-ver.
18306         * config/t-slibgcc-sld: Likewise.
18307         * config/t-libunwind-elf (SHLIBUNWIND_NAME): Delete.
18308         (SHLIBUNWIND_SONAME): Use @shlib_base_name@.
18309         (SHLIBUNWIND_LINK): Put $(SHLIBUNWIND_SONAME) and $(SHLIB_SOLINK)
18310         in $(SHLIB_DIR).
18311         (SHLIBUNWIND_INSTALL): Adjust accordingly.
18312         * config/i386/t-nwld (SHLIB_SONAME): Delete.
18313         (SHLIB_LINK, SHLIB_INSTALL): Use SHLIB_NAME instead of SHLIB_SONAME.
18314         Use @shlib_base_name@ instead of @shlib_so_name@.
18315         * config/ia64/t-hpux (SHLIB_LINK): Put @shlib_base_name@.so.0
18316         and @shlib_base_name@.so in @multilib_dir@.
18317         (SHLIB_INSTALL): Adjust accordingly.  Add @shlib_slibdir_qual@
18318         to the install path.
18319         * config/mips/t-slibgcc-irix: As for t-slibgcc-elf-ver.
18320         (SHLIB_LINK): Remove previous workaround.
18321         * config/pa/t-hpux-shlib (SHLIB_DIR, SHLIB_SLIBDIR_QUAL): New macros.
18322         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_NAME) in $(SHLIB_DIR).
18323         (SHLIB_INSTALL): Adjust accordingly.  Add $(SHLIB_SLIBDIR_QUAL) to
18324         the install path.
18325         * config/rs6000/t-aix43 (SHLIB_LINK): Put @shlib_base_name@.a in
18326         @multilib_dir@.  Use @multilib_dir@ to check for threading libraries.
18327         (SHLIB_INSTALL): Adjust accordingly.
18328         (SHLIB_LIBS): Use @multilib_dir@ to check for threading libraries.
18329         * config/rs6000/t-aix52: As for config/rs6000/t-aix43.
18330         * config/sh/t-linux (SHLIB_LINK, SHLIB_INSTALL): As for
18331         config/t-slibgcc-elf-ver.
18332
18333 2005-02-19  Zdenek Dvorak  <dvorakz@suse.cz>
18334             Jakub Jelinek  <jakub@redhat.com>
18335
18336         PR tree-optimization/19828
18337         * tree-ssa-loop-im.c: Add a TODO comment.
18338         (movement_possibility): Return MOVE_PRESERVE_EXECUTION for calls
18339         without side-effects.
18340
18341 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
18342
18343         * tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
18344         call fold_convert.
18345
18346 2005-02-18  James E. Wilson  <wilson@specifixinc.com>
18347
18348         * doc/invoke.texi (IA-64 Options): Delete -mb-step.
18349         * config/ia64/ia64.c (last_group, group_idx): Delete variables.
18350         (errata_find_address_regs, errata_emit_nops, fixup_errata): Delete
18351         functions.
18352         (ia64_reorg): Delete fixup_errata call.
18353         * config/ia64/ia64.h (MASK_B_STEP, TARGET_B_STEP): Delete.
18354         (TARGET_SWITCHES): Delete -mb-step entry.
18355
18356 2005-02-19  Jakub Jelinek  <jakub@redhat.com>
18357
18358         PR c/20043
18359         * c-typeck.c (composite_type): Handle quals in transparent unions.
18360         (type_lists_compatible_p): Likewise.
18361
18362 2005-02-18  Stan Shebs  <shebs@apple.com>
18363
18364         * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
18365         expressions in the .literal8 section.
18366
18367 2005-02-18  Geoffrey Keating  <geoffk@apple.com>
18368
18369         * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker.
18370
18371 2005-02-18  Roger Sayle  <roger@eyesopen.com>
18372
18373         * fold-const.c (constant_boolean_node): Always create values of the
18374         specified type, don't bother calling truthvalue_conversion.
18375
18376 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
18377
18378         * except.c (output_function_exception_table): Call
18379         assemble_external_libcall (eh_personality_libfunc).
18380
18381 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
18382
18383         PR target/19886
18384         * config/ia64/ia64.h (struct machine_function): Add state_num.
18385         * config/ia64/ia64.c (process_epilogue,
18386         process_for_unwind_directive): Use new unwind state numbers each
18387         time rather than state 1.
18388
18389 2005-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
18390
18391         PR target/20054
18392         * config/s390/s390.md ("*llgt_sidi", "*llgt_sidi_split"): Move to
18393         before the "*llgt_didi" pattern.
18394
18395 2005-02-18  Jason Merrill  <jason@redhat.com>
18396
18397         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Revert again.
18398
18399 2005-02-18  Richard Earnshaw  <rearnsha@arm.com>
18400
18401         * arm/lib1funcs.asm (FUNC_ALIAS): New macro.
18402         (div0): Use it in place of ARM_FUNC_ALIAS.
18403         (lshrdi3, ashrdi3, ashlrdi3): Likewise.
18404
18405 2005-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
18406
18407         PR middle-end/20030
18408         * fold-const.c (fold_indirect_ref_1): Use the correct index for zero
18409         access, the lower bound of the array type if it exists.
18410
18411 2005-02-18  Alexandre Oliva  <aoliva@redhat.com>
18412
18413         PR c++/20008
18414         * stmt.c (expand_case): Don't assume cleanup_tree_cfg will remove
18415         cases that are out-of-range for the index type.
18416
18417 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
18418
18419         * stmt.c (emit_case_bit_tests): Call fold_convert instead of convert.
18420         (estimate_case_costs): Don't call convert.
18421         * expmed.c (expand_shift): Likewise.
18422         (make_tree): Call fold_convert instead of convert.
18423
18424 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
18425
18426         PR c++/19813
18427         * emit-rtl.c (set_mem_attributes_minus_bitpos): Add assertion
18428         that ref to be marked MEM_READONLY_P doesn't have base that needs
18429         constructing.
18430
18431 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
18432
18433         * genautomata.c (output_get_cpu_unit_code_func,
18434         output_cpu_unit_reservation_p): Don't generate old-style function
18435         definitions.
18436
18437 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
18438
18439         PR c++/20023
18440         PR tree-optimization/20009
18441         * convert.c (convert_to_integer): Revert 2005-02-16 change.
18442
18443         PR tree-optimization/18947
18444         * cgraphunit.c (cgraph_finalize_function): When redefining an extern
18445         inline, remove all nodes that are inlined into the extern inline
18446         being redefined.
18447
18448 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
18449
18450         * bt-load.c, cfgloop.c, convert.c, dominance.c, global.c,
18451         loop-invariant.c, stmt.c, tree-ssa-forwprop.c,
18452         tree-ssa-live.c, tree-ssanames.c, tree-vn.c,
18453         config/host-linux.c, config/arm/fpa.md, config/avr/avr.h:
18454         Update copyright.
18455
18456 2005-02-17  Roger Sayle  <roger@eyesopen.com>
18457
18458         PR tree-optimization/19917
18459         * tree-eh.c (tree_could_trap_p): Consider calls to weak functions
18460         to be potentially trapping.
18461
18462 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
18463
18464         * libgcc2.c, tree-vect-analyze.c: Fix comment typos.
18465
18466 2005-02-17  Andreas Krebbel  <krebbel1@de.ibm.com>
18467
18468         * builtins.c (expand_builtin_return_addr): Remove tem parameter.
18469         tem becomes a local variable which is set to the value of the
18470         back end defined INITIAL_FRAME_ADDRESS macro.
18471         (expand_builtin_frame_address): Omit the base parameter to
18472         expand_builtin_return_addr.
18473         (expand_builtin_profile_func): Likewise.
18474         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Define new macro.
18475         (DYNAMIC_CHAIN_ADDRESS): Remove the case for the initial frame.
18476         * doc/tm.texi: Documentation for INITIAL_FRAME_ADDRESS_RTX added.
18477
18478 2005-02-17  Jakub Jelinek  <jakub@redhat.com>
18479
18480         * config/s390/s390.c (s390_alloc_pool, s390_free_pool,
18481         s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
18482         * config/frv/frv.c (frv_function_epilogue): Likewise.
18483
18484 2005-02-17  Daniel Berlin  <dberlin@dberlin.org>
18485
18486         * lambda-code (perfect_nestify): Remove mark/unmark
18487         for rewriting hack.
18488         * tree-loop-linear.c (linear_transform_loops): Add
18489         rewrite_into_ssa call so that ssa is correct for
18490         rewriting into loop closed.
18491
18492 2005-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18493
18494         * bitmap.h (BITMAP_XMALLOC, BITMAP_XFREE): Remove.
18495         * bb-reorder.c (duplicate_computed_gotos): Use BITMAP_ALLOC and
18496         BITMAP_FREE.
18497         * bt-load.c (btr_def_live_range, combine_btr_defs,
18498         migrate_btr_def, migrate_btr_defs): Likewise.
18499         * cfgcleanup.c (thread_jump): Likewise.
18500         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
18501         * df.c (df_insn_table_realloc, df_bitmaps_alloc, df_bitmaps_free,
18502         df_alloc, df_free, df_du_chain_create, df_bb_rd_local_compute,
18503         df_rd_local_compute, df_reg_info_compute): Likewise.
18504         * dominance.c (init_dom_info, free_dom_info): Likewise.
18505         * flow.c (init_propagate_block_info,
18506         free_propagate_block_info): Likewise.
18507         * gcse.c (alloc_gcse_mem, free_gcse_mem): Likewise.
18508         * global.c (allocate_bb_info, free_bb_info, calculate_reg_pav,
18509         modify_reg_pav): Likewise.
18510         * loop-invariant.c (find_defs, find_invariant_insn,
18511         find_invariants, free_inv_motion_data): Likewise.
18512         * predict.c (tree_predict_by_opcode,
18513         estimate_bb_frequencies): Likewise.
18514         * stmt.c (expand_case): Likewise.
18515         * tree-cfg.c (tree_duplicate_sese_region): Likewise.
18516         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
18517         * tree-if-conv.c (get_loop_body_in_if_conv_order): Likewise.
18518         * tree-into-ssa.c (insert_phi_nodes_for, def_blocks_free,
18519         get_def_blocks_for, mark_def_site_blocks, rewrite_into_ssa,
18520         rewrite_ssa_into_ssa): Likewise.
18521         * tree-optimize.c (tree_rest_of_compilation): Likewise.
18522         * tree-outof-ssa.c (new_temp_expr_table, free_temp_expr_table,
18523         analyze_edges_for_bb, perform_edge_inserts): Likewise.
18524         * tree-scalar-evolution.c (scev_initialize, scev_finalize): Likewise.
18525         * tree-sra.c (tree_sra): Likewise.
18526         * tree-ssa-alias.c (init_alias_info, delete_alias_info): Likewise.
18527         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
18528         * tree-ssa-dce.c (tree_dce_init, tree_dce_done): Likewise.
18529         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
18530         * tree-ssa-dse.c (tree_ssa_dse): Likewise.
18531         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_var):
18532         Likewise.
18533         * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info,
18534         calculate_live_on_entry, calculate_live_on_exit,
18535         build_tree_conflict_graph): Likewise.
18536         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_init, record_use,
18537         record_important_candidates, set_use_iv_cost, find_depends,
18538         determine_use_iv_costs, iv_ca_new, iv_ca_free, free_loop_data,
18539         tree_ssa_iv_optimize_finalize): Likewise.
18540         * tree-ssa-loop-manip.c (add_exit_phis_var, get_loops_exit,
18541         find_uses_to_rename_use, rewrite_into_loop_closed_ssa,
18542         tree_duplicate_loop_to_header_edge): Likewise.
18543         * tree-ssa-pre.c (init_pre, fini_pre): Likewise.
18544         * tree-ssa.c (verify_flow_insensitive_alias_info,
18545         verify_name_tags, verify_ssa, init_tree_ssa,
18546         delete_tree_ssa): Likewise.
18547         * tree-ssanames.c (marked_ssa_names, init_ssanames,
18548         fini_ssanames): Likewise.
18549         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Likewise.
18550
18551 2005-02-17  Ralf Corsepius  <ralf.corsepius@rtems.org>
18552
18553         * config/rs6000/t-rtems: Completely reworked.
18554
18555 2005-02-17  Ira Rosen  <irar@il.ibm.com>
18556
18557         * tree-data-ref.c (array_base_name_differ_p): Remove gcc_assert.
18558
18559 2005-02-17  Ira Rosen  <irar@il.ibm.com>
18560
18561         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Use
18562         POINTER_TYPE_P when checking that type is a pointer.
18563         (vect_get_memtag): Remove.
18564         (vect_address_analysis): Use POINTER_TYPE_P. Call
18565         vect_object_analysis with dummy parameter for memtag.
18566         (vect_object_analysis): Extract memtag (functionality that
18567         used to be in vect_get_memtag and moved here). Fix printings.
18568         (vect_analyze_data_refs): Fix comment. Call vect_object_analysis
18569         with correct parameters. Remove call to vect_get_memtag.
18570
18571 2005-02-17  Dorit Naishlos  <dorit@il.ibm.com>
18572
18573         * Makefile.in (tree-vect-analyze.o, tree-vect-transform.o): New.
18574         (tree-vectorizer.o): Added missing dependencies.
18575
18576         * tree-vectorizer.h (vect_dump, vect_verbosity_level): Added extern
18577         decleration.
18578         (slpeel_tree_peel_loop_to_edge): Function externalized (had a static
18579         declaration in tree-vectorizer.c, now has an extern declaration in
18580         tree-vectorizer.h).
18581         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
18582         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
18583         get_vectype_for_scalar_type, vect_is_simple_use,
18584         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
18585         vect_supportable_dr_alignment, new_loop_vec_info, destroy_loop_vec_info,
18586         new_stmt_vec_info, vect_analyze_loop, vectorizable_load,
18587         vectorizable_store, vectorizable_operation, vectorizable_assignment,
18588         vect_transform_loop, vect_print_dump_info, vect_set_verbosity_level,
18589         find_loop_location): Likewise.
18590
18591         * tree-vectorizer.c (langhooks.h): #include removed.
18592         (slpeel_tree_peel_loop_to_edge): Function externalized. Declaration
18593         moved to tree-vectorized.h.
18594         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
18595         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
18596         get_vectype_for_scalar_type, vect_is_simple_use,
18597         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
18598         vect_supportable_dr_alignment, new_loop_vec_info,
18599         destroy_loop_vec_info, new_stmt_vec_info, vect_print_dump_info,
18600         vect_set_verbosity_level, find_loop_location): Likewise.
18601
18602         (vect_analyze_loop): Function externalized. Declaration moved to
18603         tree-vectorized.h. Function definition moved to tree-vect-analyze.c.
18604         (vect_analyze_loop_form): Moved to tree-vect-analyze.c.
18605         (vect_mark_stmts_to_be_vectorized, vect_analyze_scalar_cycles,
18606         vect_analyze_data_ref_accesses, vect_analyze_data_ref_dependences,
18607         vect_analyze_data_refs_alignment, vect_compute_data_refs_alignment,
18608         vect_enhance_data_refs_alignment, vect_analyze_operations,
18609         exist_non_indexing_operands_for_use_p, vect_mark_relevant,
18610         vect_stmt_relevant_p, vect_get_loop_niters,
18611         vect_analyze_data_ref_dependence, vect_compute_data_ref_alignment,
18612         vect_analyze_data_ref_access, vect_analyze_pointer_ref_access,
18613         vect_can_advance_ivs_p, vect_get_ptr_offset, vect_analyze_offset_expr,
18614         vect_base_addr_differ_p, vect_object_analysis, vect_address_analysis,
18615         vect_get_memtag): Likewise.
18616
18617         (vectorizable_load): Function externalized. Declaration moved to
18618         tree-vectorized.h. Function definition moved to tree-vect-transform.c.
18619         (vectorizable_store, vectorizable_operation, vectorizable_assignment,
18620         vect_transform_loop): Likewise.
18621         (vect_transform_stmt): Moved to tree-vect-transform.c.
18622         (vect_align_data_ref, vect_create_destination_var,
18623         vect_create_data_ref_ptr, vect_create_index_for_vector_ref,
18624         vect_create_addr_base_for_vector_ref, vect_get_new_vect_var,
18625         vect_get_vec_def_for_operand, vect_init_vector,
18626         vect_finish_stmt_generation, vect_generate_tmps_on_preheader,
18627         vect_build_loop_niters, vect_update_ivs_after_vectorizer,
18628         vect_gen_niters_for_prolog_loop, vect_update_inits_of_dr,
18629         vect_update_inits_of_drs, vect_do_peeling_for_alignment,
18630         vect_do_peeling_for_loop_bound): Likewise.
18631
18632         * tree-vect-analyze.c: New file.
18633         * tree-vect-transform.c: New file.
18634
18635 2005-02-17  Jason Merrill  <jason@redhat.com>
18636
18637         PR mudflap/19319, c++/19317
18638         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
18639         slot explicit.
18640
18641 2005-02-17  Gerald Pfeifer  <gerald@pfeifer.com>
18642
18643         * doc/install.texi (Specific): Update link for Darwin-specific
18644         tool binary site.
18645
18646 2005-02-16  James A. Morrison  <phython@gcc.gnu.org>
18647
18648         * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
18649         constant_boolean_node.
18650
18651 2005-02-16  David Edelsohn  <edelsohn@gnu.org>
18652
18653         PR target/19019
18654         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
18655         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Same.
18656
18657 2005-02-16  Richard Henderson  <rth@redhat.com>
18658
18659         PR 19920
18660         * libgcc2.c (WORD_SIZE): Remove all definitions; replace uses
18661         with W_TYPE_SIZE.
18662         (HIGH_WORD_COEFF, HIGH_HALFWORD_COEFF): Remove all definitions;
18663         replace uses with Wtype_MAXp1_F.
18664         (L_fixunstfdi, L_fixtfdi, L_floatditf, L_fixunsxfdi, L_fixxfdi,
18665         L_floatdixf, L_fixunsxfsi, L_fixunsdfdi, L_floatdidf, L_fixunsdfsi,
18666         L_powidf2, L_powixf2, L_powitf2, L_muldc3, L_divdc3, L_mulxc3,
18667         L_divxc3, L_multc3, L_divtc3): Protect with HAVE_DFMODE, HAVE_XFMODE,
18668         and HAVE_TFMODE as appropriate.
18669         (__fixunssfDI): Provide an implementation that doesn't need DFmode.
18670         (__floatdisf): Likewise.
18671         * libgcc2.h (LIBGCC2_DOUBLE_TYPE_SIZE): New.
18672         (HAVE_DFMODE, HAVE_XFMODE, HAVE_TFMODE): New.
18673         (Wtype_MAXp1_F): New.
18674         (DFtype, DCtype, __fixdfdi, __floatdidf, __fixunsdfSI, __fixunsdfDI,
18675         __powidf2, __divdc3, __muldc3): Protect with HAVE_DFMODE.
18676
18677 2005-02-16  Richard Earnshaw  <rearnsha@arm.com>
18678
18679         * PR target/19162
18680         * arm.c (arm_apply_result_size): New function.
18681         * arm.h (APPLY_RESULT_SIZE): Define.
18682         * arm-protos.h (arm_apply_result_size): Add prototype.
18683         * arm.md (RO_REGNUM, FPA_F0_REGNUM, FPA_F7_REGNUM): New constants.
18684         (movxf): New expand.
18685         (ldmsi_postinc4_thumb, stmsi_postinc4_thumb): New patterns for Thumb.
18686         (call_value_symbol): Remove predicate for operand 0.
18687         (call_value_insn, sibcall_value, sibcall_value_insn): Likewise.
18688         (untyped_call): Rework to correclty return values for any type.
18689         (untyped_return): New expand.
18690         * fpa.md (movxf_fpa): Simplify and use sfm/lfm when appropriate.
18691
18692 2005-02-16  Stan Shebs  <shebs@apple.com>
18693
18694         * config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or later.
18695         * config/rs6000/t-darwin8: New, for 64-bit multilib.
18696
18697 2005-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
18698
18699         * doc/install.texi (sparc-sun-solaris2*): Document required GMP
18700         configure settings on Solaris 7 and later.
18701
18702 2005-02-16  Diego Novillo  <dnovillo@redhat.com>
18703
18704         PR tree-optimization/19865
18705         * tree-optimize.c (init_tree_optimization_passes): Run
18706         pass_may_alias after pass_sra.
18707
18708 2005-02-16  Richard Henderson  <rth@redhat.com>
18709             Stuart Hastings  <stuart@apple.com>
18710
18711         PR debug/19521
18712         * dbxout.c (dbxout_function_end): Take decl parameter; update callers.
18713         Do nothing if debug info suppressed for this function.
18714         (dbxout_begin_function): Early exit if debug info suppressed for
18715         this function.
18716
18717 2005-02-16  Kazu Hirata  <kazu@cs.umass.edu>
18718
18719         PR target/20007
18720         * config/ip2k/ip2k.c (ip2k_reorg): Adjust calls to
18721         find_basic_blocks.
18722         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18723
18724         PR tree-optimization/19967
18725         * builtins.c (expand_builtin_strstr, expand_builtin_strpbrk,
18726         expand_builtin_strchr, expand_builtin_strrchr): Take a new
18727         argument TYPE.  Adjust calls to fold_builtin_XXX.
18728         (expand_builtin, fold_builtin_1): Adjust calls to
18729         expand_builtin_XXX.
18730         (fold_builtin_strchr, fold_builtin_strpbrk,
18731         fold_builtin_strstr, fold_builtin_strrchr): Convert the folded
18732         result to a requested type TYPE.
18733
18734 2005-02-16  Jakub Jelinek  <jakub@redhat.com>
18735
18736         PR middle-end/19857
18737         * fold-const.c (fold): Don't optimize (T)(x & cst) to
18738         (T)x & (T)cst if (T)cst overflows.
18739         * convert.c (convert_to_integer) <case POINTER_TYPE>: Pass
18740         TYPE_UNSIGNED (type) as type_for_size's UNSIGNEDP argument.
18741
18742 2005-02-15  Jeff Law  <law@redhat.com>
18743
18744         * gcse.c (blocks_with_calls): New bitmap.
18745         (alloc_gcse_mem): Allocate it.
18746         (free_gcse_mem): Free it.
18747         (clear_modifY_mem_tables): Clear it.
18748         (record_last_mem_set_info): Set the proper bit in BLOCK_WITH_CALLS
18749         when we encounter CALL_INSNs.
18750         (compute_transp, case MEM): Handle blocks with calls separate
18751         from blocks without calls.  Use bitmap iterators rather than
18752         FOR_EACH_BB.
18753
18754 2005-02-15  Peter O'Gorman  <peter@pogma.com>
18755
18756         PR bootstrap/18810
18757         * mklibgcc.in (vis_hide): Use a temporary object file, not
18758         -o /dev/null.
18759
18760 2005-02-15  Andy Hutchinson  <HutchinsonAndy@netscape.net>
18761
18762         PR target/19924
18763         * config/avr/avr.h (MODES_TIEABLE_P): Define to 1 to allow subreg
18764         access optimization.
18765
18766 2005-02-15  David Edelsohn  <edelsohn@gnu.org>
18767             Alan Modra  <amodra@bigpond.net.au>
18768
18769         PR target/19019
18770         * config/rs6000/darwin-ldouble.c (_xlqadd): Rename to __gcc_qadd.
18771         (_xlqsub): Rename to __gcc_qsub.
18772         (_xlqmul): Rename to __gcc_qmul.
18773         (_xlqdiv): Rename to __gcc_qdiv.
18774         Provide versioned symbol aliases with old names.
18775         * config/rs6000/libgcc-ppc64.ver: Rename symbols.
18776         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Rename symbols.
18777         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): New.
18778         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): New.
18779         * config/rs6000/t-newas (LIB2FUNCS_EXTRA): New.
18780
18781 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
18782
18783         * fold-const.c (fold): Fold -(~A) to A + 1.  Fold ~(-A) to A - 1.
18784         Fold ~(A - 1) and ~(A + -1) to -A.
18785
18786 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
18787
18788         PR pch/14940
18789         PR target/19300
18790         * config/host-linux.c (linux_gt_pch_use_address): Copy from
18791         config/pa/pa-host.c:pa_gt_pch_use_address.
18792
18793 2005-02-15  Daniel Berlin  <dberlin@dberlin.org>
18794
18795         * tree-vn.c (get_value_handle): Make sure that given an
18796         is_gimple_min_invariant expression, we always return it.
18797
18798 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
18799
18800         * passes.c (rest_of_handle_gcse): Fix a comment.
18801
18802 2005-02-15  Jeff Law  <law@redhat.com>
18803
18804         * gcse.c (canon_modify_mem_set_list_set): Kill unnecessary
18805         bitmap.
18806         (alloc_gcse_mem, free_gcse_mem): Corresponding changes.
18807         (canon_list_insert, record_last_mem_set_info): Similarly.
18808         (clear_modify_mem_tables): Similarly.
18809
18810 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
18811
18812         * bitmap.c, bitmap.h, lambda-code.c, tree-dfa.c, tree-dump.c,
18813         tree-dump.h, tree-ssa-loop-manip.c, value-prof.c,
18814         config/mips/mips.md, config/rs6000/aix.h,
18815         config/rs6000/beos.h, config/rs6000/sysv4.h: Update copyright.
18816
18817 2005-02-15  Richard Henderson  <rth@redhat.com>
18818
18819         * bb-reorder.c (find_traces_1_round): Force fallthru edge from a
18820         call to be best_edge.
18821
18822 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
18823
18824         * basic-block.h: Adjust the prototype for find_basic_blocks.
18825         * cfgbuild.c (find_basic_blocks): Remove unused arguments.
18826         * passes.c (rest_of_handle_loop_optimize): Adjust the call to
18827         find_basic_blocks.
18828
18829         * flow.c (recompute_reg_usage): Remove all arguments.
18830         * passes.c (rest_of_compilation): Adjust the call to
18831         recompute_reg_usage.
18832         * rtl.h: Adjust the prototype for recompute_reg_usage.
18833
18834 2005-02-14  Daniel Berlin  <dberlin@dberlin.org>
18835
18836         * tree-dump.c (dump_files): Update to reflect new member
18837         of dump_file_info.
18838         (dump_register): Add new argument.
18839         Set glob name.
18840         (dump_switch_p_1): Check against glob name if doglob was passed.
18841         (dump_switch_p): Check against regular first, then glob if
18842         we didn't have any hits on the dump name.
18843         * tree-optimize.c (register_one_dump_file):
18844         Pass in glob name as well.
18845         * tree-pass.h (struct dump_file_info): Add glob
18846         member.
18847
18848 2005-02-14  Joseph S. Myers  <joseph@codesourcery.com>
18849
18850         PR preprocessor/16323
18851         * doc/invoke.texi: Document that -Wendif-labels is on by default.
18852
18853 2005-02-14  David Edelsohn  <edelsohn@gnu.org>
18854
18855         PR target/19019
18856         * config/rs6000/rs6000.md (trunctfdf2): Change to define_expand.
18857         (trunctfdf2_internal1): New.
18858         (trunctfdf2_internal2): Renamed from trunctfdf2.
18859
18860 2005-02-14  Diego Novillo  <dnovillo@redhat.com>
18861
18862         PR tree-optimization/19853
18863         * tree-dfa.c (add_referenced_var): Always examine DECL_INITIAL.
18864
18865 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
18866
18867         * passes.c (rest_of_handle_loop_optimize): Remove calls to
18868         delete_dead_jumptables and cleanup_cfg.
18869
18870 2005-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
18871
18872         * reload.c (find_reloads): Swap address_reloaded flags when
18873         swapping commutative operands.
18874
18875 2005-02-14  Sebastian Pop  <pop@cri.ensmp.fr>
18876
18877         * lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):
18878         Use standard_iv_increment_position for computing the bsi position
18879         for create_iv.
18880         * tree-ssa-loop-manip.c (create_iv): Add a comment on how to compute
18881         the bsi position.
18882
18883 2005-02-13  Zdenek Dvorak  <dvorakz@suse.cz>
18884
18885         PR target/17428
18886         * cfgrtl.c (safe_insert_insn_on_edge): Avoid extending
18887         life range of hard registers.
18888         * value-prof.c (insn_prefetch_values_to_profile): Only
18889         scan normal insns.
18890
18891         * value-prof.c (rtl_find_values_to_profile): Do not look for values to
18892         profile in libcalls.
18893
18894 2005-02-13  Nathan Sidwell  <nathan@codesourcery.com>
18895
18896         * bitmap.h (bitmap_and_compl_into): Return bool.
18897         * bitmap.c (bitmap_and_compl_into): Return changed flag.
18898
18899 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
18900
18901         PR tree-optimization/19944
18902         * fold-const.c (fold): Re-add ABS_EXPR folding.
18903
18904 2005-02-13  David Edelsohn  <edelsohn@gnu.org>
18905
18906         PR target/19019
18907         * config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
18908         {TARGET,MASK}_XL_COMPAT.
18909         (SUBTARGET_SWITCHES): Rename xl-call to xl-compat.  Use
18910         MASK_XL_COMPAT.
18911         * config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
18912         * config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
18913         TARGET_XL_COMPAT.
18914         (rs6000_arg_partial_bytes): Same.
18915         (rs6000_generate_compare): Generate PARALLEL for compare if TFmode
18916         and XL compatibility enabled.
18917         * config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
18918         * config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
18919         test to final condition.
18920         (cmptf_internal2): New.
18921         * doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
18922         xl-compat.  Add TFmode information to description.
18923
18924 2005-02-13  Kazu Hirata  <kazu@cs.umass.edu>
18925
18926         * flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
18927
18928 2005-02-13  Jason Merrill  <jason@redhat.com>
18929
18930         PR c++/16405
18931         * fold-const.c (fold_indirect_ref_1): Split out from...
18932         (build_fold_indirect_ref): Here.
18933         (fold_indirect_ref): New fn.
18934         * tree.h: Declare it.
18935         * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
18936         (gimplify_modify_expr_rhs): Likewise.
18937         (gimplify_expr): Likewise.
18938
18939 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
18940
18941         PR tree-optimization/14303
18942         PR tree-optimization/15784
18943         * fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
18944         Fold ABS_EXPR<x> < 0 to false.  Fold ABS_EXPR<x> == 0 to x == 0 and
18945         ABS_EXPR<x> != 0 to x != 0.
18946
18947 2005-02-12  Kazu Hirata  <kazu@cs.umass.edu>
18948
18949         * c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
18950         simplify-rtx.c, tree-ssa-live.h: Fix comment typos.  Follow
18951         spelling conventions.
18952
18953         * passes.c (rest_of_handle_gcse): Don't run cse_main and
18954         delete_trivially_dead_insns too many times.
18955
18956         * passes.c (rest_of_handle_gcse): Remove dead assignments to
18957         tem and tem2.
18958
18959 2005-02-12  Ira Rosen  <irar@il.ibm.com>
18960
18961         * tree-vectorizer.c (vect_get_base_and_offset): Remove.
18962         (vect_is_simple_iv_evolution): Remove redundant parameter
18963         and step check.
18964         (vect_analyze_scalar_cycles): Call vect_is_simple_iv_evolution
18965         without last parameter.
18966         (vect_analyze_pointer_ref_access): Get access_fn as parameter.
18967         Return pointer step. Call vect_is_simple_iv_evolution without
18968         last parameter. Check only that the step is multiple of size
18969         type. Remove stmt_vinfo updates.
18970         (vect_get_memtag_and_dr): Remove.
18971         (vect_get_memtag): New function.
18972         (vect_address_analysis): New function.
18973         (vect_object_analysis): New function.
18974         (vect_analyze_data_refs): Call vect_object_analysis and
18975         vect_get_memtag. Update stmt_vinfo fields.
18976
18977 2005-02-12  Ira Rosen  <irar@il.ibm.com>
18978
18979         * tree-data-ref.c (array_base_name_differ_p): Check that the bases
18980         exist and are objects. Remove checks for pointer.
18981         * tree-vectorizer.c (vect_create_addr_base_for_vector_ref): Use
18982         STMT_VINFO_VECT_DR_BASE_ADDRESS instead of DR_BASE_NAME.
18983         (vect_create_data_ref_ptr): Likewise.
18984         (vect_base_addr_differ_p): New function.
18985         (vect_analyze_data_ref_dependence): Call vect_base_addr_differ_p.
18986         (vect_analyze_pointer_ref_access): Add output parameter - ptr_init.
18987         Don't set the DR_BASE_NAME field of data-ref.
18988         (vect_get_memtag_and_dr): Use ptr_init instead of DR_BASE_NAME.
18989
18990 2005-02-12  Uros Bizjak  <uros@kss-loka.si>
18991
18992         * optabs.h (enum optab_index): Add new OTI_ldexp.
18993         (ldexp_optab): Define corresponding macro.
18994         * optabs.c (init_optabs): Initialize ldexp_optab.
18995         * genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
18996         patterns.
18997         * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
18998         using ldexp_optab.
18999         (expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
19000         expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.
19001
19002         * config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
19003         to implement ldexpf, ldexp and ldexpl built-ins as inline x87
19004         intrinsics.
19005
19006 2005-02-12  Ira Rosen  <irar@il.ibm.com>
19007
19008         * tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
19009         to base_address.
19010         * tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
19011         stmt_vec_info.
19012         (vect_get_base_and_offset): Always return an address.
19013         (vect_create_addr_base_for_vector_ref): Remove treatment for
19014         different data reference types.
19015         (vect_compute_data_ref_alignment): Rename base to base_address in
19016         stmt_vec_info. Get the object in order to force its alignment.
19017         (vect_get_memtag_and_dr): Rename base to base_address in
19018         stmt_vec_info. Extract the object for memtag analysis.
19019
19020 2005-02-12  Hans-Peter Nilsson  <hp@axis.com>
19021
19022         PR regression/19898.
19023         * config/cris/cris.c (cris_notice_update_cc): When testing if insn
19024         changes cc_status, use apply modified_in_p to part of cc_status
19025         and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
19026         body.
19027
19028 2005-02-11  Richard Henderson  <rth@redhat.com>
19029
19030         * tree-complex.c (expand_complex_libcall): New.
19031         (expand_complex_multiplication): Use it for c99 compliance.
19032         (expand_complex_division): Likewise.
19033         * fold-const.c (fold_complex_add, fold_complex_mult): New.
19034         (fold): Call them.
19035         * builtins.c (built_in_names): Remove const.
19036         * tree.c (build_common_builtin_nodes): Build complex arithmetic
19037         builtins.
19038         * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
19039         (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
19040         (built_in_names): Remove const.
19041         * c-common.c (c_common_type_for_mode): Handle complex modes.
19042         * flags.h, toplev.c (flag_complex_method): Rename from
19043         flag_complex_divide_method.
19044         * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
19045         __mulsc3, __muldc3, __mulxc3, __multc3): New.
19046         * libgcc2.h: Declare them.
19047         * libgcc-std.ver: Export them.
19048         * mklibgcc.in (lib2funcs): Build them.
19049
19050 2005-02-11  Steven Bosscher  <stevenb@suse.de>
19051
19052         PR tree-optimization/19876
19053         Partially revert my change from 2005-01-14
19054         * tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
19055         (compute_antic): ...and remove the loop here.
19056
19057 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
19058
19059         PR middle-end/19858
19060         * fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
19061         is number of inner's bits, avoid creating a BIT_FIELD_REF.
19062
19063         * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
19064         crtend.o if -pie.  Use %{x:a;:b} spec syntax.
19065
19066 2005-02-11  Daniel Jacobowitz  <dan@codesourcery.com>
19067
19068         * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
19069         offsets for the big-endian 32-bit case.
19070
19071 2005-02-11  Joseph S. Myers  <joseph@codesourcery.com>
19072
19073         * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
19074
19075 2005-02-11  Dale Johannesen  <dalej@apple.com>
19076
19077         * cselib.c (cselib_process_insn):  Clear out regs where
19078         HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
19079         * reload.c (find_equiv_reg): Ditto.
19080
19081 2005-02-11  Ian Lance Taylor  <ian@airs.com>
19082
19083         * read-rtl.c (read_rtx_1): Give fatal error if we see a vector
19084         with no elements.
19085
19086         * tree.c (build_function_type_list): Work correctly if there are
19087         no arguments.
19088
19089 2005-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
19090
19091         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
19092         "*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
19093         ("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
19094         TARGET_ZARCH instead of TARGET_64BIT.
19095
19096 2005-02-11  Ralf Corsepius  <ralf.corsepius@rtems.org>
19097
19098         * config/rs6000/t-rtems:
19099         (MULTILIB_OPTIONS): Remove mcpu=602.
19100         (MUTLILIB_DIRNAMES): Remove m602.
19101         (MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}.
19102         Let mcpu=602 match mcpu=603.
19103         (MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603.
19104
19105 2005-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19106
19107         * pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned
19108         signal trampolines.
19109
19110 2005-02-10  David Daney  <ddaney@avtrex.com>
19111
19112         * config/alpha/linux-unwind.h: Add exception clause to copyright.
19113         * config/i386/linux-unwind.h: Likewise.
19114         * config/ia64/linux-unwind.h: Likewise.
19115         * config/mips/linux-unwind.h: Likewise.
19116         * config/pa/linux-unwind.h: Likewise.
19117         * config/rs6000/linux-unwind.h: Likewise.
19118         * config/s390/linux-unwind.h: Likewise.
19119         * config/sh/linux-unwind.h: Likewise.
19120         * config/sparc/linux-unwind.h: Likewise.
19121
19122 2005-02-10  Steven Bosscher  <stevenb@suse.de>
19123
19124         PR tree-optimization/17549
19125         * tree-outof-ssa.c (find_replaceable_in_bb): Do not allow
19126         TER to replace a DEF with its expression if the DEF and the
19127         rhs of the expression we replace into have the same root
19128         variable.
19129
19130 2005-02-10  Richard Sandiford  <rsandifo@redhat.com>
19131
19132         * config/mips/mips.md: Fix the placement of the match_scratch in the
19133         lea64 peephole2.
19134
19135 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
19136
19137         * cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
19138         Fix comment typos.
19139
19140 2005-02-10  Zdenek Dvorak  <dvorakz@suse.cz>
19141
19142         * tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
19143         (strip_offset): Handle addresses.
19144         (add_address_candidates): Use strip_offset.
19145         (difference_cost): Reflect strip_offset change.
19146         (force_var_cost, difference_cost): Strip nops.
19147
19148 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
19149
19150         * df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.
19151
19152         * builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h,
19153         tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c,
19154         config/cris/cris-protos.h, config/cris/cris.c: Update
19155         copyright.
19156
19157 2005-02-10  Jeff Law  <law@redhat.com>
19158
19159         * tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
19160         (lookup_avail_expr): Similarly.
19161
19162 2005-02-10  Richard Guenther  <rguenth@gcc.gnu.org>
19163
19164         * builtins.c (fold_builtin_powi): New function.
19165         (fold_builtin_1): Call it.
19166
19167 2005-02-10  Steven Bosscher  <stevenb@suse.de>
19168
19169         PR documentation/19309
19170         * doc/cpp.texi: The __GNUC__ and related predefined macros
19171         are also defined for the "standalone" cpp.
19172         Some non-GCC compilers may also define __GNUC__.
19173
19174 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
19175
19176         PR c/19342
19177         * c-typeck.c (common_type): New routine.  Old common_type renamed
19178         to...
19179         (c_common_type): ...this.
19180         (build_conditional_expr, build_binary_op): Use c_common_type instead
19181         of common_type.
19182
19183 2005-02-10  Steven Bosscher  <stevenb@suse.de>
19184
19185         * doc/md.texi: Replace @samp{length} with @code{length}.
19186
19187 2005-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
19188
19189         PR tree-optimization/18687
19190         * tree-flow.h (find_loop_niter): Declare.
19191         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
19192         Try using scev even for loops with more than one exit.
19193         * tree-ssa-loop-ivopts.c (struct loop_data): Removed niter field.
19194         (struct ivopts_data): Added niters field.
19195         (struct nfe_cache_elt): New.
19196         (nfe_hash, nfe_eq, niter_for_exit, niter_for_single_dom_exit): New
19197         functions.
19198         (tree_ssa_iv_optimize_init): Initialize niters cache.
19199         (determine_number_of_iterations): Removed.
19200         (find_induction_variables): Do not call determine_number_of_iterations.
19201         Access niters for single exit through niter_for_single_dom_exit.
19202         (add_iv_outer_candidates): Access niters for single exit through
19203         niter_for_single_dom_exit.
19204         (may_eliminate_iv): Take data argument.  Use niter_for_exit.  Do not use
19205         number_of_iterations_cond.
19206         (iv_period): New function.
19207         (determine_use_iv_cost_condition): Pass data to may_eliminate_iv.
19208         (may_replace_final_value): Take data argument.  Use
19209         niter_for_single_dom_exit.
19210         (determine_use_iv_cost_outer): Pass data to may_replace_final_value.
19211         (rewrite_use_compare): Pass data to may_eliminate_iv.
19212         (rewrite_use_outer): Pass data to may_replace_final_value.
19213         (free_loop_data): Clean up the niters cache.
19214         (tree_ssa_iv_optimize_finalize): Free the niters cache.
19215         (tree_ssa_iv_optimize_loop): Do not call loop_commit_inserts.
19216         * tree-ssa-loop-niter.c (find_loop_niter): New function.
19217         (find_loop_niter_by_eval): Use tree_int_cst_lt.
19218         (num_ending_zeros): Moved to tree.c.
19219         * tree.h (num_ending_zeros): Declare.
19220         * tree.c (num_ending_zeros): Moved from tree.c.
19221
19222 2005-02-09  Richard Henderson  <rth@redhat.com>
19223
19224         * builtins.c (DEF_BUILTIN): Add COND argument.
19225         * tree.h (DEF_BUILTIN): Likewise.
19226         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN, DEF_EXT_LIB_BUILTIN,
19227         DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN): Update to
19228         match.
19229         (DEF_BUILTIN_STUB): New.
19230         (BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE, BUILT_IN_INIT_TRAMPOLINE,
19231         BUILT_IN_ADJUST_TRAMPOLINE, BUILT_IN_NONLOCAL_GOTO,
19232         BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT): Use it.
19233         * c-common.c (DEF_BUILTIN): Add COND argument.
19234         * tree.c (local_define_builtin): New.
19235         (build_common_builtin_nodes): New.
19236
19237 2005-02-09  Roger Sayle  <roger@eyesopen.com>
19238
19239         * fold-const.c (fold_strip_sign_ops): New function to simplify a
19240         floating point expression ignoring the sign of the result.
19241         (fold) <ABS_EXPR>: Use it to simplify fabs(x).
19242         (fold) <MULT_EXPR>: Use it to simplify x*x.
19243         * tree.h (fold_strip_sign_ops): Prototype here.
19244         * builtins.c (fold_builtin_copysign): Take an additional FNDECL
19245         argument.  Use fold_strip_sign_ops to simplify the first argument.
19246         (fold_builtin_pow):  Use fold_strip_sign_ops to simplify the
19247         first argument when the second argument is an even integer
19248         constant, but only with -funsafe_math_optimizations.
19249         (fold_builtin_1): Update call to fold_builtin_copysign.
19250
19251 2005-02-09  Ian Lance Taylor  <ian@airs.com>
19252
19253         PR middle-end/19583
19254         * gimple-low.c (try_catch_may_fallthru): In EH_FILTER_EXPR case,
19255         just check whether EH_FILTER_FAILURE falls through.
19256
19257 2005-02-09  Andreas Krebbel  <krebbel1@de.ibm.com>
19258
19259         * gcc/haifa-sched.c (schedule_block): Make queued sched group
19260         insns return to ready list in the next turn.
19261
19262 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
19263
19264         PR middle-end/19402
19265         * builtins.def: New __builtin_powi[lf].
19266         * builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
19267         (expand_builtin_powi): New function.
19268         (expand_builtin): Dispatch to expand_builtin_powi.
19269         * libgcc2.h: Add prototypes for __builtin_powi[lf].
19270         * libgcc2.c: Add __builtin_powi[lf] implementation.
19271         * mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
19272         * optabs.h: Add powi_optab.
19273         * optabs.c (init_optabs): Initialize powi_optab.
19274         * doc/extend.texi: Document __builtin_powi[lf].
19275
19276 2005-02-09  Dorit Naishlos  <dorit@il.ibm.com>
19277
19278         * tree-vectorizer.c (vect_set_dump_settings): Check that dump_file
19279         exists.
19280
19281 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
19282
19283         PR middle-end/19854
19284         * fold-const.c (try_move_mult_to_index): Remove redundant
19285         type argument.  Create ADDR_EXPR with correct type.
19286         (fold): Update callers of try_move_mult_to_index.  Convert
19287         result to the appropriate type.
19288
19289 2005-02-09  Roger Sayle  <roger@eyesopen.com>
19290
19291         PR target/19597
19292         * config/avr/avr.c (default_rtx_costs): Delete.
19293         (avr_operand_rtx_cost): New function.
19294         (avr_rtx_costs): Completely rewrite.
19295
19296 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
19297
19298         PR target/19806
19299         * config/cris/cris.c (in_code): New variable.
19300         (cris_output_addr_const): Now a static function, a wrapper for
19301         output_addr_const.
19302         (cris_asm_output_symbol_ref): New function, broken out SYMBOL_REF
19303         case from old cris_output_addr_const.
19304         (cris_asm_output_label_ref): Similar for LABEL_REF.
19305         (cris_output_addr_const_extra): Similar for UNSPEC.
19306         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA)
19307         (ASM_OUTPUT_SYMBOL_REF, ASM_OUTPUT_LABEL_REF): Define.
19308         * config/cris/cris-protos.h (cris_output_addr_const): Remove
19309         declaration.
19310         (cris_asm_output_symbol_ref, cris_output_addr_const_extra)
19311         (cris_asm_output_label_ref): Declare.
19312
19313 2005-02-08  Paolo Bonzini  <bonzini@gnu.org>
19314
19315         PR preprocessor/19801
19316         * doc/cppinternals.texi (Conventions, Lexer, Files): Adjust
19317         filenames that changed when libcpp was moved to the toplevel.
19318
19319 2005-02-07  Roger Sayle  <roger@eyesopen.com>
19320
19321         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
19322         zero extensions of BImode operands.  Call lowpart_subreg instead
19323         of gen_lowpart_common and gen_lowpart_SUBREG.
19324
19325 2005-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
19326
19327         PR ada/19489
19328         * libada-mk.in: Use cc_for_cross_gnattools, not cc_set_by_configure.
19329         * configure.ac: Set cc_for_cross_gnattools.
19330         * configure: Regenerate.
19331
19332 2005-02-08  Alan Modra  <amodra@bigpond.net.au>
19333
19334         PR target/19803
19335         * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%.
19336
19337 2005-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
19338
19339         PR debug/19327
19340         * dbxout.c (dbxout_symbol) <FUNCTION_DECL>: Skip inline instance
19341         of nested functions.
19342
19343 2005-02-07  Jonathan Wakely  <redi@gcc.gnu.org>
19344
19345         * doc/extend.texi: Document deprecated extensions allowing
19346         static floating-point members to have initializers and allowing
19347         floating-point literals in integral constant expressions.
19348
19349 2005-02-07  Kazu Hirata  <kazu@cs.umass.edu>
19350
19351         * cfgcleanup.c, df.h, diagnostic.c, rtl.c, tree-vectorizer.h,
19352         config/darwin7.h, config/mips/mips.c,
19353         config/rs6000/altivec.md, config/rs6000/darwin-tramp.asm:
19354         Update copyright.
19355
19356         * cse.c: Update comments.
19357
19358 2005-02-07  Richard Guenther  <rguenth@gcc.gnu.org>
19359
19360         PR middle-end/19775
19361         * builtins.c (fold_builtin_sqrt): Transform
19362         sqrt(pow(x,y)) to pow(fabs(x),y*0.5), not
19363         pow(x,y*0.5).
19364
19365 2005-02-07  Leehod Baruch  <leehod@il.ibm.com>
19366             Dorit Naishlos  <dorit@il.ibm.com>
19367
19368         * doc/invoke.texi (ftree-vectorizer-verbose): New.
19369         * opts.c (OPT_ftree_vectorizer_verbose_): New case for switch.
19370         * common.opt (ftree-vectorizer-verbose): New Flag for the vectorizer
19371         was added.
19372         * tree.h (vect_set_verbosity_level): New extern function declaration
19373         added.
19374         * tree-vectorizer.h (verbosity_levels): New enum type.
19375         * tree-vectorizer.c (vect_debug_stats): Function removed.
19376         (vect_debug_details): Likewise.
19377         (vect_verbosity_level): Global variable was defined and initialized.
19378         (vect_dump): Global variable definition.
19379         (vect_print_dump_info): New function.
19380         (vect_set_dump_settings): New function.
19381         (vect_set_verbosity_level): New function.
19382         (vectorize_loops): Add call to vect_set_dump_settings.
19383
19384         (slpeel_make_loop_iterate_ntimes): Dump condition was changed.
19385         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
19386         (slpeel_tree_peel_loop_to_edge): Likewise.
19387
19388         (vect_analyze_offset_expr): Call to vect_print_dump_info with
19389         appropriate verbosity level instead of call to vect_debug_details
19390         or vect_debug_stats.
19391         (vect_get_base_and_offset):
19392         (vect_create_addr_base_for_vector_ref):
19393         (get_vectype_for_scalar_type):
19394         (vect_create_data_ref_ptr):
19395         (vect_init_vector):
19396         (vect_get_vec_def_for_operand):
19397         (vect_finish_stmt_generation):
19398         (vectorizable_assignment):
19399         (vectorizable_operation):
19400         (vectorizable_store):
19401         (vectorizable_load):
19402         (vect_transform_stmt):
19403         (vect_update_ivs_after_vectorizer):
19404         (vect_do_peeling_for_loop_bound):
19405         (vect_update_inits_of_drs):
19406         (vect_do_peeling_for_alignment):
19407         (vect_transform_loop):
19408         (vect_is_simple_use):
19409         (vect_analyze_operations):
19410         (vect_is_simple_iv_evolution):
19411         (vect_analyze_scalar_cycles):
19412         (vect_analyze_data_ref_dependence):
19413         (vect_analyze_data_ref_dependences):
19414         (vect_compute_data_ref_alignment):
19415         (vect_enhance_data_refs_alignment):
19416         (vect_analyze_data_refs_alignment):
19417         (vect_analyze_data_ref_access):
19418         (vect_analyze_data_ref_accesses):
19419         (vect_analyze_pointer_ref_access):
19420         (vect_get_memtag_and_dr):
19421         (vect_analyze_data_refs):
19422         (vect_mark_relevant):
19423         (vect_stmt_relevant_p):
19424         (vect_mark_stmts_to_be_vectorized):
19425         (vect_can_advance_ivs_p):
19426         (vect_get_loop_niters):
19427         (vect_analyze_loop_form):
19428         (vect_analyze_loop):
19429         (vectorize_loops): Likewise.
19430
19431         (vect_do_peeling_for_loop_bound): Dump format slightly changed.
19432         (vect_update_inits_of_drs):
19433         (vect_do_peeling_for_alignment):
19434         (vect_transform_loop):
19435         (vect_analyze_operations):
19436         (vect_analyze_scalar_cycles):
19437         (vect_analyze_data_ref_dependences):
19438         (vect_analyze_data_refs_alignment):
19439         (vect_analyze_data_ref_accesses):
19440         (vect_analyze_data_refs):
19441         (vect_mark_stmts_to_be_vectorized):
19442         (vect_get_loop_niters):
19443         (vect_analyze_loop_form):
19444         (vect_analyze_loop): Likewise.
19445         (vect_mark_stmts_to_be_vectorized): Add call to print_generic_expr.
19446
19447 2005-02-07  Richard Sandiford  <rsandifo@redhat.com>
19448
19449         PR bootstrap/19796
19450         Revert:
19451         2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
19452         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
19453         either -ffast-math or -funsafe-math-optimizations is in use.
19454
19455         2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
19456         * config/mips/irix-csr.c: New file.
19457         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
19458         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
19459         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
19460         executables.
19461
19462 2005-02-07  Alexandre Oliva  <aoliva@redhat.com>
19463
19464         * config/mn10300/linux.h (LIB_SPEC, STARTFILE_SPEC): Remove
19465         redundant, incorrect definitions.
19466
19467         * config/frv/frv.md ("tls_indirect_call"): Turn into libcall-like
19468         expand.
19469         ("*tls_indirect_call"): New, reference hard regs directly.
19470         * config/frv/frv.c (gen_inlined_tls_plt): Adjust.
19471
19472 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
19473
19474         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC):
19475         Let !-mhard-float !-msoft-float imply -mfpu=softfpa.
19476
19477 2005-02-06  Roger Sayle  <roger@eyesopen.com>
19478
19479         PR rtl-optimization/19800
19480         * simplify_rtx.c (simplify_relational_operation_1): Explicitly
19481         call gen_lowpart_common and gen_lowpart_SUBREG instead of calling
19482         gen_lowpart.
19483
19484 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
19485
19486         * config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200.
19487
19488 2005-02-07  Joseph S. Myers  <joseph@codesourcery.com>
19489
19490         PR other/17135
19491         * doc/invoke.texi: Correct documentation of -freorder-functions.
19492
19493 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
19494
19495         PR other/14402
19496         * doc/invoke.texi: Don't mention gccbug.
19497
19498 2005-02-06  Roger Sayle  <roger@eyesopen.com>
19499             Andrew Pinski  <pinskia@physics.uc.edu>
19500             Paolo Bonzini  <paolo.bonzini@lu.unisi.ch>
19501
19502         * simplify-rtx.c (simplify_relational_operation_1): Simplify
19503         (ne:SI (zero_extract:SI FOO (const_int 1) BAR) (const_int 0))
19504         into just (zero_extract:SI FOO (const_int 1) BAR).
19505
19506 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
19507
19508         * doc/cpp.texi: Include gcc-common.texi.  Don't define gcctabopt
19509         macro locally.  Don't give last revision date.  Use GCC version
19510         number from gcc-common.texi.
19511         * doc/cppinternals.texi: Include gcc-common.texi.  Don't give last
19512         revision date.  Use GCC version number from gcc-common.texi.
19513         Describe being a library as current state rather than as 3.x
19514         history.
19515         * doc/gcc.texi: Remove last update date.
19516         * doc/gccint.texi: Likewise.  Update copyright dates.
19517         * doc/install.texi: Update copyright dates.
19518
19519 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
19520
19521         PR other/7549
19522         * doc/invoke.texi: Mention for each option included in -Wall that
19523         it is included in -Wall.
19524         * doc/gcc.texi: Update copyright and last modification date.
19525
19526 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
19527
19528         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Do not add
19529         unnecessary cast to original induction variable increments.
19530
19531 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
19532
19533         PR tree-optimization/18219
19534         * tree-ssa-loop-ivopts.c (get_computation_at): Produce computations
19535         in distributed form.
19536
19537 2005-02-06  Richard Sandiford  <rsandifo@redhat.com>
19538
19539         * expmed.c (store_bit_field): Make the SUBREG code adjust bitnum.
19540         Set bitpos and offset later in the function.  Do nothing if the
19541         target is a register and if the bitfield lies completely outside
19542         that register.
19543         (extract_bit_field): Make the same SUBREG, bitpos and offset changes
19544         here.  Return an uninitialised register if the source value is stored
19545         in a register and the bitfield lies completely outside that register.
19546
19547 2005-02-06  Steven Bosscher  <stevenb@suse.de>
19548
19549         * df.c (df_insn_refs_record): Use XEXP to get the operand of a USE,
19550         not SET_DEST.
19551
19552 2005-02-06  Marcin Dalecki  <martin@dalecki.de>
19553
19554         * diagnostic.c (default_diagnostic_finalizer): Fix use of attribute.
19555
19556 2005-02-06  Geoffrey Keating  <geoffk@apple.com>
19557
19558         * config.gcc (*-*-darwin*): Separate darwin7 and darwin8 configs.
19559         * config/darwin8.h: New.
19560         * config/darwin7.h: Update comment.
19561
19562 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
19563             Dorit Naishlos  <dorit@il.ibm.com>
19564
19565         * tree-vectorizer.h (LOC): New type.
19566         (UNKNOWN_LOC, EXPR_LOC, LOC_FILE, LOC_LINE): New macros.
19567         (loop_line_number): New field in struct _loop_vec_info.
19568         (LOOP_VINFO_LOC, LOOP_LOC): New macros.
19569
19570         * tree-vectorizer.c (input.h): Included.
19571         (find_loop_location): New function.
19572         (vect_debug_stats): Argument changed from loop to LOC. Computation of
19573         loop line number removed.
19574         (vect_debug_details): Likewise.
19575         (new_loop_vec_info): Initialize new field LOOP_VINFO_LOC.
19576
19577         (slpeel_make_loop_iterate_ntimes): Call find_loop_location. Argument in
19578         call to vect_debug_details/stats changed from loop to loop_loc.
19579         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
19580         (slpeel_tree_peel_loop_to_edge): Likewise.
19581
19582         (vect_analyze_offset_expr): Argument in call to vect_debug_details/stats
19583         changed from NULL to UNKNOWN_LOC.
19584         (vect_get_base_and_offset):
19585         (vect_create_addr_base_for_vector_ref):
19586         (get_vectype_for_scalar_type):
19587         (vect_create_data_ref_ptr):
19588         (vect_init_vector):
19589         (vect_get_vec_def_for_operand):
19590         (vect_finish_stmt_generation):
19591         (vectorizable_assignment):
19592         (vectorizable_operation):
19593         (vectorizable_store):
19594         (vectorizable_load):
19595         (vect_transform_stmt):
19596         (vect_update_ivs_after_vectorizer):
19597         (vect_do_peeling_for_loop_bound):
19598         (vect_do_peeling_for_alignment):
19599         (vect_transform_loop):
19600         (vect_is_simple_use):
19601         (vect_analyze_operations):
19602         (vect_is_simple_iv_evolution):
19603         (vect_analyze_scalar_cycles):
19604         (vect_analyze_data_ref_dependences):
19605         (vect_compute_data_ref_alignment):
19606         (vect_enhance_data_refs_alignment):
19607         (vect_analyze_data_ref_access):
19608         (vect_analyze_data_ref_accesses):
19609         (vect_analyze_pointer_ref_access):
19610         (vect_get_memtag_and_dr):
19611         (vect_analyze_data_refs):
19612         (vect_mark_relevant):
19613         (vect_stmt_relevant_p):
19614         (vect_mark_stmts_to_be_vectorized):
19615         (vect_can_advance_ivs_p):
19616         (vect_get_loop_niters):
19617         (vect_analyze_loop):
19618         (vectorize_loops): Likewise.
19619
19620         (vectorizable_load): Argument in call to vect_debug_details/stats
19621         changed from loop to LOOP_LOC (loop_vinfo).
19622         (vect_transform_loop):
19623         (vect_analyze_operations):
19624         (vect_analyze_scalar_cycles):
19625         (vect_analyze_data_ref_dependence):
19626         (vect_enhance_data_refs_alignment):
19627         (vect_analyze_data_ref_accesses):
19628         (vect_analyze_pointer_ref_access):
19629         (vect_analyze_data_refs):
19630         (vect_analyze_loop): Likewise.
19631
19632         (vect_analyze_loop_form): Argument in call to vect_debug_details/stats
19633         changed from loop to loop_loc.
19634
19635         (vect_enhance_data_refs_alignment): Removed unused variable loop.
19636
19637 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
19638             Dorit Naishlos  <dorit@il.ibm.com>
19639
19640         * tree-vectorizer.c (vect_analyze_data_ref_dependence): Function
19641         declaration added.
19642         (vect_analyze_data_ref_dependences): Likewise.
19643
19644         (vect_is_simple_use): Argument changed from loop structure to
19645         loop_vect_info structure.
19646         (vect_can_advance_ivs_p): Likewise.
19647         (vect_create_index_for_vector_ref): Likewise.
19648         (vect_update_ivs_after_vectorizer): Likewise.
19649         (new_stmt_vec_info): Likewise.
19650
19651         (new_loop_vec_info): Second argument in call to new_stmt_vec_info was
19652         changed from loop to loop_vinfo.
19653         (vect_create_data_ref_ptr): First argument in call to
19654         vect_create_index_for_vector_ref was changed from loop to loop_vinfo.
19655         (vectorizable_assignment): Second argument in call to vect_is_simple_use
19656         was changed from loop to loop_vinfo.
19657         (vectorizable_operation): Likewise.
19658         (vectorizable_store): Likewise.
19659         (vect_mark_stmts_to_be_vectorized): Likewise.
19660         (vect_do_peeling_for_loop_bound): First argument in call to
19661         vect_update_ivs_after_vectorizer was changed from loop to loop_vinfo.
19662         (vect_analyze_operations): Argument in call to vect_can_advance_ivs_p
19663         was changed from loop to loop_vinfo.
19664         (vect_analyze_data_ref_dependences): Third argument in call to
19665         vect_analyze_data_ref_dependence was changed from loop to loop_vinfo.
19666
19667         (vect_create_index_for_vector_ref): Get the loop from loop_vinfo.
19668         (vect_create_data_ref_ptr): Likewise.
19669         (vect_init_vector): Likewise.
19670         (vect_get_vec_def_for_operand): Likewise.
19671         (vectorizable_assignment): Likewise.
19672         (vectorizable_operation): Likewise.
19673         (vectorizable_store): Likewise.
19674         (vectorizable_load): Likewise.
19675         (vect_update_ivs_after_vectorizer): Likewise.
19676         (vect_is_simple_use): Likewise.
19677         (vect_analyze_data_ref_dependence): Likewise.
19678         (vect_analyze_pointer_ref_access): Likewise.
19679         (vect_can_advance_ivs_p): Likewise.
19680
19681         * tree-vectorizer.h: (_loop_vec_info): Definition and macros moved
19682         before _stmt_vec_info.
19683         (_stmt_vec_info): Loop field replaced by loop_vec_info.
19684         (STMT_VINFO_LOOP): Replaced with STMT_VINFO_LOOP_VINFO.
19685         (new_stmt_vec_info): Argument changed from loop structure to
19686         loop_vect_info structure
19687
19688         (vect_analyze_data_ref_dependences): Unnecessary line was removed.
19689         (vect_analyze_offset_expr): Avoid 80 columns overflow.
19690         (vect_create_addr_base_for_vector_ref): Likewise.
19691         (vect_analyze_pointer_ref_access): Likewise.
19692
19693 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
19694
19695         PR tree-opt/19768
19696         * tree-ssa-dse.c (fix_phi_uses): Update the occurs in abnormal
19697         phi flag if the phi is abnormal.
19698
19699 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
19700
19701         PR tree-opt/19736
19702         * tree-ssa.c (replace_immediate_uses): Update the immediate_uses
19703         information for the new statement.
19704
19705 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
19706
19707         PR driver/19117
19708         * gcc.c (main): Include the target in -v output.
19709
19710 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
19711
19712         * combine.c (simplify_comparison, case SIGN_EXTEND, ZERO_EXTEND):
19713         Do not drop the extend if we'd have to add a paradoxical subreg
19714         later.  Include optabs.h and insn-codes.h.
19715         * Makefile.in (combine.o): Depend on $(OPTABS_H).
19716
19717 2005-02-02  Roger Sayle  <roger@eyesopen.com>
19718
19719         PR middle-end/19405
19720         * real.h (REAL_MODE_FORMAT_COMPOSITE_P): New macro.
19721         * fold-const.c (const_binop): Avoid constant folding floating
19722         point operations in modes that use composite representations.
19723         * simplify-rtx.c (simplify_binary_operation): Likewise.
19724
19725 2005-02-02  Geoffrey Keating  <geoffk@apple.com>
19726
19727         * config/rs6000/altivec.md (altivec_dst): Make the first operand
19728         a REG, not a MEM.
19729         (altivec_dstt): Likewise.
19730         (altivec_dstst): Likewise.
19731         (altivec_dststt): Likewise.
19732         * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Adjust creation
19733         of first operand.
19734
19735 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
19736
19737         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Copy
19738         EXPR_LOCUS from orig_cond to the new cond_stmt.
19739         (vect_finish_stmt_generation): Copy EXPR_LOCUS from stmt to
19740         the new vec_stmt.
19741
19742 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
19743
19744         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Call
19745         standard_iv_increment_position. Remove call to bsi_next
19746         (no need to bump the iterator anymore).
19747         (vect_create_index_for_vector_ref): Call
19748         standard_iv_increment_position. Remove second function argument.
19749         (vect_finish_stmt_generation): Remove call to bsi_next
19750         (no need to bump the iterator anymore).
19751         (vect_create_data_ref_ptr): Remove second argument (bsi) in call
19752         to vect_create_index_for_vector_ref.
19753
19754 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
19755
19756         * tree-vectorizer.c (vect_mark_stmts_to_be_vectorized): Check if
19757         phis are used out of the loop.
19758
19759 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
19760
19761         PR c/17807
19762         * c-decl.c (undef_nested_function): New variable.
19763         (pop_scope): Diagnose undefined nested functions.
19764         (finish_function): Don't attempt cgraph processing or genericizing
19765         if current top-level function contained an undefined nested
19766         function.  Reset undef_nested_function at the end of a top-level
19767         function.
19768
19769 2005-02-02  Zdenek Dvorak  <dvorakz@suse.cz>
19770
19771         * tree.c (build_int_cst_type): Take sign of the value into account
19772         when deciding whether sign extend the value.
19773
19774 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
19775
19776         PR c/18502
19777         * gcc.c (cpp_unique_options): Remove %{trigraphs}.
19778         (cpp_options, cc1_options): Change %{std*&ansi} to
19779         %{std*&ansi&trigraphs}.
19780
19781 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
19782
19783         * cse.c: Update comments.
19784
19785 2005-02-02  Aldy Hernandez  <aldyh@redhat.com>
19786
19787         * config/rs6000/rs6000.c (rs6000_spe_function_arg): Multi-reg
19788         arguments go on the stack.  Do not put complex doubles in odd/even
19789         pairs.
19790
19791 2005-02-02  Steven Bosscher  <stevenb@suse.de>
19792
19793         * doc/invoke.texi: Update the options enabled at -O1, -O2,
19794         and -O3.  Update the documentation for -fgcse-sm, -fgcse-las,
19795         -ftree-pre, and -fthread-jumps.
19796
19797 2005-02-02  Richard Sandiford  <rsandifo@redhat.com>
19798
19799         PR tree-optimization/19578
19800         * tree-flow.h (modified_noreturn_calls): Declare.
19801         (noreturn_call_p): Declare.
19802         * tree-flow-inline.h (noreturn_call_p): New function.
19803         (modify_stmt): Add modified noreturn calls to modified_noreturn_calls.
19804         * tree-cfg.c (modified_noreturn_calls): New variable.
19805         (cleanup_control_flow): Use noreturn_call_p.  Split basic blocks
19806         that contain a mid-block noreturn call.
19807         * tree-ssa.c (delete_tree_ssa): Clear modified_noreturn_calls.
19808
19809 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
19810
19811         * df.c (df_def_record_1, df_uses_record): Don't use
19812         DF_FOR_REGALLOC.
19813         * df.h (DF_FOR_REGALLOC): Remove.
19814
19815 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
19816
19817         PR c/19435
19818         * c-typeck.c (really_start_incremental_init): Reset
19819         constructor_max_index for arrays of incomplete type.
19820
19821 2005-02-02  Jeff Law  <law@redhat.com>
19822
19823         * gcse.c (struct reg_set): Store the block index where the register
19824         was set rather than the setting insn.
19825         (record_one_set, compute_transp): Corresponding changes.
19826         (pre_insert_copy_insn): Do not call replace_one_set.
19827         (replace_one_set): Remove.
19828
19829 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
19830
19831         PR other/15514
19832         * doc/gcov.texi: Fix typo.
19833
19834 2005-02-01  Richard Henderson  <rth@redhat.com
19835
19836         PR target/19680
19837         * config/i386/i386.h (MODES_TIEABLE_P): Use ix86_modes_tieable_p.
19838         * config/i386/i386.c (ix86_hard_regno_mode_ok): Change return
19839         type to bool.
19840         (ix86_tieable_integer_mode_p, ix86_modes_tieable_p): New.
19841         * config/i386/i386-protos.h: Update.
19842
19843 2005-02-01  Steven Bosscher  <stevenb@suse.de>
19844
19845         PR tree-optimization/19217
19846         * tree-cfg.c (verify_expr): Use the data field to see if TP was
19847         seen inside a PHI node.  Do not do the ADDR_EXPR check if it was.
19848         (verify_stmts): Pass (void*)1 as data to verify_expr to signal
19849         that it is walking a PHI node.
19850
19851 2005-02-01  Joseph S. Myers  <joseph@codesourcery.com>
19852
19853         * doc/extend.texi (Nested Functions): Update.
19854
19855 2005-02-01  Richard Henderson  <rth@redhat.com>
19856
19857         PR 19696
19858         * optabs.c (expand_copysign_absneg): Export.
19859         * optabs.h (expand_copysign_absneg): Declare.
19860         * config/rs6000/rs6000.md (copysigntf3): New.
19861
19862 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
19863
19864         PR tree-optimization/19633
19865         * tree-flow.h (struct ptr_info_def): Add field 'pt_null'.
19866         * tree-ssa-alias.c (init_alias_info): Initialize.
19867         (merge_pointed_to_info): Set.
19868         (add_pointed_to_expr): Set pt_null if EXPR is a NULL pointer.
19869         (dump_points_to_info_for): Show value of pt_null.
19870         (struct count_ptr_d): Declare.
19871         (find_ptr_dereference): Remove.
19872         (ptr_is_dereferenced_by): Remove.
19873         (count_ptr_derefs): New local function.
19874         (count_uses_and_derefs): New local function.
19875         (compute_points_to_and_addr_escape): Call it.  If the number
19876         of dereferences is greater than zero, mark the pointer as
19877         dereferenced.  If there are fewer dereferences than uses of
19878         the pointer, the pointer's value escapes.
19879
19880 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
19881
19882         PR tree-optimization/19670
19883         * tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED
19884         here...
19885         (verify_use): ... set it here, instead.
19886
19887 2005-02-01  Janis Johnson  <janis187@us.ibm.com>
19888
19889         * doc/sourcebuild.texi (Test directives): Fix formatting.
19890
19891         * doc/sourcebuild.texi (Test directives): Describe selector
19892         expressions.
19893
19894 2005-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
19895
19896         * config.gcc (powerpc64-*-linux*): Default to -m64 also for
19897         specific 64-bit CPUs.
19898
19899 2005-02-01  Richard Earnshaw  <rearnsha@arm.com>
19900
19901         PR target/16201
19902         * arm.c (arm_eliminable_register): New function.
19903         (adjacent_mem_locations): Don't allow eliminable registers.  Use
19904         HOST_WIDE_INT for address offsets.
19905         * arm-protos.h (arm_eliminable_register): Add prototype.
19906
19907 2005-02-01  Steven Bosscher  <stevenb@suse.de>
19908
19909         PR optimization/15242
19910         * params.def (PARAM_MAX_GOTO_DUPLICATION_INSNS): New param.
19911         * basic-block.h (duplicate_computed_gotos): Add prototype.
19912         * bb-reorder.c (duplicate_computed_gotos): New function to
19913         duplicate sufficiently small blocks ending in a computed jump.
19914         * passes.c (rest_of_compilation): Call duplicate_computed_gotos
19915         if not optimizing for size.
19916         * cfgcleanup.c (try_crossjump_bb): If not optimizing for size,
19917         never do tail merging for blocks ending in a computed jump.
19918         * doc/invoke.texi: Document the max-goto-duplication-insns param.
19919
19920 2005-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
19921
19922         Patch from Richard Sandiford <rsandifo@redhat.com>
19923         * reload1.c (choose_reload_regs): Prevent the find_equiv_reg() code
19924         from inheriting a subreg equivalence with a non-spill register.
19925
19926         * tree.h (DECL_FUNCTION_CODE): Document that it is overloaded.
19927
19928 2005-02-01  Alexandre Oliva  <aoliva@redhat.com>
19929
19930         * config/frv/frv.c (movcc_fp_destination_operand): New.
19931         (gpr_or_memory_operand): Fix typo in comment.
19932         (gpr_or_memory_operand_with_scratch): New.
19933         * config/frv/frv.h (PREDICATE_CODES): Add the two new predicates.
19934         * config/frv/frv.md (movcc_fp, movcc_fp_internal): Use
19935         movcc_fp_destination_operand.
19936         (reload_incc_fp): Use gpr_or_memory_operand_with_scratch.
19937         Legitimize memory addresses using a scratch register.
19938
19939 2005-01-31  Jeff Law  <law@redhat.com>
19940
19941         * tree-into-ssa.c (mark_def_sites_global_data): Make KILLS
19942         bitmap a sparse bitmap instead of a simple bitmap.
19943         (mark_def_sites_initialize_block):  Corresponding changes.
19944         (ssa_mark_def_sites_initialize_block): Likewise.
19945         (ssa_mark_phi_uses): Likewise.
19946         (mark_def_site, ssa_mark_def_sites): Likewise.
19947         (mark_def_site_blocks): Likewise.
19948         (rewrite_ssa_into_ssa): Likewise.
19949
19950         * tree-ssa-dom.c (record_cond): Pass correct variable type
19951         for last argument to htab_find_slot_with_hash.
19952
19953         * fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side
19954         effects when optimizing 0 % X.  Do not try to optimize X % 0.
19955
19956 2005-01-31  James E. Wilson  <wilson@specifixinc.com>
19957
19958         * config/ia64/itanium1.md (1_scall bypass): Change 2_mmalua to
19959         1_mmalua.
19960
19961 2005-02-01  Eric Christopher  <echristo@redhat.com>
19962
19963         * config/mips/mips.c (override_options): Warn if -mint64
19964         is used.
19965         * doc/invoke.texi (MIPS Options): Document that -mint64 is
19966         deprecated.
19967
19968 2005-02-01  Kazu Hirata  <kazu@cs.umass.edu>
19969
19970         * cse.c (cse_reg_info): Remove hash_next, next, regno.  Add
19971         timestamp.
19972         (cse_reg_info_list, cse_reg_info_list_free, REGHASH_SHIFT,
19973         REGHASH_SIZE, REGHASH_MASK, reg_hash, REGHASH_FN,
19974         cached_cse_reg_info, GET_CSE_REG_INFO): Remove.
19975         (cached_regno): Initialize to INVALID_REGNUM.
19976         (cse_reg_info_table_size,
19977         cse_reg_info_table_first_uninitialized,
19978         cse_reg_info_timestamp): New.
19979         (REG_TICK, REG_IN_TABLE, SUBREG_TICKED, REG_QTY): Use
19980         get_cse_reg_info.
19981         (init_cse_reg_info, get_cse_reg_info_1): New.
19982         (get_cse_reg_info): Cache the last look-up.
19983         (new_basic_block): Update the code to clear mappings from
19984         registers to cse_reg_info entries.
19985         (cse_main): Call init_cse_reg_info.
19986
19987         * cse.c (get_cse_reg_info): Update a comment.
19988
19989 2005-01-31  Steven Bosscher  <stevenb@suse.de>
19990
19991         PR c/19333
19992         * c-decl.c (start_decl): Do not warn about arrays of elements with
19993         an incomplete type here.
19994         (grokdeclarator): Do it here by making a pedwarn an error.
19995         * c-typeck.c (push_init_level): If there were previous errors with
19996         the constructor type, do not warn about braces for initializers.
19997         (process_init_element): Likewise for excess initializer elements.
19998
19999 2005-01-31  Kazu Hirata  <kazu@cs.umass.edu>
20000
20001         * cse.c (delete_trivially_dead_insn): Don't iterate.
20002
20003 2005-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
20004
20005         * config/rs6000/rs6000.md (copysignsf3): New expand.
20006         (copysigndf3): Likewise.
20007
20008 2005-01-31  Steven Bosscher  <stevenb@suse.de>
20009
20010         * recog.c (constrain_operands): Only look for earlyclobber operand
20011         conflicts if an '&' constraint was seen.
20012
20013 2005-01-31  Marc Espie <espie@openbsd.org>
20014
20015         * config.gcc: Don't include embedded systems fragment, switches default
20016         debugging format to ELF.
20017         * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no
20018         longer pick it up there.
20019
20020 2005-01-31  Dale Johannesen  <dalej@apple.com>
20021
20022         * doc/extend.texi (nested functions): Fix linkage description.
20023         Clarify that static is not allowed.
20024
20025 2005-01-31  Dale Johannesen  <dalej@apple.com>
20026
20027         * config/rs6000/darwin.md (movsf_low_di):  Make work.
20028         (movdf_low_di):  Make work.
20029
20030 2005-01-31  Dale Johannesen  <dalej@apple.com>
20031
20032         * config/rs6000/darwin-tramp.asm (__trampoline_setup):
20033         Make work for 64 bit.
20034
20035 2005-01-31  Roger Sayle  <roger@eyesopen.com>
20036             Dale Johannesen  <dalej@apple.com>
20037
20038         PR middle-end/19650
20039         * fold-const.c (fold_binary_op_with_conditional_arg):
20040         Make types match original operands, before STRIP_NOPS.
20041
20042 2005-01-31  Alan Modra  <amodra@bigpond.net.au>
20043
20044         * config/rs6000/linux-unwind.h (struct gcc_vregs): New.
20045         (struct gcc_regs): Rename from gcc_pt_regs.  Add more regs.
20046         (struct gcc_sigcontext): Delete.  Merge contents to..
20047         (struct gcc_ucontext): ..here.
20048         (get_sigcontext): Delete.
20049         (get_regs): New function, like get_sigcontext but return regs ptr.
20050         64-bit version finds regs from r1 to support vdso.
20051         (ppc_linux_aux_vector): New function.
20052         (ppc_fallback_frame_state): Modify for get_regs.  Restore fprs
20053         and vector regs.
20054
20055 2005-01-31  Ira Rosen  <irar@il.ibm.com>
20056
20057         * tree-vectorizer.c (vect_analyze_offset_expr): Use ssizetype instead
20058         sizetype.
20059         (vect_get_base_and_offset): Use ssizetype instead sizetype. Remove
20060         redundant fold. Fix misalignment for MINUS_EXPR.
20061         (vect_compute_data_ref_alignment): Use ssizetype instead sizetype.
20062         (vect_analyze_pointer_ref_access): Likewise.
20063         (vect_get_memtag_and_dr): Likewise.
20064
20065 2005-01-31  Richard Henderson  <rth@redhat.com>
20066
20067         * config/i386/i386.c (absnegsf2_mixed): Remove all of the # hackery.
20068         (absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed, absnegdf2_sse,
20069         absnegdf2_i387, absnegxf2_i387): Likewise.
20070
20071 2005-01-31  Richard Henderson  <rth@redhat.com>
20072
20073         PR 19696
20074         * optabs.c (expand_copysign_absneg): New.
20075         (expand_copysign_bit): Split out from ...
20076         (expand_copysign): ... here.  Use expand_copysign_absneg.
20077
20078 2005-01-30  Roger Sayle  <roger@eyesopen.com>
20079
20080         PR middle-end/19697
20081         * config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer
20082         constant as the second operand and a register as the third.
20083
20084 2005-01-31  Danny Smith  <dannysmith@users.sourceforge.net>
20085
20086         PR target/19704
20087         * config/i386/i386.c (ix86_function_ok_for_sibcall):  Also check
20088         that dllimport'd functions do not use all call-clobbered registers
20089         to pass parameters.
20090
20091 2005-01-30  Richard Henderson  <rth@redhat.com>
20092
20093         PR 19696
20094         * optabs.c (expand_absneg_bit): Split out from expand_unop and
20095         expand_abs_nojump and generalize.  Use operand_subword and
20096         emit_no_conflict_block.  Support large modes.
20097         (expand_abs_nojump): Use it.  Use HONOR_SIGNED_ZEROS to fall
20098         back to maximum.
20099         (expand_unop): Likewise.  Use HONOR_SIGNED_ZEROS to fall back
20100         negation to subtraction.
20101         (expand_copysign): Check that the format has signed zeros.
20102         Use operand_subword and emit_no_conflict_block.  Support large modes.
20103
20104 2005-01-30  Daniel Berlin  <dberlin@dberlin.org>
20105
20106         Fix PR tree-optimization/19624
20107
20108         * Makefile.in (tree-ssa-pre.o): Add CFGLOOP_H.
20109         * tree-ssa-pre.c: Add cfgloop.h.
20110         Update comment.
20111         (pre_stats): New member, constified.
20112         (inserted_exprs): New static variable.
20113         (NECESSARY): New macro.
20114         (create_expression_by_pieces): Fold the expression, and
20115         mark it as defaulting to not necessary. Also put in
20116         inserted_exprs.
20117         (fully_constant_expression): New function.
20118         (insert_into_preds_of_block): Modify to not insert phis when we
20119         are playing with induction variables.
20120         Push phis onto the inserted_exprs vector, and mark them as not
20121         necessary by default.
20122         (insert_aux): Call fully_constant_expression on eprime.
20123         If all edges produce the same value, mark it constant.
20124         (mark_operand_necessary): New function.
20125         (remove_dead_inserted_code): New function.
20126         (init_pre): Init loop optimizer to get loop info.
20127         (fini_pre): Free loop_optimizer, and inserted_exprs vec.
20128         (execute_pre): Commit edge inserts, then remove dead code.
20129
20130 2005-01-30  Richard Henderson  <rth@redhat.com>
20131
20132         * rtl.c (rtx_equal_p): No early exit for CONST_VECTOR.
20133         * varasm.c (const_rtx_hash_1): Handle CONST_VECTOR.
20134
20135 2005-01-30  Richard Henderson  <rth@redhat.com>
20136
20137         PR target/19700
20138         * config/i386/i386.c (ix86_expand_copysign): New.
20139         (ix86_split_copysign_const): New.
20140         (ix86_split_copysign_var): Rename from ix86_split_copysign,
20141         rearrange op1/nmask operands.
20142         * config/i386/i386-protos.h: Update.
20143         * config/i386/i386.md (copysignsf3): Use ix86_expand_copysign.
20144         (copysigndf3): Likewise.
20145         (copysignsf3_const, copysigndf3_const): New.
20146         (copysignsf3_var): Rename from copysignsf3, split out splitter
20147         and fix split predicate for X constraint.
20148         (copysigndf3_var): Similarly.
20149
20150 2005-01-30  Kazu Hirata  <kazu@cs.umass.edu>
20151
20152         * optabs.c, doc/c-tree.texi, doc/install.texi, doc/md.texi,
20153         doc/passes.texi, doc/rtl.texi, doc/sourcebuild.texi,
20154         doc/tm.texi, doc/tree-ssa.texi: Update copyright.
20155
20156 2005-01-29  Richard Henderson  <rth@redhat.com>
20157
20158         PR target/19690
20159         * config/i386/i386.md (movdf_nointeger, movdf_integer): Fix ordering
20160         of # and * in constraints.
20161
20162 2005-01-29  Richard Henderson  <rth@redhat.com>
20163
20164         PR middle-end/19689
20165         * expr.c (store_field): Don't strip sub-mode cast when the input
20166         data is even smaller.
20167
20168 2005-01-29  Richard Henderson  <rth@redhat.com>
20169
20170         PR middle-end/19687
20171         * expr.c (categorize_ctor_elements_1): Check for CONSTRUCTOR of a
20172         union being empty.
20173
20174 2005-01-29  Richard Henderson  <rth@redhat.com>
20175
20176         * combine.c (make_field_assignment): Fix argument order
20177         to gen_int_mode.
20178
20179 2005-01-29  Richard Guenther <richard.guenther@uni-tuebingen.de>
20180
20181         PR tree-optimization/15791
20182         * fold-const.c (extract_array_ref): New function.
20183         (fold): Fold comparisons between &a[i] and &a[j] or
20184         semantically equivalent trees.
20185
20186 2005-01-29  Jeff Law  <law@redhat.com>
20187
20188         * gcse.c (insert_expr_in_table): Revamp handling of available
20189         and anticipatable occurrence lists to avoid unnecessary list
20190         walking.
20191         (insert_set_in_table): Similarly.
20192
20193 2005-01-29  Joseph S. Myers  <joseph@codesourcery.com>
20194
20195         * c-common.c (fix_string_type): Just use c_build_qualified_type to
20196         build string type.
20197         (c_build_qualified_type): Build qualified array types with
20198         TYPE_MAIN_VARIANT pointing to corresponding unqualified type.
20199         * c-decl.c (c_make_fname_decl): Build unqualified array type
20200         before qualified type.
20201         (grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element
20202         type is qualified, not just if type itself is.  Don't apply
20203         qualifiers to array type when declarator is processed.  Apply
20204         qualifiers to field type whether or not it is an array type.
20205         Don't handle array types specially for applying qualifiers to
20206         variables.
20207         * c-typeck.c (composite_type): Build unqualified element type and
20208         array type when forming composite of array types.
20209         (common_pointer_type, comptypes, comp_target_types,
20210         type_lists_compatible_p, build_indirect_ref, build_array_ref,
20211         convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array
20212         types.
20213         (type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE
20214         (args2) in variables a1 and a2.
20215
20216 2005-01-29  Kazu Hirata  <kazu@cs.umass.edu>
20217
20218         * cse.c (n_elements_made, max_elements_made): Remove.
20219         (insert): Don't touch n_elements_made.
20220         (cse_main): Don't touch n_elements_made or max_elements_made.
20221
20222 2005-01-28  Stephane Carrez  <stcarrez@nerim.fr>
20223
20224         PR target/15384
20225         * config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a
20226         configuration part of dp-bit.c to be lost.
20227
20228 2005-01-28  Roger Sayle  <roger@eyesopen.com>
20229
20230         * expmed.c (expand_mult_highpart_optab): When attempting to use
20231         a non-widening multiplication in a wider mode, the operands need
20232         to be converted (zero or sign extended) to that mode.
20233
20234 2005-01-28  Ian Lance Taylor  <ian@airs.com>
20235
20236         PR middle-end/16558
20237         PR middle-end/19583
20238         * gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls
20239         through if both operands fall through.
20240
20241 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
20242
20243         * cse.c (fold_rtx) <PC>: Don't optimize.
20244
20245 2005-01-28  Jeff Law  <law@redhat.com>
20246
20247         * fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X.
20248         (case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly.
20249
20250 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
20251
20252         * cse.c (cse_reg_info_free_list, cse_reg_info_used_list,
20253         cse_reg_info_used_list_end): Remove.
20254         (cse_reg_info_list, cse_reg_info_list_free): New.
20255         (get_cse_reg_info): When allocating an instance of
20256         cse_reg_info, add it to the beginning of the cse_reg_info_list
20257         list.  Remove code to maintain cse_reg_info_used_list.
20258         (new_basic_block): Reset the free list to the beginning of
20259         cse_reg_info_list.
20260
20261 2005-01-28  Richard Sandiford  <rsandifo@redhat.com>
20262
20263         * config/frv/frv.c (bdesc_2arg): Remove __MDPACKH.
20264         (frv_init_builtins): Change its prototype to take 4 uhalf arguments.
20265         (frv_expand_mdpackh_builtin): New function.
20266         (frv_expand_builtin): Use it to expand __MDPACKH.
20267         * doc/extend.texi (__MDPACKH): Update documentation.
20268
20269 2005-01-28  Uros Bizjak  <uros@kss-loka.si>
20270
20271         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use
20272         SSE_FLOAT_MODE_P for use_sse computation.
20273
20274 2005-01-28  Ralf Corsepius  <ralf.corsepius@rtems.org>
20275
20276         PR target/19663
20277         * config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine.
20278
20279 2005-01-27  Richard Henderson  <rth@redhat.com>
20280
20281         * builtins.c (expand_builtin_copysign): New.
20282         (expand_builtin): Call it.
20283         * genopinit.c (optabs): Add copysign_optab.
20284         * optabs.c (init_optabs): Initialize it.
20285         (expand_copysign): New.
20286         * optabs.h (OTI_copysign, copysign_optab): New.
20287         (expand_copysign): Declare.
20288
20289         * config/alpha/alpha.md (UNSPEC_COPYSIGN): New.
20290         (copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New.
20291
20292         * config/i386/i386.c (ix86_build_signbit_mask): Split from ...
20293         (ix86_expand_fp_absneg_operator): ... here.
20294         (ix86_split_copysign): New.
20295         * config/i386/i386-protos.h: Update.
20296         * config/i386/i386.md (UNSPEC_COPYSIGN): New.
20297         (copysignsf3, copysigndf3): New.
20298
20299         * config/ia64/ia64.md (UNSPEC_COPYSIGN): New.
20300         (copysignsf3, ncopysignsf3): New.
20301         (copysigndf3, ncopysigndf3): New.
20302         (copysignxf3, ncopysignxf3): New.
20303         * config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN.
20304
20305 2005-01-27  Arend Bayer  <arend.bayer@web.de>
20306             Kazu Hirata  <kazu@cs.umass.edu>
20307
20308         * cse.c: (find_best_addr): Don't call copy_rtx before calling
20309         fold_rtx.  Save cost recomputation if fold_rtx did nothing.
20310         (fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is
20311         NULL_RTX.
20312
20313 2005-01-27  Jeff Law  <law@redhat.com>
20314
20315         * tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register
20316         definitions of SSA_NAMEs which are not being rewritten.
20317         (rewrite_ssa_into_ssa): Only initialize the current definition
20318         of an SSA_NAME if that SSA_NAME has been marked for rewriting.
20319         If checking is enabled, assert that SSA_NAME_AUX is clear for all
20320         SSA_NAMEs before returning.
20321
20322 2005-01-27  Kazu Hirata  <kazu@cs.umass.edu>
20323
20324         * c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c,
20325         cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h,
20326         tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c,
20327         config/avr/avr.md, config/cris/aout.h, config/cris/cris.h,
20328         config/mips/iris6.h, config/sh/sh.c: Update copyright.
20329
20330 2005-01-27  Steven Bosscher  <stevenb@suse.de>
20331
20332         PR middle-end/17278
20333         * opts.c (decode_options): Move flag_thread_jumps from -O1 and
20334         higher to -O2 and higher.  Likewise for tree PRE.
20335         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2
20336         and better.
20337
20338 2005-01-27  Ian Lance Taylor  <ian@airs.com>
20339
20340         PR middle-end/19583
20341         * gimple-low.c (try_catch_may_fallthru): New static function.
20342         (block_may_fallthru): Handle TRY_CATCH_EXPR.
20343         * tree-inline.c (expand_call_inline): Don't warn about reaching
20344         the end of a non-void function being inlined if the function uses
20345         a return slot.
20346
20347 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
20348
20349         * config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.
20350
20351         PR c/18946
20352         * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
20353         (pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P.
20354         (implicitly_declare): Handle error_mark_node.
20355
20356 2005-01-27  Richard Henderson  <rth@redhat.com>
20357
20358         PR tree-opt/14329
20359         * tree.h (struct tree_decl): Add debug_expr_is_from.
20360         (DECL_DEBUG_EXPR_IS_FROM): New.
20361         (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
20362         * dwarf2out.c (dwarf2out_var_location): Update to match.
20363         * tree-outof-ssa.c (create_temp): Likewise.
20364         * var-tracking.c (track_expr_p): Likewise.
20365         * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
20366         * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
20367         * toplev.c (default_tree_printer): Likewise.
20368
20369 2005-01-27  Alexandre Oliva  <aoliva@redhat.com>
20370
20371         * config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS,
20372         GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
20373
20374 2005-01-27  Steven Bosscher  <stevenb@suse.de>
20375
20376         * tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
20377         CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
20378         ASM_CLOBBERS): Add tree checks.
20379
20380         * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE.
20381         (SWITCH_STMT_COND, SWITCH_STMT_BODY): New.
20382         * c-common.def (SWITCH_STMT): Update to match.
20383         * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor
20384         macros instead of SWITCH_EXPR ones.
20385         * c-dump.c (c_dump_tree): Likewise.
20386         * c-gimplify.c (gimplify_switch_stmt): Likewise.
20387         * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise.
20388
20389         * doc/c-tree.texi (SWITCH_STMT): Update accessor macro names.
20390
20391 2005-01-27  Alan Modra  <amodra@bigpond.net.au>
20392
20393         * unwind-dw2.c (execute_stack_op): Add missing cases for
20394         DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor.
20395
20396 2005-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
20397
20398         * config.gcc (Obsolete configurations): Remove 'dummy', add
20399         sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and
20400         sparc-*-openbsd*.
20401
20402 2005-01-26  Diego Novillo  <dnovillo@redhat.com>
20403
20404         PR tree-optimization/19633
20405         * tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle
20406         CALL_EXPRs.
20407         (maybe_create_global_var): Do not create .GLOBAL_VAR if there
20408         are no call-clobbered variables.
20409         * tree-outof-ssa.c (check_replaceable): Return false for calls
20410         with side-effects.
20411
20412 2005-01-26  Ulrich Weigand  <uweigand@de.ibm.com>
20413
20414         * dbxout.c (dbxout_symbol_location): Resolve constant pool references
20415         even for variables with NULL DECL_INITIAL.
20416
20417 2005-01-26  Stuart Hastings  <stuart@apple.com>
20418
20419         * gimplify.c (shortcut_cond_expr): Re-compute side-effects.
20420
20421 2005-01-26  Richard Henderson  <rth@redhat.com>
20422
20423         PR middle-end/18008
20424         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
20425         field's type.
20426         * expr.c (store_field): Strip conversions to odd-bit-sized types
20427         if the destination field width matches.
20428
20429 2005-01-26  Richard Henderson  <rth@redhat.com>
20430
20431         * c-decl.c, expmed.c, expr.c: Revert last change.
20432
20433 2005-01-26  Richard Henderson  <rth@redhat.com>
20434
20435         PR middle-end/18008
20436         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
20437         field's type.
20438         * expmed.c (store_fixed_bit_field): Create a paradoxical subreg
20439         if we don't need the bits above those present in the current mode.
20440         * expr.c (store_field): Strip conversions to odd-bit-sized types
20441         if the destination field width matches.
20442
20443 2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
20444
20445         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
20446         either -ffast-math or -funsafe-math-optimizations is in use.
20447
20448 2005-01-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
20449
20450         PR target/19293
20451         PR target/19329
20452         * config/avr/avr.c (notice_update_cc): Only set condition code for
20453         ashrqi3 if shift count > 0.
20454         (out_shift_with_cnt): Handle shift count <= 0 as a no-op.
20455         (ashlqi3_out, ashlhi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out,
20456         ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Handle shift
20457         count <= 0 as a no-op, and shift count >= width by copying zero
20458         or sign bit to all bits of the result.
20459         * config/avr/avr.md (all shifts): Add alternatives for zero shift
20460         count, with attribute "length" set to 0 and "cc" set to "none".
20461
20462 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
20463
20464         * doc/invoke.texi: Document -mTLS.
20465
20466         * testsuite/gcc.target/frv/all-tls-global-dynamic.c: New.
20467         * testsuite/gcc.target/frv/all-tls-initial-exec.c: New.
20468         * testsuite/gcc.target/frv/all-tls-initial-exec-pic.c: New.
20469         * testsuite/gcc.target/frv/all-tls-local-dynamic.c: New.
20470         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt.c: New.
20471         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt-pic.c: New.
20472         * testsuite/gcc.target/frv/all-tls-local-exec.c: New.
20473         * testsuite/gcc.target/frv/all-tls-local-exec-TLS.c: New.
20474
20475         * configure.ac: Check for a TLS capable gas.
20476
20477         * configure: Regenerate.
20478
20479 2005-01-26  Richard Henderson  <rth@redhat.com>
20480
20481         PR middle-end/18008
20482         * combine.c (make_field_assignment): Simplify store to zero_extract
20483         from a source with an overlapping mask.
20484
20485 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
20486
20487         2004-11-11  Eric Christopher  <echristo@redhat.com>
20488
20489         * config/frv/frv.md: Add fr400_integer automaton. Don't
20490         allow TYPE_MUL, TYPE_MACC, or TYPE_CUT to issue in parallel
20491         to TYPE_MACC.
20492
20493 2005-01-26  Steven Bosscher  <stevenb@suse.de>
20494
20495         PR middle-end/16585
20496         * cfgbuild.c (make_edges): Do not clear or set
20497         current_function_has_computed_jump.
20498         * function.h (struct function): Remove the has_computed_jump field.
20499         (current_function_has_computed_jump): Do not define.
20500         * sched-rgn.c (is_cfg_nonregular): Return true if a basic block ends
20501         in a computed jump.  Ignore current_function_has_computed_jump.
20502
20503 2005-01-26  Richard Henderson  <rth@redhat.com>
20504
20505         PR middle-end/19515
20506         * expr.c (categorize_ctor_elements): New argument p_must_clear.
20507         (categorize_ctor_elements_1): Likewise.  Detect a union that isn't
20508         fully initialized.
20509         (mostly_zeros_p): Update for new categorize_ctor_elements argument.
20510         * gimplify.c (gimplify_init_constructor): Likewise.  Only shove
20511         objects into static storage if they have more than one non-zero value.
20512         * tree.h (categorize_ctor_elements): Update decl.
20513
20514 2005-01-26  Steven Bosscher  <stevenb@suse.de>
20515
20516         PR middle-end/19616
20517         * tree.h (CALL_EXPR_TAILCALL): Add comment.
20518         * calls.c (check_sibcall_argument_overlap_1): Revert the change
20519         to this function from 2004-07-10.
20520         * tree-tailcall.c (suitable_for_tail_opt_p): Do not consider the
20521         the current function for tail call optimizations if the address
20522         of one of it its arguments is taken.
20523
20524 2005-01-26  Kazu Hirata  <kazu@cs.umass.edu>
20525
20526         * cse.c (fold_rtx): Call equiv_constant only when necessary.
20527
20528 2005-01-26  Bernd Schmidt  <bernd.schmidt@analog.com>
20529
20530         * function.c (expand_function_end): If current_function_calls_alloca,
20531         emit stack restore in a place that is reached when the function falls
20532         through at the end.
20533
20534 2005-01-26  Alexandre Oliva  <aoliva@redhat.com>
20535
20536         * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
20537         rule to avoid matching inappropriate suffix rule.
20538
20539 2005-01-26  Jan Hubicka  <jh@suse.cz>
20540
20541         PR tree-optimization/19241
20542         * tree-inline.c (copy_body_r): Do not walk subtrees after substituting.
20543
20544 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
20545
20546         * config/cris/cris.h (LIB_SPEC) <sim*>: Use -lsyslinux, not
20547         -lsyssim.  Wrap -lc -lsyssim in --start-group --end-group instead
20548         of doubling.
20549         (STARTFILE_SPEC): Add crti.o, before crtbegin.o.
20550         <sim*>: Always use crt1.o, regardless of N in simN.
20551         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
20552         (ENDFILE_SPEC): Add crtn.o, after crtend.o.
20553         (CRT_CALL_STATIC_FUNCTION): Remove.
20554         * config/cris/aout.h (STARTFILE_SPEC): <!melinux && sim*>: Always
20555         use crt1.o, regardless of N in simN.
20556         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
20557         (LIB_SPEC): Do not define; default to the one in config/cris/cris.h.
20558         (CRIS_CPP_SUBTARGET_SPEC) <melinux && !nostdinc>: Remove special
20559         case isystem setting.
20560         (MAX_OFILE_ALIGNMENT): Correct to 32, not 16.
20561
20562 2005-01-25  Ian Lance Taylor  <ian@airs.com>
20563
20564         * gimple-low.c (block_may_fallthru): Correct handling of
20565         SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
20566
20567 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
20568
20569         * config/cris/cris.h (CPP_SPEC): Adjust the various mtune=
20570         handlers to match indentation; nested under the mtune=* handler.
20571         Similar for mcpu= and march=.
20572
20573 2005-01-25  Daniel Jacobowitz  <dan@codesourcery.com>
20574
20575         * config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
20576         * config/mips/linux64.h (LIB_SPEC): Likewise.
20577         * config/mn10300/linux.h (LIB_SPEC): Likewise.
20578         * config/sh/linux.h (LIB_SPEC): Likewise.
20579
20580 2005-01-25  Aldy Hernandez  <aldyh@redhat.com>
20581
20582         * config/frv/frv.c (frv_legitimize_tls_address): New.
20583         (TARGET_HAVE_TLS): Define.
20584         (FRV_SYMBOL_REF_TLS_P): Define.
20585         (frv_override_options): Handle new register classes.
20586         (frv_legitimate_address_p): Reject tls addresses.
20587         (frv_legitimize_address): Handle TLS addresses.
20588         (gen_inlined_tls_plt): New.
20589         (gen_tlsmoff): New.
20590         (frv_legitimize_tls_address): New.
20591         (unspec_got_name): Add TLS entries.
20592         (got12_operand): Add R_FRV_TLSMOFF12 case.
20593         (frv_emit_move): Fixup TLS addresses.
20594         (frv_emit_movsi): Legitimize TLS addresses.
20595
20596         * config/frv/frv.h (MASK_BIG_TLS): New.
20597         (TARGET_BIG_TLS): New.
20598         (HAVE_AS_TLS): Define.
20599         (TARGET_SWITCHES): Add -mTLS and -mtls options.
20600         (enum reg_class): Add GR8_REGS, GR9_REGS, GR89_REGS.
20601         (REG_CLASS_NAMES): Same.
20602         (REG_CLASS_CONTENTS): Same.
20603         (CONSTRAINT_LEN): New.
20604         (REG_CLASS_FROM_CONSTRAINT): New.
20605         (PREDICATE_CODES): Add symbolic_operand.
20606
20607         * config/frv/frv.md (define_constants): Add UNSPEC_GETTLSOFF,
20608         UNSPEC_TLS_LOAD_GOTTLSOFF12, UNSPEC_TLS_INDIRECT_CALL,
20609         UNSPEC_TLS_TLSDESC_LDD, UNSPEC_TLS_TLSDESC_LDD_AUX,
20610         UNSPEC_TLS_TLSOFF_LD, UNSPEC_TLS_LDDI, UNSPEC_TLSOFF_HILO,
20611         R_FRV_GOTTLSOFF_HI, R_FRV_GOTTLSOFF_LO, R_FRV_TLSMOFFHI,
20612         R_FRV_TLSMOFFLO, R_FRV_TLSMOFF12, R_FRV_TLSDESCHI,
20613         R_FRV_TLSDESCLO, R_FRV_GOTTLSDESCHI, R_FRV_GOTTLSDESCLO, GR8_REG,
20614         GR9_REG, GR14_REG, LRREG.
20615         (type): Add load_or_call attribute.
20616         ("load_or_call"): New reservation.
20617         ("call_gettlsoff"): New.
20618         ("tls_indirect_call"): New.
20619         ("tls_load_gottlsoff12"): New.
20620         ("tlsoff_hilo"): New.
20621         ("tls_tlsdesc_ldd"): New.
20622         ("tls_tlsoff_ld"): New.
20623         ("tls_lddi"): New.
20624
20625         * config/frv/frv-protos.h (symbolic_operand): Protoize.
20626
20627         2005-01-25  Alexandre Oliva  <aoliva@redhat.com>
20628
20629         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Define.
20630         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Declare.
20631         * config/frv/frv.c (TLS_BIAS): Define.
20632         (frv_output_dwarf_dtprel): New.
20633
20634 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
20635
20636         PR rtl-optimization/19579
20637         * ifcvt.c (noce_try_cmove_arith): If emitting instructions to set up
20638         both A and B, see if they don't clobber registers the other expr uses.
20639
20640 2005-01-25  J"orn Rennecke <joern.rennecke@st.com>
20641
20642         * real.c (do_add): Initialize signalling and canonical members.
20643
20644         * real.c (real_from_integer): Zero out destination.
20645
20646 2005-01-18  Jan Hubicka  <jh@suse.cz>
20647
20648         PR tree-optimize/19337
20649         * tree-inline.c (initialize_inlined_parameters): Copy
20650         saved_static_chain_decl only.
20651
20652 2005-01-25  Richard Henderson  <rth@redhat.com>
20653
20654         PR target/19556
20655         PR target/19584
20656         * config/i386/i386.c (x86_inter_unit_moves): Zero.
20657         (ix86_preferred_reload_class): Rewrite fp-constant section, with
20658         80387 enabled, to return a proper subclass.  Return the subset that
20659         overlaps with GENERAL_REGS for PLUS.
20660         * config/i386/i386.md (movsi_1, movdi_2): Set type to "mmx" for pxor.
20661
20662 2005-01-25  Richard Henderson  <rth@redhat.com>
20663
20664         PR middle-end/19609
20665         * tree-complex.c (expand_complex_div_wide): Use the correct formulae.
20666
20667 2005-01-25  Roger Sayle  <roger@eyesopen.com>
20668
20669         * expmed.c (choose_multiplier): Change interface to return the
20670         multiplier lowpart as an rtx instead of an unsigned HOST_WIDE_INT.
20671         (expand_divmod): Update calls to choose_multiplier.
20672
20673 2005-01-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20674
20675         PR middle-end/19330
20676         * expmed.c (extract_bit_field): Use adjust_address instead of
20677         gen_lowpart when op0 is a MEM.
20678
20679 2005-01-24  Steven Bosscher  <stevenb@suse.de>
20680
20681         * cfgexpand.c (expand_gimple_tailcall): Fix typo.
20682
20683 2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
20684
20685         * config/mips/irix-csr.c: New file.
20686         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
20687         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
20688         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
20689         executables.
20690
20691 2005-01-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
20692
20693         PR bootstrap/19364
20694         * config.gcc (sparc-*-elf*): Remove sol2.h, sparc/sol2.h and
20695         sparc/elf.h, add sparc/sp-elf.h.
20696         (sparc-*-rtems*): Likewise.
20697         (sparclite-*-elf*): Remove sol2.h, sparc/sol2.h, sparc/elf.h and
20698         tm-dwarf2.h, add sparc/sp-elf.h.
20699         (sparc86x-*-elf): Likewise.
20700         (sparc64-*-elf*): Remove sol2.h, sparc/sol2.h and tm-dwarf2.h.
20701         * config/sparc/liteelf.h (TARGET_SUB_OS_CPP_BUILTINS): Rename into
20702         TARGET_OS_CPP_BUILTINS.
20703         * config/sparc/sp86x-elf (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
20704         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
20705         Undefine it.
20706         * config/sparc/openbsd64.h (NO_IMPLICIT_EXTERN_C): Undefine.
20707         * config/sparc/sp64-elf.h (NO_IMPLICIT_EXTERN_C): New macro.
20708         (SWITCH_TAKES_ARG): Likewise.
20709         (LOCAL_LABEL_PREFIX): Likewise.
20710         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
20711         (TARGET_N_FORMAT_TYPES): Delete.
20712         (TARGET_FORMAT_TYPES): Likewise.
20713         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
20714         * config/sparc/elf.h: Delete.
20715         * config/sparc/sp-elf.h: New file.
20716
20717 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
20718
20719         * tree-flow-inline.h (phi_arg_from_edge): Remove.
20720         * tree-flow.h: Remove the corresponding prototype.
20721         * tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-ssa.c,
20722         tree-vectorizer.c: Use dest_idx instead of phi_arg_from_edge.
20723
20724 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
20725
20726         PR target/17751
20727         * config/rs6000/rs6000.c (rs6000_file_start): Create toc section
20728         for AIX ABI or ELF -fPIC.
20729         (rs6000_emit_load_toc_table): Don't create toc_section here.
20730         (rs6000_xcoff_file_start): Nor here.
20731
20732 2005-01-24  J"orn Rennecke <joern.rennecke@st.com>
20733
20734         * sh.c (ra.h): Don't #include.
20735         (hard_regs_intersect_p): New function, resurrected from ra.c.
20736
20737         * sh.c: Fix 1996 Copyright.
20738
20739 2005-01-24  Richard Henderson  <rth@redhat.com>
20740             Aldy Hernandez  <aldyh@redhat.com>
20741
20742         * regrename.c (note_sets): Handle subregs.
20743
20744 2005-01-24  Joseph S. Myers  <joseph@codesourcery.com>
20745
20746         PR bootstrap/18058
20747         * genconditions.c (write_header, write_conditions): Elide file if
20748         not GCC >= 3.0.1.
20749
20750 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
20751
20752         * c-opts.c, expmed.c, gengtype.c, tree-complex.c,
20753         config/arm/iwmmxt.md, config/avr/avr.c, config/s390/s390.h:
20754         Update copyright.
20755
20756 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
20757
20758         * builtins.c (get_pointer_alignment, gimplify_va_arg_expr,
20759         expand_builtin_printf, expand_builtin_fprintf,
20760         expand_builtin_sprintf): Use POINTER_TYPE_P instead TREE_CODE
20761         checking against POINTER_TYPE.
20762         (validate_arglist): Handle POINTER_TYPE code by checking
20763         POINTER_TYPE_P.
20764
20765 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
20766
20767         * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1,
20768         init_rtlanal): New.
20769         (for_each_rtx): Call for_each_rtx_1.
20770         * rtl.h (init_rtlanal): Declare.
20771         * toplev.c (backend_init): Call init_rtlanal.
20772
20773 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
20774
20775         * flow.c (propagate_one_insn): Formatting.
20776
20777         PR middle-end/19551
20778         * flow.c (libcall_dead_p): Be more conservative if unsure.
20779         If there are any instructions between insn and call, see if they are
20780         all dead before saying the libcall is dead.
20781
20782 2005-01-24  Uros Bizjak  <uros@kss-loka.si>
20783
20784         * config/i386/i386.md (*extendsfdf2_sse): Use "nonimmediate_operand"
20785         operand constraint for operand 0.
20786
20787 2005-01-23  Richard Henderson  <rth@redhat.com>
20788
20789         PR 19486
20790         * tree-complex.c (expand_complex_div_wide): Set EDGE_FALLTHRU on
20791         edges leading to join block.
20792
20793 2005-01-23  Roger Sayle  <roger@eyesopen.com>
20794
20795         * expmed.c (expand_mult_highpart): Make static.  Change type of
20796         constant multiplier argument from unsigned HOST_WIDE_INT to rtx.
20797         (expand_divmod): Updates calls to expand_mult_highpart by using
20798         gen_int_mode to pass a CONST_INT rtx.
20799         * rtl.h (expand_mult_highpart): Remove prototype.
20800
20801 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
20802
20803         * flow.c (regset_bytes, regset_size): Remove.
20804
20805         * cfganal.c: Fix a reference to Harvey's paper.
20806
20807 2005-01-23  Steven Bosscher  <stevenb@suse.de>
20808
20809         PR rtl-optimization/19464
20810         * tree-optimize.c (init_tree_optimization_passes): Add one more
20811         copyrename pass just before out-of-ssa.
20812
20813 2005-01-23  Joseph S. Myers  <joseph@codesourcery.com>
20814
20815         PR bootstrap/18058
20816         * recog.c (recog_memoized): Don't define if GENERATOR_FILE.
20817         * ggc-none.c (ggc_free): Define.
20818
20819 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
20820
20821         * cse.c (max_reg, max_insn_uid): Remove.
20822         (cse_main): Don't access max_reg or max_insn_uid.
20823
20824         * c-common.c (explicit_flag_signed_bitfields,
20825         lang_statement_code_p, lang_expand_function_end): Remove.
20826         * c-common.h: Remove the corresponding declarations.
20827         * c-opts.c (c_common_handle_option): Remove all write access
20828         to explicit_flag_signed_bitfields.
20829
20830         * cgraph.c (cgraph_varpool_n_nodes): Remove.
20831         (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
20832         * cgraph.h: Remove the corresponding declaration.
20833
20834         * gcse.c (null_pointer_info): Remove.
20835
20836 2005-01-23  Roger Sayle  <roger@eyesopen.com>
20837             Eric Botcazou  <ebotcazou@libertysurf.fr>
20838
20839         * combine.c (simplify_logical): Only simplify logical expressions
20840         of the form ior(and(x,y),z) by the inverse distributive law if the
20841         result is cheaper than the original.
20842
20843 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
20844
20845         * alias.c, c-common.h, c-incpath.c, c-incpath.h, expr.c,
20846         fold-const.c, gimplify.c, params.h, tree-data-ref.c,
20847         tree-if-conv.c, tree-nested.c, tree-outof-ssa.c,
20848         tree-ssa-dom.c, tree-vectorizer.c, tree.def, config/darwin.c,
20849         config/freebsd-spec.h, config/arm/arm.h,
20850         config/h8300/h8300.md, config/i386/i386.md,
20851         config/i386/predicates.md, config/i386/sse.md,
20852         config/ia64/ia64.c, config/ip2k/ip2k.c, config/s390/s390.c,
20853         config/vax/vax.md: Fix comment typos.  Follow spelling
20854         conventions.
20855
20856 2005-01-23  Steven Bosscher  <stevenb@suse.de>
20857
20858         * gengtype.c (walk_type): Produce `not equal to' compares for loop
20859         tests, instead of `less than'.
20860
20861 2005-01-23  Richard Sandiford  <rsandifo@redhat.com>
20862
20863         * function.c (assign_parm_setup_block): When creating a new stack slot
20864         for a parameter, get its alignment from the parameter's DECL_ALIGN
20865         rather than the type's TYPE_ALIGN.  Make sure that the parameter
20866         is at least word aligned.
20867
20868 2005-01-22  Roger Sayle  <roger@eyesopen.com>
20869
20870         PR middle-end/19378
20871         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
20872
20873 2005-01-22  Richard Henderson  <rth@redhat.com>
20874
20875         PR target/19506
20876         * config/i386/i386.md (movsfcc_1_sse_max): Use nonimmediate_operand
20877         in both compare operands.
20878         (movdfcc_1_sse_max): Likewise.
20879         (movsfcc_1_sse): Likewise.  Add earlyclobber for scratch.
20880         (movdfcc_1_sse): Likewise.
20881         * config/i386/i386.c (ix86_split_sse_movcc): Emit copies into the
20882         scratch register as needed.
20883
20884 2005-01-22  Richard Henderson  <rth@redhat.com>
20885
20886         * config/i386/i386.md (smaxsf3): Fix mnemonic typo.
20887
20888         * config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
20889
20890 2005-01-22  Richard Henderson  <rth@redhat.com>
20891
20892         * genopinit.c (optabs): Use smin/smax for floating point too.
20893         * doc/md.texi: Update to match.  Clarify that floating point
20894         results are undefined for +0/-0 and NaN.
20895         * doc/rtl.texi: Likewise.
20896         * rtl.def (SMIN, SMAX): Likewise
20897         * tree.def (MIN_EXPR, MAX_EXPR): Likewise.
20898
20899         * config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
20900         leading 's' to the name.
20901         * config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
20902         smaxxf3, sminxf3): Likewise.
20903         * config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
20904         Likewise.
20905
20906 2005-01-22  Paul Brook  <paul@codesourcery.com>
20907
20908         * config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.
20909
20910 2005-01-21  Mark Dettinger  <dettinge@de.ibm.com>
20911
20912         * config/s390/s390.c (struct processor_costs): New fields
20913         dlgr, dlr, dr, dsgfr, dsgr.
20914         (z900_cost, z990_cost): Values for new fields.
20915         (s390_rtx_costs): New cases MEM und COMPARE in switch
20916         statement. Modified handling of SIGN_EXTEND, ZERO_EXTEND,
20917         DIV, MOD, UDIV, UMOD.
20918
20919 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
20920
20921         * config/s390/s390.md ("doloop_si64"): Reload input value directly
20922         into the register being decremented.
20923         ("doloop_si31", "doloop_di"): Likewise.
20924         ("*doloop_si_long"): Adapt pattern.
20925
20926 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
20927
20928         * config/s390/s390.h (HARD_REGNO_NREGS): Fix computation for
20929         access registers.
20930         (CLASS_MAX_NREGS): Likewise.
20931
20932 2005-01-21  Daniel Berlin  <dberlin@dberlin.org>
20933
20934         * doc/tree-ssa.texi (Statement Operands): Add example for new
20935         must-def macro. Note deprecation of old operands interface.
20936
20937 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
20938
20939         PR tree-optimization/19484
20940         * tree-cfg.c (remove_fallthru_edge): New function.
20941         (cleanup_control_flow): Remove fallthru edges from calls that are
20942         now known not to return.
20943
20944 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
20945
20946         Fix PR tree-optimization/19038
20947         * tree-ssa-dom.c (cprop_operand): Don't replace loop invaeriant
20948         copies with loop variant ones.
20949
20950 2005-01-22  Kazu Hirata  <kazu@cs.umass.edu>
20951
20952         * cfganal.c, real.h, reorg.c, timevar.def, tree-ssa-ccp.c,
20953         config/alpha/alpha-protos.h, config/alpha/alpha.h,
20954         config/alpha/alpha.md, config/alpha/predicates.md,
20955         config/sparc/freebsd.h, config/sparc/netbsd-elf.h,
20956         config/sparc/sol2.h: Update copyright.
20957
20958         * tree-cfg.c (remove_forwarder_block_with_phi): Look at the
20959         first label to see if it is a nonlocal label.
20960
20961 2005-01-22  David Edelsohn  <edelsohn@gnu.org>
20962             Andrew Pinski  <pinskia@physics.uc.edu>
20963
20964         PR target/19491
20965         * config/rs6000/rs6000.c (rs6000_va_start): Saturate n_gpr at
20966         maximum number of GPRs.  Saturate n_fpr at maximum number of FPRs.
20967
20968 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
20969
20970         * config/rs6000/rtems.h: Update copyright.
20971
20972 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
20973
20974         PR target/19548
20975         * config/rs6000/rtems.h: Resurrect cpp_os_rtems_spec from gcc < 3.4.
20976         (CPP_OS_RTEMS_SPEC): New (From gcc-3.3's config/rs6000/sys4.h).
20977         (SUBSUBTARGET_EXTRA_SPECS): Use CPP_OS_RTEMS_SPEC.
20978
20979 2005-01-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
20980
20981         PR c/18809
20982         * c-typeck.c (convert_arguments): Check for error_mark_node.
20983
20984 2005-01-21  Ian Lance Taylor  <ian@airs.com>
20985
20986         PR tree-optimization/13000
20987         * tree-inline.c: Include "tree-flow.h".
20988         (expand_call_inline): If warn_return_type, warn if non-void inline
20989         function falls through.
20990         * tree-cfg.c (execute_warn_function_return): Don't warn about
20991         control reaching end if TREE_NO_WARNING is set.  Set
20992         TREE_NO_WARNING.
20993         * gimple-low.c (block_may_fallthru): Don't assume that SWITCH_EXPR
20994         has been lowered.
20995         * gimplify.c (shortcut_cond_expr): Don't emit a jump over the else
20996         branch if we don't need one.
20997         * c-typeck.c: Include "tree-flow.h"
20998         (c_finish_bc_stmt): Don't add a goto if the current statement
20999         list doesn't fall through to the current point.
21000
21001 2005-01-21  Roger Sayle  <roger@eyesopen.com>
21002
21003         PR rtl-optimization/576
21004         * real.c (real_arithmetic): Change return type from void to bool
21005         to return an indication that the result may be inexact.
21006         * real.h (real_arithmeric): Update prototype.
21007         * fold-const.c (const_binop):  Don't constant fold floating
21008         point expressions when the user specifies -frounding-math and
21009         the result may depend upon the run-time rounding mode.
21010         (fold_convert_const_real_from_real): Clean-up.
21011         (fold_initializer): Ignore flag_rounding_math for initializers.
21012         * simplify-rtx.c (simplify_binary_operation): Likewise, don't
21013         constant fold FP operations with flag_rounding_math if the
21014         result may depend upon the run-time rounding mode.
21015
21016 2005-01-21  Tom Tromey  <tromey@redhat.com>
21017
21018         * c-cppbuiltin.c (define__GNUC__): Correct assertion.
21019
21020 2005-01-21  Kazu Hirata  <kazu@cs.umass.edu>
21021
21022         * tree-cfg.c: Fix comment typos.
21023
21024 2005-01-21  J"orn Rennecke <joern.rennecke@st.com>
21025
21026         * passes.c (rest_of_handle_flow2): Close / open the flow2 dump file
21027         around the call to rest_of_handle_branch_target_load_optimize.
21028
21029 2005-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
21030
21031         * config.gcc (sparc-*-netbsdelf*): Include dbxelf.h
21032         (sparc64-*-openbsd*): Likewise.
21033         (sparclite-*-elf*): Include tm-dwarf2.h.
21034         (sparc86x-*-elf*): Likewise.
21035         (sparc64-*-elf*): Likewise.
21036         * config/sparc/linux64.h (DWARF2_DEBUGGING_INFO): Delete.
21037         (DBX_DEBUGGING_INFO): Likewise.
21038         * config/sparc/liteelf.h (DWARF2_DEBUGGING_INFO): Likewise.
21039         (PREFERRED_DEBUGGING_TYPE): Likewise.
21040         * config/sparc/netbsd-elf.h (PREFERRED_DEBUGGING_TYPE): Likewise.
21041         * config/sparc/sp64-elf.h (DBX_DEBUGGING_INFO): Likewise.
21042         (PREFERRED_DEBUGGING_TYPE): Likewise.
21043         * config/sparc/sp86x-elf.h (DWARF2_DEBUGGING_INFO): Likewise.
21044         (PREFERRED_DEBUGGING_TYPE): Likewise.
21045         * config/sparc/sparc.h (DBX_DEBUGGING_INFO): Likewise.
21046
21047 2005-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
21048
21049         PR target/18701
21050         * combine.c (combine_simplify_rtx): Revert change of 2004-12-31.
21051
21052 2005-01-20  Paul Brook  <paul@codesourcery.com>
21053
21054         * doc/rtl.texi: Document value extension requirements for CONST_INT.
21055
21056 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
21057
21058         * tree-cfg.c (tree_verify_flow_info): Check that a nonlocal
21059         label is first in a sequence of labels.
21060
21061         * tree-cfg.c (tree_verify_flow_info): Fix a typo.
21062
21063 2005-01-20  Janis Johnson  <janis187@us.ibm.com>
21064             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
21065
21066         * doc/sourcebuild.texi (Test Directives): New.
21067
21068 2005-01-20  Roger Sayle  <roger@eyesopen.com>
21069
21070         * real.c (real_floor): Don't leave the result uninitialized when
21071         mode is VOIDMode, but return the unrounded intermediate value.
21072         (real_ceil): Likewise.
21073
21074 2005-01-20  Paul Brook  <paul@codesourcery.com>
21075
21076         * config/arm/arm.md (insv): Use gen_int_mode.
21077
21078 2005-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
21079
21080         * config/sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABELREF): Delete.
21081         * config/sparc/linux.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
21082         * config/sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
21083         * config/sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
21084         * config/sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
21085
21086 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
21087
21088         Fix PR debug/19124
21089         * dwarf2out.c (concat_loc_descriptor): We don't know we can use
21090         fbreg, so we have to assume we can't.
21091         (loc_descriptor_from_tree_1): Ditto.
21092         (containing_function_has_frame_base): New function.
21093         (add_location_or_const_value_attribute): Use it.
21094         Also try to generate a frame_base from a single element location
21095         list.
21096
21097 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
21098
21099         PR tree-optimization/15349
21100         * timevar.def (TV_TREE_MERGE_PHI): New.
21101         * tree-cfg.c (tree_forwarder_block_p): Add a new argument
21102         PHI_WANTED.
21103         (remove_forwarder_block, cleanup_forwarder_blocks): Adjust the
21104         calls to tree_forwarder_block_p.
21105         (remove_forwarder_block_with_phi, merge_phi_nodes,
21106         gate_merge_phi, pass_merge_phi): New.
21107         * tree-optimize.c (init_tree_optimization_passes): Add
21108         pass_merge_phi.
21109         * tree-pass.h: Add an extern for pass_merge_phi;
21110
21111 2005-01-20  Richard Henderson  <rth@redhat.com>
21112
21113         PR target/19418
21114         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128): New.
21115         (_mm_castps_pd, _mm_castps_si128): New.
21116         (_mm_castsi128_ps, _mm_castsi128_pd): New.
21117
21118 2005-01-20  Richard Henderson  <rth@redhat.com>
21119
21120         PR target/19530
21121         * config/i386/mmintrin.h (_mm_cvtsi32_si64): Use
21122         __builtin_ia32_vec_init_v2si.
21123         (_mm_cvtsi64_si32): Use __builtin_ia32_vec_ext_v2si.
21124         * config/i386/i386.c (IX86_BUILTIN_VEC_EXT_V2SI): New.
21125         (ix86_init_mmx_sse_builtins): Create it.
21126         (ix86_expand_builtin): Expand it.
21127         (ix86_expand_vector_set): Handle V2SFmode and V2SImode.
21128         * config/i386/mmx.md (vec_extractv2sf_0, vec_extractv2sf_1): New.
21129         (vec_extractv2si_0, vec_extractv2si_1): New.
21130
21131 2005-01-20  Richard Henderson  <rth@redhat.com>
21132
21133         PR target/16533
21134         * config/i386/i386.c (ix86_expand_push): New.
21135         * config/i386/mmx.md (push<MMXMODE>1): New.
21136         * config/i386/sse.md (push<SSEMODE>1): New.
21137         * config/i386/i386-protos.h: Update.
21138
21139 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
21140
21141         * params.def, params.h, predict.c, tree-ssa-loop-im.c: Update
21142         copyright.
21143
21144 2005-01-20  Richard Henderson  <rth@redhat.com>
21145
21146         * rtl.def (CONST_VECTOR): Use RTX_CONST_OBJ.
21147         * rtl.h (CONSTANT_P): Don't special case CONST_VECTOR.
21148
21149 2005-01-19  Richard Henderson  <rth@redhat.com>
21150
21151         PR target/19350
21152         * config/i386/i386.c (ix86_expand_vector_move_misalign): Convert
21153         to V4SFmode in SSE1 fallback load path.
21154
21155 2005-01-19  Richard Henderson  <rth@redhat.com>
21156
21157         * config/i386/i386.c (ix86_expand_vector_init_one_var): Fix typo
21158         in QImode expansion to ix86_expand_vector_set.
21159         (ix86_expand_vector_init_general): Fix typo in V8HImode recursive call.
21160
21161 2005-01-19  Richard Henderson  <rth@redhat.com>
21162
21163         PR target/19511
21164         * config/i386/i386.c (ix86_preferred_reload_class): Return a proper
21165         subclass of the input class.
21166         (ix86_secondary_memory_needed): Always true for cross-MMX classes.
21167         Always true for cross-SSE1 classes.  Rationalize conditionals.
21168         * config/i386/i386.h (SSE_CLASS_P, MMX_CLASS_P): Use straight equality.
21169         * config/i386/i386.md (movsi_1): Add MMX/SSE zeros.  Fix alternatives
21170         for SSE1.  Don't check TARGET_INTER_UNIT_MOVES.
21171         (movdi_2): Add MMX/SSE zeros.
21172         (movdi_1_rex64): Likewise.  Don't check TARGET_INTER_UNIT_MOVES.
21173         (movsf_1): Don't check TARGET_INTER_UNIT_MOVES.
21174         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
21175         (movsi_1_nointernunit, movdi_1_rex64_nointerunit): Remove.
21176         (movsf_1_nointerunit, zero_extendsidi2_32_1): Remove.
21177         (zero_extendsidi2_rex64_1): Remove.
21178         (MOV0 peephole): Check GENERAL_REG_P.
21179
21180 2005-01-19  Richard Henderson  <rth@redhat.com>
21181
21182         PR target/19427
21183         * config/i386/i386.c (ix86_expand_vector_set): Fix third and fourth
21184         shufps elements.
21185         (ix86_expand_vector_extract): Likewise.
21186
21187 2005-01-19  Richard Henderson  <rth@redhat.com>
21188
21189         PR middle-end/19304
21190         * expr.c (emit_move_change_mode): New argument force; use
21191         simplify_gen_subreg if true.
21192         (emit_move_via_alt_mode): Merge into ...
21193         (emit_move_via_integer): ... here.
21194         (emit_move_ccmode): Use emit_move_change_mode directly.
21195
21196 2005-01-19  Richard Henderson  <rth@redhat.com>
21197
21198         PR target/19518
21199         * config/alpha/alpha.c (alpha_rtx_costs): Handle HIGH.
21200         (alpha_preferred_reload_class): Handle CONST_VECTOR.
21201         (alpha_emit_set_const_1): Add no_output parameter; don't emit
21202         rtl if true.
21203         (alpha_emit_set_const): Likewise.  Make static.
21204         (alpha_emit_set_long_const): Make static.
21205         (alpha_extract_integer): Split out from alpha_expand_mov.
21206         (alpha_split_const_mov): Likewise.
21207         (alpha_expand_mov): Use them.  Handle CONST_VECTOR.
21208         (alpha_legitimate_constant_p): New.
21209         * config/alpha/alpha-protos.h: Update.
21210         * config/alpha/alpha.h (REGISTER_MOVE_COST): Correct fp<->gp cost.
21211         (LEGITIMATE_CONSTANT_P): Re-implement with a function.
21212         * config/alpha/alpha.md (movsi): Add n alternative.
21213         (movsi_nt_vms, movdi_er_nofix, movdi_er_fix, movdi_fix): Likewise.
21214         (mov<VEC>_fix, mov<VEC>_nofix): Add i alternative.
21215         (splitters for all of the above): Use alpha_split_const_mov.
21216         * config/alpha/predicates.md (non_add_const_operand): New.
21217         (non_zero_const_operand): New.
21218         (input_operand): Use alpha_legitimate_constant_p after reload.
21219
21220 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
21221
21222         PR tree-optimization/19038
21223         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): New function.
21224         (add_candidate): Add ivs with increment in latch only if
21225         allow_ip_end_pos_p is true.
21226         (determine_iv_cost): Use empty_block_p.
21227
21228 2005-01-19  Daniel Berlin  <dberlin@dberlin.org>
21229
21230         * cfganal.c (compute_dominance_frontiers_1): Replace with new algorithm
21231         (compute_dominance_frontiers): Ditto.
21232
21233 2005-01-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
21234
21235         PR target/19529
21236         * config/sh/t-rtems: New.
21237         * config.gcc (sh-*-rtems*): Reflect having added config/sh/t-rtems.
21238
21239 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
21240
21241         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Always subtract
21242         the offset of the selected field.
21243
21244 2005-01-19  Kazu Hirata  <kazu@cs.umass.edu>
21245
21246         * tree-cfg.c (remove_forwarder_block): Fix the check to
21247         prevent a nonlocal label from appearing in the middle of a
21248         basic block.
21249
21250 2005-01-19  Hans-Peter Nilsson  <hp@axis.com>
21251
21252         PR rtl-optimization/19462
21253         * reorg.c (find_end_label): Create return insn only if
21254         current_function_epilogue_delay_list is empty.
21255
21256 2005-01-19  Paolo Bonzini  <bonzini@gnu.org>
21257
21258         * doc/passes.texi: Remove paragraph mentioning new-ra.
21259
21260 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
21261
21262         PR rtl-optimization/15139
21263         * combine.c: Include params.h.
21264         (count_rtxs): New function.
21265         (record_value_for_reg): If replace_rtx would replace at least
21266         2 occurrences of REG in VALUE and TEM is really large, replace REG with
21267         (clobber (const_int 0)) instead of TEM.
21268         * params.def (PARAM_MAX_LAST_VALUE_RTL): New.
21269         * params.h (MAX_LAST_VALUE_RTL): New.
21270         * Makefile.in (combine.o): Depend on $(PARAMS_H).
21271         * doc/invoke.texi (--param max-last-value-rtl=N): Document.
21272
21273         PR c/17297
21274         * c-typeck.c (digest_init): Only call build_vector if all constructor
21275         elements are *_CST nodes.
21276         * gimplify.c (gimplify_init_constructor): Likewise.
21277
21278         PR middle-end/19164
21279         * c-typeck.c (digest_init): Only call build_vector if inside_init
21280         is a CONSTRUCTOR.
21281
21282 2005-01-18  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
21283
21284         * toplev.c (init_asm_output): Remove dead #ifdef.
21285
21286 2005-01-18  Kaz Kojima  <kkojima@gcc.gnu.org>
21287
21288         * config/sh/linux.h (TARGET_C99_FUNCTIONS): Define.
21289
21290 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
21291
21292         * calls.c (expand_call): Check DECL_BUILT_IN_CLASS before
21293         accessing DECL_FUNCTION_CODE.
21294         * dojump.c (do_jump): Likewise.
21295         * gimplify.c (gimplify_call_expr): Likewise.
21296         * predict.c (expr_expected_value): Likewise.
21297         (strip_builtin_expect): Likewise.
21298         * tree-inline.c (estimate_num_insns_1): Likewise.
21299         * tree-ssa-loop-im.c (stmt_cost): Likewise
21300         * fold-const.c (fold): Test for BUILT_IN_NORMAL.
21301         (tree_expr_nonnegative_p): Likewise.
21302
21303 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
21304
21305         * config/sparc/sparc.c (load_pic_register): Emit the appropriate
21306         variant of the load_pcrel_sym pattern.
21307         * config/sparc/sparc.md (P macro): Move to the top.
21308         (load_pcrel_sym): Macroize using P.
21309         (save_register_window): Likewise.
21310
21311 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
21312
21313         * config/rs6000/rs6000.md ("sunordered"): Disable for e500.
21314         ("sordered"): Same.
21315
21316 2005-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
21317
21318         PR C/19472
21319         * c-typeck.c (build_asm_expr): Strip nops off
21320         input memory operands.
21321
21322 2005-01-18  David Edelsohn  <edelsohn@gnu.org>
21323
21324         * config/rs6000/aix43.h (CPLUSPLUS_CPP_SPEC): Delete
21325         _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, _LARGE_FILE_API.
21326         * config/rs6000/aix51.h (CPLUSPLUS_CPP_SPEC): Same.
21327         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Same.
21328
21329 2005-01-18  Joel Sherrill <joel.sherrill@oarcorp.com>
21330
21331         PR target/19379
21332         * config/i386/i386.c (override_options): If the 80387 is disabled,
21333         then do not return FP values using FP registers.
21334
21335 2005-01-18  Kazu Hirata  <kazu@cs.umass.edu>
21336
21337         * basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c,
21338         c-tree.h, cfgbuild.c, cgraph.c, cgraph.h, collect2.c,
21339         combine.c, config.gcc, coverage.h, cse.c, cselib.c,
21340         defaults.h, df.c, dwarf2asm.c, dwarf2out.c, explow.c, expr.c,
21341         flow.c, fold-const.c, gcse.c, ggc-page.c, gimple-low.c,
21342         gimplify.c, ifcvt.c, langhooks-def.h, lcm.c, optabs.h,
21343         output.h, postreload-gcse.c, postreload.c, recog.c,
21344         resource.c, rtl.def, rtlanal.c, sched-deps.c, sched-rgn.c,
21345         targhooks.h, toplev.c, tree-data-ref.c, tree-eh.c,
21346         tree-flow.h, tree-loop-linear.c, tree-mudflap.h, tree-nrv.c,
21347         tree-optimize.c, tree-outof-ssa.c, tree-pass.h,
21348         tree-scalar-evolution.c, tree-ssa-copy.c, tree-ssa-dce.c,
21349         tree-ssa-dse.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c,
21350         tree-ssa-pre.c, tree-ssa.c, tree-vectorizer.c, tree.def,
21351         unwind-dw2-fde-darwin.c, var-tracking.c: Update copyright.
21352
21353         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
21354         config/alpha/alpha.c, config/arm/vfp.md,
21355         config/i386/emmintrin.h, config/i386/i386-modes.def,
21356         config/i386/i386-protos.h, config/i386/i386.h,
21357         config/i386/pmmintrin.h, config/i386/ppro.md,
21358         config/i386/predicates.md, config/i386/xmmintrin.h,
21359         config/i860/i860.c, config/ia64/ia64-modes.def,
21360         config/ia64/ia64-protos.h, config/ia64/ia64.h,
21361         config/ia64/ia64.md, config/ia64/itanium1.md,
21362         config/ia64/itanium2.md, config/ia64/predicates.md,
21363         config/iq2000/iq2000.h, config/mips/linux64.h,
21364         config/rs6000/aix41.h, config/rs6000/aix43.h,
21365         config/rs6000/aix52.h, config/rs6000/darwin-fallback.c,
21366         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
21367         config/rs6000/spe.md, config/sh/sh.md, config/sparc/linux.h,
21368         config/sparc/linux64.h, config/sparc/litecoff.h,
21369         config/sparc/sp64-elf.h, config/sparc/sparc.c,
21370         config/sparc/sparc.h, config/sparc/sparc.md,
21371         config/sparc/sysv4-only.h: Update copyright.
21372
21373 2005-01-18  Richard Henderson  <rth@redhat.com>
21374
21375         PR target/19496
21376         * config/i386/i386.c (ix86_expand_fp_movcc): Fail for LTGT and UNEQ.
21377
21378 2005-01-18  Marc Espie  <espie@openbsd.org>
21379         * config/i386/openbsdelf.h: Typo.
21380
21381 2005-01-18  Richard Henderson  <rth@redhat.com>
21382
21383         * config/i386/i386.c (ix86_expand_fp_movcc): Remove TARGET_IEEE_FP
21384         special case for sse.
21385         * config/i386/predicates.md (sse_comparison_operator): Likewise.
21386
21387 2005-01-18  Dorit Naishlos  <dorit@il.ibm.com>
21388
21389         * tree-inline.c (estimate_num_insns_1): Added cases for
21390         ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, and REALIGN_LOAD_EXPR.
21391
21392 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
21393
21394         PR rtl-optimization/19296
21395         * combine.c (simplify_comparison): Rewrite the condition under
21396         which a non-paradoxical SUBREG of a PLUS can be lifted when
21397         compared against a constant.
21398
21399 2005-01-18  Andi Kleen <ak@muc.de>
21400
21401         * c-typeck.c: (convert_for_assignment): Check warn_pointer_sign.
21402         * c.opt (-Wpointer-sign): Add.
21403         * doc/invoke.texi: (-Wpointer-sign): Add.
21404
21405 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
21406
21407         * config/i386/i386.c (override_options): Revert 2004-11-24 change.
21408         * config/i386/i386.md (fmodsf3, dremsf3, *sinsf2, *cossf2, sincossf3,
21409         *tansf3_1, tansf2, atan2sf3_1, atan2sf3, atansf2, asinsf2, acossf2,
21410         logsf2, log10sf2, log2sf2, log1psf2, logbsf2, ilogbsf2, expsf2,
21411         exp10sf2, exp2sf2, expm1sf2, rintsf2, floorsf2, ceilsf2, btruncsf2,
21412         nearbyintsf2): Disable for TARGET_SSE_MATH.  Leave patterns enabled
21413         for TARGET_MIX_SSE_I387.
21414         (fmoddf3, dremdf3, *sindf2, *sinextendsfdf2, *cosdf2, *cosextendsfdf2,
21415         sincosdf3, *sincosextendsfdf3, *tandf3_1, tandf2, atan2df3_1,
21416         atan2df3, atandf2, asindf2, acosdf2, logdf2, log10df2, log2df2,
21417         log1pdf2, logbdf2, expdf2, exp10df2, exp2df2, expm1df2, rintdf2,
21418         floordf2, ceildf2, btruncdf2, nearbyintdf2): Disable for
21419         (TARGET_SSE2 && TARGET_SSE_MATH).  Leave patterns enabled for
21420         TARGET_MIX_SSE_I387.
21421         (atan2sf3, atan2df3, atan2xf3): Remove register constraints
21422         from expander.
21423
21424 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
21425
21426         PR target/19424
21427         * config/i386/mmx.md (*movv2sf_internal_rex64, *movv2sf_internal):
21428         Add movaps alternative for xmm reg->reg move.
21429
21430 2005-01-17  Jeff Law  <law@redhat.com>
21431
21432         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Clear SSA_NAME_VALUE
21433         at the end of the main DOM loop rather than just before DOM exits.
21434
21435 2005-01-17  Diego Novillo  <dnovillo@redhat.com>
21436
21437         PR tree-optimization/19121
21438         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): When
21439         adding aliases to a name tag, also add them to the pointer's
21440         type tag.
21441         * tree-ssa-copy.c (merge_alias_info): Do not merge flow
21442         sensitive alias info at all.  Only check that the two pointers
21443         have compatible pointed-to sets.
21444         * tree-ssa.c (verify_name_tags): Verify that the alias set of
21445         a pointer's type tag is a superset of the alias set of the
21446         pointer's name tag.
21447
21448 2005-01-17  James E Wilson  <wilson@specifixinc.com>
21449
21450         PR target/19357
21451         * config/ia64/ia64.md (movxf): Handle general register source.  Adjust
21452         comment to document why.
21453
21454 2005-01-17  Richard Henderson  <rth@redhat.com>
21455
21456         * config/i386/sse.md (smaxv4sf3_finite, sse_vmsmaxv4sf3_finite,
21457         sminv4sf3_finite, sse_vmsminv4sf3_finite, smaxv2df3_finite,
21458         sse2_vmsmaxv2df3_finite, sminv2df3_finite,
21459         sse2_vmsminv2df3_finite): New.
21460         (smaxv4sf3, sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, smaxv2df3,
21461         sse2_vmsmaxv2df3, sminv2df3, sse2_vmsminv2df3): Remove commutative.
21462         Force op1 into register.
21463
21464 2005-01-17  Kelley Cook  <kcook@gcc.gnu.org>
21465
21466         * Makefile.in (STAGEMOVESTUFF): Stage all the stamp files to prevent
21467         bubblestrap from always rebuilding build directory.
21468
21469 2005-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
21470
21471         * config/s390/s390.md ("*clc"): Remove incorrect '='.
21472         ("*cmpmem_short"): Likewise.
21473
21474 2005-01-17  Steven Bosscher  <stevenb@suse.de>
21475
21476         * basic-block.h: Document BB_* flags.
21477         * regrename.c (copyprop_hardreg_forward): Don't use BB_VISITED,
21478         use an sbitmap instead.
21479         * sched-rgn.c (compute_trg_info): Likewise.
21480
21481 2005-01-17  Richard Sandiford  <rsandifo@redhat.com>
21482
21483         * config.gcc (mips64*-*-linux*): Set the default abi to n32.  Remove
21484         redundant target_cpu_default and extra_parts lines.  Use the default
21485         "from-abi" ISA.
21486         * config/mips/linux64.h (DRIVER_DEFAULT_ABI_SELF_SPEC): Delete.
21487         (SUBTARGET_EXTRA_SPECS): Delete.
21488         (DRIVER_SELF_SPECS): Remove architecture lines.  Set the ABI directly.
21489         (SUBTARGET_ASM_SPEC): Remove -mabi=n32 and -mabi=64 mappings.
21490         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Use "32" for -mabi=32
21491         and "n32" for -mabi=n32.
21492
21493 2005-01-17  Ian Lance Taylor  <ian@airs.com>
21494
21495         PR c/5675
21496         * c-typeck.c (build_c_cast): Revert patch of 2003-02-16: don't
21497         fold constant variables into initial values.
21498
21499 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
21500
21501         * tree-cfg.c (tree_can_merge_blocks_p): Reorder two checks.
21502
21503         * tree-cfg.c (tree_forwarder_block_p): Speed up by walking
21504         through the statements backward.
21505
21506 2005-01-17  Ian Lance Taylor  <ian@airs.com>
21507
21508         PR middle-end/13127:
21509         * tree-inline.c (expand_call_inline): Set TREE_NO_WARNING on
21510         a variable set to the return value of the inlined function.
21511
21512 2005-01-17  Mark Dettinger  <dettinge@de.ibm.com>
21513
21514         * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
21515         when modes are tieable.
21516
21517 2005-01-17  Ranjit Mathew  <rmathew@hotmail.com>
21518
21519         * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead
21520         of pthread_create to find out if threads are enabled.
21521         * gthr-posix95.h (__gthread_active_p): Likewise.
21522
21523 2005-01-17  Paolo Bonzini  <bonzini@gnu.org>
21524
21525         * common.opt (-fnew-ra): Remove.
21526         * ra*.*: Remove.
21527         * toplev.h (flag_new_regalloc): Remove.
21528         * Makefile.in (ra*.*): Don't mention.
21529         * passes.c (rest_of_handle_new_regalloc): Remove.
21530         (rest_of_handle_combine, rest_of_compilation): Always consider
21531         flag_new_regalloc as false.
21532         * doc/invoke.texi: Don't document -fnew-ra.
21533
21534 2005-01-17  Paolo Bonzini <bonzini@gnu.org>
21535
21536         * bb-reorder.c (fix_edges_for_rarely_executed_code): Remove
21537         last parameter to reg_scan.
21538         * loop.c (loop_optimize): Likewise.
21539         * passes.c (rest_of_handle_tracer, rest_of_handle_if_conversion,
21540         rest_of_handle_web, rest_of_handle_cfg, rest_of_handle_jump_bypass,
21541         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
21542         rest_of_handle_gcse, rest_of_handle_loop_optimize,
21543         rest_of_handle_loop2, rest_of_handle_jump2): Likewise.
21544         * regclass.c (reg_scan): Likewise, for the declaration.
21545         * rtl.h (reg_scan): Likewise, for the prototype.
21546
21547 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
21548
21549         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Don't call
21550         mark_dfs_back_edges.
21551
21552 2005-01-16  Daniel Berlin  <dberlin@dberlin.org>
21553
21554         * tree-ssa-pre.c (add_to_sets): s1 may be NULL.
21555         (compute_avail): Uses don't go in tmp_gen.
21556
21557 2005-01-16  Steven Bosscher  <stevenb@suse.de>
21558
21559         * ggc-page.c (ggc_alloc_stat): Use __builtin_ctzl instead of a
21560         loop to look for a free slot in a page entry.
21561
21562 2005-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21563
21564         PR target/16304
21565         * defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Provide default.
21566         * toplev.c (compile_file): Call process_pending_assemble_output_defs
21567         just before targetm.asm_out.file_end.
21568         * tree.h (process_pending_assemble_output_defs): Declare.
21569         * varasm.c (assemble_output_def, process_pending_assemble_output_defs):
21570         New functions.
21571         (assemble_alias): Defer generation of assembly code for defines when
21572         TARGET_DEFERRED_OUTPUT_DEFS is true.
21573         * config/rs6000/aix41.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
21574         * config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
21575         * doc/tm.texi (TARGET_DEFERRED_OUTPUT_DEFS): document.
21576
21577 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21578
21579         PR target/19336
21580         * pa.c (pa_scalar_mode_supported_p): New function.
21581         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
21582         * pa.h (MIN_UNITS_PER_WORD): Add comment.
21583
21584         * pa-protos.h (prefetch_operand): Delete.
21585         (prefetch_cc_operand, prefetch_nocc_operand): New declations.
21586         * pa.c (prefetch_operand): Delete.
21587         (prefetch_cc_operand, prefetch_nocc_operand): New functions.
21588         * pa.h (EXTRA_CONSTRAINT): Add `W' constraint.
21589         (PREDICATE_CODES): Delete prefetch_operand.  Add prefetch_cc_operand
21590         and prefetch_nocc_operand.
21591         * pa.md (prefetch): Rework to avoid reload problems handling short
21592         displacements when a cache control completer needs to be provided.
21593         (prefetch_32, prefetch_64): Delete.
21594         (prefetch_cc, prefetch_nocc): New patterns.
21595
21596 2005-01-15  David Edelsohn  <edelsohn@gnu.org>
21597
21598         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Revert previous change.
21599
21600 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21601
21602         PR ada/19388
21603         * pa.c (pa_asm_output_aligned_common): Warn if specified alignment
21604         exceeds maximum alignment for global common data.
21605         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): Define to 32768.
21606         * som.h (MAX_OFILE_ALIGNMENT): Likewise.
21607
21608 2004-01-15  Roger Sayle  <roger@eyesopen.com>
21609
21610         * tree-ssa-dom.c (extract_range_from_cond): Correct condition.
21611
21612 2004-01-15  Roger Sayle  <roger@eyesopen.com>
21613
21614         * harg-reg-set.h (reg_class_names): Prototype global array.
21615         * regclass.c (reg_class_names): Declare here and initialize to
21616         REG_CLASS_NAMES.
21617         (dump_regclass): Remove local declaration of reg_class_names.
21618         (regclass): Likewise.
21619         * cfg.c (dump_flow_info): Likewise.
21620         * ra-debug.c (reg_class_names): Likewise.
21621         * regrename.c (reg_class_names): Likewise.
21622         * reload.c (reg_class_names): Likewise.
21623         * reload1.c (spill_failure): Likewise.
21624         * config/m68hc11/m68hc11.c (reg_class_names): Likewise.
21625
21626 2005-01-15  Ulrich Weigand  <uweigand@de.ibm.com>
21627
21628         * config/s390/s390.md ("reload_outti"): Remove predicate for
21629         output operand.  Abort if operand is not a MEM.
21630         ("reload_outdi", "reload_outdf"): Likewise.
21631
21632 2005-01-15  Marc Espie  <espie@openbsd.org>
21633
21634         * config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
21635         (i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4.
21636         * config/openbsd.h:  Fix C++ includes for native configurations.
21637         Add proper OS_CPP_BUILTINS.  Fix libspec for recent OpenBSD.
21638         Add trampoline support.
21639         * config/i386/openbsdelf.h: New.
21640
21641 2005-01-15  Marc Espie  <espie@openbsd.org>
21642
21643         * collect2.c (main): Explicitly parse -dynamic-linker option.
21644
21645 2005-01-15  Jakub Jelinek  <jakub@redhat.com>
21646
21647         PR tree-optimization/19060
21648         * tree-ssa-dom.c (extract_range_from_cond) <case LT_EXPR, GT_EXPR>:
21649         Return 0 if op1 <= TYPE_MIN_VALUE () resp. op1 >= TYPE_MAX_VALUE ().
21650         (simplify_cond_and_lookup_avail_expr): Add assert for dummy == 0
21651         and handle extract_range_from_cond returning false.
21652         * fold-const.c (fold): Optimize comparisons with min/max even for
21653         width > HOST_BITS_PER_WIDE_INT.
21654
21655 2005-01-15  Ralf Corsepius  <ralf.corsepius@rtems.org>
21656
21657         * config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
21658         * config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS):
21659         Remove little endian multilib variants.
21660         Add mips32 multilib variant.
21661
21662 2005-01-15  Kazu Hirata  <kazu@cs.umass.edu>
21663
21664         * explow.c (copy_all_reg, stabilize): Remove.
21665         * expr.h: Remove the corresponding prototypes.
21666
21667         * rtlanal.c (regs_set_between_p): Remove.
21668         * rtl.h: Remove the corresponding prototype.
21669
21670 2005-01-14  David Edelsohn  <edelsohn@gnu.org>
21671
21672         * config/rs6000/rs6000.c (rs6k_nonimmediate_operand): Rename
21673         to rs6000_nonimmediate_operand.
21674         * config/rs6000/rs6000.h (PREDICATE_CODES): Rename
21675         rs6k_nonimmediate_operand to rs6000_nonimmediate_operand.
21676         * config/rs6000/rs6000.md (movsi_internal1): Rename predicate to
21677         rs6000_nonimmediate_operand.
21678         * config/rs6000/spe.md (movdf_e500_double): Rename predicate to
21679         rs6000_nonimmediate_operand.
21680
21681 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
21682
21683         * tree-ssa-alias.c (pass_may_alias): Add TODO_verify_stmts.
21684
21685 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
21686
21687         * config/rs6000/rs6000.h (CLASS_MAX_NREGS): DF goes in 1 register
21688         on e500v2.
21689         (CANNOT_CHANGE_MODE_CLASS): Restrict DI mode changes on e500v2.
21690         (PREDICATE_CODES): Add rs6k_nonimmediate_operand.
21691
21692         * config/rs6000/rs6000.c (invalid_e500_subreg): New.
21693         (rs6k_nonimmediate_operand): New.
21694         (rs6000_legitimate_offset_address_p): Handle DI modes on e500v2
21695         correctly.
21696         (legitimate_lo_sum_address_p): Same.
21697         (rs6000_legitimize_address): Same.
21698         (rs6000_legitimize_reload_address): Same.
21699         (rs6000_legitimate_address): Same.
21700         (spe_build_register_parallel): Pass DF and DC modes in a DI
21701         register.
21702
21703         * config/rs6000/rs6000.md ("*movsi_internal1"): Change predicate
21704         to rs6k_nonimmediate_operand.
21705
21706         * config/rs6000/spe.md ("*frob_df_di"): New.
21707         ("*frob_di_df"): New.
21708         ("*frob_di_df_2"): New.
21709         ("*mov_sidf_e500_subreg0"): New.
21710         ("*mov_sidf_e500_subreg4"): New.
21711         ("*movdf_e500_double"): Change predicate to
21712         rs6k_nonimmediate_operand.
21713
21714 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
21715
21716         * postreload.c (move2add_note_store): Only call
21717         trunc_int_for_mode on scalar integers.
21718
21719 2005-01-14  Steven Bosscher  <stevenb@suse.de>
21720
21721         * tree-ssa-dce.c (visited_control_parents): New sbitmap to
21722         replace BB_VISITED uses.
21723         (find_obviously_necessary_stmts): Don't clear BB_VISITED.
21724         (propagate_necessity): Check the bitmap instead of BB_VISITED.
21725         (tree_dce_done): Free visited_control_parents.
21726         (perform_tree_ssa_dce): Allocate and clear it.
21727         * tree-ssa-pre.c (compute_antic_aux): Make non-recursive.
21728         (compute_antic): Iterate from here using a DFS.  Use an sbitmap
21729         instead of BB_VISITED.
21730
21731 2005-01-14  Kazu Hirata  <kazu@cs.umass.edu>
21732
21733         * c-tree.h, coverage.h, langhooks-def.h, optabs.h, output.h,
21734         rtl.h, targhooks.h, tree-flow.h, tree-mudflap.h, tree.h:
21735         Remove unused prototypes.
21736
21737 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
21738
21739         * config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
21740         64-bit register usage.
21741         (spe_func_has_64bit_regs_p): Add FIXME note.
21742
21743 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
21744
21745         * config/rs6000/rs6000.c (rs6000_generate_compare): Replace
21746         flag_finite_math_only with flag_unsafe_math_optimizations.
21747
21748 2005-01-14  J. D. Johnston  <jjohnst@us.ibm.com>
21749
21750         * config/s390/tpf-unwind.h (s390_fallback_frame_state): Correct
21751         end-of-stack check.
21752         (__tpf_eh_return): Copy TPF private stack area from the module
21753         boundary stack frame.  Add check for when module addresses are
21754         equal, but no stub address is found.
21755
21756 2005-01-14  Richard Earnshaw  <rearnsha@arm.com>
21757
21758         PR target/7525
21759         * arm.h (struct machine_function): Add call_via field.
21760         (thumb_call_via_label): Declare.
21761         * arm.c (thumb_call_via_label): New variable.
21762         (thumb_call_reg_needed): New variable.
21763         (arm_output_function_epilogue): For Thumb code, output any per-function
21764         call-indirect trampolines.
21765         (thumb_call_via_reg): New function.
21766         (arm_file_end): New function.
21767         (TARGET_ASM_FILE_END): Call arm_file_end.
21768         (aof_file_end): Likewise.
21769         * arm-protos.h (thumb_call_via_reg): Declare.
21770         * arm.md (call_reg_thumb, call_value_reg_thumb): Call
21771         thumb_call_via_reg in normal case.
21772
21773 2005-01-14  Jakub Jelinek  <jakub@redhat.com>
21774
21775         PR middle-end/19084
21776         PR rtl-optimization/19348
21777         * recog.c (peephole2_optimize): Do global life update if some peephole
21778         decides it doesn't need at least one of its inputs and that change
21779         influences liveness at the start of the basic block.
21780
21781         * basic-block.h (EXECUTE_IF_AND_COMPL_IN_REG_SET): Needs 2 REGSET
21782         arguments instead of 1.
21783
21784 2005-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
21785
21786         PR middle-end/18820
21787         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Return
21788         zero for nested functions needing a static chain or functions
21789         with a non-constant address.
21790
21791 2005-01-13  Roger Sayle  <roger@eyesopen.com>
21792
21793         * simplify-rtx.c (simplify_binary_operation) <AND>: Optimize
21794         (and (sign_extend X) C) into (zero_extend (and X C)).
21795
21796 2005-01-13  David O'Brien  <obrien@FreeBSD.org>
21797
21798         * config/freebsd-spec.h:  Make KSE pthread lib logic the default.
21799
21800 2005-01-13  Richard Henderson  <rth@redhat.com>
21801
21802         PR target/19009
21803         PR target/19250
21804         PR target/19252
21805         * config/i386/i386.md (cmpdf, cmpsf, bunordered, bordered, buneq,
21806         bunge, bungt, bunle, bunlt, bltgt): Enable for TARGET_SSE_MATH,
21807         not just TARGET_SSE.
21808         (cmpfp_i_387): Rename from cmpfp_i.  Move after sse patterns.
21809         (cmpfp_i_mixed): Rename from cmpfp_i_sse; use for TARGET_MIX_SSE_I387.
21810         (cmpfp_i_sse): Rename from cmpfp_i_sse_only; use for TARGET_SSE_MATH.
21811         (cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387): Similarly.
21812         (fp_jcc_1_mixed, fp_jcc_1_sse, fp_jcc_1_387): Similarly.
21813         (fp_jcc_2_mixed, fp_jcc_2_sse, fp_jcc_2_387): Similarly.
21814         (fp_jcc_3_387, fp_jcc_4_387, fp_jcc_5_387, fp_jcc_6_387,
21815         fp_jcc_7_387, fp_jcc_8_387): Rename from fp_jcc_N.
21816         (movdicc_c_rex64): Rename with '*'.
21817         (movsfcc, movdfcc): Add checks for 387 and sse math to condition.
21818         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): New.
21819         (movsfcc_1_387): Rename from movsfcc_1.
21820         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): New.
21821         (movdfcc_1, movdfcc_1_rex64): Add check for 387.
21822         (sminsf3, smaxsf3, smindf3, smaxdf3): New.
21823         (minsf3, minsf, minsf_nonieee, minsf_sse, mindf3, mindf,
21824         mindf_nonieee, mindf_sse, maxsf3, maxsf, maxsf_nonieee, maxsf_sse,
21825         maxdf3, maxdf, maxdf_nonieee, maxdf_sse, sse_movsfcc, sse_movsfcc_eq,
21826         sse_movdfcc, sse_movdfcc_eq, sse_movsfcc_const0_1,
21827         sse_movsfcc_const0_2, sse_movsfcc_const0_3, sse_movsfcc_const0_4,
21828         sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
21829         sse_movdfcc_const0_4): Remove.
21830         * config/i386/i386.c (ix86_expand_fp_movcc): For TARGET_SSE_MATH,
21831         recognize min/max early.  Update for changed sse cmove patterns.
21832         (ix86_split_sse_movcc): New.
21833         * config/i386/i386-protos.h: Update.
21834
21835 2005-01-13  Steven Bosscher  <stevenb@suse.de>
21836
21837         * tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
21838         (fix_stmt_v_may_defs): Likewise.
21839
21840 2005-01-13  Richard Henderson  <rth@redhat.com>
21841
21842         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
21843         for converting the mask.
21844
21845 2005-01-13  David Edelsohn  <edelsohn@gnu.org>
21846
21847         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
21848         definition to 600.
21849
21850 2005-01-13  Richard Henderson  <rth@redhat.com>
21851
21852         * config/i386/i386.c (IX86_BUILTIN_MOVQ, IX86_BUILTIN_LOADD,
21853         IX86_BUILTIN_STORED, IX86_BUILTIN_MOVQ2DQ,
21854         IX86_BUILTIN_MOVDQ2Q): Remove.
21855         (IX86_BUILTIN_VEC_EXT_V4SI): New.
21856         (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Update to match.
21857         (ix86_expand_vector_extract): For V4S[FI], extract element 0 after
21858         shuffling.
21859         * config/i386/sse.md (sse_concatv2sf): Accept zero operand 2.
21860         (sse2_pextrw): Fix immediate constraint.
21861         (sse2_loadq, sse2_loadq_rex64): Remove.
21862         * config/i386/emmintrin.h (_mm_cvtsi128_si32, _mm_cvtsi128_si64x):
21863         Use __builtin_ia32_vec_ext_<size>.
21864         (_mm_cvtsi32_si128, _mm_cvtsi64x_si128): Use _mm_set_epi<size>.
21865
21866 2005-01-13  Aldy Hernandez  <aldyh@redhat.com>
21867
21868         * function.c (assign_parm_setup_block): Look inside original
21869         entry_parm when inspecting PARALLEL.
21870
21871 2005-01-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
21872             Joel Sherrill  <joel@oarcorp.com>
21873
21874         PR target/19399
21875         * gthr-rtems.h (__gthread_recursive_mutex_t): New type.
21876         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
21877         rtems_gxx_recursive_mutex_init.
21878         (__gthread_recursive_mutex_lock): New function.
21879         (__gthread_recursive_mutex_trylock): Likewise.
21880         (__gthread_recursive_mutex_unlock): Likewise.
21881
21882 2005-01-13  Ralf Corsepius <ralf.corsepius@rtems.org>
21883
21884         * config/i386/t-rtems-i386: Multilib on -mtune instead of -mcpu.
21885
21886 2005-01-13  Jan Beulich  <jbeulich@novell.com>
21887
21888         * config/ia64/ia64.md (ashlti3, ashlti3_internal): New.
21889         (ashrti3_internal): Indicate output is early clobber. Generate result
21890         into output rather than first input. Use move for low word of output
21891         if shift count is exactly 64.
21892         (lshrti3_internal): Likewise.
21893
21894 2005-01-13  Hans-Peter Nilsson  <hp@bitrange.com>
21895
21896         PR target/18329
21897         PR target/18330
21898         * reload1.c (delete_output_reload): Don't delete an output reload
21899         if the pseudo lives longer than a single basic block.  Adjust and
21900         improve wording of comment.
21901
21902 2005-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
21903
21904         PR target/19334
21905         * config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead
21906         of TYPE_SIZE where we mean the number of bytes.
21907
21908 2005-01-12  Aldy Hernandez  <aldyh@redhat.com>
21909
21910         * function.c (assign_parm_setup_block): Relax condition on
21911         multi-register optimization.
21912
21913 2005-01-12  Nick Clifton  <nickc@redhat.com>
21914
21915         * config/sh/sh.md (udivsi3_sh2a, divsi3_sh2a): Give these patterns
21916         an "in_delay_slot" attribute of "no" to prevent them being used in
21917         delay slots.  This is forbidden because they might generate
21918         exceptions.
21919
21920 2005-01-12  Alan Modra  <amodra@bigpond.net.au>
21921
21922         PR target/19389
21923         * config/rs6000/rs6000.md (movtf_internal): Replace r->o and m->r
21924         with r->Y and Y->r.
21925
21926 2005-01-12  Nick Clifton  <nickc@redhat.com>
21927
21928         * config/iq2000/iq2000.h (ASM_SPEC): Undefine (to stop -Qy being
21929         passed on to GAS) but do not define, as GAS no longer supports or
21930         needs the -m2000 option.
21931
21932 2005-01-11  Roger Sayle  <roger@eyesopen.com>
21933
21934         * builtins.c (fold_builtin_fabs): Convert argument to the appropriate
21935         type as args of unprototyped builtins aren't automatically promoted.
21936         (fold_builtin_abs): Likewise.
21937
21938 2005-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21939
21940         * Makefile.in: Set a `build-warn' variable.
21941
21942 2005-01-11  Zdenek Dvorak  <dvorakz@suse.cz>
21943
21944         PR tree-optimization/17949
21945         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): New function.
21946         (find_interesting_uses_address): Use it.
21947
21948 2005-01-11  Aldy Hernandez  <aldyh@redhat.com>
21949
21950         * regrename.c (kill_value): Handle subreg's that won't simplify.
21951
21952 2005-01-11  Richard Henderson  <rth@redhat.com>
21953
21954         PR target/13366
21955         * config/i386/i386.h (enum ix86_builtins): Move ...
21956         * config/i386/i386.c: ... here.
21957         (IX86_BUILTIN_MOVDDUP, IX86_BUILTIN_MMX_ZERO, IX86_BUILTIN_PEXTRW,
21958         IX86_BUILTIN_PINSRW, IX86_BUILTIN_LOADAPS, IX86_BUILTIN_LOADSS,
21959         IX86_BUILTIN_STORESS, IX86_BUILTIN_SSE_ZERO, IX86_BUILTIN_PEXTRW128,
21960         IX86_BUILTIN_PINSRW128, IX86_BUILTIN_LOADAPD, IX86_BUILTIN_LOADSD,
21961         IX86_BUILTIN_STOREAPD, IX86_BUILTIN_STORESD,  IX86_BUILTIN_STOREHPD,
21962         IX86_BUILTIN_STORELPD, IX86_BUILTIN_SETPD1, IX86_BUILTIN_SETPD,
21963         IX86_BUILTIN_CLRPD, IX86_BUILTIN_LOADPD1, IX86_BUILTIN_LOADRPD,
21964         IX86_BUILTIN_STOREPD1, IX86_BUILTIN_STORERPD, IX86_BUILTIN_LOADDQA,
21965         IX86_BUILTIN_STOREDQA, IX86_BUILTIN_CLRTI,
21966         IX86_BUILTIN_LOADDDUP): Remove.
21967         (IX86_BUILTIN_VEC_INIT_V2SI, IX86_BUILTIN_VEC_INIT_V4HI,
21968         IX86_BUILTIN_VEC_INIT_V8QI, IX86_BUILTIN_VEC_EXT_V2DF,
21969         IX86_BUILTIN_VEC_EXT_V2DI, IX86_BUILTIN_VEC_EXT_V4SF,
21970         IX86_BUILTIN_VEC_EXT_V8HI, IX86_BUILTIN_VEC_EXT_V4HI,
21971         IX86_BUILTIN_VEC_SET_V8HI, IX86_BUILTIN_VEC_SET_V4HI): New.
21972         (ix86_init_builtins): Make static.
21973         (ix86_init_mmx_sse_builtins): Update for changed builtins.
21974         (ix86_expand_binop_builtin): Only use ix86_fixup_binary_operands
21975         if all the modes match.  Otherwise, fake it.
21976         (get_element_number, ix86_expand_vec_init_builtin,
21977         ix86_expand_vec_ext_builtin, ix86_expand_vec_set_builtin): New.
21978         (ix86_expand_builtin): Make static.  Update for changed builtins.
21979         (ix86_expand_vector_move_misalign): Use sse2_loadlpd with zero
21980         operand instead of sse2_loadsd.  Cast sse1 fallback to V4SFmode.
21981         (ix86_expand_vector_init_duplicate): New.
21982         (ix86_expand_vector_init_low_nonzero): New.
21983         (ix86_expand_vector_init_one_var, ix86_expand_vector_init_general):
21984         Split out from ix86_expand_vector_init; handle integer modes.
21985         (ix86_expand_vector_init): Use them.
21986         (ix86_expand_vector_set, ix86_expand_vector_extract): New.
21987         * config/i386/i386-protos.h: Update.
21988         * config/i386/predicates.md (reg_or_0_operand): New.
21989         * config/i386/mmx.md (mov<MMXMODEI>_internal): Add 'r' variants.
21990         (movv2sf_internal): Likewise.  And a splitter to match them all.
21991         (vec_dupv2sf, mmx_concatv2sf, vec_setv2sf, vec_extractv2sf,
21992         vec_initv2sf, vec_dupv4hi, vec_dupv2si, mmx_concatv2si, vec_setv2si,
21993         vec_extractv2si, vec_initv2si, vec_setv4hi, vec_extractv4hi,
21994         vec_initv4hi, vec_setv8qi, vec_extractv8qi, vec_initv8qi): New.
21995         (mmx_pinsrw): Fix operand ordering.
21996         * config/i386/sse.md (movv4sf splitter): Use direct pattern,
21997         rather than sse_loadss expander.
21998         (movv2df splitter): Similarly.
21999         (sse_loadss, sse_loadlss): Remove.
22000         (vec_dupv4sf, sse_concatv2sf, sse_concatv4sf, vec_extractv4sf_0): New.
22001         (vec_setv4sf, vec_setv2df): Use ix86_expand_vector_set.
22002         (vec_extractv4sf, vec_extractv2df): Use ix86_expand_vector_extract.
22003         (sse3_movddup): Rename with '*'.
22004         (sse3_movddup splitter): Use gen_rtx_REG instead of gen_lowpart.
22005         (sse2_loadsd): Remove.
22006         (vec_dupv2df_sse3): Rename from sse3_loadddup.
22007         (vec_dupv2df, vec_concatv2df_sse3, vec_concatv2df): New.
22008         (sse2_pinsrw): Fix argument ordering.
22009         (sse2_loadld, sse2_loadq): Add sse1 alternatives.
22010         (sse2_stored): Remove 'r' destination.
22011         (vec_dupv4si, vec_dupv2di, sse2_concatv2si, sse1_concatv2si,
22012         vec_concatv4si_1, vec_concatv2di, vec_setv2di, vec_extractv2di,
22013         vec_initv2di, vec_setv4si, vec_extractv4si, vec_initv4si,
22014         vec_setv8hi, vec_extractv8hi, vec_initv8hi, vec_setv16qi,
22015         vec_extractv16qi, vec_initv16qi): New.
22016
22017         * config/i386/emmintrin.h (__m128i, __m128d): Use typedef, not define.
22018         (_mm_set_sd, _mm_set1_pd, _mm_setzero_pd, _mm_set_epi64x,
22019         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128): Use
22020         constructor form.
22021         (_mm_load_pd, _mm_store_pd): Use plain dereference.
22022         (_mm_load_si128, _mm_store_si128): Likewise.
22023         (_mm_load1_pd): Use _mm_set1_pd.
22024         (_mm_load_sd): Use _mm_set_sd.
22025         (_mm_store_sd, _mm_storeh_pd): Use __builtin_ia32_vec_ext_v2df.
22026         (_mm_store1_pd, _mm_storer_pd): Use _mm_store_pd.
22027         (_mm_set_epi64): Use _mm_set_epi64x.
22028         (_mm_set1_epi64x, _mm_set1_epi64, _mm_set1_epi32, _mm_set_epi16,
22029         _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
22030         _mm_setr_epi8): Use _mm_set_foo form.
22031         (_mm_loadl_epi64, _mm_movpi64_epi64, _mm_move_epi64): Use _mm_set_epi64.
22032         (_mm_storel_epi64, _mm_movepi64_pi64): Use __builtin_ia32_vec_ext_v2di.
22033         (_mm_extract_epi16): Use __builtin_ia32_vec_ext_v8hi.
22034         (_mm_insert_epi16): Use __builtin_ia32_vec_set_v8hi.
22035         * config/i386/mmintrin.h (_mm_setzero_si64): Use plain cast.
22036         (_mm_set_pi32): Use __builtin_ia32_vec_init_v2si.
22037         (_mm_set_pi16): Use __builtin_ia32_vec_init_v4hi.
22038         (_mm_set_pi8): Use __builtin_ia32_vec_init_v8qi.
22039         (_mm_set1_pi16, _mm_set1_pi8): Use _mm_set_piN variant.
22040         * config/i386/pmmintrin.h (_mm_loaddup_pd): Use _mm_load1_pd.
22041         (_mm_movedup_pd): Use _mm_shuffle_pd.
22042         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss,
22043         _mm_set1_ps, _mm_set_ps, _mm_setr_ps): Use constructor form.
22044         (_mm_cvtpi16_ps, _mm_cvtpu16_ps, _mm_cvtpi8_ps, _mm_cvtpu8_ps,
22045         _mm_cvtps_pi8, _mm_cvtpi32x2_ps): Avoid __builtin_ia32_mmx_zero;
22046         Use _mm_setzero_ps.
22047         (_mm_load_ss, _mm_load1_ps): Use _mm_set* form.
22048         (_mm_load_ps, _mm_loadr_ps): Use raw dereference.
22049         (_mm_store_ss): Use __builtin_ia32_vec_ext_v4sf.
22050         (_mm_store_ps): Use raw dereference.
22051         (_mm_store1_ps): Use _mm_storeu_ps.
22052         (_mm_storer_ps): Use _mm_store_ps.
22053         (_mm_extract_pi16): Use __builtin_ia32_vec_ext_v4hi.
22054         (_mm_insert_pi16): Use __builtin_ia32_vec_set_v4hi.
22055
22056 2005-01-11  Stan Shebs  <shebs@apple.com>
22057
22058         * config/rs6000/rs6000.c (machopic_output_stub): Issue
22059         ldu instead of lwzu if 64-bit -mdynamic-no-pic.
22060
22061 2005-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
22062
22063         PR target/18761
22064         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
22065         Skip all DECLs except for FIELD_DECLs.
22066
22067 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
22068
22069         * config/s390/s390.c (override_options): Return error if
22070         -mbackchain, -mpacked-stack and -mhard-float are used together.
22071         (s390_va_start): Remove the backchain && packed-stack special case.
22072         (s390_gimplify_va_arg): Likewise.
22073         * doc/invoke.texi: Remove the ABI incompatibility note.
22074
22075 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
22076
22077         * config/s390/s390.c (struct s390_frame_layout): Remove
22078         save_backchain_p.
22079         (s390_frame_info, s390_emit_prologue): Replace occurrences of
22080         save_backchain_p with TARGET_BACKCHAIN.
22081
22082 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
22083
22084         PR target/18916
22085         * builtins.c (std_gimplify_va_arg_expr): Adjust alignment of *ap.
22086         * expr.h (struct locate_and_pad_arg_data): Add "boundary".
22087         * function.c (locate_and_pad_parm): Set new field.
22088         (assign_parm_find_stack_rtl): Use it instead of FUNCTION_ARG_BOUNDARY.
22089         Tweak where_pad test to include "none".  Always set mem align for
22090         stack_parm.
22091         (assign_parm_adjust_stack_rtl): Discard stack_parm if alignment
22092         not sufficient for type.
22093         (assign_parm_setup_block): If stack_parm is zero on entry, always
22094         make a new stack local.  Block move old stack parm if necessary
22095         to new aligned stack local.
22096         (assign_parm_setup_stack): Use a block move to handle
22097         potentially misaligned entry_parm.
22098         (assign_parms_unsplit_complex): Specify required alignment when
22099         creating stack local.
22100         * calls.c (compute_argument_addresses): Override alignment of stack
22101         arg calculated from its type with the alignment given by
22102         FUNCTION_ARG_BOUNDARY.
22103         (store_one_arg): Likewise.
22104
22105 2005-01-11  Jan Beulich  <jbeulich@novell.com>
22106
22107         * config/ia64/ia64.md (zero_extendsidi2): Replace zxt4 by addp4.
22108         Change respective itanium_class attribute to ialu.
22109         (shladdp4_internal): New.
22110         * config/ia64/predicates.md (shladd_log2_operand): New.
22111
22112 2005-01-11  Richard Henderson  <rth@redhat.com>
22113
22114         * expr.c (store_constructor): Use rtvec_alloc instead of
22115         alloca+gen_rtvec_v, and an incorrect number passed to alloca.
22116
22117 2005-01-11  Kazu Hirata  <kazu@cs.umass.edu>
22118
22119         * config/alpha/alpha.c, config/i386/mmx.md: Fix comment typos.
22120
22121 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
22122
22123         * varasm.c (default_section_type_flags_1): Don't set SECTION_SMALL.
22124         * config/ia64/ia64.c (TARGET_SECTION_TYPE_FLAGS): Define.
22125         (TARGET_RWRELOC): Define.
22126         (ia64_rwreloc_section_type_flags): Delete.
22127         (ia64_section_type_flags): New function.
22128         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): Don't define.
22129         (TARGET_RWRELOC): Define.
22130
22131 2005-01-10  David Mosberger  <davidm@hpl.hp.com>
22132
22133         PR target/18987
22134         * config/ia64/ia64.c (process_set): For alloc insn, only call
22135         process_epilogue is !frame_pointer_needed.
22136
22137 2005-01-10  Roger Sayle  <roger@eyesopen.com>
22138
22139         PR c++/19355
22140         * c-common.c (c_common_truthvalue_conversion): TRUTH_NOT_EXPR is a
22141         unary operator and can't be treated as a binary/comparison operator.
22142
22143 2005-01-10  Richard Henderson  <rth@redhat.com>
22144
22145         * config/i386/i386.c (ix86_function_value): Use type_natural_mode.
22146         (ix86_return_in_memory): Likewise.
22147         (function_arg_advance):  Likewise.  Mirror structure in function_arg
22148         for choosing register to advance.
22149
22150 2005-01-10  Kazu Hirata  <kazu@cs.umass.edu>
22151
22152         * tree-vectorizer.c, tree.def: Fix comment typos.
22153
22154 2005-01-10  Mark Dettinger  <dettinge@de.ibm.com>
22155
22156         * config/s390/s390.c (struct processor_costs): 4 new fields:
22157         ddbr, ddr, debr, der.
22158         (s390_rtx_costs): More precise handling of divide instructions.
22159
22160 2005-01-10  David Edelsohn  <edelsohn@gnu.org>
22161
22162         * config/rs6000/t-aix43 (BOOT_LDFLAGS): Define.
22163
22164 2005-01-10  Jan Beulich  <jbeulich@novell.com>
22165
22166         * config/ia64/ia64.c (ia64_in_small_data_p): Also handle the section
22167         names resulting from -ffunction-sections/-fdata-sections and linkonce
22168         ones.
22169         * varasm.c (default_section_type_flags_1): Also set SECTION_SMALL
22170         based on the section name. Rearrange the section name comparison logic
22171         slightly so that each section name is compared against at most once.
22172
22173 2005-01-10  Ben Elliston  <bje@au.ibm.com>
22174
22175         * doc/invoke.texi (Code Gen Options): Add PowerPC to the list of
22176         targets for which -fPIC reduces limitations on the GOT size.
22177
22178 2005-01-09  Falk Hueffner  <falk@debian.org>
22179
22180         * fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
22181         X/C1 cmpop C2.
22182
22183 2005-01-09  David Edelsohn  <edelsohn@gnu.org>
22184
22185         PR target/18720
22186         * collect2.c (main): Set aixrtl_flag for -brtl option.
22187         (resolve_lib_name): Search for .so file extension before .a
22188         if aixrtl_flag set.
22189
22190 2005-01-09  Dorit Naishlos  <dorit@il.ibm.com>
22191
22192         * tree-vectorizer.c (vect_enhance_data_refs_alignment): Add dump prints.
22193         (vect_analyze_data_refs_alignment): Add dump prints.
22194
22195 2005-01-09  Ira Rosen  <irar@il.ibm.com>
22196
22197         * tree-vectorizer.c (vect_analyze_offset_expr): Use
22198         expr_invariant_in_loop_p.
22199         Initialize outputs first thing in the function.
22200         (vect_update_ivs_after_vectorizer): Call initial_condition_in_loop_num.
22201         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
22202         (vect_analyze_pointer_ref_access): Check that the initial condition of
22203         the access function is loop invariant.
22204
22205 2005-01-09  Richard Henderson  <rth@redhat.com>
22206
22207         * config/i386/i386.c (bdesc_2arg): Update names for mmx_ prefixes.
22208         (ix86_expand_builtin): Likewise.  Frob MASKMOVQ wrt the input mem
22209         just like MASKMOVDQU.  Return plain zero for MMX_ZERO.
22210         * config/i386/i386.md (MMXMODEI, mov<MMXMODEI>,
22211         mov<MMXMODEI>_internal_rex64, mov<MMXMODEI>_internal, movv2sf,
22212         movv2sf_internal_rex64, movv2sf_internal, MMXMODE,
22213         movmisalign<MMXMODE>, mmx_pmovmskb, mmx_maskmovq, mmx_maskmovq_rex,
22214         sse_movntdi, addv8qi3, addv4hi3, addv2si3, mmx_adddi3, ssaddv8qi3,
22215         ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3, subv4hi3, subv2si3,
22216         mmx_subdi3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
22217         mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
22218         sse2_umulsidi3, mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3,
22219         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pinsrw,
22220         mmx_pextrw, mmx_pshufw, eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3,
22221         gtv2si3, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3,
22222         ashrv2si3, lshrv4hi3, lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3,
22223         mmx_ashldi3, mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
22224         mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
22225         mmx_punpckldq, emms, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3,
22226         eqv2sf3, pfmaxv2sf3, pfminv2sf3, mulv2sf3, femms, pf2id, pf2iw,
22227         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pfrcpv2sf2, pfrcpit1v2sf3,
22228         pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3, pmulhrwv4hi3, pswapdv2si2,
22229         pswapdv2sf2): Move to mmx.md; rename as necessary with leading
22230         mmx_ prefix.
22231         (mmx_clrdi, pavgusb): Remove.
22232         (ldmxcsr, stmxcsr, sfence, sfence_insn): Move to sse.md; rename
22233         with leading sse_ prefix.
22234         * config/i386/sse.md: Receive them.
22235         * config/i386/mmx.md: New file.
22236         (MMXMODE12, MMXMODE24, mmxvecsize): New.
22237         (subrv2sf3): Turn into expander for normal subtraction.
22238         (mmx_addv2sf3, mmx_mulv2sf3, mmx_smaxv2sf3, mmx_sminv2sf3,
22239         mmx_eqv2sf3, mmx_mulv4hi3, mmx_smulv4hi3_highpart,
22240         mmx_umulv4hi3_highpart, mmx_pmaddwd, mmx_pmulhrwv4hi3, sse2_umulsidi3,
22241         mmx_umaxv8qi3, mmx_smaxv4hi3, mmx_uminv8qi3, mmx_sminv4hi3): Mark
22242         commutative; use ix86_binary_operator_ok.
22243         (mmx_add<MMXMODEI>3, mmx_ssadd<MMXMODE12>3, mmx_usadd<MMXMODE12>3,
22244         mmx_sub<MMXMODEI>3, mmx_sssub<MMXMODE12>3, mmx_ussub<MMXMODE12>3
22245         mmx_ashr<MMXMODE24>3, mmx_lshr<MMXMODE23>3, mmx_ashl<MMXMODE24>3
22246         mmx_eq<MMXMODEI>3, mmx_gt<MMXMODEI>3, mmx_and<MMXMODEI>3,
22247         mmx_nand<MMXMODEI>3, mmx_ior<MMXMODEI>3, mmx_xor<MMXMODEI>3):
22248         Macroize from existing patterns; use ix86_binary_operator_ok.
22249         (mmx_packsswb, mmx_packssdw, mmx_packuswb): Add memory alternative.
22250         (mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
22251         mmx_punpckhdq, mmx_punpckhdq, mmx_punpckldq): Likewise.  Model
22252         with vec_select+vec_concat.
22253         (mmx_pshufw, mmx_pshufw_1): Likewise.
22254         (mmx_uavgv8qi3): Merge pavgusb.  Model correcty.
22255         (mmx_uavgv4hi3): Model correctly.
22256         * config/i386/mmintrin.h (_mm_and_si64, _mm_andnot_si64, _mm_or_si64,
22257         _mm_xor_si64): Remove casts.
22258
22259 2005-01-09  Zdenek Dvorak  <dvorakz@suse.cz>
22260
22261         PR tree-optimization/19224
22262         * tree-scalar-evolution.c (get_instantiated_value,
22263         set_instantiated_value): New functions.
22264         (instantiate_parameters_1): Cache the results.
22265         (instantiate_parameters, resolve_mixers): Initialize and free
22266         the cache.
22267
22268 2005-01-08  David Edelsohn  <edelsohn@gnu.org>
22269
22270         * config/i386/i386.md (addhi_4): Correct reference in comment.
22271         (addqi_4): Same.
22272
22273 2005-01-08  Richard Henderson  <rth@redhat.com>
22274
22275         * config/i386/emmintrin.h (_mm_cvtsi128_si32): Move earlier.
22276         (_mm_cvtsi128_si64x): Likewise.
22277         (_mm_srl_epi64, _mm_srl_epi32, _mm_srl_epi16, _mm_sra_epi32,
22278         _mm_sra_epi16, _mm_sll_epi64, _mm_sll_epi32, _mm_sll_epi16): Use
22279         the _mm_{srl,sll}i_foo counterpart, and _mm_cvtsi128_si32.
22280         * config/i386/i386-modes.def: Add V16HI, V32QI, V4DF, V8SF.
22281         * config/i386/i386-protos.h: Update.
22282         * config/i386/i386.c (print_operand): Add 'H'.
22283         (ix86_fixup_binary_operands): Split out from ...
22284         (ix86_expand_binary_operator): ... here.
22285         (ix86_fixup_binary_operands_no_copy): New.
22286         (ix86_expand_fp_absneg_operator): Handle vector mode results.
22287         (bdesc_2arg): Update names for sse{,2,3}_ prefixes.
22288         (ix86_init_mmx_sse_builtins): Remove *maskncmp* special cases.
22289         (safe_vector_operand): Use CONST0_RTX.
22290         (ix86_expand_binop_builtin): Use ix86_fixup_binary_operands.
22291         (ix86_expand_builtin): Merge CODE_FOR_sse2_maskmovdqu_rex64 and
22292         CODE_FOR_sse2_maskmovdqu.  Special case SSE version of MASKMOVDQU
22293         expansion.  Update names for sse{,2,3}_ prefixes.  Remove *maskncmp*
22294         special cases.
22295         * config/i386/i386.h (IX86_BUILTIN_CMPNGTSS): New.
22296         (IX86_BUILTIN_CMPNGESS): New.
22297         * config/i386/i386.md (UNSPEC_FIX_NOTRUNC): New.
22298         (attr type): Add sselog1.
22299         (attr unit, attr memory): Handle it.
22300         (movti, movti_internal, movti_rex64): Move near other integer moves.
22301         (movtf, movtf_internal): Move near other fp moves.
22302         (SSEMODE, SSEMODEI, vec_setv2df, vec_extractv2df, vec_initv2df,
22303         vec_setv4sf, vec_extractv4sf, vec_initv4sf, movv4sf, movv4sf_internal,
22304         movv2df, movv2df_internal, mov<SSEMODEI>, mov<SSEMODEI>_internal,
22305         movmisalign<SSEMODE>, sse_movups_1, sse_movmskps, sse_movntv4sf,
22306         sse_movhlps, sse_movlhps, sse_storehps, sse_loadhps, sse_storelps,
22307         sse_loadlps, sse_loadss, sse_loadss_1, sse_movss, sse_storess,
22308         sse_shufps, addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, negv4sf2,
22309         mulv4sf3, vmmulv4sf3, divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2,
22310         rsqrtv4sf2, vmrsqrtv4sf2, sqrtv4sf2, vmsqrtv4sf2, sse_andv4sf3,
22311         sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3, sse2_andv2df3,
22312         sse2_nandv2df3, sse2_iorv2df3, sse2_xorv2df3, sse2_andv2di3,
22313         sse2_nandv2di3, sse2_iorv2di3, sse2_xorv2di3, maskcmpv4sf3,
22314         vmmaskcmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
22315         smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
22316         cvttps2pi, cvtsi2ss, cvtsi2ssq, cvtss2si, cvtss2siq, cvttss2si,
22317         cvttss2siq, addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3,
22318         vmmulv2df3, divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3,
22319         vmsminv2df3, sqrtv2df2, vmsqrtv2df2, maskcmpv2df3, vmmaskcmpv2df3,
22320         sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb, sse2_maskmovdqu,
22321         sse2_maskmovdqu_rex64, sse2_movntv2df, sse2_movntv2di, sse2_movntsi,
22322         cvtdq2ps, cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq,
22323         cvtpd2pi, cvttpd2pi, cvtpi2pd, cvtsd2si, cvtsd2siq, cvttsd2si,
22324         cvttsd2siq, cvtsi2sd, cvtsi2sdq, cvtsd2ss, cvtss2sd, cvtpd2ps,
22325         cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3, ssaddv16qi3,
22326         ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3, subv4si3,
22327         subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3, mulv8hi3,
22328         smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
22329         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_uavgv16qi3, sse2_uavgv8hi3,
22330         sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd, sse2_pshuflw,
22331         sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3, gtv8hi3,
22332         gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3, ashrv8hi3,
22333         ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3, ashlv4si3,
22334         ashlv2di3, sse2_ashlti3, sse2_lshrti3, sse2_unpckhpd, sse2_unpcklpd,
22335         sse2_packsswb, sse2_packssdw, sse2_packuswb, sse2_punpckhbw,
22336         sse2_punpckhwd, sse2_punpckhdq, sse2_punpcklbw, sse2_punpcklwd,
22337         sse2_punpckldq, sse2_punpcklqdq, sse2_punpckhqdq, sse2_movupd,
22338         sse2_movdqu, sse2_movdq2q, sse2_movdq2q_rex64, sse2_movq2dq,
22339         sse2_movq2dq_rex64, sse2_loadd, sse2_stored, sse2_storehpd,
22340         sse2_loadhpd, sse2_storelpd, sse2_loadlpd, sse2_movsd, sse2_loadsd,
22341         sse2_loadsd_1, sse2_storesd, sse2_shufpd, sse2_clflush, sse2_mfence,
22342         mfence_insn, sse2_lfence, lfence_insn, mwait, monitor, addsubv4sf3,
22343         addsubv2df3, haddv4sf3, haddv2df3, hsubv4sf3, hsubv2df3, movshdup,
22344         movsldup, lddqu, loadddup, movddup): Move to sse.md.  Any with
22345         non-optabs meanings renamed with an "sse{,2,3}_" prefix at the
22346         same time.
22347         (SSEPUSH, push<SSEPUSH>): Remove.
22348         (MMXPUSH, push<MMXPUSH>): Remove.
22349         (sse_movaps, sse_movaps_1, sse_movups): Remove.
22350         (sse2_movapd, sse2_movdqa, sse2_movq): Remove.
22351         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Remove.
22352         (sse_clrv4sf, sse_clrv2df, sse2_clrti): Remove.
22353         (maskncmpv4sf3, vmmaskncmpv4sf3): Remove.
22354         (maskncmpv2df3, vmmaskncmpv2df3): Remove.
22355         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti): Remove.
22356         (lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti): Remove.
22357         * config/i386/athlon.md (athlon_sselog_load): Handle sselog1.
22358         (athlon_sselog_load_k8, athlon_sselog, athlon_sselog_k8): Likewise.
22359         * config/i386/ppro.md (ppro_sse_div_V4SF_load): Fix memory attr.
22360         (ppro_sse_log_V4SF_load): Similarly.  Handle sselog1.
22361         (ppro_sse_log_V4SF): Handle sselog1.
22362         * config/i386/predicates.md (const_0_to_1_operand): New.
22363         (const_0_to_255_mul_8_operand): New.
22364         (const_1_to_31_operand): Rename from const_int_1_31_operand.
22365         (const_2_to_3_operand, const_4_to_7_operand): New.
22366         * config/i386/sse.md: New file.
22367         (SSEMODE12, SSEMODE24, SSEMODE124, SSEMODE248, ssevecsize): New.
22368         (sse_movups): Rename from sse_movups_1.
22369         (sse_loadlss): Rename from sse_loadss_1.
22370         (andv4sf3, iorv4sf3, xorv4sf3, andv2df3): Remove the sse prefix
22371         from the name.
22372         (negv4sf2): Use ix86_expand_fp_absneg_operator.
22373         (absv4sf2, negv2df, absv2df): New.
22374         (addv4sf3): Add expander to call ix86_fixup_binary_operands_no_copy.
22375         (subv4sf3, mulv4sf3, divv4sf3, smaxv4sf3, sminv4sf3, andv4sf3,
22376         iorv4sf3, xorv4sf3, addv2df3, subv2df3, mulv2df3, divv2df3,
22377         smaxv2df3, sminv2df3, andv2df3, iorv2df3, xorv2df3, mulv8hi3,
22378         umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3): Likewise.
22379         (sse3_addsubv4sf3): Model correctly.
22380         sse3_haddv4sf3, sse3_hsubv4sf3, sse3_addsubv2df3, sse3_haddv2df3,
22381         sse3_hsubv2df3, sse2_ashlti3, sse2_lshrti3): Likewise.
22382         (sse_movhlps): Model with vec_select+vec_concat.
22383         (sse_movlhps, sse_unpckhps, sse_unpcklps, sse3_movshdup,
22384         sse3_movsldup, sse_shufps, sse_shufps_1, sse2_unpckhpd, sse3_movddup,
22385         sse2_unpcklpd, sse2_shufpd, sse2_shufpd_1, sse2_punpckhbw,
22386         sse2_punpcklbw, sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq,
22387         sse2_punpckldq, sse2_punpckhqdq, sse2_punpcklqdq, sse2_pshufd,
22388         sse2_pshufd_1, sse2_pshuflw, sse2_pshuflw_1, sse2_pshufhw,
22389         sse2_pshufhw_1): Likewise.
22390         (neg<SSEMODEI>2, one_cmpl<SSEMODEI>2): New.
22391         (add<SSEMODEI>3, sse2_ssadd<SSEMODE12>3, sse2_usadd<SSEMODE12>3,
22392         sub<SSEMODEI>3, sse2_sssub<SSEMODE12>3, sse2_ussub<SSEMODE12>3,
22393         ashr<SSEMODE24>3, lshr<SSEMODE248>3, sse2_eq<SSEMODE124>3,
22394         sse2_gt<SSEMODDE124>3, and<SSEMODEI>3, sse_nand<SSEMODEI>3,
22395         ior<SSEMODEI>3, xor<SSEMODEI>3): Macroize from existing patterns.
22396         (addv4sf3, sse_vmaddv4sf3, mulv4sf3, sse_vmmulv4sf3, smaxv4sf3,
22397         sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, addv2df3, sse2_vmaddv2df3,
22398         mulv2df3, sse2_vmmulv2df3, smaxv2df3, sse2_vmsmaxv2df3, sminv2df3,
22399         sse2_vmsminv2df3, umaxv16qi3, smaxv8hi3, uminv16qi3
22400         sminv8hi3): Mark commutative
22401         operands.  Use ix86_binary_operator_ok.
22402         (sse_unpckhps, sse_unpcklps, sse2_packsswb, sse2_packssdw,
22403         sse2_packuswb, sse2_punpckhbw, sse2_punpcklbw, sse2_punpckhwd,
22404         sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq, sse2_punpckhqdq,
22405         sse2_punpcklqdq): Allow operand2 in memory.
22406         (sse_movhlps, sse_movlhps, sse2_unpckhpd, sse2_unpcklpd
22407         sse2_movsd): Add memory alternatives.
22408         (sse_storelps): Turn expander into an insn; split after reload.
22409         (sse_storess, sse2_loadhpd, sse2_loadlpd): Add non-xmm inputs.
22410         (sse2_storehpd, sse2_storelpd): Add non-xmm outputs.
22411
22412 2005-01-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
22413
22414         * configure.ac (DWARF-2 debug_line): Use objdump.
22415         * configure: Regenerate.
22416
22417 2005-01-08  Jeff Law  <law@redhat.com>
22418             Diego Novillo  <dnovillo@redhat.com>
22419
22420         PR tree-optimization/18241
22421         * tree-nrv.c (tree_nrv): Ignore volatile return values.
22422         * tree-ssa-dse.c (dse_optimize_stmt): Do not optimize
22423         statements with volatile operands.
22424         * tree-ssa-operands.c (add_stmt_operand): Do add volatile
22425         operands after marking a statement with has_volatile_ops.
22426
22427 2005-01-08  Roger Sayle  <roger@eyesopen.com>
22428
22429         * tree.c (int_fits_type_p): Always honor integer constant
22430         TYPE_MIN_VALUE and TYPE_MAX_VALUE if they exist.
22431
22432 2005-01-08  Roger Sayle  <roger@eyesopen.com>
22433
22434         * ifcvt.c (find_if_case_1): Reinstate 2005-01-04 change, now that
22435         the latent bug in rtl_delete_block has been resolved.
22436
22437 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
22438
22439         * config/mips/t-iris6 (MULTILIB_DIRNAMES): Use -mabi argument values.
22440         (MULTILIB_OSDIRNAMES): Use the standard lib, lib32 and lib64.
22441
22442 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
22443
22444         * config/mips/t-slibgcc-irix (SHLIB_LINK): Install a copy of the
22445         library as @multilib_dir@/$(SHLIB_SONAME).
22446
22447 2005-01-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
22448
22449         * configure.ac (HAVE_AS_OFFSETABLE_LO10): Fix typo.
22450         * configure: Regenerate.
22451
22452 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
22453
22454         * c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy
22455         TYPE_MODE.
22456
22457 2005-01-07  David Edelsohn  <edelsohn@gnu.org>
22458
22459         PR target/13674
22460         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
22461         Convert non-word aligned offset address using ld/std into
22462         indirect address.
22463
22464 2005-01-07  Richard Henderson  <rth@redhat.com>
22465
22466         * config/i386/i386.md (sse_loadhps splitter): Fix operand number typo.
22467
22468 2005-01-07  Richard SAndiford  <rsandifo@redhat.com>
22469
22470         * tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
22471
22472 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
22473
22474         PR tree-optimization/19283
22475         * fold-const.c (fold_widened_comparison): Return NULL if shorter_type
22476         is not shorter than the original type.
22477
22478         PR rtl-optimization/19012
22479         * config/i386/i386.md (addqi_1_slp): Set memory attribute.
22480
22481         PR rtl-optimization/18861
22482         * cfgbuild.c (BLOCK_USED_BY_TABLEJUMP): Define.
22483         (FULL_STATE): Define.
22484         (mark_tablejump_edge): New function.
22485         (purge_dead_tablejump_edges): New function.
22486         (find_bb_boundaries): Use it.
22487
22488         PR tree-optimization/18828
22489         * builtins.c (expand_builtin_next_arg): Remove argument and all
22490         the argument checking.
22491         (expand_builtin): Adjust caller.
22492         (expand_builtin_va_start): Likewise.  Remove error for too many
22493         arguments.
22494         (fold_builtin_next_arg): Issue error for too many arguments.
22495         After checking arguments, replace them with magic arguments that
22496         prevent further checking of the args.
22497
22498 2005-01-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22499
22500         * pa64-hpux.h (STARTFILE_SPEC): Fix typo in spec.
22501
22502 2005-01-06  Roger Sayle  <roger@eyesopen.com>
22503
22504         PR target/6077
22505         * gcc.c (input_suffix_matches): Tweak the semantics of %{.s:...}
22506         and %{.S:...} (and their negative variants) to test whether the
22507         input file is assembler or pre-processed-assembler independent of
22508         the actual filename extension.
22509
22510 2005-01-06  Roger Sayle  <roger@eyesopen.com>
22511
22512         * simplify-rtx.c (simplify_subreg): Simplify truncations of shifts
22513         of sign or zero extended values.
22514
22515 2005-01-06  Geoffrey Keating  <geoffk@apple.com>
22516
22517         * c-cppbuiltin.c (builtin_define_float_constants): Set __*_EPSILON__
22518         for IBM long double format correctly.
22519
22520 2005-01-06  Daniel Berlin <dberlin@dberlin.org>
22521
22522         Fix PR tree-optimization/18792
22523
22524         * tree-data-ref.c (build_classic_dist_vector): Change first_loop
22525         to first_loop_depth, and use loop depth instead of loop number.
22526         (build_classic_dir_vector): Ditto.
22527         (compute_data_dependences_for_loop): Use depth, not loop number.
22528         * tree-loop-linear.c (try_interchange_loops): Use loop depth, not loop
22529         number. Pass in loops, instead of loop numbers.
22530         (gather_interchange_stats): Ditto.
22531         (linear_transform_loops): Ditto.
22532
22533 2005-01-06  Richard Sandiford  <rsandifo@redhat.com>
22534
22535         PR rtl-opt/13299
22536         * loop.c (get_monotonic_increment, biased_biv_fits_mode_p,
22537         biv_fits_mode_p, extension_within_bounds_p): New functions.
22538         (check_ext_dependent_givs): Use them.
22539
22540 2005-01-06  Roger Sayle  <roger@eyesopen.com>
22541
22542         * cfgrtl.c (rtl_delete_block): A basic block may be followed by
22543         more than one barrier, in which case we should delete them all.
22544
22545 2005-01-06  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
22546
22547         * gcc.c (process_command): Change year in 'gcc --version' to 2005.
22548
22549 2005-01-05  Daniel Berlin  <dberlin@dberlin.org>
22550
22551         Fix PR middle-end/19286
22552         Fix PR debug/19267
22553         * dwarf2out.c (gen_subprogram_die): If we've already tried to
22554         output this subprogram, simply ignore this attempt to do it again.
22555         (add_abstract_origin_attribute): Don't abort trying to add the abstract
22556         origin attribute if it's not possible.
22557         (gen_block_die): Don't ignore subblocks of "unused" blocks.
22558         (decls_for_scope): Ditto.
22559         * gimple-low.c (mark_blocks_with_used_subblocks): Remove.
22560         (mark_used_blocks): Don't call mark_blocks_with_used_subblocks.
22561
22562 2005-01-05  Richard Henderson  <rth@redhat.com>
22563
22564         PR target/11327
22565         * config/i386/i386.c (BUILTIN_DESC_SWAP_OPERANDS): New.
22566         (bdesc_2arg): Use it.
22567         (ix86_expand_binop_builtin): Force operands into registers
22568         when optimizing.
22569         (ix86_expand_unop_builtin, ix86_expand_unop1_builtin,
22570         ix86_expand_sse_compare, ix86_expand_sse_comi,
22571         ix86_expand_builtin): Likewise.
22572
22573 2005-01-05  Richard Henderson  <rth@redhat.com>
22574
22575         * config/ia64/ia64.c (rtx_needs_barrier): Handle CONST_VECTOR
22576         and VEC_SELECT.
22577         * config/ia64/vect.md (mulv8qi3): Re-implement with mix_[rl].
22578         (mulv4hi3): Set itanium_class mmmul.
22579         (fpack_sfxf, fpack_xfsf, fpack_xfxf): Remove.
22580         (fpack): Rename from fpack_sfsf.
22581
22582 2005-01-05  Richard Henderson  <rth@redhat.com>
22583
22584         PR rtl-opt/10692
22585         * reload1.c (do_input_reload): Restrict the optimization deleteing
22586         a previous output reload to RELOAD_FOR_INPUT.
22587
22588 2005-01-05  Steven Bosscher  <stevenb@suse.de>
22589
22590         * combine.c (expand_compound_operation)  <ZERO_EXTRACT>: Add
22591         comment that we fall through after case.
22592         (mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
22593         (distribute_links): Likewise.
22594         * cse.c (cse_insn): Likewise.
22595         * cselib.c (cselib_invalidate_mem): Likewise.
22596         * df.c: Update comments at the top of the file.
22597         (read_modify_subreg_p): Update comments here too.
22598         (df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
22599         * flow.c (mark_set_1): Likewise.
22600         (mark_used_regs): Likewise.
22601         * gcse.c (mems_conflict_for_gcse_p): Likewise.
22602         (canon_list_insert): Likewise.
22603         (mark_set): Likewise.
22604         (try_replace_reg): Likewise.
22605         (store_killed_in_insn): Likewise.
22606         * loop.c (count_one_set): Likewise.
22607         (basic_induction_var): Likewise.
22608         * postreload-gcse.c (find_mem_conflicts): Likewise.
22609         * postreload.c (reload_combine_note_store): Likewise.
22610         (move2add_note_store): Likewise.
22611         * reload.c (find_equiv_reg): Likewise.
22612         (mark_referenced_resources): Likewise.
22613         * rtlanal.c (set_noop_p): Likewise.
22614         (note_stores): Likewise.
22615         (note_uses): Likewise.
22616         * sched-deps.c (sched_analyze_1): Likewise.
22617         * sched-rgn.c (check_live_1): Likewise.
22618         (update_live_1): Likewise.
22619         * config/i860/i860.c: Likewise.
22620
22621         * rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
22622         an lvalue.
22623         (ZERO_EXTRACT): Mention that this one can be an lvalue.
22624
22625         * doc/rtl.texi: Update documentation for bit-fields and SET.
22626
22627 2005-01-05  Roger Sayle  <roger@eyesopen.com>
22628
22629         * ifcvt.c (find_if_case_1): Revert 2005-01-04 change.
22630
22631 2005-01-05  Jan Hubicka  <jh@suse.cz>
22632             Richard Henderson  <rth@redhat.com>
22633
22634         PR target/18910
22635         * config/i386/i386.c (ix86_expand_move): Handle tls symbols
22636         with an offset.
22637
22638 2005-01-05  Richard Henderson  <rth@redhat.com>
22639
22640         PR target/12902
22641         * config/i386/i386.md (sse_movhps, sse_movlps): Remove.
22642         (sse_shufps): Change operand 3 to const_int_operand.
22643         (sse2_storelps): Fix typo in template.
22644         (sse_storehps, sse_loadhps, sse_storelps, sse_loadlps): New.
22645         * config/i386/i386.c (ix86_expand_vector_move_misalign): Use them.
22646         (ix86_expand_builtin): Likewise.
22647
22648 2005-01-05  Julian Brown  <julian@codesourcery.com>
22649
22650         * config/arm/arm.c (arm_return_in_memory): Treat complex types
22651         as aggregates for AAPCS ABIs.
22652
22653 2005-01-05  Stan Shebs  <shebs@apple.com>
22654
22655         * unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
22656         Mach-O getters if ppc64.
22657         * config/darwin.c (darwin_asm_output_dwarf_delta): Obey
22658         size argument.
22659         * config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
22660         signed four-byte field for global code case.
22661         (STARTFILE_SPEC): Avoid crt2.o for 64-bit compilation.
22662
22663 2005-01-05  Roger Sayle  <roger@eyesopen.com>
22664
22665         PR middle-end/19100
22666         * c-common.c: Include real.h.
22667         (c_common_truthvalue_conversion): Avoid destructively modifying expr.
22668         Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
22669         Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
22670         * Makefile.in (c-common.o): Update dependencies.
22671
22672 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
22673
22674         * c-parse.in (asm_string): Add trailing semicolon.
22675
22676 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
22677
22678         * c-parse.in (asm_string): New.  Don't allow wide strings in
22679         'asm'.
22680         (simple_asm_expr, asm_argument, asm_operand, asm_clobbers): Use
22681         asm_string instead of STRING.
22682
22683 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
22684
22685         * c-typeck.c (constructor_no_implicit): Remove.
22686         (set_designator, process_init_element): Don't check
22687         constructor_no_implicit.
22688
22689 2005-01-05  J"orn Rennecke <joern.rennecke@st.com>
22690             Kaz Kojima  <kkojima@gcc.gnu.org>
22691
22692         PR target/16482
22693         * lcm.c (create_pre_exit): New.
22694         (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
22695         ENTRY_EXIT_EXTRA to 3.  Use create_pre_exit.
22696
22697 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
22698
22699         * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
22700         -msoft-float in target_float_switch.
22701         * arm.c (arm_override_options): Fix processing of target_float_switch.
22702
22703 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
22704
22705         * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
22706         preferencing.
22707
22708 2004-01-05  Uros Bizjak  <uros@kss-loka.si>
22709
22710         * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
22711         Replace i387 with 'i386 compiler' in -mfpmath=sse option.
22712
22713 2005-01-04  Roger Sayle  <roger@eyesopen.com>
22714
22715         * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
22716         if deleting the then-block allows the test-block to fallthru to the
22717         else-block.
22718
22719 2005-01-04  Andrew Pinski  <pinskia@physics.uc.edu>
22720
22721         PR c/19152
22722         * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
22723         after the full declaration if the are in two different TUs.
22724
22725 2005-01-04  Richard Henderson  <rth@redhat.com>
22726
22727         PR tree-opt/19158
22728         * tree-sra.c (generate_one_element_init): Just
22729         call gimplify_and_add.
22730         (generate_element_init): Record the
22731         new referenced variables and mark them for renaming
22732         and split out to ...
22733         (generate_element_init_1): This.
22734         (scalarize_init): Don't call push_gimplify_context/
22735         pop_gimplify_context.
22736
22737 2005-01-04  Geoffrey Keating  <geoffk@apple.com>
22738
22739         * toplev.c (get_src_pwd): Handle failure of getpwd().
22740
22741 2005-01-04  Roger Sayle  <roger@eyesopen.com>
22742
22743         * fold-const.c (fold_single_bit_test): Delete unreachable handling
22744         of TRUTH_NOT_EXPR.
22745         (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
22746         all the cases handled by it are inverted by invert_truthvalue.
22747
22748 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
22749
22750         * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
22751         (save_register_windowsi): Likewise.
22752
22753 2005-01-04  Richard Henderson  <rth@redhat.com>
22754
22755         * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
22756
22757 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
22758
22759         PR middle-end/17767
22760         * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
22761         any simplifications of vector mode comparison operators.
22762         * simplify-rtx.c (simplify_relational_operation): Fix variable name.
22763
22764 2005-01-04  Paolo Bonzini  <bonzini@gnu.org>
22765             Devang Patel  <dpatel@apple.com>
22766
22767         PR tree-optimization/18308
22768         * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
22769         the operands before creating a new expression.
22770         * dojump.c (do_jump): Make drop_through_label available
22771         for all cases.  Add expansion of COND_EXPR.
22772
22773 2005-01-04  Ira Rosen  <irar@il.ibm.com>
22774
22775         * tree-vectorizer.c (vect_analyze_offset_expr): Test for
22776         INTEGER_CST instead of TREE_CONSTANT.
22777         (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
22778         instead of TREE_CONSTANT.
22779         (vect_analyze_pointer_ref_access): Test for INTEGER_CST
22780         instead of TREE_CONSTANT.
22781
22782 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
22783
22784         * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
22785
22786 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
22787
22788         PR target/19240
22789         * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
22790         (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
22791
22792 2005-01-03  Richard Henderson  <rth@redhat.com>
22793
22794         * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
22795         (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
22796         fold_convert_const_real_from_real): Split out from ...
22797         (fold_convert_const): ... here.
22798
22799 2005-01-03  Richard Henderson  <rth@redhat.com>
22800
22801         PR target/19235
22802         * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
22803         (mov<MMXMODEI>_internal): Likewise.
22804         (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
22805         Add V2SF case; use it for SSE1; don't use TI.
22806         (movdf_integer): Likewise.
22807         (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
22808
22809 2005-01-03  Ira Rosen  <irar@il.ibm.com>
22810
22811         * tree-vectorizer.c (vect_strip_conversions): New function.
22812         (vect_analyze_offset_expr): Call vect_strip_conversions. Add
22813         check for binary class.
22814
22815 2005-01-03  Daniel Berlin  <dberlin@dberlin.org>
22816
22817         Fix PR debug/17924
22818         Fix PR debug/19191
22819         * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
22820         is a decl.
22821         * gimple-low.c (mark_blocks_with_used_vars): New function.
22822         (mark_blocks_with_used_subblocks): Ditto.
22823         (mark_used_blocks): Ditto.
22824         (pass_mark_used_blocks): New pass.
22825         * tree-inline.c: Include debug.h.
22826         (expand_call_inline): Call outlining_inline_function here.
22827         * tree-optimize.c (init_tree_optimization_passes): Add
22828         pass_mark_used_blocks.
22829         * tree-pass.h (pass_mark_used_blocks): New.
22830         * Makefile.in (tree-inline.o): Add debug.h dependency.
22831
22832 2005-01-03  Geoffrey Keating  <geoffk@apple.com>
22833
22834         * config/darwin.c (darwin_handle_weak_import_attribute): Permit
22835         VAR_DECLs to have weak_import attribute.
22836
22837         * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
22838         'struct ucontext'.
22839
22840 2004-01-03  Steven Bosscher  <stevenb@suse.de>
22841
22842         * passes.c (rest_of_compilation): Don't run regmove if only
22843         flag_expensive_optimizations, require flag_regmove instead.
22844
22845 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
22846
22847         * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
22848         register "sparc".
22849         * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
22850         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
22851         * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
22852         * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
22853
22854 2005-01-03  Richard Henderson  <rth@redhat.com>
22855
22856         * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
22857         (ia64_const_ok_for_letter_p): New.
22858         (ia64_const_double_ok_for_letter_p): New.
22859         (ia64_extra_constraint): New.
22860         (ia64_expand_vecint_compare): New.
22861         (ia64_expand_vcondu_v2si): New.
22862         (ia64_expand_vecint_cmov): New.
22863         (ia64_expand_vecint_minmax): New.
22864         (ia64_print_operand): Add 'v'.
22865         (ia64_preferred_reload_class): New.
22866         (ia64_vector_mode_supported_p): New.
22867         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
22868         (PREFERRED_RELOAD_CLASS): Move to function.
22869         (CONST_OK_FOR_LETTER_P): Move to function.
22870         (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
22871         (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
22872         (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
22873         (EXTRA_CONSTRAINT): Move to function.
22874         * config/ia64/ia64.md: Include vect.md.
22875         (itanium_class): Add mmalua.
22876         (type): Handle it.
22877         * config/ia64/itanium1.md (1_mmalua): New.  Add it to bypasses.
22878         (1b_mmalua): New.
22879         * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
22880         * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
22881         CONST0_RTX.
22882         (const_int_2bit_operand): New.
22883         (fr_reg_or_0_operand): New.
22884         * config/ia64/ia64-modes.def: Add vector modes.
22885         * config/ia64/ia64-protos.h: Update.
22886         * config/ia64/vect.md: New file.
22887
22888 2005-01-03  Richard Henderson  <rth@redhat.com>
22889
22890         * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
22891
22892 2005-01-03  Uros Bizjak  <uros@kss-loka.si>
22893
22894         PR target/19236
22895         * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
22896         to SFmode.
22897         (log1pdf2): Change mode of operands[0,1] to DFmode.
22898
22899 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
22900
22901         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
22902         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
22903         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
22904         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
22905         SPARC_RELAXED_ORDERING.
22906
22907 2005-01-03  Richard Henderson  <rth@redhat.com>
22908             Uros Bizjak  <uros@kss-loka.si>
22909
22910         PR target/14631
22911         * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
22912         IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
22913         * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
22914         handling.
22915         (*mmx_pinsrw, *sse2_pinsrw): New patterns.
22916         * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
22917         const_pow2_1_to_128_operand): New predicates.
22918
22919 2005-01-02  Greg McGary  <greg@mcgary.org>
22920
22921         * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
22922         anonymous decls.
22923         (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
22924         object.  [ptr_type]: Remove unused variable.
22925         Remember nearest addressable array-element or record-component
22926         when checking bitfield components.  Tolerate empty BIND_EXPR.
22927
22928 2005-01-01  Richard Henderson  <rth@redhat.com>
22929
22930         * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
22931         that don't narrow the value.  Fail for other conversions.
22932
22933 2005-01-01  Richard Henderson  <rth@redhat.com>
22934
22935         PR c/19031
22936         * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
22937         * c-lang.c (finish_file): Don't do it here.
22938         * objc/objc-act.c (objc_finish_file): Likewise.
22939
22940         * cgraph.c (decl_assembler_name_equal): New.
22941         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
22942         (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
22943         * cgraph.h (struct cgraph_varpool_node): Add next.
22944         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
22945         * varasm.c (assemble_alias): Mark the target as needed.
22946
22947 2005-01-01  Andrew Pinski  <pinskia@physics.uc.edu>
22948
22949         PR middle-end/19221
22950         * function.c (get_arg_pointer_save_area): Use entry_of_function
22951         instead of get_insns.
22952
22953 2005-01-01  Roger Sayle  <roger@eyesopen.com>
22954             Andrew Pinski  <pinskia@physics.uc.edu>
22955             James E. Wilson  <wilson@specifixinc.com>
22956
22957         PR rtl-optimization/12092
22958         * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
22959         is zero.
22960
22961 2005-01-01  Roger Sayle  <roger@eyesopen.com>
22962             Olivier Hainque  <hainque@act-europe.fr>
22963
22964         * tree.c (int_fits_type_p): A narrower type always fits in a
22965         wider one, except for negative values into unsigned types.
22966
22967 2005-01-01  Roger Sayle  <roger@eyesopen.com>
22968
22969         * tree.c (int_fits_type_p): Compare the result of force_fit_type
22970         with the original constant rather than require TREE_OVERFLOW.
22971
22972 2005-01-01  Steven Bosscher  <stevenb@suse.de>
22973
22974         PR middle-end/17544
22975         * c-decl.c (finish_function): If compiling C99, annotate the
22976         compiler generated return with the current file name and line 0.
22977         * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
22978         the source line is greater than 0.
22979         (remove_bb): Likewise.