OSDN Git Service

7e817dd251491f9e920dbcad1e3921aec7c33fb0
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
2
3         * config/mips/24k.md, config/sh/divtab.c, config/sh/sh.c,
4         config/sh/sh.md, config/sh/superh.h: Fix comment typos.
5         * doc/invoke.texi: Fix typos.
6
7         * tree-data-ref.c (analyze_array_indexes, analyze_array,
8         init_data_ref, access_functions_are_affine_or_constant_p,
9         free_data_refs): Use VEC instead of VARRAY.
10         * tree-data-ref.h (data_reference): Change the type of
11         access_fns to VEC(tree,gc)*.
12         (DR_ACCESS_FN, DR_NUM_DIMENSIONS): Use VEC instead of VARRAY.
13
14 2005-05-10  Gabor Loki <loki@gcc.gnu.org>
15
16         PR c/17913
17         * c-typeck.c (build_conditional_expr): Remove reducing cond_expr.
18         * fold-const.c (fold): Expand the condition of reducing cond_expr.
19         (contains_label_1, contains_label_p): New functions for checking
20         labels in a sub-tree.
21
22 2005-05-10  Joseph S. Myers  <joseph@codesourcery.com>
23
24         PR c/21342
25         * c-decl.c (pushdecl): When there is a declaration in the current
26         scope and the declarations are external linkage, check for
27         compatibility with the type in the external scope and update the
28         type in the external scope with the composite type information.
29         Do not form a composite type of the new type and the visible type
30         if they are incompatible.
31
32 2005-05-10  Nathan Sidwell  <nathan@codesourcery.com>
33
34         * crtstuff.c: Revert part of 2005-05-08 Change.
35         (IN_LIBGCC2): Define.
36
37 2005-05-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
38
39         * config/sparc/sparc.c (fp_sethi_p): Test !SPARC_SIMM13_P and
40         remove redundant test.
41         (fp_mov_p): Accept 0.
42         (fp_high_losum_p): Remove redundant test.
43         * config/sparc/predicates.md (const_high_operand): Explicitly test
44         (not small_int_operand).
45         (fp_const_high_losum_operand): New.
46         * config/sparc/sparc.md (movsi_insn): Do not emit 'clr'.  Reorder.
47         (movdi_insn_sp32_v9): Use canonical predicates.
48         (movdi_insn_sp32): Test !TARGET_V9 instead of !TARGET_ARCH64.
49         (movdi_insn_sp64_novis): Delete.
50         (movdi_insn_sp64_vis): Rename into movdi_insn_sp64.
51         (movsf_insn_novis): Delete.
52         (movsf_insn_vis): Rename into movsf_insn.
53         (movsf_no_f_insn): Rename into movsf_insn_no_fpu.
54         (movsf_lo_sum): Use fp_const_high_losum_operand.
55         (movsf_high): Likewise.
56         (movsf_high_losum splitter): Likewise.
57         (mov<V32:mode> expander): Use register_or_zero_operand.
58         (mov<V64:mode> expander): Likewise.
59         (movdf_insn_sp32): Use register_or_zero_operand.
60         (movdf_no_e_insn_sp32): Use register_or_zero_operand.
61         Rename into movdf_insn_sp32_no_fpu.
62         (movdf_no_e_insn_v9_sp32): Use register_or_zero_operand.
63         Rename into movdf_insn_sp32_v9_no_fpu.
64         (movdf_insn_v9only_novis): Delete.
65         (movdf_insn_v9only_vis): Rename into movdf_insn_sp32_v9.
66         (movdf_insn_sp64_novis): Delete.
67         (movdf_insn_sp64_vis): Rename into movdf_insn_sp64.
68         (movdf_no_e_insn_sp64): Use register_or_zero_operand. 
69         Rename into movdf_insn_sp64_no_fpu.
70         (movtf expander): Use register_or_zero_operand.
71         (movtf_insn_sp32): Delete.
72         (movtf_insn_vis_sp32): Use register_or_zero_operand.
73         Rename into movtf_insn_sp32.
74         (movtf_no_e_insn_sp32): Use register_or_zero_operand.
75         Rename into movtf_insn_sp32_no_fpu.
76         (movtf_insn_hq_sp64): Delete.
77         (movtf_insn_hq_vis_sp64): Use register_or_zero_operand.
78         Rename into movtf_insn_sp64_hq.
79         (movtf_insn_sp64): Delete.
80         (movtf_insn_vis_sp64): Use register_or_zero_operand.
81         Rename into movtf_insn_sp64.
82         (movtf_no_e_insn_sp64): Use register_or_zero_operand.
83         Rename into movtf_insn_sp64_no_fpu.
84
85 2005-05-10  Nathan Sidwell  <nathan@codesourcery.com>
86
87         * config/stormy16/stormy16.c (xstormy16_emit_cbranch): Use
88         gcc_assert and gcc_unreachable as appropriate.
89         (xstormy16_split_cbranch, xstormy16_output_cbranch_hi,
90         xstormy16_output_cbranch_si, xstormy16_split_move,
91         xstormy16_initial_elimination_offset,
92         xstormy16_encode_section_info, xstormy16_print_operand_address,
93         xstormy16_expand_call, xstormy16_expand_arith,
94         xstormy16_output_shift, xstormy16_init_builtins): Likewise.
95
96 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
97
98         * tree-outof-ssa.c (_elim_graph): Change the type of nodes and
99         const_copies to VEC(tree,heap)*.
100         (new_elim_graph, delete_elim_graph, elim_graph_size,
101         elim_graph_add_node, eliminate_build, eliminate_phi): Use VEC
102         instead of VARRAY.
103
104 2005-05-10  Joseph S. Myers  <joseph@codesourcery.com>
105
106         PR other/21052
107         * doc/extend.texi (Type Attributes): Correct example syntax.
108
109 2005-05-09  Joseph S. Myers  <joseph@codesourcery.com>
110
111         PR c/21160
112         * doc/invoke.texi (-Wuninitialized): Update documentation.
113
114 2005-05-09  Richard Earnshaw  <richard.earnshaw@arm.com>
115
116         * arm.c (const_ok_for_arm): Use a faster algorithm.
117
118 2005-05-09  David Edelsohn  <edelsohn@gnu.org>
119
120         PR target/21477
121         * config/rs6000/rs6000.md (add_op2): New.
122         (add<mode>3): Use it.
123
124 2005-05-09  Richard Earnshaw  <richard.earnshaw@arm.com>
125
126         * arm.c (arm_gen_constant): Add new heuristic for generating
127         constant integers that can be expressed as the difference of two
128         valid immediates.
129
130 2005-05-09  Roger Sayle  <roger@eyesopen.com>
131
132         * c-tree.h (parser_build_unary_op): New prototype.
133         * c-typeck.c (parser_build_unary_op): New function to construct
134         a unary operation in the C parser.
135         * c-parser.c (c_parser_unary_expression):  Use the new function
136         parser_build_unary_op when appropriate.
137
138 2005-05-09  Mark Mitchell  <mark@codesourcery.com>
139
140         PR 18655
141         * dwarf2out.c (output_call_frame_info): Use DWARF2_FRAME_REG_OUT
142         before outputting DWARF_FRAME_RETURN_COLUMN.
143
144 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
145
146         * config/s390/s390.c: (s390_branch_condition_mask,
147         s390_branch_condition_mnemonic, s390_extra_constraint_str,
148         s390_const_ok_for_constraint_p, s390_expand_plus_operand,
149         legitimize_pic_address, s390_emit_tls_call_insn,
150         legitimize_tls_address, legitimize_tls_address,
151         s390_expand_addcc, print_shift_count_operand, print_operand,
152         addr_generation_dependency_p, annotate_constant_pool_refs,
153         s390_split_branches, find_constant_pool_ref,
154         replace_constant_pool_ref, s390_add_constant, s390_find_constant,
155         s390_find_execute, s390_mainpool_start, s390_chunkify_start,
156         s390_output_pool_entry, s390_function_value,
157         s390_call_saved_register_used, s390_emit_call): Replace
158         conditional aborts by gcc_assert and unconditional by gcc_unreachable.
159         (s390_select_ccmode, s390_match_ccmode_set, s390_extract_part,
160         s390_cannot_force_const_mem, s390_output_dwarf_dtprel,
161         get_some_local_dynamic_name, s390_function_arg_size,
162         s390_function_arg_advance, s390_function_arg,
163         s390_expand_builtin, s390_gen_rtx_const_DI): Replace abort in
164         default case by gcc_unreachable.
165         * config/s390/s390.md: ("*cjump_31", "*icjump_31", "*jump31"): Replace
166         conditional abort by gcc_assert.
167         ("doloop_si31"): Replace abort in last else by gcc_unreachable.
168         ("main_pool", "pool"): Replace unconditional abort by gcc_unreachable.
169
170 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
171
172         * config/s390/s390.c: (s390_decompose_address,
173         tls_symbolic_operand, legitimate_pic_operand_p,
174         legitimate_constant_p, legitimate_reload_constant_p,
175         s390_expand_plus_operand, legitimate_address_p,
176         legitimate_la_operand_p, ): Remove 'register' from signature.
177         (symbolic_reference_mentioned_p,
178         tls_symbolic_reference_mentioned_p): Remove 'register' from local
179         variable declarations.
180         (legitimize_address): Remove 'register' from
181         signature and local variable declarations.
182
183 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
184
185         * config/s390/s390-protos.h: (s390_match_ccmode,
186         s390_match_ccmode_set, reg_used_in_mem_p,
187         symbolic_reference_mentioned_p, tls_symbolic_reference_mentioned_p,
188         legitimate_la_operand_p, preferred_la_operand_p,
189         s390_short_displacement, addr_generation_dependency_p,
190         legitimate_reload_constant_p, legitimate_address_p): Change return type
191         into 'bool'.
192         (s390_tm_ccmode): Change type of parameter "mixed" into 'bool'. 
193         * config/s390/s390.c: (s390_match_ccmode,
194         symbolic_reference_mentioned_p, tls_symbolic_reference_mentioned_p,
195         legitimate_reload_constant_p): Change return type into 'bool'.
196         (preferred_la_operand_p,legitimate_la_operand_p, legitimate_address_p):
197         Likewise.  Additionally adapted comment.  
198         (s390_extra_constraint_p): Change Comment to reflect 'int' return type.
199         (s390_tm_ccmode): Change type of parameter "mixed" into 'bool'. 
200         (s390_decompose_address): Change the type of the internal flags
201         "pointer", "base_ptr", "indx_ptr", and the return value into 'bool'.
202         (struct s390_address): Change type of "pointer" into bool.
203         * config/s390/s390.md: ("*tmdi_reg", "*tmsi_reg", "tm<mode>_full"):
204         Adapt calls for 's390_tm_ccmode' to the new signature.
205
206 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
207
208         * config/s390/s390.c: (s390_match_ccmode_set,
209         s390_branch_condition_mnemonic, s390_short_displacement,
210         s390_decompose_address, get_thread_pointer, legitimize_tls_address,
211         print_shift_count_operand, get_some_local_dynamic_name,
212         get_some_local_dynamic_name_1, reg_used_in_mem_p,
213         addr_generation_dependency_p, s390_split_branches,
214         annotate_constant_pool_refs, find_constant_pool_ref,
215         replace_constant_pool_ref, find_ltrel_base, replace_ltrel_base,
216         s390_optimize_prologue, find_unused_clobbered_reg, s390_frame_area,
217         s390_register_info, s390_frame_info, s390_init_frame_layout,
218         s390_update_frame_layout, save_fpr, restore_fpr, save_gprs,
219         restore_gprs, s390_function_arg_size, s390_function_arg_float,
220         s390_init_machine_status, s390_assemble_integer, s390_handle_option,
221         s390_encode_section_info, s390_cannot_force_const_mem,
222         s390_delegitimize_address, s390_return_in_memory, s390_init_builtins,
223         s390_expand_builtin, s390_output_mi_thunk, s390_safe_attr_type,
224         s390_adjust_priority, s390_issue_rate,
225         s390_first_cycle_multipass_dfa_lookahead, s390_cannot_copy_insn_p,
226         s390_rtx_costs, s390_address_cost, s390_reorg, s390_valid_pointer_mode,
227         s390_build_builtin_va_list, s390_gimplify_va_arg,
228         s390_function_ok_for_sibcall, s390_call_saved_register_used,
229         s390_pass_by_reference, s390_fixed_condition_code_regs,
230         s390_cc_modes_compatible s390_mainpool_start,, s390_mainpool_finish,
231         s390_mainpool_cancel, s390_chunkify_start, s390_chunkify_finish,
232         s390_chunkify_cancel, s390_start_pool, s390_end_pool,
233         s390_add_pool_insn, s390_find_pool, s390_add_constant,
234         s390_find_constant, s390_add_execute, s390_find_execute,
235         s390_execute_label, s390_execute_target, s390_dump_pool,
236         s390_dump_execute, s390_alloc_pool, s390_free_pool): Remove prototypes. 
237         Move target macro definitions to the end of the file.  Move several
238         functions within the file to assure correct compiling.
239
240 2005-05-09  Steven Bosscher  <stevenb@suse.de>
241
242         * calls.c (purge_reg_equiv_notes): Remove, fold into...
243         (fixup_tail_calls): ...here.  Only look at insns between the
244         start of the function and the FUNCTION_BEG insn note.
245
246         * gcse.c (one_cprop_pass): Fix typos in dumps.
247
248         * tree-ssa-operands.h (FOR_EACH_PHI_ARG): Fix typos.
249
250 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
251
252         * config/s390/s390.h: Move xxx_REGNUM definitions to s390.md.
253         * config/s390/s390.md: ("SIBCALL_REGNUM", "BASE_REGNUM",
254         "RETURN_REGNUM", "CC_REGNUM", "TP_REGNUM"): New constants.
255         Replace every occurrence of '(reg:<MODE> 33)' by '(reg:<MODE>
256         CC_REGNUM)'.
257         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Replace
258         '(reg:<MODE> 36)' by '(reg:<MODE> TP_REGNUM)'.
259         ("*sibcall_br", "*sibcall_value_br"): Replace '(reg:DI 1)' by '(reg:DI
260         REG_SC)'.
261
262 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
263
264         * config/s390/s390.md: ("gf") New mode attribute.
265         ("fixuns_truncdfdi2", "fixuns_truncdfsi2", "fixuns_truncsfdi2",
266         "fixuns_truncsfsi2"): Merge.
267         ("fix_truncdfdi2", "fix_truncsfdi2"): Merge.
268         ("fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee", "fix_truncsfdi2_ieee",
269         "fix_truncsfsi2_ieee"): Merge.
270
271 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
272
273         * config/s390/s390.md: ("FPR") New mode macro.
274         ("de", "dee"): New mode attributes.
275         ("cmpdf", "cmpsf"): Merge.
276         ("*cmpdf_ccs_0", "*cmpsf_ccs_0"): Merge.
277         ("*cmpdf_ccs_0_ibm", "*cmpdf_ccs_0_ibm"): Merge.
278         ("*cmpdf_ccs", "*cmpsf_ccs"): Merge.
279         ("*cmpdf_ccs_ibm", "*cmpsf_ccs_ibm"): Merge.
280         ("floatdidf2", "floatdisf2"): Merge.
281         ("adddf3", "addsf3"): Merge.
282         ("*adddf3", "*addsf3"): Merge.
283         ("*adddf3_cc", "*addsf3_cc"): Merge.
284         ("*adddf3_cconly", "*addsf3_cconly"): Merge.
285         ("*adddf3_ibm", "*addsf3_ibm"): Merge.
286         ("subdf3", "subsf3"): Merge.
287         ("*subdf3", "*subsf3"): Merge.
288         ("*subdf3_cc", "*subsf3_cc"): Merge.
289         ("*subdf3_cconly", "*subsf3_cconly"): Merge.
290         ("*subdf3_ibm", "*subsf3_ibm"): Merge.
291         ("muldf3", "mulsf3"): Merge.
292         ("*muldf3", "*mulsf3" "): Merge.
293         ("*muldf3_ibm", "*mulsf3_ibm"): Merge.
294         ("*fmadddf", "*fmaddsf"): Merge.
295         ("*fmsubdf", "*fmsubsf"): Merge.
296         ("divdf3", "divsf3"): Merge.
297         ("*divdf3", "*divsf3"): Merge.
298         ("*divdf3_ibm", "*divsf3_ibm"): Merge.
299         ("negdf2", "negsf2"): Merge.
300         ("*negdf2_cc", "*negsf2_cc"): Merge.
301         ("*negdf2_cconly", "*negsf2_cconly"): Merge.
302         ("*negdf2", "*negsf2"): Merge.
303         ("*negdf2_ibm", "*negsf2_ibm"): Merge.
304         ("absdf2", "abssf2"): Merge.
305         ("*absdf2_cc", "*abssf2_cc"): Merge.
306         ("*absdf2_cconly", "*abssf2_cconly"): Merge.
307         ("*absdf2", "*abssf2"): Merge.
308         ("*absdf2_ibm", "*abssf2_ibm"): Merge.
309         ("*negabsdf2_cc", "*negabssf2_cc"): Merge.
310         ("*negabsdf2_cconly", "*negabssf2_cconly"): Merge.
311         ("*negabsdf2", "*negabssf2"): Merge.
312         ("sqrtdf2", "sqrtsf2"): Merge.
313
314 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
315
316         * config/s390/s390.c: (s390_adjust_priority): Adapt to changed 
317         attribute names.
318         * config/s390/2084.md: ("x_fsimpd", "x_fsimps", "x_fdivd", "x_fdivs",
319         "x_floadd", "x_floads", "x_fstored", "x_fstores"): Rename to
320         ("x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
321         "x_floadsf", "x_fstoredf", "x_fstoresf") and replace 'type'
322         attribute names.
323         * config/s390/s390.md: ("type"): Rename "fsimpd, fsimps, floadd, floads,
324         fstored, fstores, fmuld, fmuls, fdivd, fdivs, fsqrtd, fsqrts" to
325         "fsimpdf, fsimpsf, floaddf, floadsf, fstoredf, fstoresf, fmuldf,
326         fmulsf, fdivdf, fdivsf, fsqrtdf, fsqrtsf".
327         ("*cmpdf_ccs_0", "*cmpdf_css_0_ibm", "*cmpdf_ccs",
328         "*cmpdf_ccs_ibm", "*cmpsf_ccs_0", "*cmpsf_css_0_ibm",
329         "*cmpsf_ccs", "*cmpsf_ccs_ibm", "*movdi_64", "*movdi_31",
330         "*movsi_zarch", "*movsi_esa", "*movdf_64", "*movdf_31", "movsf",
331         "*muldf3", "*muldf3_ibm", "*fmadddf", "*fmsubdf", "*mulsf3",
332         "mulsf3_ibm", "*fmaddsf", "fmsubsf", "*divdf3", "*divdf3_ibm",
333         "*negdf2_cc", "*negdf2_cconly", "*negdf2", "*negdf2_ibm",
334         "*negsf2_cc", "*negsf2_cconly", "*negsf2", "*absdf2_cc",
335         "*absdf2_cconly", "*absdf2", "*absdf2_ibm", "*abssf2_cc",
336         "*abssf2_cconly", "*abssf2", "*abssf2_ibm", "*negabsdf2_cc",
337         "*negabsdf2_cconly", "*negabsdf2", "*negabssf2_cc",
338         "*negabssf2_cconly", "*negabssf2", "sqrtdf2", "sqrtsf2"): Rename
339         'type' value.
340         ("*divsf3"): Additionally rename second pattern to
341         "*divsf3_ibm".
342         ("truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
343         "*adddf3", "*adddf3_cc", "*adddf3_cconly", "*adddf3_ibm",
344         "*addsf3", "*addsf3_cc", "*addsf3_cconly", "*subdf3",
345         "subdf3_cc", "*subdf3_cconly", "*subdf3_ibm", "*subsf3",
346         "subsf3_cc", "*subsf3_cconly", "*subsf3_ibm"): Merge identical
347         'type values' and rename 'type' value.
348         ("*addsf3"): Additionally rename second pattern to
349         "*addsf3_ibm".
350
351 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
352
353         * config/s390/s390.md: ("SHIFT"): New mode macro.
354         ("lr", "shift"): New mode attributes.
355         ("ashldi3", "lshrdi3"): Merge.
356         ("*ashldi3_31", "*lshrdi3"_31): Merge.
357         ("*ashldi3_64", "*lshrdi3"_64): Merge.
358         ("ashlsi3", "lshrsi3"): Merge.
359
360 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
361
362         * config/s390/s390.md: ("DSI", "SCOND"): New mode 
363         macros.
364         ("E", "g"): New mode attributes.
365         ("*adddi3_alc_cc", "*addsi3_alc_cc"): Merge.
366         ("*adddi3_alc", "*addsi3_alc"): Merge.
367         ("*subdi3_slb_cc", "*subsi3_slb_cc"): Merge.
368         ("*subdi3_slb", "*subsi3_slb"): Merge.
369         ("adddicc", "addsicc"): Merge.
370         ("*sconddi", "*scondsi"): Merge.
371         ("*sconddi_neg", "*scondsi_neg"): Merge.
372         ("sltu", "sgtu", "sleu", "sgeu"): Merge.
373         ("negdi2", "negsi2"): Extract expander pattern from
374         "negsi2" and merge with "negdi2".
375         ("*negdi2"): Merge with instruction pattern of "negsi2".
376         ("*negdi2_cc", "*negsi2_cc"): Merge.
377         ("*negdi2_cconly", "*negsi2_cconly"): Merge.
378         ("rotldi3", "rotlsi3"): Merge.
379
380 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
381
382         * config/s390/s390.md: ("hc"): New mode attribute.
383         ("extendhidi2", "extendqidi2"): Merge.
384         ("*extendhidi2", "*extendqidi2"): Merge.
385         ("extendhisi2", "extendqisi2"): Merge.
386         ("zero_extendhidi2", "zero_extendqidi2"): Merge.
387         ("*zero_extendhidi2", "*zero_extendqidi2"): Merge.
388         Merged 2 define_split.
389         ("*zero_extendhisi2", "*zero_extendqisi2"): Merge.
390         ("*zero_extendhisi2_64", "*zero_extendqisi2_64"): Merge.
391
392 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
393
394         * config/s390/s390.md: ("COMPARE"): New mode macro.
395         ("beq", "bne", "bgt", "bgtu", "blt", "bltu", "bge", "bgeu",
396         "ble", "bleu", "bunordered", "bordered", "buneq", "bunlt",
397         "bungt", "bunle", "bunge", "bltgt"): Merge.
398
399 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
400
401         * config/s390/s390.md: ("INT"): New mode macro.
402         ("one_cmpldi2", "one_cmplsi2", "one_cmplhi2", "one_cmplqi2"):
403         Merge.
404
405 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
406
407         * config/s390/s390.md: ("GPR", "P"): New mode macros.
408         ("cmpdi", "cmpsi"): Merge.
409         ("strlendi", "strlensi"): Merge.
410         ("*strlendi", "*strlensi"): Merge.
411         ("movmemdi", "movmemsi"): Merge.
412         ("clrmemdi", "clrmemsi"): Merge.
413
414 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
415
416         * config/s390/s390.md: ("HQI"): New mode macro.
417         ("icm_lo", "icm_hi", "max_uint"): New mode attributes.
418         ("*tmhi_full", "*tmqi_full"): Merge.
419         ("*tsthiCCT", "*tstqiCCT"): Merge.
420         ("*tsthi", "*tstqi"): Merge.
421         ("*tsthi_cconly", "tstqi_cconly"): Merge.
422         ("*sethighhisi", "*sethighqisi"): Merge.
423          
424 2005-05-09  Kazu Hirata  <kazu@cs.umass.edu>
425
426         * crtstuff.c, integrate.h, tree-scalar-evolution.h,
427         config/alpha/unicosmk.h, config/arc/arc.md,
428         config/arm/bpabi.h, config/arm/coff.h, config/arm/elf.h,
429         config/arm/ieee754-df.S, config/arm/ieee754-sf.S,
430         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
431         config/arm/semi.h, config/arm/uclinux-elf.h,
432         config/arm/wince-pe.h, config/fr30/fr30.c,
433         config/rs6000/altivec.h: Update copyright.
434
435 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
436
437         * config/pdp11/pdp11.c (pdp11_output_function_prologue): Use
438         gcc_assert and gcc_unreachable as appropriate.
439         (pdp11_output_function_epilogue, output_move_double,
440         output_move_quad, print_operand_address, output_jump,
441         output_addr_const_pdp11): Likewise.
442         * config/pdp11/pdp11.h (FUNCTION_PROFILER,
443         ASM_OUTPUT_ALIGN): Likewise.
444         * config/pdp11/pdp11.md: Likewise.
445         (extendhisi2, subhi3, subqi3): Likewise.
446
447 2005-05-09  David Edelsohn  <edelsohn@gnu.org>
448
449         PR middle-end/21237
450         * dojump.c (do_jump, MINUS_EXPR): Build NE_EXPR and fall through
451         to NE_EXPR case.
452
453 2005-05-09  Kazu Hirata  <kazu@cs.umass.edu>
454
455         * config/ia64/ia64.c: Fix a comment typo.
456
457 2005-05-09  Richard Earnshaw  <rearnsha@arm.com>
458
459         PR target/21397
460         * arm.c (ARM_OPT_SET_CPU, ARM_OPT_SET_ARCH, ARM_OPT_SET_TUNE): Define.
461         (arm_override_options): Use them instead of manifest constants.  Don't
462         allow -march to override the -mtune setting.
463
464 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
465
466         * config/iq2000/iq2000.c (abort_with_insn): Use fancy_abort.
467         (gen_int_relational): Use gcc_unreachable and gcc_assert as necessary.
468         (function_arg_advance, function_arg, save_restore_insns,
469         iq2000_expand_prologue, iq2000_output_conditional_branch,
470         expand_one_builtin, print_operand):
471         * config/iq2000/iq2000.md (tablejump): Likewise.
472
473 2005-05-09  David Ung  <davidu@mips.com>
474
475         * config/mips/mips.h (processor_type): Add names for the 24K. 
476         * config/mips/mips.c (mips_cpu_info_table): Add names for the 24K
477         processor family.
478         * config/mips/mips.md (cnv_mode): New attribute for recording the
479         conversion types of float convert insns.
480         (cpu): Add 24k and 24kx.
481         (include): Include 24k.md file.
482         (truncdfsf2, extendsfdf2, fix_truncdfsi2_insn, fix_truncdfsi2_macro)
483         (fix_truncdfdi2, fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2)
484         (floatdisf2): Setup cnv_mode.
485         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): Changed mode to SF and
486         setup cnv_mode.
487         * config/mips/24k.md: New file, contains 24k DFA pipeline
488         description. 
489
490 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
491
492         * config/sh/sh.c (print_operand_address): Use gcc_assert and
493         gcc_unreachable as appropriate.
494         (print_operand, prepare_move_operands, prepare_scc_operands,
495         output_movedouble, output_branch, shift_insns_rtx, gen_shifty_op,
496         gen_shl_and, shl_sext_kind, gen_datalabel_ref, dump_table,
497         fixup_mova, gen_far_branch, sh_reorg, split_branches,
498         final_prescan_insn, output_stack_adjust, sh_expand_epilogue,
499         sh_set_return_address, sh_setup_incoming_varargs,
500         initial_elimination_offset, sh_pch_valid_p, get_free_reg,
501         sh_expand_builtin, sh_output_mi_thunk, extract_sfunc_addr,
502         check_use_sfunc_addr): Likewise.
503         * config/sh/netbsd-elf.h (FUNCTION_PROFILER): Likewise.
504         * config/sh/sh.h (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
505         * config/sh/symbian.c (sh_symbian_mark_dllexport,
506         sh_symbian_mark_dllimport): Likewise.
507         * config/sh/sh.md: Likewise.
508         (movdicc, call_pop, call_value_pop, casesi_worker_1,
509         casesi_worker_2, casesi_shift_media, casesi_load_media,
510         return_media): Likewise.
511
512 2005-05-08  Roger Sayle  <roger@eyesopen.com>
513
514         PR inline-asm/8788
515         * stmt.c (expand_asm_operands): Avoid calling force_reg on BLKmode
516         operands.
517
518 2005-05-08  Richard Henderson  <rth@redhat.com>
519
520         * config/alpha/alpha.c (adjust_address): Fix typo last change.
521
522 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
523
524         * config/m68hc11/m68hc11.h (REG_VALID_P): A regno must be >= 0
525         and -1 can happen in reg_renumber when no hard register is assigned.
526
527 2005-05-08  Steven Bosscher  <stevenb@suse.de>
528             Kazu Hirata  <kazu@cs.umass.edu>
529
530         PR tree-optimization/14841, tree-optimization/15838
531         * tree-ssa-ccp.c (fold_const_aggregate_ref): New.
532         (evaluate_stmt): Call it.
533
534 2005-05-08  Jakub Jelinek  <jakub@redhat.com>
535
536         * config/ia64/ia64.c (ia64_override_options): Don't set
537         ia64_flag_var_tracking and clear flag_var_tracking here...
538         (ia64_file_start): ... but here.
539
540 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
541
542         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use gcc_assert
543         and gcc_unreachable as appropriate.
544         (expand_prologue, expand_epilogue, m68hc11_gen_lowpart,
545         m68hc11_gen_highpart, print_operand, print_operand_address,
546         m68hc11_expand_compare, m68hc11_expand_compare_and_branch,
547         m68hc11_gen_movhi): Likewise.
548         * config/m68hc11/m68hc11.h (HARD_X_REGNUM): Reword comment.
549         * config/m68hc11/m68hc11.md: Reword comment.
550
551 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
552
553         PR target/21281
554         * config/m68hc11/predicates.md (splitable_operand): An immediate is
555         allowed.
556
557 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
558
559         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Do not allow
560         the 68HC12 address indirect addressing mode as it is not supported by
561         bset and bclr.
562         * config/m68hc11/m68hc11-protos.h
563         (m68hc11_valid_addressing_p): Declare.
564         (m68hc11_add_mode): Declare.
565         * config/m68hc11/m68hc11.c (m68hc11_valid_addressing_p): Rename from
566         register_indirect_p and export it.
567         (m68hc11_z_replacement): Use emit_insn_after when adding the save Z
568         instruction so that it is part of the good BB.
569         (m68hc11_gen_movhi): Fix invalid generation of indexed indirect
570         addressing with movw.
571         (m68hc11_gen_movqi): Use pula and pulb instead of lda and ldb for
572         68HC12.
573         * config/m68hc11/m68hc11.h (ADDR_STRICT, ADDR_INCDEC, ADDR_INDEXED,
574         ADDR_OFFSET, ADDR_INDIRECT, ADDR__CONST): Moved from m68hc11.c.
575         * config/m68hc11/m68hc11.md ("movhi_const0"): Use this pattern only
576         for 68HC11.
577         ("*movhi_68hc12"): Handle movhi_const0.
578         ("*subhi3", "subqi3"): Use general_operand for operand 1.
579         ("*subhi3_zext"): Likewise.
580
581 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
582
583         PR target/19051
584         * config/m68hc11/m68hc11.md ("mulqi3"): Use general_operand for
585         operand 1 and fix constraints.
586         ("mulqihi3"): Use general_operand for operand 2.
587
588 2005-05-08  Julian Brown  <julian@codesourcery.com>
589             H.J. Lu  <hongjiu.lu@intel.com>
590             Paul Brook  <paul@codesourcery.com>
591
592         * configure.ac: Set ld_vers_major, ld_vers_minor and ld_vers_patch for
593         GNU linker. Support linker version x.x.x.x.x. Require GNU linker
594         20050308/2.16.0 or newer for comdat group.
595         * configure: Regenerated.
596         * config.in: Regenerated.
597         * varasm.c (default_function_rodata_section): Put .rodata section in
598         COMDAT group when necessary.
599         (default_elf_asm_named_section): Rename HAVE_GAS_COMDAT_GROUP to
600         HAVE_COMDAT_GROUP.
601         (default_unique_section_1): Don't use .gnu.linkonce when COMDAT is
602         available.
603
604 2005-05-08  Kazu Hirata  <kazu@cs.umass.edu>
605
606         * tree-dfa.c (referenced_vars, add_referenced_var): Use VEC
607         instead of VARRAY.
608         * tree-flow.h (num_referenced_var, referenced_var): Likewise.
609         * tree-into-ssa.c (mark_def_site_blocks): Likewise.
610         * tree-ssa.c (init_tree_ssa, delete_tree_ssa): Likewise.
611         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
612
613 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
614
615         PR target/16925
616         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Handle split of
617         64-bit constants on 64-bit hosts.
618         (m68hc11_split_logical): Simplify.
619         (m68hc11_split_move): Likewise.
620
621 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
622             Paolo Bonzini  <bonzini@gnu.org>
623
624         * Makefile.in (cs-tconfig.h): Pass USED_FOR_TARGET to mkconfig.sh
625         * aclocal.m4 (GCC_TARGET_TEMPLATE, AH_TEMPLATE): New.
626         * configure.ac (enable_checking): Fix typos in runtime_checking.
627         (ENABLE_RUNTIME_CHECKING): Mark as target template.
628         (xm_file): Prepend auto-host.h
629         (HAVE_GAS_HIDDEN, HAVE_LD_EH_FRAME_HDR): Mark as target template.
630         * mkconfig.sh: Do not automatically define USED_FOR_TARGET in
631         tconfig.h.
632         * crtstuff.c: Do not include auto-host.h.
633         (IN_LIBGCC2): Do not define.
634         * gcov-io.h: Include tconfig.h, not auto-host.h.
635         * libgcc2.c: Do not include auto-host.h.
636         (abort): Do not undefine.
637         * libgcov.c: Remove unneeded comment about config.h.
638         * unwind-dw2-fde-glibc.c: Do not inlude auto-host.h.
639         * config.in, configure: Regenerated.
640         
641 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
642             Falk Hueffner  <falk@debian.org>
643
644         * config/alpha/alpha.c (tls_symbolic_operand_1): Use gcc_assert
645         and gcc_unreachable as appropriate.
646         (get_aligned_mem, get_unaligned_address,
647         alpha_emit_set_long_const, alpha_emit_conditional_branch,
648         alpha_emit_setcc, alpha_emit_conditional_move,
649         alpha_lookup_xfloating_lib_func, alpha_compute_xfloating_mode_arg,
650         alpha_emit_xfloating_libcall, alpha_split_tfmode_pair,
651         alpha_expand_unaligned_load, alpha_expand_block_move,
652         alpha_expand_zap_mask, get_trap_mode_suffix,
653         get_round_mode_suffix, get_some_local_dynamic_name,
654         print_operand_address, function_arg, alpha_return_in_memory,
655         function_value, alpha_expand_builtin,
656         alpha_initial_elimination_offset, alpha_expand_epilogue,
657         summarize_insn, alpha_handle_trap_shadows, alphaev5_insn_pipe,
658         alphaev5_next_group, alpha_align_insns,
659         unicosmk_initial_elimination_offset, unicosmk_unique_section,
660         unicosmk_ssib_name): Likewise.
661         * config/alpha/alpha.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
662         * config/alpha/unicosmk.h (TRAMPOLINE_TEMPLATE,
663         ASM_OUTPUT_ADDR_DIFF_ELT, ASM_OUTPUT_ADDR_DIFF_VEC): Likewise.
664         * config/alpha/vms.h (INITIAL_ELIMINATION_OFFSET,
665         ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
666         * config/alpha/alpha.md (*divmodsi_internal_er,
667         *divmoddi_internal_er, ashldi3, *insxl, sibcall, call_osf,
668         call_nt, call_umk, call_vms, call_value, sibcall_value,
669         call_value_osf, call_value_nt, call_value_vms, call_value_umk,
670         *call_vms_1, *movmemdi_1, *clrmemdi_1, *call_value_vms_1): Likewise.
671         * config/alpha/predicates.md (input_operand): Likewise.
672
673 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
674
675         * config/frv/frv.c (frv_default_flags_for_cpu): Use gcc_assert and
676         gcc_unreachable, as appropriate.
677         (frv_function_prologue, frv_alloc_temp_reg,
678         frv_initial_elimination_offset, frv_expand_block_move,
679         frv_expand_block_clear, frv_print_operand_jump_hint,
680         frv_legitimize_tls_address, unspec_got_name, frv_emit_move,
681         frv_emit_movsi, frv_split_cond_move, frv_split_minmax,
682         frv_ifcvt_modify_insn, frv_ifcvt_modify_final,
683         frv_adjust_field_align, frv_insn_unit, frv_cond_flags,
684         frv_sort_insn_group, frv_reorder_packet, frv_matching_accg_mode,
685         frv_in_small_data_p, frv_asm_out_constructor,
686         frv_asm_out_destructor, frv_output_dwarf_dtprel): Likewise.
687         * config/frv/frv.md (reload_incc_fp, *cond_exec_si_binary1,
688         *cond_exec_si_binary2, *cond_exec_si_divide, *cond_exec_si_unary1,
689         *cond_exec_sf_conv, *cond_exec_sf_add, call, sibcall, call_value,
690         sibcall_value, casesi): Likewise.
691
692         * config/mn10300/mn10300.c (print_operand): Use gcc_assert and
693         gcc_unreachable as appropriate.
694         (print_operand_address, mn10300_print_reg_list, expand_prologue,
695         expand_epilogue, notice_update_cc, initial_offset,
696         mn10300_address_cost_1): Likewise.
697         * config/mn10300/mn10300.md: Likewise.
698         (absdf2, abssf2, negdf2, negsf2): Likewise.
699
700 2005-05-08  Richard Sandiford  <rsandifo@redhat.com>
701
702         PR target/21416
703         * config/mips/mips.c (mips_emit_compare): Don't reverse UNGE and UNGT
704         comparisons.
705         * config/mips/mips.md (swapped_fcond): New code macro and attribute.
706         (sgt_<mode>, sge_<mode>): Generalize to all members of swapped_fcond,
707         including sunge_<mode> and sungt_<mode>.
708
709 2005-05-08  Richard Sandiford  <rsandifo@redhat.com>
710
711         * integrate.h (get_hard_reg_initial_val): Change type of register
712         parameter from int to unsigned int.
713         (has_hard_reg_initial_val): Likewise.
714         * integrate.c (get_hard_reg_initial_val): Likewise.
715         (has_hard_reg_initial_val): Likewise.  Remove cast to unsigned int.
716
717 2005-05-08  Kazu Hirata  <kazu@cs.umass.edu>
718
719         * except.c (eh_status): Change the type of ttype_data to
720         VEC(tree,gc)*.
721         (add_ttypes_entry, assign_filter_values,
722         output_function_exception_table): Use VEC instead of VARRAY.
723
724 2005-05-07  David Edelsohn  <edelsohn@gnu.org>
725
726         * config/rs6000/rs6000.md (popcount<mode>2): Fix non-C90 constant.
727
728 2005-05-07  Paul Brook  <paul@codesourcery.com>
729
730         * Makefile.in: Fix dependencies.
731         (GCOV_IO_H, VARRAY_H): Set.
732
733 2005-05-07  Anthony Green  <green@redhat.com>
734
735         PR bootstrap/21403
736         * configure.ac (STMP_FIXPROTO): Fix [ ] consumption problem in
737         x$STMP_FIXPROTO test.
738         * configure: Rebuilt.
739
740 2005-05-07  Joseph S. Myers  <joseph@codesourcery.com>
741
742         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Do not define
743         inappropriate feature test macros if flag_iso.
744
745 2005-05-07  Joseph S. Myers  <joseph@codesourcery.com>
746
747         * config/ia64/hpux.h (NO_IMPLICIT_EXTERN_C): Define.
748
749 2005-05-07  Hans-Peter Nilsson  <hp@axis.com>
750
751         PR target/21441
752         * config/cris/cris.md ("*movdi_insn", "*mov_sidesisf_biap")
753         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
754         Handle moved operand being in special register.
755         ("smulsi3_highpart", "umulsi3_highpart"): Change .error into
756         presumed working insn.
757         (mover2side): Add FIXME.
758
759 2005-05-07  Richard Sandiford  <rsandifo@redhat.com>
760
761         * integrate.c (get_func_hard_reg_initial_val): Delete.
762         (has_func_hard_reg_initial_val): Delete.
763         (get_hard_reg_initial_val): Inline the old implementation of
764         get_func_hard_reg_initial_val.  Use has_hard_reg_initial_val
765         instead of has_func_hard_reg_initial_val to test for an existing
766         pseudo.  Only create an rtx if a new initial value entry is needed.
767         (has_hard_reg_initial_val): Scan the initial value list directly.
768         Don't create an rtx.
769
770 2005-05-07  David Edelsohn  <edelsohn@gnu.org>
771
772         * config.gcc ({powerpc,rs6000}-ibm-aix*): Remove rs6000/aix.opt
773         from extra_options.
774         * config.in (HAVE_AS_POPCNTB): New.
775         * configure.ac (HAVE_AS_MFCRF): Add .machine "pwr5" to AIX test.
776         (HAVE_AS_POPCNTB): New.
777         * configure: Regenerated.
778         * config/rs6000/aix.h (TARGET_XL_COMPAT): Delete.
779         * config/rs6000/rs6000.c (rs6000_override_options, power5): Add
780         MASK_POPCNTB.  Uncomment rs6000_sched_restricted_insns_priority
781         and rs6000_sched_costly_dep.
782         * config/rs6000/rs6000.h (TARGET_POPCNTB): New.
783         (TARGET_XL_COMPAT): Delete.
784         * config/rs6000/rs6000.md (UNSPEC_POPCNTB): New.
785         (popcount<mode>2): New.
786         (popcntb<mode>2): New.
787         * config/rs6000/rs6000.opt (mpopcntb): New.
788
789         * opt-functions.awk (var_set): Emit OPTION_MASK_ for InverseMask
790         if variable name exists.
791
792 2005-05-07  Matt Kraai  <kraai@ftbfs.org>
793
794         * Makefile.in (c-gimplify.o): Depend on $(RTL_H) instead of rtl.h.
795
796 2005-05-07  Richard Henderson  <rth@redhat.com>
797
798         PR target/21412
799         * config/rs6000/rs6000.c (rs6000_emit_move): Look for tls addresses
800         with constant offsets.
801
802 2005-05-07  Nathan Sidwell  <nathan@codesourcery.com>
803
804         * config/v850/v850.c (print_operand): Use gcc_assert and
805         gcc_unreachable, as appropriate.
806         (print_operand_address, v850_handle_data_area_attribute,
807         v850_encode_data_area, construct_restore_jr, construct_save_jarl,
808         v850_insert_attributes, construct_prepare_instruction): Likewise.
809         * config/v850/v850.h (INITIAL_ELIMINATION_OFFSET): Likewise.
810         * config/v850/v850.md (movsicc, *sasf_1): Likewise.
811
812 2005-05-07  Kazu Hirata  <kazu@cs.umass.edu>
813
814         * tree-ssa-loop-ivcanon.c, config/i386/i386.c,
815         config/rs6000/rs6000.h: Fix comment typos.
816
817 2005-05-07  Richard Sandiford  <rsandifo@redhat.com>
818
819         * doc/invoke.texi: Remove documentation for MIPS' -mint64 option.
820         * config/mips/mips.c (TARGET_SCALAR_MODE_SUPPORTED_P): Delete.
821         (mips_scalar_mode_supported_p): Delete.
822
823 2005-05-06  Eric Christopher  <echristo@redhat.com>
824
825         * config/mips/mips.opt: Remove -mint64 option.
826         * config/mips/mips.c (override_options): Remove -mint64
827         handling.
828         * config/mips/mips.h (INT_TYPE_SIZE): Define to 32.
829         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove
830         64-bit integer handling.
831         * doc/invoke.texi (Option Summary): Remove -mint64 for
832         mips.
833
834 2005-05-06  Zdenek Dvorak  <dvorakz@suse.cz>
835
836         PR tree-optimization/19401
837         * tree-flow.h (tree_unroll_loops_completely): Declaration changed.
838         * tree-ssa-loop-ivcanon.c (enum unroll_level): New.
839         (estimated_unrolled_size): New function.
840         (try_unroll_loop_completely, canonicalize_loop_induction_variables,
841         tree_unroll_loops_completely): Always unroll loops if the code size
842         does not increase.
843         * tree-ssa-loop.c (tree_complete_unroll): Indicate whether all
844         loops should be unrolled completely.
845         (gate_tree_complete_unroll): Run complete unrolling unconditionally.
846
847 2005-05-06  Zdenek Dvorak  <dvorakz@suse.cz>
848
849         PR rtl-optimization/21254
850         * loop-iv.c (iv_number_of_iterations): Simplify infiniteness
851         assumptions for loops that otherwise do not roll.
852         (find_simple_exit): Prefer # of iterations that is guaranteed
853         not to be infinite.
854         * loop-unroll.c (decide_peel_once_rolling,
855         decide_peel_completely): Check whether the loop is infinite.
856
857 2005-05-06  Pat Haugen  <pthaugen@us.ibm.com>
858
859         * config/rs6000/sysv4.opt: Fix typo.
860
861 2005-05-06  Denis Vlasenko  <vda@port.imtp.ilyichevsk.odessa.ua>
862             Jakub Jelinek  <jakub@redhat.com>
863
864         PR target/21329
865         * config/i386/i386.c (ix86_expand_movmem): Don't use rep; movsb
866         for -Os if (movsl;)*(movsw;)?(movsb;)? sequence is shorter.
867         Don't use rep; movs{l,q} if the repetition count is really small,
868         instead use a sequence of movs{l,q} instructions.
869
870 2005-05-06  Jeff Law  <law@redhat.com>
871
872         PR tree-optimization/21380
873         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
874         thread through a block with no preds.
875
876 2005-05-06  Kazu Hirata  <kazu@cs.umass.edu>
877
878         * tree-ssa-operands.c (clobbered_v_may_defs, clobbered_vuses,
879         ro_call_vuse, fini_ssa_operands, add_call_clobber_ops,
880         add_call_read_ops): Use VEC instead of VARRAY.
881
882 2005-05-06  Nathan Sidwell  <nathan@codesourcery.com>
883
884         * config/mcore/mcore.c (mcore_print_operand_address): Use
885         gcc_assert and gcc_unreachable as appropriate.
886         (mcore_print_operand, mcore_gen_compare_reg, mcore_output_call,
887         mcore_output_andn, output_inline_const, mcore_output_move,
888         mcore_output_movedouble, mcore_expand_block_move,
889         layout_mcore_frame, mcore_initial_elimination_offset,
890         mcore_expand_prolog, mcore_mark_dllexport,
891         mcore_mark_dllimport): Likewise.
892         * config/mcore/mcore.h (switch_to_section): Likewise.
893         * config/mcore/mcore.md: Likewise.
894
895 2005-05-06  Aldy Hernandez  <aldyh@redhat.com>
896
897         * config/rs6000/linux64.h: Remove MASK_PROFILE_KERNEL, and
898         TARGET_PROFILE_KERNEL.
899
900         * config/rs6000/rs6000.c (output_profile_hook): Add comment to
901         TARGET_PROFILE_KERNEL use.
902
903 2005-05-06  Nathan Sidwell  <nathan@codesourcery.com>
904
905         * config/m32r/m32r.c (m32r_encode_section_info): Use gcc_assert
906         and gcc_unreachable, as appropriate.
907         (gen_compare, gen_split_move_double, m32r_setup_incoming_varargs,
908         m32r_expand_prologue, m32r_output_function_epilogue,
909         m32r_legitimize_pic_address, m32r_print_operand_address,
910         emit_cond_move, m32r_function_symbol,
911         m32r_output_block_move): Likewise.
912         * config/m32r/m32r.h (INITIAL_ELIMINATION_OFFSET): Likewise.
913         * config/m32r/m32r.md ( *movsi_insn, *zero_branch_insn,
914         *rev_zero_branch_insn): Likewise.
915         
916 2005-05-06  Jakub Jelinek  <jakub@redhat.com>
917
918         PR c++/20961
919         * varasm.c (merge_weak): Remove NEWDECL from WEAK_DECLS chain
920         if both NEWDECL and OLDDECL are already weak.
921
922 2005-05-06  Richard Sandiford  <rsandifo@redhat.com>
923
924         * config/rs6000/sysv4.h (EXTRA_SUBTARGET_SWITCHES): Delete.
925
926 2005-05-05  J"orn Rennecke  <joern.rennecke@st.com>
927             Kaz Kojima  <kkojima@gcc.gnu.org>
928
929         * config/sh/sh.c (sh_builtin_saveregs): Use copy_to_mode_reg
930         and plus_constant.
931
932 2005-05-05  Aldy Hernandez  <aldyh@redhat.com>
933             David Edelsohn  <edelsohn@gnu.org>
934
935         * config.gcc: Add .opt magic for the rs6000 ports.
936
937         * doc/invoke.texi: Document -mabi= option properly.  Document
938         -misel and -mno-sel.  Document -mspe and -mno-spe.  Document
939         -mvrsave and -mno-vrsave.  Document deprecation of -mspe= and
940         -misel=.
941
942         * config/rs6000/aix.h: Remove XL_COMPAT stuff.  Remove
943         SUBTARGET_SWITCHES and SUBSUBTARGET_SWITCHES.  Define
944         TARGET_XL_COMPAT.
945
946         * config/rs6000/aix.opt: New.
947         * config/rs6000/aix41.opt: New.
948         * config/rs6000/aix64.opt: New.
949         * config/rs6000/darwin.opt: New.
950         * config/rs6000/linux64.opt: New.
951         * config/rs6000/rs6000.opt: New.
952         * config/rs6000/sysv4.opt: New.
953
954         * config/rs6000/sysv4.h: Delete definitions of MASK_* and
955         associated TARGET_*.  Remove SUBTARGET_OPTIONS,
956         SUBTARGET_SWITCHES.
957         Define TARGET_USES_SYSV4_OPT.
958         * config/rs6000/aix41.h: Remove SUBSUBTARGET_SWITCHES.
959         * config/rs6000/aix43.h: Remove SUBSUBTARGET_SWITCHES.  Define
960         TARGET_USES_AIX64_OPT.
961         * config/rs6000/aix51.h: Same.
962         * config/rs6000/aix52.h: Same.
963         * config/rs6000/darwin.h: Remove SUBTARGET_SWITCHES,
964         MASK_MACHO_DYNAMIC_NO_PIC, TARGET_MACHO_DYNAMIC_NO_PIC.
965         Use TARGET_ALTIVEC_VRSAVE instead of rs6000_altivec_vrsave.
966         Define TARGET_DYNAMIC_NO_PIC as TARGET_MACHO_DYNAMIC_NO_PIC.
967         * config/rs6000/linux64.h: Use
968         rs6000_explicit_options.  Remove EXTRA_SUBTARGET_SWITCHES.
969
970         * config/rs6000/rs6000.c: Remove definitions of
971         rs6000_sched_restricted_insns_priority,
972         rs6000_long_double_size_string, rs6000_altivec_vrsave,
973         rs6000_altivec_vrsave_string, rs6000_isel, rs6000_spe,
974         rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string,
975         rs6000_abi_string, rs6000_warn_altivec_long, rs6000_longcall,
976         rs6000_alignment_string.  Define rs6000_explicit_options.
977         (rs6000_parse_abi_options): Remove.
978         (rs6000_parse_alignment_option): Remove.
979         (rs6000_parse_float_gprs_option): Remove.
980         (rs6000_handle_option): New.  Define TARGET_HANDLE_OPTION.  Define
981         TARGET_DEFAULT_TARGET_FLAGS.
982         (rs6000_override_options): Revamp to use new .opt machinery.
983
984         * config/rs6000/rs6000.h: Remove old MASK_* and TARGET_* in favor
985         of new .opt machinery.  Remove target_flags.  Redefine
986         TARGET_MFCRF and TARGET_POWERPC64.  Remove TARGET_SWITCHES,
987         SUBTARGET_SWITCHES, TARGET_OPTIONS, SUBTARGET_OPTIONS,
988         rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string,
989         rs6000_altivec_vrsave_string, rs6000_altivec_vrsave,
990         rs6000_longcall_switch, rs6000_default_long_calls,
991         rs6000_sched_costly_dep_str, rs6000_sched_costly_dep,
992         rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch, and
993         TARGET_ALTIVEC_VRSAVE.
994
995 2005-05-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
996
997         * config.gcc (hppa1.1-*-rtems*): Remove.
998         * config/pa/rtems.h: Remove.
999
1000 2005-05-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
1001
1002         * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
1003         Exclude roe/603e multilib variants.
1004
1005 2005-05-04  Denis Chertykov  <denisc@overta.ru>
1006
1007         PR target/21284
1008         * config/avr/avr.c (avr_output_addr_vec_elt): Use special section
1009         for output.
1010
1011 2005-05-05  Richard Sandiford  <rsandifo@redhat.com>
1012
1013         * config.gcc (arm*-wince-pe*, arm-*-pe*, strongarm-*-pe): Add
1014         arm/pe.opt to $extra_options.
1015         * config/arm/arm.h (target_flags, target_fpu_name, target_fpe_name)
1016         (target_float_abi_name, target_float_switch, target_abi_name)
1017         (ARM_FLAG_APCS_FRAME, ARM_FLAG_POKE, ARM_FLAG_FPE, ARM_FLAG_APCS_STACK)
1018         (ARM_FLAG_APCS_FLOAT, ARM_FLAG_APCS_REENT, ARM_FLAG_BIG_END)
1019         (ARM_FLAG_INTERWORK, ARM_FLAG_LITTLE_WORDS, ARM_FLAG_NO_SCHED_PRO)
1020         (ARM_FLAG_ABORT_NORETURN, ARM_FLAG_SINGLE_PIC_BASE)
1021         (ARM_FLAG_LONG_CALLS, ARM_FLAG_THUMB, THUMB_FLAG_BACKTRACE)
1022         (THUMB_FLAG_LEAF_BACKTRACE, THUMB_FLAG_CALLEE_SUPER_INTERWORKING)
1023         (THUMB_FLAG_CALLER_SUPER_INTERWORKING, CIRRUS_FIX_INVALID_INSNS)
1024         (TARGET_APCS_FRAME, TARGET_POKE_FUNCTION_NAME, TARGET_FPE)
1025         (TARGET_APCS_STACK, TARGET_APCS_FLOAT, TARGET_APCS_REENT)
1026         (TARGET_BIG_END, TARGET_INTERWORK, TARGET_LITTLE_WORDS)
1027         (TARGET_NO_SCHED_PRO, TARGET_ABORT_NORETURN, TARGET_SINGLE_PIC_BASE)
1028         (TARGET_LONG_CALLS, TARGET_THUMB, TARGET_CALLER_INTERWORKING)
1029         (TARGET_CIRRUS_FIX_INVALID_INSNS, SUBTARGET_SWITCHES, TARGET_SWITCHES)
1030         (TARGET_OPTIONS, arm_cpu_select, arm_select,  structure_size_string)
1031         (arm_pic_register_string): Delete.
1032         (TARGET_BACKTRACE): Redefine using TARGET_TPCS_LEAF_FRAME and
1033         TARGET_TPCS_FRAME.
1034         (TARGET_DEFAULT, CONDITIONAL_REGISTER_USAGE): Update mask names.
1035         * config/arm/coff.h (TARGET_DEFAULT): Likewise.
1036         * config/arm/elf.h (TARGET_DEFAULT): Likewise.
1037         * config/arm/netbsd-elf.h (TARGET_DEFAULT): Likewise.
1038         * config/arm/netbsd.h (TARGET_DEFAULT): Likewise.
1039         * config/arm/semi.h (TARGET_DEFAULT): Likewise.
1040         * config/arm/uclinux-elf.h (TARGET_DEFAULT): Likewise.
1041         * config/arm/wince-pe.h (TARGET_DEFAULT): Likewise.
1042         * config/arm/pe.h (TARGET_DEFAULT): Likewise.
1043         (TARGET_FLAG_NOP_FUN, TARGET_NOP_FUN_DLLIMPORT): Delete.
1044         (SUBTARGET_SWITCHES): Delete.
1045         * config/arm/arm.c (target_float_switch): Delete.
1046         (arm_cpu_select): Moved from config/arm/arm.h.
1047         (target_fpu_name, target_fpe_name, target_float_abi_name)
1048         (target_abi_name, structure_size_string, arm_pic_register_string)
1049         (arm_select): Make static.
1050         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1051         (arm_handle_option): New function.
1052         (arm_override_options): Update target_flags checks for new mask names.
1053         Remove target_float_switch code.
1054         (arm_expand_prologue, thumb_expand_prologue): Check
1055         !TARGET_SCHED_PROLOG instead of TARGET_NO_SCHED_PRO.
1056         * config/arm/arm.opt, config/arm/pe.opt: New files.
1057
1058 2005-05-05  Nathan Sidwell  <nathan@codesourcery.com>
1059
1060         * config/arc/arc.c (get_arc_condition_code): Use gcc_assert &
1061         gcc_unreachable as appropriate.
1062         (arc_double_limm_p, arc_setup_incoming_varargs,
1063         arc_compute_function_type, arc_output_function_prologue,
1064         arc_output_function_epilogue, arc_eligible_for_epilogue_delay,
1065         output_shift, arc_print_operand, arc_print_operand_address,
1066         arc_final_prescan_insn): Likewise.
1067         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
1068
1069 2005-05-04  Geoffrey Keating  <geoffk@apple.com>
1070
1071         * config/rs6000/rs6000.md (P): Use TARGET_*BIT rather than
1072         comparing Pmode.
1073         (SDI): New.
1074         (cmp): Delete.
1075         (wd): New.
1076         (add<mode>3, add<mode>3_internal1, add<mode>3_internal2,
1077         add<mode>3_internal3, one_cmpl<mode>2, sub<mode>3, neg<mode>2,
1078         clz<mode>2, ctz<mode>2, ffs<mode>2): New.
1079         (addsi3, addsi3_internal1, addsi3_internal2, addsi3_internal3,
1080         (one_cmplsi2, subsi3, negsi2, clzsi2, ctzsi2, ffssi2): Remove.
1081         (adddi3, adddi3_internal1, adddi3_internal2, adddi3_internal3,
1082         (one_cmpldi2, subdi3, negdi2, clzdi2, ctzdi2, ffsdi2): Remove.
1083         (sync_compare_and_swap<mode>): Use <wd> rather than <cmp>.
1084
1085 2005-05-05  Paul Brook  <paul@codesourcery.com>
1086
1087         * Makefile.in: Replace dependencies on basic-block.h, c-pragma.h,
1088         cfgloop.h, diagnostic.h, insn-attr.h, langhooks-def.h, params.h,
1089         regs.h, system.h, tree-dump.h, tree-gimple.h, tree-scalar-evolution.h
1090         and tree-data-ref.h with *_H variables.
1091
1092 2005-05-05  Kelley Cook  <kcook@gcc.gnu.org>
1093
1094         * config/m32r/xm-m32r.h, config/m32r/xm-linux.h: Delete files.
1095
1096 2005-05-05  Kelley Cook  <kcook@gcc.gnu.org>
1097
1098         * system.h: Poison BYTEORDER and HOST_WORDS_BIG_ENDIAN.
1099
1100 2005-05-04  Gerald Pfeifer  <gerald@pfeifer.com>
1101
1102         * doc/contrib.texi (Contributors): Add Mostafa Hagog and Ayal Zaks.
1103
1104 2005-05-04 Fariborz Jahanian <fjahanian@apple.com>
1105
1106         * config/rs6000/rs6000.c (rs6000_emit_prologue): Emit
1107         setting of vrsave register for current function after
1108         call to save_world is emitted.
1109
1110 2005-05-05  Hans-Peter Nilsson  <hp@bitrange.com>
1111
1112         * config/mmix/predicates.md: New file.
1113         * config/mmix/mmix.c (mmix_symbolic_or_address_operand)
1114         (mmix_reg_or_constant_operand, mmix_reg_cc_operand)
1115         (mmix_foldable_comparison_operator, mmix_comparison_operator)
1116         (mmix_reg_or_0_operand, mmix_reg_or_8bit_operand): Remove.
1117         * config/mmix/mmix.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
1118         Don't define.
1119         * config/mmix/mmix.md: Include predicates.md.
1120         ("call", "call_value"): Force address to register if it isn't a
1121         mmix_symbolic_or_address_operand.
1122
1123 2005-05-04  Andrew MacLeod  <amacleod@redhat.com>
1124
1125         * tree-flow-inline.h (op_iter_init_use, op_iter_init_def): Assert that
1126         the flags are of appropriate types.
1127         (num_ssa_operands): Generalize using the generic interface.
1128         * tree-ssa-dce.c (remove_dead_stmt): Don't ask for kills on a DEF
1129         iterator.
1130
1131 2005-05-04  Richard Sandiford  <rsandifo@redhat.com>
1132
1133         * protoize.c (version_flag, quiet_flag, nochange_flag, nosave_flag)
1134         (keep_flag, local_flag, global_flag, cplusplus_flag): Make extern.
1135
1136 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
1137
1138         * tree-outof-ssa.c (edge_leader, stmt_list,
1139         analyze_edges_for_bb): Use VEC instead of VARRAY.
1140         (init_analayze_edges_for_bb, fini_analayze_edges_for_bb): New.
1141         (perform_edge_inserts): Call init_analayze_edges_for_bb and
1142         fini_analayze_edges_for_bb.
1143
1144 2005-05-04  James E Wilson  <wilson@specifixinc.com>
1145
1146         PR driver/21112
1147         * gcc.c (process_command): In the second argv scan loop, ignore
1148         Xassembler and Xpreprocessor, along with their argument.
1149
1150 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
1151
1152         * tree-flow-inline.h, tree-ssa-operands.c,
1153         tree-ssa-operands.h, tree-ssa-opfinalize.h:
1154         Likewise. tree-vn.c: Fix comment typos.
1155         * doc/passes.texi, doc/tree-ssa.texi: Fix typos.
1156
1157 2005-05-04  Paolo Bonzini  <bonzini@gnu.org>
1158
1159         * doc/tm.texi (Target Hooks): Document
1160         TARGET_RESOLVE_OVERLOADED_BUILTIN.
1161
1162 2005-05-04  Paul Brook  <paul@codesourcery.com>
1163
1164         * Makefile.in: Change dependencies on target.h to $(TARGET_H).
1165
1166 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
1167
1168         * dwarf2out.c (incomplete_types, retry_incomplete_types,
1169         gen_struct_or_union_type_die, dwarf2out_init): Use VEC instead
1170         of VARRAY.
1171
1172         * loop-unroll.c (var_to_expand, analyze_insn_to_expand_var,
1173         get_expansion, expand_var_during_unrolling,
1174         insert_var_expansion_initialization,
1175         combine_var_copies_in_loop_exit, release_var_copies): Use VEC
1176         instead of VARRAY.
1177
1178         * tree-ssa-loop-ivopts.c (rewrite_address_base): Don't call
1179         update_stmt.
1180
1181 2004-05-03  Andrew Pinski  <pinskia@physics.uc.edu>
1182
1183         PR middle-end/15618
1184         * fold-const.c (fold_widened_comparison): Treat BOOLEAN_TYPE
1185         the same as INTEGER_TYPE.
1186         (fold_binary): Fold "bool_var != 0" to bool_var.
1187         Fold "bool_var == 1" to bool_var.
1188
1189 2004-05-03  Richard Henderson  <rth@redhat.com>
1190
1191         PR middle-end/21318
1192         * function.c (instantiate_virtual_regs_in_insn): Use the mode
1193         from recog_data instead of insn_data.
1194
1195 2005-05-03  DJ Delorie  <dj@redhat.com>
1196
1197         * common.opt (fdiagnostics-show-option): No variable is needed.
1198         * diagnostic.h (diagnostic_context): Add show_option_requested flag.
1199         * diagnostic.c (diagnostic_initialize): Initialize show_option_requested.
1200         (diagnostic_report_diagnostic): Test for enabled diagnostics here.
1201         Save and restore original message format.  Use flag in context
1202         instead of global.
1203         (warning): Don't test for enabled warnings here.
1204         * opts.c (common_handle_option): Handle -fdiagnostics-show-option
1205         here.
1206
1207 2005-05-04  Kelley Cook  <kcook@gcc.gnu.org>
1208
1209         * config/m32r/xm-m32r.h: Don't define HOST_WORDS_BIG_ENDIAN.
1210         * config/m32r/xm-linux.h: Don't undefine HOST_WORDS_BIG_ENDIAN.
1211         * mips-tfile.c: Use WORDS_BIG_ENDIAN instead of HOST_WORDS_BIG_ENDIAN.
1212         * aclocal.m4: Don't include accross.m4.
1213         * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
1214         Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
1215         * configure, config.in: Regenerate.
1216         
1217 2005-05-04  Jakub Jelinek  <jakub@redhat.com>
1218
1219         PR middle-end/21265
1220         * expr.h (enum block_op_methods): Add BLOCK_OP_TAILCALL.
1221         (clear_storage): Add argument.
1222         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall):
1223         Add tailcall argument, set CALL_EXPR_TAILCALL of the CALL_EXPR to
1224         tailcall.
1225         (emit_block_move): Handle BLOCK_OP_TAILCALL method.
1226         (clear_storage): Add method argument, handle BLOCK_OP_TAILCALL.
1227         (store_expr, store_constructor): Adjust callers.
1228         * builtins.c (expand_builtin_memcpy): Pass BLOCK_OP_TAILCALL
1229         to emit_block_move if CALL_EXPR_TAILCALL (exp).
1230         (expand_builtin_memmove): Add ORIG_EXP argument, copy
1231         CALL_EXPR_TAILCALL from ORIG_EXP to the new CALL_EXPR.
1232         (expand_builtin_bcopy): Replace ARGLIST and TYPE arguments
1233         with EXP.  Pass EXP to expand_builtin_memmove.
1234         (expand_builtin_memset): Add ORIG_EXP argument, pass
1235         BLOCK_OP_TAILCALL to clear_storage if CALL_EXPR_TAILCALL (orig_exp).
1236         (expand_builtin_bzero): Replace ARGLIST argument with EXP.
1237         Pass EXP to expand_builtin_memset.
1238         (expand_builtin_strcmp): Copy CALL_EXPR_TAILCALL from EXP to
1239         the new CALL_EXPR.
1240         (expand_builtin_strncmp): Likewise.
1241         (expand_builtin_printf): Replace ARGLIST argument with EXP.
1242         Copy CALL_EXPR_TAILCALL from EXP to the new CALL_EXPR.
1243         (expand_builtin_fprintf): Likewise.
1244         (expand_builtin): Adjust calls to
1245         expand_builtin_{memmove,bcopy,memset,bzero,{,f}printf}.
1246
1247         * config/i386/i386.c (ix86_expand_vector_set): Fix setting 3rd and 4th
1248         item in V4SF mode.
1249
1250         PR rtl-optimization/21239
1251         * combine.c (combine_simplify_rtx) <case VEC_SELECT>: Fix a typo.
1252
1253 2005-05-03  Kazu Hirata  <kazu@cs.umass.edu>
1254
1255         * tree-flow.h (tree_ann_common_d): Move aux to ...
1256         (stmt_ann_d): ... here.
1257         * tree-ssa-loop-im.c (LIM_DATA, determine_invariantness_stmt,
1258         move_computations_stmt, schedule_sm): Update references to
1259         aux.
1260         * tree-vectorizer.h (set_stmt_info, vinfo_for_stmt): Likewise.
1261
1262         * tree-cfg.c (remove_bb): Remove a redundant call to
1263         set_bb_for_stmt.
1264         * tree-if-conv.c (replace_phi_with_cond_modify_expr):
1265         Likewise.
1266
1267 2005-05-03  Richard Henderson  <rth@redhat.com>
1268
1269         * config/rs6000/rs6000.c: Remove conflict markers.
1270
1271         * cfg.c (dump_flow_info): Use max_reg_num, not max_regno.
1272
1273 2005-05-03  James E Wilson  <wilson@specifixinc.com>
1274
1275         * dwarf2out.c (lookup_filename): Call maybe_emit_file.
1276
1277 2005-05-03  DJ Delorie  <dj@redhat.com>
1278
1279         * c-decl.c (store_parm_decls_oldstyle): Let diagnostic machinery
1280         decide if the warning will be printed.
1281         * calls.c (expand_call): Likewise.
1282         * function.c (init-function_start): Likewise.
1283
1284         * common.opt (-fdiagnostics-show-option): New.
1285         * opts.c (option_enabled): Accept the option index instead of a
1286         pointer to the option descriptor.
1287         * opts.h (option_enabled): Likewise.
1288         * toplev.c (print_switch_values): Pass option index, not option
1289         descriptor.
1290         * diagnostic.h (diagnostic_info): Add option_index.
1291         * diagnostic.c: Include opts.h.
1292         (diagnostic_set_info): Initialize option_index.
1293         (diagnostic_report_diagnostic): Amend option name if appropriate.
1294         (warning): Check to see if the specified warning is enabled.
1295         Store option index.
1296         * doc/invoke.texi (-fdiagnostics-show-options): Document.
1297
1298 2005-05-03  Richard Henderson  <rth@redhat.com>
1299
1300         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix ALL_REGS and
1301         SPEC_OR_GEN_REGS definitions.
1302
1303 2005-05-03  Alexandre Oliva  <aoliva@redhat.com>
1304
1305         PR target/16888
1306         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Clear reg names
1307         for unavailable registers.
1308
1309 2005-05-03  Kazu Hirata  <kazu@cs.umass.edu>
1310
1311         * tree-cfg.c (tree_forwarder_block_p): Fix a typo.
1312
1313         * cfglayout.c (block_locators_blocks,
1314         insn_locators_initialize, insn_scope): Use VEC instead of
1315         VARRAY.
1316
1317         * tree-mudflap.c (deferred_static_decls, mudflap_enqueue_decl,
1318         mudflap_finish_file, mudflap_finish_file): Use VEC instead of
1319         VARRAY.
1320
1321 2005-05-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
1322
1323         * config/sparc/predicates.md (const_compl_high_operand): New.
1324         * config/sparc/sparc.c (sparc_emit_set_safe_HIGH64): Rename into
1325         gen_safe_HIGH64.
1326         (sparc_emit_set_const64_quick1): Adjust for above change.
1327         (sparc_emit_set_const64_quick2): Likewise.
1328         (sparc_emit_set_const64_longway): Likewise.
1329         (sparc_emit_set_const64): Likewise.
1330         * config/sparc/sparc.md (movhi_const64_special, movsi_const64_special,
1331         movdi_const64_special): Delete.
1332         (logical constant splitters): Use const_compl_high_operand.
1333
1334 2005-05-03  Richard Guenther  <rguenth@gcc.gnu.org>
1335
1336         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Use STRIP_TYPE_NOPS
1337         rather than STRIP_NOPS.
1338
1339 2005-05-03  Jakub Jelinek  <jakub@redhat.com>
1340
1341         PR rtl-optimization/21330
1342         * loop-unswitch.c (may_unswitch_on): Set *cinsn only when
1343         returning non-NULL.
1344         (unswitch_single_loop): Clear cinsn when retrying.
1345
1346         PR target/21297
1347         * config/i386/i386.c (legitimize_address): When canonicalizing
1348         ASHIFT into MULT, multiply by 1 << shift_count instead of
1349         1 << log2 (shift_count).
1350
1351 2005-05-03  Andrew MacLeod  <amacleod@redhat.com>
1352
1353         * lambda-code.c (gcc_loop_to_lambda_loop, 
1354         lambda_loopnest_to_gcc_loopnest, phi_loop_edge_uses_def,
1355         stmt_is_bumper_for_loop, perfect_nest_p, replace_uses_of_x_with_y): Use
1356         generic operand interface.
1357         * tree-data-ref.c (find_data_references_in_loop): Use generic interface.
1358         * tree-dfa.c (collect_dfa_stats_r, mark_new_vars_to_rename): Use
1359         generic operand interface.
1360         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list, 
1361         link_imm_use, link_imm_use_stmt, relink_imm_use, relink_imm_use_stmt,
1362         next_safe_imm_use, has_zero_uses, has_single_use, single_imm_use,
1363         num_imm_uses): Use ssa_use_operand_t.
1364         (get_def_ops, get_use_ops, get_v_may_def_ops, get_vuse_ops,
1365         get_v_must_def_ops): Delete.
1366         (get_def_from_ptr, get_phi_result_ptr): Get def directly now.
1367         (get_use_op_ptr, get_def_op_ptr, get_v_may_def_result_ptr,
1368         get_v_may_def_op_ptr, get_vuse_op_ptr, get_v_must_def_result_ptr,
1369         get_v_must_def_kill_ptr): Delete.
1370         (delink_stmt_imm_use): Move and use new operand interface.
1371         (op_iter_next_use, op_iter_next_def, op_iter_next_tree, op_iter_init,
1372         op_iter_next_tree): Use new operand implementation.
1373         (clear_and_done_ssa_iter): New.  Initialize a blank operand iterator.
1374         (op_iter_init_use, op_iter_init_def, op_iter_init_tree): Add iterator 
1375         type check.
1376         (op_iter_next_mustdef, op_iter_next_maydef, 
1377         op_iter_next_must_and_may_def): Delete. Replace with...
1378         (op_iter_next_maymustdef): New.  Combine must and may next operations.
1379         (op_iter_init_maydef, op_iter_init_mustdef, 
1380         op_iter_init_must_and_may_def): Use new interface.
1381         (single_ssa_tree_operand ): New.  Process single operands only as trees.
1382         (single_ssa_use_operand): New.  Process single operands only as uses.
1383         (single_ssa_def_operand): New.  Process single operands only as defs.
1384         (zero_ssa_operands): New.  Return TRUE if there are zero operands of the
1385         specified types.
1386         (num_ssa_operands): New.  Count the number of specified operands.
1387         (compare_ssa_operands_equal): New.  Compare two statements' operands.
1388         (single_phi_def): New.  Return true if PHI has one def of the specified
1389         operand type.
1390         (op_iter_init_phiuse): New.  Initialize the iterator for PHI arguments.
1391         (op_iter_init_phidef): New.  Initialize the iterator for the PHI def.
1392         * tree-flow.h (struct immediate_use_iterator_d): Use ssa_use_operand_t.
1393         (struct stmt_ann_d): Operands field no longer require GTY().
1394         (vn_compute, vn_lookup_or_add, vn_add, vn_lookup): Change prototype.
1395         * tree-into-ssa.c (mark_def_sites): Use SSA_OP_VMUSTKILL.
1396         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb, 
1397         dump_replaceable_exprs, rewrite_trees): Use generic interface.
1398         * tree-phinodes.c (make_phi_node, release_phi_node, resize_phi_node): 
1399         Use use_operand_p instead of ssa_imm_use_t *.
1400         * tree-pretty-print.c (dump_vops): check if operands are active before
1401         dumping virtual operands.
1402         * tree-sra.c (sra_walk_function): Use ZERO_SSA_OPERANDS.
1403         * tree-ssa-ccp.c (likely_value): Use ZERO_SSA_OPERANDS.
1404         (ccp_fold): Use new interface.
1405         (ccp_visit_stmt): Remove unused variables and code.
1406         (convert_to_gimple_builtin): Insert statements before calling 
1407         mark_new_vars_to_rename.
1408         * tree-ssa-copy.c (stmt_may_generate_copy): Use ZERO_SSA_OPERANDS.
1409         (copy_prop_visit_cond_stmt): Use generic interface.
1410         * tree-ssa-dom.c (struct expr_hash_elt): Use stmt pointer, not the 
1411         annotation in table.
1412         (thread_across_edge): Use generic interface.
1413         (initialize_hash_element): Initialzie with stmt, not annotation.
1414         (eliminate_redundant_computations): Use generic interface.
1415         (record_equivalences_from_stmt): Pass stmt, not annotation.
1416         (avail_expr_hash, real_avail_expr_hash, avail_expr_eq): Use generic
1417         interface.
1418         * tree-ssa-dse.c (dse_optimize_stmt): Use ZERO_SSA_OPERANDS.
1419         * tree-ssa-loop-ivopts.c (find_invariants_stmt, 
1420         find_interesting_uses_stmt, protect_loop_closed_ssa_form_use): Use 
1421         generic operand interface.
1422         * tree-ssa-loop-niter.c (chain_of_csts_start, get_val_for): Use generic
1423         interface.
1424         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Use Generic operand
1425         Interface.
1426         * tree-ssa-operands.c (struct opbuild_list_d): New.  Operand build type.
1427         (build_defs, build_uses, build_v_may_defs, build_vuses, 
1428         build_v_must_defs): Change type to struct opbuild_list_d.
1429         (ops_active): New.  Operands active boolean.
1430         (operand_memory, operand_memory_index): New.  Operand memory managers.
1431         (allocate_def_optype, allocate_use_optype, allocate_v_may_def_optype,
1432         allocate_vuse_optype, allocate_v_must_def_optype): Delete.
1433         (free_uses, free_defs, free_vuses, free_v_may_defs, free_v_must_defs): 
1434         Change from functions to static variable list heads.
1435         (opbuild_initialize_virtual): New.  Initialize a virtual build list.
1436         (opbuild_initialize_real): New.  Initialize a virtual build list.
1437         (opbuild_free): New.  Free a build list.
1438         (opbuild_num_elems): New.  Number of items in a list.
1439         (opbuild_append_real): New.  Add a real (tree *) operand.
1440         (opbuild_append_virtual): New.  Add and sort a virtual (tree) operand.
1441         (opbuild_first): New.  Return first element index in a list.
1442         (opbuild_next): New.  Return next element in a list.
1443         (opbuild_elem_real): New.  Return real element.
1444         (opbuild_elem_virtual): New.  Return virtual element.
1445         (opbuild_elem_uid): New.  Return UID of virtual element.
1446         (opbuild_clear): New.  Reset an operand list.
1447         (opbuild_remove_elem): New.  Remove an element form a list.
1448         (ssa_operands_active): New.  Return true if operand cache is active.
1449         (init_ssa_operands, fini_ssa_operands): Initialize new implementation.
1450         (ssa_operand_alloc): New.  Allocate memory from an operand chunk.
1451         (correct_use_link): Use use_operand_p.
1452         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_defs,
1453         finalize_ssa_vuses, finalize_ssa_v_must_defs): New implmentation. 
1454         (cleanup_v_may_defs): Use new implmentation.
1455         (finalize_ssa_stmt_operands, start_ssa_stmt_operands): New 
1456         implementation.
1457         (append_def, append_use, append_v_may_def, append_vuse, 
1458         append_v_must_def): Call opbuild_append routine instead of using varray.
1459         (build_ssa_operands): Simplify to simply use stmt, don't maintain a 
1460         global parse_old_ops variable.
1461         (free_ssa_operands): New implementation.
1462         (update_stmt_operands): Move.  Change argument to build_ssa_operands.
1463         (copy_virtual_operands): Move. New generic implementation.
1464         (create_ssa_artficial_load_stmt): Move. New implementation.
1465         (swap_tree_operands): Update for new implementation.
1466         (get_expr_operands): Add stmt parameter to calls to swap_tree_operands.
1467         (add_call_clobber_ops, add_call_read_ops): Initialize opbuild list
1468         rather than a varray.
1469         (verify_imm_links): Use use_operand_p.
1470         (dump_immediate_uses_for): If the immediate use variable is a virtual 
1471         variable, show the virtual ops in the stmt.
1472         * tree-ssa-operands.h (def_operand_p): No longer a structure.
1473         (NULL_DEF_OPERAND_P): Now a #define.
1474         (def_optype_d, use_optype_d, v_def_use_operand_type, v_may_def_optype_d,
1475         vuse_operand_type, vuse_optype_d, v_must_def_optype_d): Delete.
1476         (def_optype_d, use_optype_d, maydef_optype_d, vuse_optype_d,
1477         mustdef_optype_d): New.  Use Linked list representation.
1478         (SSA_OPERAND_MEMORY_SIZE): New.  Size of operand memory chunk.
1479         (struct ssa_operand_memory_d): New.  Allocated Chunk node.
1480         (struct stmt_operands_d): Change to new pointers that are not GTY.
1481         (STMT_USE_OPS, NUM_USES, SET_USE_OP, STMT_DEF_OPS, NUM_DEFS, SET_DEF_OP,
1482         STMT_V_MAY_DEF_OPS, NUM_V_MAY_DEFS, SET_V_MAY_DEF_RESULT,
1483         SET_V_MAY_DEF_OP, STMT_VUSE_OPS, NUM_VUSES, SET_VUSE_OP,
1484         STMT_V_MUST_DEF_OPS, NUM_V_MUST_DEFS, SET_V_MUST_DEF_RESULT, 
1485         SET_V_MUST_DEF_KILL): Delete.
1486         (V_MAY_DEF_OPS, V_MAY_DEF_RESULT_PTR, V_MAY_DEF_RESULT, 
1487         V_MAY_DEF_OP_PTR, V_MAY_DEF_OP): Rename to MAYDEF_*.
1488         (V_MUST_DEF_OPS, V_MUST_DEF_RESULT_PTR, V_MUST_DEF_RESULT, 
1489         V_MUST_DEF_KILL_PTR, V_MUST_DEF_KILL): Rename to MUSTDEF_*.
1490         (enum ssa_op_iter_type): Operand iterator typechecking values.
1491         (struct ssa_operand_iterator_d): Use linked lists of operands.
1492         (SSA_OP_VMUSTDEFKILL): Rename to SSA_OP_VMUSTKILL.
1493         (FOR_EACH_SSA_MAYDEF_OPERAND, FOR_EACH_SSA_MUSTDEF_OPERAND,
1494         FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): Use op_iter_next_maymustdef.
1495         (FOR_EACH_PHI_ARG): New.  Iterate over PHI arguments.
1496         (FOR_EACH_PHI_OR_STMT_USE): New.  Iterate over PHI or stmt uses.
1497         (FOR_EACH_PHI_OR_STMT_DEF): New.  Iterate over PHI or stmt defs.
1498         (SINGLE_SSA_TREE_OPERAND, SINGLE_SSA_USE_OPERAND, 
1499         SINGLE_SSA_DEF_OPERAND, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): New.
1500         * tree-ssa-opfinalize.h: New.  Function templates for expansion.
1501         (FINALIZE_ALLOC): Expands into alloc_def, alloc_use, alloc_maydef,
1502         alloc_vuse, and alloc_mustdef.
1503         (FINALIZE_FUNC): Expands into finalize_ssa_def_ops, 
1504         finalize_ssa_use_ops, finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
1505         and finalize_ssa_v_must_def_ops.
1506         * tree-ssa-pre.c (add_to_sets): Pass tree to vn_add.
1507         (create_value_expr_from): Use stmt not vuse_optype as a parameter. Pass
1508         stmt around.
1509         (compute_avail): Use generic iterator interface.
1510         * tree-ssa-propagate.c (first_vdef): Use generic operand interface.
1511         (stmt_makes_single_load, stmt_makes_single_store): Use 
1512         ZERO_SSA_OPERANDS.
1513         * tree-ssa-sink.c (is_hidden_global_store): Use ZERO_SSA_OPERANDS.
1514         (statement_sink_location): Use generic interface.
1515         * tree-ssa.c (verify_ssa):  Use %p in fprintf.  Use generic interface.
1516         (delete_tree_ssa): Don't call release_defs.  Call release_ssa_name and
1517         reset the immediate use link nodes.
1518         (stmt_references_memory_p): Use ZERO_SSA_OPERANDS.
1519         * tree-ssanames.c (make_ssa_name): Use use_operand_p.
1520         * tree-tailcall.c (find_tail_calls): Use ZERO_SSA_OPERANDS.
1521         (eliminate_tail_call): Use generic operand interface.
1522         * tree-vect-analyze.c (vect_analyze_data_refs): Use ZERO_SSA_OPERANDS.
1523         (vect_mark_relevant, vect_mark_stmts_to_be_vectorized): Use generic 
1524         interface.
1525         * tree-vect-transform.c (update_vuses_to_preheader): Use generic 
1526         interface.
1527         * tree-vectorizer.c (rename_variables_in_bb): Use generic interface.
1528         * tree-vn.c (struct val_expr_pair_d): Cache statment pointer instead of
1529         vuse_optype.
1530         (vn_compute, val_expr_pair_hash, vn_add, vn_lookup, vn_lookup_or_add): 
1531         Use statement pointer instead of vuse_optype.  Use generic interface.
1532         * tree-vrp.c (maybe_add_assert_expr): Use generic interface.
1533         (stmt_interesting_for_vrp, vrp_visit_stmt): Use ZERO_SSA_OPERANDS.
1534         * tree.h (struct ssa_imm_use_d): Renamed to ssa_use_operand_d.
1535         (tree_ssa_name, phi_arg_d): Use ssa_use_operand_d.
1536         * doc/tree-ssa.texi: Update documentation for operand interface.
1537
1538 2005-05-03  Nathan Sidwell  <nathan@codesourcery.com>
1539
1540         * config/darwin.c (machopic_define_symbol): Use gcc_assert or
1541         gcc_unreachable as appropriate.
1542         (machopic_function_base_name, machopic_indirect_data_reference,
1543         machopic_legitimize_pic_address, darwin_non_lazy_pcrel): Likewise.
1544         * config/host-darwin.c (darwin_gt_pch_use_address): Likewise
1545         * config/rs6000/altivec.md (*mov<mode>_internal,
1546         build_vector_mask_for_load): Likewise.
1547         * config/rs6000/darwin.md (movdf_low_si, movdf_low_di,
1548         *call_nonlocal_darwin64, *call_value_nonlocal_darwin64,
1549         *sibcall_symbolic_64, *sibcall_value_symbolic_64): Likewise.
1550         * config/rs6000/predicates.md (easy_fp_constant,
1551         logical_operand): Likewise.
1552         * config/rs6000/rs6000.c (spe_expand_predicate_builtin,
1553         compute_save_world_info, rs6000_emit_prologue,
1554         rs6000_output_mi_thunk): Reword comments to avoid 'abort'.
1555         * config/rs6000/host-darwin.c (segv_handler): Use fancy_abort
1556         directly.
1557
1558 2005-05-03  Uros Bizjak  <uros@kss-loka.si>
1559
1560         PR middle-end/21282
1561         * convert.c (convert_to_integer): Convert ceil and floor in
1562         c99 mode only.
1563
1564 2005-04-29  Geoffrey Keating  <geoffk@apple.com>
1565
1566         PR target/20813
1567         * config/rs6000/rs6000.md (floatsidf2_internal): Merge to create
1568         define_insn_and_split.  Split only when memory operand is
1569         offsettable.  Use adjust_address rather than plus_constant.
1570         (floatunssidf2_internal): Likewise.
1571         (fix_truncdfsi2_internal): Split only when memory operand is
1572         offsettable.  Use adjust_address rather than plus_constant.
1573         (fix_trunctfsi2_internal): Likewise.
1574         (floatsidf2_internal): Likewise.
1575
1576 2005-05-02  Diego Novillo  <dnovillo@redhat.com>
1577
1578         * tree-vrp.c (set_value_range_to_nonnull): Declare inline.
1579         (set_value_range_to_null): Likewise.
1580         (set_value_range_to_varying): New function.  Use it in all
1581         call sites that used to call set_value_range (vr, VR_VARYING, ...).
1582         (extract_range_from_assert): If the integral type has a
1583         super-type, and LIMIT is not within MIN and MAX values of that
1584         type, set the resulting range to VR_VARYING.
1585
1586 2005-05-02  Hans-Peter Nilsson  <hp@bitrange.com>
1587
1588         * config/mmix/mmix.opt: New file.
1589         * config/mmix/mmix.h: Move options-related comments to mmix.opt.
1590         (mmix_cc1_ignored_option): Don't declare.
1591         (TARGET_OPTIONS, TARGET_MASK_LIBFUNCS, TARGET_MASK_ABI_GNU)
1592         (TARGET_MASK_FCMP_EPSILON, TARGET_MASK_ZERO_EXTEND)
1593         (TARGET_MASK_KNUTH_DIVISION, TARGET_MASK_TOPLEVEL_SYMBOLS)
1594         (TARGET_MASK_BRANCH_PREDICT, TARGET_MASK_USE_RETURN_INSN)
1595         (TARGET_MASK_BASE_ADDRESSES, TARGET_LIBFUNC, TARGET_ABI_GNU,
1596         (TARGET_FCMP_EPSILON, TARGET_ZERO_EXTEND, TARGET_KNUTH_DIVISION)
1597         (TARGET_TOPLEVEL_SYMBOLS, TARGET_BRANCH_PREDICT)
1598         (TARGET_BASE_ADDRESSES, TARGET_USE_RETURN_INSN, TARGET_SWITCHES):
1599         Don't define.
1600         (TARGET_DEFAULT): Change TARGET_MASK_... to MASK_...
1601         * config/mmix/mmix.c (mmix_cc1_ignored_option): Remove.
1602         (TARGET_DEFAULT_TARGET_FLAGS): Override default.
1603
1604 2005-05-02  Joseph S. Myers  <joseph@codesourcery.com>
1605
1606         PR c/15698
1607         * c-tree.h (C_DECL_BUILTIN_PROTOTYPE): New.
1608         * c-decl.c (current_function_prototype_built_in,
1609         current_function_prototype_arg_types): New.
1610         (merge_decls): Keep source location of prototype followed by
1611         nonprototype declaration.  Update C_DECL_BUILTIN_PROTOTYPE.
1612         (builtin_function): Set C_DECL_BUILTIN_PROTOTYPE.
1613         (start_function): Always set current_function_prototype_locus,
1614         current_function_prototype_built_in and
1615         current_function_prototype_arg_types.  Check for external
1616         prototype whether or not visible for external function and set
1617         current_function_prototype_arg_types accordingly.
1618         (store_parm_decls_oldstyle): Use
1619         current_function_prototype_arg_types for checking old-style
1620         definition against prototype.  Give warnings only if
1621         current_function_prototype_built_in).
1622
1623 2005-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
1624
1625         * ggc.h (ggc_alloc_zone_pass_stat): New macro.
1626         (ggc_alloc_zone_stat): Don't define.
1627         * ggc-zone.c (ggc_alloc_typed_stat, ggc_alloc_stat): Use
1628         ggc_alloc_zone_pass_stat.
1629         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Likewise.
1630         * tree.c (make_node_stat, copy_node_stat, make_tree_binfo_stat)
1631         (make_tree_vec_stat, tree_cons_stat, build1_stat): Likewise.
1632
1633 2005-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
1634
1635         * calls.c (expand_call): Handle current_function_pretend_args_size
1636         when checking for sibcalls.
1637
1638 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
1639
1640         PR tree-optimization/21294
1641         * tree-vrp.c (vrp_expr_computes_nonzero): New.
1642         (extract_range_from_expr): Call vrp_expr_computes_nonzero.
1643
1644 2005-05-02  Janis Johnson  <janis187@us.ibm.com>
1645
1646         PR 19985
1647         * gcov-io.h: Declare gcov external functions hidden.
1648
1649 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
1650
1651         * tree-ssa-uncprop.c (equiv_hash_elt, remove_equivalence,
1652         record_equiv, tree_ssa_uncprop, uncprop_into_successor_phis):
1653         Use VEC instead of VARRAY.
1654         (equiv_free): New.
1655
1656         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Factor
1657         out common code.
1658
1659 2005-05-02  Paolo Bonzini  <bonzini@gnu.org>
1660
1661         * c-common.c (resolve_overloaded_builtin): Forward to target
1662         hook for BUILT_IN_MD built-ins.
1663         * c-typeck.c (finish_call_expr): Call resolve_overloaded_builtin
1664         for all types of built-in.
1665         * target-def.h (TARGET_RESOLVE_OVERLOADED_BUILTIN): New.  Use it
1666         in the definition of the target hooks struct.
1667         * target.h (struct gcc_target): Add resolve_overloaded_builtin.
1668         * config/rs6000/altivec.h: Rewritten.
1669         * config/rs6000/rs6000-c.c (struct altivec_builtin_types,
1670         altivec_resolve_overloaded_builtin, altivec_build_resolved_builtin,
1671         rs6000_builtin_type, rs6000_builtin_type_compatible,
1672         altivec_overloaded_builtins, rs6000_builtin_type,
1673         rs6000_builtin_type_compatible): New.
1674         * config/rs6000/rs6000.c (rs6000_builtin_types, rs6000_builtin_decls):
1675         New.
1676         (def_builtin): Turn into a function.  Check for duplicates and store
1677         the builtin into rs6000_builtin_decls.
1678         (bdesc_3arg, bdesc_dst, bdesc_altivec_preds, bdesc_2arg,
1679         bdesc_1arg): Add overloaded builtins.
1680         (altivec_expand_builtin): Check for unresolved overloaded builtins,
1681         do not support ALTIVEC_COMPILETIME_ERROR.
1682         (rs6000_init_builtins): Add opaque 128-bit vector, and internal
1683         nodes to represent front-end types.
1684         (altivec_init_builtins, rs6000_common_init_builtins): Create builtins
1685         with opaque arguments and/or return values.
1686         * config/rs6000/rs6000.h (enum rs6000_builtins): Remove
1687         ALTIVEC_COMPILETIME_ERROR and add Altivec overloaded builtins.
1688         (rs6000_builtin_type_index): New.
1689         (is_ev64_opaque_type): Rename to...
1690         (rs6000_is_opaque_type): ... this.
1691         (rs6000_cpu_cpp_builtins): Install the resolve_overloaded_builtin
1692         target hook.
1693
1694 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
1695
1696         * function.c (reorder_blocks, reorder_blocks_1): Use VEC
1697         instead of VARRAY.
1698
1699 2005-05-02  Nathan Sidwell  <nathan@codesourcery.com>
1700             Bernd Schmidt  <bernd.schmidt@analog.com>
1701
1702         * config/bfin/bfin.c (emit_link_insn, effective_address_32bit_p,
1703         print_address_operand, print_operand, legitimize_pic_address,
1704         asm_conditional_branch, bfin_gen_compare, output_push_multiple,
1705         output_pop_multiple): Use gcc_assert or gcc_unreachable as
1706         appropriate.
1707         * config/bfin/bfin.md (movsf splitter, beq, bne): Likewise.
1708
1709 2005-05-02  Dorit Naishlos  <dorit@il.ibm.com>
1710
1711         * doc/passes.texi: Document vectorization pass.
1712
1713 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
1714
1715         * tree-scalar-evolution.c (get_exit_conditions_rec,
1716         select_loops_exit_conditions,
1717         number_of_iterations_for_all_loops,
1718         analyze_scalar_evolution_for_all_loop_phi_nodes,
1719         scev_analysis): Use VEC instead of VARRAY.
1720
1721 2005-05-02  Michael Matz  <matz@suse.de>
1722
1723         PR c++/19542
1724         * c-common.c (c_common_nodes_and_builtins): Create global null_node.
1725         (warn_strict_null_sentinel): Define.
1726         (check_function_sentinel): Check for null_node as valid sentinel too.
1727         * c-common.h (c_tree_index): Added CTI_NULL.
1728         (null_node) Define global_tree[CTI_NULL].
1729         (warn_strict_null_sentinel): Declare.
1730         * c-opts.c: (c_common_handle_option): Handle -Wstrict-null-sentinel.
1731         * c.opt: (Wstrict-null-sentinel): New C++ option.
1732         * doc/invoke.texi (C++ Options): Document -Wstrict-null-sentinel.
1733
1734 2005-05-01  Kazu Hirata  <kazu@cs.umass.edu>
1735
1736         * gimplify.c (gimplify_compound_lval): Use VEC instead of
1737         VARRAY.
1738
1739         * global.c (calculate_reg_pav): Use VEC instead of VARRAY.
1740
1741         * dwarf2out.c (decl_scope_table, push_decl_scope,
1742         pop_decl_scope, scope_die_for, dwarf2out_init): Use VEC
1743         instead of VARRAY.
1744
1745 2005-05-01  Mark Mitchell  <mark@codesourcery.com>
1746
1747         PR C++/14391
1748         * c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1
1749         if !flag_weak.
1750         * doc/cpp.texi (__DEPRECATED): Document.
1751         (__EXCEPTIONS): Likewise.
1752         (__GXX_WEAK__): Likewise.
1753
1754         * function.c (INVOKE__main): Do not define.
1755         (expand_main_function): Check HAS_INIT_SECTION when determining
1756         whether or not to call __main.
1757
1758 2005-05-01  Kazu Hirata  <kazu@cs.umass.edu>
1759
1760         * tree-ssa-loop-ivopts.c: Fix a comment typo.
1761
1762 2005-01-05  Paul Brook  <paul@codesourcery.com>
1763
1764         * config/arm/arm.h (ARM_EMIT_TRAMPOLINE_CACHE_CLEAR): Define.
1765         (INITIALIZE_TRAMPOLINE): Use it.
1766         * config/arm/linux-gas.h (INITIALIZE_TRAMPOLINE): Remove.
1767         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Remove.
1768         * config/arm/netbsd-elf.h (INITIALIZE_TRAMPOLINE): Remove.
1769
1770 2005-05-01  Gerald Pfeifer  <gerald@pfeifer.com>
1771
1772         * doc/install.texi (Specific): Omit dots in the @anchors names
1773         for i?86-*-sco3.2v5*, i?86-*-solaris2.10, and sparc-sun-solaris2.7.
1774         Omit underscores for x86_64-*-* and the "all ELF targets" entry.
1775
1776 2005-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
1777
1778         PR tree-optimization/18316
1779         PR tree-optimization/19126
1780         * tree.c (build_int_cst_type): Avoid shift by size of type.
1781         * tree-scalar-evolution.c (simple_iv): Add allow_nonconstant_step
1782         argument.
1783         * tree-scalar-evolution.h (simple_iv): Declaration changed.
1784         * tree-ssa-loop-ivopts.c (struct iv_cand): Add depends_on
1785         field.
1786         (dump_cand): Dump depends_on information.
1787         (determine_biv_step): Add argument to simple_iv call.
1788         (contains_abnormal_ssa_name_p): Handle case expr == NULL.
1789         (find_bivs, find_givs_in_stmt_scev): Do not require step to be a
1790         constant.
1791         (add_candidate_1): Record depends_on for candidates.
1792         (tree_int_cst_sign_bit, constant_multiple_of): New functions.
1793         (get_computation_at, get_computation_cost_at, may_eliminate_iv):
1794         Handle ivs with nonconstant step.
1795         (iv_ca_set_remove_invariants, iv_ca_set_add_invariants): New functions.
1796         (iv_ca_set_no_cp, iv_ca_set_cp): Handle cand->depends_on.
1797         (create_new_iv): Unshare the step before passing it to create_iv.
1798         (free_loop_data): Free cand->depends_on.
1799         (build_addr_strip_iref): New function.
1800         (find_interesting_uses_address): Use build_addr_strip_iref.
1801         (strip_offset_1): Split the recursive part from strip_offset.
1802         Strip constant offset component_refs and array_refs.
1803         (strip_offset): Split the recursive part to strip_offset_1.
1804         (add_address_candidates): Removed.
1805         (add_derived_ivs_candidates): Do not use add_address_candidates.
1806         (add_iv_value_candidates): Add candidates with stripped constant
1807         offset.  Consider all candidates with initial value 0 important.
1808         (struct affine_tree_combination): New.
1809         (aff_combination_const, aff_combination_elt, aff_combination_scale,
1810         aff_combination_add_elt, aff_combination_add,
1811         tree_to_aff_combination, add_elt_to_tree, aff_combination_to_tree,
1812         fold_affine_sum): New functions.
1813         (get_computation_at): Use fold_affine_sum.
1814         * tree-ssa-loop-manip.c (create_iv): Handle ivs with nonconstant step.
1815         * tree-ssa-loop-niter.c (number_of_iterations_exit): Add argument
1816         to simple_iv call.
1817
1818 2005-04-30  Michael Matz  <matz@suse.de>
1819
1820         * config/i386/i386.md (movmemsi): Also active when
1821         TARGET_INLINE_ALL_STRINGOPS.
1822
1823 2005-04-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
1824
1825         PR bootstrap/20633
1826         * config/freebsd-spec.h (FBSD_CPP_SPEC): Add %(cpp_arch).
1827
1828 2005-04-30  Paul Brook  <paul@codesourcery.com>
1829
1830         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Always use .thumb_set in
1831         thumb mode.
1832         * config/arm/ieee754-df.S: Use __INTERWORKING_STUBS__.
1833         * config/arm/ieee754-sf.S: Ditto.
1834         * config/arm/lib1funcs.asm: Define and use __INTERWORKING_STUBS__.
1835         (FUNC_ALIAS): Use .thumb_set for thumb routines.
1836
1837 2005-04-30  Kazu Hirata  <kazu@cs.umass.edu>
1838
1839         * tree-ssanames.c: Fix a comment typo.
1840         * doc/options.texi: Fix a typo.
1841
1842 2005-04-30  Nathan Sidwell  <nathan@codesourcery.com>
1843
1844         * config/h8300/h8300.c (byte_reg): Use gcc_assert and
1845         gcc_unreachable as appropriate.
1846         (split_adds_subs, cond_string, print_operand,
1847         h8300_initial_elimination_offset, h8300_classify_operand,
1848         h8300_unary_length, h8300_short_immediate_length,
1849         h8300_bitfield_length, h8300_binary_length,
1850         h8300_insn_length_from_table, compute_mov_length, output_plussi,
1851         compute_plussi_length, compute_plussi_cc, output_logical_op,
1852         compute_logical_op_length, compute_logical_op_cc,
1853         output_h8sx_shift, get_shift_alg, h8300_shift_needs_scratch_p,
1854         output_a_shift, compute_a_shift_length, compute_a_shift_cc,
1855         output_a_rotate, compute_a_rotate_length, fix_bit_operand,
1856         h8300_regs_ok_for_stm): Likewise.
1857         * config/h8300/h8300.md (*movsi_h8300, *movsf_h8300,
1858         monitor_prologue): Likewise.
1859
1860 2005-04-30  Kazu Hirata  <kazu@cs.umass.edu>
1861
1862         * loop-invariant.c (invariants, create_new_invariant,
1863         get_inv_cost, best_gain_for_invariant,
1864         find_invariants_to_move, move_invariants,
1865         init_inv_motion_data, free_inv_motion_data): Use VEC instead
1866         of VARRAY.
1867
1868 2005-04-29  Richard Henderson  <rth@redhat.com>
1869
1870         * function.c (instantiate_decls): Remove valid_only argument.
1871         (instantiate_decls_1, instantiate_decl): Likewise.
1872         (instantiate_virtual_regs_1): Delete.
1873         (instantiate_virtual_regs_lossage): Delete.
1874         (instantiate_virtual_regs_in_rtx): New.
1875         (safe_insn_predicate): New.
1876         (instantiate_virtual_regs_in_insn): New.
1877         (instantiate_virtual_regs): Update to match all that.  Only run
1878         instantiate_decls once.
1879
1880 2005-04-29  Richard Henderson  <rth@redhat.com>
1881             Daniel Jacobowitz  <dan@codesourcery.com>
1882
1883         * gengtype.c (write_func_for_structure): Split out ...
1884         (output_type_enum): ... new function.  Fix thinko accessing
1885         TYPE_PARAM_STRUCT data.
1886
1887 2005-04-29  Tom Tromey  <tromey@redhat.com>
1888
1889         * tree.c (build_block): Removed unused 'tags' argument.
1890         * tree.h (build_block): Removed argument.
1891
1892 2005-04-29  Michael Matz  <matz@suse.de>
1893
1894         PR rtl-optimization/21144
1895         * postreload.c (reload_cse_move2add): Check for VOIDmode.
1896
1897 2005-04-29  Bob Wilson  <bob.wilson@acm.org>
1898
1899         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Define to disable
1900         flag_reorder_blocks.
1901
1902 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
1903
1904         PR tree-optimization/21030
1905         * tree-vrp.c (adjust_range_with_scev): Do not create invalid
1906         ranges where VR->MAX is smaller than VR->MIN.
1907
1908 2005-04-29  Devang Patel  <dpatel@apple.com>
1909
1910         PR tree-optimization/21272
1911         PR tree-optimization/21266
1912         * tree-if-conv.c (find_phi_replacement_condition): Fix think-o.
1913         
1914 2005-04-29  Kazu Hirata  <kazu@cs.umass.edu>
1915
1916         * tree-flow-inline.h: Fix a comment typo.
1917         * doc/tree-ssa.texi: Fix a typo.
1918
1919         * tree-flow-inline.h, tree-ssa-operands.c: Fix comment typos.
1920
1921 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
1922
1923         * config/fr30/fr30.c (fr30_expand_prologue): Use gcc_assert and
1924         gcc_unreachable as appropriate.
1925         (fr30_expand_epilogue, fr30_setup_incoming_varargs,
1926         fr30_print_operand, fr30_move_double): Likewise.
1927         * config/fr30/fr30.md (*movsi_internal, *movsf_internal): Likewise.
1928
1929 2005-04-29  Mark Mitchell  <mark@codesourcery.com>
1930
1931         * config/arm/arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a
1932         definition has already been provided.
1933         (ARM_EABI_DTORS_SECTION_OP): Likewise.
1934         * config/arm/symbian.h (ARM_EABI_CTORS_SECTION_OP): Define.
1935         (ARM_EABI_DTORS_SECTION_OP): Likewise.
1936
1937 2005-04-29  Jim Tison  <jtison@us.ibm.com>
1938
1939         * config/s390/s390.md ("prologue_tpf", "epilogue_tpf"): Alter
1940         trace hooks calls to improve performance.
1941
1942 2005-04-29  Julian Brown  <julian@codesourcery.com>
1943             Mark Mitchell  <mark@codesourcery.com>
1944             Paul Brook  <paul@codesourcery.com>
1945
1946         * crtstuff.c: Handle targets that use .init_array.
1947         * function.c (HAS_INIT_SECTION): Do not define. Instead, make sure
1948         that INVOKE__main is set correctly.
1949         (expand_main_function): Test INVOKE__main.
1950         * libgcc2.c: Do not define __main when using .init_array.
1951         * config/arm/arm.c (arm_elf_asm_constructor): New function.
1952         * config/arm/arm.h (CTORS_SECTION_ASM_OP): Define, with specialized
1953         libgcc version.
1954         (DTORS_SECTION_ASM_OP): Likewise.
1955         (CTOR_LIST_BEGIN): Define specially when in libgcc.
1956         (CTOR_LIST_END): Likewise.
1957         (DTOR_LIST_BEGIN): Likewise.
1958         (DTOR_LIST_END): Likewise.
1959         * config/arm/bpapi.h (INIT_SECTION_ASM_OP): Do not define it.
1960         (FINI_SECTION_ASM_OP): Likewise.
1961         (INIT_ARRAY_SECTION_ASM_OP): Define.
1962         (FINI_ARRAY_SECTION_ASM_OP): Likewise.
1963         * config/arm/elf.h (TARGET_ASM_CONSTRUCTOR): Define.
1964         (SUPPORTS_INIT_PRIORITY): Evaluate to false for EABI based targets.
1965         * doc/tm.texi (INIT_ARRAY_SECTION_ASM_OP): Document.
1966         (FINI_ARRAY_SECTION_ASM_OP): Likewise.  
1967
1968 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
1969
1970         * config/m68k/m68k.c (m68k_initial_elimination_offset): Use
1971         gcc_assert and gcc_unreachable as appropriate.
1972         (output_dbcc_and_branch, output_scc_di, legitimize_pic_address,
1973         const_int_cost, output_move_const_into_data_reg,
1974         output_move_qimode, output_move_double, find_addr_reg,
1975         print_operand, print_operand_address): Likewise.
1976         * config/m68k/m68k.md (adddi3, subdi3, negsf2, negdf2, abssf2,
1977         absdf2, sordered, sunordered, suneq, sunge, sungt, sunle, sunlt,
1978         sltgt, bordered, bunordered, buneq, bunge, bungt, bunle, bunlt,
1979         bltgt, *bordered_rev, *bunordered_rev, *buneq_rev, *bunge_rev,
1980         *bunle_rev, *bunlt_rev, *bltgt_rev, negxf2, absxf2,
1981         conditional_trap): Likewise.
1982         * config/m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Remove unreachable code.
1983
1984 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
1985
1986         * config/xtensa/xtensa.c (gen_int_relational): Use gcc_assert and
1987         gcc_unreachable as appropriate.
1988         (gen_conditional_move, xtensa_split_operand_pair,
1989         xtensa_split_operand_pair, xtensa_copy_incoming_a7,
1990         xtensa_copy_incoming_a7, xtensa_copy_incoming_a7,
1991         xtensa_copy_incoming_a7, xtensa_output_literal,
1992         xtensa_output_literal, xtensa_output_literal): Likewise.
1993         * config/xtensa/xtensa.h (INITIAL_ELIMINATION_OFFSET): Likewise.
1994         * config/xtensa/xtensa.md (*btrue, *bfalse, *ubtrue, *ubfalse,
1995         *bittrue, *bitfalse, *masktrue, *maskfalse, movsicc_internal0,
1996         movsicc_internal1, movsfcc_internal0,
1997         movsfcc_internal1): Likewise.
1998
1999 2005-04-28  James E Wilson  <wilson@specifixinc.com>
2000
2001         * config/i386/i386.h (HI_REGISTER_NAMES): Fix typos in comment.
2002         (ADDITIONAL_REGISTER_NAMES): Delete obsolete mmx register entries.
2003
2004 2005-04-28  DJ Delorie  <dj@redhat.com>
2005
2006         * opt-functions.awk (var_set): Emit proper initializer for
2007         non-target bitfields.
2008
2009 2005-04-28  Devang Patel  <dpatel@apple.com>
2010
2011         * dbxout.c (have_used_extensions): Remove.
2012         (dbxout_type_fileds, dbxout_type, dbxout_symbol): Remove use of
2013         have_used_extensions.
2014         
2015 2005-04-28  James E Wilson  <wilson@specifixinc.com>
2016
2017         * doc/install.texi: Update -enable-languages info.  Correct path to
2018         html docs.
2019
2020 2005-04-28  DJ Delorie  <dj@redhat.com>
2021
2022         * optc-gen.awk (END): Make sure no variable is defined more
2023         than once.
2024         * opth-gen.awk (END): Allocate bits on a per-variable basis.
2025         Allow for bitfield variables other than target_flags.
2026         * doc/options.text (Mask): Document that you may specify a
2027         variable other than target_flags.
2028
2029 2005-04-28  Martin Koegler <mkoegler@auto.tuwien.ac.at>
2030
2031         PR rtl-optimization/18877
2032         * reload.c (decompose) <case REG, case SUBREG>: Handle pseudo reg
2033         number in val.start.
2034
2035 2005-04-28  David Edelsohn  <edelsohn@gnu.org>
2036
2037         PR target/20813
2038         * config/rs6000/aix43.h (SUBSUBTARGET_SWITCHES, aix64): Add
2039         MASK_PPC_GFXOPT.
2040         * config/rs6000/aix51.h (SUBSUBTARGET_SWITCHES, aix64): Same.
2041         * config/rs6000/aix52.h (SUBSUBTARGET_SWITCHES, aix64): Same.
2042         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES, 64): Same.
2043
2044 2005-04-28  Richard Earnshaw  <richard.earnshaw@arm.com>
2045
2046         * arm.c (legitimize_pic_address): Fix sense of assertion test for
2047         creating pseudos when the base offset is too large.
2048
2049 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
2050
2051         * global.c (earlyclobber_regclass): Change the type to
2052         VEC(int,heap).
2053         (check_earlyclobber): Update uses of earlyclobber_regclass.
2054         (mark_reg_use_for_earlyclobber): Likewise.
2055         (calculate_local_reg_bb_info): Allocate and free
2056         earlyclobber_regclass using the VEC API.
2057
2058 2005-04-28  Nathan Sidwell  <nathan@codesourcery.com>
2059
2060         * tree-ssa-alias.c (push_fields_onto_fieldstack): Remove bogus
2061         assert.
2062
2063 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
2064
2065         * modulo-sched.c, tree-stdarg.c: Use targetm.foo instead of
2066         (*targetm.foo).
2067
2068         * config.gcc: Obsolete c4x-* and tic4x-*.
2069
2070         * tree.h (edge_def): Remove.
2071
2072         * bt-load.c, cfgexpand.c, dwarf2out.c, emit-rtl.c, expr.c,
2073         function.c, global.c, lcm.c, loop-invariant.c, optabs.c,
2074         reorg.c, resource.c, tree-ssa-loop-ivopts.c, value-prof.c: Use
2075         JUMP_P, LABEL_P, REG_P, MEM_P, NONJUMP_INSN_P, and INSN_P
2076         where appropriate.
2077
2078         * attribs.c, c-pragma.c, caller-save.c, cfghooks.h,
2079         coverage.c, cselib.h, domwalk.c, domwalk.h, errors.c,
2080         errors.h, gcov-dump.c, gcov-io.c, gcov-io.h, gen-protos.c,
2081         genattrtab.h, genextract.c, gthr-win32.h, insn-notes.def,
2082         integrate.c, lambda-mat.c, lambda.h, libgcov.c, local-alloc.c,
2083         machmode.def, mips-tfile.c, params.c, pretty-print.c,
2084         print-rtl.c, protoize.c, regmove.c, sched-vis.c, tree-chrec.h,
2085         tree-data-ref.h, vec.h, config/darwin-c.c, config/sol2-c.c,
2086         config/sol2.c, config/arm/arm-cores.def, config/arm/cirrus.md,
2087         config/arm/symbian.h, config/c4x/c4x.c, config/c4x/c4x.h,
2088         config/i386/cygming.h, config/i386/djgpp.h,
2089         config/i386/lynx.h, config/i386/netware.c,
2090         config/i386/winnt.c, config/ia64/ia64-c.c,
2091         config/iq2000/iq2000.c, config/m32r/little.h,
2092         config/m68k/m68k-protos.h, config/m68k/m68k.h,
2093         config/m68k/m68k.md, config/mcore/mcore.c,
2094         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.md,
2095         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
2096         config/mn10300/mn10300.h, config/ns32k/netbsd.h,
2097         config/ns32k/ns32k.c, config/ns32k/ns32k.h,
2098         config/pa/pa-hpux11.h, config/pdp11/pdp11.c,
2099         config/pdp11/pdp11.h, config/rs6000/darwin.h,
2100         config/rs6000/default64.h, config/rs6000/rs6000-c.c,
2101         config/s390/2064.md, config/s390/2084.md,
2102         config/s390/s390-modes.def, config/s390/s390-protos.h,
2103         config/s390/tpf.h, config/sh/sh.h, config/sh/symbian.c,
2104         config/stormy16/stormy16.c, config/vax/vax-protos.h,
2105         config/vax/vax.c, config/vax/vax.h,
2106         config/xtensa/lib1funcs.asm, config/xtensa/xtensa.md: Update
2107         copyright.
2108
2109 2005-04-28  Joseph S. Myers  <joseph@codesourcery.com>
2110
2111         * c-typeck.c (build_compound_expr): Correct logic in last change.
2112
2113 2005-04-27  James E. Wilson  <wilson@specifixinc.com>
2114
2115         * config/ia64/ia64.c (update_set_flags): Delete ppred and pcond
2116         parameters.  Replace conditional move code with assert checking for
2117         ar.lc.  Delete obsolete comments.
2118         (set_src_needs_barrier): Delete cond parameter, and code using it.
2119         (rtx_needs_barrier): Delete initialization of cond.  Fix typo in
2120         assert checking for PR_REGS.  Fix calls to update_set_flags and
2121         set_src_needs_barrier.
2122         (group_barrier_needed): Renamed from group_barrier_needed_p.  Fix all
2123         callers.  Rewrite explanatory comment before the function.
2124         (safe_group_barrier_needed): Renamed from safe_group_barrier_needed_p.
2125         Fix all callers.
2126
2127 2005-04-27  Mike Stump  <mrs@apple.com>
2128
2129         * doc/cpp.texi: gcc now implements universal character names.
2130
2131 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
2132
2133         PR c/21159
2134         * c-typeck.c (build_compound_expr): Don't warn for left-hand side
2135         being a compound expression whose right-hand side is cast to void.
2136
2137 2005-04-27  Caroline Tice  <ctice@apple.com>
2138
2139         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2140         Remove targetm.have_named_sections test.
2141         (fix_edges_for_rarely_executed_code): Likewise.
2142         (insert_section_boundary_note): Likewise.
2143         (reorder_basic_blocks): Check partitioning flag before calling
2144         verify_hot_cold_block_grouping.
2145         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
2146         the function struct rather than global variables.
2147         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
2148         (COLD_END_LABEL): Likewise
2149         (cold_text_section_label): New static global variable.
2150         (cold_end_label): Likewise.
2151         (dwarf2out_switch_text_section): Get hot/cold section labels from
2152         the function struct rather than global variables; test to make sure
2153         cfun is defined.
2154         (output_aranges): Use cold_text_section_label and cold_end_label;
2155         check partitioning flag before putting out delta.
2156         (output_ranges): Remove incorrect code attempting to use
2157         hot/cold labels.
2158         (output_line_info): Get cold section label from function struct; test
2159         to make sure cfun is defined.
2160         (add_location_or_const_value_attribute): Likewise.
2161         (dwarf2out_var_location): Likewise.
2162         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
2163         write out cold_text_section_label if partition flag is set.
2164         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
2165         * function.h (struct function): Add new fields to point to hot/cold
2166         section labels: hot_section_label, cold_section_label,
2167         hot_section_end_label and cold_section_end_label; also add new field
2168         for cold text section name, unlikely_text_section_name.
2169         * opts.c (decode_options): Turn off partitioning flag if
2170         !targetm.have_named_sections.
2171         * output.h (hot_section_label): Remove.
2172         (hot_section_end_label): Remove.
2173         (cold_section_end_label): Remove.
2174         (unlikely_section_label): Remove.
2175         (unlikely_text_section_name): Remove.
2176         * passes.c (rest_of_handle_final):  Remove extra blank line.
2177         * varasm.c (unlikely_section_label): Remove.
2178         (hot_section_label): Remove.
2179         (hot_section_end_label): Remove.
2180         (cold_section_end_label): Remove.
2181         (unlikely_text_section_name):  Remove.
2182         (initialize_cold_section_name): Modify to call
2183         targetm.strip_name_encoding; to store cold section name in current
2184         function struct, if it exists; and to only use the decl_section_name
2185         if flag_named_sections is true.
2186         (unlikely_text_section): Modify to get section name out of current
2187         function struct, if there is one; otherwise build it from
2188         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
2189         (in_unlikely_text_section): Likewise.
2190         (named_section): Modify to get/put cold section name in current function
2191         struct, if there is one.
2192         (function_section):  Change 'bool unlikely' to 'int reloc'; check
2193         targetm.have_named_sections before calling named_section.
2194         (current_function_section): Likewise.
2195         (assemble_start_function): Modify to get/put unlikely_text_section_name
2196         in current function struct; modify to get hot/cold section labels
2197         from function struct; initialize labels using
2198         ASM_GENERATE_INTERNAL_LABEL;
2199         test partitioning flag before writing out hot section label.
2200         (assemble_end_function): Test partitioning flag before writing out
2201         hot/cold section labels.
2202         (default_section_type_flags_1):  Get cold text section name from
2203         function struct if there is one; Set flags correctly for
2204         cold text section if there is not a current function struct.
2205         
2206 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
2207
2208         * tree-ssa-propagate.c (set_rhs): Revert last change.
2209
2210 2005-04-27  Steve Ellcey  <sje@cup.hp.com>
2211
2212         * explow.c (convert_memory_address): Add gcc_assert.
2213
2214 2005-04-27  Mark Mitchell  <mark@codesourcery.com>
2215
2216         * configure.ac: Check for ld --sysroot support.
2217         * gcc.c: Document %R specifier for specs.
2218         (SYSROOT_SPEC): New macro.
2219         (sysroot_spec): New variable.
2220         (static_specs): Add sysroot_spec.
2221         (main): Pass the sysroot spec to the linker if appropriate.
2222         * configure: Regenerated.
2223         * config.in: Likewise.
2224
2225 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
2226
2227         * fold-const.c (fold_binary): Use build_fold_addr_expr
2228         for address calculation and INDIRECT_REF handling.
2229
2230 2005-04-27  Andrew Haley  <aph@redhat.com>
2231
2232         * postreload-gcse.c (hash_scan_set): Remove bogus assertion.
2233
2234 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
2235
2236         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Reserve arm frame
2237         pointer when thumb backtracing is on.
2238
2239         * config/fp-bit.c (abort): Revert change.
2240
2241 2005-04-27  Ian Lance Taylor  <ian@airs.com>
2242
2243         * c-semantics.c (add_stmt): Don't test STATEMENT_CODE_P.
2244
2245 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
2246
2247         * tree-ssa-dce.c: Fix a comment typo.
2248
2249 2005-04-27  David S. Miller  <davem@davemloft.net>
2250
2251         * explow.c (allocate_dynamic_stack_space SETJMP_VIA_SAVE_AREA):
2252         Kill setjmpless_size.  current_function_calls_setjmp is completely
2253         computed when we are called, so just use the optimized size value
2254         instead of using REG_SAVE_AREA notes.
2255         (optimize_save_area_alloca): Delete....
2256         * rtl.h (optimize_save_area_alloca): Likewise...
2257         * passes.c (rest_of_compilation): and don't call it any more.
2258         * reg-notes.def (SAVE_AREA): Delete.
2259         
2260 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
2261
2262         * config/fp-bit.c (abort): Add noreturn attribute.
2263
2264         * config/avr/avr.c (avr_naked_function_p): Use gcc_assert and
2265         gcc_unreachable as appropriate.
2266         (ptrreg_to_str, cond_string, avr_normalize_condition): Likewise.
2267         * config/avr/avr.h (ASM_OUTPUT_REG_PUSH,
2268         ASM_OUTPUT_REG_POP): Likewise.
2269
2270 2005-04-27  Paolo Bonzini  <bonzini@gnu.org>
2271
2272         * tree-complex.c (expand_vector_operations_1): Do not build
2273         VIEW_CONVERT_EXPR's for the lhs.
2274
2275 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
2276
2277         * config/pa/pa.h (PRINT_OPERAND_ADDRESS): Use gcc_assert, remove
2278         unnecessary noncanonical RTL handling.
2279         * config/pa/pa64-linux.h (INITIAL_ELIMINATION_OFFSET): Use
2280         gcc_assert and gcc_unreachable.
2281
2282         * config/arm/arm.h (ARM_PRINT_OPERAND_ADDRESS): Use gcc_assert and
2283         gcc_unreachable as appropriate.
2284         (THUMB_PRINT_OPERAND_ADDRESS): Likewise.
2285         * config/arm/arm.c (arm_override_options, arm_compute_func_type,
2286         use_return_insn, const_ok_for_op, arm_gen_constant,
2287         arm_canonicalize_comparison, legitimize_pic_address,
2288         thumb_find_work_register, arm_load_pic_register, arm_rtx_costs_1,
2289         arm_cirrus_insn_p, cirrus_reorg, minmax_code,
2290         load_multiple_sequence, emit_ldm_seq, store_multiple_sequence,
2291         emit_stm_seq, arm_gen_movmemqi, arm_select_dominance_cc_mode,
2292         arm_select_cc_mode, arm_reload_in_hi, arm_reload_out_hi,
2293         move_minipool_fix_forward_ref, move_minipool_fix_backward_ref,
2294         dump_minipool, create_fix_barrier, push_minipool_fix, arm_reorg,
2295         fp_immediate_constant, fp_const_from_val, vfp_output_fstmx,
2296         output_call, output_mov_long_double_fpa_from_arm,
2297         output_mov_long_double_arm_from_fpa,
2298         output_mov_double_fpa_from_arm, output_mov_double_arm_from_fpa,
2299         output_move_double, arithmetic_instr, shift_op, int_log2,
2300         output_return_instruction, arm_output_function_prologue,
2301         arm_output_epilogue, arm_output_function_epilogue,
2302         emit_multi_reg_push, arm_get_frame_offsets,
2303         arm_compute_initial_elimination_offset, arm_expand_prologue,
2304         arm_print_operand, arm_assemble_integer, get_arm_condition_code,
2305         arm_final_prescan_insn, arm_init_iwmmxt_builtins,
2306         arm_expand_binop_builtin, thumb_pushpop, thumb_far_jump_used_p,
2307         thumb_compute_initial_elimination_offset,
2308         thumb_output_function_prologue, thumb_load_double_from_address,
2309         thumb_output_move_mem_multiple, thumb_reload_out_hi,
2310         arm_emit_vector_const, arm_dbx_register_number): Likewise.
2311         * config/arm/pe.c (arm_mark_dllexport, arm_mark_dllimport): Likewise.
2312         * config/arm/arm.md (thumb_extendhisi2,
2313         *thumb_extendhisi2_insn_v6, *thumb_extendqisi2,
2314         *thumb_extendqisi2_v6, movhi, *thumb_movhi_insn,
2315         thumb_movhi_clobber, movqi, *arm_buneq, *arm_bltgt,
2316         *arm_buneq_reversed, *arm_bltgt_reversed, suneq, sltgt): Likewise.
2317         * config/arm/cirrus.md (*cirrus_arm_movdi,
2318         *cirrus_movdf_hard_insn): Likewise.
2319         * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
2320
2321 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
2322
2323         * tree-flow.h (ssa_names): Change the type to VEC(tree,gc).
2324         (num_ssa_names): Use VEC_length.
2325         (ssa_names): Use VEC_index.
2326         * tree-ssanames.c (ssa_names): Change the type to
2327         VEC(tree,gc).
2328         (init_ssanames, fini_ssa_names, make_ssanames,
2329         release_ssa_name): Update uses of ssa_names.
2330
2331         * dojump.c, emit-rtl.c, expmed.c, expr.c, stmt.c, stor-layout.c:
2332         Use fold_buildN instead of fold (buildN (...)).
2333
2334 2005-04-27  Devang Patel <dpatel@apple.com>
2335
2336         * dbxout.c (dbxout_type): Check use_gnu_debug_info_extensions.
2337
2338 2005-04-27  Matt Thomas <matt@3am-software.com>
2339             Jan-Benedict Glaw <jbglaw@microdata-pos.de>
2340
2341         * config/vax/vax.c (vax_rtx_costs): Whitespace cleanup.
2342         (vax_output_mi_thunk): Ditto.
2343         (vax_notice_cc_update): Ditto.
2344         (INDEX_REGISTER_P): Add trailing \.
2345         (BASE_REGISTER_P): Add trailing \.
2346         (legitimate_address_p): Whitespace cleanup.  Remove trailing \.
2347
2348 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
2349
2350         * tree-ssa-propagate.c (set_rhs): Check operand of
2351         ADDR_EXPR for gimpliness, too.
2352
2353 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
2354
2355         * tree-ssa-pre.c: Fix a comment typo.
2356
2357 2005-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
2358
2359         PR tree-optimization/21171
2360         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not
2361         record address uses if the reference is volatile.
2362
2363 2004-04-27  Paolo Bonzini  <bonzini@gnu.org>
2364
2365         * tree-complex.c (expand_vector_operation): New, extracted from
2366         expand_vector_operations_1.
2367         (tree_vec_extract): Build a NOP_EXPR.
2368         (expand_vec_parallel): Do not care about returning the correct type.
2369         (expand_vector_operations_1): Call expand_vector_operation.
2370         Build the VIEW_CONVERT_EXPR on the left side of MODIFY_EXPRs.
2371
2372         * tree-complex.c (gate_expand_vector_operations): New.
2373         (pass_lower_vector_ssa): Use it.
2374         * tree-optimize.c (init_tree_optimization_passes): Include
2375         pass_lower_vector_ssa.
2376         * tree-vect-transform.c (vect_min_worthwhile_factor): New.
2377         (vectorizable_operation): Use it.
2378         * tree-vectorizer.c (get_vectype_for_scalar_type): Accept
2379         integer modes for the vector type.
2380
2381         * defaults.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
2382         * tree-vect-analyze.c (vect_enhance_data_refs_alignment):
2383         Do not cope with UNITS_PER_SIMD_WORD == 0.
2384         * tree-vectorizer.c (get_vectype_for_scalar_type): Check
2385         if the scalar type is not bigger than UNITS_PER_SIMD_WORD.
2386         (vectorize_loops): Do not check that UNITS_PER_SIMD_WORD > 0.
2387         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
2388         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
2389         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
2390         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
2391
2392         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): Remove.
2393         * config/bfin/bfin.h (UNITS_PER_SIMD_WORD): Remove.
2394         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): Remove.
2395
2396         * doc/tm.texi (UNITS_PER_WORD): Rephrase more accurately.
2397         (UNITS_PER_SIMD_WORD): New.
2398
2399 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
2400
2401         * config/ia64/ia64.c (ia64_encode_addr_area): Use gcc_assert and
2402         gcc_unreachable as appropriate.
2403         (ia64_expand_load_address, ia64_expand_tls_address,
2404         ia64_split_tmode, ia64_split_tmode_move, ia64_expand_compare,
2405         ia64_expand_vecint_compare, ia64_expand_vecint_minmax,
2406         next_scratch_gr_reg, ia64_initial_elimination_offset,
2407         ia64_expand_prologue, ia64_expand_epilogue,
2408         ia64_output_dwarf_dtprel, ia64_print_operand,
2409         ia64_register_move_cost, first_instruction, rws_access_regno,
2410         update_set_flags, rtx_needs_barrier, group_barrier_needed_p,
2411         ia64_sched_init, ia64_variable_issue,
2412         ia64_first_cycle_multipass_dfs_lookahead_guard,
2413         ia64_dfa_new_cycle, issue_nops_and_insn, get_template, bundling,
2414         ia64_st_address_bypass_p, ia64_ld_address_bypass_p, process_set,
2415         process_for_unwind_directive, ia64_hpux_file_end): Likewise.
2416         * config/ia64/ia64.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
2417         * config/ia64/ia64.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
2418         * config/ia64/predicates.md (got_symbolic_operand,
2419         sdata_symbolic_operand): Likewise.
2420         * config/ia64/vect.md (vcondv2sf): Likewise.
2421
2422 2005-04-27  Matt Thomas <matt@3am-software.com>
2423
2424         * config/vax/vax.c (legitimate_constant_address_p): New.  Formerly
2425         CONSTANT_ADDRESS_P in config/vax/vax.h
2426         (legitimate_constant_p): Added.  Formerly CONSTANT_P in vax.h. 
2427         (INDEX_REGISTER_P): New.
2428         (BASE_REGISTER_P): New.
2429         (indirectable_constant_address_p): New.  Adapted from
2430         INDIRECTABLE_CONSTANT_ADDRESS_P in vax.h. Use SYMBOL_REF_LOCAL_P.
2431         (indirectable_address_p): New.  Adapted from
2432         INDIRECTABLE_ADDRESS_P in vax.h.
2433         (nonindexed_address_p): New.  Adapted from
2434         GO_IF_NONINDEXED_ADDRESS in vax.h.
2435         (index_temp_p): New.  Adapted from INDEX_TERM_P in vax.h.
2436         (reg_plus_index_p): New.  Adapted from GO_IF_REG_PLUS_INDEX in vax.h.
2437         (legitimate_address_p): New.  Adapted from
2438         GO_IF_LEGITIMATE_ADDRESS in vax.h.
2439         (vax_mode_dependent_address_p): New.  Adapted from
2440         GO_IF_MODE_DEPENDENT_ADDRESS in vax.h.
2441         * config/vax/vax.h (CONSTANT_ADDRESS_P): Use
2442         legitimate_constant_address_p.
2443         (CONSTANT_P): Use legitimate_constant_p.
2444         (INDIRECTABLE_CONSTANT_ADDRESS_P): Removed.
2445         (INDIRECTABLE_ADDRESS_P): Removed.
2446         (GO_IF_NONINDEXED_ADDRESS): Removed.
2447         (INDEX_TEMP_P): Removed.
2448         (GO_IF_REG_PLUS_INDEX): Removed.
2449         (GO_IF_LEGITIMATE_ADDRESS): Use legitimate_address_p. Two
2450         definitions, depending on whether REG_OK_STRICT is defined.
2451         (GO_IF_MODE_DEPENDENT_ADDRESS): Use vax_mode_dependent_address_p.
2452         Two definitions, depending on whether REG_OK_STRICT is defined.
2453         * config/vax/vax-protos.h (legitimate_constant_address_p): Prototype
2454         added.
2455         (legitimate_constant_p): Prototype added.
2456         (legitimate_address_p): Prototype added.
2457         (vax_mode_dependent_address_p): Prototype added.
2458
2459 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
2460
2461         * tree.h (phi_arg_d): Expand a comment in phi_arg_d.
2462
2463 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
2464
2465         PR c/21213
2466         * c-decl.c (finish_struct): Don't dereference NULL TYPE_FIELDS of
2467         transparent union.
2468
2469 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
2470
2471         PR c/20740
2472         * c-format.c (init_dynamic_asm_fprintf_info): Give errors, not
2473         assertion failures, if __gcc_host_wide_int__ is not properly
2474         defined.
2475         (init_dynamic_diag_info): Give errors, not assertion failures, if
2476         location_t, tree or __gcc_host_wide_int__ are not properly
2477         defined.
2478
2479 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
2480
2481         * tree-ssa-loop-ivopts.c (ivopts_data, decl_rtl_to_reset,
2482         n_iv_uses, iv_use, n_iv_cands, iv_cand,
2483         tree_ssa_iv_optimize_init, record_use, add_candidate_1,
2484         prepare_decl_rtl, free_loop_data,
2485         tree_ssa_iv_optimize_finalize): Use the VEC API instead of
2486         VARRAY.
2487
2488         * tree.h (tree_phi_node): Add a comment about the order of PHI
2489         arguments.
2490
2491 2005-04-26  Paul Brook  <paul@codesourcery.com>
2492
2493         * config/arm/arm.md (thumb_mulsi3): Use two-operand assembly form.
2494
2495 2005-04-26  Nathan Sidwell  <nathan@codesourcery.com>
2496
2497         * config/mips.mips.c (mips_legitimize_tls_address): Use
2498         gcc_unreachable.
2499
2500         * config/mmix/mmix.c (mmix_assemble_integer): Use gcc_assert.
2501         * config/mmix/crti.asm (_init): Reword comment to avoid 'abort'.
2502         * config/mmix/mmix.md (nonlocal_goto_receiver): Likewise.
2503
2504         * config/sparc/sparc.h (enum reg_class): Reword comment to avoid
2505         'abort'.
2506
2507 2005-04-26  Jeff Law  <law@redhat.com>
2508
2509         * tree-flow-inline.h (op_iter_next_must_and_may_def): New.
2510         (op_iter_init_must_and_may_def): Likewise.
2511         (unmodifiable_var_p): Move to a later point in the file.
2512         * tree-ssa-operands.h (FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): New.
2513         * tree-ssa-dse.c (need_imm_uses_for): Remove, no longer needed.
2514         (dse_record_phis): Directly check for virtual operands rather than
2515         using need_imm_uses_for.
2516         (dse_optimize_stmt): Handle V_MUST_DEF operands.  Handle case where
2517         store has multiple V_{MAY,MUST}_DEF operands.
2518
2519 2005-04-26  Andrew MacLeod  <amacleod@redhat.com>
2520
2521         * tree-cfg.c (bsi_replace): Delink immediate uses for the original
2522         stmt.
2523
2524 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
2525
2526         * tree-cfg.c (lv_adjust_loop_header_phi): Speed up moving a
2527         call to find_edge outside a loop to go through a PHI chain.
2528
2529 2004-04-26  Richard Guenther  <rguenth@gcc.gnu.org>
2530
2531         PR tree-optimization/17598
2532         * fold-const.c (fold_binary): Fold comparisons of addresses
2533         of COMPONENT_REFs which reference the same field to
2534         comparisons of the addresses of the base objects.
2535
2536 2005-04-26  Julian Brown  <julian@codesourcery.com>
2537
2538         * config/arm/arm.c (arm_return_in_msb): New function.
2539         (arm_must_pass_in_stack): New function.
2540         (TARGET_RETURN_IN_MSB): Define target hook.
2541         (TARGET_MUST_PASS_IN_STACK): Define target hook.
2542         (arm_function_value): Pad small aggregate return.
2543         (arm_pad_arg_upward): New function.
2544         (arm_pad_reg_upward): New function.
2545         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Include complex values.
2546         (FUNCTION_ARG_PADDING): Define macro.
2547         (BLOCK_REG_PADDING): Define macro.
2548         (PAD_VARARGS_DOWN): Correct padding for AAPCS.
2549         * config/arm/arm-protos.h (arm_pad_arg_upward): Declare function.
2550         (arm_pad_reg_upward): Declare function.
2551
2552 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
2553
2554         * basic-block.h (ei_cond): New.
2555         (FOR_EACH_EDGE): Call ei_cond.
2556
2557         PR tree-optimization/21047
2558         * fold-const.c (fold_binary): Abort on ASSERT_EXPR.
2559         (fold): Don't handle ASSERT_EXPR.
2560
2561 2005-04-25  Roger Sayle  <roger@eyesopen.com>
2562
2563         * sched-deps.c (sched_analyze_1): On STACK_REGS targets, x87, treat
2564         all writes to any stack register as a read/write dependency on
2565         FIRST_STACK_REG.
2566         (sched_analyze_2): Likewise, for reads from any stack register.
2567
2568 2005-04-25  Richard Henderson  <rth@redhat.com>
2569
2570         * final.c (output_addr_const): Revert 2005-04-09 change.
2571
2572 2005-04-25  Mike Stump  <mrs@apple.com>
2573
2574         * config/darwin.c (darwin_encode_section_info): Always set
2575         MACHO_SYMBOL_STATIC for all ! TREE_PUBLIC symbols.
2576
2577 2005-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2578
2579         * collect2.c, gcc.c, gcov-dump.c, gcov.c, gen-protos.c,
2580         gensupport.c, protoize.c, toplev.c: Replace calls to
2581         `unlock_stream' with `unlock_std_streams'.
2582
2583 2005-04-25  Devang Patel <dpatel@apple.com>
2584
2585         * dbxout.c (dbxout_type): Emit attribute vector.
2586         
2587 2005-04-05  Paul Brook  <paul@codesourcery.com>
2588
2589         * target-def.h (TARGET_CXX_USE_AEABI_ATEXIT): Define.
2590         * target.h (struct gcc_target): Add cxx.use_aeabi_atexit.
2591         * config/arm/arm.c (arm_cxx_atexit_name): New function.
2592         (TARGET_CXX_USE_AEABI_ATEXIT): New macro.
2593         * cp/decl.c (get_atexit_node): Reorder arguments for __aeabi_atexit.
2594         (register_dtor_fn): Likewise.
2595         * doc/tm.texi: Document TARGET_CXX_USE_AEABI_ATEXIT.
2596
2597 2005-04-25  Ian Lance Taylor  <ian@airs.com>
2598
2599         * c-common.def (EXPR_STMT): Remove, moved to C++ frontend.
2600         * c-common.h (EXPR_STMT_EXPR): Don't define.
2601         (c_common_stmt_codes): Don't define.
2602         * c-dump.c (c_dump_tree): Remove EXPR_STMT case.
2603         * c-gimplify.c (gimplify_expr_stmt): Remove.
2604         (c_gimplify_expr): Remove EXPR_STMT case.
2605         * c-objc-common.c (c_objc_common_init): Remove stmt_codes and call
2606         to INIT_STATEMENT_CODES.
2607         * c-pretty-print.c (pp_c_statement): Just call dump_generic_node.
2608
2609 2005-04-25  Jan Hubicka  <jh@suse.cz>
2610
2611         * tree-cfg.c (tree_duplicate_bb): Duplicate EH region too.
2612
2613         * except.c: Include diagnostic.h
2614         (dump_eh_tree, verify_eh_tree): New functions.
2615         * except.h (verify_eh_tree, dump_eh_tree, verify_eh_edges): Declare.
2616         * tree-cfg.c (tree_verify_flow_info): verify eh edges.
2617         (dump_function_to_file): dump eh tree.
2618         * tree-eh.c (mark_eh_edge): New function.
2619         (mark_eh_edge_found_error): New static variable.
2620         (verify_eh_edges): New function.
2621
2622 2005-04-25  Nathan Sidwell  <nathan@codesourcery.com>
2623
2624         * tree-ssa-alias.c (fieldoff_t): Remove.
2625         (fieldoff_s): typedef the structure itself.  Create a vector of
2626         objects.
2627         (push_fields_onto_fieldstack): Return count of fields pushed.
2628         Remove peeling of first field.  Adjust.
2629         (fieldoff_compare): Adjust.
2630         (create_overlap_variables_for): Adjust.
2631
2632 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
2633
2634         * doc/invoke.texi (Blackfin Options): Avoid empty @opindex line.
2635
2636 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
2637
2638         PR bootstrap/21215
2639         * doc/install.texi: Document correct assembler and linker to use
2640         on i?86-*-solaris2.10.
2641
2642 2005-04-25  Steven Bosscher  <stevenb@suse.de>
2643
2644         Fix PR tree-optimization/21173
2645
2646         * tree-ssa-pre.c (create_expression_by_pieces): Simplify code.
2647         Unshare expression we pass to force_gimple_operand.
2648
2649 2005-04-25  J"orn Rennecke <joern.rennecke@st.com>
2650             Stephen Clarke <stevec@superh.com>
2651             Roger Sayle <roger@eyesopen.com>
2652
2653         PR rtl-optimization/20413
2654         * cfgrtl.c (redirect_edge_and_branch): Use Pmode instead of
2655         VOIDmode for LABEL_REF.
2656         * final.c (shorten_branches): Likewise.
2657         * jump.c (mark_all_labels, redirect_exp_1): Likewise.
2658         * loop.c (reg_dead_after_loop): Likewise.
2659         * varasm.c (decode_addr_const): Likewise.
2660         * doc/rtl.texi: Document mode requirement for LABEL_REF.
2661
2662 2005-04-25  Ralf Corsepius  <ralf.corsepius@rtems.org>
2663
2664         * config.gcc (avr-*-*): Remove redundant "case".
2665
2666 2005-04-25  Kazu Hirata  <kazu@cs.umass.edu>
2667
2668         * tree-vect-analyze.c (vect_mark_relevant): Take
2669         VEC(tree,heap) instead of varray_type as an argument.
2670         (vect_mark_stmts_to_be_vectorized): Change the type of
2671         worklist to VEC(tree,heap).  Adjust uses of worklist.
2672
2673 2005-04-24  Devang Patel  <dpatel@apple.com>
2674
2675         *  config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
2676         
2677 2005-04-24  Ian Lance Taylor  <ian@airs.com>
2678
2679         * c-semantics.c (build_stmt): Remove test of specific tree codes
2680         for TREE_SIDE_EFFECTS handling.
2681
2682 2005-04-24  Per Bothner  <per@bothner.com>
2683
2684         * c-opts.c (finish_options):  Make the line-number of the <built-in>
2685         location 0, as assumed elsewhere, rather than 1.
2686
2687 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
2688
2689         * tree-ssa-uncprop.c (equiv_stack): Change the type o
2690         VEC(tree,heap).
2691         (tree_ssa_uncprop, uncprop_finalize_block,
2692         uncprop_initialize_block): Update uses of equiv_stack.
2693
2694 2005-04-24  Richard Henderson  <rth@redhat.com>
2695
2696         PR rtl-opt/21163
2697         * simplify-rtx.c (simplify_binary_operation) <IOR>: Check
2698         for SCALAR_INT_MODE_P instead of not MODE_CC before returning
2699         constm1_rtx.
2700         <AND, LSHIFTRT, UMIN>: Use CONST0_RTX.
2701         <UDIV, UMOD>: Use CONST0_RTX and CONST1_RTX.
2702         <DIV, MOD>: Likewise.
2703
2704 2005-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2705
2706         * collect2.c (main): Unlock the stdio streams.
2707         * gcc.c (main): Likewise.
2708         * gcov-dump.c (main): Likewise.
2709         * gcov.c (main): Likewise.
2710         * gen-protos.c (main): Likewise.
2711         * gensupport.c (init_md_reader_args_cb): Likewise.
2712         * protoize.c (main): Likewise.
2713         * toplev.c (general_init): Likewise.
2714
2715 2005-04-24  Jakub Jelinek  <jakub@redhat.com>
2716
2717         PR middle-end/20991
2718         * cgraph.h (cgraph_local_info): Add vtable_method field.
2719         * varasm.c (mark_decl_referenced): If cgraph_global_info_ready
2720         and node is vtable_method, finalized and not reachable, don't do
2721         anything.
2722
2723 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
2724
2725         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Use
2726         COMPARISON_CLASS_P.
2727         * tree-ssa-pre.c (create_value_expr_from): Use
2728         CONSTANT_CLASS_P and REFERENCE_CLASS_P.
2729         * tree-ssa-propagate.c (stmt_makes_single_load,
2730         stmt_makes_single_store): Use REFERENCE_CLASS_P.
2731         * tree-vect-transform.c (vect_is_simple_cond): Use
2732         COMPARISON_CLASS_P.
2733         * tree-vrp.c (extract_range_from_assert,
2734         build_assert_expr_for, fp_predicate, has_assert_expr): Use
2735         COMPARISON_CLASS_P.
2736
2737         * tree-ssa-live.c (build_tree_conflict_graph): Change the type
2738         of tpa_to_clear to VEC(int,heap).  Update uses of
2739         tpa_to_clear.  Free tpa_to_clear at the end.
2740
2741 2005-04-24  Andrew Pinski  <pinskia@physics.uc.edu>
2742
2743         * tree.h (TREE_THIS_VOLATILE): Document the effect on a
2744         function decl.
2745
2746 2005-04-24  Nathan Sidwell  <nathan@codesourcery.com>
2747
2748         * config/rs6000/rs6000.c (rs6000_override_options): Use gcc_assert
2749         and gcc_unreachable as appropriate.
2750         (num_insns_constant, output_vec_const_move,
2751         build_mask64_2_operands, rs6000_output_dwarf_dtprel,
2752         rs6000_emit_set_const, rs6000_emit_move,
2753         spe_build_register_parallel, function_arg,
2754         rs6000_move_block_from_reg, altivec_expand_predicate_builtin,
2755         spe_expand_predicate_builtin, spe_expand_evsel_builtin,
2756         rs6000_expand_builtin, spe_init_builtins, altivec_init_builtins,
2757         rs6000_common_init_builtins, expand_block_clear,
2758         expand_block_move, validate_condition_mode, ccr_bit, extract_MB,
2759         extract_ME, rs6000_get_some_local_dynamic_name,
2760         rs6000_output_function_entry, print_operand,
2761         print_operand_address, rs6000_generate_compare, rs6000_emit_sCOND,
2762         output_cbranch, output_e500_flip_gt_bit,
2763         rs6000_emit_vector_compare, rs6000_emit_vector_compare,
2764         rs6000_emit_cmove, rs6000_emit_minmax, rs6000_split_multireg_move,
2765         compute_save_world_info, rs6000_stack_info,
2766         rs6000_emit_load_toc_table, rs6000_frame_related,
2767         spe_synthesize_frame_save, rs6000_emit_epilogue,
2768         rs6000_output_function_epilogue, rs6000_hash_constant, output_toc,
2769         output_function_profiler, rs6000_trampoline_size,
2770         rs6000_initialize_trampoline, find_addr_reg,
2771         rs6000_machopic_legitimize_pic_address,
2772         rs6000_initial_elimination_offset,
2773         rs6000_dbx_register_number): Likewise.
2774         * config/rs6000/rs6000.md (*fix_truncdfsi2_internal,
2775         *movdf_hardfloat32, *movdf_softfloat32, *fix_trunctfsi2_internal,
2776         *movti_power, *movti_string, call, call_value, sibcall,
2777         sibcall_value): Likewise.
2778         * config/rs6000/spe.md (*movdf_e500_double,
2779         *movv2si_internal): Likewise.
2780         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Remove 'abort'
2781         from comment.
2782
2783 2005-04-24  Richard Henderson  <rth@redhat.com>
2784
2785         PR target/21101
2786         * config/i386/i386.h (CANNOT_CHANGE_MODE_CLASS): Move guts to ...
2787         * config/i386/i386.c (ix86_cannot_change_mode_class): ... here.
2788         Deny modes smaller than 4 bytes.
2789         * config/i386/i386-protos.h: Update.
2790
2791 2005-04-24  Ralf Corsepius  <ralf.corsepius@rtems.org>
2792
2793         * config.gcc (h8300-*-rtems*): Add h8300-*-rtemscoff*.
2794         Switch h8300-*-rtems* to ELF.
2795
2796 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
2797
2798         * vec.h (VEC_safe_grow): Replace grow with safe_grow.
2799
2800 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
2801
2802         * ipa-inline.c, tree-ssa-operands.h: Fix comment typos.
2803
2804 2005-04-23  Richard Guenther  <rguenth@gcc.gnu.org>
2805
2806         PR middle-end/21082
2807         * fold-const.c: Fold &a[i]-&a[j] to i-j.
2808
2809 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
2810
2811         * tree-ssa-loop-niter.c (tree_simplify_using_condition): Expand simple
2812         definitions of ssa names in condition.  Split recusive part to ...
2813         (tree_simplify_using_condition_1): New function.
2814         (expand_simple_operations): New function.
2815
2816 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
2817
2818         * tree-ssa-loop-ivopts.c (struct cost_pair): Add value field.
2819         (find_interesting_uses_cond): Do not use integer_zerop and
2820         integer_nonzerop to check for integer constants.
2821         (set_use_iv_cost): Record the value field.
2822         (determine_use_iv_cost_generic, determine_use_iv_cost_address,
2823         determine_use_iv_cost_outer): Set the value field of the cost pair.
2824         (may_eliminate_iv): Do not return the comparison code.
2825         (iv_elimination_compare): New function.
2826         (determine_use_iv_cost_condition): Set the value field.  Record
2827         noneliminable invariants correctly.
2828         (rewrite_use_compare, rewrite_use_outer): Use the value field.
2829
2830 2005-04-23  DJ Delorie  <dj@redhat.com>
2831
2832         * diagnostic.c (warning): Accept parameter to classify warning option.
2833         (warning0): New, for when a pointer to an error() like function is needed.
2834         * errors.c (warning): Likewise.
2835         * errors.h (warning, warning0): Adjust prototypes.
2836         * toplev.h (warning, warning0): Likewise.
2837
2838         * attribs.c, builtins.c, c-common.c, c-decl.c, c-format.c,
2839         c-gimplify.c, c-lex.c, c-objc-common.c, c-opts.c, c-parser.c,
2840         c-pragma.c, c-typeck.c, calls.c, cgraph.c, coverage.c, emit-rtl.c,
2841         fold-const.c, fortran/trans-decl.c, function.c, gcse.c,
2842         genautomata.c, haifa-sched.c, opts.c, passes.c, regclass.c,
2843         reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
2844         tree-dump.c, tree-inline.c, tree-mudflap.c, tree-optimize.c,
2845         tree-ssa.c, tree.c, varasm.c: Adjust warning() callers.
2846
2847         * config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
2848         config/avr/avr.c, config/bfin/bfin.c, config/c4x/c4x-c.c,
2849         config/c4x/c4x.c, config/cris/cris.c, config/darwin-c.c,
2850         config/darwin.c, config/darwin.h, config/h8300/h8300.c,
2851         config/i386/cygming.h, config/i386/djgpp.h, config/i386/i386.c,
2852         config/i386/winnt.c, config/ia64/ia64-c.c, config/ia64/ia64.c,
2853         config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
2854         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.c,
2855         config/mmix/mmix.c, config/ns32k/ns32k.c, config/pa/pa-hpux11.h,
2856         config/pa/pa.c, config/rs6000/aix43.h, config/rs6000/aix51.h,
2857         config/rs6000/aix52.h, config/rs6000/darwin.h,
2858         config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
2859         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
2860         config/sh/symbian.c, config/sol2-c.c, config/sol2.c,
2861         config/stormy16/stormy16.c, config/v850/v850-c.c,
2862         config/v850/v850.c, config/xtensa/xtensa.c: Adjust warning()
2863         callers.
2864         
2865 2005-04-23  Richard Henderson  <rth@redhat.com>
2866
2867         PR rtl-opt/21102
2868         * simplify-rtx.c (simplify_binary_operation): Fix mode check before
2869         performing some integral scalar simplifications.
2870
2871 2005-04-23  Richard Henderson  <rth@redhat.com>
2872
2873         PR target/21099
2874         * config/i386/i386.c (ix86_split_to_parts): Use proper mode when
2875         simplifying CONST_VECTOR.
2876
2877 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
2878
2879         * tree-ssa-live.c (live_worklist): Take a stack allocated on
2880         heap as an argument.  Update uses of stack.
2881         (calculate_live_on_entry): Allocate stack on heap.
2882
2883         * tree-ssa-live.c (build_tree_conflict_graph): Allocate
2884         partition_link and tpa_nodes on heap.
2885
2886         * tree-ssa-dce.c (worklist): Change to VEC(tree,heap).
2887         (mark_stmt_necessary, propagate_necessity,
2888         mark_really_necessary_kill_operand_phis): Update uses of
2889         worklist.
2890         (tree_dce_init): Allocate worklist using VEC_alloc.
2891         (tree_dce_done): Free worklist using VEC_free.
2892
2893 2005-04-23  Mike Stump  <mrs@apple.com>
2894
2895         * config/darwin.c (machopic_indirection_name): Don't use
2896         quotes needlessly.
2897         (darwin_emit_unwind_label): Use user_label_prefix instead of
2898         "_".
2899
2900 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
2901
2902         * final.c, ipa-inline.c, varasm.c: Fix comment typos.
2903
2904 2005-04-23  Hans-Peter Nilsson  <hp@axis.com>
2905
2906         * config.gcc <cris-*>: Specify .opt files.
2907         * config/cris/cris.opt, config/cris/elf.opt, config/cris/aout.opt,
2908         config/cris/linux.opt: New files.
2909         * config/cris/aout.h (CRIS_SUBTARGET_SWITCHES)
2910         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
2911         (TARGET_ELF): Override to 0.
2912         (CRIS_SUBTARGET_HANDLE_OPTION): Override to handle -melinux and
2913         -melinux-stacksize=N.
2914         * config/cris/cris.c: (cris_handle_option): New function.
2915         (TARGET_DEFAULT_TARGET_FLAGS): Override.
2916         (TARGET_HANDLE_OPTION): Override to cris_handle_option.
2917         (cris_override_options): Use MASK_*, not TARGET_MASK_*.
2918         * config/cris/cris.h (TARGET_MASK_SVINTO, TARGET_SVINTO,
2919         (TARGET_MASK_CCINIT, TARGET_CCINIT, TARGET_MASK_PDEBUG)
2920         (TARGET_PDEBUG, TARGET_MASK_SIDE_EFFECT_PREFIXES)
2921         (TARGET_SIDE_EFFECT_PREFIXES, TARGET_MASK_EXPAND_MUL)
2922         (TARGET_EXPAND_MUL, TARGET_MASK_STACK_ALIGN, TARGET_STACK_ALIGN)
2923         (TARGET_MASK_CONST_ALIGN, TARGET_CONST_ALIGN)
2924         (TARGET_MASK_DATA_ALIGN, TARGET_DATA_ALIGN)
2925         (TARGET_MASK_PROLOGUE_EPILOGUE, TARGET_PROLOGUE_EPILOGUE)
2926         (TARGET_MASK_ETRAX4_ADD, TARGET_ETRAX4_ADD)
2927         (TARGET_MASK_ALIGN_BY_32, TARGET_ALIGN_BY_32, TARGET_MASK_ELF)
2928         (TARGET_ELF, TARGET_MASK_LINUX, TARGET_LINUX)
2929         (TARGET_MASK_AVOID_GOTPLT, TARGET_AVOID_GOTPLT)
2930         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG, TARGET_SWITCHES)
2931         (CRIS_SUBTARGET_SWITCHES, TARGET_OPTIONS)
2932         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
2933         (TARGET_LINUX): Define 0.
2934         (TARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
2935         (CRIS_SUBTARGET_DEFAULT): Define to 0, not TARGET_MASK_ELF.
2936         (CRIS_SUBTARGET_DEFAULT): New empty default macro.
2937         * config/cris/linux.h (CRIS_SUBTARGET_SWITCHES): Don't define.
2938         (TARGET_LINUX): Override to 1.
2939         (CRIS_SUBTARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
2940
2941 2005-04-23  Nathan Sidwell  <nathan@codesourcery.com>
2942
2943         * haifa-sched.c (schedule_block): Fix thinko in previous
2944         assertification patch.
2945
2946 2005-04-23  Richard Sandiford  <rsandifo@redhat.com>
2947
2948         * config.gcc (hppa[12]*-*-hpux10*): Add pa/pa-hpux.opt to
2949         $extra_options.  Also add pa/pa-hpux1010.opt for hpux10.[1-9]*.
2950         (hppa*64*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
2951         pa/pa-hpux.opt, pa/pa-hpux1010.opt and pa/pa64-hpux.opt to
2952         $extra_options.  Also add pa/pa-hpux1111.opt for hpux11.[1-9]*.
2953         (hppa[12]*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
2954         pa/pa-hpux.opt to $extra_options.  Also add pa/pa-hpux1111.opt
2955         for hpux11.[1-9]*.
2956         * config/pa/pa.h (architecture_type, rtx_def, pa_arch_string, pa_arch)
2957         (pa_fixed_range_string, pa_cpu_string, pa_unix_string, target_flags)
2958         (MASK_PA_11, MASK_DISABLE_FPREGS, TARGET_DISABLE_FPREGS)
2959         (MASK_NO_SPACE_REGS, TARGET_NO_SPACE_REGS, MASK_JUMP_IN_DELAY)
2960         (TARGET_JUMP_IN_DELAY, MASK_DISABLE_INDEXING, TARGET_DISABLE_INDEXING)
2961         (MASK_PORTABLE_RUNTIME, TARGET_PORTABLE_RUNTIME, MASK_GAS, TARGET_GAS)
2962         (MASK_SOFT_FLOAT, TARGET_SOFT_FLOAT, MASK_LONG_LOAD_STORE)
2963         (TARGET_LONG_LOAD_STORE, MASK_FAST_INDIRECT_CALLS)
2964         (TARGET_FAST_INDIRECT_CALLS, MASK_BIG_SWITCH, TARGET_BIG_SWITCH)
2965         (MASK_PA_20, MASK_SIO, TARGET_SIO, MASK_GNU_LD, TARGET_GNU_LD)
2966         (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_PA_11, TARGET_PA_20)
2967         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS)
2968         (SUBTARGET_OPTIONS): Delete.
2969         (TARGET_PA_10): Redefine in terms of TARGET_PA_11 and TARGET_PA_20.
2970         (TARGET_SCHED_DEFAULT): Define to a PROCESSOR_* enum (PROCESSOR_8000)
2971         instead of a string.
2972         * config/pa/pa.c (pa_arch, pa_arch_string, pa_fixed_range_string)
2973         (pa_cpu_string, pa_unix_string): Delete.
2974         (pa_cpu): Initialize to TARGET_SCHED_DEFAULT.
2975         (flag_pa_unix): Initialize based on TARGET_HPUX_11_11 and
2976         TARGET_HPUX_10_10.
2977         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2978         (pa_handle_option): New function.
2979         (override_options): Remove handling of -march=, -mfixed-range=,
2980         -mschedule= and -munix=.
2981         * config/pa/pa-hpux.h (SUBTARGET_SWITCHES): Delete.
2982         * config/pa/pa-hpux1010.h (SUBTARGET_OPTIONS): Delete.
2983         * config/pa/pa-hpux10.h (SUBTARGET_OPTIONS): Delete.
2984         * config/pa/pa-hpux1111.h (SUBTARGET_OPTIONS): Delete.
2985         * config/pa/pa-hpux11.h (SUBTARGET_OPTIONS): Delete.
2986         * config/pa/pa64-hpux.h (SUBTARGET_SWITCHES): Delete.
2987         * config/pa/pa64-start.h (TARGET_PA_11, TARGET_PA_20): #undef before
2988         redefining.
2989         * config/pa/pa.opt: New file.
2990         * config/pa/pa-hpux.opt: New file.
2991         * config/pa/pa-hpux1010.opt: New file.
2992         * config/pa/pa-hpux1111.opt: New file.
2993         * config/pa/pa64-hpux.opt: New file.
2994
2995 2005-04-22  David S. Miller  <davem@davemloft.net>
2996
2997         * rtl.h (CONST_DOUBLE): Fix comment, a CONST_DOUBLE holds an
2998         integer when it's mode is VOIDmode not DImode.
2999
3000 2005-04-22  Geoffrey Keating  <geoffk@apple.com>
3001
3002         * config/rs6000/rs6000.md (sync_add<mode>_internal,
3003         sync_addshort_internal, sync_sub<mode>_internal, sync_andsi_internal,
3004         sync_anddi_internal, sync_boolsi_internal, sync_booldi_internal,
3005         sync_boolc<mode>_internal, sync_boolc<mode>_internal2,
3006         sync_boolcc<mode>_internal, sync_lock_test_and_set<mode>): Use
3007         "bne- $-xxx" rather than local labels.
3008         (sync_lock_release<mode>): Add second operand.
3009         (lwsync): Use .long rather than a more meaningful opcode.
3010         * doc/md.texi (Standard Names): Add description of second
3011         parameter to sync_lock_test_and_set.
3012
3013 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
3014
3015         PR tree-optimization/21088
3016         * fold-const.c (fold_unary, fold_binary, fold_ternary):
3017         Export.
3018         * tree-vrp.c (compare_values): Use fold_binary to compare
3019         pointers.  Use boolean_type_node as the type of a comparison
3020         expression being folded.
3021         * tree.h: Add prototypes for fold_unary, fold_binary,
3022         fold_ternary.
3023
3024         * tree-ssa-dom.c: Fix formatting.
3025
3026 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
3027
3028         * Makefile.in (tree-into-ssa.o): Add dependency on PARAMS_H.
3029         * lambda-code.c (perfect_nestify): Mark virtual operands in
3030         the moved statement for renaming.
3031         * params.def (PARAM_MIN_VIRTUAL_MAPPINGS): Define.
3032         (PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
3033         * params.h (MIN_VIRTUAL_MAPPINGS): Define.
3034         (VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
3035         * tree-flow.h (struct var_ann_d): Update comments.
3036         (rewrite_to_new_ssa_names_bb, rewrite_to_new_ssa_names,
3037         allocate_ssa_names, find_phi_node_for, dump_tree_ssa,
3038         debug_tree_ssa, debug_def_blocks, dump_tree_ssa_stats,
3039         debug_tree_ssa_stats, rewrite_ssa_into_ssa,
3040         dump_repl_tbl, debug_repl_tbl, dump_names_replaced_by,
3041         debug_names_replaced_by): Remove declarations.
3042         (delete_update_ssa, get_current_def, set_current_def): Declare.
3043         (rewrite_into_loop_closed_ssa): Add new argument.  Update
3044         all callers.
3045         * tree-into-ssa.c: Include params.h.
3046         (old_virtual_ssa_names): Remove.  Update all users.
3047         (need_to_replace_names_p): Remove.  Update all users.
3048         (struct update_ssa_stats_d): Declare.
3049         (update_ssa_stats): New local.
3050         (dump_tree_ssa, debug_tree_ssa, debug_def_blocks,
3051         dump_tree_ssa_stats, debug_tree_ssa_stats,
3052         dump_update_ssa, debug_update_ssa,
3053         dump_names_replaced_by, debug_names_replaced_by): Declare.
3054         (get_current_def, set current_def): Make extern.
3055         (is_old_name, is_new_name): Protect against references
3056         past the end of the sets.
3057         (add_new_name_mapping): Assert that OLD and NEW are
3058         different SSA names for the same symbol.
3059         When adding a virtual mapping, update stats for virtual
3060         mapping heuristic.
3061         (insert_phi_nodes_for): If UPDATE_P is true, create the
3062         LHS of the new PHI by duplicating SSA name VAR.
3063         (insert_phi_nodes_1): Remove.  Update all users.
3064         (insert_phi_nodes): Remove second argument.  Update all
3065         users.
3066         (maybe_replace_use, maybe_replace_def): New.
3067         (rewrite_update_stmt): Call them.
3068         (mark_def_interesting): Remove calls to is_gimple_reg.
3069         (prepare_phi_args_for_update): Remove.  Update all users.
3070         (prepare_block_for_update): Only process virtual operands
3071         and GIMPLE registers in normal form.
3072         (prepare_use_sites_for): New.
3073         (prepare_names_to_update): Rename from prepare_def_sites.
3074         Call prepare_use_sites_for.
3075         (dump_update_ssa): Rename from dump_repl_tbl.
3076         Update all users.
3077         Show statistics for virtual mapping heuristic.
3078         (debug_update_ssa): Rename from debug_debug_repl_tbl.
3079         (init_update_ssa): Initialize UPDATE_SSA_STATS.
3080         (delete_update_ssa): Make extern.
3081         (mark_set_for_renaming): If the set is empty, do nothing.
3082         (release_ssa_name_after_update_ssa): Update comment.
3083         (insert_updated_phi_nodes_for): Do not remove existing
3084         PHI nodes for symbols.
3085         (switch_virtuals_to_full_rewrite_p): New.
3086         (switch_virtuals_to_full_rewrite): New.
3087         (update_ssa): Call them.
3088         Clear REWRITE_THIS_STMT and REGISTER_DEFS_IN_THIS_STMT
3089         for every statement before updating.
3090         If all the names in NEW_SSA_NAMES have been marked for
3091         removal, do nothing.
3092         Only start at the top of the CFG if there are symbols in
3093         SYMS_TO_RENAME.
3094         (ssa_rewrite_finalize_block): Remove.
3095         (ssa_register_new_def): Remove.
3096         (ssa_rewrite_stmt): Remove.
3097         (ssa_rewrite_phi_arguments): Remove.
3098         (ssa_rewrite_initialize_block): Remove.
3099         (ssa_mark_def_sites): Remove.
3100         (ssa_mark_def_sites_initialize_block): Remove.
3101         (ssa_mark_phi_uses): Remove.
3102         (rewrite_ssa_into_ssa): Remove.
3103         * tree-phinodes.c (find_phi_node_for): Remove.
3104         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
3105         Call update_ssa.
3106         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops):
3107         Remove calls to verify_dominators and
3108         verify_loop_structure.
3109         (tree_unswitch_single_loop): Call update_ssa.
3110         * tree-ssa.c (verify_ssa): Assert that need_ssa_update_p
3111         returns false.
3112         Call verify_stmts.
3113         (delete_tree_ssa): Assert that need_ssa_update_p returns
3114         false.
3115         * tree-vect-transform.c (vect_transform_loop): Call update_ssa.
3116         * tree-vectorizer.c (allocate_new_names, rename_def_op,
3117         free_new_names): Remove.  Update all users.
3118         (rename_use_op): Call get_current_def.
3119         (rename_variables_in_bb): Do not handle any real or
3120         virtual definition.
3121         (slpeel_update_phis_for_duplicate_loop): Call
3122         get_current_def and set_current_def instead of using
3123         SSA_NAME_AUX.
3124         (slpeel_update_phi_nodes_for_guard2): Reformat comments.
3125         (slpeel_can_duplicate_loop_p): Call need_ssa_update_p,
3126         ssa_names_to_replace and delete_update_ssa.
3127         * doc/invoke.texi: Document --param min-virtual-mappings
3128         and --param virtual-mappings-ratio.
3129
3130 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
3131
3132         * tree-cfg.c (tree_duplicate_bb): Call create_new_def_for
3133         for newly created PHI nodes.
3134         Call create_new_def_for for every new V_MAY_DEF and
3135         V_MUST_DEF on the copied statement.
3136         (struct ssa_name_map_entry): Remove.
3137         (ssa_name_map_entry_hash): Remove.
3138         (ssa_name_map_entry_eq): Remove.
3139         (allocate_ssa_names): Remove.
3140         (rewrite_to_new_ssa_names_def): Remove.
3141         (rewrite_to_new_ssa_names_use): Remove.
3142         (rewrite_to_new_ssa_names_bb): Remove.
3143         (rewrite_to_new_ssa_names): Remove.
3144         (tree_duplicate_sese_region): Remove variables ver,
3145         definitions, phi, ssa_name_map and bi.
3146         Call need_ssa_update_p instead of any_marked_for_rewrite_p.
3147         Call update_ssa.
3148         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
3149         update_ssa instead of rewrite_ssa_into_ssa.
3150         * tree-ssa-loop-manip.c (add_exit_phis_edge): Call
3151         create_new_def_for.
3152         (find_uses_to_rename_use): Add argument 'need_phis'.
3153         (find_uses_to_rename_stmt): Do not scan virtual operands.
3154         (find_uses_to_rename): Only scan PHI nodes for
3155         non-virtual names.
3156         (rewrite_into_loop_closed_ssa): Call update_ssa.
3157         (check_loop_closed_ssa_use): Ignore virtual operands.
3158         (check_loop_closed_ssa_stmt): Likewise.
3159         (verify_loop_closed_ssa): Do nothing if CURRENT_LOOPS is
3160         NULL.
3161         (rename_variables, set_phi_def_stmts): Remove.
3162         (tree_duplicate_loop_to_header_edge): Reformat comment.
3163         Remove variables BB, I and DEFINITIONS.
3164         Call need_ssa_update_p.
3165         Call update_ssa.
3166         (lv_adjust_loop_header_phi): Reformat comment.
3167         * tree-ssanames.c (ssa_names_to_rewrite): Remove.
3168         (marked_for_rewrite_p, any_marked_for_rewrite_p,
3169         mark_for_rewrite, unmark_all_for_rewrite,
3170         marked_ssa_names): Remove.  Update all users.
3171         (release_ssa_name): If VAR has been registered for SSA
3172         updating, do nothing.
3173         * tree-vrp.c (new_ssa_names, old_ssa_names): Remove.
3174         (build_assert_expr_for): Call register_new_name_mapping.
3175         (insert_range_assertions): Update call to update_ssa.
3176         * tree.h (mark_for_rewrite, unmark_all_for_rewrite,
3177         marked_for_rewrite_p, any_marked_for_rewrite_p,
3178         marked_ssa_names): Remove.
3179
3180 2005-04-22  Jeff Law  <law@redhat.com>
3181
3182         * tree-ssa-dom.c (block_defs_stack): Remove, no longer needed.
3183         (restore_currdefs_to_original_value): Likewise.
3184         (register_definitions_for_stmt): Likewise.
3185         (tree_ssa_dominator_optimize): No longer initialize CURRENT_DEF
3186         for each variable.  Do not allocate/free block_defs_stack either.
3187         Do not iterate if we just thread jumps.  Only iterate if the
3188         tree_cleanup_cfg does useful work (temporary).
3189         (dom_opt_initialize_block): No longer push a marker on
3190         BLOCK_DEFS_STACK.
3191         (dom_opt_finalize_block): Removal call to restore currdefs.
3192         Relax restrictions for recording edge equivalences.
3193         (record_equivalences_from_phis): No longer need to track
3194         CURRENT_DEF.
3195         (optimize_stmt): Similarly.
3196         (thread_across_edge): Simplify by removing the requirement that
3197         statements in the block we are threading through must be nops.
3198         (initialize_hash_element): Handle GOTO_EXPR.
3199
3200 2005-04-22  David S. Miller  <davem@davemloft.net>
3201
3202         * sched-vis.c (print_value): Use CONST_DOUBLE_LOW and
3203         CONST_DOUBLE_HIGH.
3204         * config/sparc/sparc.c (sparc_rtx_costs): Likewise, and
3205         fix check on CONST_DOUBLE mode.  It should be VOIDmode
3206         when it is representing an integer.
3207
3208 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
3209
3210         * builtins.c (gimplify_va_arg_expr): Reword comments to avoid
3211         'abort'. Use gcc_assert and gcc_unreachable as appropriate.
3212         * c-format.c (get_constant, decode_format_attr, get_flag_spec, 
3213         find_char_info_specifier_index,
3214         find_length_info_modifier_index): Likewise.
3215         * c-typeck.c (composite_type, pop_init_level): Likewise.
3216         * combine.c (cant_combine_insn_p, try_combine): Likewise.
3217         * cse.c (cse_insn): Likewise
3218         * dominance.c (calc_dfs_tree): Likewise
3219         dwarf2out.c (loc_descriptor_from_tree_1,
3220         add_abstract_origin_attribute, force_decl_die,
3221         force_type_die): Likewise
3222         emit-rtl.c (operand_subword_force): Likewise
3223         explow.c (hard_function_value): Likewise
3224         expmed.c (store_bit_field, expand_divmod,
3225         emit_store_flag_force): Likewise
3226         expr.c (emit_move_multi_word, store_expr,
3227         expand_expr_real_1): Likewise
3228         final.c (this_is_asm_operands, shorten_branches, final_scan_insn,
3229         output_operand): Likewise
3230         flow.c (recompute_reg_usage): Likewise
3231         * function.c (assign_stack_temp_for_type, assign_temp, 
3232         handle_epilogue_set): Likewise
3233         * genextract.c (main): Likewise
3234         * gimplify.c (mostly_copy_tree_r, gimplify_return_expr,
3235         gimplify_modify_expr_rhs, gimplify_expr): Likewise
3236         * haifa-sched.c (ready_lastpos, ready_remove_first, ready_element,
3237         ready_remove, rm_line_notes, rm_other_notes,
3238         schedule_block): Likewise
3239         mips-tfile.c (copy_object, out_of_bounds): Likewise
3240
3241 2005-04-22 David Edelsohn  <edelsohn@gnu.org>
3242
3243         PR target/20813
3244         * config/rs6000/default64.h (TARGET_DEFAULT): Add MASK_PPC_GFXOPT.
3245         * config/rs6000/rs6000.c (processor_target_table): Rename rs64a to
3246         rs64.  Add MASK_PPC_GFXOPT to powerpc64 and rs64.
3247         (rs6000_init_libfuncs): Set TFmode optabs to xlq names if
3248         TARGET_XL_COMPAT.
3249         * doc/invoke.texi (PowerPC options): Change rs64a to rs64.
3250
3251 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
3252
3253         * lambda-code.c: Define VEC(int,heap), VEC(lambda_loop,heap).
3254         (gcc_tree_to_linear_expression): Convert to heap allocated
3255         vectors.
3256         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
3257         lbv_to_gcc_expression, lle_to_gcc_expression,
3258         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest, 
3259         perfect_nestify): Likewise.
3260         lambda.h (gcc_loopnest_to_lambda_loopnest,
3261         lambda_loopnest_to_gcc_loopnest): Likewise.
3262         tree-loop-linear.c (linear_transform_loops): Likewise.
3263
3264 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
3265
3266         * config/sparc/predicates.md (arith_double_operand): Use
3267         trunc_int_for_mode if HOST_BITS_PER_WIDE_INT >=64.
3268         * config/sparc/sparc.md (movqi, movhi, movsi, movqi): Use gen_int_mode.
3269         (DImode, DFmode constant splitters): Likewise.  Remove code for
3270         TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT < 64.
3271         (logical constant splitters): Use const_int_operand predicate.
3272         (lshrsi3_extend): Remove code for TARGET_ARCH64 &&
3273         HOST_BITS_PER_WIDE_INT < 64.
3274
3275 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
3276
3277         * config/pa/pa.c (legitimize_pic_address): Use gcc_assert and
3278         gcc_unreachable as appropriate.
3279         (force_mode, emit_move_sequence, singlemove_string,
3280         output_move_double, output_fp_move_double, find_addr_reg,
3281         output_block_move, output_block_clear, output_and,
3282         output_64bit_and, output_ior, output_64bit_ior, store_reg_modify,
3283         pa_adjust_cost, pa_issue_rate, print_operand,
3284         output_global_address, output_arg_descriptor, output_cbranch,
3285         output_lbranch, output_bb, output_bvb, output_dbra, output_movb,
3286         output_call): Likewise.
3287         * config/pa/pa.md (call, call_value, sibcall, sibcall_value,
3288         prefetch, prefetch_cc, prefetch_nocc): Likewise.
3289
3290 2005-04-22  Zdenek Dvorak  <dvorakz@suse.cz>
3291
3292         * Makefile.in (LIBGCOV): Add _gcov_interval_profiler,
3293         _gcov_pow2_profiler and _gcov_one_value_profiler.
3294         (tree-profile.o): Add GGC_H and gt-tree-profile.h dependency.
3295         (GTFILES): Add $(srcdir)/tree-profile.c.
3296         * gcov-io.h (__gcov_interval_profiler, __gcov_pow2_profiler,
3297         __gcov_one_value_profiler): Declare.
3298         * gimplify.c (force_gimple_operand): Check whether the statements
3299         should be produced in ssa form.
3300         (force_gimple_operand_bsi): New function.
3301         * libgcov.c (__gcov_interval_profiler, __gcov_pow2_profiler,
3302         __gcov_one_value_profiler): New functions.
3303         * rtl-profile.c (rtl_gen_pow2_profiler): Only measure whether
3304         the profiled value is a power of two or not.
3305         * tree-cfg.c (tree_block_ends_with_condjump_p): Handle empty blocks.
3306         * tree-flow.h (in_ssa_p): Declare.
3307         (force_gimple_operand_bsi): Declare.
3308         * tree-into-ssa.c (in_ssa_p): New variable.
3309         (rewrite_into_ssa): Set in_ssa_p.
3310         * tree-outof-ssa.c (rewrite_out_of_ssa): Set in_ssa_p.
3311         * tree-profile.c: Include ggc.h and gt-tree-profile.h.
3312         (gcov_type_node, tree_interval_profiler_fn, tree_pow2_profiler_fn,
3313         tree_one_value_profiler_fn): New variables.
3314         (tree_init_edge_profiler): Initialize the profiler function decls.
3315         (tree_gen_edge_profiler): Use global gcov_type_node.
3316         (prepare_instrumented_value): New function.
3317         (tree_gen_interval_profiler, tree_gen_interval_profiler,
3318         tree_gen_one_value_profiler): Call the library functions instead of
3319         creating instrumentation code.
3320         * tree.c (build_fn_decl): New function.
3321         * tree.h (build_fn_decl): Declare.
3322         * value-prof.c (rtl_divmod_values_to_profile,
3323         rtl_find_values_to_profile, rtl_mod_pow2_value_transform,
3324         tree_mod_pow2_value_transform, tree_find_values_to_profile):
3325         Do not handle may_be_other and precise values of exponents at pow2
3326         profiler.
3327         (tree_mod_subtract_transform): Reflect that value field of
3328         histogram has changed meaning.
3329         (tree_divmod_values_to_profile): Record the values correctly.
3330         (tree_values_to_profile): Update comment.
3331         * value-prof.h (struct histogram_value_t): Remove pow2 data.
3332
3333 2005-04-22  Joseph S. Myers  <joseph@codesourcery.com>
3334
3335         * varasm.c (do_assemble_alias): Return early if TREE_ASM_WRITTEN
3336         (decl).
3337
3338 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
3339
3340         * config/i386/i386.md (length_immediate): Use gcc_assert or
3341         gcc_unreachable, as appropriate.
3342         (*movsi_1, *movqi_1, reload_outqi, *movdi_1_rex64, *pushsf,
3343         *pushsf_rex64, *truncxfsf2_mixed, *truncxfsf2_i387,
3344         *truncxfdf2_mixed, *truncxfdf2_i387, *adddi_1_rex64,
3345         *adddi_2_rex64, *adddi_3_rex64, *adddi_4_rex64, *adddi_5_rex64,
3346         *addsi_1, addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
3347         *addsi_3_zext, *addsi_4, *addsi_5, *addhi_1_lea, *addhi_1,
3348         *addhi_2, *addhi_3, *addhi_4, *addhi_5, *addqi_1_lea, *addqi_1,
3349         *addqi_1_slp, *addqi_2, *addqi_3, *addqi_4, *addqi_5, addqi_ext_1,
3350         *addqi_ext_1_rex64, *anddi_1_rex64, *andsi_1, *andhi_1,
3351         *ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashlsi3_1, *ashlsi3_1_zext,
3352         *ashlsi3_cmp, *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1,
3353         *ashlhi3_cmp, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
3354         pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64,
3355         pro_epilogue_adjust_stack_rex64_2, prefetch, *prefetch_sse,
3356         *prefetch_sse_rex): Likewise.
3357         * config/i386/predicates.md (x86_64_immediate_operand,
3358         x86_64_zext_immediate_operand, symbolic_operand,
3359         no_seg_address_operand, aligned_operand,
3360         memory_displacement_operand): Likewise.
3361         * config/i386/sse.md (*mov<mode>_internal,
3362         *movv2df_internal): Likewise.
3363
3364 2005-04-22  Jan Hubicka  <jh@suse.cz>
3365
3366         * Makefile.in (ipa.o, ipa-inline.o): New files.
3367         * cgraph.h (cgraph_remove_unreachable_nodes, cgraph_postorder,
3368         cgraph_decide_inlining_incrementally, cgraph_clone_inlined_nodes,
3369         cgraph_mark_inline_edge, cgraph_default_inline_p): Declare.
3370         * cgraphunit.c (cgraph_default_inline_p,
3371         cgraph_decide_inlining_incrementally,  ncalls_inlined,
3372         nfunctions_inlined, initial_insns, overall_insns, 
3373         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
3374         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3375         cgraph_mark_inline, cgraph_check_inline_limits,
3376         cgraph_default_inline_p, cgraph_recursive_inlining_p,
3377         update_callee_keys, lookup_recursive_calls,
3378         cgraph_decide_recursive_inlining, cgraph_set_inline_failed,
3379         cgraph_decide_inlining_of_small_functions, cgraph_decide_inlining,
3380         cgraph_decide_inlining_incrementally, cgraph_gate_inlining,
3381         pass_ipa_inline): Move to ipa-inline.c
3382         (cgraph_postorder, cgraph_remove_unreachable_nodes): Move to ipa.c
3383         * ipa.c: New file.
3384         * ipa-inline.c: New file.
3385
3386 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
3387
3388         * doc/invoke.texi (SPARC options): Document that -mapp-regs
3389         is turned off by default on Solaris.
3390
3391 2005-04-21  Roger Sayle  <roger@eyesopen.com>
3392
3393         * c-common.h (objc_build_method_signature): Update prototype.
3394         * stub-objc.c (objc_build_method_signature): Update the stub
3395         implementation to accept and ignore additional parameter.
3396         * c-parser.c (c_parser_objc_method_decl): Reorgnize to pass
3397         the value of ellipsis to objc_build_method_signature instead
3398         of setting TREE_OVERFLOW on the parms TREE_LIST node.
3399
3400 2005-04-21  Geoffrey Keating  <geoffk@apple.com>
3401
3402         * config/rs6000/rs6000-protos.h (rs6000_emit_sync): New.
3403         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Use
3404         gen_rtx_* not gen_rtx_fmt_*.
3405         (rs6000_emit_vector_select): Likewise.
3406         (rs6000_emit_sync): New.
3407         * config/rs6000/rs6000.md (GPR, INT, INT1): New mode macros.
3408         (larx, stcx, cmp): New mode substitutions.
3409         (UNSPEC_SYNC, UNSPEC_SYNC_OP, UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC,
3410         UNSPEC_ISYNC): New constants.
3411         (rlwinm): Give name.
3412         (memory_barrier, isync, lwsync): New insns.
3413         (sync_compare_and_swap<mode>, sync_lock_test_and_set<mode>): New insn.
3414         (sync_lock_release<mode>): New expander.
3415         (sync_add<mode>, sync_sub<mode>, sync_ior<mode>, sync_and<mode>,
3416         sync_xor<mode>, sync_nand<mode>, sync_old_add<mode>,
3417         sync_old_sub<mode>, sync_old_ior<mode>, sync_old_and<mode>,
3418         sync_old_xor<mode>, sync_old_nand<mode>, sync_new_add<mode>,
3419         sync_new_sub<mode>, sync_new_ior<mode>, sync_new_and<mode>,
3420         sync_new_xor<mode>, sync_new_nand<mode>): New expanders.
3421         (sync_add<mode>_internal, sync_addshort_internal,
3422         sync_sub<mode>_internal, sync_andsi_internal, sync_anddi_internal,
3423         sync_boolsi_internal, sync_booldi_internal, sync_boolc<mode>_internal,
3424         sync_boolc<mode>_internal2, sync_boolcc<mode>_internal): New insns.
3425
3426         * doc/md.texi (Standard Names): sync_compare_and_swap's operand 0
3427         is the memory before, not after, the operation.  Clarify
3428         barrier requirements.
3429
3430 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
3431
3432         * cfghooks.h (struct cfg_hooks): Reword comments to avoid 'abort'.
3433         * lambda.h (lambda_vector_min_nz): Likewise.
3434         * langhooks.h (struct lang_hooks_for_types,
3435         struct lang_hooks): Likewise.
3436         * output.h (assemble_integer, this_is_asm_operands): Likewise.
3437         * tree.h: Likewise.
3438         * vec.h: Likewise.
3439         * tree-flow-inline.h (relink_imm_use): Use gcc_assert.
3440         
3441         * optabs.c (prepare_cmp_insn, emit_cmp_and_jump_insns): Reword
3442         comments to avoid 'abort'.  Use gcc_assert as necessary.
3443         * opts.c (common_handle_option): Likewise.
3444         * pretty-print.c (pp_base_format_text): Likewise.
3445         * print-rtl.c (print_rtx): Likewise.
3446         * read-rtl.c (read_rtx_filename, read_rtx_1): Likewise.
3447         * regmove.c (try_auto_increment): Likewise.
3448         * reload.c (find_valid_class, find_reloads_toplev,
3449         find_equiv_reg): Likewise.
3450         * reload1.c (reload, forget_old_reloads_1, function_invariant_p, 
3451         merge_assigned_reloads): Likewise.
3452         * tree-inline.c (inline_forbidden_p_1,
3453         estimate_num_insns_1): Likewise.
3454         * tree-optimize.c (execute_todo): Likewise.
3455         * tree-outof-ssa.c (eliminate_phi): Likewise.
3456         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
3457         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Likewise.
3458         * tree-ssa-operands.c (parse_ssa_operands,
3459         get_indirect_ref_operands, create_ssa_artficial_load_stmt): Likewise.
3460         * tree-ssa-pre.c (find_or_generate_expression): Likewise.
3461         * tree-ssanames.c (release_ssa_name): Likewise.
3462         * tree.c (int_bit_position, int_byte_position, tree_low_cst, 
3463         walk_tree): Likewise.
3464
3465         * tree-ssa-operands.c (verify_abort): Fold into ..
3466         (verify_imm_links): ... here.
3467
3468 2005-04-21  Richard Henderson  <rth@redhat.com>
3469
3470         * config/alpha/sync.md (sync_new_nand<I48MODE>): Fix constraints
3471         on non-memory operand for previous inversion.
3472
3473 2005-04-21  Devang Patel  <dpatel@apple.com>
3474
3475         PR optimization/20994
3476         * tree-if-conv.c (find_phi_replacement_condition): Avoid generating
3477         x = !(a == b) : p , q;.
3478         (pass_if_conversion): Verify stmts and flow.
3479         
3480 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
3481
3482         * optabs.c (gen_conditional_trap): Restore #define.
3483
3484         * alias.c (true_dependence): Remove 'abort' from comments. Use
3485         gcc_assert and gcc_unreachable as appropriate.
3486         (canon_true_dependence): Likewise.
3487         * bb-reorder.c (connect_traces): Likewise.
3488         * c-common.c (c_add_case_label): Likewise.
3489         * c-decl.c (finish_function): Likewise.
3490         * caller-save.c (insert_restore, insert_save): Likewise.
3491         * cfg.c (update_bb_profile_for_threading): Likewise.
3492         * cfganal.c (flow_active_insn_p): Likewise.
3493         * cfgexpand.c (add_reg_br_prob_note): Likewise.
3494         * cfgrtl.c (rtl_redirect_edge_and_branch_force, rtl_split_edge,
3495         cfg_layout_merge_blocks): Likewise.
3496         * ifcvt.c (cond_exec_process_insns, merge_if_block,
3497         find_if_block): Likewise.
3498         * integrate.c (allocate_initial_values): Likewise.
3499         * jump.c (reverse_condition, reverse_condition_maybe_unordered,
3500         swap_condition, unsigned_condition, signed_condition,
3501         mark_jump_label, invert_jump_1, rtx_renumbered_equal_p,
3502         reg_or_subregno): Likewise.
3503         * lambda-code.c (lambda_compute_auxillary_space,
3504         lambda_transform_legal_p): Likewise.
3505         * lambda-mat.c (lambda_matrix_inverse_hard): Likewise.
3506         * langhooks.c (lhd_set_decl_assembler_name, lhd_type_promotes_to,
3507         lhd_incomplete_type_error, lhd_expand_expr,
3508         lhd_types_compatible_p, lhd_tree_size): Likewise.
3509         * lcm.c (create_pre_exit, optimize_mode_switching): Likewise.
3510         * local-alloc.c (update_equiv_regs): Likewise.
3511         * loop-unroll.c (peel_loop_completely
3512         unroll_loop_constant_iterations, unroll_loop_runtime_iterations,
3513         peel_loop_simple, unroll_loop_stupid,
3514         analyze_iv_to_split_insn): Likewise.
3515         * loop.c (gen_prefetch, find_and_verify_loops,
3516         basic_induction_var): Likewise.
3517         * modulo-sched.c (normalize_sched_times, check_nodes_order): Likewise.
3518         * value-prof.c (tree_find_values_to_profile): Likewise.
3519         * varasm.c (named_section, default_assemble_integer,
3520         decode_addr_const): Likewise.
3521
3522 2005-04-21 Alan Modra  <amodra@bigpond.net.au>
3523            Fariborz Jahanian <fjahanian@apple.com>
3524
3525         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Fix size of
3526         portion of argument passed in fpr.
3527         * expr.c (emit_push_insn): Fix computation of 'offset' used to
3528         decide on partial argument save on stack.
3529
3530 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
3531
3532         * config/sparc/predicates.md, config/sparc/sparc.md: Fix
3533         comment typos.
3534
3535 2005-04-21  Jan Hubicka  <jh@suse.cz>
3536
3537         * cgraphunit.c: Include tree-pass.h
3538         (cgraph_decide_recursive_inlining,
3539         cgraph_decide_inlining_of_small_function, cgraph_set_inline_failed,
3540         cgraph_decide_inlining): Dump goes to dump_file.
3541         (cgraph_optimize): Call ipa passes instead of inliner.
3542         (cgraph_gate_inlining, pass_ipa_inline): New.
3543         * tree-optimize.c (all_ipa_passes): New static variable.
3544         (register_one_dump_file): Dead with IPA passes.
3545         (register_dump_files): Likewise.
3546         (init_tree_optimization_passes): Initialize IPA passes.
3547         (execute_todo): Do cgraph dump when asked to, do not dump function body
3548         for IPA pass.
3549         * tree-pass.h (TODO_dump_cgraph): New macro.
3550         (ipa_passes): Declare.
3551         * Makefile.in (cgraphunit.o): Add dependency on cgraphunit.h
3552
3553 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
3554
3555         * config/i386/i386.c (type_natural_mode): Use gcc_unreachable and
3556         gcc_assert instead of abort.
3557         (classify_argument, examine_argument, construct_container,
3558         contains_128bit_aligned_vector_p, ix86_check_movabs,
3559         standard_80387_constant_opcode, standard_80387_constant_rtx,
3560         ix86_initial_elimination_offset, ix86_compute_frame_layout,
3561         pro_epilogue_adjust_stack, ix86_expand_epilogue,
3562         ix86_address_cost, legitimate_address_p, legitimize_pic_address,
3563         legitimize_tls_address, output_pic_addr_const,
3564         i386_output_dwarf_dtprel, put_condition_code, print_reg,
3565         get_some_local_dynamic_name, print_operand, print_operand_address,
3566         output_387_binary_op, emit_i387_cw_initialization,
3567         output_fix_trunc, output_fp_compare, ix86_output_addr_vec_elt,
3568         ix86_expand_clear, ix86_expand_binary_operator,
3569         ix86_expand_unary_operator, ix86_match_ccmode, ix86_cc_mode,
3570         ix86_cc_modes_compatible, ix86_fp_comparison_codes,
3571         ix86_fp_comparison_arithmetics_cost, ix86_expand_fp_compare,
3572         ix86_expand_branch, ix86_expand_setcc,
3573         ix86_expand_carry_flag_compare, ix86_expand_fp_movcc,
3574         ix86_expand_int_addcc, ix86_split_to_parts, ix86_split_long_move,
3575         ix86_expand_movmem, ix86_expand_call, assign_386_stack_local,
3576         memory_address_length, ix86_attr_length_immediate_default,
3577         ix86_attr_length_address_default, ix86_agi_dependant,
3578         x86_initialize_trampoline, ix86_init_mmx_sse_builtins,
3579         ix86_expand_binop_builtin, ix86_force_to_memory,
3580         ix86_secondary_memory_needed, ix86_avoid_jump_misspredicts,
3581         x86_emit_floatuns): Likewise.
3582         * config/i386/netware.c (gen_regparm_prefix,
3583         i386_nlm_strip_name_encoding): Likewise.
3584         * config/i386/winnt.c (i386_pe_mark_dllexport): Likewise.
3585
3586 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
3587
3588         * optabs.c (gen_condiational_trap): Remove #define.
3589         (add_equal_note): Assertify. Remove explicit indirection from
3590         call via function pointer.
3591         (expand_ternary_op, expand_simple_binop, expand_binop,
3592         expand_twoval_unop, expand_twoval_binop,
3593         expand_twoval_binop_libfunc, expand_simple_unop expand_unop,
3594         emit_unop_insn,  emit_no_conflict_block,  prepare_cmp_insn,
3595         prepare_operand emit_cmp_and_jump_insn_1, emit_cmp_and_jump_insns,
3596         prepare_float_lib_cmp, emit_conditional_move,
3597         emit_conditional_add, gen_add2_insn, gen_add3_insn,
3598         have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn,
3599         expand_float, expand_fix, debug_optab_libfuncs, gen_cond_trap,
3600         vector_compare_rtx, expand_vec_cond_expr): Likewise.
3601
3602 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
3603
3604         * vec.h: Update API to separate allocation mechanism from type.
3605         (VEC_safe_grow): New.
3606         * vec.c (calculate_allocation): New.
3607         (vec_gc_o_reserve, vec_heap_o_reserve): Adjust.
3608         (vec_gc_free, vec_heap_free): Remove.
3609         * gengtype-lex.l (DEF_VEC_): Process mult-argument macros.  Adjust.
3610         (VEC): Likewise.
3611         (mangle_macro_name): New.
3612         (struct macro_def): New.
3613         (struct macro): Add multiple argument values.
3614         (macro_expans_end): New.
3615         (push_macro_expansion):  Chain on new macro. Process multiple
3616         args, create follow on expansion. Return follow on argument.
3617         (macro_input): Deal with multiple arguments.
3618         
3619         * tree.h: Define VEC(tree,heap) and VEC(tree,gc).
3620         (struct tree_binfo): Adjust.
3621         * basic-block.h: Define VEC(edge,gc).
3622         (struct edge_def): Adjust.
3623         (struct basic_block_def, struct edge_iterator): Likewise.
3624         (ei_container, ei_start_1, ei_last_1): Likewise.
3625         * cfg.c (connect_src, connect_dest): Likewise.
3626         * cfgrtl.c (force_nonfallthru_and_redirect)
3627         * dbxout.c (dbxout_type)
3628         * dwarf2out.c (gen_member_die)
3629         * lambda-code.c: Define VEC(int,gc), VEC(lambda_loop,gc).
3630         (gcc_tree_to_linear_expression): Adjust.
3631         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
3632         lbv_to_gcc_expression, lle_to_gcc_expression,
3633         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
3634         perfect_nestify): Likewise.
3635         * lambda.h (gcc_loopnest_to_lambda_loopnest,
3636         lambda_loopnest_to_gcc_loopnest): Adjust prototypes.
3637         * profile.c (instrument_values): Adjust.
3638         * tree-cfg.c (modified_noreturn_calls): Adjust.
3639         (remove_fallthru_edge): Likewise.
3640         * tree-dump.c (dequeue_and_dump): Adjust.
3641         * tree-flow-inline.h (mark_stmt_modified): Adjust.
3642         * tree-flow.h (modified_noreturn_calls): Adjust.
3643         (tree_on_heap): Remove. (yay!)
3644         (register_new_def): Adjust.
3645         * tree-into-ssa.c: Define VEC(int,heap).
3646         (block_defs_stack): Adjust.
3647         (find_idf, insert_phi_nodes, register_new_def,
3648         rewrite_initialize_block, rewrite_finalize_block,
3649         register_new_update_single, rewrite_update_init_block,
3650         rewrite_update_fini_block, rewrite_blocks,
3651         ssa_rewrite_finalize_block, ssa_register_new_def,
3652         ssa_rewrite_initialize_block, rewrite_ssa_into_ssa): Likewise.
3653         * tree-loop-linear.c (linear_transform_loops): Adjust.
3654         * tree-ssa-alias.c: Define VEC(fieldoff_t,heap).
3655         (push_fields_onto_fieldstack, create_overlap_variables_for): Adjust.
3656         * tree-ssa-dom.c (avail_exprs_stack, block_defs_stack,
3657         stmts_to_rescan, const_and_copies_stack, nonzero_vars_stack,
3658         vrp_variables_stack): Adjust declarations.
3659         (tree_ssa_dominator_optimize): Adjust.
3660         (dom_opt_initialize_block, remove_local_expressions_from_table,
3661         restore_nonzero_vars_to_original_value,
3662         restore_vars_to_original_value,
3663         restore_currdefs_to_original_value, dom_opt_finalize_block,
3664         record_var_is_nonzero, record_cond, record_const_or_copy_1,
3665         optimize_stmt, update_rhs_and_lookup_avail_expr,
3666         lookup_avail_expr, record_range): Likewise.
3667         * tree-ssa-pre.c: Define VEC(basic_block,heap).
3668         (compute_antic_aux): Adjust.
3669         (inserted_exprs, create_expression_by_pieces, 
3670         insert_into_preds_of_block, eliminate, mark_operand_necessary, 
3671         remove_dead_inserted_code, fini_pre): Likewise.
3672         * tree-ssa-propagate.c (interesting_ssa_edges): Adjust.
3673         (varying_ssa_edges, add_ssa_edge, process_ssa_edge_worklist. 
3674         ssa_prop_init): Likewise.
3675         * tree-ssa.c: Define VEC(bitmap,heap).
3676         (verify_name_tags): Adjust.
3677         * value-prof.c (rtl_divmod_values_to_profile): Adjust.
3678         (insn_prefetch_values_to_profile, rtl_find_values_to_profile,
3679         tree_divmod_values_to_profile, tree_find_values_to_profile,
3680         value_profile_transformations): Likewise.
3681         * value-prof.h: Define VEC(histogram_value,heap).
3682         * varasm.c: Remove alias_pair pointer typedef, define
3683         VEC(alias_pair,gc).
3684         (finish_aliases_1, finish_aliases_2, assemble_alias): Adjust.
3685         
3686         * config/pa/pa.c (typedef extern_symbol): Typedef the structure,
3687         not a pointer to it.  Create an object vector.
3688         (extern_symbols): Turn into an object vector.
3689         (pa_hpux_asm_output_external, pa_hpux_file_end): Adjust.
3690
3691 2005-04-21  Sebastian Pop  <pop@cri.ensmp.fr>
3692
3693         PR/20742
3694         * Makefile.in (tree-chrec.o): Depend on params.h.
3695         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): New parameter with
3696         default value 20.
3697         * tree-chrec.c: Depend on params.h.  Replace build with buildN,
3698         and fold build with fold_buildN.
3699         (chrec_fold_plus_1): Fail with a chrec_don_know when the size of
3700         the expression exceeds PARAM_SCEV_MAX_EXPR_SIZE.
3701         (tree_contains_chrecs): Compute an estimation of the size of the
3702         given expression.
3703         * tree-chrec.h (tree_contains_chrecs): Modify its declaration.
3704         (tree_does_not_contain_chrecs): Update the use of tree_contains_chrecs.
3705         * tree-scalar-evolution.c (simple_iv): Ditto.
3706         * doc/invoke.texi (scev-max-expr-size): Documented.
3707
3708 2005-04-21  Richard Sandiford  <rsandifo@redhat.com>
3709
3710         * config.gcc (*-*-darwin*): Add darwin.opt to $extra_options.
3711         (i[34567]86-pc-msdosdjgpp*): Likewise i386/djgpp.opt.
3712         (i[34567]86-*-lynxos*, powerpc-*-lynxos*): Likewise lynx.opt.
3713         (i[34567]86-*-sco3.2v5*): Likewise i386/sco5.opt.
3714         (i[34567]86-*-pe, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
3715         (i[34567]86-*-uwin*): Likewise i386/cygming.opt.
3716         * config/darwin.h (darwin_one_byte_bool, darwin_fix_and_continue)
3717         (darwin_fix_and_continue_switch, SUBTARGET_OPTIONS): Delete.
3718         * config/darwin.c (darwin_one_byte_bool, darwin_fix_and_continue)
3719         (darwin_fix_and_continue_switch): Delete.
3720         * config/lynx.h (SUBTARGET_OS_LYNX_SWITCHES): Delete.
3721         (SUBTARGET_SWITCHES): Delete.
3722         * config/i386/i386.h (target_flags, MASK_80387, MASK_RTD)
3723         (MASK_ALIGN_DOUBLE, MASK_SVR3_SHLIB, MASK_IEEE_FP, MASK_FLOAT_RETURNS)
3724         (MASK_NO_FANCY_MATH_387, MASK_OMIT_LEAF_FRAME_POINTER)
3725         (MASK_STACK_PROBE, MASK_NO_ALIGN_STROPS, MASK_INLINE_ALL_STROPS)
3726         (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS, MASK_MMX)
3727         (MASK_SSE, MASK_SSE2, MASK_SSE3, MASK_3DNOW, MASK_3DNOW_A)
3728         (MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT)
3729         (MASK_TLS_DIRECT_SEG_REFS, MASK_NO_RED_ZONE, TARGET_80387)
3730         (TARGET_RTD, TARGET_ALIGN_DOUBLE, TARGET_PUSH_ARGS)
3731         (TARGET_ACCUMULATE_OUTGOING_ARGS, TARGET_SVR3_SHLIB, TARGET_IEEE_FP)
3732         (TARGET_128BIT_LONG_DOUBLE, TARGET_NO_FANCY_MATH_387)
3733         (TARGET_USE_FANCY_MATH_387, TARGET_OMIT_LEAF_FRAME_POINTER)
3734         (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Delete.
3735         (TARGET_FLOAT_RETURNS_IN_80387): Make an alias of TARGET_FLOAT_RETURNS.
3736         (TARGET_64BIT): Undef before redefining.
3737         (TARGET_TLS_DIRECT_SEG_REFS, TARGET_STACK_PROBE)
3738         (TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS, TARGET_SSE)
3739         (TARGET_SSE2, TARGET_SSE3, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A)
3740         (TARGET_RED_ZONE, TARGET_USE_MS_BITFIELD_LAYOUT, TARGET_SWITCHES)
3741         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS)
3742         (ix86_fpmath_string, ix86_tls_dialect_string, ix86_cmodel_string)
3743         (ix86_asm_string, ix86_regparm, ix86_regparm_string)
3744         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
3745         (ix86_debug_arg_string, ix86_debug_addr_string)
3746         (ix86_align_loops_string, ix86_align_jumps_string)
3747         (ix86_align_funcs_string): Delete.
3748         * config/i386/cygming.h (MASK_NOP_FUN_DLLIMPORT)
3749         (TARGET_NOP_FUN_DLLIMPORT, SUBTARGET_SWITCHES): Delete.
3750         * config/i386/djgpp.h (MASK_BNU210, SUBTARGET_SWITCHES): Delete.
3751         (SUBTARGET_OVERRIDE_OPTIONS): Check TARGET_BNU210.
3752         * config/i386/lynx.h (SUBTARGET_SWITCHES): Delete.
3753         * config/i386/sco5.h (MASK_COFF, TARGET_ELF)
3754         (SUBTARGET_SWITCHES): Delete.
3755         * config/i386/i386.c (ix86_debug_arg_string): Delete.
3756         (ix86_debug_addr_string): Delete.
3757         (ix86_cmodel_string, ix86_asm_string, ix86_tls_dialect_string)
3758         (ix86_fpmath_string, ix86_regparm_string, ix86_regparm)
3759         (ix86_align_loops_string, ix86_align_jumps_string)
3760         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
3761         (ix86_align_funcs_string): Make static.
3762         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3763         (ix86_handle_option): New function.
3764         (TARGET_USE_MS_BITFIELD_LAYOUT): Delete.
3765         (ix86_ms_bitfield_layout_p): Check TARGET_MS_BITFIELD_LAYOUT.
3766         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove handling
3767         of darwin_fix_and_continue_switch.
3768         (darwin_one_byte_bool): Delete.
3769         * config/rs6000/lynx.h (EXTRA_SUBTARGET_SWITCHES): Delete.
3770         * config/rs6000/rs6000.c (rs6000_override_options): Update assignment
3771         to darwin_one_byte_bool.
3772         * config/darwin.opt, config/lynx.opt, config/i386/cygming.opt,
3773         * config/i386/djgpp.opt, config/i386/i386.opt,
3774         * config/i386/sco5.opt: New files.
3775
3776 2005-04-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
3777
3778         * config/sparc/sparc.c (reg_or_0_operand, const1_operand,
3779         fp_zero_operand, fp_register_operand, intreg_operand,
3780         fcc_reg_operand, fcc0_reg_operand, icc_or_fcc_reg_operand,
3781         call_operand, call_operand_address, tgd_symbolic_operand,
3782         tld_symbolic_operand, tie_symbolic_operand, tle_symbolic_operand,
3783         symbolic_operand, symbolic_memory_operand, label_ref_operand,
3784         sp64_medium_pic_operand, data_segment_operand,
3785         text_segment_operand, splittable_symbolic_memory_operand,
3786         reg_or_nonsymb_mem_operand, splittable_immediate_memory_operand,
3787         eq_or_neq, normal_comp_operator, noov_compare_op,
3788         noov_compare64_op, v9_regcmp_op, extend_op, cc_arithop,
3789         cc_arithopn, arith_operand, arith_4096_operand, arith_add_operand,
3790         const64_operand, const64_high_operand, arith11_operand,
3791         arith10_operand, arith_double_operand, arith_double_4096_operand,
3792         arith_double_add_operand, arith11_double_operand,
3793         arith10_double_operand, small_int, small_int_or_double,
3794         uns_small_int, uns_arith_operand, clobbered_register,
3795         input_operand, compare_operand): Delete.
3796         (sparc_emit_set_const32): Use predicates in assertion.  Remove special
3797         code for TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT != 64.
3798         (sparc_emit_set_const64): Call gcc_unreachable if H_B_P_W_I == 32.
3799         (GEN_HIGHINT64, GEN_INT64): Delete.
3800         (sparc_emit_set_safe_HIGH64, gen_safe_SET64, gen_safe_OR64,
3801         gen_safe_XOR64): Adjust for above deletion.
3802         (sparc_emit_set_const64): Support only H_B_P_W_I == 64 and CONST_INTs.
3803         Use 'unsigned HOST_WIDE_INT' instead of 'long' for bitmask.
3804         (legitimate_constant_p): Use const_zero_operand instead.
3805         (sparc_extra_constraint_check): Likewise.
3806         * config/sparc/sparc.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'O'.
3807         (PREFERRED_RELOAD_CLASS): Use const_zero_operand.
3808         (PREDICATE_CODES): Delete.
3809         * config/sparc/sparc.md: Include predicates.md.
3810         (All patterns): Adjust for new predicate names.
3811         (cmpdi, cmpdi_sp64): Use arith_operand predicate.
3812         (movhi_const64_special, movsi_const64_special): Add 'K' constraint.
3813         (movdi): Use general_operand predicate.
3814         (movdi_sp64_dbl): Delete.
3815         (movdi_const64_special): Add 'N' constraint.
3816         (movdicc): Use arith10_operand predicate.
3817         (movdi_cc_sp64, movdi_cc_sp64_trunc): Use arith11_operand predicate.
3818         (movdi_cc_reg_sp64): Use arith10_operand predicate.
3819         (movdi_cc_reg_sp64_trunc): Delete.
3820         (cmp_zero_extract, cmp_zero_extract_sp64): Use small_int_operand.
3821         (adddi3_sp64, cmp_ccx_plus, cmp_ccx_plus_set): Use arith_operand.
3822         (subdi3_sp32): Delete.
3823         (subdi3_insn_sp32): Change to define_insn_and_split.
3824         (subdi3_sp64, cmp_minus_ccx, cmp_minus_ccx_set): Use arith_operand.
3825         (muldi3, muldi3_sp64, muldi3_v8plus): Likewise.
3826         (smulsi3_highpart_v8plus, const_smulsi3_highpart_v8plus,
3827         umulsi3_highpart_v8plus, const_umulsi3_highpart_v8plus): Use
3828         small_int_operand predicate.
3829         (divdi3, udivdi3): Use arith_operand predicate.
3830         (udivsi3, udivsi3_sp32, udivsi3_sp64): Use nonimmediate_operand.
3831         (and<V64I>3_sp64, ior<V64I>3_sp64, xor<V64I:mode>3_sp64,
3832         xor_not_<V64I:mode>_sp64) : Use arith_operand predicate.
3833         (xordi3_sp64_dbl): Delete.
3834         (cmp_ccx_arith_op, cmp_ccx_arith_op_set, cmp_ccx_xor_not,
3835         cmp_ccx_xor_not_set, cmp_ccx_arith_op_not, cmp_ccx_arith_op_not_set,
3836         cmp_ccx_neg, cmp_ccx_set_neg, one_cmpl<V64I>2_sp64, cmp_ccx_not,
3837         cmp_ccx_set_not): Use arith_operand predicate.
3838         (ashrsi3_extend2, lshrsi3_extend2 et al.): Use small_int_operand.
3839         * config/sparc/predicates.md: New file.
3840
3841 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
3842
3843         PR tree-optimization/14846
3844         * fold-const.c (fold_single_bit_test_into_sign_test): New,
3845         split out from ...
3846         (fold_single_bit_test): ... here.
3847         (fold_binary): Call fold_single_bit_test_into_sign_test
3848         instead of fold_single_bit_test.
3849
3850 2005-04-20  James E Wilson  <wilson@specifixinc.com>
3851
3852         PR c++/20805
3853         * dwarf2out.c (gen_variable_die): Don't emit a specification if this
3854         is another declaration.
3855
3856 2005-04-21  Hans-Peter Nilsson  <hp@axis.com>
3857
3858         * config/cris/predicates.md: New file.
3859         * config/cris/cris-protos.h (cris_store_multiple_op_p)
3860         (cris_movem_load_rest_p): Declare.
3861         * config/cris/cris.c (cris_store_multiple_op): Return bool, not int.
3862         (cris_movem_load_rest_p): Ditto.  Globalize.
3863         (cris_bdap_operand, cris_bdap_biap_operand,
3864         cris_orthogonal_operator, cris_commutative_orth_op,
3865         cris_operand_extend_operator,
3866         cris_additive_operand_extend_operator, cris_extend_operator,
3867         cris_plus_or_bound_operator, cris_mem_op,
3868         cris_general_operand_or_symbol,
3869         cris_general_operand_or_gotless_symbol,
3870         cris_general_operand_or_plt_symbol, cris_mem_call_operand,
3871         cris_load_multiple_op): Remove predicate functions.
3872         (cris_symbol, cris_gotless_symbol) <case UNSPEC>: Return 0, don't
3873         abort, for UNSPECs other than CRIS_UNSPEC_PLT.
3874         * config/cris/cris.h (PREDICATE_CODES): Don't define.
3875         * config/cris/cris.md: Include predicates.md.
3876         ("call", "call_value"): Generate CONSTs of Pmode, not VOIDmode.
3877
3878 2005-04-20  Ian Lance Taylor  <ian@airs.com>
3879
3880         * c-common.def: Remove STMT_EXPR (moved to cp/cp-tree.def).
3881         * c-common.h (STMT_EXPR_STMT): Don't define.
3882         (STMT_EXPR_NO_SCOPE): Don't define.
3883         * c-dump.c (c_dump_tree): Don't handle STMT_EXPR.
3884         * c-pretty-print.c (pp_c_primary_expression): Likewise.
3885         (pp_c_expression): Likewise.
3886
3887 2005-04-20  Richard Henderson  <rth@redhat.com>
3888
3889         PR target/21100
3890         * config/i386/mmx.md (push<MMXMODE>1): Fix predicate thinko.
3891
3892 2005-04-20  Jeff Law  <law@redhat.com>
3893
3894         * reload1.c (reload): Ignore equivalences between pseudos and
3895         read only memory.
3896
3897 2005-04-20  Joseph S. Myers  <joseph@codesourcery.com>
3898
3899         PR c/12913
3900         * c-tree.h (struct c_label_list): Update comment.
3901         (struct c_label_context): Rename to struct c_label_context_se.
3902         (label_context_stack): Rename to label_context_stack_se.
3903         (C_DECL_UNJUMPABLE_VM, C_DECL_UNDEFINABLE_VM, struct
3904         c_label_context_vm, label_context_stack_vm, c_begin_vm_scope,
3905         c_end_vm_scope): New.
3906         (C_DECL_DECLARED_BUILTIN, C_DECL_USED): Use FUNCTION_DECL_CHECK.
3907         * c-decl.c (pop_scope): Call c_end_vm_scope.
3908         (pushdecl): Call c_begin_vm_scope for variably modified
3909         declarations.
3910         (define_label): Check for jumping into scope of identifier with
3911         variably modified type.  Push label on stack for those defined at
3912         current context of identifiers with variably modified type.
3913         (start_function): Create stack level for context of identifiers
3914         with variably modified type.
3915         (finish_function): Pop stack level for context of identifiers with