OSDN Git Service

* unwind-dw2-fde-darwin.c (examine_objects): Fix aliasing in
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-06-14  Nathan Sidwell  <nathan@codesourcery.com>
2
3         * unwind-dw2-fde-darwin.c (examine_objects): Fix aliasing in
4         read_encoded_value_with_base call.
5         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
6         * unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
7         * unwind-dw2.c (extract_cie_info): Fix aliasing in
8         read_encoded_value call.
9         (execute_cfa_program, uw_frame_state_for): Likewise.
10
11 2005-06-13  Roger Sayle  <roger@eyesopen.com>
12
13         PR rtl-optimization/22053
14         * reg-stack.c (compensate_edge): Correct mistake in the assertion
15         checking of EDGE_ABNORMAL_CALL edges; complex return values can
16         result in the top two stack slots, st(0) and st(1), being live.
17
18 2005-06-13  Jeff Law  <law@redhat.com>
19
20         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): No longer
21         simplify DIV, MOD or ABS expressions using VRP information.
22         Remove WALK_DATA parameter.  Prototype and all callers updated.
23         (eliminate_redundant_computations): Remove WALK_DATA parameter.
24         Prototype and all callers updated.
25         (optimize_stmt): WALK_DATA parameter is now unused.
26
27         * tree-vrp.c (local_fold): New function.  Like fold, but
28         strips useless type conversions in the result.
29         (simplify_using_ranges): New function, largely cribbed from
30         tree-ssa-dom.c::simplify_rhs_and_lookup_avail_expr.
31         (vrp_finalize): Call simplify_using_ranges.
32
33 2005-06-13  Mark Mitchell  <mark@codesourcery.com>
34
35         * config/i386/x86-64.h (ASM_SPEC): Explicitly pass --64 to the
36         assembler in 64-bit mode.
37
38 2005-06-13  David Edelsohn  <edelsohn@gnu.org>
39
40         Revert scc_operand patch.
41         * config/rs6000/predicates.md (scc_operand): Delete.
42         * config/rs6000/rs6000.md (scc_operand): Change to scc_eq_operand.
43
44 2005-06-13  Jakub Jelinek  <jakub@redhat.com>
45
46         * trans-expr.c (gfc_conv_function_call): Return int instead of
47         void.  Use a local variable for has_alternate_specifier and
48         return it.  Avoid modification of function type's return value
49         in place, since it may be shared.
50         * trans.h (has_alternate_specifier): Remove.
51         (gfc_conv_function_call): Change return type.
52         * trans-stmt.c (has_alternate_specifier): Remove.
53         (gfc_trans_call): Add a local has_alternate_specifier variable,
54         set it from gfc_conv_function_call return value.
55
56 2005-06-13  Zdenek Dvorak  <dvorakz@suse.cz>
57
58         PR middle-end/21985
59         * fold-const.c (split_address_to_core_and_offset): Always return
60         the address of the base object.
61
62 2005-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
63
64         * doc/invoke.texi (Blackfin Options): Document -mlong-calls.
65
66 2005-06-12  Richard Henderson  <rth@redhat.com>
67
68         PR tree-opt/21994
69         * tree-complex.c (update_complex_components_on_edge): New.
70         (update_parameter_components): Use it.
71         (update_phi_components): Likewise.
72         (expand_complex_move): Likewise for is_ctrl_altering_stmt.
73
74 2005-06-12  James A. Morrison  <phython@gcc.gnu.org>
75
76         PR tree-optimization/14796
77         * fold-const (fold_binary): Transform (X << C) >> C into X & (-1>>C)
78         for unsigned types.
79
80 2005-06-12  Kazu Hirata  <kazu@codesourcery.com>
81
82         * cgraphunit.c, tree-ssa-loop-ivopts.c,
83         tree-ssa-structalias.c, tree-vectorizer.c, tree-vectorizer.h,
84         config/sparc/sparc.c: Fix comment typos.
85
86 2005-06-12  Richard Earnshaw  <richard.earnshaw@arm.com>
87
88         * arm/ieee754-df.s (aeabi_dcmpeq, aeabi_dcmplt, aeabi_dcmple)
89         (aeabi_dcmpge, aeabi_dcmpgt): Maintain 8-byte stack alignment.
90         * arm/ieee754-sf.s (aeabi_l2f, aeabi_fcmpeq, aeabi_fcmplt)
91         (aeabi_fcmple, aeabi_fcmpge, aeabi_fcmpgt): Likewise.
92
93 2005-06-12  James A. Morrison  <phython@gcc.gnu.org>
94
95         PR tree-optimization/14796
96         * fold-const.c (fold_binary): Transform (A >> C) << C into
97         one BIT_AND_EXPR.
98         <shift>: Transform (A OP c1) OP c2 into A OP (c1 + c2).
99
100 2005-06-11  Geoffrey Keating  <geoffk@apple.com>
101
102         * config/rs6000/predicates.md (reg_or_arith_cint_operand): Delete.
103         (reg_or_add_cint_operand): Rename from reg_or_add_cint64_operand.
104         Handle SImode.
105         (reg_or_sub_cint_operand): Likewise.
106         (mask_operand): Handle DImode.
107         (mask64_operand): Delete.
108         (and64_operand): Delete.
109         * config/rs6000/rs6000.c (num_insns_constant): Use mask_operand
110         instead of mask64_operand.
111         (print_operand): Likewise.
112         (rs6000_rtx_costs): Use mask_operand and reg_or_add_cint_operand and
113         reg_or_sub_cint_operand instead of *64_* variants.
114         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Use mask_operand
115         instead of mask64_operand.
116         * config/rs6000/rs6000.md: Use mask_operand and and_operand instead
117         of *64_* variants.
118         (FP): New.
119         (add_op2): Delete.
120         (add<mode>3): Use reg_or_add_cint_operand.
121         (sub_op2): Delete.
122         (sub<mode>3): Use reg_or_sub_cint_operand.
123         (udiv<mode>3, div<mode>3, div<mode>3_no_mq, mod<mode>3,
124         mov<mode>_internal2, mov<mode>, cmp<mode>, cmp<mode>,
125         cmp<mode>_internal1, indirect_jump<mode>, ctr<mode>,
126         ctr<mode>_internal1, ctr<mode>_internal2, ctr<mode>_internal5,
127         ctr<mode>_internal6, save_fpregs_<mode>, return_internal_<mode>,
128         return_and_restore_fpregs_<mode>, eh_set_lr_<mode>,
129         various unnamed patterns): New.
130         (udivsi3, divsi3, divsi3_no_mq, modsi3, movsi_internal2, movsi,
131         cmpsi, cmpsi_internal1, indirect_jumpsi, ctrsi, ctrsi_internal1,
132         ctrsi_internal2, ctrsi_internal5, ctrsi_internal6, save_fpregs_si,
133         return_internal_si, return_and_restore_fpregs_si, eh_set_lr_si,
134         udivdi3, divdi3, divdi3_no_mq, moddi3, movdi_internal2, movdi,
135         cmpdi, cmpdi_internal1, indirect_jumpdi, ctrdi, ctrdi_internal1,
136         ctrdi_internal2, ctrdi_internal5, ctrdi_internal6, save_fpregs_di,
137         return_internal_di, return_and_restore_fpregs_di, eh_set_lr_di,
138         movhi, movqi, cmpsf, cmpdf, cmptf, various unnamed patterns):
139         Delete.
140
141 2005-06-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
142
143         * rtl.h (to_rtx_code): Remove.
144         * machmode.h (to_machine_mode): Likewise.
145         * read-rtl.c (apply_mode_macro): Replace to_machine_mode with
146         explicit cast.
147         (apply_mode_maps): Likewise.
148         (read_rtx_1): Likewise.
149         (apply_code_macro): Replace to to_rtx_code with explicit cast.
150         (check_code_macro): Likewise.
151         (read_rtx_1): Likewise.
152
153 2005-06-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
154
155         * c-typeck.c (convert_for_assignment): Avoid checking
156         OPT_Wc___compat, as it is always true.
157
158 2005-06-11  David Edelsohn  <edelsohn@gnu.org>
159
160         * config/rs6000/rs6000.md (eq<mode>_compare): Restrict to Pmode.
161
162 2005-06-11  Daniel Berlin  <dberlin@dberlin.org>
163
164         Fix PR tree-optimization/22005
165         Fix PR tree-optimization/22025
166         
167         * tree-ssa-structalias.c (struct variable_info): Add has_union
168         member.
169         (create_variable_info_for):  Mark variables containing unions.
170         Don't sort the field stack if notokay is true.
171         (find_what_p_points_to): Convert variables containing unions back
172         to their SFT's if necessary.
173         
174 2005-06-11  Daniel Berlin  <dberlin@dberlin.org>
175
176         * lambda-code.c (replace_uses_equiv_to_x_with_y): Verify the step
177         is an INTEGER_CST before calling int_cst_value.
178
179 2005-06-10  Uros Bizjak  <uros@kss-loka.si>
180
181         PR target/21981
182         * config/i386/i386.c (ix86_function_value_regno_p): Return true
183         for FIRST_MMX_REG if TARGET_MMX.
184         (ix86_return_in_memory): Return 1 for MMX/3dNow vectors. Delete
185         wrong comment.
186         (ix86_struct_value_rtx): Emit warning for MMX ABI violations.
187         (ix86_value_regno): Return FIRST_MMX_REG for MMX vector modes.
188
189 2005-06-10  Daniel Berlin  <dberlin@dberlin.org>
190
191         * lambda-code.c (replace_uses_equiv_to_x_with_y): Check step
192         and access function against chrec_dont_know.
193           
194 2005-06-10  Daniel Berlin  <dberlin@dberlin.org>
195
196         * lambda-code.c (replace_uses_of_x_with_y): Renamed and rewritten
197         slightly.
198         (exit_phi_for_loop_p): New function.
199         (can_put_in_inner_loop): Ditto.
200         (can_convert_to_perfect_nest): Ditto.
201         (perfect_nestify): Create iv with right type.
202         Rewrite statements in correct order.    
203
204 2005-06-10  Keith Besaw  <kbesaw@us.ibm.com>
205
206         * tree-ssa-alias.c (new_type_alias): Use existing type
207         tag if VAR has just one in its may_aliases list.
208
209 2005-06-10  Fariborz Jahanian <fjahanian@apple.com>
210
211         * rs6000/predicates.md (scc_operand): New.
212         * rs6000/rs6000.md : Use scc_operand for eq:SI compares.
213
214 2005-06-10  Dorit Nuzman  <dorit@il.ibm.com>
215
216         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): DRs whose
217         dependence-distance modulo VF is 0 are recorded in the 
218         SAME_ALIGN_REFs VEC in each DR.
219         (vect_enhance_data_refs_alignment): Avoid 80 column overflow. The
220         alignment information of DRs that are in the SAME_ALIGN_REFs VEC of the
221         DR we want to peel for, is set to 0.
222         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Fix printout.
223         * tree-vectorizer.c (destroy_loop_vec_info): Free the SAME_ALIGN_REFs
224         VEC.
225         * tree-vectorizer.h (dr_p): New type. Defined to use the VEC API.
226         (_stmt_vec_info): Added new field same_align_refs.
227         (STMT_VINFO_SAME_ALIGN_REFS): New macro.
228
229 2005-06-10  Nathan Sidwell  <nathan@codesourcery.com>
230
231         * vec.h (VEC_safe_grow): Append MEM_STAT_INFO.
232
233 2005-06-10  Alan Modra  <amodra@bigpond.net.au>
234
235         * config/rs6000/linux.h (NO_PROFILE_COUNTERS): Define.
236         * config/rs6000/linux64.h (NO_PROFILE_COUNTERS): Define as 1.
237         * config/rs6000/rs6000.c (output_function_profiler): Obey
238         NO_PROFILE_COUNTERS.  Handle TARGET_SECURE_PLT.  Use "bcl 20,31"
239         for -fPIC.  Delete save_lr and substitute its value into strings.
240
241 2005-06-09  Dale Johannesen  <dalej@apple.com>
242
243         * config/i386/i386.c (optimization_options):  Make -fno-math-errno
244         the default on Darwin.
245         * config/rs6000/rs6000.c (optimization_options):  Ditto.
246         * doc/invoke.texi (-fno-math-errno): Document.
247
248 2005-06-09  Dale Johannesen  <dalej@apple.com>
249
250         * config/rs6000/rs6000.c (TARGET_INSN_VALID_WITHIN_DOLOOP):
251         Change to TARGET_INVALID_WITHIN_DOLOOP.
252
253 2005-06-09  David Edelsohn  <edelsohn@gnu.org>
254
255         * config/rs6000/rs6000.md (eq): Convert to define_insn_and_split.
256         * config/rs6000/predicates.md (scc_eq_operand): New.
257
258 2005-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
259
260         * config/sh/sh.md (mextr_rl): Set buffer size properly.
261         (*mextr_lr): Likewise.
262
263 2005-06-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
264
265         PR c/21759
266         * c.opt (Wc++-compat): New.
267         * doc/invoke.texi (-Wc++-compat): Document.
268         * c-typeck.c (convert_for_assignment): Check for implicit
269         conversion void* -> T*.
270
271 2005-06-09  Gabriel Dos Reis  <gdr@integrable-solutions.edu>
272
273         * machmode.h (to_machine_mode): New.
274         * rtl.h (to_rtx_code): Likewise.
275         * read-rtl.c (apply_mode_macro): Convert mode to machine_mode.
276         (print_c_condition): Convert return value of htab_find().
277         (apply_code_macro): Add explicit cast when convertin to enums.
278         (apply_mode_maps): Likewise.
279         (check_code_macro): Likewise.
280         (read_rtx_1): Likewise.
281
282 2005-06-09  Richard Henderson  <rth@redhat.com>
283
284         * config/ia64/ia64.c (update_set_flags): Just return for IF_THEN_ELSE.
285         Use SCALAR_FLOAT_MODE_P.
286         * config/ia64/vect.md (vcondv2sf): Remove code check on comparison.
287         (fselect): Rename from fpcmp; use %F.
288         (fpcmp): New.
289
290 2005-06-09  Jan Hubicka  <jh@suse.cz>
291
292         * cgraphunit.c (cgraph_create_edges): Do not walk BLOCK; finalize
293         local statics when doing unit-at-a-time.
294         (cgraph_varpool_assemble_pending_decls): Output debug info.
295         * dwarf2out.c (decls_for_scope): Skip local statics.
296         (dwarf2out_decl): Handle local statics.
297         * passes.c (rest_of_decl_compilation): Do not differentiate
298         local and global statics in unit-at-a-time.
299         * tree-inline.c (remap_decls): Put local static into
300         unexpanded_vars_list rather than introducing duplicated VAR_DECL
301         node.
302
303 2005-06-09  Daniel Berlin  <dberlin@dberlin.org>
304
305         * config/rs6000/rs6000.c: (rs6000_insn_valid_within_doloop): Fix
306         prototype.
307
308 2005-06-08  Daniel Berlin  <dberlin@dberlin.org>
309
310         * Makefile.in (OBJS-common): Add tree-ssa-structalias.o.
311         * tree-flow.h (find_what_p_points_to): Add prototype.
312         (push_fields_onto_fieldstack): Ditto.
313         (sort_fieldstack): Ditto.
314         * tree-optimize.c (init_tree_optimization_passes): Add
315         pass_build_pta and pass_del_pta.
316         * tree-pass.h (pass_build_pta): New structure.
317         (pass_del_pta): Ditto.
318         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Disambiguate
319         using new alias analyzer.
320         (push_fields_onto_fieldstack): Removed from here.
321         (bitpos_of_field): Ditto.
322         (fieldoff_compare): Ditto.
323         * tree-ssa-structalias.c: New file.
324         * tree-ssa-structalias.h: Ditto.
325
326 2005-06-09  Nathan Sidwell  <nathan@codesourcery.com>
327
328         * c-typeck.c (build_c_cast): Check type punning on COMPONENT_REF
329         too.
330
331 2005-06-09  Bernd Schmidt  <bernd.schmidt@analog.com>
332
333         * config/bfin/bfin.c (enum bfin_builtins): Moved here from...
334         * config/bfin/bfin.h (enum bfin_builtins): ... here.
335
336 2005-06-09  Adrian Straetling  <straetling@de.ibm.com>
337
338         * target.h (insn_valid_within_doloop): Rename into
339         "invalid_within_doloop".  Change return type to "const char *".
340         Update Comment.
341         * targhooks.h (default_insn_valid_within_doloop): Rename into
342         "default_invalid_within_doloop". 
343         * targhooks.c (default_insn_valid_within_doloop): Likewise.
344         Update Comment.
345         * target-def.h (TARGET_INSN_VALID_WITHIN_DOLOOP): Rename target hook
346         into "TARGET_INVALID_WITHIN_DOLOOP". Default it to
347         "default_invalid_within_doloop".
348         * hooks.c (hook_constcharptr_rtx_null): New function.
349         (hook_bool_rtx_true): Remove.
350         * hooks.h (hook_constcharptr_rtx_null): Declare.
351         (hook_bool_rtx_true): Remove.
352         * loop-doloop.c (doloop_valid_p): Temporarily store return value of
353         "invalid_within_doloop" and print error message if non-null.
354         Update Comment.
355         * doc/tm.texi: Update documentation.
356         * config/s390/s390.c: Adjust to new hook name and new default hook.
357         * config/rs6000/rs6000.c: (rs6000_insn_valid_within_doloop): Rename
358         into "rs6000_invalid_within_doloop".
359         (rs6000_invalid_within_doloop): Change return type to "static const
360         char *" and replace return values.  Update Comment.
361
362 2005-06-09  Bernd Schmidt  <bernd.schmidt@analog.com>
363
364         * config/bfin/bfin.opt (mlong-calls): New.
365         * config/bfin/predicates.md (call_insn_operand): Disallow SYMBOL_REF
366         if TARGET_LONG_CALLS.
367
368 2005-06-09  Richard Henderson  <rth@redhat.com>
369
370         PR tree-opt/20610
371         * tree.h (DECL_COMPLEX_GIMPLE_REG_P): New.
372         (struct tree_decl): Add gimple_reg_flag.
373         * integrate.c (copy_decl_for_inlining): Copy it.
374         * gimplify.c (internal_get_tmp_var): Set it.
375         (gimplify_bind_expr): Likewise.
376         (gimplify_function_tree): Likewise.
377         (gimplify_modify_expr_complex_part): New.
378         (gimplify_modify_expr): Use it.
379         * tree-gimple.c (is_gimple_reg_type): Allow complex.
380         (is_gimple_reg): Allow complex with DECL_COMPLEX_GIMPLE_REG_P set.
381
382         * tree-complex.c (complex_lattice_t): New.
383         (complex_lattice_values, complex_variable_components): New.
384         (some_nonzerop, find_lattice_value, is_complex_reg,
385         init_parameter_lattice_values, init_dont_simulate_again, 
386         complex_visit_stmt, complex_visit_phi, create_components,
387         update_complex_components, update_parameter_components, 
388         update_phi_components, update_all_vops, expand_complex_move): New.
389         (extract_component): Handle INDIRECT_REF, COMPONENT_REF, ARRAY_REF,
390         SSA_NAME.
391         (update_complex_assignment): Use update_complex_components;
392         handle updates of return_expr properly.
393         (expand_complex_addition): Use complex lattice values.
394         (expand_complex_multiplication): Likewise.
395         (expand_complex_division): Likewise.
396         (expand_complex_libcall): Use update_complex_components.
397         (expand_complex_comparison): Use update_stmt.
398         (expand_complex_operations_1): Use expand_complex_move, retrieve
399         lattice values.
400         (tree_lower_complex): Compute lattice values.
401         (tree_lower_complex_O0): Duplicate from tree_lower_complex.
402         (pass_lower_complex_O0): Rename from pass_lower_complex.
403         (pass_lower_complex, gate_no_optimization): New.
404         * tree-optimize.c (init_tree_optimization_passes): Update for
405         complex pass changes.
406         * tree-pass.h (pass_lower_complex_O0): Declare.
407
408 2005-06-08  Dale Johannesen  <dalej@apple.com>
409
410         * config/darwin.c (darwin_binds_local_p):  New.
411         * config/darwin-protos.h (darwin_binds_local_p):  Declare it.
412         * config/i386/i386.c (TARGET_BINDS_LOCAL_P):  Use it for TARGET_MACHO.
413         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Remove.
414         (TARGET_BINDS_LOCAL_P):  Change it to darwin_binds_local_p.
415
416 2005-06-08  Aldy Hernandez  <aldyh@redhat.com>
417
418         * config/rs6000/rs6000.h: Remove rs6000_long_double_size_string,
419         rs6000_isel, rs6000_spe, rs6000_alignment_string,
420         rs6000_sched_restricted_insns_priority_str,
421         rs6000_sched_restricted_insns_priority, rs6000_abi_string.
422
423 2005-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
424
425         * tree-ssa-address.c (addr_for_mem_ref): Use LAST_VIRTUAL_REGISTER
426         instead of FIRST_PSEUDO_REGISTER for creating pseudoregisters.
427         * tree-ssa-loop-ivopts.c (add_cost, multiply_by_cost,
428         multiplier_allowed_in_address_p, get_address_cost): Ditto.
429
430 2005-06-08  Richard Henderson  <rth@redhat.com>
431
432         * config/ia64/ia64.h (NO_PROFILE_COUNTERS): New.
433         * config/ia64/ia64.c (ia64_output_function_profiler): Honor it.
434         Emit out3 load right after alloc.
435
436 2005-06-08  Aldy Hernandez  <aldyh@redhat.com>
437
438         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
439         rs6000_explicit_options.
440
441 2005-06-08  Richard Henderson  <rth@redhat.com>
442
443         * config/ia64/ia64.h (FUNCTION_PROFILER): Move implementation ...
444         * config/ia64/ia64.c (ia64_output_function_profiler): ... here; add
445         unwind markup.
446         * config/ia64/ia64-protos.h (ia64_output_function_profiler): Declare.
447
448 2005-06-08  Joseph S. Myers  <joseph@codesourcery.com>
449
450         * config/sol2-c.c (cmn_err_char_table): Allow width for %b
451         formats.
452
453 2005-06-08  James A. Morrison  <phython@gcc.gnu.org>
454
455         PR target/20666
456         * config/sparc/sparc.c (sparc_fold_builtin): New function
457         (sparc_vis_mul8x16): New function.
458         (sparc_handle_vis_mul8x16): New function.
459         (TARGET_FOLD_BUILTIN): Define to sparc_fold_builtin.
460
461 2005-06-08  David Edelsohn  <edelsohn@gnu.org>
462
463         * config/rs6000/rs6000.md (call_indirect_nonlocal_aix32): Prefer
464         CTR to LR.
465         (call_indirect_nonlocal_aix64): Same.
466         (call_value_indirect_nonlocal_aix32): Same.
467         (call_value_indirect_nonlocal_aix64): Same.
468
469         PR target/10588
470         (eq): Use CLZ splitter for compare with zero.
471
472 2005-06-08  Bernd Schmidt  <bernd.schmidt@analog.com>
473
474         * config/bfin/bfin.c (bfin_return_in_memory): Simplify; return
475         everything larger than 8 bytes in memory.
476
477         * config/bfin/bfin.h (enum bfin_builtins): New.
478         * config/bfin/bfin.md (UNSPEC_VOLATILE_CSYNC, UNSPEC_VOLATILE_SSYNC):
479         New constants.
480         (csync, ssync): New insn patterns.
481         * config/bfin/bfin.c (bfin_init_builtins, bfin_expand_builtin):
482         New functions.
483         (def_builtin): New macro.
484         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
485
486         From Jie Zhang  <jie.zhang@analog.com>
487         * config/bfin/bfin.h (ASM_OUTPUT_ALIGN): Gas now emulates the
488         behavior of the native assembler in VDSP. So change accordingly.
489         
490 2005-06-08  Sebastian Pop  <pop@cri.ensmp.fr>
491
492         * tree-data-ref.c (compute_estimated_nb_iterations,
493         analyze_array_indexes, compute_overlap_steps_for_affine_1_2,
494         analyze_subscript_affine_affine, find_data_references_in_loop):
495         Fixed to use chrec_contains_undetermined to test the values of
496         loop->estimated_nb_iterations.
497         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
498         Compute the estimation only when loop->estimated_nb_iterations
499         has not yet been initialized.
500         (convert_step_widening, scev_probably_wraps_p): Add a call to
501         estimate_numbers_of_iterations_loop.
502         * tree-vrp.c (execute_vrp): Don't call estimate_numbers_of_iterations.
503
504 2005-06-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
505
506         PR debug/21946
507         * dwarf2out.c (add_loc_descr_op_piece): Move to the
508         DWARF2_DEBUGGING_INFO section.
509
510 2005-06-08  Richard Henderson  <rth@redhat.com>
511
512         PR target/21721
513         * config/ia64/ia64.c (emit_predicate_relation_info): Skip p0.
514
515 2005-06-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
516
517         PR target/21889
518         * target.h (gcc_target) <asm_out>: New field output_dwarf_dtprel.
519         * target-def.h (TARGET_ASM_OUTPUT_DWARF_DTPREL): New macro.
520         (TARGET_ASM_OUT): Add it.
521         * doc/tm.texi (Debugging Info): Document it.
522         * dwarf2out.c (output_loc_operands) <INTERNAL_DW_OP_tls_addr>:
523         Test it instead of ASM_OUTPUT_DWARF_DTPREL.
524         (loc_descriptor_from_tree_1) <VAR_DECL>: Likewise.
525         * system.h: Poison ASM_OUTPUT_DWARF_DTPREL.
526         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Delete.
527         * config/frv/frv.c (frv_output_dwarf_dtprel): Make static and unused.
528         (gen_inlined_tls_plt): Remove unused variable MEM.
529         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to frv_output_dwarf_dtprel.
530         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
531         * config/i386/i386-protos.h (i386_output_dwarf_dtprel): Delete.
532         * config/i386/i386.c (i386_output_dwarf_dtprel): Make static and
533         unused.
534         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to i386_output_dwarf_dtprel.
535         * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
536         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): Delete.
537         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Make static and
538         unused.
539         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to ia64_output_dwarf_dtprel.
540         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
541         * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Delete.
542         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Make static and
543         unused.
544         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to rs6000_output_dwarf_dtprel
545         * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
546         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): Delete.
547         * config/s390/s390.c (s390_output_dwarf_dtprel): Make static and
548         unused.
549         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to s390_output_dwarf_dtprel.
550         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
551         * config/sparc/sol2-gas.h (TARGET_SUN_TLS): Define to 0.
552         (TARGET_GNU_TLS): Define to 1.
553         * config/sparc/sparc-protos.h (sparc_output_dwarf_dtprel): Delete.
554         * config/sparc/sparc.c (sparc_output_dwarf_dtprel): Make static and
555         unused.
556         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define to sparc_output_dwarf_dtprel
557         if TARGET_GNU_TLS only.
558         * config/sparc/sparc.h (ASM_OUTPUT_DWARF_DTPREL): Delete.
559
560         * config.gcc (sparc64-*-solaris2*): Include tm-dwarf2.h last.
561         (sparc-*-solaris2*): Likewise on Solaris 7 and up.
562
563 2005-06-07  Dale Johannesen  <dalej@apple.com>
564
565         * config/i386/i386.md (movqi_1):  Fix case where source
566         is memory and destination EDI.
567
568 2005-06-08  Kazu Hirata  <kazu@codesourcery.com>
569
570         * config/c4x/c4x.h (PREDICATE_CODES): Remove mem_operand.
571
572 2005-06-07  Eric Christopher  <echristo@redhat.com>
573
574         * system.h: Poison EXTRA_CC_MODES.
575         * config/frv/frv.h (SELECT_CC_MODE): Rewrite comment.
576         * config/ia64/ia64.h (SELECT_CC_MODE): Ditto.
577         * doc/md.texi (Jump Patterns): Replace reference to
578         EXTRA_CC_MODES with machine-modes.def.
579         * doc/rtl.texi (Machine Modes): Ditto.
580
581 2005-06-07  Richard Henderson  <rth@redhat.com>
582
583         * varasm.c (initialize_cold_section_name): Fix alloca buffer overflow.
584         (assemble_start_function): Fix strcmp confusion.
585
586 2005-06-07  Uros Bizjak  <uros@kss-loka.si>
587
588         * config/i386/i386.h (enum ix86_entity): New.
589         (enum ix86_stack_slot): New.
590         (OPTIMIZE_MODE_SWITCHING): Redefine to use
591         ix86_optimize_mode_switching[] array.
592         (NUM_MODES_FOR_MODE_SWITCHING): Redefine for 4 entities.
593         (MODE_NEEDED): Use ix86_mode_needed() function.
594         (EMIT_MODE_SET): Redefine for changed emit_i387_cw_initialization ()
595         function.
596         (struct machine_function): Use optimize_mode_switching[] array.
597
598         * config/i386/i386.c (MAX_386_STACK_LOCALS): Remove.
599         (ix86_mode_needed): New function.
600         (emit_i387_cw_initialization): Cleanup. Use mode to calculate
601         correct stack positions for stored control words.
602         (assign_386_stack_local): Use enum ix86_stack_slot. Change assert.
603         (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR]: Change constant to
604         SLOT_TEMP.
605         [IX86_BUILTIN_STMXCSR]: Same.
606
607         * config/i386/i386-protos.h (assign_stack_local): Change prototype.
608         (emit_i387_cw_initialization): Change prototype.
609         (ix86_mode_needed): New prototype.
610
611         * config/i386/i386.md (i387_cw attribute): Change order of elements.
612         (truncdfsf2, truncxfsf2, truncxfdf2, fix_trunc<mode>_fisttp_i387_1)
613         (*fix_trunc<mode>_i387_1, lrint<mode>2, *fist<mode>2_floor_1)
614         (*fist<mode>2_ceil_1): Change constant in call to
615         assign_386_stack_local to SLOT_TEMP.
616         (*fix_trunc<mode>_i387_1): Change constant in call to
617         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_TRUNC.
618         Use new ix86_optimize_mode_switching[] array.
619         (frndintxf2_floor, *fist<mode>2_floor_1): Change constants in call to
620         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_FLOOR.
621         Use new ix86_optimize_mode_switching[] array.
622         (frndintxf2_ceil, *fist<mode>2_ceil_1):  Change constants in call to
623         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_CEIL.
624         Use new ix86_optimize_mode_switching[] array.
625         (frndintxf2_trunc): Change constants in call to
626         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_TRUNC.
627         Use new ix86_optimize_mode_switching[] array.
628         (frndintxf2_mask_pm): Change constants in call to
629         assign_386_stack_local to SLOT_CW_STORED and SLOT_CW_MASK_PM.
630         Use new ix86_optimize_mode_switching[] array.
631
632         (define_peephole2): Change constant from 17 to FLAGS_REG;
633
634 2005-06-07  Richard Henderson  <rth@redhat.com>
635
636         PR rtl-opt/21528
637         * rtlanal.c (reg_overlap_mentioned_p) <MEM>: Handle 'E' formats.
638
639 2005-06-07  Dale Johannesen  <dalej@apple.com>
640
641         * tree-nested.c (finalize_nesting_tree_1):  Disable
642         warn_padded around layout_type call.
643
644 2005-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
645
646         * tree-ssa-loop-ivopts.c (rewrite_use_outer): Unshare the expression
647         before emiting it.
648
649 2005-06-07  Eric Christopher  <echristo@redhat.com>
650
651         * config/mips/predicates.md: Revert previous patch.
652
653 2005-06-07  Jakub Jelinek  <jakub@redhat.com>
654
655         PR middle-end/21850
656         * tree.c (get_unwidened): Stop at NOP_EXPR/CONVERT_EXPR that convert
657         from vector types.
658
659 2005-06-07  Diego Novillo  <dnovillo@redhat.com>
660
661         * tree-ssa-threadupdate.c (struct thread_stats_d): Declare.
662         (thread_stats): New local variable.
663         (redirect_edges): Increment count of threaded edges.
664         (thread_through_all_blocks): Initialize thread_stats.
665         Display number of threaded jumps if TDF_STATS is enabled.
666
667 2005-06-07  Kazu Hirata  <kazu@codesourcery.com>
668
669         * sbitmap.h (sbitmap_iter_init): Consistently treat bit_num as
670         the current bit index with no modulo.
671
672 2005-06-07  Sebastian Pop  <pop@cri.ensmp.fr>
673
674         PR 18403 and meta PR 21861.
675         * Makefile.in (tree-chrec.o): Depend on CFGLOOP_H and TREE_FLOW_H.
676         * tree-chrec.c: Include cfgloop.h and tree-flow.h.
677         (evolution_function_is_invariant_rec_p,
678         evolution_function_is_invariant_p): New.
679         (chrec_convert): Use an extra parameter AT_STMT for refining the
680         information that is passed down to convert_step.  Integrate the 
681         code that was in count_ev_in_wider_type.
682         * tree-chrec.h (count_ev_in_wider_type): Removed.
683         (chrec_convert): Modify its declaration.
684         (evolution_function_is_invariant_p): Declared.
685         (evolution_function_is_affine_p): Use evolution_function_is_invariant_p.
686         * tree-flow.h (can_count_iv_in_wider_type): Renamed convert_step.
687         (scev_probably_wraps_p): Declared.
688         * tree-scalar-evolution.c (count_ev_in_wider_type): Removed.
689         (follow_ssa_edge_in_rhs, interpret_rhs_modify_expr):
690         Use an extra parameter AT_STMT for refining the information that is
691         passed down to convert_step.
692         (follow_ssa_edge_inner_loop_phi, follow_ssa_edge,
693         analyze_scalar_evolution_1): Initialize AT_STMT with the current
694         analyzed statement.
695         (instantiate_parameters_1): Don't know yet how to initialize AT_STMT.
696         * tree-ssa-loop-ivopts.c (idx_find_step): Update the use of 
697         can_count_iv_in_wider_type to use convert_step.
698         * tree-ssa-loop-niter.c (can_count_iv_in_wider_type_bound): Move 
699         code that is independent of the loop over the known iteration
700         bounds to convert_step_widening, the rest is moved to
701         proved_non_wrapping_p.
702         (scev_probably_wraps_p): New.
703         (can_count_iv_in_wider_type): Renamed convert_step.
704         * tree-vrp.c (adjust_range_with_scev): Take an extra AT_STMT parameter.
705         Use scev_probably_wraps_p for computing init_is_max.
706         (vrp_visit_assignment): Pass the current analyzed statement to 
707         adjust_range_with_scev.
708         (execute_vrp): Call estimate_numbers_of_iterations for refining the 
709         information provided by scev analyzer.
710
711 2005-06-07  Eric Christopher  <echristo@redhat.com>
712
713         * config/mips/predicates.md (sleu_operand): Use
714         IN_RANGE to specify range of operand.
715
716 2005-06-07  Steven Bosscher  <stevenb@suse.de>
717
718         PR tree-optimization/21847
719         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): With
720         -fnon-call-exceptions, also mark statements inherently
721         necessary if they may throw.
722
723 2005-06-07  Adrian Straetling  <straetling@de.ibm.com>
724
725         * config/s390/s390.md: ("UNSPECV_MB", "UNSPECV_CAS"): New constants.
726         ("type"): Add "sem" to 'type' attribute.
727         ("memory_barrier", "*memory_barrier", "sync_compare_and_swapdi",
728         "sync_compare_and_swapsi", "sync_compare_and_swap_ccdi",
729         "sync_compare_and_swap_ccsi", "*sync_compare_and_swap_ccdi",
730         "*sync_compare_and_swap_ccsi"): New patterns.
731         * config/s390/2064.md: ("z_sem"): New insn_reservation.
732         * config/s390/2084.md: ("x_sem"): New insn_reservation.
733         * config/s390/s390.c: (s390_compare_emitted): New global variable.
734         (s390_emit_compare): Do not emit comparison again after cas.
735         * config/s390/s390.h (s390_compare_emitted): Declare.
736
737 2005-06-07  Kazu Hirata  <kazu@codesourcery.com>
738
739         * sbitmap.h (sbitmap_iterator, sbitmap_iter_init,
740         sbitmap_iter_cond, sbitmap_iter_next): New.
741         * bt-load.c, cfganal.c, combine.c, ddg.c, flow.c,
742         modulo-sched.c, sbitmap.c, sched-rgn.c, tree-into-ssa.c,
743         tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Update
744         uses of EXECUTE_IF_SET_IN_SBITMAP to the new style.
745
746 2005-06-07  Zdenek Dvorak  <dvorakz@suse.cz>
747
748         * tree-ssa-address.c: New file.
749         * Makefile.in (tree-ssa-address.o): Add.
750         * expr.c (expand_expr_real_1): Do not handle REF_ORIGINAL on
751         INDIRECT_REFs.  Handle TARGET_MEM_REFs.
752         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REFs.
753         * tree-flow.h (struct mem_address): New.
754         (struct affine_tree_combination): Moved from tree-ssa-loop-ivopts.c.
755         (create_mem_ref, addr_for_mem_ref, get_address_description,
756         maybe_fold_tmr, multiplier_allowed_in_address_p,
757         multiply_by_cost):  Declare.
758         * tree-mudflap.c (mf_xform_derefs_1): Handle TARGET_MEM_REFs.
759         * tree-pretty-print.c (dump_generic_node): Ditto.
760         * tree-ssa-loop-im.c (for_each_index): Ditto.
761         * tree-ssa-loop-ivopts.c (may_be_unaligned_p,
762         find_interesting_uses_address): Ditto.
763         (rewrite_address_base, build_addr_strip_iref): Removed.
764         (struct affine_tree_combination): Moved to tree-flow.h.
765         (get_ref_tag, copy_ref_info): New functions.
766         (rewrite_use_address): Produce TARGET_MEM_REFs.
767         (tree_ssa_iv_optimize): Do not call update_ssa
768         and rewrite_into_loop_closed_ssa.
769         (tree_to_aff_combination): Use build_fold_addr_expr instead of
770         build_addr_strip_iref.
771         (unshare_aff_combination): New function.
772         (fold_affine_sum): Removed.
773         (get_computation_at): Use get_computation_aff.  Unshare the result.
774         (get_computation_aff, multiplier_allowed_in_address_p): New function.
775         (multiply_by_cost): Exported.
776         (get_address_cost): Use multiplier_allowed_in_address_p.
777         * tree-ssa-operands.c (get_tmr_operands): New function.
778         (get_expr_operands): Handle TARGET_MEM_REFs.
779         * tree.c (copy_node_stat): Copy annotations for TARGET_MEM_REFs.
780         (build): Handle 7 arguments.
781         (build7_stat): New function.
782         * tree.def (TARGET_MEM_DEF): New.
783         * tree.h (REF_ORIGINAL): Removed.
784         (TMR_SYMBOL, TMR_BASE, TMR_INDEX, TMR_STEP, TMR_OFFSET, TMR_ORIGINAL,
785         TMR_TAG, build7): New macros.
786         (build7_stat, tree_mem_ref_addr, copy_mem_ref_info): Declare.
787         * tree-ssa-ccp.c (fold_stmt_r): Call maybe_fold_tmr.
788         * doc/c-tree.texi: Document TARGET_MEM_REF.
789         * doc/tree-ssa.texi: Add TARGET_MEM_REF to gimple grammar.
790
791 2005-06-07  Jakub Jelinek  <jakub@redhat.com>
792
793         PR debug/21946
794         * dwarf2out.c (add_loc_descr_op_piece): New function.
795         (multiple_reg_loc_descriptor, concat_loc_descriptor,
796         loc_descriptor): Use it.
797         * var-tracking.c: Include regs.h and expr.h.
798         (emit_note_insn_var_location): Skip over pieces where offset
799         is smaller than previous offset plus previous piece mode size.
800         Optimize adjacent hard registers or memory locations.
801         * Makefile.in (var-tracking.o): Depend on $(REGS_H) and $(EXPR_H).
802
803 2005-06-07  Richard Guenther  <rguenth@gcc.gnu.org>
804
805         * c-typeck.c (c_finish_if_stmt): Use void_type_node as type
806         for COND_EXPR.
807         * gimplify.c (gimplify_cond_expr): No need to fix up the
808         type of COND_EXPRs.
809
810 2005-06-07  Richard Guenther  <rguenth@gcc.gnu.org>
811
812         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Fix
813         comments.
814
815 2005-06-07  Geoffrey Keating  <geoffk@apple.com>
816
817         * config/rs6000/host-darwin.c (segv_handler): Widen the possible
818         'stwux' instructions that are considered to be stack decrements.
819
820         * rtlanal.c (subreg_offset_representable_p): Handle objects
821         with holes.
822
823 2005-06-06  Uros Bizjak  <uros@kss-loka.si>
824
825         * mode-switching.c (optimize_mode_switching): Fix n_exprs parameter
826         in call to pre_edge_lcm.
827
828 2005-06-06  Kaz Kojima  <kkojima@gcc.gnu.org>
829
830         * config/sh/linux-unwind.h (SH_DWARF_FRAME_XD0): Remove for SH5.
831         (SH_DWARF_FRAME_PR, SH_DWARF_FRAME_GBR, SH_DWARF_FRAME_MACL)
832         (SH_DWARF_FRAME_MACH, SH_DWARF_FRAME_PC, SH_DWARF_FRAME_FPUL):
833         Likewise.
834         (SH_DWARF_FRAME_FP0, SH_DWARF_FRAME_FPSCR): Define to the correct
835         dwarf register number for SHmedia.
836         (shmedia_fallback_frame_state): New.
837         (MD_FALLBACK_FRAME_STATE_FOR): Define to it for SH5.
838
839         * config/sh/linux.h (FUNCTION_PROFILER): Provide SHMEDIA version.
840
841 2005-06-06  Gabriel Dos Reis  <gdr@integrable-solutions.net>
842
843         * c-lex.c (lex_string): Use XOBFINISH.
844         * collect2.c (extract_string, dump_file): Likewise.
845         * dbxout.c (dbxout_finish_complex_stabs): Likewise.
846         * gcc.c (init_spec, build_search_list, convert_filename, 
847         set_collect_gcc_options, do_spec_2, do_spec_1, main): Likewise.
848         * genpreds.c (write_predicate_subfunction): Likewise.
849         * genflags.c (main): Likewise.
850         * read-rtl.c (mode_attr_index, apply_macro_to_string, 
851         join_c_conditions, read_quoted_string, read_braced_string, 
852         read_rtx_1): Likewise.
853         * stringpool.c (ggc_alloc_string): Likewise.
854         * tlink.c (obstack_fgets, recompile_files): Likewise.
855
856 2005-06-06  Jakub Jelinek  <jakub@redhat.com>
857
858         * intl.h (G_): New macro.
859         * rtl-error.c (error_for_asm, warning_for_asm): Use gmsgid
860         instead of msgid for argument name.
861         * tree-ssa.c (warn_uninit): Likewise.
862         * c-parser.c (c_parser_error): Likewise.
863         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
864         * config/darwin-c.c (BAD): Likewise.
865         * config/c4x/c4x-c.c (BAD): Likewise.
866         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
867         * c-errors.c (pedwarn_c99, pedwarn_c90): Likewise.
868         * c-common.c (c_parse_error): Likewise.
869         * diagnostic.c (diagnostic_set_info, verbatim, inform, warning,
870         warning0, pedwarn, error, sorry, fatal_error, internal_error):
871         Likewise.
872         (fnotice): Use cmsgid instead of msgid for argument name.
873         * gcov.c (fnotice): Likewise.
874         * protoize.c (notice): Likewise.
875         * final.c (output_operand_lossage): Likewise.
876         * gcc.c (fatal, notice): Likewise.
877         (error): Use gmsgid instead of msgid for argument name.
878         * collect2.c (notice, fatal_perror, fatal): Use cmsgid instead
879         of msgid for argument name.
880         (error): Use gmsgid instead of msgid for argument name.
881         * c-decl.c (locate_old_decl, implicit_decl_warning): Use G_()
882         instead of N_().
883         * c-typeck.c (readonly_error, convert_for_assignment): Likewise.
884         * tree-inline.c (inline_forbidden_p_1): Likewise.
885         * ABOUT-GCC-NLS: Require gettext 0.14.5 or later.  Mention the new
886         conventions for marking translations.
887         * doc/install.texi: Mention gettext 0.14.5 or later requirement.
888
889         * tree-chrec.c (reset_evolution_in_loop): Use build3 instead of
890         build2.
891
892         * fold-const.c (operand_equal_p): Don't return 1, if element
893         chains for 2 VECTOR_CSTs are not the same length.
894
895         PR regression/21897
896         * fold-const.c (fold_ternary) <case BIT_FIELD_REF>: Don't crash if
897         not all VECTOR_CST elements are given.
898
899         * combine.c (try_combine): Use hard_regno_nregs array instead of
900         HARD_REGNO_NREGS macro.
901         * config/rs6000/rs6000.c (rs6000_split_multireg_move,
902         rs6000_register_move_cost, rs6000_memory_move_cost): Likewise.
903         * config/ia64/ia64.c (mark_reg_gr_used_mask): Likewise.
904
905 2005-06-06  Daniel Berlin  <dberlin@dberlin.org>
906
907         * tree-ssa-reassoc.o: New.
908         (OBJS-common): Add tree-ssa-reassoc.o
909         * timevar.def: Add TV_TREE_REASSOC
910         * tree-optimize.c (pass_reassoc): Add call.
911         * tree-pass.h (pass_reassoc): Add.
912         * tree-ssa-reassoc.c: New file.
913
914 2005-06-06  Eric Christopher  <echristo@redhat.com>
915
916         target/21927
917         * expr.c (do_store_flag): Remove check for non-negative BRANCH_COST.
918
919 2005-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
920
921         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard with
922         HAVE_GAS_MAX_SKIP_P2ALIGN.
923         (HAVE_AS_DWARF2_DEBUG_LINE): Remove.
924
925 2005-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
926
927         * Makefile.in (mips-tfile.o): Add $(srcdir)/../include prefix to
928         getopt.h dependency.
929         (mips-tdump.o): Likewise.
930
931 2005-06-06  Jan Hubicka  <jh@suse.cz>
932
933         * predict.c (tree_predict_edge): Don't drop useless predictions;
934         check that it is not called too late in the game.
935         (gate_estimate_probability): New gate.
936         (pass_profile): Gate.
937         * tree-mudflap.c (mf_build_check_statement_for): Do not drop
938         predictions; update CFG instead.
939         * cfgrtl.c (rtl_verify_flow_info): Check that predcitions are consumed.
940
941 2005-06-06  Jie Zhang  <jie.zhang@analog.com>
942
943         * config.gcc (bfin*-uclinux*): New.
944         * config/bfin/uclinux.h: New file.
945
946 2005-06-06  Ben Elliston  <bje@au.ibm.com>
947
948         * doc/md.texi (Insn Splitting): Fix some wording.
949
950 2005-06-05  David Edelsohn  <edelsohn@gnu.org>
951
952         * config/rs6000/rs6000.c (rs6000_emit_swdivsf): New function.
953         (rs6000_emit_swdivdf): New function.
954         * config/rs6000/rs6000.md (fres): New pattern.
955         (divsf3): Add approximation through rs6000_emit_swdivsf.
956         (fred): New pattern.
957         (divdf3): Add approximation through rs6000_emit_swdivdf.
958         * config/rs6000/rs6000-protos.h (rs6000_emit_swdivsf): Declare.
959         (rs6000_emit_swdivdf): Declare.
960         * config/rs6000/rs6000.opt (mswdiv): New option.
961         * doc/invoke.texi (RS/6000 and PowerPC Options): Document mswdiv.
962
963 2005-06-05  Zdenek Dvorak  <dvorakz@suse.cz>
964
965         PR tree-optimization/21846
966         * tree-cfg.c (replace_uses_by): Update information stored at loops.
967         * tree-flow.h (substitute_in_loop_info): Declare.
968         * tree-scalar-evolution.c (initialize_scalar_evolutions_analyzer):
969         Ensure that chrec_dont_know and chrec_known have a type.
970         * tree-ssa-loop-niter.c (substitute_in_loop_info): New function.
971
972 2005-06-05  Steven Bosscher  <stevenb@suse.de>
973
974         * config/i386/i386.c (x86_use_loop): Remove.
975         * config/i386/i386.h (x86_use_loop): Remove extern decl.
976         (TARGET_USE_LOOP): Remove.
977         * config/i386/i386.md (doloop_end, doloop_end_internal): Remove.
978         Also remove related define_splits.
979
980 2005-06-05  Dorit Nuzman  <dorit@il.ibm.com>
981
982         * tree-flow.h (stmt_ann_d): Move aux to ...
983         (tree_ann_common_d): ... here.
984         * tree-ssa-loop-im.c (LIM_DATA, determine_invariantness_stmt,
985         move_computations_stmt, schedule_sm): Update references to
986         aux.
987         * tree-vectorizer.h (set_stmt_info, vinfo_for_stmt): Likewise.
988         * tree-vect-transform.c (vect_create_index_for_vector_ref): Update
989         call to set_stmt_info.
990         (vect_transform_loop): Likewise.
991         * tree-vectorizer.c (new_loop_vec_info, destroy_loop_vec_info):
992         Likewise.
993
994         * tree-vect-analyze.c (vect_analyze_scalar_cycles): Made void instead of
995         bool.
996         (vect_mark_relevant): Takes two additional arguments - live_p and
997         relevant_p. Set RELEVANT_P and LIVE_P according to these arguments.
998         (vect_stmt_relevant_p): Differentiate between a live stmt and a
999         relevant stmt. Return two values = live_p and relevant_p.
1000         (vect_mark_stmts_to_be_vectorized): Call vect_mark_relevant and
1001         vect_stmt_relevant_p with additional arguments. Phis are no longer
1002         put into the worklist (analyzed seperately in analyze_scalar_cycles).
1003         (vect_determine_vectorization_factor): Also check for LIVE_P, because a
1004         stmt that is marked as irrelevant and live, cause it's only used out
1005         side the loop, may need to be vectorized (e.g. reduction).
1006         (vect_analyze_operations): Examine phis. Call
1007         vectorizable_live_operation for for LIVE_P stmts. Check if
1008         need_to_vectorize.
1009         (vect_analyze_scalar_cycles): Update documentation. Don't fail
1010         vectorization - just classify the scalar cycles created by the loop
1011         phis. Call vect_is_simple_reduction.
1012         (vect_analyze_loop): Call to analyze_scalar_cycles moved earlier.
1013         * tree-vect-transform.c (vect_create_index_for_vector_ref): Update
1014         call to set_stmt_info.
1015         (vect_get_vec_def_for_operand): Code reorganized - the code that
1016         classifies the type of use was factored out to vect_is_simple_use.
1017         (vectorizable_store, vect_is_simple_cond): Call vect_is_simple_use with
1018         additional arguments.
1019         (vectorizable_assignment): Likewise. Also make sure the stmt is relevant
1020         and computes a loop_vec_def.
1021         (vectorizable_operation, vectorizable_load, vectorizable_condition):
1022         Likewise.
1023         (vectorizable_live_operation): New.
1024         (vect_transform_stmt): Handle LIVE_P stmts.
1025         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new fields
1026         STMT_VINFO_LIVE_P and STMT_VINFO_DEF_TYPE.
1027         (new_loop_vec_info, destroy_loop_vec_info): Also handle phis.
1028         (vect_is_simple_use): Determine the type of the def and return it
1029         in a new function argument. Consider vect_reduction_def and
1030         vect_induction_def, but for now these are not supported.
1031         (vect_is_simple_reduction): New. Empty for now.
1032         * tree-vectorizer.h (vect_def_type): New enum type.
1033         (_stmt_vec_info): Added new fields - live and _stmt_vec_info.
1034         (STMT_VINFO_LIVE_P, STMT_VINFO_DEF_TYPE): New accessor macros.
1035         (vect_is_simple_use): New arguments added to function declaration.
1036         (vect_is_simple_reduction): New function declaration.
1037         (vectorizable_live_operation): New function declaration.
1038
1039         * tree-vect-analyze.c (vect_can_advance_ivs_p): Add debug printout.
1040         (vect_can_advance_ivs_p): Likewise.
1041         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Likewise.
1042
1043 2005-06-05  Eric Christopher  <echristo@redhat.com>
1044
1045         * config/mips/mips.c (mips_rtx_costs): Remove unused variable.
1046
1047 2005-06-05  Hans-Peter Nilsson  <hp@bitrange.com>
1048
1049         PR target/21914
1050         * config/mmix/mmix.md ("*movdicc_real_foldable")
1051         ("*movdfcc_real_foldable", "*bCC_foldable")
1052         ("*bCC_inverted_foldable"): Specify DImode for register being
1053         compared.
1054
1055 2005-06-04  Roger Sayle  <roger@eyesopen.com>
1056
1057         * reg-stack.c (struct block_info_def): Correct grammar typo.
1058         (compensate_edge): Clean-up.  Perform as little work as possible
1059         when src and dest stacks match.  Avoid modifying block_info.
1060         Reorder and simplify assertion checks.  Avoid unnecessary copying
1061         of regstack structure.
1062         (convert_regs_1): Set the done flag here...
1063         (convert_regs_2): ... instead of here.
1064
1065 2005-06-04  Dale Johannesen  <dalej@apple.com>
1066
1067         * config/rs6000/rs6000.c (no_global_regs_above): New.
1068         (rs6000_emit_prologue):  Use it; cosmetic formatting fixes.
1069         (rs6000_emit_epilogue):  Use it; cosmetic formatting fixes.
1070         (rs6000_conditional_register_usage): Don't put Darwin PIC
1071         register in global_regs.
1072         (rs6000_stack_info):  Don't set lr_save_p just because Darwin 
1073         PIC reg used.
1074         (rs6000_emit_prologue):  Save LR in R0 around Darwin PIC setup,
1075         if not done by lr_save_p.
1076         * config/rs6000/rs6000.md (insnv1_internal1):  Back out 05-18 patch.
1077         Use rotate instead of ashift.
1078         (call_indirect_nonlocal_sysv):  Prefer CTR to LR.
1079         (call_value_indirect_nonlocal_sysv):  Ditto.
1080
1081 2005-06-04  Jan Hubicka  <jh@suse.cz>
1082
1083         * cgraphunit.c (cgraph_reset_node): Break out from ...
1084         (cgraph_finalize_function): ... here.
1085         (cgraph_finalize_compilation_unit): Reset nodes where backend
1086         removed the body.
1087
1088 2005-06-04  Richard Henderson  <rth@redhat.com>
1089
1090         PR target/21888
1091         * config/alpha/alpha.c (alpha_align_insns): Don't insert nops
1092         until we've passed initial ldgp.
1093
1094 2005-06-04  Daniel Berlin  <dberlin@dberlin.org>
1095
1096         * cfgexpand.c (expand_one_var): Use DECL_HAS_VALUE_EXPR_P.
1097         * dwarf2out.c (loc_descriptor_from_tree_1): Ditto.
1098         * expr.c (expand_var): Ditto.   
1099         * function.c (gimplify_parameters): Use SET_DECL_VALUE_EXPR too.
1100         * gimplify.c (gimplify_decl_expr): Ditto.
1101         (gimplify_expr): Ditto.
1102         * tree-mudflap.c (mf_decl_eligible_p): Use DECL_HAS_VALUE_EXPR_P.
1103         * tree.c (value_expr_for_decl): New.
1104         (print_value_expr_statistics): New.
1105         (init_ttree): Init value_expr_for_decl.
1106         (decl_value_expr_lookup): New.
1107         (decl_value_expr_insert): Ditto.
1108         (copy_node_stat): Copy DECL_VALUE_EXPR status.
1109         * tree.h (DECL_VALUE_EXPR): Use hashtable.
1110         (SET_DECL_VALUE_EXPR): New.
1111         (DECL_HAS_VALUE_EXPR_P): New.
1112
1113 2005-06-04  Steven Bosscher  <stevenb@suse.de>
1114
1115         * lcm.c: Move all mode-switching related functions from here...
1116         * mode-switching.c: ...to this new file.
1117         * doc/passes.texi: Update accordingly.
1118
1119         * basic-block.h (label_value_list): Remove extern decl.
1120         * cfgrtl.c (label_value_list): Remove.
1121         (can_delete_label_p): Don't look at it.
1122         * cfgcleanup.c (cleanup_cfg): Don't free it.
1123
1124         * common.opt: Don't refer to non-existing flag_alias_check.
1125
1126 2005-06-04  David Edelsohn  <edelsohn@gnu.org>
1127
1128         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add power5.
1129
1130 2005-06-04  Kazu Hirata  <kazu@codesourcery.com>
1131
1132         * function.c (prologue, epilogue, sibcall_epilogue): Change
1133         their types to VEC(int,heap)*.
1134         (free_after_compilation): Free the three vectors above.
1135         (init_function_for_compilation, record_insns, contains,
1136         prologue_epilogue_contains, sibcall_epilogue_contains,
1137         reposition_prologue_and_epilogue_notes): Use VEC instead of
1138         VARRAY.  (init_function_once): Remove.
1139         * function.h: Remove the prototype for init_function_once.
1140         * toplev.c (backend_init): Don't call init_function_once.
1141
1142 2005-06-04  Jan Hubicka  <jh@suse.cz>
1143
1144         * predict.c (tree_predict_edge): Do not predict entry edge and
1145         single succestor edge.
1146
1147 2005-06-04  Joseph S. Myers  <joseph@codesourcery.com>
1148
1149         PR c/21873
1150         * c-typeck.c (push_init_level): Don't pop levels without braces if
1151         implicit == 1.
1152
1153 2005-06-03  Sebastian Pop  <pop@cri.ensmp.fr>
1154         
1155         * tree-data-ref.c (compute_self_dependence): New function.
1156         (compute_all_dependences): Use it.
1157
1158 2005-06-03  Geoffrey Keating  <geoffk@apple.com>
1159
1160         * c-parser.c (c_parser_parms_declarator): Don't use chainon().
1161         (c_parser_expr_list): Don't use chainon().
1162
1163         * config/darwin.h (LINK_SPEC): Pass -syslibroot to linker
1164         when -isysroot passed.
1165
1166 2005-06-03  Joseph S. Myers  <joseph@codesourcery.com>
1167
1168         PR c/21879
1169         * c-decl.c (start_function): Restore label_context_stack_se and
1170         label_context_stack_vm  if returning with an error.
1171
1172 2005-06-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1173
1174         * configure.ac: Check declaration for asprintf, needed by
1175         libiberty.h. 
1176         * configure: Regenerate.
1177         * config.in: Likewise.
1178
1179 2005-06-03  Diego Novillo  <dnovillo@redhat.com>
1180
1181         * tree-ssa-dom.c (record_edge_info): Use last_basic_block to
1182         allocate info array.
1183         * tree-vrp.c (extract_range_from_unary_expr): Set resulting
1184         range to varying in cast expressions that change
1185         TYPE_PRECISION.
1186
1187 2005-06-03  Eric Christopher  <echristo@redhat.com>
1188
1189         * config/mips/mips.opt: Add RejectNegative to divide-breaks and
1190         divide-traps.
1191
1192 2005-06-03  Jan Hubicka  <jh@suse.cz>
1193
1194         * basic-block.h (remove_predictions_associated_with_edge): Declare.
1195         * cfg.c (remove_edge): Use it.
1196         * predict.c (remove_predictions_associated_with_edge): New function.
1197
1198 2005-06-03  Pat Haugen  <pthaugen@us.ibm.com>
1199
1200         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
1201         Clear call_realy_used_regs[r2] when ABI_AIX.
1202
1203 2005-06-03  Richard Guenther  <rguenth@gcc.gnu.org>
1204
1205         PR middle-end/21858
1206         * fold-const.c (fold_binary): Fix type mismatches in folding
1207         of comparisons.
1208
1209 2005-06-03  Kazu Hirata  <kazu@codesourcery.com>
1210
1211         * cgraph.c, cgraphunit.c, config/mips/mips.c: Fix comment
1212         typos.
1213
1214 2005-06-03  Joseph S. Myers  <joseph@codesourcery.com>
1215
1216         * collect2.c (maybe_unlink): Use unlink_if_ordinary.
1217
1218 2005-06-02  Bernd Schmidt  <bernd.schmidt@analog.com>
1219
1220         * reload1.c (reload): Revert my previous patch.
1221
1222 2005-06-03  Nick Clifton  <nickc@redhat.com>
1223
1224         * config/arm/semi.h (ASM_SPEC): Fix typo passing -mfloat-abi to
1225         assembler.
1226
1227 2005-06-03  Kazu Hirata  <kazu@codesourcery.com>
1228
1229         PR tree-optimization/21849
1230         * tree-ssa-copy.c (dump_copy_of): Call sbitmap_zero.
1231
1232 2005-06-02  Richard Henderson  <rth@redhat.com>
1233
1234         * Makefile.in (tree-vect-generic.o): New.
1235         (OBJS-common, GTFILES, s-gtype): Add it.
1236         * tree-complex.c (build_replicated_const, vector_inner_type,
1237         vector_last_type, vector_last_nunits, build_word_mode_vector_type,
1238         elem_op_func, tree_vec_extract, do_unop, do_binop, do_plus_minus,
1239         do_negate, expand_vector_piecewise, expand_vector_parallel, 
1240         expand_vector_addition, expand_vector_operation, 
1241         type_for_widest_vector_mode, expand_vector_operations_1, 
1242         gate_expand_vector_operations, expand_vector_operations, 
1243         pass_lower_vector_ssa): Move to tree-vect-generic.c.
1244         (tree_lower_complex): Rename from tree_lower_operations.
1245         (pass_lower_complex): Rename from pass_pre_expand.
1246         * tree-vect-generic.c: New file.
1247         * tree-pass.h (pass_lower_complex): Rename from pass_pre_expand.
1248         (pass_lower_vector): New.
1249         * tree-optimize.c (init_tree_optimization_passes): Update to match.
1250
1251 2005-06-02  Richard Henderson  <rth@redhat.com>
1252
1253         * modulo-sched.c (doloop_register_get): Protect against 
1254         doloop_end not defined.
1255
1256 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
1257
1258         * config/sh/sh.c (general_movsrc_operand,
1259         general_movdst_operand, arith_reg_operand, arith_reg_dest,
1260         logical_reg_operand, int_gpr_dest, fp_arith_reg_operand,
1261         fp_arith_reg_dest, arith_operand, arith_reg_or_0_operand,
1262         xor_operand, cmp_operand, logical_operand, and_operand,
1263         fpscr_operand, fpul_operand, symbol_ref_operand,
1264         commutative_float_operator, noncommutative_float_operator,
1265         unary_float_operator, binary_float_operator,
1266         binary_logical_operator, equality_comparison_operator,
1267         greater_comparison_operator, less_comparison_operator,
1268         shift_operator, logical_operator, target_reg_operand,
1269         target_operand, mextr_bit_offset, extend_reg_operand,
1270         trunc_hi_operand, extend_reg_or_0_operand, minuend_operand,
1271         general_extend_operand, ua_address_operand,
1272         cache_address_operand, inqhi_operand, sh_rep_vec, sh_1el_vec,
1273         sh_const_vec, ua_offset, sh_register_operand, cmpsi_operand,
1274         shift_count_reg_operand, shift_count_operand,
1275         unaligned_load_operand): Move to ...
1276         * config/sh/predicates.md: ... here.
1277         * config/sh/sh.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
1278         Remove.
1279
1280 2005-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
1281
1282         * tree.c (build_common_builtin_nodes): Fix the return type on
1283         __builtin_memcmp.
1284
1285 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
1286
1287         * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Remove.
1288         (find_interesting_uses_address): Use build_fold_addr_expr instead.
1289         (strip_offset_1): Likewise.
1290         (tree_to_aff_combination): Likewise.
1291
1292 2005-06-02  DJ Delorie  <dj@redhat.com>
1293
1294         * convert.c (convert_to_pointer): Avoid recursion if no conversion
1295         is needed.
1296
1297 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
1298
1299         * tree-chrec.c (chrec_fold_plus_1): Ensure we build
1300         binary operations with the correct types.
1301         * tree-ssa-loo-ivopts.c (idx_find_step): Use sizetype
1302         for all computation.
1303
1304 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
1305
1306         * tree-vrp.c, config/arm/arm.md, config/arm/arm1020e.md,
1307         config/rs6000/rs6000.md: Fix comment typos.  Follow splling
1308         conventions.
1309         * doc/install.texi: Fix a typo.
1310
1311 2005-06-02  Jan Hubicka  <jh@suse.cz>
1312
1313         * cgraphunit.c (cgraph_function_and_variable_visibility): Extern
1314         inline functions are not local.
1315
1316 2005-06-02  Kazu Hirata  <kazu@codesourcery.com>
1317
1318         * gimplify.c (gimplify_ctx): Change the type of case_labels to
1319         VEC from VARRAY.
1320         (gimplify_switch_expr, gimplify_case_label_expr): Adjust uses
1321         of case_labels.
1322
1323 2005-06-02  Richard Guenther  <rguenth@gcc.gnu.org>
1324
1325         * c-typeck.c (build_indirect_ref): Build INDIRECT_REF
1326         with correct type.
1327
1328 2005-06-02  Ulrich Weigand  <uweigand@de.ibm.com>
1329
1330         * config/s390/s390.c (s390_add_execute): Do not handle out-of-pool
1331         execute templates.
1332         (s390_dump_pool): Likewise.
1333         (s390_mainpool_start, s390_mainpool_finish): Likewise.
1334         (s390_chunkify_start): Likewise.
1335         (s390_dump_execute): Remove.
1336         (s390_reorg): Handle out-of-pool execute templates.
1337
1338 2005-06-02  Adrian Straetling  <straetling@de.ibm.com>
1339
1340         * optabs.c: (expand_bool_compare_and_swap): Emit barrier after
1341           unconditional jump.
1342
1343 2005-06-02  Jan Hubicka  <jh@suse.cz>
1344
1345         * cgraph.c (cgraph_node): Maintain master clones.
1346         (cgraph_remove_node): Likewise.
1347         (availability_names): New static variable.
1348         (dump_cgraph_node): Dump availability.
1349         (dump_cgraph_varpool_node): Likewise.
1350         (cgraph_is_master_clone, cgraph_master_clone,
1351         cgraph_function_body_availability,
1352         cgraph_variable_initializer_availability): New functions.
1353         * cgraph.h (availability): New enum.
1354         (struct cgraph_node): Add master_clone.
1355         (cgraph_is_master_clone, cgraph_master_clone,
1356         cgraph_function_body_availability,
1357         cgraph_variable_initializer_availability): Declare.
1358         * cgraphunit.c (cgraph_expand_function): Setcgraph_function_flags_ready.
1359         (cgraph_remove_unreachable_nodes): Remove unreachable nodes.
1360         * ipa-inline.c (cgraph_decide_inlining): Do not call
1361         cgraph_remove_unreachable_nodes.
1362
1363         * cgraphunit.c (cgraph_function_and_variable_visibility): Fix typo in
1364         previous patch.
1365
1366 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
1367
1368         PR 21582
1369         * tree-vrp.c (nonnull_arg_p): New.
1370         (get_value_range): Call it.
1371
1372 2005-06-02  Eric Christopher  <echristo@redhat.com>
1373
1374         * config/mips/mips.h (processor_type): Remove PROCESSOR_DEFAULT,
1375         add PROCESSOR_MAX.
1376         (mips_rtx_cost_data): New datatype.
1377         (MEMORY_MOVE_COST): Use data from structure.
1378         (BRANCH_COST): Ditto.
1379         (LOGICAL_OP_NON_SHORT_CIRCUIT): Define to zero.
1380         * config/mips/mips.md (cpu): Rework for processor_type changes.
1381         * config/mips/mips.c (mips_cost): New variable.
1382         (DEFAULT_COSTS): Define.
1383         (mips_rtx_cost_data): New.
1384         (mips_rtx_costs): Use. Minor formatting changes. Use COSTS_N_INSNS
1385         for NEG cost. Add support for FLOAT, UNSIGNED_FLOAT, FIX,
1386         FLOAT_EXTEND, FLOAT_TRUNCATE, and SQRT.
1387         (override_options): Set cost data.
1388         (mips_register_move_cost): Formatting changes.
1389         (bdesc_arrays): Use PROCESSOR_MAX.
1390         (mips_init_builtins): Ditto.
1391
1392 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
1393
1394         PR 21765
1395         * doc/invoke.texi: Document -ftree-vrp.
1396
1397 2005-06-02  Dorit Nuzman  <dorit@il.ibm.com>
1398
1399         PR tree-optimization/21734
1400         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop): Use the
1401         phi_result when current_def is not available.
1402         (slpeel_update_phi_nodes_for_guard1): Don't fail if current_def is not
1403         available.      
1404
1405 2005-06-02  David Edelsohn  <edelsohn@gnu.org>
1406
1407         * config/rs6000/rs6000.c (rs6000_insn_valid_within_doloop): New.
1408         (TARGET_INSN_VALID_WITHIN_DOLOOP): Define.
1409
1410 2005-06-02  Diego Novillo  <dnovillo@redhat.com>
1411
1412         * tree-vrp.c (has_assert_expr, maybe_add_assert_expr): Remove.
1413
1414 2005-06-02  Jan Hubicka  <jh@suse.cz>
1415
1416         * cgraph.c (dump_cgraph_node): Print new flags.
1417         (dump_cgraph_varpool_node): Likewise.
1418         (decide_variable_is_needed): Initialize externally_visible flag.
1419         * cgraph.h (cgraph_local_info): Add externally_visible flag.
1420         (cgraph_varpool_node): Likewise.
1421         (cgraph_function_flags_ready): Declare.
1422         * cgraph.c (cgraph_mark_local_functions): Rename to ...
1423         (cgraph_function_and_variable_visibility) ... this one; handle
1424         externally_visible flags.
1425         (decide_is_function_needed): Set externally_visible flag.
1426         (cgraph_finalize_function): Deal properly with early cleanups.
1427         (cgraph_optimize): Update call of
1428         cgraph_function_and_variable_visibility.
1429
1430 2005-06-02 Steven Bosscher  <stevenb@suse.de>
1431            Mostafa Hagog <mustafa@il.ibm.com>
1432
1433         * cfgloop.h (doloop_condition_get): Make external.
1434         * loop-doloop.c (doloop_condition_get): Generalize to make it
1435         usable in modulo-sched.c.
1436         * modulo-sched.c (doloop_register_get): Use
1437         doloop_condition_get instead of duplicating it.
1438
1439 2005-06-02  Bernd Schmidt  <bernd.schmidt@analog.com>
1440
1441         * reload1.c (reload): Undo 2005-04-20 change.  Make sure we detect
1442         the correct set of init_insns that need deletion.
1443         * local-alloc.c (update_equiv_regs): When substituting sole definition
1444         into sole use of a reg, delete it from liveness information.
1445
1446 2005-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
1447
1448         * config/sh/sh.h (TARGET_FPU_DOUBLE): Use MASK_SH4.
1449
1450 2005-06-01  Diego Novillo  <dnovillo@redhat.com>
1451
1452         PR 14341, PR 21332, PR 20701, PR 21029, PR 21086, PR 21090
1453         PR 21289, PR 21348, PR 21367, PR 21368, PR 21458.
1454         * fold-const.c (invert_tree_comparison): Make extern.
1455         * tree-flow.h (enum value_range_type): Move to tree-ssa-propagate.
1456         (struct value_range_def): Limewise.
1457         (get_value_range): Remove.
1458         (dump_value_range): Remove.
1459         (dump_all_value_ranges): Remove.
1460         (debug_all_value_ranges): Remove.
1461         (vrp_evaluate_conditional): Declare.
1462         * tree-ssa-propagate.c (struct prop_stats_d): Add field
1463         num_pred_folded.
1464         (substitute_and_fold): Add argument use_ranges_p.
1465         Update all callers.
1466         If use_ranges_p is true, call fold_predicate_in to fold
1467         predicates using range information.
1468         Ignore ASSERT_EXPRs.
1469         Change debugging output to only show statements that have been
1470         folded.
1471         (replace_phi_args_in): Move debugging output code from
1472         substitute and fold.
1473         (fold_predicate_in): New local function.
1474         * tree-ssa-propagate.h (enum value_range_type): Move from
1475         tree-flow.h.
1476         (struct value_range_d): Likewise.
1477         Add field 'equiv'. 
1478         (value_range_t): Rename from value_range.
1479         * tree-vrp.c (found_in_subgraph): Rename from found.
1480         (get_opposite_operand): Remove.
1481         (struct assert_locus_d): Declare.
1482         (assert_locus_t): Declare.
1483         (need_assert_for): Declare.
1484         (asserts_for): Declare.
1485         (blocks_visited): Declare.
1486         (vr_value): Declare.
1487         (set_value_range): Add argument 'equiv'.
1488         Don't drop to VARYING ranges that cover all values in the
1489         type.
1490         Make deep copy of equivalence set 'equiv'.
1491         (copy_value_range): New local function.
1492         (set_value_range_to_undefined): New local function.
1493         (compare_values): Return -2 if either value has overflowed.
1494         (range_includes_zero_p): New local function.
1495         (extract_range_from_assert): Flip the predicate code if the
1496         name being asserted is on the RHS of the predicate.
1497         Avoid creating unnecessary symbolic ranges if the comparison
1498         includes another name with a known numeric range.
1499         Update the equivalnce set of the new range when asserting
1500         EQ_EXPR predicates.
1501         (extract_range_from_ssa_name): Update the equivalence set of
1502         the new range with VAR.
1503         (extract_range_from_binary_expr): Also handle TRUTH_*_EXPR.
1504         If -fwrapv is used, set the resulting range to VARYING if the
1505         operation overflows.  Otherwise, use TYPE_MIN_VALUE and
1506         TYPE_MAX_VALUE to represent -INF and +INF.
1507         Fix handling of *_DIV_EXPR.
1508         (extract_range_from_unary_expr): Handle MINUS_EXPR and
1509         ABS_EXPR properly by switching the range around if necessary.
1510         (extract_range_from_comparison): New local function.
1511         (extract_range_from_expr): Call it.
1512         (adjust_range_with_scev): Do not adjust the range if using
1513         wrapping arithmetic (-fwrapv).
1514         (dump_value_range): Also show equivalence set.
1515         Show -INF and +INF for TYPE_MIN_VALUE and TYPE_MAX_VALUE.
1516         (build_assert_expr_for): Also build ASSERT_EXPR for EQ_EXPR.
1517         (infer_value_range): Change return value to bool.
1518         Add arguments 'comp_code_p' and 'val_p'.
1519         Do not attempt to infer ranges from statements that may throw.
1520         Store the comparison code in comp_code_p.
1521         Store the other operand to be used in the predicate in val_p.
1522         (dump_asserts_for): New.
1523         (debug_asserts_for): New.
1524         (dump_all_asserts): New.
1525         (debug_all_asserts): New.
1526         (register_new_assert_for): New.
1527         (register_edge_assert_for): New.
1528         (find_conditional_asserts): New.
1529         (find_assert_locations): New.
1530         (process_assert_insertions_for): New.
1531         (process_assert_insertions): New.
1532         (insert_range_assertions): Initialize found_in_subgraph,
1533         blocks_visited, need_assert_for and asserts_for.
1534         Call find_assert_locations and process_assert_insertions.
1535         (remove_range_assertions): Add more documentation.
1536         (vrp_initialize): Change return type to void.
1537         Do not try to guess if running VRP is worth it.  
1538         (compare_name_with_value): New.
1539         (compare_names): New.
1540         (vrp_evaluate_conditional): Add argument 'use_equiv_p'.  If
1541         use_equiv_p is true, call compare_names and
1542         compare_name_with_value to compare all the ranges for every
1543         name in the equivalence set of the predicate operands.
1544         Update all callers.
1545         (vrp_meet): Try harder not to derive a VARYING range.
1546         If two values meet, the resulting equivalence set is the
1547         intersection of the two equivalence sets.
1548         (vrp_visit_phi_node): Call copy_value_range to get the current
1549         range information of the LHS.
1550         (vrp_finalize): Create a value vector representing all the
1551         names that ended up with exactly one value in their range.
1552         Call substitute_and_fold.
1553         (execute_vrp): Document equivalence sets in ranges.
1554         * tree.h (SSA_NAME_VALUE_RANGE): Remove.
1555         (struct tree_ssa_name): Remove field value_range.
1556         (invert_tree_comparison): Declare.
1557
1558 2005-06-01  Daniel Berlin  <dberlin@dberlin.org>
1559
1560         Fix PR tree-optimization/21839
1561
1562         * gimplify.c (zero_sized_field_decl): New function.
1563         (gimplify_init_ctor_eval): Use it.
1564
1565 2005-06-01  Josh Conner <jconner@apple.com>
1566
1567         PR 21478
1568         * gimplify.c (gimplify_init_constructor): Don't spill initializer
1569         to read-only memory if it's sparse.
1570
1571 2005-06-01  Ramana Radhakrishnan  <ramana@codito.com>
1572
1573         * doc/rtl.texi: Remove references to NOTE_INSN_SETJMP. 
1574         Add documentation for REG_SETJMP
1575
1576 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
1577
1578         * stmt.c (expand_case): Use build_int_cst.
1579         (node_has_low_bound): Likewise, and correct type mismatch.
1580         (node_has_high_bound): Likewise.
1581         * fold-const.c (fold_binary): Ensure we build trees
1582         with the correct types - undo what STRIP_NOPS possibly did.
1583
1584 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
1585
1586         * tree.h (fold_indirect_ref_1): Export from fold-const.c.
1587         * fold-const.c (fold_indirect_ref_1): No longer static.
1588         * tree-inline.c (copy_body_r): Use fold_indirect_ref_1 for
1589         folding, if possible.
1590
1591 2005-06-01  Joseph S. Myers  <joseph@codesourcery.com>
1592
1593         * common.opt (fjump-tables): New.
1594         * doc/invoke.texi (-fno-jump-tables): Document.
1595         * stmt.c (expand_end_case_type): Do not emit jump tables unless
1596         flag_jump_tables.
1597
1598 2005-06-01  Richard Earnshaw  <richard.earnshaw@arm.com>
1599
1600         * arm.md (bunordered, bordered, bungt, bunlt, bunge, bunle, buneq)
1601         (bltgt, arm_buneq, arm_bltgt, sunordered, sordered, sungt, sunge)
1602         (sunlt, sunle): Enable patterns on VFP.
1603
1604         * arm.md (attribute 'type'): Add new types - f_loads floadd, f_stores,
1605         f_stored, f_flag, f_cvt.
1606         (generic_sched): No-longer used for the arm1020e and arm1022e cores.
1607         Include arm1020e.md.
1608         * vfp.md (fmstat): New cpu unit.  Add an exclusion set between it and
1609         the ds and fmac pipelines.  Re-work all load and store patterns and
1610         all conversion patterns to use new attributes.  Adjust reservation
1611         descriptions accordingly.
1612         * arm1020e.md: New file.
1613         * t-arm: Add dependency.
1614
1615 2005-06-01  Jan Hubicka  <jh@suse.cz>
1616
1617         * except.c (struct eh_region): Kill unused fields.
1618         * basic-block.h (struct basic_block_def): Likewise.
1619
1620 2005-06-01  J"orn Rennecke <joern.rennecke@st.com>
1621
1622         PR rtl-optimization/21767
1623         * rtl.h (function_invariant_p): Re-add declaration.
1624         * reload1.c (function_invariant_p): No longer static.
1625         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL notes that
1626         might have become invalid.
1627
1628 2005-06-01  Jakub Jelinek  <jakub@redhat.com>
1629
1630         PR c/21536
1631         PR c/20760
1632         * gimplify.c (gimplify_decl_expr): Call gimplify_type_sizes
1633         on variable sizes types if a decl is a pointer to a VLA.
1634         (gimplify_type_sizes): Handle POINTER_TYPE and REFERENCE_TYPE.
1635         Call gimplify_type_sizes on aggregate fields.  Prevent infinite
1636         recursion.
1637
1638         * fold-const.c (fold_ternary): Optimize BIT_FIELD_REF of VECTOR_CST.
1639
1640         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss, _mm_set1_ps,
1641         _mm_set_ps, _mm_setr_ps): Add __extension__.
1642         * config/i386/emmintrin.h (_mm_set_sd, _mm_set1_pd, _mm_set_pd,
1643         _mm_setr_pd, _mm_setzero_pd, _mm_set_epi64x, _mm_set_epi64x,
1644         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128):
1645         Likewise.
1646         (_mm_clflush): Don't use return in void function.
1647
1648         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128,
1649         _mm_castps_pd, _mm_castps_si128, _mm_castsi128_ps, _mm_castsi128_pd):
1650         Use __inline instead of inline.
1651
1652 2005-06-01  Richard Guenther  <rguenth@gcc.gnu.org>
1653
1654         * fold-const.c (fold_binary): Fix types in strlen vs.
1655         zero comparison folding.
1656
1657 2005-06-01  Richard Henderson  <rth@redhat.com>
1658
1659         * configure.ac (HAVE_AS_JSRDIRECT_RELOCS): New.
1660         * config.in, configure: Rebuild.
1661         * config/alpha/alpha.c (print_operand): Add 'j'.
1662         * alpha.md (divmodsi_internal_er_1): Use it.
1663         (divmoddi_internal_er_1): Likewise.
1664
1665 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
1666
1667         * system.h (TARGET_OPTIONS, TARGET_SWITCHES): Poison.
1668         * opts.h (print_filtered_help): Delete.
1669         * opts.c (handle_option, decode_options): Remove calls to
1670         set_target_switch.
1671         (print_target_help): New function.
1672         (common_option, print_help): Call print_target_help instead of
1673         display_target_options.
1674         (print_filtered_help): Make static.
1675         * toplev.h (display_target_options, set_target_switch): Delete.
1676         * toplev.c (target_switches, target_options, display_target_options)
1677         (set_target_switch): Delete.
1678         (print_switch_values): Remove handling of TARGET_SWITCHES and
1679         TARGET_OPTIONS.
1680         (default_get_pch_validity): Likewise.  Only treat target_flags
1681         specially if targetm.check_pch_target_flags is nonnull.
1682         (pch_option_mismatch): New function.
1683         (default_pch_valid_p): Use it.  Remove handling of TARGET_SWITCHES
1684         and TARGET_OPTIONS.  Only treat target_flags specially if
1685         targetm.check_pch_target_flags is nonnull.
1686         * config/ia64/ia64.c (ia64_override_options): Don't mention
1687         TARGET_OPTIONS in comment.
1688         * config/m68k/m68k-none.h (CC1_SPEC): Likewise.
1689         * doc/invoke.texi: Remove a reference to TARGET_SWITCHES.
1690         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS): Don't mention the
1691         interaction with TARGET_SWITCHES.
1692         (TARGET_@var{featurename}, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
1693
1694 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
1695
1696         * config/sh/sh.c (multcosts): Check sh_multcost rather than
1697         sh_multcost_str.
1698         (sh_register_move_cost): Likewise sh_gettrcost and sh_gettrcost_str.
1699         (sh_multcost_str, sh_gettrcost_str, sh_div_str, sh_divsi3_libfunc)
1700         (cut2_workaround_str): Delete.
1701         * config/sh/sh.h (SUBTARGET_OPTIONS, TARGET_OPTIONS)
1702         (TARGET_SH5_CUT2_WORKAROUND, sh_multcost_str, sh_gettrcost_str)
1703         (sh_div_str, sh_divsi3_libfunc, cut2_workaround_str): Delete.
1704         * config/sh/sh.opt (mcut2-workaround, mdiv=, mdivsi3_libfunc=)
1705         (mgettrcost=, multcost=): New options.
1706
1707 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
1708
1709         * opts.h (cl_option_state): New structure.
1710         (get_option_state): Declare.
1711         * opts.c (get_option_state): New function.
1712         * toplev.c (option_affects_pch_p): New function.
1713         (default_get_pch_validity): Store the state of all options for which
1714         option_affects_pch_p returns true.
1715         (default_pch_valid_p): Check the state of those options here.
1716         Only check target_flags separately if targetm.check_pch_target_Flags
1717         is nonnull or if TARGET_SWITCHES is defined.
1718
1719 2005-06-01  Richard Sandiford  <rsandifo@redhat.com>
1720
1721         * config/mips/mips-protos.h (mips_use_ins_ext_p): Remove parameter
1722         names.
1723
1724 2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>
1725
1726         * modulo-sched.c (undo_generate_reg_moves ): Fix PR 21138.
1727
1728 2005-06-01 Mostafa Hagog <mustafa@il.ibm.com>
1729
1730         * gcse.c (compute_transp, load_killed_in_block): Use 
1731         MEM_READONLY_P.
1732
1733 2005-06-01  David.Billinghurst  <David.Billinghurst@riotinto.com>
1734
1735         PR target/21854
1736         * config/mips/mips-protos.h: Declare mips_use_ins_ext_p
1737         
1738 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1739
1740         * errors.h (warning, error, fatal, internal_error): Add printf
1741         attribute.
1742         * genmodes.c (make_vector_mode): Fix format arguments.
1743
1744 2005-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1745
1746         * basic-block.h, bb-reorder.c, c-gimplify.c, config/darwin.c,
1747         config/rs6000/rs6000-c.c, dominance.c, gimple-low.c, gimplify.c,
1748         lambda-code.c, lambda-trans.c, tree-browser.c, tree-cfg.c,
1749         tree-chrec.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
1750         tree-if-conv.c, tree-into-ssa.c, tree-loop-linear.c,
1751         tree-mudflap.c, tree-nomudflap.c, tree-outof-ssa.c,
1752         tree-pretty-print.c, tree-scalar-evolution.c, tree-sra.c,
1753         tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
1754         tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-live.c,
1755         tree-ssa-operands.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
1756         tree-ssa-propagate.c, tree-ssa-sink.c, tree-ssa-threadupdate.c,
1757         tree-ssa-uncprop.c, tree-ssa.c, tree-vect-analyze.c,
1758         tree-vect-transform.c, tree-vectorizer.c, vec.c: Don't include
1759         errors.h and include toplev.h if necessary.
1760         
1761         * rtl.c, varray.c: If we're compiling as a GENERATOR_FILE, include
1762         errors.h otherwise include toplev.h.
1763         
1764         * Makefile.in: Update dependencies.
1765         
1766 2005-06-01  Danny Smith  <dannysmith@users.sourceforge.net>
1767
1768         * config/i386/cygming.h (NO_PROFILE_COUNTERS): Define.
1769
1770 2005-05-31  Geoffrey Keating  <geoffk@geoffk.org>
1771
1772         * config/rs6000/rs6000.md (sync_boolcshort_internal): New.
1773         * config/rs6000/rs6000.c (rs6000_emit_sync): Shift count must
1774         be complemented for big-endian.  Mask for AND must be rotated,
1775         not shifted.  Handle short operands with NOT on the memory
1776         operation.
1777
1778 2005-05-30  Daniel Berlin  <dberlin@dberlin.org>
1779
1780         * c-objc-common.c (c_tree_printer): Check flag before hashtable.
1781         Use DECL_DEBUG_EXPR and SET_DECL_DEBUG_EXPR.
1782         * dwarf2out.c (dwarf2out_var_location): Ditto.
1783         * toplev.c (default_tree_printer): Ditto.
1784         * tree-outof-ssa.c (create_temp): Ditto.
1785         * tree-sra.c (instantiate_element): Ditto.
1786         * var-tracking.c (track_expr_p): Ditto.
1787         * tree.c (struct tree_map): New structure.
1788         (debug_expr_for_decl): New.
1789         (tree_map_eq): New function.
1790         (tree_map_hash): Ditto.
1791         (tree_map_marked_p): Ditto.
1792         (print_debug_expr_statistics): Ditto.
1793         (decl_debug_expr_lookup): Ditto.
1794         (decl_debug_expr_insert): Ditto.
1795         (dump_tree_statistics): Dump debug_expr hashtable stats.
1796         * tree.h (DECL_DEBUG_EXPR): Change
1797         (SET_DECL_DEBUG_EXPR): Add.
1798         
1799 2005-06-01  Alan Modra  <amodra@bigpond.net.au>
1800
1801         * configure.ac: Add --enable-secureplt.
1802         (HAVE_AS_REL16): Test for R_PPC_REL16 relocs.
1803         * config.in: Regenerate.
1804         * configure: Regenerate.
1805         * config.gcc (powerpc64-*-linux*, powerpc-*-linux*): Add
1806         rs6000/secureplt.h to tm_file when enable_secureplt.
1807         * doc/invoke.texi (msecure-plt, mbss-plt): Document.
1808         * doc/install.texi: Document --enable-targets and --enable-secureplt.
1809         Correct xrefs to "Using the GNU Compiler Collection (GCC)".
1810         * config/rs6000/secureplt.h: New file.
1811         * config/rs6000/sysv4.h (TARGET_SECURE_PLT): Define.
1812         (SUBTARGET_OVERRIDE_OPTIONS): Error if -msecure-plt given without
1813         assembler support.
1814         (CC1_SECURE_PLT_DEFAULT_SPEC): Define.
1815         (CC1_SPEC): Delete duplicate mno-sdata.  Invoke cc1_secure_plt_default.
1816         (SUBTARGET_EXTRA_SPECS): Add cc1_secure_plt_default.
1817         * config/rs6000/sysv4.opt (msecure-plt, bss-plt): Add options.
1818         * config/rs6000/rs6000.h (TARGET_SECURE_PLT): Define.
1819         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Handle
1820         TARGET_SECURE_PLT got register load sequence.
1821         (rs6000_emit_prologue): Call rs6000_emit_load_toc_table when
1822         TARGET_SECURE_PLT.
1823         (rs6000_elf_declare_function_name): Don't emit toc address offset
1824         word when TARGET_SECURE_PLT.
1825         * config/rs6000/rs6000.md (elf_high, elf_low): Move past load_toc_*.
1826         (load_toc_v4_PIC_1) Enable for TARGET_SECURE_PLT.
1827         (load_toc_v4_PIC_3b, load_toc_v4_PIC_3c): New insns.
1828         (call, call_value): Mark pic_offset_table_rtx used for sysv pic and
1829         TARGET_SECURE_PLT.
1830         (call_nonlocal_sysv, call_value_nonlocal_sysv, sibcall_nonlocal_sysv,
1831         sibcall_value_nonlocal_sysv): Add 32768 offset when TARGET_SECURE_PLT
1832         and -fPIC.
1833         * config/rs6000/tramp.asm (trampoline_initial): Use "bcl 20,31".
1834         (__trampoline_setup): Likewise.  Init r30 before plt call.
1835
1836 2005-05-31  DJ Delorie  <dj@redhat.com>
1837
1838         * expr.c (convert_move): When a partial_int requires multiple
1839         conversion steps, make sure successive steps convert the
1840         intermediate value, not the original value.
1841
1842         * expmed.c (expand_mult): Convert partial_int multiplies to
1843         shift/add combinations too.
1844
1845         * genmodes.c (mode_data): Add wider_2x.
1846         (calc_wider_mode): Calculate twice-wider mode too.
1847         (emit_mode_wider): Emit twice-wider mode too.
1848         * machmode.h (mode_2xwider, GET_MODE_2XWIDER_MODE): New.
1849         * expr.c (expand_expr_real_1): Use it for expanding
1850         multiplies.
1851
1852 2005-05-31  Zdenek Dvorak  <dvorakz@suse.cz>
1853
1854         PR tree-optimization/21817
1855         * tree-ssa-loop-im.c (for_each_index): Handle VECTOR_CST.
1856
1857 2005-05-31  Pat Haugen  <pthaugen@us.ibm.com>
1858
1859         * loop.c (loop_invariant_p, valid_initial_value_p): Revert last
1860         change.
1861
1862 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
1863
1864         PR middle-end/20931
1865         PR middle-end/20946
1866         * fold-const.c (fold_checksum_tree): Copy types also if
1867         TYPE_CONTAINS_PLACEHOLDER_INTERNAL is set.
1868         Don't call fold_checksum_tree for TREE_LIST's TREE_CHAIN
1869         first.
1870         Tail recurse TREE_LIST's TREE_CHAIN.
1871
1872 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
1873
1874         PR tree-opt/21732
1875         * tree-ssa-copy.c (dump_copy_of): Create a bitmap and don't visit a
1876         SSA_NAME twice and cause the loop to become finite.  Remove the test
1877         for val.
1878
1879 2005-05-31  Andrew Pinski  <pinskia@physics.uc.edu>
1880
1881         * tree-cfg.c (verify_expr): Add checking for COND_EXPR's conditional
1882         expression.
1883
1884 2005-05-31  Richard Sandiford  <rsandifo@redhat.com>
1885
1886         * doc/tm.texi (TARGET_GET_PCH_VALIDITY, TARGET_PCH_VALID_P): Tweak
1887         the documentation to make it more future-proof.
1888         (TARGET_CHECK_PCH_TARGET_FLAGS): Document this new hook.
1889         * target.h (gcc_target): Add check_pch_target_flags.
1890         * target-def.h (TARGET_CHECK_PCH_TARGET_FLAGS): New macro.
1891         (TARGET_INITIALIZER): Include it.
1892         * toplev.c (default_pch_valid_p): Use targetm.check_pch_target_flags.
1893         * config/sh/sh-protos.h (sh_pch_valid_p): Delete.
1894         * config/sh/sh.c (TARGET_PCH_VALID_P, sh_pch_valid_p): Delete.
1895         (sh_check_pch_target_flags): New function.
1896         (TARGET_CHECK_PCH_TARGET_FLAGS): Override default.
1897
1898 2005-05-31  Richard Guenther  <rguenth@gcc.gnu.org>
1899
1900         * fold-const.c (extract_array_ref): Handle more cases,
1901         do some useful canonicalization of the base.
1902         (fold_binary): Explicitly deal with arrays of zero-sized
1903         structures during folding of &a[i] == &a[j].
1904
1905 2005-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
1906
1907         * doc/install.texi (sparc-sun-solaris2*): Update note
1908         about Sun bug 4910101.
1909         (sparc-sun-solaris2.7): Document bootstrap
1910         failure with Sun WorkShop 6 99/08/18 as.
1911
1912 2005-05-30  Pat Haugen  <pthaugen@us.ibm.com>
1913
1914         * loop.c (loop_invariant_p, valid_initial_value_p): Use
1915         regs_invalidated_by_call instead of call_used_regs.
1916
1917 2005-05-30  Paolo Carlini  <pcarlini@suse.de>
1918
1919         PR middle-end/21743
1920         * builtins.def (BUILT_IN_CLOG, BUILT_IN_CLOGF, BUILT_IN_CLOGL):
1921         Enable.
1922         * doc/extend.texi: Add clog, clogf, clogl.
1923
1924 2005-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1925
1926         PR middle-end/20303
1927         * c-pragma.c: Include "vec.h".
1928         (handle_pragma_visibility): Use VEC.
1929
1930         * doc/invoke.texi: Remove the nested visibility push limit.
1931
1932 2005-05-30  Roger Sayle  <roger@eyesopen.com>
1933
1934         PR rtl-optimization/15422
1935         * reg-stack.c (starting_stack_p): New static global.
1936         (straighten_stack): Delete prototype. Change to update the stack
1937         before the current insn.
1938         (subst_stack_regs): Update call to straighten stack.
1939         (emit_swap_insn): Delete prototype.  For the first insn in a
1940         basic block, update stack_in instead of emitting a real swap.
1941         (change_stack): When changing the stack before the first insn
1942         in a basic block, update stack_in instead of emitting real code.
1943         (compensate_edges): Clear starting_stack_p during compensation.
1944         (convert_regs_1): Keep track of starting_stack_p whilst processing
1945         a basic block.
1946
1947 2005-05-30  Kazu Hirata  <kazu@cs.umass.edu>
1948
1949         * tree-ssa-ccp.c (const_val): Make it static.
1950
1951 2005-05-29  Geoffrey Keating  <geoffk@apple.com>
1952
1953         PR target/21761
1954         * config/rs6000/rs6000.md: Remove stray TARGET_32BIT from
1955         pattern involving `:P'.
1956
1957         * Makefile.in (install-cpp): Depend on installdirs.
1958
1959 2005-05-30  Kazu Hirata  <kazu@cs.umass.edu>
1960
1961         * tree-outof-ssa.c (_elim_graph): Change the type of edge_list
1962         to VEC(int,heap)*.
1963         (new_elim_graph, clear_elim_graph, delete_elim_graph,
1964         elim_graph_add_edge, elim_graph_remove_succ_edge,
1965         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED): Use VEC
1966         instead of VARRAY.
1967
1968 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
1969
1970         * cgraphunit.c, ipa-inline.c, loop-iv.c, modulo-sched.c,
1971         opts.c, postreload-gcse.c, tree-browser.def, tree-eh.c,
1972         tree-ssa-copyrename.c, tree-vect-analyze.c: Fix typos and
1973         follow spelling conventions in error/dump messages.
1974
1975 2005-05-29  Roger Sayle  <roger@eyesopen.com>
1976             Richard Henderson  <rth@redhat.com>
1977
1978         * ifcvt.c (noce_emit_move_insn): Construct a SET pattern directly
1979         if the RHS isn't suitable for calling emit_move_insn.
1980
1981 2005-05-29  Kazu Hirata  <kazu@cs.umass.edu>
1982
1983         * tree-ssa-ccp.c (ccp_fold): Return immediately after calling
1984         fold_unary and fold_binary.
1985
1986 2005-05-29  Roger Sayle  <roger@eyesopen.com>
1987
1988         * reg-stack.c (propagate_stack): Always copy the source stack to
1989         the destination.  This routine is now only called when this is safe.
1990         (better_edge): New function split out from convert_regs_1 to
1991         determine which of two edges is better to propagate across.
1992         (convert_regs_1):  We need only search for a best edge if the
1993         stack layout hasn't been defined yet.  Use better_edge to help
1994         find beste.  No longer traverse unnecessary edges.
1995
1996 2005-05-29  Keith Besaw  <kbesaw@us.ibm.com>
1997
1998         * tree-ssa-alias.c (new_type_alias): New procedure to
1999         create a type memory tag for a pointer with a may-alias
2000         set determined from a variable declaration.
2001         * tree-flow.h: export declaration of new_type_alias
2002         * tree-optimize.c (init_tree_optimization_passes): document
2003         that pass_may_alias cannot be called after pass_vectorize.
2004         * tree-vect-transform (vect_create_data_ref_ptr): Call
2005         new_type_alias when an type memory tag isn't available
2006         for a reference.
2007         (vectorizable_store): Use copy_virtual_operands to update
2008         virtual defs in place (so that loop_version can be called).
2009         Call mark_for_renaming for the virtual defs in case peeling
2010         is done and virtual uses outside the loop need to be updated.
2011
2012 2005-05-29  Dorit Naishlos  <dorit@il.ibm.com>
2013
2014         PR tree-optimization/21639
2015         * tree-complex.c (pass_lower_vector_s): Remove TODO_ggc_collect.
2016
2017 2005-05-29  Jan Hubicka  <jh@suse.cz>
2018
2019         PR tree-optimization/21562
2020         * cfgexpand.c (construct_init_block): Deal properly with the case
2021         of entry edge not pointing to very first basic block.
2022
2023 2005-05-28  Kazu Hirata  <kazu@cs.umass.edu>
2024
2025         * tree-ssa-ccp.c (ccp_fold): Remove code that produces
2026         non-gimple min invariant.
2027
2028         * Makefile.in (OBJS-common): Add tree-cfgcleanup.o.
2029         * tree-flow.h: Add prototypes for start_recording_case_labels
2030         and end_recording_case_labels.
2031         * tree-cfg.c (start_recording_case_labels,
2032         end_recording_case_labels): Export.
2033         (cleanup_tree_cfg_loop, modified_noreturn_calls,
2034         cleanup_control_flow, cleanup_control_expr_graph,
2035         remove_fallthru_edge, phi_alternatives_equal,
2036         tree_forwarder_block_p, has_abnormal_incoming_edge_p,
2037         remove_forwarder_block, cleanup_forwarder_blocks,
2038         remove_forwarder_block_with_phi, merge_phi_nodes,
2039         gate_merge_phi, pass_merge_phi): Move to ...
2040         * tree-cfgcleanup.c: ... here.
2041
2042         * basic-block.h: Remove forward declaration of bb_ann_d.
2043
2044 2005-05-28  Jan Hubicka  <jh@suse.cz>
2045
2046         * tree-ssa-threadupdate.c: (create_edge_and_update_destination_phis):
2047         Update profile.
2048         * value-prof.c (tree_divmod_fixed_value_transform): Be more verbose in
2049         debug output.
2050         (tree_mod_subtract): Fix profile updating code.
2051         (tree_divmod_values_to_profile): Do not produce useless value profilers
2052         for divisions.
2053
2054 2005-05-28  Kazu Hirata  <kazu@cs.umass.edu>
2055
2056         * tree-ssa-dom.c (vrp_element_p): Define.
2057         (vrp_hash_elt): Change the type of records to
2058         VEC(vrp_element_p,heap).
2059         (vrp_free): New.
2060         (tree_ssa_dominator_optimize): Pass vrp_free to htab_create.
2061         Update uses of VRP records.
2062         (simplify_cond_and_lookup_avail_expr, record_range): Update
2063         uses of VRP records.
2064
2065         * tree-inline.c (cfun_stack): Change the type to
2066         VEC(function_p,heap).
2067         (push_cfun, pop_cfun): Use VEC instead of VARRAY.
2068
2069 2005-05-27  Ian Lance Taylor  <ian@airs.com>
2070
2071         * c-decl.c (add_stmt): Add C frontend specific version.
2072         (stmts_are_full_exprs_p): Remove.
2073         * c-common.h (STMT_IS_FULL_EXPR_P): Remove.
2074         (stmts_are_full_exprs_p): Don't declare.
2075         * c-semantics.c (add_stmt): Remove.
2076
2077 2005-05-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2078
2079         * config/mips/mips-protos.h (mips_declare_object): Add printf
2080         attribute.
2081         * config/mips/mips.c (mips_declare_object_name): Fix format
2082         argument.
2083
2084 2005-05-27  Roger Sayle  <roger@eyesopen.com>
2085
2086         * reg-stack.c (compensate_edge): Remove original prototype.
2087         (propagate_stack): New function to copy the stack layout
2088         at the start of a basic block from the layout at the end of
2089         one of its predecessors.
2090         (compensate_edge): Assume that both source and destination
2091         blocks have already had their stack layouts defined.
2092         (compensate_edges): Traverse all non-entry edges in the CFG
2093         and call compensate_edge on each in turn.
2094         (convert_regs_1): Change return type to void.  Call
2095         propagate_stack instead of compensate_edge.
2096         (convert_regs_2): Change return type to void.  Update call
2097         to convert_regs_1 to ignore the (now void) return value.
2098         (convert_regs): Update calls to convert_regs_2 to ignore
2099         the (now void) return value.  After all the basic blocks have
2100         been processed, call compensate_edges to actually emit new
2101         insns.
2102         (reg_to_stack): Initialize the aux info for each basic block
2103         with FOR_EACH_BB instead of which FOR_EACH_BB_REVERSE.
2104
2105 2005-05-28  Jan Hubicka  <jh@suse.cz>
2106
2107         * except.c (can_throw_internal_1, can_throw_external_1): Add 
2108         "is_resx" argument.
2109         (can_throw_external, can_throw_internal): Bring into sync wrt
2110         dealing resx.
2111         * except.h (can_throw_internal_1, can_throw_external_1): Update
2112         prototype.
2113         * tree-eh.c (tree_can_throw_internal, tree_can_throw_external):
2114         Deal properly with resx.
2115
2116 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
2117
2118         * basic-block.h (basic_block_def): Add phi_nodes and
2119         predictions.  Remove tree_annotations.
2120         * predict.c (tree_predicted_by_p, tree_predict_edge,
2121         combine_predictions_for_bb): Adjust references to predictions.
2122         * tree-cfg.c (init_empty_tree_cfg, create_bb): Don't call
2123         create_block_annotation.
2124         (create_block_annotation, free_blocks_annotatios,
2125         clear_blocks_annotations): Remove.
2126         (dump_cfg_stats): Don't print out the memory spent on
2127         bb_ann_d.
2128         (delete_tree_cfg_annotations): Don't call free_blocks_annotations.
2129         * tree-flow-inline.h (bb_ann): Remove.
2130         (phi_nodes, set_phi_nodes): Update references to phi_nodes.
2131         * tree-flow.h (bb_ann_d): Remove.
2132         * tree-if-conv.c (process_phi_nodes): Update a reference to
2133         phi_nodes.
2134         * tree-phinodes.c (reserve_phi_args_for_new_edge,
2135         create_phi_node, remove_phi_node): Likewise.
2136         * tree-pretty-print.c (dump_generic_bb_buff): Don't call bb_ann.
2137         * tree-ssa-dom.c (threaded_blocks): New.
2138         (tree_ssa_dominator_optimize): Initialize, clear, and free
2139         threaded_blocks. Update a call to thread_through_all_blocks.
2140         (thread_across_edge): Use threaded_blocks instead of setting
2141         incoming_edge_threaded.
2142         * tree-ssa-threadupdate.c (threaded_through_all_blocks): Take
2143         a bitmap of blocks that are threaded through.
2144         * tree.h: Move the prototype of threaded_through_blocks to
2145         tree-flow.h.
2146
2147         * domwalk.c (walk_dominator_tree, init_walk_dominator_tree,
2148         fini_walk_dominator_tree): Use VEC instead of VARRAY.
2149         * domwalk.h (dom_walk_data): Change the type of
2150         block_data_stack and free_block_data to VEC(void_p,heap)*.
2151         * tree-ssa-dse.c (dse_initialize_block_local_data,
2152         dse_optimize_stmt, dse_record_phis, dse_finalize_block): Use
2153         VEC instead of VARRAY.
2154
2155 2005-05-27  Jan Hubicka  <jh@suse.cz>
2156
2157         * cgraph.c: Include tree-gimple.h
2158         (cgraph_edge): Rename expr to stmt.
2159         (cgraph_create_edge): Likewise.
2160         (cgraph_clone_node): Likewise.
2161         * cgraph.h (cgraph_node): Use call_stmt instead of call_expr.
2162         * cgraphunit.c (record_call_1): Rename to ...
2163         (record_reference): ... this one; do not build edges.
2164         (cgraph_varpool_analyze_pending_decls): Call record_reference directly.
2165         (current_basic_block): Kill.
2166         (cgraph_create_edges): Rewrite to work on gimple statements nicely.
2167         (verify_cgraph_node): Likewise.
2168         * tree-inline.c (copy_body_r): Do not mess up with cgraph edges.
2169         (copy_bb): Mess up with cgraph edges here; simplify EH handling.
2170         (copy_edges_for_bb): Simplify EH handling.
2171         (expand_call_inline): Pass statement to cgraph_edge and
2172         cgraph_create_edge.
2173
2174 2005-05-27  Richard Guenther  <rguenth@gcc.gnu.org>
2175
2176         * tree-inline.c (copy_body_r): Manually fold *& to deal
2177         with ADDR_EXPRs with mismatched types for now.
2178
2179         * gimplify.c (fold_indirect_ref_rhs): New function.
2180         (gimplify_modify_expr_rhs): Use it instead of pessimistic
2181         fold_indirect_ref.
2182
2183         * fold-const.c (fold_indirect_ref_1): Add type argument;
2184         make sure the resulting expression is of this type.
2185         (build_fold_indirect_ref, fold_indirect_ref): Adjust callers.
2186
2187 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
2188
2189         PR tree-optimization/21658
2190         * tree-ssa-ccp.c (ccp_fold): Call fold_binary instead of
2191         fold_binary_to_constant.  Likewise, call fold_unary instead of
2192         fold_unary_to_constant.
2193
2194 2005-05-27  Nathan Sidwell  <nathan@codesourcery.com>
2195
2196         * vec.h: Implement integral type vector specialization.
2197         (VEC_T): Define a non-GTY structure.
2198         (VEC_T_GTY): Define a GTY structure.
2199         (VEC_TA): Rename to ...
2200         (VEC_TA_GTY): ... here.
2201         (DEF_VEC_I, DEF_VEC_ALLOC_I): New.
2202         (DEF_VEC_P, DEF_VEC_ALLOC_P): Adjust.
2203         (DEF_VEC_FUNC_P, DEF_VEC_ALLOC_FUNC_P): New, broken out of
2204         DEF_VEC_P and DEF_VEC_ALLOC_P.
2205         (DEF_VEC_O, DEF_VEC_ALLOC_O): Adjust.
2206         (DEF_VEC_FUNC_O, DEF_VEC_ALLOC_FUNC_O): New, broken out of
2207         DEF_VEC_O and DEF_VEC_ALLOC_O.
2208         * global.c: Use DEF_VEC_I, DEF_VEC_ALLOC_I.
2209         * lambda-code.c: Likewise.
2210         * tree-into-ssa.c: Likewise.
2211         * tree-ssa-live.c: Likewise.
2212
2213 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
2214
2215         * tree-into-ssa.c (update_ssa): Ensure that the operand cache
2216         is up-to-date.
2217         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
2218         update_stmt_if_modified before calling update_ssa.
2219
2220 2005-05-27  Ralf Corsepius  <ralf.corsepius@rtems.org>
2221
2222         * config/rs6000/t-rtems: Remove roe multilib variant.
2223
2224 2005-05-26  Roger Sayle  <roger@eyesopen.com>
2225
2226         PR tree-optimization/9814
2227         * ifcvt.c (noce_emit_move_insn): If we fail to recognize the move
2228         instruction, add the necessary clobbers by re-expanding the RTL
2229         for arithmetic operations via optab.c's expand_unop/expand_binop.
2230         (noce_try_bitop): New function to optimize bit manipulation idioms
2231         of the form "if (x & C) x = x op C" and "if (!(x & C) x = x op C".
2232         (noce_process_if_block): Call noce_try_bitop.
2233
2234 2005-05-26  Roger Sayle  <roger@eyesopen.com>
2235
2236         * reg-stack.c (convert_regs_entry, convert_regs_exit,
2237         convert_regs_1, convert_regs_2, convert_regs): Delete prototypes.
2238         (reg_to_stack): Move to end of the file.  Initialize the per
2239         basic block information here, instead of...
2240         (convert_regs_entry): Here.
2241         (convert_regs): Change unused return type to void.
2242
2243 2005-05-27  Kazu Hirata  <kazu@cs.umass.edu>
2244
2245         * c-pch.c, timevar.c, timevar.h, unwind-compat.c,
2246         unwind-dw2-fde-compat.c, unwind-dw2-fde.c, config/mmix/mmix.h,
2247         config/rs6000/eabispe.h, config/rs6000/lynx.h,
2248         config/sh/elf.h, config/sh/symbian-pre.h,
2249         config/sparc/sparc-protos.h: Update copyright.
2250
2251 2005-05-26  Mike Stump  <mrs@apple.com>
2252
2253         * darwin.h (ASM_OUTPUT_LABELREF): Handle quoted non-lazy pointers
2254         for Objective-C++.
2255         
2256 2005-05-26  Richard Guenther  <rguenth@gcc.gnu.org>
2257
2258         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
2259         See through ADDR_EXPR in finding place to propagate into.
2260
2261 2005-05-26  Kazu Hirata  <kazu@cs.umass.edu>
2262
2263         * c-common.c, c-parser.c, cfgbuild.c, cfghooks.c, cfghooks.h,
2264         cfgrtl.c, cgraphunit.c, ddg.c, expr.h, gcse.c, ggc-page.c,
2265         ggc-zone.c, gimplify.c, ipa-inline.c, longlong.h, targhooks.c,
2266         tree-flow-inline.h, tree-pass.h, tree-ssa-dse.c,
2267         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
2268         tree-ssa-operands.c, tree-vect-analyze.c,
2269         tree-vect-transform.c, tree-vectorizer.c, tree.c,
2270         config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
2271         config/frv/frv.md, config/i386/i386.c, config/i386/sse.md,
2272         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2273         config/mcore/mcore.c, config/mips/mips.c, config/mips/mips.md,
2274         config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
2275         config/rs6000/rs6000.h, config/sh/sh.c, config/sh/sh.md,
2276         config/sh/ushmedia.h, config/sparc/sparc.c,
2277         config/sparc/sparc.md, config/stormy16/stormy-abi: Fix comment
2278         typos.  Follow spelling conventions.
2279         * doc/invoke.texi, doc/tm.texi, doc/tree-ssa.texi: Fix typos.
2280         Follow spelling conventions.
2281
2282 2005-05-26  David Ung  <davidu@mips.com>
2283
2284         * config/mips/mips.c (mips_use_ins_ext_p): New helper function
2285         that determines whether the MIPS32/64 R2 ext/ins should be used.
2286         * config/mips/mips.h (ISA_HAS_EXT_INS): New macro.
2287         * config/mips/mips.md (extzv): Changed predicate for operand to
2288         nonimmediate_operand. Add code to generate insn patterns for
2289         extzvsi and extzvdi.
2290         (extzv<mode>): New pattern to match mips32/64 r2 ext insn.
2291         (insv): Similarly for insertion.
2292         (insv<mode>): Similarly.
2293
2294 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
2295
2296         * simplify-rtx.c (avoid_constant_pool_reference): Support
2297         offsetted addresses in the constant pool.
2298
2299 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
2300
2301         * df.h (DF_SUBREGS, df_local_def_available_p, df_insn_modified_p): New.
2302         * df.c (DF_SUBREGS, df_local_def_available_p, df_insn_modified_p): New.
2303
2304 2005-05-26  Jakub Jelinek  <jakub@redhat.com>
2305
2306         PR target/21716
2307         * reg-stack.c (swap_rtx_condition): Don't crash if %ax user was not
2308         found in the basic block and last insn in the basic block is not
2309         INSN_P.  Remove explicit unspec numbers that are no longer valid
2310         from comments.
2311
2312 2005-05-26  Paolo Bonzini  <bonzini@gnu.org>
2313
2314         * tree-vect-transform.c (vectorizable_operation): Try word_mode
2315         vectorization if UNITS_PER_WORD == UNITS_PER_SIMD_WORD, even
2316         if a vector mode is available.
2317
2318 2005-05-25  Roger Sayle  <roger@eyesopen.com>
2319
2320         PR middle-end/21709
2321         * fold-const.c (const_binop): Check for division by zero during
2322         complex division.
2323
2324 2005-05-26  Ian Lance Taylor  <ian@airs.com>
2325
2326         * reload1.c (verify_initial_elim_offsets): Add braces to avoid
2327         having a declaration after a statement.
2328
2329 2005-05-26  Richard Sandiford  <rsandifo@redhat.com>
2330
2331         * opt-functions.awk (var_type): New function.
2332         (var_set): Use CLVC_STRING if var_type returns "const char *".
2333         * opth-gen.awk: Use var_type to find out the types of variables.
2334         Don't print comments above each "extern" definition.
2335         * optc-gen.awk: Use var_type in the same way.
2336         * opts.h (cl_var_cond): Rename to...
2337         (cl_var_type): ...this.  Add CLVC_STRING.
2338         (cl_option): Make "flag_var" a "void *" pointer.  Replace "var_cond"
2339         with "var_type".
2340         * opts.c (handle_option, option_enabled): Update after above name
2341         change.  Cast flag_var before using it.  Handle CLVC_STRING.
2342         
2343         * config/alpha/alpha.h (alpha_tls_size): Delete.
2344         * config/alpha/alpha.c (alpha_tls_size, alpha_cpu_string)
2345         (alpha_tune_string, alpha_tp_string, alpha_fprm_string)
2346         (alpha_fptm_string, alpha_mlat_string): Delete.
2347         (alpha_handle_option): Don't set the above variables here.  Use the
2348         integer argument to check the validity of -mtls-size=.
2349         * config/alpha/alpha.opt (mcpu=, mtune=, mfp-rounding-mode=)
2350         (mfp-trap-mode=, mtrap-precision=, mmemory-latency=): Add Var()s.
2351         (mtls-size=): Likewise.  Convert to a UInteger and initialize the
2352         variable to 32.
2353
2354         * config/arc/arc.c (arc_cpu_string, arc_text_string)
2355         (arc_data_string, arc_rodata_string): Delete.
2356         (arc_handle_option): Don't set the above variables here.
2357         * config/arc/arc.opt (mcpu=, mtext=, mdata=, mrodata=): Add Var()s
2358         and initialize them.
2359
2360         * config/arm/arm.c (target_fpu_name, target_fpe_name)
2361         (target_float_abi_name, target_abi_name, structure_size_string)
2362         (arm_pic_register_string): Delete.
2363         (arm_handle_option): Don't set the above variables here, except
2364         in the handling of -mhard-float and -msoft-float.
2365         * config/arm/arm.opt (mabi=, mfloat-abi=, mfp=, mfpe=, mfpu=)
2366         (mpic-register=, mstructure-size-boundary=): Add Var()s.
2367
2368         * config/avr/avr.c (avr_init_stack, avr_mcu_name, TARGET_HANDLE_OPTION)
2369         (avr_handle_option): Delete.
2370         * config/avr/avr.opt (mmcu=, minit-stack=): Add Var()s and initialize
2371         them.
2372
2373         * config/bfin/bfin.c (bfin_library_id): Delete.
2374         (bfin_handle_option): Don't set it.
2375         * config/bfin/bfin.opt (mshared-library-id=): Add Var().
2376
2377         * config/c4x/c4x.h (c4x_rpts_cycles): Delete.
2378         * config/c4x/c4x.c (c4x_rpts_cycles): Delete.
2379         (c4x_handle_option): Don't set c4x_rpts_cycles here.
2380         * config/c4x/c4x.opt (mrpts=): Add Var().
2381
2382         * config/cris/aout.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't set
2383         cris_elinux_stacksize_str here.
2384         * config/cris/aout.opt (melinux-stacksize=): Add Var().
2385         * config/cris/cris.h (cris_max_stackframe_str, cris_cpu_str)
2386         (cris_tune_str, cris_elinux_stacksize_str): Delete.
2387         * config/cris/cris.c (cris_max_stackframe_str, cris_cpu_str)
2388         (cris_tune_str, cris_elinux_stacksize_str): Delete.
2389         (cris_handle_option): Don't set the above variables here.
2390         * config/cris/cris.opt (mcpu=, march=, mtune=, mmax-stackframe=)
2391         (max-stackframe=): Add Var()s.
2392
2393         * config/i386/i386.h (ix86_tune_string, ix86_arch_string): Delete.
2394         * config/i386/i386.c (ix86_cmodel_string, ix86_asm_string)
2395         (ix86_tls_dialect_string, ix86_tune_string, ix86_arch_string)
2396         (ix86_fpmath_string, ix86_regparm_string, ix86_align_loops_string)
2397         (ix86_align_jumps_string, ix86_preferred_stack_boundary_string)
2398         (ix86_branch_cost_string, ix86_align_funcs_string): Delete.
2399         (ix86_handle_option): Don't set the above variables here.
2400         * config/i386/i386.opt (malign-functions=, malign-jumps=)
2401         (malign-loops=, march=, masm=, mbranch-cost=, mcmodel=, mfpmath=)
2402         (mpreferred-stack-boundary=, mregparm=, mtls-dialect=, mtune=): Add
2403         Var()s.
2404
2405         * config/ia64/ia64.h (ia64_tls_size): Delete.
2406         * config/ia64/ia64.c (ia64_tls_size): Delete.
2407         (ia64_handle_option): Treat -mtls-size= as a UInteger option,
2408         reading the integer argument from the "value" parameter.  Don't
2409         set ia64_tls_size here.
2410         * config/ia64/ia64.opt (mtls-size=): Turn into a UInteger option.
2411         Add Var() and Init().
2412
2413         * config/m32r/m32r.h (m32r_cache_flush_func): Delete.
2414         (m32r_cache_flush_trap): Delete.
2415         * config/m32r/m32r.c (m32r_cache_flush_func): Delete.
2416         (m32r_cache_flush_trap): Delete.
2417         (m32r_handle_option): Don't set the above variables when handling
2418         -mflush-func= and -mflush-trap=.
2419         * config/m32r/m32r.opt (-mflush-func=, -mflush-trap=): Add Var()s
2420         and Init()s.
2421
2422         * config/mips/mips.h (mips_cache_flush_func): Delete.
2423         * config/mips/mips.c (mips_arch_string, mips_tune_string)
2424         (mips_cache_flush_func): Delete.
2425         (mips_handle_option): Don't set the above variables when handling
2426         -march=, -mtune= and -mflush-func=.
2427         * config/mips/mips.opt (march=, mflush-func=, mtune=): Add Var()s.
2428
2429         * config/s390/s390.c (s390_arch_string): Delete.
2430         (s390_handle_option): Don't set it here.
2431         * config/s390/s390.opt (march=): Add Var().
2432
2433         * config/sparc/sparc.h (sparc_cmodel_string): Delete.
2434         * config/sparc/sparc.c (sparc_cmodel_string): Delete.
2435         (sparc_handle_option): Don't set it here.
2436         * config/sparc/sparc.opt (mcmodel=): Add Var().
2437
2438 2005-05-25  Roger Sayle  <roger@eyesopen.com>
2439
2440         * convert.c (convert_to_integer) <POINTER_TYPE>: Avoid recursive
2441         call to convert_to_integer by building the NOP_EXPR directly.
2442
2443 2005-05-25  Richard Sandiford  <rsandifo@redhat.com>
2444
2445         * config/rs6000/rs6000.opt (mprioritize-restricted-insns=): Fix typo.
2446
2447 2005-05-25  Daniel Berlin  <dberlin@dberlin.org>
2448             Jeff Law  <law@redhat.com>
2449
2450         * tree-cfg.c (verify_expr, case ADDR_EXPR): Verify invariant,
2451         constant and side_effects of the ADDR_EXPR are consistent.
2452
2453         * tree-nested.c (convert_local_reference): Set CURRENT_FUNCTION_DECL
2454         appropriately around calls to recompute_tree_invarant_for_addr_expr.
2455
2456 2005-05-25  Ulrich Weigand  <uweigand@de.ibm.com>
2457
2458         * config/s390/s390.c (GP_ARG_NUM_REG, FP_ARG_NUM_REG): New defines.
2459         (s390_function_arg, s390_gimplify_va_arg): Use them.
2460         (s390_register_info): Save only required subset of argument
2461         registers into save area for va_list.
2462         (s390_va_start): Initialize only required elements of va_list struct.
2463         (s390_build_builtin_va_list): Set va_list_[gf]pr_counter_field.
2464
2465 2005-05-25  Ulrich Weigand  <uweigand@de.ibm.com>
2466
2467         * reload1.c (verify_initial_elim_offsets): Return boolean status
2468         instead of aborting.
2469         (reload): Adapt verify_initial_elim_offsets call site.  Restart
2470         main loop if some initial elimination offsets changed.
2471
2472 2005-05-25  Adam Nemet  <anemet@lnxw.com>
2473
2474         * config/rs6000/lynx.h (CC1_SPEC): Use -maix-struct-return instead
2475         of -mno-svr4-struct-return.
2476
2477 2005-05-25  Daniel Berlin  <dberlin@dberlin.org>
2478
2479         Fix PR tree-optimization/21705
2480         
2481         * tree-ssa-pre.c (in_fre): New static variable.
2482         (create_value_expr_from): Recursively value number reference ops
2483         in argument lists.
2484         (can_value_number_call): Temporary restrict only exists for
2485         PRE, not FRE.
2486
2487 2005-05-25  Kazu Hirata  <kazu@cs.umass.edu>
2488
2489         * tree-into-ssa.c (rewrite_into_ssa, update_ssa): Replace
2490         sizeof (bitmap *) with sizeof (bitmap).
2491
2492 2005-05-25  Daniel Berlin <dberlin@dberlin.org>
2493
2494         * lambda-code.c (perfect_nestify): Call update_stmt on the exit
2495         condition.
2496
2497 2005-05-25  Adrian Straetling  <straetling@de.ibm.com>
2498
2499         * config/s390/s390.c (TARGET_INSN_VALID_WITHIN_DOLOOP): Set to
2500         hook_bool_rtx_true.
2501
2502 2005-05-25  Jan Hubicka  <jh@suse.cz>
2503
2504         * Makefile.in (ipa-inline.o): Add COEVERAGE_H dependency.
2505         * cgraph.c (cgraph_create_node): Reset estimated_growth.
2506         * cgraph.h (cgraph_global_info): Add estimated_growth.
2507         * ipa-inline.c: Include coverage.h
2508         (max_insns, max_count): New static variables.
2509         (cgraph_estimate_size_after_inlining): Cache the result.
2510         (cgraph_estimate_growth):
2511         * passes.c (rest_of_clean_state): Kill coverage_end_function.
2512         * timevar.def (TV_INLINE_HEURISTICS): New timevar.
2513         * tree-optimize.c (init_tree_optimization_passes): Move profiling before
2514         inlining.
2515         (ipa_passes): Initialize bitmaps.
2516
2517 2005-05-25  Adrian Straetling  <straetling@de.ibm.com>
2518
2519         * loop-doloop.c: Include "target.h". 
2520           (doloop_valid_p): Move tests to function in targhooks.c.
2521         * target.h (struct gcc_target): New target hook
2522           "insn_valid_within_doloop".
2523         * target-def.h: Define default value for "insn_valid_within_doloop".
2524           (TARGET_INITIALIZER): Insert new target hook into initializer.
2525         * targhooks.c (default_insn_valid_within_doloop): New function.
2526         * targhooks.h (default_insn_valid_within_doloop): Declare.
2527         * hooks.c (hook_bool_rtx_true): New function.
2528         * hooks.h (hook_bool_rtx_true): Declare.
2529         * doc/tm.texi: Add documentation for new target hook.
2530
2531 2005-05-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
2532
2533         PR target/21412
2534         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): New macro
2535         * config/sparc/sparc-protos.h (tls_symbolic_operand): Delete.
2536         (sparc_tls_referenced_p): New prototype.
2537         * config/sparc/sparc.c (tls_symbolic_operand): Delete.
2538         (sparc_expand_move): Look for TLS addresses with constant offsets.
2539         (legitimate_constant_p): Use SPARC_SYMBOL_REF_TLS_P instead of
2540         tls_symbolic_operand.
2541         (legitimate_pic_operand_p): Likewise.
2542         (legitimate_address_p): Likewise.
2543         (legitimize_address): Likewise.
2544         (sparc_tls_symbol_ref_1): New function.
2545         (sparc_tls_referenced_p): New function.
2546         * config/sparc/predicates.md (tgd_symbolic_operand): Use
2547         SYMBOL_REF_TLS_MODEL instead of tls_symbolic_operand.
2548         (tld_symbolic_operand): Likewise.
2549         (tie_symbolic_operand): Likewise.
2550         (tle_symbolic_operand): Likewise.
2551
2552 2005-05-24  DJ Delorie  <dj@redhat.com>
2553         
2554         * common.opt (-Wattributes): New.  Default true.
2555         * doc/invoke.texi (-Wno-attributes): Document.
2556         
2557         * attribs.c (decl_attributes): Move warning control from if() to
2558         warning(OPT_*).
2559         * c-common.c (handle_packed_attribute): Likewise.
2560         (handle_nocommon_attribute): Likewise.
2561         (handle_common_attribute): Likewise.
2562         (handle_noreturn_attribute): Likewise.
2563         (handle_noinline_attribute): Likewise.
2564         (handle_always_inline_attribute): Likewise.
2565         (handle_used_attribute): Likewise.
2566         (handle_unused_attribute): Likewise.
2567         (handle_const_attribute): Likewise.
2568         (handle_transparent_union_attribute): Likewise.
2569         (handle_constructor_attribute): Likewise.
2570         (handle_destructor_attribute): Likewise.
2571         (handle_mode_attribute): Likewise.
2572         (handle_alias_attribute): Likewise.
2573         (handle_visibility_attribute): Likewise.
2574         (handle_tls_model_attribute): Likewise.
2575         (handle_malloc_attribute): Likewise.
2576         (handle_returns_twice_attribute): Likewise.
2577         (handle_pure_attribute): Likewise.
2578         (handle_deprecated_attribute): Likewise.
2579         (handle_vector_size_attribute): Likewise.
2580         (handle_nothrow_attribute): Likewise.
2581         (handle_cleanup_attribute): Likewise.
2582         (handle_warn_unused_result_attribute): Likewise.
2583         (handle_sentinel_attribute): Likewise.
2584         * c-decl.c (diagnose_mismatched_decls): Likewise.
2585         (start_decl): Likewise.
2586         (grokdeclarator): Likewise.
2587         (start_function): Likewise.
2588         * c-format.c (check_function_format): Likewise.
2589         * stor-layout.c (place_field): Likewise.
2590         (finalize_record_size): Likewise.
2591         * tree.c (handle_dll_attribute)): Likewise.
2592         * varasm.c (default_assemble_visibility): Likewise.
2593         * config/darwin.c (darwin_handle_weak_import_attribute): Likewise.
2594         (darwin_assemble_visibility): Likewise.
2595         * config/arc/arc.c (arc_handle_interrupt_attribute): Likewise.
2596         * config/arm/arm.c (arm_handle_fndecl_attribute): Likewise.
2597         (arm_handle_isr_attribute): Likewise.
2598         * config/avr/avr.c (avr_handle_progmem_attribute): Likewise.
2599         (avr_handle_fndecl_attribute): Likewise.
2600         * config/bfin/bfin.c (handle_int_attribute): Likewise.
2601         * config/c4x/c4x.c (c4x_handle_fntype_attribute): Likewise.
2602         * config/h8300/h8300.c (h8300_handle_fndecl_attribute): Likewise.
2603         (h8300_handle_eightbit_data_attribute): Likewise.
2604         (h8300_handle_tiny_data_attribute): Likewise.
2605         * config/i386/i386.c (ix86_handle_cdecl_attribute): Likewise.
2606         (ix86_handle_regparm_attribute): Likewise.
2607         (ix86_handle_struct_attribute): Likewise.
2608         * config/i386/winnt.c (ix86_handle_shared_attribute): Likewise.
2609         (i386_pe_encode_section_info): Likewise.
2610         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
2611         * config/ip2k/ip2k.c (ip2k_handle_progmem_attribute): Likewise.
2612         (ip2k_handle_fndecl_attribute): Likewise.
2613         * config/m32r/m32r.c (m32r_handle_model_attribute): Likewise.
2614         * config/m68hc11/m68hc11 (m68hc11_handle_page0_attribute): Likewise.
2615         (m68hc11_handle_fntype_attribute): Likewise.
2616         (m68hc11_encode_section_info): Likewise.
2617         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
2618         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
2619         * config/ns32k/ns32k.c (ns32k_handle_fntype_attribute): Likewise.
2620         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute): Likewise.
2621         * config/sh/sh.c (sh_handle_interrupt_handler_attribute): Likewise.
2622         (sh_handle_sp_switch_attribute): Likewise.
2623         (sh_handle_trap_exit_attribute): Likewise.
2624         * config/sh/symbian.c (sh_symbian_dllimport_p): Likewise.
2625         (sh_symbian_handle_dll_attribute): Likewise.
2626         * config/stormy16/stormy16.c (xstormy16_handle_interrupt_attribute): Likewise.
2627         (xstormy16_handle_below100_attribute): Likewise.
2628         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
2629
2630         * c-common.c (unsigned_conversion_warning): Move warning control
2631         from if() to warning(OPT_*).
2632         (c_common_truthvalue_conversion): Likewise.
2633         (c_do_switch_warnings): Likewise.
2634         * c-decl.c (diagnose_mismatched_decls): Likewise.
2635         (diagnose_mismatched_decls): Likewise.
2636         (define_label): Likewise.
2637         (grokdeclarator): Likewise.
2638         * c-format.c (check_format_info): Likewise.
2639         * c-lex.c (interpret_integer): Likwise.
2640         (lex_string): Likewise.
2641         * c-opts.c (c_common_post_options): Likewise.
2642         * c-parser.c (c_parser_unary_expression): Likewise.
2643         * c-pragma.c (handle_pragma_redefine_extname): Likewise.
2644         (handle_pragma_extern_prefix): Likewise.
2645         * c-typeck.c (build_binary_op): Likewise.
2646         * gcse.c (is_too_expensive): Likewise.
2647         * opts.c (decode_options): Likewise.
2648         * stor-layout.c (place_field): Likewise.
2649         * tree-cfg.c (remove_bb): Likewise.
2650
2651         * c.opt (-Wreturn-type): Add Var(warn_return_type).
2652         * flags.h (warn_return_type): Remove.
2653         * toplev.c (warn_return_type): Likewise.
2654
2655 2005-05-24  Kelley Cook  <kcook@gcc.gnu.org>
2656
2657         * configure.ac: Don't use gcc_AC_C_LONG_LONG.  Check for
2658         existence of long long and __int64 before determining their size.
2659         * aclocal.m4: Delete gcc_AC_C_LONG_LONG.
2660         * configure, config.h.in:  Regenerate.
2661
2662 2005-05-24  Kelley Cook  <kcook@gcc.gnu.org>
2663
2664         * configure: Regenerate.
2665
2666 2005-05-24  Ziemowit Laski  <zlaski@apple.com>
2667
2668         * c-common.h (objc_comptypes): Remove prototype.
2669         (objc_compare_types): New prototype.
2670         (objc_volatilized_decl): Likewise.
2671         (objc_type_quals_match): Likewise.
2672         * c-decl.c (objc_mark_locals_volatile): Streamline by calling
2673         objc_volatilize_decl().
2674         * c-typeck.c (comp_target_types): Remove third parameter; do
2675         not call objc_comptypes().
2676         (comptypes): Remove calls to objc_comptypes().
2677         (build_function_call): Extend compatible prototype check to ObjC.
2678         (build_conditional_expr): Adjust call to comp_target_types().
2679         (convert_for_assignment): Call objc_compare_types() instead of
2680         objc_comptypes(); adjust calls to comp_target_types(); call
2681         objc_type_quals_match() before issuing qualifier mismatch
2682         warnings.
2683         (build_binary_op): Call objc_compare_types() before issuing
2684         pointer mismatch warnings; adjust calls to
2685         comp_target_types().
2686         * stub-objc.c (objc_comptypes): Remove stub.
2687         (objc_compare_types): New stub.
2688         (objc_volatilized_decl): Likewise.
2689         (objc_type_quals_match): Likewise.
2690
2691 2005-05-24  Paolo Carlini  <pcarlini@suse.de>
2692
2693         * config/ia64/ia64intrin.h: Define nothing for C++:
2694         overloaded builtins have been ported to C++.
2695
2696 2005-05-24  Jeff Law  <law@redhat.com>
2697
2698         * tree-nested.c (build_addr): New "context" argument.  Temporarily
2699         set current_function_decl around the call to build the ADDR_EXPR.
2700         (get_static_chain): Pass proper context to build_addr.
2701         (convert_nl_goto_reference): Likewise.
2702         (convert_tramp_reference): Likewise.
2703         (final_nesting_tree_1): Likewise.
2704         * tree-profile.c (tree_gen_interval_profiler): Likewise.
2705         (tree_gen_pow2_profiler): Likewise.
2706         (tree_gen_one_value_profiler): Likewise.
2707         * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Likewise.
2708         * tree.h (build_addr): Update prototype.
2709
2710 2005-05-24  Kazu Hirata  <kazu@cs.umass.edu>
2711
2712         * tree-flow.h (bb_ann_d): Remove has_escape_site.
2713         * tree-ssa-alias.c (compute_points_to_addr_escape): Don't
2714         write to has_escape_site.
2715
2716 2005-05-24  Jeff Law  <law@redhat.com>
2717
2718         * Makefile.in (tree-cfg.o): Depend on tree-ssa-propagate.h.
2719         * tree-cfg.c: Include tree-ssa-propagate.h.
2720         (replace_uses_by): Call recompute_tree_invarant_for_addr_expr as
2721         needed.
2722
2723 2005-05-24  Nick Clifton  <nickc@redhat.com>
2724
2725         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2726         __NO_FPRS__ when 'f' class registers will not be available. 
2727
2728 2005-05-24  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2729
2730         * config/m32r/m32r.c (m32r_expand_block_move):  Return 0 if
2731         nothing was done.
2732         * config/m32r/m32r.md (movmemsi):  If m32r_expand_block_move did
2733         nothing then FAIL.
2734         * config/m32r/m32r/m32r-protos.h  (m32r_expand_block_move): Update
2735         prototype.
2736
2737 2005-05-23  Jeff Law  <law@redhat.com>
2738
2739         * tree-ssa-dom.c (cprop_into_stmt): Do not call
2740         recompute_tree_invariant_for_addr_expr here.
2741         (optimize_stmt): Call it here instead and do so if anything
2742         at all has changed in the statement and the RHS is an ADDR_EXPR.
2743         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): If
2744         needed, call recompute_tree_invariant_for_addr_expr.
2745         * tree-ssa-propagate.c (substitute_and_fold): Call
2746         recompute_tree_invariant_for_addr_expr as needed.
2747
2748 2005-05-23  Andreas Krebbel  <krebbel1@de.ibm.com>
2749
2750         * config/s390/s390.c (s390_optimize_prologue): Don't replace an insn
2751         saving less registers than the replacement.
2752
2753 2005-05-23  Jan Hubicka  <jh@suse.cz>
2754
2755         * tree-flow.h (stmt_ann_d): Kill GTY ((skip)) mark on BB.
2756
2757 2005-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
2758
2759         * config/sparc/sparc-protos.h (sparc_expand_move): New prototype.
2760         * config/sparc/sparc.c (sparc_expand_move): New function.
2761         (sparc_emit_set_const64): Rewrite assert condition on entry.
2762         (legitimate_constant_p) <CONST_VECTOR>: New case.
2763         (legitimize_pic_address): Use TARGET_ARCH64 to select the mode.
2764         * config/sparc/sparc.md (movqi, movhi, movsi, movdi, movV32,
2765         movV64, movtf): Use nonimmediate_operand for the first operand.
2766         Rewrite.  Only invoke sparc_expand_move.
2767         * config/sparc/predicates.md (input_operand): Reorder tests.
2768
2769 2005-05-23  Jan Beulich  <jbeulich@novell.com>
2770
2771         * gthr-posix.h (__gthread_recursive_mutex_init_function): Add
2772         missing return statement.
2773
2774 2005-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
2775
2776         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Use
2777         emit_move_insn for moves to TFmode stack slots.
2778
2779 2005-05-21  Richard Guenther  <rguenth@gcc.gnu.org>
2780
2781         * tree-stdarg.c (execute_optimize_stdarg): Handle references
2782         to va_list of the form &va[0].
2783
2784 2005-05-20  Jan Hubicka  <jh@suse.cz>
2785
2786         * Makefile.in (insn-emit.o): Add basic-block.h dependency.
2787         * genemit.c (main): Make insn-emit to include basic-block.h too.
2788
2789 2005-05-20  Jan Hubicka  <jh@suse.cz>
2790
2791         * cgraphunit.c (cgraph_expand_function): Force function being lowered.
2792
2793 2005-05-19  Richard Henderson  <rth@redhat.com>
2794
2795         * config/alpha/alpha.c (emit_unlikely_jump, emit_load_locked,
2796         emit_store_conditional): Split out from ...
2797         (alpha_split_atomic_op): ... here.
2798         (alpha_split_compare_and_swap): New; extract from .md file.
2799         (alpha_split_lock_test_and_set): Likewise.
2800         * config/alpha/alpha-protos.h: Update.
2801         * config/alpha/sync.md (sync_compare_and_swap<I48MODE>): Move
2802         split code into alpha.c.
2803         (sync_lock_test_and_set<I48MODE>): Likewise.
2804
2805 2005-05-19  Richard Henderson  <rth@redhat.com>
2806
2807         * unwind.h, unwind-pe.h: Revert gcc_unreachable change of 05-17.
2808
2809 2005-05-19  Richard Henderson  <rth@redhat.com>
2810
2811         * config/i386/sse.md (mulv4si3): Use all register inputs.
2812         (mulv2di3): Likewise.
2813
2814 2005-05-19  Richard Guenther  <rguenth@gcc.gnu.org>
2815
2816         * tree-ssa-loop-ivopts.c (determine_base_object): Use
2817         build_fold_addr_expr to generate trees of correct type.
2818         Use fold_buildN if possible.
2819
2820 2005-05-19  Jan Hubicka  <jh@suse.cz>
2821
2822         * basic-block.h (REG_BR_PROB_BASE): Define.
2823         * cgraph.c (cgraph_create_edge): Initialize loop_nest and count.
2824         (dump_cgraph_node): Dump count.
2825         (cgraph_clone_edge): Rescale counts.
2826         (cgraph_clone_node): Likewise.
2827         * cgraph.h: Include basic-block.h
2828         (cgraph_node): Add count.
2829         (cgraph_edge): Add count and loop_nest.
2830         (cgraph_node, cgraph_edge, cgraph_clone_edge, cgraph_clone_node):
2831         Update prototypes.
2832         * cgraphunit.c: Kill now redundant inlining comment.
2833         (cgraph_create_edges): Make static, maintain current basic block;
2834         fix pasto.
2835         (record_call_1): Fill in new fields.
2836         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
2837         cgraph_clone_node.
2838         (cgraph_decide_recursive_inlining): Likewise.
2839         * rtl.h (REG_BR_PROB_BASE): Kill.
2840         * tree-inline.c (copy_body_r): Update call of cgraph_clone_edge.
2841         (expand_call_inline): Update call of cgraph_create_edge.
2842         * tree-optimize.c (tree_rest_of_compilation): Likewise.
2843
2844 2005-05-19  Nick Clifton  <nickc@redhat.com>
2845
2846         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use the
2847         new rs6000_explicit_options structure.
2848
2849 2005-05-19  Richard Henderson  <rth@redhat.com>
2850
2851         PR target/21390
2852         * config/alpha/alpha.c (alpha_emit_conditional_branch): Move 
2853         TFmode code swapping ...
2854         (alpha_emit_xfloating_compare): ... here.
2855         (alpha_emit_setcc): Update to match.
2856         (alpha_lookup_xfloating_lib_func): Assert TARGET_HAS_XFLOATING_LIBS.
2857
2858 2005-05-19  Richard Henderson  <rth@redhat.com>
2859
2860         PR target/21657
2861         * config/ia64/ia64.c (ia64_expand_tls_address): Remove extra
2862         memory indirection in local-dynamic case.
2863
2864 2005-05-18  Jie Zhang  <jie.zhang@analog.com>
2865             Bernd Schmidt  <bernd.schmidt@analog.com>
2866
2867         * config/bfin/bfin.c (branch_dest): Add comment why it's
2868         necessary.
2869         * config/bfin/bfin.md (attr "length" default): Change the offset of
2870         forward conditional branch of length 4 from 4096 to 4092.
2871
2872 2005-05-19  Jan Beulich  <jbeulich@novell.com>
2873
2874         * unwind-compat.c: Include tconfig.h and tsystem.h.
2875         * unwind-dw2-fde-compat.c: Likewise.
2876
2877 2005-05-18  Richard Henderson  <rth@redhat.com>
2878
2879         PR 21541
2880         * ifcvt.c (noce_process_if_block): Avoid conversion when the
2881         memory destination is readonly.
2882
2883 2005-05-18  Richard Henderson  <rth@redhat.com>
2884
2885         PR 21541
2886         * tree-ssa-operands.c (opf_non_specific): New.
2887         (get_asm_expr_operands): Set it.
2888         (add_call_clobber_ops, add_call_read_ops): Likewise.
2889         (add_stmt_operand): Test it instead of opf_kill_def when
2890         considering unmodifiable variables.
2891
2892         * tree-ssa-operands.c (get_expr_operands): Fix exact test.
2893
2894 2005-05-19  Kazu Hirata  <kazu@cs.umass.edu>
2895
2896         * cfgexpand.c, tree-cfg.c, tree-inline.c, tree-optimize.c,
2897         tree-ssa-forwprop.c: Fix comment typos.
2898         * doc/invoke.texi: Fix a typo.
2899
2900 2005-05-18  Richard Henderson  <rth@redhat.com>
2901
2902         * config.gcc (powerpc-*-linux*): Include linux64.opt when
2903         including linux64.h.
2904
2905 2005-05-18  Richard Henderson  <rth@redhat.com>
2906
2907         * tree-cfg.c (pass_remove_useless): Revert last change.
2908         * tree-optimize.c (init_tree_optimization_passes): Initialize
2909         all_lowering_passes with PROP_gimple_any.
2910
2911 2005-05-18  Devang Patel  <dpatel@apple.com>
2912
2913         * config/rs6000/rs6000.md (insvsi_internal1): Subtract shift from
2914         the mask end.
2915         
2916 2005-05-18  Richard Henderson  <rth@redhat.com>
2917
2918         * tree-ssa-forwprop.c (cfg_changed): New.
2919         (tidy_after_forward_propagate_addr): New.
2920         (forward_propagate_addr_expr): Use it, and fold_stmt_inplace.
2921         (forward_propagate_addr_into_variable_array_index): Likewise.
2922         (tree_ssa_forward_propagate_single_use_vars): Cleanup cfg if
2923         edges were removed.
2924
2925 2005-05-18  Geoffrey Keating  <geoffk@apple.com>
2926
2927         * dummy-checksum.c: New.
2928         * genchecksum.c: New.
2929         * c.opt (print_pch_checksum): New flag.
2930         * c-pch.c (struct c_pch_validity): Make much shorter.
2931         (no_checksum): New.
2932         (host_machine): Remove.
2933         (target_machine): Remove.
2934         (get_ident): Change PCH version number.
2935         (pch_init): When -fverbose-asm, print out the compiler fingerprint.
2936         Don't put triplets or version string in PCH validity data.
2937         Do put the compiler checksum in the validity data.
2938         (c_common_valid_pch): Don't check triplets or version string.  Do
2939         check checksum.
2940         (c_common_print_pch_checksum): New.
2941         * c-opts.c (c_common_handle_option): Add OPT_print_pch_checksum.
2942         Print fingerprint with -v.
2943         * c-common.h (c_common_print_pch_checksum): New.
2944         (executable_checksum): New.
2945         * Makefile.in (STAGEMOVESTUFF): Add cc1*-dummy, *-checksum.c.
2946         (cc1-dummy): New rule.
2947         (cc1-checksum.c): New rule.
2948         (cc1-checksum.o): New rule.
2949         (cc1): Add checksum support.
2950         (build/genchecksum): New.
2951         (build/genchecksum.o): New.
2952         (dummy-checksum.o): New.
2953         (genobjnames): Add genchecksum.o.
2954         (mostlyclean): Remove *-checksum.c.
2955         (gnucompare): Add libgcc to list of directories checked.
2956         Make comparison problems in libgcc/ and with checksum files only
2957         be warnings.
2958         * doc/invoke.texi (Precompiled Headers): Remove caution.
2959         Document that it must be the exact same binary.  Add a few
2960         known-safe flags to the list.
2961
2962         * rs6000/predicates.md (fix_trunc_dest_operand): New.
2963         * rs6000/rs6000.md (fix_truncdfsi2): Use fix_trunc_dest_operand.
2964         Check that a memory operand is valid before trying to use it.
2965         
2966         * tree-cfg.c (pass_remove_useless): This pass works on trees.
2967
2968 2005-05-18  Richard Guenther  <rguenth@gcc.gnu.org>
2969
2970         * tree.c (build1_stat): Don't try to handle two-operand
2971         tree codes.
2972
2973 2005-05-18  Richard Sandiford  <rsandifo@redhat.com>
2974
2975         * config.gcc (sh*-*-*): Define SUPPORT_* macros to 1.
2976         * config/sh/sh.h: Update mask names throughout.
2977         (target_flags, ISIZE_BIT, DALIGN_BIT, SH1_BIT, SH2_BIT, SH3_BIT)
2978         (SH_E_BIT, HARD_SH4_BIT, FPU_SINGLE_BIT, SH4_BIT, SH4A_BIT, FMOVD_BIT)
2979         (SH5_BIT, SPACE_BIT, BIGTABLE_BIT, RELAX_BIT, USERMODE_BIT)
2980         (HITACHI_BIT, NOMACSAVE_BIT, PREFERGOT_BIT, PADSTRUCT_BIT)
2981         (LITTLE_ENDIAN_BIT, IEEE_BIT, SAVE_ALL_TR_BIT, HARD_SH2A_BIT)
2982         (HARD_SH2A_DOUBLE_BIT, INDEXED_ADDRESS_BIT, PT_FIXED_BIT)
2983         (INVALID_SYMBOLS_BIT, ADJUST_UNROLL_BIT, TARGET_DUMPISIZE)
2984         (TARGET_ALIGN_DOUBLE, TARGET_SH1, TARGET_SH2, TARGET_SH3)
2985         (TARGET_HARD_SH4, TARGET_FPU_SINGLE, TARGET_SH5, TARGET_FMOVD)
2986         (TARGET_IEEE, TARGET_SMALLCODE, TARGET_BIGTABLE, TARGET_RELAX)
2987         (TARGET_HITACHI, TARGET_NOMACSAVE, TARGET_PADSTRUCT)
2988         (TARGET_LITTLE_ENDIAN, TARGET_USERMODE, TARGET_PREFERGOT)
2989         (TARGET_SAVE_ALL_TARGET_REGS, TARGET_ALLOW_INDEXED_ADDRESS)
2990         (TARGET_PT_FIXED, TARGET_INVALID_SYMBOLS, TARGET_ADJUST_UNROLL)
2991         (TARGET_SWITCH_SH1, TARGET_SWITCH_SH2, TARGET_SWITCH_SH2E)
2992         (TARGET_SWITCH_SH2A, TARGET_SWITCH_SH2A_SINGLE_ONLY)
2993         (TARGET_SWITCH_SH2A_SINGLE, TARGET_SWITCH_SH2A_NOFPU)
2994         (TARGET_SWITCH_SH3, TARGET_SWITCH_SH3E, TARGET_SWITCH_SH4_SINGLE_ONLY)
2995         (TARGET_SWITCH_SH4_SINGLE, TARGET_SWITCH_SH4_NOFPU, TARGET_SWITCH_SH4)
2996         (TARGET_SWITCH_SH4A, TARGET_SWITCH_SH4A_SINGLE_ONLY)
2997         (TARGET_SWITCH_SH4A_SINGLE, TARGET_SWITCH_SH4A_NOFPU)
2998         (TARGET_SWITCH_SH4AL, TARGET_SWITCH_SH5_64MEDIA)
2999         (TARGET_SWITCH_SH5_64MEDIA_NOFPU, TARGET_SWITCHES_SH5_32MEDIA)
3000         (TARGET_SWITCHES_SH5_32MEDIA_NOFPU, TARGET_SWITCH_SH5_32_ANY_EXTRA)
3001         (TARGET_SWITCH_SH5_MEDIA_ANY_EXTRA, TARGET_SWITCHES)
3002         (SUBTARGET_SWITCHES): Delete.
3003         (TARGET_SH2E, TARGET_SH2A, TARGET_SH2A_SINGLE, TARGET_SH2A_DOUBLE)
3004         (TARGET_SH3E, TARGET_CACHE32, TARGET_SUPERSCALAR, TARGET_HARVARD)
3005         (TARGET_FPU_DOUBLE, TARGET_SH4A_ARCH, TARGET_SHMEDIA32)
3006         (TARGET_SHMEDIA64): Redefine using other TARGET_* macros.
3007         (TARGET_SH4): Undefine options.h definition and check MASK_SH1 as well.
3008         (SUPPORT_SH1, SUPPORT_SH2E, SUPPORT_SH4, SUPPORT_SH4_SINGLE)
3009         (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Make numeric.
3010         (SUPPORT_SH2): Define to 1 if SUPPORT_SH1.
3011         (SUPPORT_SH3): Likewise SUPPORT_SH2.
3012         (SUPPORT_SH4_NOFPU): Likewise SUPPORT_SH3.
3013         (SUPPORT_SH4A_NOFPU, SUPPORT_SH4AL, SUPPORT_SH2A_NOFPU): Likewise
3014         SUPPORT_SH4_NOFPU.
3015         (SUPPORT_SH3E): Likewise SUPPORT_SH2E.
3016         (SUPPORT_SH4_SINGLE_ONLY, SUPPORT_SH4A_SINGLE_ONLY)
3017         (SUPPORT_SH2A_SINGLE_ONLY): Likewise SUPPORT_SH3E.
3018         (SUPPORT_SH4A): Likewise SUPPORT_SH4.
3019         (SUPPORT_SH4A_SINGLE): Likewise SUPPORT_SH4_SINGLE.
3020         (SUPPORT_SH5_32MEDIA): Likewise SUPPORT_SH5_COMPACT.
3021         (SUPPORT_SH5_32MEDIA_NOFPU): Likewise SUPPORT_SH5_COMPACT_NOFPU.
3022         (SUPPORT_ANY_SH5_32MEDIA, SUPPORT_ANY_SH5_64MEDIA)
3023         (SUPPORT_ANY_SH5): New macros.
3024         (TARGET_NONE): Replace with...
3025         (MASK_ARCH): ...this new macro.
3026         * config/sh/elf.h: Update mask names
3027         * config/sh/linux.h: Likewise.
3028         * config/sh/little.h: Likewise.
3029         * config/sh/netbsd-elf.h: Likewise.
3030         * config/sh/symbian-pre.h: Likewise.
3031         * config/sh/sh.c (sh_handle_option): New function.
3032         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3033         (calc_live_regs): Use MASK_FPU_SINGLE instead of FPU_SINGLE_BIT.
3034         (sh_target_switches, target_switches): Delete.
3035         (sh_pch_valid_p): Check for specific differences in the target_flags
3036         settings.
3037         (sh_init_cumulative_args): Use MASK_HITACHI instead of HITACHI_BIT.
3038         * config/sh/sh.opt: New file.
3039
3040 2005-05-18  Richard Henderson  <rth@redhat.com>
3041
3042         PR target/21632
3043         * config/ia64/ia64.c (ia64_extra_constraint) <'T'>: Use
3044         small_addr_symbolic_operand.
3045
3046 2005-05-18  Jeff Law  <law@redhat.com>
3047
3048         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
3049         propagate an ADDR_EXPR if the definition and use sites are
3050         in different EH regions.
3051
3052 2005-05-18  Ian Lance Taylor  <ian@airs.com>
3053
3054         * read-rtl.c (mode_attr_index): Use obstack_grow0, not
3055         obstack_grow.
3056
3057 2005-05-18  Daniel Berlin  <dberlin@dberlin.org>
3058
3059         * cfgrtl.c (purge_dead_edges): Don't remove fake edges.
3060
3061 2005-05-18  Daniel Berlin  <dberlin@dberlin.org>
3062         
3063         Fix PR tree-optimization/21407
3064
3065         * tree-ssa-operands.c (note_addressable): Change
3066         COMPONENT_REF handling in response to aliasing
3067         discussion.
3068
3069 2005-05-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3070
3071         * config/sparc/sol2.h (TARGET_DEFAULT): Add back MASK_APP_REGS.
3072         * config/sparc/sol2-64.h (TARGET_DEFAULT): Likewise.
3073         * config/sparc/sp-elf.h (TARGET_DEFAULT): Delete.
3074         * doc/invoke.texi (SPARC options): Document that -mapp-regs is
3075         the default on Solaris too.
3076
3077 2005-05-17  Daniel Berlin  <dberlin@dberlin.org>
3078
3079         * tree-ssa-pre.c (find_or_generate_expression): CALL_EXPR
3080         is okay too.
3081
3082 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
3083
3084         * timevar.def (TV_SCEV_CONST): New timevar.
3085         * tree-optimize.c (init_tree_optimization_passes): Add
3086         pass_scev_cprop.
3087         * tree-pass.h (pass_scev_cprop): Declare.
3088         * tree-scalar-evolution.c (scev_const_prop): New function.
3089         * tree-scalar-evolution.h (scev_const_prop): Declare.
3090         * tree-ssa-loop.c (gate_scev_const_prop, pass_scev_cprop):
3091         New.
3092         * tree-cfg.c (replace_uses_by): Export.
3093         * tree-flow.h (replace_uses_by): Declare.
3094
3095 2005-05-17  Ziemowit Laski  <zlaski@apple.com>
3096             Mike Stump  <mrs@apple.com>
3097
3098         Yet more Objective-C++...
3099
3100         * c-common.h (objc_finish_try_stmt): Add.
3101         (objc_build_synchronized): Add.
3102         (objc_generate_write_barrier): Add.
3103         * stub-objc.c (objc_build_synchronized): Add return value.
3104         (objc_finish_try_stmt): Likewise.
3105         (objc_generate_write_barrier): Add.
3106
3107         * c-common.h (objc_rewrite_function_call): Add.
3108         * c-typeck.c (build_function_call): Allow objc to rewrite
3109         FUNCTION_DECLs.
3110         (build_modify_expr): Allow objc to generate write barriers.
3111         * c.opt (Wassign-intercept): Add.
3112         (Wstrict-selector-match): Add.
3113         (fobjc-call-cxx-cdtors): Add.
3114         (fobjc-direct-dispatch): Add.
3115         (fobjc-gc): Add.
3116         * dbxout.c (get_lang_number): Add Objective-C++ support.
3117         * doc/invoke.texi (-fobjc-call-cxx-cdtors): Likewise.
3118         (-Wstrict-selector-match): Likewise.
3119         (-fobjc-direct-dispatch): Likewise.
3120         (-Wassign-intercept): Likewise.
3121         (Overall Options): Likewise.
3122         * gengtype.c (get_output_file_with_visibility): Likewise.
3123         * stub-objc.c (objc_rewrite_function_call): Add.
3124         * config/darwin.h (ASM_OUTPUT_LABELREF): Improved quoting support.
3125
3126         * c-common.c (flag_objc_exceptions): Remove.
3127         (flag_objc_sjlj_exceptions): Remove.
3128         * c-decl.c (objc_mark_locals_volatile): Don't change decls
3129         that are already ok.
3130         * c-opts.c (c_common_handle_option, case
3131         OPT_fobjc_exceptions): Remove.
3132         (case OPT_fobjc_sjlj_exceptions): Remove
3133         * c.opt (fobjc-call-cxx-cdtors): Have opt create the flag.
3134         (fobjc-exceptions): Likewise.
3135         (fobjc-sjlj-exceptions): Likewise.
3136         * config/rs6000/darwin.h (OFFS_MSGSEND_FAST): Add.
3137         (OFFS_ASSIGNIVAR_FAST): Add.
3138         
3139 2005-05-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
3140
3141         * config/sparc/sparc.md (movhi): Do not test constness
3142         of operand #1 twice.
3143         (movsi): Likewise.
3144         (movdi): Unconditionally accept zero as second operand
3145         when the first is memory.
3146         (movdi_insn_sp32): Handle above case.
3147         (DImode splitter): Use predicates.
3148         (DImode splitter): Use const_zero_operand predicate.
3149         (movsf_insn): Swap 2 alternatives.
3150
3151 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
3152
3153         * tree-ssa-loop-ivopts.c (find_bivs, find_givs_in_stmt_scev): Apply
3154         expand_simple_operations to bases of the ivs.
3155         (tree_int_cst_sign_bit): Export.
3156         * tree-flow.h (expand_simple_operations): Declare.
3157         * tree-ssa-loop-niter.c (number_of_iterations_cond): Use
3158         tree_int_cst_sign_bit.
3159         (expand_simple_operations): Export.
3160         * tree.h (tree_int_cst_sign_bit): Declare.
3161
3162 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
3163
3164         * tree-cfg.c (tree_can_merge_blocks_p): Allow phi nodes in the
3165         merged block.
3166         (replace_uses_by): New function.
3167         (tree_merge_blocks): Eliminate the phi nodes in the merged block.
3168         * tree-flow.h (fold_stmt_inplace): Declare.
3169         * tree-ssa-ccp.c (fold_stmt_inplace): New function.
3170         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update dominance
3171         info after cfg cleanup.
3172
3173 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
3174
3175         * cfgloop.h (just_once_each_iteration_p): Declaration changed.
3176         * cfgloopanal.c (just_once_each_iteration_p): Make the loop argument
3177         const.
3178
3179 2005-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
3180
3181         * ggc-page.c (ggc_alloc_stat): Record amount of memory allocated.
3182         * ggc-zone.c (ggc_alloc_zone_1): Ditto.
3183         * timevar.c (timevar_ggc_mem_total): New variable.
3184         (GGC_MEM_BOUND): New constant.
3185         (get_time): Record ggc memory status.
3186         (timevar_accumulate): Accumulate amount of ggc memory.
3187         (timevar_print): Print consumption of ggc memory.
3188         * timevar.def (TV_FIND_REFERENCED_VARS, TV_TREE_REDPHI,
3189         TV_TREE_LOOP_BOUNDS, TV_TREE_LOOP_IVCANON, TV_TREE_VECTORIZATION,
3190         TV_TREE_LINEAR_TRANSFORM): Shorten strings to fit in 22 characters.
3191         * timevar.h (struct timevar_time_def): Add ggc_mem field.
3192         (timevar_ggc_mem_total): Declare.
3193
3194 2005-05-17  Kazu Hirata  <kazu@cs.umass.edu>
3195
3196         * tree-into-ssa.c (update_ssa): Clean up by shortening the
3197         live range of DFS.
3198
3199 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
3200
3201         * config/cris/cris.md (ncond, ocode, rcond): Remove separate
3202         define_code_attr.
3203         ("b<ncond:code>", "b<ocond:code>", "b<rcond:code>")
3204         ("*b<ncond:code>_reversed", "*b<ocond:code>_reversed")
3205         ("*b<rcond:code>_reversed", "s<ncond:code>", "s<rcond:code>")
3206         ("s<ocond:code>"): Rename from respectively "b<ncond>",
3207         "b<ocond>", "b<rcond>", ("*b<ncond>_reversed",
3208         "*b<ocond>_reversed", "*b<rcond>_reversed", "s<ncond>",
3209         "s<rcond>" and "s<ocond>".
3210         ("b<ocond:code>", "*b<ocond:code>_reversed")
3211         ("*b<rcond:code>_reversed"): Remove extraneous backslashes in
3212         output statement section.
3213
3214 2005-05-17  Roger Sayle  <roger@eyesopen.com>
3215
3216         * c-typeck.c (common_type): Also handle BOOLEAN_TYPEs.
3217
3218 2005-05-17  Steven Bosscher  <stevenb@suse.de>
3219             Stuart Hastings <stuart@apple.com>
3220             Jan Hubicka  <jh@suse.cz>
3221             Dale Johannesen  <dalej@apple.com>
3222
3223         * cgraph.h (cgraph_node): Add 'lowered' state.
3224         (cgraph_lower_function): Declare.
3225         * cgraphunit.c (cgraph_finalize_function): Initialize lowered flag.
3226         (cgraph_lower_function): New function.
3227         (cgraph_create_edges): Deal with lowered function bodies.
3228         (verify_cgraph_node): Likewise.
3229         (cgraph_analyze_function): Do lowering job.
3230         (cgraph_build_static_cdtor): Likewise.
3231         * function.h (struct function): Add saved_eh and saved_cfg.
3232         * integrate.c (copy_decl_for_inlining): Kill LABEL_DECL_UID field.
3233         * tree-cfg.c (fold_cond_expr_cond): Export.
3234         * tree-flow.h (fold_cond_expr_cond): Declare.
3235         * tree-inline.c: Include basic-block, ggc, tree-flow, except.h and
3236         pointer-set.
3237         (struct_inline_data): Kill fnd, first_inlined_fn, ret_label,
3238         in_target_cleanup_p, tree_pruner, tsi; add callee, caller and
3239         callee_cfun, block, eh_region, eh_region_offset.
3240         (inlining_p): New predicate.
3241         (remap_decl): Update for new inline_data; declare newly created inline
3242         vars in low gimple way.
3243         (copy_body_r): Update for new datastructure, simplify some of handling
3244         when we are in gimple; remap LABEL_DECLs for EH; copy TREE_BLOCK;
3245         deal with RESX_EXPRs.
3246         (copy_bb): New.
3247         (copy_edges_for_bb): Likewise.
3248         (remap_decl_1): New.
3249         (copy_cfg_body): New.
3250         (copy_generic_body): Rewrite to work on low gimple.
3251         (copy_body): Turn into simple wrapper around copy_cfg_body.
3252         (setup_one_parameter): Insert new statements into given basic block.
3253         (initialize_initialized_parameters): Likewise, reorganize way things are
3254         gimplified.
3255         (declare_return_variable): Update for new inline data datastructure.
3256         (inline_forbidden_p): Work on low gimple.
3257         (estimate_num_insns): Likewise.
3258         (expand_call_inline): Work on CFG.
3259         (push_cfun, pop_cfun): New functions.
3260         (cfun_stack): New stack.
3261         (add_lexical_block): New function.
3262         (gimple_expand_calls_inline): Work on basic block.
3263         (optimize_inline_calls): Likewise.
3264         (clone_body, save_body, unsave_ewpr_now): Update for new
3265         datastructures.
3266         (declare_inline_vars): Work on block instead of bind_expr.
3267         (inlining_p): New predicate.
3268         * tree-inline.h (push_cfun, pop_cfun): Declare.
3269         * tree-optimize.c: Include except.h
3270         (all_lowering_passes): New variable.
3271         (execute_fixup_cfg, pass_fixup_cfg): New pass.
3272         (init_tree_optimization_passes): Move some to all_lowering_passes.
3273         (tree_lowering_passes): New function.
3274         (tree_rest_of_compilation): Register cfg hooks; save/unsave eh.
3275         * tree-pass.h (tree_lowering_passes): Declare
3276
3277 2005-05-17  Nathan Sidwell  <nathan@codesourcery.com>
3278
3279         * unwind-dw2-fde-darwin.c: Include tsystem.h.
3280
3281 2005-05-17  Jeff Law  <law@redhat.com>
3282
3283         * Makefile.in (tree-ssa-forwprop.o): Depend on langhooks.h.
3284         * tree-ssa-forwprop.c: Include langhooks.h.
3285         (forward_propagate_addr_expr_into_variable_array_index): New.
3286         (forward_propagate_addr_expr): New.
3287         (tree_ssa_forward_propagate_single_use_vars): Loop over all
3288         the statements in the block instead of just the last statement.
3289         Call forward_propagate_addr_expr as needed.
3290         (pass_forwprop): Update the SSA graph after forward propagation is
3291         complete.
3292
3293 2005-05-17  Nathan Sidwell  <nathan@codesourcery.com>
3294
3295         * unwind-dw2-fde-glibc.c (base_from_cb_data,
3296         _Unwind_IteratePhdrCallback): Use gcc_assert and gcc_unreachable as
3297         appropriate.
3298         * unwind-dw2-fde.c (__deregister_frame_info_bases,
3299         base_from_object, fde_split, end_fde_sort): Likewise.
3300         * unwind-dw2.c (_Unwind_GetGR, _Unwind_SetGR, execute_stack_op, 
3301         execute_cfa_program, _Unwind_SetSpColumn, uw_update_context_1,
3302         uw_init_context_1): Likewise.
3303         * unwind.inc (_Unwind_RaiseException_Phase2, _Unwind_Resume,
3304         _Unwind_Resume_or_Rethrow): Likewise.
3305         * unwind-pe.h (__gxx_abort): Do not define.
3306         (size_of_encoded_value, base_of_encoded_value,
3307         read_encoded_value_with_base): Use gcc_unreachable.
3308         * unwind.h (_Unwind_GetTextRelBase): Likewise.
3309
3310 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
3311
3312         * config/arm/lib1funcs.asm (cfi_pop, cfi_push, cfi_start)
3313         (cfi_end): New macros.
3314         (RETLDM): Use cfi_pop.  Expect an eight byte stack frame.
3315         (ARM_LDIV0, THUMB_LDIV0, DIV_FUNC_END): Use CFI macros.  Create
3316         an eight byte stack frame.
3317         (__NR_tkill): Define.
3318         (__div0): Use gettid tkill on GNU/Linux.
3319         (_arm_return): Add CFI.
3320         (Lchange_\register, .Lchange_lr): Create an eight byte stack frame.
3321
3322 2005-05-17  Daniel Jacobowitz  <dan@codesourcery.com>
3323
3324         * configure.ac: Remove spaces around assignment to
3325         gcc_cv_ld_sysroot.
3326         * configure: Regenerated.
3327
3328 2005-05-17  David Edelsohn  <edelsohn@gnu.org>
3329
3330         * config/rs6000/aix.h (TARGET_ALTIVEC_VRSAVE): Delete.
3331         * config/rs6000/rs6000.c (rs6000_explicit_options): Add
3332         aix_struct_ret.
3333         (rs6000_override_options): Do not protect TARGET_ALTIVEC_VRSAVE.
3334         Modify aix_struct_return variable, not target_flags.
3335         (rs6000_handle_option): Do not protect TARGET_ALTIVEC_VRSAVE.
3336         (rs6000_return_in_memory): Test aix_struct_return.
3337         * config/rs6000/rs6000.opt (maix-struct-return): Convert to
3338         independent variable.  Report mxl-compat.
3339
3340 2005-05-17  Bernd Schmidt  <bernd.schmidt@analog.com>
3341
3342         * config/bfin/bfin.md (eh_return): Add missing DONE.
3343
3344 2005-05-17  Ian Lance Taylor  <ian@airs.com>
3345
3346         * read-rtl.c (struct macro_traverse_data): Add unknown_mode_attr
3347         field.
3348         (mode_attr_index): Remove check for defined attribute.  Remove
3349         infile parameter.  Change all callers.
3350         (apply_mode_maps): Add unknown parameter.  Change caller.  Always
3351         return after finding attribute.
3352         (apply_macro_to_rtx): Add unknown_mode_attr parameter.  Change
3353         callers.
3354         (apply_macro_traverse): Set mtd->unknown_mode_attr.
3355         (read_rtx): Use mtd.unknown_mode_attr to check for an undefined
3356         attribute used for a mode.
3357
3358 2005-05-17  Paolo Bonzini  <bonzini@gnu.org>
3359
3360         * tree-ssa-math-opts.c: New file.
3361
3362 2005-05-17  Paolo Bonzini  <bonzini@gnu.org>
3363
3364         * tree-ssa-math-opts.c: New file.
3365
3366 2005-05-17  Paolo Bonzini  <bonzini@gnu.org>
3367
3368         * Makefile.in: Add tree-ssa-math-opts.c.
3369         * expr.c (expand_expr_real_1) <case RDIV_EXPR>: Never emit as a*(1/b).
3370         * fold-const.c (distribute_real_division): New.
3371         (fold_binary) <case PLUS_EXPR, case MINUS_EXPR>: Use it.
3372         * tree-pass.h (pass_cse_reciprocals): New.
3373         * tree-optimize.c (init_tree_optimization_passes): Run it.
3374         * doc/passes.texi: Document the new pass.
3375
3376 2005-05-17  Richard Guenther  <rguenth@gcc.gnu.org>
3377
3378         PR middle-end/21595
3379         * builtins.c (fold_builtin_constant_p): Handle
3380         &"string cst"[0] as constant.
3381
3382 2005-05-17  Richard Henderson  <rth@redhat.com>
3383
3384         * config/i386/sse.md (mulv16qi3, mulv2di3): New.
3385
3386 2005-05-17  Jakub Jelinek  <jakub@redhat.com>
3387
3388         PR middle-end/21492
3389         * cfgcleanup.c (try_crossjump_to_edge): update_forwarder_flag for
3390         src2 if src2 has been split.
3391
3392         PR tree-optimization/21610
3393         * c-typeck.c (decl_constant_value_for_broken_optimization): If not
3394         returning DECL, call unshare_expr.
3395
3396 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
3397
3398         * config/cris/cris.md: Unquote preparation and output statements.
3399         (BWD, WD, BW): New, mode-macros.
3400         (S, s, m, mm, nbitsm1): New, mode-attrs.
3401         (szext, shift, shiftrt, ncond, ocond, rcond): New, code-macros.
3402         (u, su, shlr, slr, ncond, ocond, rcond, rCC, oCC, roCC): New,
3403         code-attrs.
3404         ("tst<mode>"): Replace "tstqi", "tsthi" and "tstsi".
3405         ("*cmp_ext<mode>"): Replace "*cmp_extsi" and "*cmp_exthi".
3406         ("*cmp_swapext<mode>"): Replace "*cmp_swapextqi" and
3407         "*cmp_swapexthi".
3408         ("cmp<mode>"): Replace "cmphi" and "cmpqi".
3409         ("movdi"): Move misplaced head comment regarding necessity of
3410         movdi from movsi to here.
3411         ("*mov_side<mode>_biap"): Replace "*mov_sideqi_biap" and
3412         "*mov_sidehi_biap".
3413         ("*mov_side<mode>"): Replace "*mov_sideqi" and "*mov_sidehi".
3414         ("*mov_side<mode>_biap_mem", "*mov_sidehi_biap_mem"): Replace
3415         "*mov_sideqi_biap_mem".
3416         ("*mov_side<mode>_mem"): Replace "*mov_sideqi_mem" and
3417         "*mov_sidehi_mem".
3418         ("*clear_side<mode>_biap"): Replace "*clear_sidesi_biap",
3419         "*clear_sidehi_biap" and "*clear_sideqi_biap".
3420         ("*clear_side<mode>"): Replace "*clear_sidesi", "*clear_sidehi"
3421         and "*clear_sideqi".
3422         ("*ext_side<mode>si_biap"): Replace "*ext_sideqisi_biap" and
3423         "*ext_sidehisi_biap".
3424         ("*ext_side<mode>si"): Replace "*ext_sideqisi" and
3425         "*ext_sidehisi".
3426         ("reload_in<mode>"): Replace "reload_inhi" and "reload_inqi".
3427         ("reload_out<mode>"): Replace "reload_outhi" and "reload_outqi".
3428         ("extend<mode>di2"): Replace "extendhidi2" and "extendqidi2".
3429         ("extend<mode>si2"): Replace "extendhisi2" and "extendqisi2".
3430         ("zero_extend<mode>si2"): Replace "zero_extendhisi2" and
3431         "zero_extendqisi2".
3432         ("*op_side<mode>_biap"): Replace "*op_sideqi_biap",
3433         "*op_sidehi_biap" and "*op_sidesi_biap".
3434         ("*op_side<mode>"): Replace "*op_sideqi", "*op_sidehi" and
3435         "*op_sidesi".
3436         ("*op_swap_side<mode>_biap"): Replace "*op_swap_sideqi_biap",
3437         "*op_swap_sidehi_biap" and "*op_swap_sidesi_biap".
3438         ("*op_swap_side<mode>"): Replace "*op_swap_sideqi",
3439         "*op_swap_sidehi" and "*op_swap_sidesi".
3440         ("sub<mode>3"): Replace "subhi3" and "subqi3", correcting a typo
3441         in the N alternative of "subqi3".
3442         ("*extop<mode>si_side_biap"): Replace "*extopqisi_side_biap" and
3443         "*extophisi_side_biap".
3444         ("*extop<mode>si_side"): Replace "*extopqisi_side" and
3445         "*extophisi_side".
3446         ("*extop<mode>si_swap_side_biap"): Replace
3447         "*extopqisi_swap_side_biap" and "*extophisi_swap_side_biap".
3448         ("*extop<mode>si_swap_side"): Replace "*extopqisi_swap_side" and
3449         "*extophisi_swap_side".
3450         ("*extop<mode>si"): Replace "*extopqisi" and "*extophisi".
3451         ("*extop<mode>si_swap"): Replace "*extopqisi_swap" and
3452         "*extophisi_swap".
3453         ("<u>mul<s><mode>3"): Replace "umulhisi3", "umulqihi3",
3454         "mulqihi3", "mulhisi3" and "mulhisi3".
3455         ("<u>mulsidi3"): Replace "mulsidi3" and "umulsidi3".
3456         ("<su>mulsi3_highpart"): Replace "smulsi3_highpart" and
3457         "umulsi3_highpart".
3458         ("xor<mode>3"): Replace "xorhi3" and "xorqi3".
3459         ("neg<mode>2"): Replace "negsi2", "neghi2" and "negqi2".
3460         ("one_cmpl<mode>2"): Replace "one_cmplhi2" and "one_cmplqi2".
3461         ("<shlr>si3"): Replace "ashrsi3", "lshrsi3" and "ashlsi3".
3462         ("ashr<mode>3"): Replace "ashrhi3" and "ashrqi3".
3463         ("*expanded_<shlr><mode>"): Replace "*expanded_ashrhi",
3464         "*expanded_ashrqi", "*expanded_lshrhi" and "*expanded_lshrqi".
3465         ("*<shlr><mode>_lowpart"): Replace "*ashrhi_lowpart",
3466         "*ashrqi_lowpart", "*lshrhi_lowpart" and "*lshrqi_lowpart".
3467         ("lshr<mode>3"): Replace "lshrhi3" and "lshrqi3".
3468         ("ashl<mode>3"): Replace "ashlhi3" and "ashlqi3".
3469         ("*ashl<mode>_lowpart"): Replace "*ashlqi_lowpart" and
3470         "*ashlhi_lowpart".
3471         ("abs<mode>2"): Replace "abshi2" and "absqi2".
3472         ("b<ncond>"): Replace "beq", "bne", "bgtu", "bltu", "bgeu" and
3473         "bleu".
3474         ("b<ocond>"): Replace "bgt" and "ble".
3475         ("b<rcond>"): Replace "blt" and "bge".
3476         ("*b<ncond>_reversed"): Replace "*beq_reversed", "*bne_reversed",
3477         "*bgtu_reversed", "*bltu_reversed", "*bgeu_reversed" and
3478         "*bleu_reversed".
3479         ("*b<ocond>_reversed"): Replace "*bgt_reversed" and
3480         "*ble_reversed".
3481         ("*b<rcond>_reversed"): Replace "*blt_reversed" and
3482         "*blt_reversed".
3483         ("s<ncond>"): Replace "sgeu", "sltu", "seq", "sgtu", "sleu" and
3484         "sne".
3485         ("s<rcond>"): Replace "sge" and "slt".
3486         ("s<ocond>"): Replace "sgt" and "sle".
3487         ("clear.[bwd] [rx=rx+rz.S2]"): Replace split clear.d
3488         [rx=rx+rz.S2], clear.w [rx=rx+rz.S2] and clear.b [rx=rx+rz.S2].
3489         ("clear.[bwd] [rx=rx+i]"): Replace splits clear.d [rx=rx+i],
3490         clear.w [rx=rx+i] and clear.b [rx=rx+i].
3491
3492 2005-05-17  Jakub Jelinek  <jakub@redhat.com>
3493
3494         * varasm.c (struct constant_descriptor_tree): Add hash field.
3495         (const_desc_hash): Just return hash field.
3496         (const_desc_eq): If hash values are different, return 0 immediately.
3497         (output_constant_def): Compute hash field of temporary key, use
3498         htab_find_slot_with_hash instead of htab_find_slot.  Set hash in
3499         newly built constant descriptor.
3500         (lookup_constant_def): Compute hash field of temporary key, use
3501         htab_find_with_hash instead of htab_find.
3502
3503 2005-05-16  Richard Henderson  <rth@redhat.com>
3504
3505         * config/i386/sse.md (mulv4si3): New.
3506
3507 2005-05-17  Hans-Peter Nilsson  <hp@axis.com>
3508
3509         * config/cris/cris.h (EXTRA_CONSTRAINT_T): Remove FIXME and
3510         tests for noncanonical versions of reg+constant and
3511         reg+reg*{1,2,4}.
3512
3513 2005-05-16  Richard Henderson  <rth@redhat.com>
3514             Steven Bosscher <stevenb@suse.de>
3515
3516         PR tree-opt/21399
3517         * tree-eh.c (maybe_clean_or_replace_eh_stmt): Rename from 
3518         maybe_clean_eh_stmt; take old stmt parameter.  Update EH
3519         region data structure to match replacement.
3520         * tree-flow.h: Update to match.
3521         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
3522         * tree-ssa-dom.c (optimize_stmt): Likewise.
3523         * tree-ssa-pre.c (eliminate): Likewise.
3524         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
3525
3526 2005-05-16  Caroline Tice  <ctice@apple.com>
3527
3528         * bb-reorder.c (verify_hot_cold_block_grouping):  Replace
3529         internal_error with gcc_assert.
3530         * dwarf2out.c (dwarf2out_switch_text_section):  Likewise.
3531         * function.h (struct function): Remove space between "*" and
3532         struct field names.
3533         * varasm.c (initialize_cold_section_name):   Add gcc_assert;
3534         modify to use alloca.
3535         (unlikely_text_section): Add check for flag_function_sections.
3536         (assemble_start_function):  Move call to resolve_section, so it
3537         comes before first call to unlikely_text_section.
3538         (assemble_end_function):  Add test and call to function_section
3539         if appropriate.
3540         
3541 2005-05-16  Roger Sayle  <roger@eyesopen.com>
3542
3543         * c-common.c (c_common_truthvalue_conversion): Use fold_build2
3544         instead of build_binary_op when performing code transformations
3545         to avoid error messages about constructs not it the user's code.
3546
3547 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
3548
3549         * tree-ssa-pre.c: Fix a comment typo.
3550
3551 2005-05-16  Richard Henderson  <rth@redhat.com>
3552
3553         PR target/21556
3554         * config/ia64/ia64.md (load_dtpmod, load_ltoff_dtpmod, load_dtprel,
3555         load_dtprel64, load_dtprel22, load_dtprel_gd, load_ltoff_dtprel,
3556         add_dtprel, add_dtprel14, add_dtprel22, load_tprel, load_tprel64,
3557         load_tprel22, load_tprel_ie, load_ltoff_tprel, add_tprel, add_tprel14,
3558         add_tprel22): Remove mode from symbolic operand.
3559
3560 2005-05-16  Richard Sandiford  <rsandifo@redhat.com>
3561
3562         * optc-gen.awk: Include intl.h after the externally-provided files.
3563
3564 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
3565
3566         * tree-ssa-copy.c (copy_prop_visit_assignment): Clean up by
3567         folding a COND_EXPR_COND in a nondestructive manner.
3568
3569 2005-05-16  Fariborz Jahanian <fjahanian@apple.com>
3570
3571         * config/rs6000/altivec.md (altivec_vmrghb, altivec_vmrghh, 
3572         altivec_vmrghw, altivec_vmrglb, altivec_vmrglh, altivec_vmrglw):
3573         New values for vec_select definitions and bitmask for element
3574         selection.
3575          
3576 2005-05-16  Kazu Hirata  <kazu@cs.umass.edu>
3577
3578         * dwarf2out.c (used_rtx_varray): Rename to used_rtx_array.
3579         Change the type to VEC(rtx,gc)*.
3580         (mem_loc_descriptor, add_const_value_attributes,
3581         dwarf2out_init): Adjust uses of used_rtx_varray.
3582
3583         * tree-data-ref.c (compute_all_dependences): Change the type
3584         of dependence_relations to VEC(ddr_p,heap)**.
3585         (compute_data_dependences_for_loop): Change the type of
3586         allrelations to VEC(ddr_p,heap)*.
3587
3588 2005-05-16  Richard Sandiford  <rsandifo@redhat.com>
3589
3590         * Makefile.in (options.c): Tell optc-gen.awk to include config.h,
3591         system.h, coretypes.h and tm.h.
3592         (options.o): Update dependencies accordingly.
3593         * optc-gen.awk: Allow header_name to be a list of filenames.
3594         Handle the "Condition" flag.
3595         * opts.h (CL_DISABLED): New flag.
3596         * opts.c (handle_option): Print an error for CL_DISABLED options.
3597         * doc/options.texi: Document the "Condition" option flag.
3598
3599 2005-05-16  Paolo Bonzini  <bonzini@gnu.org>
3600
3601         * tree-inline.c (estimate_num_insns_1): Handle VEC_COND_EXPR.
3602
3603 2005-05-15  Roger Sayle  <roger@eyesopen.com>
3604
3605         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Only
3606         check for TREE_OVERFLOW on INTEGER_CST trees.
3607         * tree-chrec.c (chrec_convert): Only clear TREE_OVERFLOW on
3608         CONSTANT_CLASS_P tree nodes.
3609
3610 2005-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3611
3612         PR target/21551
3613         * config/ia64/ia64.c (ia64_expand_move): Don't add addend twice.
3614
3615 2005-05-15  Daniel Berlin  <dberlin@dberlin.org>
3616             
3617         Fix PR tree-optimization/21576
3618         
3619         * tree-ssa-pre.c (expression_node_pool): New pool.
3620         (comparison_node_pool): Ditto.
3621         (list_node_pool): Ditto.
3622         (pool_copy_list): New function.
3623         (phi_translate): Handle CALL_EXPR.
3624         (valid_in_set): Ditto.
3625         (create_expression_by_pieces): Ditto.
3626         (insert_into_preds_of_block): Ditto.
3627         (insert_aux): Ditto.
3628         (compute_avail): Ditto.
3629         (create_value_expr_from): Handle TREE_LIST and CALL_EXPR.
3630         (can_value_number_call): New function.
3631         (find_leader): Update comment.
3632         (init_pre): Create new pools.
3633         (fini_pre): Free new pools.
3634         (pass_pre): Add TODO_update_ssa for the future when we are going
3635         to need vops.
3636         * tree-vn.c (expressions_equal_p): Handle TREE_LIST.
3637         (set_value_handle): Ditto.
3638         (get_value_handle): Ditto.
3639
3640 2005-05-15  Richard Earnshaw  <richard.earnshaw@arm.com>
3641
3642         * arm.c (thumb_unexpanded_epilogue): Delete unused variable 'mode'.
3643
3644 2005-05-15  Andreas Jaeger  <aj@suse.de>
3645
3646         * gcc.c (pfatal_pexecute): Remove unused local function.
3647
3648 2005-05-15  Richard Sandiford  <rsandifo@redhat.com>
3649
3650         * optc-gen.awk: Remove excess indentation.
3651         * opth-gen.awk: Likewise.
3652
3653 2005-05-14  Kaz Kojima  <kkojima@gcc.gnu.org>
3654
3655         * config/sh/sh.c (sh_output_mi_thunk): Check cfun->cfg instead
3656         of basic_block_info.  Call init_flow and find_basic_blocks
3657         before dbr_schedule if needed.
3658
3659 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
3660
3661         * tree-optimize.c (init_tree_optimization_passes): Move
3662         pass_cd_dce in place of the last pass_dce.
3663
3664         PR tree-optimization/21563
3665         * tree-vrp.c (compare_value): Return boolean_false_node when
3666         SSA_NAME in "if (SSA_NAME == CST)" is strictly smaller than or
3667         strictly larger than CST.
3668
3669 2005-05-14  Nathan Sidwell  <nathan@codesourcery.com>
3670             Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3671
3672         * config/vax/vax.c: (print_operand_address) Use gcc_unreachable() and
3673         gcc_assert().
3674         (rev_cond_name) Likewise.
3675         (vax_float_literal) Likewise.
3676         * config/vax/vax.md: Likewise.
3677
3678 2005-05-14  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3679
3680         * config/vax/vax.md: define_constant VAXens AP, FP, SP and PC
3681         registers and use them (specifically the stack pointer).
3682         * config/vax/vax.h: Use above defines right here.
3683
3684         * config/vax/vax.c: (override_options) Remove 'register' keyword.
3685         (split_quadword_operands) Likewise. (rev_cond_name) Likewise.
3686         (vax_float_literal) Likewise. (vax_rtx_costs) Remove trailing
3687         whitespace.
3688         * config/vax/vax.h: Remove 'register' keyword. Misc. whitespace fixes,
3689         mostly removal of trailing spaces...
3690         * config/vax/vax-modes.def: Remove trailing whitespace.
3691
3692         * config/vax/elf.h: Update whitespace.
3693
3694 2005-05-14  Richard Guenther  <rguenth@gcc.gnu.org>
3695
3696         Revert
3697         2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
3698         * fold-const.c (fold_indirect_ref_1): Avoid removing
3699         NOP_EXPRs with type qualifiers like const.
3700
3701 2005-05-14  Jan Hubicka  <jh@suse.cz>
3702
3703         Patch by Richard Henderson:
3704         * tree-eh.c (tree_can_throw_internal, tree_can_throw_external):
3705         Handle RESX expressions properly.
3706
3707         * tree-eh.c (record_stmt_eh_region): Use add_stmt_to_eh_region.
3708         (add_stmt_to_eh_region_fn): Nest into CALL_EXPR.
3709         (remove_stmt_from_eh_region_fn): Likewise.
3710
3711         * tree-cfg.c (execute_warn_function_return): Break out noreturn
3712         warning too..
3713         (execute_warn_function_noreturn): ... here.
3714         (pass_warn_function_noreturn): New pass.
3715         * tree-pass.h (pass_warn_function_noreturn): Declare
3716         * tree-optimize.c (init_tree_optimization_passes): Move return
3717         warnings early and add noreturn warnings at place of previous
3718         return warnings.
3719
3720 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
3721
3722         * tree-ssa-live.c (tpa_init, tpa_delete, tpa_compact,
3723         root_var_init, type_var_init): Use VEC instead of VARRAY.
3724         * tree-ssa-live.h (tree_partition_associator_d): Change the
3725         type of trees to VEC(tree,heap)*.
3726         (tpa_tree): Use VEC instead of VARRAY.
3727
3728 2005-05-14  Richard Guenther  <rguenth@gcc.gnu.org>
3729
3730         * fold-const.c (div_if_zero_remainder): New function.
3731         (try_move_mult_to_index): Use it.
3732
3733 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
3734
3735         * tree-eh.c (leh_tf_state): Change the type of dest_array to
3736         VEC(tree,heap)*.
3737         (maybe_record_in_goto_queue, lower_try_finally_onedest,
3738         lower_try_finally_copy, lower_try_finally_switch,
3739         lower_try_finally): Use VEC instead of VARRAY.
3740
3741 2005-05-14  Hans-Peter Nilsson  <hp@axis.com>
3742
3743         * config/cris/cris.h (Node: Register Classes): Remove obsoleted
3744         comment regarding defined register classes.
3745         (LEGITIMIZE_RELOAD_ADDRESS): Do not define.
3746
3747 2005-05-14  Kazu Hirata  <kazu@cs.umass.edu>
3748
3749         * tree-optimize.c (init_tree_optimization_passes): Move
3750         pass_merge_phi before the first pass_dominator.
3751
3752 2005-05-13  Richard Earnshaw  <richard.earnshaw@arm.com>
3753
3754         * arm.h (INITIALIZE_TRAMPOLINE): Make the call to __clear_cache
3755         unconditional.
3756
3757 2005-05-13  Josh Conner  <jconner@apple.com>
3758
3759         * config/arm/arm.c (arm_size_return_regs): New.
3760         (thumb_unexpanded_epilogue): replace in-line calculation
3761         of return registers with call to arm_size_return_regs.
3762         (use_return_insn): Include test of which registers are
3763         being used to hold return values, to accommodate
3764         vector return values.
3765
3766 2005-05-11  Aldy Hernandez  <aldyh@redhat.com>
3767
3768         * config/rs6000/sysv4.opt (mlittle): Handle.
3769
3770         * config/rs6000/rs6000.c (rs6000_handle_option): Set
3771         target_flags_explicit when appropriate.
3772
3773 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
3774
3775         PR middle-end/20714:
3776         * optabs.c (no_conflict_data): New struct.
3777         (no_conflict_move_test): New function.
3778         (emit_no_conflict_block): Use it.
3779
3780 2005-05-13  Adam Nemet  <anemet@lnxw.com>
3781
3782         * doc/invoke.texi (Debugging Options): Option
3783         -fdump-translation-unit only works with C++ now.
3784
3785 2005-05-13  Hans-Peter Nilsson  <hp@axis.com>
3786
3787         Replace calls to abort in CRIS port.
3788         * config/cris/cris.h (CRIS_ASSERT): New macro.
3789         * config/cris/cris.md ("*movsi_internal"): Use CRIS_ASSERT and
3790         internal_error instead of abort.
3791         ("movsi"): Ditto.  Unquote preparation statement section.
3792         ("call", "call_value"): Ditto, but use gcc_assert where
3793         appropriate.  Tweak comments.
3794         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Define in terms of
3795         CRIS_ASSERT.
3796         (cris_op_str): Call internal_error, not abort.
3797         (cris_print_operand): Tweak "abort" reference to "die" in comment.
3798         (cris_initial_elimination_offset): Call gcc_unreachable, not abort.
3799         (cris_notice_update_cc): Call internal_error, not abort.
3800         (cris_expand_return, cris_expand_prologue, cris_gen_movem_load)
3801         (cris_emit_movem_store, cris_asm_output_symbol_ref)
3802         (cris_output_addr_const_extra): Use CRIS_ASSERT, don't call abort.
3803         (cris_symbol, cris_got_symbol): Use CRIS_ASSERT instead of
3804         ENABLE_CHECKING-guarded abort call.
3805         (cris_split_movdx): Use CRIS_ASSERT instead of abort with test.
3806         Use internal_error at end of test-chain.
3807
3808 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
3809
3810         PR rtl-optimization/20769:
3811         * bt-load.c (compute_defs_uses_and_gen): Check for the blockage
3812         pattern emitted by expand_nl_goto_receiver.
3813
3814         PR middle-end/20793:
3815         * integrate.c (allocate_initial_values): Update register liveness
3816         information.
3817
3818 2005-05-13  Josh Conner  <jconner@apple.com>
3819
3820         * arm.c (arm_return_in_memory): Add handling for vector return types.
3821
3822 2005-05-13  David Ung  <davidu@mips.com>
3823
3824         * config/mips/mips.h (processor_type): Add new PROCESSOR_4KP
3825         name.
3826         * config/mips/mips.c: Add 4km alias.
3827         * config/mips/mips.md: Add 4kp to cpu attrib and include 4k.md.
3828         * config/mips/4k.md: New file, add 4Kc/4Kp DFA pipeline
3829         description.
3830
3831 2005-05-13  Jan Hubicka  <jh@suse.cz>
3832
3833         * c-decl.c (finish_function): Suppress "control reaches end of
3834         non-void function" when "no return statement in function
3835         returning non-void" is issued.
3836
3837         * tree-inline.c (copy_body_r): Simplify substituted ADDR_EXPRs.
3838         * tree-optimize.c (pass_gimple): Kill.
3839         (init_tree_optimization_passes): Kill pass_gimple.
3840         * tree-cfg.c (build_tree_cfg): Do verify_stmts to check that we are gimple.
3841         * tree-dump.c (dump_files): Rename .generic to .gimple.*
3842
3843 2005-05-13  J"orn Rennecke <joern.rennecke@st.com>
3844
3845         PR rtl-optimization/20756:
3846         * basic-block.h (PROP_DEAD_INSN): Define.
3847         * flow.c (propagate_one_insn): Set during mark_set_regs call
3848         for a dead insn.
3849         (mark_set_1): Emit a clobber when we are about to delete a dead insn
3850         that kills a live register.
3851
3852 2005-05-13  Adrian Straetling  <straetling@de.ibm.com>
3853
3854         * config/s390/s390.md: ("DBL"): New mode attribute.
3855         ("*movmem_long_64", "*movmem_long_31"): Merge to "*movmem_long".
3856         ("*clrmem_long_64", "*clrmem_long_31"): Merge to "*clrmem_long".
3857         ("*cmpmem_long_64", "*cmpmem_long_31"): Merge to "*cmpmem_long".
3858
3859 2005-05-13  Richard Guenther  <rguenth@gcc.gnu.org>
3860
3861         * c-format.c (check_format_arg): Handle string literals of
3862         the form &"string"[offset].
3863
3864         * g++.dg/warn/format4.C: New testcase.
3865
3866 2005-05-13  Kazu Hirata  <kazu@cs.umass.edu>
3867
3868         * config/mips/3000.md, config/mips/4000.md,
3869         config/mips/4100.md, config/mips/4300.md, config/mips/4600.md,
3870         config/mips/5000.md, config/mips/7000.md, config/mips/9000.md,
3871         config/mips/generic.md, config/pdp11/pdp11.md,
3872         config/sh/crt1.asm, config/sh/lib1funcs.asm,
3873         config/sh/sh-modes.def, config/sh/sh-protos.h,
3874         config/sh/shmedia.md, config/sh/ushmedia.h: Update copyright.
3875
3876 2005-05-13  Richard Henderson  <rth@redhat.com>
3877
3878         * function.c (instantiate_virtual_regs_in_insn): Do not simplify
3879         addition to move unless dest is a register.  Do not skip
3880         instantiation in dest on addition simplification.
3881
3882 2005-05-13  Hans-Peter Nilsson  <hp@axis.com>
3883
3884         * config/cris/cris.c (cris_print_operand) <case 'H'; case
3885         CONST_INT>: Use operand_subword and HOST_WIDE_INT_PRINT_DEC for
3886         output; don't have special case for HOST_BITS_PER_WIDE_INT == 32.
3887
3888 2005-05-13  Jan Hubicka  <jh@suse.cz>
3889
3890         * basic-block.h (FOR_ALL_BB_FN): New macro.
3891         (init_flow): Initialize cfg structure.
3892         * function.c (allocate_struct_function): Do not initialize cfg structure.
3893         * tree-cfg.c (init_empty_tree_cfg): Break out from ...
3894         (build_tree_cfg): ... here.
3895         * tree-flow.h (init_empty_tree_cfg): Declare.
3896
3897 2005-05-12  Steven Bosscher <stevenb@suse.de>
3898
3899         Fix PR tree-optimization/21520
3900         * tree-ssa-pre.c (phi_translate): Use fully_constant_expression
3901         to attempt to fold constants.
3902
3903 2005-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
3904
3905         * config/sh/sh.c: Declare the prototype of sh_adjust_unroll_max
3906         only when TARGET_ADJUST_UNROLL_MAX is defined.
3907         (general_movsrc_operand): Use the C style comment.
3908         (ua_offset): Use prototype.
3909
3910 2005-05-12  Zdenek Dvorak  <dvorakz@suse.cz>
3911
3912         * tree-ssa-loop-im.c (struct mem_ref): Add field "next".
3913         (struct hmr_data, hoist_memory_reference, memref_del,
3914         struct fmrv_data): Removed.
3915         (hoist_memory_references, free_mem_ref, free_mem_refs): New functions.
3916         (gather_mem_refs, gather_mem_refs_stmt): Add new references to the
3917         list.
3918         (find_more_ref_vops): Traverse the list of memory references.
3919         (determine_lsm_loop): Work with the list of memory references instead
3920         of traversing the hashtable.
3921
3922 2005-05-12  Steven Bosscher  <stevenb@suse.de>
3923             Stuart Hastings <stuart@apple.com>
3924             Jan Hubicka  <jh@suse.cz>
3925
3926         * except.c  (duplicate_eh_region_1, duplicate_eh_region_2,
3927         duplicate_eh_regions): New functions, based on old
3928         implementation removed with RTL inliner.
3929         (reachable_next_level): Modify behaviour pre-inline.
3930         * except.h (duplicate_eh_regions_map, duplicate_eh_regions):
3931         Declare.
3932         * function.h (struct function): Add after_inlining flag.
3933         * tree-optimize.c (tree_rest_of_compilation): Set it.
3934         * tree-eh.c (add_stmt_to_eh_region_fn): Initialize hashtable
3935         when needed.
3936         * tree-cfg.c (label_to_block_fn): Deal with cases where
3937         label was never insterted into code.
3938
3939 2005-05-12  Zack Weinberg  <zack@codesourcery.com>
3940
3941         * doc/cpp.texi: Document that #sccs is a synonym for #ident.
3942
3943 2005-05-12  Daniel Berlin  <dberlin@dberlin.org>
3944
3945         Fix PR tree-optimization/21532
3946         * tree-ssa-pre.c (create_expression_by_pieces): stmt
3947         needs to go onto the inserted_exprs list.
3948
3949 2005-05-12  Ian Lance Taylor  <ian@airs.com>
3950
3951         * c-common.h (statement_code_p): Don't declare.
3952         (STATEMENT_CODE_P): Don't define.
3953         (INIT_STATEMENT_CODES): Don't define.
3954         * c-common.c (statement_code_p): Don't define.
3955
3956 2005-05-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
3957
3958         * config/sparc/sparc.h: Remove dead code.
3959         * config/sparc/sparc.c (sparc_compute_frame_size): Use
3960         FIRST_PARM_OFFSET for the size of the register window area.
3961         (emit_save_regs): Rename into emit_save_or_restore_regs.
3962         Add 'action' parameter.  Use 4095 as upper bound for the offset.
3963         Pass 'action' to save_or_restore_regs.
3964         (emit_restore_regs): Delete.
3965         (sparc_expand_prologue): Call emit_save_or_restore_regs.
3966         (sparc_expand_epilogue): Likewise.
3967         * config/sparc/sparc.md (mode macro P): Move.
3968         (movdi_insn_sp32_v9, movdi_insn_sp32): Swap.
3969         (mov<V32:mode> expander): Move to the top of the V32 section.
3970         (movdf_insn_sp32_v9_no_fpu, movdf_insn_sp32_v9): Swap.
3971         (movtf_insn_sp64_hq, movtf_insn_sp64): Swap.
3972         (sibcall_epilogue): Move.
3973
3974 2005-05-12  Richard Earnshaw  <richard.earnshaw@arm.com>
3975
3976         PR target/21501
3977         * arm.c (arm_gen_constant): Sign-extend intermediate values when
3978         synthesizing a constant of the difference of two immediates.
3979
3980 2005-05-12  Richard Earnshaw  <richard.earnshaw@arm.com>
3981
3982         * arm/vfp.md (negsf2_vfp): Add alternative using integer registers.
3983         (negdf2_vfp): Likewise.  Convert to define_insn_and_split and split
3984         the alternatives using integer registers into the appropriate
3985         primitives.
3986
3987 2005-05-11 Kenneth Zadeck <zadeck@naturalbridge.com>
3988
3989         * bitmap.c (bitmap_elmt_to_freelist, bitmap_element_allocate,
3990         bitmap_elt_clear_from, bitmap_clear): Changed freelist structure.
3991         * bitmap.h: Fixed comments.
3992
3993 2005-05-11  Richard Henderson  <rth@redhat.com>
3994
3995         PR target/21412
3996         * config/ia64/ia64.c (TARGET_CANNOT_FORCE_CONST_MEM): New.
3997         (ia64_cannot_force_const_mem): New.
3998         (tls_symbolic_operand_type): New.
3999         (ia64_legitimate_constant_p): New.
4000         (ia64_expand_load_address): Return true on success.  Improve
4001         checks for when we should not split.
4002         (ia64_expand_tls_address): New addend operand.  Distribute it
4003         as appropriate to the tls_kind.  Delay referencing gp.
4004         (ia64_expand_move): Split symbolic addend as necessary.  Handle
4005         tls symbols with addends.
4006         * config/ia64/ia64-protos.h: Update.
4007         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): False for r0,
4008         p0, f0, f1, and r13.
4009         (LEGITIMATE_CONSTANT_P): Move to ia64_legitimate_constant_p.
4010         * config/ia64/ia64.md (UNSPEC_DTPMOD): New.
4011         (symbolic_operand splitter): Pass everything through
4012         ia64_expand_load_address and FAIL or DONE as appropriate.
4013         (load_fptr): Only accept after reload.
4014         (load_fptr_internal1, gprel64_offset, load_gprel64, load_symptr_high,
4015         load_symptr_low, load_ltoff_dtpmod,
4016         (load_dtpmod): New.
4017         (load_dtprel): Only accept tls symbols.
4018         (load_dtprel64, load_dtprel22): Likewise.
4019         (load_tprel, load_tprel64, load_tprel22): Likewise.
4020         (load_dtprel_gd, load_ltoff_dtprel, load_tprel_ie): New.
4021         (add_dtprel): Only accept tls symbols.  Canonicalize PLUS.
4022         (add_dtprel14, add_dtprel22): Likewise.
4023         (add_tprel, add_tprel14, add_tprel22): Likewise.
4024         * config/ia64/predicates.md (small_addr_symbolic_operand): New.
4025         (any_offset_symbol_operand, aligned_offset_symbol_operand): New.
4026         (got_symbolic_operand): Check CONST offsets.
4027         (tls_symbolic_operand, ld_tls_symbolic_operand): New.
4028         (ie_tls_symbolic_operand, le_tls_symbolic_operand): New.
4029         (move_operand): Don't handle tls here.  Check CONST offsets.
4030
4031 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
4032
4033         * config/mips/7000.md (rm7_impy_si_mult): Just match imul and imadd.
4034         Remove hilo_operand check.
4035         (rm7_impy_si_mul): Just match imul3.  Remove hilo_operand check.
4036         * config/mips/predicates.md (hilo_operand): Delete.
4037
4038 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
4039
4040         * config/mips/sr71k.md, config/mips/7000.md: Reformat.
4041
4042 2005-05-11  Kazu Hirata  <kazu@cs.umass.edu>
4043
4044         PR tree-optimizer/18472
4045         * tree-if-conv.c (tree_if_convert_stmt,
4046         if_convertible_modify_expr_p): Don't handle GOTO_EXPR.
4047
4048 2005-05-11  Jan Hubicka  <jh@suse.cz>
4049
4050         * Makefile.in (tree-eh.o: Kill gt-tree-eh.h dependency.
4051         (GTFILES): add except.h.
4052         * except.c (eh_status): Add throw_stmt_table.
4053         (set_eh_throw_stmt_table, get_eh_throw_stmt_table): New functions.
4054         * except.h (add_stmt_to_eh_region_fn, remove_stmt_from_eh_region_fn,
4055         lookup_stmt_eh_region_fn): Declare.
4056         (throw_stmt_node): New structure.
4057         (set_eh_throw_stmt_table, get_eh_throw_stmt_table): New.
4058         * gengtype.c (open_base_files): Add except.h to inlines.
4059         * tree-eh.c (throw_stmt_node): Kill.
4060         (record_stmt_eh_region): Update.
4061         (add_stmt_to_eh_region_fn): Break out from ...
4062         (add_stmt_to_eh_region): ... here.
4063         (remove_stmt_from_eh_region_fn): Break out from ...
4064         (remove_stmt_from_eh_region): ... here.
4065         (lookup_stmt_eh_region_fn): Break out from ...
4066         (lookup_stmt_eh_region): ... here.
4067         (honor_protect_cleanup_actions): Use build_resx.
4068         (lower_try_finally_onedest): Likewise.
4069         (lower_try_finally_copy): Likewise.
4070         (lower_try_finally_switch): Likewise.
4071         (lower_eh_constructs): Update eh table construction.
4072         * tree.c (build_resx): New.
4073         * tree.h (build_resx): Declare.
4074
4075 2005-05-11  H.J. Lu  <hongjiu.lu@intel.com>
4076
4077         * libgcov.c (gcov_exit): Set prefix_length to 0 if no relocation
4078         is needed.
4079
4080 2005-05-11  Kazu Hirata  <kazu@cs.umass.edu>
4081
4082         * fold-const.c, libgcov.c: Fix comment typos.
4083
4084         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove
4085         redundant code.
4086
4087 2005-05-11  Daniel Jacobowitz  <dan@codesourcery.com>
4088
4089         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
4090         * config/arm/arm.h (SUBTARGET_FRAME_POINTER_REQUIRED): Provide
4091         default definition.
4092         (FRAME_POINTER_REQUIRED): Use SUBTARGET_FRAME_POINTER_REQUIRED.
4093
4094 2005-05-11  Nathan Sidwell  <nathan@codesourcery.com>
4095
4096         PR bootstrap/21481
4097         * crtstuff.c: Include auto-host.h again, for now.
4098
4099 2005-05-11  Richard Sandiford  <rsandifo@redhat.com>
4100
4101         * config/mips/24k.md: Remove trailing whitespace.
4102
4103 2005-05-11  David Ung  <davidu@mips.com>
4104
4105         * config/mips/mips.md (type): Add imul3.
4106         (length, hazard, may_clobber_hilo): Check for imul3.
4107         (mulsi3_mult3, muldi3_mult3, *muls, <su>mulsi3_highpart_mulhi_internal)
4108         (*<su>mulsi3_highpart_neg_mulhi_internal): Set attr to imul3.
4109         * config/mips/24k.md (r24k_int_mul3): Enable this reservation
4110         for a 3 operand mul and its bypasses.
4111         * config/mips/3000.md (r3k_imul): Add imul3 to reservations.
4112         * config/mips/4000.md (r4k_imul): Likewise.
4113         * config/mips/4100.md (r4100_imul_si, r4100_imul_di):  Likewise.
4114         * config/mips/4130.md (vr4130_class, vr4130_mulsi)
4115         (vr4130_muldi): Likewise.
4116         * config/mips/4300.md (r4300_imul_si, r4300_imul_di): Likewise.
4117         * config/mips/4600.md (r4600_imul, r4650_imul): Likewise.
4118         * config/mips/5000.md (r5k_imul_si, r5k_imul_di): Likewise.
4119         * config/mips/5400.md (ir_vr54_imul_si, ir_vr54_imul_di)
4120         (ir_vr54_imadd_si): Likewise.
4121         * config/mips/5500.md (ir_vr55_imul_si, ir_vr55_imul_di):  Likewise.
4122         * config/mips/7000.md (rm7_impy_si_mult, rm7_impy_si_mul)
4123         (rm7_impy_di): Likewise.
4124         * config/mips/9000.md (rm9k_mulsi, rm9k_muldi):  Likewise.
4125         * config/mips/generic.md (generic_imul): Likewise.
4126         * config/mips/sb1.md (ir_sb1_mulsi, ir_sb1_muldi): Likewise.
4127         * config/mips/sr71k.md (ir_sr70_imul_si, ir_sr70_imul_di):  Likewise.
4128
4129 2005-05-11  J"orn Rennecke <joern.rennecke@st.com>
4130
4131         PR middle-end/20371:
4132         * tree.h (record_layout_info_s): New member prev_packed.
4133         * stor-layout.c (update_alignment_for_field): Fix comment about
4134         KNOWN_ALIGN.  For MS bitfields, if we start a new run, make sure
4135         we start it properly aligned.
4136         (place_field): At the beginning of a record, pass 0 as KNOWN_ALIGN
4137         to update_alignment_for_field, and recompute it afterwards using
4138         the alignment of the record.
4139         When a packed bitfield precedes an MS bitfield, don't add padding
4140         at the end of the packed bitfield on behalf of the base type of
4141         the packed bit field.
4142         Don't adjust rli->bitpos at the end
4143         of an MS bitfield run if we already adjusted bitpos/offset for an
4144         alignment as large or larger than the bitfield type size.
4145         Take possible record alignment > BIGGEST_ALIGNMENT into account
4146         when calculating actual_align.
4147         Only put packed buit fields into rli->prev_field if they end up
4148         suitably aligned.
4149         Also set rli->remaining_in_alignment when we re-set rli->prev_field.
4150         Update rli->remaining_in_alignment when we have already started a
4151         run of bit fields and we process a packed bit field.
4152
4153 2005-05-11  Sebastian Pop  <pop@cri.ensmp.fr>
4154
4155         * tree-data-ref.c (find_data_references_in_loop): Give up when
4156         the body of the loop contains a CALL_EXPR or an ASM_EXPR: they
4157         may embed arbitrary side effects.
4158         Remove the assumption that GIMPLE form contains a single array
4159         access per statement.
4160         When the statement contains virtual operands, fail if it is not
4161         a MODIFY_EXPR or a CALL_EXPR.
4162         Return after the dont know node is inserted.
4163
4164 2005-05-11  Richard Earnshaw  <richard.earnshaw@arm.com>
4165
4166         * arm.md (negsf2, negdf2): Permit these expands when compiling for VFP.
4167
4168 2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
4169
4170         PR middle-end/19807
4171         PR tree-optimization/19639
4172         * fold-const.c (try_move_mult_to_index): Handle INTEGER_CST
4173         and generic summands for char* as s * delta, too, folding &a[i]
4174         CODE x to &a[i CODE x/s].  Use tree_int_cst_equal
4175         for comparison of steps.  Convert types for index addition.
4176         (fold_binary): Adjust the callers to always dispatch to
4177         try_move_mult_to_index.
4178         * tree-ssa-propagate.c (set_rhs): Avoid setting rhs to
4179         expr with non-gimple ARRAY_REF offset.
4180
4181 2005-05-11  Richard Guenther  <rguenth@gcc.gnu.org>
4182
4183         * fold-const.c (fold_indirect_ref_1): Avoid removing
4184         NOP_EXPRs with type qualifiers like const.
4185
4186 2005-05-11  Richard Henderson  <rth@redhat.com>
4187
4188         PR c/21502
4189         * c-decl.c (finish_decl): Propagate the completed array type of
4190         a global variable into the binding.
4191
4192 2005-05-10  Matt Kraai  <kraai@ftbfs.org>
4193
4194         * Makefile.in (gtype-desc.o, build/genautomata.o)
4195         (build/varray.o): Depend on $(VARRAY_H).
4196
4197 2005-05-10  Diego Novillo  <dnovillo@redhat.com>
4198
4199         * tree-optimize.c (init_tree_optimization_passes): Re-organize
4200         optimization passes to do an initial batch of scalar cleanups.
4201
4202 2005-05-10  Ian Lance Taylor  <ian@airs.com>
4203
4204         * read-rtl.c (struct macro_traverse_data): Define.
4205         (map_attr_string): New static function, broken out of
4206         apply_macro_to_string.
4207         (mode_attr_index, apply_mode_maps): New static functions.
4208         (apply_macro_to_string): Call map_attr_string.
4209         (apply_macro_to_rtx): Add mode_maps and infile parameters.  Change
4210         all callers.
4211         (apply_macro_traverse): Expect data to point to a struct
4212         macro_traverse_data.
4213         (read_rtx): Add mode_maps local variable.  Use mode_traverse_data
4214         to pass data through htab_traverse.
4215         (read_rtx_1): Add mode_maps parameter.  Change all callers.
4216         Handle mode names which are attribute strings.
4217         * doc/md.texi (Substitutions): Rename from String Substitutions.
4218         Change references.  Document using attributes as modes.
4219
4220 2005-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
4221
4222         * tree-cfg.c (tree_duplicate_sese_region): Update profile.
4223         * tree-optimize.c (init_tree_optimization_passes) Swap
4224         pass_ch and pass_profile.
4225         * tree-ssa-loop-ch.c (copy_loop_headers): Do not update profile
4226         here.  Remove rewrite_into_loop_closed_ssa call.
4227
4228 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
4229
4230         * config/s390/s390.c: (s390_const_double_ok_for_constraint_p): New
4231         function.
4232         (legitimate_reload_constant_p): Add check for const double zero.
4233         * config/s390/s390.md: Add comment for constraint letter 'G'.
4234         ("*movdf_64", "*movdf_31", "movsf"): Add constraint and proper
4235         attributes for new case.
4236         * config/s390/s390.h: (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Define it as
4237         s390_const_double_ok_for_constraint_p.
4238         * config/s390/s390-protos.h (s390_const_double_ok_for_constraint_p):
4239         Add prototype.
4240
4241 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
4242
4243         PR tree-optimization/21170
4244         * tree-ssa-dom.c, tree-ssa-threadupdate.c: Replace
4245         rewrite_ssa_into_ssa in comments with update_ssa.
4246
4247 2005-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
4248
4249         * tree-ssa-loop-im.c: Include hashtab.h.
4250         (struct mem_ref_loc): New.
4251         (struct mem_ref): Describe the set of references with the same
4252         shape.
4253         (max_stmt_uid, get_stmt_uid, record_mem_ref, free_mem_refs,
4254         maybe_queue_var, fem_single_reachable_address,
4255         for_each_memref, single_reachable_address,
4256         is_call_clobbered_ref, determine_lsm_reg): Removed.
4257         (record_mem_ref_loc, free_mem_ref_locs, determine_lsm_ref,
4258         hoist_memory_reference, memref_hash, memref_eq, memref_del,
4259         gather_mem_refs_stmt, gather_mem_refs, find_more_ref_vops):
4260         New functions.
4261         (rewrite_mem_refs, schedule_sm): Use mem_ref_loc list.
4262         (determine_lsm_loop): Rewritten.
4263         (determine_lsm): Do not set stmt uids.
4264
4265 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
4266
4267         * config/s390/s390.md: Add comment lines for 'f' and 't' constraint
4268         letters.
4269
4270 2005-05-10  Adrian Straetling  <straetling@de.ibm.com>
4271
4272         * config/s390/s390.md: ("anddi3","andsi3","andhi3","andqi3"): Merge.
4273         ("iordi3", "iorsi3", "iorhi3", "iorqi3"): Merge.
4274         ("xordi3", "xorsi3", "xorhi3", "xorqi3"): Merge.
4275
4276 2005-05-10  Jeff Law  <law@redhat.com>
4277
4278         * tree-ssa-dom.c (dom_opt_finalize_block): Do not call
4279         thread_across_edge for any abnormal edges.
4280
4281 2005-05-10  Richard Henderson  <rth@redhat.com>
4282
4283         * config/ia64/ia64.c (ia64_expand_atomic_op): New.
4284         * config/ia64/ia64-protos.h: Declare it.
4285         * config/ia64/sync.md (I124MODE, FETCHOP, fetchop_name): New.
4286         (sync_add<I48MODE>, sync_old_add<I48MODE>): Remove.
4287         (sync_<FETCHOP><IMODE>, sync_nand<IMODE>): New.
4288         (sync_old_<FETCHOP><IMODE>, sync_old_nand<IMODE>): New.
4289         (sync_new_<FETCHOP><IMODE>, sync_new_nand<IMODE>): New.
4290         (cmpxchg_rel_<I124MODE>): Split from cmpxchg_acq_<IMODE>.  Zero
4291         extend result; use release semantics.
4292         (cmpxchg_rel_di): Rename from cmpxchg_acq_<IMODE>; use release.
4293         (sync_val_compare_and_swap_<IMODE>): Update to match.
4294
4295 2005-05-10  Richard Henderson  <rth@redhat.com>
4296
4297         * optabs.c (expand_compare_and_swap_loop): Don't clobber old value
4298         before comparing it for success.
4299
4300 2005-05-10  Richard Henderson  <rth@redhat.com>
4301
4302         * config/ia64/sync.md (sync_add<I48MODE>): Fix arguments for
4303         no return value pattern.
4304
4305 2005-05-10  Grigory Zagorodnev  <grigory.zagorodnev@intel.com>
4306             H.J. Lu  <hongjiu.lu@intel.com>
4307
4308         * libgcov.c (create_file_directory): New function. Create
4309         directory for the given file name.
4310         (gcov_max_filename): New static var. Keeps size of the longest
4311         file name.
4312         (gcov_exit): Always try to create directory for output
4313         file. Relocate each filename basing on environment vars.
4314         (__gcov_init): Remember the longest file name.
4315         * tsystem.h: include filenames.h to get IS_DIR_SEPARATOR
4316         * doc/gcov.texi (Cross-profiling): New node documenting
4317         cross-profiling management.
4318         * doc/invoke.texi (-fprofile-arcs): Add xref to cross-profiling.
4319
4320 2005-05-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
4321
4322         * config/sparc/sparc.c (mem_min_alignment): Do not rely
4323         on MEM_ALIGN if TARGET_UNALIGNED_DOUBLES.
4324
4325 2005-05-10  Bob Wilson  <bob.wilson@acm.org>
4326
4327         * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Rearrange special
4328         case code to avoid one move instruction.
4329         (__umodsi3, __modsi3): Merge duplicated code sequences.
4330
4331 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
4332
4333         * config/mips/24k.md, config/sh/divtab.c, config/sh/sh.c,
4334         config/sh/sh.md, config/sh/superh.h: Fix comment typos.
4335         * doc/invoke.texi: Fix typos.
4336
4337         * tree-data-ref.c (analyze_array_indexes, analyze_array,
4338         init_data_ref, access_functions_are_affine_or_constant_p,
4339         free_data_refs): Use VEC instead of VARRAY.
4340         * tree-data-ref.h (data_reference): Change the type of
4341         access_fns to VEC(tree,gc)*.
4342         (DR_ACCESS_FN, DR_NUM_DIMENSIONS): Use VEC instead of VARRAY.
4343
4344 2005-05-10  Gabor Loki <loki@gcc.gnu.org>
4345
4346         PR c/17913
4347         * c-typeck.c (build_conditional_expr): Remove reducing cond_expr.
4348         * fold-const.c (fold): Expand the condition of reducing cond_expr.
4349         (contains_label_1, contains_label_p): New functions for checking
4350         labels in a sub-tree.
4351
4352 2005-05-10  Joseph S. Myers  <joseph@codesourcery.com>
4353
4354         PR c/21342
4355         * c-decl.c (pushdecl): When there is a declaration in the current
4356         scope and the declarations are external linkage, check for
4357         compatibility with the type in the external scope and update the
4358         type in the external scope with the composite type information.
4359         Do not form a composite type of the new type and the visible type
4360         if they are incompatible.
4361
4362 2005-05-10  Nathan Sidwell  <nathan@codesourcery.com>
4363
4364         * crtstuff.c: Revert part of 2005-05-08 Change.
4365         (IN_LIBGCC2): Define.
4366
4367 2005-05-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
4368
4369         * config/sparc/sparc.c (fp_sethi_p): Test !SPARC_SIMM13_P and
4370         remove redundant test.
4371         (fp_mov_p): Accept 0.
4372         (fp_high_losum_p): Remove redundant test.
4373         * config/sparc/predicates.md (const_high_operand): Explicitly test
4374         (not small_int_operand).
4375         (fp_const_high_losum_operand): New.
4376         * config/sparc/sparc.md (movsi_insn): Do not emit 'clr'.  Reorder.
4377         (movdi_insn_sp32_v9): Use canonical predicates.
4378         (movdi_insn_sp32): Test !TARGET_V9 instead of !TARGET_ARCH64.
4379         (movdi_insn_sp64_novis): Delete.
4380         (movdi_insn_sp64_vis): Rename into movdi_insn_sp64.
4381         (movsf_insn_novis): Delete.
4382         (movsf_insn_vis): Rename into movsf_insn.
4383         (movsf_no_f_insn): Rename into movsf_insn_no_fpu.
4384         (movsf_lo_sum): Use fp_const_high_losum_operand.
4385         (movsf_high): Likewise.
4386         (movsf_high_losum splitter): Likewise.
4387         (mov<V32:mode> expander): Use register_or_zero_operand.
4388         (mov<V64:mode> expander): Likewise.
4389         (movdf_insn_sp32): Use register_or_zero_operand.
4390         (movdf_no_e_insn_sp32): Use register_or_zero_operand.
4391         Rename into movdf_insn_sp32_no_fpu.
4392         (movdf_no_e_insn_v9_sp32): Use register_or_zero_operand.
4393         Rename into movdf_insn_sp32_v9_no_fpu.
4394         (movdf_insn_v9only_novis): Delete.
4395         (movdf_insn_v9only_vis): Rename into movdf_insn_sp32_v9.
4396         (movdf_insn_sp64_novis): Delete.
4397         (movdf_insn_sp64_vis): Rename into movdf_insn_sp64.
4398         (movdf_no_e_insn_sp64): Use register_or_zero_operand.
4399         Rename into movdf_insn_sp64_no_fpu.
4400         (movtf expander): Use register_or_zero_operand.
4401         (movtf_insn_sp32): Delete.
4402         (movtf_insn_vis_sp32): Use register_or_zero_operand.
4403         Rename into movtf_insn_sp32.
4404         (movtf_no_e_insn_sp32): Use register_or_zero_operand.
4405         Rename into movtf_insn_sp32_no_fpu.
4406         (movtf_insn_hq_sp64): Delete.
4407         (movtf_insn_hq_vis_sp64): Use register_or_zero_operand.
4408         Rename into movtf_insn_sp64_hq.
4409         (movtf_insn_sp64): Delete.
4410         (movtf_insn_vis_sp64): Use register_or_zero_operand.
4411         Rename into movtf_insn_sp64.
4412         (movtf_no_e_insn_sp64): Use register_or_zero_operand.
4413         Rename into movtf_insn_sp64_no_fpu.
4414
4415 2005-05-10  Nathan Sidwell  <nathan@codesourcery.com>
4416
4417         * config/stormy16/stormy16.c (xstormy16_emit_cbranch): Use
4418         gcc_assert and gcc_unreachable as appropriate.
4419         (xstormy16_split_cbranch, xstormy16_output_cbranch_hi,
4420         xstormy16_output_cbranch_si, xstormy16_split_move,
4421         xstormy16_initial_elimination_offset,
4422         xstormy16_encode_section_info, xstormy16_print_operand_address,
4423         xstormy16_expand_call, xstormy16_expand_arith,
4424         xstormy16_output_shift, xstormy16_init_builtins): Likewise.
4425
4426 2005-05-10  Kazu Hirata  <kazu@cs.umass.edu>
4427
4428         * tree-outof-ssa.c (_elim_graph): Change the type of nodes and
4429         const_copies to VEC(tree,heap)*.
4430         (new_elim_graph, delete_elim_graph, elim_graph_size,
4431         elim_graph_add_node, eliminate_build, eliminate_phi): Use VEC
4432         instead of VARRAY.
4433
4434 2005-05-10  Joseph S. Myers  <joseph@codesourcery.com>
4435
4436         PR other/21052
4437         * doc/extend.texi (Type Attributes): Correct example syntax.
4438
4439 2005-05-09  Joseph S. Myers  <joseph@codesourcery.com>
4440
4441         PR c/21160
4442         * doc/invoke.texi (-Wuninitialized): Update documentation.
4443
4444 2005-05-09  Richard Earnshaw  <richard.earnshaw@arm.com>
4445
4446         * arm.c (const_ok_for_arm): Use a faster algorithm.
4447
4448 2005-05-09  David Edelsohn  <edelsohn@gnu.org>
4449
4450         PR target/21477
4451         * config/rs6000/rs6000.md (add_op2): New.
4452         (add<mode>3): Use it.
4453
4454 2005-05-09  Richard Earnshaw  <richard.earnshaw@arm.com>
4455
4456         * arm.c (arm_gen_constant): Add new heuristic for generating
4457         constant integers that can be expressed as the difference of two
4458         valid immediates.
4459
4460 2005-05-09  Roger Sayle  <roger@eyesopen.com>
4461
4462         * c-tree.h (parser_build_unary_op): New prototype.
4463         * c-typeck.c (parser_build_unary_op): New function to construct
4464         a unary operation in the C parser.
4465         * c-parser.c (c_parser_unary_expression):  Use the new function
4466         parser_build_unary_op when appropriate.
4467
4468 2005-05-09  Mark Mitchell  <mark@codesourcery.com>
4469
4470         PR 18655
4471         * dwarf2out.c (output_call_frame_info): Use DWARF2_FRAME_REG_OUT
4472         before outputting DWARF_FRAME_RETURN_COLUMN.
4473
4474 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
4475
4476         * config/s390/s390.c: (s390_branch_condition_mask,
4477         s390_branch_condition_mnemonic, s390_extra_constraint_str,
4478         s390_const_ok_for_constraint_p, s390_expand_plus_operand,
4479         legitimize_pic_address, s390_emit_tls_call_insn,
4480         legitimize_tls_address, legitimize_tls_address,
4481         s390_expand_addcc, print_shift_count_operand, print_operand,
4482         addr_generation_dependency_p, annotate_constant_pool_refs,
4483         s390_split_branches, find_constant_pool_ref,
4484         replace_constant_pool_ref, s390_add_constant, s390_find_constant,
4485         s390_find_execute, s390_mainpool_start, s390_chunkify_start,
4486         s390_output_pool_entry, s390_function_value,
4487         s390_call_saved_register_used, s390_emit_call): Replace
4488         conditional aborts by gcc_assert and unconditional by gcc_unreachable.
4489         (s390_select_ccmode, s390_match_ccmode_set, s390_extract_part,
4490         s390_cannot_force_const_mem, s390_output_dwarf_dtprel,
4491         get_some_local_dynamic_name, s390_function_arg_size,
4492         s390_function_arg_advance, s390_function_arg,
4493         s390_expand_builtin, s390_gen_rtx_const_DI): Replace abort in
4494         default case by gcc_unreachable.
4495         * config/s390/s390.md: ("*cjump_31", "*icjump_31", "*jump31"): Replace
4496         conditional abort by gcc_assert.
4497         ("doloop_si31"): Replace abort in last else by gcc_unreachable.
4498         ("main_pool", "pool"): Replace unconditional abort by gcc_unreachable.
4499
4500 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
4501
4502         * config/s390/s390.c: (s390_decompose_address,
4503         tls_symbolic_operand, legitimate_pic_operand_p,
4504         legitimate_constant_p, legitimate_reload_constant_p,
4505         s390_expand_plus_operand, legitimate_address_p,
4506         legitimate_la_operand_p, ): Remove 'register' from signature.
4507         (symbolic_reference_mentioned_p,
4508         tls_symbolic_reference_mentioned_p): Remove 'register' from local
4509         variable declarations.
4510         (legitimize_address): Remove 'register' from
4511         signature and local variable declarations.
4512
4513 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
4514
4515         * config/s390/s390-protos.h: (s390_match_ccmode,
4516         s390_match_ccmode_set, reg_used_in_mem_p,
4517         symbolic_reference_mentioned_p, tls_symbolic_reference_mentioned_p,
4518         legitimate_la_operand_p, preferred_la_operand_p,
4519         s390_short_displacement, addr_generation_dependency_p,
4520         legitimate_reload_constant_p, legitimate_address_p): Change return type
4521         into 'bool'.
4522         (s390_tm_ccmode): Change type of parameter "mixed" into 'bool'.
4523         * config/s390/s390.c: (s390_match_ccmode,
4524         symbolic_reference_mentioned_p, tls_symbolic_reference_mentioned_p,
4525         legitimate_reload_constant_p): Change return type into 'bool'.
4526         (preferred_la_operand_p,legitimate_la_operand_p, legitimate_address_p):
4527         Likewise.  Additionally adapted comment.
4528         (s390_extra_constraint_p): Change Comment to reflect 'int' return type.
4529         (s390_tm_ccmode): Change type of parameter "mixed" into 'bool'.
4530         (s390_decompose_address): Change the type of the internal flags
4531         "pointer", "base_ptr", "indx_ptr", and the return value into 'bool'.
4532         (struct s390_address): Change type of "pointer" into bool.
4533         * config/s390/s390.md: ("*tmdi_reg", "*tmsi_reg", "tm<mode>_full"):
4534         Adapt calls for 's390_tm_ccmode' to the new signature.
4535
4536 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
4537
4538         * config/s390/s390.c: (s390_match_ccmode_set,
4539         s390_branch_condition_mnemonic, s390_short_displacement,
4540         s390_decompose_address, get_thread_pointer, legitimize_tls_address,
4541         print_shift_count_operand, get_some_local_dynamic_name,
4542         get_some_local_dynamic_name_1, reg_used_in_mem_p,
4543         addr_generation_dependency_p, s390_split_branches,
4544         annotate_constant_pool_refs, find_constant_pool_ref,
4545         replace_constant_pool_ref, find_ltrel_base, replace_ltrel_base,
4546         s390_optimize_prologue, find_unused_clobbered_reg, s390_frame_area,
4547         s390_register_info, s390_frame_info, s390_init_frame_layout,
4548         s390_update_frame_layout, save_fpr, restore_fpr, save_gprs,
4549         restore_gprs, s390_function_arg_size, s390_function_arg_float,
4550         s390_init_machine_status, s390_assemble_integer, s390_handle_option,
4551         s390_encode_section_info, s390_cannot_force_const_mem,
4552         s390_delegitimize_address, s390_return_in_memory, s390_init_builtins,
4553         s390_expand_builtin, s390_output_mi_thunk, s390_safe_attr_type,
4554         s390_adjust_priority, s390_issue_rate,
4555         s390_first_cycle_multipass_dfa_lookahead, s390_cannot_copy_insn_p,
4556         s390_rtx_costs, s390_address_cost, s390_reorg, s390_valid_pointer_mode,
4557         s390_build_builtin_va_list, s390_gimplify_va_arg,
4558         s390_function_ok_for_sibcall, s390_call_saved_register_used,
4559         s390_pass_by_reference, s390_fixed_condition_code_regs,
4560         s390_cc_modes_compatible s390_mainpool_start,, s390_mainpool_finish,
4561         s390_mainpool_cancel, s390_chunkify_start, s390_chunkify_finish,
4562         s390_chunkify_cancel, s390_start_pool, s390_end_pool,
4563         s390_add_pool_insn, s390_find_pool, s390_add_constant,
4564         s390_find_constant, s390_add_execute, s390_find_execute,
4565         s390_execute_label, s390_execute_target, s390_dump_pool,
4566         s390_dump_execute, s390_alloc_pool, s390_free_pool): Remove prototypes.
4567         Move target macro definitions to the end of the file.  Move several
4568         functions within the file to assure correct compiling.
4569
4570 2005-05-09  Steven Bosscher  <stevenb@suse.de>
4571
4572         * calls.c (purge_reg_equiv_notes): Remove, fold into...
4573         (fixup_tail_calls): ...here.  Only look at insns between the
4574         start of the function and the FUNCTION_BEG insn note.
4575
4576         * gcse.c (one_cprop_pass): Fix typos in dumps.
4577
4578         * tree-ssa-operands.h (FOR_EACH_PHI_ARG): Fix typos.
4579
4580 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
4581
4582         * config/s390/s390.h: Move xxx_REGNUM definitions to s390.md.
4583         * config/s390/s390.md: ("SIBCALL_REGNUM", "BASE_REGNUM",
4584         "RETURN_REGNUM", "CC_REGNUM", "TP_REGNUM"): New constants.
4585         Replace every occurrence of '(reg:<MODE> 33)' by '(reg:<MODE>
4586         CC_REGNUM)'.
4587         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Replace
4588         '(reg:<MODE> 36)' by '(reg:<MODE> TP_REGNUM)'.
4589         ("*sibcall_br", "*sibcall_value_br"): Replace '(reg:DI 1)' by '(reg:DI
4590         REG_SC)'.
4591
4592 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
4593
4594         * config/s390/s390.md: ("gf") New mode attribute.
4595         ("fixuns_truncdfdi2", "fixuns_truncdfsi2", "fixuns_truncsfdi2",
4596         "fixuns_truncsfsi2"): Merge.
4597         ("fix_truncdfdi2", "fix_truncsfdi2"): Merge.
4598         ("fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee", "fix_truncsfdi2_ieee",
4599         "fix_truncsfsi2_ieee"): Merge.
4600
4601 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
4602
4603         * config/s390/s390.md: ("FPR") New mode macro.
4604         ("de", "dee"): New mode attributes.
4605         ("cmpdf", "cmpsf"): Merge.
4606         ("*cmpdf_ccs_0", "*cmpsf_ccs_0"): Merge.
4607         ("*cmpdf_ccs_0_ibm", "*cmpdf_ccs_0_ibm"): Merge.
4608         ("*cmpdf_ccs", "*cmpsf_ccs"): Merge.
4609         ("*cmpdf_ccs_ibm", "*cmpsf_ccs_ibm"): Merge.
4610         ("floatdidf2", "floatdisf2"): Merge.
4611         ("adddf3", "addsf3"): Merge.
4612         ("*adddf3", "*addsf3"): Merge.
4613         ("*adddf3_cc", "*addsf3_cc"): Merge.
4614         ("*adddf3_cconly", "*addsf3_cconly"): Merge.
4615         ("*adddf3_ibm", "*addsf3_ibm"): Merge.
4616         ("subdf3", "subsf3"): Merge.
4617         ("*subdf3", "*subsf3"): Merge.
4618         ("*subdf3_cc", "*subsf3_cc"): Merge.
4619         ("*subdf3_cconly", "*subsf3_cconly"): Merge.
4620         ("*subdf3_ibm", "*subsf3_ibm"): Merge.
4621         ("muldf3", "mulsf3"): Merge.
4622         ("*muldf3", "*mulsf3" "): Merge.
4623         ("*muldf3_ibm", "*mulsf3_ibm"): Merge.
4624         ("*fmadddf", "*fmaddsf"): Merge.
4625         ("*fmsubdf", "*fmsubsf"): Merge.
4626         ("divdf3", "divsf3"): Merge.
4627         ("*divdf3", "*divsf3"): Merge.
4628         ("*divdf3_ibm", "*divsf3_ibm"): Merge.
4629         ("negdf2", "negsf2"): Merge.
4630         ("*negdf2_cc", "*negsf2_cc"): Merge.
4631         ("*negdf2_cconly", "*negsf2_cconly"): Merge.
4632         ("*negdf2", "*negsf2"): Merge.
4633         ("*negdf2_ibm", "*negsf2_ibm"): Merge.
4634         ("absdf2", "abssf2"): Merge.
4635         ("*absdf2_cc", "*abssf2_cc"): Merge.
4636         ("*absdf2_cconly", "*abssf2_cconly"): Merge.
4637         ("*absdf2", "*abssf2"): Merge.
4638         ("*absdf2_ibm", "*abssf2_ibm"): Merge.
4639         ("*negabsdf2_cc", "*negabssf2_cc"): Merge.
4640         ("*negabsdf2_cconly", "*negabssf2_cconly"): Merge.
4641         ("*negabsdf2", "*negabssf2"): Merge.
4642         ("sqrtdf2", "sqrtsf2"): Merge.
4643
4644 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
4645
4646         * config/s390/s390.c: (s390_adjust_priority): Adapt to changed
4647         attribute names.
4648         * config/s390/2084.md: ("x_fsimpd", "x_fsimps", "x_fdivd", "x_fdivs",
4649         "x_floadd", "x_floads", "x_fstored", "x_fstores"): Rename to
4650         ("x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
4651         "x_floadsf", "x_fstoredf", "x_fstoresf") and replace 'type'
4652         attribute names.
4653         * config/s390/s390.md: ("type"): Rename "fsimpd, fsimps, floadd, floads,
4654         fstored, fstores, fmuld, fmuls, fdivd, fdivs, fsqrtd, fsqrts" to
4655         "fsimpdf, fsimpsf, floaddf, floadsf, fstoredf, fstoresf, fmuldf,
4656         fmulsf, fdivdf, fdivsf, fsqrtdf, fsqrtsf".
4657         ("*cmpdf_ccs_0", "*cmpdf_css_0_ibm", "*cmpdf_ccs",
4658         "*cmpdf_ccs_ibm", "*cmpsf_ccs_0", "*cmpsf_css_0_ibm",
4659         "*cmpsf_ccs", "*cmpsf_ccs_ibm", "*movdi_64", "*movdi_31",
4660         "*movsi_zarch", "*movsi_esa", "*movdf_64", "*movdf_31", "movsf",
4661         "*muldf3", "*muldf3_ibm", "*fmadddf", "*fmsubdf", "*mulsf3",
4662         "mulsf3_ibm", "*fmaddsf", "fmsubsf", "*divdf3", "*divdf3_ibm",
4663         "*negdf2_cc", "*negdf2_cconly", "*negdf2", "*negdf2_ibm",
4664         "*negsf2_cc", "*negsf2_cconly", "*negsf2", "*absdf2_cc",
4665         "*absdf2_cconly", "*absdf2", "*absdf2_ibm", "*abssf2_cc",
4666         "*abssf2_cconly", "*abssf2", "*abssf2_ibm", "*negabsdf2_cc",
4667         "*negabsdf2_cconly", "*negabsdf2", "*negabssf2_cc",
4668         "*negabssf2_cconly", "*negabssf2", "sqrtdf2", "sqrtsf2"): Rename
4669         'type' value.
4670         ("*divsf3"): Additionally rename second pattern to
4671         "*divsf3_ibm".
4672         ("truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
4673         "*adddf3", "*adddf3_cc", "*adddf3_cconly", "*adddf3_ibm",
4674         "*addsf3", "*addsf3_cc", "*addsf3_cconly", "*subdf3",
4675         "subdf3_cc", "*subdf3_cconly", "*subdf3_ibm", "*subsf3",
4676         "subsf3_cc", "*subsf3_cconly", "*subsf3_ibm"): Merge identical
4677         'type values' and rename 'type' value.
4678         ("*addsf3"): Additionally rename second pattern to
4679         "*addsf3_ibm".
4680
4681 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
4682
4683         * config/s390/s390.md: ("SHIFT"): New mode macro.
4684         ("lr", "shift"): New mode attributes.
4685         ("ashldi3", "lshrdi3"): Merge.
4686         ("*ashldi3_31", "*lshrdi3"_31): Merge.
4687         ("*ashldi3_64", "*lshrdi3"_64): Merge.
4688         ("ashlsi3", "lshrsi3"): Merge.
4689
4690 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
4691
4692         * config/s390/s390.md: ("DSI", "SCOND"): New mode
4693         macros.
4694         ("E", "g"): New mode attributes.
4695         ("*adddi3_alc_cc", "*addsi3_alc_cc"): Merge.
4696         ("*adddi3_alc", "*addsi3_alc"): Merge.
4697         ("*subdi3_slb_cc", "*subsi3_slb_cc"): Merge.
4698         ("*subdi3_slb", "*subsi3_slb"): Merge.
4699         ("adddicc", "addsicc"): Merge.
4700         ("*sconddi", "*scondsi"): Merge.
4701         ("*sconddi_neg", "*scondsi_neg"): Merge.
4702         ("sltu", "sgtu", "sleu", "sgeu"): Merge.
4703         ("negdi2", "negsi2"): Extract expander pattern from
4704         "negsi2" and merge with "negdi2".
4705         ("*negdi2"): Merge with instruction pattern of "negsi2".
4706         ("*negdi2_cc", "*negsi2_cc"): Merge.
4707         ("*negdi2_cconly", "*negsi2_cconly"): Merge.
4708         ("rotldi3", "rotlsi3"): Merge.
4709
4710 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
4711
4712         * config/s390/s390.md: ("hc"): New mode attribute.
4713         ("extendhidi2", "extendqidi2"): Merge.
4714         ("*extendhidi2", "*extendqidi2"): Merge.
4715         ("extendhisi2", "extendqisi2"): Merge.
4716         ("zero_extendhidi2", "zero_extendqidi2"): Merge.
4717         ("*zero_extendhidi2", "*zero_extendqidi2"): Merge.
4718         Merged 2 define_split.
4719         ("*zero_extendhisi2", "*zero_extendqisi2"): Merge.
4720         ("*zero_extendhisi2_64", "*zero_extendqisi2_64"): Merge.
4721
4722 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
4723
4724         * config/s390/s390.md: ("COMPARE"): New mode macro.
4725         ("beq", "bne", "bgt", "bgtu", "blt", "bltu", "bge", "bgeu",
4726         "ble", "bleu", "bunordered", "bordered", "buneq", "bunlt",
4727         "bungt", "bunle", "bunge", "bltgt"): Merge.
4728
4729 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
4730
4731         * config/s390/s390.md: ("INT"): New mode macro.
4732         ("one_cmpldi2", "one_cmplsi2", "one_cmplhi2", "one_cmplqi2"):
4733         Merge.
4734
4735 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
4736
4737         * config/s390/s390.md: ("GPR", "P"): New mode macros.
4738         ("cmpdi", "cmpsi"): Merge.
4739         ("strlendi", "strlensi"): Merge.
4740         ("*strlendi", "*strlensi"): Merge.
4741         ("movmemdi", "movmemsi"): Merge.
4742         ("clrmemdi", "clrmemsi"): Merge.
4743
4744 2005-05-09  Adrian Straetling  <straetling@de.ibm.com>
4745
4746         * config/s390/s390.md: ("HQI"): New mode macro.
4747         ("icm_lo", "icm_hi", "max_uint"): New mode attributes.
4748         ("*tmhi_full", "*tmqi_full"): Merge.
4749         ("*tsthiCCT", "*tstqiCCT"): Merge.
4750         ("*tsthi", "*tstqi"): Merge.
4751         ("*tsthi_cconly", "tstqi_cconly"): Merge.
4752         ("*sethighhisi", "*sethighqisi"): Merge.
4753
4754 2005-05-09  Kazu Hirata  <kazu@cs.umass.edu>
4755
4756         * crtstuff.c, integrate.h, tree-scalar-evolution.h,
4757         config/alpha/unicosmk.h, config/arc/arc.md,
4758         config/arm/bpabi.h, config/arm/coff.h, config/arm/elf.h,
4759         config/arm/ieee754-df.S, config/arm/ieee754-sf.S,
4760         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
4761         config/arm/semi.h, config/arm/uclinux-elf.h,
4762         config/arm/wince-pe.h, config/fr30/fr30.c,
4763         config/rs6000/altivec.h: Update copyright.
4764
4765 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
4766
4767         * config/pdp11/pdp11.c (pdp11_output_function_prologue): Use
4768         gcc_assert and gcc_unreachable as appropriate.
4769         (pdp11_output_function_epilogue, output_move_double,
4770         output_move_quad, print_operand_address, output_jump,
4771         output_addr_const_pdp11): Likewise.
4772         * config/pdp11/pdp11.h (FUNCTION_PROFILER,
4773         ASM_OUTPUT_ALIGN): Likewise.
4774         * config/pdp11/pdp11.md: Likewise.
4775         (extendhisi2, subhi3, subqi3): Likewise.
4776
4777 2005-05-09  David Edelsohn  <edelsohn@gnu.org>
4778
4779         PR middle-end/21237
4780         * dojump.c (do_jump, MINUS_EXPR): Build NE_EXPR and fall through
4781         to NE_EXPR case.
4782
4783 2005-05-09  Kazu Hirata  <kazu@cs.umass.edu>
4784
4785         * config/ia64/ia64.c: Fix a comment typo.
4786
4787 2005-05-09  Richard Earnshaw  <rearnsha@arm.com>
4788
4789         PR target/21397
4790         * arm.c (ARM_OPT_SET_CPU, ARM_OPT_SET_ARCH, ARM_OPT_SET_TUNE): Define.
4791         (arm_override_options): Use them instead of manifest constants.  Don't
4792         allow -march to override the -mtune setting.
4793
4794 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
4795
4796         * config/iq2000/iq2000.c (abort_with_insn): Use fancy_abort.
4797         (gen_int_relational): Use gcc_unreachable and gcc_assert as necessary.
4798         (function_arg_advance, function_arg, save_restore_insns,
4799         iq2000_expand_prologue, iq2000_output_conditional_branch,
4800         expand_one_builtin, print_operand):
4801         * config/iq2000/iq2000.md (tablejump): Likewise.
4802
4803 2005-05-09  David Ung  <davidu@mips.com>
4804
4805         * config/mips/mips.h (processor_type): Add names for the 24K.
4806         * config/mips/mips.c (mips_cpu_info_table): Add names for the 24K
4807         processor family.
4808         * config/mips/mips.md (cnv_mode): New attribute for recording the
4809         conversion types of float convert insns.
4810         (cpu): Add 24k and 24kx.
4811         (include): Include 24k.md file.
4812         (truncdfsf2, extendsfdf2, fix_truncdfsi2_insn, fix_truncdfsi2_macro)
4813         (fix_truncdfdi2, fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2)
4814         (floatdisf2): Setup cnv_mode.
4815         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): Changed mode to SF and
4816         setup cnv_mode.
4817         * config/mips/24k.md: New file, contains 24k DFA pipeline
4818         description.
4819
4820 2005-05-09  Nathan Sidwell  <nathan@codesourcery.com>
4821
4822         * config/sh/sh.c (print_operand_address): Use gcc_assert and
4823         gcc_unreachable as appropriate.
4824         (print_operand, prepare_move_operands, prepare_scc_operands,
4825         output_movedouble, output_branch, shift_insns_rtx, gen_shifty_op,
4826         gen_shl_and, shl_sext_kind, gen_datalabel_ref, dump_table,
4827         fixup_mova, gen_far_branch, sh_reorg, split_branches,
4828         final_prescan_insn, output_stack_adjust, sh_expand_epilogue,
4829         sh_set_return_address, sh_setup_incoming_varargs,
4830         initial_elimination_offset, sh_pch_valid_p, get_free_reg,
4831         sh_expand_builtin, sh_output_mi_thunk, extract_sfunc_addr,
4832         check_use_sfunc_addr): Likewise.
4833         * config/sh/netbsd-elf.h (FUNCTION_PROFILER): Likewise.
4834         * config/sh/sh.h (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
4835         * config/sh/symbian.c (sh_symbian_mark_dllexport,
4836         sh_symbian_mark_dllimport): Likewise.
4837         * config/sh/sh.md: Likewise.
4838         (movdicc, call_pop, call_value_pop, casesi_worker_1,
4839         casesi_worker_2, casesi_shift_media, casesi_load_media,
4840         return_media): Likewise.
4841
4842 2005-05-08  Roger Sayle  <roger@eyesopen.com>
4843
4844         PR inline-asm/8788
4845         * stmt.c (expand_asm_operands): Avoid calling force_reg on BLKmode
4846         operands.
4847
4848 2005-05-08  Richard Henderson  <rth@redhat.com>
4849
4850         * config/alpha/alpha.c (adjust_address): Fix typo last change.
4851
4852 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
4853
4854         * config/m68hc11/m68hc11.h (REG_VALID_P): A regno must be >= 0
4855         and -1 can happen in reg_renumber when no hard register is assigned.
4856
4857 2005-05-08  Steven Bosscher  <stevenb@suse.de>
4858             Kazu Hirata  <kazu@cs.umass.edu>
4859
4860         PR tree-optimization/14841, tree-optimization/15838
4861         * tree-ssa-ccp.c (fold_const_aggregate_ref): New.
4862         (evaluate_stmt): Call it.
4863
4864 2005-05-08  Jakub Jelinek  <jakub@redhat.com>
4865
4866         * config/ia64/ia64.c (ia64_override_options): Don't set
4867         ia64_flag_var_tracking and clear flag_var_tracking here...
4868         (ia64_file_start): ... but here.
4869
4870 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
4871
4872         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use gcc_assert
4873         and gcc_unreachable as appropriate.
4874         (expand_prologue, expand_epilogue, m68hc11_gen_lowpart,
4875         m68hc11_gen_highpart, print_operand, print_operand_address,
4876         m68hc11_expand_compare, m68hc11_expand_compare_and_branch,
4877         m68hc11_gen_movhi): Likewise.
4878         * config/m68hc11/m68hc11.h (HARD_X_REGNUM): Reword comment.
4879         * config/m68hc11/m68hc11.md: Reword comment.
4880
4881 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
4882
4883         PR target/21281
4884         * config/m68hc11/predicates.md (splitable_operand): An immediate is
4885         allowed.
4886
4887 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
4888
4889         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Do not allow
4890         the 68HC12 address indirect addressing mode as it is not supported by
4891         bset and bclr.
4892         * config/m68hc11/m68hc11-protos.h
4893         (m68hc11_valid_addressing_p): Declare.
4894         (m68hc11_add_mode): Declare.
4895         * config/m68hc11/m68hc11.c (m68hc11_valid_addressing_p): Rename from
4896         register_indirect_p and export it.
4897         (m68hc11_z_replacement): Use emit_insn_after when adding the save Z
4898         instruction so that it is part of the good BB.
4899         (m68hc11_gen_movhi): Fix invalid generation of indexed indirect
4900         addressing with movw.
4901         (m68hc11_gen_movqi): Use pula and pulb instead of lda and ldb for
4902         68HC12.
4903         * config/m68hc11/m68hc11.h (ADDR_STRICT, ADDR_INCDEC, ADDR_INDEXED,
4904         ADDR_OFFSET, ADDR_INDIRECT, ADDR__CONST): Moved from m68hc11.c.
4905         * config/m68hc11/m68hc11.md ("movhi_const0"): Use this pattern only
4906         for 68HC11.
4907         ("*movhi_68hc12"): Handle movhi_const0.
4908         ("*subhi3", "subqi3"): Use general_operand for operand 1.
4909         ("*subhi3_zext"): Likewise.
4910
4911 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
4912
4913         PR target/19051
4914         * config/m68hc11/m68hc11.md ("mulqi3"): Use general_operand for
4915         operand 1 and fix constraints.
4916         ("mulqihi3"): Use general_operand for operand 2.
4917
4918 2005-05-08  Julian Brown  <julian@codesourcery.com>
4919             H.J. Lu  <hongjiu.lu@intel.com>
4920             Paul Brook  <paul@codesourcery.com>
4921
4922         * configure.ac: Set ld_vers_major, ld_vers_minor and ld_vers_patch for
4923         GNU linker. Support linker version x.x.x.x.x. Require GNU linker
4924         20050308/2.16.0 or newer for comdat group.
4925         * configure: Regenerated.
4926         * config.in: Regenerated.
4927         * varasm.c (default_function_rodata_section): Put .rodata section in
4928         COMDAT group when necessary.
4929         (default_elf_asm_named_section): Rename HAVE_GAS_COMDAT_GROUP to
4930         HAVE_COMDAT_GROUP.
4931         (default_unique_section_1): Don't use .gnu.linkonce when COMDAT is
4932         available.
4933
4934 2005-05-08  Kazu Hirata  <kazu@cs.umass.edu>
4935
4936         * tree-dfa.c (referenced_vars, add_referenced_var): Use VEC
4937         instead of VARRAY.
4938         * tree-flow.h (num_referenced_var, referenced_var): Likewise.
4939         * tree-into-ssa.c (mark_def_site_blocks): Likewise.
4940         * tree-ssa.c (init_tree_ssa, delete_tree_ssa): Likewise.
4941         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
4942
4943 2005-05-08  Stephane Carrez  <stcarrez@nerim.fr>
4944
4945         PR target/16925
4946         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Handle split of
4947         64-bit constants on 64-bit hosts.
4948         (m68hc11_split_logical): Simplify.
4949         (m68hc11_split_move): Likewise.
4950
4951 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
4952             Paolo Bonzini  <bonzini@gnu.org>
4953
4954         * Makefile.in (cs-tconfig.h): Pass USED_FOR_TARGET to mkconfig.sh
4955         * aclocal.m4 (GCC_TARGET_TEMPLATE, AH_TEMPLATE): New.
4956         * configure.ac (enable_checking): Fix typos in runtime_checking.
4957         (ENABLE_RUNTIME_CHECKING): Mark as target template.
4958         (xm_file): Prepend auto-host.h
4959         (HAVE_GAS_HIDDEN, HAVE_LD_EH_FRAME_HDR): Mark as target template.
4960         * mkconfig.sh: Do not automatically define USED_FOR_TARGET in
4961         tconfig.h.
4962         * crtstuff.c: Do not include auto-host.h.
4963         (IN_LIBGCC2): Do not define.
4964         * gcov-io.h: Include tconfig.h, not auto-host.h.
4965         * libgcc2.c: Do not include auto-host.h.
4966         (abort): Do not undefine.
4967         * libgcov.c: Remove unneeded comment about config.h.
4968         * unwind-dw2-fde-glibc.c: Do not inlude auto-host.h.
4969         * config.in, configure: Regenerated.
4970
4971 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
4972             Falk Hueffner  <falk@debian.org>
4973
4974         * config/alpha/alpha.c (tls_symbolic_operand_1): Use gcc_assert
4975         and gcc_unreachable as appropriate.
4976         (get_aligned_mem, get_unaligned_address,
4977         alpha_emit_set_long_const, alpha_emit_conditional_branch,
4978         alpha_emit_setcc, alpha_emit_conditional_move,
4979         alpha_lookup_xfloating_lib_func, alpha_compute_xfloating_mode_arg,
4980         alpha_emit_xfloating_libcall, alpha_split_tfmode_pair,
4981         alpha_expand_unaligned_load, alpha_expand_block_move,
4982         alpha_expand_zap_mask, get_trap_mode_suffix,
4983         get_round_mode_suffix, get_some_local_dynamic_name,
4984         print_operand_address, function_arg, alpha_return_in_memory,
4985         function_value, alpha_expand_builtin,
4986         alpha_initial_elimination_offset, alpha_expand_epilogue,
4987         summarize_insn, alpha_handle_trap_shadows, alphaev5_insn_pipe,
4988         alphaev5_next_group, alpha_align_insns,
4989         unicosmk_initial_elimination_offset, unicosmk_unique_section,
4990         unicosmk_ssib_name): Likewise.
4991         * config/alpha/alpha.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
4992         * config/alpha/unicosmk.h (TRAMPOLINE_TEMPLATE,
4993         ASM_OUTPUT_ADDR_DIFF_ELT, ASM_OUTPUT_ADDR_DIFF_VEC): Likewise.
4994         * config/alpha/vms.h (INITIAL_ELIMINATION_OFFSET,
4995         ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4996         * config/alpha/alpha.md (*divmodsi_internal_er,
4997         *divmoddi_internal_er, ashldi3, *insxl, sibcall, call_osf,
4998         call_nt, call_umk, call_vms, call_value, sibcall_value,
4999         call_value_osf, call_value_nt, call_value_vms, call_value_umk,
5000         *call_vms_1, *movmemdi_1, *clrmemdi_1, *call_value_vms_1): Likewise.
5001         * config/alpha/predicates.md (input_operand): Likewise.
5002
5003 2005-05-08  Nathan Sidwell  <nathan@codesourcery.com>
5004
5005         * config/frv/frv.c (frv_default_flags_for_cpu): Use gcc_assert and
5006         gcc_unreachable, as appropriate.
5007         (frv_function_prologue, frv_alloc_temp_reg,
5008         frv_initial_elimination_offset, frv_expand_block_move,
5009         frv_expand_block_clear, frv_print_operand_jump_hint,
5010         frv_legitimize_tls_address, unspec_got_name, frv_emit_move,
5011         frv_emit_movsi, frv_split_cond_move, frv_split_minmax,
5012         frv_ifcvt_modify_insn, frv_ifcvt_modify_final,
5013         frv_adjust_field_align, frv_insn_unit, frv_cond_flags,
5014         frv_sort_insn_group, frv_reorder_packet, frv_matching_accg_mode,
5015         frv_in_small_data_p, frv_asm_out_constructor,
5016         frv_asm_out_destructor, frv_output_dwarf_dtprel): Likewise.
5017         * config/frv/frv.md (reload_incc_fp, *cond_exec_si_binary1,
5018         *cond_exec_si_binary2, *cond_exec_si_divide, *cond_exec_si_unary1,
5019         *cond_exec_sf_conv, *cond_exec_sf_add, call, sibcall, call_value,
5020         sibcall_value, casesi): Likewise.
5021
5022         * config/mn10300/mn10300.c (print_operand): Use gcc_assert and
5023         gcc_unreachable as appropriate.
5024         (print_operand_address, mn10300_print_reg_list, expand_prologue,
5025         expand_epilogue, notice_update_cc, initial_offset,
5026         mn10300_address_cost_1): Likewise.
5027         * config/mn10300/mn10300.md: Likewise.
5028         (absdf2, abssf2, negdf2, negsf2): Likewise.
5029
5030 2005-05-08  Richard Sandiford  <rsandifo@redhat.com>
5031
5032         PR target/21416
5033         * config/mips/mips.c (mips_emit_compare): Don't reverse UNGE and UNGT
5034         comparisons.
5035         * config/mips/mips.md (swapped_fcond): New code macro and attribute.
5036         (sgt_<mode>, sge_<mode>): Generalize to all members of swapped_fcond,
5037         including sunge_<mode> and sungt_<mode>.
5038
5039 2005-05-08  Richard Sandiford  <rsandifo@redhat.com>
5040
5041         * integrate.h (get_hard_reg_initial_val): Change type of register
5042         parameter from int to unsigned int.
5043         (has_hard_reg_initial_val): Likewise.
5044         * integrate.c (get_hard_reg_initial_val): Likewise.
5045         (has_hard_reg_initial_val): Likewise.  Remove cast to unsigned int.
5046
5047 2005-05-08  Kazu Hirata  <kazu@cs.umass.edu>
5048
5049         * except.c (eh_status): Change the type of ttype_data to
5050         VEC(tree,gc)*.
5051         (add_ttypes_entry, assign_filter_values,
5052         output_function_exception_table): Use VEC instead of VARRAY.
5053
5054 2005-05-07  David Edelsohn  <edelsohn@gnu.org>
5055
5056         * config/rs6000/rs6000.md (popcount<mode>2): Fix non-C90 constant.
5057
5058 2005-05-07  Paul Brook  <paul@codesourcery.com>
5059
5060         * Makefile.in: Fix dependencies.
5061         (GCOV_IO_H, VARRAY_H): Set.
5062
5063 2005-05-07  Anthony Green  <green@redhat.com>
5064
5065         PR bootstrap/21403
5066         * configure.ac (STMP_FIXPROTO): Fix [ ] consumption problem in
5067         x$STMP_FIXPROTO test.
5068         * configure: Rebuilt.
5069
5070 2005-05-07  Joseph S. Myers  <joseph@codesourcery.com>
5071
5072         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Do not define
5073         inappropriate feature test macros if flag_iso.
5074
5075 2005-05-07  Joseph S. Myers  <joseph@codesourcery.com>
5076
5077         * config/ia64/hpux.h (NO_IMPLICIT_EXTERN_C): Define.
5078
5079 2005-05-07  Hans-Peter Nilsson  <hp@axis.com>
5080
5081         PR target/21441
5082         * config/cris/cris.md ("*movdi_insn", "*mov_sidesisf_biap")
5083         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
5084         Handle moved operand being in special register.
5085         ("smulsi3_highpart", "umulsi3_highpart"): Change .error into
5086         presumed working insn.
5087         (mover2side): Add FIXME.
5088
5089 2005-05-07  Richard Sandiford  <rsandifo@redhat.com>
5090
5091         * integrate.c (get_func_hard_reg_initial_val): Delete.
5092         (has_func_hard_reg_initial_val): Delete.
5093         (get_hard_reg_initial_val): Inline the old implementation of
5094         get_func_hard_reg_initial_val.  Use has_hard_reg_initial_val
5095         instead of has_func_hard_reg_initial_val to test for an existing
5096         pseudo.  Only create an rtx if a new initial value entry is needed.
5097         (has_hard_reg_initial_val): Scan the initial value list directly.
5098         Don't create an rtx.
5099
5100 2005-05-07  David Edelsohn  <edelsohn@gnu.org>
5101
5102         * config.gcc ({powerpc,rs6000}-ibm-aix*): Remove rs6000/aix.opt
5103         from extra_options.
5104         * config.in (HAVE_AS_POPCNTB): New.
5105         * configure.ac (HAVE_AS_MFCRF): Add .machine "pwr5" to AIX test.
5106         (HAVE_AS_POPCNTB): New.
5107         * configure: Regenerated.
5108         * config/rs6000/aix.h (TARGET_XL_COMPAT): Delete.
5109         * config/rs6000/rs6000.c (rs6000_override_options, power5): Add
5110         MASK_POPCNTB.  Uncomment rs6000_sched_restricted_insns_priority
5111         and rs6000_sched_costly_dep.
5112         * config/rs6000/rs6000.h (TARGET_POPCNTB): New.
5113         (TARGET_XL_COMPAT): Delete.
5114         * config/rs6000/rs6000.md (UNSPEC_POPCNTB): New.
5115         (popcount<mode>2): New.
5116         (popcntb<mode>2): New.
5117         * config/rs6000/rs6000.opt (mpopcntb): New.
5118
5119         * opt-functions.awk (var_set): Emit OPTION_MASK_ for InverseMask
5120         if variable name exists.
5121
5122 2005-05-07  Matt Kraai  <kraai@ftbfs.org>
5123
5124         * Makefile.in (c-gimplify.o): Depend on $(RTL_H) instead of rtl.h.
5125
5126 2005-05-07  Richard Henderson  <rth@redhat.com>
5127
5128         PR target/21412
5129         * config/rs6000/rs6000.c (rs6000_emit_move): Look for tls addresses
5130         with constant offsets.
5131
5132 2005-05-07  Nathan Sidwell  <nathan@codesourcery.com>
5133
5134         * config/v850/v850.c (print_operand): Use gcc_assert and
5135         gcc_unreachable, as appropriate.
5136         (print_operand_address, v850_handle_data_area_attribute,
5137         v850_encode_data_area, construct_restore_jr, construct_save_jarl,
5138         v850_insert_attributes, construct_prepare_instruction): Likewise.
5139         * config/v850/v850.h (INITIAL_ELIMINATION_OFFSET): Likewise.
5140         * config/v850/v850.md (movsicc, *sasf_1): Likewise.
5141
5142 2005-05-07  Kazu Hirata  <kazu@cs.umass.edu>
5143
5144         * tree-ssa-loop-ivcanon.c, config/i386/i386.c,
5145         config/rs6000/rs6000.h: Fix comment typos.
5146
5147 2005-05-07  Richard Sandiford  <rsandifo@redhat.com>
5148
5149         * doc/invoke.texi: Remove documentation for MIPS' -mint64 option.
5150         * config/mips/mips.c (TARGET_SCALAR_MODE_SUPPORTED_P): Delete.
5151         (mips_scalar_mode_supported_p): Delete.
5152
5153 2005-05-06  Eric Christopher  <echristo@redhat.com>
5154
5155         * config/mips/mips.opt: Remove -mint64 option.
5156         * config/mips/mips.c (override_options): Remove -mint64
5157         handling.
5158         * config/mips/mips.h (INT_TYPE_SIZE): Define to 32.
5159         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove
5160         64-bit integer handling.
5161         * doc/invoke.texi (Option Summary): Remove -mint64 for
5162         mips.
5163
5164 2005-05-06  Zdenek Dvorak  <dvorakz@suse.cz>
5165
5166         PR tree-optimization/19401
5167         * tree-flow.h (tree_unroll_loops_completely): Declaration changed.
5168         * tree-ssa-loop-ivcanon.c (enum unroll_level): New.
5169         (estimated_unrolled_size): New function.
5170         (try_unroll_loop_completely, canonicalize_loop_induction_variables,
5171         tree_unroll_loops_completely): Always unroll loops if the code size
5172         does not increase.
5173         * tree-ssa-loop.c (tree_complete_unroll): Indicate whether all
5174         loops should be unrolled completely.
5175         (gate_tree_complete_unroll): Run complete unrolling unconditionally.
5176
5177 2005-05-06  Zdenek Dvorak  <dvorakz@suse.cz>
5178
5179         PR rtl-optimization/21254
5180         * loop-iv.c (iv_number_of_iterations): Simplify infiniteness
5181         assumptions for loops that otherwise do not roll.
5182         (find_simple_exit): Prefer # of iterations that is guaranteed
5183         not to be infinite.
5184         * loop-unroll.c (decide_peel_once_rolling,
5185         decide_peel_completely): Check whether the loop is infinite.
5186
5187 2005-05-06  Pat Haugen  <pthaugen@us.ibm.com>
5188
5189         * config/rs6000/sysv4.opt: Fix typo.
5190
5191 2005-05-06  Denis Vlasenko  <vda@port.imtp.ilyichevsk.odessa.ua>
5192             Jakub Jelinek  <jakub@redhat.com>
5193
5194         PR target/21329
5195         * config/i386/i386.c (ix86_expand_movmem): Don't use rep; movsb
5196         for -Os if (movsl;)*(movsw;)?(movsb;)? sequence is shorter.
5197         Don't use rep; movs{l,q} if the repetition count is really small,
5198         instead use a sequence of movs{l,q} instructions.
5199
5200 2005-05-06  Jeff Law  <law@redhat.com>
5201
5202         PR tree-optimization/21380
5203         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
5204         thread through a block with no preds.
5205
5206 2005-05-06  Kazu Hirata  <kazu@cs.umass.edu>
5207
5208         * tree-ssa-operands.c (clobbered_v_may_defs, clobbered_vuses,
5209         ro_call_vuse, fini_ssa_operands, add_call_clobber_ops,
5210         add_call_read_ops): Use VEC instead of VARRAY.
5211
5212 2005-05-06  Nathan Sidwell  <nathan@codesourcery.com>
5213
5214         * config/mcore/mcore.c (mcore_print_operand_address): Use
5215         gcc_assert and gcc_unreachable as appropriate.
5216         (mcore_print_operand, mcore_gen_compare_reg, mcore_output_call,
5217         mcore_output_andn, output_inline_const, mcore_output_move,
5218         mcore_output_movedouble, mcore_expand_block_move,
5219         layout_mcore_frame, mcore_initial_elimination_offset,
5220         mcore_expand_prolog, mcore_mark_dllexport,
5221         mcore_mark_dllimport): Likewise.
5222         * config/mcore/mcore.h (switch_to_section): Likewise.
5223         * config/mcore/mcore.md: Likewise.
5224
5225 2005-05-06  Aldy Hernandez  <aldyh@redhat.com>
5226
5227         * config/rs6000/linux64.h: Remove MASK_PROFILE_KERNEL, and
5228         TARGET_PROFILE_KERNEL.
5229
5230         * config/rs6000/rs6000.c (output_profile_hook): Add comment to
5231         TARGET_PROFILE_KERNEL use.
5232
5233 2005-05-06  Nathan Sidwell  <nathan@codesourcery.com>
5234
5235         * config/m32r/m32r.c (m32r_encode_section_info): Use gcc_assert
5236         and gcc_unreachable, as appropriate.
5237         (gen_compare, gen_split_move_double, m32r_setup_incoming_varargs,
5238         m32r_expand_prologue, m32r_output_function_epilogue,
5239         m32r_legitimize_pic_address, m32r_print_operand_address,
5240         emit_cond_move, m32r_function_symbol,
5241         m32r_output_block_move): Likewise.
5242         * config/m32r/m32r.h (INITIAL_ELIMINATION_OFFSET): Likewise.
5243         * config/m32r/m32r.md ( *movsi_insn, *zero_branch_insn,
5244         *rev_zero_branch_insn): Likewise.
5245
5246 2005-05-06  Jakub Jelinek  <jakub@redhat.com>
5247
5248         PR c++/20961
5249         * varasm.c (merge_weak): Remove NEWDECL from WEAK_DECLS chain
5250         if both NEWDECL and OLDDECL are already weak.
5251
5252 2005-05-06  Richard Sandiford  <rsandifo@redhat.com>
5253
5254         * config/rs6000/sysv4.h (EXTRA_SUBTARGET_SWITCHES): Delete.
5255
5256 2005-05-05  J"orn Rennecke  <joern.rennecke@st.com>
5257             Kaz Kojima  <kkojima@gcc.gnu.org>
5258
5259         * config/sh/sh.c (sh_builtin_saveregs): Use copy_to_mode_reg
5260         and plus_constant.
5261
5262 2005-05-05  Aldy Hernandez  <aldyh@redhat.com>
5263             David Edelsohn  <edelsohn@gnu.org>
5264
5265         * config.gcc: Add .opt magic for the rs6000 ports.
5266
5267         * doc/invoke.texi: Document -mabi= option properly.  Document
5268         -misel and -mno-sel.  Document -mspe and -mno-spe.  Document
5269         -mvrsave and -mno-vrsave.  Document deprecation of -mspe= and
5270         -misel=.
5271
5272         * config/rs6000/aix.h: Remove XL_COMPAT stuff.  Remove
5273         SUBTARGET_SWITCHES and SUBSUBTARGET_SWITCHES.  Define
5274         TARGET_XL_COMPAT.
5275
5276         * config/rs6000/aix.opt: New.
5277         * config/rs6000/aix41.opt: New.
5278         * config/rs6000/aix64.opt: New.
5279         * config/rs6000/darwin.opt: New.
5280         * config/rs6000/linux64.opt: New.
5281         * config/rs6000/rs6000.opt: New.
5282         * config/rs6000/sysv4.opt: New.
5283
5284         * config/rs6000/sysv4.h: Delete definitions of MASK_* and
5285         associated TARGET_*.  Remove SUBTARGET_OPTIONS,
5286         SUBTARGET_SWITCHES.
5287         Define TARGET_USES_SYSV4_OPT.
5288         * config/rs6000/aix41.h: Remove SUBSUBTARGET_SWITCHES.
5289         * config/rs6000/aix43.h: Remove SUBSUBTARGET_SWITCHES.  Define
5290         TARGET_USES_AIX64_OPT.
5291         * config/rs6000/aix51.h: Same.
5292         * config/rs6000/aix52.h: Same.
5293         * config/rs6000/darwin.h: Remove SUBTARGET_SWITCHES,
5294         MASK_MACHO_DYNAMIC_NO_PIC, TARGET_MACHO_DYNAMIC_NO_PIC.
5295         Use TARGET_ALTIVEC_VRSAVE instead of rs6000_altivec_vrsave.
5296         Define TARGET_DYNAMIC_NO_PIC as TARGET_MACHO_DYNAMIC_NO_PIC.
5297         * config/rs6000/linux64.h: Use
5298         rs6000_explicit_options.  Remove EXTRA_SUBTARGET_SWITCHES.
5299
5300         * config/rs6000/rs6000.c: Remove definitions of
5301         rs6000_sched_restricted_insns_priority,
5302         rs6000_long_double_size_string, rs6000_altivec_vrsave,
5303         rs6000_altivec_vrsave_string, rs6000_isel, rs6000_spe,
5304         rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string,
5305         rs6000_abi_string, rs6000_warn_altivec_long, rs6000_longcall,
5306         rs6000_alignment_string.  Define rs6000_explicit_options.
5307         (rs6000_parse_abi_options): Remove.
5308         (rs6000_parse_alignment_option): Remove.
5309         (rs6000_parse_float_gprs_option): Remove.
5310         (rs6000_handle_option): New.  Define TARGET_HANDLE_OPTION.  Define
5311         TARGET_DEFAULT_TARGET_FLAGS.
5312         (rs6000_override_options): Revamp to use new .opt machinery.
5313
5314         * config/rs6000/rs6000.h: Remove old MASK_* and TARGET_* in favor
5315         of new .opt machinery.  Remove target_flags.  Redefine
5316         TARGET_MFCRF and TARGET_POWERPC64.  Remove TARGET_SWITCHES,
5317         SUBTARGET_SWITCHES, TARGET_OPTIONS, SUBTARGET_OPTIONS,
5318         rs6000_float_gprs_string, rs6000_isel_string, rs6000_spe_string,
5319         rs6000_altivec_vrsave_string, rs6000_altivec_vrsave,
5320         rs6000_longcall_switch, rs6000_default_long_calls,
5321         rs6000_sched_costly_dep_str, rs6000_sched_costly_dep,
5322         rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch, and
5323         TARGET_ALTIVEC_VRSAVE.
5324
5325 2005-05-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
5326
5327         * config.gcc (hppa1.1-*-rtems*): Remove.
5328         * config/pa/rtems.h: Remove.
5329
5330 2005-05-05  Ralf Corsepius  <ralf.corsepius@rtems.org>
5331
5332         * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
5333         Exclude roe/603e multilib variants.
5334
5335 2005-05-04  Denis Chertykov  <denisc@overta.ru>
5336
5337         PR target/21284
5338         * config/avr/avr.c (avr_output_addr_vec_elt): Use special section
5339         for output.
5340
5341 2005-05-05  Richard Sandiford  <rsandifo@redhat.com>
5342
5343         * config.gcc (arm*-wince-pe*, arm-*-pe*, strongarm-*-pe): Add
5344         arm/pe.opt to $extra_options.
5345         * config/arm/arm.h (target_flags, target_fpu_name, target_fpe_name)
5346         (target_float_abi_name, target_float_switch, target_abi_name)
5347         (ARM_FLAG_APCS_FRAME, ARM_FLAG_POKE, ARM_FLAG_FPE, ARM_FLAG_APCS_STACK)
5348         (ARM_FLAG_APCS_FLOAT, ARM_FLAG_APCS_REENT, ARM_FLAG_BIG_END)
5349         (ARM_FLAG_INTERWORK, ARM_FLAG_LITTLE_WORDS, ARM_FLAG_NO_SCHED_PRO)
5350         (ARM_FLAG_ABORT_NORETURN, ARM_FLAG_SINGLE_PIC_BASE)
5351         (ARM_FLAG_LONG_CALLS, ARM_FLAG_THUMB, THUMB_FLAG_BACKTRACE)
5352         (THUMB_FLAG_LEAF_BACKTRACE, THUMB_FLAG_CALLEE_SUPER_INTERWORKING)
5353         (THUMB_FLAG_CALLER_SUPER_INTERWORKING, CIRRUS_FIX_INVALID_INSNS)
5354         (TARGET_APCS_FRAME, TARGET_POKE_FUNCTION_NAME, TARGET_FPE)
5355         (TARGET_APCS_STACK, TARGET_APCS_FLOAT, TARGET_APCS_REENT)
5356         (TARGET_BIG_END, TARGET_INTERWORK, TARGET_LITTLE_WORDS)
5357         (TARGET_NO_SCHED_PRO, TARGET_ABORT_NORETURN, TARGET_SINGLE_PIC_BASE)
5358         (TARGET_LONG_CALLS, TARGET_THUMB, TARGET_CALLER_INTERWORKING)
5359         (TARGET_CIRRUS_FIX_INVALID_INSNS, SUBTARGET_SWITCHES, TARGET_SWITCHES)
5360         (TARGET_OPTIONS, arm_cpu_select, arm_select,  structure_size_string)
5361         (arm_pic_register_string): Delete.
5362         (TARGET_BACKTRACE): Redefine using TARGET_TPCS_LEAF_FRAME and
5363         TARGET_TPCS_FRAME.
5364         (TARGET_DEFAULT, CONDITIONAL_REGISTER_USAGE): Update mask names.
5365         * config/arm/coff.h (TARGET_DEFAULT): Likewise.
5366         * config/arm/elf.h (TARGET_DEFAULT): Likewise.
5367         * config/arm/netbsd-elf.h (TARGET_DEFAULT): Likewise.
5368         * config/arm/netbsd.h (TARGET_DEFAULT): Likewise.
5369         * config/arm/semi.h (TARGET_DEFAULT): Likewise.
5370         * config/arm/uclinux-elf.h (TARGET_DEFAULT): Likewise.
5371         * config/arm/wince-pe.h (TARGET_DEFAULT): Likewise.
5372         * config/arm/pe.h (TARGET_DEFAULT): Likewise.
5373         (TARGET_FLAG_NOP_FUN, TARGET_NOP_FUN_DLLIMPORT): Delete.
5374         (SUBTARGET_SWITCHES): Delete.
5375         * config/arm/arm.c (target_float_switch): Delete.
5376         (arm_cpu_select): Moved from config/arm/arm.h.
5377         (target_fpu_name, target_fpe_name, target_float_abi_name)
5378         (target_abi_name, structure_size_string, arm_pic_register_string)
5379         (arm_select): Make static.
5380         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
5381         (arm_handle_option): New function.
5382         (arm_override_options): Update target_flags checks for new mask names.
5383         Remove target_float_switch code.
5384         (arm_expand_prologue, thumb_expand_prologue): Check
5385         !TARGET_SCHED_PROLOG instead of TARGET_NO_SCHED_PRO.
5386         * config/arm/arm.opt, config/arm/pe.opt: New files.
5387
5388 2005-05-05  Nathan Sidwell  <nathan@codesourcery.com>
5389
5390         * config/arc/arc.c (get_arc_condition_code): Use gcc_assert &
5391         gcc_unreachable as appropriate.
5392         (arc_double_limm_p, arc_setup_incoming_varargs,
5393         arc_compute_function_type, arc_output_function_prologue,
5394         arc_output_function_epilogue, arc_eligible_for_epilogue_delay,
5395         output_shift, arc_print_operand, arc_print_operand_address,
5396         arc_final_prescan_insn): Likewise.
5397         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
5398
5399 2005-05-04  Geoffrey Keating  <geoffk@apple.com>
5400
5401         * config/rs6000/rs6000.md (P): Use TARGET_*BIT rather than
5402         comparing Pmode.
5403         (SDI): New.
5404         (cmp): Delete.
5405         (wd): New.
5406         (add<mode>3, add<mode>3_internal1, add<mode>3_internal2,
5407         add<mode>3_internal3, one_cmpl<mode>2, sub<mode>3, neg<mode>2,
5408         clz<mode>2, ctz<mode>2, ffs<mode>2): New.
5409         (addsi3, addsi3_internal1, addsi3_internal2, addsi3_internal3,
5410         (one_cmplsi2, subsi3, negsi2, clzsi2, ctzsi2, ffssi2): Remove.
5411         (adddi3, adddi3_internal1, adddi3_internal2, adddi3_internal3,
5412         (one_cmpldi2, subdi3, negdi2, clzdi2, ctzdi2, ffsdi2): Remove.
5413         (sync_compare_and_swap<mode>): Use <wd> rather than <cmp>.
5414
5415 2005-05-05  Paul Brook  <paul@codesourcery.com>
5416
5417         * Makefile.in: Replace dependencies on basic-block.h, c-pragma.h,
5418         cfgloop.h, diagnostic.h, insn-attr.h, langhooks-def.h, params.h,
5419         regs.h, system.h, tree-dump.h, tree-gimple.h, tree-scalar-evolution.h
5420         and tree-data-ref.h with *_H variables.
5421
5422 2005-05-05  Kelley Cook  <kcook@gcc.gnu.org>
5423
5424         * config/m32r/xm-m32r.h, config/m32r/xm-linux.h: Delete files.
5425
5426 2005-05-05  Kelley Cook  <kcook@gcc.gnu.org>
5427
5428         * system.h: Poison BYTEORDER and HOST_WORDS_BIG_ENDIAN.
5429
5430 2005-05-04  Gerald Pfeifer  <gerald@pfeifer.com>
5431
5432         * doc/contrib.texi (Contributors): Add Mostafa Hagog and Ayal Zaks.
5433
5434 2005-05-04 Fariborz Jahanian <fjahanian@apple.com>
5435
5436         * config/rs6000/rs6000.c (rs6000_emit_prologue): Emit
5437         setting of vrsave register for current function after
5438         call to save_world is emitted.
5439
5440 2005-05-05  Hans-Peter Nilsson  <hp@bitrange.com>
5441
5442         * config/mmix/predicates.md: New file.
5443         * config/mmix/mmix.c (mmix_symbolic_or_address_operand)
5444         (mmix_reg_or_constant_operand, mmix_reg_cc_operand)
5445         (mmix_foldable_comparison_operator, mmix_comparison_operator)
5446         (mmix_reg_or_0_operand, mmix_reg_or_8bit_operand): Remove.
5447         * config/mmix/mmix.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
5448         Don't define.
5449         * config/mmix/mmix.md: Include predicates.md.
5450         ("call", "call_value"): Force address to register if it isn't a
5451         mmix_symbolic_or_address_operand.
5452
5453 2005-05-04  Andrew MacLeod  <amacleod@redhat.com>
5454
5455         * tree-flow-inline.h (op_iter_init_use, op_iter_init_def): Assert that
5456         the flags are of appropriate types.
5457         (num_ssa_operands): Generalize using the generic interface.
5458         * tree-ssa-dce.c (remove_dead_stmt): Don't ask for kills on a DEF
5459         iterator.
5460
5461 2005-05-04  Richard Sandiford  <rsandifo@redhat.com>
5462
5463         * protoize.c (version_flag, quiet_flag, nochange_flag, nosave_flag)
5464         (keep_flag, local_flag, global_flag, cplusplus_flag): Make extern.
5465
5466 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
5467
5468         * tree-outof-ssa.c (edge_leader, stmt_list,
5469         analyze_edges_for_bb): Use VEC instead of VARRAY.
5470         (init_analayze_edges_for_bb, fini_analayze_edges_for_bb): New.
5471         (perform_edge_inserts): Call init_analayze_edges_for_bb and
5472         fini_analayze_edges_for_bb.
5473
5474 2005-05-04  James E Wilson  <wilson@specifixinc.com>
5475
5476         PR driver/21112
5477         * gcc.c (process_command): In the second argv scan loop, ignore
5478         Xassembler and Xpreprocessor, along with their argument.
5479
5480 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
5481
5482         * tree-flow-inline.h, tree-ssa-operands.c,
5483         tree-ssa-operands.h, tree-ssa-opfinalize.h:
5484         Likewise. tree-vn.c: Fix comment typos.
5485         * doc/passes.texi, doc/tree-ssa.texi: Fix typos.
5486
5487 2005-05-04  Paolo Bonzini  <bonzini@gnu.org>
5488
5489         * doc/tm.texi (Target Hooks): Document
5490         TARGET_RESOLVE_OVERLOADED_BUILTIN.
5491
5492 2005-05-04  Paul Brook  <paul@codesourcery.com>
5493
5494         * Makefile.in: Change dependencies on target.h to $(TARGET_H).
5495
5496 2005-05-04  Kazu Hirata  <kazu@cs.umass.edu>
5497
5498         * dwarf2out.c (incomplete_types, retry_incomplete_types,
5499         gen_struct_or_union_type_die, dwarf2out_init): Use VEC instead
5500         of VARRAY.
5501
5502         * loop-unroll.c (var_to_expand, analyze_insn_to_expand_var,
5503         get_expansion, expand_var_during_unrolling,
5504         insert_var_expansion_initialization,
5505         combine_var_copies_in_loop_exit, release_var_copies): Use VEC
5506         instead of VARRAY.
5507
5508         * tree-ssa-loop-ivopts.c (rewrite_address_base): Don't call
5509         update_stmt.
5510
5511 2004-05-03  Andrew Pinski  <pinskia@physics.uc.edu>
5512
5513         PR middle-end/15618
5514         * fold-const.c (fold_widened_comparison): Treat BOOLEAN_TYPE
5515         the same as INTEGER_TYPE.
5516         (fold_binary): Fold "bool_var != 0" to bool_var.
5517         Fold "bool_var == 1" to bool_var.
5518
5519 2004-05-03  Richard Henderson  <rth@redhat.com>
5520
5521         PR middle-end/21318
5522         * function.c (instantiate_virtual_regs_in_insn): Use the mode
5523         from recog_data instead of insn_data.
5524
5525 2005-05-03  DJ Delorie  <dj@redhat.com>
5526
5527         * common.opt (fdiagnostics-show-option): No variable is needed.
5528         * diagnostic.h (diagnostic_context): Add show_option_requested flag.
5529         * diagnostic.c (diagnostic_initialize): Initialize show_option_requested.
5530         (diagnostic_report_diagnostic): Test for enabled diagnostics here.
5531         Save and restore original message format.  Use flag in context
5532         instead of global.
5533         (warning): Don't test for enabled warnings here.
5534         * opts.c (common_handle_option): Handle -fdiagnostics-show-option
5535         here.
5536
5537 2005-05-04  Kelley Cook  <kcook@gcc.gnu.org>
5538
5539         * config/m32r/xm-m32r.h: Don't define HOST_WORDS_BIG_ENDIAN.
5540         * config/m32r/xm-linux.h: Don't undefine HOST_WORDS_BIG_ENDIAN.
5541         * mips-tfile.c: Use WORDS_BIG_ENDIAN instead of HOST_WORDS_BIG_ENDIAN.
5542         * aclocal.m4: Don't include accross.m4.
5543         * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
5544         Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
5545         * configure, config.in: Regenerate.
5546
5547 2005-05-04  Jakub Jelinek  <jakub@redhat.com>
5548
5549         PR middle-end/21265
5550         * expr.h (enum block_op_methods): Add BLOCK_OP_TAILCALL.
5551         (clear_storage): Add argument.
5552         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall):
5553         Add tailcall argument, set CALL_EXPR_TAILCALL of the CALL_EXPR to
5554         tailcall.
5555         (emit_block_move): Handle BLOCK_OP_TAILCALL method.
5556         (clear_storage): Add method argument, handle BLOCK_OP_TAILCALL.
5557         (store_expr, store_constructor): Adjust callers.
5558         * builtins.c (expand_builtin_memcpy): Pass BLOCK_OP_TAILCALL
5559         to emit_block_move if CALL_EXPR_TAILCALL (exp).
5560         (expand_builtin_memmove): Add ORIG_EXP argument, copy
5561         CALL_EXPR_TAILCALL from ORIG_EXP to the new CALL_EXPR.
5562         (expand_builtin_bcopy): Replace ARGLIST and TYPE arguments
5563         with EXP.  Pass EXP to expand_builtin_memmove.
5564         (expand_builtin_memset): Add ORIG_EXP argument, pass
5565         BLOCK_OP_TAILCALL to clear_storage if CALL_EXPR_TAILCALL (orig_exp).
5566         (expand_builtin_bzero): Replace ARGLIST argument with EXP.
5567         Pass EXP to expand_builtin_memset.
5568         (expand_builtin_strcmp): Copy CALL_EXPR_TAILCALL from EXP to
5569         the new CALL_EXPR.
5570         (expand_builtin_strncmp): Likewise.
5571         (expand_builtin_printf): Replace ARGLIST argument with EXP.
5572         Copy CALL_EXPR_TAILCALL from EXP to the new CALL_EXPR.
5573         (expand_builtin_fprintf): Likewise.
5574         (expand_builtin): Adjust calls to
5575         expand_builtin_{memmove,bcopy,memset,bzero,{,f}printf}.
5576
5577         * config/i386/i386.c (ix86_expand_vector_set): Fix setting 3rd and 4th
5578         item in V4SF mode.
5579
5580         PR rtl-optimization/21239
5581         * combine.c (combine_simplify_rtx) <case VEC_SELECT>: Fix a typo.
5582
5583 2005-05-03  Kazu Hirata  <kazu@cs.umass.edu>
5584
5585         * tree-flow.h (tree_ann_common_d): Move aux to ...
5586         (stmt_ann_d): ... here.
5587         * tree-ssa-loop-im.c (LIM_DATA, determine_invariantness_stmt,
5588         move_computations_stmt, schedule_sm): Update references to
5589         aux.
5590         * tree-vectorizer.h (set_stmt_info, vinfo_for_stmt): Likewise.
5591
5592         * tree-cfg.c (remove_bb): Remove a redundant call to
5593         set_bb_for_stmt.
5594         * tree-if-conv.c (replace_phi_with_cond_modify_expr):
5595         Likewise.
5596
5597 2005-05-03  Richard Henderson  <rth@redhat.com>
5598
5599         * config/rs6000/rs6000.c: Remove conflict markers.
5600
5601         * cfg.c (dump_flow_info): Use max_reg_num, not max_regno.
5602
5603 2005-05-03  James E Wilson  <wilson@specifixinc.com>
5604
5605         * dwarf2out.c (lookup_filename): Call maybe_emit_file.
5606
5607 2005-05-03  DJ Delorie  <dj@redhat.com>
5608
5609         * c-decl.c (store_parm_decls_oldstyle): Let diagnostic machinery
5610         decide if the warning will be printed.
5611         * calls.c (expand_call): Likewise.
5612         * function.c (init-function_start): Likewise.
5613
5614         * common.opt (-fdiagnostics-show-option): New.
5615         * opts.c (option_enabled): Accept the option index instead of a
5616         pointer to the option descriptor.
5617         * opts.h (option_enabled): Likewise.
5618         * toplev.c (print_switch_values): Pass option index, not option
5619         descriptor.
5620         * diagnostic.h (diagnostic_info): Add option_index.
5621         * diagnostic.c: Include opts.h.
5622         (diagnostic_set_info): Initialize option_index.
5623         (diagnostic_report_diagnostic): Amend option name if appropriate.
5624         (warning): Check to see if the specified warning is enabled.
5625         Store option index.
5626         * doc/invoke.texi (-fdiagnostics-show-options): Document.
5627
5628 2005-05-03  Richard Henderson  <rth@redhat.com>
5629
5630         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix ALL_REGS and
5631         SPEC_OR_GEN_REGS definitions.
5632
5633 2005-05-03  Alexandre Oliva  <aoliva@redhat.com>
5634
5635         PR target/16888
5636         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Clear reg names
5637         for unavailable registers.
5638
5639 2005-05-03  Kazu Hirata  <kazu@cs.umass.edu>
5640
5641         * tree-cfg.c (tree_forwarder_block_p): Fix a typo.
5642
5643         * cfglayout.c (block_locators_blocks,
5644         insn_locators_initialize, insn_scope): Use VEC instead of
5645         VARRAY.
5646
5647         * tree-mudflap.c (deferred_static_decls, mudflap_enqueue_decl,
5648         mudflap_finish_file, mudflap_finish_file): Use VEC instead of
5649         VARRAY.
5650
5651 2005-05-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
5652
5653         * config/sparc/predicates.md (const_compl_high_operand): New.
5654         * config/sparc/sparc.c (sparc_emit_set_safe_HIGH64): Rename into
5655         gen_safe_HIGH64.
5656         (sparc_emit_set_const64_quick1): Adjust for above change.
5657         (sparc_emit_set_const64_quick2): Likewise.
5658         (sparc_emit_set_const64_longway): Likewise.
5659         (sparc_emit_set_const64): Likewise.
5660         * config/sparc/sparc.md (movhi_const64_special, movsi_const64_special,
5661         movdi_const64_special): Delete.
5662         (logical constant splitters): Use const_compl_high_operand.
5663
5664 2005-05-03  Richard Guenther  <rguenth@gcc.gnu.org>
5665
5666         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Use STRIP_TYPE_NOPS
5667         rather than STRIP_NOPS.
5668
5669 2005-05-03  Jakub Jelinek  <jakub@redhat.com>
5670
5671         PR rtl-optimization/21330
5672         * loop-unswitch.c (may_unswitch_on): Set *cinsn only when
5673         returning non-NULL.
5674         (unswitch_single_loop): Clear cinsn when retrying.
5675
5676         PR target/21297
5677         * config/i386/i386.c (legitimize_address): When canonicalizing
5678         ASHIFT into MULT, multiply by 1 << shift_count instead of
5679         1 << log2 (shift_count).
5680
5681 2005-05-03  Andrew MacLeod  <amacleod@redhat.com>
5682
5683         * lambda-code.c (gcc_loop_to_lambda_loop,
5684         lambda_loopnest_to_gcc_loopnest, phi_loop_edge_uses_def,
5685         stmt_is_bumper_for_loop, perfect_nest_p, replace_uses_of_x_with_y): Use
5686         generic operand interface.
5687         * tree-data-ref.c (find_data_references_in_loop): Use generic interface.
5688         * tree-dfa.c (collect_dfa_stats_r, mark_new_vars_to_rename): Use
5689         generic operand interface.
5690         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
5691         link_imm_use, link_imm_use_stmt, relink_imm_use, relink_imm_use_stmt,
5692         next_safe_imm_use, has_zero_uses, has_single_use, single_imm_use,
5693         num_imm_uses): Use ssa_use_operand_t.
5694         (get_def_ops, get_use_ops, get_v_may_def_ops, get_vuse_ops,
5695         get_v_must_def_ops): Delete.
5696         (get_def_from_ptr, get_phi_result_ptr): Get def directly now.
5697         (get_use_op_ptr, get_def_op_ptr, get_v_may_def_result_ptr,
5698         get_v_may_def_op_ptr, get_vuse_op_ptr, get_v_must_def_result_ptr,
5699         get_v_must_def_kill_ptr): Delete.
5700         (delink_stmt_imm_use): Move and use new operand interface.
5701         (op_iter_next_use, op_iter_next_def, op_iter_next_tree, op_iter_init,
5702         op_iter_next_tree): Use new operand implementation.
5703         (clear_and_done_ssa_iter): New.  Initialize a blank operand iterator.
5704         (op_iter_init_use, op_iter_init_def, op_iter_init_tree): Add iterator
5705         type check.
5706         (op_iter_next_mustdef, op_iter_next_maydef,
5707         op_iter_next_must_and_may_def): Delete. Replace with...
5708         (op_iter_next_maymustdef): New.  Combine must and may next operations.
5709         (op_iter_init_maydef, op_iter_init_mustdef,
5710         op_iter_init_must_and_may_def): Use new interface.
5711         (single_ssa_tree_operand ): New.  Process single operands only as trees.
5712         (single_ssa_use_operand): New.  Process single operands only as uses.
5713         (single_ssa_def_operand): New.  Process single operands only as defs.
5714         (zero_ssa_operands): New.  Return TRUE if there are zero operands of the
5715         specified types.
5716         (num_ssa_operands): New.  Count the number of specified operands.
5717         (compare_ssa_operands_equal): New.  Compare two statements' operands.
5718         (single_phi_def): New.  Return true if PHI has one def of the specified
5719         operand type.
5720         (op_iter_init_phiuse): New.  Initialize the iterator for PHI arguments.
5721         (op_iter_init_phidef): New.  Initialize the iterator for the PHI def.
5722         * tree-flow.h (struct immediate_use_iterator_d): Use ssa_use_operand_t.
5723         (struct stmt_ann_d): Operands field no longer require GTY().
5724         (vn_compute, vn_lookup_or_add, vn_add, vn_lookup): Change prototype.
5725         * tree-into-ssa.c (mark_def_sites): Use SSA_OP_VMUSTKILL.
5726         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
5727         dump_replaceable_exprs, rewrite_trees): Use generic interface.
5728         * tree-phinodes.c (make_phi_node, release_phi_node, resize_phi_node):
5729         Use use_operand_p instead of ssa_imm_use_t *.
5730         * tree-pretty-print.c (dump_vops): check if operands are active before
5731         dumping virtual operands.
5732         * tree-sra.c (sra_walk_function): Use ZERO_SSA_OPERANDS.
5733         * tree-ssa-ccp.c (likely_value): Use ZERO_SSA_OPERANDS.
5734         (ccp_fold): Use new interface.
5735         (ccp_visit_stmt): Remove unused variables and code.
5736         (convert_to_gimple_builtin): Insert statements before calling
5737         mark_new_vars_to_rename.
5738         * tree-ssa-copy.c (stmt_may_generate_copy): Use ZERO_SSA_OPERANDS.
5739         (copy_prop_visit_cond_stmt): Use generic interface.
5740         * tree-ssa-dom.c (struct expr_hash_elt): Use stmt pointer, not the
5741         annotation in table.
5742         (thread_across_edge): Use generic interface.
5743         (initialize_hash_element): Initialzie with stmt, not annotation.
5744         (eliminate_redundant_computations): Use generic interface.
5745         (record_equivalences_from_stmt): Pass stmt, not annotation.
5746         (avail_expr_hash, real_avail_expr_hash, avail_expr_eq): Use generic
5747         interface.
5748         * tree-ssa-dse.c (dse_optimize_stmt): Use ZERO_SSA_OPERANDS.
5749         * tree-ssa-loop-ivopts.c (find_invariants_stmt,
5750         find_interesting_uses_stmt, protect_loop_closed_ssa_form_use): Use
5751         generic operand interface.
5752         * tree-ssa-loop-niter.c (chain_of_csts_start, get_val_for): Use generic
5753         interface.
5754         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Use Generic operand
5755         Interface.
5756         * tree-ssa-operands.c (struct opbuild_list_d): New.  Operand build type.
5757         (build_defs, build_uses, build_v_may_defs, build_vuses,
5758         build_v_must_defs): Change type to struct opbuild_list_d.
5759         (ops_active): New.  Operands active boolean.
5760         (operand_memory, operand_memory_index): New.  Operand memory managers.
5761         (allocate_def_optype, allocate_use_optype, allocate_v_may_def_optype,
5762         allocate_vuse_optype, allocate_v_must_def_optype): Delete.
5763         (free_uses, free_defs, free_vuses, free_v_may_defs, free_v_must_defs):
5764         Change from functions to static variable list heads.
5765         (opbuild_initialize_virtual): New.  Initialize a virtual build list.
5766         (opbuild_initialize_real): New.  Initialize a virtual build list.
5767         (opbuild_free): New.  Free a build list.
5768         (opbuild_num_elems): New.  Number of items in a list.
5769         (opbuild_append_real): New.  Add a real (tree *) operand.
5770         (opbuild_append_virtual): New.  Add and sort a virtual (tree) operand.
5771         (opbuild_first): New.  Return first element index in a list.
5772         (opbuild_next): New.  Return next element in a list.
5773         (opbuild_elem_real): New.  Return real element.
5774         (opbuild_elem_virtual): New.  Return virtual element.
5775         (opbuild_elem_uid): New.  Return UID of virtual element.
5776         (opbuild_clear): New.  Reset an operand list.
5777         (opbuild_remove_elem): New.  Remove an element form a list.
5778         (ssa_operands_active): New.  Return true if operand cache is active.
5779         (init_ssa_operands, fini_ssa_operands): Initialize new implementation.
5780         (ssa_operand_alloc): New.  Allocate memory from an operand chunk.
5781         (correct_use_link): Use use_operand_p.
5782         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_defs,
5783         finalize_ssa_vuses, finalize_ssa_v_must_defs): New implmentation.
5784         (cleanup_v_may_defs): Use new implmentation.
5785         (finalize_ssa_stmt_operands, start_ssa_stmt_operands): New
5786         implementation.
5787         (append_def, append_use, append_v_may_def, append_vuse,
5788         append_v_must_def): Call opbuild_append routine instead of using varray.
5789         (build_ssa_operands): Simplify to simply use stmt, don't maintain a
5790         global parse_old_ops variable.
5791         (free_ssa_operands): New implementation.
5792         (update_stmt_operands): Move.  Change argument to build_ssa_operands.
5793         (copy_virtual_operands): Move. New generic implementation.
5794         (create_ssa_artficial_load_stmt): Move. New implementation.
5795         (swap_tree_operands): Update for new implementation.
5796         (get_expr_operands): Add stmt parameter to calls to swap_tree_operands.
5797         (add_call_clobber_ops, add_call_read_ops): Initialize opbuild list
5798         rather than a varray.
5799         (verify_imm_links): Use use_operand_p.
5800         (dump_immediate_uses_for): If the immediate use variable is a virtual
5801         variable, show the virtual ops in the stmt.
5802         * tree-ssa-operands.h (def_operand_p): No longer a structure.
5803         (NULL_DEF_OPERAND_P): Now a #define.
5804         (def_optype_d, use_optype_d, v_def_use_operand_type, v_may_def_optype_d,
5805         vuse_operand_type, vuse_optype_d, v_must_def_optype_d): Delete.
5806         (def_optype_d, use_optype_d, maydef_optype_d, vuse_optype_d,
5807         mustdef_optype_d): New.  Use Linked list representation.
5808         (SSA_OPERAND_MEMORY_SIZE): New.  Size of operand memory chunk.
5809         (struct ssa_operand_memory_d): New.  Allocated Chunk node.
5810         (struct stmt_operands_d): Change to new pointers that are not GTY.
5811         (STMT_USE_OPS, NUM_USES, SET_USE_OP, STMT_DEF_OPS, NUM_DEFS, SET_DEF_OP,
5812         STMT_V_MAY_DEF_OPS, NUM_V_MAY_DEFS, SET_V_MAY_DEF_RESULT,
5813         SET_V_MAY_DEF_OP, STMT_VUSE_OPS, NUM_VUSES, SET_VUSE_OP,
5814         STMT_V_MUST_DEF_OPS, NUM_V_MUST_DEFS, SET_V_MUST_DEF_RESULT,
5815         SET_V_MUST_DEF_KILL): Delete.
5816         (V_MAY_DEF_OPS, V_MAY_DEF_RESULT_PTR, V_MAY_DEF_RESULT,
5817         V_MAY_DEF_OP_PTR, V_MAY_DEF_OP): Rename to MAYDEF_*.
5818         (V_MUST_DEF_OPS, V_MUST_DEF_RESULT_PTR, V_MUST_DEF_RESULT,
5819         V_MUST_DEF_KILL_PTR, V_MUST_DEF_KILL): Rename to MUSTDEF_*.
5820         (enum ssa_op_iter_type): Operand iterator typechecking values.
5821         (struct ssa_operand_iterator_d): Use linked lists of operands.
5822         (SSA_OP_VMUSTDEFKILL): Rename to SSA_OP_VMUSTKILL.
5823         (FOR_EACH_SSA_MAYDEF_OPERAND, FOR_EACH_SSA_MUSTDEF_OPERAND,
5824         FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): Use op_iter_next_maymustdef.
5825         (FOR_EACH_PHI_ARG): New.  Iterate over PHI arguments.
5826         (FOR_EACH_PHI_OR_STMT_USE): New.  Iterate over PHI or stmt uses.
5827         (FOR_EACH_PHI_OR_STMT_DEF): New.  Iterate over PHI or stmt defs.
5828         (SINGLE_SSA_TREE_OPERAND, SINGLE_SSA_USE_OPERAND,
5829         SINGLE_SSA_DEF_OPERAND, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): New.
5830         * tree-ssa-opfinalize.h: New.  Function templates for expansion.
5831         (FINALIZE_ALLOC): Expands into alloc_def, alloc_use, alloc_maydef,
5832         alloc_vuse, and alloc_mustdef.
5833         (FINALIZE_FUNC): Expands into finalize_ssa_def_ops,
5834         finalize_ssa_use_ops, finalize_ssa_v_may_def_ops, finalize_ssa_vuse_ops,
5835         and finalize_ssa_v_must_def_ops.
5836         * tree-ssa-pre.c (add_to_sets): Pass tree to vn_add.
5837         (create_value_expr_from): Use stmt not vuse_optype as a parameter. Pass
5838         stmt around.
5839         (compute_avail): Use generic iterator interface.
5840         * tree-ssa-propagate.c (first_vdef): Use generic operand interface.
5841         (stmt_makes_single_load, stmt_makes_single_store): Use
5842         ZERO_SSA_OPERANDS.
5843         * tree-ssa-sink.c (is_hidden_global_store): Use ZERO_SSA_OPERANDS.
5844         (statement_sink_location): Use generic interface.
5845         * tree-ssa.c (verify_ssa):  Use %p in fprintf.  Use generic interface.
5846         (delete_tree_ssa): Don't call release_defs.  Call release_ssa_name and
5847         reset the immediate use link nodes.
5848         (stmt_references_memory_p): Use ZERO_SSA_OPERANDS.
5849         * tree-ssanames.c (make_ssa_name): Use use_operand_p.
5850         * tree-tailcall.c (find_tail_calls): Use ZERO_SSA_OPERANDS.
5851         (eliminate_tail_call): Use generic operand interface.
5852         * tree-vect-analyze.c (vect_analyze_data_refs): Use ZERO_SSA_OPERANDS.
5853         (vect_mark_relevant, vect_mark_stmts_to_be_vectorized): Use generic
5854         interface.
5855         * tree-vect-transform.c (update_vuses_to_preheader): Use generic
5856         interface.
5857         * tree-vectorizer.c (rename_variables_in_bb): Use generic interface.
5858         * tree-vn.c (struct val_expr_pair_d): Cache statment pointer instead of
5859         vuse_optype.
5860         (vn_compute, val_expr_pair_hash, vn_add, vn_lookup, vn_lookup_or_add):
5861         Use statement pointer instead of vuse_optype.  Use generic interface.
5862         * tree-vrp.c (maybe_add_assert_expr): Use generic interface.
5863         (stmt_interesting_for_vrp, vrp_visit_stmt): Use ZERO_SSA_OPERANDS.
5864         * tree.h (struct ssa_imm_use_d): Renamed to ssa_use_operand_d.
5865         (tree_ssa_name, phi_arg_d): Use ssa_use_operand_d.
5866         * doc/tree-ssa.texi: Update documentation for operand interface.
5867
5868 2005-05-03  Nathan Sidwell  <nathan@codesourcery.com>
5869
5870         * config/darwin.c (machopic_define_symbol): Use gcc_assert or
5871         gcc_unreachable as appropriate.
5872         (machopic_function_base_name, machopic_indirect_data_reference,
5873         machopic_legitimize_pic_address, darwin_non_lazy_pcrel): Likewise.
5874         * config/host-darwin.c (darwin_gt_pch_use_address): Likewise
5875         * config/rs6000/altivec.md (*mov<mode>_internal,
5876         build_vector_mask_for_load): Likewise.
5877         * config/rs6000/darwin.md (movdf_low_si, movdf_low_di,
5878         *call_nonlocal_darwin64, *call_value_nonlocal_darwin64,
5879         *sibcall_symbolic_64, *sibcall_value_symbolic_64): Likewise.
5880         * config/rs6000/predicates.md (easy_fp_constant,
5881         logical_operand): Likewise.
5882         * config/rs6000/rs6000.c (spe_expand_predicate_builtin,
5883         compute_save_world_info, rs6000_emit_prologue,
5884         rs6000_output_mi_thunk): Reword comments to avoid 'abort'.
5885         * config/rs6000/host-darwin.c (segv_handler): Use fancy_abort
5886         directly.
5887
5888 2005-05-03  Uros Bizjak  <uros@kss-loka.si>
5889
5890         PR middle-end/21282
5891         * convert.c (convert_to_integer): Convert ceil and floor in
5892         c99 mode only.
5893
5894 2005-04-29  Geoffrey Keating  <geoffk@apple.com>
5895
5896         PR target/20813
5897         * config/rs6000/rs6000.md (floatsidf2_internal): Merge to create
5898         define_insn_and_split.  Split only when memory operand is
5899         offsettable.  Use adjust_address rather than plus_constant.
5900         (floatunssidf2_internal): Likewise.
5901         (fix_truncdfsi2_internal): Split only when memory operand is
5902         offsettable.  Use adjust_address rather than plus_constant.
5903         (fix_trunctfsi2_internal): Likewise.
5904         (floatsidf2_internal): Likewise.
5905
5906 2005-05-02  Diego Novillo  <dnovillo@redhat.com>
5907
5908         * tree-vrp.c (set_value_range_to_nonnull): Declare inline.
5909         (set_value_range_to_null): Likewise.
5910         (set_value_range_to_varying): New function.  Use it in all
5911         call sites that used to call set_value_range (vr, VR_VARYING, ...).
5912         (extract_range_from_assert): If the integral type has a
5913         super-type, and LIMIT is not within MIN and MAX values of that
5914         type, set the resulting range to VR_VARYING.
5915
5916 2005-05-02  Hans-Peter Nilsson  <hp@bitrange.com>
5917
5918         * config/mmix/mmix.opt: New file.
5919         * config/mmix/mmix.h: Move options-related comments to mmix.opt.
5920         (mmix_cc1_ignored_option): Don't declare.
5921         (TARGET_OPTIONS, TARGET_MASK_LIBFUNCS, TARGET_MASK_ABI_GNU)
5922         (TARGET_MASK_FCMP_EPSILON, TARGET_MASK_ZERO_EXTEND)
5923         (TARGET_MASK_KNUTH_DIVISION, TARGET_MASK_TOPLEVEL_SYMBOLS)
5924         (TARGET_MASK_BRANCH_PREDICT, TARGET_MASK_USE_RETURN_INSN)
5925         (TARGET_MASK_BASE_ADDRESSES, TARGET_LIBFUNC, TARGET_ABI_GNU,
5926         (TARGET_FCMP_EPSILON, TARGET_ZERO_EXTEND, TARGET_KNUTH_DIVISION)
5927         (TARGET_TOPLEVEL_SYMBOLS, TARGET_BRANCH_PREDICT)
5928         (TARGET_BASE_ADDRESSES, TARGET_USE_RETURN_INSN, TARGET_SWITCHES):
5929         Don't define.
5930         (TARGET_DEFAULT): Change TARGET_MASK_... to MASK_...
5931         * config/mmix/mmix.c (mmix_cc1_ignored_option): Remove.
5932         (TARGET_DEFAULT_TARGET_FLAGS): Override default.
5933
5934 2005-05-02  Joseph S. Myers  <joseph@codesourcery.com>
5935
5936         PR c/15698
5937         * c-tree.h (C_DECL_BUILTIN_PROTOTYPE): New.
5938         * c-decl.c (current_function_prototype_built_in,
5939         current_function_prototype_arg_types): New.
5940         (merge_decls): Keep source location of prototype followed by
5941         nonprototype declaration.  Update C_DECL_BUILTIN_PROTOTYPE.
5942         (builtin_function): Set C_DECL_BUILTIN_PROTOTYPE.
5943         (start_function): Always set current_function_prototype_locus,
5944         current_function_prototype_built_in and
5945         current_function_prototype_arg_types.  Check for external
5946         prototype whether or not visible for external function and set
5947         current_function_prototype_arg_types accordingly.
5948         (store_parm_decls_oldstyle): Use
5949         current_function_prototype_arg_types for checking old-style
5950         definition against prototype.  Give warnings only if
5951         current_function_prototype_built_in).
5952
5953 2005-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
5954
5955         * ggc.h (ggc_alloc_zone_pass_stat): New macro.
5956         (ggc_alloc_zone_stat): Don't define.
5957         * ggc-zone.c (ggc_alloc_typed_stat, ggc_alloc_stat): Use
5958         ggc_alloc_zone_pass_stat.
5959         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Likewise.
5960         * tree.c (make_node_stat, copy_node_stat, make_tree_binfo_stat)
5961         (make_tree_vec_stat, tree_cons_stat, build1_stat): Likewise.
5962
5963 2005-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
5964
5965         * calls.c (expand_call): Handle current_function_pretend_args_size
5966         when checking for sibcalls.
5967
5968 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
5969
5970         PR tree-optimization/21294
5971         * tree-vrp.c (vrp_expr_computes_nonzero): New.
5972         (extract_range_from_expr): Call vrp_expr_computes_nonzero.
5973
5974 2005-05-02  Janis Johnson  <janis187@us.ibm.com>
5975
5976         PR 19985
5977         * gcov-io.h: Declare gcov external functions hidden.
5978
5979 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
5980
5981         * tree-ssa-uncprop.c (equiv_hash_elt, remove_equivalence,
5982         record_equiv, tree_ssa_uncprop, uncprop_into_successor_phis):
5983         Use VEC instead of VARRAY.
5984         (equiv_free): New.
5985
5986         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Factor
5987         out common code.
5988
5989 2005-05-02  Paolo Bonzini  <bonzini@gnu.org>
5990
5991         * c-common.c (resolve_overloaded_builtin): Forward to target
5992         hook for BUILT_IN_MD built-ins.
5993         * c-typeck.c (finish_call_expr): Call resolve_overloaded_builtin
5994         for all types of built-in.
5995         * target-def.h (TARGET_RESOLVE_OVERLOADED_BUILTIN): New.  Use it
5996         in the definition of the target hooks struct.
5997         * target.h (struct gcc_target): Add resolve_overloaded_builtin.
5998         * config/rs6000/altivec.h: Rewritten.
5999         * config/rs6000/rs6000-c.c (struct altivec_builtin_types,
6000         altivec_resolve_overloaded_builtin, altivec_build_resolved_builtin,
6001         rs6000_builtin_type, rs6000_builtin_type_compatible,
6002         altivec_overloaded_builtins, rs6000_builtin_type,
6003         rs6000_builtin_type_compatible): New.
6004         * config/rs6000/rs6000.c (rs6000_builtin_types, rs6000_builtin_decls):
6005         New.
6006         (def_builtin): Turn into a function.  Check for duplicates and store
6007         the builtin into rs6000_builtin_decls.
6008         (bdesc_3arg, bdesc_dst, bdesc_altivec_preds, bdesc_2arg,
6009         bdesc_1arg): Add overloaded builtins.
6010         (altivec_expand_builtin): Check for unresolved overloaded builtins,
6011         do not support ALTIVEC_COMPILETIME_ERROR.
6012         (rs6000_init_builtins): Add opaque 128-bit vector, and internal
6013         nodes to represent front-end types.
6014         (altivec_init_builtins, rs6000_common_init_builtins): Create builtins
6015         with opaque arguments and/or return values.
6016         * config/rs6000/rs6000.h (enum rs6000_builtins): Remove
6017         ALTIVEC_COMPILETIME_ERROR and add Altivec overloaded builtins.
6018         (rs6000_builtin_type_index): New.
6019         (is_ev64_opaque_type): Rename to...
6020         (rs6000_is_opaque_type): ... this.
6021         (rs6000_cpu_cpp_builtins): Install the resolve_overloaded_builtin
6022         target hook.
6023
6024 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
6025
6026         * function.c (reorder_blocks, reorder_blocks_1): Use VEC
6027         instead of VARRAY.
6028
6029 2005-05-02  Nathan Sidwell  <nathan@codesourcery.com>
6030             Bernd Schmidt  <bernd.schmidt@analog.com>
6031
6032         * config/bfin/bfin.c (emit_link_insn, effective_address_32bit_p,
6033         print_address_operand, print_operand, legitimize_pic_address,
6034         asm_conditional_branch, bfin_gen_compare, output_push_multiple,
6035         output_pop_multiple): Use gcc_assert or gcc_unreachable as
6036         appropriate.
6037         * config/bfin/bfin.md (movsf splitter, beq, bne): Likewise.
6038
6039 2005-05-02  Dorit Naishlos  <dorit@il.ibm.com>
6040
6041         * doc/passes.texi: Document vectorization pass.
6042
6043 2005-05-02  Kazu Hirata  <kazu@cs.umass.edu>
6044
6045         * tree-scalar-evolution.c (get_exit_conditions_rec,
6046         select_loops_exit_conditions,
6047         number_of_iterations_for_all_loops,
6048         analyze_scalar_evolution_for_all_loop_phi_nodes,
6049         scev_analysis): Use VEC instead of VARRAY.
6050
6051 2005-05-02  Michael Matz  <matz@suse.de>
6052
6053         PR c++/19542
6054         * c-common.c (c_common_nodes_and_builtins): Create global null_node.
6055         (warn_strict_null_sentinel): Define.
6056         (check_function_sentinel): Check for null_node as valid sentinel too.
6057         * c-common.h (c_tree_index): Added CTI_NULL.
6058         (null_node) Define global_tree[CTI_NULL].
6059         (warn_strict_null_sentinel): Declare.
6060         * c-opts.c: (c_common_handle_option): Handle -Wstrict-null-sentinel.
6061         * c.opt: (Wstrict-null-sentinel): New C++ option.
6062         * doc/invoke.texi (C++ Options): Document -Wstrict-null-sentinel.
6063
6064 2005-05-01  Kazu Hirata  <kazu@cs.umass.edu>
6065
6066         * gimplify.c (gimplify_compound_lval): Use VEC instead of
6067         VARRAY.
6068
6069         * global.c (calculate_reg_pav): Use VEC instead of VARRAY.
6070
6071         * dwarf2out.c (decl_scope_table, push_decl_scope,
6072         pop_decl_scope, scope_die_for, dwarf2out_init): Use VEC
6073         instead of VARRAY.
6074
6075 2005-05-01  Mark Mitchell  <mark@codesourcery.com>
6076
6077         PR C++/14391
6078         * c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1
6079         if !flag_weak.
6080         * doc/cpp.texi (__DEPRECATED): Document.
6081         (__EXCEPTIONS): Likewise.
6082         (__GXX_WEAK__): Likewise.
6083
6084         * function.c (INVOKE__main): Do not define.
6085         (expand_main_function): Check HAS_INIT_SECTION when determining
6086         whether or not to call __main.
6087
6088 2005-05-01  Kazu Hirata  <kazu@cs.umass.edu>
6089
6090         * tree-ssa-loop-ivopts.c: Fix a comment typo.
6091
6092 2005-01-05  Paul Brook  <paul@codesourcery.com>
6093
6094         * config/arm/arm.h (ARM_EMIT_TRAMPOLINE_CACHE_CLEAR): Define.
6095         (INITIALIZE_TRAMPOLINE): Use it.
6096         * config/arm/linux-gas.h (INITIALIZE_TRAMPOLINE): Remove.
6097         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Remove.
6098         * config/arm/netbsd-elf.h (INITIALIZE_TRAMPOLINE): Remove.
6099
6100 2005-05-01  Gerald Pfeifer  <gerald@pfeifer.com>
6101
6102         * doc/install.texi (Specific): Omit dots in the @anchors names
6103         for i?86-*-sco3.2v5*, i?86-*-solaris2.10, and sparc-sun-solaris2.7.
6104         Omit underscores for x86_64-*-* and the "all ELF targets" entry.
6105
6106 2005-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
6107
6108         PR tree-optimization/18316
6109         PR tree-optimization/19126
6110         * tree.c (build_int_cst_type): Avoid shift by size of type.
6111         * tree-scalar-evolution.c (simple_iv): Add allow_nonconstant_step
6112         argument.
6113         * tree-scalar-evolution.h (simple_iv): Declaration changed.
6114         * tree-ssa-loop-ivopts.c (struct iv_cand): Add depends_on
6115         field.
6116         (dump_cand): Dump depends_on information.
6117         (determine_biv_step): Add argument to simple_iv call.
6118         (contains_abnormal_ssa_name_p): Handle case expr == NULL.
6119         (find_bivs, find_givs_in_stmt_scev): Do not require step to be a
6120         constant.
6121         (add_candidate_1): Record depends_on for candidates.
6122         (tree_int_cst_sign_bit, constant_multiple_of): New functions.
6123         (get_computation_at, get_computation_cost_at, may_eliminate_iv):
6124         Handle ivs with nonconstant step.
6125         (iv_ca_set_remove_invariants, iv_ca_set_add_invariants): New functions.
6126         (iv_ca_set_no_cp, iv_ca_set_cp): Handle cand->depends_on.
6127         (create_new_iv): Unshare the step before passing it to create_iv.
6128         (free_loop_data): Free cand->depends_on.
6129         (build_addr_strip_iref): New function.
6130         (find_interesting_uses_address): Use build_addr_strip_iref.
6131         (strip_offset_1): Split the recursive part from strip_offset.
6132         Strip constant offset component_refs and array_refs.
6133         (strip_offset): Split the recursive part to strip_offset_1.
6134         (add_address_candidates): Removed.
6135         (add_derived_ivs_candidates): Do not use add_address_candidates.
6136         (add_iv_value_candidates): Add candidates with stripped constant
6137         offset.  Consider all candidates with initial value 0 important.
6138         (struct affine_tree_combination): New.
6139         (aff_combination_const, aff_combination_elt, aff_combination_scale,
6140         aff_combination_add_elt, aff_combination_add,
6141         tree_to_aff_combination, add_elt_to_tree, aff_combination_to_tree,
6142         fold_affine_sum): New functions.
6143         (get_computation_at): Use fold_affine_sum.
6144         * tree-ssa-loop-manip.c (create_iv): Handle ivs with nonconstant step.
6145         * tree-ssa-loop-niter.c (number_of_iterations_exit): Add argument
6146         to simple_iv call.
6147
6148 2005-04-30  Michael Matz  <matz@suse.de>
6149
6150         * config/i386/i386.md (movmemsi): Also active when
6151         TARGET_INLINE_ALL_STRINGOPS.
6152
6153 2005-04-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
6154
6155         PR bootstrap/20633
6156         * config/freebsd-spec.h (FBSD_CPP_SPEC): Add %(cpp_arch).
6157
6158 2005-04-30  Paul Brook  <paul@codesourcery.com>
6159
6160         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Always use .thumb_set in
6161         thumb mode.
6162         * config/arm/ieee754-df.S: Use __INTERWORKING_STUBS__.
6163         * config/arm/ieee754-sf.S: Ditto.
6164         * config/arm/lib1funcs.asm: Define and use __INTERWORKING_STUBS__.
6165         (FUNC_ALIAS): Use .thumb_set for thumb routines.
6166
6167 2005-04-30  Kazu Hirata  <kazu@cs.umass.edu>
6168
6169         * tree-ssanames.c: Fix a comment typo.
6170         * doc/options.texi: Fix a typo.
6171
6172 2005-04-30  Nathan Sidwell  <nathan@codesourcery.com>
6173
6174         * config/h8300/h8300.c (byte_reg): Use gcc_assert and
6175         gcc_unreachable as appropriate.
6176         (split_adds_subs, cond_string, print_operand,
6177         h8300_initial_elimination_offset, h8300_classify_operand,
6178         h8300_unary_length, h8300_short_immediate_length,
6179         h8300_bitfield_length, h8300_binary_length,
6180         h8300_insn_length_from_table, compute_mov_length, output_plussi,
6181         compute_plussi_length, compute_plussi_cc, output_logical_op,
6182         compute_logical_op_length, compute_logical_op_cc,
6183         output_h8sx_shift, get_shift_alg, h8300_shift_needs_scratch_p,
6184         output_a_shift, compute_a_shift_length, compute_a_shift_cc,
6185         output_a_rotate, compute_a_rotate_length, fix_bit_operand,
6186         h8300_regs_ok_for_stm): Likewise.
6187         * config/h8300/h8300.md (*movsi_h8300, *movsf_h8300,
6188         monitor_prologue): Likewise.
6189
6190 2005-04-30  Kazu Hirata  <kazu@cs.umass.edu>
6191
6192         * loop-invariant.c (invariants, create_new_invariant,
6193         get_inv_cost, best_gain_for_invariant,
6194         find_invariants_to_move, move_invariants,
6195         init_inv_motion_data, free_inv_motion_data): Use VEC instead
6196         of VARRAY.
6197
6198 2005-04-29  Richard Henderson  <rth@redhat.com>
6199
6200         * function.c (instantiate_decls): Remove valid_only argument.
6201         (instantiate_decls_1, instantiate_decl): Likewise.
6202         (instantiate_virtual_regs_1): Delete.
6203         (instantiate_virtual_regs_lossage): Delete.
6204         (instantiate_virtual_regs_in_rtx): New.
6205         (safe_insn_predicate): New.
6206         (instantiate_virtual_regs_in_insn): New.
6207         (instantiate_virtual_regs): Update to match all that.  Only run
6208         instantiate_decls once.
6209
6210 2005-04-29  Richard Henderson  <rth@redhat.com>
6211             Daniel Jacobowitz  <dan@codesourcery.com>
6212
6213         * gengtype.c (write_func_for_structure): Split out ...
6214         (output_type_enum): ... new function.  Fix thinko accessing
6215         TYPE_PARAM_STRUCT data.
6216
6217 2005-04-29  Tom Tromey  <tromey@redhat.com>
6218
6219         * tree.c (build_block): Removed unused 'tags' argument.
6220         * tree.h (build_block): Removed argument.
6221
6222 2005-04-29  Michael Matz  <matz@suse.de>
6223
6224         PR rtl-optimization/21144
6225         * postreload.c (reload_cse_move2add): Check for VOIDmode.
6226
6227 2005-04-29  Bob Wilson  <bob.wilson@acm.org>
6228
6229         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Define to disable
6230         flag_reorder_blocks.
6231
6232 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
6233
6234         PR tree-optimization/21030
6235         * tree-vrp.c (adjust_range_with_scev): Do not create invalid
6236         ranges where VR->MAX is smaller than VR->MIN.
6237
6238 2005-04-29  Devang Patel  <dpatel@apple.com>
6239
6240         PR tree-optimization/21272
6241         PR tree-optimization/21266
6242         * tree-if-conv.c (find_phi_replacement_condition): Fix think-o.
6243
6244 2005-04-29  Kazu Hirata  <kazu@cs.umass.edu>
6245
6246         * tree-flow-inline.h: Fix a comment typo.
6247         * doc/tree-ssa.texi: Fix a typo.
6248
6249         * tree-flow-inline.h, tree-ssa-operands.c: Fix comment typos.
6250
6251 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
6252
6253         * config/fr30/fr30.c (fr30_expand_prologue): Use gcc_assert and
6254         gcc_unreachable as appropriate.
6255         (fr30_expand_epilogue, fr30_setup_incoming_varargs,
6256         fr30_print_operand, fr30_move_double): Likewise.
6257         * config/fr30/fr30.md (*movsi_internal, *movsf_internal): Likewise.
6258
6259 2005-04-29  Mark Mitchell  <mark@codesourcery.com>
6260
6261         * config/arm/arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a
6262         definition has already been provided.
6263         (ARM_EABI_DTORS_SECTION_OP): Likewise.
6264         * config/arm/symbian.h (ARM_EABI_CTORS_SECTION_OP): Define.
6265         (ARM_EABI_DTORS_SECTION_OP): Likewise.
6266
6267 2005-04-29  Jim Tison  <jtison@us.ibm.com>
6268
6269         * config/s390/s390.md ("prologue_tpf", "epilogue_tpf"): Alter
6270         trace hooks calls to improve performance.
6271
6272 2005-04-29  Julian Brown  <julian@codesourcery.com>
6273             Mark Mitchell  <mark@codesourcery.com>
6274             Paul Brook  <paul@codesourcery.com>
6275
6276         * crtstuff.c: Handle targets that use .init_array.
6277         * function.c (HAS_INIT_SECTION): Do not define. Instead, make sure
6278         that INVOKE__main is set correctly.
6279         (expand_main_function): Test INVOKE__main.
6280         * libgcc2.c: Do not define __main when using .init_array.
6281         * config/arm/arm.c (arm_elf_asm_constructor): New function.
6282         * config/arm/arm.h (CTORS_SECTION_ASM_OP): Define, with specialized
6283         libgcc version.
6284         (DTORS_SECTION_ASM_OP): Likewise.
6285         (CTOR_LIST_BEGIN): Define specially when in libgcc.
6286         (CTOR_LIST_END): Likewise.
6287         (DTOR_LIST_BEGIN): Likewise.
6288         (DTOR_LIST_END): Likewise.
6289         * config/arm/bpapi.h (INIT_SECTION_ASM_OP): Do not define it.
6290         (FINI_SECTION_ASM_OP): Likewise.
6291         (INIT_ARRAY_SECTION_ASM_OP): Define.
6292         (FINI_ARRAY_SECTION_ASM_OP): Likewise.
6293         * config/arm/elf.h (TARGET_ASM_CONSTRUCTOR): Define.
6294         (SUPPORTS_INIT_PRIORITY): Evaluate to false for EABI based targets.
6295         * doc/tm.texi (INIT_ARRAY_SECTION_ASM_OP): Document.
6296         (FINI_ARRAY_SECTION_ASM_OP): Likewise.
6297
6298 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
6299
6300         * config/m68k/m68k.c (m68k_initial_elimination_offset): Use
6301         gcc_assert and gcc_unreachable as appropriate.
6302         (output_dbcc_and_branch, output_scc_di, legitimize_pic_address,
6303         const_int_cost, output_move_const_into_data_reg,
6304         output_move_qimode, output_move_double, find_addr_reg,
6305         print_operand, print_operand_address): Likewise.
6306         * config/m68k/m68k.md (adddi3, subdi3, negsf2, negdf2, abssf2,
6307         absdf2, sordered, sunordered, suneq, sunge, sungt, sunle, sunlt,
6308         sltgt, bordered, bunordered, buneq, bunge, bungt, bunle, bunlt,
6309         bltgt, *bordered_rev, *bunordered_rev, *buneq_rev, *bunge_rev,
6310         *bunle_rev, *bunlt_rev, *bltgt_rev, negxf2, absxf2,
6311         conditional_trap): Likewise.
6312         * config/m68k/m68kelf.h (ASM_OUTPUT_ALIGN): Remove unreachable code.
6313
6314 2005-04-29  Nathan Sidwell  <nathan@codesourcery.com>
6315
6316         * config/xtensa/xtensa.c (gen_int_relational): Use gcc_assert and
6317         gcc_unreachable as appropriate.
6318         (gen_conditional_move, xtensa_split_operand_pair,
6319         xtensa_split_operand_pair, xtensa_copy_incoming_a7,
6320         xtensa_copy_incoming_a7, xtensa_copy_incoming_a7,
6321         xtensa_copy_incoming_a7, xtensa_output_literal,
6322         xtensa_output_literal, xtensa_output_literal): Likewise.
6323         * config/xtensa/xtensa.h (INITIAL_ELIMINATION_OFFSET): Likewise.
6324         * config/xtensa/xtensa.md (*btrue, *bfalse, *ubtrue, *ubfalse,
6325         *bittrue, *bitfalse, *masktrue, *maskfalse, movsicc_internal0,
6326         movsicc_internal1, movsfcc_internal0,
6327         movsfcc_internal1): Likewise.
6328
6329 2005-04-28  James E Wilson  <wilson@specifixinc.com>
6330
6331         * config/i386/i386.h (HI_REGISTER_NAMES): Fix typos in comment.
6332         (ADDITIONAL_REGISTER_NAMES): Delete obsolete mmx register entries.
6333
6334 2005-04-28  DJ Delorie  <dj@redhat.com>
6335
6336         * opt-functions.awk (var_set): Emit proper initializer for
6337         non-target bitfields.
6338
6339 2005-04-28  Devang Patel  <dpatel@apple.com>
6340
6341         * dbxout.c (have_used_extensions): Remove.
6342         (dbxout_type_fileds, dbxout_type, dbxout_symbol): Remove use of
6343         have_used_extensions.
6344
6345 2005-04-28  James E Wilson  <wilson@specifixinc.com>
6346
6347         * doc/install.texi: Update -enable-languages info.  Correct path to
6348         html docs.
6349
6350 2005-04-28  DJ Delorie  <dj@redhat.com>
6351
6352         * optc-gen.awk (END): Make sure no variable is defined more
6353         than once.
6354         * opth-gen.awk (END): Allocate bits on a per-variable basis.
6355         Allow for bitfield variables other than target_flags.
6356         * doc/options.text (Mask): Document that you may specify a
6357         variable other than target_flags.
6358
6359 2005-04-28  Martin Koegler <mkoegler@auto.tuwien.ac.at>
6360
6361         PR rtl-optimization/18877
6362         * reload.c (decompose) <case REG, case SUBREG>: Handle pseudo reg
6363         number in val.start.
6364
6365 2005-04-28  David Edelsohn  <edelsohn@gnu.org>
6366
6367         PR target/20813
6368         * config/rs6000/aix43.h (SUBSUBTARGET_SWITCHES, aix64): Add
6369         MASK_PPC_GFXOPT.
6370         * config/rs6000/aix51.h (SUBSUBTARGET_SWITCHES, aix64): Same.
6371         * config/rs6000/aix52.h (SUBSUBTARGET_SWITCHES, aix64): Same.
6372         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES, 64): Same.
6373
6374 2005-04-28  Richard Earnshaw  <richard.earnshaw@arm.com>
6375
6376         * arm.c (legitimize_pic_address): Fix sense of assertion test for
6377         creating pseudos when the base offset is too large.
6378
6379 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
6380
6381         * global.c (earlyclobber_regclass): Change the type to
6382         VEC(int,heap).
6383         (check_earlyclobber): Update uses of earlyclobber_regclass.
6384         (mark_reg_use_for_earlyclobber): Likewise.
6385         (calculate_local_reg_bb_info): Allocate and free
6386         earlyclobber_regclass using the VEC API.
6387
6388 2005-04-28  Nathan Sidwell  <nathan@codesourcery.com>
6389
6390         * tree-ssa-alias.c (push_fields_onto_fieldstack): Remove bogus
6391         assert.
6392
6393 2005-04-28  Kazu Hirata  <kazu@cs.umass.edu>
6394
6395         * modulo-sched.c, tree-stdarg.c: Use targetm.foo instead of
6396         (*targetm.foo).
6397
6398         * config.gcc: Obsolete c4x-* and tic4x-*.
6399
6400         * tree.h (edge_def): Remove.
6401
6402         * bt-load.c, cfgexpand.c, dwarf2out.c, emit-rtl.c, expr.c,
6403         function.c, global.c, lcm.c, loop-invariant.c, optabs.c,
6404         reorg.c, resource.c, tree-ssa-loop-ivopts.c, value-prof.c: Use
6405         JUMP_P, LABEL_P, REG_P, MEM_P, NONJUMP_INSN_P, and INSN_P
6406         where appropriate.
6407
6408         * attribs.c, c-pragma.c, caller-save.c, cfghooks.h,
6409         coverage.c, cselib.h, domwalk.c, domwalk.h, errors.c,
6410         errors.h, gcov-dump.c, gcov-io.c, gcov-io.h, gen-protos.c,
6411         genattrtab.h, genextract.c, gthr-win32.h, insn-notes.def,
6412         integrate.c, lambda-mat.c, lambda.h, libgcov.c, local-alloc.c,
6413         machmode.def, mips-tfile.c, params.c, pretty-print.c,
6414         print-rtl.c, protoize.c, regmove.c, sched-vis.c, tree-chrec.h,
6415         tree-data-ref.h, vec.h, config/darwin-c.c, config/sol2-c.c,
6416         config/sol2.c, config/arm/arm-cores.def, config/arm/cirrus.md,
6417         config/arm/symbian.h, config/c4x/c4x.c, config/c4x/c4x.h,
6418         config/i386/cygming.h, config/i386/djgpp.h,
6419         config/i386/lynx.h, config/i386/netware.c,
6420         config/i386/winnt.c, config/ia64/ia64-c.c,
6421         config/iq2000/iq2000.c, config/m32r/little.h,
6422         config/m68k/m68k-protos.h, config/m68k/m68k.h,
6423         config/m68k/m68k.md, config/mcore/mcore.c,
6424         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.md,
6425         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
6426         config/mn10300/mn10300.h, config/ns32k/netbsd.h,
6427         config/ns32k/ns32k.c, config/ns32k/ns32k.h,
6428         config/pa/pa-hpux11.h, config/pdp11/pdp11.c,
6429         config/pdp11/pdp11.h, config/rs6000/darwin.h,
6430         config/rs6000/default64.h, config/rs6000/rs6000-c.c,
6431         config/s390/2064.md, config/s390/2084.md,
6432         config/s390/s390-modes.def, config/s390/s390-protos.h,
6433         config/s390/tpf.h, config/sh/sh.h, config/sh/symbian.c,
6434         config/stormy16/stormy16.c, config/vax/vax-protos.h,
6435         config/vax/vax.c, config/vax/vax.h,
6436         config/xtensa/lib1funcs.asm, config/xtensa/xtensa.md: Update
6437         copyright.
6438
6439 2005-04-28  Joseph S. Myers  <joseph@codesourcery.com>
6440
6441         * c-typeck.c (build_compound_expr): Correct logic in last change.
6442
6443 2005-04-27  James E. Wilson  <wilson@specifixinc.com>
6444
6445         * config/ia64/ia64.c (update_set_flags): Delete ppred and pcond
6446         parameters.  Replace conditional move code with assert checking for
6447         ar.lc.  Delete obsolete comments.
6448         (set_src_needs_barrier): Delete cond parameter, and code using it.
6449         (rtx_needs_barrier): Delete initialization of cond.  Fix typo in
6450         assert checking for PR_REGS.  Fix calls to update_set_flags and
6451         set_src_needs_barrier.
6452         (group_barrier_needed): Renamed from group_barrier_needed_p.  Fix all
6453         callers.  Rewrite explanatory comment before the function.
6454         (safe_group_barrier_needed): Renamed from safe_group_barrier_needed_p.
6455         Fix all callers.
6456
6457 2005-04-27  Mike Stump  <mrs@apple.com>
6458
6459         * doc/cpp.texi: gcc now implements universal character names.
6460
6461 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
6462
6463         PR c/21159
6464         * c-typeck.c (build_compound_expr): Don't warn for left-hand side
6465         being a compound expression whose right-hand side is cast to void.
6466
6467 2005-04-27  Caroline Tice  <ctice@apple.com>
6468
6469         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
6470         Remove targetm.have_named_sections test.
6471         (fix_edges_for_rarely_executed_code): Likewise.
6472         (insert_section_boundary_note): Likewise.
6473         (reorder_basic_blocks): Check partitioning flag before calling
6474         verify_hot_cold_block_grouping.
6475         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
6476         the function struct rather than global variables.
6477         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
6478         (COLD_END_LABEL): Likewise
6479         (cold_text_section_label): New static global variable.
6480         (cold_end_label): Likewise.
6481         (dwarf2out_switch_text_section): Get hot/cold section labels from
6482         the function struct rather than global variables; test to make sure
6483         cfun is defined.
6484         (output_aranges): Use cold_text_section_label and cold_end_label;
6485         check partitioning flag before putting out delta.
6486         (output_ranges): Remove incorrect code attempting to use
6487         hot/cold labels.
6488         (output_line_info): Get cold section label from function struct; test
6489         to make sure cfun is defined.
6490         (add_location_or_const_value_attribute): Likewise.
6491         (dwarf2out_var_location): Likewise.
6492         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
6493         write out cold_text_section_label if partition flag is set.
6494         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
6495         * function.h (struct function): Add new fields to point to hot/cold
6496         section labels: hot_section_label, cold_section_label,
6497         hot_section_end_label and cold_section_end_label; also add new field
6498         for cold text section name, unlikely_text_section_name.
6499         * opts.c (decode_options): Turn off partitioning flag if
6500         !targetm.have_named_sections.
6501         * output.h (hot_section_label): Remove.
6502         (hot_section_end_label): Remove.
6503         (cold_section_end_label): Remove.
6504         (unlikely_section_label): Remove.
6505         (unlikely_text_section_name): Remove.
6506         * passes.c (rest_of_handle_final):  Remove extra blank line.
6507         * varasm.c (unlikely_section_label): Remove.
6508         (hot_section_label): Remove.
6509         (hot_section_end_label): Remove.
6510         (cold_section_end_label): Remove.
6511         (unlikely_text_section_name):  Remove.
6512         (initialize_cold_section_name): Modify to call
6513         targetm.strip_name_encoding; to store cold section name in current
6514         function struct, if it exists; and to only use the decl_section_name
6515         if flag_named_sections is true.
6516         (unlikely_text_section): Modify to get section name out of current
6517         function struct, if there is one; otherwise build it from
6518         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
6519         (in_unlikely_text_section): Likewise.
6520         (named_section): Modify to get/put cold section name in current function
6521         struct, if there is one.
6522         (function_section):  Change 'bool unlikely' to 'int reloc'; check
6523         targetm.have_named_sections before calling named_section.
6524         (current_function_section): Likewise.
6525         (assemble_start_function): Modify to get/put unlikely_text_section_name
6526         in current function struct; modify to get hot/cold section labels
6527         from function struct; initialize labels using
6528         ASM_GENERATE_INTERNAL_LABEL;
6529         test partitioning flag before writing out hot section label.
6530         (assemble_end_function): Test partitioning flag before writing out
6531         hot/cold section labels.
6532         (default_section_type_flags_1):  Get cold text section name from
6533         function struct if there is one; Set flags correctly for
6534         cold text section if there is not a current function struct.
6535
6536 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
6537
6538         * tree-ssa-propagate.c (set_rhs): Revert last change.
6539
6540 2005-04-27  Steve Ellcey  <sje@cup.hp.com>
6541
6542         * explow.c (convert_memory_address): Add gcc_assert.
6543
6544 2005-04-27  Mark Mitchell  <mark@codesourcery.com>
6545
6546         * configure.ac: Check for ld --sysroot support.
6547         * gcc.c: Document %R specifier for specs.
6548         (SYSROOT_SPEC): New macro.
6549         (sysroot_spec): New variable.
6550         (static_specs): Add sysroot_spec.
6551         (main): Pass the sysroot spec to the linker if appropriate.
6552         * configure: Regenerated.
6553         * config.in: Likewise.
6554
6555 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
6556
6557         * fold-const.c (fold_binary): Use build_fold_addr_expr
6558         for address calculation and INDIRECT_REF handling.
6559
6560 2005-04-27  Andrew Haley  <aph@redhat.com>
6561
6562         * postreload-gcse.c (hash_scan_set): Remove bogus assertion.
6563
6564 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
6565
6566         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Reserve arm frame
6567         pointer when thumb backtracing is on.
6568
6569         * config/fp-bit.c (abort): Revert change.
6570
6571 2005-04-27  Ian Lance Taylor  <ian@airs.com>
6572
6573         * c-semantics.c (add_stmt): Don't test STATEMENT_CODE_P.
6574
6575 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
6576
6577         * tree-ssa-dce.c: Fix a comment typo.
6578
6579 2005-04-27  David S. Miller  <davem@davemloft.net>
6580
6581         * explow.c (allocate_dynamic_stack_space SETJMP_VIA_SAVE_AREA):
6582         Kill setjmpless_size.  current_function_calls_setjmp is completely
6583         computed when we are called, so just use the optimized size value
6584         instead of using REG_SAVE_AREA notes.
6585         (optimize_save_area_alloca): Delete....
6586         * rtl.h (optimize_save_area_alloca): Likewise...
6587         * passes.c (rest_of_compilation): and don't call it any more.
6588         * reg-notes.def (SAVE_AREA): Delete.
6589
6590 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
6591
6592         * config/fp-bit.c (abort): Add noreturn attribute.
6593
6594         * config/avr/avr.c (avr_naked_function_p): Use gcc_assert and
6595         gcc_unreachable as appropriate.
6596         (ptrreg_to_str, cond_string, avr_normalize_condition): Likewise.
6597         * config/avr/avr.h (ASM_OUTPUT_REG_PUSH,
6598         ASM_OUTPUT_REG_POP): Likewise.
6599
6600 2005-04-27  Paolo Bonzini  <bonzini@gnu.org>
6601
6602         * tree-complex.c (expand_vector_operations_1): Do not build
6603         VIEW_CONVERT_EXPR's for the lhs.
6604
6605 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
6606
6607         * config/pa/pa.h (PRINT_OPERAND_ADDRESS): Use gcc_assert, remove
6608         unnecessary noncanonical RTL handling.
6609         * config/pa/pa64-linux.h (INITIAL_ELIMINATION_OFFSET): Use
6610         gcc_assert and gcc_unreachable.
6611
6612         * config/arm/arm.h (ARM_PRINT_OPERAND_ADDRESS): Use gcc_assert and
6613         gcc_unreachable as appropriate.
6614         (THUMB_PRINT_OPERAND_ADDRESS): Likewise.
6615         * config/arm/arm.c (arm_override_options, arm_compute_func_type,
6616         use_return_insn, const_ok_for_op, arm_gen_constant,
6617         arm_canonicalize_comparison, legitimize_pic_address,
6618         thumb_find_work_register, arm_load_pic_register, arm_rtx_costs_1,
6619         arm_cirrus_insn_p, cirrus_reorg, minmax_code,
6620         load_multiple_sequence, emit_ldm_seq, store_multiple_sequence,
6621         emit_stm_seq, arm_gen_movmemqi, arm_select_dominance_cc_mode,
6622         arm_select_cc_mode, arm_reload_in_hi, arm_reload_out_hi,
6623         move_minipool_fix_forward_ref, move_minipool_fix_backward_ref,
6624         dump_minipool, create_fix_barrier, push_minipool_fix, arm_reorg,
6625         fp_immediate_constant, fp_const_from_val, vfp_output_fstmx,
6626         output_call, output_mov_long_double_fpa_from_arm,
6627         output_mov_long_double_arm_from_fpa,
6628         output_mov_double_fpa_from_arm, output_mov_double_arm_from_fpa,
6629         output_move_double, arithmetic_instr, shift_op, int_log2,
6630         output_return_instruction, arm_output_function_prologue,
6631         arm_output_epilogue, arm_output_function_epilogue,
6632         emit_multi_reg_push, arm_get_frame_offsets,
6633         arm_compute_initial_elimination_offset, arm_expand_prologue,
6634         arm_print_operand, arm_assemble_integer, get_arm_condition_code,
6635         arm_final_prescan_insn, arm_init_iwmmxt_builtins,
6636         arm_expand_binop_builtin, thumb_pushpop, thumb_far_jump_used_p,
6637         thumb_compute_initial_elimination_offset,
6638         thumb_output_function_prologue, thumb_load_double_from_address,
6639         thumb_output_move_mem_multiple, thumb_reload_out_hi,
6640         arm_emit_vector_const, arm_dbx_register_number): Likewise.
6641         * config/arm/pe.c (arm_mark_dllexport, arm_mark_dllimport): Likewise.
6642         * config/arm/arm.md (thumb_extendhisi2,
6643         *thumb_extendhisi2_insn_v6, *thumb_extendqisi2,
6644         *thumb_extendqisi2_v6, movhi, *thumb_movhi_insn,
6645         thumb_movhi_clobber, movqi, *arm_buneq, *arm_bltgt,
6646         *arm_buneq_reversed, *arm_bltgt_reversed, suneq, sltgt): Likewise.
6647         * config/arm/cirrus.md (*cirrus_arm_movdi,
6648         *cirrus_movdf_hard_insn): Likewise.
6649         * config/arm/vfp.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
6650
6651 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
6652
6653         * tree-flow.h (ssa_names): Change the type to VEC(tree,gc).
6654         (num_ssa_names): Use VEC_length.
6655         (ssa_names): Use VEC_index.
6656         * tree-ssanames.c (ssa_names): Change the type to
6657         VEC(tree,gc).
6658         (init_ssanames, fini_ssa_names, make_ssanames,
6659         release_ssa_name): Update uses of ssa_names.
6660
6661         * dojump.c, emit-rtl.c, expmed.c, expr.c, stmt.c, stor-layout.c:
6662         Use fold_buildN instead of fold (buildN (...)).
6663
6664 2005-04-27  Devang Patel <dpatel@apple.com>
6665
6666         * dbxout.c (dbxout_type): Check use_gnu_debug_info_extensions.
6667
6668 2005-04-27  Matt Thomas <matt@3am-software.com>
6669             Jan-Benedict Glaw <jbglaw@microdata-pos.de>
6670
6671         * config/vax/vax.c (vax_rtx_costs): Whitespace cleanup.
6672         (vax_output_mi_thunk): Ditto.
6673         (vax_notice_cc_update): Ditto.
6674         (INDEX_REGISTER_P): Add trailing \.
6675         (BASE_REGISTER_P): Add trailing \.
6676         (legitimate_address_p): Whitespace cleanup.  Remove trailing \.
6677
6678 2005-04-27  Richard Guenther  <rguenth@gcc.gnu.org>
6679
6680         * tree-ssa-propagate.c (set_rhs): Check operand of
6681         ADDR_EXPR for gimpliness, too.
6682
6683 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
6684
6685         * tree-ssa-pre.c: Fix a comment typo.
6686
6687 2005-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
6688
6689         PR tree-optimization/21171
6690         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Do not
6691         record address uses if the reference is volatile.
6692
6693 2004-04-27  Paolo Bonzini  <bonzini@gnu.org>
6694
6695         * tree-complex.c (expand_vector_operation): New, extracted from
6696         expand_vector_operations_1.
6697         (tree_vec_extract): Build a NOP_EXPR.
6698         (expand_vec_parallel): Do not care about returning the correct type.
6699         (expand_vector_operations_1): Call expand_vector_operation.
6700         Build the VIEW_CONVERT_EXPR on the left side of MODIFY_EXPRs.
6701
6702         * tree-complex.c (gate_expand_vector_operations): New.
6703         (pass_lower_vector_ssa): Use it.
6704         * tree-optimize.c (init_tree_optimization_passes): Include
6705         pass_lower_vector_ssa.
6706         * tree-vect-transform.c (vect_min_worthwhile_factor): New.
6707         (vectorizable_operation): Use it.
6708         * tree-vectorizer.c (get_vectype_for_scalar_type): Accept
6709         integer modes for the vector type.
6710
6711         * defaults.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
6712         * tree-vect-analyze.c (vect_enhance_data_refs_alignment):
6713         Do not cope with UNITS_PER_SIMD_WORD == 0.
6714         * tree-vectorizer.c (get_vectype_for_scalar_type): Check
6715         if the scalar type is not bigger than UNITS_PER_SIMD_WORD.
6716         (vectorize_loops): Do not check that UNITS_PER_SIMD_WORD > 0.
6717         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Default to UNITS_PER_WORD.
6718         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
6719         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
6720         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6721
6722         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): Remove.
6723         * config/bfin/bfin.h (UNITS_PER_SIMD_WORD): Remove.
6724         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): Remove.
6725
6726         * doc/tm.texi (UNITS_PER_WORD): Rephrase more accurately.
6727         (UNITS_PER_SIMD_WORD): New.
6728
6729 2005-04-27  Nathan Sidwell  <nathan@codesourcery.com>
6730
6731         * config/ia64/ia64.c (ia64_encode_addr_area): Use gcc_assert and
6732         gcc_unreachable as appropriate.
6733         (ia64_expand_load_address, ia64_expand_tls_address,
6734         ia64_split_tmode, ia64_split_tmode_move, ia64_expand_compare,
6735         ia64_expand_vecint_compare, ia64_expand_vecint_minmax,
6736         next_scratch_gr_reg, ia64_initial_elimination_offset,
6737         ia64_expand_prologue, ia64_expand_epilogue,
6738         ia64_output_dwarf_dtprel, ia64_print_operand,
6739         ia64_register_move_cost, first_instruction, rws_access_regno,
6740         update_set_flags, rtx_needs_barrier, group_barrier_needed_p,
6741         ia64_sched_init, ia64_variable_issue,
6742         ia64_first_cycle_multipass_dfs_lookahead_guard,
6743         ia64_dfa_new_cycle, issue_nops_and_insn, get_template, bundling,
6744         ia64_st_address_bypass_p, ia64_ld_address_bypass_p, process_set,
6745         process_for_unwind_directive, ia64_hpux_file_end): Likewise.
6746         * config/ia64/ia64.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
6747         * config/ia64/ia64.md (*arm_movdi_vfp, *movdf_vfp): Likewise.
6748         * config/ia64/predicates.md (got_symbolic_operand,
6749         sdata_symbolic_operand): Likewise.
6750         * config/ia64/vect.md (vcondv2sf): Likewise.
6751
6752 2005-04-27  Matt Thomas <matt@3am-software.com>
6753
6754         * config/vax/vax.c (legitimate_constant_address_p): New.  Formerly
6755         CONSTANT_ADDRESS_P in config/vax/vax.h
6756         (legitimate_constant_p): Added.  Formerly CONSTANT_P in vax.h.
6757         (INDEX_REGISTER_P): New.
6758         (BASE_REGISTER_P): New.
6759         (indirectable_constant_address_p): New.  Adapted from
6760         INDIRECTABLE_CONSTANT_ADDRESS_P in vax.h. Use SYMBOL_REF_LOCAL_P.
6761         (indirectable_address_p): New.  Adapted from
6762         INDIRECTABLE_ADDRESS_P in vax.h.
6763         (nonindexed_address_p): New.  Adapted from
6764         GO_IF_NONINDEXED_ADDRESS in vax.h.
6765         (index_temp_p): New.  Adapted from INDEX_TERM_P in vax.h.
6766         (reg_plus_index_p): New.  Adapted from GO_IF_REG_PLUS_INDEX in vax.h.
6767         (legitimate_address_p): New.  Adapted from
6768         GO_IF_LEGITIMATE_ADDRESS in vax.h.
6769         (vax_mode_dependent_address_p): New.  Adapted from
6770         GO_IF_MODE_DEPENDENT_ADDRESS in vax.h.
6771         * config/vax/vax.h (CONSTANT_ADDRESS_P): Use
6772         legitimate_constant_address_p.
6773         (CONSTANT_P): Use legitimate_constant_p.
6774         (INDIRECTABLE_CONSTANT_ADDRESS_P): Removed.
6775         (INDIRECTABLE_ADDRESS_P): Removed.
6776         (GO_IF_NONINDEXED_ADDRESS): Removed.
6777         (INDEX_TEMP_P): Removed.
6778         (GO_IF_REG_PLUS_INDEX): Removed.
6779         (GO_IF_LEGITIMATE_ADDRESS): Use legitimate_address_p. Two
6780         definitions, depending on whether REG_OK_STRICT is defined.
6781         (GO_IF_MODE_DEPENDENT_ADDRESS): Use vax_mode_dependent_address_p.
6782         Two definitions, depending on whether REG_OK_STRICT is defined.
6783         * config/vax/vax-protos.h (legitimate_constant_address_p): Prototype
6784         added.
6785         (legitimate_constant_p): Prototype added.
6786         (legitimate_address_p): Prototype added.
6787         (vax_mode_dependent_address_p): Prototype added.
6788
6789 2005-04-27  Kazu Hirata  <kazu@cs.umass.edu>
6790
6791         * tree.h (phi_arg_d): Expand a comment in phi_arg_d.
6792
6793 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
6794
6795         PR c/21213
6796         * c-decl.c (finish_struct): Don't dereference NULL TYPE_FIELDS of
6797         transparent union.
6798
6799 2005-04-27  Joseph S. Myers  <joseph@codesourcery.com>
6800
6801         PR c/20740
6802         * c-format.c (init_dynamic_asm_fprintf_info): Give errors, not
6803         assertion failures, if __gcc_host_wide_int__ is not properly
6804         defined.
6805         (init_dynamic_diag_info): Give errors, not assertion failures, if
6806         location_t, tree or __gcc_host_wide_int__ are not properly
6807         defined.
6808
6809 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
6810
6811         * tree-ssa-loop-ivopts.c (ivopts_data, decl_rtl_to_reset,
6812         n_iv_uses, iv_use, n_iv_cands, iv_cand,
6813         tree_ssa_iv_optimize_init, record_use, add_candidate_1,
6814         prepare_decl_rtl, free_loop_data,
6815         tree_ssa_iv_optimize_finalize): Use the VEC API instead of
6816         VARRAY.
6817
6818         * tree.h (tree_phi_node): Add a comment about the order of PHI
6819         arguments.
6820
6821 2005-04-26  Paul Brook  <paul@codesourcery.com>
6822
6823         * config/arm/arm.md (thumb_mulsi3): Use two-operand assembly form.
6824
6825 2005-04-26  Nathan Sidwell  <nathan@codesourcery.com>
6826
6827         * config/mips.mips.c (mips_legitimize_tls_address): Use
6828         gcc_unreachable.
6829
6830         * config/mmix/mmix.c (mmix_assemble_integer): Use gcc_assert.
6831         * config/mmix/crti.asm (_init): Reword comment to avoid 'abort'.
6832         * config/mmix/mmix.md (nonlocal_goto_receiver): Likewise.
6833
6834         * config/sparc/sparc.h (enum reg_class): Reword comment to avoid
6835         'abort'.
6836
6837 2005-04-26  Jeff Law  <law@redhat.com>
6838
6839         * tree-flow-inline.h (op_iter_next_must_and_may_def): New.
6840         (op_iter_init_must_and_may_def): Likewise.
6841         (unmodifiable_var_p): Move to a later point in the file.
6842         * tree-ssa-operands.h (FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): New.
6843         * tree-ssa-dse.c (need_imm_uses_for): Remove, no longer needed.
6844         (dse_record_phis): Directly check for virtual operands rather than
6845         using need_imm_uses_for.
6846         (dse_optimize_stmt): Handle V_MUST_DEF operands.  Handle case where
6847         store has multiple V_{MAY,MUST}_DEF operands.
6848
6849 2005-04-26  Andrew MacLeod  <amacleod@redhat.com>
6850
6851         * tree-cfg.c (bsi_replace): Delink immediate uses for the original
6852         stmt.
6853
6854 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
6855
6856         * tree-cfg.c (lv_adjust_loop_header_phi): Speed up moving a
6857         call to find_edge outside a loop to go through a PHI chain.
6858
6859 2004-04-26  Richard Guenther  <rguenth@gcc.gnu.org>
6860
6861         PR tree-optimization/17598
6862         * fold-const.c (fold_binary): Fold comparisons of addresses
6863         of COMPONENT_REFs which reference the same field to
6864         comparisons of the addresses of the base objects.
6865
6866 2005-04-26  Julian Brown  <julian@codesourcery.com>
6867
6868         * config/arm/arm.c (arm_return_in_msb): New function.
6869         (arm_must_pass_in_stack): New function.
6870         (TARGET_RETURN_IN_MSB): Define target hook.
6871         (TARGET_MUST_PASS_IN_STACK): Define target hook.
6872         (arm_function_value): Pad small aggregate return.
6873         (arm_pad_arg_upward): New function.
6874         (arm_pad_reg_upward): New function.
6875         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Include complex values.
6876         (FUNCTION_ARG_PADDING): Define macro.
6877         (BLOCK_REG_PADDING): Define macro.
6878         (PAD_VARARGS_DOWN): Correct padding for AAPCS.
6879         * config/arm/arm-protos.h (arm_pad_arg_upward): Declare function.
6880         (arm_pad_reg_upward): Declare function.
6881
6882 2005-04-26  Kazu Hirata  <kazu@cs.umass.edu>
6883
6884         * basic-block.h (ei_cond): New.
6885         (FOR_EACH_EDGE): Call ei_cond.
6886
6887         PR tree-optimization/21047
6888         * fold-const.c (fold_binary): Abort on ASSERT_EXPR.
6889         (fold): Don't handle ASSERT_EXPR.
6890
6891 2005-04-25  Roger Sayle  <roger@eyesopen.com>
6892
6893         * sched-deps.c (sched_analyze_1): On STACK_REGS targets, x87, treat
6894         all writes to any stack register as a read/write dependency on
6895         FIRST_STACK_REG.
6896         (sched_analyze_2): Likewise, for reads from any stack register.
6897
6898 2005-04-25  Richard Henderson  <rth@redhat.com>
6899
6900         * final.c (output_addr_const): Revert 2005-04-09 change.
6901
6902 2005-04-25  Mike Stump  <mrs@apple.com>
6903
6904         * config/darwin.c (darwin_encode_section_info): Always set
6905         MACHO_SYMBOL_STATIC for all ! TREE_PUBLIC symbols.
6906
6907 2005-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6908
6909         * collect2.c, gcc.c, gcov-dump.c, gcov.c, gen-protos.c,
6910         gensupport.c, protoize.c, toplev.c: Replace calls to
6911         `unlock_stream' with `unlock_std_streams'.
6912
6913 2005-04-25  Devang Patel <dpatel@apple.com>
6914
6915         * dbxout.c (dbxout_type): Emit attribute vector.
6916
6917 2005-04-05  Paul Brook  <paul@codesourcery.com>
6918
6919         * target-def.h (TARGET_CXX_USE_AEABI_ATEXIT): Define.
6920         * target.h (struct gcc_target): Add cxx.use_aeabi_atexit.
6921         * config/arm/arm.c (arm_cxx_atexit_name): New function.
6922         (TARGET_CXX_USE_AEABI_ATEXIT): New macro.
6923         * cp/decl.c (get_atexit_node): Reorder arguments for __aeabi_atexit.
6924         (register_dtor_fn): Likewise.
6925         * doc/tm.texi: Document TARGET_CXX_USE_AEABI_ATEXIT.
6926
6927 2005-04-25  Ian Lance Taylor  <ian@airs.com>
6928
6929         * c-common.def (EXPR_STMT): Remove, moved to C++ frontend.
6930         * c-common.h (EXPR_STMT_EXPR): Don't define.
6931         (c_common_stmt_codes): Don't define.
6932         * c-dump.c (c_dump_tree): Remove EXPR_STMT case.
6933         * c-gimplify.c (gimplify_expr_stmt): Remove.
6934         (c_gimplify_expr): Remove EXPR_STMT case.
6935         * c-objc-common.c (c_objc_common_init): Remove stmt_codes and call
6936         to INIT_STATEMENT_CODES.
6937         * c-pretty-print.c (pp_c_statement): Just call dump_generic_node.
6938
6939 2005-04-25  Jan Hubicka  <jh@suse.cz>
6940
6941         * tree-cfg.c (tree_duplicate_bb): Duplicate EH region too.
6942
6943         * except.c: Include diagnostic.h
6944         (dump_eh_tree, verify_eh_tree): New functions.
6945         * except.h (verify_eh_tree, dump_eh_tree, verify_eh_edges): Declare.
6946         * tree-cfg.c (tree_verify_flow_info): verify eh edges.
6947         (dump_function_to_file): dump eh tree.
6948         * tree-eh.c (mark_eh_edge): New function.
6949         (mark_eh_edge_found_error): New static variable.
6950         (verify_eh_edges): New function.
6951
6952 2005-04-25  Nathan Sidwell  <nathan@codesourcery.com>
6953
6954         * tree-ssa-alias.c (fieldoff_t): Remove.
6955         (fieldoff_s): typedef the structure itself.  Create a vector of
6956         objects.
6957         (push_fields_onto_fieldstack): Return count of fields pushed.
6958         Remove peeling of first field.  Adjust.
6959         (fieldoff_compare): Adjust.
6960         (create_overlap_variables_for): Adjust.
6961
6962 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
6963
6964         * doc/invoke.texi (Blackfin Options): Avoid empty @opindex line.
6965
6966 2005-04-25  Joseph S. Myers  <joseph@codesourcery.com>
6967
6968         PR bootstrap/21215
6969         * doc/install.texi: Document correct assembler and linker to use
6970         on i?86-*-solaris2.10.
6971
6972 2005-04-25  Steven Bosscher  <stevenb@suse.de>
6973
6974         Fix PR tree-optimization/21173
6975
6976         * tree-ssa-pre.c (create_expression_by_pieces): Simplify code.
6977         Unshare expression we pass to force_gimple_operand.
6978
6979 2005-04-25  J"orn Rennecke <joern.rennecke@st.com>
6980             Stephen Clarke <stevec@superh.com>
6981             Roger Sayle <roger@eyesopen.com>
6982
6983         PR rtl-optimization/20413
6984         * cfgrtl.c (redirect_edge_and_branch): Use Pmode instead of
6985         VOIDmode for LABEL_REF.
6986         * final.c (shorten_branches): Likewise.
6987         * jump.c (mark_all_labels, redirect_exp_1): Likewise.
6988         * loop.c (reg_dead_after_loop): Likewise.
6989         * varasm.c (decode_addr_const): Likewise.
6990         * doc/rtl.texi: Document mode requirement for LABEL_REF.
6991
6992 2005-04-25  Ralf Corsepius  <ralf.corsepius@rtems.org>
6993
6994         * config.gcc (avr-*-*): Remove redundant "case".
6995
6996 2005-04-25  Kazu Hirata  <kazu@cs.umass.edu>
6997
6998         * tree-vect-analyze.c (vect_mark_relevant): Take
6999         VEC(tree,heap) instead of varray_type as an argument.
7000         (vect_mark_stmts_to_be_vectorized): Change the type of
7001         worklist to VEC(tree,heap).  Adjust uses of worklist.
7002
7003 2005-04-24  Devang Patel  <dpatel@apple.com>
7004
7005         *  config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
7006
7007 2005-04-24  Ian Lance Taylor  <ian@airs.com>
7008
7009         * c-semantics.c (build_stmt): Remove test of specific tree codes
7010         for TREE_SIDE_EFFECTS handling.
7011
7012 2005-04-24  Per Bothner  <per@bothner.com>
7013
7014         * c-opts.c (finish_options):  Make the line-number of the <built-in>
7015         location 0, as assumed elsewhere, rather than 1.
7016
7017 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
7018
7019         * tree-ssa-uncprop.c (equiv_stack): Change the type o
7020         VEC(tree,heap).
7021         (tree_ssa_uncprop, uncprop_finalize_block,
7022         uncprop_initialize_block): Update uses of equiv_stack.
7023
7024 2005-04-24  Richard Henderson  <rth@redhat.com>
7025
7026         PR rtl-opt/21163
7027         * simplify-rtx.c (simplify_binary_operation) <IOR>: Check
7028         for SCALAR_INT_MODE_P instead of not MODE_CC before returning
7029         constm1_rtx.
7030         <AND, LSHIFTRT, UMIN>: Use CONST0_RTX.
7031         <UDIV, UMOD>: Use CONST0_RTX and CONST1_RTX.
7032         <DIV, MOD>: Likewise.
7033
7034 2005-04-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7035
7036         * collect2.c (main): Unlock the stdio streams.
7037         * gcc.c (main): Likewise.
7038         * gcov-dump.c (main): Likewise.
7039         * gcov.c (main): Likewise.
7040         * gen-protos.c (main): Likewise.
7041         * gensupport.c (init_md_reader_args_cb): Likewise.
7042         * protoize.c (main): Likewise.
7043         * toplev.c (general_init): Likewise.
7044
7045 2005-04-24  Jakub Jelinek  <jakub@redhat.com>
7046
7047         PR middle-end/20991
7048         * cgraph.h (cgraph_local_info): Add vtable_method field.
7049         * varasm.c (mark_decl_referenced): If cgraph_global_info_ready
7050         and node is vtable_method, finalized and not reachable, don't do
7051         anything.
7052
7053 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
7054
7055         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Use
7056         COMPARISON_CLASS_P.
7057         * tree-ssa-pre.c (create_value_expr_from): Use
7058         CONSTANT_CLASS_P and REFERENCE_CLASS_P.
7059         * tree-ssa-propagate.c (stmt_makes_single_load,
7060         stmt_makes_single_store): Use REFERENCE_CLASS_P.
7061         * tree-vect-transform.c (vect_is_simple_cond): Use
7062         COMPARISON_CLASS_P.
7063         * tree-vrp.c (extract_range_from_assert,
7064         build_assert_expr_for, fp_predicate, has_assert_expr): Use
7065         COMPARISON_CLASS_P.
7066
7067         * tree-ssa-live.c (build_tree_conflict_graph): Change the type
7068         of tpa_to_clear to VEC(int,heap).  Update uses of
7069         tpa_to_clear.  Free tpa_to_clear at the end.
7070
7071 2005-04-24  Andrew Pinski  <pinskia@physics.uc.edu>
7072
7073         * tree.h (TREE_THIS_VOLATILE): Document the effect on a
7074         function decl.
7075
7076 2005-04-24  Nathan Sidwell  <nathan@codesourcery.com>
7077
7078         * config/rs6000/rs6000.c (rs6000_override_options): Use gcc_assert
7079         and gcc_unreachable as appropriate.
7080         (num_insns_constant, output_vec_const_move,
7081         build_mask64_2_operands, rs6000_output_dwarf_dtprel,
7082         rs6000_emit_set_const, rs6000_emit_move,
7083         spe_build_register_parallel, function_arg,
7084         rs6000_move_block_from_reg, altivec_expand_predicate_builtin,
7085         spe_expand_predicate_builtin, spe_expand_evsel_builtin,
7086         rs6000_expand_builtin, spe_init_builtins, altivec_init_builtins,
7087         rs6000_common_init_builtins, expand_block_clear,
7088         expand_block_move, validate_condition_mode, ccr_bit, extract_MB,
7089         extract_ME, rs6000_get_some_local_dynamic_name,
7090         rs6000_output_function_entry, print_operand,
7091         print_operand_address, rs6000_generate_compare, rs6000_emit_sCOND,
7092         output_cbranch, output_e500_flip_gt_bit,
7093         rs6000_emit_vector_compare, rs6000_emit_vector_compare,
7094         rs6000_emit_cmove, rs6000_emit_minmax, rs6000_split_multireg_move,
7095         compute_save_world_info, rs6000_stack_info,
7096         rs6000_emit_load_toc_table, rs6000_frame_related,
7097         spe_synthesize_frame_save, rs6000_emit_epilogue,
7098         rs6000_output_function_epilogue, rs6000_hash_constant, output_toc,
7099         output_function_profiler, rs6000_trampoline_size,
7100         rs6000_initialize_trampoline, find_addr_reg,
7101         rs6000_machopic_legitimize_pic_address,
7102         rs6000_initial_elimination_offset,
7103         rs6000_dbx_register_number): Likewise.
7104         * config/rs6000/rs6000.md (*fix_truncdfsi2_internal,
7105         *movdf_hardfloat32, *movdf_softfloat32, *fix_trunctfsi2_internal,
7106         *movti_power, *movti_string, call, call_value, sibcall,
7107         sibcall_value): Likewise.
7108         * config/rs6000/spe.md (*movdf_e500_double,
7109         *movv2si_internal): Likewise.
7110         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Remove 'abort'
7111         from comment.
7112
7113 2005-04-24  Richard Henderson  <rth@redhat.com>
7114
7115         PR target/21101
7116         * config/i386/i386.h (CANNOT_CHANGE_MODE_CLASS): Move guts to ...
7117         * config/i386/i386.c (ix86_cannot_change_mode_class): ... here.
7118         Deny modes smaller than 4 bytes.
7119         * config/i386/i386-protos.h: Update.
7120
7121 2005-04-24  Ralf Corsepius  <ralf.corsepius@rtems.org>
7122
7123         * config.gcc (h8300-*-rtems*): Add h8300-*-rtemscoff*.
7124         Switch h8300-*-rtems* to ELF.
7125
7126 2005-04-24  Kazu Hirata  <kazu@cs.umass.edu>
7127
7128         * vec.h (VEC_safe_grow): Replace grow with safe_grow.
7129
7130 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
7131
7132         * ipa-inline.c, tree-ssa-operands.h: Fix comment typos.
7133
7134 2005-04-23  Richard Guenther  <rguenth@gcc.gnu.org>
7135
7136         PR middle-end/21082
7137         * fold-const.c: Fold &a[i]-&a[j] to i-j.
7138
7139 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
7140
7141         * tree-ssa-loop-niter.c (tree_simplify_using_condition): Expand simple
7142         definitions of ssa names in condition.  Split recusive part to ...
7143         (tree_simplify_using_condition_1): New function.
7144         (expand_simple_operations): New function.
7145
7146 2005-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
7147
7148         * tree-ssa-loop-ivopts.c (struct cost_pair): Add value field.
7149         (find_interesting_uses_cond): Do not use integer_zerop and
7150         integer_nonzerop to check for integer constants.
7151         (set_use_iv_cost): Record the value field.
7152         (determine_use_iv_cost_generic, determine_use_iv_cost_address,
7153         determine_use_iv_cost_outer): Set the value field of the cost pair.
7154         (may_eliminate_iv): Do not return the comparison code.
7155         (iv_elimination_compare): New function.
7156         (determine_use_iv_cost_condition): Set the value field.  Record
7157         noneliminable invariants correctly.
7158         (rewrite_use_compare, rewrite_use_outer): Use the value field.
7159
7160 2005-04-23  DJ Delorie  <dj@redhat.com>
7161
7162         * diagnostic.c (warning): Accept parameter to classify warning option.
7163         (warning0): New, for when a pointer to an error() like function is needed.
7164         * errors.c (warning): Likewise.
7165         * errors.h (warning, warning0): Adjust prototypes.
7166         * toplev.h (warning, warning0): Likewise.
7167
7168         * attribs.c, builtins.c, c-common.c, c-decl.c, c-format.c,
7169         c-gimplify.c, c-lex.c, c-objc-common.c, c-opts.c, c-parser.c,
7170         c-pragma.c, c-typeck.c, calls.c, cgraph.c, coverage.c, emit-rtl.c,
7171         fold-const.c, fortran/trans-decl.c, function.c, gcse.c,
7172         genautomata.c, haifa-sched.c, opts.c, passes.c, regclass.c,
7173         reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
7174         tree-dump.c, tree-inline.c, tree-mudflap.c, tree-optimize.c,
7175         tree-ssa.c, tree.c, varasm.c: Adjust warning() callers.
7176
7177         * config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
7178         config/avr/avr.c, config/bfin/bfin.c, config/c4x/c4x-c.c,
7179         config/c4x/c4x.c, config/cris/cris.c, config/darwin-c.c,
7180         config/darwin.c, config/darwin.h, config/h8300/h8300.c,
7181         config/i386/cygming.h, config/i386/djgpp.h, config/i386/i386.c,
7182         config/i386/winnt.c, config/ia64/ia64-c.c, config/ia64/ia64.c,
7183         config/ip2k/ip2k.c, config/m32r/m32r.c, config/m68hc11/m68hc11.c,
7184         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.c,
7185         config/mmix/mmix.c, config/ns32k/ns32k.c, config/pa/pa-hpux11.h,
7186         config/pa/pa.c, config/rs6000/aix43.h, config/rs6000/aix51.h,
7187         config/rs6000/aix52.h, config/rs6000/darwin.h,
7188         config/rs6000/rs6000-c.c, config/rs6000/rs6000.c,
7189         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
7190         config/sh/symbian.c, config/sol2-c.c, config/sol2.c,
7191         config/stormy16/stormy16.c, config/v850/v850-c.c,
7192         config/v850/v850.c, config/xtensa/xtensa.c: Adjust warning()
7193         callers.
7194
7195 2005-04-23  Richard Henderson  <rth@redhat.com>
7196
7197         PR rtl-opt/21102
7198         * simplify-rtx.c (simplify_binary_operation): Fix mode check before
7199         performing some integral scalar simplifications.
7200
7201 2005-04-23  Richard Henderson  <rth@redhat.com>
7202
7203         PR target/21099
7204         * config/i386/i386.c (ix86_split_to_parts): Use proper mode when
7205         simplifying CONST_VECTOR.
7206
7207 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
7208
7209         * tree-ssa-live.c (live_worklist): Take a stack allocated on
7210         heap as an argument.  Update uses of stack.
7211         (calculate_live_on_entry): Allocate stack on heap.
7212
7213         * tree-ssa-live.c (build_tree_conflict_graph): Allocate
7214         partition_link and tpa_nodes on heap.
7215
7216         * tree-ssa-dce.c (worklist): Change to VEC(tree,heap).
7217         (mark_stmt_necessary, propagate_necessity,
7218         mark_really_necessary_kill_operand_phis): Update uses of
7219         worklist.
7220         (tree_dce_init): Allocate worklist using VEC_alloc.
7221         (tree_dce_done): Free worklist using VEC_free.
7222
7223 2005-04-23  Mike Stump  <mrs@apple.com>
7224
7225         * config/darwin.c (machopic_indirection_name): Don't use
7226         quotes needlessly.
7227         (darwin_emit_unwind_label): Use user_label_prefix instead of
7228         "_".
7229
7230 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
7231
7232         * final.c, ipa-inline.c, varasm.c: Fix comment typos.
7233
7234 2005-04-23  Hans-Peter Nilsson  <hp@axis.com>
7235
7236         * config.gcc <cris-*>: Specify .opt files.
7237         * config/cris/cris.opt, config/cris/elf.opt, config/cris/aout.opt,
7238         config/cris/linux.opt: New files.
7239         * config/cris/aout.h (CRIS_SUBTARGET_SWITCHES)
7240         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
7241         (TARGET_ELF): Override to 0.
7242         (CRIS_SUBTARGET_HANDLE_OPTION): Override to handle -melinux and
7243         -melinux-stacksize=N.
7244         * config/cris/cris.c: (cris_handle_option): New function.
7245         (TARGET_DEFAULT_TARGET_FLAGS): Override.
7246         (TARGET_HANDLE_OPTION): Override to cris_handle_option.
7247         (cris_override_options): Use MASK_*, not TARGET_MASK_*.
7248         * config/cris/cris.h (TARGET_MASK_SVINTO, TARGET_SVINTO,
7249         (TARGET_MASK_CCINIT, TARGET_CCINIT, TARGET_MASK_PDEBUG)
7250         (TARGET_PDEBUG, TARGET_MASK_SIDE_EFFECT_PREFIXES)
7251         (TARGET_SIDE_EFFECT_PREFIXES, TARGET_MASK_EXPAND_MUL)
7252         (TARGET_EXPAND_MUL, TARGET_MASK_STACK_ALIGN, TARGET_STACK_ALIGN)
7253         (TARGET_MASK_CONST_ALIGN, TARGET_CONST_ALIGN)
7254         (TARGET_MASK_DATA_ALIGN, TARGET_DATA_ALIGN)
7255         (TARGET_MASK_PROLOGUE_EPILOGUE, TARGET_PROLOGUE_EPILOGUE)
7256         (TARGET_MASK_ETRAX4_ADD, TARGET_ETRAX4_ADD)
7257         (TARGET_MASK_ALIGN_BY_32, TARGET_ALIGN_BY_32, TARGET_MASK_ELF)
7258         (TARGET_ELF, TARGET_MASK_LINUX, TARGET_LINUX)
7259         (TARGET_MASK_AVOID_GOTPLT, TARGET_AVOID_GOTPLT)
7260         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG, TARGET_SWITCHES)
7261         (CRIS_SUBTARGET_SWITCHES, TARGET_OPTIONS)
7262         (CRIS_SUBTARGET_LONG_OPTIONS): Don't define.
7263         (TARGET_LINUX): Define 0.
7264         (TARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
7265         (CRIS_SUBTARGET_DEFAULT): Define to 0, not TARGET_MASK_ELF.
7266         (CRIS_SUBTARGET_DEFAULT): New empty default macro.
7267         * config/cris/linux.h (CRIS_SUBTARGET_SWITCHES): Don't define.
7268         (TARGET_LINUX): Override to 1.
7269         (CRIS_SUBTARGET_DEFAULT): Use MASK_*, not TARGET_MASK_*.
7270
7271 2005-04-23  Nathan Sidwell  <nathan@codesourcery.com>
7272
7273         * haifa-sched.c (schedule_block): Fix thinko in previous
7274         assertification patch.
7275
7276 2005-04-23  Richard Sandiford  <rsandifo@redhat.com>
7277
7278         * config.gcc (hppa[12]*-*-hpux10*): Add pa/pa-hpux.opt to
7279         $extra_options.  Also add pa/pa-hpux1010.opt for hpux10.[1-9]*.
7280         (hppa*64*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
7281         pa/pa-hpux.opt, pa/pa-hpux1010.opt and pa/pa64-hpux.opt to
7282         $extra_options.  Also add pa/pa-hpux1111.opt for hpux11.[1-9]*.
7283         (hppa[12]*-*-hpux11*): Add pa/pa-hpux1010.h to $tm_file.  Add
7284         pa/pa-hpux.opt to $extra_options.  Also add pa/pa-hpux1111.opt
7285         for hpux11.[1-9]*.
7286         * config/pa/pa.h (architecture_type, rtx_def, pa_arch_string, pa_arch)
7287         (pa_fixed_range_string, pa_cpu_string, pa_unix_string, target_flags)
7288         (MASK_PA_11, MASK_DISABLE_FPREGS, TARGET_DISABLE_FPREGS)
7289         (MASK_NO_SPACE_REGS, TARGET_NO_SPACE_REGS, MASK_JUMP_IN_DELAY)
7290         (TARGET_JUMP_IN_DELAY, MASK_DISABLE_INDEXING, TARGET_DISABLE_INDEXING)
7291         (MASK_PORTABLE_RUNTIME, TARGET_PORTABLE_RUNTIME, MASK_GAS, TARGET_GAS)
7292         (MASK_SOFT_FLOAT, TARGET_SOFT_FLOAT, MASK_LONG_LOAD_STORE)
7293         (TARGET_LONG_LOAD_STORE, MASK_FAST_INDIRECT_CALLS)
7294         (TARGET_FAST_INDIRECT_CALLS, MASK_BIG_SWITCH, TARGET_BIG_SWITCH)
7295         (MASK_PA_20, MASK_SIO, TARGET_SIO, MASK_GNU_LD, TARGET_GNU_LD)
7296         (MASK_LONG_CALLS, TARGET_LONG_CALLS, TARGET_PA_11, TARGET_PA_20)
7297         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS)
7298         (SUBTARGET_OPTIONS): Delete.
7299         (TARGET_PA_10): Redefine in terms of TARGET_PA_11 and TARGET_PA_20.
7300         (TARGET_SCHED_DEFAULT): Define to a PROCESSOR_* enum (PROCESSOR_8000)
7301         instead of a string.
7302         * config/pa/pa.c (pa_arch, pa_arch_string, pa_fixed_range_string)
7303         (pa_cpu_string, pa_unix_string): Delete.
7304         (pa_cpu): Initialize to TARGET_SCHED_DEFAULT.
7305         (flag_pa_unix): Initialize based on TARGET_HPUX_11_11 and
7306         TARGET_HPUX_10_10.
7307         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
7308         (pa_handle_option): New function.
7309         (override_options): Remove handling of -march=, -mfixed-range=,
7310         -mschedule= and -munix=.
7311         * config/pa/pa-hpux.h (SUBTARGET_SWITCHES): Delete.
7312         * config/pa/pa-hpux1010.h (SUBTARGET_OPTIONS): Delete.
7313         * config/pa/pa-hpux10.h (SUBTARGET_OPTIONS): Delete.
7314         * config/pa/pa-hpux1111.h (SUBTARGET_OPTIONS): Delete.
7315         * config/pa/pa-hpux11.h (SUBTARGET_OPTIONS): Delete.
7316         * config/pa/pa64-hpux.h (SUBTARGET_SWITCHES): Delete.
7317         * config/pa/pa64-start.h (TARGET_PA_11, TARGET_PA_20): #undef before
7318         redefining.
7319         * config/pa/pa.opt: New file.
7320         * config/pa/pa-hpux.opt: New file.
7321         * config/pa/pa-hpux1010.opt: New file.
7322         * config/pa/pa-hpux1111.opt: New file.
7323         * config/pa/pa64-hpux.opt: New file.
7324
7325 2005-04-22  David S. Miller  <davem@davemloft.net>
7326
7327         * rtl.h (CONST_DOUBLE): Fix comment, a CONST_DOUBLE holds an
7328         integer when it's mode is VOIDmode not DImode.
7329
7330 2005-04-22  Geoffrey Keating  <geoffk@apple.com>
7331
7332         * config/rs6000/rs6000.md (sync_add<mode>_internal,
7333         sync_addshort_internal, sync_sub<mode>_internal, sync_andsi_internal,
7334         sync_anddi_internal, sync_boolsi_internal, sync_booldi_internal,
7335         sync_boolc<mode>_internal, sync_boolc<mode>_internal2,
7336         sync_boolcc<mode>_internal, sync_lock_test_and_set<mode>): Use
7337         "bne- $-xxx" rather than local labels.
7338         (sync_lock_release<mode>): Add second operand.
7339         (lwsync): Use .long rather than a more meaningful opcode.
7340         * doc/md.texi (Standard Names): Add description of second
7341         parameter to sync_lock_test_and_set.
7342
7343 2005-04-23  Kazu Hirata  <kazu@cs.umass.edu>
7344
7345         PR tree-optimization/21088
7346         * fold-const.c (fold_unary, fold_binary, fold_ternary):
7347         Export.
7348         * tree-vrp.c (compare_values): Use fold_binary to compare
7349         pointers.  Use boolean_type_node as the type of a comparison
7350         expression being folded.
7351         * tree.h: Add prototypes for fold_unary, fold_binary,
7352         fold_ternary.
7353
7354         * tree-ssa-dom.c: Fix formatting.
7355
7356 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
7357
7358         * Makefile.in (tree-into-ssa.o): Add dependency on PARAMS_H.
7359         * lambda-code.c (perfect_nestify): Mark virtual operands in
7360         the moved statement for renaming.
7361         * params.def (PARAM_MIN_VIRTUAL_MAPPINGS): Define.
7362         (PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
7363         * params.h (MIN_VIRTUAL_MAPPINGS): Define.
7364         (VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Define.
7365         * tree-flow.h (struct var_ann_d): Update comments.
7366         (rewrite_to_new_ssa_names_bb, rewrite_to_new_ssa_names,
7367         allocate_ssa_names, find_phi_node_for, dump_tree_ssa,
7368         debug_tree_ssa, debug_def_blocks, dump_tree_ssa_stats,
7369         debug_tree_ssa_stats, rewrite_ssa_into_ssa,
7370         dump_repl_tbl, debug_repl_tbl, dump_names_replaced_by,
7371         debug_names_replaced_by): Remove declarations.
7372         (delete_update_ssa, get_current_def, set_current_def): Declare.
7373         (rewrite_into_loop_closed_ssa): Add new argument.  Update
7374         all callers.
7375         * tree-into-ssa.c: Include params.h.
7376         (old_virtual_ssa_names): Remove.  Update all users.
7377         (need_to_replace_names_p): Remove.  Update all users.
7378         (struct update_ssa_stats_d): Declare.
7379         (update_ssa_stats): New local.
7380         (dump_tree_ssa, debug_tree_ssa, debug_def_blocks,
7381         dump_tree_ssa_stats, debug_tree_ssa_stats,
7382         dump_update_ssa, debug_update_ssa,
7383         dump_names_replaced_by, debug_names_replaced_by): Declare.
7384         (get_current_def, set current_def): Make extern.
7385         (is_old_name, is_new_name): Protect against references
7386         past the end of the sets.
7387         (add_new_name_mapping): Assert that OLD and NEW are
7388         different SSA names for the same symbol.
7389         When adding a virtual mapping, update stats for virtual
7390         mapping heuristic.
7391         (insert_phi_nodes_for): If UPDATE_P is true, create the
7392         LHS of the new PHI by duplicating SSA name VAR.
7393         (insert_phi_nodes_1): Remove.  Update all users.
7394         (insert_phi_nodes): Remove second argument.  Update all
7395         users.
7396         (maybe_replace_use, maybe_replace_def): New.
7397         (rewrite_update_stmt): Call them.
7398         (mark_def_interesting): Remove calls to is_gimple_reg.
7399         (prepare_phi_args_for_update): Remove.  Update all users.
7400         (prepare_block_for_update): Only process virtual operands
7401         and GIMPLE registers in normal form.
7402         (prepare_use_sites_for): New.
7403         (prepare_names_to_update): Rename from prepare_def_sites.
7404         Call prepare_use_sites_for.
7405         (dump_update_ssa): Rename from dump_repl_tbl.
7406         Update all users.
7407         Show statistics for virtual mapping heuristic.
7408         (debug_update_ssa): Rename from debug_debug_repl_tbl.
7409         (init_update_ssa): Initialize UPDATE_SSA_STATS.
7410         (delete_update_ssa): Make extern.
7411         (mark_set_for_renaming): If the set is empty, do nothing.
7412         (release_ssa_name_after_update_ssa): Update comment.
7413         (insert_updated_phi_nodes_for): Do not remove existing
7414         PHI nodes for symbols.
7415         (switch_virtuals_to_full_rewrite_p): New.
7416         (switch_virtuals_to_full_rewrite): New.
7417         (update_ssa): Call them.
7418         Clear REWRITE_THIS_STMT and REGISTER_DEFS_IN_THIS_STMT
7419         for every statement before updating.
7420         If all the names in NEW_SSA_NAMES have been marked for
7421         removal, do nothing.
7422         Only start at the top of the CFG if there are symbols in
7423         SYMS_TO_RENAME.
7424         (ssa_rewrite_finalize_block): Remove.
7425         (ssa_register_new_def): Remove.
7426         (ssa_rewrite_stmt): Remove.
7427         (ssa_rewrite_phi_arguments): Remove.
7428         (ssa_rewrite_initialize_block): Remove.
7429         (ssa_mark_def_sites): Remove.
7430         (ssa_mark_def_sites_initialize_block): Remove.
7431         (ssa_mark_phi_uses): Remove.
7432         (rewrite_ssa_into_ssa): Remove.
7433         * tree-phinodes.c (find_phi_node_for): Remove.
7434         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
7435         Call update_ssa.
7436         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops):
7437         Remove calls to verify_dominators and
7438         verify_loop_structure.
7439         (tree_unswitch_single_loop): Call update_ssa.
7440         * tree-ssa.c (verify_ssa): Assert that need_ssa_update_p
7441         returns false.
7442         Call verify_stmts.
7443         (delete_tree_ssa): Assert that need_ssa_update_p returns
7444         false.
7445         * tree-vect-transform.c (vect_transform_loop): Call update_ssa.
7446         * tree-vectorizer.c (allocate_new_names, rename_def_op,
7447         free_new_names): Remove.  Update all users.
7448         (rename_use_op): Call get_current_def.
7449         (rename_variables_in_bb): Do not handle any real or
7450         virtual definition.
7451         (slpeel_update_phis_for_duplicate_loop): Call
7452         get_current_def and set_current_def instead of using
7453         SSA_NAME_AUX.
7454         (slpeel_update_phi_nodes_for_guard2): Reformat comments.
7455         (slpeel_can_duplicate_loop_p): Call need_ssa_update_p,
7456         ssa_names_to_replace and delete_update_ssa.
7457         * doc/invoke.texi: Document --param min-virtual-mappings
7458         and --param virtual-mappings-ratio.
7459
7460 2005-04-22  Diego Novillo  <dnovillo@redhat.com>
7461
7462         * tree-cfg.c (tree_duplicate_bb): Call create_new_def_for
7463         for newly created PHI nodes.
7464         Call create_new_def_for for every new V_MAY_DEF and
7465         V_MUST_DEF on the copied statement.
7466         (struct ssa_name_map_entry): Remove.
7467         (ssa_name_map_entry_hash): Remove.
7468         (ssa_name_map_entry_eq): Remove.
7469         (allocate_ssa_names): Remove.
7470         (rewrite_to_new_ssa_names_def): Remove.
7471         (rewrite_to_new_ssa_names_use): Remove.
7472         (rewrite_to_new_ssa_names_bb): Remove.
7473         (rewrite_to_new_ssa_names): Remove.
7474         (tree_duplicate_sese_region): Remove variables ver,
7475         definitions, phi, ssa_name_map and bi.
7476         Call need_ssa_update_p instead of any_marked_for_rewrite_p.
7477         Call update_ssa.
7478         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
7479         update_ssa instead of rewrite_ssa_into_ssa.
7480         * tree-ssa-loop-manip.c (add_exit_phis_edge): Call
7481         create_new_def_for.
7482         (find_uses_to_rename_use): Add argument 'need_phis'.
7483         (find_uses_to_rename_stmt): Do not scan virtual operands.
7484         (find_uses_to_rename): Only scan PHI nodes for
7485         non-virtual names.
7486         (rewrite_into_loop_closed_ssa): Call update_ssa.
7487         (check_loop_closed_ssa_use): Ignore virtual operands.
7488         (check_loop_closed_ssa_stmt): Likewise.
7489         (verify_loop_closed_ssa): Do nothing if CURRENT_LOOPS is
7490         NULL.
7491         (rename_variables, set_phi_def_stmts): Remove.
7492         (tree_duplicate_loop_to_header_edge): Reformat comment.
7493         Remove variables BB, I and DEFINITIONS.
7494         Call need_ssa_update_p.
7495         Call update_ssa.
7496         (lv_adjust_loop_header_phi): Reformat comment.
7497         * tree-ssanames.c (ssa_names_to_rewrite): Remove.
7498         (marked_for_rewrite_p, any_marked_for_rewrite_p,
7499         mark_for_rewrite, unmark_all_for_rewrite,
7500         marked_ssa_names): Remove.  Update all users.
7501         (release_ssa_name): If VAR has been registered for SSA
7502         updating, do nothing.
7503         * tree-vrp.c (new_ssa_names, old_ssa_names): Remove.
7504         (build_assert_expr_for): Call register_new_name_mapping.
7505         (insert_range_assertions): Update call to update_ssa.
7506         * tree.h (mark_for_rewrite, unmark_all_for_rewrite,
7507         marked_for_rewrite_p, any_marked_for_rewrite_p,
7508         marked_ssa_names): Remove.
7509
7510 2005-04-22  Jeff Law  <law@redhat.com>
7511
7512         * tree-ssa-dom.c (block_defs_stack): Remove, no longer needed.
7513         (restore_currdefs_to_original_value): Likewise.
7514         (register_definitions_for_stmt): Likewise.
7515         (tree_ssa_dominator_optimize): No longer initialize CURRENT_DEF
7516         for each variable.  Do not allocate/free block_defs_stack either.
7517         Do not iterate if we just thread jumps.  Only iterate if the
7518         tree_cleanup_cfg does useful work (temporary).
7519         (dom_opt_initialize_block): No longer push a marker on
7520         BLOCK_DEFS_STACK.
7521         (dom_opt_finalize_block): Removal call to restore currdefs.
7522         Relax restrictions for recording edge equivalences.
7523         (record_equivalences_from_phis): No longer need to track
7524         CURRENT_DEF.
7525         (optimize_stmt): Similarly.
7526         (thread_across_edge): Simplify by removing the requirement that
7527         statements in the block we are threading through must be nops.
7528         (initialize_hash_element): Handle GOTO_EXPR.
7529
7530 2005-04-22  David S. Miller  <davem@davemloft.net>
7531
7532         * sched-vis.c (print_value): Use CONST_DOUBLE_LOW and
7533         CONST_DOUBLE_HIGH.
7534         * config/sparc/sparc.c (sparc_rtx_costs): Likewise, and
7535         fix check on CONST_DOUBLE mode.  It should be VOIDmode
7536         when it is representing an integer.
7537
7538 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
7539
7540         * builtins.c (gimplify_va_arg_expr): Reword comments to avoid
7541         'abort'. Use gcc_assert and gcc_unreachable as appropriate.
7542         * c-format.c (get_constant, decode_format_attr, get_flag_spec,
7543         find_char_info_specifier_index,
7544         find_length_info_modifier_index): Likewise.
7545         * c-typeck.c (composite_type, pop_init_level): Likewise.
7546         * combine.c (cant_combine_insn_p, try_combine): Likewise.
7547         * cse.c (cse_insn): Likewise
7548         * dominance.c (calc_dfs_tree): Likewise
7549         dwarf2out.c (loc_descriptor_from_tree_1,
7550         add_abstract_origin_attribute, force_decl_die,
7551         force_type_die): Likewise
7552         emit-rtl.c (operand_subword_force): Likewise
7553         explow.c (hard_function_value): Likewise
7554         expmed.c (store_bit_field, expand_divmod,
7555         emit_store_flag_force): Likewise
7556         expr.c (emit_move_multi_word, store_expr,
7557         expand_expr_real_1): Likewise
7558         final.c (this_is_asm_operands, shorten_branches, final_scan_insn,
7559         output_operand): Likewise
7560         flow.c (recompute_reg_usage): Likewise
7561         * function.c (assign_stack_temp_for_type, assign_temp,
7562         handle_epilogue_set): Likewise
7563         * genextract.c (main): Likewise
7564         * gimplify.c (mostly_copy_tree_r, gimplify_return_expr,
7565         gimplify_modify_expr_rhs, gimplify_expr): Likewise
7566         * haifa-sched.c (ready_lastpos, ready_remove_first, ready_element,
7567         ready_remove, rm_line_notes, rm_other_notes,
7568         schedule_block): Likewise
7569         mips-tfile.c (copy_object, out_of_bounds): Likewise
7570
7571 2005-04-22 David Edelsohn  <edelsohn@gnu.org>
7572
7573         PR target/20813
7574         * config/rs6000/default64.h (TARGET_DEFAULT): Add MASK_PPC_GFXOPT.
7575         * config/rs6000/rs6000.c (processor_target_table): Rename rs64a to
7576         rs64.  Add MASK_PPC_GFXOPT to powerpc64 and rs64.
7577         (rs6000_init_libfuncs): Set TFmode optabs to xlq names if
7578         TARGET_XL_COMPAT.
7579         * doc/invoke.texi (PowerPC options): Change rs64a to rs64.
7580
7581 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
7582
7583         * lambda-code.c: Define VEC(int,heap), VEC(lambda_loop,heap).
7584         (gcc_tree_to_linear_expression): Convert to heap allocated
7585         vectors.
7586         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
7587         lbv_to_gcc_expression, lle_to_gcc_expression,
7588         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
7589         perfect_nestify): Likewise.
7590         lambda.h (gcc_loopnest_to_lambda_loopnest,
7591         lambda_loopnest_to_gcc_loopnest): Likewise.
7592         tree-loop-linear.c (linear_transform_loops): Likewise.
7593
7594 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
7595
7596         * config/sparc/predicates.md (arith_double_operand): Use
7597         trunc_int_for_mode if HOST_BITS_PER_WIDE_INT >=64.
7598         * config/sparc/sparc.md (movqi, movhi, movsi, movqi): Use gen_int_mode.
7599         (DImode, DFmode constant splitters): Likewise.  Remove code for
7600         TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT < 64.
7601         (logical constant splitters): Use const_int_operand predicate.
7602         (lshrsi3_extend): Remove code for TARGET_ARCH64 &&
7603         HOST_BITS_PER_WIDE_INT < 64.
7604
7605 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
7606
7607         * config/pa/pa.c (legitimize_pic_address): Use gcc_assert and
7608         gcc_unreachable as appropriate.
7609         (force_mode, emit_move_sequence, singlemove_string,
7610         output_move_double, output_fp_move_double, find_addr_reg,
7611         output_block_move, output_block_clear, output_and,
7612         output_64bit_and, output_ior, output_64bit_ior, store_reg_modify,
7613         pa_adjust_cost, pa_issue_rate, print_operand,
7614         output_global_address, output_arg_descriptor, output_cbranch,
7615         output_lbranch, output_bb, output_bvb, output_dbra, output_movb,
7616         output_call): Likewise.
7617         * config/pa/pa.md (call, call_value, sibcall, sibcall_value,
7618         prefetch, prefetch_cc, prefetch_nocc): Likewise.
7619
7620 2005-04-22  Zdenek Dvorak  <dvorakz@suse.cz>
7621
7622         * Makefile.in (LIBGCOV): Add _gcov_interval_profiler,
7623         _gcov_pow2_profiler and _gcov_one_value_profiler.
7624         (tree-profile.o): Add GGC_H and gt-tree-profile.h dependency.
7625         (GTFILES): Add $(srcdir)/tree-profile.c.
7626         * gcov-io.h (__gcov_interval_profiler, __gcov_pow2_profiler,
7627         __gcov_one_value_profiler): Declare.
7628         * gimplify.c (force_gimple_operand): Check whether the statements
7629         should be produced in ssa form.
7630         (force_gimple_operand_bsi): New function.
7631         * libgcov.c (__gcov_interval_profiler, __gcov_pow2_profiler,
7632         __gcov_one_value_profiler): New functions.
7633         * rtl-profile.c (rtl_gen_pow2_profiler): Only measure whether
7634         the profiled value is a power of two or not.
7635         * tree-cfg.c (tree_block_ends_with_condjump_p): Handle empty blocks.
7636         * tree-flow.h (in_ssa_p): Declare.
7637         (force_gimple_operand_bsi): Declare.
7638         * tree-into-ssa.c (in_ssa_p): New variable.
7639         (rewrite_into_ssa): Set in_ssa_p.
7640         * tree-outof-ssa.c (rewrite_out_of_ssa): Set in_ssa_p.
7641         * tree-profile.c: Include ggc.h and gt-tree-profile.h.
7642         (gcov_type_node, tree_interval_profiler_fn, tree_pow2_profiler_fn,
7643         tree_one_value_profiler_fn): New variables.
7644         (tree_init_edge_profiler): Initialize the profiler function decls.
7645         (tree_gen_edge_profiler): Use global gcov_type_node.
7646         (prepare_instrumented_value): New function.
7647         (tree_gen_interval_profiler, tree_gen_interval_profiler,
7648         tree_gen_one_value_profiler): Call the library functions instead of
7649         creating instrumentation code.
7650         * tree.c (build_fn_decl): New function.
7651         * tree.h (build_fn_decl): Declare.
7652         * value-prof.c (rtl_divmod_values_to_profile,
7653         rtl_find_values_to_profile, rtl_mod_pow2_value_transform,
7654         tree_mod_pow2_value_transform, tree_find_values_to_profile):
7655         Do not handle may_be_other and precise values of exponents at pow2
7656         profiler.
7657         (tree_mod_subtract_transform): Reflect that value field of
7658         histogram has changed meaning.
7659         (tree_divmod_values_to_profile): Record the values correctly.
7660         (tree_values_to_profile): Update comment.
7661         * value-prof.h (struct histogram_value_t): Remove pow2 data.
7662
7663 2005-04-22  Joseph S. Myers  <joseph@codesourcery.com>
7664
7665         * varasm.c (do_assemble_alias): Return early if TREE_ASM_WRITTEN
7666         (decl).
7667
7668 2005-04-22  Nathan Sidwell  <nathan@codesourcery.com>
7669
7670         * config/i386/i386.md (length_immediate): Use gcc_assert or
7671         gcc_unreachable, as appropriate.
7672         (*movsi_1, *movqi_1, reload_outqi, *movdi_1_rex64, *pushsf,
7673         *pushsf_rex64, *truncxfsf2_mixed, *truncxfsf2_i387,
7674         *truncxfdf2_mixed, *truncxfdf2_i387, *adddi_1_rex64,
7675         *adddi_2_rex64, *adddi_3_rex64, *adddi_4_rex64, *adddi_5_rex64,
7676         *addsi_1, addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
7677         *addsi_3_zext, *addsi_4, *addsi_5, *addhi_1_lea, *addhi_1,
7678         *addhi_2, *addhi_3, *addhi_4, *addhi_5, *addqi_1_lea, *addqi_1,
7679         *addqi_1_slp, *addqi_2, *addqi_3, *addqi_4, *addqi_5, addqi_ext_1,
7680         *addqi_ext_1_rex64, *anddi_1_rex64, *andsi_1, *andhi_1,
7681         *ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashlsi3_1, *ashlsi3_1_zext,
7682         *ashlsi3_cmp, *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1,
7683         *ashlhi3_cmp, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
7684         pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64,
7685         pro_epilogue_adjust_stack_rex64_2, prefetch, *prefetch_sse,
7686         *prefetch_sse_rex): Likewise.
7687         * config/i386/predicates.md (x86_64_immediate_operand,
7688         x86_64_zext_immediate_operand, symbolic_operand,
7689         no_seg_address_operand, aligned_operand,
7690         memory_displacement_operand): Likewise.
7691         * config/i386/sse.md (*mov<mode>_internal,
7692         *movv2df_internal): Likewise.
7693
7694 2005-04-22  Jan Hubicka  <jh@suse.cz>
7695
7696         * Makefile.in (ipa.o, ipa-inline.o): New files.
7697         * cgraph.h (cgraph_remove_unreachable_nodes, cgraph_postorder,
7698         cgraph_decide_inlining_incrementally, cgraph_clone_inlined_nodes,
7699         cgraph_mark_inline_edge, cgraph_default_inline_p): Declare.
7700         * cgraphunit.c (cgraph_default_inline_p,
7701         cgraph_decide_inlining_incrementally,  ncalls_inlined,
7702         nfunctions_inlined, initial_insns, overall_insns,
7703         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
7704         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
7705         cgraph_mark_inline, cgraph_check_inline_limits,
7706         cgraph_default_inline_p, cgraph_recursive_inlining_p,
7707         update_callee_keys, lookup_recursive_calls,
7708         cgraph_decide_recursive_inlining, cgraph_set_inline_failed,
7709         cgraph_decide_inlining_of_small_functions, cgraph_decide_inlining,
7710         cgraph_decide_inlining_incrementally, cgraph_gate_inlining,
7711         pass_ipa_inline): Move to ipa-inline.c
7712         (cgraph_postorder, cgraph_remove_unreachable_nodes): Move to ipa.c
7713         * ipa.c: New file.
7714         * ipa-inline.c: New file.
7715
7716 2005-04-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
7717
7718         * doc/invoke.texi (SPARC options): Document that -mapp-regs
7719         is turned off by default on Solaris.
7720
7721 2005-04-21  Roger Sayle  <roger@eyesopen.com>
7722
7723         * c-common.h (objc_build_method_signature): Update prototype.
7724         * stub-objc.c (objc_build_method_signature): Update the stub
7725         implementation to accept and ignore additional parameter.
7726         * c-parser.c (c_parser_objc_method_decl): Reorgnize to pass
7727         the value of ellipsis to objc_build_method_signature instead
7728         of setting TREE_OVERFLOW on the parms TREE_LIST node.
7729
7730 2005-04-21  Geoffrey Keating  <geoffk@apple.com>
7731
7732         * config/rs6000/rs6000-protos.h (rs6000_emit_sync): New.
7733         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Use
7734         gen_rtx_* not gen_rtx_fmt_*.
7735         (rs6000_emit_vector_select): Likewise.
7736         (rs6000_emit_sync): New.
7737         * config/rs6000/rs6000.md (GPR, INT, INT1): New mode macros.
7738         (larx, stcx, cmp): New mode substitutions.
7739         (UNSPEC_SYNC, UNSPEC_SYNC_OP, UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC,
7740         UNSPEC_ISYNC): New constants.
7741         (rlwinm): Give name.
7742         (memory_barrier, isync, lwsync): New insns.
7743         (sync_compare_and_swap<mode>, sync_lock_test_and_set<mode>): New insn.
7744         (sync_lock_release<mode>): New expander.
7745         (sync_add<mode>, sync_sub<mode>, sync_ior<mode>, sync_and<mode>,
7746         sync_xor<mode>, sync_nand<mode>, sync_old_add<mode>,
7747         sync_old_sub<mode>, sync_old_ior<mode>, sync_old_and<mode>,
7748         sync_old_xor<mode>, sync_old_nand<mode>, sync_new_add<mode>,
7749         sync_new_sub<mode>, sync_new_ior<mode>, sync_new_and<mode>,
7750         sync_new_xor<mode>, sync_new_nand<mode>): New expanders.
7751         (sync_add<mode>_internal, sync_addshort_internal,
7752         sync_sub<mode>_internal, sync_andsi_internal, sync_anddi_internal,
7753         sync_boolsi_internal, sync_booldi_internal, sync_boolc<mode>_internal,
7754         sync_boolc<mode>_internal2, sync_boolcc<mode>_internal): New insns.
7755
7756         * doc/md.texi (Standard Names): sync_compare_and_swap's operand 0
7757         is the memory before, not after, the operation.  Clarify
7758         barrier requirements.
7759
7760 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
7761
7762         * cfghooks.h (struct cfg_hooks): Reword comments to avoid 'abort'.
7763         * lambda.h (lambda_vector_min_nz): Likewise.
7764         * langhooks.h (struct lang_hooks_for_types,
7765         struct lang_hooks): Likewise.
7766         * output.h (assemble_integer, this_is_asm_operands): Likewise.
7767         * tree.h: Likewise.
7768         * vec.h: Likewise.
7769         * tree-flow-inline.h (relink_imm_use): Use gcc_assert.
7770
7771         * optabs.c (prepare_cmp_insn, emit_cmp_and_jump_insns): Reword
7772         comments to avoid 'abort'.  Use gcc_assert as necessary.
7773         * opts.c (common_handle_option): Likewise.
7774         * pretty-print.c (pp_base_format_text): Likewise.
7775         * print-rtl.c (print_rtx): Likewise.
7776         * read-rtl.c (read_rtx_filename, read_rtx_1): Likewise.
7777         * regmove.c (try_auto_increment): Likewise.
7778         * reload.c (find_valid_class, find_reloads_toplev,
7779         find_equiv_reg): Likewise.
7780         * reload1.c (reload, forget_old_reloads_1, function_invariant_p,
7781         merge_assigned_reloads): Likewise.
7782         * tree-inline.c (inline_forbidden_p_1,
7783         estimate_num_insns_1): Likewise.
7784         * tree-optimize.c (execute_todo): Likewise.
7785         * tree-outof-ssa.c (eliminate_phi): Likewise.
7786         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
7787         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Likewise.
7788         * tree-ssa-operands.c (parse_ssa_operands,
7789         get_indirect_ref_operands, create_ssa_artficial_load_stmt): Likewise.
7790         * tree-ssa-pre.c (find_or_generate_expression): Likewise.
7791         * tree-ssanames.c (release_ssa_name): Likewise.
7792         * tree.c (int_bit_position, int_byte_position, tree_low_cst,
7793         walk_tree): Likewise.
7794
7795         * tree-ssa-operands.c (verify_abort): Fold into ..
7796         (verify_imm_links): ... here.
7797
7798 2005-04-21  Richard Henderson  <rth@redhat.com>
7799
7800         * config/alpha/sync.md (sync_new_nand<I48MODE>): Fix constraints
7801         on non-memory operand for previous inversion.
7802
7803 2005-04-21  Devang Patel  <dpatel@apple.com>
7804
7805         PR optimization/20994
7806         * tree-if-conv.c (find_phi_replacement_condition): Avoid generating
7807         x = !(a == b) : p , q;.
7808         (pass_if_conversion): Verify stmts and flow.
7809
7810 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
7811
7812         * optabs.c (gen_conditional_trap): Restore #define.
7813
7814         * alias.c (true_dependence): Remove 'abort' from comments. Use
7815         gcc_assert and gcc_unreachable as appropriate.
7816         (canon_true_dependence): Likewise.
7817         * bb-reorder.c (connect_traces): Likewise.
7818         * c-common.c (c_add_case_label): Likewise.
7819         * c-decl.c (finish_function): Likewise.
7820         * caller-save.c (insert_restore, insert_save): Likewise.
7821         * cfg.c (update_bb_profile_for_threading): Likewise.
7822         * cfganal.c (flow_active_insn_p): Likewise.
7823         * cfgexpand.c (add_reg_br_prob_note): Likewise.
7824         * cfgrtl.c (rtl_redirect_edge_and_branch_force, rtl_split_edge,
7825         cfg_layout_merge_blocks): Likewise.
7826         * ifcvt.c (cond_exec_process_insns, merge_if_block,
7827         find_if_block): Likewise.
7828         * integrate.c (allocate_initial_values): Likewise.
7829         * jump.c (reverse_condition, reverse_condition_maybe_unordered,
7830         swap_condition, unsigned_condition, signed_condition,
7831         mark_jump_label, invert_jump_1, rtx_renumbered_equal_p,
7832         reg_or_subregno): Likewise.
7833         * lambda-code.c (lambda_compute_auxillary_space,
7834         lambda_transform_legal_p): Likewise.
7835         * lambda-mat.c (lambda_matrix_inverse_hard): Likewise.
7836         * langhooks.c (lhd_set_decl_assembler_name, lhd_type_promotes_to,
7837         lhd_incomplete_type_error, lhd_expand_expr,
7838         lhd_types_compatible_p, lhd_tree_size): Likewise.
7839         * lcm.c (create_pre_exit, optimize_mode_switching): Likewise.
7840         * local-alloc.c (update_equiv_regs): Likewise.
7841         * loop-unroll.c (peel_loop_completely
7842         unroll_loop_constant_iterations, unroll_loop_runtime_iterations,
7843         peel_loop_simple, unroll_loop_stupid,
7844         analyze_iv_to_split_insn): Likewise.
7845         * loop.c (gen_prefetch, find_and_verify_loops,
7846         basic_induction_var): Likewise.
7847         * modulo-sched.c (normalize_sched_times, check_nodes_order): Likewise.
7848         * value-prof.c (tree_find_values_to_profile): Likewise.
7849         * varasm.c (named_section, default_assemble_integer,
7850         decode_addr_const): Likewise.
7851
7852 2005-04-21 Alan Modra  <amodra@bigpond.net.au>
7853            Fariborz Jahanian <fjahanian@apple.com>
7854
7855         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Fix size of
7856         portion of argument passed in fpr.
7857         * expr.c (emit_push_insn): Fix computation of 'offset' used to
7858         decide on partial argument save on stack.
7859
7860 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
7861
7862         * config/sparc/predicates.md, config/sparc/sparc.md: Fix
7863         comment typos.
7864
7865 2005-04-21  Jan Hubicka  <jh@suse.cz>
7866
7867         * cgraphunit.c: Include tree-pass.h
7868         (cgraph_decide_recursive_inlining,
7869         cgraph_decide_inlining_of_small_function, cgraph_set_inline_failed,
7870         cgraph_decide_inlining): Dump goes to dump_file.
7871         (cgraph_optimize): Call ipa passes instead of inliner.
7872         (cgraph_gate_inlining, pass_ipa_inline): New.
7873         * tree-optimize.c (all_ipa_passes): New static variable.
7874         (register_one_dump_file): Dead with IPA passes.
7875         (register_dump_files): Likewise.
7876         (init_tree_optimization_passes): Initialize IPA passes.
7877         (execute_todo): Do cgraph dump when asked to, do not dump function body
7878         for IPA pass.
7879         * tree-pass.h (TODO_dump_cgraph): New macro.
7880         (ipa_passes): Declare.
7881         * Makefile.in (cgraphunit.o): Add dependency on cgraphunit.h
7882
7883 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
7884
7885         * config/i386/i386.c (type_natural_mode): Use gcc_unreachable and
7886         gcc_assert instead of abort.
7887         (classify_argument, examine_argument, construct_container,
7888         contains_128bit_aligned_vector_p, ix86_check_movabs,
7889         standard_80387_constant_opcode, standard_80387_constant_rtx,
7890         ix86_initial_elimination_offset, ix86_compute_frame_layout,
7891         pro_epilogue_adjust_stack, ix86_expand_epilogue,
7892         ix86_address_cost, legitimate_address_p, legitimize_pic_address,
7893         legitimize_tls_address, output_pic_addr_const,
7894         i386_output_dwarf_dtprel, put_condition_code, print_reg,
7895         get_some_local_dynamic_name, print_operand, print_operand_address,
7896         output_387_binary_op, emit_i387_cw_initialization,
7897         output_fix_trunc, output_fp_compare, ix86_output_addr_vec_elt,
7898         ix86_expand_clear, ix86_expand_binary_operator,
7899         ix86_expand_unary_operator, ix86_match_ccmode, ix86_cc_mode,
7900         ix86_cc_modes_compatible, ix86_fp_comparison_codes,
7901         ix86_fp_comparison_arithmetics_cost, ix86_expand_fp_compare,
7902         ix86_expand_branch, ix86_expand_setcc,
7903         ix86_expand_carry_flag_compare, ix86_expand_fp_movcc,
7904         ix86_expand_int_addcc, ix86_split_to_parts, ix86_split_long_move,
7905         ix86_expand_movmem, ix86_expand_call, assign_386_stack_local,
7906         memory_address_length, ix86_attr_length_immediate_default,
7907         ix86_attr_length_address_default, ix86_agi_dependant,
7908         x86_initialize_trampoline, ix86_init_mmx_sse_builtins,
7909         ix86_expand_binop_builtin, ix86_force_to_memory,
7910         ix86_secondary_memory_needed, ix86_avoid_jump_misspredicts,
7911         x86_emit_floatuns): Likewise.
7912         * config/i386/netware.c (gen_regparm_prefix,
7913         i386_nlm_strip_name_encoding): Likewise.
7914         * config/i386/winnt.c (i386_pe_mark_dllexport): Likewise.
7915
7916 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
7917
7918         * optabs.c (gen_condiational_trap): Remove #define.
7919         (add_equal_note): Assertify. Remove explicit indirection from
7920         call via function pointer.
7921         (expand_ternary_op, expand_simple_binop, expand_binop,
7922         expand_twoval_unop, expand_twoval_binop,
7923         expand_twoval_binop_libfunc, expand_simple_unop expand_unop,
7924         emit_unop_insn,  emit_no_conflict_block,  prepare_cmp_insn,
7925         prepare_operand emit_cmp_and_jump_insn_1, emit_cmp_and_jump_insns,
7926         prepare_float_lib_cmp, emit_conditional_move,
7927         emit_conditional_add, gen_add2_insn, gen_add3_insn,
7928         have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn,
7929         expand_float, expand_fix, debug_optab_libfuncs, gen_cond_trap,
7930         vector_compare_rtx, expand_vec_cond_expr): Likewise.
7931
7932 2005-04-21  Nathan Sidwell  <nathan@codesourcery.com>
7933
7934         * vec.h: Update API to separate allocation mechanism from type.
7935         (VEC_safe_grow): New.
7936         * vec.c (calculate_allocation): New.
7937         (vec_gc_o_reserve, vec_heap_o_reserve): Adjust.
7938         (vec_gc_free, vec_heap_free): Remove.
7939         * gengtype-lex.l (DEF_VEC_): Process mult-argument macros.  Adjust.
7940         (VEC): Likewise.
7941         (mangle_macro_name): New.
7942         (struct macro_def): New.
7943         (struct macro): Add multiple argument values.
7944         (macro_expans_end): New.
7945         (push_macro_expansion):  Chain on new macro. Process multiple
7946         args, create follow on expansion. Return follow on argument.
7947         (macro_input): Deal with multiple arguments.
7948
7949         * tree.h: Define VEC(tree,heap) and VEC(tree,gc).
7950         (struct tree_binfo): Adjust.
7951         * basic-block.h: Define VEC(edge,gc).
7952         (struct edge_def): Adjust.
7953         (struct basic_block_def, struct edge_iterator): Likewise.
7954         (ei_container, ei_start_1, ei_last_1): Likewise.
7955         * cfg.c (connect_src, connect_dest): Likewise.
7956         * cfgrtl.c (force_nonfallthru_and_redirect)
7957         * dbxout.c (dbxout_type)
7958         * dwarf2out.c (gen_member_die)
7959         * lambda-code.c: Define VEC(int,gc), VEC(lambda_loop,gc).
7960         (gcc_tree_to_linear_expression): Adjust.
7961         (gcc_loop_to_lambda_loop, gcc_loopnest_to_lambda_loopnest,
7962         lbv_to_gcc_expression, lle_to_gcc_expression,
7963         lambda_loopnest_to_gcc_loopnest, can_convert_to_perfect_nest,
7964         perfect_nestify): Likewise.
7965         * lambda.h (gcc_loopnest_to_lambda_loopnest,
7966         lambda_loopnest_to_gcc_loopnest): Adjust prototypes.
7967         * profile.c (instrument_values): Adjust.
7968         * tree-cfg.c (modified_noreturn_calls): Adjust.
7969         (remove_fallthru_edge): Likewise.
7970         * tree-dump.c (dequeue_and_dump): Adjust.
7971         * tree-flow-inline.h (mark_stmt_modified): Adjust.
7972         * tree-flow.h (modified_noreturn_calls): Adjust.
7973         (tree_on_heap): Remove. (yay!)
7974         (register_new_def): Adjust.
7975         * tree-into-ssa.c: Define VEC(int,heap).
7976         (block_defs_stack): Adjust.
7977         (find_idf, insert_phi_nodes, register_new_def,
7978         rewrite_initialize_block, rewrite_finalize_block,
7979         register_new_update_single, rewrite_update_init_block,
7980         rewrite_update_fini_block, rewrite_blocks,
7981         ssa_rewrite_finalize_block, ssa_register_new_def,
7982         ssa_rewrite_initialize_block, rewrite_ssa_into_ssa): Likewise.
7983         * tree-loop-linear.c (linear_transform_loops): Adjust.
7984         * tree-ssa-alias.c: Define VEC(fieldoff_t,heap).
7985         (push_fields_onto_fieldstack, create_overlap_variables_for): Adjust.
7986         * tree-ssa-dom.c (avail_exprs_stack, block_defs_stack,
7987         stmts_to_rescan, const_and_copies_stack, nonzero_vars_stack,
7988         vrp_variables_stack): Adjust declarations.
7989         (tree_ssa_dominator_optimize): Adjust.
7990         (dom_opt_initialize_block, remove_local_expressions_from_table,
7991         restore_nonzero_vars_to_original_value,
7992         restore_vars_to_original_value,
7993         restore_currdefs_to_original_value, dom_opt_finalize_block,
7994         record_var_is_nonzero, record_cond, record_const_or_copy_1,
7995         optimize_stmt, update_rhs_and_lookup_avail_expr,
7996         lookup_avail_expr, record_range): Likewise.
7997         * tree-ssa-pre.c: Define VEC(basic_block,heap).
7998         (compute_antic_aux): Adjust.
7999         (inserted_exprs, create_expression_by_pieces,
8000         insert_into_preds_of_block, eliminate, mark_operand_necessary,
8001         remove_dead_inserted_code, fini_pre): Likewise.
8002         * tree-ssa-propagate.c (interesting_ssa_edges): Adjust.
8003         (varying_ssa_edges, add_ssa_edge, process_ssa_edge_worklist.
8004         ssa_prop_init): Likewise.
8005         * tree-ssa.c: Define VEC(bitmap,heap).
8006         (verify_name_tags): Adjust.
8007         * value-prof.c (rtl_divmod_values_to_profile): Adjust.
8008         (insn_prefetch_values_to_profile, rtl_find_values_to_profile,
8009         tree_divmod_values_to_profile, tree_find_values_to_profile,
8010         value_profile_transformations): Likewise.
8011         * value-prof.h: Define VEC(histogram_value,heap).
8012         * varasm.c: Remove alias_pair pointer typedef, define
8013         VEC(alias_pair,gc).
8014         (finish_aliases_1, finish_aliases_2, assemble_alias): Adjust.
8015
8016         * config/pa/pa.c (typedef extern_symbol): Typedef the structure,
8017         not a pointer to it.  Create an object vector.
8018         (extern_symbols): Turn into an object vector.
8019         (pa_hpux_asm_output_external, pa_hpux_file_end): Adjust.
8020
8021 2005-04-21  Sebastian Pop  <pop@cri.ensmp.fr>
8022
8023         PR/20742
8024         * Makefile.in (tree-chrec.o): Depend on params.h.
8025         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): New parameter with
8026         default value 20.
8027         * tree-chrec.c: Depend on params.h.  Replace build with buildN,
8028         and fold build with fold_buildN.
8029         (chrec_fold_plus_1): Fail with a chrec_don_know when the size of
8030         the expression exceeds PARAM_SCEV_MAX_EXPR_SIZE.
8031         (tree_contains_chrecs): Compute an estimation of the size of the
8032         given expression.
8033         * tree-chrec.h (tree_contains_chrecs): Modify its declaration.
8034         (tree_does_not_contain_chrecs): Update the use of tree_contains_chrecs.
8035         * tree-scalar-evolution.c (simple_iv): Ditto.
8036         * doc/invoke.texi (scev-max-expr-size): Documented.
8037
8038 2005-04-21  Richard Sandiford  <rsandifo@redhat.com>
8039
8040         * config.gcc (*-*-darwin*): Add darwin.opt to $extra_options.
8041         (i[34567]86-pc-msdosdjgpp*): Likewise i386/djgpp.opt.
8042         (i[34567]86-*-lynxos*, powerpc-*-lynxos*): Likewise lynx.opt.
8043         (i[34567]86-*-sco3.2v5*): Likewise i386/sco5.opt.
8044         (i[34567]86-*-pe, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
8045         (i[34567]86-*-uwin*): Likewise i386/cygming.opt.
8046         * config/darwin.h (darwin_one_byte_bool, darwin_fix_and_continue)
8047         (darwin_fix_and_continue_switch, SUBTARGET_OPTIONS): Delete.
8048         * config/darwin.c (darwin_one_byte_bool, darwin_fix_and_continue)
8049         (darwin_fix_and_continue_switch): Delete.
8050         * config/lynx.h (SUBTARGET_OS_LYNX_SWITCHES): Delete.
8051         (SUBTARGET_SWITCHES): Delete.
8052         * config/i386/i386.h (target_flags, MASK_80387, MASK_RTD)
8053         (MASK_ALIGN_DOUBLE, MASK_SVR3_SHLIB, MASK_IEEE_FP, MASK_FLOAT_RETURNS)
8054         (MASK_NO_FANCY_MATH_387, MASK_OMIT_LEAF_FRAME_POINTER)
8055         (MASK_STACK_PROBE, MASK_NO_ALIGN_STROPS, MASK_INLINE_ALL_STROPS)
8056         (MASK_NO_PUSH_ARGS, MASK_ACCUMULATE_OUTGOING_ARGS, MASK_MMX)
8057         (MASK_SSE, MASK_SSE2, MASK_SSE3, MASK_3DNOW, MASK_3DNOW_A)
8058         (MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT)
8059         (MASK_TLS_DIRECT_SEG_REFS, MASK_NO_RED_ZONE, TARGET_80387)
8060         (TARGET_RTD, TARGET_ALIGN_DOUBLE, TARGET_PUSH_ARGS)
8061         (TARGET_ACCUMULATE_OUTGOING_ARGS, TARGET_SVR3_SHLIB, TARGET_IEEE_FP)
8062         (TARGET_128BIT_LONG_DOUBLE, TARGET_NO_FANCY_MATH_387)
8063         (TARGET_USE_FANCY_MATH_387, TARGET_OMIT_LEAF_FRAME_POINTER)
8064         (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Delete.
8065         (TARGET_FLOAT_RETURNS_IN_80387): Make an alias of TARGET_FLOAT_RETURNS.
8066         (TARGET_64BIT): Undef before redefining.
8067         (TARGET_TLS_DIRECT_SEG_REFS, TARGET_STACK_PROBE)
8068         (TARGET_ALIGN_STRINGOPS, TARGET_INLINE_ALL_STRINGOPS, TARGET_SSE)
8069         (TARGET_SSE2, TARGET_SSE3, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A)
8070         (TARGET_RED_ZONE, TARGET_USE_MS_BITFIELD_LAYOUT, TARGET_SWITCHES)
8071         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS)
8072         (ix86_fpmath_string, ix86_tls_dialect_string, ix86_cmodel_string)
8073         (ix86_asm_string, ix86_regparm, ix86_regparm_string)
8074         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
8075         (ix86_debug_arg_string, ix86_debug_addr_string)
8076         (ix86_align_loops_string, ix86_align_jumps_string)
8077         (ix86_align_funcs_string): Delete.
8078         * config/i386/cygming.h (MASK_NOP_FUN_DLLIMPORT)
8079         (TARGET_NOP_FUN_DLLIMPORT, SUBTARGET_SWITCHES): Delete.
8080         * config/i386/djgpp.h (MASK_BNU210, SUBTARGET_SWITCHES): Delete.
8081         (SUBTARGET_OVERRIDE_OPTIONS): Check TARGET_BNU210.
8082         * config/i386/lynx.h (SUBTARGET_SWITCHES): Delete.
8083         * config/i386/sco5.h (MASK_COFF, TARGET_ELF)
8084         (SUBTARGET_SWITCHES): Delete.
8085         * config/i386/i386.c (ix86_debug_arg_string): Delete.
8086         (ix86_debug_addr_string): Delete.
8087         (ix86_cmodel_string, ix86_asm_string, ix86_tls_dialect_string)
8088         (ix86_fpmath_string, ix86_regparm_string, ix86_regparm)
8089         (ix86_align_loops_string, ix86_align_jumps_string)
8090         (ix86_preferred_stack_boundary_string, ix86_branch_cost_string)
8091         (ix86_align_funcs_string): Make static.
8092         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
8093         (ix86_handle_option): New function.
8094         (TARGET_USE_MS_BITFIELD_LAYOUT): Delete.
8095         (ix86_ms_bitfield_layout_p): Check TARGET_MS_BITFIELD_LAYOUT.
8096         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove handling
8097         of darwin_fix_and_continue_switch.
8098         (darwin_one_byte_bool): Delete.
8099         * config/rs6000/lynx.h (EXTRA_SUBTARGET_SWITCHES): Delete.
8100         * config/rs6000/rs6000.c (rs6000_override_options): Update assignment
8101         to darwin_one_byte_bool.
8102         * config/darwin.opt, config/lynx.opt, config/i386/cygming.opt,
8103         * config/i386/djgpp.opt, config/i386/i386.opt,
8104         * config/i386/sco5.opt: New files.
8105
8106 2005-04-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
8107
8108         * config/sparc/sparc.c (reg_or_0_operand, const1_operand,
8109         fp_zero_operand, fp_register_operand, intreg_operand,
8110         fcc_reg_operand, fcc0_reg_operand, icc_or_fcc_reg_operand,
8111         call_operand, call_operand_address, tgd_symbolic_operand,
8112         tld_symbolic_operand, tie_symbolic_operand, tle_symbolic_operand,
8113         symbolic_operand, symbolic_memory_operand, label_ref_operand,
8114         sp64_medium_pic_operand, data_segment_operand,
8115         text_segment_operand, splittable_symbolic_memory_operand,
8116         reg_or_nonsymb_mem_operand, splittable_immediate_memory_operand,
8117         eq_or_neq, normal_comp_operator, noov_compare_op,
8118         noov_compare64_op, v9_regcmp_op, extend_op, cc_arithop,
8119         cc_arithopn, arith_operand, arith_4096_operand, arith_add_operand,
8120         const64_operand, const64_high_operand, arith11_operand,
8121         arith10_operand, arith_double_operand, arith_double_4096_operand,
8122         arith_double_add_operand, arith11_double_operand,
8123         arith10_double_operand, small_int, small_int_or_double,
8124         uns_small_int, uns_arith_operand, clobbered_register,
8125         input_operand, compare_operand): Delete.
8126         (sparc_emit_set_const32): Use predicates in assertion.  Remove special
8127         code for TARGET_ARCH64 && HOST_BITS_PER_WIDE_INT != 64.
8128         (sparc_emit_set_const64): Call gcc_unreachable if H_B_P_W_I == 32.
8129         (GEN_HIGHINT64, GEN_INT64): Delete.
8130         (sparc_emit_set_safe_HIGH64, gen_safe_SET64, gen_safe_OR64,
8131         gen_safe_XOR64): Adjust for above deletion.
8132         (sparc_emit_set_const64): Support only H_B_P_W_I == 64 and CONST_INTs.
8133         Use 'unsigned HOST_WIDE_INT' instead of 'long' for bitmask.
8134         (legitimate_constant_p): Use const_zero_operand instead.
8135         (sparc_extra_constraint_check): Likewise.
8136         * config/sparc/sparc.h (CONST_DOUBLE_OK_FOR_LETTER_P): Remove 'O'.
8137         (PREFERRED_RELOAD_CLASS): Use const_zero_operand.
8138         (PREDICATE_CODES): Delete.
8139         * config/sparc/sparc.md: Include predicates.md.
8140         (All patterns): Adjust for new predicate names.
8141         (cmpdi, cmpdi_sp64): Use arith_operand predicate.
8142         (movhi_const64_special, movsi_const64_special): Add 'K' constraint.
8143         (movdi): Use general_operand predicate.
8144         (movdi_sp64_dbl): Delete.
8145         (movdi_const64_special): Add 'N' constraint.
8146         (movdicc): Use arith10_operand predicate.
8147         (movdi_cc_sp64, movdi_cc_sp64_trunc): Use arith11_operand predicate.
8148         (movdi_cc_reg_sp64): Use arith10_operand predicate.
8149         (movdi_cc_reg_sp64_trunc): Delete.
8150         (cmp_zero_extract, cmp_zero_extract_sp64): Use small_int_operand.
8151         (adddi3_sp64, cmp_ccx_plus, cmp_ccx_plus_set): Use arith_operand.
8152         (subdi3_sp32): Delete.
8153         (subdi3_insn_sp32): Change to define_insn_and_split.
8154         (subdi3_sp64, cmp_minus_ccx, cmp_minus_ccx_set): Use arith_operand.
8155         (muldi3, muldi3_sp64, muldi3_v8plus): Likewise.
8156         (smulsi3_highpart_v8plus, const_smulsi3_highpart_v8plus,
8157         umulsi3_highpart_v8plus, const_umulsi3_highpart_v8plus): Use
8158         small_int_operand predicate.
8159         (divdi3, udivdi3): Use arith_operand predicate.
8160         (udivsi3, udivsi3_sp32, udivsi3_sp64): Use nonimmediate_operand.
8161         (and<V64I>3_sp64, ior<V64I>3_sp64, xor<V64I:mode>3_sp64,
8162         xor_not_<V64I:mode>_sp64) : Use arith_operand predicate.
8163         (xordi3_sp64_dbl): Delete.
8164         (cmp_ccx_arith_op, cmp_ccx_arith_op_set, cmp_ccx_xor_not,
8165         cmp_ccx_xor_not_set, cmp_ccx_arith_op_not, cmp_ccx_arith_op_not_set,
8166         cmp_ccx_neg, cmp_ccx_set_neg, one_cmpl<V64I>2_sp64, cmp_ccx_not,
8167         cmp_ccx_set_not): Use arith_operand predicate.
8168         (ashrsi3_extend2, lshrsi3_extend2 et al.): Use small_int_operand.
8169         * config/sparc/predicates.md: New file.
8170
8171 2005-04-21  Kazu Hirata  <kazu@cs.umass.edu>
8172
8173         PR tree-optimization/14846
8174         * fold-const.c (fold_single_bit_test_into_sign_test): New,
8175         split out from ...
8176         (fold_single_bit_test): ... here.
8177         (fold_binary): Call fold_single_bit_test_into_sign_test
8178         instead of fold_single_bit_test.
8179
8180 2005-04-20  James E Wilson  <wilson@specifixinc.com>
8181
8182         PR c++/20805
8183         * dwarf2out.c (gen_variable_die): Don't emit a specification if this
8184         is another declaration.
8185
8186 2005-04-21  Hans-Peter Nilsson  <hp@axis.com>
8187
8188         * config/cris/predicates.md: New file.
8189         * config/cris/cris-protos.h (cris_store_multiple_op_p)
8190         (cris_movem_load_rest_p): Declare.
8191         * config/cris/cris.c (cris_store_multiple_op): Return bool, not int.
8192         (cris_movem_load_rest_p): Ditto.  Globalize.
8193         (cris_bdap_operand, cris_bdap_biap_operand,
8194         cris_orthogonal_operator, cris_commutative_orth_op,
8195         cris_operand_extend_operator,
8196         cris_additive_operand_extend_operator, cris_extend_operator,
8197         cris_plus_or_bound_operator, cris_mem_op,
8198         cris_general_operand_or_symbol,
8199         cris_general_operand_or_gotless_symbol,
8200         cris_general_operand_or_plt_symbol, cris_mem_call_operand,
8201         cris_load_multiple_op): Remove predicate functions.
8202         (cris_symbol, cris_gotless_symbol) <case UNSPEC>: Return 0, don't
8203         abort, for UNSPECs other than CRIS_UNSPEC_PLT.
8204         * config/cris/cris.h (PREDICATE_CODES): Don't define.
8205         * config/cris/cris.md: Include predicates.md.
8206         ("call", "call_value"): Generate CONSTs of Pmode, not VOIDmode.
8207
8208 2005-04-20  Ian Lance Taylor  <ian@airs.com>
8209
8210         * c-common.def: Remove STMT_EXPR (moved to cp/cp-tree.def).
8211         * c-common.h (STMT_EXPR_STMT): Don't define.
8212         (STMT_EXPR_NO_SCOPE): Don't define.
8213         * c-dump.c (c_dump_tree): Don't handle STMT_EXPR.
8214         * c-pretty-print.c (pp_c_primary_expression): Likewise.
8215         (pp_c_expression): Likewise.
8216
8217 2005-04-20  Richard Henderson  <rth@redhat.com>
8218
8219         PR target/21100
8220         * config/i386/mmx.md (push<MMXMODE>1): Fix predicate thinko.
8221
8222 2005-04-20  Jeff Law  <law@redhat.com>
8223
8224         * reload1.c (reload): Ignore equivalences between pseudos and
8225         read only memory.
8226
8227 2005-04-20  Joseph S. Myers  <joseph@codesourcery.com>
8228
8229         PR c/12913
8230         * c-tree.h (struct c_label_list): Update comment.
8231         (struct c_label_context): Rename to struct c_label_context_se.
8232         (label_context_stack): Rename to label_context_stack_se.
8233         (C_DECL_UNJUMPABLE_VM, C_DECL_UNDEFINABLE_VM, struct
8234         c_label_context_vm, label_context_stack_vm, c_begin_vm_scope,
8235         c_end_vm_scope): New.
8236         (C_DECL_DECLARED_BUILTIN, C_DECL_USED): Use FUNCTION_DECL_CHECK.
8237         * c-decl.c (pop_scope): Call c_end_vm_scope.
8238         (pushdecl): Call c_begin_vm_scope for variably modified
8239         declarations.
8240         (define_label): Check for jumping into scope of identifier with
8241         variably modified type.  Push label on stack for those defined at
8242         current context of identifiers with variably modified type.
8243         (start_function): Create stack level for context of identifiers
8244         with variably modified type.
8245         (finish_function): Pop stack level for context of identifiers with
8246         variably modified type.
8247         * c-typeck.c (label_context_stack): Rename to
8248         label_context_stack_se.
8249         (label_context_stack_vm, c_begin_vm_scope, c_end_vm_scope): New.
8250         (c_finish_goto_label): Check for jumping into scope of identifier
8251         with variably modified type.  Push label on stack for those jumped
8252         to from current context of identifiers with variably modified
8253         type.
8254         (struct c_switch): Add blocked_vm.
8255         (c_start_case): Initialize blocked_vm.
8256         (do_case): Check blocked_vm.
8257         (c_finish_case): Add comment.
8258         (c_begin_stmt_expr, c_finish_stmt_expr): Update for renamed
8259         variable label_context_stack.
8260
8261 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
8262
8263         * tree-ssa-phiopt.c (tree_ssa_phi_opt): Update calls to
8264         conditional_replacement, value_replacement, abs_replacement,
8265         minmax_replacement.
8266         (replace_phi_edge_with_variable): Remove argument BB.
8267         (conditional_replacement, value_replacement,
8268         minmax_replacement, abs_replacement): Remove argument PHI_BB.
8269         Update a call to replace_phi_edge_with_variable.
8270
8271         * tree-ssa-phiopt.c: Fix comments.
8272
8273 2005-04-20  Michael Matz  <matz@suse.de>
8274
8275         PR20973
8276         * reload.c (push_reload, find_dummy_reload): Check for uninitialized
8277         pseudos.
8278
8279 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
8280
8281         * tree-ssa-phiopt.c: Fix comment typos.
8282
8283         PR tree-optimization/21116
8284         * tree-ssa-phiopt.c: Fix a typo.
8285
8286 2005-04-19  Richard Henderson  <rth@redhat.com>
8287
8288         * builtins.c (expand_builtin_sync_operation): Revert last change.
8289         * optabs.c (expand_bool_compare_and_swap): Compare vs old value,
8290         not vs new value.
8291         (expand_compare_and_swap_loop): Likewise.
8292         (expand_sync_operation): Remove fallback from NAND to AND; invert
8293         memory operand when expanding from cmpxchg.
8294         (expand_sync_fetch_operation): Likewise.
8295         * doc/extend.texi (Atomic Builtins): Fix docs for nand and
8296         compare-and-swap.
8297
8298         * config/alpha/alpha.c (alpha_split_atomic_op): Invert memory operand
8299         when implementing NAND.  Fix double-add for AFTER.
8300         * config/alpha/sync.md (sync_nand<I48MODE>): Invert memory operand.
8301         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
8302         (sync_compare_and_swap<I48MODE>): Fix compare vs zero.  Return old
8303         memory value.
8304         (sync_lock_test_and_set<I48MODE>): Remove extra label and last
8305         memory barrier.
8306
8307         * config/i386/sync.md (sync_compare_and_swap<IMODE>): Fix pattern
8308         to return old memory value.
8309         (sync_compare_and_swap_cc<IMODE>): Likewise.
8310
8311         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Early
8312         return pre-reload.  Don't consider output or anti dependencies.
8313         * config/ia64/sync.md (IMODE): New.
8314         (modesuffix): Add QI and HI.
8315         (memory_barrier): Simplify expansion.
8316         (sync_compare_and_swap<IMODE>): Use IMODE, not I48MODE.
8317         (cmpxchg_acq_<IMODE>): Likewise.
8318         (sync_lock_test_and_set<IMODE>): Likewise.
8319         (sync_lock_release<IMODE>): Likewise.
8320
8321 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
8322
8323         * fold-const.c (fold_binary): Fold ~(X ^ Y) to ~X ^ Y or X ^ ~Y if
8324         ~X or ~Y simplify.
8325
8326 2005-04-19  James A. Morrison  <phython@gcc.gnu.org>
8327
8328         * fold-const (fold_binary):  Fold ~X ^ ~ Y to X ^ Y.
8329
8330 2005-04-20  Michael Pogue  <michael.pogue@sun.com>
8331             Joseph S. Myers  <joseph@codesourcery.com>
8332
8333         * c.opt (Wint-to-pointer-cast, Wpointer-to-int-cast): New options.
8334         * c-typeck.c (build_c_cast): Check these options.
8335         * doc/invoke.texi: Document these options.
8336
8337 2005-04-20  Kazu Hirata  <kazu@cs.umass.edu>
8338
8339         * tree-ssa-phiopt.c: Update a comment about the pass.
8340
8341 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
8342
8343         * tree-ssa-phiopt.c, config/arm/arm.c, config/fr30/fr30.md,
8344         config/mcore/mcore.c: Fix comment typos.
8345
8346 2005-04-19  Daniel Jacobowitz  <dan@codesourcery.com>
8347
8348         * Makefile.in (libgcc.mk): Pass GCC_FOR_TARGET.
8349         * mklibgcc.in: Use $GCC_FOR_TARGET instead of ./xgcc.
8350
8351 2005-04-19  Paul Brook  <paul@codesourcery.com>
8352
8353         * config/arm/arm.c (arm_init_libfuncs): Clear mod optabs.
8354
8355 2005-04-19  Andrew Haley  <aph@redhat.com>
8356
8357         PR java/21022
8358         * dbxout.c (dbxout_type_fields): Check DECL_IGNORED_P before
8359         looking at a field's bitpos.
8360
8361 2005-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8362
8363         * system.h (fopen, fdopen, freopen): Define these to the unlocked
8364         libiberty functions.
8365
8366 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
8367
8368         PR tree-optimization/21096
8369         * tree-ssa-copy.c (fini_copy_prop): Free cached_last_copy_of.
8370
8371 2005-04-19  Alan Modra  <amodra@bigpond.net.au>
8372
8373         PR target/21098
8374         * config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
8375         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.
8376
8377 2005-04-19  Alexandre Oliva  <aoliva@redhat.com>
8378
8379         * tree-cfg.c (dump_function_to_file): Use cfun info only if it
8380         refers to the function being dumped.
8381
8382 2005-04-18  Daniel Jacobowitz  <dan@codesourcery.com>
8383
8384         * varasm.c (assemble_start_function): Remove reset of in_section.
8385
8386 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
8387
8388         PR tree-optimization/21085
8389         * fold-const (fold_binary): Don't change X % -C to X % C if C has
8390         overflowed.
8391
8392 2005-04-19  Ben Elliston  <bje@au.ibm.com>
8393
8394         * doc/invoke.texi (Optimize Options): Refer to the correct
8395         optimisation flag -ftree-dominator-opts, not -ftree-dom.
8396
8397 2005-04-18  Christopher Jaillet <christophe.jaillet@wanadoo.fr>
8398
8399         * config/rs6000/rs6000.c (machopic_output_stub):  Increase
8400         alloca argument to be big enough.
8401
8402 2005-04-18  Alexandre Oliva  <aoliva@redhat.com>
8403
8404         PR middle-end/21049
8405         * tree-cfg.c (dump_function_to_file): Do not crash if cfun or
8406         cfun->cfg are NULL.
8407
8408 2005-04-18  Tom Tromey  <tromey@redhat.com>
8409
8410         * cgraphunit.c (cgraph_finalize_compilation_unit): Fix a comment
8411         typo.
8412
8413 2005-04-18  Richard Henderson  <rth@redhat.com>
8414
8415         * config/alpha/alpha.c (alpha_split_atomic_op): New.
8416         (alphaev5_insn_pipe): Add LD_L, ST_C, MB types.
8417         (alphaev4_insn_pipe): Likewise.  Correct IST and LDSYM pipes.
8418         * config/alpha/alpha-protos.h: Update.
8419         * config/alpha/alpha.md (UNSPECV_MB, UNSPECV_LL, UNSPECV_SC): New.
8420         (UNSPECV_ATOMIC, UNSPECV_CMPXCHG, UNSPECV_XCHG): New.
8421         (attr type): Add ld_l, st_c, mb.
8422         (andsi_internal, andnotsi3, iorsi_internal, one_cmplsi_internal,
8423         iornotsi3, xorsi_internal, xornotsi3): New.
8424         * config/alpha/ev4.md (ev4_ld): Add ld_l.
8425         (ev4_ist_c, ev4_mb): New.
8426         * config/alpha/ev5.md (ev5_st): Add st_c, mb.
8427         (ev5_ld_l): New.
8428         * config/alpha/ev6.md (ev6_ild): Add ld_l.
8429         (ev6_ist): Add st_c.
8430         (ev6_mb): New.
8431         * config/alpha/sync.md: New file.
8432
8433 2005-04-18  Richard Henderson  <rth@redhat.com>
8434
8435         * builtins.c (expand_builtin_sync_operation): Fold nand to and
8436         for constants.
8437
8438         * optabs.c (expand_sync_operation): Fix typo expanding nand to and.
8439
8440 2005-04-18  Devang Patel  <dpatel@apple.com>
8441
8442         * config/rs6000/atlivec.md (mulv4si3): New pattern.
8443
8444 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
8445
8446         PR tree-optimization/20922
8447         * fold-const.c (fold_binary): Fold X - c > X and X + c < X to false.
8448         Fold X + c >= X and fold X - c <= X to true.
8449
8450 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
8451
8452         * config/ia64/unwind-ia64.c (emergency_reg_state_free): Make an
8453         unsigned int.
8454         (emergency_labeled_state_free): Likewise.
8455
8456 2005-04-18  Nick Clifton  <nickc@redhat.com>
8457
8458         * config/h8300/h8300.md (jump): Remove prescan parameter from
8459         calls to final_scan_insn.
8460
8461         * config/arc/arc.c (arc_output_function_epilogue): Remove prescan
8462         parameter from calls to final_scan_insn.
8463
8464         * config.gcc (m68hc12): Use the m68hc11.opt file for target
8465         specific options.
8466         (v850e, v850e1): Use the v850.opt file for target specific
8467         options.
8468
8469 2005-04-18  Kazu Hirata  <kazu@cs.umass.edu>
8470
8471         PR tree-optimization/21001
8472         * tree-optimize.c (init_tree_optimization_passes): Move the
8473         first pass_forwprop immediately before pass_vrp.
8474
8475 2005-04-17  Ian Lance Taylor  <ian@airs.com>
8476
8477         * c-common.def (SIZEOF_EXPR, ARROW_EXPR, ALIGNOF_EXPR): Remove.
8478         * c-common.c (c_sizeof_or_alignof_type): Change second parameter
8479         from enum tree_code op to bool is_sizeof.
8480         * c-common.h (c_sizeof_or_alignof_type): Update declaration.
8481         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
8482         * c-pretty-print.c (pp_c_postfix_expression): Remove ARROW_EXPR
8483         case.
8484         (pp_c_unary_expression): Remove SIZEOF_EXPR and ALIGNOF_EXPR
8485         cases.
8486         (pp_c_expression): Remove ARROW_EXPR, SIZEOF_EXPR, and
8487         ALIGNOF_EXPR cases.
8488
8489 2005-04-17  Ian Lance Taylor  <ian@airs.com>
8490
8491         * system.h: Poison DONT_ACCESS_GBLS_AFTER_EPILOGUE.
8492
8493 2005-04-17  Richard Henderson  <rth@redhat.com>
8494
8495         * config/alpha/alpha.c (va_list_skip_additions): Only define if
8496         TARGET_ABI_OSF.
8497         (TARGET_STDARG_OPTIMIZE_HOOK): Likewise.
8498         (alpha_stdarg_optimize_hook): Likewise.  Allow for one more round
8499         of indirection through ssa names while looking for the gpr counter
8500         field.
8501         (alpha_setup_incoming_varargs) <TARGET_ABI_OSF>: Make use of the
8502         saved va_list_gpr_size and va_list_fpr_size.
8503
8504 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
8505
8506         * tree-vrp.c (compare_values): Check that VAL1 and VAL2 are
8507         both pointers or both integers.
8508
8509         * tree-vrp.c (maybe_add_assert_expr): Don't assert
8510         ASSERT_EXPRs for single-use variable.
8511
8512         * tree-into-ssa.c: Fix a comment typo.
8513
8514 2005-04-17  Richard Sandiford  <rsandifo@redhat.com>
8515
8516         * config/mips/iris6.h (DRIVER_SELF_SPECS): Check -march as well as
8517         -mipsN before forcing a default of -mips2.
8518
8519 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
8520
8521         * predict.h (IS_TAKEN): Remove.
8522         * rtl.h (NOTE_PREDICTION): Likewise.
8523
8524         * modulo-sched.c (CFG_HOOKS): Remove.
8525
8526         * c-parser.c (N_C_TTYPES): Remove.
8527
8528         * tree-flow-inline.h (get_stmt_operands): Remove.
8529         * lambda-code.c, tree-ssa-loop-unswitch.c,
8530         tree-ssa-operands.c, tree-ssa-pre.c, tree-ssa-propagate.c,
8531         tree-ssa-sink.c, tree-ssa.c, tree-tailcall.c,
8532         tree-vect-transform.c, tree-vectorizer.c, tree-vrp.c): Remove
8533         calls to get_stmt_operands.
8534         * doc/tree-ssa.texi: Don't mention get_stmt_operands.
8535
8536 2005-04-17  Richard Henderson  <rth@redhat.com>
8537
8538         PR target/20375
8539         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Advance a copy
8540         of CUMULATIVE_ARGS past the last named argument.
8541         (alpha_va_start): Expect pretend_args_size only if strictly less than
8542         6 named arguments.
8543
8544 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
8545
8546         PR middle-end/21024
8547         * builtins.c (expand_builtin_strcat): Convert the result of
8548         strlen to the right type.
8549         * fold-const.c (fold_binary) <PLUS_EXPR>: Use fold_convert to
8550         avoid creating type mismatches.
8551         <GE_EXPR>: Pass op0 and op1 to fold_build2 to avoid creating
8552         type mismatches.
8553
8554         * c-lex.c (WCHAR_TYPE_SIZE, WCHAR_BYTES): Remove.
8555
8556 2005-04-16  Richard Henderson  <rth@redhat.com>
8557
8558         PR target/21051
8559         * builtins.c (expand_builtin) <BUILT_IN_BOOL_COMPARE_AND_SWAP_*>:
8560         Use the mode of boolean_type_node when the user doesn't provide one.
8561         * config/ia64/sync.md (sync_lock_release<I48MODE>): Use operand 1.
8562
8563 2005-04-16  Alexandre Oliva  <aoliva@redhat.com>
8564
8565         PR target/20126
8566         * loop.c (loop_givs_rescan): Handle non-replaceable (plus (reg)
8567         (const)).
8568
8569         * tree-scalar-evolution.c (interpret_rhs_modify_expr): Fix typo in
8570         comment.
8571
8572 2005-04-16  Roger Sayle  <roger@eyesopen.com>
8573             Steven Bosscher  <stevenb@suse.de>
8574
8575         * fold-const.c (fold_binary_to_constant): Delete obsolete comment.
8576         (fold_unary_to_constant): Likewise.
8577
8578 2005-04-16  Kazu Hirata  <kazu@cs.umass.edu>
8579
8580         * basic-block.h: Adjust the value of PROP_SCAN_DEAD_STORES,
8581         PROP_ASM_SCAN.
8582
8583 2005-04-16  Gerald Pfeifer  <gerald@pfeifer.com>
8584
8585         * doc/install.texi (Specific): Avoid using asterisks in @anchor
8586         names related to target triplets.
8587         Remove i?86-*-esix from platform directory.
8588         Remove powerpc-*-eabiaix from platform directory.
8589
8590 2005-04-16  Joseph S. Myers  <joseph@codesourcery.com>
8591
8592         PR middle-end/20491
8593         * config/ia64/ia64.c (rtx_needs_barrier): Recurse instead of
8594         falling through from SUBREG case to REG.
8595
8596 2005-04-15  Roger Sayle  <roger@eyesopen.com>
8597
8598         * fold-const.c (fold_relational_hi_lo): Delete function and prototype.
8599         (fold_binary): Update comment mentioning fold_relational_hi_lo.
8600         (fold_binary_to_constant): Simplify using fold_binary.
8601         (fold_unary_to_constant): Likewise, simplify using fold_unary.
8602
8603 2005-04-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8604
8605         * gthr-posix.c (pthread_cancel): Define.
8606         (pthread_mutexattr_init): Likewise.
8607         (pthread_mutexattr_settype): Likewise.
8608         (pthread_mutexattr_destroy): Likewise.
8609
8610 2005-04-15  David S. Miller  <davem@davemloft.net>
8611
8612         PR target/20673
8613         * config/sparc/sparc.h (sparc_hard_reg_printed): Mark as GTY(()).
8614
8615 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
8616
8617         PR tree-optimization/21031
8618         * tree-ssa-forwprop.c (ssa_name_defined_by_comparison_p): New.
8619         (forward_propagate_into_cond_1): Call it.  Forward propagate
8620         integer-integer casts into COND_EXPRs.
8621
8622 2005-04-15  Dave Korn  <dave.korn@artimi.com>
8623
8624         * gcc.c (default_compilers): Clarify obscure error message when
8625         reading from standard input.
8626
8627 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
8628
8629         * basic-block.h (PROP_EQUAL_NOTES): Remove.
8630         * flow.c (propagate_one_insn): Don't use PROP_EQUAL_NOTES.
8631
8632         * tree-ssa-alias.c (init_alias_info): Remove a call to
8633         get_stmt_operands.
8634
8635 2005-04-15  Andrew MacLeod  <amacleod@redhat.com>
8636
8637         * tree-vect-analyze.c (vect_stmt_relevant_p): Process immediate uses
8638         of non-virtual PHI nodes like we use to.
8639
8640 2005-05-15  Paolo Bonzini  <bonzini@gnu.org>
8641
8642         * genattrtab.c (ATTR_EQ_ATTR_P): Remove.
8643         (attr_copy_rtx): Do not use it.
8644
8645 2005-04-15  Andrew Macleod  <amacleod@redhat.com>
8646
8647         * doc/tree-ssa.texi: Grammer/abbreviation updates.
8648
8649 2005-04-15  Diego Novillo  <dnovillo@redhat.com>
8650
8651         * tree-vect-transform.c (vectorizable_store): Mark necessary
8652         objects in the vectorized store needing renaming.  Update the
8653         SSA graph for V_MAY_DEF operands in the original store.
8654
8655 2005-04-14  Daniel Berlin <dberlin@dberlin.org>
8656
8657         * tree-ssa-pre.c (compute_avail): It's okay to have
8658         TREE_INVARIANT's here, and value number the resulting expressions.
8659         (create_expression_by_pieces): Make sure operands that were
8660         min_invariant when we started, stay that way.
8661
8662 2005-04-15  David Edelsohn  <edelsohn@gnu.org>
8663
8664         * doc/install.texi (*-ibm-aix*): Add comment about system limits.
8665
8666 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
8667
8668         PR tree-optimization/20936.
8669         * tree-ssa-ccp.c (visit_assignment): Fix a typo.
8670
8671 2005-04-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8672
8673         * doc/invoke.texi: Fix typos.
8674         * doc/md.texi: Likewise.
8675         * doc/rtl.texi: Likewise.
8676         * doc/sourcebuild.texi: Likewise.
8677         * doc/tm.texi: Likewise.
8678
8679 2005-04-15  Uros Bizjak  <uros@kss-loka.si>
8680
8681         PR tree-optimization/21004
8682         * convert.c (convert_to_integer): Convert ceilf, ceill, floorf
8683         and floorl in c99 mode only.
8684         * builtins.c (expand_builtin_int_roundingfn): Assert that
8685         fallback_fndecl is not NULL_TREE.
8686
8687 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
8688
8689         * cfgrtl.c (purge_all_dead_edge): Remove an unused argument.
8690         * basic-block.h: Update the prototype for
8691         purge_all_dead_edges.
8692         * cfgexpand.c (tree_expand_cfg): Update a call to
8693         purge_all_dead_edges.
8694         * combine.c (combine_instructions): Likewise.
8695         * passes.c (rest_of_handle_old_regalloc, rest_of_handle_cse,
8696         rest_of_handle_cse2, rest_of_handle_gcse,
8697         rest_of_handle_postreload): likewise.
8698
8699 2005-04-15  Alexandre Oliva  <aoliva@redhat.com>
8700
8701         PR middle-end/20739
8702         * gimplify.c (gimplify_addr_expr): Compensate for removal of
8703         e.g. cv-qualification conversions.
8704
8705 2005-04-14  Mike Stump  <mrs@apple.com>
8706
8707         * config/darwin-c.c (framework_construct_pathname): We must
8708         find all headers of a framework in the first instance of it
8709         found in the seach path.
8710
8711 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
8712
8713         PR tree-optimization/21021
8714         * tree-vrp.c (compare_values): Work around a bug in the front
8715         end that produces a comparison of mismatched types.
8716
8717 2004-04-14  Richard Henderson  <rth@redhat.com>
8718
8719         * config/ia64/ia64.h (enum fetchop_code): Remove.
8720         (enum ia64_builtins): Move ...
8721         * config/ia64/ia64.c (enum ia64_builtins): ... here.  Remove all
8722         members except BSP and FLUSHRS.
8723         (ia64_init_builtins): Remove __sync builtins.
8724         (ia64_expand_builtin): Likewise.
8725         (ia64_expand_fetch_and_op, ia64_expand_op_and_fetch): Remove.
8726         (ia64_expand_compare_and_swap, ia64_expand_lock_test_and_set): Remove.
8727         (ia64_expand_lock_release): Remove.
8728         * config/ia64/ia64.md (mf): Move to sync.md.
8729         (mf_internal, fetchadd_acq_si, fetchadd_acq_di, cmpxchg_acq_si,
8730         cmpxchg_acq_di, xchgsi, xchgdi): Likewise.
8731         * config/ia64/sync.md: New file.
8732         (memory_barrier): Rename from mf.
8733         (fetchadd_acq_<I48MODE>): Macroize from _si/_di patterns.
8734         (cmpxchg_acq_<I48MODE>): Likewise.
8735         (sync_lock_test_and_set<I48MODE>): Likewise.
8736
8737         * config/ia64/ia64intrin.h: Define nothing for C; limit #defines
8738         to c++.  Remove __sync* declarations.  s/_si/_4/.  s/_di/_8/.
8739
8740 2004-04-14  Richard Henderson  <rth@redhat.com>
8741
8742         * config/i386/i386.c (x86_cmpxchg, x86_xadd): New.
8743         (ix86_compare_emitted): New.
8744         (ix86_expand_compare): Use ix86_compare_emitted if set.
8745         (ix86_expand_setcc): Only emit REG_EQUAL if both ix86_compare_op0
8746         and ix86_compare_op0 are set.
8747         * config/i386/i386.h (x86_cmpxchg, x86_xadd): Declare.
8748         (TARGET_CMPXCHG, TARGET_XADD): New.
8749         (ix86_compare_emitted): Declare.
8750         * config/i386/i386.md: Include sync.md
8751         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2): New.
8752         (UNSPECV_XCHG, UNSPECV_LOCK): New.
8753         * config/i386/sync.md: New file.
8754
8755 2004-04-14  Richard Henderson  <rth@redhat.com>
8756
8757         PR middle-end/14311
8758         * builtin-types.def (BT_BOOL, BT_VOLATILE_PTR, BT_I1, BT_I2,
8759         BT_I4, BT_I8, BT_FN_VOID_VPTR, BT_FN_I1_VPTR_I1, BT_FN_I2_VPTR_I2,
8760         BT_FN_I4_VPTR_I4, BT_FN_I8_VPTR_I8, BT_FN_BOOL_VPTR_I1_I1,
8761         BT_FN_BOOL_VPTR_I2_I2, BT_FN_BOOL_VPTR_I4_I4, BT_FN_BOOL_VPTR_I8_I8,
8762         BT_FN_I1_VPTR_I1_I1, BT_FN_I2_VPTR_I2_I2, BT_FN_I4_VPTR_I4_I4,
8763         BT_FN_I8_VPTR_I8_I8): New.
8764         * builtins.def (DEF_SYNC_BUILTIN): New.
8765         (BUILT_IN_FETCH_AND_ADD_N, BUILT_IN_FETCH_AND_ADD_1,
8766         BUILT_IN_FETCH_AND_ADD_2, BUILT_IN_FETCH_AND_ADD_4,
8767         BUILT_IN_FETCH_AND_ADD_8, BUILT_IN_FETCH_AND_SUB_N,
8768         BUILT_IN_FETCH_AND_SUB_1, BUILT_IN_FETCH_AND_SUB_2,
8769         BUILT_IN_FETCH_AND_SUB_4, BUILT_IN_FETCH_AND_SUB_8,
8770         BUILT_IN_FETCH_AND_OR_N, BUILT_IN_FETCH_AND_OR_1,
8771         BUILT_IN_FETCH_AND_OR_2, BUILT_IN_FETCH_AND_OR_4,
8772         BUILT_IN_FETCH_AND_OR_8, BUILT_IN_FETCH_AND_AND_N,
8773         BUILT_IN_FETCH_AND_AND_1, BUILT_IN_FETCH_AND_AND_2,
8774         BUILT_IN_FETCH_AND_AND_4, BUILT_IN_FETCH_AND_AND_8,
8775         BUILT_IN_FETCH_AND_XOR_N, BUILT_IN_FETCH_AND_XOR_1,
8776         BUILT_IN_FETCH_AND_XOR_2, BUILT_IN_FETCH_AND_XOR_4,
8777         BUILT_IN_FETCH_AND_XOR_8, BUILT_IN_FETCH_AND_NAND_N,
8778         BUILT_IN_FETCH_AND_NAND_1, BUILT_IN_FETCH_AND_NAND_2,
8779         BUILT_IN_FETCH_AND_NAND_4, BUILT_IN_FETCH_AND_NAND_8,
8780         BUILT_IN_ADD_AND_FETCH_N, BUILT_IN_ADD_AND_FETCH_1,
8781         BUILT_IN_ADD_AND_FETCH_2, BUILT_IN_ADD_AND_FETCH_4,
8782         BUILT_IN_ADD_AND_FETCH_8, BUILT_IN_SUB_AND_FETCH_N,
8783         BUILT_IN_SUB_AND_FETCH_1, BUILT_IN_SUB_AND_FETCH_2,
8784         BUILT_IN_SUB_AND_FETCH_4, BUILT_IN_SUB_AND_FETCH_8,
8785         BUILT_IN_OR_AND_FETCH_N, BUILT_IN_OR_AND_FETCH_1,
8786         BUILT_IN_OR_AND_FETCH_2, BUILT_IN_OR_AND_FETCH_4,
8787         BUILT_IN_OR_AND_FETCH_8, BUILT_IN_AND_AND_FETCH_N,
8788         BUILT_IN_AND_AND_FETCH_1, BUILT_IN_AND_AND_FETCH_2,
8789         BUILT_IN_AND_AND_FETCH_4, BUILT_IN_AND_AND_FETCH_8,
8790         BUILT_IN_XOR_AND_FETCH_N, BUILT_IN_XOR_AND_FETCH_1,
8791         BUILT_IN_XOR_AND_FETCH_2, BUILT_IN_XOR_AND_FETCH_4,
8792         BUILT_IN_XOR_AND_FETCH_8, BUILT_IN_NAND_AND_FETCH_N,
8793         BUILT_IN_NAND_AND_FETCH_1, BUILT_IN_NAND_AND_FETCH_2,
8794         BUILT_IN_NAND_AND_FETCH_4, BUILT_IN_NAND_AND_FETCH_8,
8795         BUILT_IN_BOOL_COMPARE_AND_SWAP_N, BUILT_IN_BOOL_COMPARE_AND_SWAP_1,
8796         BUILT_IN_BOOL_COMPARE_AND_SWAP_2, BUILT_IN_BOOL_COMPARE_AND_SWAP_4,
8797         BUILT_IN_BOOL_COMPARE_AND_SWAP_8, BUILT_IN_VAL_COMPARE_AND_SWAP_N,
8798         BUILT_IN_VAL_COMPARE_AND_SWAP_1, BUILT_IN_VAL_COMPARE_AND_SWAP_2,
8799         BUILT_IN_VAL_COMPARE_AND_SWAP_4, BUILT_IN_VAL_COMPARE_AND_SWAP_8,
8800         BUILT_IN_LOCK_TEST_AND_SET_N, BUILT_IN_LOCK_TEST_AND_SET_1,
8801         BUILT_IN_LOCK_TEST_AND_SET_2, BUILT_IN_LOCK_TEST_AND_SET_4,
8802         BUILT_IN_LOCK_TEST_AND_SET_8, BUILT_IN_LOCK_RELEASE_N,
8803         BUILT_IN_LOCK_RELEASE_1, BUILT_IN_LOCK_RELEASE_2,
8804         BUILT_IN_LOCK_RELEASE_4, BUILT_IN_LOCK_RELEASE_8,
8805         BUILT_IN_SYNCHRONIZE: New.
8806         * builtins.c (called_as_built_in): Rewrite from CALLED_AS_BUILT_IN
8807         as a function.  Accept __sync_ as a prefix as well.
8808         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
8809         expand_builtin_lock_test_and_set, expand_builtin_synchronize,
8810         expand_builtin_lock_release): New.
8811         (expand_builtin): Call them.
8812         * c-common.c (DEF_BUILTIN): Don't require __builtin_ prefix if
8813         neither BOTH_P nor FALLBACK_P are defined.
8814         (builtin_type_for_size): New.
8815         (sync_resolve_size, sync_resolve_params, sync_resolve_return): New.
8816         (resolve_overloaded_builtin): New.
8817         * c-common.h (resolve_overloaded_builtin): Declare.
8818         (builtin_type_for_size): Declare.
8819         * c-typeck.c (build_function_call): Invoke resolve_overloaded_builtin.
8820         * expr.c (sync_add_optab, sync_sub_optab, sync_ior_optab,
8821         sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab,
8822         sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab,
8823         sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab,
8824         sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab,
8825         sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap,
8826         sync_compare_and_swap_cc, sync_lock_test_and_set,
8827         sync_lock_release): New.
8828         * optabs.h: Declare them.
8829         * expr.h (expand_val_compare_and_swap, expand_bool_compare_and_swap,
8830         expand_sync_operation, expand_sync_fetch_operation,
8831         expand_sync_lock_test_and_set): Declare.
8832         * genopinit.c (optabs): Add sync optabs.
8833         * optabs.c (init_optabs): Initialize sync optabs.
8834         (expand_val_compare_and_swap_1, expand_val_compare_and_swap,
8835         expand_bool_compare_and_swap, expand_compare_and_swap_loop,
8836         expand_sync_operation, expand_sync_fetch_operation,
8837         expand_sync_lock_test_and_set): New.
8838         * doc/extend.texi (Atomic Builtins): New section
8839         * doc/md.texi (Standard Names): Add sync patterns.
8840
8841 2005-04-14  Alexandre Oliva  <aoliva@redhat.com>
8842
8843         * tree-eh.c (lower_try_finally_copy): Generate new code in
8844         response to goto_queue entries as if the queue was sorted by
8845         index, not pointers.
8846         (lower_try_finally_switch): Likewise.
8847
8848 2005-04-14  Richard Henderson  <rth@redhat.com>
8849
8850         * config/i386/i386.c (ix86_expand_sse_cmp): Split out from ...
8851         (ix86_expand_sse_movcc): ... here.  Take cmp as a pre-computed
8852         register.
8853         (ix86_expand_fp_movcc): Update to match.
8854         (ix86_expand_fp_vcond, ix86_expand_int_vcond): New.
8855         * config/i386/i386-protos.h: Update.
8856         * config/i386/sse.md (vcondv4sf, vcondv2df): New.
8857         (vcond<SSEMODE124>, vcondu<SSEMODE12>): New.
8858
8859 2005-04-14  Joseph S. Myers  <joseph@codesourcery.com>
8860
8861         * doc/cpp.texi, doc/install.texi: Change references to GCC 3.5 to
8862         refer to 4.0.
8863
8864 2005-04-14  Julian Brown  <julian@codesourcery.com>
8865
8866         * Revert elfos.h part of my patch from 2005-04-13 for causing libstdc++
8867         link failures on ppc64 Linux.
8868
8869 2005-04-14  Andreas Krebbel  <krebbel1@de.ibm.com>
8870
8871         * config.gcc: Set cpu_type for s390.
8872
8873 2005-04-14  Daniel Berlin  <dberlin@dberlin.org>
8874
8875         Fix PR tree-optimization/20963
8876         * tree-ssa-pre.c (compute_avail): Remove special case for
8877         TREE_INVARIANT.
8878         (create_expression_by_pieces): Add value numbers for forced out
8879         statements.
8880
8881 2005-04-14  Hans-Peter Nilsson  <hp@axis.com>
8882
8883         * config/cris/cris.md: Replace references to (reg:SI 16) with
8884         (reg:SI CRIS_SRP_REGNUM).
8885
8886 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
8887
8888         PR tree-optimization/20657
8889         * tree-vrp.c (extract_range_from_expr): Notice INTEGER_CST to
8890         create an appropriate range from it.
8891
8892 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
8893
8894         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST_FLOOR> and
8895         <UNSPEC_FIST_CEIL> case.
8896
8897         * config/i386/i386.md (UNSPEC_FIST_FLOOR, UNSPEC_FIST_CEIL): New.
8898         (*fist<mode>2_floor_1, fistdi2_floor, fistdi2_floor_with_temp)
8899         (fist<mode>2_floor, fist<mode>2_floor_with_temp): New isns patterns
8900         to implement lfloor and llfloor built-ins as x87 intrinsic function.
8901         (fistdi2_floor, fist<mode>2_floor splitters): New splitters.
8902         (lfloor<mode>2): New expanders.
8903         (*fist<mode>2_ceil_1, fistdi2_ceil, fistdi2_ceil_with_temp)
8904         (fist<mode>2_ceil, fist<mode>2_ceil_with_temp): New isns patterns
8905         to implement lceil and llceil built-ins as x87 intrinsic function.
8906         (fistdi2_ceil, fist<mode>2_ceil splitters): New splitters.
8907         (lceil<mode>2): New expanders.
8908
8909 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
8910
8911         * convert.c (convert_to_integer): Convert (long int)trunc{,f,l},
8912         and (long long int)ceil{,f,l} into FIX_TRUNC_EXPR.
8913
8914 2005-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
8915
8916         PR target/20927
8917         * config/s390/s390-modes.def: Define TFmode.
8918
8919 2005-04-13  Richard Sandiford  <rsandifo@redhat.com>
8920
8921         * config/mips/mips.h (ASM_OUTPUT_CASE_LABEL): Delete.
8922         (JUMP_TABLES_IN_TEXT_SECTION): Define.
8923         * config/mips/mips.c (mips16_insn_length): Remove reference to
8924         JUMP_TABLES_IN_TEXT_SECTION.
8925
8926 2005-04-13 Fariborz Jahanian <fjahanian@apple.com>
8927
8928         * simplify-rtx.c (simplify_binary_operation_1): Return
8929         scalar or vector of constant 0, depending on the xor's
8930         mode.
8931
8932 2005-04-13  Dale Johannesen  <dalej@apple.com>
8933
8934         * objc/Make-lang.in (objc-lang.o):  Depend on tree-gimple.h.
8935         (objc-act.o):  Ditto.
8936         * objc/objc-act.c (objc_gimplify_expr):  New.
8937         (objc_get_callee_fndecl):  New.
8938         * objc/objc-act.h:  Include tree-gimple.h.  Declare new functions.
8939         * objc/objc-lang.c (LANG_HOOKS_GIMPLIFY_EXPR):  Define.
8940         (LANG_HOOKS_GET_CALLEE_FNDECL):  Define.
8941
8942 2005-04-13  Devang Patel  <dpatel@apple.com>
8943
8944         * tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra
8945         temp variables.
8946
8947 2005-04-13  Hans-Peter Nilsson  <hp@axis.com>
8948
8949         CRIS prologue as RTL.
8950         * config/cris/cris-protos.h (cris_emit_movem_store)
8951         (cris_expand_prologue): Prototype.
8952         * config/cris/cris.c (struct machine_function): New member
8953         stdarg_regs.
8954         (cfa_label_num, cris_target_asm_function_prologue): Remove.
8955         (TARGET_ASM_FUNCTION_PROLOGUE): Don't override.
8956         (cris_general_operand_or_gotless_symbol): Accept CRIS_UNSPEC_GOT.
8957         (cris_load_multiple_op, cris_return_address_on_stack)
8958         (cris_return_address_on_stack_for_return): ISO-Cify.
8959         (cris_store_multiple_op): New predicate function.
8960         (cris_expand_prologue, cris_emit_movem_store): New functions.
8961         (cris_print_operand) <case 'O'>: Handle modifications other than
8962         post-increment.
8963         (cris_symbol, cris_got_symbol): Return 0 for CRIS_UNSPEC_GOT.
8964         (cris_gotless_symbol): Return 1 for CRIS_UNSPEC_GOT.
8965         (cris_gen_movem_load): Rearrange slightly to make local variable
8966         src a parameter, removing osrc.
8967         (cris_setup_incoming_varargs): Set machine_function member
8968         stdarg_regs to correspond to the number of registers that need to
8969         be saved.
8970         * config/cris/cris.h (EXTRA_CONSTRAINT_S): Accept
8971         CRIS_UNSPEC_GOT.
8972         (PREDICATE_CODES): Add cris_store_multiple_op.  Make
8973         cris_general_operand_or_gotless_symbol accept UNSPEC.
8974         * config/cris/cris.md (CRIS_UNSPEC_GOT): New constant.
8975         ("*movsi_internal") <alternative 8>: Handle CRIS_UNSPEC_GOT.
8976         ("*cris_store_multiple"): New pattern.  Tweak common comment above
8977         this and "*cris_load_multiple".
8978         ("prologue"): New define_expand.
8979
8980         * config/cris/cris.md ("epilogue"): Conditionalize on
8981         TARGET_PROLOGUE_EPILOGUE.
8982
8983 2005-04-13  Steve Ellcey  <sje@cup.hp.com>
8984
8985         PR target/20924
8986         * config/ia64/ia64.md (divsf3_internal_lat): Generate frcpa with
8987         fpsr 0 instead of fpsr 1.
8988         (divsf3_internal_thr): Ditto.
8989         (divdf3_internal_lat): Ditto.
8990         (divdf3_internal_thr): Ditto.
8991         (divxf3_internal_lat): Ditto.
8992         (divxf3_internal_thr): Ditto.
8993
8994 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
8995
8996         PR tree-optimization/20913
8997         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Fold COND_EXPR.
8998
8999         PR tree-optimization/20702
9000         * tree-vrp.c (maybe_add_assert_expr): Recurse into
9001         dominator children that haven't been walked into.
9002
9003 2005-04-13  Julian Brown  <julian@codesourcery.com>
9004
9005         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from
9006         being used for symbols with vague linkage when HAVE_GAS_COMDAT_GROUP
9007         is true.
9008
9009 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
9010
9011         * basic-block.h, tree-ssa-uncprop.c, varasm.c,
9012         config/i386/sse.md: Fix comment typos.
9013
9014         * genattrtab.c (NULL_ATTR): Remove.
9015         * ifcvt.c (NULL_EDGE): Likewise.
9016
9017         * rtl.h (RTX_EXPR_FIRST, RTX_EXPR_LAST): Remove.
9018
9019         * rtl.h (NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS,
9020         NOTE_PREDICT): Remove.
9021
9022 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
9023
9024         * configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
9025         * configure: Regenerate.
9026         * config.in: Likewise.
9027         * system.h: Declare vsnprintf if not already declared.
9028
9029 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
9030
9031         * optc-gen.awk: Handle stand-alone Mask records.
9032         * opth-gen.awk: Likewise.
9033         * doc/options.texi (Option file format): Document them.
9034         * config.gcc (sparc-*-netbsdelf*, sparc-*-linux*, sparc64-*-freebsd*,
9035         sparc64-*-linux*, sparc64-*-netbsd*): Add long-double-switch.opt.
9036         (sparc64-*-openbsd*, sparc64-*-elf*): Add little-endian.opt.
9037         * config/sparc/sparc.h (MASK_FPU, MASK_UNALIGNED_DOUBLES,
9038         MASK_V8, MASK_SPARCLITE, MASK_SPARCLET, MASK_V9,
9039         MASK_DEPRECATED_V8_INSNS, MASK_IMPURE_TEXT, MASK_APP_REGS,
9040         MASK_HARD_QUAD, MASK_LITTLE_ENDIAN, MASK_PTR64, MASK_64BIT,
9041         MASK_STACK_BIAS, MASK_FPU_SET, MASK_VIS, MASK_V8PLUS,
9042         MASK_FASTER_STRUCTS, MASK_LONG_DOUBLE_128): Delete.
9043         (TARGET_FPU, TARGET_UNALIGNED_DOUBLES, TARGET_V8, TARGET_SPARCLITE,
9044         TARGET_SPARCLET, TARGET_V9, TARGET_DEPRECATED_V8_INSNS,
9045         TARGET_IMPURE_TEXT, TARGET_APP_REGS, MASK_HARD_QUAD,
9046         TARGET_LITTLE_ENDIAN, TARGET_PTR64, TARGET_64BIT, MASK_STACK_BIAS,
9047         TARGET_FPU_SET, TARGET_VIS, TARGET_V8PLUS, TARGET_FASTER_STRUCTS,
9048         TARGET_LONG_DOUBLE_128): Likewise.
9049         (TARGET_SWITCHES, SUBTARGET_SWITCHES): Likewise.
9050         (TARGET_OPTIONS, SUBTARGET_OPTIONS): Likewise.
9051         * config/sparc/freebsd.h (SUBTARGET_SWITCHES): Likewise.
9052         * config/sparc/linux.h (SUBTARGET_SWITCHES): Likewise.
9053         * config/sparc/linux64.h (SUBTARGET_SWITCHES): Likewise.
9054         * config/sparc/netbsd-elf.h (SUBTARGET_SWITCHES): Likewise.
9055         * config/sparc/sp64-elf.h (SUBTARGET_SWITCHES): Likewise.
9056         * config/sparc/sparc.c (fpu_option_set): New global.
9057         (sparc_handle_option): New function.
9058         (sparc_override_options): Test fpu_option_set.
9059         (TARGET_DEFAULT_TARGET_FLAGS): Set to TARGET_DEFAULT.
9060         (TARGET_HANDLE_OPTION): Set to sparc_handle_option.
9061         * config/sparc/sparc.opt: New file.
9062         * config/sparc/little-endian.opt: Likewise.
9063         * config/sparc/long-double-switch.opt: Likewise.
9064
9065 2005-04-13  Bernd Schmidt  <bernd.schmidt@analog.com>
9066
9067         * config/bfin/bfin.c (bfin_lib_id_given): New static variable.
9068         (bfin_handle_options): Set it if -mshared-library-id= is seen.
9069         * config/bfin/bfin.opt (mshared-library-id=): Lose
9070         Var(bfin_lib_id_given).
9071
9072 2005-04-13  Matt Thomas  <matt@3am-software.com>
9073
9074         * config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before
9075         defining.
9076
9077 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
9078
9079         * rtl.h (CLEAR_RTX_FLAGS): Remove.
9080
9081         * cgraphunit.c (INSNS_PER_CALL): Remove.
9082
9083         * tree-ssa-forwprop.c (vars,
9084         record_single_argument_cond_exprs,
9085         substitute_single_use_vars): Remove.
9086         (forward_propagate_into_cond_1, forward_propagate_into_cond):
9087         New.
9088         (tree_ssa_forward_propagate_single_use_vars): Call
9089         forward_propagate_into_cond for each COND_EXPR.
9090
9091         * tree-inline.c (INSNS_PER_STMT): Remove.
9092
9093 2005-04-12  Richard Henderson  <rth@redhat.com>
9094
9095         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Split ...
9096         (ix86_expand_sse_fp_minmax): ... from ...
9097         (ix86_expand_fp_movcc): ... here.
9098         (ix86_expand_sse_movcc): Rewrite from ix86_split_sse_movcc.
9099         * config/i386/i386-protos.h: Update.
9100         * config/i386/i386.md (UNSPEC_IEEE_MIN, UNSPEC_IEEE_MAX): New.
9101         (sse_setccsf, sse_setccdf): Allow before reload.
9102         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): Remove.
9103         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): Remove.
9104         (ieee_sminsf3, ieee_smaxsf3, ieee_smindf3, ieee_smaxdf3): New.
9105         * config/i386/sse.md (andsf3, nandsf3, iorsf3, xorsf3): New.
9106         (anddf3, nanddf3, iordf3, xordf3): New.
9107
9108 2005-04-12  Jeff Law  <law@redhat.com>
9109
9110         * Makefile.in (OBJS-common): Add tree-ssa-uncprop.o.
9111         (tree-ssa-uncprop.o): Add dependencies.
9112         * tree-cfg.c (remove_useless_stmts_bb, remove_useless_stmts): Remove.
9113         * tree-flow.h (remove_useless_stmts): Remove prototype.
9114         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
9115         remove_useless_stmts.
9116         * timevar.def (TV_TREE_SSA_UNCPROP): New timevar.
9117         * tree-optimize.c (init_tree_optimization_passes): Add uncprop pass.
9118         * tree-pass.h (pass_uncprop): Declare.
9119         * tree-ssa-uncprop.c: New file.
9120
9121 2005-04-12  James E. Wilson  <wilson@specifixinc.com>
9122
9123         PR target/20670
9124         * unwind-ia64.c (uw_intall_context): Add missing load of r27.
9125
9126 2005-04-12  Caroline Tice  <ctice@apple.com>
9127
9128         Temporary fix for partitioning problems.
9129         * passes.c (rest_of_handle_final): Remove code that
9130         frees unlikely_text_section_name,
9131         * varasm.c (assemble_start_function): Test for partitioning
9132         flag before writing out section labels.
9133         (assemble_end_function): Test for partitioning flag before
9134         writing out section labels.
9135
9136 2005-04-12  Steven Bosscher  <stevenb@suse.de>
9137             Stuart Hastings <stuart@apple.com>
9138             Jan Hubicka  <jh@suse.cz>
9139
9140         * Makefile.in: Add function.h to BASIC_BLOCK_H.  Remove all
9141         references to gt-tree-cfg.h.
9142         * basic-block.h (struct basic_block_def): Don't skip rbi
9143         for garbage collection.
9144         (struct reorder_block_def): Make GTY-able.
9145         (struct control_flow_graph): New structure.
9146         (n_edges, n_basic_blocks, last_basic_block, basic_block_info,
9147         BASIC_BLOCK, EXIT_BLOCK_PTR, ENTRY_BLOCK_PTR): No longer vars,
9148         but instead defines to the control_flow_graph for cfun.
9149         (label_to_block_map): New define, points to the label map of
9150         the control_flow_graph for cfun.
9151         (n_edges_for_function, n_basic_blocks_for_function,
9152         last_basic_block_for_function, basic_block_info_for_function,
9153         EXIT_BLOCK_PTR_FOR_FUNCTION, ENTRY_BLOCK_PTR_FOR_FUNCTION,
9154         basic_block_info_for_function, label_to_block_map_for_function):
9155         Counterparts for the above, taking a struct function as an extra
9156         argument.
9157         (alloc_rbi_pool, free_rbi_pool): Remove prototypes.
9158         * cfg.c: (n_edges, n_basic_blocks, last_basic_block,
9159         basic_block_info, ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Remove.
9160         (alloc_rbi_pool, free_rbi_pool): Remove.
9161         (initialize_bb_rbi): Use ggc_alloc_cleared instead of pool_alloc.
9162         * cfglayout.c: (cfg_layout_initialize): Don't allocate the rbi pool
9163         here...
9164         (cfg_layout_finalize) ... and don't free it here.
9165         * cfgrtl.c (cfg_layout_delete_block): Zero out rbi so it gets
9166         garbage collected.
9167         * flow.c (free_basic_block_vars): Set label_to_block_map and
9168         n_edges to zero too.
9169         * function.h (struct function): Add cfg field.
9170         * function.c (allocate_struct_function): Allocate the cfg.
9171         * tree-cfg.c (label_to_block_map): Remove.
9172         (build_tree_cfg): Don't allocate the rbi pool here...
9173         (delete_tree_cfg_annotations): ...and don't free it here.
9174         Also don't nullify label_to_block_map for cfun.
9175
9176 2005-04-12  Caroline Tice  <ctice@apple.com>
9177
9178         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
9179         Revert my patch from April 9.
9180         (fix_edges_for_rarely_executed_code): Revert my patch from April 9.
9181         (reorder_basic_blocks): Revert my patch from April 9.
9182         (insert_section_boundary_note): Revert my patch from April 9.
9183         * dbxout.c (dbxout_function_end): Revert my patch from April 9.
9184         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): Revert my patch from April 9.
9185         (COLD_END_LABEL):  Revert my patch from April 9.
9186         (cold_text_section_label):  Revert my patch from April 9.
9187         (cold_end_label): Revert my patch from April 9.
9188         (dwarf2out_switch_text_section): Revert my patch from April 9.
9189         (output_aranges): Revert my patch from April 9.
9190         (output_ranges):  Revert my patch from April 9.
9191         (output_line_info): Revert my patch from April 9.
9192         (add_location_or_const_value_attribute):  Revert my patch from April 9.
9193         (dwarf2out_var_location): Revert my patch from April 9.
9194         (dwarf2out_init):  Revert my patch from April 9.
9195         (dwarf2out_finish): Revert my patch from April 9.
9196         * function.h (struct function): Revert my patch from April 9.
9197         * opts.c (decode_options): Revert my patch from April 9.
9198         * output.h (unlikely_section_label, hot_section_label,
9199         hot_section_end_label, cold_section_end_label,
9200         unlikely_text_section_name): Revert my patch from April 9.
9201         * passes.c (rest_of_handle_final): Revert my patch from April 9.
9202         * varasm.c (unlikely_section_label, hot_section_label,
9203         hot_section_end_label, cold_section_end_label,
9204         unlikely_text_section_name): Revert my patch from April 9.
9205         (initialize_cold_section_name): Revert my patch from April 9.
9206         (unlikely_text_section): Revert my patch from April 9.
9207         (in_unlikely_text_section): Revert my patch from April 9.
9208         (named_section): Revert my patch from April 9.
9209         (function_section): Revert my patch from April 9.
9210         (current_function_section): Revert my patch from April 9.
9211         (assemble_start_function): Revert my patch from April 9.
9212         (assemble_end_function): Revert my patch from April 9.
9213         (default_section_type_flags_1): Revert my patch from April 9.
9214
9215 2005-04-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
9216
9217         * config/sparc/sparc.h (APPLY_RESULT_SIZE): Set to 24 in 64-bit mode.
9218         * config/sparc/sparc.md (untyped_call): Save the registers manually.
9219
9220         * config/sparc/sparc.c (legitimate_address_p): Use TARGET_ARCH32.
9221
9222 2005-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
9223
9224         PR middle-end/20917
9225         * config/s390/s390.md ("*set_tp"): Use SET in pattern.
9226         ("set_tp_64", "set_tp_31"): Adapt expanded pattern.
9227
9228 2004-04-12  Richard Henderson  <rth@redhat.com>
9229
9230         * config/i386/i386.md (UNSPEC_FIX, UNSPEC_MOVA, UNSPEC_SHUFFLE,
9231         UNSPEC_PSHUFLW, UNSPEC_PSHUFHW, UNSPEC_ADDSUB, UNSPEC_HADD,
9232         UNSPEC_HSUB, UNSPEC_MOVSHDUP, UNSPEC_MOVSLDUP, UNSPEC_MOVDDUP): Remove.
9233         (UNSPEC_*, UNSPECV_*): Renumber.
9234
9235 2005-04-12  Frank Ch. Eigler  <fche@redhat.com>
9236
9237         PR mudflap/19266
9238         From Richard Henderson <rth@redhat.com>:
9239         * tree-mudflap.c (mf_build_check_statement_for): Correct block
9240         splitting logic.
9241
9242 2005-04-12  Dorit Naishlos  <dorit@il.ibm.com>
9243
9244         * tree-cfg.c (tree_verify_flow_info): Use LABEL_EXPR_LABEL.
9245
9246 2005-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
9247
9248         * config/bfin/bfin.c (bfin_library_id_string): Remove.
9249         (bfin_library_id): New variable.
9250         (bfin_expand_prologue): Use bfin_library_id and bfin_lib_id_given
9251         instead of bfin_library_id_string.
9252         (bfin_handle_option): New function.
9253         (override_options): Remove most code to deal with shared library IDs,
9254         just check they aren't used without -mid-shared-library.
9255         (TARGET_HANDLE_OPTION): Define.
9256         * config/bfin/bfin.h (TARGET_OPTIONS): Delete macro.
9257         * config/bfin/bfin.opt (mshared-library-id=): New.
9258
9259 2005-04-12  Kazu Hirata  <kazu@cs.umass.edu>
9260
9261         * tree-vect-transform.c: Fix comment typos.
9262
9263 2005-04-12 Mostafa Hagog <mustafa@il.ibm.com>
9264
9265         * postreload-gcse.c (eliminate_partially_redundant_load): Don't
9266         split critical edges when not possible/profitable.
9267
9268 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
9269
9270         * config/ns32k/ns32k.h (target_flags, MASK_32081, MASK_RTD)
9271         (MASK_REGPARM, MASK_32532, MASK_32332, MASK_NO_SB, MASK_NO_BITFIELD)
9272         (MASK_HIMEM, MASK_32381, MASK_MULT_ADD, MASK_SRC, MASK_IEEE_COMPARE)
9273         (TARGET_32081, TARGET_32381, TARGET_MULT_ADD, TARGET_RTD)
9274         (TARGET_REGPARM, TARGET_32532, TARGET_32332, TARGET_SB, TARGET_HIMEM)
9275         (TARGET_BITFIELD, TARGET_IEEE_COMPARE, TARGET_SWITCHES): Delete.
9276         (OVERRIDE_OPTIONS): Clear MASK_SB instead of setting MASK_NO_SB.
9277         * config/ns32k/netbsd.h (TARGET_DEFAULT): Remove MASK_NO_SB and
9278         MASK_NO_BITFIELD.
9279         * config/ns32k/ns32k.c (ns32k_handle_option): New function.
9280         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
9281         * config/ns32k/ns32k.opt: New file.
9282
9283 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
9284
9285         * config.gcc (m68k-*-linux*): Add m68k/ieee.opt to $extra_options.
9286         * config/m68k/m68k.h (target_flags, MASK_68020, TARGET_68020)
9287         (MASK_68030, TARGET_68030, MASK_68040, TARGET_68040, MASK_68040_ONLY)
9288         (TARGET_68040_ONLY, MASK_68060, TARGET_68060, MASK_5200, TARGET_5200)
9289         (MASK_CFV3, TARGET_CFV3, MASK_CFV4, TARGET_CFV4, MASK_528x)
9290         (TARGET_528x, MASK_CF_HWDIV, TARGET_CF_HWDIV, MASK_68881, TARGET_68881)
9291         (MASK_BITFIELD, TARGET_BITFIELD, MASK_SHORT, TARGET_SHORT)
9292         (MASK_ALIGN_INT, TARGET_ALIGN_INT, MASK_PCREL, TARGET_PCREL)
9293         (MASK_NO_STRICT_ALIGNMENT, TARGET_STRICT_ALIGNMENT, MASK_RTD)
9294         (TARGET_RTD, MASK_SEP_DATA, TARGET_SEP_DATA, MASK_ID_SHARED_LIBRARY)
9295         (TARGET_ID_SHARED_LIBRARY, MASK_ALL_CF_BITS, TARGET_SWITCHES)
9296         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Delete.
9297         (MASK_COLDFIRE): Formatting fixes.
9298         (TARGET_COLDFIRE): Turn into a boolean value for consistency.
9299         * config/m68k/linux.h (SUBTARGET_SWITCHES): Delete.
9300         * config/m68k/m68k.c (m68k_library_id_string): Initialize to
9301         "_current_shared_library_a5_offset_".
9302         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
9303         (MASK_ALL_CPU_BITS): New macro.
9304         (m68k_handle_option): New function.
9305         (override_options): Remove handling of m68k_library_id_string.
9306         * config/m68k/m68k.opt: New file.
9307         * config/m68k/ieee.opt: New file.
9308
9309 2005-04-11  Mark Mitchell  <mark@codesourcery.com>
9310
9311         * target-def.h (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
9312         (TARGET_CXX_DETERMINE_CLASS_VISIBILITY): New macro.
9313         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
9314         (TARGET_CXX): Adjust accordingly.
9315         * target.h (struct gcc_target): Remove epxort_class_data.  Add
9316         determine_class_data_visibility and class_data_always_comdat.
9317         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
9318         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Document.
9319         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
9320         * config/arm/arm.c (arm_cxx_export_class_data): Remove.
9321         (arm_cxx_determine_class_data_visibility): New.
9322         (arm_cxx_class_data_always_comdat): Likewise.
9323         (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
9324         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
9325         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
9326         * config/arm/arm.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P): Define.
9327         * config/arm/symbian.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P):
9328         Define.
9329
9330 2005-04-11  Devang Patel  <dpatel@apple.com>
9331
9332         * tree-data-ref.c (build_classic_dist_vector,
9333         compute_subscript_distance): Make externally visible.
9334         * tree-data-ref.h (build_classic_dist_vector,
9335         compute_subscript_distance): Same.
9336         * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
9337         Check distance vector against vectorization factor.
9338         (vect_analyze_loop): Determine vectorizaion factor before
9339         analyzing data dependences.
9340         * tree-vectorizer.c (loops_num): Make it externally visible and
9341         rename ...
9342         * tree-vectorizer.c (vect_loops_num): ... new name.
9343         * tree-vectorizer.h  (vect_loops_num): New.
9344
9345 2005-04-11  Devang Patel  <dpatel@apple.com>
9346
9347         * tree-vect-analyze.c (vect_analyze_operations): Check
9348         vectorizable codition.
9349         * tree-vect-transform.c (vect_is_simple_cond): New function.
9350         (vectorizable_condition): New function.
9351         (vect_transform_stmt): Handle condition_vec_info_type.
9352         * tree-vectorizer.h (enum stmt_vec_info_type): Add
9353         condition_vec_info_type.
9354         (vectorizable_condition): New.
9355
9356 2005-04-11  Geoffrey Keating  <geoffk@apple.com>
9357
9358         * config/i386/i386.h (TARGET_FPMATH_DEFAULT): New.
9359         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT): New.
9360         * config/i386/i386.c (override_options): Use TARGET_FPMATH_DEFAULT.
9361
9362         * config/i386/darwin.h (ASM_SPEC): Use -arch i386 not -arch i686.
9363         (SUBTARGET_EXTRA_SPECS): Always 'i386'.
9364
9365         * dwarf2out.c (output_line_info): Don't try to dereference
9366         a NULL current_function_decl.
9367
9368         * config/t-slibgcc-darwin: Don't put shared libraries in
9369         directories other than $(slibdir).
9370         * config/rs6000/darwin.h: Find -m64 libgcc under the name the
9371         OS uses for it.
9372
9373 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
9374
9375         PR tree-optimization/20933
9376         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Move
9377         logic to reject aliases between read-only and writable
9378         variables ...
9379         (may_alias_p): ... here.
9380         (get_tmt_for): Do not associate read-only tags to pointers
9381         whose pointed-to type is not read-only.
9382         * tree-ssa.c (verify_ssa): Check that memory stores have at
9383         least one V_MAY_DEF or V_MUST_DEF.
9384
9385 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9386
9387         PR/17092
9388         * configure.ac (gcc_UNLOCKED_FUNCS): New.
9389         (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for gcc_UNLOCKED_FUNCS.
9390         * system.h (putchar, getc, getchar, clearerr, feof, fileno,
9391         fflush, fgetc, fgets, ferror, fread): Redefine to the associated
9392         _unlocked function.
9393         (fwrite_unlocked): Fix prototype.
9394
9395         * configure, config.in: Regenerate.
9396
9397 2005-04-11  David Edelsohn  <edelsohn@gnu.org>
9398
9399         * tree-ssa-loop-im.c: Include real.h.
9400         (determine_invariantness_stmt): If real division divisor is
9401         invariant and flag_unsafe_math_optimizations enabled, generate
9402         invariant reciprocal for hoisting.
9403         * Makefile.in (tree-ssa-loop-im.o): Add real.h dependency.
9404
9405 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
9406
9407         Fix PR tree-optimization/20926
9408
9409         * tree-ssa-alias.c (add_type_alias): Handle subvars.
9410
9411 2005-04-11  Devang Patel  <dpatel@apple.com>
9412
9413         * config/rs6000.c (rs6000_emit_vector_select): Fix vector select
9414         operand ordering.
9415
9416 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
9417
9418         * fold-const.c (fold_binary_op_with_conditional_arg):
9419         use fold_buildN instead of "fold (buildN" in some
9420         non obvious places.
9421         (fold_unary): Likewise.
9422         (fold_binary): Likewise.
9423
9424 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
9425
9426         Fix PR tree-optimization/20612
9427         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Fix increment
9428         handling
9429         (perfect_nestify): preheaderbb is *not* part of loop of the
9430         old destination.
9431
9432 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
9433
9434         * tree-ssa-alias.c (may_alias_p): If the variable
9435         is a global variable and the pointer is parameter
9436         and -fargument-noalias-global is used, then
9437         the pointer cannot alias the variable.
9438
9439 2005-04-11  James A. Morrison  <phython@gcc.gnu.org>
9440
9441         * config/sparc/sparc.c: Use gcc_assert and gcc_unreachable.
9442         * config/sparc/sparc.h: Likewise.
9443         * config/sparc/sparc.md: Likewise.
9444
9445 2005-04-11  Kazu Hirata  <kazu@cs.umass.edu>
9446
9447         * tree-vrp.c (maybe_add_assert_expr): Move a comment.
9448
9449         * tree-vrp.c: Fix a comment typo.
9450
9451 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
9452
9453         PR tree-optimization/20920
9454         * tree-pretty-print.c (dump_generic_node): Show '(ab)' if an
9455         SSA_NAME flows through an abnormal edge.
9456         * tree-vrp.c (infer_value_range): Ignore SSA names that flow
9457         through abnormal edges.
9458         (maybe_add_assert_expr): Likewise.
9459
9460 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
9461
9462         * config/s390/s390.h (s390_tune_string, s390_arch_string)
9463         (s390_warn_framesize_string, s390_warn_dynamicstack_string)
9464         (s390_stack_size_string, s390_stack_guard_string, target_flags)
9465         (MASK_HARD_FLOAT, MASK_SMALL_EXEC, MASK_DEBUG_ARG, MASK_64BIT)
9466         (MASK_ZARCH, MASK_MVCLE, MASK_TPF_PROFILING, MASK_NO_FUSED_MADD)
9467         (MASK_BACKCHAIN, MASK_PACKED_STACK, TARGET_HARD_FLOAT)
9468         (TARGET_SOFT_FLOAT, TARGET_SMALL_EXEC, TARGET_DEBUG_ARG)
9469         (TARGET_64BIT, TARGET_ZARCH, TARGET_MVCLE, TARGET_TPF_PROFILING)
9470         (TARGET_NO_FUSED_MADD, TARGET_FUSED_MADD, TARGET_BACKCHAIN)
9471         (TARGET_PACKED_STACK, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
9472         * config/s390/s390.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
9473         (TARGET_HANDLE_OPTION): Likewise.
9474         (s390_tune): Initialize to PROCESSOR_max.
9475         (s390_arch_string): Make static.
9476         (s390_tune_string, s390_warn_framesize_string): Delete.
9477         (s390_warn_dynamicstack_string, s390_stack_size_string): Delete.
9478         (s390_stack_guard_string, s390_warn_dynamicstack_p): Delete.
9479         (s390_handle_arch_option, s390_handle_option): New functions.
9480         (override_options): Remove parsing of option strings.
9481         * config/s390/s390.opt: New file.
9482
9483 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
9484
9485         * tree-complex.c (expand_vector_operations): Call
9486         update_stmt_if_modified.
9487
9488 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
9489
9490         * tree-vect-analyze (vect_determine_vectorization_factor):
9491         Do not use GET_MODE_NUNITS.
9492         * tree-vect-transform.c (vect_get_vec_def_for_operand,
9493         (vectorizable_load, vect_transform_loop): Likewise.
9494
9495 2005-04-11  Uros Bizjak  <uros@kss-loka.si>
9496
9497         * builtins.def (BUILT_IN_LCEIL, BUILT_IN_LCEILF, BUILT_IN_LCEILL)
9498         (BUILT_IN_LLCEIL, BUILT_IN_LLCEILF, BUILT_IN_LLCEILL): New.
9499         * optabs.h (enum optab_index): Add new OTI_lceil.
9500         (lceil_optab): Define corresponding macro.
9501         * optabs.c (init_optabs): Initialize lceil_optab.
9502         * genopinit.c (optabs): Implement lceil_optab using lceilsi2
9503         and lceildi2 patterns.
9504         * builtins.c (expand_builtin_int_roundingfn): Handle
9505         BUILT_IN_LCEIL{,F,L} and BUILT_IN_LLCEIL{,F,L}.
9506         (fold_builtin_int_roundingfn): Handle BUILT_IN_LCEIL{,F,L} and
9507         BUILT_IN_LLCEIL{,F,L}.
9508         (fold_builtin_1): Fold BUILT_IN_LCEIL{,F,L} and
9509         BUILT_IN_LLCEIL{,F,L} using fold_builtin_int_roundingfn.
9510         (mathfn_built_in): Handle BUILT_IN LCEIL and BUILT_IN_LLCEIL.
9511         (expand_builtin): Expand BUILT_IN_LCEIL{,F,L} and
9512         BUILT_IN_LLCEIL{,F,L} using expand_builtin_int_roundingfn.
9513         * convert.c (convert_to_integer): Convert (long int)ceil{,f,l},
9514         into lceil built-in function and (long long int)ceil{,f,l} into
9515         llceil built-in function.
9516         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LCEIL and
9517         BUILT_IN_LLCEIL.
9518
9519 2005-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9520
9521         * pa/quadlib.c (_U_Qfneg): Toggle sign bit instead of subtracting from
9522         zero.
9523
9524 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
9525
9526         * config/arm/arm.c: Fix a comment typo.
9527         * doc/tree-ssa.texi: Fix a typo.
9528
9529 2005-04-10  Steven Bosscher  <stevenb@suse.de>
9530
9531         * cselib.c (clear_table): Rename to cselib_clear_table.
9532         * cselib.h (cselib_clear_table): Add prototype.
9533         * gcse.c (gcse_main): Make 'f' argument unused.
9534         (alloc_gcse_mem): Do not walk the insn chain, walk the contents
9535         of each basic block instead.
9536         (compute_sets, compute_hash_table_work): Likewise.
9537         (constprop_register): Change int 'alter_jumps' argument to bool.
9538         (do_local_cprop): Likewise.
9539         (local_cprop_pass): Likewise.  Also walk basic blocks instead of
9540         the insn chain.  Explicitly clear the cselib tables after finishing
9541         one basic block.  Make sure there are no unterminated libcall blocks.
9542         Update compute_sets call.
9543         (cprop): Walk basic blocks instead of the insn chain.
9544         (one_cprop_pass, compute_ld_motion_mems, compute_store_table):
9545         Likewise.
9546         (bypass_jumps): Update alloc_gcse_mem, compute_sets, and
9547         one_cprop_pass calls.
9548
9549 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
9550
9551         * combine.c (combine_simplify_rtx): Remove a transformation that
9552         relies on an invalid assumption about rtl sign-extension semantics.
9553
9554 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
9555
9556         * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
9557         to build_int_cst_wide.
9558
9559 2005-04-09  Alexandre Oliva  <aoliva@redhat.com>
9560
9561         PR target/20126
9562         * loop.c (loop_givs_rescan): If replacement of DEST_ADDR failed,
9563         set the original address pseudo to the correct value before the
9564         original insn, if possible, and leave the insn alone, otherwise
9565         create a new pseudo, set it and replace it in the insn.
9566         * recog.c (validate_change_maybe_volatile): New.
9567         * recog.h (validate_change_maybe_volatile): Declare.
9568
9569 2005-04-09  Caroline Tice  <ctice@apple.com>
9570
9571         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
9572         Remove targetm.have_named_sections test.
9573         (fix_edges_for_rarely_executed_code): Likewise.
9574         (insert_section_boundary_note): Likewise.
9575         (reorder_basic_blocks): Check partitioning flag before calling
9576         verify_hot_cold_block_grouping.
9577         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
9578         the function struct rather than global variables.
9579         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
9580         (COLD_END_LABEL): Likewise
9581         (cold_text_section_label): New static global variable.
9582         (cold_end_label): Likewise.
9583         (dwarf2out_switch_text_section): Get hot/cold section labels from
9584         the function struct rather than global variables.
9585         (output_aranges): Use cold_text_section_label and cold_end_label;
9586         check partitioning flag before putting out delta.
9587         (output_ranges): Remove incorrect code attempting to use
9588         hot/cold labels.
9589         (output_line_info): Get cold section label from function struct.
9590         (add_location_or_const_value_attribute): Likewise.
9591         (get_subprogram_die): Get hot/cold section labels from function struct.
9592         (dwarf2out_var_location): Likewise.
9593         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
9594         write out cold_text_section_label if partition flag is set.
9595         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
9596         * function.h (struct function): Add new fields to point to hot/cold
9597         section labels: hot_section_label, cold_section_label,
9598         hot_section_end_label and cold_section_end_label; also add new field
9599         for cold text section name, unlikely_text_section_name.
9600         * opts.c (decode_options): Turn off partitioning flag if
9601         !targetm.have_named_sections.
9602         * output.h (hot_section_label): Remove.
9603         (hot_section_end_label): Remove.
9604         (cold_section_end_label): Remove.
9605         (unlikely_section_label): Remove.
9606         (unlikely_text_section_name): Remove.
9607         * passes.c (rest_of_handle_final):  Remove code that frees
9608         unlikely_text_section_name.
9609         * varasm.c (unlikely_section_label): Remove.
9610         (hot_section_label): Remove.
9611         (hot_section_end_label): Remove.
9612         (cold_section_end_label): Remove.
9613         (unlikely_text_section_name):  Remove.
9614         (initialize_cold_section_name): Modify to call
9615         targetm.strip_name_encoding; to store cold section name in current
9616         function struct, if it exists; and to only use the decl_section_name
9617         if flag_named_sections is true.
9618         (unlikely_text_section): Modify to get section name out of current
9619         function struct, if there is one; otherwise build it from
9620         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
9621         (in_unlikely_text_section): Likewise.
9622         (named_section): Modify to get/put cold section name in current function
9623         struct, if there is one.
9624         (function_section):  Change 'bool unlikely' to 'int reloc'; check
9625         targetm.have_named_sections before calling named_section.
9626         (current_function_section): Likewise.
9627         (assemble_start_function): Modify to get/put unlikely_text_section_name
9628         in current function struct; modify to get hot/cold section labels
9629         from function struct; initialize labels using
9630         ASM_GENERATE_INTERNAL_LABEL;
9631         test partitioning flag before writing out hot section label.
9632         (assemble_end_function): Test partitioning flag before writing out
9633         hot/cold section labels.
9634         (default_section_type_flags_1):  Modify to use array instead of
9635          char* for unlikely_text_section_name; set flags correctly for
9636          cold text section if there is not a current function decl.
9637
9638 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
9639
9640         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
9641         and TI_VA_LIST_FPR_COUNTER_FIELD.
9642         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
9643         * tree-pass.h (pass_stdarg): Add.
9644         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
9645         * tree-stdarg.c: New file.
9646         * tree-stdarg.h: New file.
9647         * Makefile.in (OBJS-common): Add tree-stdarg.o.
9648         (tree-stdarg.o): Add dependencies.
9649         * function.h (struct function): Add va_list_gpr_size and
9650         va_list_fpr_size fields.
9651         * function.c (allocate_struct_function): Initialize them.
9652         * target.h (struct gcc_target): Add stdarg_optimize_hook.
9653         * target-def.h (TARGET_STDARG_OPTIMIZE_HOOK): Define.
9654         (TARGET_INITIALIZER): Add it.
9655
9656         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
9657         va_list_{g,f}pr_counter_field.
9658         (ix86_setup_incoming_varargs): Don't do anything if reg_save
9659         area will not be used.  Only save registers that tree-stdarg.c
9660         detected they need saving.
9661         (ix86_va_start): Don't set up fields that won't be used.
9662
9663         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
9664         va_list_{g,f}pr_counter_field.
9665         (setup_incoming_varargs): Don't do anything if reg_save
9666         area will not be used.  Only save registers that tree-stdarg.c
9667         detected they need saving.
9668         (rs6000_va_start): Don't set up fields that won't be used.
9669
9670         * config/alpha/alpha.c: Include tree-flow.h and tree-stdarg.h.
9671         (alpha_build_builtin_va_list): Initialize va_list_gpr_counter_field.
9672         (va_list_skip_additions, alpha_stdarg_optimize_hook): New functions.
9673         (TARGET_STDARG_OPTIMIZE_HOOK): Define.
9674
9675 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
9676
9677         PR target/20795
9678         * config/i386/i386.c (construct_container): Pass empty aligned
9679         struct, union or class in memory.
9680
9681 2005-04-09  Kazu Hirata  <kazu@cs.umass.edu>
9682
9683         * dominance.c, gthr-win32.h, reg-stack.c, tree-ssa-copy.c,
9684         tree-ssa-operands.c, tree-ssa.c, tree-vrp.c, varasm.c,
9685         config/alpha/alpha.c, config/arm/arm.c, config/m32r/m32r.h,
9686         config/rs6000/predicates.md: Fix comment typos.
9687
9688         * sched-int.h (haifa_insn_data): Remove blockage and units.
9689         (INSN_UNIT, INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK,
9690         ENCODE_BLOCKAGE, UNIT_BLOCKED, BLOCKAGE_RANGE,
9691         MIN_BLOCKAGE_COST, MAX_BLOCKAGE_COST): Remove.
9692
9693 2005-04-09  Jan Hubicka  <jh@suse.cz>
9694             Steven Bosscher  <stevenb@suse.de>
9695
9696         * cfglayout.c (copy_bbs): Rename n_edges to num_edges.
9697         * cfgloop.c (get_loop_exit_edges): Likewise.
9698         * cfgloopmanip.c (fix_irreducible_loops): Likewise.
9699         (unloop): Likewise.
9700         * loop-unroll.c (analyze_insns_in_loop): Likewise.
9701         * tree-cfg.c (dump_cfg_status): Likewise.
9702
9703 2005-04-09  David Edelsohn  <edelsohn@gnu.org>
9704
9705         * config/rs6000/predicates.md (altivec_register_operand): Remove
9706         redundant match_code test.
9707         (gpc_reg_operand): Same.
9708         (cc_reg_operand): Same.
9709         (cc_reg_not_cr0_operand): Same.
9710
9711 2005-04-09  Jan Hubicka  <jh@suse.cz>
9712
9713         Forgotten hunk from my last merge patch:
9714         * final.c (output_addr_const): Do not call mark_referenced.
9715
9716 2005-04-09  Andrew MacLeod  <amacleod@redhat.com>
9717
9718         * doc/tree-ssa.texi: Add immediate use documentation.
9719
9720 2005-04-09  Richard Earnshaw <richard.earnshaw@arm.com>
9721
9722         * arm.c (FL_WBUF): Define.
9723         (arm_tune_strongarm): Renamed from arm_is_strong.  All uses changed.
9724         (arm_is_6_or_7): Delete.
9725         (arm_tune_wbuf): New.
9726         (arm_override_options): Set arm_tune_wbuf.
9727         * arm.h (arm_tune_strongarm): Renamed from arm_is_strong.
9728         (arm_is_6_or_7): Delete declaration.
9729         (arm_tune_wbuf): New declartion.
9730         * arm.md (is_strongarm): Derive from arm_tune_strongarm.
9731         (model_wbuf): Derive from arm_tune_wbuf.
9732         * arm-cores.def (arm600, arm610, arm620, arm700, arm700i, arm710)
9733         (arm720, arm710c, arm7100, arm7500, arm7500fe, arm710t, arm720t)
9734         (arm740t): Mark CPUs as having a write buffer.
9735
9736 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
9737
9738         * config/i386/i386.md (*fp_jcc_7_387): Use 'const0_operand' instead
9739         of 'const_double_operand' in operand 2 constraints.  Update enable
9740         condition.
9741
9742 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
9743
9744         * builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL)
9745         (BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
9746         * optabs.h (enum optab_index): Add new OTI_lfloor.
9747         (lfloor_optab): Define corresponding macro.
9748         * optabs.c (init_optabs): Initialize lfloor_optab.
9749         * genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
9750         and lfloordi2 patterns.
9751         * builtins.c (expand_builtin_int_roundingfn): New prototype.
9752         (expand_builtin_int_roundingfn): New function.
9753         (fold_builtin_int_roundingfn): New prototype.
9754         (fold_builtin_int_roundingfn): New function, renamed from
9755         fold_builtin_lround.
9756         Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
9757         BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
9758         (fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
9759         BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
9760         (mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
9761         (expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
9762         BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
9763         * convert.c (convert_to_integer): Convert (long int)floor{,f,l},
9764         into lfloor built-in function and (long long int)floor{,f,l} into
9765         llfloor built-in function.
9766         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
9767         BUILT_IN_LLFLOOR.
9768
9769 2005-04-08  Ian Lance Taylor  <ian@airs.com>
9770
9771         * c-common.def: Move FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
9772         CONTINUE_STMT, and SWITCH_STMT to cp/cp-tree.def.
9773         * c-common.h (WHILE_COND, WHILE_BODY): Move to cp/cp-tree.h.
9774         (DO_COND, DO_BODY): Likewise.
9775         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Likewise.
9776         (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Likewise.
9777         (c_common_stmt_codes): Remove FOR_STMT, WHILE_STMT, DO_STMT,
9778         BREAK_STMT, CONTINUE_STMT, and SWITCH_STMT.
9779         (build_continue_stmt, build_break_stmt): Don't declare.
9780         (c_do_switch_warnings): Update declaration.
9781         * c-gimplify.c (enum bc_t): Remove.
9782         (struct c_gimplify_ctx, ctxp): Remove.
9783         (push_context, pop_context): Remove static functions.
9784         (c_genericize): Don't call push_context or pop_context.
9785         (begin_bc_block, finish_bc_block): Remove static functions.
9786         (build_bc_goto): Likewise.
9787         (gimplify_c_loop): Likewise.
9788         (gimplify_for_stmt, gimplify_while_stmt): Likewise.
9789         (gimplify_do_stmt, gimplify_switch_stmt): Likewise.
9790         (c_gimplify_expr): Remove handling of FOR_STMT, WHILE_STMT,
9791         DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
9792         * c-common.c (c_do_switch_warnings): Rename from
9793         c_do_switch_warnings_1.
9794         (c_do_switch_warnings) [old version]: Remove.
9795         (c_do_switch_expr_warnings): Remove.
9796         * c-typeck.c (c_finish_case): Call new c_do_switch_warnings
9797         function instead of c_do_switch_expr_warnings.
9798         * c-dump.c (c_dump_tree): Remove handling of BREAK_STMT,
9799         CONTINUE_STMT, DO_STMT, FOR_STMT, SWITCH_STMT, and WHILE_STMT.
9800         * c-pretty-print.c (pp_c_statement): Likewise.
9801         * c-semantics.c (build_break_stmt, build_continue_stmt): Remove.
9802
9803 2005-04-08  Devang Patel  <dpatel@apple.com>
9804
9805         * tree-if-conv.c (find_phi_replacement_condition): New parameter, loop.
9806         While selecting replacement condition pay attention to loop header.
9807
9808 2005-04-08  Diego Novillo  <dnovillo@redhat.com>
9809
9810         Merge from tree-cleanup-branch: VRP, store CCP, store
9811             copy-prop, incremental SSA updating of FUD chains and
9812             newly exposed symbols.
9813
9814         * Makefile.in (tree-ssa-copy.o): Depend on tree-ssa-propagate.h.
9815         (OBJS-common): Add tree-vrp.o.
9816         (tree-vrp.o): New rule.
9817         * basic-block.h (nearest_common_dominator_for_set): Declare.
9818         * common.opt (ftree-store-ccp): New flag.
9819         (ftree-copy-prop): New flag.
9820         (ftree-vrp): New flag.
9821         (ftree-store-copy-prop): New flag.
9822         * dominance.c (nearest_common_dominator_for_set): New.
9823         * domwalk.c (walk_dominator_tree): Only traverse
9824         statements in blocks marked in walk_data->interesting_blocks.
9825         * domwalk.h (struct dom_walk_data): Add field interesting_blocks.
9826         * fold-const.c (fold): Handle ASSERT_EXPR.
9827         * opts.c (decode_options): Set flag_tree_copy_prop at -O1.
9828         Set flag_tree_store_ccp, flag_tree_store_copy_prop and
9829         flag_tree_vrp at -O2.
9830         * timevar.def (TV_TREE_VRP): Define.
9831         (TV_TREE_COPY_PROP): Define.
9832         (TV_TREE_STORE_COPY_PROP): Define.
9833         (TV_TREE_SSA_INCREMENTAL): Define.
9834         (TV_TREE_STORE_CCP): Define.
9835         * tree-cfg.c (tree_can_merge_blocks_p): Remove reference
9836         to kill_redundant_phi_nodes from comment.
9837         (verify_expr): Handle ASSERT_EXPR.
9838         * tree-dfa.c (mark_new_vars_to_rename): Remove second
9839         argument.  Update all users.
9840         (mark_call_clobbered_vars_to_rename): Remove.  Update all
9841         users.
9842         * tree-flow-inline.h (unmodifiable_var_p): New.
9843         * tree-flow.h (enum value_range_type): Declare.
9844         (struct value_range_def): Declare.
9845         (value_range): Declare.
9846         (remove_all_phi_nodes_for): Remove.  Update all users.
9847         (find_phi_node_for): Declare.
9848         (add_type_alias): Declare.
9849         (count_uses_and_derefs): Declare.
9850         (kill_redundant_phi_nodes): Remove.
9851         (rewrite_into_ssa): Remove.
9852         (rewrite_def_def_chains): Remove.
9853         (update_ssa, register_new_name_mapping, create_new_def_for,
9854         need_ssa_update_p, name_registered_for_update_p,
9855         release_ssa_name_after_update_ssa, dump_repl_tbl,
9856         debug_repl_tbl, dump_names_replaced_by,
9857         debug_names_replaced_by, mark_sym_for_renaming,
9858         mark_set_for_renaming, get_current_def, set_current_def,
9859         get_value_range, dump_value_range, debug_value_range,
9860         dump_all_value_ranges, debug_all_value_ranges,
9861         expr_computes_nonzero, loop_depth_of_name,
9862         unmodifiable_var_p): Declare.
9863         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle
9864         ASSERT_EXPR.
9865         * tree-into-ssa.c (block_defs_stack): Update comment.
9866         (old_ssa_names, new_ssa_names, old_virtual_ssa_names,
9867         syms_to_rename, names_to_release, repl_tbl,
9868         need_to_initialize_update_ssa_p, need_to_update_vops_p,
9869         need_to_replace_names_p): New locals.
9870         (NAME_SETS_GROWTH_FACTOR): Define.
9871         (struct repl_map_d): Declare.
9872         (struct mark_def_sites_global_data): Add field
9873         interesting_blocks.
9874         (enum rewrite_mode): Declare.
9875         (REGISTER_DEFS_IN_THIS_STMT): Define.
9876         (compute_global_livein): Use last_basic_block instead of
9877         n_basic_blocks.
9878         (set_def_block): Remove last argument.  Update all callers.
9879         (prepare_use_operand_for_rename): Remove.  Update all callers.
9880         (prepare_def_operand_for_rename): Remove.  Update all callers.
9881         (symbol_marked_for_renaming): New.
9882         (is_old_name): New.
9883         (is_new_name): New.
9884         (repl_map_hash): New.
9885         (repl_map_eq): New.
9886         (repl_map_free): New.
9887         (names_replaced_by): New.
9888         (add_to_repl_tbl): New.
9889         (add_new_name_mapping): New.
9890         (mark_def_sites): Assume that all the operands in the
9891         statement are in normal form.
9892         (find_idf): Assert that the block in the stack is valid.
9893         (get_default_def_for): New.
9894         (insert_phi_nodes_for): Add new argument 'update_p'.
9895         Add documentation.
9896         If update_p is true, add a new mapping between the LHS of
9897         each new PHI and the name that it replaces.
9898         (insert_phi_nodes_1): Only call find_idf if needed.
9899         (get_reaching_def): Call get_default_def_for.
9900         (rewrite_operand): Remove.
9901         (rewrite_stmt): Do nothing if REGISTER_DEFS_IN_THIS_STMT
9902         and REWRITE_THIS_STMT are false.
9903         Assume that all the operands in the statement are in
9904         normal form.
9905         (rewrite_add_phi_arguments): Don't use PHI_REWRITTEN.
9906         (rewrite_virtual_phi_arguments): Remove.
9907         (invalidate_name_tags): Remove.
9908         (register_new_update_single, register_new_update_set,
9909         rewrite_update_init_block, replace_use,
9910         rewrite_update_fini_block, rewrite_update_stmt,
9911         rewrite_update_phi_arguments): New.
9912         rewrite_blocks): Remove argument 'fix_virtual_phis'.
9913         Add arguments 'entry', 'what' and 'blocks'.
9914         Initialize the dominator walker according to 'what' and
9915         'blocks'.
9916         Start the dominator walk at 'entry'.
9917         (mark_def_site_blocks): Add argument 'interesting_blocks'.
9918         Use it to configure the dominator walker.
9919         (rewrite_into_ssa): Remove argument 'all'.
9920         Make internal.
9921         (rewrite_all_into_ssa): Remove.
9922         (rewrite_def_def_chains): Remove.
9923         (mark_def_interesting, mark_use_interesting,
9924         prepare_phi_args_for_update, prepare_block_for_update,
9925         prepare_def_site_for, prepare_def_sites,
9926         dump_names_replaced_by, debug_names_replaced_by,
9927         dump_repl_tbl, debug_repl_tbl, init_update_ssa,
9928         delete_update_ssa, create_new_def_for,
9929         register_new_name_mapping, mark_sym_for_renaming,
9930         mark_set_for_renaming, need_ssa_update_p,
9931         name_registered_for_update_p, ssa_names_to_replace,
9932         release_ssa_name_after_update_ssa,
9933         insert_updated_phi_nodes_for, update_ssa): New.
9934         * tree-loop-linear.c (linear_transform_loops): Call
9935         update_ssa instead of rewrite_into_ssa.
9936         * tree-optimize.c (vars_to_rename): Remove.
9937         Update all users.
9938         (init_tree_optimization_passes): Replace
9939         pass_redundant_phi with pass_copy_prop.
9940         Add pass_vrp.
9941         Replace pass_ccp with pass_store_ccp.
9942         Add pass_store_copy_prop after pass_store_ccp.
9943         (execute_todo): If the TODO_ flags don't include updating
9944         the SSA form, assert that it does not need to be updated.
9945         Call update_ssa instead of rewrite_into_ssa and
9946         rewrite_def_def_chains.
9947         If TODO_verify_loops is set, call verify_loop_closed_ssa.
9948         (tree_rest_of_compilation):
9949         * tree-pass.h (TODO_dump_func, TODO_ggc_collect,
9950         TODO_verify_ssa, TODO_verify_flow, TODO_verify_stmts,
9951         TODO_cleanup_cfg): Renumber.
9952         (TODO_verify_loops, TODO_update_ssa,
9953         TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
9954         TODO_update_ssa_only_virtuals): Define.
9955         (pass_copy_prop, pass_store_ccp, pass_store_copy_prop, pass_vrp):
9956         Declare.
9957         * tree-phinodes.c (make_phi_node): Update documentation.
9958         (remove_all_phi_nodes_for): Remove.
9959         (find_phi_node_for): New.
9960         * tree-pretty-print.c (dump_generic_node): Handle ASSERT_EXPR.
9961         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Likewise.
9962         (interpret_rhs_modify_expr): Likewise.
9963         * tree-sra.c (decide_instantiations): Mark all symbols in
9964         SRA_CANDIDATES for renaming.
9965         (mark_all_v_defs_1): Rename from mark_all_v_defs.
9966         (mark_all_v_defs): New function.  Update all users to call it
9967         with the whole list of scalarized statements, not just the
9968         first one.
9969         * tree-ssa-alias.c (count_ptr_derefs): Make extern.
9970         (compute_flow_insensitive_aliasing): If the tag is
9971         unmodifiable and the variable isn't or vice-versa, don't
9972         make them alias of each other.
9973         (setup_pointers_and_addressables): If the type tag for
9974         VAR is about to change, mark the old one for renaming.
9975         (add_type_alias): New.
9976         * tree-ssa-ccp.c: Document SSA-CCP and STORE-CCP.
9977         (ccp_lattice_t): Rename from latticevalue.
9978         (value): Remove.  Update all users.
9979         (const_val): New local variable.
9980         (do_store_ccp): New local variable.
9981         (dump_lattice_value): Handle UNINITIALIZED.
9982         (debug_lattice_value): New.
9983         (get_default_value): Re-write.
9984         (set_lattice_value): Re-write.
9985         (def_to_varying): Remove.  Update all users.
9986         (likely_value): Return VARYING for statements that make
9987         stores when STORE_CCP is false.
9988         Return VARYING for any statement other than MODIFY_EXPR,
9989         COND_EXPR and SWITCH_EXPR.
9990         (ccp_initialize): Re-write.
9991         (replace_uses_in, replace_vuse_in, substitute_and_fold):
9992         Move to tree-ssa-propagate.c.
9993         (ccp_lattice_meet): Handle memory stores when
9994         DO_STORE_CCP is true.
9995         (ccp_visit_phi_node): Likewise.
9996         (ccp_fold): Likewise.
9997         (evaluate_stmt): Likewise.
9998         (visit_assignment): Likewise.
9999         (ccp_visit_stmt): Likewise.
10000         (execute_ssa_ccp): Add argument 'store_ccp'.  Copy it
10001         into DO_STORE_CCP.
10002         (do_ssa_ccp): New.
10003         (pass_ccp): Use it.
10004         (do_ssa_store_ccp): New.
10005         (gate_store_ccp): New.
10006         (pass_store_ccp): Declare.
10007         * tree-ssa-copy.c: Include tree-ssa-propagate.h.
10008         (may_propagate_copy): Reformat.
10009         Don't abort if ORIG is a virtual and DEST isn't.
10010         If NEW does not have alias information but DEST does,
10011         copy it.
10012         (copy_of, cached_last_copy_of, do_store_copy_prop, enum
10013         copy_prop_kind, which_copy_prop): Declare.
10014         (stmt_may_generate_copy, get_copy_of_val,
10015         get_last_copy_of, set_copy_of_val, dump_copy_of,
10016         copy_prop_visit_assignment, copy_prop_visit_cond_stmt,
10017         copy_prop_visit_stmt, copy_prop_visit_phi_node,
10018         init_copy_prop, fini_copy_prop, execute_copy_prop,
10019         gate_copy_prop, do_copy_prop, gate_store_copy_prop,
10020         store_copy_prop): New.
10021         (pass_copy_prop, pass_store_copy_prop): Declare.
10022         * tree-ssa-dom.c (struct opt_stats_d): Add fields
10023         'num_const_prop' and 'num_copy_prop'.
10024         (cprop_operand): Update them.
10025         (dump_dominator_optimization_stats): Dump them.
10026         (tree_ssa_dominator_optimize): Call update_ssa instead of
10027         rewrite_into_ssa.
10028         (loop_depth_of_name): Declare extern.
10029         (simplify_cond_and_lookup_avail_expr): Guard against NULL
10030         values for LOW or HIGH.
10031         (cprop_into_successor_phis): Only propagate if NEW != ORIG.
10032         (record_equivalences_from_stmt): Call expr_computes_nonzero.
10033         (cprop_operand): Only propagate if VAL != OP.
10034         * tree-ssa-dse.c (dse_optimize_stmt): Mark symbols in removed
10035         statement for renaming.
10036         * tree-ssa-loop-im.c (move_computations): Call update_ssa.
10037         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call
10038         add_type_alias if necessary.
10039         Call mark_new_vars_to_rename.
10040         (tree_ssa_iv_optimize): If new symbols need to be renamed,
10041         mark every statement updated, call update_ssa and
10042         rewrite_into_loop_closed_ssa.
10043         * tree-ssa-loop-manip.c (add_exit_phis): Do not remove DEF_BB
10044         from LIVEIN if VAR is a virtual.
10045         * tree-ssa-loop.c (tree_loop_optimizer_init): Call update_ssa.
10046         * tree-ssa-operands.c (get_expr_operands): Handle ASSERT_EXPR.
10047         (get_call_expr_operands): Reformat statement.
10048         (add_stmt_operand): Don't create V_MAY_DEFs for read-only
10049         symbols.
10050         * tree-ssa-propagate.c (ssa_prop_init): Initialize
10051         SSA_NAME_VALUE for every name.
10052         (first_vdef, stmt_makes_single_load, stmt_makes_single_store,
10053         get_value_loaded_by): New.
10054         (replace_uses_in, replace_vuses_in, replace_phi_args_in,
10055         substitute_and_fold): Move from tree-ssa-ccp.c.
10056         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t,
10057         first_vdef, stmt_makes_single_load, stmt_makes_single_store,
10058         get_value_loaded_by, replace_uses_in, substitute_and_fold):
10059         Declare.
10060         * tree-ssa.c (verify_use): Fix error message.
10061         (propagate_into_addr, replace_immediate_uses, get_eq_name,
10062         check_phi_redundancy, kill_redundant_phi_nodes,
10063         pass_redundant_phi): Remove.  Update all users.
10064         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
10065         add_type_alias, if necessary.
10066         * tree-vectorizer.h (struct _stmt_vect_info): Update
10067         documentation for field 'memtag'.
10068         * tree-vrp.c: New file.
10069         * tree.def (ASSERT_EXPR): Define.
10070         * tree.h (ASSERT_EXPR_VAR): Define.
10071         (ASSERT_EXPR_COND): Define.
10072         (SSA_NAME_VALUE_RANGE): Define.
10073         (struct tree_ssa_name): Add field 'value_range'.
10074         (PHI_REWRITTEN): Remove.
10075         (struct tree_phi_node): Remove field 'rewritten'.
10076         * doc/invoke.texi (-fdump-tree-storeccp, -ftree-copy-prop,
10077         -ftree-store-copy-prop): Document.
10078         * doc/tree-ssa.texi: Remove broken link to McCAT's compiler.
10079         Document usage of update_ssa.
10080
10081 2005-04-08  David Edelsohn  <edelsohn@gnu.org>
10082
10083         PR target/20814
10084         * config/rs6000/predicates.md (altivec_register_operand): Accept
10085         SUBREG.
10086         (and64_operand): Do not limit CONST_INT to mask64_operand.
10087         (and64_2_operand): Do not limit CONST_INT to mask64_1or2_operand.
10088         (and_operand): Do not limit CONST_INT to mask_operand.
10089
10090 2005-04-09  Hans-Peter Nilsson  <hp@axis.com>
10091
10092         PR rtl-optimization/20466
10093         * flow.c (invalidate_mems_from_set): Handle a MEM by checking it
10094         for overlap of the address of each list member.
10095         (mark_set_1): Call invalidate_mems_from_set for MEMs too.
10096
10097 2005-04-08  Mike Stump  <mrs@apple.com>
10098
10099         * config/darwin.c (indirect_data): Fix typo in strncmp logic.
10100
10101         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use 5 nops,
10102         instead of 4.
10103
10104 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
10105
10106         * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
10107
10108         * function.c (push_function_context_to): Don't set
10109         contains_functions.
10110         * function.h (function): Remove contains_functions.
10111         (current_function_contains_functions): Remove.
10112
10113         * function.h (function): Remove instrument_entry_exit.
10114         (current_function_instrument_entry_exit): Remove.
10115
10116         * function.h (nonlocal_labels): Remove.
10117
10118         * tree.h (STRIP_MAIN_TYPE_NOPS): Remove.
10119
10120         * genattrtab.c (attr_desc): Remove negative_ok and unsigned_p.
10121         (check_attr_value, write_attr_get, write_expr_attr_cache,
10122         find_attr, make_internal_attr): Don't reference negative_ok or
10123         unsigned_p.
10124         * genattrtab.h (ATTR_NEGATIVE_OK, ATTR_UNSIGNED,
10125         ATTR_FUNC_UNITS, ATTR_BLOCKAGE): Remove.
10126         (ATTR_STATIC): Adjust the value.
10127
10128         * c-common.h (C_ARTIFICIAL_STRING_P): Remove.
10129
10130 2005-04-08  Ulrich Weigand  <uweigand@de.ibm.com>
10131
10132         * config/s390/tpf.h (ASM_SPEC): Define.
10133
10134 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
10135
10136         * tree-flow.h: Remove the prototype for
10137         redirect_immediate_uses.
10138         (TDFA_USE_OPS, TDFA_USE_VOPS): Remove.
10139
10140 2005-04-08  Richard Earnshaw  <richard.earnshaw@arm.com>
10141
10142         * arm.c (arm_const_double_by_parts): New function.
10143         * arm-protos.h (arm_const_double_by_parts): Add prototype.
10144         * arm.md (define_split for 64-bit constants): Add another one.
10145
10146 2005-04-08  Andrew MacLeod  <amacleod@redhat.com>
10147
10148         * tree-ssa-operands.c (correct_use_link): Remove linear scan.
10149
10150 2005-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10151
10152         * system.h: Revert last change.
10153
10154 2005-04-08  Richard Sandiford  <rsandifo@redhat.com>
10155
10156         * config/xtensa/xtensa.h (target_flags, MASK_NO_FUSED_MADD)
10157         (MASK_CONST16, TARGET_NO_FUSED_MADD, TARGET_CONST16)
10158         (TARGET_SWITCHES): Delete.
10159         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
10160         * config/xtensa/xtensa.md (muladdsf3, mulsubsf3): Check
10161         TARGET_FUSED_MADD instead of !TARGET_NO_FUSED_MADD.
10162         * config/xtensa/xtensa.opt: New file.
10163
10164 2005-04-08  Ben Elliston  <bje@au.ibm.com>
10165
10166         * config/fp-bit.c: Include L_mul_tf in #endif comment.
10167         * config/fp-bit.h: Tidy comments.
10168
10169 2005-04-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10170
10171         * system.h: Poison PARAMS.
10172
10173 2005-04-07  Richard Sandiford  <rsandifo@redhat.com>
10174
10175         * config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
10176         (MASK_G_FLOAT, TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT)
10177         (TARGET_SWITCHES): Delete.
10178         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
10179         * config/vax/vax.opt: New file.
10180
10181 2005-04-07  Daniel Berlin  <dberlin@dberlin.org>
10182
10183         * tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
10184
10185 2005-04-07  Ian Lance Taylor  <ian@airs.com>
10186
10187         * config/iq2000/iq2000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Don't
10188         define.
10189         * config/mips/mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
10190         * config/sparc/sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE):
10191         Likewise.
10192
10193 2005-04-07  Kazu Hirata  <kazu@cs.umass.edu>
10194
10195         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Consider
10196         all immediate uses in PHI nodes.
10197
10198 2005-04-07  Richard Earnshaw  <richard.earnshaw@arm.com>
10199
10200         * arm.c (arm_const_double_inline_cost): Handle any constant by
10201         using gen_lowpart and gen_highpart_mode.
10202         (note_invalid_constants): All constants in an RTX with a constraint
10203         that permits memory are now pushed to the constant pool.
10204         (output_move_double): Delete code to handle reg to reg and
10205         constant to reg moves.
10206         (const_double_needs_minipool, output_mov_immediate): Delete.
10207         * arm.h (EXTRA_CONSTRAINT_STR_ARM): All 'D' variants now handle
10208         CONST_INT and CONST_VECTOR.
10209         * arm.md (ANY64): New mode macro.
10210         (arm_movdi): Split reg-reg and const-reg moves.  Simplify constraints.
10211         (movdf_soft_insn): Split reg-reg and const-reg moves.
10212         (split patterns for 64-bit constant and register moves): New.
10213         * cirrus.md (cirrus_arm_movdi): Split reg-reg and const-reg moves.
10214         (cirrus_movdf_hard_insn): Likewise.
10215         * fpa.md (movdf_fpa): Likewise.
10216         * iwmmxt.md (iwmmxt_arm_movdi): Likewise.
10217         (movv8qi_internal, movv4hi_internal, movv2si_internal): Fix
10218         constraints.
10219         (movv2si_internal_2): Likewise.
10220         * vfp.md (arm_movdi_vfp): Split reg-reg and const-reg moves.
10221         (movdf_vfp): Likewise.
10222         * arm-protos.h (output_mov_immediate): Delete prototype.
10223
10224 2005-04-07  Joseph S. Myers  <joseph@codesourcery.com>
10225
10226         PR target/20093
10227         * simplify-rtx.c (simplify_unary_operation_1): Check
10228         SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
10229
10230 2005-04-06  James E Wilson  <wilson@specifixinc.com>
10231
10232         PR target/20717
10233         * cgraphunit.c (record_call_1, case FDESC_EXPR): Handle same as
10234         ADDR_EXPR.
10235
10236 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
10237
10238         * coverage.h (GCOV_TYPE_NODE): Delete.
10239         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref)
10240         (build_ctr_info_type): Use get_gcov_type () instead of GCOV_TYPE_NODE.
10241         * tree-profile.c (tree_gen_edge_profiler, tree_gen_interval_profiler)
10242         (tree_gen_pow2_profiler, tree_gen_one_value_profiler): Likewise.
10243         * value-prof.c (tree_divmod_fixed_value_transform): Delete.
10244
10245 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
10246
10247         PR other/20792
10248         * Makefile.in (gcc.pot): Remove options.c dependency.
10249         * optc-gen.awk: Don't quote help strings with N_().
10250
10251 2005-04-06  James A. Morrison  <phython@gcc.gnu.org>
10252
10253         * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
10254         the function returns a pointer type.
10255
10256 2005-04-06  Daniel Berlin  <dberlin@dberlin.org>
10257
10258         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): New
10259         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): New
10260         * doc/invoke.texi: Documnet salias-max-implicit-fields.
10261         * tree-ssa-alias.c (struct used_part): Add implicit_uses and
10262         explicit_uses members.
10263         (get_or_create_used_part_for): Initialize new fields.
10264         (fieldoff_compare): New function.
10265         (create_overlap_variables_for): Count number of fields, use
10266         heuristic to determine whether to create subvars for vars with
10267         only implicit uses.
10268         Sort the field list by offset and avoid creating duplicate SFT's.
10269
10270 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
10271
10272         * c.opt (-F): Remove trailing whitespace from help string.
10273         (-finput-charset): Use a tab to separate the switch name and help
10274         string.
10275         * common.opt (-fsched-stalled-insns, -fsched-stalled-insns-dep)
10276         (-ftree-vectorizer-verbose): Likewise.
10277
10278 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
10279
10280         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Look at
10281         a PHI argument where a use occurs instead of all PHI arguments.
10282
10283 2005-04-06  Joseph S. Myers  <joseph@codesourcery.com>
10284
10285         * c-decl.c (finish_decl): Apply pending #pragma weak regardless of
10286         scope.
10287
10288 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
10289
10290         * cse.c, tree-flow-inline.h, tree-flow.h, tree-ssa-operands.c,
10291         tree-ssa-sink.c, tree.h, config/bfin/bfin.c,
10292         config/bfin/bfin.h: Fix comment typos.
10293
10294 2005-04-06  Ranjit Mathew  <rmathew@hotmail.com>
10295
10296         * doc/install.texi: Update the URL for Jacks.
10297         * doc/sourcebuild.texi: Likewise.
10298
10299 2005-04-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
10300
10301         PR target/17245
10302         * config/sparc/sparc.c (legitimate_address_p): Remove 'imm2'.
10303         Revert 2004-10-08 patch.  Reject TFmode LO_SUM in 32-bit mode.
10304
10305 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
10306
10307         * Makefile.in (LIBGCC2_CFLAGS): Revert -pipe change.
10308
10309 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
10310
10311         * config/v850/v850-protos.h (override_options): Delete.
10312         * config/v850/v850.h (target_flags, MASK_GHS, MASK_LONG_CALLS, MASK_EP)
10313         (MASK_PROLOG_FUNCTION, MASK_DEBUG, MASK_V850, MASK_V850E)
10314         (MASK_SMALL_SLD, MASK_BIG_SWITCH, MASK_NO_APP_REGS, MASK_DISABLE_CALLT)
10315         (MASK_STRICT_ALIGN, MASK_US_BIT_SET, MASK_US_MASK_SET, TARGET_GHS)
10316         (TARGET_LONG_CALLS, TARGET_EP, TARGET_PROLOG_FUNCTION, TARGET_V850)
10317         (TARGET_BIG_SWITCH, TARGET_DEBUG, TARGET_V850E, TARGET_US_BIT_SET)
10318         (TARGET_SMALL_SLD, TARGET_DISABLE_CALLT, TARGET_NO_APP_REGS)
10319         (TARGET_STRICT_ALIGN, TARGET_SWITCHES, TARGET_OPTIONS)
10320         (OVERRIDE_OPTIONS): Delete.
10321         (MASK_CPU): Redefine as MASK_V850 | MASK_V850E.
10322         (small_memory_info): Remove the value field.
10323         (CONDITIONAL_REGISTER_USAGE): Check !TARGET_APP_REGS rather than
10324         TARGET_NO_APP_REGS.
10325         * config/v850/v850.c (small_memory): Remove the value field.
10326         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
10327         (override_options): Delete.
10328         (v850_handle_memory_option, v850_handle_option): New functions.
10329         * config/v850/v850.opt: New file.
10330
10331 2005-04-06  Geoffrey Keating  <geoffk@apple.com>
10332
10333         * config.host: Add a section for generic hosts, and a subsection
10334         for Darwin.  Add a case for x86-darwin.  Update ppc-darwin case.
10335         * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c.
10336         * config/host-darwin.h: New.
10337         * config/x-darwin: New.
10338         * config/i386/host-i386-darwin.c: New.
10339         * config/i386/x-darwin: New.
10340         * config/rs6000/host-darwin.c: Include host-darwin.h.
10341         (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c.
10342         (darwin_rs6000_gt_pch_use_address): Likewise.
10343         * config/rs6000/x-darwin: Change name of .o built, update
10344         dependencies for changes to rs6000/host-darwin.c.
10345
10346 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
10347
10348         PR target/17824
10349         * config/c4x/c4x.h (ASM_PROG, LD_PROG): Remove.
10350
10351 2005-04-06  Dorit Naishlos  <dorit@il.ibm.com>
10352
10353         * tree-vect-analyze.c (vect_analyze_loop_form): Call
10354         split_loop_exit_edge instead of loop_split_edge_with.
10355
10356 2005-04-06  Paolo Bonzini  <bonzini@gnu.org>
10357
10358         * config/rs6000/altivec.md (UNSPEC_VSLW, UNSPEC_SUBS,
10359         UNSPEC_SET_VSCR): New constants, used throughout.
10360         (*andc3_v4sf): New.
10361         (altivec_vspltisb, altivec_vsplitish, altivec_vsplitisw):
10362         Replace with...
10363         (altivec_vspltis<VI_char>): ... this pattern, using
10364         a QImode const_int_operand for the immediate.
10365         (abs<mode>2, absv4sf2, altivec_abss_<mode>): Rewrite as
10366         define_expands.
10367
10368 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
10369
10370         PR target/17822
10371         * config/avr/t-avr (AR_FOR_TARGET,RANLIB_FOR_TARGET): Remove.
10372
10373 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
10374
10375         * Makefile.in (LIBGCC2_CFLAGS): Compile with -pipe.
10376
10377 2005-04-06  Ben Elliston  <bje@au.ibm.com>
10378
10379         * gcc.c: Correct comment about DEFAULT_SWITCH_TAKES_ARG and
10380         DEFAULT_WORD_SWITCH_TAKES_ARG which incorrectly reported these
10381         macros as living in "this file" and not gcc.h.
10382
10383 2005-04-06  Ben Elliston  <bje@au.ibm.com>
10384
10385         * doc/invoke.texi (Optimize Options): Mention -ftree-lrs, not
10386         -ftree-live_range_split.  Perhaps renamed at some point?
10387
10388 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
10389
10390         PR target/20625
10391         * tree-ssa-loop-ivopts.c (generic_type_for): New function.
10392         (add_candidate_1): Use generic_type_for instead of unsigned_type_for.
10393
10394 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
10395
10396         * tree-flow.h (number_of_iterations_cond): Declaration removed.
10397         * tree-ssa-loop-niter.c (number_of_iterations_cond): Made static.
10398         (number_of_iterations_special): New function.
10399         (number_of_iterations_exit): Use number_of_iterations_special.
10400         Use simplify_using_outer_evolutions only at -O3.
10401         (number_of_iterations_cond, tree_simplify_using_condition,
10402         simplify_using_initial_conditions, loop_niter_by_eval,
10403         compare_trees, can_count_iv_in_wider_type_bound,
10404         simplify_using_outer_evolutions): Use fold_build.
10405
10406 2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
10407
10408         * doc/install.texi (Configuration): Document --with-java-home.
10409
10410 2005-04-05  Richard Henderson  <rth@redhat.com>
10411
10412         PR target/20342
10413         PR target/20447
10414         * config/i386/i386.c (print_operand): Handle vector zeros.
10415         (ix86_split_to_parts): Handle CONST_VECTOR.
10416         (ix86_hard_regno_mode_ok): Allow MMX modes in general regs.
10417         (ix86_modes_tieable_p): Use ix86_hard_regno_mode_ok to decide
10418         what modes to tie for MMX and SSE registers.
10419         * config/i386/i386.h (MMX_REG_MODE_P): Remove.
10420         * config/i386/i386.md: Extend move 0 -> xor peephole to apply
10421         to vector modes as well.
10422         * config/i386/predicates.md (const0_operand): Handle VOIDmode
10423         properly as an input mode.
10424
10425 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
10426
10427         * tree-ssa-operands.c (verify_abort): Use %p for pointers.
10428
10429 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
10430
10431         * tree-pretty-print.c (dump_generic_node): Use %p for pointer.
10432
10433 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
10434
10435         * config/i386/i386.c (init_cumulative_args): For -m32 -mfpmath=sse
10436         and local functions, set sse_nregs to 8 and float_in_sse.
10437         (function_arg_advance, function_arg): If float_in_sse, pass
10438         SFmode and DFmode arguments in SSE registers.
10439         * config/i386/i386.h (CUMULATIVE_ARGS): Add float_in_sse field.
10440
10441         * config/i386/i386.c (ix86_value_regno): Only optimize local functions
10442         of -funit-at-a-time.
10443
10444 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
10445
10446         * config/i386/i386-protos.h (ix86_function_value): Accept two
10447         arguments, like the target macro.
10448         * config/i386/i386.h (FUNCTION_VALUE): Pass both arguments.
10449         * config/i386/i386.c (ix86_function_value): Accept the second
10450         argument of the target macro.
10451         (ix86_function_ok_for_sibcall): Pass a function pointer to
10452         ix86_function_value.
10453         (ix86_function_value, ix86_libcall_value) [!TARGET_64BIT]: Adjust
10454         call to ix86_value_regno).
10455         (ix86_value_regno): Add support for returning floating point values
10456         in SSE registers.
10457
10458 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
10459
10460         PR tree-optimization/20076
10461         * tree-inline.c (inline_forbidden_p_1): Prevent inlining functions
10462         that call __builtin_return or __builtin_apply_args.
10463
10464 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
10465
10466         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use update_stmt.
10467         Use immediate use iterator.
10468         (stmt_is_bumper_for_loop): Use immediate use iterator.
10469         * predict.c (strip_builtin_expect): Use update_stmt.
10470         * tree-cfg.c (update_modified_stmts): New. Call update_stmt_if_modified
10471         on all elements of a STATEMENT_LIST.
10472         (bsi_insert_before, bsi_insert_after): Call update_modified_stmts.
10473         (bsi_remove): Remove imm_use links and mark the stmt as modified.
10474         (bsi_replace): Mark stmt as modified and the update it.
10475         * tree-complex.c (update_complex_assignment): Call mark_stmt_modified.
10476         (expand_complex_libcal): Call update_stmt.
10477         (expand_complex_comparison): Call mark_stmt_modified.
10478         (expand_complex_operations_1): Call update_stmt_if_modified.
10479         (expand_vector_operations_1): Call mark_stmt_modified.
10480         * tree-dfa.c (compute_immediate_uses, free_df_for_stmt, free_df,
10481         compute_immediate_uses_for_phi, compute_immediate_uses_for_stmt,
10482         add_immediate_use, redirect_immediate_use,
10483         redirect_immediate_uses, dump_immediate_uses, debug_immediate_uses,
10484         dump_immediate_uses_for, debug_immediate_uses_for): Delete.
10485         (mark_new_vars_to_rename): Call update_stmt.
10486         * tree-dump.c (dump_option_value_in): Add "stmtaddr".
10487         * tree-flow-inline.h (modify_stmt): Rename to mark_stmt_modified.
10488         Ignore PHI nodes.
10489         (unmodify_stmt): Delete.
10490         (update_stmt): New.  Force an update of a stmt.
10491         (update_stmt_if_modified): update a stmt if it is out of date.
10492         (get_stmt_operands): Verify stmt is NOT modified.
10493         (stmt_modified_p): Update comment.
10494         (delink_imm_use): Remove a use node from its immuse list.
10495         (link_imm_use_to_list): Link a use node to a specific list.
10496         (link_imm_use): Link a node to the correct list.
10497         (set_ssa_use_from_ptr): Set a use node to a specific value, and insert
10498         it in the correct list, if appropriate.
10499         (link_imm_use_stmt): Link a use node, and set the stmt pointer.
10500         (relink_imm_use): Link a use node in place of another node in a list.
10501         (relink_imm_use_stmt): LInk a node in place of another node, and set
10502         the stmt pointer.
10503         (end_safe_imm_use_traverse): New.  Terminate a safe immuse iterator.
10504         (end_safe_imm_use_p): New.  Check for the end of a safe immuse iterator.
10505         (first_safe_imm_use): New.  Initialize a safe immuse iterator.
10506         (next_safe_imm_use): New.  Proceed to next safe immuse iterator value.
10507         (end_readonly_imm_use_p): New.  Check for end of a fast immuse iterator.
10508         (first_readonly_imm_use): New.  Initialize a fast immuse iterator.
10509         (next_readonly_imm_use): New.  Get the next fast immuse iterator value.
10510         (has_zero_uses): New.  Return true if there are no uses of a var.
10511         (has_single_use): New.  Return true if there is only a single use of a
10512         variable.
10513         (single_imm_use): New.  Return the simgle immediate use.
10514         (num_imm_uses): New.  Return the number of immediate uses.
10515         (get_v_must_def_ops): Use is now a pointer.
10516         (use_operand_p, get_v_may_def_op_ptr, get_vuse_op_ptr,
10517         get_v_must_def_kill_ptr, get_phi_arg_def_ptr): Return the address of
10518         the use node.
10519         (get_immediate_uses, num_immediate_uses, immediate_use): Delete.
10520         (delink_stmt_imm_use): Delink all immuses from a stmt.
10521         (phi_arg_index_from_use): New.  Return a phi arg index for a use.
10522         * tree-flow.h (struct dataflow_d): Delete.
10523         (immediate_use_iterator_d): New.  Immediate use iterator struct.
10524         (FOR_EACH_IMM_USE_FAST): New.  Macro for read only immuse iteration.
10525         (FOR_EACH_IMM_USE_SAFE): New.  Macro for write-safe immuse iteration.
10526         (BREAK_FROM_SAFE_IMM_USE): New.  Macro for earlyu exit from write-safe
10527         iteration.
10528         (struct stmt_ann_d): Remove dataflow_t from struct.
10529         * tree-if-conv.c (tree_if_conversion).  Don't call free_df.
10530         (if_convertible_phi_p): Use FAST immuse iterator.
10531         (if_convertible_loop_p): Don't call compute_immediate_uses.
10532         (replace_phi_with_cond_modify_expr): Call update_stmt.
10533         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites): Call
10534         update_stmt_if_modified.
10535         (rewrite_all_into_ssa): Initialize ssa operands.
10536         * tree-loop-linear.c (linear_transform_loops): Don't call free_df or
10537         compute_immediate_uses.
10538         * tree-optimize.c (execute_todo): Call verify_ssa whenever the
10539         ssa_property is available.
10540         (execute_one_pass):  Change parameters passed to execute_todo.
10541         * tree-outof-ssa.c (rewrite_trees): Don't call modify_stmt.
10542         (remove_ssa_form): Call fini_ssa_operands.
10543         (insert_backedge_copies): Delete call to modify_stmt.
10544         * tree-phinodes.c (make_phi_node): Initialize use nodes.
10545         (release_phi_node): Delink any use nodes before releasing.
10546         (resize_phi_node): Relink any use nodes.
10547         (remove_phi_arg_num): Delink the use node.
10548         (remove_phi_node): Release the ssa_name AFTER releasing the phi node.
10549         (remove_all_phi_nodes_for): Release phi node first.
10550         * tree-pretty-print.c (dump_generic_node): Print stmt address.
10551         * tree-sra.c (mark_all_v_defs): Call update_stmt_if_modified.
10552         (scalarize_use, scalarize_copy): Call update_stmt.
10553         * tree-ssa-alias.c (compute_may_aliases): Update all modified stmts.
10554         (compute_points_to_and_addr_escape): Call mark_stmt_modified.
10555         * tree-ssa-cpp.c (need_imm_uses_for): Delete.
10556         (ccp_initialize): Remove call to compute_immediate_uses.
10557         (substitute_and_fold, execute_fold_all_builtins): Call update_stmt.
10558         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update all modified
10559         stmts.
10560         (simplify_cond_and_lookup_avail_expr): Call mark_stmt_modified.
10561         (simplify_switch_and_lookup_avail_expr): Call mark_stmt_modified.
10562         (eliminate_redundant_computations): Call mark_stmt_modified.
10563         (cprop_operand): Call mark_stmt_modified.
10564         (optimize_stmt): Call update_stmt_if_modified and mark_stmt_modified.
10565         * tree-ssa-dse.c (fix_phi_uses, fix_stmt_v_may_defs): Delete.
10566         (dse_optimize_stmt): Use new immuse interface.
10567         (tree_ssa_dse): Remove calls to compute_immediate_uses and free_df.
10568         * tree-ssa-forwprop.c (need_imm_uses_for): Delete.
10569         (substitute_single_use_vars): Use new immuse interface.
10570         (tree_ssa_forward_propagate_single_use_vars): Remove calls to free_df
10571         and compute_immediate_uses.
10572         * tree-ssa-loop-im.c (single_reachable_address): Use new immuse
10573         interface.
10574         (rewrite_mem_refs): Call update_stmt.
10575         (determine_lsm): Remove call to compute_imm_uses and free_df.
10576         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Call update_stmt.
10577         (try_unroll_loop_completely): Call update_stmt.
10578         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call update_stmt.
10579         (rewrite_use_compare): Call update_stmt.
10580         (compute_phi_arg_on_exit): Insert each stmt before trying to process.
10581         (rewrite_use) : Call update_stmt.
10582         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Add arg to call.
10583         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Call
10584         update_stmt.
10585         * tree-ssa-operands.c (NULL_USE_OPERAND_P): Remove declaration.
10586         (allocate_use_optype, allocate_vuse_optype): Adjust allocation size.
10587         (free_uses, free_vuses, free_v_may_defs, free_v_must_defs): Delink
10588         use nodes.
10589         (initialize_vuse_operand): New.  Initialize a vuse operand.
10590         (initialize_v_may_def_operand): New.  Initialize a maydef operand.
10591         (initialize_v_must_def_operand): New.  Initialize a mustdef operand.
10592         (finalize_ssa_defs): Use stmt parameter.
10593         (correct_use_link): Ensure a use node is in the correct list, and has
10594         the correct stmt pointer.
10595         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_vuses,
10596         finalize_ssa_v_must_defs): Also initialize use nodes.
10597         (finalize_ssa_stmt_operands): Pass extra stmt operands.
10598         (build_ssa_operands): Seperate parsing from final operand construction.
10599         (parse_ssa_operands): New.  Parse entry point for operand building.
10600         (swap_tree_operands): New.  Swap 2 tree operands.
10601         (update_stmt_operands): Ranamed from get_stmt_operands.  Always builds
10602         operands.
10603         (get_expr_operands): Call swap_tree_operands when needed.
10604         (copy_virtual_operands): Use initialize routines for virtual use ops.
10605         (create_ssa_artficial_load_stmt): Add extra stmt parameter.
10606         (verify_abort): New.  Issue imm_use error.
10607         (verify_imm_links): New Verify imm_use links for a var.
10608         (dump_immediate_uses_for): New.  Dump imm_uses for a var to file.
10609         (dump_immediate_uses): New.  Dump imm_uses for all vars to file.
10610         (debug_immediate_uses): New.  Dump imm_uses for all vars to stderr.
10611         (debug_immediate_uses_for): New.  Dump imm_uses for a var to stderr.
10612         * tree-ssa-operands.h (struct use_operand_ptr): Delete.
10613         (NULL_USE_OPERAND_P) Define.
10614         (use_optype_d, v_def_use_operand_type, vuse_optype_d): Add immediate
10615         use node.
10616         (struct vuse_operand_type): New struct.
10617         (SET_USE): Call set_ssa_use_from_ptr.
10618         (USE_STMT): Define.
10619         (PHI_ARG_INDEX_FROM_USE): Define.
10620         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Set the phi
10621         argument via SET_USE, not PHI_ARG_DEF_TREE.
10622         * tree-ssa-pre.c (eliminate): Call update_stmt.
10623         * tree-ssa-propagate.c (cfg_blocks_get): Use imm_use iterators.  Don't
10624         call free_df.
10625         * tree-ssa-sink.c (all_immediate_uses_same_place): Use imm_use iterator.
10626         (nearest_common_dominator_of_uses): Use imm_use iterator.
10627         (statement_sink_location): Use imm_use iterator and interface.
10628         (execute_sink_code): Don't call compute_immediate_uses or free-df.
10629         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): Use
10630         PHI_ARG_DEF, not PHI_ARG_DEF_TREE.
10631         * tree-ssa.c (verify_use, verify_phi_args): Verify some imm_use info.
10632         (verify_ssa): Ensure no stmt is marked modify after optimization pass
10633         if new parameter is true.
10634         (init_tree_ssa): Don't initialize operand cache here.
10635         (delete_tree_ssa): Don't destroy operand cache here.
10636         (propagate_into_addr): Pass in a use pointer, return true if anything
10637         was changed.
10638         (replace_immediate_uses): Use imm_use iterator, call update_stmt.
10639         (check_phi_redundancy): Use imm_use iterator.
10640         (kill_redundant_phi_nodes): Don't call compute_immediate_uses or
10641         free_df.
10642         * tree-ssanames.c (make_ssa_name): Initialize imm_use node.
10643         (release_ssa_name): Delink node and all elements in its imm_use list.
10644         * tree-tailcall.c (adjust_return_value): Call update_stmt.
10645         * tree-vect-analyze.c (vect_stmt_relevant_p): Use imm_use iterator.
10646         * tree-vectorizer.c (need_imm_uses_for): Delete.
10647         (vectorize_loops): Dont call compute_immediate_uses or free_df.
10648         * tree.h (struct ssa_imm_use_d): Define.
10649         (SSA_NAME_IMM_USE_NODE): Define.
10650         (struct tree_ssa_name): Add imm_use node.
10651         (PHI_DF): Delete.
10652         (PHI_ARG_IMM_USE_NODE): Define.
10653         (struct phi_arg_d): Add imm_use node.
10654         (struct tree_phi_node): Remove struct dataflow_d element.
10655         (TDF_STMTADDR): Define.
10656
10657 2005-04-05  Dale Johannesen  <dalej@apple.com>
10658
10659         * doc/invoke.texi (Optimization Options):  Remove
10660         duplicate -fcse-follow-jumps.  Add -fweb.
10661         (-ftree-lim):  Fix spelling (-ftree-loop-im, invariants).
10662         (-fivcanon):  Fix spelling (-ftree-loop-ivcanon).
10663
10664 2005-04-05  Per Bothner  <per@bothner.com>
10665
10666         * tree-ssa.c (execute_early_warn_uninitialized): Pass context node
10667         to talk_tree as 'data' parameter, rather than EXPR_LOCUS.
10668         (warn_uninit): Get EXPR_LOCUS from context now instead.
10669         This fixes a USE_MAPPED_LOCATION testsuite failure.
10670
10671         * tree-ssa.c (warn_uninitialized_var): Remove useless local.
10672
10673 2005-04-05  Per Bothner  <per@bothner.com>
10674
10675         * c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
10676         of the artification 'return 0' in main() to BUILTINS_LOCATION.
10677         * tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
10678         before warning.
10679
10680 2004-04-05  Devang Patel  <dpatel@apple.com>
10681
10682         * config/rs600/altivec.md (altivec_vsr<VI_char>): Rename to ..
10683         (lhsr<mode>3): ... new name.
10684         (altivec_vsra<VI_char>): Rename to ..
10685         (ashr<mode>3): ... new name.
10686         * config/rs6000/rs6000.c (builtin_description): Rename shift
10687         operations.
10688
10689 2004-04-05  Paolo Bonzini  <bonzini@gnu.org>
10690
10691         * combine.c (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Use
10692         gen_lowpart_for_combine.
10693         * cse.c (gen_lowpart_if_possible): Move...
10694         * rtlhooks.c (gen_lowpart_if_possible): ... here.  Also try
10695         gen_lowpart_SUBREG.
10696         (gen_lowpart_no_emit_general): Use it.
10697
10698 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
10699
10700         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Undefine before
10701         overriding.
10702
10703 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
10704
10705         * system.h: Fix typo.
10706
10707 2005-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
10708
10709         * config/bfin/bfin-modes.def: New file.
10710         * config/bfin/bfin-protos.h: New file.
10711         * config/bfin/bfin.c: New file.
10712         * config/bfin/bfin.h: New file.
10713         * config/bfin/bfin.md: New file.
10714         * config/bfin/bfin.opt: New file.
10715         * config/bfin/crti.s: New file.
10716         * config/bfin/crtn.s: New file.
10717         * config/bfin/elf.h: New file.
10718         * config/bfin/lib1funcs.asm: New file.
10719         * config/bfin/predicates.md: New file.
10720         * config/bfin/t-bfin: New file.
10721         * config/bfin/t-bfin-elf: New file.
10722         * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler):
10723         Document new attributes.
10724         (interrupt, interrupt_handler, saveall): Update documentation for
10725         these attributes.
10726         * doc/install.texi (Specific): Add entry for the Blackfin.
10727         * doc/invoke.texi (Blackfin Options): New section.
10728         * doc/md.texi (Blackfin family): New section to document constraints.
10729         * config.gcc: Add bfin*-* and bfin*-elf configurations.
10730
10731 2005-04-05  Olivier Hainque  <hainque@adacore.com>
10732
10733         * config/mips/iris6.h (DWARF_FRAME_RETURN_COLUMN): Redefine to
10734         match what the system unwinder expects.
10735         * config/mips/mips.c (mips_frame_set): If we're saving the return
10736         address register and the dwarf return address column number differs
10737         from the hard register number, adjust the note reg to refer to the
10738         former.
10739
10740 2004-04-05  Richard Sandiford  <rsandifo@redhat.com>
10741
10742         * config/mn10300/mn10300-protos.h (mn10300_override_options): Declare.
10743         * config/mn10300/mn10300.h (target_flags, TARGET_MULT_BUG)
10744         (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
10745         (processor_type): New enum.
10746         (mn10300_processor): New variable.
10747         (TARGET_AM33, TARGET_AM33_2): Redefine in terms of mn10300_processor.
10748         (PROCESSOR_DEFAULT, OVERRIDE_OPTIONS): New macros.
10749         * config/mn10300/linux.h (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
10750         (PROCESSOR_DEFAULT): New macro.
10751         * config/mn10300/mn10300.c (mn10300_processor): New variable.
10752         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
10753         (mn10300_handle_option, mn10300_override_options): New functions.
10754         * config/mn10300/mn10300.opt: New file.
10755
10756 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
10757             Sebastian Pop <sebastian.pop@cri.ensmp.fr>
10758
10759         PR tree-optimization/19903
10760         * tree-chrec.c (chrec_convert): Return chrec_dont_know for constants
10761         that don't fit in their type after conversion.
10762
10763 2005-04-05  Uros Bizjak <uros@kss-loka.si>
10764
10765         PR target/20421
10766         * config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
10767         (frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
10768         Allocate local stack slots here.  Set ix86_optimize_mode_switching.
10769         flag here. Implement using define_insn_and_split.
10770         (frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
10771         (frndintxf2_mask_pm_i387): New insn patterns.
10772         (floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
10773         Do not set ix86_optimize_mode_switching flag.
10774         (ceilsf2, ceildf2, ceilxf2): Same.
10775         (btruncsf2, btruncdf2, btruncxf2): Same.
10776         (nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
10777
10778 2005-04-05  Ian Lance Taylor  <ian@airs.com>
10779
10780         PR debug/9963
10781         * config/i386/cygming.h (ASM_OUTPUT_EXTERNAL): Pass DECL to
10782         i386_pe_record_external_function.
10783         (i386_pe_record_external_function): Update declaration.
10784         * config/i386/winnt.c (struct extern_list): Add decl field.
10785         (i386_pe_record_external_function): Add decl parameter.
10786         (i386_pe_file_end): Check TREE_ASM_WRITTEN on decl, not
10787         identifier.
10788         * config/i386/i386-protos.h (i386_pe_record_external_function):
10789         Update declaration.
10790
10791 2005-04-05  Kazu Hirata  <kazu@cs.umass.edu>
10792
10793         * config/m68k/m68k-protos.h: Add a prototype for
10794         valid_dbcc_comparison_p_2.
10795         * config/m68k/m68k.c (not_sp_operand, symbolic_operand,
10796         extend_operator, const_uint32_operand, const_sint32_operand,
10797         general_src_operand, nonimmediate_src_operand,
10798         memory_src_operand, post_inc_operand, pre_dec_operand,
10799         pcrel_address): Move to predicates to predicates.md.
10800         * config/m68k/m68k.h (PREDICATE_CODES): Remove.
10801         * config/m68k/m68k.md: Include predicates.md.
10802         * config/m68k/predicates.md: New.
10803
10804 2005-04-04  Roger Sayle  <roger@eyesopen.com>
10805
10806         * config/i386/i386.md (*truncdfsf2_i387_1): New pattern.
10807
10808         * fold-const.c (maybe_lvalue_p): Delete orphaned comment.
10809
10810 2005-04-04  Ian Lance Taylor  <ian@airs.com>
10811
10812         * c-typeck.c (struct c_switch): Rename switch_stmt field to
10813         switch_expr.
10814         (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT.
10815         (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND.
10816         (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY.
10817         Call c_do_switch_expr_warnings rather than c_do_switch_warnings.
10818         * c-common.c (c_do_switch_warnings_1): New static function broken
10819         out of c_do_switch_warnings.
10820         (c_do_switch_warnings): Call c_do_switch_warnings_1.
10821         (c_do_switch_expr_warnings): New function.
10822         * c-common.h (c_do_switch_expr_warnings): Declare.
10823
10824 2005-04-04  David Edelsohn  <edelsohn@gnu.org>
10825             Daniel Jacobowitz  <dan@codesourcery.com>
10826
10827         * tree-eh.c (tree_could_trap_p): Allow non-constant floating point
10828         trapping divide.
10829         * rtlanal.c (may_trap_p): Same.
10830
10831 2005-04-04  Dale Johannesen  <dalej@apple.com>
10832
10833         * ChangeLog:  remove reference to ChangeLog.12.
10834
10835 2005-04-05  Hans-Peter Nilsson  <hp@axis.com>
10836
10837         CRIS epilogue as RTL.
10838         * config/cris/cris.md: Change all 0 in unspec 0 to
10839         CRIS_UNSPEC_PLT.
10840         (CRIS_UNSPEC_PLT, CRIS_UNSPEC_FRAME_DEALLOC): New constants.
10841         ("*cris_load_multiple", "cris_frame_deallocated_barrier"): New
10842         patterns.
10843         ("return"): Change to define_expand.  Call cris_expand_return for
10844         actual expansion.
10845         ("*return_expanded"): New pattern.
10846         ("epilogue"): New define_expand.
10847         * config/cris/cris.h (PREDICATE_CODES): Add
10848         cris_load_multiple_op.
10849         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Correct test for unspec
10850         type.
10851         (enum cris_retinsn_type): New.
10852         (struct machine_function): New member return_type.
10853         (TARGET_ASM_FUNCTION_EPILOGUE): Don't override.
10854         (cris_target_asm_function_epilogue): Remove, moving RTLified
10855         contents to...
10856         (cris_expand_epilogue): New function.
10857         (cris_reg_saved_in_regsave_area, cris_movem_load_rest_p,
10858         (cris_gen_movem_load, cris_load_multiple_op)
10859         (cris_return_address_on_stack_for_return, cris_expand_return): New
10860         functions.
10861         (cris_target_asm_function_prologue)
10862         (cris_initial_frame_pointer_offset): Call
10863         cris_reg_saved_in_regsave_area instead of complicated expression.
10864         Call cris_return_address_on_stack instead of an expression.
10865         (cris_print_operand) <case 'o', case 'O'>: New cases.
10866         (cris_return_address_on_stack): Change return-type to bool.
10867         (cris_simple_epilogue): Ditto.  Return false if registers are
10868         saved.
10869         * config/cris/cris-protos.h (cris_simple_epilogue)
10870         (cris_return_address_on_stack): Adjust prototype return type.
10871         (cris_gen_movem_load, cris_expand_epilogue, cris_expand_return)
10872         (cris_return_address_on_stack_for_return): New prototypes.
10873
10874 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
10875
10876         * config/frv/frv.h (PREDICATE_CODES): Add CONST to
10877         gpr_or_int12_operand.
10878
10879         * config/frv/frv-protos.h: Add a prototype to
10880         frv_legitimate_memory_operand and frv_const_unspec_p.
10881         (frv_unspec): Move from frv.c.
10882         * config/frv/frv.c (frv_unspec): Move to frv-protos.h.
10883         (frv_const_unspec_p, frv_legitimate_memory_operand_): Export.
10884         (ldd_address_operand, fdpic_fptr_operand, frv_load_operand,
10885         gpr_or_fpr_operand, gpr_or_int12_operand,
10886         gpr_fpr_or_int12_operand, fpr_or_int6_operand,
10887         gpr_or_int10_operand, gpr_or_int_operand, int12_operand,
10888         int6_operand, int5_operand, uint5_operand, uint4_operand,
10889         uint1_operand, int_2word_operand, uint16_operand,
10890         upper_int16_operand, integer_register_operand,
10891         gpr_no_subreg_operand, fpr_operand, even_reg_operand,
10892         odd_reg_operand, even_gpr_operand, odd_gpr_operand,
10893         quad_fpr_operand, even_fpr_operand, odd_fpr_operand,
10894         dbl_memory_one_insn_operand, dbl_memory_two_insn_operand,
10895         move_destination_operand, movcc_fp_destination_operand,
10896         frv_function_symbol_referenced_p, move_source_operand,
10897         condexec_dest_operand, condexec_source_operand,
10898         reg_or_0_operand, lr_operand, fdpic_operand, got12_operand,
10899         const_unspec_operand, gpr_or_memory_operand,
10900         gpr_or_memory_operand_with_scratch, fpr_or_memory_operand,
10901         icc_operand, fcc_operand, cc_operand, icr_operand,
10902         fcr_operand, cr_operand, call_operand, sibcall_operand,
10903         symbolic_operand, relational_operator,
10904         integer_relational_operator, float_relational_operator,
10905         ccr_eqne_operator, minmax_operator,
10906         condexec_si_binary_operator, condexec_si_media_operator,
10907         condexec_si_divide_operator, condexec_si_unary_operator,
10908         condexec_sf_conv_operator, condexec_sf_add_operator,
10909         condexec_memory_operand, intop_compare_operator, acc_operand,
10910         even_acc_operand, quad_acc_operand, accg_operand: Move to
10911         predicates.md.
10912         * config/frv/frv.h (PREDICATE_CODES): Remove.
10913         * config/frv/frv.md: Include predicates.md.
10914         * config/frv/predicates.md: New.
10915
10916 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
10917
10918         PR target/19537
10919         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
10920         * tree-ssa-loop-ivopts.c: Include langhooks.h.
10921         (add_standard_iv_candidates_for_size): New function, extracting code
10922         from add_standard_iv_candidates and parameterizing it by type size.
10923         (add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
10924
10925 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
10926
10927         * system.h (GCOV_SIZE_TYPE): Unposion.
10928         * gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
10929         (GCOV_TYPE_SIZE): ...this new macro.
10930         * coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
10931         * coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
10932         (rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
10933         (build_fn_info_type, build_fn_info_value, build_ctr_info_type)
10934         (build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
10935         instead of unsigned_intSI_type_node.
10936         * rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
10937         (rtl_gen_one_value_profiler_no_edge_manipulation)
10938         (rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
10939         * value-prof.c: Include coverage.h.
10940
10941 2005-04-02  Daniel Berlin  <dberlin@dberlin.org>
10942             Diego Novillo <dnovillo@redhat.com>
10943
10944         Fix PR tree-optimization/20703
10945         Fix PR tree-optimization/20725
10946
10947         * tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
10948         (create_expression_by_pieces): Ditto.
10949         (valid_in_set): Ditto. Also handle tcc_declaration.
10950         (find_or_generate_expression): Handle comparison class.
10951         (insert_into_preds_of_block): Ditto.
10952         (insert_aux): Ditto.
10953         (create_value_expr_from): Handle comparison class, recursively
10954         handle reference nodes.
10955         (compute_avail): Handle comparison classes, rewrite a little cleaner.
10956         (execute_pre): Fix spacing.
10957         (do_fre): Renamed to execute_fre.
10958
10959 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
10960
10961         * doc/invoke.texi (SPARC options): Document that
10962         -mlittle-endian is not supported on Linux either.
10963
10964 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
10965
10966         PR target/4198
10967         PR target/12027
10968         * config.gcc (Obsolete configurations): Remove
10969         sparclite-*-coff*, sparclite-*-elf* and sparc86x-*-elf*.
10970         (sparclite-*-coff*): Delete.
10971         (sparclite-*-elf*): Likewise.
10972         (sparc86x-*-elf*): Likewise.
10973         (target_cpu_default) <sparc*-*-*>: Remove sparc86x.
10974         * config/sparc/lite.h: Delete.
10975         * config/sparc/litecoff.h: Likewise.
10976         * config/sparc/liteelf.h: Likewise.
10977         * config/sparc/sp86x-elf.h: Likewise.
10978         * config/sparc/t-sparclite: Likewise.
10979         * config/sparc/t-sp86x: Likewise.
10980
10981 2005-04-04  Adrian Straetling  <straetling@de.ibm.com>
10982
10983         * config/s390/s390-protos.h: (s390_comparison,
10984         s390_alc_comparison, s390_slb_comparison, const0_operand,
10985         consttable_operand, larl_operand, s_operand,
10986         shift_count_operand, bras_sym_operand, load_multiple_operation,
10987         store_multiple_operation, s390_plus_operand): Remove prototypes.
10988         (s390_legitimate_address_without_index_p): New prototype.
10989         * config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
10990         to s390.h.
10991         (s390_comparison, s390_alc_comparison, s390_slb_comparison,
10992         const0_operand, consttable_operand, larl_operand, s_operand,
10993         shift_count_operand, bras_sym_operand, load_multiple_operation,
10994         store_multiple_operation, s390_plus_operand): Move to
10995         predicates.md.
10996         (check_mode): Remove.
10997         (s390_branch_condition_mask): Remove 'static'. Move prototype to
10998         s390-protos.h.
10999         (s390_legitimate_address_without_index_p): New.
11000         * config/s390/s390.h (PREDICATE_CODES): Remove.
11001         * config/s390/s390.md: Include predicates.md.
11002         * config/s390/predicates.md: New.
11003
11004 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
11005
11006         PR target/20446
11007         * config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
11008         * config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
11009         (NEED_INDICATE_EXEC_STACK): Define to 1.
11010         * config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
11011         (NEED_INDICATE_EXEC_STACK): Define to 1.
11012         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
11013         (add_pc_to_pic_symbol): Rename into pic_helper_symbol.
11014         (add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
11015         (pic_helper_emitted_p): New global.
11016         (emit_pic_helper): New function extracted from...
11017         (load_pic_register): ...here.  Add 'delay_pic_helper' parameter.
11018         Do not call emit_pic_helper if delay_pic_helper is true.
11019         (sparc_expand_prologue): Pass 'false' to load_pic_register.
11020         (sparc_output_mi_thunk): Pass 'true' to load_pic_register.
11021         (sparc_file_end): New function.
11022
11023 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
11024
11025         * config/mcore/mcore-protos.h: Remove the prototypes for
11026         mcore_arith_reg_operand, mcore_general_movsrc_operand,
11027         mcore_general_movdst_operand, mcore_reload_operand,
11028         mcore_arith_J_operand, mcore_arith_K_operand,
11029         mcore_arith_K_operand_not_0, mcore_arith_M_operand,
11030         mcore_arith_K_S_operand, mcore_arith_imm_operand,
11031         mcore_arith_any_imm_operand, mcore_arith_O_operand,
11032         mcore_literal_K_operand, mcore_addsub_operand,
11033         mcore_compare_operand, mcore_load_multiple_operation,
11034         mcore_store_multiple_operation, mcore_call_address_operand.
11035         Add a prototype for const_ok_for_mcore.
11036         * config/mcore/mcore.c (mcore_call_address_operand,
11037         mcore_general_movsrc_operand, mcore_general_movdst_operand,
11038         mcore_arith_reg_operand, mcore_reload_operand,
11039         mcore_arith_J_operand, mcore_arith_K_operand,
11040         mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
11041         mcore_arith_M_operand, mcore_arith_imm_operand,
11042         mcore_arith_any_imm_operand, mcore_arith_O_operand,
11043         mcore_literal_K_operand, mcore_addsub_operand,
11044         mcore_compare_operand, mcore_load_multiple_operation,
11045         mcore_store_multiple_operation): Move to predicates.md.
11046         (const_ok_for_mcore): Export.
11047         * config/mcore/mcore.h (PREDICATE_CODES): Remove.
11048         * config/mcore/mcore.md: Include predicates.md.
11049         * config/mcore/predicates.md: New.
11050
11051         * config/mcore/predicates.md: Fix a comment typo.
11052
11053 2005-04-04  Andreas Krebbel  <krebbel1@de.ibm.com>
11054             Adrian Straetling  <straetling@de.ibm.com>
11055
11056         * config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
11057         * config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
11058         * config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
11059         attribute.
11060         ("imul"): Removed from "type" attribute.
11061         ("*muldi3_sign", "muldi3"): Changed type to imuldi.
11062         ("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"):
11063         Changed type to imulsi.
11064         ("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
11065
11066 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
11067
11068         * config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
11069         (RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
11070         (SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
11071         (TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
11072         (TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
11073         (TARGET_SWITCHES, mcore_stack_increment_string)
11074         (TARGET_OPTIONS): Delete.
11075         (TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
11076         than *_BIT constants.
11077         (TARGET_8ALIGN): #undef old definition before redefining to 1.
11078         * config/mcore/mcore.c (mcore_stack_increment_string): Delete.
11079         (TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
11080         (mcore_override_options): Delete mcore_stack_increment code.
11081         Change use of M340_BIT to MASK_M340.
11082         * config/mcore/mcore.opt: New file.
11083
11084 2005-04-04  Ian Lance Taylor  <ian@airs.com>
11085
11086         * config/arm/arm.c (replace_symbols_in_block): Remove static
11087         function.
11088
11089 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
11090
11091         * config/fr30/fr30-protos.h: Remove the prototypes for
11092         stack_add_operand, add_immediate_operand,
11093         high_register_operand, low_register_operand, call_operand,
11094         di_operand, and nonimmediate_di_operand.
11095         * config/fr30/fr30.c (stack_add_operand,
11096         add_immediate_operand, high_register_operand,
11097         low_register_operand, call_operand, di_operand,
11098         nonimmediate_di_operand): Move to predicates.md.
11099         * config/fr30/fr30.h (PREDICATE_CODES): Remove.
11100         * config/fr30/fr30.md: Include predicates.md.
11101         * config/fr30/predicates.md: New.
11102
11103         * config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
11104         LABEL_REF to mcore_general_movsrc_operand.  Add SYMBOL_REF to
11105         mcore_call_address_operand.
11106
11107         * config/sh/sh.h (PREDICATE_CODES): Add CONST to
11108         general_movsrc_operand.
11109
11110 2005-04-04  Alan Modra  <amodra@bigpond.net.au>
11111
11112         * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
11113         after freeing.
11114
11115 2005-04-04  Richard Earnshaw  <richard.earnshaw@arm.com>
11116
11117         PR target/14812
11118         * arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
11119         a negated value.
11120
11121 2005-04-04  Richard Henderson  <rth@redhat.com>
11122             Jakub Jelinek  <jakub@redhat.com>
11123
11124         PR rtl-optimization/16104
11125         * fold-const.c (fold_unary): Fix folding of vector conversions.
11126
11127 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
11128
11129         * config.gcc (xstormy16-*-elf): Set extra_options.
11130         * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
11131         * config/stormy16/stormy16.opt: New file.
11132
11133 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
11134
11135         * config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
11136         (TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
11137         (TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
11138         (TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
11139         (TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
11140         (TARGET_UNIX_ASM): Delete.
11141         (TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
11142         * config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
11143         * config/pdp11/pdp11.c (pdp11_handle_option): New function.
11144         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
11145         * config/pdp11/pdp11.opt: New file.
11146
11147 2005-04-03  Roger Sayle  <roger@eyesopen.com>
11148             Alexandre Oliva  <aoliva@redhat.com>
11149
11150         PR c++/19199
11151         * fold-const.c (non_lvalue): Split tests into...
11152         (maybe_lvalue_p): New function.
11153         (fold_cond_expr_with_comparison): Preserve lvalue-ness for the
11154         C++ front-end prior to lowering into gimple form.
11155
11156 2005-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11157
11158         * builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
11159         BUILT_IN_STRNCASECMP): New.
11160         * doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
11161         and strndup.
11162
11163 2005-04-03  Richard Earnshaw  <richard.earnshaw@arm.com>
11164
11165         PR target/14812
11166         * arm.md (addsi3_compare0_for_combiner): Delete.
11167         (addsi3_compare0_scratch_for_combiner): Delete.
11168         (cmpsi_neg_shiftsi): Delete.
11169         (compare_negsi_si): New pattern.
11170         (cmpsi_negshiftsi_si): New pattern.
11171         (negated_cbranchsi4): Restrict to equality_operator.
11172
11173         * arm.md (movhi_insn_arch4): delete trailing white space from assembler
11174         template.
11175
11176 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
11177
11178         * cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
11179         Fix comment typos.
11180
11181         * doc/install.texi: Fix a typo.
11182
11183 2005-04-03  Steven Bosscher  <stevenb@suse.de>
11184
11185         PR middle-end/20648
11186         * bb-reorder.c (duplicate_computed_gotos): Do not unfactor
11187         a computed goto if the edge to the computed goto block has
11188         incoming abnormal edges.  Clarify how the function works.
11189
11190 2005-04-03  Nathan Sidwell  <nathan@codesourcery.com>
11191
11192         * params.c (set_param_value): Use gcc_assert & gcc_unreachable.
11193         * passes.c (open_dump_file, rest_of_handle_final): Likewise.
11194         * postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
11195         hash_scan_set, reg_set_between_after_reload_p,
11196         reg_used_between_after_reload_p, get_avail_load_store_reg,
11197         eliminate_partially_redundant_load): Likewise.
11198         * postreload.c (reload_cse_simplify_set,
11199         reload_combine_note_use): Likewise.
11200         * predict.c (predict_insn, expected_value_to_br_prob,
11201         propagate_freq, expensive_function_p): Likewise.
11202         * print-rtl.c (print_rtx): Likewise.
11203         * profile.c (instrument_edges, instrument_values,
11204         compute_branch_probabilities, branch_prob, union_groups,
11205         tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
11206         * protoize.c (in_system_include_dir, file_could_be_converted,
11207         file_normally_convertible, gen_aux_info_file, seek_to_line,
11208         do_cleaning): Likewise.
11209         * tree-ssa-alias.c (collect_points_to_info_r): Likewise.
11210         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
11211         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
11212
11213 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
11214
11215         * cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
11216         * modulo-sched.c (undo_replace_buff_elem): New structure.
11217         (kernel_number_of_cycles, ps_unschedule_node,
11218         undo_generate_reg_moves,free_undo_replace_buff,
11219         undo_permute_partial_schedule,  loop_single_full_bb_p,
11220         SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
11221         build_loops_structure, get_sched_window): New.
11222         (generate_reg_moves): Return undo_replace_buff_elem and other
11223         fixes.
11224         (generate_prolog_epilog): Remove old loop versioning.
11225         (sms_schedule): Use loop information and loop_version.
11226         (sms_schedule_by_order): Split part of it to get_sched_window.
11227         * passes.c (rest_of_handle_sms): call cfg_layout_initialize
11228         cfg_layout_finalize and free_dominance_info before/after SMS.
11229
11230 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
11231
11232         * cfghooks.c (lv_flush_pending_stmts,
11233         cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
11234         lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
11235         * cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
11236         lv_add_condition_to_bb,
11237         lv_adjust_loop_header_phi, extract_cond_bb_edges,
11238         flush_pending_stmts): New in cfg_hooks structure.
11239         (cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
11240         extract_cond_bb_edges, lv_adjust_loop_header_phi,
11241         lv_add_condition_to_bb): New declarations.
11242         * cfgloop.h (duplicate_loop_to_header_edge): Change return type to
11243         bool.
11244         (loop_version): Declare.
11245         * cfgloopmanip.c (cfghooks.h): Include.
11246         (duplicate_loop_to_header_edge): Change return type to bool.
11247         (loop_version, lv_adjust_loop_entry_edge): Move here.
11248         * cfgrtl.c (cfgloop.h): Include.
11249         (rtl_verify_flow_info_1): Fix.
11250         (rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
11251         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
11252         initialization.
11253         * tree-cfg.c (tree_lv_adjust_loop_header_phi,
11254         tree_lv_add_condition_to_bb): New.
11255         (tree_cfg_hooks): Add new hooks to initialization.
11256         * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
11257         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
11258
11259 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
11260
11261         * config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
11262         xstormy16_below100_or_register,
11263         xstormy16_splittable_below100_or_register, and
11264         nonimmediate_nonstack_operand.
11265
11266         * config/stormy16/stormy16-protos.h: Remove the prototypes for
11267         xstormy16_ineqsi_operator, equality_operator,
11268         inequality_operator, shift_operator,
11269         xstormy16_below100_operand, xstormy16_below100_or_register,
11270         xstormy16_splittable_below100_or_register,
11271         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
11272         * config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
11273         equality_operator, inequality_operator,
11274         xstormy16_below100_operand, xstormy16_below100_or_register,
11275         xstormy16_splittable_below100_or_register,
11276         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
11277         nonimmediate_nonstack_operand, shift_operator): Move to
11278         predicates.md.
11279         * config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
11280         * config/stormy16/stormy16.md: Include predicates.md.
11281         * config/stormy16/predicates.md: New.
11282
11283 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
11284
11285         * config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
11286         small_int, large_int, reg_or_0_operand, simple_memory_operand,
11287         equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
11288         move_operand, power_of_2_operand): Move to predicates.md.
11289         * config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
11290         PREDICATE_CODE): Remove.
11291         * config/iq2000/iq2000.md: Include predicates.md.
11292         * config/iq2000/predicates.md: New.
11293
11294 2005-04-02  Richard Sandiford  <rsandifo@redhat.com>
11295
11296         * config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
11297         (MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
11298         (MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
11299         (TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
11300         (TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
11301         (TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
11302         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
11303         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
11304         (TARGET_M68HC11): Delete.
11305         (TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
11306         * config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
11307         * config/m68hc11/m68hc11.c (m68hc11_regparm_string)
11308         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
11309         (nb_soft_regs): Delete.
11310         (TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
11311         (m68hc11_override_options): Remove the code that caters for MASK_M6811
11312         and MASK_M6812 being set simultaneously.  Change the code that sets
11313         the default m68hc11_soft_reg_count to use integers instead of strings.
11314         (m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
11315         m68hc11_soft_reg_count (which now has an int type) as the number
11316         of soft registers.
11317         * config/m68hc11/m68hc11.opt: New file.
11318
11319 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
11320
11321         * config/fr30/fr30.h (PREDICATE_CODES): Remove
11322         fp_displacement_operand, sp_displacement_operand.
11323
11324         * config/m68hc11/m68hc11-protos.h: Add a prototype for
11325         m68hcc_auto_inc_p.
11326         Remove the prototypes for tst_operand, cmp_operand,
11327         stack_register_operand, d_register_operand,
11328         hard_addr_reg_operand, splitable_operand,
11329         m68hc11_logical_operator, m68hc11_arith_operator,
11330         m68hc11_non_shift_operator, m68hc11_shift_operator,
11331         m68hc11_unary_operator, m68hc11_eq_compare_operator,
11332         non_push_operand, hard_reg_operand, and
11333         reg_or_some_mem_operand.
11334         * config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
11335         extern.
11336         (tst_operand, cmp_operand, non_push_operand,
11337         splitable_operand, reg_or_some_mem_operand,
11338         stack_register_operand, d_register_operand,
11339         hard_addr_reg_operand, hard_reg_operand,
11340         m68hc11_eq_compare_operator, m68hc11_logical_operator,
11341         m68hc11_arith_operator, m68hc11_non_shift_operator,
11342         m68hc11_shift_operator, m68hc11_unary_operator): Move to
11343         predicates.md.
11344         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
11345         * config/m68hc11/m68hc11.md: Include predicates.md.
11346         * config/m68hc11/predicates.md: New.
11347
11348 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
11349
11350         PR debug/19345
11351         * dwarf2out.c (add_abstract_origin_attribute): Revert accidental
11352         change checked in along with 2005-03-03's patch for debug/20253.
11353         * tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
11354         (remap_decl): Insert type decl in map earlier.
11355
11356 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
11357
11358         PR tree-optimization/20640
11359         * tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
11360         post-dominator if it has phi nodes.
11361         (eliminate_unnecessary_stmts): Remove dead phis in all blocks
11362         before dead statements.
11363
11364 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
11365
11366         PR middle-end/20491
11367         * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
11368
11369 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
11370
11371         PR rtl-optimization/20290
11372         * loop.c (for_each_insn_in_loop): Don't assume the loop body runs
11373         in every iteration if the entry point is the exit test.
11374
11375 2005-04-02  Hans-Peter Nilsson  <hp@axis.com>
11376
11377         * config/cris/cris.md (attribute "length"): Define.
11378
11379 2005-04-02  Geoffrey Keating  <geoffk@apple.com>
11380
11381         * config/rs6000/predicates.md (indexed_or_indirect_operand): New.
11382         (word_offset_memref_operand): New.
11383         * config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
11384         (indexed_or_indirect_operand): Delete.
11385         * config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
11386         (indexed_or_indirect_operand): Delete.
11387
11388         * config/rs6000/t-darwin8: Comment out ppc64 multilib.
11389
11390         PR 20650
11391         * config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
11392         a register.
11393
11394         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
11395         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
11396
11397 2005-04-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
11398
11399         * gcc/config/vax/vax.md: Spellcheck, fix whitespace.
11400
11401 2005-04-01  Ian Lance Taylor  <ian@airs.com>
11402
11403         * gcc.c: Don't include <sys/resource.h> or declare getrusage.
11404         (rus, prus): Remove static variables.
11405         (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
11406         (process_command): Permit report_times and use_pipes together.
11407
11408 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
11409
11410         * c-decl.c (validate_proto_after_old_defn): Look at
11411         TYPE_MAIN_VARIANT of argument types.
11412
11413 2005-04-01  Paul Brook  <paul@codesourcery.com>
11414
11415         * config/arm/arm.c (thumb_call_via_label): Include space for SP.
11416         (arm_output_function_epilogue): Allow call_via_SP.
11417         (thumb_call_via_reg, arm_file_end): Ditto.
11418         * config/arm/arm.h (struct machine_function): Include space for SP.
11419         (thumb_call_via_label): Update declaration.
11420
11421 2005-04-01  Ian Lance Taylor  <ian@airs.com>
11422
11423         * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
11424         doing a peephole optimization, once again put any notes in the
11425         proper position.
11426
11427 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
11428
11429         * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
11430
11431 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
11432
11433         * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
11434         (block_alloc, find_free_reg): Likewise.
11435         * loop-doloop.c (doloop_modify): Likewise.
11436         * loop-invariant.c (record_use): Likewise.
11437         * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
11438         get_iv_value, canon_condition, eliminate_implied_condition,
11439         eliminate_implied_condition, simplify_using_initial_values,
11440         shorten_into_mode, canonicalize_iv_subregs,
11441         iv_number_of_iterations): Likewise.
11442         * loop-unroll.c (expand_var_during_unrolling): Likewise.
11443         * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
11444         unswitch_loop): Likewise.
11445         * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
11446         move_movables, replace_call_address, find_and_verify_loops,
11447         rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
11448         record_giv, final_giv_value, general_induction_var,
11449         simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
11450         loop_giv_dump): Likewise.
11451
11452         * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
11453         GCOV_CHECK_WRITING): Remove.
11454         (gcov_position, gcov_rewrite): Use gcc_assert.
11455         * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
11456         gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
11457         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
11458         gcc_assert.
11459
11460 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
11461
11462         * tree-inline.c: Fix a typo.
11463
11464 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
11465
11466         * configure.ac (enable-checking): Explicitly set all variables for
11467         collective switch values.  Alphabetize variables. Rename
11468         ac_checking_valgrind to ac_valgrind_checking.  Allow 'none' as
11469         synonym for 'no'.
11470         * doc/install.texi (enable-checking): Update documentation.
11471         * configure: Rebuilt.
11472
11473 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
11474
11475         * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
11476         possible.
11477
11478 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
11479
11480         * arm.c (adjacent_mem_locations): Reject volatile memory refs.
11481         Also reject cases where this pattern will cause load delay stalls
11482         unless optimizing for size and it will produce a shorter sequence.
11483         * arm.md (arith_adjacent_mem): Make better use of ldm addressing
11484         variants to avoid pre-adjusting the base when possible.
11485
11486 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
11487
11488         * arm.md (minmax_arithsi): Reject all eliminable registers, not just
11489         the frame and argument pointers.
11490         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
11491         (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
11492         (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
11493         (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
11494         (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
11495         (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
11496
11497 2005-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
11498
11499         * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
11500         with entry for selectany attribute.
11501         * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
11502         Declare.
11503         * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
11504         (i386_pe_asm_named_section): Handle sections generated by
11505         selectany attribute.
11506         * doc/extend.texi (selectany): Document attribute.
11507
11508 2005-04-01  Paolo Bonzini  <bonzini@gnu.org>
11509             Jan Hubicka  <jh@suse.cz>
11510
11511         * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
11512         to fix addresses involving EBP and ESP.
11513         (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
11514         for SUBREGed registers.
11515         (legitimate_address_p): Accept SUBREGed registers.
11516
11517 2005-04-01  Jakub Jelinek  <jakub@redhat.com>
11518
11519         PR c++/19406
11520         * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
11521         (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
11522         for FIELD_DECLs.
11523
11524 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
11525
11526         * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
11527
11528 2005-04-01  James E Wilson  <wilson@specifixinc.com>
11529
11530         PR c++/20505
11531         * dwarf2out.c (rtl_for_decl_init): New function.
11532         (rtl_for_decl_location): Extracted from here.
11533         (tree_add_const_value_attribute): Call rtl_for_decl_init and
11534         add_const_value_attribute.  Delete initializer_constant_valid_p call.
11535
11536 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
11537
11538         * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
11539         lambda-code.c, loop.c, machmode.def, mips-tfile.c,
11540         modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
11541         tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
11542         config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
11543         config/i386/i386.md, config/rs6000/predicates.md,
11544         config/rs6000/rs6000.c, config/s390/fixdfdi.h,
11545         config/s390/s390.c, config/stormy16/stormy16.c,
11546         config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
11547         typos.
11548
11549 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
11550
11551         PR c/17855
11552         * gimplify.c (gimplify_expr): Create a temporary for lvalue
11553         COND_EXPR and CALL_EXPR.
11554
11555 2005-03-31  Vladimir Makarov  <vmakarov@redhat.com>
11556
11557         PR target/20632
11558         * genautomata.c (first_cycle_unit_presence): Check all alternative
11559         states for unit presence.
11560
11561         * doc/md.texi: Remove remark about impossibility to query unit
11562         presence in non nondeterministic automaton state.
11563
11564         * config/ia64/ia64.c (get_template): Change order of unit querying.
11565
11566 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
11567
11568         * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
11569         obsolete comment.
11570
11571 2005-03-31  Zdenek Dvorak  <dvorakz@suse.cz>
11572
11573         * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
11574         flag for edges outside any loops.
11575
11576 2005-03-31  Janis Johnson  <janis187@us.ibm.com>
11577
11578         * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
11579
11580 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
11581
11582         * tree-ssa-alias.c: Follow spelling conventions.
11583         * doc/tree-ssa.texi: Fix a typo.
11584
11585 2005-03-31  J"orn Rennecke <joern.rennecke@st.com>
11586
11587         * postreload-gcse.c: Include target.h.
11588         (gcse_after_reload_main): Return early if we cannot modify jumps.
11589         * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
11590
11591 2005-03-31  David Edelsohn  <edelsohn@gnu.org>
11592
11593         * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
11594         expensive operations.
11595
11596 2005-03-31  Ian Lance Taylor  <ian@airs.com>
11597
11598         * collect2.c (lderrout): New variable.
11599         (collect_exit): Dump ldout to stdout.  Dump and unlink lderrout,
11600         if it is set, to stderr.
11601         (handler): Unlink lderrout if it is set.
11602         (dump_file): Add "to" parameter.  Change all callers.
11603         (main): Initialize lderrout.
11604         (collect_execute): Add errname parameter.  Change all callers.
11605         Rename redir parameter to outname.  Never pass
11606         PEX_STDERR_TO_STDOUT to pex_run.
11607         * collect2.h (collect_execute, dump_file): Update declarations.
11608         * tlink.c (tlink_execute): Add errname parameter.  Change all
11609         callers.
11610         (do_tlink): Check lderrout as well as ldout.
11611
11612 2005-03-31  Caroline Tice  <ctice@apple.com>
11613
11614         * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
11615         (bb-reorder.o): Add errors.h to list of requirements.
11616         (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
11617         profiledbootstrap flags.
11618         * bb-reorder.c (errors.h): Add new include.
11619         (struct bbro_basic_block_data_def): Add new field, in_trace.
11620         (add_unlikely_executed_notes):  Remove function.
11621         (mark_bb_for_unlikely_executed_section): Remove function.
11622         (insert_section_boundary_note): New function.
11623         (verify_hot_cold_block_grouping): New function.
11624         (push_to_next_round_p): Remove variables and tests that push all
11625         cold blocks to last round.
11626         (find_traces): Remove code that added extra round of trace finding
11627         when doing partitioning.
11628         (find_traces_1_round) :  Remove variable last_round;  add code to
11629         update new struct field, in_trace; correct trace_length where it was
11630         incorrect before (after call to copy_bb); change code that pushed all
11631         cold blocks to last round. Instead verify that all blocks going into
11632         a trace belong in the same partition.
11633         (connect_traces): Modify to connect the traces in two passes, if the
11634         function contains both hot and cold blocks.  The first pass connects
11635         all the traces for blocks in the partition that the first block in
11636         the function belongs to; the second pass connnects all the traces
11637         containing blocks that belong in the other partition.
11638         (find_rarely_executed_basic_blocks_and_crossing_edges):  Remove
11639         code that automatically put the first block in a function into the
11640         hot partition if the function had any hot blocks.
11641         (fix_crossing_unconditional_branches): Check number of succ edges
11642         before attempting to get one.
11643         (fix_edges_for_rarely_executed_code):  Update comment describing
11644         function.
11645         (reorder_basic_blocks):  Add code to initialize new field (in_trace);
11646         remove call to add_unlikely_executed_notes; add call to
11647         verify_hot_cold_block_grouping.
11648         (duplicate_computed_gotos): Don't change computed goto if it's a
11649         crossing edge.
11650         (partition_hot_cold_basic_blocks):  Update function comment.
11651         * cfgcleanup.c (try_simplify_condjump): Remove redundacy from
11652         condition.
11653         (try_forward_edges): Likewise.
11654         (merge_blocks_move_predecessor_nojumps): Likewise.
11655         (merge_blocks_move_successor_nojumps): Likewise.
11656         (merge_blocks_move): Likewise.
11657         (try_crossjump_bb): Likewise.
11658         * cfglayout.c (update_unlikely_executed_notes): Remove function.
11659         (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
11660         notes to cold bb's; remove call to update_unlikely_executed_notes.
11661         (duplicate_insn_chain):  change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
11662         NOTE_INSN_SWITCH_TEXT_SECTIONS.
11663         * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
11664         function declaration.
11665         * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
11666         from consideration.
11667         (rtl_can_merge_blocks): Remove redundancy from condition.
11668         (try_redirect_by_replacing_jump): Likewise.
11669         (force_nonfallthru_and_redirect): Remove code for adding
11670         UNLIKELY_EXECUTED_CODE notes to cold bb's.
11671         (commit_one_edge_insertion): Likewise.
11672         (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
11673         * dbxout.c (FORCE_TEXT): Replace function_section with
11674         current_function_section.
11675         (struct dbx_debug_h): Add do_nothing function for new debug_hooks
11676         function, switch_text_section.
11677         (struct xcoff_debug): Likewise.
11678         (dbxout_function_end): Add code to put out label diffs for both
11679         hot and cold sections.
11680         * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
11681         for new debug_hooks funciton, switch_text_section..
11682         * debug.h (struct gcc_debug_hooks):  Add new function to debug_hooks,
11683         switch_text_section.
11684         * dwarf2out.c (struct dw_fde_struct):  Add five new fields:
11685         dw_fde_hot_section_label, dw_fde_hot_section_end_label,
11686         dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and
11687         dw_fde_switched_sections.
11688         (output_call_frame_info):  Add test to see if function switches text
11689         sections in the middle; if so, use appropriate extra hot and cold
11690         section labels to compute size deltas for the hot and cold sections.
11691         (dwarf2out_begin_prologue): Add code to initialize new fields in
11692         dw_fde_struct.
11693         (dwarf2out_switch_text_section): New function (invoked through
11694         debug_hook); updates new fields in dw_fde_struct appropriately and
11695         increments separate_line_info_table_in_use.
11696         (dwarf2_debug_hooks): Initialize switch_text_section function to be
11697         dwarf2out_switch_text_section.
11698         (struct var_loc_node): Add new field, section_label.
11699         (output_aranges): Add code to check whether in hot or cold section and
11700         use the appropriate label in calculating deltas.
11701         (output_ranges): Likewise.
11702         (output_line_info): Add code to check which section we're in and
11703         use appropriate hot/cold label.
11704         (add_location_or_constant_value_attribute): Likewise.
11705         (gen_subprogam_die): Modify arange attributes to use correct labels.
11706         (dwarf2out_begin_block): Change call to function_section into call to
11707         current_function_section.
11708         (dwarf2out_end_block): Likewise.
11709         (dwarf2out_source_line): Likewise.
11710         (dwarf2out_var_location): Add code to check whether in hot or cold
11711         section and use the appropriate label.
11712         * except.c (output_function_exception_table): Change call to
11713         function_section into call to current_function_section.
11714         * final.c (profile_function): Likewise.
11715         (scan_ahead_for_unlikely_executed_note): Remove function.
11716         (final_scan_insn):  Remove calls to
11717         scan_ahead_for_unlikely_executed_note, and related code for switching
11718         to cold section, except for the single time
11719         NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered;  add calls to
11720         debug_hooks->switch_text_sections; replace appropriate calls to
11721         function_section with calls to current_function_section.
11722         * ifcvt.c (find_if_case_1): Remove redundancy from condition, add
11723         test_bb to condition.
11724         (find_if_case_2): Likewise.
11725         * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
11726         NOTE_INSN_SWITCH_TEXT_SECTIONS.  Update comment appropriately.
11727         * opts.c (decode_options): Change warning about hot/cold partitioning
11728         with exceptionss to inform (so as not to cause bootstrap failures);
11729         remove warning about partitioning with DWARF debug info.
11730         * output.h (current_function_section): Add new function decl.
11731         (insert_section_boundary_note): Likewise.
11732         (enum in_section): Move this declaration here from varasm.c.
11733         (unlikely_section_label): Likewise.
11734         (unlikely_text_section_name): Likewise.
11735         (last_text_section_name): New global variable.
11736         (last_text_section): Likewise.
11737         (hot_section_label): Likewise.
11738         (hot_section_end_label): Likewise.
11739         (cold_section_end_label): Likewise.
11740         * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
11741         * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
11742         to NOTE_INSN_SWITCH_TEXT_SECTIONS.
11743         * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note
11744         insn from consideration.
11745         * sdbout.c (sdb_debug_hooks): Add do_nothing for new function,
11746         switch_text_section.
11747         * varasm.c (basic-block.h): Add new include.
11748         (unlikely_section_label_printed): Remove global variable.
11749         (unlikely_section_label): Make global variable not be static any more.
11750         (unlikely_text_section_name): Likewise.
11751         (hot_section_end_label): New global variable (not static)
11752         (first_function_block_is_cold): Likewise.
11753         (hot_section_label): Likewise.
11754         (cold_section_end_label): Likewise..
11755         (last_text_section): New global variable, not static.
11756         (last_text_section_name): New global variable, not static.
11757         (initialize_cold_section_name): New function.
11758         (enum in_section): Move declaration to output.h.
11759         (text_section): Update last_text_section.
11760         (unlikely_text_section): Replace code to determine cold section name
11761         with call to initialize_cold_section_name; Add code to update
11762         last_text_section; remove code for printing out label.
11763         (named_section_real): Add code to update last_text_section and
11764         last_text_section_name as appropriate.
11765         (function_section): Change test for 'unlikely' to depend on
11766         first_function_block_is_cold (moved old test to
11767         current_function_section).
11768         (current_function_section): New function.
11769         (assemble_start_function): Move code that frees
11770         unlikely_text_section_name; initialize hot_section_end_label;
11771         print hot and cold section labels at the start of the function;
11772         set first_function_block_is_cold, if appropriate; initialize l
11773         ast_text_section; add call to insert_section_boundary_note.
11774         (assemble_end_function):  Add code to write out hot and cold section
11775         end labels.
11776         *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
11777         switch_text_section.
11778         * config/darwin.c (machopic_select_section): Replace incorrect
11779         function in base_funs; update reloc for cold sections if necessary.
11780         * config/darwin.h (SECTION_FUNCTION):  Add code to update
11781         last_text_section if appropriate.
11782         (text_unlikely_section): Remove.
11783         * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
11784         * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
11785         * config/xtensa/xtensa.c (override_options): Turn off hot/cold
11786         partitioning for this architecture.
11787
11788 2005-03-31  Olivier Hainque  <hainque@adacore.com>
11789
11790         * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
11791         defined and non-zero.
11792
11793 2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11794
11795         PR c++/18644
11796         * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
11797         semantics.
11798
11799 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
11800
11801         PR target/20611
11802         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
11803         label operand.  Remove (use (unspec..)).  Don't emit a label on
11804         the offset word.
11805         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
11806         generate inline label for load_toc_v4_PIC_1b.
11807         (rs6000_emit_load_toc_table): Likewise.
11808
11809 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
11810
11811         * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
11812         ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
11813
11814 2005-03-29  Devang Patel  <dpatel@apple.com>
11815
11816         * tree-sra.c (decide_block_copy): Disable scalarization of
11817         sub-elements.
11818
11819 2005-03-30  Stuart Hastings  <stuart@apple.com>
11820             Dale Johannesen  <dalej@apple.com>
11821
11822         * Makefile.in (print-tree.o):  Depend on tree-iterator.h.
11823         * print-tree.c (print_node):  Add case STATEMENT_LIST.
11824
11825 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
11826
11827         * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
11828         (powerpc64-*-linux*): Use it.  Rearrange tm_file assignment.
11829         (powerpc-*-linux*): Build a biarch compiler when --enable-targets
11830         is given with "powerpc64*" or "all", or when --with-cpu chooses
11831         a 64-bit cpu.
11832
11833 2005-03-30  James E. Wilson  <wilson@specifixinc.com>
11834
11835         PR debug/20268
11836         * dwarf2out.c (add_high_low_attributes): New function, extracted from
11837         gen_lexical_block_die.
11838         (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
11839
11840 2005-03-31  Jan Hubicka  <jh@suse.cz>
11841
11842         2004-11-02  Jan Hubicka  <jh@suse.cz>
11843
11844         * cgraph.c (cgraph_varpool_node_name): New function.
11845         (dump_cgraph_varpool_node): New function.
11846         (dump_varpool): New function.
11847         * cgraphunit.c (cgraph_optimize): Dump varpool.
11848
11849         2004-10-16  Jan Hubicka  <jh@suse.cz>
11850
11851         * cgraph.c (decide_is_variable_needed): New function.
11852         (cgraph_varpool_finalize_decl): Use it.
11853         * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
11854         unit-at-a-time.
11855         * final.c (output_addr_const): Do not call mark_referenced.
11856         * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
11857         always go via cgraph.
11858         * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
11859         (check_global_declarations): Ifdef out code clearing DECL_RTL.
11860         * tree-optimize.c (execute_inline): Mark functions called.
11861         * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
11862
11863         2004-10-11  Jan Hubicka  <jh@suse.cz>
11864
11865         * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
11866         (cgraph_varpool_last_needed_node): New static variable.
11867         (enqueue_needed_varpool_node): Break out from ...; add items to the
11868         end of queue; update first pointers.
11869         (cgraph_varpool_mark_needed_node): ... here.
11870         (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
11871         (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
11872         * cgraph.h (cgraph_varpool_node): Add analyzed field.
11873         (cgraph_varpool_first_unanalyzed_node): Declare.
11874         * cgraphunit.c: Include output.h.
11875         (cgraph_varpool_analyze_pending_decls): New function.
11876         (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
11877         for errors, analyze pending decls.
11878         (cgraph_finalize_compilation_unit): Only analyze decls.
11879         (cgraph_optimize): Assemble the decls after expanding.
11880
11881 2005-03-30  Daniel Berlin  <dberlin@dberlin.org>
11882
11883         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
11884         subvars get marked properly in tags for grouping.
11885         (add_pointed_to_var): Mark only actual pointed to
11886         variables/subvars in addresses needed.
11887         (create_overlap_variables_for): Clear call clobbered on original
11888         variable.
11889         * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
11890         addresable vars with subvars into list.
11891         * tree-ssa.c (verify_ssa_name): Verify original is not used where
11892         subvar should be.
11893
11894 2005-03-30  Richard Henderson  <rth@redhat.com>
11895
11896         * cgraph.h (struct cgraph_node): Add alias.
11897         * varasm.c (assemble_alias): Set it.
11898         * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
11899         avoid calling cgraph_expand_function.
11900
11901 2005-03-30  Tom Tromey  <tromey@redhat.com>
11902
11903         * tree.def (FILE_TYPE): Removed.
11904         * typeclass.h (enum type_class): Removed file_type_class.
11905         * dwarf2out.c (is_base_type): Updated.
11906         (gen_type_die): Likewise.
11907         * dbxout.c (dbxout_type): Updated.
11908         * builtins.c (type_to_class): Updated.
11909         * tree.c (type_contains_placeholder_1): Updated.
11910         * config/sparc/sparc.c (sparc_type_code): Updated.
11911         * config/ia64/ia64.c (hfa_element_mode): Updated.
11912         * expr.c (count_type_elements): Updated.
11913         * stor-layout.c (layout_type): Updated.
11914         * tree-inline.c (remap_type): Updated.
11915         * tree-pretty-print.c (dump_generic_node): Updated.
11916
11917 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
11918
11919         * builtins.c (expand_builtin_powi): Fix mode of
11920         2nd argument to match int.
11921         * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
11922         2nd argument type to int.
11923         * libgcc2.c: Change prototype of __powi* functions to use
11924         int.
11925
11926 2005-03-30  Dale Johannesen  <dalej@apple.com>
11927
11928         PR middle-end/19225
11929         * calls.c (expand_call):  Flush pending deferrals before
11930         throwing call.
11931
11932 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
11933
11934         PR c/772
11935         PR c/17913
11936         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
11937         C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
11938         c_label_context, label_context_stack): New.
11939         * c-decl.c (define_label): Check for jumps into statement
11940         expressions.  Add label to list of defined labels.
11941         (start_function): Push context on label_context_stack.
11942         (finish_function): Pop context from label_context_stack.
11943         * c-typeck.c (label_context_stack): New.
11944         (c_finish_goto_label): Check for jumps into statement
11945         expressions.  Add label to list of jumped to labels.
11946         (struct c_switch): Add blocked_stmt_expr.
11947         (c_start_case): Initialize it.
11948         (do_case): Check it.
11949         (c_finish_case): Verify !blocked_stmt_expr.
11950         (c_begin_stmt_expr):  Push context on label_context_stack.
11951         Increment blocked_stmt_expr.  Mark labels jumped to from outside
11952         as undefinable.
11953         (c_finish_stmt_expr): December blocked_stmt_expr.  Mark labels
11954         defined in the statement expression and no longer jumpable to.
11955         Mark labels jumped to from just outside the statement expression
11956         as again definable.  Pop context from label_context_stack.
11957         * doc/extend.texi (Statement Exprs): Update.
11958
11959 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
11960
11961         PR c/20368
11962         * c-decl.c (start_function): Check for old_decl being
11963         error_mark_node.
11964
11965 2005-03-30  Ian Lance Taylor  <ian@airs.com>
11966
11967         * final.c (final): Remove prescan parameter.  Change all callers.
11968         (final_scan_insn): Remove prescan parameter.  Change all callers.
11969
11970 2005-03-30  Kazu Hirata  <kazu@cs.umass.edu>
11971
11972         * tree-vectorizer.c: Fix comment typos.
11973
11974 2005-03-30  Sebastian Pop  <pop@cri.ensmp.fr>
11975
11976         * tree-scalar-evolution.c (instantiate_parameters_1): Return
11977         as soon as a chrec_dont_know is detected.
11978
11979 2005-03-31  Danny Smith  <dannysmith@users.sourceforge.net>
11980
11981         Merge from csl-arm-branch.
11982         2004-02-12  Mark Mitchell  <mark@codesourcery.com>
11983
11984         * tlink.c (recompile_files): Do not assume that "rename" can
11985         overwrite an existing file.
11986
11987 2005-03-31  Paolo Bonzini  <bonzini@gnu.org>
11988
11989         * gcc/configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
11990         * gcc/configure: Regenerate.
11991
11992 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
11993
11994         * doc/install.texi: Update binutils requirement for powerpc*-linux.
11995
11996         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
11997
11998         * calls.c (struct arg_data): Update "partial" comment.
11999         (load_register_parameters): Update "nregs" comment.
12000
12001 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
12002
12003         * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
12004         (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
12005         (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
12006         (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
12007         (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
12008         (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
12009         than target_flags & 0.
12010         * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
12011         (iq2000_arch, iq2000_parse_cpu): Delete.
12012         (TARGET_HANDLE_OPTION): Override default.
12013         (iq2000_handle_option): New function.
12014         (override_options): Remove -march= and -mcpu= handling.
12015         * config/iq2000/iq2000.opt: New file.
12016
12017 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
12018
12019         * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
12020         * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
12021         (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
12022         (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
12023         (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
12024         (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
12025         (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
12026         (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
12027         (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
12028         (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
12029         (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
12030         (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
12031         (c4x_rpts_cycles_string, c4x_cpu_version_string)
12032         (TARGET_OPTIONS): Delete.
12033         (c4x_rpts_cycles, c4x_cpu_version): Declare.
12034         (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
12035         (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
12036         * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
12037         (c4x_cpu_version_string): Delete.
12038         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
12039         (c4x_handle_option): New function.  Map -m3x and -m4x options to the
12040         equivalent -mcpu= option.
12041         (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
12042         Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
12043         TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
12044         or clearing the appropriate MASK_* bit.
12045         (c4x_file_start): Use c4x_cpu_version.
12046         * config/c4x/c4x.opt: New file.
12047
12048 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
12049
12050         * doc/options.texi: Document the new MaskExists flag.
12051         * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
12052         if the option has the MaskExists flag.
12053
12054 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
12055
12056         * opt-functions.awk (flag_set_p, test_flag): New functions.
12057         (switch_flags): Use them.
12058         * opth-gen.awk: Use flag_set_p to check for flags.
12059         * optc-gen.awk: Likewise.  Use opt_args to check for Init(...) flags.
12060
12061 2005-03-30  Ian Lance Taylor  <ian@airs.com>
12062
12063         * config.host (i[34567]86-*-mingw32*): Don't set
12064         host_can_use_collect2 to no.
12065
12066 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
12067
12068         PR target/20203
12069         * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
12070         Remove convert_memory_address call duplicating that in memory_address.
12071
12072 2005-03-29  Richard Henderson  <rth@redhat.com>
12073
12074         PR c/20519
12075         * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
12076         (build_compound_literal): Likewise.  Propagate decl type into the
12077         initializer.
12078         (finish_decl): Likewise.  Use new return value from complete_array_type
12079         for zero sized arrays.
12080         (complete_array_type): Move ...
12081         * c-common.c (complete_array_type): ... here.  Change first argument
12082         to pointer-to-type-node.  Consistently use sizetype for the index
12083         except for zero sized arrays.  Detect zero sized arrays for pedantic
12084         mode diagnostics.  Create a new type node instead of modifying the
12085         old node in place.
12086         * c-tree.h (complete_array_type): Move decl ...
12087         * c-common.h (complete_array_type): ... here.
12088
12089 2005-03-29  Richard Henderson  <rth@redhat.com>
12090
12091         PR tree-opt/19108
12092         * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
12093
12094 2005-03-29  Kazu Hirata  <kazu@cs.umass.edu>
12095
12096         * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
12097         debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
12098         rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
12099         tree-profile.c, tsystem.h, value-prof.h: Update copyright.
12100
12101 2005-03-29  Eric Christopher  <echristo@redhat.com>
12102
12103         * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
12104         truthvalue conversion removal.
12105
12106 2005-03-29  Ian Lance Taylor  <ian@airs.com>
12107
12108         PR bootstrap/14316
12109         * collect2.c: Never include <vfork.h>.
12110         (VFORK_STRING, vfork): Don't define.
12111         (pid): Remove global variable.
12112         (handler): Call raise instead of kill (getpid(), ...).
12113         (collect_wait): Add pex parameter.  Change all callers.  Use
12114         pex_get_status rather than pwait.
12115         (do_wait): Add pex parameter.  Change all callers.
12116         (collect_execute): Return struct pex_obj * rather than void.  Use
12117         pex routines rather than pexecute.
12118         (fork_execute): Get pex_obj from collect_execute, and pass it to
12119         do_wait.
12120         (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
12121         Only declare quit_handler if SIGQUIT is defined.
12122         (scan_libraries): Likewise.
12123         * collect2.h (collect_execute): Update declaration.
12124         (collect_wait): Update declaration.
12125         * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
12126         pass it to collect_wait.
12127
12128 2005-03-29  Joseph S. Myers  <joseph@codesourcery.com>
12129
12130         PR c/20672
12131         * c-parser.c (c_parser_compound_statement_nostart): Give error
12132         message for EOF instead of just setting parser->error.
12133
12134 2005-03-29  Dorit Naishlos  <dorit@il.ibm.com>
12135
12136         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
12137         (slpeel_update_phi_nodes_for_guard1): New function.
12138         (slpeel_update_phi_nodes_for_guard2): New function.
12139         (slpeel_tree_peel_loop_to_edge): Call above new functions instead
12140         of slpeel_update_phi_nodes_for_guard.
12141         (vectorize_loops): Remove call to loop_closed_rewrite.
12142         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
12143         assertion.
12144
12145 2005-03-29  Richard Sandiford  <rsandifo@redhat.com>
12146
12147         * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
12148         (TARGET_LITTLE_ENDIAN): New macro.
12149         * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
12150         (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
12151         (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
12152         (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
12153         (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
12154         (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
12155         (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
12156         (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
12157         (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
12158         (TARGET_OPTIONS): Delete.
12159         (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
12160         (CACHE_FLUSH_TRAP): Turn into an integer.
12161         (TARGET_LITTLE_ENDIAN): Define to 0 by default.
12162         (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
12163         -mflush-trap is in use.
12164         * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
12165         (m32r_cache_flush_trap_string): Delete.
12166         (m32r_model) Initialize to M32R_MODEL_DEFAULT.
12167         (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
12168         (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
12169         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
12170         (m32r_handle_option): New function.  Move -mflush-trap=, -mflush-func=,
12171         -mmodel= and -msdata= handling from...
12172         (m32r_init): ...here.
12173         * config/m32r/m32r.opt: New file.
12174
12175 2005-03-29  Keith Besaw  <kbesaw@us.ibm.com>
12176
12177         * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
12178         (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
12179         * tree-vect-analyze.c (vect_object_analysis): additional parm
12180         pass back a "struct ptr_info_def *" with the points-to info.
12181         (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
12182         statement using info returned from vect_object_analysis.
12183         * tree-vect-transform.c (update_vuses_to_preheader): New function.
12184         (vect_create_data_ref_ptr): Remove updates to vars_to_rename
12185         for virtual uses and defs when creating a replacement vector
12186         reference.  Call duplicate_ssa_name_ptr_info to define points-to
12187         info for vector pointer replacement using STMT_VINFO_PTR_INFO.
12188         (vectorizable_store): copy_virtual_operands and update
12189         definition statements.
12190         (vectorizable_load): copy_virtual_operands.  Remove call to
12191         mark_call_clobbered_vars_to_rename for call to "const" builtin.
12192         * tree-vectorizer.c (vectorize_loops): Remove calls to
12193         rewrite_into_ssa and bitmap_clear (vars_to_rename).
12194         (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
12195         * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
12196         define macro STMT_VINFO_PTR_INFO for use in accessing.
12197         * tree.h add export of duplicate_ssa_name_ptr_info.
12198         * rs6000.c (altivec_init_builtins): Declare builtin function
12199         __builtin_altivec_mask_for_load to be "const".
12200
12201 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
12202
12203         PR middle-end/20622
12204         * cgraph.h (struct cgraph_varpool_node): Add alias field.
12205         * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
12206         assemble_variable on aliases.
12207         * varasm.c (assemble_alias): Set node->alias.
12208         * toplev.c (wrapup_global_declarations): Don't call
12209         rest_of_decl_compilation on aliases again.
12210
12211 2005-03-29  Paul Brook  <paul@codesourcery.com>
12212
12213         * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
12214         * config/arm/arm.c (arm_dbx_register_number): New function.
12215         * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
12216
12217 2005-03-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
12218
12219         PR middle-end/20263
12220         * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
12221         the DECL_NAME, not the DECL_ASSEMBLER_NAME.
12222
12223 2005-03-29  Dale Johannesen <dalej@apple.com>
12224
12225         * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
12226         $(TREE_H) and $(COVERAGE_H).
12227         * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
12228         * opts.c (common_handle_option): Enable tree-based value transforms.
12229         * toplev.c (process_options): Ditto.
12230         * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
12231         refers to references to this type.
12232         * tree-flow.h: (struct stmt_ann_d): Add histograms field.
12233         * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
12234         for may_be_more, may_be_less.
12235         (rtl_gen_pow2_profiler): Adjust.
12236         (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
12237         (rtl_gen_one_value_profiler): Adjust.
12238         (rtl_gen_const_delta_profiler): Adjust.
12239         * tree-profile.c (tree_gen_interval_profiler): Implement.
12240         (tree_gen_pow2_profiler): Ditto.
12241         (tree_gen_one_value_profiler): Ditto.
12242         (tree_profiling): New.
12243         (pass_tree_profile): Reference it.
12244         * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
12245         tree.h, gcov-io.h.
12246         (insn_divmod_values_to_profile): Rename to
12247         rtl_divmod_values_to_profile. Adjust.
12248         (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
12249         (insn_prefetch_values_to_profile): Adjust.
12250         (rtl_value_profile_transformations): Adjust.
12251         (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
12252         (gen_mod_pow2): Rename to rtl_mod_pow2.
12253         (gen_mod_subtract): Rename to rtl_mod_subtract.
12254         (divmod_fixed_value_transform): Rename to
12255         rtl_divmod_fixed_value_transform.
12256         (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
12257         (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
12258         (rtl_find_values_to_profile): Adjust.
12259         (tree_value_profile_transformations): Implement.
12260         (tree_divmod_values_to_profile): New.
12261         (tree_values_to_profile): New.
12262         (tree_divmod_fixed_value): New.
12263         (tree_mod_pow2): New.
12264         (tree_mod_subtract): New.
12265         (tree_divmod_fixed_value_transform): New.
12266         (tree_mod_pow2_value_transform): New.
12267         (tree_mod_subtract_transform): New.
12268         (tree_find_values_to_profile): Implement.
12269         * profile.c (instrument_values):  Free histograms.
12270         (compute_value_histograms): Adjust. Implement tree version.
12271
12272 2005-03-29  Uros Bizjak  <uros@kss-loka.si>
12273
12274         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
12275         * config/i386/i386.c (output_fix_trunc): Add new round_mode
12276         variable.  Output "fldcw" depending on round_mode.
12277         * config/i386/i386.md (UNSPEC_FIST): New.
12278         (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
12279         New isns patterns to implement lrint and llrint built-ins as x87
12280         intrinsic function.
12281         (fistdi2, fist<mode>2 splitters): New splitters.
12282         (lrint<mode>2): New expanders.
12283
12284 2005-03-28  Ian Lance Taylor  <ian@airs.com>
12285
12286         * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
12287         0 when calling final_scan_insn.
12288
12289 2005-03-28  Jan Hubicka  <jh@suse.cz>
12290
12291         PR middle-end/20635
12292         * varasm.c (mark_decl_referenced): Do not mark extern inline functions
12293         as needed.
12294
12295         * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
12296         types where possible.
12297
12298 2005-03-26  Per Bothner  <per@bothner.com>
12299
12300         Make -f[no-]show-column also control non-cpp diagnostics.
12301         * c.opt (fshow-column): Move option from here ...
12302         * common.opt (fshow-column): ... to here.
12303         * diagnostic.c (diagnostic_build_prefix): Only print column number
12304         if flag_show_column.
12305
12306 2005-03-27  Steven Bosscher  <stevenb@suse.de>
12307
12308         * vax-protos.h (vax_output_int_move, vax_output_int_add,
12309         vax_output_conditional_branch): New prototypes.
12310         * vax.c (vax_output_int_move, vax_output_int_add): New functions,
12311         extracted from vax.md mov and add patterns.
12312         (vax_output_conditional_branch): New function to output conditional
12313         branch instructions.
12314         * vax.md: Use mode macros for arithmetic and mov patterns.
12315         Use code macros for the jump patterns.
12316
12317 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
12318
12319         * Makefile.in (libbackend.o): Depend on version files;
12320         add custom generation command.
12321
12322 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
12323
12324         PR target/20636
12325         * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
12326         sure that we have a REG before getting its REGNO.
12327
12328 2005-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12329
12330         * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
12331         * builtins.def (BUILT_IN_STRNDUP): New.
12332
12333 2005-03-25  Pat Haugen  <pthaugen@us.ibm.com>
12334
12335         PR tree-optimization/20470
12336         * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
12337         ABS(x-y).
12338
12339 2005-03-25  Mike Stump  <mrs@apple.com>
12340
12341         * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
12342         sized objects.
12343
12344 2005-03-25  Geoffrey Keating  <geoffk@apple.com>
12345
12346         * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
12347         Use our own structure definitions.
12348
12349         * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
12350         (fix_truncdfsi2): Allow registers or memory as destination.
12351         When TARGET_PPC_GFXOPT, generate simplified pattern.
12352         (fix_truncdfsi2_internal): Use define_insn_and_split.
12353         (fix_truncdfsi2_internal_gfxopt): New.
12354         (fctiwz): Don't confuse register allocation by giving it no choices.
12355         (stfiwx): New.
12356         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
12357         (EXTRA_MEMORY_CONSTRAINT): Likewise.
12358         * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
12359         * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
12360
12361 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
12362
12363         * dominance.c (free_dominance_info): Speed up by freeing et
12364         data structures without maintaining other nodes.
12365         * et-forest.c (et_free_tree_force): New.
12366         * et-forest.h: Add a prototype for et_free_tree_force.
12367
12368         * tree.c (get_set_constructor_bits,
12369         get_set_constructor_bytes): Remove.
12370         * tree.h: Remove the corresponding prototypes.
12371
12372 2005-03-25  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
12373
12374         PR target/15491
12375         * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs.
12376         (vax_rtx_costs): Return false when passed unsupported rtx's.  Handle
12377         FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE.  Fix costs for POST_INC,
12378         PRE_DEC, NEG and NOT.
12379
12380 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
12381
12382         * fold-const.c: Convert uses of fold (build (...)) to
12383         fold_buildN.
12384
12385 2005-03-25  Zdenek Dvorak  <dvorakz@suse.cz>
12386
12387         PR rtl-optimization/20249
12388         * cse.c (insert_regs): Do not record equivalence of registers in
12389         different modes.
12390
12391 2005-03-24  Kazu Hirata  <kazu@cs.umass.edu>
12392
12393         * emit-rtl.c (reverse_comparison): Remove.
12394         * rtl.h: Remove the corresponding prototype.
12395
12396 2005-03-24  James E Wilson  <wilson@specifixinc.com>
12397
12398         * doc/install.texi (--enable-altivec): Delete docs.
12399
12400 2005-03-24  David Edelsohn  <edelsohn@gnu.org>
12401
12402         * config/rs6000/predicates.md (easy_fp_constant): Return 0 for
12403         SFmode and DFmode before reload when
12404         flag_unsafe_math_optimizations not enabled.
12405
12406 2005-03-24  Geoffrey Keating  <geoffk@apple.com>
12407
12408         * c.opt (fvisibility-inlines-hidden): Allow for ObjC++.
12409
12410         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Add
12411         MASK_128BIT_LONG_DOUBLE, MASK_ALIGN_DOUBLE.
12412
12413 2005-03-24  Nathan Sidwell  <nathan@codesourcery.com>
12414
12415         * configure.ac (enable-checking): Add 'runtime' option.
12416         * doc/install.texi (enable-checking): Document 'runtime' checking.
12417         * tsystem.h (gcc_assert, gcc_unreachable): Define.
12418         * config.in: Regenerated.
12419         * configure: Regenerated.
12420
12421 2005-03-23  Uros Bizjak  <uros@kss-loka.si>
12422
12423         * optabs.h (enum optab_index): Remove OTI_llrint.
12424         (llrint_optab): Remove macro.
12425         * optabs.c (init_optabs): Remove llrint_optab initialization.
12426         * genopinit.c (optabs): Remove llrint_optab implementation.
12427         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
12428         using lrint_optab.
12429
12430 2005-03-24  Alexandre Oliva  <aoliva@redhat.com>
12431
12432         PR rtl-optimization/20532
12433         * simplify-rtx.c (simplify_binary_operation_1): Protect from
12434         overflow when adding coefficients for PLUS or MINUS.
12435         (simplify_binary_operation_1): Handle CONST_DOUBLE exact power of
12436         two as multiplier.
12437
12438 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
12439
12440         * langhooks.h (truthvalue_conversion): Remove.
12441         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
12442         LANG_HOOKS_TRUTHVALUE_CONVERSION.
12443         * system.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Poison.
12444         * gimplify.c (gimple_boolify): Don't use truthvalue_conversion.
12445         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
12446
12447 2005-03-23  Kazu Hirata  <kazu@cs.umass.edu>
12448
12449         * params.def: Fix a typo.
12450         * config/mips/mips.c: Follow the spelling convensions.
12451         * doc/invoke.texi: Fix typos.
12452
12453 2005-03-23  Daniel Berlin  <dberlin@dberlin.org>
12454
12455         Fix PR tree-optimization/20601
12456
12457         * tree-ssa-pre.c (insert_aux): Add missing condition to
12458         constification.
12459
12460 2005-03-23  Ian Lance Taylor  <ian@airs.com>
12461
12462         * final.c (final_scan_insn): Don't remove no-op instructions.
12463         * reload1.c (reload): Remove simple no-op instructions even when
12464         not optimizing.
12465
12466 2005-03-23  Dorit Naishlos  <dorit@il.ib.com>
12467
12468         PR tree-optimization/20501
12469         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
12470         reporting that peeling for alignment is applied moved to...
12471         * (vect_analyze_data_refs_alignment): Here.
12472
12473 2005-03-23  Ian Lance Taylor  <ian@airs.com>
12474
12475         * reorg.c (dbr_schedule): Remove #if 0 code to call final.
12476
12477 2005-03-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12478
12479         * config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.
12480         Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A.
12481
12482 2005-03-23  Hans-Peter Nilsson  <hp@axis.com>
12483
12484         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
12485         imply that this is called once, independent of asms in code.
12486         Adjust to now being pased output and input lists.  Mention helper
12487         function decl_overlaps_hard_reg_set_p.
12488         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
12489         hook_tree_tree_identity and to take three trees, returning third.
12490         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
12491         prototype.
12492         * stmt.c: include hard-reg-set.h before tree.h.
12493         (decl_overlaps_hard_reg_set_p): New function, broken out from...
12494         (decl_conflicts_with_clobbers_p): Call
12495         decl_overlaps_hard_reg_set_p.
12496         (expand_asm_operands): Pass output and input lists in call to
12497         targetm.md_asm_clobbers.
12498         * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
12499         hook_tree_tree_tree_tree_3rd_identity.
12500         * target.h (struct gcc_target.md_asm_clobbers): Take three tree
12501         parameters.
12502         * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
12503         * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
12504         parameters, first two unused.
12505         * config/cris/cris.c (cris_md_asm_clobbers): Adjust to added
12506         parameters.  Only add MOF to clobbers if there's no 'h' mentioned
12507         in constraint letters and MOF is not mentioned as a asm-declared
12508         register in neither of the input and output lists.
12509
12510 2005-03-23  DJ Delorie  <dj@redhat.com>
12511
12512         * optabs.c (expand_binop): Make sure the first subword's result
12513         gets stored.
12514
12515 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
12516
12517         * c-common.c (c_common_truthvalue_conversion): Adjust comment.
12518         Call c_common_truthvalue_conversion rather than
12519         lang_hooks.truthvalue_conversion.
12520         * c-convert.c (convert): Call c_objc_common_truthvalue_conversion.
12521         * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to
12522         c-typeck.c.
12523         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to
12524         c_common_truthvalue_conversion.
12525         * c-parser.c (c_parser_paren_condition, c_parser_for_statement,
12526         c_parser_conditional_expression, c_parser_binary_expression): Call
12527         c_objc_common_truthvalue_conversion.
12528         * c-typeck.c (build_unary_op): Call
12529         c_objc_common_truthvalue_conversion.
12530         (build_conditional_expr): Do not call
12531         lang_hooks.truthvalue_conversion.
12532         (build_binary_op): Call c_common_truthvalue_conversion.
12533         (c_objc_common_truthvalue_conversion): Moved from
12534         c-objc-common.c.  Call default_function_array_conversion instead
12535         of default_conversion.
12536
12537 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
12538
12539         * c-common.h (default_conversion): Remove.
12540         (perform_integral_promotions): Add.
12541         * c-tree.h (default_conversion): Add.
12542         * c-typeck.c (perform_integral_promotions): New, split out from
12543         default_conversion.
12544         * c-common.c (check_case_value): Use perform_integral_promotions,
12545         not default_conversion.
12546         (c_add_case_label): Don't continue processing case label after
12547         found to be pointer.
12548
12549 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
12550
12551         * gcc.c (do_spec_1): Do not add a -L path for a directory in
12552         the prefix list if we have already added a multilib directory
12553         based on that path.
12554         (main): Do not add MD_EXEC_PREFIX to the list of directories to
12555         search with -L.
12556
12557 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
12558
12559         * reload1.c (indirect_symref_ok, reload_obstack): Make them
12560         static.
12561         * reload.h: Remove the prototype for indirect_symref_ok.
12562
12563         * reload1.c (indirect_symref_ok): Make it global.
12564         * reload.h: Add a prototype for indirect_symref_ok.
12565
12566 2005-03-22  Kaz Kojima  <kkojima@gcc.gnu.org>
12567
12568         * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
12569         ashlhi3 expander.
12570
12571 2005-03-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
12572
12573         * tree.h (DECL_IGNORED_P, DECL_IN_SYSTEM_HEADER): Clarify comments.
12574
12575 2005-03-22  Daniel Berlin  <dberlin@dberlin.org>
12576
12577         * c-opts.c (c_common_parse_file): Only start/end main source file
12578         if debug hooks says the writer wants it.
12579         * dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
12580         member.
12581         (xcoff_debug_hooks): Ditto.
12582         * debug.c (do_nothing_hooks): Ditto.
12583         * debug.h (gcc_debug_hooks): Ditto.
12584         * dwarf2out.c (dwarf2_debug_hooks): Ditto.
12585         * sdbout.c (sdb_debug_hooks): Ditto.
12586         * vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
12587
12588 2005-03-22  Mark Mitchell  <mark@codesourcery.com>
12589
12590         * doc/extend.texi: Deprecate C++ min/max operators.
12591
12592 2005-03-22  Zdenek Dvorak  <dvorakz@suse.cz>
12593
12594         * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve
12595         artificial original candidates.
12596
12597 2005-03-22  Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
12598             Jan Hubicka  <jh@suse.cz>
12599             Steven Bosscher <stevenb@suse.de>
12600
12601         * cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
12602         call cost based on argument sizes.
12603         (cgraph_mark_inline_edge): Avoid inline unit from shrinking by
12604         inlining.
12605         * params.def: (max-inline-inssn-single): Set to 450.
12606         (max-inline-insns-auto): Set to 90.
12607         (max-inline-insns-recursive): Set to 450
12608         (max-inline-insns-recursive-auto): Set to 450.
12609         (large-function-insns): Set to 2700.
12610         (inline-call-cost): New parameter.
12611         * tree-inline.c (estimate_move_cost): New function.
12612         (estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
12613         for non-gimple-regs, set cost to 0 for gimple-regs.  Compute call size
12614         based on arguments.
12615         * tree-inline.h (estimate_move_cost): Declare.
12616         * invoke.texi: (max-inline-inssn-single): Change default to 450.
12617         (max-inline-insns-auto): Change default to 90.
12618         (max-inline-insns-recursive): Change default to 450
12619         (max-inline-insns-recursive-auto): Change default to 450.
12620         (large-function-insns): Change default to 2700.
12621         (inline-call-cost): Document new parameter.
12622
12623 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
12624
12625         * config/i860/i860.h (target_flags, TARGET_XP, TARGET_SWITCHES)
12626         (TARGET_DEFAULT): Delete.
12627         * config/i860/i860.opt: New file.
12628
12629 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
12630
12631         * config/frv/frv-protos.h (frv_branch_cost_string, frv_branch_cost_int)
12632         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
12633         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
12634         (frv_sched_lookahead): Delete.
12635         * config/frv/frv.h (MASK_DEFAULT_ALLOC_CC): Move to frv.c.
12636         (target_flags, MASK_GPR_32, MASK_FPR_32, MASK_SOFT_FLOAT)
12637         (MASK_ALLOC_CC, MASK_DWORD, MASK_DOUBLE, MASK_MEDIA, MASK_MULADD)
12638         (MASK_LIBPIC, MASK_ACC_4,  MASK_PACK, MASK_LONG_CALLS)
12639         (MASK_ALIGN_LABELS, MASK_LINKED_FP, MASK_BIG_TLS, MASK_DEBUG_ARG)
12640         (MASK_DEBUG_ADDR, MASK_DEBUG_STACK, MASK_DEBUG, MASK_DEBUG_LOC)
12641         (MASK_DEBUG_COND_EXEC, MASK_NO_COND_MOVE, MASK_NO_SCC)
12642         (MASK_NO_COND_EXEC, MASK_NO_VLIW_BRANCH, MASK_NO_MULTI_CE)
12643         (MASK_FDPIC, MASK_INLINE_PLT, MASK_GPREL_RO, MASK_DEFAULT)
12644         (TARGET_GPR_32, TARGET_FPR_32, TARGET_SOFT_FLOAT, TARGET_ALLOC_CC)
12645         (TARGET_DWORD, TARGET_DOUBLE, TARGET_MEDIA, TARGET_MULADD)
12646         (TARGET_LIBPIC, TARGET_ACC_4, TARGET_DEBUG_ARG, TARGET_DEBUG_ADDR)
12647         (TARGET_DEBUG_STACK, TARGET_DEBUG, TARGET_DEBUG_LOC)
12648         (TARGET_DEBUG_COND_EXEC, TARGET_NO_COND_MOVE, TARGET_NO_SCC)
12649         (TARGET_NO_COND_EXEC, TARGET_NO_VLIW_BRANCH, TARGET_NO_MULTI_CE)
12650         (TARGET_NO_NESTED_CE, TARGET_FDPIC, TARGET_INLINE_PLT, TARGET_BIG_TLS)
12651         (TARGET_GPREL_RO, TARGET_PACK, TARGET_LONG_CALLS, TARGET_ALIGN_LABELS)
12652         (TARGET_LINKED_FP, TARGET_GPR_64, TARGET_FPR_64, TARGET_HARD_FLOAT)
12653         (TARGET_FIXED_CC, TARGET_COND_MOVE, TARGET_SCC, TARGET_COND_EXEC)
12654         (TARGET_VLIW_BRANCH, TARGET_MULTI_CE, TARGET_NESTED_CE, TARGET_ACC_8)
12655         (TARGET_SWITCHES, TARGET_OPTIONS, DEFAULT_CONDEXEC_TEMPS)
12656         (DEFAULT_BRANCH_COST, DEFAULT_CONDEXEC_INSNS): Delete.
12657         * config/frv/frv.c (frv_branch_cost_string, frv_branch_cost_int)
12658         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
12659         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
12660         (frv_sched_lookahead): Delete.
12661         (MASK_DEFAULT_ALLOC_CC): Moved from frv.h.
12662         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
12663         (frv_handle_option): New function.  Move -mcpu= handling from...
12664         (frv_override_options): ...here.  Remove handling of other
12665         TARGET_OPTIONS.
12666         (frv_ifcvt_modify_tests): Check !TARGET_COND_EXEC instead of
12667         TARGET_NO_COND_EXEC and !TARGET_NESTED_CE to TARGET_NO_NESTED_CE.
12668         (frv_ifcvt_modify_multiple_tests): Likewise !TARGET_MULTI_CE
12669         and TARGET_NO_MULTI_CE.
12670         (frv_for_each_packet): Likewise TARGET_NO_VLIW_BRANCH and
12671         !TARGET_VLIW_BRANCH.
12672         * config/frv/frv.opt: New file.
12673
12674 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
12675
12676         * fold-const.c (fold_ternary): Take decomposed arguments of
12677         CALL_EXPR.
12678         (fold): Update a call to fold_ternary.
12679
12680         * fold-const.c (fold_build1, fold_build2, fold_build3): New.
12681         * tree.h: Add corresponding prototypes.
12682
12683 2005-03-22  Jakub Jelinek  <jakub@redhat.com>
12684
12685         PR target/20561
12686         * cfglayout.c (reemit_insn_block_notes): Don't put block notes in
12687         between jump table and its label.
12688         * final.c (shorten_branches): Handle notes in between ADDR_VEC
12689         resp. ADDR_DIFF_VEC and the label preceeding it.
12690         (final_scan_insn): Likewise.  Ensure ADDR_VEC resp. ADDR_DIFF_VEC
12691         is emitted in the right section.
12692
12693 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
12694
12695         * fold-const.c (fold_unary, fold_binary): Update comments
12696         about arguments.
12697
12698 2005-03-22  Hans-Peter Nilsson  <hp@axis.com>
12699
12700         PR rtl-optimization/20527
12701         * combine.c (can_combine_p) [AUTO_INC_DEC]: When INSN has an
12702         REG_INC note, test that the register also isn't mentioned in PRED
12703         or SUCC.
12704
12705 2005-03-22  Ben Elliston  <bje@au.ibm.com>
12706
12707         * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
12708         and definition.
12709
12710 2005-03-21  Mike Stump  <mrs@apple.com>
12711
12712         * varasm.c (default_assemble_visibility): Remove extra ().
12713
12714 2005-03-21  Roger Sayle  <roger@eyesopen.com>
12715
12716         PR middle-end/20557
12717         * bb-reorder.c (duplicate_computed_gotos): Use can_duplicate_block_p
12718         to determine whether a block can be duplicated, rather than test
12719         whether the block contains noncopyable insns ourselves.
12720
12721 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
12722
12723         * config/i860/i860.h (PREDICATE_CODES): Remove nonexistent
12724         predicates.
12725
12726 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
12727
12728         * config/ip2k/ip2k.h (target_flags, TARGET_SWITCHES): Delete.
12729
12730 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
12731
12732         * config/fr30/fr30.h (TARGET_SMALL_MODEL_MASK, TARGET_SMALL_MODEL)
12733         (TARGET_DEFAULT, target_flags, TARGET_SWITCHES): Delete.
12734         * config/fr30/fr30.opt: New file.
12735
12736 2005-03-18  Daniel Berlin  <dberlin@dberlin.org>
12737
12738         Fix PR tree-optimization/20542
12739
12740         * tree-flow-inline.h (overlap_subvar): Move to here.
12741         * tree-ssa-operands.c: From here.
12742         * tree-flow.h (overlap_subvar): Declare.
12743         * tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
12744         * tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
12745         for variables with subvars.
12746
12747 2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
12748
12749         PR middle-end/20177
12750         * ddg.c (create_ddg_dependence): Ignore reg-anti dependency.
12751         * modulo-sched.c (const_iteration_count): Return on NULL
12752         pre-header.
12753         (print_node_sched_params): Return on NULL dump_file.
12754         (generate_reg_moves): Handle reg-anti dependencies and disregard
12755         closing branch when generating register moves.
12756         (sms_schedule): Mark the SMSed block dirty.
12757         * passes.c (rest_of_handle_sms): Call update_life_info for all
12758         basic-blocks.
12759         * testsuite/gcc.dg/20050321-1.c: New test.
12760
12761 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
12762
12763         * config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
12764         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
12765         movqi_internal): Likewise.
12766
12767 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
12768
12769         * config/xtensa/xtensa-protos.h: (xtensa_simm7, xtensa_uimm8,
12770         xtensa_uimm8x2, xtensa_uimm8x4, xtensa_ai4const, xtensa_lsi4x4,
12771         xtensa_b4const): Delete prototypes.
12772         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b, xtensa_b4constu,
12773         xtensa_mask_immediate, xtensa_mem_offset): Update prototypes.
12774         (xtensa_b4const_or_zero, xtensa_const_ok_for_letter_p,
12775         xtensa_extra_constraint): New prototypes.
12776         (add_operand, arith_operand, nonimmed_operand, mem_operand,
12777         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
12778         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
12779         move_operand, const_float_1_operand, fpmem_offset_operand,
12780         branch_operator, ubranch_operator, boolean_operator): Delete prototypes.
12781         * config/xtensa/xtensa.c (b4const_or_zero): Rename to ...
12782         (xtensa_b4const_or_zero): ...this.  Change return type to bool and
12783         argument type to HOST_WIDE_INT.
12784         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b,
12785         xtensa_mask_immediate): Likewise.
12786         (xtensa_uimm8, xtensa_uimm8x2, xtensa_uimm8x4, xtensa_b4const):
12787         Likewise.  Also make these functions static.
12788         (xtensa_simm7, xtensa_ai4const, xtensa_lsi4x4): Delete.
12789         (xtensa_const_ok_for_letter_p): New.
12790         (add_operand, arith_operand, nonimmed_operand, mem_operand,
12791         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
12792         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
12793         move_operand, const_float_1_operand, fpmem_offset_operand,
12794         branch_operator, ubranch_operator, boolean_operator): Move to
12795         predicates.md.
12796         (smalloffset_mem_p): Inline code from xtensa_lsi4x4.
12797         (xtensa_mem_offset): Change return type to bool.
12798         (xtensa_extra_constraint): New.
12799         (gen_int_relational): Update type of const_range_p function pointer.
12800         Use xtensa_b4const_or_zero.
12801         * config/xtensa/xtensa.h (CONST_OK_FOR_LETTER_P): Define to
12802         xtensa_const_ok_for_letter_p.  Update comments.
12803         (EXTRA_CONSTRAINT): Define to xtensa_extra_constraint.
12804         (PREDICATE_CODES): Delete.
12805         * config/xtensa/xtensa.md: Include predicates.md.
12806         * config/xtensa/predicates.md: New file.
12807
12808 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
12809
12810         * config/v850/v850-protos.h: Remove the prototypes for
12811         reg_or_int9_operand, reg_or_const_operand,
12812         pattern_is_ok_for_prepare, pattern_is_ok_for_dispose,
12813         reg_or_0_operand, reg_or_int5_operand, call_address_operand,
12814         movsi_source_operand, power_of_two_operand,
12815         not_power_of_two_operand, special_symbolref_operand,
12816         pattern_is_ok_for_prologue, pattern_is_ok_for_epilogue, and
12817         register_is_ok_for_epilogue.
12818         * config/v850/v850.c (reg_or_0_operand, reg_or_int5_operand,
12819         reg_or_int9_operand, reg_or_const_operand,
12820         call_address_operand, special_symbolref_operand,
12821         movsi_source_operand, power_of_two_operand,
12822         not_power_of_two_operand, register_is_ok_for_epilogue,
12823         pattern_is_ok_for_epilogue, pattern_is_ok_for_prologue,
12824         pattern_is_ok_for_dispose, pattern_is_ok_for_prepare): Move to
12825         predicates.md.
12826         * config/v850/v850.h (PREDICATE_CODES): Remove.
12827         * config/v850/v850.md: Include predicates.md.
12828         * config/v850/predicates.md: New.
12829
12830 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
12831
12832         * Makefile.in (BASEVER, DEVPHASE, DATESTAMP)
12833         (BASEVER_c, DEVPHASE_c, DATESTAMP_c)
12834         (BASEVER_s, DEVPHASE_s, DATESTAMP_s, version): Set with :=.
12835         (itoolsdir, itoolsdatadir): Move definition above new first use.
12836         (install-itoolsdirs): New rule.
12837         (install-mkheaders): Depend on install-itoolsdirs, not
12838         install-include-dir.
12839
12840 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
12841
12842         * tree-into-ssa.c: Remove obsolete comments.
12843
12844 2005-03-21  Richard Guenther  <rguenth@gcc.gnu.org>
12845
12846         * tree-ssa-loop.c (gate_tree_complete_unroll): Run complete
12847         unrolling if -fpeel-loops is specified, too.
12848         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
12849         Remove superfluous check for flag_unroll_loops.
12850
12851 2005-03-21  Uros Bizjak  <uros@kss-loka.si>
12852
12853         * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
12854         (lrint_optab, llrint_optab): Define corresponding macros.
12855         * optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
12856         * genopinit.c (optabs): Implement lrint_optab using lrintsi2
12857         pattern and llrint_optab using llrintdi2 patterns.
12858         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
12859         using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
12860         (expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
12861         BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
12862         flag_unsafe_math_optimizations is set.
12863
12864 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
12865
12866         * combine.c (combine_simplify_rtx, simplify_if_then_else,
12867         simplify_logical, if_then_else_cond, known_cond,
12868         simplify_comparison): Adjust calls to reverse_comparison.
12869         Don't use combine_reversed_comparison_code).
12870         (combine_reversed_comparison_code): Remove.
12871         (reversed_comparison): Using reversed_comparison_code, move it...
12872         * jump.c (reversed_comparison): ... here.
12873         * rtl.h (reversed_comparison): Add prototype.
12874
12875 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
12876
12877         * builtins.c (fold_builtin): Take decomposed arguments of
12878         CALL_EXPR.
12879         * fold-const.c (fold_ternary): Update a call to fold_builtin.
12880         * gimplify.c (gimplify_call_expr): Likewise.
12881         * tree-ssa-ccp.c (ccp_fold, ccp_fold_builtin): Likewise.
12882         * tree.h: Update the prototype of fold_builtin.
12883
12884 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
12885
12886         * rtl.h (struct rtx_hooks): Add gen_lowpart_no_emit.
12887         * rtlhooks.c (gen_lowpart_no_emit_general): New.
12888         * rtlhooks-def.h (gen_lowpart_no_emit_general): Declare.
12889         (RTL_HOOKS_GEN_LOWPART_NO_EMIT): New.
12890         * simplify-rtx.c (simplify_binary_operation_1): Use it.
12891
12892 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
12893
12894         * builtins.c (fold_builtin_1): Take decomposed arguments of
12895         CALL_EXPR.
12896         (fold_builtin): Update a call to fold_builtin_1.
12897
12898 2005-03-21  Nathan Sidwell  <nathan@codesourcery.com>
12899
12900         PR other/20564
12901         * gcov.c (output_lines): Only output function block summary when
12902         outputting branch information.
12903         * doc/gcov.texi: Document format of preamble and additional block
12904         information lines.
12905
12906 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
12907
12908         * libgcc2.h (LIBGCC2_HAS_SF_MODE): New macro.
12909         (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_TF_MODE, LIBGCC2_HAS_XF_MODE): Make
12910         the defaults false if BITS_PER_UNIT != 8.
12911         (SFtype, SCtype, __fixsfdi, __floatdisf, __fixunssfSI, __fixunssfDI)
12912         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE rather
12913         than BITS_PER_UNIT != 8.
12914         (L_fixdfdi, L_fixsfdi, L_fixtfdi, L_fixunsdfdi, L_fixunsdfsi)
12915         (L_fixunssfdi, L_fixunssfsi, L_fixunstfdi, L_fixunsxfdi, L_fixunsxfsi)
12916         (L_fixxfdi, L_floatdidf, L_floatdisf, L_floatditf, L_floatdixf): Remove
12917         #undefs.
12918         * libgcc2.c (__fixunssfDI, __fixsfdi, __floatdisf, __fixunssfSI)
12919         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE.
12920
12921 2005-03-20  Roger Sayle  <roger@eyesopen.com>
12922
12923         PR middle-end/20539
12924         * fold-const.c (fold_binary): Fix type mismatch between
12925         TRUTH_{AND,OR,XOR}_EXPR nodes an their operands' types.
12926         (fold_binary) <TRUTH_XOR_EXPR>: Avoid calling invert_truthvalue
12927         for non-truth-valued expressions.
12928
12929         * c-common.c (c_common_truthvalue_conversion): Handle ERROR_MARK
12930         and FUNCTION_DECL in the main switch.
12931         <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
12932         TRUTH_XOR_EXPR>: When changing the result type of these tree nodes,
12933         we also need to convert their operands to match.
12934         <TRUTH_NOT_EXPR>: Likewise.
12935
12936 2005-03-21  Joseph S. Myers  <joseph@codesourcery.com>
12937
12938         * c-common.c (lvalue_or_else): Replace by lvalue_error; only give
12939         diagnostic without checking whether an lvalue.
12940         * c-common.h (lvalue_p): Remove.
12941         (enum lvalue_use): Update comment.
12942         (lvalue_or_else): Replace by lvalue_error.
12943         * c-typeck.c (lvalue_p): Make static.
12944         (lvalue_or_else): New.  Call lvalue_error.
12945
12946 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
12947
12948         * config/rs6000/rs6000.c (rs6000_parm_start): New function.
12949         (function_arg_advance): Use rs6000_parm_start.
12950         (function_arg, rs6000_arg_partial_bytes): Likewise.
12951
12952 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
12953
12954         * c-common.c (check_case_value): Adjust comment about stripping
12955         NOPs.
12956         (handle_vector_size_attribute): Don't strip NON_LVALUE_EXPR.
12957         * c-typeck.c (default_conversion, convert_arguments,
12958         build_modify_expr, convert_for_assignment, store_init_value,
12959         digest_init): Use STRIP_TYPE_NOPS instead of stripping nops
12960         manually.  Remove inaccurate comments.
12961
12962 2005-03-20  Roger Sayle  <roger@eyesopen.com>
12963             Joseph S. Myers  <joseph@codesourcery.com>
12964
12965         * varasm.c (do_assemble_alias): Restore comment describing function.
12966         Annotate the target parameter as potentially unused.
12967
12968 2005-03-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
12969
12970         PR target/18551
12971         * config/avr/avr.c (avr_output_function_prologue): Do not use
12972         current_function_name() in a label, use a local label instead.
12973
12974 2005-03-20  David Edelsohn  <edelsohn@gnu.org>
12975
12976         * config/rs6000/rs6000.c (rs6000_generate_compare): Test
12977         flag_finite_math_only, not flag_unsafe_math_optimizations.
12978
12979 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
12980
12981         * builtins.c (fold_builtin_1): Update a call to
12982         targetm.fold_builtin.
12983         * hooks.c (hook_tree_tree_bool_null): Rename to
12984         hook_tree_tree_tree_bool_null.  Take one more argument of type
12985         tree.
12986         * hooks.h: Update the prototype of hook_tree_tree_bool_null.
12987         * target-def.h (TARGET_FOLD_BUILTIN): Define it as
12988         hook_tree_tree_tree_bool_null.
12989         * target.h (gcc_target): Update the prototype of fold_builtin.
12990         * config/alpha/alpha.c (alpha_fold_builtin): Take decomposed
12991         arguments of CALL_EXPR.
12992         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update.  Mention the
12993         new prototype.
12994
12995 2005-03-20  Jan Hubicka  <jh@suse.cz>
12996
12997         * cgraph.h (cgraph_node): Add prev_clone pointer.
12998         * cgraph.c (cgraph_remove_node): Remove from doubly linked chain.
12999         (cgraph_clone_node): Produce doubly linked chain.
13000
13001 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
13002
13003         * c-common.c (handle_aligned_attribute, check_function_sentinel,
13004         get_nonnull_operand, handle_sentinel_attribute,
13005         check_function_arguments_recurse): Do not strip NOPS from
13006         INTEGER_CSTs.
13007         * c-decl.c (check_bitfield_type_and_width, build_enumerator):
13008         Likewise.
13009         * c-format.c (get_constant): Likewise.
13010         * c-parser.c (c_parser_postfix_expression): Likewise.
13011         * c-typeck.c (set_init_index): Likewise.
13012         (convert_arguments): Don't check for NOP_EXPR containing integer
13013         constant.
13014
13015 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
13016
13017         * builtins.c (fold_fixed_mathfn, fold_builtin_trunc,
13018         fold_builtin_floor, fold_builtin_ceil, fold_builtin_lround):
13019         Take decomposed arguments of CALL_EXPR.
13020         (fold_builtin_1): Update calls to the functions mentioned
13021         above.
13022
13023 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
13024
13025         * c-decl.c (check_bitfield_type_and_width): Require bit-field
13026         width to have integer type.
13027         (build_enumerator): Require enumerator value to have integer type.
13028
13029 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
13030
13031         * doc/extend.texi (__builtin_inf): Move statement about INFINITY
13032         to __builtin_inff.
13033
13034 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
13035
13036         * c.opt (ansi, std=iso9899:1990, std=iso9899:1999,
13037         std=iso9899:199x): Correct descriptions.
13038
13039 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
13040
13041         * config.gcc: Consistently use solaris2.1[0-9]* instead of
13042         solaris2.1[0-9].
13043
13044 2005-03-19  Kazu Hirata  <kazu@cs.umass.edu>
13045
13046         * builtins.c (fold_builtin_memcpy): Take decomposed arguments
13047         of CALL_EXPR.
13048         (expand_builtin_memcpy, fold_builtin_1): Update calls to
13049         fold_builtin_memcpy.
13050
13051         * builtins.c (fold_trunc_transparent_mathfn): Take decomposed
13052         arguments of CALL_EXPR.
13053         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil,
13054         fold_builtin_found, fold_builtin_1): Update calls to
13055         fold_trunc_transparent_mathfn.
13056
13057 2005-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13058
13059         PR middle-end/20493
13060         * fold-const.c (fold_widened_comparison): Don't optimize casts of
13061         function pointers on targets that require function pointer
13062         canonicalization.
13063         (fold_sign_changed_comparison): Likewise.
13064
13065 2005-03-19  Bernd Schmidt  <bernd.schmidt@analog.com>
13066
13067         * combine.c (try_combine): When changing the mode of a hard reg, make
13068         sure that doing so is valid.
13069
13070 2005-03-19  Richard Sandiford  <rsandifo@redhat.com>
13071
13072         * config/avr/avr.c (avr_init_stack, avr_mcu_name): Make static.
13073         (TARGET_HANDLE_OPTION): Override default.
13074         (avr_handle_option): New function.
13075         * config/avr/avr.h (MASK_ALL_DEBUG, MASK_ORDER_1, MASK_INSN_SIZE_DUMP)
13076         (MASK_ORDER_2, MASK_NO_TABLEJUMP, MASK_INT8, MASK_NO_INTERRUPTS)
13077         (MASK_CALL_PROLOGUES, MASK_TINY_STACK, MASK_SHORT_CALLS)
13078         (TARGET_ORDER_1, TARGET_ORDER_2, TARGET_INT8, TARGET_NO_INTERRUPTS)
13079         (TARGET_INSN_SIZE_DUMP, TARGET_CALL_PROLOGUES, TARGET_TINY_STACK)
13080         (TARGET_NO_TABLEJUMP, TARGET_SHORT_CALLS, TARGET_ALL_DEBUG)
13081         (TARGET_SWITCHES, avr_init_stack, avr_mcu_name)
13082         (TARGET_OPTIONS): Delete.
13083         * config/avr/avr.opt: New file.
13084
13085 2005-03-18  2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
13086
13087         * config/m32r/m32r-protos.h: Remove the prototypes for
13088         call_address_operand, symbolic_operand, seth_add3_operand,
13089         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
13090         reg_or_uint16_operand, reg_or_cmp_int16_operand,
13091         two_insn_const_operand, move_src_operand,
13092         move_double_src_operand, move_dest_operand,
13093         eqne_comparison_operator, signed_comparison_operator,
13094         large_insn_p, conditional_move_operand, carry_compare_operand,
13095         m32r_block_immediate_operand, extend_operand,
13096         reg_or_eq_int16_operand, int8_operand, and
13097         reg_or_zero_operand.
13098         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
13099         seth_add3_operand, int8_operand, cmp_int16_operand,
13100         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
13101         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
13102         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
13103         move_double_src_operand, move_dest_operand,
13104         eqne_comparison_operator, signed_comparison_operator,
13105         extend_operand, small_insn_p, large_insn_p,
13106         conditional_move_operand, carry_compare_operand,
13107         m32r_block_immediate_operand): Move to predicates.md.
13108         (MAX_MOVE_BYTES): Move to m32r.h.
13109         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
13110         * config/m32r/m32r.md: Include predicates.md.
13111         * config/m32r/predicates.md: New.
13112
13113 2005-03-18  James E Wilson  <wilson@specifixinc.com>
13114
13115         PR c++/19769
13116         * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
13117         origin.
13118
13119 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
13120
13121         * config/mn10300/mn10300-protos.h: Remove the prototypes for
13122         call_address_operand, const_8bit_operand.
13123         * config/mn10300/mn10300.c (call_address_operand,
13124         const_8bit_operand, const_1f_operand): Move to predicates.md.
13125         * config/mn10300/mn10300.h (PREDICATE_CODES): Remove.
13126         * config/mn10300/mn10300.md: Include predicates.md.
13127         * config/mn10300/predicates.md: New.
13128
13129 2005-03-18  Joseph S. Myers  <joseph@codesourcery.com>
13130
13131         * c-common.c, c-decl.c, c-format.c, c-typeck.c: Use %D for
13132         declarations in diagnostics and %E for identifiers, not %s.
13133
13134 2005-03-18  Jan Hubicka  <jh@suse.cz>
13135             Dale Johannesen  <dalej@apple.com>
13136
13137         * basic-block.h (scale_bbs_frequencies_int,
13138         scale_bbs_frequencies_gcov_type): Declare.
13139         * cfg.c (RDIV): New macro.
13140         (update_bb_frequency_for_threading): Fix.
13141         * basic-block.h (scale_bbs_frequencies_int,
13142         scale_bbs_frequencies_gcov_type): New.
13143         * cfgloopmanip.c (scale_bbs_frequencies): Kill.
13144         (scale_loop_frequencies, duplicate_loop_to_header_edge): Use
13145         scale_bbs_frequencies_int.
13146         * tree-ssa-loop-ch.c (copy_loop_headers): Fix profiling info.
13147
13148 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
13149
13150         * config/m32r/m32r-protos.h: Remove the prototypes for
13151         call_address_operand, symbolic_operand, seth_add3_operand,
13152         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
13153         reg_or_uint16_operand, reg_or_cmp_int16_operand,
13154         two_insn_const_operand, move_src_operand,
13155         move_double_src_operand, move_dest_operand,
13156         eqne_comparison_operator, signed_comparison_operator,
13157         large_insn_p, conditional_move_operand, carry_compare_operand,
13158         m32r_block_immediate_operand, extend_operand,
13159         reg_or_eq_int16_operand, int8_operand, and
13160         reg_or_zero_operand.
13161         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
13162         seth_add3_operand, int8_operand, cmp_int16_operand,
13163         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
13164         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
13165         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
13166         move_double_src_operand, move_dest_operand,
13167         eqne_comparison_operator, signed_comparison_operator,
13168         extend_operand, small_insn_p, large_insn_p,
13169         conditional_move_operand, carry_compare_operand,
13170         m32r_block_immediate_operand): Move to predicates.md.
13171         (MAX_MOVE_BYTES): Move to m32r.h.
13172         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
13173         * config/m32r/m32r.md: Include predicates.md.
13174         * config/m32r/predicates.md: New.
13175
13176         * config/pa/pa-protos.h: Add prototypes for magic_milli and
13177         shadd_constant_p.
13178         * config/pa/pa.c (reg_or_0_operand, call_operand_address,
13179         symbolic_operand, symbolic_memory_operand,
13180         reg_or_0_or_nonsymb_mem_operand, reg_before_reload_operand,
13181         indexed_memory_operand, move_dest_operand, move_src_operand,
13182         prefetch_cc_operand, prefetch_nocc_operand,
13183         reg_or_cint_move_operand, pic_label_operand, fp_reg_operand,
13184         arith_operand, arith11_operand, pre_cint_operand,
13185         post_cint_operan, arith_double_operand, ireg_or_int5_operand,
13186         ireg_operand, int5_operand, uint5_operand, int11_operand,
13187         uint32_operand, arith5_operand, and_operand, ior_operand,
13188         lhs_lshift_operand, lhs_lshift_cint_operand, arith32_operand,
13189         pc_or_label_operand, div_operand, plus_xor_ior_operator,
13190         shadd_operand, movb_comparison_operator,
13191         cmpib_comparison_operator): Move to predicates.md.
13192         (magic_milli, shadd_constant_p): Make it extern.
13193         * config/pa/pa.h (PREDICATE_CODES): Remove.
13194         * config/pa/pa.md: Include predicates.md.
13195         * config/pa/predicates.md: New.
13196
13197         * config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent
13198         predicate.
13199
13200 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
13201
13202         * hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c,
13203         config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
13204         config/alpha/freebsd.h, config/alpha/linux.h,
13205         config/alpha/netbsd.h, config/alpha/osf5.h,
13206         config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h,
13207         config/h8300/h8300-protos.h, config/h8300/h8300.c,
13208         config/h8300/h8300.h, config/ia64/unwind-ia64.c,
13209         doc/cppopts.texi: Update copyright.
13210
13211 2005-03-18  Jan Hubicka  <jh@suse.cz>
13212
13213         PR middle-end/20225
13214         * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called
13215         too late.
13216         * varasm.c (find_decl_and_mark_needed): Mark needed only when not
13217         called too late.
13218
13219 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
13220
13221         * tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
13222         VEC_safe_push.
13223
13224 2005-03-18  Paolo Bonzini  <bonzini@gnu.org>
13225
13226         * combine.c (gen_binary): Remove.
13227         (known_cond, simplify_shift_const, find_split_point,
13228         combine_simplify_rtx, simplify_if_then_else, simplify_set,
13229         simplify_logical, expand_field_assignment, extract_left_shift,
13230         force_to_mode, if_then_else_cond, apply_distributive_law,
13231         simplify_and_const_int, simplify_shift_const, gen_lowpart_for_combine,
13232         simplify_comparison, reversed_comparison): Replace with
13233         simplify_gen_binary, simplify_gen_relational or
13234         distribute_and_simplify_rtx.
13235         (distribute_and_simplify_rtx): New function.
13236
13237 2005-03-18  Alexey Neyman  <alex.neyman@auriga.ru>
13238             Paolo Bonzini  <gcc.gnu.org>
13239
13240         * calls.c (setjmp_call_p, special_function_p): Update comments
13241         at the head of the functions.
13242
13243 2005-03-18  Jan Hubicka  <jh@suse.cz>
13244
13245         * tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
13246
13247         * cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether
13248         function body should be released; do not proactively release function
13249         bodies in non-unit-at-a-time mode.
13250
13251 2005-03-18  Ralf Corsepius  <ralf.corsepius@rtems.org>
13252
13253         * config/i386/t-rtems-i386 (MULTILIBS): Remove k6, athlon,
13254         mno-fp-ret-in-387 multilib variants.
13255
13256 2005-03-18  Richard Sandiford  <rsandifo@redhat.com>
13257
13258         * common.opt (m): Remove.
13259         * opts.c (handle_option): Pass 'm' options to set_target_switch if
13260         table lookup fails.
13261         (common_handle_option): Remove OPT_m case.
13262
13263 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
13264
13265         * builtins.c (fold_builtin_bitop): Take decomposed arguments
13266         of CALL_EXPR.
13267         (fold_builtin_1): Update a call to fold_builtin_bitop.
13268
13269         * builtins.c (fold_builtin_signbit): Take decomposed arguments
13270         of CALL_EXPR.
13271         (fold_builtin_1): Update a call to fold_builtin_signbit.
13272
13273 2005-03-17  Dorit Naishlos  <dorit@il.ibm.com>
13274
13275         PR tree-optimization/20474
13276         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the
13277         size_type of the relevant pointer. Check for COMPLETE_TYPE_P.
13278
13279 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
13280
13281         * config/h8300/h8300-protos.h: Remove prototypes for
13282         general_operand_src, general_operand_dst, single_one_operand,
13283         single_zero_operand, call_insn_operand,
13284         two_insn_adds_subs_operand, small_call_insn_operand,
13285         jump_address_operand, bit_operand, bit_memory_operand,
13286         stack_pointer_operand, const_int_gt_2_operand,
13287         const_int_ge_8_operand, const_int_qi_operand,
13288         const_int_hi_operand, incdec_operand, bit_operator,
13289         nshift_operator, eqne_operator, gtle_operator,
13290         gtuleu_operator, iorxor_operator.
13291         Add prototypes for h8sx_shift_type h8sx_classify_shift and
13292         h8300_ldm_stm_parallel.
13293         * config/h8300/h8300.c (h8sx_shift_type,): Move to
13294         h8300-protos.h.
13295         (SYMBOL_FLAG_FUNCVEC_FUNCTION, SYMBOL_FLAG_EIGHTBIT_DATA,
13296         SYMBOL_FLAG_TINY_DATA): Move to h8300.h.
13297         (h8300_ldm_stm_parallel): Make it extern.
13298         (h8300_ldm_parallel, h8300_stm_parallel,
13299         h8300_return_parallel, general_operand_src,
13300         general_operand_dst, h8300_dst_operand, h8300_src_operand,
13301         nibble_operand, reg_or_nibble_operand, single_one_operand,
13302         single_zero_operand, call_insn_operand,
13303         two_insn_adds_subs_operand, small_call_insn_operand,
13304         jump_address_operand, bit_operand, bit_memory_operand,
13305         stack_pointer_operand, const_int_gt_2_operand,
13306         const_int_ge_8_operand, const_int_qi_operand,
13307         const_int_hi_operand, incdec_operand, eqne_operator,
13308         gtle_operator, gtuleu_operator, iorxor_operator, bit_operator,
13309         h8sx_binary_memory_operator, h8sx_unary_memory_operator,
13310         h8sx_unary_shift_operator, h8sx_binary_shift_operator,
13311         nshift_operator): Move to predicates.md.
13312         * config/h8300/h8300.h (PREDICATE_CODES): Remove.
13313         * config/h8300/h8300.md: Include predicates.md.
13314         * config/h8300/predicates.md: New.
13315
13316 2005-03-17  Richard Henderson  <rth@redhat.com>
13317
13318         * config.gcc (ia64*-*-hpux*): Add extra_options.
13319         * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove.
13320         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
13321         * config/ia64/ia64.c (ia64_fixed_range_string): Remove.
13322         (ia64_tls_size_string, ia64_tune_string): Remove.
13323         (ia64_tune): Init to PROCESSOR_ITANIUM2.
13324         (TARGET_DEFAULT_TARGET_FLAGS): New.
13325         (TARGET_HANDLE_OPTION): New.
13326         (ia64_override_options): Move options parsing ...
13327         (ia64_handle_option): ... here.  New.
13328         * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS,
13329         MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32,
13330         MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC,
13331         MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR,
13332         MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR,
13333         MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM,
13334         MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD,
13335         TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES,
13336         TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC,
13337         TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR,
13338         TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR,
13339         TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT,
13340         TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM,
13341         TARGET_EARLY_STOP_BITS): Remove.
13342         (TARGET_ILP32): Default false.
13343         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove.
13344         (enum ia64_inline_type): New.
13345         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
13346         * config/ia64/ia64.md: Update for new definitions of
13347         TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT.
13348         * config/ia64/ia64.opt: New file.
13349         * config/ia64/ilp32.opt: New file.
13350
13351 2005-03-17  H.J. Lu  <hongjiu.lu@intel.com>
13352
13353         PR target/18380
13354         * config/ia64/unwind-ia64.c (_Unwind_FindTableEntry): Removed.
13355
13356 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
13357
13358         * config/h8300/h8300.c (h8300_init_once): Use MASK_H8300S_1
13359         instead of MASK_H8300S.
13360         * config/h8300/h8300.h (target_flags, MASK_H8300S, MASK_MAC,
13361         MASK_INT32, MASK_ADDRESSES, MASK_QUICKCALL, MASK_SLOWBYTE,
13362         MASK_NORMAL_MODE, MASK_RELAX, MASK_H8300H, MASK_ALIGN_300,
13363         MASK_H8300SX, TARGET_INT32, TARGET_ADDRESSES,
13364         TARGET_QUICKCALL, TARGET_SLOWBYTE, TARGET_H8300H,
13365         TARGET_H8300XS, TARGET_NORMAL_MODE, TARGET_ALIGN_300,
13366         TARGET_SWITCHES): Remove.
13367         (TARGET_H8300S): Redefine interms of TARGET_H8300S_1 and
13368         TARGET_H8300SX.
13369         * config/h8300/h8300.opt: New.
13370
13371         * config/alpha/alpha.opt, config/arc/arc.opt,
13372         config/h8300/h8300.opt, config/mips/mips.opt: Add copyright
13373         notices.
13374
13375 2005-03-17  Ian Lance Taylor  <ian@airs.com>
13376
13377         * gmon.c: Remove.
13378
13379 2005-03-17  Richard Sandiford  <rsandifo@redhat.com>
13380
13381         * config/arc/arc.c (arc_cpu_string): Make static.  Default to "base"
13382         (arc_text_string, arc_data_string, arc_rodata_string): Make static.
13383         (TARGET_HANDLE_OPTION): Override default.
13384         (arc_handle_option): New function.
13385         (arc_init): Remove code to set arch_cpu_string.
13386         * config/arc/arc.h (target_flags, TARGET_MASK_MANGLE_CPU)
13387         (TARGET_MANGLE_CPU, TARGET_MASK_MANGLE_CPU_LIBGCC)
13388         (TARGET_MANGLE_CPU_LIBGCC, TARGET_MASK_ALIGN_LOOPS, TARGET_ALIGN_LOOPS)
13389         (TARGET_MASK_BIG_ENDIAN, TARGET_BIG_ENDIAN, TARGET_MASK_NO_COND_EXEC)
13390         (TARGET_NO_COND_EXEC, TARGET_SWITCHES, TARGET_DEFAULT)
13391         (SUBTARGET_SWITCHES, arc_cpu_string, arc_text_string, arc_data_string)
13392         (arc_rodata_string, TARGET_OPTIONS): Delete.
13393         * config/arc/arc.opt: New file.
13394
13395 2005-03-17  Richard Henderson  <rth@redhat.com>
13396
13397         * doc/extend.texi (Weak Pragmas): New section.
13398         (attribute alias): Clarify that target must be in the same
13399         translation unit.
13400
13401 2005-03-17  Richard Henderson  <rth@redhat.com>
13402
13403         * config/alpha/alpha.opt: New file.
13404         * config/alpha/alpha.c (alpha_tune): New.  Rename all existing uses
13405         of alpha_cpu.
13406         (alpha_cpu_string, alpha_tune_string, alpha_tp_string,
13407         alpha_fprm_string, alpha_fptm_string): Make static.
13408         (alpha_tls_size_string): Remove.
13409         (alpha_handle_option): New.
13410         (override_options): Update for alpha_cpu/alpha_tune split.
13411         (alpha_file_start): Likewise.
13412         (TARGET_DEFAULT_TARGET_FLAGS): New.
13413         (TARGET_HANDLE_OPTION): New.
13414         * config/alpha/alpha.h (alpha_tune): Declare.
13415         (MASK_FP, MASK_FPREGS, TARGET_FPREGS, MASK_GAS, TARGET_GAS,
13416         MASK_IEEE_CONFORMANT, TARGET_IEEE_CONFORMANT, MASK_IEEE, TARGET_IEEE,
13417         MASK_IEEE_WITH_INEXACT, TARGET_IEEE_WITH_INEXACT, MASK_BUILD_CONSTANTS,
13418         TARGET_BUILD_CONSTANTS, MASK_FLOAT_VAX, TARGET_FLOAT_VAX, MASK_BWX,
13419         TARGET_BWX, MASK_MAX, TARGET_MAX, MASK_FIX, TARGET_FIX, MASK_CIX,
13420         TARGET_CIX, MASK_EXPLICIT_RELOCS, TARGET_EXPLICIT_RELOCS,
13421         MASK_SMALL_DATA, TARGET_SMALL_DATA, MASK_TLS_KERNEL, TARGET_TLS_KERNEL,
13422         MASK_SMALL_TEXT, TARGET_SMALL_TEXT, MASK_LONG_DOUBLE_128,
13423         TARGET_LONG_DOUBLE_128, MASK_CPU_EV5, TARGET_CPU_EV5, MASK_CPU_EV6,
13424         TARGET_CPU_EV6, MASK_SUPPORT_ARCH): Remove.
13425         (TARGET_SWITCHES, TARGET_OPTIONS): Remove.
13426         (TARGET_DEFAULT): Remove MASK_FP.
13427         (TARGET_FP): Redefined based on TARGET_SOFT_FP.
13428         (TARGET_SUPPORT_ARCH): Default on if HAVE_AS_EXPLICIT_RELOCS.
13429         (alpha_cpu_string, alpha_tune_string, alpha_fprm_string,
13430         alpha_fptm_string, alpha_tp_string, alpha_mlat_string,
13431         alpha_tls_size_string): Remove.
13432         * config/alpha/alpha.md (prefetch): Use alpha_cpu.
13433         (attribute tune): Rename from attribute cpu.
13434         * config/alpha/ev4.md: Update to match.
13435         * config/alpha/ev5.md, config/alpha/ev6.md: Likewise.
13436         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove MASK_FP.
13437         * config/alpha/linux.h (TARGET_DEFAULT): Likewise.
13438         * config/alpha/netbsd.h (TARGET_DEFAULT): Likewise.
13439         * config/alpha/osf5.h (TARGET_DEFAULT): Likewise.
13440         * config/alpha/vms.h (TARGET_DEFAULT): Likewise.
13441
13442 2005-03-16  James E. Wilson  <wilson@specifixinc.com>
13443
13444         * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
13445         and return without creating new state if before_nops_num is nonzero.
13446         * config/ia64/ia64.md (first_insn): New attribute.
13447         (alloc): Set it to yes.
13448
13449 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
13450
13451         * tree-vectorizer.c (new_vec_stmt_info): Initialize
13452         STMT_VINFO_SUBVARS to NULL.
13453         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
13454
13455 2005-03-16 Dale Johannesen  <dalej@apple.com>
13456
13457         * rtlanal.c (find_first_parameter_load):  Rewrite to
13458         return actual first param load or the call if none,
13459         instead of first in block, when not all loads exist.
13460
13461 2005-03-16  Roger Sayle  <roger@eyesopen.com>
13462
13463         * optabs.c (expand_copysign_absneg): Make static.
13464         * optabs.h (expand_copysign_absneg): Delete prototype.
13465         * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
13466
13467 2005-03-16  Richard Henderson  <rth@redhat.com>
13468
13469         PR middle-end/15700
13470         * varasm.c (struct alias_pair): Rename from struct output_def_pair.
13471         (alias_pairs): Rename from output_defs.
13472         (find_decl_and_mark_needed): Split out from assemble_alias.
13473         (do_assemble_alias): New.
13474         (assemble_output_def): Remove.
13475         (finish_aliases_1, finish_aliases_2): New.
13476         (process_pending_assemble_output_defs): Remove.
13477         (assemble_alias): Defer aliases for which we don't yet have a
13478         non-external decl for the target symbol.
13479         * passes.c (rest_of_decl_compilation): Register variables with cgraph.
13480         * cgraphunit.c (cgraph_finalize_compilation_unit): Use finish_aliases_1.
13481         * toplev.c (compile_file): Use finish_aliases_2 instead of
13482         process_pending_assemble_output_defs.
13483         * tree.h (finish_aliases_1, finish_aliases_2): Declare.
13484         (process_pending_assemble_output_defs): Remove.
13485
13486 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
13487
13488         Fix PR tree-optimization/20489
13489
13490         * tree-ssa-alias.c (push_fields_onto_fieldstack): DTRT
13491         for empty structures.
13492
13493 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
13494
13495         Fix PR tree-optimization/20490
13496
13497         * tree-ssa-pre.c (create_expression_by_pieces): Use
13498         force_gimple_operand on result of fold.
13499
13500 2005-03-16  Andrew Pinski  <pinskia@physics.uc.edu>
13501
13502         * config/i386/emmintrin.h (_mm_extract_epi16): Correct the number
13503         of closing parenthesis.
13504
13505 2005-03-16  Kazu Hirata  <kazu@cs.umass.edu>
13506
13507         * builtins.c (expand_movstr): Update a call to
13508         fold_builtin_strcpy.
13509         (expand_builtin_strncpy): Update a call to
13510         fold_builtin_strncpy.
13511         (fold_builtin_strcpy, fold_builtin_strncpy): Take decomosed
13512         arguments of CALL_EXPR.
13513         (fold_builtin_1): Update calls to fold_builtin_strcpy and
13514         fold_builtin_strncpy.
13515         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
13516         * tree.h: Update the prototypes of fold_builtin_strcpy and
13517         fold_builtin_strncpy.
13518
13519 2005-03-16  Steven Bosscher  <stevenb@suse.de>
13520             Dorit Naishlos  <dorit@il.ibm.com>
13521
13522         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Copy
13523         UNITS_PER_SIMD_WORD to a local variable to avoid a "division by zero"
13524         error.
13525
13526 2005-03-16  Steven Bosscher  <stevenb@suse.de>
13527
13528         * tree-inline.c (walk_type_fields, walk_tree,
13529         walk_tree_without_duplicates): Move from here...
13530         * tree.c: ...to here.
13531
13532 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
13533
13534         * BASE-VER, DATESTAMP, DEV-PHASE: New files.
13535         * Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
13536         (BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
13537         (BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
13538         (version): Define using $(BASEVER_c).
13539         (Makefile, config.status, build/gcov-iov.o): No longer depends on
13540         version.c.
13541         (version.o): Depend on version files; add custom generation command.
13542         (prefix.o): Define BASEVER on command line.
13543         (s-iov): Depend on version files; adjust command.
13544         (TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
13545         Add gcc-vers.texi.
13546         (gcc-vers.texi): New rule.
13547         (doc/%.info, doc/%.dvi): Add -I . to command line.
13548         (doc/gccinstall.dvi): Likewise.
13549         (PACKAGE): Delete.  All uses replaced with "gcc".
13550         * aclocal.m4: Do not include gcc-version.m4.
13551         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
13552         Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
13553         Set is_release based on contents of DEV-PHASE.
13554         Set gcc_version based on contents of BASE-VER.
13555         Define WIN32_REGISTRY_KEY only if the user overrode the default.
13556         * config.in, configure: Regenerate.
13557         * gccbug.in: Determine version of GCC in use at runtime.
13558         * gcov-iov.c: Get version number and development phase from
13559         command line, not by including version.c.
13560         * intl.c: Replace all uses of PACKAGE with "gcc".
13561         * libada-mk.in: Delete unused "gcc_version" variable.
13562         * prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
13563         * version.c: (VERSUFFIX): New hook for redistributors; adjust
13564         commentary to match.
13565         (version_string): Put together from pieces.
13566         * config/alpha/x-vms: Do not use $(gcc_version).
13567         * config/i386/t-nwld: Likewise.
13568         * doc/include/gcc-common.texi: Include gcc-vers.texi for
13569         version-GCC and DEVELOPMENT.
13570
13571 2005-03-15  Roger Sayle  <roger@eyesopen.com>
13572
13573         PR tree-optimization/17454
13574         * tree.c (tree_size): Add case for TREE_BINFO.
13575         * fold-const.c (fold_checksum_tree): Only clear the overloaded
13576         field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set.
13577
13578 2005-03-15  Roger Sayle  <roger@eyesopen.com>
13579
13580         * optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
13581         op1 whilst expanding the signed widenening multiply variant.
13582
13583 2005-03-15  Richard Sandiford  <rsandifo@redhat.com>
13584
13585         * toplev.c (display_target_options): Avoid unused variable warning if
13586         TARGET_SWITCHES and TARGET_OPTIONS are both undefined.
13587         * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static.
13588         (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete.
13589         (mips_isa): Initialize to MIPS_ABI_DEFAULT.
13590         (mips_isa_info): New variable.
13591         (mips_parse_cpu): Remove the first argument and leave the caller
13592         to report errors.
13593         (TARGET_HANDLE_OPTION): Override default.
13594         (mips_handle_option): New function.  Move option validation code from...
13595         (override_options): ...here.  Update calls to mips_parse_cpu.
13596         * config/mips/mips.h (mips_arch_string, mips_tune_string)
13597         (mips_isa_string, mips_abi_string, TARGET_OPTIONS)
13598         (SUBTARGET_TARGET_OPTIONS): Delete.
13599         * config/mips/mips.opt (mabi=, march=, mflush-func=, mips)
13600         (mno-flush-func, mtune=): New options.
13601
13602 2005-03-15  Roger Sayle  <roger@eyesopen.com>
13603             Richard Henderson  <rth@redhat.com>
13604
13605         * real.c (c4x_single_format, c4x_extended_format): Provide values
13606         for signbit_ro for c4x's single and extended floating point formats.
13607         * optabs.c (expand_copysign): Use the floating point format's
13608         signbit_ro for expanding via expand_copysign_absneg, and it's
13609         signbit_rw field for expanding via expand_copysign_bit.
13610
13611 2005-03-15  Dorit Naishlos  <dorit@il.ibm.com>
13612
13613         * tree-vectorizer.h (unknown_alignment_for_access_p): Replaced by
13614         known_alignment_for_access_p.
13615         (known_alignment_for_access_p): New.
13616         (do_peeling_for_alignment): Field made int instead of bool and renamed
13617         to peeling_for_alignment.
13618         (LOOP_DO_PEELING_FOR_ALIGNMENT): Renamed to LOOP_PEELING_FOR_ALIGNMENT.
13619         * tree-vect-analyze.c (vect_determine_vectorization_factor): New. This
13620         functionality used to be in vect_analyze_operations.
13621         (vect_analyze_operations): Code to determine vectorization factor was
13622         moved to vect_determine_vectorization_factor.
13623         (vect_enhance_data_refs_alignment): Update to correct alignment when it
13624         is known instead of -1.  Set LOOP_PEELING_FOR_ALIGNMENT to peeling
13625         factor.
13626         (vect_analyze_loop): Call vect_determine_vectorization_factor (used to
13627         be part of vect_analyze_operations).
13628         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Use fold when
13629         creating the guard condition, as the number of iterations may be
13630         constant.
13631         (slpeel_tree_peel_loop_to_edge): Use new name of
13632         LOOP_DO_PEELING_FOR_ALIGNMENT. Set it to 0 instead of false.
13633         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Handle known
13634         alignment case more efficiently. Use LOOP_PEELING_FOR_ALIGNMENT.
13635         (vect_do_peeling_for_alignment): Use fold.
13636         (vect_transform_loop): Use new name of LOOP_DO_PEELING_FOR_ALIGNMENT.
13637
13638         (vect_update_inits_of_dr): Renamed to
13639         vect_update_init_of_dr.
13640         (vect_update_inits_of_drs): Use new name of vect_update_inits_of_dr.
13641         (vectorizable_store): Fix assertion to use == instead of =.
13642
13643 2005-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
13644
13645         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
13646         call_used_regs for wCG registers.
13647
13648 2005-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
13649
13650         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
13651         for non-offsettable memory references to cope with outstanding reload
13652         replacements, take 2.
13653
13654 2005-03-15  Uros Bizjak  <uros@kss-loka.si>
13655
13656         PR target/18668
13657         * config/i386/i386.h (x86_fisttp): New.
13658         (TARGET_FISTTP): New macro.
13659         * config/i386/i386.c (x86_fisttp): Set for NOCONA.
13660         (output_fix_trunc): Add fisttp parameter.  Generate fisttp x87
13661         instruction when fisttp flag is set.
13662         * config/i386/i386-protos.h (output_fix_trunc): Change declaration.
13663
13664         * config/i386/i386.md (type attribute): Add fisttp.
13665         (unit attribute): Set to i387 for fisttp type.
13666         (X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
13667         (fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
13668         TARGET_FISTTP.
13669         (fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
13670         Generate fisttp patterns for TARGET_FISTTP. Implement using mode
13671         macros.
13672         (fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
13673         patterns for TARGET_FISTTP.  Enable patterns for
13674         (TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
13675         (fix_trunc<mode>_i387_fisttp_1, fix_trunc<mode>_i387_fisttp,
13676         fix_trunc<mode>_i387_fisttp_with_temp): New instruction patterns to
13677         implement fisttp x87 insn.
13678         (fix_trunc*_i387_fisttp splitters): New patterns.
13679         (*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
13680         Rename to *fix_trunc<mode>_i387_1.  Implement using mode macros.
13681         Disable patterns for TARGET_FISTTP.  Add comment about FLAGS_REG
13682         clobber.
13683         (fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
13684         Rename to fix_trunc<mode>_i387 and fix_trunc<mode>_i387_with_temp.
13685         Implement using mode macros. Disable patterns for TARGET_FISTTP.
13686         (fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
13687         fix_trunchi_nomemory): Rename to fix_trunc<mode>_i387 and
13688         fix_trunc<mode>_i387_with_temp. Implement using mode macros.
13689         Disable patterns for TARGET_FISTTP.
13690         (fix_trunc*_i387 splitters): Implement usign mode macros.
13691         (fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
13692         fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
13693         (fix_trunx*_sse peephole2s): Implement using mode macros.
13694
13695 2005-03-15  J"orn Rennecke <joern.rennecke@st.com>
13696
13697         PR rtl-optimization/20291
13698         * combine.c (try_combine): If splitting fails, re-try with
13699         original combined pattern, i.e. before clobber stripping.
13700
13701 2005-03-14  Eric Christopher  <echristo@redhat.com>
13702
13703         * config/mips/mips.h (DWARF_CIE_DATA_ALIGNMENT): Change for
13704         STACK_GROWS_DOWNWARD.
13705
13706 2005-03-14  Roger Sayle  <roger@eyesopen.com>
13707
13708         * real.h (struct real_format): Split the signbit field into two
13709         two fields, signbit_ro and signbit_rw.
13710         * real.c (ieee_single_format, mips_single_format, ieee_double_format,
13711         mips_double_format, ieee_extended_motorola_format,
13712         ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format,
13713         ieee_extended_intel_128_format, ibm_extended_format,
13714         mips_extended_format, ieee_quad_format, mips_quad_format,
13715         vax_f_format, vax_d_format, vax_g_format, i370_single_format,
13716         i370_double_format, c4x_single_format, c4x_extended_format,
13717         real_internal_format): Update initializers for new field.
13718         * builtins.c (expand_builtin_signbit): Use signbit_ro field of the
13719         real_format structure.
13720         * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw
13721         field of the real_format structure.
13722
13723 2005-03-14  Daniel Berlin <dberlin@dberlin.org>
13724
13725         Fix PR tree-optimization/20458
13726
13727         * tree-flow-inline.h (mark_call_clobbered): Don't fiddle
13728         DECL_EXTERNAL on STRUCT_FIELD tags.
13729         (clear_call_clobbered): Ditto.
13730         * tree-ssa-operands.c (note_addressable): Make sure the original
13731         variable doesn't slip into the addressable list if we have
13732         subvars.
13733         * tree-tailcall.c (suitable_for_tail_opt_p): Look at STRUCT_FIELD
13734         tags too.
13735
13736 2005-03-14  Geoffrey Keating  <geoffk@apple.com>
13737
13738         * doc/cppopts.texi (-fexec-charset): Add concept index entry.
13739         (-fwide-exec-charset): Likewise.
13740         (-finput-charset): Likewise.
13741         * doc/invoke.texi (Warning Options): Document -Wnormalized=.
13742         * c-opts.c (c_common_handle_option): Handle -Wnormalized=.
13743         * c.opt (Wnormalized): New.
13744
13745 2005-03-14  Devang Patel  <dpatel@apple.com>
13746
13747         * doc/invoke.texi: Add reference to Visibility document.
13748
13749 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
13750
13751         * config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to
13752         MASK_SPLIT_ADDRESSES.
13753         * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete.
13754         (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD)
13755         (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT)
13756         (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS)
13757         (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN)
13758         (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16)
13759         (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY)
13760         (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400)
13761         (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN)
13762         (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE)
13763         (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D)
13764         (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64)
13765         (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE)
13766         (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS)
13767         (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT)
13768         (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA)
13769         (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN)
13770         (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD)
13771         (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV)
13772         (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1)
13773         (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120)
13774         (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS)
13775         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32)
13776         (TARGET_EXPLICIT_RELOCS): Delete.
13777         (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete.
13778         (TARGET_OPTIONS): Remove entry for -mfix-vr4130.
13779         * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
13780         (override_options): Set MASK_LONG64 if -mint64 is given and no
13781         -mlongXX option is.  Complain about -mint64 -mlong32.
13782         (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename
13783         MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT.
13784         * config/mips/mips.opt: New file.
13785
13786 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
13787
13788         * config.gcc (extra_options): New variable for listing option files.
13789         Add ${cpu_type}/${cpu_type}.opt to it if that file exists.
13790         * configure.ac (extra_opt_files): New AC_SUBST variable.
13791         (tm_file_list, tm_include_list): Include options.h first.
13792         * configure: Regenerate.
13793         * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables.
13794         (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files)
13795         (s-options-h): New rule.
13796         (options.h): Depend on it.
13797         (TEXI_GCCINT_FILES): Add options.texi.
13798         * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare.
13799         * hooks.c (hook_bool_size_t_constcharptr_int_true): New function.
13800         * target.h (gcc_target): Add default_target_flags and handle_option.
13801         * target-def.h (TARGET_DEFAULT_TARGET_FLAGS)
13802         (TARGET_HANDLE_OPTION): New macros.
13803         (TARGET_INITIALIZER): Include them.
13804         * opt-functions.awk (opt_args, nth_arg): New functions.
13805         (switch_flags): Handle the "Target" flag.
13806         (var_args): Delete.
13807         (var_name): Use opt_args and nth_arg.
13808         (var_set, var_ref): Likewise.  Handle "Mask" and "InverseMask".
13809         * opth-gen.awk: Declare target_flags.  Declare MASK_* and TARGET_*
13810         macros for the "Mask" and "InverseMask" options.
13811         * opts.h (cl_var_cond): New enum.
13812         (cl_option): Replace the "has_set_value" and "set_value" fields with
13813         "var_cond" and "var_value".
13814         (CL_TARGET): New macro.
13815         (option_enabled, print_filtered_help): Declare.
13816         (decode_options): Move definition.
13817         * opts.c (handle_option): Search for the original option before
13818         removing any "no-" prefix.  Handle CL_TARGET.  Adjust for the new
13819         var_cond and var_value fields.  Use targetm.handle_option to handle
13820         target options.
13821         (decode_options): Set target_flags to targetm.default_target_flags.
13822         (print_filtered_help): Make global.  Handle CL_TARGET.
13823         (option_enabled): New function.
13824         * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES.
13825         (display_target_options, set_target_switch, print_switch_values)
13826         (default_pch_valid_p): Guard uses of target_switches with
13827         #ifdef TARGET_SWITCHES.  Also...
13828         (display_target_options): Display the CL_TARGET entries in cl_options.
13829         (set_target_option): Don't complain about the "" option when
13830         TARGET_SWITCHES is undefined.
13831         (print_switch_values): Use option_enabled.
13832         (default_pch_valid_p): Check cl_options[] when looking for something
13833         that has changed the value of target_flags.
13834         * c.opt: Remove documentation from top of file.
13835         * doc/gccint.texi: Add an "Options" chapter.  Include options.texi.
13836         * doc/sourecebuild.texi: Refer to the new options documentation
13837         instead of c.opt.  Document machine-specific .opt files.
13838         * doc/tm.texi (target_flags): Say that this variable is declared
13839         by options.h.
13840         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document.
13841         (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as
13842         an alternative.
13843         * doc/options.texi: New file.
13844
13845 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
13846
13847         PR middle-end/18628
13848         * cse.c (fold_rtx_mem): Don't fold a load from a jumptable into a
13849         register.
13850
13851 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
13852
13853         PR c++/20280
13854         * gimplify.c (gimplify_cond_expr): Add fallback argument.  Use a
13855         temporary variable of pointer type if an lvalues is required.
13856         (gimplify_modify_expr_rhs): Request an rvalue from it.
13857         (gimplify_expr): Pass fallback on.
13858
13859 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
13860
13861         * cfgbuild.c: Update comments.
13862
13863 2005-03-14  Roger Sayle  <roger@eyesopen.com>
13864
13865         PR rtl-optimization/17236
13866         * optabs.c (expand_doubleword_mult): New helper function split out
13867         from expand_binop.  Permute the order in which instructions are
13868         emitted to minimize the number of simultaneously live registers.
13869         (expand_binop): Call expand_doubleword_mult to synthesize a double
13870         word multiplication.
13871
13872 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
13873
13874         * basic-block.h: Update the prototypes of cached_make_edge and
13875         rtl_make_eh_edge.
13876         * cfg.c (cached_make_edge): Take edge_cache representing one
13877         row of the adjacency matrix of edges.
13878         * cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
13879         (make_edges): Initialize edge_cache to represent one row of
13880         the adjacency matrix of edges.
13881
13882 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
13883
13884         * tree-ssa-phiopt.c (minmax_replacement, blocks_in_phiopt_order):
13885         New functions.
13886         (tree_ssa_phiopt): Use blocks_in_phiopt_order and minmax_replacement.
13887         Remove unused removed_phis variable.
13888         (conditional_replacement): Use build1/build2.
13889         (abs_replacement): Use last_and_only_stmt and build1/build2.
13890
13891 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
13892
13893         * builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
13894         ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
13895         * builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
13896         (BUILT_IN_PREFETCH): Set the NOVOPS attribute.
13897         * c-common.c (handle_novops_attribute): New function.
13898         (c_common_attribute_table): Add "no vops" entry.
13899         * c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
13900         * calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
13901         * tree-ssa-operands.c (get_call_expr_operands): Do not
13902         create virtual operands for calls with ECF_NOVOPS flag.
13903         * tree.h (DECL_IS_NOVOPS): New macro.
13904         (struct tree_decl): Add novops_flag.
13905         (ECF_NOVOPS): New constant.
13906
13907 2005-03-14  Uros Bizjak  <uros@kss-loka.si>
13908
13909         PR target/17688
13910         * config/i386/i386.c (x86_use_himode_fiop): New.
13911         (x86_use_simode_fiop): Rename from x86_use_fiop.
13912         * config/i386/i386.h (x86_use_himode_fiop): Declare.
13913         (TARGET_USE_HIMODE_FIOP): New.
13914         (x86_use_simode_fiop): Rename from x86_use_fiop.
13915         (TARGET_USE_SIMODE_FIOP): Rename from TARGET_USE_FIOP.
13916
13917         * config/i386/i386.md (X87MODEI12): New mode macro define.
13918         (*cmpfp_<mode>): Rename from *cmpfp_si.  Use X87MODEI12 mode macro
13919         to implement x87 FP compare with HImode input operands.
13920         (*fp_jcc_8<mode>_387, splitter): Rename from *fp_jcc_8_387.
13921         Use X87MODEI12 mode macro to handle HImode input operands.
13922         (*fop_sf_2<mode>_i387, *fop_sf_3<mode>_i387, *fop_df_2<mode>_i387,
13923         *fop_df_3<mode>_i387, *fop_xf_2<mode>_i387, *fop_xf_3<mode>_i387):
13924         Renamed from *fop_sf_2_i387, *fop_sf_3_i387, *fop_df_2_i387,
13925         *fop_df_3_i387, *fop_xf_2_i387, *fop_xf_3_i387. Use X87MODEI12 mode
13926         macro to implement x87 operators with HImode input operands.
13927         (fop splitters): Use X87MODEI12 mode macro to handle HImode
13928         input operands.
13929
13930 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
13931
13932         * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
13933         integer_zerop.
13934         * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
13935         constants invariant.
13936
13937 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
13938
13939         * basic-block.h (BB_VISITED): Removed.
13940         * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag.
13941
13942 2005-03-14  Falk Hueffner  <falk@debian.org>
13943
13944         PR bootstrap/20424
13945         * config/alpha/alpha.c (alpha_fold_builtin_cmpbge): Fix typo.
13946
13947 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
13948
13949         * ggc-zone.c: Fix comment typos.
13950
13951         * alloc-pool.c, except.h, ggc-common.c, ggc-zone.c, ggc.h,
13952         stringpool.c, config/mips/mips-protos.h: Update copyright.
13953
13954 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
13955
13956         * config/rs6000/rs6000-protos.h: Replace "struct rtx_def *"
13957         throughout with its typedef, "rtx".
13958         * config/rs6000/rs6000.c: Likewise.  Formatting fixes.
13959         (rs6000_tls_symbol_ref_1): Remove inline keyword.
13960         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Formatting.  Reorder
13961         regs in comment to match code.
13962
13963 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
13964
13965         * except.c (check_handled): Make it static.
13966         * except.h: Remove the corresponding prototype.
13967
13968         * function.c (get_func_frame_size): Make it static.
13969         * function.h: Remove the corresponding type.
13970
13971         * regclass.c (reg_class_superclasses, reg_class_subclasses):
13972         Make them static.
13973         * hard-reg-set.h: Remove the corresponding declarations.
13974
13975         * tree-cfg.c (verify_stmts): Check that
13976         bb_for_stmt (stmt) == bb for every PHI node and statement.
13977
13978 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
13979
13980         * config.gcc: Remove excess indentation.
13981         (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548.
13982
13983 2005-03-13  Roger Sayle  <roger@eyesopen.com>
13984
13985         PR middle-end/19331
13986         * tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
13987         * fold-const.c (fold_sign_changed_comparison): Likewise.
13988         (fold_binary): Optimize comparisons against widened operands if
13989         the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.
13990
13991 2005-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
13992
13993         * config/sparc/sparc.c (struct_value_alias_set): New global variable.
13994         (sparc_override_options): Initialize it.
13995         (sparc_struct_value_rtx): Set it on the MEM to be returned.
13996
13997 2005-03-13  David Edelsohn  <edelsohn@gnu.org>
13998
13999         * config/rs6000/predicates.md (mem_or_easy_const_operand): Delete.
14000         (reg_or_none500mem_operand): New predicate.
14001         (zero_reg_mem_operand): New predicate.
14002         * config/rs6000/rs6000.md (extendsfdf2): Change operand1 predicate
14003         to reg_or_none500mem_operand.
14004         (extendsfdf2_fpr): Add MEM alternative.
14005         (extenddftf2_internal): Change operand2 predicate to
14006         zero_reg_mem_operand.
14007
14008 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
14009
14010         * ggc-zone.c: Rewritten.
14011
14012         * alloc-pool.c (dump_alloc_pool_statistics): Don't print statistics
14013         if there are none.
14014         * configure.ac: Define GGC_ZONE for --with-gc=zone.
14015         * config.in: Regenerated.
14016         * configure: Regenerated.
14017         * gengtype.c (write_types_process_field, write_func_for_structure):
14018         Pass new argument to gt_pch_note_object.
14019         * ggc-common.c (struct ptr_data): Add TYPE.
14020         (gt_pch_note_object): Take TYPE argument and save it.
14021         (call_count): Update call to ggc_pch_count_object.
14022         (call_alloc): Update call to ggc_pch_alloc_object.
14023         (gt_pch_save): Call ggc_pch_prepare_write after paddng the PCH
14024         file.
14025         * ggc-none.c (rtl_zone, garbage_zone, ggc_alloc_zone_stat): Delete.
14026         * ggc-page.c (rtl_zone, tree_zone, garbage_zone)
14027         (ggc_alloc_zone_stat): Delete.
14028         (ggc_pch_count_object, ggc_pch_alloc_object): Add TYPE argument.
14029         * ggc.h (gt_pch_note_object, ggc_pch_count_object)
14030         (ggc_pch_alloc_object): Update prototypes.
14031         (garbage_zone): Delete.
14032         (tree_zone, rtl_zone, ggc_alloc_zone_stat, ggc_alloc_zone): Move to
14033         GGC_ZONE conditional.  Update.  Change tree_zone and rtl_zone into
14034         pointers.
14035         (tree_id_zone): New variable.
14036         (ggc_alloc_cleared_zone): Remove unused.
14037         (ggc_alloc_zone): Define.
14038         (ggc_alloc_rtvec, ggc_alloc_tree): Update to use ggc_alloc_zone.
14039         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Use
14040         ggc_alloc_zone_stat.
14041         * stringpool.c (gt_pch_n_S): Update call to gt_pch_note_object.
14042         * tree.c (copy_node_stat, make_tree_binfo_stat, make_tree_vec_stat)
14043         (tree_cons_stat, build1_stat): Update call to ggc_alloc_zone_stat.
14044         (make_node_stat): Likewise.  Use tree_id_zone.
14045
14046 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
14047             Joseph S. Myers  <joseph@codesourcery.com>
14048
14049         * configure.ac: Check for MIPS TLS.
14050         * configure: Regenerated.
14051         * config/mips/mips-protos.h (enum mips_symbol_type): Add
14052         SYMBOL_TLS, SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL,
14053         SYMBOL_GOTTPREL, and SYMBOL_TPREL.
14054         * config/mips/mips.c (mips_regno_to_class): Handle V1_REG.
14055         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
14056         (mips_classify_symbol, mips_symbolic_constant_p)
14057         (mips_symbolic_address_p, mips_symbol_insns): Handle TLS symbols.
14058         (mips_tls_operand_p, mips_call_tls_get_addr)
14059         (mips_legitimize_tls_address, mips_cannot_force_const_mem)
14060         (mips_tls_symbol_ref_1): New functions.
14061         (mips_legitimize_address, mips_legitimize_const_move): Call
14062         mips_legitimize_tls_address.
14063         (override_options): Handle V1_REG and TLS symbols.  Disable TLS
14064         for MIPS16.
14065         * config/mips/mips.h (enum reg_class, REG_CLASS_NAMES)
14066         (REG_CLASS_CONTENTS, GR_REG_CLASS_P): Include V1_REG.
14067         (mips_char_to_class): Document V1_REG.
14068         (HAVE_AS_TLS): Provide default.
14069         * config/mips/mips.md (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): New
14070         constants.
14071         (load_got<mode>): Renamed from *load_got<mode>.  Allow when
14072         !TARGET_ABICALLS.
14073         (tls_get_tp_<mode>): New instruction.
14074
14075 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
14076
14077         * configure.ac: Update checks for target tools.
14078         * configure: Regenerated.
14079
14080 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
14081
14082         * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
14083
14084 2005-03-13  Roger Sayle  <roger@eyesopen.com>
14085
14086         * expmed.c (expand_mult): Use synthetic multiplication sequences for
14087         more classes of DImode multiplication by constant.  Allow both
14088         multiplication by small negative constants (by performing a
14089         multiplication by a positive constant and negating the result) and
14090         multiplications by large powers of two, by using a left shift.
14091
14092 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
14093
14094         * tree-into-ssa.c (find_idf): Speed up by putting the indexes
14095         of basic blocks into work_stack.
14096
14097         * builtin-attrs.def, c-lex.c, c-pragma.h, reg-stack.c,
14098         config/mips/vr.h: Update copyright.
14099
14100         * c-decl.c (c_init_decl_processing): Remove useless calls to
14101         build_function_type.
14102
14103         * builtins.c (fold_trunc_transparent_mathfn,
14104         fold_fixed_mathfn, fold_builtin_atan, fold_builtin_trunc,
14105         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
14106         fold_builtin_lround, fold_builtin_bitop, fold_builtin_memcpy,
14107         fold_builtin_strcpy, fold_builtin_strncpy,
14108         fold_builtin_signbit): Use TYPE (TYPE (fndecl)) instead of
14109         TREE_TYPE (exp).
14110
14111         * builtins.c (expand_builtin_mathfn_3): Remove local variable
14112         before_call.
14113
14114         * lambda-code.c (lambda_compute_auxillary_space): Remove local
14115         variable determinant.
14116
14117         * tree-cfg.c (group_case_labels): Remove local variable type.
14118
14119         * tree-ssa-live.c (build_tree_conflict_graph): Remove local
14120         variable ann.
14121
14122         * tree-ssa-phiopt.c (value_replacement): Remove local variable
14123         result.
14124
14125 2005-03-13  Andy Hutchinson  <HutchinsonAndy@netscape.net>
14126
14127         PR target/18251
14128         * config/avr/avr.md (movmemhi): Rewrite as RTL loop.
14129         (*movmemqi_insn): Delete.
14130         (*movmemhi): Delete.
14131
14132 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
14133
14134         * builtins.c (fold_builtin_classify): Take decomposed
14135         arguments of CALL_EXPR.
14136         (fold_builtin_1): Update a call to fold_builtin_classify.
14137
14138 2005-03-13  Joseph S. Myers  <joseph@codesourcery.com>
14139
14140         PR c/20402
14141         * c-parser.c (c_parser_struct_or_union_specifier): Don't fall
14142         through into call to parser_xref_tag after parse error.
14143         (c_parser_struct_declaration): Consistently return NULL_TREE on
14144         error.
14145
14146 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
14147
14148         * tree-flow-inline.h (ref_contains_array_ref): New function.
14149         (lookup_subvars_for_var): Ditto.
14150         (get_subvars_for_var): Ditto.
14151         (var_can_have_subvars): Ditto.
14152
14153         * tree-flow.h (mem_tag_kind): Add STRUCT_FIELD.
14154         (struct subvar): New type.
14155
14156         * tree-dfa.c (okay_component_ref_for_subvars): New function.
14157
14158         * tree-optimize.c (init_tree_optimization_passes): Call
14159         pass_create_structure_vars.
14160
14161         * tree-ssa-alias.c: Include vec.h.
14162         (init_alias_info): Don't auto-clear call clobbered on struct-field
14163         tags.
14164         (compute_flow_insensitive_aliasing): Handle subvars.
14165         (group_aliases): Handle STRUCT_FIELD aliases.
14166         (setup_pointers_and_addressables): Ditto.
14167         Don't mark variables non-addressable if they still have
14168         addressable subvars.
14169         Also mark subvars addressable when the real variable is marked
14170         addressable.
14171         (add_pointed_to_var): Try to prune the pointed-to set by only
14172         pointing to subvars when possible.
14173         Otherwise, make sure we set addresses_needed and pt_vars to
14174         properly include subvars.
14175         (bitpos_of_field): New function.
14176         (push_fields_onto_fieldstack): Ditto.
14177         (get_or_create_used_part_for): Ditto.
14178         (create_overlap_variables_for): Ditto.
14179         (find_used_portions): Ditto.
14180         (create_structure_vars): Ditto.
14181         (pass_create_structure_vars): New structure.
14182
14183         * tree-ssa-operands.c (finalize_ssa_v_must_defs): Remove assert.
14184         (get_expr_operands): Handle subvars.  Also try to turn
14185         COMPONENT_REF accesses into must-defs now that we can accurately
14186         portray it.
14187         (note_addressable): Try to only mark as addressable those subvars
14188         we know a COMPONENT_REF touches.
14189         (overlap_subvar): New function.
14190
14191         * tree-vect-analyze.c (vect_object_analysis): Add new parameter.
14192         Handle subvar storing.
14193         (vect_address_analysis): Update caller of vect_object_analysis.
14194
14195         * tree-vect-transform.c (vect_create_data_ref_ptr): Copy subvars.
14196
14197         * tree-vectorizer.h (struct _stmt_vec_info): Add subvars member.
14198         (STMT_VINFO_SUBVARS): New macro.
14199
14200         * common.opts: add flag_tree_salias.
14201
14202         * opts.c (decode_options): flag_tree_salias defaults to on.
14203
14204         * doc/invoke.texi: Document fdump-tree-svars and -ftree-salias.
14205
14206         * doc/tree-ssa.texi: Document structural alias analysis.
14207
14208 2005-03-12  Steven Bosscher  <stevenb@suse.de>
14209
14210         * tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
14211         * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it.
14212         * tree-ssa-operands.c (get_expr_operands): Likewise.
14213         (get_expr_operands): Likewise for ERROR_MARK.
14214
14215 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
14216
14217         * tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
14218         var.
14219
14220         * tree-ssa-phiopt.c (tree_ssa_phiopt): Remove local variable
14221         removed_phis.
14222
14223         * tree-ssa-pre.c (compute_avail): Remove local variable val.
14224         (mark_operand_necessary): Remove local variable ver.
14225
14226         * tree-vect-transform.c (vect_get_new_vect_var): Remove local
14227         variable prefix_len.
14228
14229         * value-prof.c (mod_subtract_transform): Remove local variable
14230         value.
14231
14232         * builtins.c (fold_builtin_exponent): Take decomposed
14233         arguments of CALL_EXPR.
14234         (fold_builtin_1): Update a call to fold_builtin_exponent.
14235
14236         * builtins.c (fold_builtin_logarithm): Take decomposed
14237         arguments of CALL_EXPR.
14238         (fold_builtin_1): Update a call to fold_builtin_logarithm.
14239
14240         * c-decl.c (c_init_decl_processing): Remove local variables
14241         ptr_ftype_void and ptr_ftype_ptr.
14242
14243         * gimplify.c (gimplify_expr): Remove local variables r0 and
14244         r1.
14245
14246         * reg-stack.c (move_for_stack_reg): Remove local variable
14247         push_insn.
14248         (compare_for_stack_reg): Remove local variable flags_user.
14249         (convert_regs_1): Remove local variable deleted.
14250
14251         * tree-if-conv.c (tree_if_convert_cond_expr): Remove local
14252         variable new_cond.
14253         (combine_blocks): Remove local variables exits and new_e.
14254
14255         * tree-inline.c (expand_call_inline): Remove local variable
14256         decl.
14257
14258         * tree-ssa-live.c (create_ssa_var_map,
14259         calculate_live_on_entry): Remove local variable snn.
14260
14261 2005-03-12  Geoffrey Keating  <geoffk@apple.com>
14262
14263         * c-lex.c (c_lex_with_flags): Add parameter to call to
14264         cpp_spell_token.
14265
14266 2005-03-11  Per Bothner  <per@bothner.com>
14267
14268         * c-tree.h (struct c_declarator): New id_loc field.
14269         * c-pragma.h (c_lex_with_flags): Take position reference.
14270         * c-lex.c (c_lex_with_flags): Set passed-in location from cpp token,
14271         iff USE_MAPPED_LOCATION. (Type doesn't match otherwise.)
14272         (c_lex): Pass dummy location to c_lex_with_flags.
14273         * c-parser.c (c_lex_one_token): Set c_token's location using
14274         c_lex_with_flags, instead of input_location, which might be "ahead".
14275         (c_parser_direct_declarator): Set declarator's id_loc from
14276         c_token's id_loc.
14277         * c-decl.c (grokdeclarator): Set DECL_SOURCE_LOCATION from
14278         declarator's id_loc, rather than probably-imprecise input_location.
14279         (build_id_declarator): Initialize c_declarator's id_loc field.
14280
14281 2005-03-11  Roger Sayle  <roger@eyesopen.com>
14282
14283         PR middle-end/20419
14284         * builtins.c (expand_builtin_signbit): Force the signbit's word
14285         into an integer register to avoid SUBREGs of floating point modes.
14286
14287 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
14288
14289         * cfglayout.c, loop-doloop.c, profile.c, target-def.h,
14290         target.h, targhooks.c, tracer.c, tree-ssa-loop-ch.c,
14291         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, vec.c, vmsdbgout.c,
14292         config/m32r/m32r.md, config/xtensa/xtensa.h: Update copyright.
14293
14294 2005-03-11  David Edelsohn  <edelsohn@gnu.org>
14295
14296         PR rtl-optimization/20306
14297         * expr.c (emit_move_complex): Set try_int false if mode is
14298         MODE_COMPLEX_FLOAT and mov_optab exists for inner mode.  Only try
14299         emit_block_move if try_int is true.
14300
14301 2005-03-11  Richard Henderson  <rth@redhat.com>
14302
14303         PR target/20415
14304         * config/i386/mmx.md (vec_dupv4hi): Fix predicate.
14305         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Update
14306         to match.
14307
14308 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
14309
14310         * config/mips/mips.h (mips_fix_vr4130_string): Declare.
14311         (TARGET_FIX_VR4130): New macro.
14312         (TARGET_OPTIONS): Add -mfix-vr4130.
14313         (ISA_HAS_MACCHI): New macro.
14314         (ASM_SPEC): Add -mfix-vr4130.
14315         * config/mips/mips.c (mips_fix_vr4130_string): New variable.
14316         (override_options): Handle mips_fix_vr4130_string.
14317         (mips_avoid_hazards): Clear all_noreorder_p
14318         if we're working around VR4130 errata and the macc alternatives
14319         are not available.
14320         * config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
14321         (*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
14322         * config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
14323         (MULTILIB_DEFAULTS): Remove leading "march=".
14324         (DRIVER_SELF_SPECS): Likewise.  Make -mfix-vr4130 imply -march=vr4130
14325         if no architecture option is given.
14326         * config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
14327         VR4130 multilibs.
14328         (MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
14329         * doc/invoke.texi: Document -mfix-vr4130.
14330
14331 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
14332
14333         * config/mips/mips.c (override_options): Only warn about -mint64
14334         deprecation if TARGET_INT64.
14335
14336 2005-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14337
14338         * builtin-attrs.def (ATTR_NONNULL_LIST, ATTR_NOTHROW_NONNULL,
14339         ATTR_CONST_NOTHROW_NONNULL, ATTR_PURE_NOTHROW_NONNULL,
14340         ATTR_MALLOC_NOTHROW_NONNULL): New "nonnull" attribute lists which
14341         are non-specific regarding the nonnull parameter positions.
14342         (ATTR_NONNULL_1_2, ATTR_NONNULL_1_4, ATTR_NOTHROW_NONNULL_1_2,
14343         ATTR_NOTHROW_NONNULL_1_4, ATTR_CONST_NOTHROW_NONNULL_1,
14344         ATTR_PURE_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1_2,
14345         ATTR_MALLOC_NOTHROW_NONNULL_1): Delete.
14346
14347         * builtins.def: Use the non-specific "nonnull" attibute lists.
14348
14349 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
14350
14351         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
14352         single_pred_edge, single_succ, single_pred): Improve comments.
14353
14354 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
14355
14356         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
14357         single_pred_edge, single_succ, single_pred): New inline functions.
14358         * bb-reorder.c (rotate_loop, find_traces_1_round,
14359         add_labels_and_missing_jumps, fix_up_fall_thru_edges,
14360         duplicate_computed_gotos): Use the single_succ/pred functions.
14361         * cfganal.c (forwarder_block_p): Ditto.
14362         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
14363         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
14364         outgoing_edges_match, try_crossjump_to_edge, try_optimize_cfg,
14365         merge_seq_blocks): Ditto.
14366         * cfghooks.c (split_edge, tidy_fallthru_edges): Ditto.
14367         * cfglayout.c (fixup_reorder_chain): Ditto.
14368         * cfgloop.c (mark_single_exit_loops, update_latch_info,
14369         canonicalize_loop_headers, verify_loop_structure): Ditto.
14370         * cfgloopmanip.c (remove_path, unloop, loop_delete_branch_edge,
14371         mfb_update_loops, create_preheader, force_single_succ_latches,
14372         create_loop_notes): Ditto.
14373         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
14374         force_nonfallthru_and_redirect, rtl_tidy_fallthru_edge,
14375         commit_one_edge_insertion, purge_dead_edges,
14376         cfg_layout_can_merge_blocks_p): Ditto.
14377         * except.c (sjlj_emit_function_enter): Ditto.
14378         * flow.c (init_propagate_block_info): Ditto.
14379         * function.c (thread_prologue_and_epilogue_insns): Ditto.
14380         * gcse.c (find_implicit_sets, bypass_conditional_jumps,
14381         insert_insn_end_bb): Ditto.
14382         * ifcvt.c (merge_if_block, find_if_block, find_if_case_1,
14383         find_if_case_2): Ditto.
14384         * lambda-code.c (perfect_nestify): Ditto.
14385         * lcm.c (optimize_mode_switching): Ditto.
14386         * loop-doloop.c (doloop_modify): Ditto.
14387         * loop-init.c (loop_optimizer_init): Ditto.
14388         * loop-iv.c (simplify_using_initial_values): Ditto.
14389         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
14390         * loop-unswitch.c (unswitch_loop): Ditto.
14391         * modulo-sched.c (generate_prolog_epilog): Ditto.
14392         * predict.c (combine_predictions_for_insn, estimate_probability,
14393         tree_estimate_probability, last_basic_block_p,
14394         estimate_bb_frequencies): Ditto.
14395         * profile.c (branch_prob): Ditto.
14396         * regrename.c (copyprop_hardreg_forward): Ditto.
14397         * sched-rgn.c (is_cfg_nonregular, find_rgns, update_live): Ditto.
14398         * tracer.c (layout_superblocks): Ditto.
14399         * tree-cfg.c (tree_can_merge_blocks_p, tree_merge_blocks,
14400         cfg_remove_useless_stmts_bb, cleanup_control_flow,
14401         cleanup_control_expr_graph, disband_implicit_edges,
14402         tree_find_edge_insert_loc, bsi_commit_edge_inserts,
14403         tree_verify_flow_info, tree_make_forwarder_block,
14404         tree_forwarder_block_p, remove_forwarder_block,
14405         remove_forwarder_block_with_phi, merge_phi_nodes): Ditto.
14406         * tree-if-conv.c (tree_if_conversion): Ditto.
14407         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
14408         * tree-ssa-dce.c (remove_dead_stmt): Ditto.
14409         * tree-ssa-dom.c (dom_opt_finalize_block): Ditto.
14410         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
14411         copy_loop_headers): Ditto.
14412         * tree-ssa-loop-im.c (loop_commit_inserts): Ditto.
14413         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Ditto.
14414         * tree-ssa-loop-manip.c (split_loop_exit_edge, ip_normal_pos,
14415         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Ditto.
14416         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Ditto.
14417         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Ditto.
14418         * tree-ssa-phiopt.c (tree_ssa_phiopt, value_replacement): Ditto.
14419         * tree-ssa-pre.c (compute_antic_aux, insert_aux, init_pre): Ditto.
14420         * tree-ssa-threadupdate.c (redirect_edges): Ditto.
14421         * tree-tailcall.c (independent_of_stmt_p, find_tail_calls,
14422         eliminate_tail_call, tree_optimize_tail_calls_1): Ditto.
14423         * tree-vect-analyze.c (vect_analyze_loop_form): Ditto.
14424         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
14425         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard,
14426         slpeel_add_loop_guard): Ditto.
14427
14428 2005-03-11  James A. Morrison  <phython@gcc.gnu.org>
14429
14430         PR tree-optimization/15784
14431         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
14432         and -1 - A to ~A.
14433
14434         * stmt.c (expand_case): Don't change index_type.  Convert minval
14435         to the proper type.
14436
14437         PR tree-optimization/20130
14438         * fold-const.c (fold): Fold x * -1 into -x.
14439
14440 2005-03-11  Kaz Kojima  <kkojima@gcc.gnu.org>
14441
14442         PR rtl-optimization/20331
14443         * rtlanal.c (modified_between_p): Check its address first for MEM.
14444         (modified_in_p): Likewise.
14445
14446 2005-03-11  Joseph S. Myers  <joseph@codesourcery.com>
14447
14448         * config.gcc (hppa*64*-*-hpux11*): Use pa/t-hpux-shlib.
14449
14450 2005-03-10  Steven Bosscher  <stevenb@suse.de>
14451
14452         * expr.c (expand_expr_real_1): If possible, use a conditional
14453         move for expanding MIN_EXPR and MAX_EXPR.
14454         Use temp for moving around rtx-en.
14455
14456 2005-03-10  Andrew Pinski  <pinskia@physics.uc.edu>
14457
14458         PR rtl-opt/20412
14459         * simplify-rtx.c (simplify_relational_operation_1): Fix typo - check the
14460         correct mode.
14461
14462 2005-03-10  Roger Sayle  <roger@eyesopen.com>
14463
14464         * builtins.c (expand_builtin_signbit): Extend to handle floating
14465         point modes wider than the largest integer type, using the
14466         operand_subword_force function to obtain the signbit's word.
14467
14468 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
14469
14470         PR target/20322
14471         * combine.c (try_combine): If recog_for_combine added CLOBBERs
14472         to NEWI2PAT, fail to combine if they are used by NEWPAT.
14473
14474 2005-03-10  Aldy Hernandez  <aldyh@redhat.com>
14475
14476         * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section.
14477
14478 2005-03-10  Kazu Hirata  <kazu@cs.umass.edu>
14479
14480         * tree-outof-ssa.c (analyze_edges_for_bb): Make the return
14481         type void.
14482         (perform_edge_inserts): Unconditionally call
14483         free_dominator_info.
14484
14485         * tree-outof-ssa.c (analyze_edges_for_bb): Update a comment.
14486
14487 2005-03-10  Bob Wilson  <bob.wilson@acm.org>
14488
14489         * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
14490
14491 2005-03-10  Nathan Sidwell  <nathan@codesourcery.com>
14492
14493         * bitmap.c (bitmap_copy): Remove manual loop unrolling.
14494
14495         * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and
14496         gcc_unreachable.
14497         (rtl_register_value_prof_hooks,
14498         tree_value_profile_transformations,
14499         tree_register_value_prof_hooks): Likewise.
14500         * var-tracking.c (stack_adjust_offset_pre_post,
14501         variable_htab_free, variable_union, dataflow_set_different_2,
14502         count_uses, variable_was_changed, set_frame_base_location,
14503         set_variable_part, emit_note_insn_var_location, vt_emit_notes,
14504         vt_add_function_parameters): Likewise.
14505         * varasm.c (named_section_real, named_section, make_decl_rtl,
14506         asm_emit_uninitialised, assemble_integer, decode_addr_const,
14507         const_hash_1, compare_constant, copy_constant, force_const_mem,
14508         output_constant_pool_2, output_constant_pool_1, output_constant,
14509         output_constructor, make_decl_one_only, decl_tls_model,
14510         default_no_named_section, default_elf_select_section_1,
14511         default_unique_section_1): Likewise.
14512         * vec.c (vec_gc_o_reserve, vec_heap_o_reserve): Likewise.
14513         * vmsdbgout.c (addr_const_to_string): Likewise.
14514
14515         PR c++/20375
14516         * function.c (struct assign_parm_data_one): Remove last_named
14517         field.
14518         (assign_parm_find_data_types): Don't determine last_named.
14519         Reorder named_parm determination.
14520         (assign_parms): Only setup varargs on the last non-varadic
14521         parameter.
14522
14523 2005-03-10  Kazuhiro Inaoka  <inaoka.lazuhiro@renesas.com>
14524
14525         * config/m32r/m32r.md (load_sda_base_32): New pattern.  Loads
14526         sda base address on medium model.
14527
14528 2005-03-10  Zdenek Dvorak  <dvorakz@suse.cz>
14529
14530         * Makefile.in (tree-optimize.o): Add CFGLOOP_H dependence.
14531         * cfgloop.c (flow_loop_nodes_find): Export.
14532         * cfgloop.h (flow_loop_nodes_find, fix_loop_structure):
14533         Declare.
14534         * cfgloopmanip.c (fix_loop_structure): New function.
14535         * predict.c (predict_loops): Clean up the loops information.
14536         * tree-cfg.c (cleanup_tree_cfg_loop): New function.
14537         (tree_can_merge_blocks_p, remove_bb, tree_forwarder_block_p): Respect
14538         loop structure.
14539         * tree-flow.h (cleanup_tree_cfg_loop): Declare.
14540         (rewrite_into_loop_closed_ssa): Declaration changed.
14541         * tree-loop-linear.c (linear_transform_loops): Add argument to
14542         rewrite_into_loop_closed_ssa call.
14543         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
14544         * tree-ssa-loop-im.c (move_computations): Ditto.
14545         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
14546         * tree-vectorizer.c (vectorize_loops): Ditto.
14547         * tree-optimize.c: Include cfgloop.h.
14548         (execute_todo): Choose whether to call cleanup_tree_cfg or
14549         cleanup_tree_cfg_loop.
14550         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables,
14551         (tree_unroll_loops_completely): Enable cleanup_tree_cfg_loop call.
14552         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Enable
14553         cleanup_tree_cfg_loop call.
14554         * tree-ssa-loop-manip.c (find_uses_to_rename_bb): New function.
14555         (find_uses_to_rename, rewrite_into_loop_closed_ssa): Support
14556         work on part of cfg.
14557
14558 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
14559
14560         PR inline-asm/20314
14561         * gimplify.c (gimplify_asm_expr): Handle input/output constraints
14562         with multiple alternatives.
14563
14564         * stmt.c (parse_output_constraint): Fix a typo.
14565
14566 2005-03-09  Bob Wilson  <bob.wilson@acm.org>
14567
14568         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Use "no-transform"
14569         assembly directive instead of deprecated "no-generics".
14570
14571 2005-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
14572
14573         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
14574         for non-offsettable memory references to cope with outstanding reload
14575         replacements.
14576         * config/s390/s390.md ("reload_outti"): Call find_replacement to
14577         avoid losing outstanding address reloads.
14578         ("reload_outdi", "reload_outdf"): Likewise.
14579
14580 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14581
14582         * builtins.c (fold_builtin_cbrt, fold_builtin_pow): Rearrange
14583         code.  Add more cbrt transformations.
14584
14585 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14586
14587         * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case.
14588
14589 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
14590
14591         * fold-const.c (fold_unary, fold_binary, fold_ternary): Return
14592         NULL_TREE when a given tree is not simplified.
14593         (fold): Return the original tree when any of the functions
14594         mentioned above NULL_TREE.
14595
14596         * fold-const.c (fold_unary, fold_binary): Take decomposed
14597         arguments, code, type, op0, and op1 in case of fold_binary.
14598         (fold): Update calls to fold_unary and fold_binary.
14599
14600 2005-03-09  Roger Sayle  <roger@eyesopen.com>
14601
14602         * builtins.c (fold_builtin_unordered_cmp): Change prototype to take
14603         a fndecl and an arglist instead of a CALL_EXPR, exp.
14604
14605 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
14606
14607         * cfglayout.c (fixup_reorder_chain): Remove old_bb.
14608
14609         * cfgrtl.c (cfg_layout_merge_blocks): Remove new_e.
14610
14611         * expr.c (expand_assignment): Remove orig_to_rtx.
14612
14613         * fold-const.c (int_const_binop): Remove no_overflow.
14614
14615         * ifcvt.c (noce_emit_move_insn): Remove inmode.
14616
14617         * loop-iv.c (get_biv_step_1): Remove lhs.
14618
14619         * loop-unroll.c (analyze_insns_in_loop): Remove preheader.
14620
14621         * real.c (real_nan): Remove neg.
14622
14623         * function.c (thread_prologue_and_epilogue_insns): Remove i
14624         and newinsn.
14625
14626         * tree-data-ref.c (array_base_name_differ_p): Remove ta and
14627         tb.
14628
14629         * tree-eh.c (tree_could_trap_p): Remove idx.
14630
14631         * tree-into-ssa.c (ann): Remove ann.
14632
14633         * tree-outof-ssa.c (num_nodes): Remove num_nodes.
14634
14635         * tree-sra.c (decide_block_copy): Remove inst_count.
14636
14637         * tree-ssa-alias.c (may_alias_p): Remove v_ann.
14638
14639         * tree-ssa-loop-im.c (lhs): Remove.
14640
14641         * cfgbuild.c (state, STATE, SET_STATE,
14642         BLOCK_USED_BY_TABLEJUMP, FULL_STATE): Move just before
14643         make_edges.
14644         (make_edges): Speed up by skipping blocks with BLOCK_ORIGINAL.
14645         (find_basic_blocks): Set the state of each basic block to
14646         BLOCK_NEW.
14647
14648 2005-03-08  Jeff Law  <law@redhat.com>
14649
14650         * tree-cfg.c (cleanup_control_flow): If removal of a computed
14651         goto results in the removal of edges in the CFG, then we need
14652         to recompute dominators.
14653
14654 2005-03-09  Ben Elliston  <bje@au.ibm.com>
14655
14656         * c-common.c (c_do_switch_warnings): Comment fix.
14657
14658 2005-03-08  Julian Brown  <julian@codesourcery.com>
14659
14660         * Patch from 2005-03-08 reverted for causing regressions and
14661         ppc-darwin bootstrap failure.
14662
14663 2005-03-08  Fariborz Jahanian <fjahanian@apple.com>
14664
14665         * config/rs6000/rs6000.c (invalid_arg_for_unprototyped_fn):
14666         Define the real function for ppc-darwin.
14667         * c-typeck.c (convert_arguments): Check for target-specific
14668         invalid argument call to unprototyped function.
14669         * target-def.h (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
14670         New Macro.
14671         * target.h (invalid_arg_for_unprototyped_fn): New field
14672         in struct calls.
14673         * targhooks.c (hook_invalid_arg_for_unprototyped_fn): New
14674         default target hook.
14675         * targhooks.h (hook_invalid_arg_for_unprototyped_fn):
14676         Declare.
14677
14678 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
14679
14680         * c-typeck.c (constructor_stack, constructor_range_stack,
14681         initializer_stack): Make them static.
14682
14683         * cfg.c (rbi_pool): Make it static.
14684
14685         * gimple-low.c (lower_stmt_body): Make it static.
14686         * tree-flow.h: Remove the corresponding prototype.  Don't
14687         declare lower_data.
14688
14689         * sched-deps.c (cache_size): Make it static.
14690
14691         * stor-layout.c (lang_adjust_rli): Make it static.
14692
14693 2005-03-08  Julian Brown  <julian@codesourcery.com>
14694
14695         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
14696         from being used for symbols with vague linkage when
14697         HAVE_GAS_COMDAT_GROUP is true.
14698
14699 2005-03-08  J"orn Rennecke <joern.rennecke@st.com>
14700
14701         * jump.c (invert_jump_1): Don't call redirect_jump_1 with
14702         nlabel == JUMP_LABEL (jump).
14703
14704 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
14705
14706         * c-common.c, c-opts.c, combine.c, cse.c, dojump.c,
14707         gimplify.c, tree-dfa.c, tree-ssa-loop-ivopts.c,
14708         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-sink.c,
14709         tree-vect-analyze.c, tree.def, tree.h: Fix comment formatting.
14710
14711 2005-03-08  Alexey Neyman  <alex.neyman@auriga.ru>
14712
14713         PR c/14411
14714         * calls.c (flags_from_decl_or_type): Handle eturns_twice' attribute.
14715         * c-common.c (handle_returns_twice): New function.
14716         (c_common_attribute_table): Declare eturns_twice' attribute.
14717         * doc/extend.texi: Document eturns_twice' attribute.
14718         * tree.h (DECL_IS_RETURNS_TWICE): New macro.
14719         (struct tree_decl): Add returns_twice_flag.
14720
14721 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
14722
14723         * tree-ssa-phiopt.c: Fix a comment typo.
14724
14725         * c-semantics.c, cfghooks.c, diagnostic.h, loop-iv.c,
14726         loop-unswitch.c, modulo-sched.c, stor-layout.c, tree-gimple.h,
14727         config/i386/cygwin1.c, doc/cfg.texi, doc/objc.texi: Update
14728         copyright.
14729
14730 2005-03-08  Richard Henderson  <rth@redhat.com>
14731
14732         * config/alpha/alpha.c (code_for_builtin): Replace special-case
14733         builtin codes with ctzdi2, clzdi2, popcountdi2.
14734         (struct alpha_builtin_def): Add is_const.
14735         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it.
14736         (alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New.
14737         (alpha_init_builtins): Init them.  Set nothrow and const attributes
14738         on builtins.
14739         (alpha_fold_builtin_cmpbge, alpha_fold_builtin_zapnot,
14740         alpha_fold_builtin_extxx, alpha_fold_builtin_insxx,
14741         alpha_fold_builtin_mskxx, alpha_fold_builtin_umulh,
14742         alpha_fold_vector_minmax, alpha_fold_builtin_perr,
14743         alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb,
14744         alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw,
14745         alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz,
14746         alpha_fold_builtin_ctpop, alpha_fold_builtin): New.
14747         (TARGET_FOLD_BUILTIN): New.
14748         * config/alpha/alpha.md (UNSPEC_CTTZ): Remove.
14749         (UNSPEC_CTLZ, UNSPEC_CTPOP): Remove.
14750         (ffsdi2): Use ctz.
14751         (cttz, builtin_cttz, builtin_ctlz, builtin_ctpop): Remove.
14752
14753 2005-03-08  Ira Rosen  <irar@il.ibm.com>
14754
14755         PR tree-optimization/20122
14756         * tree-vect-analyze.c (vect_object_analysis): Analyze initial
14757         condition of access function instead of base.
14758
14759 2005-03-07  Jeff Law  <law@redhat.com>
14760             Steven Bosscher  <stevenb@suse.de>
14761
14762         * tree-cfg.c (find_taken_edge_computed_goto): New function.
14763         (find_taken_edge): Call find_taken_edge_computed_goto as
14764         appropriate.  Allow any gimple invariant rather than just
14765         INTEGER_CST for VAL.
14766         (cleanup_control_flow): Cleanup a computed goto which has turned
14767         into a simple goto.
14768         (tree_merge_blocks): If block B has any forced labels, move
14769         them to the start of block A.
14770         * tree-ssa-dom.c (thread_across_edge): Allow threading across
14771         computed gotos as well.
14772         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Handle
14773         removal of unnecessary computed gotos too.
14774         (lookup_redirection_data): Fix type of INSERT argument.  Callers
14775         updated.
14776
14777 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
14778
14779         * tree-ssa-phiopt.c: Update copyright.  Fix indentations.
14780         Remove trailing spaces.
14781
14782         * gimplify.c (gimple_push_bind_expr, gimple_pop_bind_expr,
14783         unshare_all_trees): Make them static.
14784         * tree-gimple.h: Remove the corresponding prototypes.
14785
14786         * diagnostic.h: Remove unused prototype
14787         debug_output_buffer.
14788         * modulo-sched.c: Remove unused prototype
14789         set_row_column_for_ps.
14790
14791         * tree-ssa-phiopt.c (tree_ssa_phiopt,
14792         replace_phi_edge_with_variable): Remove unused variable i.
14793
14794 2005-03-07  Per Bothner  <per@bothner.com>
14795
14796         * tree.h (DECL_IS_BUILTIN): Reverted my patch from earlier today.
14797
14798 2005-03-06  Andrew Pinski  <pinskia@physics.uc.edu>
14799
14800         PR tree-opt/17671
14801         * tree-ssa-phiopt.c (tree_ssa_phiopt): Rewrite so we base the
14802         bbs on the COND_EXPR instead of the PHI_NODEs.
14803         (candidate_bb_for_phi_optimization): Remove.
14804         (replace_phi_with_stmt): Rename to ...
14805         (replace_phi_edge_with_variable): this and change so that we
14806         replace the phi argument instead of removing the PHI.
14807         (conditional_replacement): Change so we deal with PHI with more
14808         than two arguments.
14809         (value_replacement): Likewise.
14810         (abs_replacement): Likewise.
14811
14812 2005-03-07  Aldy Hernandez  <aldyh@redhat.com>
14813
14814         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_eq_bit to
14815         output_e500_flip_gt_bit.
14816
14817         * config/rs6000/rs6000.c (print_operand): case D: Print out bit 31
14818         as bit 31.
14819         (rs6000_generate_compare): Fix logic to look at the correct bits.
14820         (output_e500_flip_eq_bit): Rename to output_e500_flip_gt_bit.
14821         Look at GT bit.
14822         (rs6000_emit_sCOND): Rename gen_e500_flip_eq_bit to
14823         gen_e500_flip_gt_bit.  Rename gen_move_from_CR_eq_bit to
14824         gen_move_from_CR_gt_bit.
14825
14826         * config/rs6000/rs6000.md ("move_from_CR_eq_bit"): Change bit
14827         ("move_from_CR_eq_bit"): Rename to move_from_CR_gt_bit.
14828         (UNSPEC_MV_CR_EQ): Rename to UNSPEC_MV_CR_GT.
14829
14830         * config/rs6000/spe.md ("e500_cr_ior_compare"): New.
14831         (E500_CR_IOR_COMPARE): New constant.
14832
14833 2005-03-08  Earl Chew <earl_chew@agilent.com>
14834             David Billinghurst <David.Billinghurst@riotinto.com>
14835
14836         * config/i386/host-cygwin.c: New file to support precompiled
14837         headers on cygwin
14838         * config/i386/x-cygwin: Use host-cygwin.c on cygwin host
14839         * config.host: Use above files for cygwin host.
14840
14841 2005-03-07  David Edelsohn  <edelsohn@gnu.org>
14842
14843         * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
14844         ordering ops from earlier change.
14845
14846 2005-03-07  Per Bothner  <per@bothner.com>
14847
14848         Various fixes to allow us to again build if --enable-mapped-location:
14849         * c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of
14850         unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
14851         * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of
14852         local variable loc. Change logic appropriately.
14853         * tree-vect-transform.c (vect_finish_stmt_generation): Use
14854         EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION.
14855         * c-parser.c (c_parser_for_statement): Initialize loc variable.
14856         * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of
14857         DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues.
14858
14859 2005-03-07  Richard Sandiford  <rsandifo@redhat.com>
14860
14861         PR rtl-optimization/19683
14862         * reload1.c (choose_reload_regs): Pass the number of bits, not the
14863         number of bytes, to smallest_int_for_mode.  Fix arguments to
14864         REG_CANNOT_CHANGE_MODE_P.
14865
14866 2005-03-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
14867
14868         * reorg.c (relax_delay_slots): Check that the jump is
14869         conditional before trying to invert it.
14870
14871 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
14872
14873         * bb-reorder.c (max_entry_frequency, max_entry_frequency):
14874         Make them static.
14875
14876         * calls (stack_arg_under_construction): Make it static.
14877
14878         * flow.c (regs_live_at_setjmp): Make it static.
14879         * flow.h: Remove the corresponding prototype.
14880
14881         * reload1.c (reload_startobj, reload_firstobj,
14882         something_needs_operands_changed, reload_inherited,
14883         reload_inheritance_insn, reload_override_in,
14884         reload_spill_index): Make them static.
14885
14886         * recog.c (verify_changes): Make it static.
14887         * recog.h: Remove the corresponding prototype.
14888
14889         * cfgbuild.c (find_sub_basic_blocks): Remove.
14890         * basic-block.h: Remove the corresponding prototype.
14891         * cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks
14892         in comments.
14893         * doc/cfg.texi: Don't mention find_sub_basic_blocks.
14894
14895         * tree-ssa-operands.c (check_build_stmt): Remove.
14896
14897         * stor-layout.c (set_alignment): Remove.
14898         * tree.h: Remove the corresponding prototype.
14899
14900         * tree-ssa-pre.c (has_abnormal_preds): Make it static.
14901
14902         * tree-ssa-dce.c (control_dependence_map,
14903         visited_control_parents): Make them static.
14904
14905         * cfghooks.c (verify_flow_info): Remove local variable
14906         num_bb_notes.
14907
14908         * cfgrtl.c (rtl_verify_flow_info_1): Remove local variable
14909         last_bb_seen.
14910
14911         * loop-unswitch.c (unswitch_loop): Remove local variable src.
14912
14913 2005-03-07  David Billinghurst <David.Billinghurst@riotinto.com>
14914
14915         * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv.
14916
14917 2005-03-07  Joseph S. Myers  <joseph@codesourcery.com>
14918
14919         * config/ia64/hpux.h (LINK_SPEC): Add -z.
14920         * config/ia64/ia64.c (ia64_function_value): Return a REG not a
14921         PARALLEL for an empty structure.
14922
14923 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
14924
14925         * fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
14926
14927         * fold-const.c (fold_binary): Unroll the very first "for"
14928         loop.
14929
14930 2005-03-06  David Edelsohn  <edelsohn@gnu.org>
14931
14932         * config/rs6000/predicates.md (branch_comparison_operator): Remove
14933         redundant match_code test.
14934         (scc_comparison_operator): Swap match_operand and match_code
14935         tests.
14936         (branch_positive_comparison_operator): Same.
14937         (trap_comparison_operator): Use comparison_operator and swap with
14938         match_code test.
14939
14940 2005-03-06  Marek Michalkiewicz  <marekm@amelek.gda.pl>
14941
14942         PR target/20288
14943         * config/avr/avr.c (print_operand): Add 'p' and 'r'.
14944         (out_movhi_r_mr): Read low byte of volatile MEM first.
14945         (out_movhi_mr_r): Write high byte of volatile MEM first.
14946
14947 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
14948
14949         * cselib.c (reg_values, reg_values_size): Make them static.
14950
14951         * cse.c (cse_reg_info_table): Make it static.
14952
14953         * fold-const.c (fold_unary): Use build1 instead of copy_node.
14954
14955 2005-03-06  Zdenek Dvorak  <dvorakz@suse.cz>
14956
14957         * cse.c (find_best_addr): Use canon_for_address.
14958
14959 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
14960
14961         * cse.c (fold_rtx_subreg, fold_rtx_mem): New.
14962         (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle
14963         SUBREG and MEM, respectively.
14964
14965         * fold-const.c (fold_binary): Use code instead of t.
14966
14967         * fold-const.c (optimize_minmax_comparison): Take decomposed
14968         arguments code, type, op0, and op1 instead of t.
14969         (fold_binary): Update a call to optimize_minmax_comparison.
14970
14971         * fold-const.c (fold_range_test): Take decomposed arguments
14972         code, type, op0, and op1 instead of t.
14973         (fold_binary): Update a call to fold_range_test.
14974
14975         * fold-const.c (fold_binary_op_with_conditional_arg): Take
14976         decomposed arguments code, type, op0, and op1 instead of t.
14977         (fold_binary): Update a call to fold_range_test.
14978
14979 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
14980
14981         * fold-const.c (fold_binary): Avoid directly using the original
14982         expression t as much as possible.
14983
14984 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
14985
14986         * c-semantics.c (build_stmt): Use TYPE_P instead of
14987         IS_NON_TYPE_CODE_CLASS.
14988         * tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
14989         (NON_TYPE_CHECK): Use TYPE_P instead of
14990         IS_NON_TYPE_CODE_CLASS.
14991
14992         * fold-const.c (fold): Remove handling of binary expressions.
14993
14994 2005-03-05  James A. Morrison  <phython@gcc.gnu.org>
14995
14996         * doc/c-tree.texi: Wrap comments in @r{}.
14997         * doc/cpp.texi: Likewise.
14998         * doc/cppinternals.texi: Likewise.
14999         * doc/extend.texi: Likewise.
15000         * doc/md.texi: Likewise.
15001         * doc/objc.texi: Likewise.
15002         * doc/sourcebuild.texi: Likewise.
15003         * doc/tm.texi: Likewise.
15004         * doc/tree-ssa.texi
15005
15006 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
15007
15008         * predict.c (apply_return_prediction): Standardize PHI chain
15009         walking.
15010         * tree-ssa.c (ssa_redirect_edge): Likewise.
15011
15012         * genattrtab.c, genemit.c, genoutput.c, genrecog.c,
15013         gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c:
15014         Update copyright.
15015
15016         * tree-phinodes.c (remove_phi_node): Drop the last argument.
15017         * tree-flow.h: Adjust the prototype for remove_phi_node.
15018         * lambda-code.c (perfect_nestify): Adjust a call to
15019         remove_phi_node.
15020         * tree-cfg.c
15021         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
15022         * tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
15023         Likewise.
15024         * tree-ssa-dce.c (remove_dead_phis): Likewise.
15025         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
15026         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
15027         * tree-ssa.c (kill_redundant_phi_nodes): Likewise.
15028
15029         * combine.c (simplify_and_const_int): Use gen_int_mode instead
15030         of GEN_INT (trunc_int_for_mode (...)).
15031         * loop-iv.c (iv_number_of_iterations): Likewise.
15032         * postreload.c (reload_cse_move2add): Likewise.
15033         * simplify-rtx.c (simplify_const_unary_operation,
15034         simplify_const_binary_operation): Likewise.
15035         * stor-layout.c (get_mode_bounds): Likewise.
15036
15037         * fold-const.c (fold_binary): New.
15038         (fold): Call fold_binary on binary expressions.
15039
15040 2005-03-05  Richard Sandiford  <rsandifo@redhat.com>
15041
15042         * doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
15043         * config/mips/mips.h (MASK_SYM32, TARGET_SYM32): New macros.
15044         (TARGET_SWITCHES): Add -msym32 and -mno-sym32.
15045         (ABI_HAS_64BIT_SYMBOLS): Set to false if TARGET_SYM32.
15046         (ASM_SPEC): Pass down -msym32 and -mno-sym32.
15047
15048 2005-03-04  Devang Patel  <dpatel@apple.com>
15049
15050         PR tree-optimization/18815
15051         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
15052         loops with zero exit edges.
15053
15054 2005-03-04  Devang Patel  <dpatel@apple.com>
15055
15056         * doc/invoke.texi: Remove reference to webpage that does not exist.
15057
15058 2005-03-04  John David Anglin  <dave.danglin@nrc-cnrc.gc.ca>
15059             Joseph S. Myers  <joseph@codesourcery.com>
15060
15061         PR c++/19797
15062         * pa/elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define.
15063         (ASM_OUTPUT_EXTERNAL): Call pa_hpux_asm_output_external.
15064         * pa-protos.h (pa_hpux_asm_output_external): Add prototype.
15065         * pa.c (get_plabel): Change argument to symbol_ref.  Call
15066         maybe_get_identifier instead of get_identifier.
15067         (pa_hpux_asm_output_external, pa_hpux_file_end): New functions.
15068         (struct deferred_plabel): Replace name field with symbol field.
15069         (TARGET_ASM_FILE_END): Define as pa_hpux_file_end if
15070         ASM_OUTPUT_EXTERNAL_REAL is defined.
15071         (output_global_address): Use output_addr_const for output of all
15072         symbol_refs.
15073         (output_deferred_plabels): Use symbol_ref instead of name for address
15074         output.
15075         * pa.h (SYMBOL_FLAG_REFERENCED, SYMBOL_REF_REFERENCED_P,
15076         ASM_OUTPUT_SYMBOL_REF): New macros.
15077         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use assemble_name_raw.  Update
15078         comment.
15079         (ASM_WEAKEN_LABEL): Use targetm.asm_out.globalize_label to globalize
15080         label.
15081
15082 2005-03-05  Joseph S. Myers  <joseph@codesourcery.com>
15083
15084         * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for
15085         *-*-hpux11.[1-9]*, not just for *-*-hpux11.11.
15086
15087 2005-03-04  Jeff Law  <law@redhat.com>
15088
15089         * basic-block.h (rediscover_loops_after_threading): Declare.
15090         * tree-ssa-dom.c: Include cfgloop.h.
15091         (tree_ssa_dominator_optimize): Discover loops and some basic
15092         properties.  Remove forwarder blocks recreated by loop header
15093         canonicalization.  Also mark backedges in the CFG.
15094         * tree-ssa-threadupdate.c: Include cfgloop.h
15095         (rediscover_loops_after_threading): Define.
15096         (struct local_info): New field, JUMP_THREADED.
15097         (prune_undesirable_thread_requests): New function.
15098         (redirect_edges): Clear EDGE_ABNORMAL.  If edges were threaded
15099         then record that fact for the callers of redirct_edges.
15100         (thread_block): If BB has incoming backedges, then call
15101         prune_undesirable_thraed_requests.    Note when we are
15102         going to have to rediscover loop information.  Return a
15103         boolean indicating if any jumps were threaded.
15104         (thread_through_all_blocks): Bubble up boolean indicating
15105         if any jumps were threaded.
15106         * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h
15107         (tree-ssa-threadupdate.o): Similarly.
15108
15109 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
15110
15111         * fold-const.c (fold_ternary): Unroll the "for" loop to
15112         extract operands.
15113
15114 2005-03-04  Andrew Haley  <aph@redhat.com>
15115
15116         * unwind-dw2-fde-glibc.c (struct
15117         unw_eh_callback_data.check_cache): New field.
15118         (frame_hdr_cache): New.
15119         (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info.
15120         Cache frame header info.
15121
15122 2005-03-04  Richard Sandiford  <rsandifo@redhat.com>
15123
15124         * rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
15125         (print_c_condition): Declare.
15126         * read-rtl.c (ptr_loc): New structure.
15127         (ptr_locs, ptr_loc_obstack, joined_conditions)
15128         (joined_conditions_obstack): New variables.
15129         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
15130         (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
15131         (join_c_conditions, print_c_condition): New functions.
15132         (apply_macro_to_string): Associate the new string with the same
15133         source location as the old one.
15134         (add_condition_to_string): Use join_c_conditions.
15135         (read_string): Use set_rtx_ptr_loc to record a filename and line
15136         number for the string.
15137         (read_rtx): Initialize the new variables above.
15138         * genattrtab.c (write_test_expr, write_attr_value): Use
15139         print_c_condition.
15140         * genconditions.c (write_header): Don't define MAYBE_EVAL.  Move its
15141         comment above the GCC_VERSION check.
15142         (write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
15143         Inline the definition of MAYBE_EVAL.
15144         * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
15145         * genoutput.c (process_template): Likewise.
15146         * genpreds.c (write_predicate_subfunction): Likewise.
15147         (write_predicate_expr): Use print_c_condition.
15148         * genrecog.c (write_cond): Likewise.
15149         * gensupport.c (process_rtx): Use join_c_conditions to join the
15150         conditions of a define_insn_and_split.  Record a source location
15151         for the string after the "&&".
15152         (alter_test_for_insn): Use join_c_conditions.
15153
15154 2005-03-04  Andrew Pinski  <pinskia@physics.uc.edu>
15155
15156         Revert for now:
15157         2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
15158         PR tree-optimization/15784
15159         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
15160         and -1 - A to ~A.
15161
15162 2005-03-04  Ben Elliston  <bje@au.ibm.com>
15163
15164         * gcc.c (option_map): Add --coverage.
15165         (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
15166         (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'.
15167         * config/darwin.h: Pass -lgcov for `coverage'.
15168         * doc/invoke.texi (Debugging Options): Document --coverage.
15169
15170 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
15171
15172         * gcse.c (bypass_block): Use find_edge wherever possible.
15173
15174 2005-03-03  Daniel Berlin <dberlin@dbrelin.org>
15175
15176         Fix PR debug/20253
15177
15178         * c-opts.c (c_common_parse_file): Call start_source_file
15179         and end_source_file at the approriate times.
15180
15181         * dwarf2out.c (dwarf2out_finish): Don't auto-end
15182         the main file, it will be done for us now.
15183
15184 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
15185
15186         * fold-const.c (fold_ternary): New.
15187         (fold): Call fold_ternary on ternary expressions.  Remove
15188         handling of ternary expressions.
15189
15190 2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
15191
15192         PR tree-optimization/15784
15193         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
15194         and -1 - A to ~A.
15195
15196 2005-03-03  David Edelsohn  <edelsohn@gnu.org>
15197
15198         * config/rs6000/predicates.md (branch_comparison_operator):
15199         Convert from C block to conditional format.
15200
15201 2005-03-03  Jan Hubicka  <jh@suse.cz>
15202
15203         * tree-dfa.c (add_referenced_var): Don't walk initializer of external
15204         and non-constant public variables.
15205
15206 2005-03-03  Kazu Hirata  <kazu@cs.umass.edu>
15207
15208         * tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
15209         with LABEL_EXPR.
15210
15211         * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
15212         EDGE_I.
15213
15214         * tree-phinodes.c (remove_phi_node): Clean up by factoring out
15215         calls to release_ssa_name and release_phi_node.
15216
15217         * fold-const.c (fold): Remove handling of unary expressions.
15218
15219         * fold-const.c (fold_unary): Avoid directly using the original
15220         expression t as much as possible.
15221
15222 2005-03-03  Roger Sayle  <roger@eyesopen.com>
15223             Andrew Pinski  <pinskia@physics.uc.edu>
15224
15225         * jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
15226         RETURN rtx, and not a LABEL_REF containing a NULL pointer.
15227
15228 2005-03-03  Hans-Peter Nilsson  <hp@axis.com>
15229
15230         Describe special registers SRP and MOF as allocatable registers.
15231         * config/cris/cris.c (cris_md_asm_clobbers): New function.
15232         (TARGET_MD_ASM_CLOBBERS): Define to cris_md_asm_clobbers.
15233         (cris_conditional_register_usage): Enable CRIS_MOF_REGNUM if
15234         TARGET_HAS_MUL_INSNS.
15235         (cris_print_operand) <case 'd'>: New case.
15236         <case REG>: Allow CRIS_MOF_REGNUM and CRIS_SRP_REGNUM.
15237         * config/cris/cris.h (CRIS_PC_REGNUM, CRIS_SRP_REGNUM): Don't
15238         define.
15239         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS)
15240         (REG_ALLOC_ORDER): Update for MOF.
15241         (enum reg_class): New members MOF_REGS, GENERAL_REGS and
15242         SPECIAL_REGS.
15243         (GENERAL_REGS): No longer a define of ALL_REGS.
15244         (REGNO_REG_CLASS, REG_CLASS_CONTENTS, REG_CLASS_NAMES)
15245         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
15246         Adjust accordingly.
15247         (CRIS_SPECIAL_REGS_CONTENTS): New macro.
15248         (REG_CLASS_FROM_LETTER): Allocate 'h' and 'x'.
15249         (SECONDARY_RELOAD_CLASS): Define.
15250         (STACK_POINTER_REGNUM): Define as CRIS_SP_REGNUM.
15251         (FRAME_POINTER_REGNUM): Define as CRIS_FP_REGNUM.
15252         (ARG_POINTER_REGNUM): Define as CRIS_AP_REGNUM.
15253         (STATIC_CHAIN_REGNUM): Define as CRIS_STATIC_CHAIN_REGNUM.
15254         (REGISTER_MOVE_COST): Define.
15255         (PIC_OFFSET_TABLE_REGNUM): Define in terms of CRIS_GOT_REGNUM.
15256         * config/cris/cris.md (CRIS_GOT_REGNUM, CRIS_STATIC_CHAIN_REGNUM)
15257         (CRIS_FP_REGNUM, CRIS_SP_REGNUM, CRIS_SRP_REGNUM, CRIS_AP_REGNUM)
15258         (CRIS_MOF_REGNUM): New define_constants.
15259         ("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for
15260         special registers.
15261         ("reload_inhi", "reload_outhi", "reload_inqi", "reload_outqi"):
15262         New patterns.
15263         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3")
15264         ("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"):
15265         Adjust for MOF being properly described as a register.
15266         (indir_to_reg_split): Name this split.  Conditionalize on the
15267         destination register being a general register.
15268         (movei): Conditionalize on on operands 0 and 1 having the same
15269         register class.
15270
15271 2005-03-03  Alan Modra  <amodra@bigpond.net.au>
15272
15273         PR target/20277
15274         * config/rs6000/rs6000.c (rs6000_override_options): Don't allow
15275         -mcpu to override any other explicitly given flags.
15276
15277 2005-03-02  J"orn Rennecke <joern.rennecke@st.com>
15278
15279         * recog.c (verify_changes, confirm_change_group): New functions,
15280         broken out of apply_change_group.
15281         (apply_change_group): Use them.
15282         * recog.h (verify_change, confirm_change_group): Declare.
15283         * rtl.h (redirect_jump_2): Declare.
15284         * jump.c (redirect_exp, invert_exp): Delete.
15285         (invert_exp_1): Take second parameter.  Return value.  Changed caller.
15286         (redirect_jump_2): New function, broken out of redirect_jump.
15287         (redirect_jump): Use redirect_jump_1 and redirect_jump_2.
15288         (invert_jump): Use invert_jump_1 and redirect_jump_2.
15289         * ifcvt.c (dead_or_predicable): Use redirect_jump_2.
15290
15291 2005-03-02  Geoffrey Keating  <geoffk@apple.com>
15292
15293         * varasm.c (named_section): Use xstrdup rather than doing it by
15294         hand.
15295
15296         * config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.
15297
15298 2005-03-02  Devang Patel  <dpatel@apple.com>
15299
15300         Undo PR tree-optimization/18815 fix.
15301
15302 2005-03-02  Devang Patel  <dpatel@apple.com>
15303
15304         PR tree-optimization/18815
15305         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
15306         loops with zero exit edges.
15307
15308 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
15309
15310         * cfg.c (connect_src, connect_dest, disconnect_src,
15311         disconnct_dest): New.
15312         (unchecked_make_edge, remove_edge, redirect_edge_succ,
15313         redirect_edge_pred): Use the new functions.
15314
15315         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
15316         free_dominance_info only when needed.
15317
15318 2005-03-02  David Edelsohn  <edelsohn@gnu.org>
15319
15320         PR target/20276
15321         * config/rs6000/predicates.md (reg_or_cint64_operand): Fix typo.
15322         (reg_or_sub_cint64_operand): Same.
15323
15324 2005-03-02  Jeff Law  <law@redhat.com>
15325
15326         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
15327         CFG_ALTERED in the main DOM iteration loop.
15328
15329 2005-03-02  Mark Mitchell  <mark@codesourcery.com>
15330
15331         PR c++/19916
15332         * varasm.c (initializer_constant_valid_p): Allow conversions
15333         between OFFSET_TYPEs.  Tidy.
15334
15335 2005-03-02  Hans-Peter Nilsson  <hp@axis.com>
15336
15337         * config/cris/cris.md ("return"): Remove epilogue delay list
15338         sanity check.
15339
15340 2005-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
15341
15342         * config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
15343         for Thumb.
15344         * config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.
15345
15346 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
15347
15348         * cfgloop.h, cfgloopanal.c, cfgloopmanip.c, conflict.c,
15349         loop-init.c, loop-unroll.c, print-tree.c, reg-notes.def,
15350         config/m68k/m68k.c, config/mips/mips.h,
15351         config/rs6000/rs6000-protos.h, doc/contrib.texi,
15352         doc/include/gcc-common.texi: Update copyright.
15353
15354         PR middle-end/18029 and PR middle-end/18030
15355         * expr.c (optimize_bitfield_assignment_op): Add a special case
15356         to handle BIT_IOR_EXPR and BIT_XOR_EXPR.
15357
15358         * fold-const.c (fold_unary): New.
15359         (fold): Call fold_unary on unary expressions.
15360
15361 2005-03-02  Richard Guenther  <rguenth@gcc.gnu.org>
15362
15363         * cgraph.h (struct cgraph_edge): Add prev_caller and
15364         prev_callee fields.
15365         (cgraph_node_remove_callees): Export.
15366         * cgraph.c (cgraph_create_edge): Initialize prev_caller
15367         and prev_callee.
15368         (cgraph_edge_remove_callee): New function.
15369         (cgraph_edge_remove_caller): Likewise.
15370         (cgraph_remove_edge): Use.
15371         (cgraph_redirect_edge_callee): Likewise.
15372         (cgraph_node_remove_callees): New function.
15373         (cgraph_node_remove_callers): Likewise.
15374         (cgraph_remove_node): Use.
15375         * tree-optimize.c (tree_rest_of_compilation): Use
15376         cgraph_node_remove_callees instead of manual loop.
15377         * cgraphunit.c (cgraph_finalize_function): Likewise.
15378         (cgraph_expand_function): Likewise.
15379         (cgraph_remove_unreachable_nodes): Likewise.
15380
15381 2005-03-02  Joseph S. Myers  <joseph@codesourcery.com>
15382
15383         PR c/8927
15384         * c-tree.h (undeclared_variable, build_external_ref): Add extra
15385         argument.
15386         * c-decl.c (undeclared_variable): Take location as argument.
15387         * c-typeck.c (build_external_ref): Likewise.
15388         * c-parser.c (c_parser_postfix_expression): Pass location of
15389         identifier to build_external_ref.
15390
15391 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
15392
15393         * config/rs6000/rs6000.md (cceq splitter): Use operand mode, not
15394         CCEQ mode for branch_positive_comparison_operator test.
15395         * config/rs6000/predicates (branch_comparison_operator): Revert to
15396         define_predicate.
15397         (scc_comparison_operator): Same.
15398         (branch_positive_comparison_operator): Same.
15399
15400 2005-03-01  Hans-Peter Nilsson  <hp@axis.com>
15401
15402         * config/cris/cris.c (cris_eligible_for_epilogue_delay)
15403         (cris_delay_slots_for_epilogue): Remove.
15404         (save_last): Move into cris_target_asm_function_epilogue.
15405         (cris_target_asm_function_epilogue): Remove tests for file being
15406         NULL.
15407         * config/cris/cris-protos.h (cris_eligible_for_epilogue_delay)
15408         (cris_delay_slots_for_epilogue): Remove prototypes.
15409         * config/cris/cris.h (DELAY_SLOTS_FOR_EPILOGUE)
15410         (ELIGIBLE_FOR_EPILOGUE_DELAY): Do not define.
15411
15412 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
15413
15414         * config/rs6000/predicates.md (branch_comparison_operator): Change
15415         to define_special_predicate.
15416         (scc_comparison_operator): Same.
15417         (branch_positive_comparison_operator): Same.
15418
15419 2005-03-01  Daniel Berlin <dberlin@dberlin.org>
15420
15421         * Makefile.in (tree-ssa-sink.o): New.
15422         (OBJS-common): Add tree-ssa-sink.o.
15423         * common.opt: Add -ftree-sink
15424         * opts.c (decode_options): flag_tree_sink is set at O1 or higher.
15425         * timevar.def (TV_TREE_SINK): new timevar.
15426         * tree-flow.h (is_hidden_global_store): Prototype.
15427         * tree-optimize.c (init_tree_optimization_passes): Add
15428         pass_sink_code.
15429         * tree-pass.h (pass_sink_code): New.
15430         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move checking
15431         for non-obvious global store store to is_hidden_global_store, and
15432         call that new function.
15433         * tree-ssa-sink.c: New file.
15434         * doc/invoke.texi: Document -fdump-tree-sink and -ftree-sink.
15435         * doc/passes.texi: Document forward store motion.
15436         * testsuite/gcc.dg/tree-ssa/ssa-sink-1.c: New test
15437         * testsuite/gcc.dg/tree-ssa/ssa-sink-2.c: New test
15438         * testsuite/gcc.dg/tree-ssa/ssa-sink-3.c: New test
15439         * testsuite/gcc.dg/tree-ssa/ssa-sink-4.c: New test
15440
15441 2005-03-01  Per Bothner  <per@bothner.com>
15442
15443         * diagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION
15444         and we have a non-zero column-number, add it to the message.
15445         Also factor out the diagnostic_kind_text.
15446
15447 2005-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
15448
15449         * cfgloop.c (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
15450         flow_loop_pre_header_scan, flow_loop_pre_header_find,
15451         flow_loop_scan): Removed.
15452         (flow_loop_dump): Do not dump removed fields.
15453         (flow_loop_free): Do not free removed fields.
15454         (flow_loops_find): Flags argument removed.  Do not call flow_loop_scan.
15455         (loop_exit_edge_p): New function.
15456         * cfgloop.h (struct loop): Removed fields pre_header, pre_header_edges,
15457         num_pre_header_edges, entry_edges, num_entries, exit_edges,
15458         num_exits, exits_doms.
15459         (LOOP_TREE, LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
15460         LOOP_EDGES, LOOP_ALL): Removed.
15461         (flow_loop_scan): Declaration removed.
15462         (loop_exit_edge_p, mark_loop_exit_edges): Declare.
15463         * cfgloopmanip.c (create_loop_notes): Do not pass flags to
15464         flow_loops_find.
15465         * ifcvt.c (mark_loop_exit_edges): Moved to cfgloopanal.c.
15466         (if_convert): Call flow_loops_find and flow_loops_free
15467         when calling mark_loop_exit_edges.
15468         * cfgloopanal.c (mark_loop_exit_edges): Moved from
15469         ifcvt.c.  Removed the flow_loops_find, flow_loops_free and
15470         free_dominance_info calls.
15471         * loop-init.c (flow_loops_find): Ditto.
15472         * passes.c (rest_of_handle_branch_prob): Ditto.
15473         * lambda-code.c (perfect_nestify): Do not call flow_loops_find.
15474         * loop-unroll.c (analyze_insns_in_loop): Do not use
15475         EDGE_LOOP_EXIT.
15476         * predict.c (predict_loops): Do not call flow_loop_scan.
15477         Use get_loop_exit_edges.
15478         (tree_estimate_probability): Do not pass flags to flow_loops_find.
15479         * tree-if-conv.c (bb_with_exit_edge_p): Take loop as argument.
15480         Do not use EDGE_LOOP_EXIT.
15481         (tree_if_convert_cond_expr, if_convertible_modify_expr_p): Pass loop
15482         to bb_with_exit_edge_p.
15483         (if_convertible_loop_p): Do not call flow_loop_scan.  Use
15484         loop->single_exit.  Do not use EDGE_LOOP_EXIT.  Pass loop
15485         to bb_with_exit_edge_p.
15486         (combine_blocks): Pass loop to bb_with_exit_edge_p.  Do not use
15487         EDGE_LOOP_EXIT.
15488         * tree-loop-linear.c (linear_transform_loops): Do not call
15489         flow_loop_scan.  Use loop->single_exit.
15490         * tree-vect-analyze.c (vect_analyze_operations): Use loop->single_exit.
15491         (vect_analyze_loop_form): Do not call flow_loop_scan.
15492         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Use
15493         loop->single_exit.
15494         (vect_do_peeling_for_loop_bound): Use loop_preheader_edge and
15495         loop->single_exit.
15496         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
15497         slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
15498         slpeel_tree_duplicate_loop_to_edge_cfg,
15499         slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
15500         Use loop_preheader_edge and loop->single_exit.  Do not call
15501         flow_loop_scan.
15502
15503 2005-03-01  Nick Clifton  <nickc@redhat.com>
15504
15505         * config/arm/arm.c (thumb_find_work_register): Check all of the
15506         argument registers to see if they are free, and a couple of
15507         special cases where the last argument register but can be proved
15508         to be available during the function's prologue.
15509         (print_multi_reg, arm_compute_save_reg0_reg12_mask,
15510         output_return_instruction, emit_multi_reg_push, thumb_pushpop,
15511         thumb_unexpanded_epilogue): Use unsigned long as the type for the
15512         register bit-mask.
15513         (thumb_compute_save_reg_mask): Likewise.  Also use
15514         thumb_find_work_register() to ensure that there is agreement about
15515         which work register is going to be used in the prologue.
15516         (thumb_output_function_prologue): Use unsigned long as the type
15517         for the register bit-mask.  Also delay pushing the link register if
15518         other high registers are going to be pushed.
15519         (thumb_compute_save_reg_mask, emit_multi_reg_push,
15520         print_multi-reg, number_of_first_bit_set, thumb_pushpop): Remove
15521         redundant prototypes.
15522
15523 2005-02-28  John David Anglin  <dave.anglin#nrc-cnrc.gc.ca>
15524
15525         PR target/19819
15526         * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow allow hard registers during
15527         and after reload in REG+REG indexed addresses without REG_POINTER
15528         set in the base and not set in the index.
15529
15530 2005-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
15531
15532         * config/sh/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
15533         Don't undefine here.
15534         (HANDLE_PRAGMA_PACK_PUSH_POP): Delete.
15535         (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC): Likewise.
15536         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
15537         (LIB_SPEC, LINK_EH_SPEC, STARTFILE_SPEC, ENDFILE_SPEC,
15538         LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED, TARGET_C99_FUNCTIONS):
15539         Delete.
15540         * config.gcc (sh*-*-linux*): Use config/linux.h.
15541
15542 2005-02-28  Dale Johannesen  <dalej@apple.com>
15543             Stan Shebs  <shebs@apple.com>
15544
15545         Rewrite of 64-bit Darwin structure-by-value pass/return.
15546         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): New fields
15547         intoffset, use_stack, named.
15548         * config/rs6000/rs6000.c (rs6000_darwin64_function_arg):  Remove.
15549         (rs6000_darwin64_record_arg_advance_flush):  New.
15550         (rs6000_darwin64_record_arg_advance_recurse): New.
15551         (rs6000_darwin64_record_arg_flush):  New.
15552         (rs6000_darwin64_record_arg_recurse):  New.
15553         (rs6000_darwin64_record_arg):  New.
15554         (rs6000_return_in_memory):  Remove AGGREGATE_TYPE_P check.
15555         (function_arg_boundary):  Handle 128-bit aligned structs.
15556         (function_arg_advance):  Rewrite darwin64 struct handling.
15557         (function_arg):  Call rs6000_darwin64_record_arg.
15558         (function_arg_partial_nregs):  Handle darwin64 structs.
15559         (rs6000_darwin64_function_value):  Remove.
15560         (rs6000_function_value):  Call rs6000_darwin64_record_arg.
15561
15562 2005-02-28  Roger Sayle  <roger@eyesopen.com>
15563
15564         PR tree-optimization/20216
15565         * tree-chrec.c (tree_fold_factorial): Delete.
15566         (tree_fold_binomial): Change argument list to take a return type
15567         and change the type of K to unsigned int.  Rewrite to avoid explicit
15568         evaluation of factorials, and (recursively) calling fold to perform
15569         compile-time arithmetic.  Return NULL on (internal) overflow.
15570         (chrec_evaluate): Change type of K to an unsigned int.  Avoid
15571         calling tree_fold_binomial unnecessarily.  Return chrec_dont_know
15572         if any intermediate calculation overflows.
15573         (chrec_apply): Update call to chrec_evaluate.
15574
15575 2005-02-28  James E Wilson  <wilson@specifixinc.com>
15576
15577         * config/mips/mips.h (NO_PROFILE_COUNTERS): Define.
15578
15579 2005-02-28  Joseph S. Myers  <joseph@codesourcery.com>
15580
15581         PR c/20245
15582         * c-parser.c (c_parser_compound_statement): Return error_mark_node
15583         instead of NULL_TREE on error.
15584
15585 2005-02-28  David Edelsohn  <edelsohn@gnu.org>
15586
15587         * config/rs6000/rs6000.c (EASY_VECTOR_15): Remove.
15588         (EASY_VECTOR_15_ADD_SELF): Remove.
15589         (num_insns_constant_wide): Not static.
15590         (validate_condition_mode): Not static.
15591         (toc_relative_expr_p): Not static.
15592         (legitimate_indirect_address_p): Not static.
15593         (macho_lo_sum_memory_operand): Not static.
15594         (invalid_e500_subreg): Not static.
15595         (easy_vector_same): Not static.
15596         (easy_vector_splat_const): Not static.
15597         (RS6000_SYMBOL_REF_TLS_P): Remove.
15598         (any_operand): Delete.
15599         (any_parallel_operand): Delete.
15600         (count_register_operand): Delete.
15601         (altivec_register_operand): Delete.
15602         (xer_operand): Delete.
15603         (s8bit_cint_operand): Delete.
15604         (short_cint_operand): Delete.
15605         (u_short_cint_operand): Delete.
15606         (non_short_cint_operand): Delete.
15607         (exact_log2_cint_operand): Delete.
15608         (gpc_reg_operand): Delete.
15609         (cc_reg_operand): Delete.
15610         (cc_reg_not_cr0_operand): Delete.
15611         (reg_or_short_operand): Delete.
15612         (reg_or_neg_short_operand): Delete.
15613         (reg_or_aligned_short_operand): Delete.
15614         (reg_or_u_short_operand): Delete.
15615         (reg_or_cint_operand): Delete.
15616         (reg_or_arith_cint_operand): Delete.
15617         (reg_or_add_cint64_operand): Delete.
15618         (reg_or_sub_cint64_operand): Delete.
15619         (reg_or_logical_cint_operand): Delete.
15620         (got_operand): Delete.
15621         (got_no_const_operand): Delete.
15622         (easy_fp_constant): Delete.
15623         (easy_vector_constant): Delete.
15624         (easy_vector_constant_add_self): Delete.
15625         (zero_constant): Delete.
15626         (zero_fp_constant): Delete.
15627         (volatile_mem_operand): Delete.
15628         (offsettable_mem_operand): Delete.
15629         (mem_or_easy_const_operand): Delete.
15630         (add_operand): Delete.
15631         (non_add_cint_operand): Delete.
15632         (logical_operand): Delete.
15633         (non_logical_cint_operand): Delete.
15634         (mask_operand): Delete.
15635         (mask_operand_wrap): Delete.
15636         (mask64_operand): Delete.
15637         (mask64_2_operand): Delete.
15638         (and64_operand): Delete.
15639         (and64_2_operand): Delete.
15640         (and_operand): Delete.
15641         (reg_or_mem_operand): Delete.
15642         (lwa_operand): Delete.
15643         (symbol_ref_operand): Delete.
15644         (call_operand): Delete.
15645         (current_file_function_operand): Delete.
15646         (input_operand): Delete.
15647         (rs6000_nonimmediate_operand): Delete.
15648         (rs6000_tls_symbol_ref): Delete.
15649         (save_world_operation): Delete.
15650         (restore_world_operation): Delete.
15651         (load_multiple_operation): Delete.
15652         (store_multiple_operation): Delete.
15653         (vrsave_operation): Delete.
15654         (mfcr_operation): Delete.
15655         (mtcrf_operation): Delete.
15656         (lmw_operation): Delete.
15657         (stmw_operation): Delete.
15658         (branch_comparison_operator): Delete.
15659         (branch_positive_comparison_operator): Delete.
15660         (scc_comparison_operator): Delete.
15661         (trap_comparison_operator): Delete.
15662         (boolean_operator): Delete.
15663         (boolean_or_operator): Delete.
15664         (min_max_operator): Delete.
15665         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Move to here.
15666         (EASY_VECTOR_15): Moved to here.
15667         (EASY_VECTOR_15_ADD_SELF): Move to here.
15668         (PREDICATE_CODES): Delete.
15669         * config/rs6000/rs6000-protos.h: Delete predicate functions.
15670         Declare functions no longer static.
15671         * config/rs6000/predicates.md: New.
15672         * config/rs6000/rs6000.md: Include predicates.md
15673
15674 2005-02-28  Kazu Hirata  <kazu@cs.umass.edu>
15675
15676         * calls.c (emit_call_1): Don't use  REG_ALWAYS_RETURN.
15677         (emit_library_call_value_1): Don't use LCT_ALWAYS_RETURN and
15678         REG_ALWAYS_RETURN.
15679         * cfgrtl.c (need_fake_edge_p): Likewise.
15680         * combine.c (distribute_notes): Likewise.
15681         * emit-rtl.c (try_split): Likewise.
15682         * recog.c (peephole2_opimize): Likewise.
15683         * reg-notes.def (ALWAYS_RETURN): Remove.
15684         * rtl.h (LCT_ALWAYS_RETURN): Remove.
15685         * tree-cfg.c (need_fake_edge_p): Don't use ECF_ALWAYS_RETURN.
15686         * tree.h (ECF_ALWAYS_RETURN): Remove.
15687
15688 2005-02-28  Roger Sayle  <roger@eyesopen.com>
15689
15690         PR middle-end/19874
15691         * tree-ssa.c (tree_ssa_useless_type_conversion_1): A conversion
15692         between different machine modes is never a "useless" conversion.
15693
15694 2005-02-28  Geert Bosch  <bosch@gnat.com>
15695
15696         PR ada/15977
15697         * doc/contrib.texi: List contributors for Ada front end
15698
15699 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
15700
15701         * simplify-rtx.c (simplify_unary_operation_1,
15702         simplify_const_unary_operation): New, extracted from...
15703         (simplify_unary_operation): ... this one.
15704         (simplify_binary_operation_1,
15705         simplify_const_binary_operation): New, extracted from...
15706         (simplify_binary_operation): ... this one.
15707         * rtl.h (simplify_const_unary_operation,
15708         simplify_const_binary_operation): Add prototypes.
15709
15710 2005-02-28  Julian Brown  <julian@codesourcery.com>
15711
15712         * config/elfos.h: Revert my patch from 2005-02-25 since it broke
15713         building libjava and caused PR regression/20228.
15714
15715 2005-02-28  Paolo Bonzini  <bonzini@gnu.org>
15716
15717         PR bootstrap/17383
15718         * Makefile.in (host_subdir): New.
15719         (build_objdir): New.  Replace ../$(build_subdir) with it throughout.
15720         * configure: Regenerate.
15721
15722 2005-02-27  Zack Weinberg  <zack@codesourcery.com>
15723
15724         * config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
15725         * config/pa/t-hpux-shlib (SHLIB_INSTALL): Create the
15726         installation directory first.
15727
15728 2005-02-28  Hans-Peter Nilsson  <hp@axis.com>
15729
15730         PR target/19065.
15731         * config/cris/cris.h (EXTRA_CONSTRAINT_Q): Accept only (mem (reg)),
15732         not including (reg). Do not check for reg being CRIS_PC_REGNUM.
15733         (EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
15734         * config/cris/cris.md: Tweak comments referring to Q.
15735         ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
15736         ("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
15737         ("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
15738         ("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
15739         ("*andqi_lowpart", "iorsi3", "iorhi3", "iorqi3", "uminsi3"):
15740         Insert spaces in constraints to align alternatives vertically for
15741         readability.
15742         ("cmphi"): Ditto.  Add separate alternative for operand 0 "r",
15743         operand 1: "M".
15744
15745 2005-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15746
15747         PR rtl-optimization/17728
15748         * pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
15749         operand 0 from general_operand to move_dest_operand.
15750
15751 2005-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15752
15753         * pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
15754         instead of trying to save and restore TREE_SYMBOL_REFERENCED.
15755         * pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
15756         (ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.
15757
15758 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
15759
15760         * configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
15761         * configure: Regenerate.
15762         * libada-mk.in: Remove CC; rename
15763         cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.
15764
15765 2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>
15766
15767         PR tree-opt/20188
15768         * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
15769         for the lhs, also walk over the tree.  Likewise for rhs.
15770
15771 2005-02-26  Zdenek Dvorak  <dvorakz@suse.cz>
15772
15773         * tree-ssa-dom.c (simple_iv_increment_p): New function.
15774         (simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
15775         Do not propagate value of iv before increment over the increment.
15776
15777 2005-02-25  Joseph S. Myers  <joseph@codesourcery.com>
15778
15779         * c-parser.c: New file.
15780         * c-parse.in: Remove.
15781         * Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
15782         Remove.
15783         (c-parser.o): Add dependencies.
15784         (C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
15785         maintainer-clean, TAGS): Update.
15786         * c-config-lang.in (gtfiles): Update.
15787         * gengtype-lex.l: Don't handle "@@".
15788         * stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
15789         objc_build_synchronized, objc_begin_try_stmt,
15790         objc_begin_catch_clause, objc_finish_catch_clause,
15791         objc_build_finally_clause, objc_finish_try_stmt): New.
15792         * c-tree.h (struct c_declspecs): Add declspecs_seen_p and
15793         type_seen_p.
15794         (c_parse_init): Update comment.
15795         * c-decl.c (c_init_decl_processing): Update comment.
15796         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
15797         declspecs_add_scspec, declspecs_add_attrs): Initialize and update
15798         new c_declspecs members.
15799
15800 2005-02-25  Julian Brown  <julian@codesourcery.com>
15801
15802         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
15803         from being used for symbols with vague linkage when
15804         HAVE_GAS_COMDAT_GROUP is true.
15805
15806 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
15807
15808         * doc/include/gcc-common.texi (version-GCC): Update to 4.1.
15809
15810 2005-02-25  Steve Ellcey  <sje@cup.hp.com>
15811
15812         PR target/19930
15813         * doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
15814         (LIBGCC2_HAS_DF_MODE): New.
15815         (LIBGCC2_HAS_XF_MODE): New.
15816         (LIBGCC2_HAS_TF_MODE): New.
15817         * libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
15818         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
15819         * libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
15820         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
15821         (LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
15822         * config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
15823         and add _fixtfdi, _fixunstfdi, _floatditf
15824         * lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
15825         L_fixunstfdi, L_floatditf.
15826         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
15827         (LIBGCC2_HAS_TF_MODE): Define.
15828
15829 2005-02-25  Diego Novillo  <dnovillo@redhat.com>
15830
15831         PR tree-optimization/20204
15832         * tree-into-ssa.c (insert_phi_nodes_for): Do not use
15833         REWRITE_THIS_STMT markers on PHI nodes.
15834         (rewrite_initialize_block): Likewise.
15835
15836 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
15837
15838         * version.c (version_string): Update to 4.1.
15839
15840 2005-02-25  Paolo Carlini  <pcarlini@suse.de>
15841
15842         * doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
15843         Clarify that the alternative way doesn't work in GNU C++.
15844
15845 2005-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
15846
15847         PR tree-optimization/19937
15848         * tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
15849         to the type of the induction variable.
15850
15851 2005-02-25  Kaz Kojima  <kkojima@gcc.gnu.org>
15852
15853         PR rtl-optimization/20117
15854         * bb-reorder.c (duplicate_computed_gotos): Don't duplicate
15855         the block including noncopyable insn.
15856
15857 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
15858
15859         * cse.c (delete_trivially_dead_insns): Speed up by minimizing
15860         calls to find_reg_note.
15861
15862 2005-02-24  Richard Henderson  <rth@redhat.com>
15863
15864         PR tree-opt/20127
15865         * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
15866         the type.
15867
15868 2005-02-24  Fariborz Jahanian <fjahanian@apple.com>
15869
15870         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
15871         vector types if to use base reg for misaligned non-word ld/std.
15872
15873 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
15874
15875         PR target/14619
15876         * config/cris/cris.c (cris_target_asm_function_prologue): Create
15877         dwarf2 label manually and put it after, not before the prologue.
15878
15879 2005-02-24  David Edelsohn  <edelsohn@gnu.org>
15880
15881         PR target/19019
15882         * reload.c (operands_match_p): Only increment register number for
15883         SCALAR_INT_MODE_P modes in multiple hard registers.
15884
15885         * config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
15886         Fix formatting.
15887
15888 2005-02-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
15889
15890         * ChangeLog.5: Fix log message typo(s).
15891         * ChangeLog.7: Likewise.
15892         * ChangeLog.tree-ssa: Likewise.
15893         * cfgexpand.c: Fix comment typo(s).
15894         * conflict.c: Likewise.
15895         * defaults.h: Likewise.
15896         * dwarf2out.c: Likewise.
15897         * gcse.c: Likewise.
15898         * ggc-page.c: Likewise.
15899         * tree-eh.c: Likewise.
15900         * tree-ssa-dom.c: Likewise.
15901
15902 2005-02-24  Jakub Jelinek  <jakub@redhat.com>
15903
15904         PR target/19019
15905         * mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
15906         * config/rs6000/darwin-ldouble.c: Only use the .symver directives
15907         if SHARED is defined.
15908
15909         PR target/20196
15910         * config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
15911         allow splitting only if operands 0 and 3 don't overlap.
15912
15913 2005-02-24  Richard Henderson  <rth@redhat.com>
15914
15915         PR middle-end/19953
15916         * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
15917         (fold_builtin_1): Call them.
15918         * fold-const.c (fold_complex_mult_parts): Split out from ...
15919         (fold_complex_mult): ... here.  Fix typo in both imaginary case.
15920         (fold_complex_div_parts, fold_complex_div): New.
15921         (fold): Use them.
15922         * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.
15923
15924 2005-02-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15925
15926         * tree-ssa-ccp.c (visit_assignment): Verify that result of
15927         VIEW_CONVERT_EXPR is_gimple_min_invariant.
15928
15929         * print-tree.c (print_node_brief): Print LABEL_DECL_UID.
15930         (print_node): Likewise.
15931         Print TYPE_SIZES_GIMPLIFIED.
15932
15933 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
15934
15935         * config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
15936         ("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
15937         operands as commutative in constraints.
15938
15939 2005-02-24  Diego Novillo  <dnovillo@redhat.com>
15940
15941         * tree-into-ssa.c: Re-organize internal functions.
15942
15943 2005-02-24  Richard Henderson  <rth@redhat.com>
15944
15945         PR middle-end/18902
15946         * c-opts.c (c_common_post_options): Set flag_complex_method to 2
15947         for c99.
15948         * common.opt (fcx-limited-range): New.
15949         * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
15950         * toplev.c (flag_complex_method): Initialize to 1.
15951         (process_options): Set flag_complex_method to 0 if
15952         flag_cx_limited_range.
15953         * doc/invoke.texi (-fcx-limited-range): New.
15954
15955 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
15956
15957         * cse.c (delete_trivially_dead_insns): Speed up by using
15958         NEXT_INSN and PREV_INSN directly instead of next_real_insn and
15959         prev_real_insn.
15960
15961 2005-02-24  Andrea Tarani  <andrea.tarani@gilbarco.com>
15962
15963         * config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
15964         functions when -mid-shared-library is being used.
15965
15966 2005-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
15967
15968         * doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
15969         (LINK_LIBGCC_SPECIAL_1): Don't mention it.
15970         * gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
15971         * system.h: Poison LINK_LIBGCC_SPECIAL.
15972
15973 2005-02-23  James E Wilson  <wilson@specifixinc.com>
15974
15975         * gengtype.c (note_insn_name): Make 1 element larger.
15976
15977 2005-02-23  Roger Sayle  <roger@eyesopen.com>
15978
15979         PR target/20018
15980         PR rtl-optimization/20097
15981         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
15982         BImode SUBREGs of SImode registers which confuse the ia64 backend.
15983
15984 2005-02-23  David Edelsohn  <edelsohn@gnu.org>
15985
15986         * t-aix43 (SHLIB_INSTALL): Create directory for shared library.
15987         * t-aix52 (SHLIB_INSTALL): Same.
15988
15989 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
15990
15991         * genpreds.c: Update copyright.
15992
15993 2005-02-23  Michael Beach  <michaelb@ieee.org>
15994
15995         PR target/20159
15996         * config/sparc/t-elf (startup files): Assemble with CPP.
15997
15998 2005-02-23  Paolo Bonzini  <bonzini@gnu.org>
15999
16000         * genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
16001         (write_predicate_expr): Likewise.
16002
16003 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
16004
16005         PR tree-optimization/20100
16006         PR tree-optimization/20115
16007         * tree-optimize.c (init_tree_optimization_passes): Remove
16008         pass_maybe_create_global_var.
16009         * tree-pass.h (pass_maybe_create_global_var): Remove.
16010         * tree-ssa-alias.c (aliases_computed_p): Declare.
16011         (struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
16012         (count_calls_and_maybe_create_global_var): Remove.
16013         (pass_maybe_create_global_var): Remove.
16014         (init_alias_info): Do not declare aliases_computed_p.
16015         (maybe_create_global_var): If the function contains no
16016         call-clobbered variables and a mix of pure/const and regular
16017         function calls, create .GLOBAL_VAR.
16018         Mark all call-clobbered variables for renaming.
16019         (merge_pointed_to_info): Update comment.
16020         (add_pointed_to_var): Likewise.
16021         (is_escape_site): Likewise.
16022         Accept struct alias_info * instead of size_t *.
16023         Update all users.
16024         Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
16025         as necessary.
16026         * tree-ssa-operands.c (get_call_expr_operands): If
16027         ALIASES_COMPUTED_P is false, do not add call-clobbering
16028         operands.
16029         * tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
16030         (delete_tree_ssa): Likewise.
16031
16032 2005-02-22  James E Wilson  <wilson@specifixinc.com>
16033
16034         * toplev.c (backend_init): Don't call init_adjust_machine_modes here.
16035         (do_compile): Do call it here.
16036
16037 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
16038
16039         PR rtl-optimization/20017.
16040         * passes.c (rest_of_handle_combine, rest_of_handle_cse,
16041         rest_of_handle_cse2, rest_of_handle_gcse): Call
16042         delete_dead_jumptables immediately before calling cleanup_cfg.
16043
16044 2005-02-22  Devang Patel  <dpatel@apple.com>
16045
16046         PR 19952
16047         * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
16048         all labels
16049
16050 2005-02-22  David Edelsohn  <edelsohn@gnu.org>
16051
16052         * config/rs6000/aix.h (WINT_TYPE): Define.
16053
16054 2005-02-22  Stan Shebs  <shebs@apple.com>
16055
16056         * config/rs6000/rs6000.c (rs6000_override_options): Default to
16057         natural alignment for 64-bit Darwin.
16058         (rs6000_parse_alignment_option): Warn about uses of -malign-power
16059         on 64-bit Darwin.
16060         * doc/invoke.texi: Document this.
16061
16062 2005-02-22  DJ Delorie  <dj@redhat.com>
16063
16064         * c-common.c (c_common_type_for_mode): Pass the mode's precision
16065         to make_[un]signed_type, not the mode itself.
16066
16067 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
16068
16069         * cfg.c (cached_make_edge): Call make_edge if edge cache is
16070         not available.  Use tail calls wherever possible.
16071         (make_edge): Call unchecked_make_edge to create an edge.
16072
16073         * tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
16074         (coalesce_ssa_name): Don't check for
16075         SSANORM_USE_COALESCE_LIST.
16076         (rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.
16077
16078 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
16079
16080         * tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
16081         (rewrite_into_ssa): ... here.
16082
16083 2005-02-21  Alexandre Oliva  <aoliva@redhat.com>
16084
16085         PR tree-optimization/19786
16086         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add one
16087         tag to another's may-alias bitmap when adding to the other's list.
16088
16089 2005-02-21  DJ Delorie  <dj@redhat.com>
16090
16091         * tree-ssa-loop-ivopts.c (computation_cost): Start register
16092         numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard
16093         registers in unsupported ways.
16094         * expmed.c (init_expmed): Likewise.
16095
16096 2005-02-21  Stan Cox  <scox@redhat.com>
16097
16098         * config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
16099
16100 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
16101
16102         * tree-cfg.c (fold_cond_expr_cond): New.
16103         (make_edges): Call fold_cond_expr_cond.
16104         (find_taken_edge): Accept nothing but INTEGER_CST.
16105         (find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
16106         and 1.
16107         (find_taken_edge_switch_expr): Remove a check for INTEGER_CST.
16108
16109         * flow.c (delete_dead_jumptables): Speed up by scanning insns
16110         that do not belong to any basic block.
16111
16112 2005-02-21  Jeff Law  <law@redhat.com>
16113
16114         * cfganal.c (find_unreachable_blocks): Manually CSE load of
16115         e->dest.
16116
16117 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
16118
16119         * tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
16120         (SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
16121         Adjust their definitions.
16122         (remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
16123         (rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.
16124
16125         * c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
16126         genautomata.c, langhooks.c, langhooks.h, system.h,
16127         config/arm/lib1funcs.asm: Update copyright.
16128
16129 2005-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
16130
16131         * dbxout.c (dbxout_function_end): Emit Lscope label always.
16132
16133 2005-02-21  Richard Guenther  <rguenth@gcc.gnu.org>
16134
16135         PR bootstrap/13770
16136         * doc/install.texi: Document --with-gc.
16137
16138 2005-02-21  Paolo Bonzini  <bonzini@gnu.org>
16139
16140         * simplify-rtx.c (simplify_unary_operation): Add a missing
16141         "break" statement.
16142
16143 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
16144
16145         PR tree-optimization/18663
16146         * tree-ssa-dom.c (extract_range_from_cond): Return 0
16147         if the type has variable bounds.
16148
16149 2005-02-20  Kazu Hirata  <kazu@cs.umass.edu>
16150
16151         * gcse.c: Remove an obsolete comment.
16152
16153         * cse.c (init_cse_reg_info): Use xmalloc instead of xrealloc.
16154
16155 2005-02-20  Hans-Peter Nilsson  <hp@axis.com>
16156
16157         * doc/extend.texi (Function Attributes) <Attribute const>: The
16158         attribute "pure" is below this text, not above.
16159
16160 2005-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16161
16162         * pa.c (pa_assemble_integer, get_plabel): Small cleanups.
16163         (pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
16164         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.
16165
16166 2005-02-20  Zack Weinberg  <zack@codesourcery.com>
16167
16168         PR 18785
16169         * langhooks.h (struct lang_hooks): Add to_target_charset.
16170         * langhooks.c (lhd_to_target_charset): New function.
16171         * langhooks-def.h: Declare lhd_to_target_charset.
16172         (LANG_HOOKS_TO_TARGET_CHARSET): New macro.
16173         (LANG_HOOKS_INITIALIZER): Update.
16174         * c-common.c (c_common_to_target_charset): New function.
16175         * c-common.h: Declare it.
16176         * c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
16177         c_common_to_target_charset.
16178
16179         * defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
16180         (TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
16181         Delete definitions.
16182         * system.h: Poison them.
16183         * doc/tm.texi: Don't discuss them.
16184         * builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
16185         * c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
16186         (pp_c_char): Do not attempt to generate letter escapes for
16187         newline, tab, etc.
16188         * config/arm/arm.c (output_ascii_pseudo_op): Likewise.
16189         * config/mips/mips.c (mips_output_ascii): Likewise.
16190
16191 2005-02-20  Dorit Naishlos  <dorit@il.ibm.com>
16192
16193         PR tree-optimization/19951
16194         * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
16195         is abnormal.
16196
16197 2005-02-19  Steven Bosscher  <stevenb@suse.de>
16198
16199         PR middle-end/19698
16200         * function.h (struct function): New field `max_loop_depth'.
16201         * cfgloop.c (establish_preds): Update maximum loop depth seen so far.
16202         (flow_loops_find): Reset the max loop depth count before finding loops.
16203         * flow.c (MAX_LIVENESS_ROUNDS): New constant.
16204         (update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
16205         (calculate_global_regs_live): Make sure the loop will terminate
16206         when the initial sets are not empty.
16207
16208 2005-02-19  Zack Weinberg  <zack@codesourcery.com>
16209
16210         * mklibgcc.in: If libgcc_eh.a would be empty, put a dummy
16211         object inside.
16212         * config/ia64/hpux.h: Don't define LIBGCC_SPEC.
16213
16214 2005-02-19  Richard Sandiford  <rsandifo@redhat.com>
16215
16216         PR other/19525
16217         * doc/invoke.texi: Remove documentation of %M spec.
16218         * gcc.c: Likewise.
16219         (init_spec): Remove %M suffix from -lgcc_s.
16220         (do_spec_1): Remove 'M' case.
16221         * mklibgcc.in: Remove SHLIB_MULTILIB handling.  Expect SHLIB_LINK
16222         to put shared libraries in the multilib directory.  Remove the
16223         shlib_so_soname substitution variable.  Don't add a multilib encoding
16224         to shlib_base_name.  Set shlib_slibdir_qual to the full pathname
16225         reported by -print-multi-os-directory.  Pass @multilib_dir@ to
16226         SHLIB_INSTALL as well as SHLIB_LINK.
16227         * config/t-slibgcc-elf-ver (SHLIB_SONAME): Use @shlib_base_name@.
16228         (SHLIB_NAME): Delete.
16229         (SHLIB_DIR): New macro.
16230         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_SOLINK) in $(SHLIB_DIR).
16231         (SHLIB_INSTALL): Adjust accordingly.
16232         * config/t-slibgcc-darwin: As for t-slibgcc-elf-ver.
16233         * config/t-slibgcc-sld: Likewise.
16234         * config/t-libunwind-elf (SHLIBUNWIND_NAME): Delete.
16235         (SHLIBUNWIND_SONAME): Use @shlib_base_name@.
16236         (SHLIBUNWIND_LINK): Put $(SHLIBUNWIND_SONAME) and $(SHLIB_SOLINK)
16237         in $(SHLIB_DIR).
16238         (SHLIBUNWIND_INSTALL): Adjust accordingly.
16239         * config/i386/t-nwld (SHLIB_SONAME): Delete.
16240         (SHLIB_LINK, SHLIB_INSTALL): Use SHLIB_NAME instead of SHLIB_SONAME.
16241         Use @shlib_base_name@ instead of @shlib_so_name@.
16242         * config/ia64/t-hpux (SHLIB_LINK): Put @shlib_base_name@.so.0
16243         and @shlib_base_name@.so in @multilib_dir@.
16244         (SHLIB_INSTALL): Adjust accordingly.  Add @shlib_slibdir_qual@
16245         to the install path.
16246         * config/mips/t-slibgcc-irix: As for t-slibgcc-elf-ver.
16247         (SHLIB_LINK): Remove previous workaround.
16248         * config/pa/t-hpux-shlib (SHLIB_DIR, SHLIB_SLIBDIR_QUAL): New macros.
16249         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_NAME) in $(SHLIB_DIR).
16250         (SHLIB_INSTALL): Adjust accordingly.  Add $(SHLIB_SLIBDIR_QUAL) to
16251         the install path.
16252         * config/rs6000/t-aix43 (SHLIB_LINK): Put @shlib_base_name@.a in
16253         @multilib_dir@.  Use @multilib_dir@ to check for threading libraries.
16254         (SHLIB_INSTALL): Adjust accordingly.
16255         (SHLIB_LIBS): Use @multilib_dir@ to check for threading libraries.
16256         * config/rs6000/t-aix52: As for config/rs6000/t-aix43.
16257         * config/sh/t-linux (SHLIB_LINK, SHLIB_INSTALL): As for
16258         config/t-slibgcc-elf-ver.
16259
16260 2005-02-19  Zdenek Dvorak  <dvorakz@suse.cz>
16261             Jakub Jelinek  <jakub@redhat.com>
16262
16263         PR tree-optimization/19828
16264         * tree-ssa-loop-im.c: Add a TODO comment.
16265         (movement_possibility): Return MOVE_PRESERVE_EXECUTION for calls
16266         without side-effects.
16267
16268 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
16269
16270         * tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
16271         call fold_convert.
16272
16273 2005-02-18  James E. Wilson  <wilson@specifixinc.com>
16274
16275         * doc/invoke.texi (IA-64 Options): Delete -mb-step.
16276         * config/ia64/ia64.c (last_group, group_idx): Delete variables.
16277         (errata_find_address_regs, errata_emit_nops, fixup_errata): Delete
16278         functions.
16279         (ia64_reorg): Delete fixup_errata call.
16280         * config/ia64/ia64.h (MASK_B_STEP, TARGET_B_STEP): Delete.
16281         (TARGET_SWITCHES): Delete -mb-step entry.
16282
16283 2005-02-19  Jakub Jelinek  <jakub@redhat.com>
16284
16285         PR c/20043
16286         * c-typeck.c (composite_type): Handle quals in transparent unions.
16287         (type_lists_compatible_p): Likewise.
16288
16289 2005-02-18  Stan Shebs  <shebs@apple.com>
16290
16291         * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
16292         expressions in the .literal8 section.
16293
16294 2005-02-18  Geoffrey Keating  <geoffk@apple.com>
16295
16296         * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker.
16297
16298 2005-02-18  Roger Sayle  <roger@eyesopen.com>
16299
16300         * fold-const.c (constant_boolean_node): Always create values of the
16301         specified type, don't bother calling truthvalue_conversion.
16302
16303 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
16304
16305         * except.c (output_function_exception_table): Call
16306         assemble_external_libcall (eh_personality_libfunc).
16307
16308 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
16309
16310         PR target/19886
16311         * config/ia64/ia64.h (struct machine_function): Add state_num.
16312         * config/ia64/ia64.c (process_epilogue,
16313         process_for_unwind_directive): Use new unwind state numbers each
16314         time rather than state 1.
16315
16316 2005-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
16317
16318         PR target/20054
16319         * config/s390/s390.md ("*llgt_sidi", "*llgt_sidi_split"): Move to
16320         before the "*llgt_didi" pattern.
16321
16322 2005-02-18  Jason Merrill  <jason@redhat.com>
16323
16324         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Revert again.
16325
16326 2005-02-18  Richard Earnshaw  <rearnsha@arm.com>
16327
16328         * arm/lib1funcs.asm (FUNC_ALIAS): New macro.
16329         (div0): Use it in place of ARM_FUNC_ALIAS.
16330         (lshrdi3, ashrdi3, ashlrdi3): Likewise.
16331
16332 2005-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
16333
16334         PR middle-end/20030
16335         * fold-const.c (fold_indirect_ref_1): Use the correct index for zero
16336         access, the lower bound of the array type if it exists.
16337
16338 2005-02-18  Alexandre Oliva  <aoliva@redhat.com>
16339
16340         PR c++/20008
16341         * stmt.c (expand_case): Don't assume cleanup_tree_cfg will remove
16342         cases that are out-of-range for the index type.
16343
16344 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
16345
16346         * stmt.c (emit_case_bit_tests): Call fold_convert instead of convert.
16347         (estimate_case_costs): Don't call convert.
16348         * expmed.c (expand_shift): Likewise.
16349         (make_tree): Call fold_convert instead of convert.
16350
16351 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
16352
16353         PR c++/19813
16354         * emit-rtl.c (set_mem_attributes_minus_bitpos): Add assertion
16355         that ref to be marked MEM_READONLY_P doesn't have base that needs
16356         constructing.
16357
16358 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
16359
16360         * genautomata.c (output_get_cpu_unit_code_func,
16361         output_cpu_unit_reservation_p): Don't generate old-style function
16362         definitions.
16363
16364 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
16365
16366         PR c++/20023
16367         PR tree-optimization/20009
16368         * convert.c (convert_to_integer): Revert 2005-02-16 change.
16369
16370         PR tree-optimization/18947
16371         * cgraphunit.c (cgraph_finalize_function): When redefining an extern
16372         inline, remove all nodes that are inlined into the extern inline
16373         being redefined.
16374
16375 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
16376
16377         * bt-load.c, cfgloop.c, convert.c, dominance.c, global.c,
16378         loop-invariant.c, stmt.c, tree-ssa-forwprop.c,
16379         tree-ssa-live.c, tree-ssanames.c, tree-vn.c,
16380         config/host-linux.c, config/arm/fpa.md, config/avr/avr.h:
16381         Update copyright.
16382
16383 2005-02-17  Roger Sayle  <roger@eyesopen.com>
16384
16385         PR tree-optimization/19917
16386         * tree-eh.c (tree_could_trap_p): Consider calls to weak functions
16387         to be potentially trapping.
16388
16389 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
16390
16391         * libgcc2.c, tree-vect-analyze.c: Fix comment typos.
16392
16393 2005-02-17  Andreas Krebbel  <krebbel1@de.ibm.com>
16394
16395         * builtins.c (expand_builtin_return_addr): Remove tem parameter.
16396         tem becomes a local variable which is set to the value of the
16397         back end defined INITIAL_FRAME_ADDRESS macro.
16398         (expand_builtin_frame_address): Omit the base parameter to
16399         expand_builtin_return_addr.
16400         (expand_builtin_profile_func): Likewise.
16401         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Define new macro.
16402         (DYNAMIC_CHAIN_ADDRESS): Remove the case for the initial frame.
16403         * doc/tm.texi: Documentation for INITIAL_FRAME_ADDRESS_RTX added.
16404
16405 2005-02-17  Jakub Jelinek  <jakub@redhat.com>
16406
16407         * config/s390/s390.c (s390_alloc_pool, s390_free_pool,
16408         s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
16409         * config/frv/frv.c (frv_function_epilogue): Likewise.
16410
16411 2005-02-17  Daniel Berlin  <dberlin@dberlin.org>
16412
16413         * lambda-code (perfect_nestify): Remove mark/unmark
16414         for rewriting hack.
16415         * tree-loop-linear.c (linear_transform_loops): Add
16416         rewrite_into_ssa call so that ssa is correct for
16417         rewriting into loop closed.
16418
16419 2005-02-17  Nathan Sidwell  <nathan@codesourcery.com>
16420
16421         * bitmap.h (BITMAP_XMALLOC, BITMAP_XFREE): Remove.
16422         * bb-reorder.c (duplicate_computed_gotos): Use BITMAP_ALLOC and
16423         BITMAP_FREE.
16424         * bt-load.c (btr_def_live_range, combine_btr_defs,
16425         migrate_btr_def, migrate_btr_defs): Likewise.
16426         * cfgcleanup.c (thread_jump): Likewise.
16427         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
16428         * df.c (df_insn_table_realloc, df_bitmaps_alloc, df_bitmaps_free,
16429         df_alloc, df_free, df_du_chain_create, df_bb_rd_local_compute,
16430         df_rd_local_compute, df_reg_info_compute): Likewise.
16431         * dominance.c (init_dom_info, free_dom_info): Likewise.
16432         * flow.c (init_propagate_block_info,
16433         free_propagate_block_info): Likewise.
16434         * gcse.c (alloc_gcse_mem, free_gcse_mem): Likewise.
16435         * global.c (allocate_bb_info, free_bb_info, calculate_reg_pav,
16436         modify_reg_pav): Likewise.
16437         * loop-invariant.c (find_defs, find_invariant_insn,
16438         find_invariants, free_inv_motion_data): Likewise.
16439         * predict.c (tree_predict_by_opcode,
16440         estimate_bb_frequencies): Likewise.
16441         * stmt.c (expand_case): Likewise.
16442         * tree-cfg.c (tree_duplicate_sese_region): Likewise.
16443         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
16444         * tree-if-conv.c (get_loop_body_in_if_conv_order): Likewise.
16445         * tree-into-ssa.c (insert_phi_nodes_for, def_blocks_free,
16446         get_def_blocks_for, mark_def_site_blocks, rewrite_into_ssa,
16447         rewrite_ssa_into_ssa): Likewise.
16448         * tree-optimize.c (tree_rest_of_compilation): Likewise.
16449         * tree-outof-ssa.c (new_temp_expr_table, free_temp_expr_table,
16450         analyze_edges_for_bb, perform_edge_inserts): Likewise.
16451         * tree-scalar-evolution.c (scev_initialize, scev_finalize): Likewise.
16452         * tree-sra.c (tree_sra): Likewise.
16453         * tree-ssa-alias.c (init_alias_info, delete_alias_info): Likewise.
16454         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
16455         * tree-ssa-dce.c (tree_dce_init, tree_dce_done): Likewise.
16456         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
16457         * tree-ssa-dse.c (tree_ssa_dse): Likewise.
16458         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_var):
16459         Likewise.
16460         * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info,
16461         calculate_live_on_entry, calculate_live_on_exit,
16462         build_tree_conflict_graph): Likewise.
16463         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_init, record_use,
16464         record_important_candidates, set_use_iv_cost, find_depends,
16465         determine_use_iv_costs, iv_ca_new, iv_ca_free, free_loop_data,
16466         tree_ssa_iv_optimize_finalize): Likewise.
16467         * tree-ssa-loop-manip.c (add_exit_phis_var, get_loops_exit,
16468         find_uses_to_rename_use, rewrite_into_loop_closed_ssa,
16469         tree_duplicate_loop_to_header_edge): Likewise.
16470         * tree-ssa-pre.c (init_pre, fini_pre): Likewise.
16471         * tree-ssa.c (verify_flow_insensitive_alias_info,
16472         verify_name_tags, verify_ssa, init_tree_ssa,
16473         delete_tree_ssa): Likewise.
16474         * tree-ssanames.c (marked_ssa_names, init_ssanames,
16475         fini_ssanames): Likewise.
16476         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Likewise.
16477
16478 2005-02-17  Ralf Corsepius  <ralf.corsepius@rtems.org>
16479
16480         * config/rs6000/t-rtems: Completely reworked.
16481
16482 2005-02-17  Ira Rosen  <irar@il.ibm.com>
16483
16484         * tree-data-ref.c (array_base_name_differ_p): Remove gcc_assert.
16485
16486 2005-02-17  Ira Rosen  <irar@il.ibm.com>
16487
16488         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Use
16489         POINTER_TYPE_P when checking that type is a pointer.
16490         (vect_get_memtag): Remove.
16491         (vect_address_analysis): Use POINTER_TYPE_P. Call
16492         vect_object_analysis with dummy parameter for memtag.
16493         (vect_object_analysis): Extract memtag (functionality that
16494         used to be in vect_get_memtag and moved here). Fix printings.
16495         (vect_analyze_data_refs): Fix comment. Call vect_object_analysis
16496         with correct parameters. Remove call to vect_get_memtag.
16497
16498 2005-02-17  Dorit Naishlos  <dorit@il.ibm.com>
16499
16500         * Makefile.in (tree-vect-analyze.o, tree-vect-transform.o): New.
16501         (tree-vectorizer.o): Added missing dependencies.
16502
16503         * tree-vectorizer.h (vect_dump, vect_verbosity_level): Added extern
16504         decleration.
16505         (slpeel_tree_peel_loop_to_edge): Function externalized (had a static
16506         declaration in tree-vectorizer.c, now has an extern declaration in
16507         tree-vectorizer.h).
16508         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
16509         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
16510         get_vectype_for_scalar_type, vect_is_simple_use,
16511         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
16512         vect_supportable_dr_alignment, new_loop_vec_info, destroy_loop_vec_info,
16513         new_stmt_vec_info, vect_analyze_loop, vectorizable_load,
16514         vectorizable_store, vectorizable_operation, vectorizable_assignment,
16515         vect_transform_loop, vect_print_dump_info, vect_set_verbosity_level,
16516         find_loop_location): Likewise.
16517
16518         * tree-vectorizer.c (langhooks.h): #include removed.
16519         (slpeel_tree_peel_loop_to_edge): Function externalized. Declaration
16520         moved to tree-vectorized.h.
16521         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
16522         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
16523         get_vectype_for_scalar_type, vect_is_simple_use,
16524         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
16525         vect_supportable_dr_alignment, new_loop_vec_info,
16526         destroy_loop_vec_info, new_stmt_vec_info, vect_print_dump_info,
16527         vect_set_verbosity_level, find_loop_location): Likewise.
16528
16529         (vect_analyze_loop): Function externalized. Declaration moved to
16530         tree-vectorized.h. Function definition moved to tree-vect-analyze.c.
16531         (vect_analyze_loop_form): Moved to tree-vect-analyze.c.
16532         (vect_mark_stmts_to_be_vectorized, vect_analyze_scalar_cycles,
16533         vect_analyze_data_ref_accesses, vect_analyze_data_ref_dependences,
16534         vect_analyze_data_refs_alignment, vect_compute_data_refs_alignment,
16535         vect_enhance_data_refs_alignment, vect_analyze_operations,
16536         exist_non_indexing_operands_for_use_p, vect_mark_relevant,
16537         vect_stmt_relevant_p, vect_get_loop_niters,
16538         vect_analyze_data_ref_dependence, vect_compute_data_ref_alignment,
16539         vect_analyze_data_ref_access, vect_analyze_pointer_ref_access,
16540         vect_can_advance_ivs_p, vect_get_ptr_offset, vect_analyze_offset_expr,
16541         vect_base_addr_differ_p, vect_object_analysis, vect_address_analysis,
16542         vect_get_memtag): Likewise.
16543
16544         (vectorizable_load): Function externalized. Declaration moved to
16545         tree-vectorized.h. Function definition moved to tree-vect-transform.c.
16546         (vectorizable_store, vectorizable_operation, vectorizable_assignment,
16547         vect_transform_loop): Likewise.
16548         (vect_transform_stmt): Moved to tree-vect-transform.c.
16549         (vect_align_data_ref, vect_create_destination_var,
16550         vect_create_data_ref_ptr, vect_create_index_for_vector_ref,
16551         vect_create_addr_base_for_vector_ref, vect_get_new_vect_var,
16552         vect_get_vec_def_for_operand, vect_init_vector,
16553         vect_finish_stmt_generation, vect_generate_tmps_on_preheader,
16554         vect_build_loop_niters, vect_update_ivs_after_vectorizer,
16555         vect_gen_niters_for_prolog_loop, vect_update_inits_of_dr,
16556         vect_update_inits_of_drs, vect_do_peeling_for_alignment,
16557         vect_do_peeling_for_loop_bound): Likewise.
16558
16559         * tree-vect-analyze.c: New file.
16560         * tree-vect-transform.c: New file.
16561
16562 2005-02-17  Jason Merrill  <jason@redhat.com>
16563
16564         PR mudflap/19319, c++/19317
16565         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
16566         slot explicit.
16567
16568 2005-02-17  Gerald Pfeifer  <gerald@pfeifer.com>
16569
16570         * doc/install.texi (Specific): Update link for Darwin-specific
16571         tool binary site.
16572
16573 2005-02-16  James A. Morrison  <phython@gcc.gnu.org>
16574
16575         * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
16576         constant_boolean_node.
16577
16578 2005-02-16  David Edelsohn  <edelsohn@gnu.org>
16579
16580         PR target/19019
16581         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
16582         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Same.
16583
16584 2005-02-16  Richard Henderson  <rth@redhat.com>
16585
16586         PR 19920
16587         * libgcc2.c (WORD_SIZE): Remove all definitions; replace uses
16588         with W_TYPE_SIZE.
16589         (HIGH_WORD_COEFF, HIGH_HALFWORD_COEFF): Remove all definitions;
16590         replace uses with Wtype_MAXp1_F.
16591         (L_fixunstfdi, L_fixtfdi, L_floatditf, L_fixunsxfdi, L_fixxfdi,
16592         L_floatdixf, L_fixunsxfsi, L_fixunsdfdi, L_floatdidf, L_fixunsdfsi,
16593         L_powidf2, L_powixf2, L_powitf2, L_muldc3, L_divdc3, L_mulxc3,
16594         L_divxc3, L_multc3, L_divtc3): Protect with HAVE_DFMODE, HAVE_XFMODE,
16595         and HAVE_TFMODE as appropriate.
16596         (__fixunssfDI): Provide an implementation that doesn't need DFmode.
16597         (__floatdisf): Likewise.
16598         * libgcc2.h (LIBGCC2_DOUBLE_TYPE_SIZE): New.
16599         (HAVE_DFMODE, HAVE_XFMODE, HAVE_TFMODE): New.
16600         (Wtype_MAXp1_F): New.
16601         (DFtype, DCtype, __fixdfdi, __floatdidf, __fixunsdfSI, __fixunsdfDI,
16602         __powidf2, __divdc3, __muldc3): Protect with HAVE_DFMODE.
16603
16604 2005-02-16  Richard Earnshaw  <rearnsha@arm.com>
16605
16606         * PR target/19162
16607         * arm.c (arm_apply_result_size): New function.
16608         * arm.h (APPLY_RESULT_SIZE): Define.
16609         * arm-protos.h (arm_apply_result_size): Add prototype.
16610         * arm.md (RO_REGNUM, FPA_F0_REGNUM, FPA_F7_REGNUM): New constants.
16611         (movxf): New expand.
16612         (ldmsi_postinc4_thumb, stmsi_postinc4_thumb): New patterns for Thumb.
16613         (call_value_symbol): Remove predicate for operand 0.
16614         (call_value_insn, sibcall_value, sibcall_value_insn): Likewise.
16615         (untyped_call): Rework to correclty return values for any type.
16616         (untyped_return): New expand.
16617         * fpa.md (movxf_fpa): Simplify and use sfm/lfm when appropriate.
16618
16619 2005-02-16  Stan Shebs  <shebs@apple.com>
16620
16621         * config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or later.
16622         * config/rs6000/t-darwin8: New, for 64-bit multilib.
16623
16624 2005-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
16625
16626         * doc/install.texi (sparc-sun-solaris2*): Document required GMP
16627         configure settings on Solaris 7 and later.
16628
16629 2005-02-16  Diego Novillo  <dnovillo@redhat.com>
16630
16631         PR tree-optimization/19865
16632         * tree-optimize.c (init_tree_optimization_passes): Run
16633         pass_may_alias after pass_sra.
16634
16635 2005-02-16  Richard Henderson  <rth@redhat.com>
16636             Stuart Hastings  <stuart@apple.com>
16637
16638         PR debug/19521
16639         * dbxout.c (dbxout_function_end): Take decl parameter; update callers.
16640         Do nothing if debug info suppressed for this function.
16641         (dbxout_begin_function): Early exit if debug info suppressed for
16642         this function.
16643
16644 2005-02-16  Kazu Hirata  <kazu@cs.umass.edu>
16645
16646         PR target/20007
16647         * config/ip2k/ip2k.c (ip2k_reorg): Adjust calls to
16648         find_basic_blocks.
16649         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16650
16651         PR tree-optimization/19967
16652         * builtins.c (expand_builtin_strstr, expand_builtin_strpbrk,
16653         expand_builtin_strchr, expand_builtin_strrchr): Take a new
16654         argument TYPE.  Adjust calls to fold_builtin_XXX.
16655         (expand_builtin, fold_builtin_1): Adjust calls to
16656         expand_builtin_XXX.
16657         (fold_builtin_strchr, fold_builtin_strpbrk,
16658         fold_builtin_strstr, fold_builtin_strrchr): Convert the folded
16659         result to a requested type TYPE.
16660
16661 2005-02-16  Jakub Jelinek  <jakub@redhat.com>
16662
16663         PR middle-end/19857
16664         * fold-const.c (fold): Don't optimize (T)(x & cst) to
16665         (T)x & (T)cst if (T)cst overflows.
16666         * convert.c (convert_to_integer) <case POINTER_TYPE>: Pass
16667         TYPE_UNSIGNED (type) as type_for_size's UNSIGNEDP argument.
16668
16669 2005-02-15  Jeff Law  <law@redhat.com>
16670
16671         * gcse.c (blocks_with_calls): New bitmap.
16672         (alloc_gcse_mem): Allocate it.
16673         (free_gcse_mem): Free it.
16674         (clear_modifY_mem_tables): Clear it.
16675         (record_last_mem_set_info): Set the proper bit in BLOCK_WITH_CALLS
16676         when we encounter CALL_INSNs.
16677         (compute_transp, case MEM): Handle blocks with calls separate
16678         from blocks without calls.  Use bitmap iterators rather than
16679         FOR_EACH_BB.
16680
16681 2005-02-15  Peter O'Gorman  <peter@pogma.com>
16682
16683         PR bootstrap/18810
16684         * mklibgcc.in (vis_hide): Use a temporary object file, not
16685         -o /dev/null.
16686
16687 2005-02-15  Andy Hutchinson  <HutchinsonAndy@netscape.net>
16688
16689         PR target/19924
16690         * config/avr/avr.h (MODES_TIEABLE_P): Define to 1 to allow subreg
16691         access optimization.
16692
16693 2005-02-15  David Edelsohn  <edelsohn@gnu.org>
16694             Alan Modra  <amodra@bigpond.net.au>
16695
16696         PR target/19019
16697         * config/rs6000/darwin-ldouble.c (_xlqadd): Rename to __gcc_qadd.
16698         (_xlqsub): Rename to __gcc_qsub.
16699         (_xlqmul): Rename to __gcc_qmul.
16700         (_xlqdiv): Rename to __gcc_qdiv.
16701         Provide versioned symbol aliases with old names.
16702         * config/rs6000/libgcc-ppc64.ver: Rename symbols.
16703         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Rename symbols.
16704         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): New.
16705         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): New.
16706         * config/rs6000/t-newas (LIB2FUNCS_EXTRA): New.
16707
16708 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
16709
16710         * fold-const.c (fold): Fold -(~A) to A + 1.  Fold ~(-A) to A - 1.
16711         Fold ~(A - 1) and ~(A + -1) to -A.
16712
16713 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
16714
16715         PR pch/14940
16716         PR target/19300
16717         * config/host-linux.c (linux_gt_pch_use_address): Copy from
16718         config/pa/pa-host.c:pa_gt_pch_use_address.
16719
16720 2005-02-15  Daniel Berlin  <dberlin@dberlin.org>
16721
16722         * tree-vn.c (get_value_handle): Make sure that given an
16723         is_gimple_min_invariant expression, we always return it.
16724
16725 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
16726
16727         * passes.c (rest_of_handle_gcse): Fix a comment.
16728
16729 2005-02-15  Jeff Law  <law@redhat.com>
16730
16731         * gcse.c (canon_modify_mem_set_list_set): Kill unnecessary
16732         bitmap.
16733         (alloc_gcse_mem, free_gcse_mem): Corresponding changes.
16734         (canon_list_insert, record_last_mem_set_info): Similarly.
16735         (clear_modify_mem_tables): Similarly.
16736
16737 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
16738
16739         * bitmap.c, bitmap.h, lambda-code.c, tree-dfa.c, tree-dump.c,
16740         tree-dump.h, tree-ssa-loop-manip.c, value-prof.c,
16741         config/mips/mips.md, config/rs6000/aix.h,
16742         config/rs6000/beos.h, config/rs6000/sysv4.h: Update copyright.
16743
16744 2005-02-15  Richard Henderson  <rth@redhat.com>
16745
16746         * bb-reorder.c (find_traces_1_round): Force fallthru edge from a
16747         call to be best_edge.
16748
16749 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
16750
16751         * basic-block.h: Adjust the prototype for find_basic_blocks.
16752         * cfgbuild.c (find_basic_blocks): Remove unused arguments.
16753         * passes.c (rest_of_handle_loop_optimize): Adjust the call to
16754         find_basic_blocks.
16755
16756         * flow.c (recompute_reg_usage): Remove all arguments.
16757         * passes.c (rest_of_compilation): Adjust the call to
16758         recompute_reg_usage.
16759         * rtl.h: Adjust the prototype for recompute_reg_usage.
16760
16761 2005-02-14  Daniel Berlin  <dberlin@dberlin.org>
16762
16763         * tree-dump.c (dump_files): Update to reflect new member
16764         of dump_file_info.
16765         (dump_register): Add new argument.
16766         Set glob name.
16767         (dump_switch_p_1): Check against glob name if doglob was passed.
16768         (dump_switch_p): Check against regular first, then glob if
16769         we didn't have any hits on the dump name.
16770         * tree-optimize.c (register_one_dump_file):
16771         Pass in glob name as well.
16772         * tree-pass.h (struct dump_file_info): Add glob
16773         member.
16774
16775 2005-02-14  Joseph S. Myers  <joseph@codesourcery.com>
16776
16777         PR preprocessor/16323
16778         * doc/invoke.texi: Document that -Wendif-labels is on by default.
16779
16780 2005-02-14  David Edelsohn  <edelsohn@gnu.org>
16781
16782         PR target/19019
16783         * config/rs6000/rs6000.md (trunctfdf2): Change to define_expand.
16784         (trunctfdf2_internal1): New.
16785         (trunctfdf2_internal2): Renamed from trunctfdf2.
16786
16787 2005-02-14  Diego Novillo  <dnovillo@redhat.com>
16788
16789         PR tree-optimization/19853
16790         * tree-dfa.c (add_referenced_var): Always examine DECL_INITIAL.
16791
16792 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
16793
16794         * passes.c (rest_of_handle_loop_optimize): Remove calls to
16795         delete_dead_jumptables and cleanup_cfg.
16796
16797 2005-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
16798
16799         * reload.c (find_reloads): Swap address_reloaded flags when
16800         swapping commutative operands.
16801
16802 2005-02-14  Sebastian Pop  <pop@cri.ensmp.fr>
16803
16804         * lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):
16805         Use standard_iv_increment_position for computing the bsi position
16806         for create_iv.
16807         * tree-ssa-loop-manip.c (create_iv): Add a comment on how to compute
16808         the bsi position.
16809
16810 2005-02-13  Zdenek Dvorak  <dvorakz@suse.cz>
16811
16812         PR target/17428
16813         * cfgrtl.c (safe_insert_insn_on_edge): Avoid extending
16814         life range of hard registers.
16815         * value-prof.c (insn_prefetch_values_to_profile): Only
16816         scan normal insns.
16817
16818         * value-prof.c (rtl_find_values_to_profile): Do not look for values to
16819         profile in libcalls.
16820
16821 2005-02-13  Nathan Sidwell  <nathan@codesourcery.com>
16822
16823         * bitmap.h (bitmap_and_compl_into): Return bool.
16824         * bitmap.c (bitmap_and_compl_into): Return changed flag.
16825
16826 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
16827
16828         PR tree-optimization/19944
16829         * fold-const.c (fold): Re-add ABS_EXPR folding.
16830
16831 2005-02-13  David Edelsohn  <edelsohn@gnu.org>
16832
16833         PR target/19019
16834         * config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
16835         {TARGET,MASK}_XL_COMPAT.
16836         (SUBTARGET_SWITCHES): Rename xl-call to xl-compat.  Use
16837         MASK_XL_COMPAT.
16838         * config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
16839         * config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
16840         TARGET_XL_COMPAT.
16841         (rs6000_arg_partial_bytes): Same.
16842         (rs6000_generate_compare): Generate PARALLEL for compare if TFmode
16843         and XL compatibility enabled.
16844         * config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
16845         * config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
16846         test to final condition.
16847         (cmptf_internal2): New.
16848         * doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
16849         xl-compat.  Add TFmode information to description.
16850
16851 2005-02-13  Kazu Hirata  <kazu@cs.umass.edu>
16852
16853         * flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
16854
16855 2005-02-13  Jason Merrill  <jason@redhat.com>
16856
16857         PR c++/16405
16858         * fold-const.c (fold_indirect_ref_1): Split out from...
16859         (build_fold_indirect_ref): Here.
16860         (fold_indirect_ref): New fn.
16861         * tree.h: Declare it.
16862         * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
16863         (gimplify_modify_expr_rhs): Likewise.
16864         (gimplify_expr): Likewise.
16865
16866 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
16867
16868         PR tree-optimization/14303
16869         PR tree-optimization/15784
16870         * fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
16871         Fold ABS_EXPR<x> < 0 to false.  Fold ABS_EXPR<x> == 0 to x == 0 and
16872         ABS_EXPR<x> != 0 to x != 0.
16873
16874 2005-02-12  Kazu Hirata  <kazu@cs.umass.edu>
16875
16876         * c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
16877         simplify-rtx.c, tree-ssa-live.h: Fix comment typos.  Follow
16878         spelling conventions.
16879
16880         * passes.c (rest_of_handle_gcse): Don't run cse_main and
16881         delete_trivially_dead_insns too many times.
16882
16883         * passes.c (rest_of_handle_gcse): Remove dead assignments to
16884         tem and tem2.
16885
16886 2005-02-12  Ira Rosen  <irar@il.ibm.com>
16887
16888         * tree-vectorizer.c (vect_get_base_and_offset): Remove.
16889         (vect_is_simple_iv_evolution): Remove redundant parameter
16890         and step check.
16891         (vect_analyze_scalar_cycles): Call vect_is_simple_iv_evolution
16892         without last parameter.
16893         (vect_analyze_pointer_ref_access): Get access_fn as parameter.
16894         Return pointer step. Call vect_is_simple_iv_evolution without
16895         last parameter. Check only that the step is multiple of size
16896         type. Remove stmt_vinfo updates.
16897         (vect_get_memtag_and_dr): Remove.
16898         (vect_get_memtag): New function.
16899         (vect_address_analysis): New function.
16900         (vect_object_analysis): New function.
16901         (vect_analyze_data_refs): Call vect_object_analysis and
16902         vect_get_memtag. Update stmt_vinfo fields.
16903
16904 2005-02-12  Ira Rosen  <irar@il.ibm.com>
16905
16906         * tree-data-ref.c (array_base_name_differ_p): Check that the bases
16907         exist and are objects. Remove checks for pointer.
16908         * tree-vectorizer.c (vect_create_addr_base_for_vector_ref): Use
16909         STMT_VINFO_VECT_DR_BASE_ADDRESS instead of DR_BASE_NAME.
16910         (vect_create_data_ref_ptr): Likewise.
16911         (vect_base_addr_differ_p): New function.
16912         (vect_analyze_data_ref_dependence): Call vect_base_addr_differ_p.
16913         (vect_analyze_pointer_ref_access): Add output parameter - ptr_init.
16914         Don't set the DR_BASE_NAME field of data-ref.
16915         (vect_get_memtag_and_dr): Use ptr_init instead of DR_BASE_NAME.
16916
16917 2005-02-12  Uros Bizjak  <uros@kss-loka.si>
16918
16919         * optabs.h (enum optab_index): Add new OTI_ldexp.
16920         (ldexp_optab): Define corresponding macro.
16921         * optabs.c (init_optabs): Initialize ldexp_optab.
16922         * genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
16923         patterns.
16924         * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
16925         using ldexp_optab.
16926         (expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
16927         expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.
16928
16929         * config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
16930         to implement ldexpf, ldexp and ldexpl built-ins as inline x87
16931         intrinsics.
16932
16933 2005-02-12  Ira Rosen  <irar@il.ibm.com>
16934
16935         * tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
16936         to base_address.
16937         * tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
16938         stmt_vec_info.
16939         (vect_get_base_and_offset): Always return an address.
16940         (vect_create_addr_base_for_vector_ref): Remove treatment for
16941         different data reference types.
16942         (vect_compute_data_ref_alignment): Rename base to base_address in
16943         stmt_vec_info. Get the object in order to force its alignment.
16944         (vect_get_memtag_and_dr): Rename base to base_address in
16945         stmt_vec_info. Extract the object for memtag analysis.
16946
16947 2005-02-12  Hans-Peter Nilsson  <hp@axis.com>
16948
16949         PR regression/19898.
16950         * config/cris/cris.c (cris_notice_update_cc): When testing if insn
16951         changes cc_status, use apply modified_in_p to part of cc_status
16952         and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
16953         body.
16954
16955 2005-02-11  Richard Henderson  <rth@redhat.com>
16956
16957         * tree-complex.c (expand_complex_libcall): New.
16958         (expand_complex_multiplication): Use it for c99 compliance.
16959         (expand_complex_division): Likewise.
16960         * fold-const.c (fold_complex_add, fold_complex_mult): New.
16961         (fold): Call them.
16962         * builtins.c (built_in_names): Remove const.
16963         * tree.c (build_common_builtin_nodes): Build complex arithmetic
16964         builtins.
16965         * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
16966         (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
16967         (built_in_names): Remove const.
16968         * c-common.c (c_common_type_for_mode): Handle complex modes.
16969         * flags.h, toplev.c (flag_complex_method): Rename from
16970         flag_complex_divide_method.
16971         * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
16972         __mulsc3, __muldc3, __mulxc3, __multc3): New.
16973         * libgcc2.h: Declare them.
16974         * libgcc-std.ver: Export them.
16975         * mklibgcc.in (lib2funcs): Build them.
16976
16977 2005-02-11  Steven Bosscher  <stevenb@suse.de>
16978
16979         PR tree-optimization/19876
16980         Partially revert my change from 2005-01-14
16981         * tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
16982         (compute_antic): ...and remove the loop here.
16983
16984 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
16985
16986         PR middle-end/19858
16987         * fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
16988         is number of inner's bits, avoid creating a BIT_FIELD_REF.
16989
16990         * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
16991         crtend.o if -pie.  Use %{x:a;:b} spec syntax.
16992
16993 2005-02-11  Daniel Jacobowitz  <dan@codesourcery.com>
16994
16995         * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
16996         offsets for the big-endian 32-bit case.
16997
16998 2005-02-11  Joseph S. Myers  <joseph@codesourcery.com>
16999
17000         * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
17001
17002 2005-02-11  Dale Johannesen  <dalej@apple.com>
17003
17004         * cselib.c (cselib_process_insn):  Clear out regs where
17005         HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
17006         * reload.c (find_equiv_reg): Ditto.
17007
17008 2005-02-11  Ian Lance Taylor  <ian@airs.com>
17009
17010         * read-rtl.c (read_rtx_1): Give fatal error if we see a vector
17011         with no elements.
17012
17013         * tree.c (build_function_type_list): Work correctly if there are
17014         no arguments.
17015
17016 2005-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
17017
17018         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
17019         "*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
17020         ("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
17021         TARGET_ZARCH instead of TARGET_64BIT.
17022
17023 2005-02-11  Ralf Corsepius  <ralf.corsepius@rtems.org>
17024
17025         * config/rs6000/t-rtems:
17026         (MULTILIB_OPTIONS): Remove mcpu=602.
17027         (MUTLILIB_DIRNAMES): Remove m602.
17028         (MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}.
17029         Let mcpu=602 match mcpu=603.
17030         (MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603.
17031
17032 2005-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17033
17034         * pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned
17035         signal trampolines.
17036
17037 2005-02-10  David Daney  <ddaney@avtrex.com>
17038
17039         * config/alpha/linux-unwind.h: Add exception clause to copyright.
17040         * config/i386/linux-unwind.h: Likewise.
17041         * config/ia64/linux-unwind.h: Likewise.
17042         * config/mips/linux-unwind.h: Likewise.
17043         * config/pa/linux-unwind.h: Likewise.
17044         * config/rs6000/linux-unwind.h: Likewise.
17045         * config/s390/linux-unwind.h: Likewise.
17046         * config/sh/linux-unwind.h: Likewise.
17047         * config/sparc/linux-unwind.h: Likewise.
17048
17049 2005-02-10  Steven Bosscher  <stevenb@suse.de>
17050
17051         PR tree-optimization/17549
17052         * tree-outof-ssa.c (find_replaceable_in_bb): Do not allow
17053         TER to replace a DEF with its expression if the DEF and the
17054         rhs of the expression we replace into have the same root
17055         variable.
17056
17057 2005-02-10  Richard Sandiford  <rsandifo@redhat.com>
17058
17059         * config/mips/mips.md: Fix the placement of the match_scratch in the
17060         lea64 peephole2.
17061
17062 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
17063
17064         * cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
17065         Fix comment typos.
17066
17067 2005-02-10  Zdenek Dvorak  <dvorakz@suse.cz>
17068
17069         * tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
17070         (strip_offset): Handle addresses.
17071         (add_address_candidates): Use strip_offset.
17072         (difference_cost): Reflect strip_offset change.
17073         (force_var_cost, difference_cost): Strip nops.
17074
17075 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
17076
17077         * df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.
17078
17079         * builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h,
17080         tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c,
17081         config/cris/cris-protos.h, config/cris/cris.c: Update
17082         copyright.
17083
17084 2005-02-10  Jeff Law  <law@redhat.com>
17085
17086         * tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
17087         (lookup_avail_expr): Similarly.
17088
17089 2005-02-10  Richard Guenther  <rguenth@gcc.gnu.org>
17090
17091         * builtins.c (fold_builtin_powi): New function.
17092         (fold_builtin_1): Call it.
17093
17094 2005-02-10  Steven Bosscher  <stevenb@suse.de>
17095
17096         PR documentation/19309
17097         * doc/cpp.texi: The __GNUC__ and related predefined macros
17098         are also defined for the "standalone" cpp.
17099         Some non-GCC compilers may also define __GNUC__.
17100
17101 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
17102
17103         PR c/19342
17104         * c-typeck.c (common_type): New routine.  Old common_type renamed
17105         to...
17106         (c_common_type): ...this.
17107         (build_conditional_expr, build_binary_op): Use c_common_type instead
17108         of common_type.
17109
17110 2005-02-10  Steven Bosscher  <stevenb@suse.de>
17111
17112         * doc/md.texi: Replace @samp{length} with @code{length}.
17113
17114 2005-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
17115
17116         PR tree-optimization/18687
17117         * tree-flow.h (find_loop_niter): Declare.
17118         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
17119         Try using scev even for loops with more than one exit.
17120         * tree-ssa-loop-ivopts.c (struct loop_data): Removed niter field.
17121         (struct ivopts_data): Added niters field.
17122         (struct nfe_cache_elt): New.
17123         (nfe_hash, nfe_eq, niter_for_exit, niter_for_single_dom_exit): New
17124         functions.
17125         (tree_ssa_iv_optimize_init): Initialize niters cache.
17126         (determine_number_of_iterations): Removed.
17127         (find_induction_variables): Do not call determine_number_of_iterations.
17128         Access niters for single exit through niter_for_single_dom_exit.
17129         (add_iv_outer_candidates): Access niters for single exit through
17130         niter_for_single_dom_exit.
17131         (may_eliminate_iv): Take data argument.  Use niter_for_exit.  Do not use
17132         number_of_iterations_cond.
17133         (iv_period): New function.
17134         (determine_use_iv_cost_condition): Pass data to may_eliminate_iv.
17135         (may_replace_final_value): Take data argument.  Use
17136         niter_for_single_dom_exit.
17137         (determine_use_iv_cost_outer): Pass data to may_replace_final_value.
17138         (rewrite_use_compare): Pass data to may_eliminate_iv.
17139         (rewrite_use_outer): Pass data to may_replace_final_value.
17140         (free_loop_data): Clean up the niters cache.
17141         (tree_ssa_iv_optimize_finalize): Free the niters cache.
17142         (tree_ssa_iv_optimize_loop): Do not call loop_commit_inserts.
17143         * tree-ssa-loop-niter.c (find_loop_niter): New function.
17144         (find_loop_niter_by_eval): Use tree_int_cst_lt.
17145         (num_ending_zeros): Moved to tree.c.
17146         * tree.h (num_ending_zeros): Declare.
17147         * tree.c (num_ending_zeros): Moved from tree.c.
17148
17149 2005-02-09  Richard Henderson  <rth@redhat.com>
17150
17151         * builtins.c (DEF_BUILTIN): Add COND argument.
17152         * tree.h (DEF_BUILTIN): Likewise.
17153         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN, DEF_EXT_LIB_BUILTIN,
17154         DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN): Update to
17155         match.
17156         (DEF_BUILTIN_STUB): New.
17157         (BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE, BUILT_IN_INIT_TRAMPOLINE,
17158         BUILT_IN_ADJUST_TRAMPOLINE, BUILT_IN_NONLOCAL_GOTO,
17159         BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT): Use it.
17160         * c-common.c (DEF_BUILTIN): Add COND argument.
17161         * tree.c (local_define_builtin): New.
17162         (build_common_builtin_nodes): New.
17163
17164 2005-02-09  Roger Sayle  <roger@eyesopen.com>
17165
17166         * fold-const.c (fold_strip_sign_ops): New function to simplify a
17167         floating point expression ignoring the sign of the result.
17168         (fold) <ABS_EXPR>: Use it to simplify fabs(x).
17169         (fold) <MULT_EXPR>: Use it to simplify x*x.
17170         * tree.h (fold_strip_sign_ops): Prototype here.
17171         * builtins.c (fold_builtin_copysign): Take an additional FNDECL
17172         argument.  Use fold_strip_sign_ops to simplify the first argument.
17173         (fold_builtin_pow):  Use fold_strip_sign_ops to simplify the
17174         first argument when the second argument is an even integer
17175         constant, but only with -funsafe_math_optimizations.
17176         (fold_builtin_1): Update call to fold_builtin_copysign.
17177
17178 2005-02-09  Ian Lance Taylor  <ian@airs.com>
17179
17180         PR middle-end/19583
17181         * gimple-low.c (try_catch_may_fallthru): In EH_FILTER_EXPR case,
17182         just check whether EH_FILTER_FAILURE falls through.
17183
17184 2005-02-09  Andreas Krebbel  <krebbel1@de.ibm.com>
17185
17186         * gcc/haifa-sched.c (schedule_block): Make queued sched group
17187         insns return to ready list in the next turn.
17188
17189 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
17190
17191         PR middle-end/19402
17192         * builtins.def: New __builtin_powi[lf].
17193         * builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
17194         (expand_builtin_powi): New function.
17195         (expand_builtin): Dispatch to expand_builtin_powi.
17196         * libgcc2.h: Add prototypes for __builtin_powi[lf].
17197         * libgcc2.c: Add __builtin_powi[lf] implementation.
17198         * mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
17199         * optabs.h: Add powi_optab.
17200         * optabs.c (init_optabs): Initialize powi_optab.
17201         * doc/extend.texi: Document __builtin_powi[lf].
17202
17203 2005-02-09  Dorit Naishlos  <dorit@il.ibm.com>
17204
17205         * tree-vectorizer.c (vect_set_dump_settings): Check that dump_file
17206         exists.
17207
17208 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
17209
17210         PR middle-end/19854
17211         * fold-const.c (try_move_mult_to_index): Remove redundant
17212         type argument.  Create ADDR_EXPR with correct type.
17213         (fold): Update callers of try_move_mult_to_index.  Convert
17214         result to the appropriate type.
17215
17216 2005-02-09  Roger Sayle  <roger@eyesopen.com>
17217
17218         PR target/19597
17219         * config/avr/avr.c (default_rtx_costs): Delete.
17220         (avr_operand_rtx_cost): New function.
17221         (avr_rtx_costs): Completely rewrite.
17222
17223 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
17224
17225         PR target/19806
17226         * config/cris/cris.c (in_code): New variable.
17227         (cris_output_addr_const): Now a static function, a wrapper for
17228         output_addr_const.
17229         (cris_asm_output_symbol_ref): New function, broken out SYMBOL_REF
17230         case from old cris_output_addr_const.
17231         (cris_asm_output_label_ref): Similar for LABEL_REF.
17232         (cris_output_addr_const_extra): Similar for UNSPEC.
17233         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA)
17234         (ASM_OUTPUT_SYMBOL_REF, ASM_OUTPUT_LABEL_REF): Define.
17235         * config/cris/cris-protos.h (cris_output_addr_const): Remove
17236         declaration.
17237         (cris_asm_output_symbol_ref, cris_output_addr_const_extra)
17238         (cris_asm_output_label_ref): Declare.
17239
17240 2005-02-08  Paolo Bonzini  <bonzini@gnu.org>
17241
17242         PR preprocessor/19801
17243         * doc/cppinternals.texi (Conventions, Lexer, Files): Adjust
17244         filenames that changed when libcpp was moved to the toplevel.
17245
17246 2005-02-07  Roger Sayle  <roger@eyesopen.com>
17247
17248         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
17249         zero extensions of BImode operands.  Call lowpart_subreg instead
17250         of gen_lowpart_common and gen_lowpart_SUBREG.
17251
17252 2005-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
17253
17254         PR ada/19489
17255         * libada-mk.in: Use cc_for_cross_gnattools, not cc_set_by_configure.
17256         * configure.ac: Set cc_for_cross_gnattools.
17257         * configure: Regenerate.
17258
17259 2005-02-08  Alan Modra  <amodra@bigpond.net.au>
17260
17261         PR target/19803
17262         * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%.
17263
17264 2005-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
17265
17266         PR debug/19327
17267         * dbxout.c (dbxout_symbol) <FUNCTION_DECL>: Skip inline instance
17268         of nested functions.
17269
17270 2005-02-07  Jonathan Wakely  <redi@gcc.gnu.org>
17271
17272         * doc/extend.texi: Document deprecated extensions allowing
17273         static floating-point members to have initializers and allowing
17274         floating-point literals in integral constant expressions.
17275
17276 2005-02-07  Kazu Hirata  <kazu@cs.umass.edu>
17277
17278         * cfgcleanup.c, df.h, diagnostic.c, rtl.c, tree-vectorizer.h,
17279         config/darwin7.h, config/mips/mips.c,
17280         config/rs6000/altivec.md, config/rs6000/darwin-tramp.asm:
17281         Update copyright.
17282
17283         * cse.c: Update comments.
17284
17285 2005-02-07  Richard Guenther  <rguenth@gcc.gnu.org>
17286
17287         PR middle-end/19775
17288         * builtins.c (fold_builtin_sqrt): Transform
17289         sqrt(pow(x,y)) to pow(fabs(x),y*0.5), not
17290         pow(x,y*0.5).
17291
17292 2005-02-07  Leehod Baruch  <leehod@il.ibm.com>
17293             Dorit Naishlos  <dorit@il.ibm.com>
17294
17295         * doc/invoke.texi (ftree-vectorizer-verbose): New.
17296         * opts.c (OPT_ftree_vectorizer_verbose_): New case for switch.
17297         * common.opt (ftree-vectorizer-verbose): New Flag for the vectorizer
17298         was added.
17299         * tree.h (vect_set_verbosity_level): New extern function declaration
17300         added.
17301         * tree-vectorizer.h (verbosity_levels): New enum type.
17302         * tree-vectorizer.c (vect_debug_stats): Function removed.
17303         (vect_debug_details): Likewise.
17304         (vect_verbosity_level): Global variable was defined and initialized.
17305         (vect_dump): Global variable definition.
17306         (vect_print_dump_info): New function.
17307         (vect_set_dump_settings): New function.
17308         (vect_set_verbosity_level): New function.
17309         (vectorize_loops): Add call to vect_set_dump_settings.
17310
17311         (slpeel_make_loop_iterate_ntimes): Dump condition was changed.
17312         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
17313         (slpeel_tree_peel_loop_to_edge): Likewise.
17314
17315         (vect_analyze_offset_expr): Call to vect_print_dump_info with
17316         appropriate verbosity level instead of call to vect_debug_details
17317         or vect_debug_stats.
17318         (vect_get_base_and_offset):
17319         (vect_create_addr_base_for_vector_ref):
17320         (get_vectype_for_scalar_type):
17321         (vect_create_data_ref_ptr):
17322         (vect_init_vector):
17323         (vect_get_vec_def_for_operand):
17324         (vect_finish_stmt_generation):
17325         (vectorizable_assignment):
17326         (vectorizable_operation):
17327         (vectorizable_store):
17328         (vectorizable_load):
17329         (vect_transform_stmt):
17330         (vect_update_ivs_after_vectorizer):
17331         (vect_do_peeling_for_loop_bound):
17332         (vect_update_inits_of_drs):
17333         (vect_do_peeling_for_alignment):
17334         (vect_transform_loop):
17335         (vect_is_simple_use):
17336         (vect_analyze_operations):
17337         (vect_is_simple_iv_evolution):
17338         (vect_analyze_scalar_cycles):
17339         (vect_analyze_data_ref_dependence):
17340         (vect_analyze_data_ref_dependences):
17341         (vect_compute_data_ref_alignment):
17342         (vect_enhance_data_refs_alignment):
17343         (vect_analyze_data_refs_alignment):
17344         (vect_analyze_data_ref_access):
17345         (vect_analyze_data_ref_accesses):
17346         (vect_analyze_pointer_ref_access):
17347         (vect_get_memtag_and_dr):
17348         (vect_analyze_data_refs):
17349         (vect_mark_relevant):
17350         (vect_stmt_relevant_p):
17351         (vect_mark_stmts_to_be_vectorized):
17352         (vect_can_advance_ivs_p):
17353         (vect_get_loop_niters):
17354         (vect_analyze_loop_form):
17355         (vect_analyze_loop):
17356         (vectorize_loops): Likewise.
17357
17358         (vect_do_peeling_for_loop_bound): Dump format slightly changed.
17359         (vect_update_inits_of_drs):
17360         (vect_do_peeling_for_alignment):
17361         (vect_transform_loop):
17362         (vect_analyze_operations):
17363         (vect_analyze_scalar_cycles):
17364         (vect_analyze_data_ref_dependences):
17365         (vect_analyze_data_refs_alignment):
17366         (vect_analyze_data_ref_accesses):
17367         (vect_analyze_data_refs):
17368         (vect_mark_stmts_to_be_vectorized):
17369         (vect_get_loop_niters):
17370         (vect_analyze_loop_form):
17371         (vect_analyze_loop): Likewise.
17372         (vect_mark_stmts_to_be_vectorized): Add call to print_generic_expr.
17373
17374 2005-02-07  Richard Sandiford  <rsandifo@redhat.com>
17375
17376         PR bootstrap/19796
17377         Revert:
17378         2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
17379         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
17380         either -ffast-math or -funsafe-math-optimizations is in use.
17381
17382         2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
17383         * config/mips/irix-csr.c: New file.
17384         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
17385         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
17386         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
17387         executables.
17388
17389 2005-02-07  Alexandre Oliva  <aoliva@redhat.com>
17390
17391         * config/mn10300/linux.h (LIB_SPEC, STARTFILE_SPEC): Remove
17392         redundant, incorrect definitions.
17393
17394         * config/frv/frv.md ("tls_indirect_call"): Turn into libcall-like
17395         expand.
17396         ("*tls_indirect_call"): New, reference hard regs directly.
17397         * config/frv/frv.c (gen_inlined_tls_plt): Adjust.
17398
17399 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
17400
17401         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC):
17402         Let !-mhard-float !-msoft-float imply -mfpu=softfpa.
17403
17404 2005-02-06  Roger Sayle  <roger@eyesopen.com>
17405
17406         PR rtl-optimization/19800
17407         * simplify_rtx.c (simplify_relational_operation_1): Explicitly
17408         call gen_lowpart_common and gen_lowpart_SUBREG instead of calling
17409         gen_lowpart.
17410
17411 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
17412
17413         * config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200.
17414
17415 2005-02-07  Joseph S. Myers  <joseph@codesourcery.com>
17416
17417         PR other/17135
17418         * doc/invoke.texi: Correct documentation of -freorder-functions.
17419
17420 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
17421
17422         PR other/14402
17423         * doc/invoke.texi: Don't mention gccbug.
17424
17425 2005-02-06  Roger Sayle  <roger@eyesopen.com>
17426             Andrew Pinski  <pinskia@physics.uc.edu>
17427             Paolo Bonzini  <paolo.bonzini@lu.unisi.ch>
17428
17429         * simplify-rtx.c (simplify_relational_operation_1): Simplify
17430         (ne:SI (zero_extract:SI FOO (const_int 1) BAR) (const_int 0))
17431         into just (zero_extract:SI FOO (const_int 1) BAR).
17432
17433 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
17434
17435         * doc/cpp.texi: Include gcc-common.texi.  Don't define gcctabopt
17436         macro locally.  Don't give last revision date.  Use GCC version
17437         number from gcc-common.texi.
17438         * doc/cppinternals.texi: Include gcc-common.texi.  Don't give last
17439         revision date.  Use GCC version number from gcc-common.texi.
17440         Describe being a library as current state rather than as 3.x
17441         history.
17442         * doc/gcc.texi: Remove last update date.
17443         * doc/gccint.texi: Likewise.  Update copyright dates.
17444         * doc/install.texi: Update copyright dates.
17445
17446 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
17447
17448         PR other/7549
17449         * doc/invoke.texi: Mention for each option included in -Wall that
17450         it is included in -Wall.
17451         * doc/gcc.texi: Update copyright and last modification date.
17452
17453 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
17454
17455         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Do not add
17456         unnecessary cast to original induction variable increments.
17457
17458 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
17459
17460         PR tree-optimization/18219
17461         * tree-ssa-loop-ivopts.c (get_computation_at): Produce computations
17462         in distributed form.
17463
17464 2005-02-06  Richard Sandiford  <rsandifo@redhat.com>
17465
17466         * expmed.c (store_bit_field): Make the SUBREG code adjust bitnum.
17467         Set bitpos and offset later in the function.  Do nothing if the
17468         target is a register and if the bitfield lies completely outside
17469         that register.
17470         (extract_bit_field): Make the same SUBREG, bitpos and offset changes
17471         here.  Return an uninitialised register if the source value is stored
17472         in a register and the bitfield lies completely outside that register.
17473
17474 2005-02-06  Steven Bosscher  <stevenb@suse.de>
17475
17476         * df.c (df_insn_refs_record): Use XEXP to get the operand of a USE,
17477         not SET_DEST.
17478
17479 2005-02-06  Marcin Dalecki  <martin@dalecki.de>
17480
17481         * diagnostic.c (default_diagnostic_finalizer): Fix use of attribute.
17482
17483 2005-02-06  Geoffrey Keating  <geoffk@apple.com>
17484
17485         * config.gcc (*-*-darwin*): Separate darwin7 and darwin8 configs.
17486         * config/darwin8.h: New.
17487         * config/darwin7.h: Update comment.
17488
17489 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
17490             Dorit Naishlos  <dorit@il.ibm.com>
17491
17492         * tree-vectorizer.h (LOC): New type.
17493         (UNKNOWN_LOC, EXPR_LOC, LOC_FILE, LOC_LINE): New macros.
17494         (loop_line_number): New field in struct _loop_vec_info.
17495         (LOOP_VINFO_LOC, LOOP_LOC): New macros.
17496
17497         * tree-vectorizer.c (input.h): Included.
17498         (find_loop_location): New function.
17499         (vect_debug_stats): Argument changed from loop to LOC. Computation of
17500         loop line number removed.
17501         (vect_debug_details): Likewise.
17502         (new_loop_vec_info): Initialize new field LOOP_VINFO_LOC.
17503
17504         (slpeel_make_loop_iterate_ntimes): Call find_loop_location. Argument in
17505         call to vect_debug_details/stats changed from loop to loop_loc.
17506         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
17507         (slpeel_tree_peel_loop_to_edge): Likewise.
17508
17509         (vect_analyze_offset_expr): Argument in call to vect_debug_details/stats
17510         changed from NULL to UNKNOWN_LOC.
17511         (vect_get_base_and_offset):
17512         (vect_create_addr_base_for_vector_ref):
17513         (get_vectype_for_scalar_type):
17514         (vect_create_data_ref_ptr):
17515         (vect_init_vector):
17516         (vect_get_vec_def_for_operand):
17517         (vect_finish_stmt_generation):
17518         (vectorizable_assignment):
17519         (vectorizable_operation):
17520         (vectorizable_store):
17521         (vectorizable_load):
17522         (vect_transform_stmt):
17523         (vect_update_ivs_after_vectorizer):
17524         (vect_do_peeling_for_loop_bound):
17525         (vect_do_peeling_for_alignment):
17526         (vect_transform_loop):
17527         (vect_is_simple_use):
17528         (vect_analyze_operations):
17529         (vect_is_simple_iv_evolution):
17530         (vect_analyze_scalar_cycles):
17531         (vect_analyze_data_ref_dependences):
17532         (vect_compute_data_ref_alignment):
17533         (vect_enhance_data_refs_alignment):
17534         (vect_analyze_data_ref_access):
17535         (vect_analyze_data_ref_accesses):
17536         (vect_analyze_pointer_ref_access):
17537         (vect_get_memtag_and_dr):
17538         (vect_analyze_data_refs):
17539         (vect_mark_relevant):
17540         (vect_stmt_relevant_p):
17541         (vect_mark_stmts_to_be_vectorized):
17542         (vect_can_advance_ivs_p):
17543         (vect_get_loop_niters):
17544         (vect_analyze_loop):
17545         (vectorize_loops): Likewise.
17546
17547         (vectorizable_load): Argument in call to vect_debug_details/stats
17548         changed from loop to LOOP_LOC (loop_vinfo).
17549         (vect_transform_loop):
17550         (vect_analyze_operations):
17551         (vect_analyze_scalar_cycles):
17552         (vect_analyze_data_ref_dependence):
17553         (vect_enhance_data_refs_alignment):
17554         (vect_analyze_data_ref_accesses):
17555         (vect_analyze_pointer_ref_access):
17556         (vect_analyze_data_refs):
17557         (vect_analyze_loop): Likewise.
17558
17559         (vect_analyze_loop_form): Argument in call to vect_debug_details/stats
17560         changed from loop to loop_loc.
17561
17562         (vect_enhance_data_refs_alignment): Removed unused variable loop.
17563
17564 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
17565             Dorit Naishlos  <dorit@il.ibm.com>
17566
17567         * tree-vectorizer.c (vect_analyze_data_ref_dependence): Function
17568         declaration added.
17569         (vect_analyze_data_ref_dependences): Likewise.
17570
17571         (vect_is_simple_use): Argument changed from loop structure to
17572         loop_vect_info structure.
17573         (vect_can_advance_ivs_p): Likewise.
17574         (vect_create_index_for_vector_ref): Likewise.
17575         (vect_update_ivs_after_vectorizer): Likewise.
17576         (new_stmt_vec_info): Likewise.
17577
17578         (new_loop_vec_info): Second argument in call to new_stmt_vec_info was
17579         changed from loop to loop_vinfo.
17580         (vect_create_data_ref_ptr): First argument in call to
17581         vect_create_index_for_vector_ref was changed from loop to loop_vinfo.
17582         (vectorizable_assignment): Second argument in call to vect_is_simple_use
17583         was changed from loop to loop_vinfo.
17584         (vectorizable_operation): Likewise.
17585         (vectorizable_store): Likewise.
17586         (vect_mark_stmts_to_be_vectorized): Likewise.
17587         (vect_do_peeling_for_loop_bound): First argument in call to
17588         vect_update_ivs_after_vectorizer was changed from loop to loop_vinfo.
17589         (vect_analyze_operations): Argument in call to vect_can_advance_ivs_p
17590         was changed from loop to loop_vinfo.
17591         (vect_analyze_data_ref_dependences): Third argument in call to
17592         vect_analyze_data_ref_dependence was changed from loop to loop_vinfo.
17593
17594         (vect_create_index_for_vector_ref): Get the loop from loop_vinfo.
17595         (vect_create_data_ref_ptr): Likewise.
17596         (vect_init_vector): Likewise.
17597         (vect_get_vec_def_for_operand): Likewise.
17598         (vectorizable_assignment): Likewise.
17599         (vectorizable_operation): Likewise.
17600         (vectorizable_store): Likewise.
17601         (vectorizable_load): Likewise.
17602         (vect_update_ivs_after_vectorizer): Likewise.
17603         (vect_is_simple_use): Likewise.
17604         (vect_analyze_data_ref_dependence): Likewise.
17605         (vect_analyze_pointer_ref_access): Likewise.
17606         (vect_can_advance_ivs_p): Likewise.
17607
17608         * tree-vectorizer.h: (_loop_vec_info): Definition and macros moved
17609         before _stmt_vec_info.
17610         (_stmt_vec_info): Loop field replaced by loop_vec_info.
17611         (STMT_VINFO_LOOP): Replaced with STMT_VINFO_LOOP_VINFO.
17612         (new_stmt_vec_info): Argument changed from loop structure to
17613         loop_vect_info structure
17614
17615         (vect_analyze_data_ref_dependences): Unnecessary line was removed.
17616         (vect_analyze_offset_expr): Avoid 80 columns overflow.
17617         (vect_create_addr_base_for_vector_ref): Likewise.
17618         (vect_analyze_pointer_ref_access): Likewise.
17619
17620 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
17621
17622         PR tree-opt/19768
17623         * tree-ssa-dse.c (fix_phi_uses): Update the occurs in abnormal
17624         phi flag if the phi is abnormal.
17625
17626 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
17627
17628         PR tree-opt/19736
17629         * tree-ssa.c (replace_immediate_uses): Update the immediate_uses
17630         information for the new statement.
17631
17632 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
17633
17634         PR driver/19117
17635         * gcc.c (main): Include the target in -v output.
17636
17637 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
17638
17639         * combine.c (simplify_comparison, case SIGN_EXTEND, ZERO_EXTEND):
17640         Do not drop the extend if we'd have to add a paradoxical subreg
17641         later.  Include optabs.h and insn-codes.h.
17642         * Makefile.in (combine.o): Depend on $(OPTABS_H).
17643
17644 2005-02-02  Roger Sayle  <roger@eyesopen.com>
17645
17646         PR middle-end/19405
17647         * real.h (REAL_MODE_FORMAT_COMPOSITE_P): New macro.
17648         * fold-const.c (const_binop): Avoid constant folding floating
17649         point operations in modes that use composite representations.
17650         * simplify-rtx.c (simplify_binary_operation): Likewise.
17651
17652 2005-02-02  Geoffrey Keating  <geoffk@apple.com>
17653
17654         * config/rs6000/altivec.md (altivec_dst): Make the first operand
17655         a REG, not a MEM.
17656         (altivec_dstt): Likewise.
17657         (altivec_dstst): Likewise.
17658         (altivec_dststt): Likewise.
17659         * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Adjust creation
17660         of first operand.
17661
17662 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
17663
17664         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Copy
17665         EXPR_LOCUS from orig_cond to the new cond_stmt.
17666         (vect_finish_stmt_generation): Copy EXPR_LOCUS from stmt to
17667         the new vec_stmt.
17668
17669 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
17670
17671         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Call
17672         standard_iv_increment_position. Remove call to bsi_next
17673         (no need to bump the iterator anymore).
17674         (vect_create_index_for_vector_ref): Call
17675         standard_iv_increment_position. Remove second function argument.
17676         (vect_finish_stmt_generation): Remove call to bsi_next
17677         (no need to bump the iterator anymore).
17678         (vect_create_data_ref_ptr): Remove second argument (bsi) in call
17679         to vect_create_index_for_vector_ref.
17680
17681 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
17682
17683         * tree-vectorizer.c (vect_mark_stmts_to_be_vectorized): Check if
17684         phis are used out of the loop.
17685
17686 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
17687
17688         PR c/17807
17689         * c-decl.c (undef_nested_function): New variable.
17690         (pop_scope): Diagnose undefined nested functions.
17691         (finish_function): Don't attempt cgraph processing or genericizing
17692         if current top-level function contained an undefined nested
17693         function.  Reset undef_nested_function at the end of a top-level
17694         function.
17695
17696 2005-02-02  Zdenek Dvorak  <dvorakz@suse.cz>
17697
17698         * tree.c (build_int_cst_type): Take sign of the value into account
17699         when deciding whether sign extend the value.
17700
17701 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
17702
17703         PR c/18502
17704         * gcc.c (cpp_unique_options): Remove %{trigraphs}.
17705         (cpp_options, cc1_options): Change %{std*&ansi} to
17706         %{std*&ansi&trigraphs}.
17707
17708 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
17709
17710         * cse.c: Update comments.
17711
17712 2005-02-02  Aldy Hernandez  <aldyh@redhat.com>
17713
17714         * config/rs6000/rs6000.c (rs6000_spe_function_arg): Multi-reg
17715         arguments go on the stack.  Do not put complex doubles in odd/even
17716         pairs.
17717
17718 2005-02-02  Steven Bosscher  <stevenb@suse.de>
17719
17720         * doc/invoke.texi: Update the options enabled at -O1, -O2,
17721         and -O3.  Update the documentation for -fgcse-sm, -fgcse-las,
17722         -ftree-pre, and -fthread-jumps.
17723
17724 2005-02-02  Richard Sandiford  <rsandifo@redhat.com>
17725
17726         PR tree-optimization/19578
17727         * tree-flow.h (modified_noreturn_calls): Declare.
17728         (noreturn_call_p): Declare.
17729         * tree-flow-inline.h (noreturn_call_p): New function.
17730         (modify_stmt): Add modified noreturn calls to modified_noreturn_calls.
17731         * tree-cfg.c (modified_noreturn_calls): New variable.
17732         (cleanup_control_flow): Use noreturn_call_p.  Split basic blocks
17733         that contain a mid-block noreturn call.
17734         * tree-ssa.c (delete_tree_ssa): Clear modified_noreturn_calls.
17735
17736 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
17737
17738         * df.c (df_def_record_1, df_uses_record): Don't use
17739         DF_FOR_REGALLOC.
17740         * df.h (DF_FOR_REGALLOC): Remove.
17741
17742 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
17743
17744         PR c/19435
17745         * c-typeck.c (really_start_incremental_init): Reset
17746         constructor_max_index for arrays of incomplete type.
17747
17748 2005-02-02  Jeff Law  <law@redhat.com>
17749
17750         * gcse.c (struct reg_set): Store the block index where the register
17751         was set rather than the setting insn.
17752         (record_one_set, compute_transp): Corresponding changes.
17753         (pre_insert_copy_insn): Do not call replace_one_set.
17754         (replace_one_set): Remove.
17755
17756 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
17757
17758         PR other/15514
17759         * doc/gcov.texi: Fix typo.
17760
17761 2005-02-01  Richard Henderson  <rth@redhat.com
17762
17763         PR target/19680
17764         * config/i386/i386.h (MODES_TIEABLE_P): Use ix86_modes_tieable_p.
17765         * config/i386/i386.c (ix86_hard_regno_mode_ok): Change return
17766         type to bool.
17767         (ix86_tieable_integer_mode_p, ix86_modes_tieable_p): New.
17768         * config/i386/i386-protos.h: Update.
17769
17770 2005-02-01  Steven Bosscher  <stevenb@suse.de>
17771
17772         PR tree-optimization/19217
17773         * tree-cfg.c (verify_expr): Use the data field to see if TP was
17774         seen inside a PHI node.  Do not do the ADDR_EXPR check if it was.
17775         (verify_stmts): Pass (void*)1 as data to verify_expr to signal
17776         that it is walking a PHI node.
17777
17778 2005-02-01  Joseph S. Myers  <joseph@codesourcery.com>
17779
17780         * doc/extend.texi (Nested Functions): Update.
17781
17782 2005-02-01  Richard Henderson  <rth@redhat.com>
17783
17784         PR 19696
17785         * optabs.c (expand_copysign_absneg): Export.
17786         * optabs.h (expand_copysign_absneg): Declare.
17787         * config/rs6000/rs6000.md (copysigntf3): New.
17788
17789 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
17790
17791         PR tree-optimization/19633
17792         * tree-flow.h (struct ptr_info_def): Add field 'pt_null'.
17793         * tree-ssa-alias.c (init_alias_info): Initialize.
17794         (merge_pointed_to_info): Set.
17795         (add_pointed_to_expr): Set pt_null if EXPR is a NULL pointer.
17796         (dump_points_to_info_for): Show value of pt_null.
17797         (struct count_ptr_d): Declare.
17798         (find_ptr_dereference): Remove.
17799         (ptr_is_dereferenced_by): Remove.
17800         (count_ptr_derefs): New local function.
17801         (count_uses_and_derefs): New local function.
17802         (compute_points_to_and_addr_escape): Call it.  If the number
17803         of dereferences is greater than zero, mark the pointer as
17804         dereferenced.  If there are fewer dereferences than uses of
17805         the pointer, the pointer's value escapes.
17806
17807 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
17808
17809         PR tree-optimization/19670
17810         * tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED
17811         here...
17812         (verify_use): ... set it here, instead.
17813
17814 2005-02-01  Janis Johnson  <janis187@us.ibm.com>
17815
17816         * doc/sourcebuild.texi (Test directives): Fix formatting.
17817
17818         * doc/sourcebuild.texi (Test directives): Describe selector
17819         expressions.
17820
17821 2005-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
17822
17823         * config.gcc (powerpc64-*-linux*): Default to -m64 also for
17824         specific 64-bit CPUs.
17825
17826 2005-02-01  Richard Earnshaw  <rearnsha@arm.com>
17827
17828         PR target/16201
17829         * arm.c (arm_eliminable_register): New function.
17830         (adjacent_mem_locations): Don't allow eliminable registers.  Use
17831         HOST_WIDE_INT for address offsets.
17832         * arm-protos.h (arm_eliminable_register): Add prototype.
17833
17834 2005-02-01  Steven Bosscher  <stevenb@suse.de>
17835
17836         PR optimization/15242
17837         * params.def (PARAM_MAX_GOTO_DUPLICATION_INSNS): New param.
17838         * basic-block.h (duplicate_computed_gotos): Add prototype.
17839         * bb-reorder.c (duplicate_computed_gotos): New function to
17840         duplicate sufficiently small blocks ending in a computed jump.
17841         * passes.c (rest_of_compilation): Call duplicate_computed_gotos
17842         if not optimizing for size.
17843         * cfgcleanup.c (try_crossjump_bb): If not optimizing for size,
17844         never do tail merging for blocks ending in a computed jump.
17845         * doc/invoke.texi: Document the max-goto-duplication-insns param.
17846
17847 2005-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
17848
17849         Patch from Richard Sandiford <rsandifo@redhat.com>
17850         * reload1.c (choose_reload_regs): Prevent the find_equiv_reg() code
17851         from inheriting a subreg equivalence with a non-spill register.
17852
17853         * tree.h (DECL_FUNCTION_CODE): Document that it is overloaded.
17854
17855 2005-02-01  Alexandre Oliva  <aoliva@redhat.com>
17856
17857         * config/frv/frv.c (movcc_fp_destination_operand): New.
17858         (gpr_or_memory_operand): Fix typo in comment.
17859         (gpr_or_memory_operand_with_scratch): New.
17860         * config/frv/frv.h (PREDICATE_CODES): Add the two new predicates.
17861         * config/frv/frv.md (movcc_fp, movcc_fp_internal): Use
17862         movcc_fp_destination_operand.
17863         (reload_incc_fp): Use gpr_or_memory_operand_with_scratch.
17864         Legitimize memory addresses using a scratch register.
17865
17866 2005-01-31  Jeff Law  <law@redhat.com>
17867
17868         * tree-into-ssa.c (mark_def_sites_global_data): Make KILLS
17869         bitmap a sparse bitmap instead of a simple bitmap.
17870         (mark_def_sites_initialize_block):  Corresponding changes.
17871         (ssa_mark_def_sites_initialize_block): Likewise.
17872         (ssa_mark_phi_uses): Likewise.
17873         (mark_def_site, ssa_mark_def_sites): Likewise.
17874         (mark_def_site_blocks): Likewise.
17875         (rewrite_ssa_into_ssa): Likewise.
17876
17877         * tree-ssa-dom.c (record_cond): Pass correct variable type
17878         for last argument to htab_find_slot_with_hash.
17879
17880         * fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side
17881         effects when optimizing 0 % X.  Do not try to optimize X % 0.
17882
17883 2005-01-31  James E. Wilson  <wilson@specifixinc.com>
17884
17885         * config/ia64/itanium1.md (1_scall bypass): Change 2_mmalua to
17886         1_mmalua.
17887
17888 2005-02-01  Eric Christopher  <echristo@redhat.com>
17889
17890         * config/mips/mips.c (override_options): Warn if -mint64
17891         is used.
17892         * doc/invoke.texi (MIPS Options): Document that -mint64 is
17893         deprecated.
17894
17895 2005-02-01  Kazu Hirata  <kazu@cs.umass.edu>
17896
17897         * cse.c (cse_reg_info): Remove hash_next, next, regno.  Add
17898         timestamp.
17899         (cse_reg_info_list, cse_reg_info_list_free, REGHASH_SHIFT,
17900         REGHASH_SIZE, REGHASH_MASK, reg_hash, REGHASH_FN,
17901         cached_cse_reg_info, GET_CSE_REG_INFO): Remove.
17902         (cached_regno): Initialize to INVALID_REGNUM.
17903         (cse_reg_info_table_size,
17904         cse_reg_info_table_first_uninitialized,
17905         cse_reg_info_timestamp): New.
17906         (REG_TICK, REG_IN_TABLE, SUBREG_TICKED, REG_QTY): Use
17907         get_cse_reg_info.
17908         (init_cse_reg_info, get_cse_reg_info_1): New.
17909         (get_cse_reg_info): Cache the last look-up.
17910         (new_basic_block): Update the code to clear mappings from
17911         registers to cse_reg_info entries.
17912         (cse_main): Call init_cse_reg_info.
17913
17914         * cse.c (get_cse_reg_info): Update a comment.
17915
17916 2005-01-31  Steven Bosscher  <stevenb@suse.de>
17917
17918         PR c/19333
17919         * c-decl.c (start_decl): Do not warn about arrays of elements with
17920         an incomplete type here.
17921         (grokdeclarator): Do it here by making a pedwarn an error.
17922         * c-typeck.c (push_init_level): If there were previous errors with
17923         the constructor type, do not warn about braces for initializers.
17924         (process_init_element): Likewise for excess initializer elements.
17925
17926 2005-01-31  Kazu Hirata  <kazu@cs.umass.edu>
17927
17928         * cse.c (delete_trivially_dead_insn): Don't iterate.
17929
17930 2005-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
17931
17932         * config/rs6000/rs6000.md (copysignsf3): New expand.
17933         (copysigndf3): Likewise.
17934
17935 2005-01-31  Steven Bosscher  <stevenb@suse.de>
17936
17937         * recog.c (constrain_operands): Only look for earlyclobber operand
17938         conflicts if an '&' constraint was seen.
17939
17940 2005-01-31  Marc Espie <espie@openbsd.org>
17941
17942         * config.gcc: Don't include embedded systems fragment, switches default
17943         debugging format to ELF.
17944         * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no
17945         longer pick it up there.
17946
17947 2005-01-31  Dale Johannesen  <dalej@apple.com>
17948
17949         * doc/extend.texi (nested functions): Fix linkage description.
17950         Clarify that static is not allowed.
17951
17952 2005-01-31  Dale Johannesen  <dalej@apple.com>
17953
17954         * config/rs6000/darwin.md (movsf_low_di):  Make work.
17955         (movdf_low_di):  Make work.
17956
17957 2005-01-31  Dale Johannesen  <dalej@apple.com>
17958
17959         * config/rs6000/darwin-tramp.asm (__trampoline_setup):
17960         Make work for 64 bit.
17961
17962 2005-01-31  Roger Sayle  <roger@eyesopen.com>
17963             Dale Johannesen  <dalej@apple.com>
17964
17965         PR middle-end/19650
17966         * fold-const.c (fold_binary_op_with_conditional_arg):
17967         Make types match original operands, before STRIP_NOPS.
17968
17969 2005-01-31  Alan Modra  <amodra@bigpond.net.au>
17970
17971         * config/rs6000/linux-unwind.h (struct gcc_vregs): New.
17972         (struct gcc_regs): Rename from gcc_pt_regs.  Add more regs.
17973         (struct gcc_sigcontext): Delete.  Merge contents to..
17974         (struct gcc_ucontext): ..here.
17975         (get_sigcontext): Delete.
17976         (get_regs): New function, like get_sigcontext but return regs ptr.
17977         64-bit version finds regs from r1 to support vdso.
17978         (ppc_linux_aux_vector): New function.
17979         (ppc_fallback_frame_state): Modify for get_regs.  Restore fprs
17980         and vector regs.
17981
17982 2005-01-31  Ira Rosen  <irar@il.ibm.com>
17983
17984         * tree-vectorizer.c (vect_analyze_offset_expr): Use ssizetype instead
17985         sizetype.
17986         (vect_get_base_and_offset): Use ssizetype instead sizetype. Remove
17987         redundant fold. Fix misalignment for MINUS_EXPR.
17988         (vect_compute_data_ref_alignment): Use ssizetype instead sizetype.
17989         (vect_analyze_pointer_ref_access): Likewise.
17990         (vect_get_memtag_and_dr): Likewise.
17991
17992 2005-01-31  Richard Henderson  <rth@redhat.com>
17993
17994         * config/i386/i386.c (absnegsf2_mixed): Remove all of the # hackery.
17995         (absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed, absnegdf2_sse,
17996         absnegdf2_i387, absnegxf2_i387): Likewise.
17997
17998 2005-01-31  Richard Henderson  <rth@redhat.com>
17999
18000         PR 19696
18001         * optabs.c (expand_copysign_absneg): New.
18002         (expand_copysign_bit): Split out from ...
18003         (expand_copysign): ... here.  Use expand_copysign_absneg.
18004
18005 2005-01-30  Roger Sayle  <roger@eyesopen.com>
18006
18007         PR middle-end/19697
18008         * config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer
18009         constant as the second operand and a register as the third.
18010
18011 2005-01-31  Danny Smith  <dannysmith@users.sourceforge.net>
18012
18013         PR target/19704
18014         * config/i386/i386.c (ix86_function_ok_for_sibcall):  Also check
18015         that dllimport'd functions do not use all call-clobbered registers
18016         to pass parameters.
18017
18018 2005-01-30  Richard Henderson  <rth@redhat.com>
18019
18020         PR 19696
18021         * optabs.c (expand_absneg_bit): Split out from expand_unop and
18022         expand_abs_nojump and generalize.  Use operand_subword and
18023         emit_no_conflict_block.  Support large modes.
18024         (expand_abs_nojump): Use it.  Use HONOR_SIGNED_ZEROS to fall
18025         back to maximum.
18026         (expand_unop): Likewise.  Use HONOR_SIGNED_ZEROS to fall back
18027         negation to subtraction.
18028         (expand_copysign): Check that the format has signed zeros.
18029         Use operand_subword and emit_no_conflict_block.  Support large modes.
18030
18031 2005-01-30  Daniel Berlin  <dberlin@dberlin.org>
18032
18033         Fix PR tree-optimization/19624
18034
18035         * Makefile.in (tree-ssa-pre.o): Add CFGLOOP_H.
18036         * tree-ssa-pre.c: Add cfgloop.h.
18037         Update comment.
18038         (pre_stats): New member, constified.
18039         (inserted_exprs): New static variable.
18040         (NECESSARY): New macro.
18041         (create_expression_by_pieces): Fold the expression, and
18042         mark it as defaulting to not necessary. Also put in
18043         inserted_exprs.
18044         (fully_constant_expression): New function.
18045         (insert_into_preds_of_block): Modify to not insert phis when we
18046         are playing with induction variables.
18047         Push phis onto the inserted_exprs vector, and mark them as not
18048         necessary by default.
18049         (insert_aux): Call fully_constant_expression on eprime.
18050         If all edges produce the same value, mark it constant.
18051         (mark_operand_necessary): New function.
18052         (remove_dead_inserted_code): New function.
18053         (init_pre): Init loop optimizer to get loop info.
18054         (fini_pre): Free loop_optimizer, and inserted_exprs vec.
18055         (execute_pre): Commit edge inserts, then remove dead code.
18056
18057 2005-01-30  Richard Henderson  <rth@redhat.com>
18058
18059         * rtl.c (rtx_equal_p): No early exit for CONST_VECTOR.
18060         * varasm.c (const_rtx_hash_1): Handle CONST_VECTOR.
18061
18062 2005-01-30  Richard Henderson  <rth@redhat.com>
18063
18064         PR target/19700
18065         * config/i386/i386.c (ix86_expand_copysign): New.
18066         (ix86_split_copysign_const): New.
18067         (ix86_split_copysign_var): Rename from ix86_split_copysign,
18068         rearrange op1/nmask operands.
18069         * config/i386/i386-protos.h: Update.
18070         * config/i386/i386.md (copysignsf3): Use ix86_expand_copysign.
18071         (copysigndf3): Likewise.
18072         (copysignsf3_const, copysigndf3_const): New.
18073         (copysignsf3_var): Rename from copysignsf3, split out splitter
18074         and fix split predicate for X constraint.
18075         (copysigndf3_var): Similarly.
18076
18077 2005-01-30  Kazu Hirata  <kazu@cs.umass.edu>
18078
18079         * optabs.c, doc/c-tree.texi, doc/install.texi, doc/md.texi,
18080         doc/passes.texi, doc/rtl.texi, doc/sourcebuild.texi,
18081         doc/tm.texi, doc/tree-ssa.texi: Update copyright.
18082
18083 2005-01-29  Richard Henderson  <rth@redhat.com>
18084
18085         PR target/19690
18086         * config/i386/i386.md (movdf_nointeger, movdf_integer): Fix ordering
18087         of # and * in constraints.
18088
18089 2005-01-29  Richard Henderson  <rth@redhat.com>
18090
18091         PR middle-end/19689
18092         * expr.c (store_field): Don't strip sub-mode cast when the input
18093         data is even smaller.
18094
18095 2005-01-29  Richard Henderson  <rth@redhat.com>
18096
18097         PR middle-end/19687
18098         * expr.c (categorize_ctor_elements_1): Check for CONSTRUCTOR of a
18099         union being empty.
18100
18101 2005-01-29  Richard Henderson  <rth@redhat.com>
18102
18103         * combine.c (make_field_assignment): Fix argument order
18104         to gen_int_mode.
18105
18106 2005-01-29  Richard Guenther <richard.guenther@uni-tuebingen.de>
18107
18108         PR tree-optimization/15791
18109         * fold-const.c (extract_array_ref): New function.
18110         (fold): Fold comparisons between &a[i] and &a[j] or
18111         semantically equivalent trees.
18112
18113 2005-01-29  Jeff Law  <law@redhat.com>
18114
18115         * gcse.c (insert_expr_in_table): Revamp handling of available
18116         and anticipatable occurrence lists to avoid unnecessary list
18117         walking.
18118         (insert_set_in_table): Similarly.
18119
18120 2005-01-29  Joseph S. Myers  <joseph@codesourcery.com>
18121
18122         * c-common.c (fix_string_type): Just use c_build_qualified_type to
18123         build string type.
18124         (c_build_qualified_type): Build qualified array types with
18125         TYPE_MAIN_VARIANT pointing to corresponding unqualified type.
18126         * c-decl.c (c_make_fname_decl): Build unqualified array type
18127         before qualified type.
18128         (grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element
18129         type is qualified, not just if type itself is.  Don't apply
18130         qualifiers to array type when declarator is processed.  Apply
18131         qualifiers to field type whether or not it is an array type.
18132         Don't handle array types specially for applying qualifiers to
18133         variables.
18134         * c-typeck.c (composite_type): Build unqualified element type and
18135         array type when forming composite of array types.
18136         (common_pointer_type, comptypes, comp_target_types,
18137         type_lists_compatible_p, build_indirect_ref, build_array_ref,
18138         convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array
18139         types.
18140         (type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE
18141         (args2) in variables a1 and a2.
18142
18143 2005-01-29  Kazu Hirata  <kazu@cs.umass.edu>
18144
18145         * cse.c (n_elements_made, max_elements_made): Remove.
18146         (insert): Don't touch n_elements_made.
18147         (cse_main): Don't touch n_elements_made or max_elements_made.
18148
18149 2005-01-28  Stephane Carrez  <stcarrez@nerim.fr>
18150
18151         PR target/15384
18152         * config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a
18153         configuration part of dp-bit.c to be lost.
18154
18155 2005-01-28  Roger Sayle  <roger@eyesopen.com>
18156
18157         * expmed.c (expand_mult_highpart_optab): When attempting to use
18158         a non-widening multiplication in a wider mode, the operands need
18159         to be converted (zero or sign extended) to that mode.
18160
18161 2005-01-28  Ian Lance Taylor  <ian@airs.com>
18162
18163         PR middle-end/16558
18164         PR middle-end/19583
18165         * gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls
18166         through if both operands fall through.
18167
18168 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
18169
18170         * cse.c (fold_rtx) <PC>: Don't optimize.
18171
18172 2005-01-28  Jeff Law  <law@redhat.com>
18173
18174         * fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X.
18175         (case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly.
18176
18177 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
18178
18179         * cse.c (cse_reg_info_free_list, cse_reg_info_used_list,
18180         cse_reg_info_used_list_end): Remove.
18181         (cse_reg_info_list, cse_reg_info_list_free): New.
18182         (get_cse_reg_info): When allocating an instance of
18183         cse_reg_info, add it to the beginning of the cse_reg_info_list
18184         list.  Remove code to maintain cse_reg_info_used_list.
18185         (new_basic_block): Reset the free list to the beginning of
18186         cse_reg_info_list.
18187
18188 2005-01-28  Richard Sandiford  <rsandifo@redhat.com>
18189
18190         * config/frv/frv.c (bdesc_2arg): Remove __MDPACKH.
18191         (frv_init_builtins): Change its prototype to take 4 uhalf arguments.
18192         (frv_expand_mdpackh_builtin): New function.
18193         (frv_expand_builtin): Use it to expand __MDPACKH.
18194         * doc/extend.texi (__MDPACKH): Update documentation.
18195
18196 2005-01-28  Uros Bizjak  <uros@kss-loka.si>
18197
18198         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use
18199         SSE_FLOAT_MODE_P for use_sse computation.
18200
18201 2005-01-28  Ralf Corsepius  <ralf.corsepius@rtems.org>
18202
18203         PR target/19663
18204         * config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine.
18205
18206 2005-01-27  Richard Henderson  <rth@redhat.com>
18207
18208         * builtins.c (expand_builtin_copysign): New.
18209         (expand_builtin): Call it.
18210         * genopinit.c (optabs): Add copysign_optab.
18211         * optabs.c (init_optabs): Initialize it.
18212         (expand_copysign): New.
18213         * optabs.h (OTI_copysign, copysign_optab): New.
18214         (expand_copysign): Declare.
18215
18216         * config/alpha/alpha.md (UNSPEC_COPYSIGN): New.
18217         (copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New.
18218
18219         * config/i386/i386.c (ix86_build_signbit_mask): Split from ...
18220         (ix86_expand_fp_absneg_operator): ... here.
18221         (ix86_split_copysign): New.
18222         * config/i386/i386-protos.h: Update.
18223         * config/i386/i386.md (UNSPEC_COPYSIGN): New.
18224         (copysignsf3, copysigndf3): New.
18225
18226         * config/ia64/ia64.md (UNSPEC_COPYSIGN): New.
18227         (copysignsf3, ncopysignsf3): New.
18228         (copysigndf3, ncopysigndf3): New.
18229         (copysignxf3, ncopysignxf3): New.
18230         * config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN.
18231
18232 2005-01-27  Arend Bayer  <arend.bayer@web.de>
18233             Kazu Hirata  <kazu@cs.umass.edu>
18234
18235         * cse.c: (find_best_addr): Don't call copy_rtx before calling
18236         fold_rtx.  Save cost recomputation if fold_rtx did nothing.
18237         (fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is
18238         NULL_RTX.
18239
18240 2005-01-27  Jeff Law  <law@redhat.com>
18241
18242         * tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register
18243         definitions of SSA_NAMEs which are not being rewritten.
18244         (rewrite_ssa_into_ssa): Only initialize the current definition
18245         of an SSA_NAME if that SSA_NAME has been marked for rewriting.
18246         If checking is enabled, assert that SSA_NAME_AUX is clear for all
18247         SSA_NAMEs before returning.
18248
18249 2005-01-27  Kazu Hirata  <kazu@cs.umass.edu>
18250
18251         * c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c,
18252         cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h,
18253         tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c,
18254         config/avr/avr.md, config/cris/aout.h, config/cris/cris.h,
18255         config/mips/iris6.h, config/sh/sh.c: Update copyright.
18256
18257 2005-01-27  Steven Bosscher  <stevenb@suse.de>
18258
18259         PR middle-end/17278
18260         * opts.c (decode_options): Move flag_thread_jumps from -O1 and
18261         higher to -O2 and higher.  Likewise for tree PRE.
18262         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2
18263         and better.
18264
18265 2005-01-27  Ian Lance Taylor  <ian@airs.com>
18266
18267         PR middle-end/19583
18268         * gimple-low.c (try_catch_may_fallthru): New static function.
18269         (block_may_fallthru): Handle TRY_CATCH_EXPR.
18270         * tree-inline.c (expand_call_inline): Don't warn about reaching
18271         the end of a non-void function being inlined if the function uses
18272         a return slot.
18273
18274 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
18275
18276         * config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.
18277
18278         PR c/18946
18279         * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
18280         (pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P.
18281         (implicitly_declare): Handle error_mark_node.
18282
18283 2005-01-27  Richard Henderson  <rth@redhat.com>
18284
18285         PR tree-opt/14329
18286         * tree.h (struct tree_decl): Add debug_expr_is_from.
18287         (DECL_DEBUG_EXPR_IS_FROM): New.
18288         (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
18289         * dwarf2out.c (dwarf2out_var_location): Update to match.
18290         * tree-outof-ssa.c (create_temp): Likewise.
18291         * var-tracking.c (track_expr_p): Likewise.
18292         * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
18293         * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
18294         * toplev.c (default_tree_printer): Likewise.
18295
18296 2005-01-27  Alexandre Oliva  <aoliva@redhat.com>
18297
18298         * config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS,
18299         GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
18300
18301 2005-01-27  Steven Bosscher  <stevenb@suse.de>
18302
18303         * tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
18304         CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
18305         ASM_CLOBBERS): Add tree checks.
18306
18307         * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE.
18308         (SWITCH_STMT_COND, SWITCH_STMT_BODY): New.
18309         * c-common.def (SWITCH_STMT): Update to match.
18310         * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor
18311         macros instead of SWITCH_EXPR ones.
18312         * c-dump.c (c_dump_tree): Likewise.
18313         * c-gimplify.c (gimplify_switch_stmt): Likewise.
18314         * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise.
18315
18316         * doc/c-tree.texi (SWITCH_STMT): Update accessor macro names.
18317
18318 2005-01-27  Alan Modra  <amodra@bigpond.net.au>
18319
18320         * unwind-dw2.c (execute_stack_op): Add missing cases for
18321         DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor.
18322
18323 2005-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
18324
18325         * config.gcc (Obsolete configurations): Remove 'dummy', add
18326         sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and
18327         sparc-*-openbsd*.
18328
18329 2005-01-26  Diego Novillo  <dnovillo@redhat.com>
18330
18331         PR tree-optimization/19633
18332         * tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle
18333         CALL_EXPRs.
18334         (maybe_create_global_var): Do not create .GLOBAL_VAR if there
18335         are no call-clobbered variables.
18336         * tree-outof-ssa.c (check_replaceable): Return false for calls
18337         with side-effects.
18338
18339 2005-01-26  Ulrich Weigand  <uweigand@de.ibm.com>
18340
18341         * dbxout.c (dbxout_symbol_location): Resolve constant pool references
18342         even for variables with NULL DECL_INITIAL.
18343
18344 2005-01-26  Stuart Hastings  <stuart@apple.com>
18345
18346         * gimplify.c (shortcut_cond_expr): Re-compute side-effects.
18347
18348 2005-01-26  Richard Henderson  <rth@redhat.com>
18349
18350         PR middle-end/18008
18351         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
18352         field's type.
18353         * expr.c (store_field): Strip conversions to odd-bit-sized types
18354         if the destination field width matches.
18355
18356 2005-01-26  Richard Henderson  <rth@redhat.com>
18357
18358         * c-decl.c, expmed.c, expr.c: Revert last change.
18359
18360 2005-01-26  Richard Henderson  <rth@redhat.com>
18361
18362         PR middle-end/18008
18363         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
18364         field's type.
18365         * expmed.c (store_fixed_bit_field): Create a paradoxical subreg
18366         if we don't need the bits above those present in the current mode.
18367         * expr.c (store_field): Strip conversions to odd-bit-sized types
18368         if the destination field width matches.
18369
18370 2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
18371
18372         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
18373         either -ffast-math or -funsafe-math-optimizations is in use.
18374
18375 2005-01-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
18376
18377         PR target/19293
18378         PR target/19329
18379         * config/avr/avr.c (notice_update_cc): Only set condition code for
18380         ashrqi3 if shift count > 0.
18381         (out_shift_with_cnt): Handle shift count <= 0 as a no-op.
18382         (ashlqi3_out, ashlhi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out,
18383         ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Handle shift
18384         count <= 0 as a no-op, and shift count >= width by copying zero
18385         or sign bit to all bits of the result.
18386         * config/avr/avr.md (all shifts): Add alternatives for zero shift
18387         count, with attribute "length" set to 0 and "cc" set to "none".
18388
18389 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
18390
18391         * doc/invoke.texi: Document -mTLS.
18392
18393         * testsuite/gcc.target/frv/all-tls-global-dynamic.c: New.
18394         * testsuite/gcc.target/frv/all-tls-initial-exec.c: New.
18395         * testsuite/gcc.target/frv/all-tls-initial-exec-pic.c: New.
18396         * testsuite/gcc.target/frv/all-tls-local-dynamic.c: New.
18397         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt.c: New.
18398         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt-pic.c: New.
18399         * testsuite/gcc.target/frv/all-tls-local-exec.c: New.
18400         * testsuite/gcc.target/frv/all-tls-local-exec-TLS.c: New.
18401
18402         * configure.ac: Check for a TLS capable gas.
18403
18404         * configure: Regenerate.
18405
18406 2005-01-26  Richard Henderson  <rth@redhat.com>
18407
18408         PR middle-end/18008
18409         * combine.c (make_field_assignment): Simplify store to zero_extract
18410         from a source with an overlapping mask.
18411
18412 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
18413
18414         2004-11-11  Eric Christopher  <echristo@redhat.com>
18415
18416         * config/frv/frv.md: Add fr400_integer automaton. Don't
18417         allow TYPE_MUL, TYPE_MACC, or TYPE_CUT to issue in parallel
18418         to TYPE_MACC.
18419
18420 2005-01-26  Steven Bosscher  <stevenb@suse.de>
18421
18422         PR middle-end/16585
18423         * cfgbuild.c (make_edges): Do not clear or set
18424         current_function_has_computed_jump.
18425         * function.h (struct function): Remove the has_computed_jump field.
18426         (current_function_has_computed_jump): Do not define.
18427         * sched-rgn.c (is_cfg_nonregular): Return true if a basic block ends
18428         in a computed jump.  Ignore current_function_has_computed_jump.
18429
18430 2005-01-26  Richard Henderson  <rth@redhat.com>
18431
18432         PR middle-end/19515
18433         * expr.c (categorize_ctor_elements): New argument p_must_clear.
18434         (categorize_ctor_elements_1): Likewise.  Detect a union that isn't
18435         fully initialized.
18436         (mostly_zeros_p): Update for new categorize_ctor_elements argument.
18437         * gimplify.c (gimplify_init_constructor): Likewise.  Only shove
18438         objects into static storage if they have more than one non-zero value.
18439         * tree.h (categorize_ctor_elements): Update decl.
18440
18441 2005-01-26  Steven Bosscher  <stevenb@suse.de>
18442
18443         PR middle-end/19616
18444         * tree.h (CALL_EXPR_TAILCALL): Add comment.
18445         * calls.c (check_sibcall_argument_overlap_1): Revert the change
18446         to this function from 2004-07-10.
18447         * tree-tailcall.c (suitable_for_tail_opt_p): Do not consider the
18448         the current function for tail call optimizations if the address
18449         of one of it its arguments is taken.
18450
18451 2005-01-26  Kazu Hirata  <kazu@cs.umass.edu>
18452
18453         * cse.c (fold_rtx): Call equiv_constant only when necessary.
18454
18455 2005-01-26  Bernd Schmidt  <bernd.schmidt@analog.com>
18456
18457         * function.c (expand_function_end): If current_function_calls_alloca,
18458         emit stack restore in a place that is reached when the function falls
18459         through at the end.
18460
18461 2005-01-26  Alexandre Oliva  <aoliva@redhat.com>
18462
18463         * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
18464         rule to avoid matching inappropriate suffix rule.
18465
18466 2005-01-26  Jan Hubicka  <jh@suse.cz>
18467
18468         PR tree-optimization/19241
18469         * tree-inline.c (copy_body_r): Do not walk subtrees after substituting.
18470
18471 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
18472
18473         * config/cris/cris.h (LIB_SPEC) <sim*>: Use -lsyslinux, not
18474         -lsyssim.  Wrap -lc -lsyssim in --start-group --end-group instead
18475         of doubling.
18476         (STARTFILE_SPEC): Add crti.o, before crtbegin.o.
18477         <sim*>: Always use crt1.o, regardless of N in simN.
18478         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
18479         (ENDFILE_SPEC): Add crtn.o, after crtend.o.
18480         (CRT_CALL_STATIC_FUNCTION): Remove.
18481         * config/cris/aout.h (STARTFILE_SPEC): <!melinux && sim*>: Always
18482         use crt1.o, regardless of N in simN.
18483         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
18484         (LIB_SPEC): Do not define; default to the one in config/cris/cris.h.
18485         (CRIS_CPP_SUBTARGET_SPEC) <melinux && !nostdinc>: Remove special
18486         case isystem setting.
18487         (MAX_OFILE_ALIGNMENT): Correct to 32, not 16.
18488
18489 2005-01-25  Ian Lance Taylor  <ian@airs.com>
18490
18491         * gimple-low.c (block_may_fallthru): Correct handling of
18492         SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
18493
18494 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
18495
18496         * config/cris/cris.h (CPP_SPEC): Adjust the various mtune=
18497         handlers to match indentation; nested under the mtune=* handler.
18498         Similar for mcpu= and march=.
18499
18500 2005-01-25  Daniel Jacobowitz  <dan@codesourcery.com>
18501
18502         * config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
18503         * config/mips/linux64.h (LIB_SPEC): Likewise.
18504         * config/mn10300/linux.h (LIB_SPEC): Likewise.
18505         * config/sh/linux.h (LIB_SPEC): Likewise.
18506
18507 2005-01-25  Aldy Hernandez  <aldyh@redhat.com>
18508
18509         * config/frv/frv.c (frv_legitimize_tls_address): New.
18510         (TARGET_HAVE_TLS): Define.
18511         (FRV_SYMBOL_REF_TLS_P): Define.
18512         (frv_override_options): Handle new register classes.
18513         (frv_legitimate_address_p): Reject tls addresses.
18514         (frv_legitimize_address): Handle TLS addresses.
18515         (gen_inlined_tls_plt): New.
18516         (gen_tlsmoff): New.
18517         (frv_legitimize_tls_address): New.
18518         (unspec_got_name): Add TLS entries.
18519         (got12_operand): Add R_FRV_TLSMOFF12 case.
18520         (frv_emit_move): Fixup TLS addresses.
18521         (frv_emit_movsi): Legitimize TLS addresses.
18522
18523         * config/frv/frv.h (MASK_BIG_TLS): New.
18524         (TARGET_BIG_TLS): New.
18525         (HAVE_AS_TLS): Define.
18526         (TARGET_SWITCHES): Add -mTLS and -mtls options.
18527         (enum reg_class): Add GR8_REGS, GR9_REGS, GR89_REGS.
18528         (REG_CLASS_NAMES): Same.
18529         (REG_CLASS_CONTENTS): Same.
18530         (CONSTRAINT_LEN): New.
18531         (REG_CLASS_FROM_CONSTRAINT): New.
18532         (PREDICATE_CODES): Add symbolic_operand.
18533
18534         * config/frv/frv.md (define_constants): Add UNSPEC_GETTLSOFF,
18535         UNSPEC_TLS_LOAD_GOTTLSOFF12, UNSPEC_TLS_INDIRECT_CALL,
18536         UNSPEC_TLS_TLSDESC_LDD, UNSPEC_TLS_TLSDESC_LDD_AUX,
18537         UNSPEC_TLS_TLSOFF_LD, UNSPEC_TLS_LDDI, UNSPEC_TLSOFF_HILO,
18538         R_FRV_GOTTLSOFF_HI, R_FRV_GOTTLSOFF_LO, R_FRV_TLSMOFFHI,
18539         R_FRV_TLSMOFFLO, R_FRV_TLSMOFF12, R_FRV_TLSDESCHI,
18540         R_FRV_TLSDESCLO, R_FRV_GOTTLSDESCHI, R_FRV_GOTTLSDESCLO, GR8_REG,
18541         GR9_REG, GR14_REG, LRREG.
18542         (type): Add load_or_call attribute.
18543         ("load_or_call"): New reservation.
18544         ("call_gettlsoff"): New.
18545         ("tls_indirect_call"): New.
18546         ("tls_load_gottlsoff12"): New.
18547         ("tlsoff_hilo"): New.
18548         ("tls_tlsdesc_ldd"): New.
18549         ("tls_tlsoff_ld"): New.
18550         ("tls_lddi"): New.
18551
18552         * config/frv/frv-protos.h (symbolic_operand): Protoize.
18553
18554         2005-01-25  Alexandre Oliva  <aoliva@redhat.com>
18555
18556         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Define.
18557         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Declare.
18558         * config/frv/frv.c (TLS_BIAS): Define.
18559         (frv_output_dwarf_dtprel): New.
18560
18561 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
18562
18563         PR rtl-optimization/19579
18564         * ifcvt.c (noce_try_cmove_arith): If emitting instructions to set up
18565         both A and B, see if they don't clobber registers the other expr uses.
18566
18567 2005-01-25  J"orn Rennecke <joern.rennecke@st.com>
18568
18569         * real.c (do_add): Initialize signalling and canonical members.
18570
18571         * real.c (real_from_integer): Zero out destination.
18572
18573 2005-01-18  Jan Hubicka  <jh@suse.cz>
18574
18575         PR tree-optimize/19337
18576         * tree-inline.c (initialize_inlined_parameters): Copy
18577         saved_static_chain_decl only.
18578
18579 2005-01-25  Richard Henderson  <rth@redhat.com>
18580
18581         PR target/19556
18582         PR target/19584
18583         * config/i386/i386.c (x86_inter_unit_moves): Zero.
18584         (ix86_preferred_reload_class): Rewrite fp-constant section, with
18585         80387 enabled, to return a proper subclass.  Return the subset that
18586         overlaps with GENERAL_REGS for PLUS.
18587         * config/i386/i386.md (movsi_1, movdi_2): Set type to "mmx" for pxor.
18588
18589 2005-01-25  Richard Henderson  <rth@redhat.com>
18590
18591         PR middle-end/19609
18592         * tree-complex.c (expand_complex_div_wide): Use the correct formulae.
18593
18594 2005-01-25  Roger Sayle  <roger@eyesopen.com>
18595
18596         * expmed.c (choose_multiplier): Change interface to return the
18597         multiplier lowpart as an rtx instead of an unsigned HOST_WIDE_INT.
18598         (expand_divmod): Update calls to choose_multiplier.
18599
18600 2005-01-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18601
18602         PR middle-end/19330
18603         * expmed.c (extract_bit_field): Use adjust_address instead of
18604         gen_lowpart when op0 is a MEM.
18605
18606 2005-01-24  Steven Bosscher  <stevenb@suse.de>
18607
18608         * cfgexpand.c (expand_gimple_tailcall): Fix typo.
18609
18610 2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
18611
18612         * config/mips/irix-csr.c: New file.
18613         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
18614         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
18615         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
18616         executables.
18617
18618 2005-01-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
18619
18620         PR bootstrap/19364
18621         * config.gcc (sparc-*-elf*): Remove sol2.h, sparc/sol2.h and
18622         sparc/elf.h, add sparc/sp-elf.h.
18623         (sparc-*-rtems*): Likewise.
18624         (sparclite-*-elf*): Remove sol2.h, sparc/sol2.h, sparc/elf.h and
18625         tm-dwarf2.h, add sparc/sp-elf.h.
18626         (sparc86x-*-elf): Likewise.
18627         (sparc64-*-elf*): Remove sol2.h, sparc/sol2.h and tm-dwarf2.h.
18628         * config/sparc/liteelf.h (TARGET_SUB_OS_CPP_BUILTINS): Rename into
18629         TARGET_OS_CPP_BUILTINS.
18630         * config/sparc/sp86x-elf (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
18631         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
18632         Undefine it.
18633         * config/sparc/openbsd64.h (NO_IMPLICIT_EXTERN_C): Undefine.
18634         * config/sparc/sp64-elf.h (NO_IMPLICIT_EXTERN_C): New macro.
18635         (SWITCH_TAKES_ARG): Likewise.
18636         (LOCAL_LABEL_PREFIX): Likewise.
18637         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
18638         (TARGET_N_FORMAT_TYPES): Delete.
18639         (TARGET_FORMAT_TYPES): Likewise.
18640         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
18641         * config/sparc/elf.h: Delete.
18642         * config/sparc/sp-elf.h: New file.
18643
18644 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
18645
18646         * tree-flow-inline.h (phi_arg_from_edge): Remove.
18647         * tree-flow.h: Remove the corresponding prototype.
18648         * tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-ssa.c,
18649         tree-vectorizer.c: Use dest_idx instead of phi_arg_from_edge.
18650
18651 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
18652
18653         PR target/17751
18654         * config/rs6000/rs6000.c (rs6000_file_start): Create toc section
18655         for AIX ABI or ELF -fPIC.
18656         (rs6000_emit_load_toc_table): Don't create toc_section here.
18657         (rs6000_xcoff_file_start): Nor here.
18658
18659 2005-01-24  J"orn Rennecke <joern.rennecke@st.com>
18660
18661         * sh.c (ra.h): Don't #include.
18662         (hard_regs_intersect_p): New function, resurrected from ra.c.
18663
18664         * sh.c: Fix 1996 Copyright.
18665
18666 2005-01-24  Richard Henderson  <rth@redhat.com>
18667             Aldy Hernandez  <aldyh@redhat.com>
18668
18669         * regrename.c (note_sets): Handle subregs.
18670
18671 2005-01-24  Joseph S. Myers  <joseph@codesourcery.com>
18672
18673         PR bootstrap/18058
18674         * genconditions.c (write_header, write_conditions): Elide file if
18675         not GCC >= 3.0.1.
18676
18677 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
18678
18679         * c-opts.c, expmed.c, gengtype.c, tree-complex.c,
18680         config/arm/iwmmxt.md, config/avr/avr.c, config/s390/s390.h:
18681         Update copyright.
18682
18683 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
18684
18685         * builtins.c (get_pointer_alignment, gimplify_va_arg_expr,
18686         expand_builtin_printf, expand_builtin_fprintf,
18687         expand_builtin_sprintf): Use POINTER_TYPE_P instead TREE_CODE
18688         checking against POINTER_TYPE.
18689         (validate_arglist): Handle POINTER_TYPE code by checking
18690         POINTER_TYPE_P.
18691
18692 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
18693
18694         * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1,
18695         init_rtlanal): New.
18696         (for_each_rtx): Call for_each_rtx_1.
18697         * rtl.h (init_rtlanal): Declare.
18698         * toplev.c (backend_init): Call init_rtlanal.
18699
18700 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
18701
18702         * flow.c (propagate_one_insn): Formatting.
18703
18704         PR middle-end/19551
18705         * flow.c (libcall_dead_p): Be more conservative if unsure.
18706         If there are any instructions between insn and call, see if they are
18707         all dead before saying the libcall is dead.
18708
18709 2005-01-24  Uros Bizjak  <uros@kss-loka.si>
18710
18711         * config/i386/i386.md (*extendsfdf2_sse): Use "nonimmediate_operand"
18712         operand constraint for operand 0.
18713
18714 2005-01-23  Richard Henderson  <rth@redhat.com>
18715
18716         PR 19486
18717         * tree-complex.c (expand_complex_div_wide): Set EDGE_FALLTHRU on
18718         edges leading to join block.
18719
18720 2005-01-23  Roger Sayle  <roger@eyesopen.com>
18721
18722         * expmed.c (expand_mult_highpart): Make static.  Change type of
18723         constant multiplier argument from unsigned HOST_WIDE_INT to rtx.
18724         (expand_divmod): Updates calls to expand_mult_highpart by using
18725         gen_int_mode to pass a CONST_INT rtx.
18726         * rtl.h (expand_mult_highpart): Remove prototype.
18727
18728 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
18729
18730         * flow.c (regset_bytes, regset_size): Remove.
18731
18732         * cfganal.c: Fix a reference to Harvey's paper.
18733
18734 2005-01-23  Steven Bosscher  <stevenb@suse.de>
18735
18736         PR rtl-optimization/19464
18737         * tree-optimize.c (init_tree_optimization_passes): Add one more
18738         copyrename pass just before out-of-ssa.
18739
18740 2005-01-23  Joseph S. Myers  <joseph@codesourcery.com>
18741
18742         PR bootstrap/18058
18743         * recog.c (recog_memoized): Don't define if GENERATOR_FILE.
18744         * ggc-none.c (ggc_free): Define.
18745
18746 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
18747
18748         * cse.c (max_reg, max_insn_uid): Remove.
18749         (cse_main): Don't access max_reg or max_insn_uid.
18750
18751         * c-common.c (explicit_flag_signed_bitfields,
18752         lang_statement_code_p, lang_expand_function_end): Remove.
18753         * c-common.h: Remove the corresponding declarations.
18754         * c-opts.c (c_common_handle_option): Remove all write access
18755         to explicit_flag_signed_bitfields.
18756
18757         * cgraph.c (cgraph_varpool_n_nodes): Remove.
18758         (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
18759         * cgraph.h: Remove the corresponding declaration.
18760
18761         * gcse.c (null_pointer_info): Remove.
18762
18763 2005-01-23  Roger Sayle  <roger@eyesopen.com>
18764             Eric Botcazou  <ebotcazou@libertysurf.fr>
18765
18766         * combine.c (simplify_logical): Only simplify logical expressions
18767         of the form ior(and(x,y),z) by the inverse distributive law if the
18768         result is cheaper than the original.
18769
18770 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
18771
18772         * alias.c, c-common.h, c-incpath.c, c-incpath.h, expr.c,
18773         fold-const.c, gimplify.c, params.h, tree-data-ref.c,
18774         tree-if-conv.c, tree-nested.c, tree-outof-ssa.c,
18775         tree-ssa-dom.c, tree-vectorizer.c, tree.def, config/darwin.c,
18776         config/freebsd-spec.h, config/arm/arm.h,
18777         config/h8300/h8300.md, config/i386/i386.md,
18778         config/i386/predicates.md, config/i386/sse.md,
18779         config/ia64/ia64.c, config/ip2k/ip2k.c, config/s390/s390.c,
18780         config/vax/vax.md: Fix comment typos.  Follow spelling
18781         conventions.
18782
18783 2005-01-23  Steven Bosscher  <stevenb@suse.de>
18784
18785         * gengtype.c (walk_type): Produce `not equal to' compares for loop
18786         tests, instead of `less than'.
18787
18788 2005-01-23  Richard Sandiford  <rsandifo@redhat.com>
18789
18790         * function.c (assign_parm_setup_block): When creating a new stack slot
18791         for a parameter, get its alignment from the parameter's DECL_ALIGN
18792         rather than the type's TYPE_ALIGN.  Make sure that the parameter
18793         is at least word aligned.
18794
18795 2005-01-22  Roger Sayle  <roger@eyesopen.com>
18796
18797         PR middle-end/19378
18798         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
18799
18800 2005-01-22  Richard Henderson  <rth@redhat.com>
18801
18802         PR target/19506
18803         * config/i386/i386.md (movsfcc_1_sse_max): Use nonimmediate_operand
18804         in both compare operands.
18805         (movdfcc_1_sse_max): Likewise.
18806         (movsfcc_1_sse): Likewise.  Add earlyclobber for scratch.
18807         (movdfcc_1_sse): Likewise.
18808         * config/i386/i386.c (ix86_split_sse_movcc): Emit copies into the
18809         scratch register as needed.
18810
18811 2005-01-22  Richard Henderson  <rth@redhat.com>
18812
18813         * config/i386/i386.md (smaxsf3): Fix mnemonic typo.
18814
18815         * config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
18816
18817 2005-01-22  Richard Henderson  <rth@redhat.com>
18818
18819         * genopinit.c (optabs): Use smin/smax for floating point too.
18820         * doc/md.texi: Update to match.  Clarify that floating point
18821         results are undefined for +0/-0 and NaN.
18822         * doc/rtl.texi: Likewise.
18823         * rtl.def (SMIN, SMAX): Likewise
18824         * tree.def (MIN_EXPR, MAX_EXPR): Likewise.
18825
18826         * config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
18827         leading 's' to the name.
18828         * config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
18829         smaxxf3, sminxf3): Likewise.
18830         * config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
18831         Likewise.
18832
18833 2005-01-22  Paul Brook  <paul@codesourcery.com>
18834
18835         * config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.
18836
18837 2005-01-21  Mark Dettinger  <dettinge@de.ibm.com>
18838
18839         * config/s390/s390.c (struct processor_costs): New fields
18840         dlgr, dlr, dr, dsgfr, dsgr.
18841         (z900_cost, z990_cost): Values for new fields.
18842         (s390_rtx_costs): New cases MEM und COMPARE in switch
18843         statement. Modified handling of SIGN_EXTEND, ZERO_EXTEND,
18844         DIV, MOD, UDIV, UMOD.
18845
18846 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
18847
18848         * config/s390/s390.md ("doloop_si64"): Reload input value directly
18849         into the register being decremented.
18850         ("doloop_si31", "doloop_di"): Likewise.
18851         ("*doloop_si_long"): Adapt pattern.
18852
18853 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
18854
18855         * config/s390/s390.h (HARD_REGNO_NREGS): Fix computation for
18856         access registers.
18857         (CLASS_MAX_NREGS): Likewise.
18858
18859 2005-01-21  Daniel Berlin  <dberlin@dberlin.org>
18860
18861         * doc/tree-ssa.texi (Statement Operands): Add example for new
18862         must-def macro. Note deprecation of old operands interface.
18863
18864 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
18865
18866         PR tree-optimization/19484
18867         * tree-cfg.c (remove_fallthru_edge): New function.
18868         (cleanup_control_flow): Remove fallthru edges from calls that are
18869         now known not to return.
18870
18871 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
18872
18873         Fix PR tree-optimization/19038
18874         * tree-ssa-dom.c (cprop_operand): Don't replace loop invaeriant
18875         copies with loop variant ones.
18876
18877 2005-01-22  Kazu Hirata  <kazu@cs.umass.edu>
18878
18879         * cfganal.c, real.h, reorg.c, timevar.def, tree-ssa-ccp.c,
18880         config/alpha/alpha-protos.h, config/alpha/alpha.h,
18881         config/alpha/alpha.md, config/alpha/predicates.md,
18882         config/sparc/freebsd.h, config/sparc/netbsd-elf.h,
18883         config/sparc/sol2.h: Update copyright.
18884
18885         * tree-cfg.c (remove_forwarder_block_with_phi): Look at the
18886         first label to see if it is a nonlocal label.
18887
18888 2005-01-22  David Edelsohn  <edelsohn@gnu.org>
18889             Andrew Pinski  <pinskia@physics.uc.edu>
18890
18891         PR target/19491
18892         * config/rs6000/rs6000.c (rs6000_va_start): Saturate n_gpr at
18893         maximum number of GPRs.  Saturate n_fpr at maximum number of FPRs.
18894
18895 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
18896
18897         * config/rs6000/rtems.h: Update copyright.
18898
18899 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
18900
18901         PR target/19548
18902         * config/rs6000/rtems.h: Resurrect cpp_os_rtems_spec from gcc < 3.4.
18903         (CPP_OS_RTEMS_SPEC): New (From gcc-3.3's config/rs6000/sys4.h).
18904         (SUBSUBTARGET_EXTRA_SPECS): Use CPP_OS_RTEMS_SPEC.
18905
18906 2005-01-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
18907
18908         PR c/18809
18909         * c-typeck.c (convert_arguments): Check for error_mark_node.
18910
18911 2005-01-21  Ian Lance Taylor  <ian@airs.com>
18912
18913         PR tree-optimization/13000
18914         * tree-inline.c: Include "tree-flow.h".
18915         (expand_call_inline): If warn_return_type, warn if non-void inline
18916         function falls through.
18917         * tree-cfg.c (execute_warn_function_return): Don't warn about
18918         control reaching end if TREE_NO_WARNING is set.  Set
18919         TREE_NO_WARNING.
18920         * gimple-low.c (block_may_fallthru): Don't assume that SWITCH_EXPR
18921         has been lowered.
18922         * gimplify.c (shortcut_cond_expr): Don't emit a jump over the else
18923         branch if we don't need one.
18924         * c-typeck.c: Include "tree-flow.h"
18925         (c_finish_bc_stmt): Don't add a goto if the current statement
18926         list doesn't fall through to the current point.
18927
18928 2005-01-21  Roger Sayle  <roger@eyesopen.com>
18929
18930         PR rtl-optimization/576
18931         * real.c (real_arithmetic): Change return type from void to bool
18932         to return an indication that the result may be inexact.
18933         * real.h (real_arithmeric): Update prototype.
18934         * fold-const.c (const_binop):  Don't constant fold floating
18935         point expressions when the user specifies -frounding-math and
18936         the result may depend upon the run-time rounding mode.
18937         (fold_convert_const_real_from_real): Clean-up.
18938         (fold_initializer): Ignore flag_rounding_math for initializers.
18939         * simplify-rtx.c (simplify_binary_operation): Likewise, don't
18940         constant fold FP operations with flag_rounding_math if the
18941         result may depend upon the run-time rounding mode.
18942
18943 2005-01-21  Tom Tromey  <tromey@redhat.com>
18944
18945         * c-cppbuiltin.c (define__GNUC__): Correct assertion.
18946
18947 2005-01-21  Kazu Hirata  <kazu@cs.umass.edu>
18948
18949         * tree-cfg.c: Fix comment typos.
18950
18951 2005-01-21  J"orn Rennecke <joern.rennecke@st.com>
18952
18953         * passes.c (rest_of_handle_flow2): Close / open the flow2 dump file
18954         around the call to rest_of_handle_branch_target_load_optimize.
18955
18956 2005-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
18957
18958         * config.gcc (sparc-*-netbsdelf*): Include dbxelf.h
18959         (sparc64-*-openbsd*): Likewise.
18960         (sparclite-*-elf*): Include tm-dwarf2.h.
18961         (sparc86x-*-elf*): Likewise.
18962         (sparc64-*-elf*): Likewise.
18963         * config/sparc/linux64.h (DWARF2_DEBUGGING_INFO): Delete.
18964         (DBX_DEBUGGING_INFO): Likewise.
18965         * config/sparc/liteelf.h (DWARF2_DEBUGGING_INFO): Likewise.
18966         (PREFERRED_DEBUGGING_TYPE): Likewise.
18967         * config/sparc/netbsd-elf.h (PREFERRED_DEBUGGING_TYPE): Likewise.
18968         * config/sparc/sp64-elf.h (DBX_DEBUGGING_INFO): Likewise.
18969         (PREFERRED_DEBUGGING_TYPE): Likewise.
18970         * config/sparc/sp86x-elf.h (DWARF2_DEBUGGING_INFO): Likewise.
18971         (PREFERRED_DEBUGGING_TYPE): Likewise.
18972         * config/sparc/sparc.h (DBX_DEBUGGING_INFO): Likewise.
18973
18974 2005-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
18975
18976         PR target/18701
18977         * combine.c (combine_simplify_rtx): Revert change of 2004-12-31.
18978
18979 2005-01-20  Paul Brook  <paul@codesourcery.com>
18980
18981         * doc/rtl.texi: Document value extension requirements for CONST_INT.
18982
18983 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
18984
18985         * tree-cfg.c (tree_verify_flow_info): Check that a nonlocal
18986         label is first in a sequence of labels.
18987
18988         * tree-cfg.c (tree_verify_flow_info): Fix a typo.
18989
18990 2005-01-20  Janis Johnson  <janis187@us.ibm.com>
18991             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
18992
18993         * doc/sourcebuild.texi (Test Directives): New.
18994
18995 2005-01-20  Roger Sayle  <roger@eyesopen.com>
18996
18997         * real.c (real_floor): Don't leave the result uninitialized when
18998         mode is VOIDMode, but return the unrounded intermediate value.
18999         (real_ceil): Likewise.
19000
19001 2005-01-20  Paul Brook  <paul@codesourcery.com>
19002
19003         * config/arm/arm.md (insv): Use gen_int_mode.
19004
19005 2005-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
19006
19007         * config/sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABELREF): Delete.
19008         * config/sparc/linux.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
19009         * config/sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
19010         * config/sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
19011         * config/sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
19012
19013 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
19014
19015         Fix PR debug/19124
19016         * dwarf2out.c (concat_loc_descriptor): We don't know we can use
19017         fbreg, so we have to assume we can't.
19018         (loc_descriptor_from_tree_1): Ditto.
19019         (containing_function_has_frame_base): New function.
19020         (add_location_or_const_value_attribute): Use it.
19021         Also try to generate a frame_base from a single element location
19022         list.
19023
19024 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
19025
19026         PR tree-optimization/15349
19027         * timevar.def (TV_TREE_MERGE_PHI): New.
19028         * tree-cfg.c (tree_forwarder_block_p): Add a new argument
19029         PHI_WANTED.
19030         (remove_forwarder_block, cleanup_forwarder_blocks): Adjust the
19031         calls to tree_forwarder_block_p.
19032         (remove_forwarder_block_with_phi, merge_phi_nodes,
19033         gate_merge_phi, pass_merge_phi): New.
19034         * tree-optimize.c (init_tree_optimization_passes): Add
19035         pass_merge_phi.
19036         * tree-pass.h: Add an extern for pass_merge_phi;
19037
19038 2005-01-20  Richard Henderson  <rth@redhat.com>
19039
19040         PR target/19418
19041         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128): New.
19042         (_mm_castps_pd, _mm_castps_si128): New.
19043         (_mm_castsi128_ps, _mm_castsi128_pd): New.
19044
19045 2005-01-20  Richard Henderson  <rth@redhat.com>
19046
19047         PR target/19530
19048         * config/i386/mmintrin.h (_mm_cvtsi32_si64): Use
19049         __builtin_ia32_vec_init_v2si.
19050         (_mm_cvtsi64_si32): Use __builtin_ia32_vec_ext_v2si.
19051         * config/i386/i386.c (IX86_BUILTIN_VEC_EXT_V2SI): New.
19052         (ix86_init_mmx_sse_builtins): Create it.
19053         (ix86_expand_builtin): Expand it.
19054         (ix86_expand_vector_set): Handle V2SFmode and V2SImode.
19055         * config/i386/mmx.md (vec_extractv2sf_0, vec_extractv2sf_1): New.
19056         (vec_extractv2si_0, vec_extractv2si_1): New.
19057
19058 2005-01-20  Richard Henderson  <rth@redhat.com>
19059
19060         PR target/16533
19061         * config/i386/i386.c (ix86_expand_push): New.
19062         * config/i386/mmx.md (push<MMXMODE>1): New.
19063         * config/i386/sse.md (push<SSEMODE>1): New.
19064         * config/i386/i386-protos.h: Update.
19065
19066 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
19067
19068         * params.def, params.h, predict.c, tree-ssa-loop-im.c: Update
19069         copyright.
19070
19071 2005-01-20  Richard Henderson  <rth@redhat.com>
19072
19073         * rtl.def (CONST_VECTOR): Use RTX_CONST_OBJ.
19074         * rtl.h (CONSTANT_P): Don't special case CONST_VECTOR.
19075
19076 2005-01-19  Richard Henderson  <rth@redhat.com>
19077
19078         PR target/19350
19079         * config/i386/i386.c (ix86_expand_vector_move_misalign): Convert
19080         to V4SFmode in SSE1 fallback load path.
19081
19082 2005-01-19  Richard Henderson  <rth@redhat.com>
19083
19084         * config/i386/i386.c (ix86_expand_vector_init_one_var): Fix typo
19085         in QImode expansion to ix86_expand_vector_set.
19086         (ix86_expand_vector_init_general): Fix typo in V8HImode recursive call.
19087
19088 2005-01-19  Richard Henderson  <rth@redhat.com>
19089
19090         PR target/19511
19091         * config/i386/i386.c (ix86_preferred_reload_class): Return a proper
19092         subclass of the input class.
19093         (ix86_secondary_memory_needed): Always true for cross-MMX classes.
19094         Always true for cross-SSE1 classes.  Rationalize conditionals.
19095         * config/i386/i386.h (SSE_CLASS_P, MMX_CLASS_P): Use straight equality.
19096         * config/i386/i386.md (movsi_1): Add MMX/SSE zeros.  Fix alternatives
19097         for SSE1.  Don't check TARGET_INTER_UNIT_MOVES.
19098         (movdi_2): Add MMX/SSE zeros.
19099         (movdi_1_rex64): Likewise.  Don't check TARGET_INTER_UNIT_MOVES.
19100         (movsf_1): Don't check TARGET_INTER_UNIT_MOVES.
19101         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
19102         (movsi_1_nointernunit, movdi_1_rex64_nointerunit): Remove.
19103         (movsf_1_nointerunit, zero_extendsidi2_32_1): Remove.
19104         (zero_extendsidi2_rex64_1): Remove.
19105         (MOV0 peephole): Check GENERAL_REG_P.
19106
19107 2005-01-19  Richard Henderson  <rth@redhat.com>
19108
19109         PR target/19427
19110         * config/i386/i386.c (ix86_expand_vector_set): Fix third and fourth
19111         shufps elements.
19112         (ix86_expand_vector_extract): Likewise.
19113
19114 2005-01-19  Richard Henderson  <rth@redhat.com>
19115
19116         PR middle-end/19304
19117         * expr.c (emit_move_change_mode): New argument force; use
19118         simplify_gen_subreg if true.
19119         (emit_move_via_alt_mode): Merge into ...
19120         (emit_move_via_integer): ... here.
19121         (emit_move_ccmode): Use emit_move_change_mode directly.
19122
19123 2005-01-19  Richard Henderson  <rth@redhat.com>
19124
19125         PR target/19518
19126         * config/alpha/alpha.c (alpha_rtx_costs): Handle HIGH.
19127         (alpha_preferred_reload_class): Handle CONST_VECTOR.
19128         (alpha_emit_set_const_1): Add no_output parameter; don't emit
19129         rtl if true.
19130         (alpha_emit_set_const): Likewise.  Make static.
19131         (alpha_emit_set_long_const): Make static.
19132         (alpha_extract_integer): Split out from alpha_expand_mov.
19133         (alpha_split_const_mov): Likewise.
19134         (alpha_expand_mov): Use them.  Handle CONST_VECTOR.
19135         (alpha_legitimate_constant_p): New.
19136         * config/alpha/alpha-protos.h: Update.
19137         * config/alpha/alpha.h (REGISTER_MOVE_COST): Correct fp<->gp cost.
19138         (LEGITIMATE_CONSTANT_P): Re-implement with a function.
19139         * config/alpha/alpha.md (movsi): Add n alternative.
19140         (movsi_nt_vms, movdi_er_nofix, movdi_er_fix, movdi_fix): Likewise.
19141         (mov<VEC>_fix, mov<VEC>_nofix): Add i alternative.
19142         (splitters for all of the above): Use alpha_split_const_mov.
19143         * config/alpha/predicates.md (non_add_const_operand): New.
19144         (non_zero_const_operand): New.
19145         (input_operand): Use alpha_legitimate_constant_p after reload.
19146
19147 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
19148
19149         PR tree-optimization/19038
19150         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): New function.
19151         (add_candidate): Add ivs with increment in latch only if
19152         allow_ip_end_pos_p is true.
19153         (determine_iv_cost): Use empty_block_p.
19154
19155 2005-01-19  Daniel Berlin  <dberlin@dberlin.org>
19156
19157         * cfganal.c (compute_dominance_frontiers_1): Replace with new algorithm
19158         (compute_dominance_frontiers): Ditto.
19159
19160 2005-01-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
19161
19162         PR target/19529
19163         * config/sh/t-rtems: New.
19164         * config.gcc (sh-*-rtems*): Reflect having added config/sh/t-rtems.
19165
19166 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
19167
19168         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Always subtract
19169         the offset of the selected field.
19170
19171 2005-01-19  Kazu Hirata  <kazu@cs.umass.edu>
19172
19173         * tree-cfg.c (remove_forwarder_block): Fix the check to
19174         prevent a nonlocal label from appearing in the middle of a
19175         basic block.
19176
19177 2005-01-19  Hans-Peter Nilsson  <hp@axis.com>
19178
19179         PR rtl-optimization/19462
19180         * reorg.c (find_end_label): Create return insn only if
19181         current_function_epilogue_delay_list is empty.
19182
19183 2005-01-19  Paolo Bonzini  <bonzini@gnu.org>
19184
19185         * doc/passes.texi: Remove paragraph mentioning new-ra.
19186
19187 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
19188
19189         PR rtl-optimization/15139
19190         * combine.c: Include params.h.
19191         (count_rtxs): New function.
19192         (record_value_for_reg): If replace_rtx would replace at least
19193         2 occurrences of REG in VALUE and TEM is really large, replace REG with
19194         (clobber (const_int 0)) instead of TEM.
19195         * params.def (PARAM_MAX_LAST_VALUE_RTL): New.
19196         * params.h (MAX_LAST_VALUE_RTL): New.
19197         * Makefile.in (combine.o): Depend on $(PARAMS_H).
19198         * doc/invoke.texi (--param max-last-value-rtl=N): Document.
19199
19200         PR c/17297
19201         * c-typeck.c (digest_init): Only call build_vector if all constructor
19202         elements are *_CST nodes.
19203         * gimplify.c (gimplify_init_constructor): Likewise.
19204
19205         PR middle-end/19164
19206         * c-typeck.c (digest_init): Only call build_vector if inside_init
19207         is a CONSTRUCTOR.
19208
19209 2005-01-18  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
19210
19211         * toplev.c (init_asm_output): Remove dead #ifdef.
19212
19213 2005-01-18  Kaz Kojima  <kkojima@gcc.gnu.org>
19214
19215         * config/sh/linux.h (TARGET_C99_FUNCTIONS): Define.
19216
19217 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
19218
19219         * calls.c (expand_call): Check DECL_BUILT_IN_CLASS before
19220         accessing DECL_FUNCTION_CODE.
19221         * dojump.c (do_jump): Likewise.
19222         * gimplify.c (gimplify_call_expr): Likewise.
19223         * predict.c (expr_expected_value): Likewise.
19224         (strip_builtin_expect): Likewise.
19225         * tree-inline.c (estimate_num_insns_1): Likewise.
19226         * tree-ssa-loop-im.c (stmt_cost): Likewise
19227         * fold-const.c (fold): Test for BUILT_IN_NORMAL.
19228         (tree_expr_nonnegative_p): Likewise.
19229
19230 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
19231
19232         * config/sparc/sparc.c (load_pic_register): Emit the appropriate
19233         variant of the load_pcrel_sym pattern.
19234         * config/sparc/sparc.md (P macro): Move to the top.
19235         (load_pcrel_sym): Macroize using P.
19236         (save_register_window): Likewise.
19237
19238 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
19239
19240         * config/rs6000/rs6000.md ("sunordered"): Disable for e500.
19241         ("sordered"): Same.
19242
19243 2005-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
19244
19245         PR C/19472
19246         * c-typeck.c (build_asm_expr): Strip nops off
19247         input memory operands.
19248
19249 2005-01-18  David Edelsohn  <edelsohn@gnu.org>
19250
19251         * config/rs6000/aix43.h (CPLUSPLUS_CPP_SPEC): Delete
19252         _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, _LARGE_FILE_API.
19253         * config/rs6000/aix51.h (CPLUSPLUS_CPP_SPEC): Same.
19254         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Same.
19255
19256 2005-01-18  Joel Sherrill <joel.sherrill@oarcorp.com>
19257
19258         PR target/19379
19259         * config/i386/i386.c (override_options): If the 80387 is disabled,
19260         then do not return FP values using FP registers.
19261
19262 2005-01-18  Kazu Hirata  <kazu@cs.umass.edu>
19263
19264         * basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c,
19265         c-tree.h, cfgbuild.c, cgraph.c, cgraph.h, collect2.c,
19266         combine.c, config.gcc, coverage.h, cse.c, cselib.c,
19267         defaults.h, df.c, dwarf2asm.c, dwarf2out.c, explow.c, expr.c,
19268         flow.c, fold-const.c, gcse.c, ggc-page.c, gimple-low.c,
19269         gimplify.c, ifcvt.c, langhooks-def.h, lcm.c, optabs.h,
19270         output.h, postreload-gcse.c, postreload.c, recog.c,
19271         resource.c, rtl.def, rtlanal.c, sched-deps.c, sched-rgn.c,
19272         targhooks.h, toplev.c, tree-data-ref.c, tree-eh.c,
19273         tree-flow.h, tree-loop-linear.c, tree-mudflap.h, tree-nrv.c,
19274         tree-optimize.c, tree-outof-ssa.c, tree-pass.h,
19275         tree-scalar-evolution.c, tree-ssa-copy.c, tree-ssa-dce.c,
19276         tree-ssa-dse.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c,
19277         tree-ssa-pre.c, tree-ssa.c, tree-vectorizer.c, tree.def,
19278         unwind-dw2-fde-darwin.c, var-tracking.c: Update copyright.
19279
19280         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
19281         config/alpha/alpha.c, config/arm/vfp.md,
19282         config/i386/emmintrin.h, config/i386/i386-modes.def,
19283         config/i386/i386-protos.h, config/i386/i386.h,
19284         config/i386/pmmintrin.h, config/i386/ppro.md,
19285         config/i386/predicates.md, config/i386/xmmintrin.h,
19286         config/i860/i860.c, config/ia64/ia64-modes.def,
19287         config/ia64/ia64-protos.h, config/ia64/ia64.h,
19288         config/ia64/ia64.md, config/ia64/itanium1.md,
19289         config/ia64/itanium2.md, config/ia64/predicates.md,
19290         config/iq2000/iq2000.h, config/mips/linux64.h,
19291         config/rs6000/aix41.h, config/rs6000/aix43.h,
19292         config/rs6000/aix52.h, config/rs6000/darwin-fallback.c,
19293         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
19294         config/rs6000/spe.md, config/sh/sh.md, config/sparc/linux.h,
19295         config/sparc/linux64.h, config/sparc/litecoff.h,
19296         config/sparc/sp64-elf.h, config/sparc/sparc.c,
19297         config/sparc/sparc.h, config/sparc/sparc.md,
19298         config/sparc/sysv4-only.h: Update copyright.
19299
19300 2005-01-18  Richard Henderson  <rth@redhat.com>
19301
19302         PR target/19496
19303         * config/i386/i386.c (ix86_expand_fp_movcc): Fail for LTGT and UNEQ.
19304
19305 2005-01-18  Marc Espie  <espie@openbsd.org>
19306         * config/i386/openbsdelf.h: Typo.
19307
19308 2005-01-18  Richard Henderson  <rth@redhat.com>
19309
19310         * config/i386/i386.c (ix86_expand_fp_movcc): Remove TARGET_IEEE_FP
19311         special case for sse.
19312         * config/i386/predicates.md (sse_comparison_operator): Likewise.
19313
19314 2005-01-18  Dorit Naishlos  <dorit@il.ibm.com>
19315
19316         * tree-inline.c (estimate_num_insns_1): Added cases for
19317         ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, and REALIGN_LOAD_EXPR.
19318
19319 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
19320
19321         PR rtl-optimization/19296
19322         * combine.c (simplify_comparison): Rewrite the condition under
19323         which a non-paradoxical SUBREG of a PLUS can be lifted when
19324         compared against a constant.
19325
19326 2005-01-18  Andi Kleen <ak@muc.de>
19327
19328         * c-typeck.c: (convert_for_assignment): Check warn_pointer_sign.
19329         * c.opt (-Wpointer-sign): Add.
19330         * doc/invoke.texi: (-Wpointer-sign): Add.
19331
19332 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
19333
19334         * config/i386/i386.c (override_options): Revert 2004-11-24 change.
19335         * config/i386/i386.md (fmodsf3, dremsf3, *sinsf2, *cossf2, sincossf3,
19336         *tansf3_1, tansf2, atan2sf3_1, atan2sf3, atansf2, asinsf2, acossf2,
19337         logsf2, log10sf2, log2sf2, log1psf2, logbsf2, ilogbsf2, expsf2,
19338         exp10sf2, exp2sf2, expm1sf2, rintsf2, floorsf2, ceilsf2, btruncsf2,
19339         nearbyintsf2): Disable for TARGET_SSE_MATH.  Leave patterns enabled
19340         for TARGET_MIX_SSE_I387.
19341         (fmoddf3, dremdf3, *sindf2, *sinextendsfdf2, *cosdf2, *cosextendsfdf2,
19342         sincosdf3, *sincosextendsfdf3, *tandf3_1, tandf2, atan2df3_1,
19343         atan2df3, atandf2, asindf2, acosdf2, logdf2, log10df2, log2df2,
19344         log1pdf2, logbdf2, expdf2, exp10df2, exp2df2, expm1df2, rintdf2,
19345         floordf2, ceildf2, btruncdf2, nearbyintdf2): Disable for
19346         (TARGET_SSE2 && TARGET_SSE_MATH).  Leave patterns enabled for
19347         TARGET_MIX_SSE_I387.
19348         (atan2sf3, atan2df3, atan2xf3): Remove register constraints
19349         from expander.
19350
19351 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
19352
19353         PR target/19424
19354         * config/i386/mmx.md (*movv2sf_internal_rex64, *movv2sf_internal):
19355         Add movaps alternative for xmm reg->reg move.
19356
19357 2005-01-17  Jeff Law  <law@redhat.com>
19358
19359         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Clear SSA_NAME_VALUE
19360         at the end of the main DOM loop rather than just before DOM exits.
19361
19362 2005-01-17  Diego Novillo  <dnovillo@redhat.com>
19363
19364         PR tree-optimization/19121
19365         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): When
19366         adding aliases to a name tag, also add them to the pointer's
19367         type tag.
19368         * tree-ssa-copy.c (merge_alias_info): Do not merge flow
19369         sensitive alias info at all.  Only check that the two pointers
19370         have compatible pointed-to sets.
19371         * tree-ssa.c (verify_name_tags): Verify that the alias set of
19372         a pointer's type tag is a superset of the alias set of the
19373         pointer's name tag.
19374
19375 2005-01-17  James E Wilson  <wilson@specifixinc.com>
19376
19377         PR target/19357
19378         * config/ia64/ia64.md (movxf): Handle general register source.  Adjust
19379         comment to document why.
19380
19381 2005-01-17  Richard Henderson  <rth@redhat.com>
19382
19383         * config/i386/sse.md (smaxv4sf3_finite, sse_vmsmaxv4sf3_finite,
19384         sminv4sf3_finite, sse_vmsminv4sf3_finite, smaxv2df3_finite,
19385         sse2_vmsmaxv2df3_finite, sminv2df3_finite,
19386         sse2_vmsminv2df3_finite): New.
19387         (smaxv4sf3, sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, smaxv2df3,
19388         sse2_vmsmaxv2df3, sminv2df3, sse2_vmsminv2df3): Remove commutative.
19389         Force op1 into register.
19390
19391 2005-01-17  Kelley Cook  <kcook@gcc.gnu.org>
19392
19393         * Makefile.in (STAGEMOVESTUFF): Stage all the stamp files to prevent
19394         bubblestrap from always rebuilding build directory.
19395
19396 2005-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
19397
19398         * config/s390/s390.md ("*clc"): Remove incorrect '='.
19399         ("*cmpmem_short"): Likewise.
19400
19401 2005-01-17  Steven Bosscher  <stevenb@suse.de>
19402
19403         * basic-block.h: Document BB_* flags.
19404         * regrename.c (copyprop_hardreg_forward): Don't use BB_VISITED,
19405         use an sbitmap instead.
19406         * sched-rgn.c (compute_trg_info): Likewise.
19407
19408 2005-01-17  Richard Sandiford  <rsandifo@redhat.com>
19409
19410         * config.gcc (mips64*-*-linux*): Set the default abi to n32.  Remove
19411         redundant target_cpu_default and extra_parts lines.  Use the default
19412         "from-abi" ISA.
19413         * config/mips/linux64.h (DRIVER_DEFAULT_ABI_SELF_SPEC): Delete.
19414         (SUBTARGET_EXTRA_SPECS): Delete.
19415         (DRIVER_SELF_SPECS): Remove architecture lines.  Set the ABI directly.
19416         (SUBTARGET_ASM_SPEC): Remove -mabi=n32 and -mabi=64 mappings.
19417         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Use "32" for -mabi=32
19418         and "n32" for -mabi=n32.
19419
19420 2005-01-17  Ian Lance Taylor  <ian@airs.com>
19421
19422         PR c/5675
19423         * c-typeck.c (build_c_cast): Revert patch of 2003-02-16: don't
19424         fold constant variables into initial values.
19425
19426 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
19427
19428         * tree-cfg.c (tree_can_merge_blocks_p): Reorder two checks.
19429
19430         * tree-cfg.c (tree_forwarder_block_p): Speed up by walking
19431         through the statements backward.
19432
19433 2005-01-17  Ian Lance Taylor  <ian@airs.com>
19434
19435         PR middle-end/13127:
19436         * tree-inline.c (expand_call_inline): Set TREE_NO_WARNING on
19437         a variable set to the return value of the inlined function.
19438
19439 2005-01-17  Mark Dettinger  <dettinge@de.ibm.com>
19440
19441         * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
19442         when modes are tieable.
19443
19444 2005-01-17  Ranjit Mathew  <rmathew@hotmail.com>
19445
19446         * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead
19447         of pthread_create to find out if threads are enabled.
19448         * gthr-posix95.h (__gthread_active_p): Likewise.
19449
19450 2005-01-17  Paolo Bonzini  <bonzini@gnu.org>
19451
19452         * common.opt (-fnew-ra): Remove.
19453         * ra*.*: Remove.
19454         * toplev.h (flag_new_regalloc): Remove.
19455         * Makefile.in (ra*.*): Don't mention.
19456         * passes.c (rest_of_handle_new_regalloc): Remove.
19457         (rest_of_handle_combine, rest_of_compilation): Always consider
19458         flag_new_regalloc as false.
19459         * doc/invoke.texi: Don't document -fnew-ra.
19460
19461 2005-01-17  Paolo Bonzini <bonzini@gnu.org>
19462
19463         * bb-reorder.c (fix_edges_for_rarely_executed_code): Remove
19464         last parameter to reg_scan.
19465         * loop.c (loop_optimize): Likewise.
19466         * passes.c (rest_of_handle_tracer, rest_of_handle_if_conversion,
19467         rest_of_handle_web, rest_of_handle_cfg, rest_of_handle_jump_bypass,
19468         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
19469         rest_of_handle_gcse, rest_of_handle_loop_optimize,
19470         rest_of_handle_loop2, rest_of_handle_jump2): Likewise.
19471         * regclass.c (reg_scan): Likewise, for the declaration.
19472         * rtl.h (reg_scan): Likewise, for the prototype.
19473
19474 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
19475
19476         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Don't call
19477         mark_dfs_back_edges.
19478
19479 2005-01-16  Daniel Berlin  <dberlin@dberlin.org>
19480
19481         * tree-ssa-pre.c (add_to_sets): s1 may be NULL.
19482         (compute_avail): Uses don't go in tmp_gen.
19483
19484 2005-01-16  Steven Bosscher  <stevenb@suse.de>
19485
19486         * ggc-page.c (ggc_alloc_stat): Use __builtin_ctzl instead of a
19487         loop to look for a free slot in a page entry.
19488
19489 2005-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19490
19491         PR target/16304
19492         * defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Provide default.
19493         * toplev.c (compile_file): Call process_pending_assemble_output_defs
19494         just before targetm.asm_out.file_end.
19495         * tree.h (process_pending_assemble_output_defs): Declare.
19496         * varasm.c (assemble_output_def, process_pending_assemble_output_defs):
19497         New functions.
19498         (assemble_alias): Defer generation of assembly code for defines when
19499         TARGET_DEFERRED_OUTPUT_DEFS is true.
19500         * config/rs6000/aix41.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
19501         * config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
19502         * doc/tm.texi (TARGET_DEFERRED_OUTPUT_DEFS): document.
19503
19504 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19505
19506         PR target/19336
19507         * pa.c (pa_scalar_mode_supported_p): New function.
19508         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
19509         * pa.h (MIN_UNITS_PER_WORD): Add comment.
19510
19511         * pa-protos.h (prefetch_operand): Delete.
19512         (prefetch_cc_operand, prefetch_nocc_operand): New declations.
19513         * pa.c (prefetch_operand): Delete.
19514         (prefetch_cc_operand, prefetch_nocc_operand): New functions.
19515         * pa.h (EXTRA_CONSTRAINT): Add `W' constraint.
19516         (PREDICATE_CODES): Delete prefetch_operand.  Add prefetch_cc_operand
19517         and prefetch_nocc_operand.
19518         * pa.md (prefetch): Rework to avoid reload problems handling short
19519         displacements when a cache control completer needs to be provided.
19520         (prefetch_32, prefetch_64): Delete.
19521         (prefetch_cc, prefetch_nocc): New patterns.
19522
19523 2005-01-15  David Edelsohn  <edelsohn@gnu.org>
19524
19525         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Revert previous change.
19526
19527 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19528
19529         PR ada/19388
19530         * pa.c (pa_asm_output_aligned_common): Warn if specified alignment
19531         exceeds maximum alignment for global common data.
19532         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): Define to 32768.
19533         * som.h (MAX_OFILE_ALIGNMENT): Likewise.
19534
19535 2004-01-15  Roger Sayle  <roger@eyesopen.com>
19536
19537         * tree-ssa-dom.c (extract_range_from_cond): Correct condition.
19538
19539 2004-01-15  Roger Sayle  <roger@eyesopen.com>
19540
19541         * harg-reg-set.h (reg_class_names): Prototype global array.
19542         * regclass.c (reg_class_names): Declare here and initialize to
19543         REG_CLASS_NAMES.
19544         (dump_regclass): Remove local declaration of reg_class_names.
19545         (regclass): Likewise.
19546         * cfg.c (dump_flow_info): Likewise.
19547         * ra-debug.c (reg_class_names): Likewise.
19548         * regrename.c (reg_class_names): Likewise.
19549         * reload.c (reg_class_names): Likewise.
19550         * reload1.c (spill_failure): Likewise.
19551         * config/m68hc11/m68hc11.c (reg_class_names): Likewise.
19552
19553 2005-01-15  Ulrich Weigand  <uweigand@de.ibm.com>
19554
19555         * config/s390/s390.md ("reload_outti"): Remove predicate for
19556         output operand.  Abort if operand is not a MEM.
19557         ("reload_outdi", "reload_outdf"): Likewise.
19558
19559 2005-01-15  Marc Espie  <espie@openbsd.org>
19560
19561         * config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
19562         (i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4.
19563         * config/openbsd.h:  Fix C++ includes for native configurations.
19564         Add proper OS_CPP_BUILTINS.  Fix libspec for recent OpenBSD.
19565         Add trampoline support.
19566         * config/i386/openbsdelf.h: New.
19567
19568 2005-01-15  Marc Espie  <espie@openbsd.org>
19569
19570         * collect2.c (main): Explicitly parse -dynamic-linker option.
19571
19572 2005-01-15  Jakub Jelinek  <jakub@redhat.com>
19573
19574         PR tree-optimization/19060
19575         * tree-ssa-dom.c (extract_range_from_cond) <case LT_EXPR, GT_EXPR>:
19576         Return 0 if op1 <= TYPE_MIN_VALUE () resp. op1 >= TYPE_MAX_VALUE ().
19577         (simplify_cond_and_lookup_avail_expr): Add assert for dummy == 0
19578         and handle extract_range_from_cond returning false.
19579         * fold-const.c (fold): Optimize comparisons with min/max even for
19580         width > HOST_BITS_PER_WIDE_INT.
19581
19582 2005-01-15  Ralf Corsepius  <ralf.corsepius@rtems.org>
19583
19584         * config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
19585         * config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS):
19586         Remove little endian multilib variants.
19587         Add mips32 multilib variant.
19588
19589 2005-01-15  Kazu Hirata  <kazu@cs.umass.edu>
19590
19591         * explow.c (copy_all_reg, stabilize): Remove.
19592         * expr.h: Remove the corresponding prototypes.
19593
19594         * rtlanal.c (regs_set_between_p): Remove.
19595         * rtl.h: Remove the corresponding prototype.
19596
19597 2005-01-14  David Edelsohn  <edelsohn@gnu.org>
19598
19599         * config/rs6000/rs6000.c (rs6k_nonimmediate_operand): Rename
19600         to rs6000_nonimmediate_operand.
19601         * config/rs6000/rs6000.h (PREDICATE_CODES): Rename
19602         rs6k_nonimmediate_operand to rs6000_nonimmediate_operand.
19603         * config/rs6000/rs6000.md (movsi_internal1): Rename predicate to
19604         rs6000_nonimmediate_operand.
19605         * config/rs6000/spe.md (movdf_e500_double): Rename predicate to
19606         rs6000_nonimmediate_operand.
19607
19608 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
19609
19610         * tree-ssa-alias.c (pass_may_alias): Add TODO_verify_stmts.
19611
19612 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
19613
19614         * config/rs6000/rs6000.h (CLASS_MAX_NREGS): DF goes in 1 register
19615         on e500v2.
19616         (CANNOT_CHANGE_MODE_CLASS): Restrict DI mode changes on e500v2.
19617         (PREDICATE_CODES): Add rs6k_nonimmediate_operand.
19618
19619         * config/rs6000/rs6000.c (invalid_e500_subreg): New.
19620         (rs6k_nonimmediate_operand): New.
19621         (rs6000_legitimate_offset_address_p): Handle DI modes on e500v2
19622         correctly.
19623         (legitimate_lo_sum_address_p): Same.
19624         (rs6000_legitimize_address): Same.
19625         (rs6000_legitimize_reload_address): Same.
19626         (rs6000_legitimate_address): Same.
19627         (spe_build_register_parallel): Pass DF and DC modes in a DI
19628         register.
19629
19630         * config/rs6000/rs6000.md ("*movsi_internal1"): Change predicate
19631         to rs6k_nonimmediate_operand.
19632
19633         * config/rs6000/spe.md ("*frob_df_di"): New.
19634         ("*frob_di_df"): New.
19635         ("*frob_di_df_2"): New.
19636         ("*mov_sidf_e500_subreg0"): New.
19637         ("*mov_sidf_e500_subreg4"): New.
19638         ("*movdf_e500_double"): Change predicate to
19639         rs6k_nonimmediate_operand.
19640
19641 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
19642
19643         * postreload.c (move2add_note_store): Only call
19644         trunc_int_for_mode on scalar integers.
19645
19646 2005-01-14  Steven Bosscher  <stevenb@suse.de>
19647
19648         * tree-ssa-dce.c (visited_control_parents): New sbitmap to
19649         replace BB_VISITED uses.
19650         (find_obviously_necessary_stmts): Don't clear BB_VISITED.
19651         (propagate_necessity): Check the bitmap instead of BB_VISITED.
19652         (tree_dce_done): Free visited_control_parents.
19653         (perform_tree_ssa_dce): Allocate and clear it.
19654         * tree-ssa-pre.c (compute_antic_aux): Make non-recursive.
19655         (compute_antic): Iterate from here using a DFS.  Use an sbitmap
19656         instead of BB_VISITED.
19657
19658 2005-01-14  Kazu Hirata  <kazu@cs.umass.edu>
19659
19660         * c-tree.h, coverage.h, langhooks-def.h, optabs.h, output.h,
19661         rtl.h, targhooks.h, tree-flow.h, tree-mudflap.h, tree.h:
19662         Remove unused prototypes.
19663
19664 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
19665
19666         * config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
19667         64-bit register usage.
19668         (spe_func_has_64bit_regs_p): Add FIXME note.
19669
19670 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
19671
19672         * config/rs6000/rs6000.c (rs6000_generate_compare): Replace
19673         flag_finite_math_only with flag_unsafe_math_optimizations.
19674
19675 2005-01-14  J. D. Johnston  <jjohnst@us.ibm.com>
19676
19677         * config/s390/tpf-unwind.h (s390_fallback_frame_state): Correct
19678         end-of-stack check.
19679         (__tpf_eh_return): Copy TPF private stack area from the module
19680         boundary stack frame.  Add check for when module addresses are
19681         equal, but no stub address is found.
19682
19683 2005-01-14  Richard Earnshaw  <rearnsha@arm.com>
19684
19685         PR target/7525
19686         * arm.h (struct machine_function): Add call_via field.
19687         (thumb_call_via_label): Declare.
19688         * arm.c (thumb_call_via_label): New variable.
19689         (thumb_call_reg_needed): New variable.
19690         (arm_output_function_epilogue): For Thumb code, output any per-function
19691         call-indirect trampolines.
19692         (thumb_call_via_reg): New function.
19693         (arm_file_end): New function.
19694         (TARGET_ASM_FILE_END): Call arm_file_end.
19695         (aof_file_end): Likewise.
19696         * arm-protos.h (thumb_call_via_reg): Declare.
19697         * arm.md (call_reg_thumb, call_value_reg_thumb): Call
19698         thumb_call_via_reg in normal case.
19699
19700 2005-01-14  Jakub Jelinek  <jakub@redhat.com>
19701
19702         PR middle-end/19084
19703         PR rtl-optimization/19348
19704         * recog.c (peephole2_optimize): Do global life update if some peephole
19705         decides it doesn't need at least one of its inputs and that change
19706         influences liveness at the start of the basic block.
19707
19708         * basic-block.h (EXECUTE_IF_AND_COMPL_IN_REG_SET): Needs 2 REGSET
19709         arguments instead of 1.
19710
19711 2005-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
19712
19713         PR middle-end/18820
19714         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Return
19715         zero for nested functions needing a static chain or functions
19716         with a non-constant address.
19717
19718 2005-01-13  Roger Sayle  <roger@eyesopen.com>
19719
19720         * simplify-rtx.c (simplify_binary_operation) <AND>: Optimize
19721         (and (sign_extend X) C) into (zero_extend (and X C)).
19722
19723 2005-01-13  David O'Brien  <obrien@FreeBSD.org>
19724
19725         * config/freebsd-spec.h:  Make KSE pthread lib logic the default.
19726
19727 2005-01-13  Richard Henderson  <rth@redhat.com>
19728
19729         PR target/19009
19730         PR target/19250
19731         PR target/19252
19732         * config/i386/i386.md (cmpdf, cmpsf, bunordered, bordered, buneq,
19733         bunge, bungt, bunle, bunlt, bltgt): Enable for TARGET_SSE_MATH,
19734         not just TARGET_SSE.
19735         (cmpfp_i_387): Rename from cmpfp_i.  Move after sse patterns.
19736         (cmpfp_i_mixed): Rename from cmpfp_i_sse; use for TARGET_MIX_SSE_I387.
19737         (cmpfp_i_sse): Rename from cmpfp_i_sse_only; use for TARGET_SSE_MATH.
19738         (cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387): Similarly.
19739         (fp_jcc_1_mixed, fp_jcc_1_sse, fp_jcc_1_387): Similarly.
19740         (fp_jcc_2_mixed, fp_jcc_2_sse, fp_jcc_2_387): Similarly.
19741         (fp_jcc_3_387, fp_jcc_4_387, fp_jcc_5_387, fp_jcc_6_387,
19742         fp_jcc_7_387, fp_jcc_8_387): Rename from fp_jcc_N.
19743         (movdicc_c_rex64): Rename with '*'.
19744         (movsfcc, movdfcc): Add checks for 387 and sse math to condition.
19745         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): New.
19746         (movsfcc_1_387): Rename from movsfcc_1.
19747         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): New.
19748         (movdfcc_1, movdfcc_1_rex64): Add check for 387.
19749         (sminsf3, smaxsf3, smindf3, smaxdf3): New.
19750         (minsf3, minsf, minsf_nonieee, minsf_sse, mindf3, mindf,
19751         mindf_nonieee, mindf_sse, maxsf3, maxsf, maxsf_nonieee, maxsf_sse,
19752         maxdf3, maxdf, maxdf_nonieee, maxdf_sse, sse_movsfcc, sse_movsfcc_eq,
19753         sse_movdfcc, sse_movdfcc_eq, sse_movsfcc_const0_1,
19754         sse_movsfcc_const0_2, sse_movsfcc_const0_3, sse_movsfcc_const0_4,
19755         sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
19756         sse_movdfcc_const0_4): Remove.
19757         * config/i386/i386.c (ix86_expand_fp_movcc): For TARGET_SSE_MATH,
19758         recognize min/max early.  Update for changed sse cmove patterns.
19759         (ix86_split_sse_movcc): New.
19760         * config/i386/i386-protos.h: Update.
19761
19762 2005-01-13  Steven Bosscher  <stevenb@suse.de>
19763
19764         * tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
19765         (fix_stmt_v_may_defs): Likewise.
19766
19767 2005-01-13  Richard Henderson  <rth@redhat.com>
19768
19769         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
19770         for converting the mask.
19771
19772 2005-01-13  David Edelsohn  <edelsohn@gnu.org>
19773
19774         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
19775         definition to 600.
19776
19777 2005-01-13  Richard Henderson  <rth@redhat.com>
19778
19779         * config/i386/i386.c (IX86_BUILTIN_MOVQ, IX86_BUILTIN_LOADD,
19780         IX86_BUILTIN_STORED, IX86_BUILTIN_MOVQ2DQ,
19781         IX86_BUILTIN_MOVDQ2Q): Remove.
19782         (IX86_BUILTIN_VEC_EXT_V4SI): New.
19783         (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Update to match.
19784         (ix86_expand_vector_extract): For V4S[FI], extract element 0 after
19785         shuffling.
19786         * config/i386/sse.md (sse_concatv2sf): Accept zero operand 2.
19787         (sse2_pextrw): Fix immediate constraint.
19788         (sse2_loadq, sse2_loadq_rex64): Remove.
19789         * config/i386/emmintrin.h (_mm_cvtsi128_si32, _mm_cvtsi128_si64x):
19790         Use __builtin_ia32_vec_ext_<size>.
19791         (_mm_cvtsi32_si128, _mm_cvtsi64x_si128): Use _mm_set_epi<size>.
19792
19793 2005-01-13  Aldy Hernandez  <aldyh@redhat.com>
19794
19795         * function.c (assign_parm_setup_block): Look inside original
19796         entry_parm when inspecting PARALLEL.
19797
19798 2005-01-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
19799             Joel Sherrill  <joel@oarcorp.com>
19800
19801         PR target/19399
19802         * gthr-rtems.h (__gthread_recursive_mutex_t): New type.
19803         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
19804         rtems_gxx_recursive_mutex_init.
19805         (__gthread_recursive_mutex_lock): New function.
19806         (__gthread_recursive_mutex_trylock): Likewise.
19807         (__gthread_recursive_mutex_unlock): Likewise.
19808
19809 2005-01-13  Ralf Corsepius <ralf.corsepius@rtems.org>
19810
19811         * config/i386/t-rtems-i386: Multilib on -mtune instead of -mcpu.
19812
19813 2005-01-13  Jan Beulich  <jbeulich@novell.com>
19814
19815         * config/ia64/ia64.md (ashlti3, ashlti3_internal): New.
19816         (ashrti3_internal): Indicate output is early clobber. Generate result
19817         into output rather than first input. Use move for low word of output
19818         if shift count is exactly 64.
19819         (lshrti3_internal): Likewise.
19820
19821 2005-01-13  Hans-Peter Nilsson  <hp@bitrange.com>
19822
19823         PR target/18329
19824         PR target/18330
19825         * reload1.c (delete_output_reload): Don't delete an output reload
19826         if the pseudo lives longer than a single basic block.  Adjust and
19827         improve wording of comment.
19828
19829 2005-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
19830
19831         PR target/19334
19832         * config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead
19833         of TYPE_SIZE where we mean the number of bytes.
19834
19835 2005-01-12  Aldy Hernandez  <aldyh@redhat.com>
19836
19837         * function.c (assign_parm_setup_block): Relax condition on
19838         multi-register optimization.
19839
19840 2005-01-12  Nick Clifton  <nickc@redhat.com>
19841
19842         * config/sh/sh.md (udivsi3_sh2a, divsi3_sh2a): Give these patterns
19843         an "in_delay_slot" attribute of "no" to prevent them being used in
19844         delay slots.  This is forbidden because they might generate
19845         exceptions.
19846
19847 2005-01-12  Alan Modra  <amodra@bigpond.net.au>
19848
19849         PR target/19389
19850         * config/rs6000/rs6000.md (movtf_internal): Replace r->o and m->r
19851         with r->Y and Y->r.
19852
19853 2005-01-12  Nick Clifton  <nickc@redhat.com>
19854
19855         * config/iq2000/iq2000.h (ASM_SPEC): Undefine (to stop -Qy being
19856         passed on to GAS) but do not define, as GAS no longer supports or
19857         needs the -m2000 option.
19858
19859 2005-01-11  Roger Sayle  <roger@eyesopen.com>
19860
19861         * builtins.c (fold_builtin_fabs): Convert argument to the appropriate
19862         type as args of unprototyped builtins aren't automatically promoted.
19863         (fold_builtin_abs): Likewise.
19864
19865 2005-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19866
19867         * Makefile.in: Set a `build-warn' variable.
19868
19869 2005-01-11  Zdenek Dvorak  <dvorakz@suse.cz>
19870
19871         PR tree-optimization/17949
19872         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): New function.
19873         (find_interesting_uses_address): Use it.
19874
19875 2005-01-11  Aldy Hernandez  <aldyh@redhat.com>
19876
19877         * regrename.c (kill_value): Handle subreg's that won't simplify.
19878
19879 2005-01-11  Richard Henderson  <rth@redhat.com>
19880
19881         PR target/13366
19882         * config/i386/i386.h (enum ix86_builtins): Move ...
19883         * config/i386/i386.c: ... here.
19884         (IX86_BUILTIN_MOVDDUP, IX86_BUILTIN_MMX_ZERO, IX86_BUILTIN_PEXTRW,
19885         IX86_BUILTIN_PINSRW, IX86_BUILTIN_LOADAPS, IX86_BUILTIN_LOADSS,
19886         IX86_BUILTIN_STORESS, IX86_BUILTIN_SSE_ZERO, IX86_BUILTIN_PEXTRW128,
19887         IX86_BUILTIN_PINSRW128, IX86_BUILTIN_LOADAPD, IX86_BUILTIN_LOADSD,
19888         IX86_BUILTIN_STOREAPD, IX86_BUILTIN_STORESD,  IX86_BUILTIN_STOREHPD,
19889         IX86_BUILTIN_STORELPD, IX86_BUILTIN_SETPD1, IX86_BUILTIN_SETPD,
19890         IX86_BUILTIN_CLRPD, IX86_BUILTIN_LOADPD1, IX86_BUILTIN_LOADRPD,
19891         IX86_BUILTIN_STOREPD1, IX86_BUILTIN_STORERPD, IX86_BUILTIN_LOADDQA,
19892         IX86_BUILTIN_STOREDQA, IX86_BUILTIN_CLRTI,
19893         IX86_BUILTIN_LOADDDUP): Remove.
19894         (IX86_BUILTIN_VEC_INIT_V2SI, IX86_BUILTIN_VEC_INIT_V4HI,
19895         IX86_BUILTIN_VEC_INIT_V8QI, IX86_BUILTIN_VEC_EXT_V2DF,
19896         IX86_BUILTIN_VEC_EXT_V2DI, IX86_BUILTIN_VEC_EXT_V4SF,
19897         IX86_BUILTIN_VEC_EXT_V8HI, IX86_BUILTIN_VEC_EXT_V4HI,
19898         IX86_BUILTIN_VEC_SET_V8HI, IX86_BUILTIN_VEC_SET_V4HI): New.
19899         (ix86_init_builtins): Make static.
19900         (ix86_init_mmx_sse_builtins): Update for changed builtins.
19901         (ix86_expand_binop_builtin): Only use ix86_fixup_binary_operands
19902         if all the modes match.  Otherwise, fake it.
19903         (get_element_number, ix86_expand_vec_init_builtin,
19904         ix86_expand_vec_ext_builtin, ix86_expand_vec_set_builtin): New.
19905         (ix86_expand_builtin): Make static.  Update for changed builtins.
19906         (ix86_expand_vector_move_misalign): Use sse2_loadlpd with zero
19907         operand instead of sse2_loadsd.  Cast sse1 fallback to V4SFmode.
19908         (ix86_expand_vector_init_duplicate): New.
19909         (ix86_expand_vector_init_low_nonzero): New.
19910         (ix86_expand_vector_init_one_var, ix86_expand_vector_init_general):
19911         Split out from ix86_expand_vector_init; handle integer modes.
19912         (ix86_expand_vector_init): Use them.
19913         (ix86_expand_vector_set, ix86_expand_vector_extract): New.
19914         * config/i386/i386-protos.h: Update.
19915         * config/i386/predicates.md (reg_or_0_operand): New.
19916         * config/i386/mmx.md (mov<MMXMODEI>_internal): Add 'r' variants.
19917         (movv2sf_internal): Likewise.  And a splitter to match them all.
19918         (vec_dupv2sf, mmx_concatv2sf, vec_setv2sf, vec_extractv2sf,
19919         vec_initv2sf, vec_dupv4hi, vec_dupv2si, mmx_concatv2si, vec_setv2si,
19920         vec_extractv2si, vec_initv2si, vec_setv4hi, vec_extractv4hi,
19921         vec_initv4hi, vec_setv8qi, vec_extractv8qi, vec_initv8qi): New.
19922         (mmx_pinsrw): Fix operand ordering.
19923         * config/i386/sse.md (movv4sf splitter): Use direct pattern,
19924         rather than sse_loadss expander.
19925         (movv2df splitter): Similarly.
19926         (sse_loadss, sse_loadlss): Remove.
19927         (vec_dupv4sf, sse_concatv2sf, sse_concatv4sf, vec_extractv4sf_0): New.
19928         (vec_setv4sf, vec_setv2df): Use ix86_expand_vector_set.
19929         (vec_extractv4sf, vec_extractv2df): Use ix86_expand_vector_extract.
19930         (sse3_movddup): Rename with '*'.
19931         (sse3_movddup splitter): Use gen_rtx_REG instead of gen_lowpart.
19932         (sse2_loadsd): Remove.
19933         (vec_dupv2df_sse3): Rename from sse3_loadddup.
19934         (vec_dupv2df, vec_concatv2df_sse3, vec_concatv2df): New.
19935         (sse2_pinsrw): Fix argument ordering.
19936         (sse2_loadld, sse2_loadq): Add sse1 alternatives.
19937         (sse2_stored): Remove 'r' destination.
19938         (vec_dupv4si, vec_dupv2di, sse2_concatv2si, sse1_concatv2si,
19939         vec_concatv4si_1, vec_concatv2di, vec_setv2di, vec_extractv2di,
19940         vec_initv2di, vec_setv4si, vec_extractv4si, vec_initv4si,
19941         vec_setv8hi, vec_extractv8hi, vec_initv8hi, vec_setv16qi,
19942         vec_extractv16qi, vec_initv16qi): New.
19943
19944         * config/i386/emmintrin.h (__m128i, __m128d): Use typedef, not define.
19945         (_mm_set_sd, _mm_set1_pd, _mm_setzero_pd, _mm_set_epi64x,
19946         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128): Use
19947         constructor form.
19948         (_mm_load_pd, _mm_store_pd): Use plain dereference.
19949         (_mm_load_si128, _mm_store_si128): Likewise.
19950         (_mm_load1_pd): Use _mm_set1_pd.
19951         (_mm_load_sd): Use _mm_set_sd.
19952         (_mm_store_sd, _mm_storeh_pd): Use __builtin_ia32_vec_ext_v2df.
19953         (_mm_store1_pd, _mm_storer_pd): Use _mm_store_pd.
19954         (_mm_set_epi64): Use _mm_set_epi64x.
19955         (_mm_set1_epi64x, _mm_set1_epi64, _mm_set1_epi32, _mm_set_epi16,
19956         _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
19957         _mm_setr_epi8): Use _mm_set_foo form.
19958         (_mm_loadl_epi64, _mm_movpi64_epi64, _mm_move_epi64): Use _mm_set_epi64.
19959         (_mm_storel_epi64, _mm_movepi64_pi64): Use __builtin_ia32_vec_ext_v2di.
19960         (_mm_extract_epi16): Use __builtin_ia32_vec_ext_v8hi.
19961         (_mm_insert_epi16): Use __builtin_ia32_vec_set_v8hi.
19962         * config/i386/mmintrin.h (_mm_setzero_si64): Use plain cast.
19963         (_mm_set_pi32): Use __builtin_ia32_vec_init_v2si.
19964         (_mm_set_pi16): Use __builtin_ia32_vec_init_v4hi.
19965         (_mm_set_pi8): Use __builtin_ia32_vec_init_v8qi.
19966         (_mm_set1_pi16, _mm_set1_pi8): Use _mm_set_piN variant.
19967         * config/i386/pmmintrin.h (_mm_loaddup_pd): Use _mm_load1_pd.
19968         (_mm_movedup_pd): Use _mm_shuffle_pd.
19969         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss,
19970         _mm_set1_ps, _mm_set_ps, _mm_setr_ps): Use constructor form.
19971         (_mm_cvtpi16_ps, _mm_cvtpu16_ps, _mm_cvtpi8_ps, _mm_cvtpu8_ps,
19972         _mm_cvtps_pi8, _mm_cvtpi32x2_ps): Avoid __builtin_ia32_mmx_zero;
19973         Use _mm_setzero_ps.
19974         (_mm_load_ss, _mm_load1_ps): Use _mm_set* form.
19975         (_mm_load_ps, _mm_loadr_ps): Use raw dereference.
19976         (_mm_store_ss): Use __builtin_ia32_vec_ext_v4sf.
19977         (_mm_store_ps): Use raw dereference.
19978         (_mm_store1_ps): Use _mm_storeu_ps.
19979         (_mm_storer_ps): Use _mm_store_ps.
19980         (_mm_extract_pi16): Use __builtin_ia32_vec_ext_v4hi.
19981         (_mm_insert_pi16): Use __builtin_ia32_vec_set_v4hi.
19982
19983 2005-01-11  Stan Shebs  <shebs@apple.com>
19984
19985         * config/rs6000/rs6000.c (machopic_output_stub): Issue
19986         ldu instead of lwzu if 64-bit -mdynamic-no-pic.
19987
19988 2005-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
19989
19990         PR target/18761
19991         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
19992         Skip all DECLs except for FIELD_DECLs.
19993
19994 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
19995
19996         * config/s390/s390.c (override_options): Return error if
19997         -mbackchain, -mpacked-stack and -mhard-float are used together.
19998         (s390_va_start): Remove the backchain && packed-stack special case.
19999         (s390_gimplify_va_arg): Likewise.
20000         * doc/invoke.texi: Remove the ABI incompatibility note.
20001
20002 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
20003
20004         * config/s390/s390.c (struct s390_frame_layout): Remove
20005         save_backchain_p.
20006         (s390_frame_info, s390_emit_prologue): Replace occurrences of
20007         save_backchain_p with TARGET_BACKCHAIN.
20008
20009 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
20010
20011         PR target/18916
20012         * builtins.c (std_gimplify_va_arg_expr): Adjust alignment of *ap.
20013         * expr.h (struct locate_and_pad_arg_data): Add "boundary".
20014         * function.c (locate_and_pad_parm): Set new field.
20015         (assign_parm_find_stack_rtl): Use it instead of FUNCTION_ARG_BOUNDARY.
20016         Tweak where_pad test to include "none".  Always set mem align for
20017         stack_parm.
20018         (assign_parm_adjust_stack_rtl): Discard stack_parm if alignment
20019         not sufficient for type.
20020         (assign_parm_setup_block): If stack_parm is zero on entry, always
20021         make a new stack local.  Block move old stack parm if necessary
20022         to new aligned stack local.
20023         (assign_parm_setup_stack): Use a block move to handle
20024         potentially misaligned entry_parm.
20025         (assign_parms_unsplit_complex): Specify required alignment when
20026         creating stack local.
20027         * calls.c (compute_argument_addresses): Override alignment of stack
20028         arg calculated from its type with the alignment given by
20029         FUNCTION_ARG_BOUNDARY.
20030         (store_one_arg): Likewise.
20031
20032 2005-01-11  Jan Beulich  <jbeulich@novell.com>
20033
20034         * config/ia64/ia64.md (zero_extendsidi2): Replace zxt4 by addp4.
20035         Change respective itanium_class attribute to ialu.
20036         (shladdp4_internal): New.
20037         * config/ia64/predicates.md (shladd_log2_operand): New.
20038
20039 2005-01-11  Richard Henderson  <rth@redhat.com>
20040
20041         * expr.c (store_constructor): Use rtvec_alloc instead of
20042         alloca+gen_rtvec_v, and an incorrect number passed to alloca.
20043
20044 2005-01-11  Kazu Hirata  <kazu@cs.umass.edu>
20045
20046         * config/alpha/alpha.c, config/i386/mmx.md: Fix comment typos.
20047
20048 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
20049
20050         * varasm.c (default_section_type_flags_1): Don't set SECTION_SMALL.
20051         * config/ia64/ia64.c (TARGET_SECTION_TYPE_FLAGS): Define.
20052         (TARGET_RWRELOC): Define.
20053         (ia64_rwreloc_section_type_flags): Delete.
20054         (ia64_section_type_flags): New function.
20055         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): Don't define.
20056         (TARGET_RWRELOC): Define.
20057
20058 2005-01-10  David Mosberger  <davidm@hpl.hp.com>
20059
20060         PR target/18987
20061         * config/ia64/ia64.c (process_set): For alloc insn, only call
20062         process_epilogue is !frame_pointer_needed.
20063
20064 2005-01-10  Roger Sayle  <roger@eyesopen.com>
20065
20066         PR c++/19355
20067         * c-common.c (c_common_truthvalue_conversion): TRUTH_NOT_EXPR is a
20068         unary operator and can't be treated as a binary/comparison operator.
20069
20070 2005-01-10  Richard Henderson  <rth@redhat.com>
20071
20072         * config/i386/i386.c (ix86_function_value): Use type_natural_mode.
20073         (ix86_return_in_memory): Likewise.
20074         (function_arg_advance):  Likewise.  Mirror structure in function_arg
20075         for choosing register to advance.
20076
20077 2005-01-10  Kazu Hirata  <kazu@cs.umass.edu>
20078
20079         * tree-vectorizer.c, tree.def: Fix comment typos.
20080
20081 2005-01-10  Mark Dettinger  <dettinge@de.ibm.com>
20082
20083         * config/s390/s390.c (struct processor_costs): 4 new fields:
20084         ddbr, ddr, debr, der.
20085         (s390_rtx_costs): More precise handling of divide instructions.
20086
20087 2005-01-10  David Edelsohn  <edelsohn@gnu.org>
20088
20089         * config/rs6000/t-aix43 (BOOT_LDFLAGS): Define.
20090
20091 2005-01-10  Jan Beulich  <jbeulich@novell.com>
20092
20093         * config/ia64/ia64.c (ia64_in_small_data_p): Also handle the section
20094         names resulting from -ffunction-sections/-fdata-sections and linkonce
20095         ones.
20096         * varasm.c (default_section_type_flags_1): Also set SECTION_SMALL
20097         based on the section name. Rearrange the section name comparison logic
20098         slightly so that each section name is compared against at most once.
20099
20100 2005-01-10  Ben Elliston  <bje@au.ibm.com>
20101
20102         * doc/invoke.texi (Code Gen Options): Add PowerPC to the list of
20103         targets for which -fPIC reduces limitations on the GOT size.
20104
20105 2005-01-09  Falk Hueffner  <falk@debian.org>
20106
20107         * fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
20108         X/C1 cmpop C2.
20109
20110 2005-01-09  David Edelsohn  <edelsohn@gnu.org>
20111
20112         PR target/18720
20113         * collect2.c (main): Set aixrtl_flag for -brtl option.
20114         (resolve_lib_name): Search for .so file extension before .a
20115         if aixrtl_flag set.
20116
20117 2005-01-09  Dorit Naishlos  <dorit@il.ibm.com>
20118
20119         * tree-vectorizer.c (vect_enhance_data_refs_alignment): Add dump prints.
20120         (vect_analyze_data_refs_alignment): Add dump prints.
20121
20122 2005-01-09  Ira Rosen  <irar@il.ibm.com>
20123
20124         * tree-vectorizer.c (vect_analyze_offset_expr): Use
20125         expr_invariant_in_loop_p.
20126         Initialize outputs first thing in the function.
20127         (vect_update_ivs_after_vectorizer): Call initial_condition_in_loop_num.
20128         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
20129         (vect_analyze_pointer_ref_access): Check that the initial condition of
20130         the access function is loop invariant.
20131
20132 2005-01-09  Richard Henderson  <rth@redhat.com>
20133
20134         * config/i386/i386.c (bdesc_2arg): Update names for mmx_ prefixes.
20135         (ix86_expand_builtin): Likewise.  Frob MASKMOVQ wrt the input mem
20136         just like MASKMOVDQU.  Return plain zero for MMX_ZERO.
20137         * config/i386/i386.md (MMXMODEI, mov<MMXMODEI>,
20138         mov<MMXMODEI>_internal_rex64, mov<MMXMODEI>_internal, movv2sf,
20139         movv2sf_internal_rex64, movv2sf_internal, MMXMODE,
20140         movmisalign<MMXMODE>, mmx_pmovmskb, mmx_maskmovq, mmx_maskmovq_rex,
20141         sse_movntdi, addv8qi3, addv4hi3, addv2si3, mmx_adddi3, ssaddv8qi3,
20142         ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3, subv4hi3, subv2si3,
20143         mmx_subdi3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
20144         mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
20145         sse2_umulsidi3, mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3,
20146         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pinsrw,
20147         mmx_pextrw, mmx_pshufw, eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3,
20148         gtv2si3, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3,
20149         ashrv2si3, lshrv4hi3, lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3,
20150         mmx_ashldi3, mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
20151         mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
20152         mmx_punpckldq, emms, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3,
20153         eqv2sf3, pfmaxv2sf3, pfminv2sf3, mulv2sf3, femms, pf2id, pf2iw,
20154         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pfrcpv2sf2, pfrcpit1v2sf3,
20155         pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3, pmulhrwv4hi3, pswapdv2si2,
20156         pswapdv2sf2): Move to mmx.md; rename as necessary with leading
20157         mmx_ prefix.
20158         (mmx_clrdi, pavgusb): Remove.
20159         (ldmxcsr, stmxcsr, sfence, sfence_insn): Move to sse.md; rename
20160         with leading sse_ prefix.
20161         * config/i386/sse.md: Receive them.
20162         * config/i386/mmx.md: New file.
20163         (MMXMODE12, MMXMODE24, mmxvecsize): New.
20164         (subrv2sf3): Turn into expander for normal subtraction.
20165         (mmx_addv2sf3, mmx_mulv2sf3, mmx_smaxv2sf3, mmx_sminv2sf3,
20166         mmx_eqv2sf3, mmx_mulv4hi3, mmx_smulv4hi3_highpart,
20167         mmx_umulv4hi3_highpart, mmx_pmaddwd, mmx_pmulhrwv4hi3, sse2_umulsidi3,
20168         mmx_umaxv8qi3, mmx_smaxv4hi3, mmx_uminv8qi3, mmx_sminv4hi3): Mark
20169         commutative; use ix86_binary_operator_ok.
20170         (mmx_add<MMXMODEI>3, mmx_ssadd<MMXMODE12>3, mmx_usadd<MMXMODE12>3,
20171         mmx_sub<MMXMODEI>3, mmx_sssub<MMXMODE12>3, mmx_ussub<MMXMODE12>3
20172         mmx_ashr<MMXMODE24>3, mmx_lshr<MMXMODE23>3, mmx_ashl<MMXMODE24>3
20173         mmx_eq<MMXMODEI>3, mmx_gt<MMXMODEI>3, mmx_and<MMXMODEI>3,
20174         mmx_nand<MMXMODEI>3, mmx_ior<MMXMODEI>3, mmx_xor<MMXMODEI>3):
20175         Macroize from existing patterns; use ix86_binary_operator_ok.
20176         (mmx_packsswb, mmx_packssdw, mmx_packuswb): Add memory alternative.
20177         (mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
20178         mmx_punpckhdq, mmx_punpckhdq, mmx_punpckldq): Likewise.  Model
20179         with vec_select+vec_concat.
20180         (mmx_pshufw, mmx_pshufw_1): Likewise.
20181         (mmx_uavgv8qi3): Merge pavgusb.  Model correcty.
20182         (mmx_uavgv4hi3): Model correctly.
20183         * config/i386/mmintrin.h (_mm_and_si64, _mm_andnot_si64, _mm_or_si64,
20184         _mm_xor_si64): Remove casts.
20185
20186 2005-01-09  Zdenek Dvorak  <dvorakz@suse.cz>
20187
20188         PR tree-optimization/19224
20189         * tree-scalar-evolution.c (get_instantiated_value,
20190         set_instantiated_value): New functions.
20191         (instantiate_parameters_1): Cache the results.
20192         (instantiate_parameters, resolve_mixers): Initialize and free
20193         the cache.
20194
20195 2005-01-08  David Edelsohn  <edelsohn@gnu.org>
20196
20197         * config/i386/i386.md (addhi_4): Correct reference in comment.
20198         (addqi_4): Same.
20199
20200 2005-01-08  Richard Henderson  <rth@redhat.com>
20201
20202         * config/i386/emmintrin.h (_mm_cvtsi128_si32): Move earlier.
20203         (_mm_cvtsi128_si64x): Likewise.
20204         (_mm_srl_epi64, _mm_srl_epi32, _mm_srl_epi16, _mm_sra_epi32,
20205         _mm_sra_epi16, _mm_sll_epi64, _mm_sll_epi32, _mm_sll_epi16): Use
20206         the _mm_{srl,sll}i_foo counterpart, and _mm_cvtsi128_si32.
20207         * config/i386/i386-modes.def: Add V16HI, V32QI, V4DF, V8SF.
20208         * config/i386/i386-protos.h: Update.
20209         * config/i386/i386.c (print_operand): Add 'H'.
20210         (ix86_fixup_binary_operands): Split out from ...
20211         (ix86_expand_binary_operator): ... here.
20212         (ix86_fixup_binary_operands_no_copy): New.
20213         (ix86_expand_fp_absneg_operator): Handle vector mode results.
20214         (bdesc_2arg): Update names for sse{,2,3}_ prefixes.
20215         (ix86_init_mmx_sse_builtins): Remove *maskncmp* special cases.
20216         (safe_vector_operand): Use CONST0_RTX.
20217         (ix86_expand_binop_builtin): Use ix86_fixup_binary_operands.
20218         (ix86_expand_builtin): Merge CODE_FOR_sse2_maskmovdqu_rex64 and
20219         CODE_FOR_sse2_maskmovdqu.  Special case SSE version of MASKMOVDQU
20220         expansion.  Update names for sse{,2,3}_ prefixes.  Remove *maskncmp*
20221         special cases.
20222         * config/i386/i386.h (IX86_BUILTIN_CMPNGTSS): New.
20223         (IX86_BUILTIN_CMPNGESS): New.
20224         * config/i386/i386.md (UNSPEC_FIX_NOTRUNC): New.
20225         (attr type): Add sselog1.
20226         (attr unit, attr memory): Handle it.
20227         (movti, movti_internal, movti_rex64): Move near other integer moves.
20228         (movtf, movtf_internal): Move near other fp moves.
20229         (SSEMODE, SSEMODEI, vec_setv2df, vec_extractv2df, vec_initv2df,
20230         vec_setv4sf, vec_extractv4sf, vec_initv4sf, movv4sf, movv4sf_internal,
20231         movv2df, movv2df_internal, mov<SSEMODEI>, mov<SSEMODEI>_internal,
20232         movmisalign<SSEMODE>, sse_movups_1, sse_movmskps, sse_movntv4sf,
20233         sse_movhlps, sse_movlhps, sse_storehps, sse_loadhps, sse_storelps,
20234         sse_loadlps, sse_loadss, sse_loadss_1, sse_movss, sse_storess,
20235         sse_shufps, addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, negv4sf2,
20236         mulv4sf3, vmmulv4sf3, divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2,
20237         rsqrtv4sf2, vmrsqrtv4sf2, sqrtv4sf2, vmsqrtv4sf2, sse_andv4sf3,
20238         sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3, sse2_andv2df3,
20239         sse2_nandv2df3, sse2_iorv2df3, sse2_xorv2df3, sse2_andv2di3,
20240         sse2_nandv2di3, sse2_iorv2di3, sse2_xorv2di3, maskcmpv4sf3,
20241         vmmaskcmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
20242         smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
20243         cvttps2pi, cvtsi2ss, cvtsi2ssq, cvtss2si, cvtss2siq, cvttss2si,
20244         cvttss2siq, addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3,
20245         vmmulv2df3, divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3,
20246         vmsminv2df3, sqrtv2df2, vmsqrtv2df2, maskcmpv2df3, vmmaskcmpv2df3,
20247         sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb, sse2_maskmovdqu,
20248         sse2_maskmovdqu_rex64, sse2_movntv2df, sse2_movntv2di, sse2_movntsi,
20249         cvtdq2ps, cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq,
20250         cvtpd2pi, cvttpd2pi, cvtpi2pd, cvtsd2si, cvtsd2siq, cvttsd2si,
20251         cvttsd2siq, cvtsi2sd, cvtsi2sdq, cvtsd2ss, cvtss2sd, cvtpd2ps,
20252         cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3, ssaddv16qi3,
20253         ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3, subv4si3,
20254         subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3, mulv8hi3,
20255         smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
20256         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_uavgv16qi3, sse2_uavgv8hi3,
20257         sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd, sse2_pshuflw,
20258         sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3, gtv8hi3,
20259         gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3, ashrv8hi3,
20260         ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3, ashlv4si3,
20261         ashlv2di3, sse2_ashlti3, sse2_lshrti3, sse2_unpckhpd, sse2_unpcklpd,
20262         sse2_packsswb, sse2_packssdw, sse2_packuswb, sse2_punpckhbw,
20263         sse2_punpckhwd, sse2_punpckhdq, sse2_punpcklbw, sse2_punpcklwd,
20264         sse2_punpckldq, sse2_punpcklqdq, sse2_punpckhqdq, sse2_movupd,
20265         sse2_movdqu, sse2_movdq2q, sse2_movdq2q_rex64, sse2_movq2dq,
20266         sse2_movq2dq_rex64, sse2_loadd, sse2_stored, sse2_storehpd,
20267         sse2_loadhpd, sse2_storelpd, sse2_loadlpd, sse2_movsd, sse2_loadsd,
20268         sse2_loadsd_1, sse2_storesd, sse2_shufpd, sse2_clflush, sse2_mfence,
20269         mfence_insn, sse2_lfence, lfence_insn, mwait, monitor, addsubv4sf3,
20270         addsubv2df3, haddv4sf3, haddv2df3, hsubv4sf3, hsubv2df3, movshdup,
20271         movsldup, lddqu, loadddup, movddup): Move to sse.md.  Any with
20272         non-optabs meanings renamed with an "sse{,2,3}_" prefix at the
20273         same time.
20274         (SSEPUSH, push<SSEPUSH>): Remove.
20275         (MMXPUSH, push<MMXPUSH>): Remove.
20276         (sse_movaps, sse_movaps_1, sse_movups): Remove.
20277         (sse2_movapd, sse2_movdqa, sse2_movq): Remove.
20278         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Remove.
20279         (sse_clrv4sf, sse_clrv2df, sse2_clrti): Remove.
20280         (maskncmpv4sf3, vmmaskncmpv4sf3): Remove.
20281         (maskncmpv2df3, vmmaskncmpv2df3): Remove.
20282         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti): Remove.
20283         (lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti): Remove.
20284         * config/i386/athlon.md (athlon_sselog_load): Handle sselog1.
20285         (athlon_sselog_load_k8, athlon_sselog, athlon_sselog_k8): Likewise.
20286         * config/i386/ppro.md (ppro_sse_div_V4SF_load): Fix memory attr.
20287         (ppro_sse_log_V4SF_load): Similarly.  Handle sselog1.
20288         (ppro_sse_log_V4SF): Handle sselog1.
20289         * config/i386/predicates.md (const_0_to_1_operand): New.
20290         (const_0_to_255_mul_8_operand): New.
20291         (const_1_to_31_operand): Rename from const_int_1_31_operand.
20292         (const_2_to_3_operand, const_4_to_7_operand): New.
20293         * config/i386/sse.md: New file.
20294         (SSEMODE12, SSEMODE24, SSEMODE124, SSEMODE248, ssevecsize): New.
20295         (sse_movups): Rename from sse_movups_1.
20296         (sse_loadlss): Rename from sse_loadss_1.
20297         (andv4sf3, iorv4sf3, xorv4sf3, andv2df3): Remove the sse prefix
20298         from the name.
20299         (negv4sf2): Use ix86_expand_fp_absneg_operator.
20300         (absv4sf2, negv2df, absv2df): New.
20301         (addv4sf3): Add expander to call ix86_fixup_binary_operands_no_copy.
20302         (subv4sf3, mulv4sf3, divv4sf3, smaxv4sf3, sminv4sf3, andv4sf3,
20303         iorv4sf3, xorv4sf3, addv2df3, subv2df3, mulv2df3, divv2df3,
20304         smaxv2df3, sminv2df3, andv2df3, iorv2df3, xorv2df3, mulv8hi3,
20305         umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3): Likewise.
20306         (sse3_addsubv4sf3): Model correctly.
20307         sse3_haddv4sf3, sse3_hsubv4sf3, sse3_addsubv2df3, sse3_haddv2df3,
20308         sse3_hsubv2df3, sse2_ashlti3, sse2_lshrti3): Likewise.
20309         (sse_movhlps): Model with vec_select+vec_concat.
20310         (sse_movlhps, sse_unpckhps, sse_unpcklps, sse3_movshdup,
20311         sse3_movsldup, sse_shufps, sse_shufps_1, sse2_unpckhpd, sse3_movddup,
20312         sse2_unpcklpd, sse2_shufpd, sse2_shufpd_1, sse2_punpckhbw,
20313         sse2_punpcklbw, sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq,
20314         sse2_punpckldq, sse2_punpckhqdq, sse2_punpcklqdq, sse2_pshufd,
20315         sse2_pshufd_1, sse2_pshuflw, sse2_pshuflw_1, sse2_pshufhw,
20316         sse2_pshufhw_1): Likewise.
20317         (neg<SSEMODEI>2, one_cmpl<SSEMODEI>2): New.
20318         (add<SSEMODEI>3, sse2_ssadd<SSEMODE12>3, sse2_usadd<SSEMODE12>3,
20319         sub<SSEMODEI>3, sse2_sssub<SSEMODE12>3, sse2_ussub<SSEMODE12>3,
20320         ashr<SSEMODE24>3, lshr<SSEMODE248>3, sse2_eq<SSEMODE124>3,
20321         sse2_gt<SSEMODDE124>3, and<SSEMODEI>3, sse_nand<SSEMODEI>3,
20322         ior<SSEMODEI>3, xor<SSEMODEI>3): Macroize from existing patterns.
20323         (addv4sf3, sse_vmaddv4sf3, mulv4sf3, sse_vmmulv4sf3, smaxv4sf3,
20324         sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, addv2df3, sse2_vmaddv2df3,
20325         mulv2df3, sse2_vmmulv2df3, smaxv2df3, sse2_vmsmaxv2df3, sminv2df3,
20326         sse2_vmsminv2df3, umaxv16qi3, smaxv8hi3, uminv16qi3
20327         sminv8hi3): Mark commutative
20328         operands.  Use ix86_binary_operator_ok.
20329         (sse_unpckhps, sse_unpcklps, sse2_packsswb, sse2_packssdw,
20330         sse2_packuswb, sse2_punpckhbw, sse2_punpcklbw, sse2_punpckhwd,
20331         sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq, sse2_punpckhqdq,
20332         sse2_punpcklqdq): Allow operand2 in memory.
20333         (sse_movhlps, sse_movlhps, sse2_unpckhpd, sse2_unpcklpd
20334         sse2_movsd): Add memory alternatives.
20335         (sse_storelps): Turn expander into an insn; split after reload.
20336         (sse_storess, sse2_loadhpd, sse2_loadlpd): Add non-xmm inputs.
20337         (sse2_storehpd, sse2_storelpd): Add non-xmm outputs.
20338
20339 2005-01-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
20340
20341         * configure.ac (DWARF-2 debug_line): Use objdump.
20342         * configure: Regenerate.
20343
20344 2005-01-08  Jeff Law  <law@redhat.com>
20345             Diego Novillo  <dnovillo@redhat.com>
20346
20347         PR tree-optimization/18241
20348         * tree-nrv.c (tree_nrv): Ignore volatile return values.
20349         * tree-ssa-dse.c (dse_optimize_stmt): Do not optimize
20350         statements with volatile operands.
20351         * tree-ssa-operands.c (add_stmt_operand): Do add volatile
20352         operands after marking a statement with has_volatile_ops.
20353
20354 2005-01-08  Roger Sayle  <roger@eyesopen.com>
20355
20356         * tree.c (int_fits_type_p): Always honor integer constant
20357         TYPE_MIN_VALUE and TYPE_MAX_VALUE if they exist.
20358
20359 2005-01-08  Roger Sayle  <roger@eyesopen.com>
20360
20361         * ifcvt.c (find_if_case_1): Reinstate 2005-01-04 change, now that
20362         the latent bug in rtl_delete_block has been resolved.
20363
20364 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
20365
20366         * config/mips/t-iris6 (MULTILIB_DIRNAMES): Use -mabi argument values.
20367         (MULTILIB_OSDIRNAMES): Use the standard lib, lib32 and lib64.
20368
20369 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
20370
20371         * config/mips/t-slibgcc-irix (SHLIB_LINK): Install a copy of the
20372         library as @multilib_dir@/$(SHLIB_SONAME).
20373
20374 2005-01-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
20375
20376         * configure.ac (HAVE_AS_OFFSETABLE_LO10): Fix typo.
20377         * configure: Regenerate.
20378
20379 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
20380
20381         * c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy
20382         TYPE_MODE.
20383
20384 2005-01-07  David Edelsohn  <edelsohn@gnu.org>
20385
20386         PR target/13674
20387         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
20388         Convert non-word aligned offset address using ld/std into
20389         indirect address.
20390
20391 2005-01-07  Richard Henderson  <rth@redhat.com>
20392
20393         * config/i386/i386.md (sse_loadhps splitter): Fix operand number typo.
20394
20395 2005-01-07  Richard SAndiford  <rsandifo@redhat.com>
20396
20397         * tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
20398
20399 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
20400
20401         PR tree-optimization/19283
20402         * fold-const.c (fold_widened_comparison): Return NULL if shorter_type
20403         is not shorter than the original type.
20404
20405         PR rtl-optimization/19012
20406         * config/i386/i386.md (addqi_1_slp): Set memory attribute.
20407
20408         PR rtl-optimization/18861
20409         * cfgbuild.c (BLOCK_USED_BY_TABLEJUMP): Define.
20410         (FULL_STATE): Define.
20411         (mark_tablejump_edge): New function.
20412         (purge_dead_tablejump_edges): New function.
20413         (find_bb_boundaries): Use it.
20414
20415         PR tree-optimization/18828
20416         * builtins.c (expand_builtin_next_arg): Remove argument and all
20417         the argument checking.
20418         (expand_builtin): Adjust caller.
20419         (expand_builtin_va_start): Likewise.  Remove error for too many
20420         arguments.
20421         (fold_builtin_next_arg): Issue error for too many arguments.
20422         After checking arguments, replace them with magic arguments that
20423         prevent further checking of the args.
20424
20425 2005-01-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20426
20427         * pa64-hpux.h (STARTFILE_SPEC): Fix typo in spec.
20428
20429 2005-01-06  Roger Sayle  <roger@eyesopen.com>
20430
20431         PR target/6077
20432         * gcc.c (input_suffix_matches): Tweak the semantics of %{.s:...}
20433         and %{.S:...} (and their negative variants) to test whether the
20434         input file is assembler or pre-processed-assembler independent of
20435         the actual filename extension.
20436
20437 2005-01-06  Roger Sayle  <roger@eyesopen.com>
20438
20439         * simplify-rtx.c (simplify_subreg): Simplify truncations of shifts
20440         of sign or zero extended values.
20441
20442 2005-01-06  Geoffrey Keating  <geoffk@apple.com>
20443
20444         * c-cppbuiltin.c (builtin_define_float_constants): Set __*_EPSILON__
20445         for IBM long double format correctly.
20446
20447 2005-01-06  Daniel Berlin <dberlin@dberlin.org>
20448
20449         Fix PR tree-optimization/18792
20450
20451         * tree-data-ref.c (build_classic_dist_vector): Change first_loop
20452         to first_loop_depth, and use loop depth instead of loop number.
20453         (build_classic_dir_vector): Ditto.
20454         (compute_data_dependences_for_loop): Use depth, not loop number.
20455         * tree-loop-linear.c (try_interchange_loops): Use loop depth, not loop
20456         number. Pass in loops, instead of loop numbers.
20457         (gather_interchange_stats): Ditto.
20458         (linear_transform_loops): Ditto.
20459
20460 2005-01-06  Richard Sandiford  <rsandifo@redhat.com>
20461
20462         PR rtl-opt/13299
20463         * loop.c (get_monotonic_increment, biased_biv_fits_mode_p,
20464         biv_fits_mode_p, extension_within_bounds_p): New functions.
20465         (check_ext_dependent_givs): Use them.
20466
20467 2005-01-06  Roger Sayle  <roger@eyesopen.com>
20468
20469         * cfgrtl.c (rtl_delete_block): A basic block may be followed by
20470         more than one barrier, in which case we should delete them all.
20471
20472 2005-01-06  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
20473
20474         * gcc.c (process_command): Change year in 'gcc --version' to 2005.
20475
20476 2005-01-05  Daniel Berlin  <dberlin@dberlin.org>
20477
20478         Fix PR middle-end/19286
20479         Fix PR debug/19267
20480         * dwarf2out.c (gen_subprogram_die): If we've already tried to
20481         output this subprogram, simply ignore this attempt to do it again.
20482         (add_abstract_origin_attribute): Don't abort trying to add the abstract
20483         origin attribute if it's not possible.
20484         (gen_block_die): Don't ignore subblocks of "unused" blocks.
20485         (decls_for_scope): Ditto.
20486         * gimple-low.c (mark_blocks_with_used_subblocks): Remove.
20487         (mark_used_blocks): Don't call mark_blocks_with_used_subblocks.
20488
20489 2005-01-05  Richard Henderson  <rth@redhat.com>
20490
20491         PR target/11327
20492         * config/i386/i386.c (BUILTIN_DESC_SWAP_OPERANDS): New.
20493         (bdesc_2arg): Use it.
20494         (ix86_expand_binop_builtin): Force operands into registers
20495         when optimizing.
20496         (ix86_expand_unop_builtin, ix86_expand_unop1_builtin,
20497         ix86_expand_sse_compare, ix86_expand_sse_comi,
20498         ix86_expand_builtin): Likewise.
20499
20500 2005-01-05  Richard Henderson  <rth@redhat.com>
20501
20502         * config/ia64/ia64.c (rtx_needs_barrier): Handle CONST_VECTOR
20503         and VEC_SELECT.
20504         * config/ia64/vect.md (mulv8qi3): Re-implement with mix_[rl].
20505         (mulv4hi3): Set itanium_class mmmul.
20506         (fpack_sfxf, fpack_xfsf, fpack_xfxf): Remove.
20507         (fpack): Rename from fpack_sfsf.
20508
20509 2005-01-05  Richard Henderson  <rth@redhat.com>
20510
20511         PR rtl-opt/10692
20512         * reload1.c (do_input_reload): Restrict the optimization deleteing
20513         a previous output reload to RELOAD_FOR_INPUT.
20514
20515 2005-01-05  Steven Bosscher  <stevenb@suse.de>
20516
20517         * combine.c (expand_compound_operation)  <ZERO_EXTRACT>: Add
20518         comment that we fall through after case.
20519         (mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
20520         (distribute_links): Likewise.
20521         * cse.c (cse_insn): Likewise.
20522         * cselib.c (cselib_invalidate_mem): Likewise.
20523         * df.c: Update comments at the top of the file.
20524         (read_modify_subreg_p): Update comments here too.
20525         (df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
20526         * flow.c (mark_set_1): Likewise.
20527         (mark_used_regs): Likewise.
20528         * gcse.c (mems_conflict_for_gcse_p): Likewise.
20529         (canon_list_insert): Likewise.
20530         (mark_set): Likewise.
20531         (try_replace_reg): Likewise.
20532         (store_killed_in_insn): Likewise.
20533         * loop.c (count_one_set): Likewise.
20534         (basic_induction_var): Likewise.
20535         * postreload-gcse.c (find_mem_conflicts): Likewise.
20536         * postreload.c (reload_combine_note_store): Likewise.
20537         (move2add_note_store): Likewise.
20538         * reload.c (find_equiv_reg): Likewise.
20539         (mark_referenced_resources): Likewise.
20540         * rtlanal.c (set_noop_p): Likewise.
20541         (note_stores): Likewise.
20542         (note_uses): Likewise.
20543         * sched-deps.c (sched_analyze_1): Likewise.
20544         * sched-rgn.c (check_live_1): Likewise.
20545         (update_live_1): Likewise.
20546         * config/i860/i860.c: Likewise.
20547
20548         * rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
20549         an lvalue.
20550         (ZERO_EXTRACT): Mention that this one can be an lvalue.
20551
20552         * doc/rtl.texi: Update documentation for bit-fields and SET.
20553
20554 2005-01-05  Roger Sayle  <roger@eyesopen.com>
20555
20556         * ifcvt.c (find_if_case_1): Revert 2005-01-04 change.
20557
20558 2005-01-05  Jan Hubicka  <jh@suse.cz>
20559             Richard Henderson  <rth@redhat.com>
20560
20561         PR target/18910
20562         * config/i386/i386.c (ix86_expand_move): Handle tls symbols
20563         with an offset.
20564
20565 2005-01-05  Richard Henderson  <rth@redhat.com>
20566
20567         PR target/12902
20568         * config/i386/i386.md (sse_movhps, sse_movlps): Remove.
20569         (sse_shufps): Change operand 3 to const_int_operand.
20570         (sse2_storelps): Fix typo in template.
20571         (sse_storehps, sse_loadhps, sse_storelps, sse_loadlps): New.
20572         * config/i386/i386.c (ix86_expand_vector_move_misalign): Use them.
20573         (ix86_expand_builtin): Likewise.
20574
20575 2005-01-05  Julian Brown  <julian@codesourcery.com>
20576
20577         * config/arm/arm.c (arm_return_in_memory): Treat complex types
20578         as aggregates for AAPCS ABIs.
20579
20580 2005-01-05  Stan Shebs  <shebs@apple.com>
20581
20582         * unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
20583         Mach-O getters if ppc64.
20584         * config/darwin.c (darwin_asm_output_dwarf_delta): Obey
20585         size argument.
20586         * config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
20587         signed four-byte field for global code case.
20588         (STARTFILE_SPEC): Avoid crt2.o for 64-bit compilation.
20589
20590 2005-01-05  Roger Sayle  <roger@eyesopen.com>
20591
20592         PR middle-end/19100
20593         * c-common.c: Include real.h.
20594         (c_common_truthvalue_conversion): Avoid destructively modifying expr.
20595         Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
20596         Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
20597         * Makefile.in (c-common.o): Update dependencies.
20598
20599 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
20600
20601         * c-parse.in (asm_string): Add trailing semicolon.
20602
20603 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
20604
20605         * c-parse.in (asm_string): New.  Don't allow wide strings in
20606         'asm'.
20607         (simple_asm_expr, asm_argument, asm_operand, asm_clobbers): Use
20608         asm_string instead of STRING.
20609
20610 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
20611
20612         * c-typeck.c (constructor_no_implicit): Remove.
20613         (set_designator, process_init_element): Don't check
20614         constructor_no_implicit.
20615
20616 2005-01-05  J"orn Rennecke <joern.rennecke@st.com>
20617             Kaz Kojima  <kkojima@gcc.gnu.org>
20618
20619         PR target/16482
20620         * lcm.c (create_pre_exit): New.
20621         (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
20622         ENTRY_EXIT_EXTRA to 3.  Use create_pre_exit.
20623
20624 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
20625
20626         * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
20627         -msoft-float in target_float_switch.
20628         * arm.c (arm_override_options): Fix processing of target_float_switch.
20629
20630 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
20631
20632         * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
20633         preferencing.
20634
20635 2004-01-05  Uros Bizjak  <uros@kss-loka.si>
20636
20637         * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
20638         Replace i387 with 'i386 compiler' in -mfpmath=sse option.
20639
20640 2005-01-04  Roger Sayle  <roger@eyesopen.com>
20641
20642         * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
20643         if deleting the then-block allows the test-block to fallthru to the
20644         else-block.
20645
20646 2005-01-04  Andrew Pinski  <pinskia@physics.uc.edu>
20647
20648         PR c/19152
20649         * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
20650         after the full declaration if the are in two different TUs.
20651
20652 2005-01-04  Richard Henderson  <rth@redhat.com>
20653
20654         PR tree-opt/19158
20655         * tree-sra.c (generate_one_element_init): Just
20656         call gimplify_and_add.
20657         (generate_element_init): Record the
20658         new referenced variables and mark them for renaming
20659         and split out to ...
20660         (generate_element_init_1): This.
20661         (scalarize_init): Don't call push_gimplify_context/
20662         pop_gimplify_context.
20663
20664 2005-01-04  Geoffrey Keating  <geoffk@apple.com>
20665
20666         * toplev.c (get_src_pwd): Handle failure of getpwd().
20667
20668 2005-01-04  Roger Sayle  <roger@eyesopen.com>
20669
20670         * fold-const.c (fold_single_bit_test): Delete unreachable handling
20671         of TRUTH_NOT_EXPR.
20672         (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
20673         all the cases handled by it are inverted by invert_truthvalue.
20674
20675 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
20676
20677         * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
20678         (save_register_windowsi): Likewise.
20679
20680 2005-01-04  Richard Henderson  <rth@redhat.com>
20681
20682         * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
20683
20684 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
20685
20686         PR middle-end/17767
20687         * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
20688         any simplifications of vector mode comparison operators.
20689         * simplify-rtx.c (simplify_relational_operation): Fix variable name.
20690
20691 2005-01-04  Paolo Bonzini  <bonzini@gnu.org>
20692             Devang Patel  <dpatel@apple.com>
20693
20694         PR tree-optimization/18308
20695         * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
20696         the operands before creating a new expression.
20697         * dojump.c (do_jump): Make drop_through_label available
20698         for all cases.  Add expansion of COND_EXPR.
20699
20700 2005-01-04  Ira Rosen  <irar@il.ibm.com>
20701
20702         * tree-vectorizer.c (vect_analyze_offset_expr): Test for
20703         INTEGER_CST instead of TREE_CONSTANT.
20704         (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
20705         instead of TREE_CONSTANT.
20706         (vect_analyze_pointer_ref_access): Test for INTEGER_CST
20707         instead of TREE_CONSTANT.
20708
20709 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
20710
20711         * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
20712
20713 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
20714
20715         PR target/19240
20716         * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
20717         (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
20718
20719 2005-01-03  Richard Henderson  <rth@redhat.com>
20720
20721         * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
20722         (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
20723         fold_convert_const_real_from_real): Split out from ...
20724         (fold_convert_const): ... here.
20725
20726 2005-01-03  Richard Henderson  <rth@redhat.com>
20727
20728         PR target/19235
20729         * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
20730         (mov<MMXMODEI>_internal): Likewise.
20731         (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
20732         Add V2SF case; use it for SSE1; don't use TI.
20733         (movdf_integer): Likewise.
20734         (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
20735
20736 2005-01-03  Ira Rosen  <irar@il.ibm.com>
20737
20738         * tree-vectorizer.c (vect_strip_conversions): New function.
20739         (vect_analyze_offset_expr): Call vect_strip_conversions. Add
20740         check for binary class.
20741
20742 2005-01-03  Daniel Berlin  <dberlin@dberlin.org>
20743
20744         Fix PR debug/17924
20745         Fix PR debug/19191
20746         * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
20747         is a decl.
20748         * gimple-low.c (mark_blocks_with_used_vars): New function.
20749         (mark_blocks_with_used_subblocks): Ditto.
20750         (mark_used_blocks): Ditto.
20751         (pass_mark_used_blocks): New pass.
20752         * tree-inline.c: Include debug.h.
20753         (expand_call_inline): Call outlining_inline_function here.
20754         * tree-optimize.c (init_tree_optimization_passes): Add
20755         pass_mark_used_blocks.
20756         * tree-pass.h (pass_mark_used_blocks): New.
20757         * Makefile.in (tree-inline.o): Add debug.h dependency.
20758
20759 2005-01-03  Geoffrey Keating  <geoffk@apple.com>
20760
20761         * config/darwin.c (darwin_handle_weak_import_attribute): Permit
20762         VAR_DECLs to have weak_import attribute.
20763
20764         * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
20765         'struct ucontext'.
20766
20767 2004-01-03  Steven Bosscher  <stevenb@suse.de>
20768
20769         * passes.c (rest_of_compilation): Don't run regmove if only
20770         flag_expensive_optimizations, require flag_regmove instead.
20771
20772 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
20773
20774         * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
20775         register "sparc".
20776         * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
20777         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
20778         * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
20779         * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
20780
20781 2005-01-03  Richard Henderson  <rth@redhat.com>
20782
20783         * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
20784         (ia64_const_ok_for_letter_p): New.
20785         (ia64_const_double_ok_for_letter_p): New.
20786         (ia64_extra_constraint): New.
20787         (ia64_expand_vecint_compare): New.
20788         (ia64_expand_vcondu_v2si): New.
20789         (ia64_expand_vecint_cmov): New.
20790         (ia64_expand_vecint_minmax): New.
20791         (ia64_print_operand): Add 'v'.
20792         (ia64_preferred_reload_class): New.
20793         (ia64_vector_mode_supported_p): New.
20794         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
20795         (PREFERRED_RELOAD_CLASS): Move to function.
20796         (CONST_OK_FOR_LETTER_P): Move to function.
20797         (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
20798         (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
20799         (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
20800         (EXTRA_CONSTRAINT): Move to function.
20801         * config/ia64/ia64.md: Include vect.md.
20802         (itanium_class): Add mmalua.
20803         (type): Handle it.
20804         * config/ia64/itanium1.md (1_mmalua): New.  Add it to bypasses.
20805         (1b_mmalua): New.
20806         * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
20807         * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
20808         CONST0_RTX.
20809         (const_int_2bit_operand): New.
20810         (fr_reg_or_0_operand): New.
20811         * config/ia64/ia64-modes.def: Add vector modes.
20812         * config/ia64/ia64-protos.h: Update.
20813         * config/ia64/vect.md: New file.
20814
20815 2005-01-03  Richard Henderson  <rth@redhat.com>
20816
20817         * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
20818
20819 2005-01-03  Uros Bizjak  <uros@kss-loka.si>
20820
20821         PR target/19236
20822         * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
20823         to SFmode.
20824         (log1pdf2): Change mode of operands[0,1] to DFmode.
20825
20826 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
20827
20828         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
20829         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
20830         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
20831         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
20832         SPARC_RELAXED_ORDERING.
20833
20834 2005-01-03  Richard Henderson  <rth@redhat.com>
20835             Uros Bizjak  <uros@kss-loka.si>
20836
20837         PR target/14631
20838         * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
20839         IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
20840         * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
20841         handling.
20842         (*mmx_pinsrw, *sse2_pinsrw): New patterns.
20843         * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
20844         const_pow2_1_to_128_operand): New predicates.
20845
20846 2005-01-02  Greg McGary  <greg@mcgary.org>
20847
20848         * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
20849         anonymous decls.
20850         (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
20851         object.  [ptr_type]: Remove unused variable.
20852         Remember nearest addressable array-element or record-component
20853         when checking bitfield components.  Tolerate empty BIND_EXPR.
20854
20855 2005-01-01  Richard Henderson  <rth@redhat.com>
20856
20857         * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
20858         that don't narrow the value.  Fail for other conversions.
20859
20860 2005-01-01  Richard Henderson  <rth@redhat.com>
20861
20862         PR c/19031
20863         * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
20864         * c-lang.c (finish_file): Don't do it here.
20865         * objc/objc-act.c (objc_finish_file): Likewise.
20866
20867         * cgraph.c (decl_assembler_name_equal): New.
20868         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
20869         (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
20870         * cgraph.h (struct cgraph_varpool_node): Add next.
20871         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
20872         * varasm.c (assemble_alias): Mark the target as needed.
20873
20874 2005-01-01  Andrew Pinski  <pinskia@physics.uc.edu>
20875
20876         PR middle-end/19221
20877         * function.c (get_arg_pointer_save_area): Use entry_of_function
20878         instead of get_insns.
20879
20880 2005-01-01  Roger Sayle  <roger@eyesopen.com>
20881             Andrew Pinski  <pinskia@physics.uc.edu>
20882             James E. Wilson  <wilson@specifixinc.com>
20883
20884         PR rtl-optimization/12092
20885         * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
20886         is zero.
20887
20888 2005-01-01  Roger Sayle  <roger@eyesopen.com>
20889             Olivier Hainque  <hainque@act-europe.fr>
20890
20891         * tree.c (int_fits_type_p): A narrower type always fits in a
20892         wider one, except for negative values into unsigned types.
20893
20894 2005-01-01  Roger Sayle  <roger@eyesopen.com>
20895
20896         * tree.c (int_fits_type_p): Compare the result of force_fit_type
20897         with the original constant rather than require TREE_OVERFLOW.
20898
20899 2005-01-01  Steven Bosscher  <stevenb@suse.de>
20900
20901         PR middle-end/17544
20902         * c-decl.c (finish_function): If compiling C99, annotate the
20903         compiler generated return with the current file name and line 0.
20904         * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
20905         the source line is greater than 0.
20906         (remove_bb): Likewise.