OSDN Git Service

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