OSDN Git Service

* tree-cfg.c (verify_stmt): Add last_in_block parameter. Verify
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-06-28  Richard Henderson  <rth@redhat.com>
2
3         * tree-cfg.c (verify_stmt): Add last_in_block parameter.  Verify
4         that eh stmts can throw.
5         (verify_stmts): Update verify_stmt call.
6         (tree_purge_dead_eh_edges, tree_purge_all_dead_eh_edges): New.
7         * tree-eh.c (remove_stmt_from_eh_region): New.
8         (lower_eh_constructs): Fix throw_stmt_table delete routine.
9         (tree_could_trap_p): Match may_trap_p.
10         (maybe_clean_eh_stmt): New.
11         * tree-flow.h: Update decls.
12         * tree-ssa-ccp.c (pass_ccp): Add TODO_verify_stmts.
13         (substitute_and_fold): Clean eh edges.
14         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Handle
15         empty basic blocks.
16         * tree-ssa-dom.c (need_eh_cleanup): New.
17         (tree_ssa_dominator_optimize): Allocate it.  Cleanup eh edges.
18         (optimize_stmt): Cleanup eh stmts; set need_eh_cleanup.
19         
20 2004-06-29  Alan Modra  <amodra@bigpond.net.au>
21
22         * function.c (assign_parms): Don't abort with zero size stack
23         parm failing the PARM_BOUNDARY check.
24
25 2004-06-28  Diego Novillo  <dnovillo@redhat.com>
26
27         * common.opt (ftree-fre): New flag.
28         * flags.h (flag_tree_fre): Declare.
29         * opts.c (decode_options): Set.
30         * timevar.def (TV_TREE_FRE): Define.
31         * tree-flow-inline.h (may_propagate_copy): Re-arrange for
32         readability.  Handle destinations that are not SSA_NAMEs.
33         * tree-flow.h (struct ptr_info_def): Move from tree.h
34         (cprop_into_stmt, cprop_into_successor_phis): Remove.
35         (vn_compute, vn_lookup_or_add, vn_add, vn_lookup): Add
36         vuse_optype parameter.
37         * tree-pass.h (pass_fre): Declare.
38         * tree-ssa-copy.c (cprop_operand): Move to tree-ssa-dom.c
39         (cprop_into_stmt): Likewise.
40         (cprop_into_successor_phis): Likewise.
41         * tree-ssa-dom.c (eliminate_redundant_computations): Fix
42         argument ordering in call to may_propagate_copy.
43         * tree-ssa-pre.c (is_undefined_value): Assume hard registers
44         to be always defined.
45         (add_to_sets): New local function.
46         (create_value_expr_from): New local function.
47         (compute_avail): Call them.
48         (eliminate): Don't ignore statements with virtual operands.
49         (init_pre): New local function.
50         (fini_pre): New local function.
51         (execute_pre): Call them.
52         Add argument DO_FRE.  Don't do insertion if DO_FRE is true.
53         (do_pre): New function.
54         (do_fre): New function.
55         (gate_fre): New function.
56         (pass_fre): Declare.
57         * tree-ssa.c (init_tree_ssa): Don't call vn_init.
58         (delete_tree_ssa): Don't call vn_delete.
59         * tree-vn.c (val_expr_pair_d): Add documentation.
60         (vn_compute): Add VUSES argument to incorporate in computing
61         hash values.  Update all callers.
62         (expressions_equal_p): Call operand_equal_p with
63         OEP_PURE_SAME.
64         (vn_add): Add VUSES argument.  Update all callers.
65         (vn_lookup): Likewise.
66         (vn_lookup_or_add): Likewise.
67         * doc/invoke.texi: Document -ftree-fre and -fdump-tree-fre.
68
69 2004-06-28  Steven Bosscher  <stevenb@suse.de>
70
71         * config/m32r/m32r.c (m32r_sched_odd_word_p, m32r_adjust_cost,
72         m32r_sched_init, m32r_sched_reorder, m32r_variable_issue): Remove.
73         (TARGET_SCHED_ADJUST_COST, TARGET_SCHED_VARIABLE_ISSUE,
74         TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Don't define.
75         * config/m32r/m32r.md: Rewrite the pipeline description as a DFA.
76
77 2004-06-28  Richard Henderson  <rth@redhat.com>
78
79         * tree.def (REALPART_EXPR, IMAGPART_EXPR): Change class to 'r'.
80         * fold-const.c (operand_equal_p <case 'r'>): Add REALPART_EXPR,
81         IMAGPART_EXPR.
82         * tree-dump.c (dequeue_and_dump): Handle REALPART_EXPR and
83         IMAGPART_EXPR explicitly.
84         * tree-inline.c (estimate_num_insns_1): Don't handle REALPART_EXPR
85         and IMAGPART_EXPR specially.
86         * tree.c (build1_stat): Copy TREE_THIS_VOLATILE into class 'r'.
87
88 2004-06-28  J"orn Rennecke <joern.rennecke@superh.com>
89
90         * config.gcc (sh*-*elf*): Remove dead assignment of sh_multilibs.
91
92 2004-06-28  Joseph S. Myers  <jsm@polyomino.org.uk>
93
94         * builtins.def (execl, execlp, execle, execv, execvp, execve,
95         fork): Change to DEF_EXT_LIB_BUILTIN.
96
97 2004-06-28  Roger Sayle  <roger@eyesopen.com>
98
99         * expmed.c (expand_smod_pow2): New function to expand signed
100         remainder by a constant power of 2, such as "x % 16".
101         (expand_divmod): Call new expand_smod_pow2 when appropriate.
102         Minor corrections to comments, e.g. wrapping long lines.
103
104 2004-06-28  Ulrich Weigand  <uweigand@de.ibm.com>
105
106         * Makefile.in (vec.o): Fix dependencies.
107
108 2004-06-28  Andreas Tobler <a.tobler@schweiz.ch>
109
110         * Makefile.in: Fix parallel make dependency problem on vec.o.
111
112 2004-06-28  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
113
114         PR target/14041
115         * config/h8300/h8300.h (ASM_OUTPUT_ALIGNED_BSS): Define.
116
117 2004-06-28  Nathan Sidwell  <nathan@codesourcery.com>
118
119         * tree.h (tree_check_failed): Make varadic.
120         (tree_not_check_failed): New prototype.
121         (tree_check2_failed, tree_check3_failed,
122         tree_check4_failed, tree_check5_failed): Remove.
123         (TREE_CHECK, TREE_CHECK2, TREE_CHECK3, TREE_CHECK4,
124         TREE_CHECK5): Adjust.
125         (TREE_NOT_CHECK, TREE_NOT_CHECK2, TREE_NOT_CHECK3, TREE_NOT_CHECK4, 
126         TREE_NOT_CHECK5): New.
127         (TREE_VEC_ELT_CHECK, PHI_NODE_ELT_CHECK, TREE_OPERAND_CHECK_CODE,
128         TREE_RTL_OPERAND_CHECK): Adjust.
129         * tree.c (tree_check_failed): Make varadic.
130         (tree_not_check_failed): New.
131         (tree_check2_failed, tree_check3_failed,
132         tree_check4_failed, tree_check5_failed): Remove.
133
134 2004-06-28  Ulrich Weigand  <uweigand@de.ibm.com>
135
136         * combine.c (can_combine_p): Do not prevent building insns that use
137         and clobber the same fixed hard register.
138         (reg_dead_at_p): Likewise.
139
140 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
141
142         * tree-sra.c (is_sra_candidate_ref): Remove second arg; all callers
143         changed.
144         (is_sra_candidate_complex_ref): New function.
145         (scalarize_modify_expr): Call it and check for LHS also.
146
147         * tree-pretty-print.c (dump_function_declaration): New.
148         (dump_generic_node, case FUNCTION_TYPE): Call it.
149         (dump_generic_node, case RECORD_TYPE): Don't output dup semicolon.
150         (dump_generic_node, case DECL_EXPR): New case.
151         (dump_generic_node, case PLACEHOLDER_EXPR): Handle.
152         (print_declaration): Handle type and function declarations.
153         
154         * tree-nested.c (create_tmp_var_for): Allow ARRAY_TYPE.
155         (convert_nonlocal_reference, convert_local_reference): Properly
156         convert nest of handled component references.
157
158 2004-06-28  Nathan Sidwell  <nathan@codesourcery.com>
159
160         * vec.h, vec.c: New, type safe vector API.
161         * Makefile.in (OBJS-common): Add vec.o.
162         (vec.o): New target.
163         (gengtype-lex.o): Depend on vec.h.
164
165 2004-06-28  Paolo Bonzini  <bonzini@gnu.org>
166
167         * fold-const.c (fold_cond_expr_with_comparison): Add ARG1
168         parameter.  Use it instead of ARG00 to produce the result.
169
170 2004-06-28  Alexandre Oliva  <aoliva@redhat.com>
171
172         * config/mn10300/mn10300-protos.h (legitimate_address_p): Declare.
173         * config/mn10300/mn10300.c (legitimate_address_p): New.  Test that
174         index is legitimate, compared with code moved from...
175         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): here.
176         (REG_STRICT): Define, according to REG_OK_STRICT.
177         (REGNO_IN_RANGE_P, REGNO_DATA_P, REGNO_ADDRESS_P, REGNO_SP_P,
178         REGNO_EXTENDED_P, REGNO_AM33_P, REGNO_FP_P): Introduce strict
179         argument.
180         (REGNO_STRICT_OK_FOR_BASE_P, REGNO_STRICT_OK_FOR_BIT_BASE_P,
181         REGNO_STRICT_OK_FOR_INDEX_P): New.
182         (REGNO_OK_FOR_BASE_P, REG_OK_FOR_BASE_P, REGNO_OK_FOR_BIT_BASE_P,
183         REG_OK_FOR_BIT_BASE_P, REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P,
184         RTX_OK_FOR_BASE_P): Use them.
185
186 2004-06-28  Ben Elliston  <bje@au.ibm.com>
187
188         * doc/cfg.texi (Basic Blocks): Define dominators.
189
190 2004-06-27  Andrew Pinski  <pinskia@physics.uc.edu>
191
192         PR c++/16205
193         * c-common.c (warn_for_collisions_1): Warn for only decls which
194         have a name.
195
196         PR c++/15145
197         * c.opt (Wsequence-point): Enable for C++ and ObjC++.
198
199         PR c/14963
200         * c-decl.c (start_decl): Check for null types.
201
202 2004-06-27  David Edelsohn  <edelsohn@gnu.org>
203
204         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
205         Accept TOC addresses.
206
207 2004-06-27  Ulrich Weigand  <uweigand@de.ibm.com>
208
209         * config/s390/s390-protos.h (s390_load_got): Update prototype.
210         * config/s390/s390.c (struct machine_function): Add member base_reg.
211         (s390_decompose_address): Accept UNSPEC_LTREF.  Simplify logic.
212         (s390_split_branches): Annotate late pool references.
213         (annotate_constant_pool_refs): New function.
214         (find_constant_pool_ref): Work on annotated pool references.
215         (replace_constant_pool_ref): Likewise.  Use explicit base.
216         (replace_ltrel_base): Use explicit base.
217         (s390_mainpool_start): Reflect main_pool pattern change.
218         (s390_mainpool_finish): Use base register from main_pool.
219         Update calls to replace_ltrel_base and replace_constant_pool_ref.
220         (s390_chunkify_start): Use base_reg from struct machine_function.
221         (s390_chunkify_finish): Remove base_reg argument.  Update calls
222         to replace_ltrel_base and replace_constant_pool_ref.
223         (s390_reorg): Don't decide upon base register.  Update calls.
224         (s390_load_got): Remove MAYBE_DEAD handling.  Do not emit insns
225         but return sequence instead.
226         (s390_emit_prologue): Decide upon base register to use.  Annotate
227         all literal pool references.  Adapt to main_pool pattern change.
228         Update s390_load_got call; move MAYBE_DEAD handling here.
229         (s390_emit_epilogue): Annotate late literal pool references.
230         Remove barrier before register restore instruction.
231         * config/s390/s390.md (UNSPEC_LTREF): New constant.
232         ("builtin_setjmp_receiver"): Update s390_load_got call.
233         ("main_pool"): Explicitly reference base register.
234
235 2004-06-27  Roger Sayle  <roger@eyesopen.com>
236
237         * fold-const.c (fold) <BIT_IOR_EXPR>: Optimize ~X|X and X|~X as -1.
238         <BIT_XOR_EXPR>: Optimize ~X|X and X|~X as -1.
239         <BIT_AND_EXPR>: Optimize ~X&X and X&~X as 0.
240         <TRUTH_AND_EXPR, TRUTH_ANDIF_EXPR>: Optimize !X&&X and X&&!X as false.
241         <TRUTH_OR_EXPR, TRUTH_ORIF_EXPR>: Optimize !X||X and !X||X as true.
242         <TRUTH_XOR_EXPR>: Optimize !X^X and X^X! as true.  Now that
243         TRUTH_XOR_EXPR is a commutative tree code, don't test whether arg0
244         is a constant.
245
246 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
247
248         * c-common.c (c_safe_from_p, c_walk_subtrees): Deleted.
249         * c-common.def (DECL_STMT): Remove.
250         * c-common.h (DECL_STMT_DECL): Deleted.
251         (COMPOUNT_LITERAL_EXPR_DECL): Use DECL_EXPR_DECL.
252         (c_safe_from_p, c_walk_subtrees): Deleted.
253         * c-decl.c, c-parse.in, c-pretty-print.c: DECL_STMT now DECL_EXPR.
254         * c-dump.c (c_dump_tree, case DECL_STMT): Deleted.
255         * c-gimplify.c (gimplify_decl_stmt): Deleted.
256         (gimplify_compound_literal_expr): Use DECL_EXPR_DECL
257         and gimplify_and_add.
258         (c_gimplify_expr, case DECL_EXPR): New case.
259         (c_gimplify_expr, case DECL_STMT): Deleted.
260         * c-lang.c (LANG_HOOKS_SAFE_FROM_P): Likewise.
261         (LANG_HOOKS_TREE_INLINING_WALK_SUBTREES): Likewise.
262         * expr.c (safe_from_p, case 's'): New case.
263         * gimplify.c (gimplify_decl_expr): New function.
264         (gimplify_expr, case DECL_EXPR): New case.
265         * tree-inline.c (walk_tree): Walk into all fields of a type and
266         decl only if they are in a DECL_EXPR.
267         (mark_local_for_remap_r): Minor code cleanup.
268         * tree-outof-ssa.c (discover_nonconstant_array_refs_r): Add else.
269         * tree.c (has_cleanups, case DECL_EXPR): New case.
270         * tree.def (DECL_EXPR): New code.
271         * tree.h (DECL_EXPR_DECL): New macro.
272         
273         * objc/objc-lang.c (LANG_HOOKS_SAFE_FROM_P): Deleted.
274
275 2004-06-26  Andrew Pinski  <pinskia@physics.uc.edu>
276
277         PR 13334
278         * doc/install.texi: Document non-standard CFLAGS and bootstrap
279         failures and warnings.
280
281 2004-06-26  Andrew Haley  <aph@redhat.com>
282
283         * emit-rtl.c (set_mem_attributes_minus_bitpos): Check
284         TREE_THIS_NOTRAP when setting MEM_NOTRAP_P.
285         * tree-eh.c (tree_could_trap_p): Check TREE_THIS_NOTRAP.
286         * tree.h (TREE_THIS_NOTRAP): New.
287
288 2004-06-26  Kaz Kojima  <kkojima@gcc.gnu.org>
289
290         * genattrtab.c (write_test_expr): Put a unsigned cast before
291         the first operand for GEU, GTU, LEU and LTU.
292
293 2004-06-26  Kazu Hirata  <kazu@cs.umass.edu>
294
295         * c-typeck.c, cfgexpand.c, ddg.c, ddg.h, df.c, fold-const.c,
296         gcov.c, gimplify.c, modulo-sched.c, passes.c, tree-cfg.c,
297         tree-mudflap.c, tree-nrv.c, tree-outof-ssa.c, tree-ssa-dom.c,
298         tree-ssa-dse.c, tree-ssa-operands.c, tree-ssa-pre.c,
299         tree-tailcall.c: Fix comment typos.  Follow spelling
300         conventions.
301
302 2004-06-25  Eric Christopher  <echristo@redhat.com>
303
304         * config/mips/mips.md: Add back scheduling exclusion info.
305
306 2004-06-25  Roger Sayle  <roger@eyesopen.com>
307
308         * ifcvt.c (seq_contains_jump): Delete function.
309         (end_ifcvt_sequence): Replace call to seq_contains_jump with an
310         inline test for a jump instruction in the existing "insn" loop.
311         (block_fallthru): Document function.
312
313 2004-06-25  Philip Blundell  <philb@gnu.org>
314
315         PR wrong-code/15089
316         * loop.c (scan_loop): Do not move user-specified register
317         assignments.
318
319 2004-06-25  DJ Delorie  <dj@redhat.com>
320
321         * c-common.h (warn_cast_qual, warn_missing_format_attribute,
322         warn_pointer_arith, warn_missing_prototypes, warn_parentheses,
323         warn_missing_braces, warn_sign_compare, warn_long_long,
324         warn_redundant_decls, warn_float_equal, warn_char_subscripts,
325         warn_conversion, warn_format_y2k, warn_format_extra_args,
326         warn_format_zero_length, warn_format_nonliteral,
327         warn_format_security, mesg_implicit_function_declaration,
328         warn_bad_function_cast, warn_traditional,
329         warn_declaration_after_statement, warn_strict_prototypes,
330         warn_missing_declarations, warn_nested_externs,
331         warn_sequence_point, warn_init_self, warn_div_by_zero,
332         warn_implicit_int, warn_nonnull, warn_old_style_definition,
333         warn_selector, warn_undeclared_selector, warn_protocol,
334         warn_abi, warn_invalid_offsetof, warn_ctor_dtor_privacy,
335         warn_overloaded_virtual, warn_nonvdtor, warn_reorder,
336         warn_synth, warn_pmf2ptr, warn_ecpp, warn_sign_promo,
337         warn_old_style_cast, warn_nontemplate_friend,
338         warn_deprecated): Remove explicit declarations.
339         * c-common.c: Likewise, remove explicit definitions.
340         * c-opts.c: Likewise, remove explicit assignments.
341         * c.opts: Likewise, add implicit declare/define/assign.
342
343 2004-06-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
344
345         * gimplify.c (lookup_tmp_var): Set TREE_READONLY in is_formal case.
346         (build_addr_expr_with_type): Deleted.
347         (build_addr_expr): Deleted; callers changed to build_fold_addr_expr.
348         (gimplify_compound_lval): Make two passes over reference nest.
349
350         * tree-nested.c (build_addr): Merge real/imagpart with
351         handled_component_p.
352         (convert_nonlocal_reference, convert_local_reference): Process extra
353         args to COMPONENT_REF and ARRAY_REF.
354         * tree-outof-ssa.c (discover_nonconstant_array_refs_r): Check for
355         lower bound and field offset being constant.
356
357 2004-06-25  Mark Mitchell  <mark@codesourcery.com>
358
359         PR wrong-code/16129
360         * alias.c (get_alias_set): Adjust setting of
361         DECL_POINTER_ALIAS_SET for pointers to aggregates.
362
363 2004-06-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
364
365         * tree-inline.c (remap_type): Arrange to have just one pointer type
366         for each type, mode, and 'can alias' value.
367         (setup_one_parameter): Remap type when making VAR_DECL for PARM_DECL.
368         (estimate_num_insns_1): Minor code reformatting.
369         (inline_forbidden_p_1): Likewise; add; missing return statement.
370
371 2004-06-25  Roger Sayle  <roger@eyesopen.com>
372
373         PR middle-end/15825
374         * ifcvt.c (unshare_ifcvt_sequence): Rename to end_ifcvt_sequence.
375         Use get_isns and end_sequence instead of accepting a seq argument.
376         Scan the instruction sequence for unrecognizable or jump insns.
377         (noce_try_move, noce_try_store_flag, noce_try_store_flag_constants,
378         noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
379         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
380         noce_try_sign_mask): Use end_ifcvt_sequence to factor common code.
381
382 2004-06-24  Jeff Law  <law@redhat.com>
383
384         * gimplify.c (gimplify_compound_lval): Reset TREE_SIDE_EFFECTS
385         after gimplifying the innermost component.
386
387 2004-06-25  Richard Sandiford  <rsandifo@redhat.com>
388
389         PR target/16176
390         * config/mips/mips.c (mips_expand_unaligned_load): Use a temporary
391         register for the destination of the lwl or ldl.
392
393 2004-06-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
394
395         * tree-dfa.c (get_virtual_var): Merge real/imaginary parts with
396         handled_component_p handling.
397         * tree-gimple.c (get_base_address): Likewise and fix typo that
398         caused both recursion and looping.
399
400         * tree-cfg.c (verify_expr): Add macro CHECK_OK.
401         Properly test for nest of handled_components in LHS context.
402
403 2004-06-25  Devang Patel  <dpatel@apple.com>
404
405         * doc/tree-ssa.texi: Document info about MODIFY_EXPR's type
406
407 2004-06-25  Paul Brook  <paul@codesourcery.com>
408
409         * target-def.h (TARGET_CXX_GUARD_TYPE, TARGET_CXX_GUARD_MASK_BIT,
410         TARGET_CXX): Define.
411         (TARGET_INITIALIZER): Use TARGET_CXX.
412         * target.h (struct gcc_target): Add struct cxx.
413         * targhooks.h (default_cxx_guard_type): Add prototype.
414         * targhooks.c (default_cxx_guard_type): New function.
415         * config/arm/arm.c (TARGET_CXX_GUARD_TYPE, TARGET_CXX_GUARD_MASK_BIT):
416         Define.
417         (arm_cxx_guard_type, arm_cxx_guard_mask_bit): New functions.
418         * doc/tm.texi: Document TARGET_CXX_GUARD_TYPE and
419         TARGET_CXX_GUARD_MASK_BIT.
420
421 2004-06-25  Devang Patel  <dpatel@apple.com>
422
423         * config/rs6000/darwin.h (CC1_SPEC): Handle -gused and -gfull.
424         * config/i386/darwin.h (CC1_SPEC): Same.
425
426 2004-06-25  Mark G. Adams  <mark.g.adams@sympatico.ca>
427
428         * dbxout.h: Add include guards
429
430 2004-06-25  Paul Brook  <paul@codesourcery.com>
431
432         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_EABI__.
433
434 2004-06-25  Richard Earnshaw  <rearnsha@arm.com>
435
436         * arm.c (arm_arch4t): New variable.
437         (arm_override_options): Initialize it.  If compiling for armv5 or
438         higher clear TARGET_INTERWORK.
439         (output_call): Abort if called for armv5.  Use BX if it's available.
440         (output_call_mem): Use BLX if available and ensure that all armv5
441         code is interworking safe.
442         (output_return_instruction): Always use BX in preference to MOV if
443         it's available.
444         (arm_output_epilogue): Likewise.
445         (arm_final_prescan_insn): Never conditionally call a subroutine
446         on armv5.
447         * arm.h (arm_arch4t): Declare.
448         * arm.md (call_reg_armv5, call_value_reg_armv5): New.
449         (call_reg_arm, call_value_reg_arm): Renamed from call_reg and
450         call_value_reg respectively.
451         (call_reg_thumb_v5, call_value_reg_thumb_v5): New.
452         (call_reg_thumb, call_value_reg_thumb): Renamed from call_indirect
453         and call_value_indirect respectively.
454
455 2004-06-25  Richard Sandiford  <rsandifo@redhat.com>
456
457         * config/mips/mips.c (reg_or_const_float_1_operand): Reimplement
458         in terms of const_float_1_operand.
459
460 2004-06-25  Richard Sandiford  <rsandifo@redhat.com>
461
462         PR target/16144
463         * config/mips/mips.md (divsf, divdf): Don't FAIL if the first operand
464         is 1.0; force it into a register instead.
465
466 2004-06-25  Bernardo Innocenti  <bernie@develer.com>
467
468         * config/m68k/m68k.h: Restore valid comment removed by mistake with
469         the recent m68k comments cleanup.
470
471 2004-06-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
472
473         * c-gimplify.c (gimplify_for_stmt): Use gimplify_and_add.
474         * gimplify.c (internal_get_tmp_var, gimplify_return_expr): Likewise.
475         (gimplify_loop_expr, gimplify_init_constructor): Likewise.
476         (gimplify_self_mod_expr, gimplify_cond_expr): Likewise.
477
478         PR/16131
479         * gimplify.c (voidify_wrapper_expr): Allow TARGET_EXPR.
480
481         * gimplify.c: Remove unneeded forward declarations.
482
483         * gimplify.c (append_to_compound_expr): Deleted.
484         * tree-gimple.h (append_to_compound_expr): Deleted.
485
486         * fold-const.c (fold_addr_expr_with_type): Look through all
487         valid LHS modifiers to find a base to mark addressable.
488
489         * tree.h (debug_find_tree): Add declaration.
490         * tree-inline.c (debug_find_tree): Remove extern declaration.
491
492 2004-06-24  Eric Christopher  <echristo@redhat.com>
493
494         * config/rs6000/rs6000.md: Apply change mistakenly
495         deleted with 2004-06-22 patch.
496
497 2004-06-24  Richard Henderson  <rth@redhat.com>
498
499         * c-decl.c (c_in_iteration_stmt, c_in_case_stmt): Remove.
500         (c_break_label, c_cont_label): New.
501         (start_function): Update initializations.
502         (c_push_function_context): Update saves.
503         (c_pop_function_context): Update restores.
504         * c-parse.in: Update expected conflicts.
505         (stmt_count, compstmt_count): Remove.  Remove all updates.
506         (if_prefix, simple_if, do_stmt_start): Remove.
507         (lineno_labeled_stmt): Remove.
508         (lineno_labels): New.
509         (c99_block_lineno_labeled_stmt): Use it.
510         (lineno_stmt, lineno_label): Don't clear EXPR_LOCUS before calling
511         annotate_with_locus.
512         (select_or_iter_stmt): Replace by ...
513         (condition, if_statement_1, if_statement_2, if_statement,
514         start_break, start_continue, while_statement, do_statement,
515         for_cond_expr, for_incr_expr, for_statement, switch_statement): New.
516         (stmt): Split out ...
517         (stmt_nocomp): ... this.  Use c_finish_bc_stmt, c_finish_goto_label,
518         c_finish_goto_ptr.
519         * c-semantics.c (add_stmt): Don't add line numbers to labels.
520         * c-tree.h: Update prototypes.
521         (struct language_function): Remove x_in_iteration_stmt, x_in_case_stmt;
522         add x_break_label, x_cont_label, x_switch_stack.
523         (c_switch_stack): Declare.
524         * c-typeck.c (c_finish_goto_label, c_finish_goto_ptr): New.
525         (c_finish_return): Return the statement.
526         (c_switch_stack): Rename from switch_stack; export.
527         (if_elt, if_stack, if_stack_space, if_stack_pointer): Remove.
528         (c_begin_if_stmt, c_finish_if_cond, c_finish_then, c_begin_else,
529         c_finish_else): Remove.
530         (c_finish_if_stmt): Rewrite to perform the entire operation.
531         (c_begin_while_stmt, c_finish_while_stmt_cond, c_finish_while_stmt,
532         c_begin_for_stmt, c_finish_for_stmt_init, c_finish_for_stmt_cond,
533         c_finish_for_stmt_incr, c_finish_for_stmt): Remove.
534         (c_finish_loop): New.
535         (c_finish_bc_stmt): New.
536         (c_finish_expr_stmt): Return the statement.  Split out...
537         (c_process_expr_stmt): ... this.  Don't add locus to error marks.
538         * gimplify.c (gimplify_cond_expr): Accept NULL type statements.
539         * tree-gimple.c (is_gimple_stmt): Likewise.
540         * tree-pretty-print.c (dump_generic_node <COND_EXPR>): Likewise.
541         (print_struct_decl): Delete empty compound statement.
542         * objc/objc-act.c (objc_build_throw_stmt): Return the statement.
543         * objc/objc-act.h: Update decl.
544
545 2004-06-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
546
547         * tree-pretty-print.c (dump_generic_node, case TYPE_DECL):
548         Don't look at TYPE_METHODS unless RECORD_TYPE or UNION_TYPE.
549
550 2004-06-24  Andrew Pinski  <apinski@apple.com>
551
552         * objc-act.c (build_objc_method_call): Save the lookup_object
553         so we do not call it twice.
554
555 2004-06-24  Richard Henderson  <rth@redhat.com>
556
557         * tree-ssa-dom.c (real_avail_expr_hash): New.
558         (tree_ssa_dominator_optimize): Use it in the htab.
559
560 2004-06-24  Frank Ch. Eigler  <fche@redhat.com>
561
562         * tree-mudflap.c (mx_register_decls): Add third (type) argument
563         to synthesized __mf_unregister call.
564
565 2004-06-24  Roger Sayle  <roger@eyesopen.com>
566
567         PR middle-end/15239
568         * expmed.c (expand_mult): Remove artificial restriction on the
569         maximum cost of a synthetic multiplication sequence.
570
571 2004-06-24  Eric Christopher  <echristo@redhat.com>
572
573         * combine.c (distribute_notes): Don't delete sets to
574         global register variables.
575
576 2004-06-24  Jakub Jelinek  <jakub@redhat.com>
577
578         * config/i386/i386.md (ffsdi2, clzdi2): New expanders.
579         (ffs_rex64): New splitter.
580         (ffsdi_1, ctzdi2, bsr_rex64): New instructions.
581
582 2004-06-24  Andrew Pinski  <apinski@apple.com>
583
584         * config/darwin7.h (MATH_LIBRARY): Remove.
585         (LIB_SPEC): Define.
586         * config/darwin.h (MATH_LIBRARY): Define always to empty.
587         (LIB_SPEC): Only define if not already defined.
588
589 2004-06-24  Revital Eres  <eres@il.ibm.com>
590
591         * loop-iv.c (iv_analyze, simple_set_p): Support for identifying
592         shifts of induction variable.
593         (iv_shift): New function.
594
595 2004-06-24  Richard Henderson  <rth@redhat.com>
596
597         * gimplify.c (gimplify_body): Watch for body vanishing.
598
599 2004-06-24  Jeff Law  <law@redhat.com>
600
601         * tree-ssa-dom.c (record_dominating_conditions): New function.
602         (dom_opt_finalize_block, get_eq_expr_value): Use it.
603
604 2004-06-24  Richard Sandiford  <rsandifo@redhat.com>
605
606         * calls.c (shift_returned_value): Fix handling of non-integer
607         TYPE_MODEs.
608
609 2004-06-24  Ulrich Weigand  <uweigand@de.ibm.com>
610
611         * c-decl.c (finish_function): Do not check for DEFAULT_MAIN_RETURN.
612         * system.h (DEFAULT_MAIN_RETURN): Poison.
613         * doc/tm.texi (DEFAULT_MAIN_RETURN): Remove documentation.
614
615 2004-06-24  Ben Elliston  <bje@au.ibm.com>
616
617         * doc/cfg.texi (Edges): Fix typo.
618
619 2004-06-24  Paul Brook  <paul@codesourcery.com>
620
621         * config/arm/arm.c (arm_output_epilogue): Remove excess checks.
622
623 2004-06-23  Andrew Pinski  <apinski@apple.com>
624
625         PR middle-end/15988
626         * fold-const.c (fold_convert): Types which are compatible
627         can be converted with only a NOP_EXPR.
628
629 2004-06-24  Alan Modra  <amodra@bigpond.net.au>
630
631         * calls.c (expand_call): Call INIT_CUMULATIVE_ARGS earlier, and
632         pass raw n_named_args to it.
633         * targhooks.c: Formatting.
634         (hook_bool_CUMULATIVE_ARGS_false): Correct comment.
635
636 2004-06-23  Richard Henderson  <rth@redhat.com>
637
638         * c-gimplify.c (gimplify_decl_stmt): Push gimplify_one_sizepos inside
639         non-constant size check.  Gimplify the type too.  Tidy building
640         BUILT_IN_STACK_ALLOC call.
641
642 2004-06-23  Roger Sayle  <roger@eyesopen.com>
643
644         * c-common.c (expand_unordered_cmp): Delete.
645         (expand_tree_builtin): Delete.
646         * c-common.h (expand_tree_builtin): Delete function prototype.
647         * c-typeck.c (build_function_call): Don't call expand_tree_builtin.
648
649 2004-06-23  Richard Henderson  <rth@redhat.com>
650
651         * gimplify.c (gimplify_compound_lval): Don't set ARRAY_REF or
652         COMPONENT_REF variable fields unless they're non-constant.
653
654 2004-06-23  Robert Millan  <robertmh@gnu.org>
655
656         * config.gcc: Merge kfreebsd*-gnu with linux* and add knetbsd*-gnu.
657         * config/i386/linux.h: Allow overriding of LINK_EMULATION,
658           DYNAMIC_LINKER and register names in sc_ structure.
659         * config/kfreebsd-gnu.h: New. kfreebsd-gnu followup for linux.h.
660         * config/i386/kfreebsd-gnu.h: New. Ditto for i386-kfreebsd-gnu.
661         * config/knetbsd-gnu.h: New. Ditto for knetbsd-gnu.
662         * config/i386/knetbsd-gnu.h: New. Ditto for i386-knetbsd-gnu.
663
664         * config/kfreebsdgnu.h: Remove.
665         * config/t-kfreebsd-gnu: Likewise.
666         * config/i386/kfreebsdgnu.h: Likewise.
667
668 2004-06-23  Eric Christopher  <echristo@redhat.com>
669
670         * fold-const.c (make_range): Cleanup type checking through function.
671         Remove orig_type. Replace with checks to exp_type and arg0_type.
672         Clarify comment when converting from unsigned to signed.
673
674 2004-06-23  Eric Christopher  <echristo@redhat.com>
675
676         * config/mips/mips.c (mips_use_dfa_pipeline_interface): Add R3000.
677         * config/mips/mips.md: Remove R3000 scheduling description.
678         * config/mips/3000.md: New file.
679
680 2004-06-23  Ulrich Weigand  <uweigand@de.ibm.com>
681
682         * config/s390/s390-protos.h (s390_emit_compare): Add prototype.
683         (s390_emit_jump): Likewise.
684         * config/s390/s390.c (s390_emit_compare): New function.
685         (s390_emit_jump): Likewise.
686         * config/s390/s390.md ("beq", "bne", "bgt", "bgtu", "blt", "bltu",
687         "bge", "bgeu", "ble", "bleu", "bunordered", "bordered", "buneq",
688         "bungt", "bunlt", "bunge", "bunle", "bltgt"): Use s390_emit_compare
689         and s390_emit_jump.
690         ("cjump"): Remove, replace by ...
691         ("*cjump_64", "*cjump_31"): ... these insns.  Improve length default.
692         ("icjump", "*icjump_64", "*icjump_31"): Likewise.
693         ("trap"): Fix type attribute.
694         ("conditional_trap"): Use s390_emit_compare.
695         ("doloop_si"): Remove, replace by ...
696         ("doloop_si64", "doloop_si31"): ... these new insn_and_split.
697         Merge existing splitter into insn_and_split.  Improve length default.
698         ("doloop_di"): Merge with existing splitter into insn_and_split.
699         ("doloop"): Adapt.
700         ("jump"): Convert to expander.  Use s390_emit_jump.
701         ("*jump_64", "*jump_31"): New insns.  Improve length default.
702
703 2004-06-23  Wu Yongwei  <adah@sh163.net>
704
705         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
706         (__gthr_i486_lock_cmp_xchg): New inline assembly function.
707         (__GTHR_W32_InterlockedCompareExchange): New macro to choose a
708         suitable function for interlocked compare-and-exchange.
709         (__gthread_mutex_trylock): Use
710         __GTHR_W32_InterlockedCompareExchange.
711         (__gthread_mutex_init_function, __gthread_mutex_lock,
712         __gthread_mutex_trylock, __gthread_mutex_unlock): Adjust the
713         initial counter value to work correctly under Windows 95.
714         * config/i386/gthr-win32.c: Adjust include order.
715         Define __GTHREAD_I486_INLINE_LOCK_PRIMITIVES before including
716         gthr-win32.h.
717         (__gthr_win32_mutex_init_function, __gthr_win32_mutex_lock,
718         __gthr_win32_mutex_trylock, __gthr_win32_mutex_unlock): Adjust
719         to match inline versions in gthr-win32.h.
720
721 2004-06-23  David Edelsohn  <edelsohn@gnu.org>
722
723         * config/rs6000/rs6000.c (rs6000_use_dfa_pipeline_interface): Delete.
724         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Redefine a hook_int_void_1.
725         (insvdi_rshift_rlwimi_p): New function.
726         * config/rs6000/rs6000.md (insvdi_internal2/3): New patterns.
727         (extendsfdf2): Convert to define_insn_and_split.
728         * config/rs6000/rs6000-protos.h (insvdi_rshift_rlwimi_p): Prototype.
729
730 2004-06-23  Andrew Pinski  <apinski@apple.com>
731
732         * c-typeck.c (composite_type, <case ARRAY_TYPE>): Abort if we have
733         type qualifiers at all.
734         If both of the type domains are null and the new element type is
735         the same as one of the, return the one which the element type.
736         matches.
737         Do not call qualify_type on the new type.
738
739 2004-06-23  Ulrich Weigand  <uweigand@de.ibm.com>
740
741         * config/s390/s390.h (DEFAULT_MAIN_RETURN): Remove.
742
743 2004-06-23  Roger Sayle  <roger@eyesopen.com>
744
745         * convert.c (strip_float_extension): Skip both NOP_EXPR and
746         CONVERT_EXPR floating point extensions.
747
748 2004-06-23  Diego Novillo  <dnovillo@redhat.com>
749
750         * Makefile.in (tree-vn.o): New.
751         (tree-ssa-pre.o): Don't depend on RTL_H.
752         * tree-dfa.c (find_referenced_vars): Don't call init_tree_ssa.
753         * tree-flow.h (struct var_ann_d): Remove field expr_set.
754         (add_to_value, expressions_equal_p, get_value_handle, vn_compute,
755         vn_lookup_or_add, vn_add, vn_lookup, vn_init, vn_delete): Declare.
756         * tree-optimize.c (execute_init_datastructures): New local function.
757         (pass_init_datastructures): New local variable.
758         (init_tree_optimization_passes): Sequence pass_init_datastructures.
759         * tree-pretty-print.c (MASK_POINTER): Remove.
760         (dump_generic_node): Handle VALUE_HANDLE.
761         * tree-ssa-pre.c: Move all value numbering routines to tree-vn.c.
762         Update callers to use new function names.
763         Use VALUE_HANDLE_ID and VALUE_HANDLE_EXPR_SET instead of
764         variable annotations.
765         * tree-ssa.c (init_tree_ssa): Call vn_init.
766         (delete_tree_ssa): Call vn_delete.
767         * tree-vn.c: New file.
768         * tree.c (tree_size): Handle VALUE_HANDLE.
769         (tree_node_structure): Likewise.
770         (iterative_hash_expr): Likewise.
771         * tree.def (VALUE_HANDLE): New code.
772         * tree.h (struct tree_value_handle): New.
773         (VALUE_HANDLE_ID): Define.
774         (VALUE_HANDLE_EXPR_SET): Define.
775         (enum tree_node_structure_enum): Add TS_VALUE_HANDLE.
776         (union tree_node): Add struct tree_value_handle.
777
778 2004-06-23  Andrew Pinski  <apinski@apple.com>
779
780         * c-typeck.c (composite_type):
781         <case POINTER_TYPE>: Build a qualified type of
782         the new type.
783         <case ARRAY_TYPE>: Likewise.
784         <case FUNCTION_TYPE>: Likewise.
785
786 2004-06-23  Pat Haugen  <pthaugen@us.ibm.com>
787
788         PR optimization/15633
789         * value-prof.c (divmod_fixed_value_transform): Compute probability
790         of taking optimal path and pass along to gen_ routine.
791         (mod_pow2_value_transform): Same.
792         (mod_subtract_transform): Same.
793         (gen_divmod_fixed_value): Add new probability parameter.
794         Add probability to newly created jump.
795         (gen_mod_pow2): Same.
796         (gen_mod_subtract): Same.
797
798 2004-06-23  Richard Earnshaw  <rearnsha@arm.com>
799
800         * PR target/15948
801         * arm.md (bicsi3_cbranch): Add alternative to handle tying operands
802         one and two.
803
804 2004-06-23  Richard Earnshaw  <rearnsha@arm.com>
805
806         PR target/15927
807         * arm.h (THUMB_SECONDARY_OUTPUT_RELOAD_CLASS): Don't need a secondary
808         reload if CLASS is BASE_REGS.
809
810 2004-06-23  Richard Sandiford  <rsandifo@redhat.com>
811
812         * gengtype-yacc.y (option): Avoid use of non-constant struct
813         initializer.
814
815 2004-06-23  Nathan Sidwell  <nathan@codesourcery.com>
816
817         * doc/extend.texi (Function Attributes): Alphabetize.
818
819 2004-06-23  Richard Henderson  <rth@redhat.com>
820
821         * c-gimplify.c (gimplify_decl_stmt): Update gimplify_type_sizes call.
822         Use gimplify_and_add.
823         * c-typeck.c (c_finish_if_stmt): Use NULL instead of empty stmt.
824         * gimplify.c (build_and_jump, gimplify_exit_expr,
825         gimplify_init_constructor, gimplify_save_expr, gimple_push_cleanup,
826         gimplify_stmt, gimplify_expr): Likewise.
827         (shortcut_cond_expr): Handle NULL arms of COND_EXPR.
828         (gimplify_statement_list): Remove NULL entries.
829         (gimplify_to_stmt_list): Handle NULL results.
830         (gimplify_type_sizes): Add list_p argument.
831         (gimplify_one_sizepos): Don't use internal pre/post queue.
832         * tree-gimple.h (gimplify_type_sizes): Update.
833
834 2004-06-22  Eric Christopher  <echristo@redhat.com>
835
836         * config/rs6000/rs6000.md (*insvsi_internal5/6): New patterns.
837
838 2004-06-22  Pat Haugen  <pthaugen@us.ibm.com>
839
840         * cfghooks.c (make_forwarder_block): Decrement count on fallthru edge
841         when redirecting back edges.
842
843         * cfghooks.c (split_block): Call make_single_succ_edge so that edge
844         count/probability are set correctly.
845
846 2004-06-22  Richard Henderson  <rth@redhat.com>
847
848         * c-typeck.c (emit_side_effect_warnings): Ignore error marks.
849         (c_finish_stmt_expr): Likewise.
850
851         * config/i386/i386.c (TARGET_STRUCT_VALUE_RTX): New.
852         (ix86_return_in_memory): Move SSE vector return warning ...
853         (ix86_struct_value_rtx): ... here.  New.
854
855 2004-06-22  Richard Henderson  <rth@redhat.com>
856
857         * tree.def (VTABLE_REF): Remove.
858         (OBJ_TYPE_REF): New.
859         (TRY_CATCH_EXPR, TRY_FINALLY_EXPR): Set type 's'.
860         * expr.c (expand_expr_real_1): Replace VTABLE_REF with OBJ_TYPE_REF.
861         * fold-const.c (non_lvalue): Likewise.
862         * gimplify.c (gimplify_expr): Likewise.
863         (gimplify_call_expr): Use is_gimple_call_addr.
864         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): New.
865         * langhooks.h (fold_obj_type_ref): New.
866         * tree-gimple.c (is_gimple_call_addr): New.
867         * tree-gimple.h (is_gimple_call_addr): Declare.
868         * tree-inline.c (inlinable_function_p): Fix merge error.
869         (estimate_num_insns_1): Replace VTABLE_REF with OBJ_TYPE_REF.
870         * tree-pretty-print.c (dump_generic_node): Likewise.
871         (print_call_name): Handle OBJ_TYPE_REF.
872         * tree-ssa-ccp.c (fold_stmt): Fold OBJ_TYPE_REF.
873         * tree-ssa-operands.c (get_expr_operands): Handle OBJ_TYPE_REF.
874         * tree.h (OBJ_TYPE_REF_EXPR): New.
875         (OBJ_TYPE_REF_OBJECT, OBJ_TYPE_REF_TOKEN): New.
876         * doc/c-tree.texi (VTABLE_REF): Remove.
877         * objc/objc-act.c (build_objc_method_call): Build an OBJ_TYPE_REF.
878
879 2004-06-22  Richard Henderson  <rth@redhat.com>
880
881         PR middle-end/16026
882         * function.c (assign_parms): Don't abort for overaligned PARALLEL.
883
884 2004-06-22  Joseph S. Myers  <jsm@polyomino.org.uk>
885
886         * Makefile.in (distclean): Don't try to remove empty directories.
887
888 2004-06-22  Richard Sandiford  <rsandifo@redhat.com>
889
890         PR target/15869
891         * config/mips/mips.c (mips_avoid_hazards): Call split_all_insns_noflow.
892
893 2004-06-22  Alexandre Oliva  <aoliva@redhat.com>
894
895         * config/mn10300/mn10300.md (movdi, movdf): Use high/low for movu
896         operands.
897
898 2004-06-22  Dale Johannesen  <dalej@apple.com>
899
900         * config/rs6000/rs6000.c (legitimate_offset_address_p): Make
901         global, rename rs6000_legitimate_offset_address_p.
902         (rs6000_legitimate_address_p): Adjust calls to it.
903         (lmw_operation): Ditto.
904         (stmw_operation): Ditto.
905         * config/rs6000/rs6000-protos.h: Declare it.
906         * config/rs6000/rs6000.md (*movdf_hardfloat32): Use it
907         instead of offsettable_memref_p.
908
909 2004-06-22  Dale Johannesen  <dalej@apple.com>
910
911         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
912         [reg+reg] mode for TFmode memory accesses.
913         (rs6000_eliminate_indexed_memrefs): New.
914         (rs6000_emit_move): Call preceding for TImode and TFmode.
915
916 2004-06-22  Paolo Bonzini  <bonzini@gnu.org>
917
918         * tree-cfg.c (pass_warn_function_return): It needs
919         CFG, not SSA.
920
921 2004-06-22  Nathan Sidwell  <nathan@codesourcery.com>
922
923         * doc/invoke.texi (Machine Dependent Options): Alphabetize.
924         (Submodel Options): Likewise.
925
926 2004-06-21  Andrew Pinski  <apinski@apple.com>
927
928         Radar #: 3701874
929         * c-decl.c (push_file_scope): Return early if we already
930         have a file scope.
931
932 2004-06-21  Geoffrey Keating  <geoffk@apple.com>
933
934         * c-opts.c (c_common_handle_option): Handle -fpch-preprocess.
935         * c-common.h (flag_pch_preprocess): Declare.
936         (c_common_pch_pragma): Likewise.
937         * c-common.c (flag_pch_preprocess): New.
938         * c-pch.c (c_common_read_pch): Support -fpreprocess-only.
939         (c_common_pch_pragma): New.
940         * c-ppoutput.c (cb_read_pch): New.
941         (init_pp_output): Support -fpch-preprocess.
942         * c-pragma.c (init_pragma): Support #pragma GNUC pch_preprocess.
943         * c.opt (fpch-preprocess): New.
944         * gcc.c (cpp_options): When save-temps, pass -fpch-preprocess.
945         * doc/cppopts.texi: Document -fpch-preprocess.
946         * doc/invoke.texi (Precompiled Headers): Mention that
947         -fpreprocessed is safe for PCH.  Mention that if an option is
948         listed as safe that doesn't mean it does what you expect.
949
950 2004-06-22  Ben Elliston  <bje@au.ibm.com>
951
952         * tree-ssa.c (ssa_redirect_edge): Correct leading comment.
953
954 2004-06-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
955
956         * Makefile.in (gimplify.o): Add cgraph.h.
957         * alias.c (adjust_offset_for_component_ref): Use
958         component_ref_field_offset.
959         * c-decl.c (build_array_declarator): Add news args for ARRAY_REF.
960         * c-gimplify.c (gimplify_expr_stmt): Use alloc_stmt_list.
961         (gimplify_decl_stmt): Call gimplify_type_sizes for type.
962         For decl, call gimplify_one_sizepos and use statement list.
963         (gimplify_compound_literal_expr): New arg PRE_P.
964         Add statement to PRE_P list and return DECL.
965         (c_gimplify_expr, case COMPOUND_LITERAL_EXPR): Add arg to
966         gimplify_compound_literal_expr.
967         * c-tree.h (getdecls): Deleted.
968         * c-typeck.c (build_component_ref): Add operand for COMPONENT_REF.
969         (build_array_ref): Add two operands for ARRAY_REF.
970         (build_unary_op): Set TREE_INVARIANT and TREE_CONSTANT for
971         COMPOUND_LITERAL_EXPR.
972         * coverage.c (tree_coverage_counter_ref): Add new operands
973         for ARRAY_REF.
974         * emit-rtl.c (component_ref_for_mem_expr): Add new operand
975         for COMPONENT_REF.
976         (set_mem_attributes_minus_bitpos): Use array_ref_low_bound
977         and array_ref_element_size.
978         (widen_memory_access):Use component_ref_field_offset.
979         * explow.c (update_nonlocal_goto_save_area): Add two operands
980         for ARRAY_REF.
981         * expr.c (array_ref_element_size, array_ref_low_bound): New functions.
982         (component_ref_field_offset): Likewise.
983         (get_inner_reference): Use them.
984         (expand_expr_real_1, case ARRAY_REF): Use array_ref_low_bound.
985         * fold-const.c (fold, case EQ_EXPR): Properly handle DECL_SIZE.
986         (fold_read_from_constant_string): Use array_ref_low_bound.
987         Verify that result is a character type.
988         (build_fold_indirect_ref): Add two operands for ARRAY_REF.
989         * function.c (expand_function_start): Likewise.
990         * gimple-low.c (expand_var_p): Delete duplicated line.
991         * gimplify.c: Add static decls for local functions.
992         (cgraph.h): Now included.
993         (create_tmp_var): Remove check for ARRAY_TYPE.
994         (copy_if_shared_r): Look at bounds and sizes of types.
995         (build_and_jump): Return alloc_stmt_list instead of build_empty_stmt.
996         (gimplify_exit_expr, shortcut_cond_expr): Likewise.
997         (gimplify_save_expr, gimple_push_cleanup): Likewise.
998         (gimplify_init_constructor): Likewise.
999         WANT_VALUE now bool.
1000         If empty list with no result wanted, return GS_UNHANDLED.
1001         Add additional operands for ARRAY_REF and COMPONENT_REF.
1002         (canonicalize_component_ref): Convert to &array[L].
1003         (gimplify_array_ref_to_plus): Use array_ref_element_size and
1004         array_ref_lower_bound.
1005         (build_addr_expr_with_type, build_addr_expr): New functions.
1006         (gimplify_compound_lval): WANT_LVALUE now bool.
1007         Major rework to allow handle_component_p and initialize and
1008         gimplify new operands for ARRAY_REF, ARRAY_RANGE_REF, and
1009         COMPONENT_REF.
1010         (gimplify_array_ref): Deleted.
1011         (gimplify_self_mod_expr): WANT_VALUE now bool.
1012         (gimplify_modify_expr): Gimplify to_p and from_p later.
1013         Factor out code into gimplify_modify_expr_rhs and call twice.
1014         Move variable-size code earlier and handle PLACEHOLDER_EXPR.
1015         (gimplify_modify_expr_rhs, gimplify_variable_sized_compare): New fns.
1016         (gimplify_addr_expr, case VIEW_CONVERT_EXPR): New case.
1017         (gimplify_expr, case ARRAY_REF): Delete special case.
1018         Instead handle like COMPONENT_REF; also do ARRAY_RANGE_REF,
1019         IMAGPART, and REALPART the same way.
1020         (gimplify_expr, case VIEW_CONVERT_EXPR): New case.
1021         (gimplify_expr): Call gimplify_variable_sized_compare if applicable.
1022         Call alloc_stmt_list instead of build_empty_stmt.
1023         Deal with _REF that's volatile.
1024         (gimplify_type_sizes, gimplify_one_sizepos): New functions.
1025         (unshare_body, unvisit_body): New functions.
1026         (gimplify_body): Call them.
1027         * stmt.c (expand_stack_alloc): Don't expand TYPE_MAX_VALUE.
1028         * stor-layout.c (get_pending_sizes): Don't change SAVE_EXPR_CONTEXT.
1029         * tree-alias-common.c (get_alias_var): Also skip ARRAY_RANGE_REF.
1030         * tree-cfg.c (tree_node_can_be_shared): Treat ARRAY_RANGE_REF
1031         like ARRAY_REF.
1032         (verify_expr, case ADDR_EXPR): Use handled_component_p.
1033         * tree-dfa.c (get_virtual_var): Likewise.
1034         * tree-dump.c (dequeue_and_dump, case COMPONENT_REF, ARRAY_REF):
1035         New cases to dump new operands; likewise for ARRAY_RANGE_REF.
1036         * tree-eh.c (tree_could_trap, case ARRAY_RANGE_REF): Like ARRAY_REF.
1037         * tree-gimple.c (is_gimple_addr_expr_arg): Add ARRAY_RANGE_REF
1038         and INDIRECT_REF.
1039         (get_base_address): Use handled_component_p.
1040         * tree-gimple.h (gimplify_type_sizes, gimplify_one_sizepos): New.
1041         * tree-inline.c (walk_tree): Walk more things for types and decls.
1042         * tree-mudflap.c (mf_build_check_statement_for): Add new operands
1043         for ARRAY_REF and COMPONENT_REF.
1044         (mx_xform_derefs_1): Clean up usage of decl sizes.
1045         * tree-nested.c (build_addr): Use handled_component_p.
1046         (walk_stmts, case CATCH_EXPR): Add missing "break".
1047         (get_static_chain, get_frame_field): Add new operand for COMPONENT_REF.
1048         (finalize_nesting_tree_1): Likewise.
1049         (convert_nonlocal_reference, case ARRAY_RANGE_REF): Like ARRAY_REF
1050         and process additional operands.
1051         (convert_local_reference): Likewise.
1052         * tree-outof-ssa.c (discover_nonconstant_array_refs_r): Treat
1053         ARRAY_RANGE_REF similarly to ARRAY_REF.
1054         * tree-pretty-print.c (dump_generic_node, case QUAL_UNION_TYPE): Handle
1055         like RECORD_TYPE.
1056         (dump_generic_node, case COMPONENT_REF): Print offset operand.
1057         (dump_generic_node, case ARRAY_RANGE_REF): Treat like ARRAY_REF
1058         and print lower bound and element size for both.
1059         (op_prio, case ARRAY_RANGE_REF): Like ARRAY_REF.
1060         * tree-sra.c (csc_build_component_ref): Add new operand.
1061         (scalarize_call_expr): Use get_base_address.
1062         * tree-ssa-ccp.c (widen_bitfield): Clean up size handling.
1063         (maybe_fold_offset_to_array_ref): Rework to handle input having an
1064         ARRAY_REF, refine handling of lower bound, and add new operands
1065         for ARRAY_REF.
1066         (maybe_fold_to_component_ref): Add new operand for COMPONENT_REF.
1067         (maybe_fold_stmt_indirect): Only fold *&B to B if types match.
1068         (maybe_fold_stmt_addition): Only handle constant lower bound.
1069         * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
1070         Treat ARRAY_REF and ARRAY_RANGE_REF the same; look at extra operands.
1071         Look at new offset operand of COMPONENT_REF.
1072         * tree-ssa.c (set_is_used): Use handled_component_p.
1073         * tree.c (substitute_in_expr, case COMPONENT_REF): Add new operand.
1074         (stabilize_reference, case COMPONENT_REF): Likewise.
1075         (stabilize_reference, case ARRAY_RANGE_REF, ARRAY_REF): Similarly.
1076         (recompute_tree_invariant_for_addr_expr): Completely rework to
1077         be more precise.  Also set TREE_SIDE_EFFECTS.
1078         (build1_stat, case ARRAY_EXPR): Don't handle TREE_SIDE_EFFECTS here.
1079         (build2_stat, build3_stat, build4_stat): For references,
1080         propagate TREE_THIS_VOLATILE.
1081         (get_unwidened): Add new operand for COMPONENT_REF.
1082         (get_narrower): Likewise; use host_integerp for DECL_SIZE.
1083         * tree.def (COMPONENT_REF): Add new operand.
1084         (ARRAY_REF, ARRAY_RANGE_REF): Add two new operands.
1085         * tree.h (array_ref_element_size, array_ref_low_bound): New decls.
1086         (component_ref_field_offset): Likewise.
1087         * config/alpha/alpha.c (alpha_va_start): Add new op for COMPONENT_REF.
1088         (alpha_gimplify_va_arg): Likewise.
1089         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
1090         * config/i860/i860.c (i860_va_start, i860_va_arg): Likewise.
1091         * config/iq2000/iq2000.c (iq2000_va_arg): Likewise.
1092         * config/mips/mips.c (mips_va_start, mips_va_arg): Likewise.
1093         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg):
1094         Likewise.
1095         * config/s390/s390.c (s390_va_start, s390_gimplify_va_arg): Likewise.
1096         * config/sh/sh.c (sh_va_start, sh_va_arg): Likewise.
1097         * config/stormy16/stormy16.c (xstormy1_expand_builin_va_start):
1098         Likewise.
1099         (xstormy16_expand_builtin_va_arg): Likewise.
1100         * config/xtensa/xtensa.c (xtensa_va_start, xtensa_va_arg): Likewise.
1101         * objc/objc-act.c (generate_static_references): Likewise.
1102         (generate_strings, build_method_prototype_list_template): Likewise.
1103         (generate_protocol_list): Likewise.
1104
1105 2004-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1106
1107         PR rtl-optimization/14782
1108         * pa.c (emit_move_sequence): Use SFmode for 4-byte modes when doing
1109         the address checks for secondary reloads for loads from and stores
1110         to floating-point registers.
1111         * pa.h (EXTRA_CONSTRAINT, case T): Use SFmode for 4-byte modes
1112         in the address check.  Move work around for ELF32 targets to
1113         GO_IF_LEGITIMATE_ADDRESS.
1114         (GO_IF_LEGITIMATE_ADDRESS): Require constant offsets to be
1115         correctly aligned for DImode loads and stores.  Don't allow long
1116         SFmode displacements on ELF32.
1117
1118 2004-06-21  Richard Henderson  <rth@redhat.com>
1119
1120         PR rtl-opt/16114
1121         * cse.c (merge_equiv_classes): Also rehash in response to
1122         delete_reg_equiv changes.
1123         (rehash_using_reg): Don't exclude REGs from rehashing.
1124
1125 2004-06-21  Richard Henderson  <rth@redhat.com>
1126
1127         * c-common.def (RETURN_STMT): Remove.
1128         * c-common.h (RETURN_STMT_EXPR): Remove.
1129         (c_expand_return, build_return_stmt): Remove.
1130         (c_common_stmt_codes): Remove RETURN_STMT.
1131         * c-dump.c (dump_next_stmt): Remove.
1132         (c_dump_tree): Remove RETURN_STMT.
1133         * c-decl.c (finish_function): Use c_finish_return.
1134         * c-parse.in (stmt): Likewise.
1135         * c-gimplify.c (gimplify_return_stmt): Remove.
1136         (c_gimplify_expr): Remove RETURN_STMT.
1137         * c-pretty-print.c (pp_c_statement): Likewise.
1138         * c-semantics.c (build_return_stmt): Remove.
1139         * c-tree.h (c_finish_return): Declare.
1140         * c-typeck.c (c_finish_return): Rename from c_expand_return.
1141         Return void.  Build RETURN_EXPR directly.
1142         * tree-dump.h (dump_next_stmt): Remove.
1143
1144 2004-06-21  Zack Weinberg  <zack@codesourcery.com>
1145
1146         * c-decl.c (start_function): Don't call make_decl_rtl.  Don't
1147         look at TREE_ADDRESSABLE of symbol name.
1148
1149 2004-06-21  Kelley Cook  <kcook@gcc.gnu.org>
1150
1151         PR target/15551
1152         * config/i386/i386.md: Change UNSPEC_STACK_PROBE to UNSPECV_STACK_PROBE.
1153         (allocate_stack_worker): Make unspec_volatile.
1154         (allocate_stack_worker_rex64):  Likewise.
1155         (allocate_stack_worker_postreload):  Likewise.
1156         (allocate_stack_worker_rex64_postreload):  Likewise.
1157
1158 2004-06-21  Daniel Berlin  <dberlin@dberlin.org>
1159
1160         Fix PR optimization/15982
1161         * tree-ssa-pre.c: Update a few comments and todos to
1162         reflect constants change.
1163         (get_value_handle): Constants now value number to themselves.
1164         (lookup): Constants lookup to themselves.
1165         (add_to_value): Adjust to always be on.
1166         (set_contains_value): Adjust for constants change.
1167         (find_leader): Ditto.
1168         (phi_translate): 'r' nodes are never ANTIC right now.
1169         (valid_in_set): Ditto.
1170         (get_expr_set): New function.
1171         (find_or_generate_expression): New function, broken out from
1172         insert_aux.
1173         (create_expression_by_pieces): Ditto, plus additional
1174         machinery to handle complex values.
1175         (compute_avail): Remove dead RETURN_EXPR handling.
1176
1177 2004-06-21  Steven Bosscher  <stevenb@suse.de>
1178
1179         * config/i386/i386.c: Include insn-codes.h
1180         * config/i386/i386.h (FLAGS_REG, FPSR_REG, DIRFLAG_REG): Don't
1181         define here.
1182         * config/i386/i386.md (BP_REG, SP_REG, FLAGS_REG, FPSR_REG,
1183         DIRFLAG_REG): New define_constants.  Use them everywhere.
1184
1185 2004-06-21  Kaz Kojima  <kkojima@gcc.gnu.org>
1186
1187         * config/sh/t-linux (MULTILIB_OPTIONS): Remove.
1188
1189 2004-06-21  J"orn Rennecke <joern.rennecke@superh.com>
1190
1191         * sh.h (SUPPORT_SH1, SUPPORT_SH2E, SUPPORT_SH4): Conditionally define.
1192         (SUPPORT_SH4_SINGLE): Likewise.
1193         (TARGET_SWITCHES): Break out switches for cpu subtargets:
1194         (TARGET_SWITCH_SH1, TARGET_SWITCH_SH2, TARGET_SWITCH_SH2E): Define.
1195         (TARGET_SWITCH_SH3, TARGET_SWITCH_SH3E): Likewise.
1196         (TARGET_SWITCH_SH4_SINGLE_ONLY, TARGET_SWITCH_SH4_SINGLE): Likewise.
1197         (TARGET_SWITCH_SH4_NOFPU, TARGET_SWITCH_SH4): Likewise.
1198         (TARGET_SWITCH_SH5_64MEDIA, TARGET_SWITCH_SH5_64MEDIA_NOFPU): Likewise.
1199         (TARGET_SWITCHES_SH5_32MEDIA): Likewise.
1200         (TARGET_SWITCHES_SH5_32MEDIA_NOFPU): Likewise.
1201         (SELECT_SH5_64, SELECT_SH5_64_NOFPU): Rename to:
1202         (SELECT_SH5_64MEDIA, SELECT_SH5_64MEDIA_NOFPU)
1203         (SELECT_SH5_32, SELECT_SH5_32_NOFPU): Rename to:
1204         (SELECT_SH5_32MEDIA, SELECT_SH5_32MEDIA_NOFPU).
1205         (SH_MULTILIB_CPU_DEFAULT, MULTILIB_DEFAULTS): Define.
1206         (ASM_ISA_SPEC_DEFAULT, ASM_ISA_DEFAULT_SPEC): Likewise.
1207         * sh64.h (ASM_SPEC, LINK_DEFAULT_CPU_EMUL): Don't redefine.
1208         (TARGET_DEFAULT): Likewise.
1209         * config/sh/t-elf: Amend comment.
1210         * config/sh/t-1e, config/sh/t-mlib-sh1: New files.
1211         * config/sh/t-mlib-sh2, config/sh/t-mlib-sh2e: Likewise.
1212         * config/sh/t-mlib-sh3, config/sh/t-mlib-sh3e: Likewise.
1213         * config/sh/t-mlib-sh4, config/sh/t-mlib-sh4-nofpu: Likewise.
1214         * config/sh/t-mlib-sh4-single: Likewise.
1215         * config/sh/t-mlib-sh4-single-only: Likewise.
1216         * config/sh/t-mlib-sh5-32media: Likewise.
1217         * config/sh/t-mlib-sh5-32media-nofpu: Likewise.
1218         * config/sh/t-mlib-sh5-64media: Likewise.
1219         * config/sh/t-mlib-sh5-64media-nofpu: Likewise.
1220         * config/sh/t-mlib-sh5-compact: Likewise.
1221         * config/sh/t-mlib-sh5-compact-nofpu: Likewise.
1222         * config/sh/t-sh: (MULTILIB_ENDIAN): Add mb.
1223         (MULTILIB_CPUS): Define.
1224         (MULTILIB_OPTIONS): Use MULTILIB_CPUS.
1225         (MULTILIB_MATCHES): Use some shell code to calculate it.
1226         (MULTILIB_EXCEPTIONS): Change to ml/m1.
1227         * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Use ASM_ISA_DEFAULT_SPEC.
1228         * config/sh/netbsd-elf.h: Update code which sets TARGET_VERSION_CPU.
1229         (LINK_DEFAULT_CPU_EMUL): Don't redefine.
1230         (NO_PROFILE_COUNTERS): Define to 1.
1231         * config/sh/t-netbsd (MULTILIB_OPTIONS): Don't append to.
1232         (MULTILIB_DIRNAMES, MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Don't zap.
1233         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Don't redefine.
1234         (MULTILIB_MATCHES): Don't zap.
1235         (MULTILIB_DIRNAMES): Use MULTILIB_RAW_DIRNAMES.
1236         * config/sh/t-sh64 (MULTILIB_OPTIONS): Don't redefine.
1237         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Don't zap.
1238         (MULTILIB_RAW_DIRNAMES): Define.
1239         (MULTILIB_DIRNAMES): Use it.
1240         * config.gcc: Also set cpu_type / need_64bit_hwint for sh[be]*-*-*.
1241         (sh*linux configurations): Merge into:
1242         (sh*elf / sh*kaos configurations).  Support --with-endian, --with-cpu,
1243         --with-multilib-list options.  Support sh-superh-elf configuration.
1244         (sh*-netbsd*): Use SELECT_SH* macros.
1245         (supported_defaults): sh[123456ble]-*-* | sh-*-* support "cpu".
1246         Merge sh*-*-netbsd* configurations into sh-elf configurations.
1247         * config/sh/t-netbsd-sh5, config/sh/t-be, config/sh/t-le: Delete.
1248         * config/sh/t-monolib: Likewise.
1249
1250 2004-06-21  Paul Brook  <paul@codesourcery.com>
1251
1252         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Soft-float need
1253         not imply FPA.
1254
1255 2004-06-21  Roger Sayle  <roger@eyesopen.com>
1256
1257         * fold-const.c (operand_equal_p): Pass flags in recursive calls for
1258         binary and relational operations.  Add support for TRUTH_ANDIF_EXPR,
1259         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR.
1260         * tree.c (commutative_tree_code): Also list UNORDERED_EXPR,
1261         ORDERED_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR
1262         and TRUTH_XOR_EXPR.
1263
1264 2004-06-21  Paolo Bonzini  <bonzini@gnu.org>
1265
1266         * rtlanal.c (may_trap_p): Mark LTGT as trapping.
1267
1268 2004-06-21  Joseph S. Myers  <jsm@polyomino.org.uk>
1269
1270         * tree-alias-common.h (struct tree_alias_ops): Change ip and
1271         ip_partial to unsigned int.
1272
1273 2004-06-21  Richard Henderson  <rth@redhat.com>
1274
1275         * c-common.c (verify_sequence_points): Export.
1276         (c_expand_expr_stmt): Move to c-typeck.c.
1277         * c-common.h (c_expand_expr_stmt): Remove.
1278         (verify_sequence_points): Declare.
1279         * c-mudflap.c (mflang_flush_calls): Use c_finish_expr_stmt.
1280         * c-parse.in (for_init_stmt, stmt): Likewise.
1281         * c-tree.h (c_finish_expr_stmt): Declare.
1282         (c_tree_expr_nonnegative_p): Remove.
1283         * c-typeck.c (c_tree_expr_nonnegative_p): Remove.
1284         (build_conditional_expr, build_binary_op): Use tree_expr_nonnegative_p.
1285         (emit_side_effect_warnings): New.
1286         (c_finish_expr_stmt): Rename from c_expand_expr_stmt.  Use it.
1287         (c_finish_stmt_expr): Work without EXPR_STMT.  Handle eh regions.
1288         Use emit_side_effect_warnings.
1289         (push_cleanup): Copy STATEMENT_LIST_STMT_EXPR.
1290         * fold-const.c (tree_expr_nonnegative_p): Handle TARGET_EXPR.
1291         * gimplify.c (gimplify_modify_expr): Don't discard TARGET_EXPR
1292         with void initializer.
1293         (gimplify_target_expr): Handle void BIND_EXPR initializer.
1294         * tree-inline.c (estimate_num_insns_1): Fix type lookup for
1295         INIT_EXPR and MODIFY_EXPR.
1296         * objc/objc-act.c (build_module_descriptor): Use add_stmt
1297         instead of c_expand_expr_stmt.
1298
1299 2004-06-21  Paolo Bonzini  <bonzini@gnu.org>
1300
1301         * fold-const.c (fold_cond_expr_with_comparison):
1302         New function, extracted from fold.
1303         (fold): Extract code to fold A op B ? A : C, use
1304         it to fold A op B ? C : A.  Really optimize
1305         A & N ? N : 0 where N is a power of two.  Avoid
1306         relying on canonicalization and recursion for
1307         foldings of COND_EXPR to happen.
1308
1309 2004-06-20  David Ayers  <d.ayers@inode.at>
1310
1311         * objc/objc-act.h (get_object_reference): Rename to
1312         get_protocol_reference.
1313         (super_type): Rename to objc_super_type.
1314         (selector_type): Rename to objc_selector_type.
1315         (id_type): Rename to objc_id_type.
1316         (instance_type): Rename to objc_instance_type.
1317         (protocol_type): Rename to objc_protocol_type.
1318         (IS_ID): Update reference to id_type.
1319         * objc/objc-act.c (get_object_reference): Rename to
1320         get_protocol_reference; add documentation; update references to
1321         id_type.
1322         (lookup_method_in_protocol_list): Rename class_meth to
1323         is_class; add documentation.
1324         (finish_message_expr): Rename is_class to class_tree.
1325         (synth_module_prologue, objc_is_object_ptr, objc_build_exc_ptr,
1326         next_sjlj_build_try_catch_finally, objc_begin_catch_clause,
1327         build_next_objc_exception_stuff, get_arg_type_list,
1328         build_objc_method_call): Update references to id_type.
1329         (synth_module_prologue, build_objc_symtab_template,
1330         build_selector_reference_decl, build_selector,
1331         build_selector_translation_table, build_typed_selector_reference,
1332         get_arg_type_list, synth_self_and_ucmd_args, get_arg_type_list,
1333         synth_self_and_ucmd_args): Update references to selector_type.
1334         (build_private_template, build_ivar_reference): Update references
1335         to instance_type.
1336         (synth_module_prologue, build_protocol_reference,
1337         build_protocol_expr, start_protocol): Update references to
1338         protocol_type.
1339         (synth_module_prologue, get_arg_type_list, build_objc_method_call):
1340         Update references to super_type.
1341         * c-parse.in: (typespec_nonreserved_nonattr): Update
1342         references to get_object_reference.
1343         * objc/objc-tree.def: Add C mode identifier sequence.
1344
1345 2004-06-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1346
1347         * loop-invariant.c: New file.
1348         * Makefile.in (loop-invariant.o): New.
1349         * cfgloop.h (global_cost_for_size, init_set_costs,
1350         move_loop_invariants): Declare.
1351         * cfgloopanal.c (seq_cost, init_set_costs, global_cost_for_size): New
1352         functions.
1353         (avail_regs, res_regs, small_cost, pres_cost, spill_cost): New
1354         variables.
1355         * common.opt (floop-optimize2, fmove-loop-invariants): New options.
1356         * loop-init.c (loop_optimizer_init): Call init_set_costs.
1357         * passes.c (rest_of_handle_loop2): Call move_loop_invariants.
1358         (rest_of_compilation): Check flag_loop_optimize2.
1359         * toplev.c (process_options): Handle flag_loop_optimize2.
1360         * doc/invoke.texi (-floop-optimize2, -fmove-loop-invariants): Document.
1361         * doc/passes.texi (loop-invariant.c): Document.
1362
1363 2004-06-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1364
1365         * tree-ssa-pre.c (compute_antic): Keep BB_VISITED flag zeroed.
1366
1367 2004-06-20  Richard Henderson  <rth@redhat.com>
1368
1369         * stmt.c (warn_if_unused_value): Add locus argument.
1370         * tree.h (warn_if_unused_value): Update decl.
1371         * c-typeck.c (internal_build_compound_expr): Update call.
1372         * c-gimplify.c (gimplify_expr_stmt): Likewise.
1373
1374 2004-06-20  Andrew Pinski  <pinskia@physics.uc.edu>
1375
1376         PR middle-end/16089
1377         * builtins.c (entry_of_function): Move to ...
1378         * cfgrtl.c (entry_of_function): Here and make non-static.
1379         * integrate.c (emit_initial_value_sets): Use entry_of_function.
1380         * rtl.h (entry_of_function): Prototype.
1381
1382 2004-06-20  Roger Sayle  <roger@eyesopen.com>
1383
1384         * config/i386/i386.c (pentium4_cost): Increase "lea" cost from 1 to 3.
1385         (ix86_rtx_costs) <ASHIFT, PLUS>: Consider ix86_cost->lea even when
1386         TARGET_DECOMPOSE_LEA.
1387
1388 2004-06-20  Richard Henderson  <rth@redhat.com>
1389
1390         * c-common.h (add_decl_stmt): Move to cp-tree.h.
1391         * c-decl.c (finish_decl): Don't use add_decl_stmt.
1392         * c-parse.in: Likewise.
1393         * c-gimplify.c (gimplify_expr_stmt): Don't build CLEANUP_POINT_EXPR.
1394         (gimplify_c_loop, gimplify_return_stmt, gimplify_decl_stmt): Likewise.
1395         * c-semantics.c (add_decl_stmt): Move to cp/semantics.c.
1396
1397 2004-06-20  Richard Henderson  <rth@redhat.com>
1398
1399         * c-common.def (IF_STMT, CLEANUP_STMT): Move to cp-tree.def.
1400         * c-common.h (IF_COND, THEN_CLAUSE, ELSE_CLAUSE, CLEANUP_BODY,
1401         CLEANUP_EXPR, CLEANUP_DECL): Move to cp-tree.h.
1402         (c_common_stmt_codes): Remove IF_STMT, CLEANUP_STMT.
1403         * c-dump.c (c_dump_tree): Move IF_STMT, CLEANUP_STMT to cp_dump_tree.
1404         * c-pretty-print.c (pp_c_statement): Similarly.
1405         * c-gimplify.c (gimplify_cleanup_stmt, gimplify_cleanup_stmts,
1406         gimplify_if_stmt): Move to cp-gimplify.c.
1407         (c_genericize, c_gimplify_expr): Don't call them.
1408         * c-semantics.c (push_cleanup): Move to cp/semantics.c.
1409         * c-typeck.c (push_cleanup): New.
1410         (c_begin_if_stmt, c_finish_if_cond, c_finish_then, c_finish_else,
1411         c_finish_if_stmt): Use COND_EXPR.
1412         * tree.h (CLEANUP_EH_ONLY): Update documentation.
1413
1414 2004-06-20  Zack Weinberg  <zack@codesourcery.com>
1415
1416         * c-common.h (has_c_linkage): New interface.
1417         * c-cppbuiltin.c: Include target.h.
1418         (c_cpp_builtins): Define __PRAGMA_REDEFINE_EXTNAME and
1419         __PRAGMA_EXTERN_PREFIX when appropriate.
1420         * c-pragma.c: Include target.h.
1421         Document clarified semantics of symbol-renaming #pragmas.
1422         (handle_pragma_redefine_extname, handle_pragma_extern_prefix)
1423         (maybe_apply_renaming_pragma): Rewrite according to clarified
1424         semantics.  Always recognize, but do not necessarily execute.
1425         (init_pragma): Unconditionally register symbol-renaming pragmas.
1426         * system.h: Poison HANDLE_PRAGMA_REDEFINE_EXTNAME
1427         and HANDLE_PRAGMA_EXTERN_PREFIX.
1428         * target.h (struct gcc_target): Add handle_pragma_redefine_extname
1429         and handle_pragma_extern_prefix flags.
1430         * target-def.h: Add defaults for TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME
1431         and TARGET_HANDLE_PRAGMA_EXTERN_PREFIX.
1432         * Makefile.in (c-pragma.o, c-cppbuiltin.o): Update dependencies.
1433         * config/sol2.h: Define TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME,
1434         not HANDLE_PRAGMA_REDEFINE_EXTNAME.
1435         (TARGET_OS_CPP_BUILTINS): No need to define __PRAGMA_REDEFINE_EXTNAME.
1436         (TRANSFER_FROM_TRAMPOLINE): Prototype mprotect.
1437         * config/alpha/osf.h: Define TARGET_HANDLE_PRAGMA_EXTERN_PREFIX,
1438         not HANDLE_PRAGMA_EXTERN_PREFIX.
1439         (TARGET_OS_CPP_BUILTINS): No need to define __PRAGMA_EXTERN_PREFIX.
1440         * doc/extend.texi (Solaris Pragmas, Tru64 Pragmas): Combine
1441         into one section "Symbol-Renaming Pragmas"; clarify; document
1442         adjusted semantics.
1443
1444         * builtins.c (expand_builtin): Do not issue error for a builtin
1445         with no special case code and no DECL_ASSEMBLER_NAME; just do the
1446         library call.
1447         * c-decl.c (builtin_function): Don't call make_decl_rtl.
1448         * c-objc-common.c (has_c_linkage): Stub implementation.
1449         * cgraphunit.c (cgraph_expand_function)
1450         (cgraph_remove_unreachable_nodes): Don't clear DECL_ARGUMENTS.
1451
1452 2004-06-19  Roger Sayle  <roger@eyesopen.com>
1453
1454         * builtins.c (fold_builtin_unordered_cmp): Take an EXP argument
1455         instead of both an ARGLIST and a result TYPE.  Handle these C99
1456         comparison functions as "polymorphic" builtins.  Also handle
1457         lowering of BUILT_IN_ISUNORDERED to an UNORDERED_EXPR tree node.
1458         (fold_builtin_1): Update calls to fold_builtin_unordered_cmp.
1459         Move handling of BUILT_IN_ISUNORDERED from here to there.
1460
1461 2004-06-19  Richard Henderson  <rth@redhat.com>
1462
1463         * c-common.c, c-common.h (lang_gimplify_stmt): Remove.
1464         * c-gimplify.c: Remove unnecessary prototypes.
1465         (c_gimplify_stmt): Merge into ...
1466         (c_gimplify_expr): ... here.  Don't play with prep_stmt.
1467         * c-semantics.c (prep_stmt): Remove.
1468         * gimplify.c (annotate_one_with_locus): Break out from ...
1469         (annotate_all_with_locus): ... here.
1470         (gimplify_expr): Add locus to expressions even if pre/post queues
1471         are not present.
1472
1473 2004-06-19  Richard Henderson  <rth@redhat.com>
1474
1475         PR target/15941
1476         * function.c (assign_parms): If not padding upward or intentionally
1477         forcing upward padding, take offset_rtx into account when determining
1478         the alignment for stack_parm.
1479
1480 2004-06-19  Richard Henderson  <rth@redhat.com>
1481
1482         PR target/15550
1483         * ifcvt.c (noce_try_move): Recognize all generated instructions.
1484
1485 2004-06-19  Jan Hubicka  <jh@suse.cz>
1486
1487         * function.c (free_after_compilation): Do not free computed_goto_common*.
1488         * function.h (struct function): Kill computed_goto_common*.
1489         * stmt.c (expand_computed_goto): Do not commonize the computed gotos.
1490         * tree-cfg.c (disband_implicit_edges): Do not forward across the
1491         commonized computed goto.
1492
1493 2004-06-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1494
1495         * doc/invoke.texi: Remove obsolete comment regarding PA 2.0 support
1496         in binutils.
1497
1498 2004-06-19  Andrew Pinski  <apinski@apple.com>
1499
1500         PR c++/15721
1501         * toplev.c (wrapup_global_declarations): Do not check
1502         TREE_SYMBOL_REFERENCED of the DECL_ASSEMBLER_NAME but check
1503         cgraph_varpool_node's needed field.
1504
1505 2004-06-19  Jan Hubicka  <jh@suse.cz>
1506             Steven Bosscher  <stevenb@suse.de>
1507
1508         CFG transparent RTL expansion:
1509         * Makefile.in (cfgexpand.o): New object file.
1510         (builtins.o): Add dependency on basic-block.h
1511         * builtins.c: Include basic-block.h
1512         (entry_of_function): New function.
1513         (expand_builtin_apply_args, expand_builtin_saveargs): Use it.
1514         * cfgexpand.c: New file.
1515         * expr.c (execute_expand, pass_expand): Kill.
1516         * pass.c (rest_of_compilation): Do not build CFG unless called from
1517         coverage code.
1518         * tree-cfg.c (delete_tree_cfg): Rename to..
1519         (delete_tree_cfg_annotations): ... this one; Do not remove the CFG itself.
1520         * tree-flow.h (delete_tree_cfg_annotations): Declare.
1521         (dleete_tree_cfg): Kill.
1522         * tree-optimize.c (execute_rebuild_bind, pass_rebuild_bind): Kill.
1523         (execute_del_cfg): Rename to...
1524         (execute_free_datastructures): This one...
1525         (pass_del_cfg): Rename to...
1526         (pass_free_datastructures): ... this one; Do not kill PROP_cfg.
1527         (init_tree_optimization_passes): Make cfg build and profiling to happen
1528         unconditionally.
1529
1530 2004-06-19  Steven Bosscher  <stevenb@suse.de>
1531
1532         * tree-mudflap.c (mf_decl_cache_locals): Skip labels before
1533         inserting the cache variables.
1534
1535         * tree-mudflap.c: Include headers to make basic_block available.
1536         Move functions around such that related functions are near each
1537         other.  Add prototypes for all static functions.  Add comments
1538         briefly explaining what IR the mudflap1 and mudflap2 work on and
1539         what they do.
1540         (mudflap_function_decls): Rename to execute_mudflap_function_decls.
1541         (mudflap_function_ops): Rename to execute_mudflap_function_ops.
1542         (pass_mudflap_1, pass_mudflap_2): Update.
1543         (mf_decl_cache_locals): Make it work on the CFG instead of the saved
1544         function tree.
1545         (mf_build_check_statement_for): Make it work on the CFG.
1546         (mf_xform_derefs_1): Likewise.  Cleanup code style.
1547         (mf_xform_derefs): Likewise.
1548
1549 2004-06-19  Jan Hubicka  <jh@suse.cz>
1550
1551         * tree-cfg.c (label_to_block): Invent the label destination for
1552         undefined labels.
1553         (cleanup_dead_labels): Update table in the case label_to_block added
1554         new label.
1555
1556 2004-06-18  Richard Henderson  <rth@redhat.com>
1557
1558         PR c++/16036
1559         * gimple-low.c (lower_function_body): Generate return statement for
1560         fall off the end of the function here ...
1561         * tree-cfg.c (make_edges): ... instead of here.
1562         * gimplify.c (gimplify_return_expr): Mark return temp TREE_NO_WARNING.
1563
1564 2004-06-18  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1565
1566         * tree-ssa.c (raise_value): Removed.
1567         (get_eq_name, check_phi_redundancy): New functions.
1568         (kill_redundant_phi_nodes): Use standard ssa minimalization algorithm.
1569
1570 2004-06-18  Roger Sayle  <roger@eyesopen.com>
1571
1572         * fold-const.c (fold) <UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR,
1573         UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR>: Add
1574         constant folding for unordered comparison tree nodes.  If both
1575         operands are real constants, call fold_relational_const.  If either
1576         operand is a NaN, evaluate the other for side-effects and return a
1577         constant.  Optimize (double)float1 CMP (double)float2 into the
1578         equivalent float1 CMP float2.
1579         (nondestructive_fold_binary_to_constant) <UNORDERED_EXPR,
1580         ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR,
1581         LTGT_EXPR>: Call fold_relational_const for constant operands.
1582         (fold_relational_const): Add support for unordered comparison tree
1583         nodes.  Don't constant fold "ordered" floating point comparisons
1584         against NaN if when flag_trapping_math is set.
1585
1586 2004-06-19  Jakub Jelinek  <jakub@redhat.com>
1587
1588         * fold-const.c (build_range_check): If !in_p and recursive call
1589         fails, exit immediately.  If high - low overflows and etype is
1590         a signed type, retry with unsigned etype.
1591         (merge_ranges): If !in0_p and !in1_p, handle even range2 adjacent
1592         to range1 at TYPE_MAX_VALUE and TYPE_MIN_VALUE.
1593
1594 2004-06-18  Richard Henderson  <rth@redhat.com>
1595
1596         * c-gimplify.c (gimplify_condition): Remove.
1597         (gimplify_c_loop, gimplify_if_stmt, gimplify_switch_stmt): Don't
1598         call it.
1599
1600 2004-06-18  Richard Henderson  <rth@redhat.com>
1601
1602         * tree-eh.c (decide_copy_try_finally): Fix scaling of copy and
1603         switch estimates.
1604
1605 2004-06-18  Andrew Pinski  <pinskia@physics.uc.edu>
1606
1607         * config/i386/darwin.h (HOT_TEXT_SECTION_NAME): Define.
1608         (NORMAL_TEXT_SECTION_NAME): Define.
1609         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
1610         (SECTION_FORMAT_STRING): Define.
1611
1612 2004-06-18  Steven Bosscher  <stevenb@suse.de>
1613
1614         * config/xtensa/xtensa.c
1615         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
1616         * xtensa.md: Replace the old pipeline description with a DFA model.
1617
1618 2004-06-18  Steven Bosscher  <stevenb@suse.de>
1619             Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1620
1621         * config/s390/s390.md: Remove the generic pipeline description.
1622         * config/s390/2064.md: Make all insn reservations apply to
1623         the z900, g5 and g6.
1624         * config/s390/s390.c (s390_use_dfa_pipeline_interface): Remove.
1625         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
1626         Define to hook_int_void_1.
1627         (s390_adjust_cost): Cleanup.  Don't check address dependency here.
1628         (s390_first_cycle_multipass_dfa_lookahead): Always return 4.
1629
1630 2004-06-18  Daniel Berlin  <dberlin@dberlin.org>
1631                         Diego Novillo  <dnovillo@redhat.com>
1632
1633         * tree-dfa.c (create_var_ann): tree_ann -> tree_ann_t.
1634         (create_stmt_ann): Ditto.
1635         (create_tree_ann): New function.
1636         (create_cst_ann): Remove.
1637         (create_expr_ann): Ditto.
1638
1639         * tree-flow-inline.h (cst_ann): Remove.
1640         (get_cst_ann): Ditto.
1641         (get_expr_ann): Ditto.
1642         (expr_ann): Ditto.
1643         (get_tree_ann): New function.
1644         (tree_ann): Ditto.
1645         (ann_type): tree_ann -> tree_ann_t.
1646         * tree-flow.h (tree_ann_type): CST_ANN, EXPR_ANN removed.
1647         (struct cst_ann_d): Removed.
1648         (struct expr_ann_d): Ditto.
1649         (union tree_ann_d): Removed cst and expr.
1650         (tree_ann): Renamed to tree_ann_t.
1651         * tree-ssa-ccp.c (set_rhs): tree_ann -> tree_ann_t.
1652         * tree-ssa-pre.c (get_value_handle): Rewrite for single common
1653         annotation.
1654         (set_value_handle): Ditto.
1655         (phi_translate): Ditto.
1656         * tree-tailcall.c (adjust_return_value): tree_ann -> tree_ann_t.
1657
1658 2004-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
1659
1660         * config/sh/t-linux64: New file.
1661         * config.gcc: Add it to tmake_file for sh64*-*-linux*.
1662
1663 2004-06-18  Paolo Bonzini  <bonzini@gnu.org>
1664
1665         * emit-rtl.c (unshare_all_rtl_1): New name of unshare_all_rtl.
1666         (unshare_all_rtl_again): Call unshare_all_rtl_1.
1667         (unshare_all_rtl): New.
1668         * function.c (instantiate_virtual_regs): Remove parameters.
1669         * function.h (instantiate_virtual_regs): Add prototype.
1670         * rtl.h (unshare_all_rtl): Add prototype.
1671         * tree.h (instantiate_virtual_regs, unshare_all_rtl): Remove
1672         prototype.
1673         * passes.c: Remove assertions on the parameters to
1674         rest_of_handle_* functions.  Remove the parameters to
1675         the functions, replacing decl with current_function_decl
1676         and insns with get_insns ().
1677
1678 2004-06-17  Roger Sayle  <roger@eyesopen.com>
1679
1680         * fold-const.c (constant_boolean_node): Handle boolean_type_node
1681         directly, return either boolean_true_node or boolean_false_node.
1682
1683 2004-06-18  Kelley Cook  <kcook@gcc.gnu.org>
1684
1685         * opts.sh: Delete.  Break out generated code to next four files.
1686         * opt-gather.awk: New file.
1687         * optc-gen.awk: New file.
1688         * opth-gen.awk: New file.
1689         * opt-functions.awk: New common file.
1690         * Makefile.in: Update for above.
1691         * configure.ac: Update comment.
1692         * configure: Regenerate.
1693
1694 2004-06-17  Richard Henderson  <rth@redhat.com>
1695
1696         * c-common.c (flag_objc_sjlj_exceptions): New.
1697         * c-common.h (flag_objc_sjlj_exceptions): Declare.
1698         * c-opts.c (c_common_handle_option): Set it.
1699         (c_common_post_options): Handle interation of different
1700         objective-c exception and runtime switches.
1701         * c-decl.c (c_eh_initialized_p): New.
1702         (finish_decl): Use it instead of local eh_initialized_p.
1703         * c-parse.in (nested_function, notype_nested_function): Record
1704         the result of compstmt.
1705         (compstmt_or_error): Likewise.
1706         (compstmt): Don't add_stmt the result.
1707         (stmt): Don't return anything.  Rewrite objc try and sync rules.
1708         (objc_try_stmt, objc_catch_list): Remove.
1709         (objc_catch_block, objc_finally_block): Remove.
1710         (objc_catch_prefix, objc_catch_clause, objc_opt_catch_list): New.
1711         (objc_try_catch_clause, objc_finally_clause): New.
1712         (objc_try_catch_stmt): Rewrite.
1713         * c-tree.h (c_eh_initialized_p): Declare.
1714         * c-opt (fobjc-sjlj-exceptions): New.
1715         * except.c (output_function_exception_table): Don't call cgraph
1716         on non-decls.
1717         * objc/objc-act.c (UTAG_EXCDATA_VAR, UTAG_CAUGHTEXC_VAR,
1718         UTAG_RETHROWEXC_VAR, UTAG_EVALONCE_VAR, struct val_stack,
1719         catch_count_stack, exc_binding_stack, if_nesting_count,
1720         blk_nesting_count, objc_enter_block, objc_exit_block,
1721         objc_declare_variable, val_stack_push, val_stack_pop,
1722         objc_build_try_enter_fragment, objc_build_extract_expr,
1723         objc_build_try_exit_fragment, objc_build_extract_fragment,
1724         objc_build_try_prologue, objc_build_try_epilogue,
1725         objc_build_catch_stmt, objc_build_catch_epilogue,
1726         objc_build_finally_prologue, objc_build_finally_epilogue,
1727         objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
1728         objc_build_synchronized_epilogue): Remove.
1729         (objc_create_temporary_var, struct objc_try_context, cur_try_context,
1730         objc_eh_runtime_type, objc_init_exceptions, objc_build_exc_ptr,
1731         next_sjlj_build_try_exit, next_sjlj_build_enter_and_setjmp,
1732         next_sjlj_build_exc_extract, next_sjlj_build_catch_list,
1733         next_sjlj_build_try_catch_finally, objc_begin_try_stmt,
1734         objc_begin_catch_clause, objc_finish_catch_clause,
1735         objc_build_finally_clause, objc_finish_try_stmt,
1736         objc_build_synchronized): New.
1737         (objc_is_object_id, objc_is_class_id): New.
1738         (objc_comptypes): Use them.
1739         (build_next_objc_exception_stuff): Break NeXT sjlj out from
1740         build_objc_exception_stuff.
1741         (synth_module_prologue): Update to match.
1742         (objc_build_throw_stmt): Use cur_try_context to decide if
1743         we're in a @catch.
1744         * objc/objc-act.h: Update prototypes.
1745         (OCTI_EXCEPTION_BLK_STACK, objc_exception_block_stack): Remove.
1746
1747 2004-06-17  Andrew Pinski <apinski@apple.com>
1748
1749         * c-typeck.c (tagged_types_tu_compatible_p <case UNION_TYPE>):
1750         Use TYPE_FIELDS instead of TYPE_VALUES.
1751
1752 2004-06-17  Jason Merrill  <jason@redhat.com>
1753
1754         PR c++/16015
1755         * gimplify.c (gimplify_target_expr): Handle void initializer.
1756         * expr.c (expand_expr_real_1) [TARGET_EXPR]: Likewise.
1757         * doc/c-tree.texi (Expression trees): Update TARGET_EXPR
1758         and AGGR_INIT_EXPR.
1759
1760 2004-06-17  Roger Sayle  <roger@eyesopen.com>
1761
1762         * fold-const.c (fold_relational_const): Use constant_boolean_node.
1763
1764 2004-06-17  Jan Hubicka  <jh@suse.cz>
1765
1766         PR target/15433
1767         * i386.md (SSE SF cmov 0 splitter): The conditional is VOIDmode; fix
1768         operand numbering in the output template.
1769         (SSE DF cmov 0 splitter): The conditional is VOIDmode.
1770
1771 2004-06-17  Jan Hubicka  <jh@suse.cz>
1772
1773         * except.c (can_throw_internal): Recognize RESX expresisons.
1774
1775 2004-06-17  Jan Hubicka  <jh@suse.cz>
1776
1777         * cfgbuild.c (make_edges): Do not use label_value_list.
1778         (find_basic_blocks_1): Do not collect label_value_list.
1779         (find_sub_basic_blocks): Update call of make_edges.
1780
1781 2004-06-17  Andrew MacLeod  <amacleod@redhat.com>
1782
1783         * tree-cfg.c (tree_make_forwarder_block):  Use SET_PHI_RESULT.
1784         * tree-flow-inline.h (get_use_op_ptr):  Return a use_operand_p.
1785         (get_use_from_ptr, get_def_from_ptr):  New.  Return operand pointers.
1786         (get_def_op_ptr):  Return a def_operand_p instead of a 'tree *'.
1787         (get_v_may_def_result_ptr):  Return a def_operand_p.
1788         (get_v_may_def_op_ptr, get_vuse_op_ptr):   Return a use_operand_p.
1789         (get_v_must_def_op_ptr):  Return a def_operand_p.
1790         (get_phi_result_ptr):  New.  Return a pointer to the result of a PHI.
1791         (get_phi_arg_def_ptr):  New.  Return a pointer to an argument of a PHI.
1792         (phi_element_for_edge):  Remove.
1793         * tree-flow.h (propagate_value, replace_exp):  Change prototype.
1794         (propagate_tree_value):  Add new prototype.
1795         (phi_element_for_edge):  Remove prototype.
1796         * tree-into-ssa.c (mark_def_sites):  Use new operand types.
1797         (prepare_operand_for_rename):  Split into two functions.
1798         (prepare_use_operand_for_rename):  Prepare use operands.
1799         (prepare_def_operand_for_rename):  Prepare def operands.
1800         (rewrite_stmt):  Use new operand types.
1801         (rewrite_operand):  Use new operand types, change parameter type.
1802         * tree-outof-ssa.c (replace_variable):  Split into two functions.
1803         (replace_use_variable):  Rewrite uses.
1804         (replace_def_variable):  Rewrite defs.
1805         (rewrite_trees, rewrite_vars_out_of_ssa):  Use new operand types.
1806         * tree-phinodes.c (make_phi_node, resize_phi_node):  Use new types.
1807         (add_phi_arg, remove_phi_arg_num):  Use new operand types.
1808         * tree-ssa-ccp.c (substitute_and_fold):  Use new operand types.
1809         (ccp_fold, replace_uses_in):  Use new operand types.
1810         * tree-ssa-copy.c (replace_ssa_names):  Rename to replace_ssa_names_ann
1811         and no longer set the value, change parameter type.
1812         (replace_exp_1):  Use new operand types.
1813         (propagate_value):  Change parameter type, use new operand types.
1814         (propagate_tree_value):  Propagate_value without SSA operands.
1815         (replace_exp, cprop_operand, cprop_into_stmt):  Use new operand types.
1816         (cprop_into_successor_phis):  Use new operand types.
1817         * tree-ssa-dom.c (thread_across_edge):  Use new operand types.
1818         (eliminate_redundant_computations):  Use new operand types.
1819         * tree-ssa-dse.c (fix_phi_uses):  Use new operand_types.
1820         (fix_stmt_v_may_defs):  Use new operand_types.
1821         * tree-ssa-live.c (create_ssa_var_map):  Use new operand_types.
1822         (build_tree_conflict_graph):  Use new operand_types.
1823         * tree-ssa-loop.c (duplicate_blocks):  Use PHI_ARG_DEF_FROM_EDGE.
1824         * tree-ssa-operands.c (struct freelist_d):  Remove.
1825         (check_optype_freelist, add_optype_freelist):  Remove.
1826         (allocate_def_optype, allocate_use_optype, allocate_v_may_def_optype,
1827         allocate_vuse_optype, allocate_v_must_def_optype):  Call ggc_alloc.
1828         (free_uses, free_defs, free_vuses, free_v_may_defs, free_v_must_defs):
1829         Call ggc_free instead of add_optype_freelist.
1830         (init_ssa_operands, fini_ssa_operands):  Remove free list code.
1831         (finalize_ssa_defs, finalize_ssa_uses):  Set new use/def operands.
1832         * tree-ssa-operands.h (struct def_optype_d):  Change underlying type.
1833         (struct use_optype_d):  Change underlying type.
1834         (def_operand_p, use_operand_p):  New types for pointers to operands.
1835         (USE_OP, DEF_OP, V_MAY_DEF_RESULT, V_MAY_DEF_OP, VUSE_OP,
1836         V_MUST_DEF_OP):  Use new pointer type instead of dereferencing directly.
1837         (USE_FROM_PTR, DEF_FROM_PTR):  New macros to "dereference" operand
1838         pointer types.
1839         (SET_USE, SET_DEF):  New macros to set operands from their pointer.
1840         (SET_USE_OP, SET_DEF_OP, SET_V_MAY_DEF_RESULT, SET_V_MAY_DEF_OP,
1841         SET_VUSE_OP, SET_V_MUST_DEF_OP): New SET routines for operands.
1842         (PHI_RESULT_PTR, PHI_RESULT, SET_PHI_RESULT):  Macros to manage the
1843         PHI result as an operand.
1844         (PHI_ARG_DEF_PTR, PHI_ARG_DEF, SET_PHI_ARG_DEF, PHI_ARG_DEF_FROM_EDGE,
1845         PHI_ARG_DEF_PTR_FROM_EDGE):  Macros to manage the PHI arguments.
1846         * tree-ssa-pre.c (eliminate):  Call propagate_tree_value.
1847         * tree-tailcall.c (independent_of_stmt_p, propagate_through_phis):  Use
1848         PHI_ARG_DEF_FROM_EDGE.
1849         * tree.h (PHI_RESULT):  Renamed to PHI_RESULT_TREE.
1850         (PHI_ARG_DEF):  Renamed to PHI_ARG_DEF_TREE.
1851
1852 2004-06-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1853
1854         PR tree-optimization/15991
1855         * tree-cfg.c (tree_block_label): Export.
1856         * tree-flow-inline.h (bsi_after_labels): New function.
1857         * tree-flow.h (bsi_after_labels, tree_block_label): Declare.
1858         * tree-ssa.c (propagate_into_addr): New function.
1859         (replace_immediate_uses): Handle propagation of pointer constants.
1860         (raise_value): Do not restrict propagation of pointer constants.
1861         * tree-ssanames.c (duplicate_ssa_name): New function.
1862         * tree.h (duplicate_ssa_name): Declare.
1863
1864 2004-06-17  David Ayers  <d.ayers@inode.at>
1865
1866         * c-parse.in: Unify Objective-C token names.
1867
1868 2004-06-17  Zack Weinberg  <zack@codesourcery.com>
1869
1870         Bug 14610
1871         * Makefile.in (min-insn-modes.o): Correct dependencies.
1872         * real.c (encode_ieee_extended, decode_ieee_extended): Always
1873         produce/consume 12-byte little-endian Intel format.
1874         (encode_ieee_extended_128, decode_ieee_extended_128): Delete.
1875         (encode_ieee_extended_motorola, decode_ieee_extended_motorola)
1876         (encode_ieee_extended_intel_96, decode_ieee_extended_intel_96)
1877         (encode_ieee_extended_intel_128, decode_ieee_extended_intel_128):
1878         New functions which convert between 12-byte little-endian Intel
1879         format and the desired format.
1880         (ieee_extended_motorola_format, ieee_extended_intel_96_round_53_format)
1881         (ieee_extended_intel_96_format, ieee_extended_intel_128_format):
1882         Update.
1883
1884 2004-06-17  Zack Weinberg  <zack@codesourcery.com>
1885
1886         * expmed.c (expand_mult_const): In sanity check, compare only
1887         the bits of val and val_so_far that are significant in the
1888         result mode.
1889
1890 2004-06-17  Daniel Berlin  <dberlin@dberlin.org>
1891
1892         * tree-ssa-pre.c:  Update comments.
1893         (val_expr_pair_eq): Factor code from here.
1894         (expr_pred_trans_eq): and here.
1895         (expressions_equal_p): To here.
1896         (print_value_set): Print value for expression.
1897         (phi_trans_lookup): Rename some variables.
1898         (lookup): Ditto.
1899         (value_exists_in_set_bitmap): Ditto.
1900         (value_remove_from_set_bitmap): Ditto.
1901         (value_insert_into_set_bitmap): Ditto.
1902
1903 2004-06-17  Ulrich Weigand  <uweigand@de.ibm.com>
1904
1905         * config/s390/s390-modes.def (CCL3mode): New machine mode.
1906         * config/s390/s390.c (s390_match_ccmode_set): Support CCL3mode.
1907         (s390_alc_comparison, s390_slb_comparison): Likewise.
1908         (s390_branch_condition_mask): Likewise.
1909         * config/s390/s390.md ("*subdi3_cc2", "*subdi3_cconly2"): New.
1910         ("*subsi3_cc2", "*subsi3_cconly2"): New.
1911
1912         * config/s390/s390.h (PREDICATE_CODE): Accept SIGN_EXTEND and
1913         ZERO_EXTEND for s390_alc_comparison and s390_slb_comparison.
1914         * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
1915         Handle SIGN_EXTEND and ZERO_EXTEND.
1916
1917         * config/s390/s390-protos.h (s390_expand_addcc): New prototype.
1918         * config/s390/s390.c (s390_expand_addcc): New function.
1919         * config/s390/s390.md ("adddicc", "addsicc"): New expanders.
1920         ("*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg"): New insns.
1921         ("sltu", "sgtu", "sleu", "sgeu"): New expanders.
1922
1923 2004-06-17  Ben Elliston  <bje@au.ibm.com>
1924
1925         * tree-alias-common.c: Add whitespace.
1926         * tree-inline.c: Correct comment about this file's purpose.
1927         * tree-optimize.c: Likewise.
1928         * tree-tailcall.c: Likewise.
1929
1930         * tree-alias-ander.h: Add standard top-of-file comment.
1931         * tree-alias-common.h: Likewise.
1932         * tree-alias-type.h: Likewise.
1933
1934 2004-06-16  Daniel Berlin  <dberlin@dberlin.org>
1935
1936         * tree-ssa-pre.c (compute_avail): Value number uses as well.
1937         Strip useless type conversions.
1938         Casts have to be treated slightly different than normal unaries.
1939
1940 2004-06-16  Richard Henderson  <rth@redhat.com>
1941
1942         * c-common.def (COMPOUND_STMT): Remove.
1943         * c-common.c (finish_fname_decls): Don't look through it.
1944         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
1945         * c-common.h (COMPOUND_BODY): Remove.
1946         (c_common_stmt_codes): Remove COMPOUND_STMT.
1947         * c-dump.c (c_dump_tree): Likewise.
1948         * c-gimplify.c (c_gimplify_stmt): Likewise.
1949         * c-pretty-print.c (pp_c_statement): Likewise.
1950         * tree.h (DECL_SAVED_TREE): Update commentary.
1951         * doc/c-tree.texi (ASM_EXPR): Rename from ASM_STMT.
1952         (CASE_LABEL_EXPR): Rename from CASE_LABEL.
1953         (GOTO_EXPR): Rename from GOTO_STMT.
1954         (GOTO_FAKE_P): Remove.
1955         (COMPOUND_STMT): Remove.
1956         (HANDLER): Update wrt COMPOUND_STMT.
1957         (STMT_EXPR): Likewise.
1958         (LABEL_EXPR): Rename from LABEL_STMT.
1959         (SCOPE_STMT): Remove.
1960         * objc/objc-act.c (objc_build_try_catch_finally_stmt): Don't look
1961         through COMPOUND_STMT.
1962
1963 2004-06-16  Richard Henderson  <rth@redhat.com>
1964
1965         * c-common.h (c_begin_if_stmt, c_begin_while_stmt,
1966         c_finish_while_stmt_cond): Remove decls.
1967         * c-parse.in (if_prefix): Don't save c_begin_if_stmt result.
1968         * c-typeck.c (c_begin_if_stmt): Return void.
1969         (c_begin_else): Tidy.  Save stmt_count.
1970         * c-tree.h (c_begin_if_stmt): Update decl.
1971
1972         * objc/objc-act.c (objc_build_try_enter_fragment,
1973         objc_build_extract_fragment, objc_build_try_epilogue,
1974         objc_build_catch_stmt, objc_build_catch_epilogue,
1975         objc_build_finally_prologue, objc_build_finally_epilogue): Update
1976         for if builder function changes.
1977
1978 2004-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
1979
1980         * config/s390/s390.c (struct machine_function):  New member
1981         last_restore_gpr.
1982         (s390_frame_info): Add BASE_USED and RETURN_ADDR_USED parameters.
1983         Do not modify machine->save_return_addr_p or regs_ever_live.
1984         Fill in machine->last_restore_gpr.
1985         (s390_optimize_prolog): Use s390_frame_info to compute registers
1986         to save/restore, remove duplicated code.
1987         (s390_arg_frame_offset): Use s390_frame_info to compute frame
1988         size, remove duplicated code.
1989         (s390_emit_prologue): Adapt s390_frame_info call.  Update
1990         machine->save_return_addr_p and regs_ever_live.
1991         (s390_emit_epilogue): Use machine->last_restore_gpr instead of
1992         machine->last_save_gpr.
1993
1994 2004-06-16  Richard Henderson  <rth@redhat.com>
1995
1996         * c-parse.in (if_stmt_locus): Remove.
1997         (if_prefix): Increment stmt_count; pass it to c_finish_if_cond.
1998         (select_or_iter_stmt): Move empty if warnings to c-typeck.c.
1999         * c-typeck.c (if_elt): Sort by expected size.  Rename locus to
2000         empty_locus.  Add stmt_count, saw_else.
2001         (c_begin_if_stmt): Push if_stack here.
2002         (c_finish_if_cond): Rename from c_expand_end_cond.  Record stmt_count.
2003         (c_finish_then, c_finish_else): Record empty_locus.
2004         (c_begin_else): Rename from c_expand_start_else.  Record stmt_count.
2005         (c_finish_if_stmt): Rename from c_expand_end_cond.  Warn for empty
2006         if or else body.
2007         * c-tree.h: Update prototypes.
2008
2009 2004-06-16  Steven Bosscher  <stevenb@suse.de>
2010
2011         * tree.h (PHI_CHAIN): New.
2012         * (tree-cfg.c, tree-dfa.c, tree-flow-inline.h, tree-into-ssa.c,
2013         tree-outof-ssa.c, tree-phinodes.c, tree-pretty-print.c,
2014         tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-dse.c,
2015         tree-ssa-live.c, tree-ssa-loop.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
2016         tree-ssa.c, tree-tailcall.c): Use PHI_CHAIN instead of TREE_CHAIN
2017         when traversing a list of PHI_NODEs.
2018
2019 2004-06-16  Bernardo Innocenti  <bernie@develer.com>
2020
2021         PR target/13292
2022         * config/m68k/m68k.h (TARGET_SWITCHES): Don't remove MASK_68040_ONLY
2023         on -msoft-float.
2024         (TARGET_FLT_EVAL_METHOD): Don't advertise extended precision for
2025         68040 and soft-float.
2026         * config/m68k/m68k.md (truncdfsf2): Explicitly require TARGET_68881
2027         in the TARGET_68040_ONLY case.
2028
2029 2004-06-16 Peter Barada  <peter@the-baradas.com>
2030
2031         * config/m68k/m68k.md (movsi_cfv4): New pattern to allow mov3q.
2032         (movsi_cf): Make named, don't match TARGET_CFV4.
2033         (pushexthisi_const): Use mov3q if possible.
2034         (extendhisi2, cvf4_extendhisi2): Split extendhisi2 pattern
2035         to special case mvz.w for ColdFire V4.
2036         (extendqisi2, cvf4_extendqisi2): Split extendhisi2 pattern
2037         to special case mvz.b for ColdFire V4.
2038         (udivmodhi4, divmodhi4): Use mvz to zero extend arg for
2039         divide.
2040         (iorsi3, xorsi3, andsi3): Use bitfield instructions if possible.
2041         * config/m68k/m68k.c(valid_mov3q_const):  New function.
2042         (const_method): SWAP is valid for ColdFire.
2043         (MULL_COST, MULW_COST): Fix costs for ColdFire V3/V4.
2044         * config/m68k/m68k-protos.h (valid_mov3q_const): Prototype here.
2045
2046 2004-06-16  Richard Henderson  <rth@redhat.com>
2047
2048         * c-common.def (CASE_LABEL): Remove.
2049         * c-common.c (c_add_case_label): Use CASE_LABEL, not CASE_LABEL_DECL.
2050         (match_case_to_enum_1): Likewise.
2051         * c-common.h (c_common_stmt_codes): Remove CASE_LABEL.
2052         * c-dump.c (c_dump_tree): Likewise.
2053         * c-gimplify.c (c_gimplify_stmt): Likewise.
2054         * c-pretty-print.c (pp_c_statement): Likewise.
2055         * c-semantics.c (build_case_label): Use CASE_LABEL_EXPR.
2056         * tree.h (CASE_LOW): Update commentary.
2057
2058 2004-06-16  Richard Henderson  <rth@redhat.com>
2059
2060         * c-common.def (ASM_STMT): Remove.
2061         * c-common.h (c_common_stmt_codes): Remove ASM_STMT.
2062         * c-dump.c (c_dump_tree): Likewise.
2063         * c-gimplify.c (c_gimplify_stmt): Likewise.
2064         * c-pretty-print.c (pp_c_statement): Likewise.
2065         * c-typeck.c (build_asm_expr): Use ASM_EXPR.
2066         * tree.h: Fix commentary.
2067
2068 2004-06-16  Richard Henderson  <rth@redhat.com>
2069
2070         * c-common.def (GOTO_STMT, LABEL_STMT): Remove.
2071         * c-common.c (c_add_case_label): Use LABEL_EXPR.
2072         * c-common.h (GOTO_FAKE_P, LABEL_STMT_LABEL): Remove.
2073         (c_common_stmt_codes): Remove GOTO_STMT, LABEL_STMT.
2074         * c-dump.c (c_dump_tree): Likewise.
2075         * c-gimplify.c (c_gimplify_stmt): Likewise.
2076         * c-pretty-print.c (pp_c_statement): Likewise.
2077         * c-parse.in (stmt): Use GOTO_EXPR.
2078         (label): Use LABEL_EXPR.
2079         * c-semantics.c (build_stmt): Set TREE_TYPE to void.
2080         * tree-inline.c (copy_body_r): Don't build empty BLOCKs.
2081
2082 2004-06-16  J"orn Rennecke <joern.rennecke@superh.com>
2083
2084         * cfgcleanup.c (try_simplify_condjump): Update test to make
2085         sure we have a conditional branch around am unconditional branch.
2086
2087 2004-06-16  Daniel Berlin  <dberlin@dberlin.org>
2088
2089         * tree-cfg.c (pass_split_crit_edge): Give it a name and a dump file.
2090
2091 2004-06-16  Dale Johannesen  <dalej@apple.com>
2092
2093         * loop.c (loop_givs_reduce): Avoid miscompilation of
2094         loops entered at bottom.
2095
2096 2004-06-16  J"orn Rennecke <joern.rennecke@superh.com>
2097
2098         * cfglayout.c (fixup_reorder_chain): Handle case where the
2099         destination of E_FALL is EXIT_BLOCK_PTR.
2100
2101 2004-06-16  Vladimir Makarov  <vmakarov@redhat.com>
2102
2103         PR target/15653
2104         * config/ia64/ia64.c (ia64_dfa_new_cycle): Do not insert nops
2105         after shifts before asm.
2106
2107 2004-06-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2108
2109         PR tree-optimization/15993
2110         * tree-ssa-dom.c (thread_across_edge): Do not thread edge if its
2111         destination is unchanged.
2112
2113 2004-06-16  Andreas Jaeger  <aj@suse.de>
2114
2115         * doc/install.texi (Configuration): Update description for
2116         --enable-version-specific-runtime-libs.
2117
2118 2004-06-16  Paolo Bonzini  <bonzini@gnu.org>
2119
2120         * doc/install.texi: boehm-gc now uses automake 1.8.5.
2121
2122 2004-06-16  Paolo Bonzini  <bonzini@gnu.org>
2123
2124         * toplev.h (rest_of_compilation): Adjust prototype.
2125
2126 2004-06-16  Paolo Bonzini  <bonzini@gnu.org>
2127
2128         * coverage.c: Remove argument to rest_of_compilation.
2129         * expr.c (execute_expand, set_save_expr_context, pass_expand): New.
2130         * passes.c (rest_of_compilation): Remove argument.
2131         (pass_rest_of_compilation): New.
2132         (rest_of_handle_final, rest_of_handle_delay_slots,
2133         rest_of_handle_stack_regs, rest_of_handle_variable_tracking
2134         rest_of_handle_machine_reorg, rest_of_handle_regrename
2135         rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_gcse2
2136         rest_of_handle_regmove, rest_of_handle_tracer
2137         rest_of_handle_if_conversion, rest_of_handle_if_after_combine
2138         rest_of_handle_web, rest_of_handle_branch_prob
2139         rest_of_handle_value_profile_transformations, rest_of_handle_cfg
2140         rest_of_handle_addressof, rest_of_handle_jump_bypass
2141         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2):
2142         Check that the two arguments are actually superfluous.
2143         * tree-optimize.c (register_dump_files): Add properties argument.
2144         Track validity of passes.  Only initialize dump files for
2145         tree-based passes.  Store the full set of provided passes in
2146         the pass.
2147         (init_tree_optimization_passes): Register pass_expand and
2148         pass_rest_of_compilation.
2149         (execute_one_pass): Do not track the presence of required properties
2150         here.  Set in_gimple_form.  Do not update current_properties.
2151         (current_properties): Remove.
2152         (set_save_expr_context): Remove.
2153         (tree_rest_of_compilation): Do not set in_gimple_form.  Do not
2154         expand to RTL here, and do not call rest_of_compilation.  Push
2155         GGC context even before gimplification.
2156         * tree-pass.h (PROP_rtl, PROP_trees): New flags.
2157         (pass_expand, pass_rest_of_compilation): Declare.
2158
2159 2004-06-15  Jeff Law  <law@redhat.com>
2160
2161         * fold-const.c (swap_tree_comparison): No longer static.
2162         (tree_swap_operands_p): Similarly.  Return true if both operands
2163         are SSA_NAMEs and the first operand has a higher version number than
2164         the second operand.
2165         * tree.h (swap_tree_comparison): Prototype.
2166         (tree_swap_operands_p): Prototype.
2167         * tree-ssa-operands.c (get_expr_operands): For commutative
2168         operators and relational comparisons, canonicalize the
2169         order of the operands.
2170
2171 2004-06-15  Richard Henderson  <rth@redhat.com>
2172
2173         * c-common.c (lang_gimplify_stmt): Remove next_p argument.
2174         (if_elt, if_stack, if_stack_space, c_expand_start_cond, c_finish_then,
2175         c_expand_end_cond, c_expand_start_else, c_finish_else, c_begin_if_stmt,
2176         c_begin_while_stmt, c_finish_while_stmt_cond): Move to c-typeck.c.
2177         (finish_fname_decls, fname_decl): Use statement_lists.
2178         (c_expand_expr_stmt): Don't set last_expr_type.
2179         (c_type_hash): Fix indentation.
2180         (c_safe_from_p): Don't follow TREE_CHAIN.
2181         (c_tree_chain_matters_p): Remove.
2182         * c-common.def (SCOPE_STMT): Remove.
2183         (CLEANUP_STMT): Redefine to contain its own body.
2184         * c-common.h (struct stmt_tree_s): Remove x_last_stmt,
2185         x_last_expr_type, x_last_expr_filename, x_scope_stmt_stack.
2186         Add x_cur_stmt_list.
2187         (last_tree, last_expr_type, last_expr_filename, RECHAIN_STMTS): Remove.
2188         (cur_stmt_list): New.
2189         (STATEMENT_LIST_STMT_EXPR): New.
2190         (SCOPE_BEGIN_P, SCOPE_END_P, SCOPE_STMT_BLOCK, SCOPE_NULLIFIED_P,
2191         SCOPE_NO_CLEANUPS_P, SCOPE_PARTIAL_P, NEW_FOR_SCOPE_P): Remove.
2192         (CLEANUP_BODY): New.
2193         (CLEANUP_DECL): Move to operand 2.
2194         (c_common_stmt_codes): Remove SCOPE_STMT.
2195         (COMPOUND_STMT_NO_SCOPE, COMPOUND_STMT_BODY_BLOCK): Remove.
2196         * c-decl.c (c_scope_stmt_stack, current_scope_stmt_stack): Remove.
2197         (c_push_function_context, c_pop_function_context): Don't save it.
2198         (finish_decl): Set TREE_USED on the decl for a cleanup.
2199         Use push_cleanup.
2200         (store_parm_decls): Use statement lists.
2201         (finish_function): Remove compstmt rule workaround.  Use statement
2202         lists.  Call finish_fname_decls after finalizing the body.
2203         (c_begin_compound_stmt): Move to c-typeck.c.
2204         * c-dump.c (c_dump_tree): Remove SCOPE_STMT.
2205         * c-gimplify.c (gimplify_cleanup_stmt, gimplify_cleanup_stmts): New.
2206         (c_genericize): Invoke them.
2207         (c_gimplify_stmt): Don't look through TREE_CHAIN.  Kill SCOPE_STMT.
2208         (c_build_bind_expr): Export.
2209         (gimplify_block, gimplify_cleanup): Remove.
2210         (gimplify_condition): Use gimplify_stmt.
2211         (gimplify_for_stmt): Remove FOR_INIT_STMT chaining hack.
2212         (gimplify_if_stmt): Remove recursion hack.
2213         (c_gimplify_expr): Remove STMT_EXPR handling.
2214         (stmt_expr_last_stmt, gimplify_stmt_expr): Remove.
2215         (is_last_stmt_of_scope): Remove.
2216         * c-lang.c (LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P): Remove.
2217         * c-mudflap.c (mflang_flush_calls): Use c_begin_compound_stmt,
2218         c_end_compound_stmt.
2219         * c-objc-common.c (build_cdtor): Likewise.
2220         * c-parse.in (primary): Use c_finish_stmt_expr.
2221         (push_scope, pop_scope): Remove.
2222         (c99_block_start, compstmt_start): Use c_begin_compound_stmt.
2223         (c99_block_end, compstmt): Use c_end_compound_stmt.
2224         (c99_block_lineno_labeled_stmt): Likewise.
2225         (compstmt_primary_start): Use c_begin_stmt_expr.
2226         (simple_if, select_or_iter_stmt): Update calls to stmt builders.
2227         (do_stmt_start): Fill in body directly.
2228         (lineno_stmt): Avoid setting lineno on constants.
2229         * c-pretty-print.c (pp_c_statement): Handle STATEMENT_LIST.
2230         Remove SCOPE_STMT.
2231         * c-semantics.c (begin_stmt_tree): Remove.
2232         (push_stmt_list, re_push_stmt_list, pop_stmt_list): New.
2233         (add_stmt): Use statement lists.
2234         (add_scope_stmt, finish_stmt_tree): Remove.
2235         (push_cleanup): New.
2236         * c-tree.h: Move some decls from c-common.h.
2237         * c-typeck.c (c_tree_expr_nonnegative_p): Simplify for statement lists.
2238         (do_case, c_finish_case): Likewise.
2239         (c_finish_then): Take body for then as argument.
2240         (c_finish_else): Similarly.
2241         (c_begin_for_stmt, c_finish_for_stmt_init, c_finish_for_stmt_cond,
2242         c_finish_for_stmt_incr, c_finish_for_stmt): New.
2243         (c_begin_stmt_expr, c_finish_stmt_expr): New.
2244         (c_begin_compound_stmt): Do scope management.
2245         (c_end_compound_stmt): New.
2246         * fold-const.c (tree_expr_nonnegative_p): Fix BIND_EXPR.
2247         * gimplify.c (voidify_wrapper_expr): Accept temporary argument.
2248         Look through exception handling constructs.
2249         (gimplify_bind_expr): Accept temporary argument.
2250         (gimplify_target_expr): Special case BIND_EXPR bodies.
2251         (gimplify_expr): Handle fallback == fb_none like a statement.
2252         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P): Kill.
2253         * langhooks.c (lhd_tree_inlining_tree_chain_matters_p): Remove.
2254         * langhooks.h (tree_chain_matters_p): Remove.
2255         * stub-objc.c (objc_clear_super_receiver): New.
2256         * tree-gimple.h (voidify_wrapper_expr): Update decl.
2257         (append_to_statement_list, append_to_statement_list_force): Move
2258         to tree-iterator.h.
2259         * tree-inline.c (expand_call_inline): Update call.
2260         (clone_body): Use statement lists.
2261         (walk_tree): Don't check tree_chain_matters_p.
2262         (copy_tree_r): Likewise.
2263         * tree-iterator.c (alloc_stmt_list): Clear lang bits.
2264         (tsi_link_before, tsi_link_after): Set TREE_SIDE_EFFECTS properly.
2265         * tree-iterator.h (append_to_statement_list,
2266         append_to_statement_list_force): Moved from tree-gimple.h.
2267         * tree-pretty-print.c (dump_generic_node): Clean up TARGET_EXPR dump.
2268         * objc/objc-act.c (build_module_descriptor): Use c_begin_compound_stmt.
2269         (objc_enter_block): Likewise.
2270         (objc_exit_block): Use c_end_compound_stmt.
2271         (objc_build_try_enter_fragment): Add #error and comment for
2272         rewriting for OBJCPLUS.
2273         (objc_build_extract_fragment, objc_build_try_epilogue,
2274         objc_build_catch_stmt, objc_build_finally_prologue,
2275         objc_build_finally_epilogue): Update for C statement builders.
2276         * objc/objc-lang.c (LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P):
2277         Remove.
2278
2279 2004-06-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2280
2281         * df.c (df_reg_clobber_gen): Removed.
2282         (df_bb_rd_local_compute, df_insn_refs_record, df_rd_local_compute):
2283         Make more effective for hard regs.
2284         * ra-build.c (livethrough_conflicts_bb): Check contains_call.
2285
2286 2004-06-15  Alexandre Oliva  <aoliva@redhat.com>
2287
2288         * c-pragma.h (c_lex_string_translate): Change type to int.
2289         * c-parse.in: Change all assignments of c_lex_string_translate
2290         to true and false to 1 and 0.
2291         * c-lex.c (c_lex_string_translate): Likewise.
2292         (lex_string): Convert string without translation in the -1
2293         case.
2294
2295 2004-06-15  Mark G. Adams  <mark.g.adams@sympatico.ca>
2296
2297         * convert.h: Add include guards
2298
2299 2004-06-15  Daniel Berlin  <dberlin@dberlin.org>
2300
2301         * tree-flow-inline.h: Document all functions.
2302
2303 2004-06-15  Daniel Berlin  <dberlin@dberlin.org>
2304
2305         * tree-flow-inline.h (stmt_ann): Remove use of is_essa_node.
2306         * tree-dfa.c (create_stmt_ann): Ditto.
2307         * tree-pretty-print.c (dump_generic_node): Remove E* node handling.
2308         * tree-inline.c (estimate_num_insns_1): Ditto.
2309         * tree.c (tree_size): Ditto.
2310         (make_node_stat): Ditto.
2311         (tree_node_structure): Ditto.
2312         (ephi_node_elt_check_failed): Remove.
2313         (is_essa_node): Ditto.
2314         * tree.def (EPHI_NODE): Ditto.
2315         (EEXIT_NODE): Ditto.
2316         (EUSE_NODE): Ditto.
2317         (EKILL_NODE): Ditto.
2318         * tree.h (EREF_NODE_CHECK): Remove.
2319         (EPHI_NODE_ELT_CHECK): Ditto.
2320         (struct tree_eref_common): Ditto.
2321         (struct tree_euse_node): Ditto.
2322         (struct ephi_arg_d): Ditto.
2323         (struct tree_ephi_node): Ditto.
2324         (ephi_node_elt_check_failed): Remove prototype.
2325         (is_essa_node): Ditto.
2326         (enum tree_node_structure_enum): Remove TS_E*_NODE.
2327         (union tree_node): Remove E*_NODE uses.
2328
2329 2004-06-15  Jerry Quinn  <jlquinn@optonline.net>
2330
2331         * alias.c (record_set, record_base_value, canon_rtx, get_addr,
2332         nonlocal_mentioned_p_1, init_alias_analysis): Use REG_P.
2333         * bt-load.c (find_btr_reference, insn_sets_btr_p, note_btr_set):
2334         Likewise.
2335         * builtins.c (expand_builtin_setjmp, expand_builtin_apply,
2336         expand_builtin_mathfn, expand_builtin_strlen, expand_builtin_memcmp,
2337         expand_builtin_strcmp, expand_builtin_strncmp,
2338         expand_builtin_frame_address): Likewise.
2339         * caller-save.c (mark_set_regs, add_stored_regs, mark_referenced_regs,
2340         insert_one_insn): Likewise.
2341         * calls.c (prepare_call_address, precompute_register_parameters,
2342         precompute_arguments, expand_call, emit_library_call_value_1): Likewise.
2343         * cfganal.c (flow_active_insn_p): Likewise.
2344         * combine.c (set_nonzero_bits_and_sign_copies, can_combine_p,
2345         combinable_i3pat, try_combine, find_split_point, COMBINE_RTX_EQUAL_P,
2346         subst, combine_simplify_rtx, simplify_if_then_else, simplify_set,
2347         make_extraction, recog_for_combine, gen_lowpart_for_combine,
2348         simplify_comparison, record_dead_and_set_regs_1,
2349         record_dead_and_set_regs, record_promoted_value,
2350         check_promoted_subreg, get_last_value_validate, get_last_value,
2351         reg_dead_at_p_1, reg_bitfield_target_p, distribute_notes,
2352         unmentioned_reg_p_1): Likewise.
2353         * conflict.c (mark_reg): Likewise.
2354         * cse.c (HASH, COST, COST_IN, approx_reg_cost_1, notreg_cost,
2355         mention_regs, insert_regs, lookup, lookup_for_remove, insert,
2356         merge_equiv_classes, flush_hash_table, invalidate,
2357         remove_invalid_refs, remove_invalid_subreg_refs, rehash_using_reg,
2358         invalidate_for_call, use_related_value, canon_hash, exp_equiv_p,
2359         cse_rtx_varies_p, canon_reg, find_best_addr, fold_rtx, equiv_constant,
2360         record_jump_cond, cse_insn, addr_affects_sp_p,
2361         invalidate_from_clobbers, cse_process_notes, cse_around_loop,
2362         cse_set_around_loop, count_reg_usage, set_live_p, cse_change_cc_mode,
2363         cse_cc_succs, cse_condition_code_reg): Likewise.
2364         * cselib.c (cselib_reg_set_mode, rtx_equal_for_cselib_p,
2365         cselib_lookup, cselib_invalidate_regno, cselib_invalidate_rtx,
2366         cselib_record_set, cselib_record_sets): Likewise.
2367         * dbxout.c (dbxout_symbol_location, dbxout_parms, dbxout_reg_parms,
2368         dbxout_block): Likewise.
2369         * df.c (df_ref_record, df_def_record_1, df_uses_record): Likewise.
2370         * dojump.c (do_jump): Likewise.
2371         * dwarf2out.c (dwarf2out_frame_debug_expr, is_pseudo_reg,
2372         is_based_loc, rtl_for_decl_location): Likewise.
2373         * emit-rtl.c (set_reg_attrs_for_parm, set_decl_rtl,
2374         set_decl_incoming_rtl, mark_user_reg): Likewise.
2375         * explow.c (copy_all_regs, copy_all_regs, memory_address, force_reg,
2376         copy_to_suggested_reg, allocate_dynamic_stack_space,
2377         probe_stack_range, hard_function_value): Likewise.
2378         * expmed.c (store_bit_field, store_fixed_bit_field,
2379         store_split_bit_field, extract_bit_field, extract_fixed_bit_field,
2380         extract_split_bit_field, expand_divmod, emit_store_flag_force):
2381         Likewise.
2382         * expr.c (convert_move, convert_modes,
2383         block_move_libcall_safe_for_call_parm, emit_group_load, use_reg,
2384         use_group_regs, emit_move_insn, emit_move_insn_1,
2385         compress_float_constant, push_block, emit_single_push_insn,
2386         emit_push_insn, get_subtarget, expand_assignment, store_expr,
2387         store_constructor, store_field, force_operand, safe_from_p,
2388         expand_expr_real_1, expand_increment, do_store_flag, do_tablejump):
2389         Likewise.
2390         * final.c (profile_function, final_scan_insn, alter_subreg,
2391         get_mem_expr_from_op, output_asm_operand_names, output_operand,
2392         only_leaf_regs_used, leaf_renumber_regs_insn): Likewise.
2393         * flow.c (verify_wide_reg_1, mark_regs_live_at_end,
2394         find_regno_partial, propagate_one_insn, init_propagate_block_info,
2395         insn_dead_p, libcall_dead_p, mark_set_1, not_reg_cond,
2396         attempt_auto_inc, find_auto_inc, mark_used_regs,
2397         count_or_remove_death_notes_bb): Likewise.
2398         * function.c (find_temp_slot_from_address, update_temp_slot_address,
2399         preserve_temp_slots, put_var_into_stack, fixup_var_refs_insn,
2400         fixup_var_refs_1, fixup_stack_1, optimize_bit_field, flush_addressof,
2401         put_addressof_into_stack, purge_addressof_1, insns_for_mem_walk,
2402         purge_single_hard_subreg_set, instantiate_decl,
2403         instantiate_virtual_regs_1, aggregate_value_p, assign_parms,
2404         promoted_input_arg, setjmp_vars_warning, setjmp_args_warning,
2405         setjmp_protect, setjmp_protect_args, fix_lexical_addr,
2406         expand_function_start, diddle_return_value, clobber_return_register,
2407         expand_function_end, keep_stack_depressed, handle_epilogue_set,
2408         update_epilogue_consts): Likewise.
2409         * genemit.c (gen_exp, gen_insn): Likewise.
2410         * genrecog.c (make_insn_sequence): Likewise.
2411         * global.c (global_conflicts, expand_preferences, mark_reg_store,
2412         mark_reg_conflicts, set_preference, reg_becomes_live,
2413         build_insn_chain, mark_reg_change): Likewise.
2414         * haifa_sched.c (CONST_BASED_ADDRESS_P, find_set_reg_weight):
2415         Likewise.
2416         * ifcvt.c (noce_try_abs, noce_get_condition, noce_process_if_block):
2417         Likewise.
2418         * integrate.c (copy_rtx_and_substitute, try_constants,
2419         subst_constants, mark_stores, allocate_initial_values): Likewise.
2420         * jump.c (reversed_comparison_code_parts, delete_prior_computation,
2421         delete_computation, rtx_renumbered_equal_p, true_regnum,
2422         reg_or_subregno): Likewise.
2423         * lcm.c (reg_dies, reg_becomes_live): Likewise.
2424         * local-alloc.c (validate_equiv_mem_from_store, validate_equiv_mem,
2425         update_equiv_regs, no_equiv, block_alloc, combine_regs, reg_is_set,
2426         wipe_dead_reg, no_conflict_p): Likewise.
2427         * loop-iv.c (simple_reg_p, simple_set_p, kill_sets,
2428         iv_get_reaching_def, iv_analyze_biv, altered_reg_used, mark_altered,
2429         simple_rhs_p, simplify_using_assignment, implies_p): Likewise.
2430         * loop.c (scan_loop, combine_movables, rtx_equal_for_loop_p,
2431         move_movables, note_set_pseudo_multiple_uses, consec_sets_invariant_p,
2432         find_single_use_in_loop, count_one_set, loop_bivs_init_find,
2433         loop_givs_rescan, check_insn_for_bivs, check_insn_for_givs,
2434         valid_initial_value_p, simplify_giv_expr, consec_sets_giv,
2435         loop_regs_update, check_dbra_loop, maybe_eliminate_biv,
2436         maybe_eliminate_biv_1, record_initial, update_reg_last_use,
2437         canonicalize_condition, loop_regs_scan, load_mems, try_copy_prop,
2438         try_swap_copy_prop): Likewise.
2439         * optabs.c (expand_binop, expand_vector_binop, expand_vector_unop,
2440         expand_abs, emit_no_conflict_block, emit_libcall_block, expand_float):
2441         Likewise.
2442         * postreload.c (reload_cse_simplify, reload_cse_simplify_set,
2443         reload_cse_simplify_operands, reload_combine,
2444         reload_combine_note_store, reload_combine_note_use,
2445         reload_cse_move2add, move2add_note_store): Likewise.
2446         * print-rtl.c (print_rtx): Likewise.
2447         * ra-build.c (copy_insn_p, remember_move, init_one_web_common,
2448         contains_pseudo, handle_asm_insn): Likewise.
2449         * ra-debug.c (ra_print_rtx_object, dump_constraints,
2450         dump_static_insn_cost): Likewise.
2451         * ra-rewrite.c (slots_overlap_p, emit_colors,
2452         remove_suspicious_death_notes): Likewise.
2453         * recog.c (validate_replace_rtx_1, find_single_use_1, find_single_use,
2454         register_operand, scratch_operand, nonmemory_operand,
2455         constrain_operands): Likewise.
2456         * reg-stack (check_asm_stack_operands, remove_regno_note,
2457         emit_swap_insn, swap_rtx_condition, subst_stack_regs_pat,
2458         subst_asm_stack_regs): Likewise.
2459         * regclass.c (scan_one_insn, record_reg_classes, copy_cost,
2460         record_address_regs, reg_scan_mark_refs): Likewise.
2461         * regmove.c (discover_flags_reg, replacement_quality,
2462         copy_src_to_dest, reg_is_remote_constant_p, regmove_optimize,
2463         fixup_match_1): Likewise.
2464         * regrename.c (note_sets, clear_dead_regs, build_def_use, kill_value,
2465         kill_set_value, copyprop_hardreg_forward_1): Likewise.
2466         * reload.c (MATCHES, push_secondary_reload, find_reusable_reload,
2467         reload_inner_reg_of_subreg, can_reload_into, push_reload,
2468         combine_reloads, find_dummy_reload, hard_reg_set_here_p,
2469         operands_match_p, decompose, find_reloads, find_reloads_toplev,
2470         find_reloads_address, subst_indexed_address, find_reloads_address_1,
2471         find_reloads_subreg_address, find_replacement,
2472         refers_to_regno_for_reload_p, reg_overlap_mentioned_for_reload_p,
2473         refers_to_mem_for_reload_p, find_equiv_reg, regno_clobbered_p): Likewise.
2474         * reload1.c (replace_pseudos_in, reload, calculate_needs_all_insns,
2475         find_reg, delete_dead_insn, alter_reg, eliminate_regs,
2476         elimination_effects, eliminate_regs_in_insn, scan_paradoxical_subregs,
2477         forget_old_reloads_1, reload_reg_free_for_value_p, choose_reload_regs,
2478         emit_input_reload_insns, emit_output_reload_insns, do_input_reload,
2479         do_output_reload, emit_reload_insns, gen_reload,
2480         delete_address_reloads_1, inc_for_reload): Likewise.
2481         * reorg.c (update_reg_dead_notes, fix_reg_dead_note,
2482         update_reg_unused_notes, fill_slots_from_thread): Likewise.
2483         * resource.c (update_live_status, mark_referenced_resources,
2484         mark_set_resources, mark_target_live_regs): Likewise.
2485         * rtlanal.c (nonzero_address_p, get_jump_table_offset,
2486         global_reg_mentioned_p_1, reg_mentioned_p, reg_referenced_p,
2487         reg_set_p, set_noop_p, find_last_value, refers_to_regno_p,
2488         note_stores, dead_or_set_p, dead_or_set_regno_p, find_regno_note,
2489         find_reg_fusage, find_regno_fusage, replace_regs, regno_use_in,
2490         parms_set, find_first_parameter_load, keep_with_call_p,
2491         hoist_test_store, hoist_update_store, address_cost, nonzero_bits1,
2492         num_sign_bit_copies1): Likewise.
2493         * rtlhooks.c (gen_lowpart_general): Likewise.
2494         * sched-deps.c (deps_may_trap_p, sched_analyze_1, sched_analyze_insn,
2495         sched_analyze): Likewise.
2496         * sched-rgn.c (check_live_1, update_live_1, sets_likely_spilled_1):
2497         Likewise.
2498         * sdbout.c (sdbout_symbol, sdbout_parms, sdbout_reg_parms): Likewise.
2499         * simplify-rtx.c (simplify_replace_rtx, simplify_unary_operation,
2500         simplify_binary_operation, simplify_const_relational_operation,
2501         simplify_subreg): Likewise.
2502         * stmt.c (decl_conflicts_with_clobbers_p, expand_asm_operands,
2503         expand_end_stmt_expr, expand_return, expand_decl,
2504         expand_anon_union_decl): Likewise.
2505         * unroll.c (precondition_loop_p, calculate_giv_inc, copy_loop_body,
2506         find_splittable_regs, find_splittable_givs, find_common_reg_term,
2507         loop_iterations): Likewise.
2508         * var-tracking.c (variable_union, variable_part_different_p,
2509         variable_different_p, count_uses, add_uses, add_stores,
2510         compute_bb_dataflow, set_variable_part, delete_variable_part,
2511         emit_notes_in_bb, vt_get_decl_and_offset, vt_add_function_parameters):
2512         Likewise.
2513         * varasm.c (assemble_variable): Likewise.
2514
2515 2004-06-15  Chris Demetriou  <cgd@broadcom.com>
2516
2517         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove
2518         definition.
2519         * config/mips/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove
2520         #undef and #if 0'd definition.
2521
2522 2004-06-15  J"orn Rennecke <joern.rennecke@superh.com>
2523
2524         * combine.c (distribute_notes): Comment typo fix.
2525
2526 2004-06-15  Roger Sayle  <roger@eyesopen.com>
2527
2528         * expmed.c (synth_mult): Mask bits of the multiplier to the
2529         machine mode of the multiplication.  Don't consider shifts
2530         by more than (or equal to) the width of the operation's mode.
2531
2532 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
2533
2534         * doc/install.texi: Yet another update for autoconf
2535         and automake versions.
2536
2537 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
2538
2539         * function.h (struct function): Remove cannot_inline field.
2540         (current_function_cannot_inline): Remove.
2541         * passes.c (rest_of_compilation): Reset DECL_DEFER_OUTPUT.
2542         Simplify conditionals to ignore warn_return_type.
2543         * tree-optimize.c (tree_rest_of_compilation): Do not reset
2544         DECL_DEFER_OUTPUT.
2545         * objc/objc-act.c (build_module_descriptor, finish_method_def):
2546         Do not set current_function_cannot_inline.
2547
2548 2004-06-15  J"orn Rennecke <joern.rennecke@superh.com>
2549
2550         * cfglayout.c (fixup_reorder_chain): Handle case where the
2551         destination of E_TAKEN is EXIT_BLOCK_PTR.
2552
2553 2004-06-15  Diego Novillo  <dnovillo@redhat.com>
2554
2555         * tree-ssa-copy.c (cprop_into_successor_phis): Fix typo.
2556
2557 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
2558
2559         * fold-const.c (operand_equal_p): Update comment.
2560
2561 2004-06-15  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
2562
2563         * config/m32r/m32r.h (RETURN_ADDR_RTX): Define.
2564         (INCOMING_RETURN_ADDR_RTX): Define.
2565         * config/m32r/m32r-protos.h (m32r_return_addr): Added.
2566         * config/m32r/m32r.c (m32r_exppand_prologue): Changed for
2567         __builtin_return_address(0).
2568         (m32r_return_addr): Added for __builtin_return_address(0).
2569         (m32r_reload_lr): Ditto.
2570
2571         * longlong.h: Fix macros for m32r add_ssaaaa and sub_ddmmss.
2572
2573 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
2574
2575         * doc/install.texi (Prerequisites): Update libbanshee,
2576         fastjar, libcpp, libjava/libltdl entries to
2577         automake 1.8.5.
2578
2579 2004-06-15  Eric Botcazou  <ebotcazou@act-europe.fr>
2580             Olivier Hainque  <hainque@act-europe.fr>
2581
2582         * function.c (fixup_var_refs): Also adjust the start of sequence
2583         after fixing up the insns.
2584
2585 2004-06-15  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
2586
2587         * gccbug.in: Update optimization -> tree-optimization/rtl-optimization.
2588
2589 2004-06-14  Benjamin Kosnik  <bkoz@redhat.com>
2590
2591         * doc/install.texi (Prerequisites): Update libstdc++ entry to
2592         automake 1.8.5.
2593
2594 2004-06-14  Eric Christopher  <echristo@redhat.com>
2595
2596         * config/s390/s390.h (TARGET_SWITCHES): Change -mtpf (-mno-tpf)
2597         to -mtpf-trace (-mno-tpf-trace).
2598         * doc/invoke.texi (S/390 and zSeries Options): Add tpf option
2599         documentation.
2600
2601 2004-06-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
2602
2603         * real.c: Fix bit count in head comment.
2604
2605 2004-06-14  Jeff Law  <law@redhat.com>
2606
2607         * tree-ssa.c (kill_redundant_phi_nodes): More correctly handle
2608         PHIs where the destination or an argument is marked with
2609         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2610
2611 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
2612
2613         PR middle-end/15945
2614         * simplify-rtx.c (simplify_binary_operation): Don't optimize out
2615         Inf + -Inf, Inf - Inf, Inf / Inf and 0 * Inf if flag_trapping_math.
2616
2617 2004-06-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2618
2619         * opts.sh (var_args): Fix regexp.
2620
2621 2004-06-14  Jakub Jelinek  <jakub@redhat.com>
2622
2623         PR target/15178
2624         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
2625
2626 2004-06-14  Paul Brook  <paul@codesourcery.com>
2627
2628         * dwarf2out.c (output_call_frame_info): Support dwarf3 cie entries.
2629
2630 2004-06-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2631
2632         * Makefile.in (FLAGS_H): New.
2633         (flags.h): Replace by FLAGS_H.
2634         * c.opt: Document Var, VarExists, Init and Report attributes.
2635         * common.opt: Fill the values of the attributes.
2636         * diagnostic.c (flag_fatal_errors): Do not define.
2637         * except.c (flag_non_call_exceptions): Do not define.
2638         * flags.h: Include options.h.  Remove declarations conflicting with
2639         the automatically defined ones.
2640         * opts.c: Remove automatically defined variables.
2641         (handle_option): Perform default initialization.
2642         (common_handle_option): Do not handle options covered by the
2643         default initialization.
2644         * opts.h (struct cl_option): Add flag_var, has_set_value and set_value
2645         fields.
2646         (CL_REPORT): New.
2647         * opts.sh: Generate variable declarations, handle CL_REPORT.
2648         * toplev.c: Remove automatically defined variables.
2649         (f_options): Removed.
2650         (print_switch_values): Use cl_options instead of f_options.
2651         * toplev.h (version_flag): Declaration removed.
2652
2653 2004-06-14  Ian Lance Taylor  <ian@wasabisystems.com>
2654
2655         * config/sparc/sparc.h: Correct comment about availability of
2656         little endian option.
2657
2658         * config.gcc: Remove sparc64-*-aout*.
2659         * config/sparc/sparc.c (sparc_aout_select_rtx_section): Remove.
2660         * config/sparc/sp64-aout.h: Remove.
2661         * config/sparc/aout.h: Remove.
2662
2663 2004-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
2664
2665         * config/s390/s390.c: Include "tree-gimple.h".
2666         (s390_gimplify_va_arg): New function.
2667         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2668         (s390_va_arg): Remove.
2669         * config/s390/s390-protos.h (s390_va_arg): Remove.
2670         * config/s390/s390.h (EXPAND_BUILTIN_VA_ARG): Call abort ().
2671
2672 2004-06-14  J"orn Rennecke <joern.rennecke@superh.com>
2673
2674         * basic-block.h (could_fall_through): Declare.
2675         * cfganal.c (can_fallthru): Succeed if the target is EXIT_BLOCK_PTR.
2676         Fail if the source already has a fallthrough edge to the exit
2677         block pointer.
2678         (could_fall_through): New function.
2679         * cfgbuild.c (make_edges): Check if we already have a fallthrough
2680         edge to the exit block pointer.
2681         * cfglayout.c (fixup_fallthru_exit_predecessor): Check that it is
2682         not called before reload has completed.
2683         Handle special case of first block having a fall-through exit edge.
2684         (cfg_layout_finalize): Don't call it before reload or if we have
2685         rtl epilogues.
2686         (fixup_reorder_chain): A fall through to the exit block does not
2687         require the block to come last.  Add sanity checks.
2688         * cfgrtl.c (rtl_split_edge): Add special handling of fall through
2689         edges to the exit block.
2690         * function.c (cfglayout.h): #include.
2691         (thread_prologue_and_epilogue_insns): If we have neither return nor
2692         epilogue, but a fall through to the exit block from mid-function,
2693         force a non-fall-through exit.
2694         * Makefile.in (function.o): Depend on CFGLAYOUT_H.
2695
2696 2004-06-14  Alan Modra  <amodra@bigpond.net.au>
2697
2698         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Handle -mpowerpc64 and -mcpu
2699         for power5 and rs64a.  Correct condition for default.  Correct power3,
2700         620, 630, 7400, 7450, G4, 970 and G5 -mcpu entries.  Add -many.
2701
2702 2004-06-13  Steven Bosscher <stevenb@suse.de>
2703
2704         * gcse.c (hash_scan_set, hash_scan_insn, mark_set, mark_oprs_set):
2705         Revert previous change, don't use CALL_P.
2706
2707 2004-06-13  Jason Merrill  <jason@redhat.com>
2708
2709         * tree.h: Move std_gimplify_va_arg_expr protoype here.
2710         * tree-gimple.h: From here.
2711
2712 2004-06-13  Daniel Berlin  <dberlin@dberlin.org>
2713
2714         Fix PR tree-optimization/15979
2715         Fix PR tree-optimization/15981
2716         * tree-ssa-pre.c (insert_aux): Fix faulty logic so that we don't
2717         try to insert values undefined along some path.
2718
2719 2004-06-13  Daniel Berlin  <dberlin@dberlin.org>
2720
2721         * tree-ssa-pre.c (add_to_value): is_gimple_min_invariant things
2722         are available everywhere too.
2723
2724 2004-06-13  Andrew Pinski  <pinskia@physics.uc.edu>
2725
2726         * fold-const.c (fold_checksum_tree <case 't'>): Only
2727         look at TREE_VALUES if the EXPR is an ENUMERAL_TYPE.
2728         Only look at TYPE_MIN_VALUE and TYPE_MAX_VALUE if
2729         EXPR is an INTEGERAL_TYPE or a scalar float type.
2730
2731 2004-06-13  Diego Novillo  <dnovillo@redhat.com>
2732
2733         * tree-sra.c (tree_sra): Update documentation.
2734
2735 2004-06-13  Joseph S. Myers  <jsm@polyomino.org.uk>
2736
2737         * c-typeck.c (comptypes, tagged_types_tu_compatible_p,
2738         function_types_compatible_p, type_lists_compatible_p): Remove
2739         flags parameter.
2740         * c-tree.h (comptypes): Likewise.
2741         (COMPARE_STRICT): Remove.
2742         * c-decl.c, c-lang.c, c-parse.in, c-typeck.c, objc/objc-act.c: All
2743         callers changed.
2744
2745 2004-06-13  Eric Christopher  <echristo@redhat.com>
2746
2747         * c-decl.c (diagnose_mismatched_decls): Improve error message.
2748         Remove unused code.
2749         * c-typeck.c (comptypes): Add location in standard we're checking.
2750
2751 2004-06-13  Kaz Kojima  <kkojima@gcc.gnu.org>
2752
2753         * config/sh/libgcc-std.ver: Add __unorddf2 and __unordsf2 with
2754         version 3.3.4.
2755
2756 2004-06-12  Roger Sayle  <roger@eyesopen.com>
2757
2758         * expmed.c (shift_cost, shiftadd_cost, shiftsub_cost): Additionally
2759         index by machine mode.
2760         (init_expmed): Initialize shift_cost, shiftadd_cost and shiftsub_cost
2761         tables inside the loop over machine modes.
2762         (synth_mult, expand_mult_highpart_optab, expand_mult_highpart,
2763         expand_divmod): Index shift*_cost by the appropriate machine mode.
2764
2765 2004-06-12  Eric Christopher  <echristo@redhat.com>
2766
2767         * config/s390/s390.h: Rename TARGET_TPF to TARGET_TPF_PROFILING.
2768         * config/s390/s390.md: Ditto.
2769         * config/s390/s390.c: Ditto.
2770         (s390_frame_info): Conditionalize frame and setup info on
2771         TARGET_TPF_PROFILING.
2772         (s390_arg_frame_offset): Ditto.
2773
2774 2004-06-12  Roger Sayle  <roger@eyesopen.com>
2775
2776         * fold-const.c (omit_two_operands): New function.
2777         * tree.h (omit_two_operands): Prototype here.
2778         * builtins.c (fold_builtin_unordered_cmp): New function to lower
2779         C99 unordered comparison builtins to the appropriate tree nodes.
2780         (fold_builtin_1): Use fold_builtin_unordered_cmp to lower
2781         BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
2782         BUILT_IN_ISLESSEQUAL and BUILT_IN_ISLESSGREATER.  Manually lower
2783         BUILT_IN_ISUNORDERED comparisons to an UNORDERED_EXPR tree node.
2784         (simplify_builtin_memcmp, simplify_builtin_strncmp,
2785         simplify_builtin_strncat, simplify_builtin_strspn): Use the new
2786         omit_two_operands function to build the required COMPOUND_EXPRs.
2787
2788 2004-06-12  Steven Bosscher <stevenb@suse.de>,
2789             Andreas Jaeger  <aj@suse.de>
2790
2791         * gcse.c (record_set_info): Use predicates like REG_P.
2792         (mems_conflict_for_gcse_p): Likewise.
2793         (load_killed_in_block_p): Likewise.
2794         (hash_expr_1): Likewise.
2795         (insert_set_in_table): Likewise.
2796         (gcse_constant_p): Likewise.
2797         (hash_scan_set): Likewise.
2798         (hash_scan_insn): Likewise.
2799         (canon_list_insert): Likewise.
2800         (record_last_mem_set_info): Likewise.
2801         (record_last_set_info): Likewise.
2802         (compute_hash_table_work): Likewise.
2803         (mark_set): Likewise.
2804         (mark_clobber): Likewise.
2805         (mark_oprs_set): Likewise.
2806         (compute_transp): Likewise.
2807         (find_avail_set): Likewise.
2808         (cprop_insn): Likewise.
2809         (do_local_cprop): Likewise.
2810         (cprop): Likewise.
2811         (find_implicit_sets): Likewise.
2812         (find_bypass_set): Likewise.
2813         (bypass_conditional_jumps): Likewise.
2814         (insert_insn_end_bb): Likewise.
2815         (pre_insert_copy_insn): Likewise.
2816         (compute_transpout): Likewise.
2817         (next_ls_expr): Likewise.
2818         (invalidate_any_buried_refs): Likewise.
2819         (compute_ld_motion_mems): Likewise.
2820         (reg_set_info): Likewise.
2821         (reg_clear_last_set): Likewise.
2822         (find_moveable_store): Likewise.
2823         (compute_store_table): Likewise.
2824         (find_loads): Likewise.
2825         (store_killed_in_insn): Likewise.
2826         (insert_insn_start_bb): Likewise.
2827         (reg_set_between_after_reload_p): Likewise.
2828         (reg_used_between_after_reload_p): Likewise.
2829         (is_jump_table_basic_block): Likewise.
2830         (gcse_after_reload): Likewise.
2831         (hash_scan_set_after_reload): Likewise.
2832         (compute_hash_table_after_reload): Likewise.
2833
2834 2004-06-12  Steven Bosscher  <stevenb@suse.de>
2835
2836         * rtl.h (MEM_P, NONJUMP_INSN_P, CALL_INSN_P): New predicates.
2837         (INSN_P): Don't look at the rtx code class, just explicitly
2838         check for one of the tree RTX_INSN codes.
2839
2840 2004-06-11  Zack Weinberg  <zack@codesourcery.com>
2841
2842         * c-typeck.c (default_function_array_conversion): Use
2843         build_pointer_type not TYPE_POINTER_TO.
2844
2845 2004-06-11  Zack Weinberg  <zack@codesourcery.com>
2846
2847         * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
2848         * configure, config.in: Regenerate.
2849         * system.h: Unconditionally define bool as unsigned char,
2850         BOOL_BITFIELD as unsigned int.
2851         * domwalk.h: Use BOOL_BITFIELD.
2852
2853 2004-06-12  Andreas Jaeger  <aj@suse.de>
2854
2855         * libgcc-std.ver: Add __unorddf2 and __unordsf2 with version 3.3.4.
2856         * libgcc-darwin.ver: Likewise.
2857
2858 2004-06-12  Peter Jakubek  <peter@laseranimation.com>
2859
2860         * reload.c (find_reloads): Force reload for pseudo registers on big
2861         endian machines.
2862
2863 2004-06-11  Steven Bosscher <stevenb@suse.de>
2864
2865         * tree-ssa-dce.c (mark_control_dependent_edges_necessary):
2866         Don't try to mark anything control dependent on the entry or
2867         exit blocks.
2868
2869 2004-06-11  Daniel Berlin  <dberlin@dberlin.org>
2870
2871         Fix Bug 15899
2872         Fix Bug 15460
2873         * tree.h (SSA_NAME_VALUE): New macro.
2874         (struct tree_ssa_name): Add value_handle member.
2875         * tree-ssa-pre.c: Replaced.
2876         * tree-flow.h (tree_ann_type): Add CST_ANN, EXPR_ANN.
2877         (struct cst_ann_d): New.
2878         (struct expr_ann_d): New.
2879         (union tree_ann_d): Add cst_ann, expr_ann.
2880         * tree-dfa.c (create_cst_ann): New function.
2881         (create_expr_ann): Ditto.
2882         * tree-flow-inline.h (cst_ann): New function.
2883         (expr_ann): Ditto.
2884         (get_cst_ann): Ditto.
2885         (get_expr_ann): Ditto..
2886
2887 2004-06-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2888
2889         * pa.c (pa_hpux_init_libfunc): Add support for unord_optab.
2890         * pa/quadlib.c (enum qfcmp_magic): Define magic values for call to
2891         _U_Qfcmp library function.
2892         (_U_Qfltgt, _U_Qfunle, _U_Qfunlt, _U_Qfunge, _U_Qfungt, _U_Qfuneq,
2893         _U_Qfunord, _U_Qford): Add more TFmode builtin compare functions.
2894
2895         * pa.c (legitimize_pic_address): Use UNSPEC_DLTIND14R to identify
2896         unspec used for loading address from DLT.
2897         * pa.md: Define constants for the uses of UNSPEC and UNSPEC_VOLATILE.
2898         Change all users of UNSPEC and UNSPEC_VOLATILE to use new constants.
2899         Don't use short code sequence when loading the address of a nonlocal
2900         label.
2901         (nonlocal_goto): New expander.
2902         (indirect_goto): New jump pattern for nonlocal gotos.
2903         (short_jump): Remove extra whitespace.
2904         (builtin_longjmp): Clobber memory and hard frame pointer.  Restore
2905         frame pointer via virtual_stack_vars_rtx when we have a nonlocal goto
2906         pattern.
2907
2908 2004-06-11  Roger Sayle  <roger@eyesopen.com>
2909
2910         * expmed.c (synth_mult): Add an additional MODE argument for the
2911         machine mode of the multiplication.  Update recursive calls.  Use
2912         mode instead of word_mode for determining operation costs.
2913         (choose_mult_variant): Update calls to synth_mult with "mode".
2914
2915 2004-06-11  Richard Henderson  <rth@redhat.com>
2916
2917         * tree-ssa-operands.c (get_stmt_operands): Clear makes_aliased_loads
2918         and makes_aliased_stores.
2919
2920 2004-06-11  Andrew Pinski  <pinskia@physics.uc.edu>
2921
2922         * doc/install.text (--enable-shared): Fix typo.
2923
2924 2004-06-11  Richard Henderson  <rth@redhat.com>
2925
2926         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Remove post_p
2927         argument.  Use internal post for call to gimplify_expr.  Tidy
2928         rounded type size computation.
2929         (alpha_gimplify_va_arg): Use get_formal_tmp_var and
2930         get_initialized_tmp_var.
2931
2932 2004-06-11  Andrew Pinski  <pinskia@physics.uc.edu>
2933
2934         * doc/install.texi (--enable-shared): Update libobjc's shared library
2935         status.  Remove reference to libf2c.
2936
2937 2004-06-11  Jason Merrill  <jason@redhat.com>
2938
2939         * config/i386/i386.h (EXPAND_BUILTIN_VA_ARG): Just abort.
2940         * config/i386/i386.c (ix86_va_arg): Remove.
2941         * config/rs6000/rs6000.h (EXPAND_BUILTIN_VA_ARG): Just abort.
2942         * config/rs6000/rs6000.c (rs6000_va_arg): Remove.
2943         * config/alpha/alpha.h (EXPAND_BUILTIN_VA_ARG): Just abort.
2944         * config/alpha/alpha.c (alpha_va_arg): Remove.
2945         * config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Just abort.
2946         * config/sparc/sparc.c (sparc_va_arg): Remove.
2947
2948         * tree-ssa-operands.c (get_stmt_operands): Use a V_MAY_DEF if the
2949         assignment might throw.
2950         * tree-eh.c (tree_could_throw_p): Support non-call exceptions in
2951         expressions.
2952
2953 2004-06-11  J"orn Rennecke <joern.rennecke@superh.com>
2954
2955         PR 15886:
2956         * sh.h (ALLOCATE_INITIAL_VALUE): Use return_address_pointer_rtx.
2957
2958 2004-06-11  Joseph S. Myers  <jsm@polyomino.org.uk>
2959
2960         * doc/install.texi (Prerequisites): Update documentation of
2961         required versions of autoconf and automake.  Remove mention of
2962         libf2c.
2963
2964 2004-06-11  Jason Merrill  <jason@redhat.com>
2965
2966         * config/sparc/sparc.c (sparc_gimplify_va_arg): New fn.
2967         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2968
2969 2004-06-11  Jerry Quinn  <jlquinn@optonline.net>
2970
2971         * typeclass.h: Add GPL plus exception license.  Add include
2972         guard.
2973
2974 2004-06-10  Jason Merrill  <jason@redhat.com>
2975
2976         * gimplify.c (gimplify_modify_expr): Don't force a temporary
2977         of an aggregate_value_p type.
2978
2979 2004-06-10  Jeff Law  <law@redhat.com>
2980
2981         * fold-const.c (fold_inf_compare): Avoid creating non-gimple
2982         code when we are in gimple form.
2983
2984 2004-06-10  Diego Novillo  <dnovillo@redhat.com>
2985
2986         * Makefile.in (tree-ssanames.o): Depend on TREE_FLOW_H.
2987         * tree-flow.h (ssa_names, num_ssa_names, ssa_name): Declare.
2988         (highest_ssa_version): Remove.
2989         * tree-outof-ssa.c (new_temp_expr_table): Replace
2990         highest_ssa_version with num_ssa_names.
2991         (dump_replaceable_exprs): Likewise.
2992         (rewrite_vars_out_of_ssa): Likewise.
2993         * tree-ssa-ccp.c (initialize): Likewise
2994         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
2995         * tree-ssa-dce.c (tree_dce_init): Likewise.
2996         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2997         * tree-ssa-live.c (create_ssa_var_map): Likewise.
2998         (dump_var_map): Likewise.
2999         * tree-ssa.c (verify_ssa): Likewise.
3000         (kill_redundant_phi_nodes): Likewise.
3001         Do not build a local array of SSA_NAMEs.  Use the ssa_names table.
3002         * tree-ssanames.c: Include tree-flow.h
3003         (ssa_names): New varray.
3004         (init_ssa_names): Initialize ssa_names.
3005         Reserve the first slot of the ssa_names table.
3006         (make_ssa_name): Push the newly created SSA_NAME into ssa_names.
3007         Assign version numbers using num_ssa_names.
3008
3009 2004-06-10  Joseph S. Myers  <jsm@polyomino.org.uk>
3010
3011         * doc/sourcebuild.texi (Front End): Add details of more
3012         installation documentation required.
3013
3014 2004-06-10  Brian Booth  <bbooth@redhat.com>
3015
3016         * doc/tree-ssa.texi: Remove references to VDEF and add descriptions
3017         of V_MAY_DEF and V_MUST_DEF.
3018         * tree-dfa.c (dfa_stats_d): Add num_v_must_defs and rename
3019         num_vdefs to num_v_may_defs.
3020         (compute_immediate_uses_for_stmt): Rename occurences of vdef
3021         to v_may_def.
3022         (redirect_immediate_uses): Ditto.
3023         (dump_dfa_stats): Ditto. Also added code to dump num_v_must_defs.
3024         (collect_dfa_stats_r): Rename occurences of vdef to v_may_def.
3025         Also add code to sum up the number of v_must_defs.
3026         (vdefs_disappeared_p): Replace with...
3027         (v_may_defs_disappeared_p): This.
3028         (v_must_defs_disappeared_p): New function.
3029         (mark_new_vars_to_rename): Rename occurences of vdef to v_may_def.
3030         Also add code to mark new variables found in V_MUST_DEFs for
3031         renameing.
3032         * tree-flow.h (stmt_ann_d): Add v_must_def_ops and replace
3033         vdef_ops to v_may_def_ops.
3034         (get_vdef_ops): Replace with...
3035         (get_v_may_def_ops): This.
3036         * tree-flow-inline.h (get_vdef_ops): Replace with...
3037         (get_v_may_def_ops): This.
3038         (get_v_must_def_ops): New function.
3039         (get_vdef_result_ptr): Replace with...
3040         (get_v_may_def_result_ptr): This.
3041         (get_vdef_op_ptr): Ditto with...
3042         (get_v_may_def_op_ptr); This.
3043         (get_v_must_def_op_ptr): New function.
3044         * tree-into-ssa.c (mark_def_sites): Rename occurences of vdef
3045         to v_may_def. Also add code to mark statements with
3046         V_MUST_DEFs as definition sites.
3047         (rewrite_stmt): Rename occurences of vdef to v_may_def. Also
3048         add code to register new V_MUST_DEFs made by the statement.
3049         * tree-outof-ssa.c (VIRTUAL_PARTITION): Update comments.
3050         (check_replaceable): Rename occurences of vdef to v_may_def. Also
3051         add check for V_MUST_DEFs.
3052         (find_replaceable_in_bb): Ditto.
3053         * tree-pretty-print.c (dump_vops): Rename occurences of vdef
3054         to v_may_def. Also add code to dump V_MUST_DEFs.
3055         * tree-sra.c (mark_all_vdefs): Replace with...
3056         (mark_all_v_may_defs): This.
3057         (mark_all_v_must_defs): New function.
3058         (create_scalar_copies): Replace call to mark_all_vdefs with
3059         calls to mark_all_v_may_defs and mark_all_v_must_defs.
3060         (scalarize_structures): Rename occurences of vdef to v_may_def.
3061         Also add a check for V_MUST_DEFs.
3062         (scalarize_modify_expr): Rename occurences of vdef to v_may_def.
3063         * tree-ssa-alias.c (global_var): Update comment.
3064         (compute_may_aliases): Ditto.
3065         (compute_points_to_and_addr_escape): Rename occurences of vdef
3066         to v_may_def. Also add code to mark variables in V_MUST_DEF
3067         operands as being written to.
3068         (group_aliases): Update comment.
3069         (maybe_create_global_var): Ditto.
3070         * tree-ssa.c (verify_ssa): Rename occurences of vdef to v_may_def.
3071         Also add a check for V_MUST_DEFs on GIMPLE registers.
3072         (replace_immediate_uses): Rename occurences of vdef to v_may_def.
3073         * tree-ssa-ccp.c (visit_stmt): Rename occurences of vdef
3074         to v_may_def. Also add code to mark all V_MUST_DEF operands
3075         VARYING.
3076         (initialize): Ditto.
3077         (set_rhs): Rename occurences of vdef to v_may_def. Also add
3078         code to update SSA_NAMEs in V_MUST_DEFs.
3079         * tree-ssa-copy.c (cprop_into_stmt): Rename occurences of vdef
3080         to v_may_def.
3081         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Rename
3082         occurences of vdef to v_may_def. Also add code to mark statements
3083         with V_MUST_DEFs as necessary.
3084         (propagate_necessity): Rename occurences of vdef to v_may_def.
3085         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Rename
3086         occurences of vdef to v_may_def. Also add code to mark operands
3087         in V_MUST_DEFs for renaming.
3088         (eliminate_redundant_computations): Rename occurences of vdef
3089         to v_may_def.
3090         (record_equivalences_from_stmt): Rename occurences of vdef
3091         to v_may_def. Also add code to record VUSEs for V_MUST_DEFs.
3092         (optimize_stmt): Remove unnesessary variable vdefs. Update
3093         comment.
3094         (register_definitions_for_stmt): Rename occurences of vdef
3095         to v_may_def. Also add code to register definitions made with
3096         V_MUST_DEFs.
3097         * tree-ssa-dse.c (fix_stmt_vdefs): Replace with...
3098         (fix_stmt_v_may_defs): This.
3099         (fix_phi_uses): Rename occurences of vdef to v_may_def.
3100         (dse_optimize_stmt): Ditto.
3101         * tree-ssa-live.c (create_ssa_var_map): Rename occurences of vdef
3102         to v_may_def. Also add code to mark V_MUST_DEF operands as being
3103         used in virtual operators.
3104         * tree-ssa-loop.c (mark_defs_for_rewrite): Rename occurences of
3105         vdef to v_may_def. Also add code to mark V_MUST_DEF operands for
3106         renaming.
3107         * tree-ssa-operands.c (opf_kill_def): New flag for killing
3108         definitions.
3109         (build_vdefs): Renamed to...
3110         (build_v_may_defs): This.
3111         (build_v_must_defs): New variable.
3112         (voperands_d): Add v_must_def_ops and replace vdef_ops with
3113         v_may_def_ops.
3114         (append_vdef): Replace with...
3115         (append_v_may_def): This.
3116         (append_v_must_def): New function.
3117         (NUM_FREE): Increment for V_MUST_DEF
3118         (optype_freelist): Increment its size for V_MUST_DEF
3119         (allocate_vdef_optype): Replace with...
3120         (allocate_v_may_def_optype): This.
3121         (allocate_v_must_def_optype): New function.
3122         (free_vdefs): Replace with...
3123         (free_v_may_defs): This.
3124         (free_v_must_defs): New function.
3125         (remove_vdefs): Replace with...
3126         (remove_v_may_defs): This.
3127         (remove_v_must_defs): New function.
3128         (init_ssa_operands): Rename occurences of vdef to v_may_def. Also
3129         add code to initialize build_v_must_defs.
3130         (finalize_ssa_vdefs): Replace with...
3131         (finalize_ssa_v_may_defs): This.
3132         (finalize_ssa_vuses): Rename occurences of vdef to v_may_def.
3133         (finalize_ssa_v_must_defs): New function.
3134         (finalize_ssa_stmt_operands): Replace call to finalize_ssa_vdefs
3135         with calls to finalize_ssa_v_may_defs and finalize_ssa_v_must_defs.
3136         (verify_start_operands): Rename occurences of vdef to v_may_def.
3137         Also add check for build_v_must_defs.
3138         (get_stmt_operands): Rename occurences of vdef to v_may_def.
3139         Also add code to handle V_MUST_DEFs and to use opf_kill_def for
3140         killing definitions.
3141         (get_expr_operands): Update comment and use opf_kill_def for
3142         killing definitions.
3143         (add_stmt_operand): Replace code that appends VDEFs with code
3144         that appends V_MUST_DEFs when opf_kill_def is set and V_MAY_DEFs
3145         otherwise.
3146         (add_call_clobber_ops): Update comments.
3147         * tree-ssa-operands.h (vdef_optype_d): Replace with...
3148         (v_may_def_optype_d): This.
3149         (v_must_def_optype_d): New structure.
3150         (VDEF_OPS): Replace with...
3151         (V_MAY_DEF_OPS): This.
3152         (STMT_VDEF_OPS): Same with...
3153         (STMT_V_MAY_DEF_OPS): This.
3154         (NUM_VDEFS): And...
3155         (NUM_V_MAY_DEFS): This.
3156         (VDEF_RESULT_PTR): As well as...
3157         (V_MAY_DEF_RESULT_PTR): This.
3158         (VDEF_RESULT): Same goes for...
3159         (V_MAY_DEF_RESULT): This.
3160         (VDEF_OP_PTR): And...
3161         (V_MAY_DEF_OP_PTR): This.
3162         (VDEF_OP): And...
3163         (V_MAY_DEF_OP): This.
3164         (V_MUST_DEF_OPS): New macro.
3165         (STMT_V_MUST_DEF_OPS): Ditto.
3166         (NUM_V_MUST_DEFS): Ditto.
3167         (V_MUST_DEF_OP_PTR): Ditto.
3168         (V_MUST_DEF_OP): Ditto.
3169         (remove_vdefs): Replace signature with...
3170         (remove_v_may_defs): This.
3171         (remove_v_must_defs): New function signature.
3172         * tree-ssa-pre.c (subst_phis): Replace call to remove_vdefs
3173         with calls to remove_v_may_defs and remove_v_must_defs.
3174         (process_left_occs_and_kills): Rename occurences of vdef to v_may_def.
3175         Also add code that marks left occurences of operands in V_MUST_DEFs.
3176         * tree-tailcall.c (find_tail_calls): Rename occurences of vdef
3177         to v_may_def. Also add check for V_MUST_DEFs.
3178         (eliminate_tail_call):Rename occurences of vdef to v_may_def.
3179
3180 2004-06-10  Vladimir Makarov  <vmakarov@redhat.com>
3181
3182         PR target/15653
3183         * haifa-sched.c (schedule_block): Finish cycle after issuing asm
3184         insn.
3185
3186 2004-06-10  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3187
3188         PR web/15263
3189         * doc/install.texi: Remove superfluous linebreak.
3190
3191 2004-06-10  Roger Sayle  <roger@eyesopen.com>
3192
3193         * builtins.c (expand_builtin): Fall back to library function call for
3194         conj, conjf, conjl, creal, crealf, creall, cimag, cimagf and cimagl.
3195         (fold_builtin_1): Lower built-ins BUILT_IN_CONJ{,F,L} to CONJ_EXPR,
3196         BUILT_IN_CREAL{,F,L} to REALPART_EXPR, and BUILT_IN_CIMAG{,F,L} to
3197         IMAGPART_EXPR respectively.
3198
3199 2004-06-10  J"orn Rennecke <joern.rennecke@superh.com>
3200
3201         * sh.c (dump_table): New argument start.  Changed caller.
3202         (fixup_mova): New function.
3203         (find_barrier): Use it.
3204         (sh_reorg): Likewise.  Check for CODE_FOR_casesi_worker_2.
3205         If the label a mova refers to is above the mova itself, change
3206         the mova into a load.
3207         * sh.md (*casesi_worker): Rename to:
3208         (casesi_worker_1).
3209         (casesi_worker_2): New insn.
3210
3211 2004-06-10  Jason Merrill  <jason@redhat.com>
3212
3213         * target.h (struct gcc_target): Change gimplify_va_arg_expr
3214         hook signature.
3215         * tree-gimple.h: Adjust.
3216         * config/alpha/alpha.c (alpha_gimplify_va_arg): Adjust.
3217         * config/i386/i386.c (ix86_gimplify_va_arg): Adjust.
3218         Use fold_convert.
3219         * config/ia64/ia64.c (ia64_gimplify_va_arg): Adjust.
3220         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust.
3221         Use COMPLEX_EXPR for complex numbers.  Use fold_convert.
3222         * builtins.c (std_gimplify_va_arg_expr): Adjust.  Use fold_convert.
3223         (gimplify_va_arg_expr): Return GS_ERROR in error case.
3224         Gimplify valist rather than calling stabilize_va_list.
3225
3226 2004-06-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3227
3228         * Makefile.in (df.o): Remove fibheap dependency.
3229         * df.h: Do not include sbitmap.h.
3230         (struct ref): New field "data".
3231         (DF_REF_DATA): New accessor macro.
3232         (struct df): Field "dom" removed.
3233         (df_analyze_subcfg): New function.
3234         (transfer_function_sbitmap, transfer_function_bitmap): Replaced by ...
3235         (transfer_function): ... new type.
3236         (iterative_dataflow_sbitmap, iterative_dataflow_bitmap): Replaced by ...
3237         (iterative_dataflow): ... new function.
3238         (enum set_representation, struct dataflow): New.
3239         * df.c: Do not include fibheap.h.
3240
3241         (df_reg_def_chain_clean, df_reg_use_chain_clean,
3242         (df_bb_table_realloc, df_analyse_subcfg, free_reg_ref_chain,
3243         prune_to_subcfg, df_bb_modify): New functions.
3244         (df_bitmaps_alloc, df_reg_def_chain_create, df_reg_use_chain_create,
3245         df_refs_update, df_reg_table_realloc, df_ref_create,
3246         df_bb_reg_def_chain_create, df_bb_reg_use_chain_create,
3247         df_bb_rd_local_compute, df_bb_ru_local_compute, df_bb_lr_local_compute,
3248         df_analyse_1, df_insn_modify): Support analysing only a part of the cfg.
3249
3250         (dataflow_set_a_op_b, dataflow_set_copy): New functions.
3251         (df_rd_transfer_function, df_ru_transfer_function,
3252         df_lr_transfer_function): Type of bitmaps changed to void *.
3253         (hybrid_search_bitmap, hybrid_search_sbitmap): Merge into ...
3254         (hybrid_search): ... new function.
3255         (iterative_dataflow_bitmap, iterative_dataflow_sbitmap): Merge into ...
3256         (iterative_dataflow): ... new function. Avoid use of fibheaps for
3257         a worklist.  Do not process basic blocks unnecessarily.
3258
3259 2004-06-10  Roger Sayle  <roger@eyesopen.com>
3260
3261         * fold-const.c (fold_abs_const): Make extern.
3262         * tree.h (fold_abs_const): Prototype here.
3263         * builtins.c (fold_builtin_fabs): New function to transform
3264         fabs, fabsf and fabsl builtins into ABS_EXPR tree nodes.
3265         (fold_builtin_abs): New function to transform abs, labs, llabs
3266         and imaxabs builtins into ABS_EXPR tree nodes.
3267         (expand_builtin): Fall back to a function call for abs, labs,
3268         llabs and imaxabs builtins that survive constant folding.
3269         (fold_builtin_1): Call fold_builtin_fabs for FABS, FABSF and
3270         FABSL, and fold_builtin_abs for ABS, LABS, LLABS and IMAXABS.
3271
3272 2004-06-10  Jakub Jelinek  <jakub@redhat.com>
3273
3274         * config/ia64/unwind-ia64.c (uw_frame_state_for): Don't assume a
3275         leaf function without unwind info at RP 0.
3276
3277 2004-06-10  Jakub Jelinek  <jakub@redhat.com>
3278
3279         PR c++/14791
3280         * tree.h (enum tree_index): Add TI_FILEPTR_TYPE.
3281         (fileptr_type_node): Define.
3282         * tree.c (build_common_tree_nodes_2): Initialize
3283         fileptr_type_node to ptr_type_node.
3284         * c-common.c (c_common_nodes_and_builtins): For C++, make
3285         fileptr_type_node a distinct type copy.
3286         * builtin-types.def (BT_FILEPTR, BT_FN_INT_CONST_STRING_FILEPTR,
3287         BT_FN_INT_INT_FILEPTR, BT_FN_INT_FILEPTR_CONST_STRING_VALIST_ARG,
3288         BT_FN_SIZE_CONST_PTR_SIZE_SIZE_FILEPTR,
3289         BT_FN_INT_FILEPTR_CONST_STRING_VAR): Add.
3290         (BT_FN_INT_CONST_STRING_PTR, BT_FN_INT_INT_PTR,
3291         BT_FN_SIZE_CONST_PTR_SIZE_SIZE_PTR, BT_FN_INT_PTR_CONST_STRING_VAR,
3292         BT_FN_INT_PTR_CONST_STRING_VALIST_ARG): Remove.
3293         * builtins.def (BUILT_IN_FPRINTF, BUILT_IN_FPRINTF_UNLOCKED,
3294         BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS,
3295         BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FSCANF, BUILT_IN_FWRITE,
3296         BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): Use
3297         the above *FILEPTR* types instead of *PTR*.
3298
3299 2004-06-09  Daniel Berlin <dberlin@dberlin.org>
3300
3301         * tree-ssa.c (verify_ssa): Verify that vdefs/makes_aliased_stores
3302         match.
3303
3304 2004-06-09  Roger Sayle  <roger@eyesopen.com>
3305
3306         * fold-const.c (fold_not_const): New function.
3307         (fold) <ABS_EXPR>: Don't bother testing wins.
3308         (fold) <BIT_NOT_EXPR>: Call fold_not_const.
3309         (nondestructive_fold_unary_to_constant) <BIT_NOT_EXPR>: Likewise.
3310
3311 2004-06-09  Richard Henderson  <rth@redhat.com>
3312
3313         PR middle-end/15228
3314         * function.c (assign_parms): Always set_mem_align with the computed
3315         FUNCTION_ARG_BOUNDARY.  Don't clear stack_parm if !STRICT_ALIGNMENT.
3316
3317 2004-06-09  Richard Henderson  <rth@redhat.com>
3318
3319         PR opt/15108
3320         * tree-tailcall.c (find_tail_calls): Don't check early for
3321         tail_recursion failure.
3322
3323 2004-06-09  Diego Novillo  <dnovillo@redhat.com>
3324
3325         Move SSA_NAME annotations into tree_ssa_name.
3326
3327         * tree-dfa.c (create_ssa_name_ann): Remove.
3328         * tree-flow-inline.h (ssa_name_ann, get_ssa_name_ann): Remove.
3329         * tree-flow.h (enum tree_ann_type): Remove SSA_NAME_ANN.
3330         (struct ssa_name_ann_d): Remove.
3331         (union tree_ann_d): Update.
3332         (ssa_name_ann_t): Remove.
3333         * tree-ssa-alias.c: (get_ptr_info): New local function.
3334         Replace references to ssa_name_ann_t with struct ptr_info_def.
3335         * tree-ssa-operands.c (get_expr_operands): Likewise.
3336         * tree.h (SSA_NAME_PTR_INFO): Define.
3337         (struct ptr_info_def): Declare.
3338         (struct tree_ssa_name): Add field 'ptr_info'.
3339
3340 2004-06-09  Danny Smith  <dannysmith@users.sourceforge.net>
3341
3342         * config/i386/winnt.c (i386_pe_output_labelref): Correct
3343         misplaced ')'.
3344
3345 2004-06-09  Steven Bosscher  <stevenb@suse.de>
3346
3347         * config/i386/k6.md: Rewrite using the DFA model.
3348         * config/i386/i386.c (ix86_adjust_cost): Don't increase the
3349         cost of load-operation insns for the K6.
3350         (ia32_use_dfa_pipeline_interface): Add TARGET_K6.
3351         (ia32_multipass_dfa_lookahead): Likewise.
3352
3353 2004-06-09  Richard Henderson  <rth@redhat.com>
3354
3355         * config/alpha/alpha.c (alpha_gimplify_va_arg_1,
3356         alpha_gimplify_va_arg, TARGET_GIMPLIFY_VA_ARG_EXPR): New.
3357
3358 2004-06-09  Richard Henderson  <rth@redhat.com>
3359
3360         * expmed.c (emit_store_flag): Cope with FLOAT_STORE_FLAG_VALUE.
3361
3362 2004-06-09  Geoffrey Keating  <geoffk@apple.com>
3363
3364         * Makefile.in (CPPLIB_H): Put files in order of inclusion.
3365         (CPP_ID_DATA_H): New.
3366         (gtype-desc.o): Update dependencies.
3367         (GTFILES): Use CPP_ID_DATA_H.
3368
3369 2004-06-09  Mark Mitchell  <mark@codesourcery.com>
3370
3371         Revert:
3372         PR c++/15815
3373         2004-06-07  Mark Mitchell  <mark@codesourcery.com>
3374         * doc/extend.texi: Deprecate #pragma interface and #pragma
3375         implementation.
3376
3377 2004-06-09  David S. Miller  <davem@nuts.davemloft.net>
3378
3379         * config/sparc/sparc.h (MOVE_RATIO): New definition.
3380
3381 2004-06-09  Richard Henderson  <rth@redhat.com>
3382
3383         * basic-block.h (struct edge_def): Add goto_locus.
3384         * tree-cfg.c (make_goto_expr_edges): Set it.
3385         (disband_implicit_edges): Use it.
3386         * tree-pretty-print.c (dump_implicit_edges): Print it.
3387
3388 2004-06-08  Anil Paranjpe <anilp1@kpitcummins.com>
3389
3390         * h8300.md (ldm_h8300s_4): Fix condition for expander.
3391
3392 2004-06-08  Jason Merrill  <jason@redhat.com>
3393
3394         Gimplify VA_ARG_EXPR into simpler forms.
3395         * target.h: Add gimplify_va_arg_expr hook.
3396         * target-def.h: Add TARGET_GIMPLIFY_VA_ARG_EXPR.
3397         * fold-const.c (build_fold_addr_expr)
3398         (build_fold_addr_expr_with_type): Move from gimplify.c.
3399         * tree.h: Declare them.
3400         * gimplify.c (gimplify_and_add): New fn.
3401         (build_addr_expr, build_addr_expr_with_type): Move to fold-const.c.
3402         (gimplify_array_ref_to_plus, gimplify_modify_expr)
3403         (gimplify_expr): Use build_fold_*.
3404         (copy_if_shared_r): Only mark VA_ARG_EXPR volatile if we
3405         don't know how to gimplify it.
3406         * builtins.c (std_gimplify_va_arg_expr): New fn.
3407         (dummy_object): New static fn.
3408         (gimplify_va_arg_expr): New fn.
3409         (stabilize_va_list): Use build_fold_*.
3410         * tree-gimple.h: Declare new fns.
3411         * config/i386/i386.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
3412         (ix86_gimplify_va_arg): New fn.
3413         * config/ia64/ia64.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
3414         (ia64_gimplify_va_arg): New fn.
3415         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): New fn.
3416         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
3417         * alias.c (get_varargs_alias_set): Just return 0 for now.
3418
3419         * c-objc-common.c (c_tree_printer): Improve handling of %T.
3420
3421 2004-06-09  Andrew Pinski  <pinskia@physics.uc.edu>
3422
3423         * tree-complex.c (expand_complex_comparison): Use fold_convert instead
3424         of convert.
3425         * tree-inline.c (setup_one_parameter): Likewise.
3426         * tree-sra.c (csc_build_component_ref): Likewise.
3427         * tree-ssa-ccp.c (ccp_fold): Likewise.
3428         * tree-ssa-copy.c (cprop_operand): Likewise.
3429         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
3430         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
3431
3432 2004-06-09  J"orn Rennecke <joern.rennecke@superh.com>
3433
3434         PR rtl-optimization/15521:
3435         * sched-int.h (in_post_call_group_p): Change type to enum.
3436         * sched-deps.c (sched_analyze_insn):
3437         (sched_analyze): When in_post_call_group_p is post_call_initial,
3438         don't add a dependency, but still set SCHED_GROUP_P and CANT_MOVE,
3439         and also reset in_post_call_group_p to post_call.
3440         (sched_analyze): When the previous basic block ended in a CALL_INSN,
3441         initialize in_post_call_group_p as post_call_initial.
3442         (init_deps): initialize in_post_call_group_p to not_post_call.
3443
3444 2004-06-09  Arnaud Charlet  <charlet@act-europe.fr>
3445
3446         PR ada/6637
3447         * doc/install.texi: List ada, libada as options to --enable-shared
3448
3449 2004-06-09  Paolo Bonzini  <bonzini@gnu.org>
3450
3451         * aclocal.m4 (gcc_AC_PROG_LN): Remove.
3452         (gcc_AC_CHECK_DECLS): Use AH_TEMPLATE to generate
3453         config.in entries.
3454         * configure.ac: Call ACX_PROG_LN, falling back to $LN_S
3455         if hard links are not available.
3456         * configure: Regenerate.
3457         * config.in: Regenerate.
3458
3459 2004-06-08  Per Bothner  <per@bothner.com>
3460
3461         * configure.ac:  New --enable-mapped-location sets USE_MAPPED_LOCATION.
3462
3463 2004-06-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3464
3465         * toplev.c (floor_log2_wide): Correct casts for 64-bit hosts.
3466         Correct formatting.
3467
3468 2004-06-08  James E Wilson  <wilson@specifixinc.com>
3469
3470         PR target/15790
3471         * config/i386/i386-coff.h (ASM_OUTPUT_ALIGN): Define.
3472
3473 2004-06-08  Andrew Pinski  <pinskia@physics.uc.edu>
3474
3475         * fold-const.c (fold_convert): Treat OFFSET_TYPE like
3476         POINTER_TYPE and INTEGER_TYPE.
3477
3478 2004-06-08  Bernardo Innocenti  <bernie@develer.com>
3479
3480         * modulo-sched.c: Compile only when INSN_SCHEDULING is
3481         defined.
3482
3483 2004-06-08  Jeff Law  <law@redhat.com>
3484
3485         * doc/contrib.texi: Add entries for Stefan Olsson and
3486         Ola Ronnerup.
3487
3488 2004-06-08  DJ Delorie  <dj@redhat.com>
3489
3490         * toplev.c (floor_log2_wide): Replace loop with faster bit
3491         operations.
3492         (exact_log2_wide): Define in terms of the above.
3493         * toplev.h (floor_log2): Use _builtin_clz family of builtins if
3494         available.
3495
3496 2004-06-08  Andrew Pinski  <pinskia@physics.uc.edu>
3497
3498         * config/rs6000/rs6000.c (print_operand, <case 'z'>):
3499         Make sure that we are in INDIRECT mode when getting the
3500         stub name.
3501
3502 2004-06-08  Anil Paranjpe <anilp1@kpitcummins.com>
3503
3504         * h8300.md (extendqisi2_h8300): Add constraints.
3505         (ldm_h8300s_4_normal): Fix typo.
3506
3507 2004-06-08  Richard Henderson  <rth@redhat.com>
3508
3509         * gimple-low.c (struct lower_data): Replace the_return_label and
3510         one_return_stmt with return_statements.
3511         (lower_function_body): Process the entire list of return_statements.
3512         (lower_return_expr): Check source value before unifying return_exprs.
3513         * gimplify.c (gimplify_return_expr): Force the use of a temporary
3514         for !aggregate_value_p.
3515         * tree-gimple.c: Update RETURN_EXPR grammer.
3516
3517 2004-06-08  Vladimir Makarov  <vmakarov@redhat.com>
3518
3519         PR target/15598
3520         * config/ia64/ia64.c (bundling): Add missed TYPE_A.
3521
3522 2004-06-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3523
3524         PR rtl-optimization/15717
3525         * config/i386/i386.c (legitimate_constant_p): Do not allow
3526         x - symbol_ref.
3527
3528 2004-06-08  Alexandre Oliva  <aoliva@redhat.com>
3529
3530         * gimplify.c (copy_if_shared_r): Revert:
3531         2004-05-21  Richard Henderson  <rth@redhat.com>
3532         * gimplify.c [...] Don't mark VA_ARG_EXPRs volatile here.
3533
3534 2004-06-07  Roger Sayle  <roger@eyesopen.com>
3535
3536         * expmed.c (add_cost, neg_cost, sdiv_pow2_cheap, smod_pow2_cheap):
3537         Make arrays indexed by machine mode.  Rename negate_cost to neg_cost.
3538         (init_expmed): Initialize these cost arrays as appropriate.
3539         (store_bit_field, extract_bit_field): Correct whitespace.
3540         (synth_mult, choose_mult_variant, expand_mult, expand_mult_highpart,
3541         expand_mult_highpart_optab, expand_divmod): Update uses of add_cost,
3542         neg_cost, sdiv_pow2_cheap, smod_pow2_cheap to index with mode,
3543         word_mode or compute_mode as appropriate.
3544
3545 2004-06-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
3546
3547         PR target/15783
3548         * config/sparc/sparc.c (function_arg_union_value): Add 'mode'
3549         parameter.  Enumerate the registers inside the PARALLEL.
3550         (function_arg): Adjust call to function_arg_union_value.
3551         (function_value): Likewise.
3552
3553         * config/sparc/sparc.c (sparc_function_epilogue): Properly format.
3554
3555 2004-06-07  Roger Sayle  <roger@eyesopen.com>
3556
3557         * real.c (real_copysign): New function to implement libm's copysign.
3558         * real.h (real_copysign): Prototype here.
3559         * fold-const.c (tree_expr_nonnegative_p): The result of sqrt, sqrtf
3560         and sqrtl can be negative, as sqrt(-0.0) = -0.0.  Correct whitespace.
3561         * builtins.c (fold_builtin_isascii, fold_builtin_toascii,
3562         fold_builtin_isdigit): Add function prototypes.
3563         (fold_builtin_copysign): New function to fold copysign, copysignf
3564         and copysignl.  Optimize copysign(x,x) as x.  Evaluate copysign of
3565         constant arguments at compile-time using real_copysign.  Fold
3566         copysign(X,Y) as fabs(X) if Y is always non-negative.
3567         (fold_builtin_1): Correct minor whitespace/style issues.  Call
3568         fold_builtin_copysign for BUILT_IN_COPYSIGN{,F,L}.
3569
3570 2004-06-07  J"orn Rennecke <joern.rennecke@superh.com>
3571
3572         * tree.c (iterative_hash_expr): Use real_hash.
3573
3574 2004-06-07  Joseph S. Myers  <jsm@polyomino.org.uk>
3575
3576         PR c/14765
3577         * c-parse.in (compstmt_primary_start): Set last_expr_type to
3578         NULL_TREE.
3579
3580 2004-06-07  Mark Mitchell  <mark@codesourcery.com>
3581
3582         PR c++/15815
3583         * doc/extend.texi: Deprecate #pragma interface and #pragma
3584         implementation.
3585
3586 2004-06-07  Alexandre Oliva  <aoliva@redhat.com>
3587
3588         PR middle-end/15666
3589         * c-decl.c (finish_decl): Use change_decl_assembler_name for the
3590         builtin decl as well.
3591
3592 2004-06-07  Roger Sayle  <roger@eyesopen.com>
3593
3594         PR c/14649
3595         * c-typeck.c (require_constant_value, require_constant_elements):
3596         Move declarations to the top of the file.
3597         (build_function_call): If we require a constant value, fold with
3598         fold_initializer.  If the result is a constant, and the function
3599         wasn't called using __builtin_foo, issue a pedantic warning.
3600         (build_unary_op): If we require a constant value, fold tree with
3601         fold_initializer.
3602         (build_binary_op): Use require_constant_value to determine whether
3603         to call fold or fold_initializer.
3604
3605 2004-06-07  Richard Henderson  <rth@redhat.com>
3606
3607         * gimple-low.c (struct lower_data): Add the_return_label and
3608         one_return_stmt.
3609         (lower_function_body): Initialize and use them.
3610         (lower_return_expr): New.
3611         (lower_stmt): Call it.
3612         * gimplify.c (gimplify_return_expr): Force the argument to be either
3613         null or a result_decl.
3614         * tree-gimple.c: Update gimple grammer to match.
3615         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Deny
3616         coalescing of result_decls.
3617
3618 2004-06-07  Richard Henderson  <rth@redhat.com>
3619
3620         PR rtl-opt/15193
3621         * expmed.c (extract_bit_field): Fix vector_extract return.
3622
3623         * config/i386/i386.md (negv4sf2): New pattern.
3624
3625 2004-06-07  Mark Mitchell  <mark@codesourcery.com>
3626
3627         PR c++/15337
3628         * c-common.c (c_sizeof_or_alignof_type): Use more detailed error
3629         message.
3630
3631 2004-06-06  Paolo Bonzini  <bonzini@gnu.org>
3632
3633         * config.in: Regenerate.
3634
3635 2004-06-06  Steven Bosscher  <stevenb@suse.de>
3636
3637         * tree-cfg.c (tree_verify_flow_info): Make sure that labels in
3638         SWITCH_LABELS are always sorted.
3639
3640 2004-06-06  Steven Bosscher  <stevenb@suse.de>
3641
3642         * hooks.c (hook_int_void_1): New generic hook.
3643         * hooks.h (hook_int_void_1): Add prototype.
3644         * config/c4x/c4x.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
3645         Define to hook_int_void_1.
3646         * config/c4x/c4x.md: Replace dummies for the old pipeline model
3647         with dummies for the new one.
3648
3649 2004-06-06  Roger Sayle  <roger@eyesopen.com>
3650
3651         * tree.h (lvalue_or_else): Delete function prototype.
3652         * c-typeck.c (lvalue_or_else): Make static.  Add static prototype.
3653
3654 2004-06-06  Stephane Carrez  <stcarrez@nerim.fr>
3655
3656         PR target/14542
3657         * config/m68hc11/m68hc11.md (move peephole2): Emit a use note to avoid
3658         a live change of a register after peephole replacement.
3659
3660 2004-06-06  Joseph S. Myers  <jsm@polyomino.org.uk>
3661
3662         PR c/13519
3663         * c-typeck.c (composite_type, common_pointer_type): New functions.
3664         (common_type): Split parts into composite_type and
3665         common_pointer_type.  Ensure that arithmetic operations return
3666         unqualified types without attributes.  Don't make composite type
3667         of signed enum and compatible integer be unsigned.
3668         (build_conditional_expr, build_binary_op): Use
3669         common_pointer_type.
3670         * c-decl.c (merge_decls): Use composite_type.
3671         * c-tree.h (composite_type): Declare.
3672
3673 2004-06-06  Stephane Carrez  <stcarrez@nerim.fr>
3674
3675         PR target/14457
3676         * config/m68hc11/m68hc11.c (splitable_operand): New predicate.
3677         * config/m68hc11/m68hc11-protos.h (splitable_operand): Declare.
3678         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register it.
3679         (inhibit_libc): Must define.
3680         * config/m68hc11/m68hc11.md ("movhi_const0"): Use splitable_operand.
3681         ("*andhi3_gen", "iorhi3", "*iorhi3_gen"): Likewise.
3682         ("xorhi3"): Likewise.
3683
3684 2004-06-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
3685
3686         * cgraphunit.c (cgraph_decide_inlining): Adjust dump lines in
3687         always_inline pass.
3688
3689 2004-06-05  David S. Miller  <davem@nuts.davemloft.net>
3690
3691         * config/sparc/linux.h (TARGET_C99_FUNCTIONS): Set.
3692         * config/sparc/linux64.h (TARGET_C99_FUNCTIONS): Likewise.
3693
3694 2004-06-05  Bernardo Innocenti  <bernie@develer.com>
3695
3696         * regclass.c (init_reg_sets): Check for missing registers in target
3697         initializer macros FIXED_REGISTERS and CALL_USED_REGISTERS.
3698
3699 2004-06-05  Zack Weinberg  <zack@codesourcery.com>
3700
3701         * Makefile.in (MKDEPS_H): New shorthand.
3702         (c-opts.o): Update dependencies.
3703         * c-opts.c: Include mkdeps.h.
3704         (handle_deferred_opts): Use cpp_get_deps and deps_add_target,
3705         not cpp_add_dependency_target.
3706
3707 2004-06-05  Steven Bosscher  <stevenb@suse.de>
3708
3709         * config/v850/v850.c (v850_use_dfa_pipeline_interface): New.
3710         * config/v850/v850.md: Convert to DFA scheduler description.
3711
3712 2004-06-05  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
3713
3714         PR fortran/15478
3715         * doc/install.texi: Document GMP as prerequisite. Document
3716         --with-gmp and --with-gmp-dir configure options.
3717         * fortran/gfortran.texi: Remove section "Compiling and testing",
3718         remove TOC reference to it.
3719
3720 2004-06-05  Graham Stott  <graham.stott@btinternet.com>
3721
3722         * combine.c(simplify_shift_const): Check shift amount is a
3723         CONST_INT.
3724
3725 2004-06-05  Danny Smith  <dannysmith@users.sourceforge.net>
3726
3727         * toplev.c (init_asm_output): Add explicit 'b' to mode when
3728         opening asm_out_file.
3729         * c-pch.c (c_common_write_pch): Remove unnecessary fflush before
3730         reading asm_out_file. Replace fflush after reading asm_out_file
3731         with fseek.
3732         * hosthooks-def.h (HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY): Define
3733         default and add to HOST_HOOKS_INITIALIZER.
3734         * hosthooks.h (gt_pch_alloc_granularity): Declare hook function.
3735         * ggc-common.c (default_gt_pch_alloc_granularity): New function.
3736         (gt_pch_save): Use host_hooks.gt_pch_alloc_granularity
3737         to set mmi.offset padding.
3738          * config.gcc (i[34567]86-*-mingw32*): Set target_gtfiles to
3739         $(srcdir)/config/i386/winnt.c.
3740         (i[34567]86-*-pe | i[34567]86-*-cygwin*): Likewise.
3741         (i[34567]86-*-uwin*): Likewise.
3742         *i[34567]86-*-interix3*): Likewise.
3743         * config.host (i[34567]86-*-mingw32*): Set out_host_hook_obj.
3744         * config/i386/host-mingw32.c: New file.
3745         * config/i386/x-mingw32: Add rule for host-mingw32.o.
3746         * config/i386/winnt.c: (struct extern_list) Tag as GTY.
3747         (extern_head): Likewise.
3748         (struct export_list) Likewise.
3749         (export_head): Likewise.
3750         (i386_pe_record_external_function): Use ggc_alloc.
3751         (i386_pe_record_exported_symbol): Likewise.
3752         Include "gt-winnt.h" at end.
3753         * doc/hostconfig.texi: Document
3754         HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY.
3755
3756 2004-06-04  Bernardo Innocenti  <bernie@develer.com>
3757
3758         * config/m68k/m68k.h: Remove comments copied over from tm.texi.
3759         Rename 68000 and 68k to m68k for consistency in comments.  Remove
3760         trailing whitespace before EOLs and before TABs.
3761         (MAX_CODE_ALIGN): Remove unused macro.
3762         (CALL_USED_REGISTERS): Reformat and add comments.
3763
3764 2004-06-04  Frank Ch. Eigler  <fche@redhat.com>
3765
3766         * gcc.c (MFLIB_SPEC): Remove library references, to require users
3767         to enumerate -lmudflap* and dependencies when linking.
3768
3769 2004-06-04  Paolo Bonzini  <bonzini@gnu.org>
3770
3771         PR target/15822
3772         * dojump.c (do_jump): Fix uninitialized variable tcode1.
3773
3774 2004-06-04  Jerry Quinn  <jlquinn@optonline.net>
3775
3776         * Makefile.in (insn-conditions.o): Back out removal of reload.h.
3777         * genconditions.c (write_header): Back out removal of reload.h.
3778
3779 2004-06-04  Jan Hubicka  <jh@suse.cz>
3780
3781         Re-apply hopefully fixed patch:
3782         * i386.md (UNSPECV_EH_RETURN): Kill.
3783         (eh_return): Use jump_insn.
3784         (eh_return_si, eh_return_di): Change pattern to jump instruction.
3785
3786 2004-06-04  Jeff Law  <law@redhat.com>
3787
3788         * cfgrtl.c (try_redirect_by_replacing_jump): Fix return value.
3789
3790 2004-06-04  Steven Bosscher  <stevenb@suse.de>
3791
3792         * except.c (for_each_eh_region): New function.
3793         * except.h (for_each_eh_region): Add a prototype for it.
3794         * tree-cfg.c (update_eh_labels): New function, callback for
3795         for_each_eh_region.
3796         (label_for_bb): Make global static, unfortunately.
3797         (cleanup_dead_labels): Also update label references for
3798         exception regions.
3799
3800 2004-06-03  Chris Demetriou  <cgd@broadcom.com>
3801
3802         * config/mips/mips.c (struct irix_section_align_entry): Fix
3803         GTY marker.
3804
3805 2004-06-03  Geoffrey Keating  <geoffk@apple.com>
3806
3807         * toplev.c (check_global_declarations): Don't ask for
3808         DECL_ASSEMBLER_NAME unless the function really is declared
3809         static and not defined.
3810
3811 2004-06-03  Matt Austern  <austern@apple.com>
3812
3813         PR c++/15428
3814         * default.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): New name
3815         for TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, with reversed sense.
3816         * config/darwin.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Likewise.
3817         * doc/tm.texi (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Rewrite
3818         documentation to reflect the new macro name and to clarify its
3819         meaning.
3820
3821 2004-06-03  Steven Bosscher  <stevenb@suse.de>
3822
3823         * rtl.def (VAR_LOCATION): Make RTX_EXTRA.
3824
3825 2004-06-03  Andrew Pinski  <pinskia@physics.uc.edu>
3826
3827         * config/darwin.c (machopic_indirect_data_reference): Copy
3828         the SYMBOL_REF_DECL from the original RTX for the new
3829         non-lazy pointer RTX.
3830
3831 2004-06-03  Mark G. Adams  <mark.g.adams@sympatico.ca>
3832
3833         * tree.h: Remove include of version.h
3834         * c-cppbuiltin.c: Include version.h
3835         * diagnostic.c: Include version.h
3836         * dwarf2out.c: Include version.h
3837         * toplev.c: Include version.h
3838         * vmsdbgout.c: Include version.h
3839         * Makefile.in: Remove dependency on version.h from TREE_H, and
3840         add dependencies to required .o targets
3841
3842 2004-06-03  Jerry Quinn  <jlquinn@optonline.net>
3843
3844         * Makefile.in (RA_H, RESOURCE_H, SCHED_INT_H, CFGLAYOUT_H,
3845         CFGLOOP_H, DF_H, DDG_H, TREE_SSA_LIVE_H): New.
3846         (TARGET_H): Add insn-modes.h.
3847         (tree-ssa.o, tree-cfg.o, tree-ssa-loop.o, toplev.o, passes.o,
3848         loop.o, loop-doloop.o, unroll.o, cfgloop.o, cfgloopanal.o,
3849         loop-iv.o, cfgloopmanip.o, loop-init.o, loop-unswitch.o,
3850         loop-unroll.o, ddg.o, modulo-sched.o, predict.o,
3851         cfglayout.o, ifcvt.o): Replace cfgloop.h with CFGLOOP_H.
3852         (toplev.o, passes.o, cfghooks.o, cfgloopmanip.o, loop-init.o,
3853         loop-unswitch.o, loop-unroll.o, ddg.o, modulo-sched.o,
3854         bb-reorder.o, tracer.o, cfglayout.o): Replace cfglayout.h with
3855         CFGLAYOUT_H.
3856         (ra.o, ra-build.o, ra-colorize.o, ra-debug.o, ra-rewrite.o):
3857         Replace ra.h with RA_H.
3858         (resource.o, regrename.o, insn-conditions.o, insn-emit.o,
3859         insn-recog.o): Replace resource.h with RESOURCE_H.
3860         (ddg.o, modulo-sched.o, haifa-sched.o, sched-deps.o, sched-rgn.o,
3861         sched-ebb.o, sched-vis.o, out_object_file):  Replace sched-int.h
3862         with SCHED_INT_H.
3863         (web.o, lcm.o, df.o, ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
3864         ra-rewrite.o): Replace df.h with DF_H.
3865         (ddg.o, modulo-sched.o): Replace ddf.h with DDG_H.
3866         (tree-outof-ssa.o, tree-ssa-live.o, tree-ssa-copyrename.o):
3867         Replace tree-ssa-live.h with TREE_SSA_LIVE_H.
3868         (insn-conditions.o): Remove unused reload.h.
3869         * cfglayout.h: Add include guard.  Include basic-block.h.
3870         * cfgloop.h: Add include guard.  Include basic-block.h, rtl.h.
3871         * ddg.h: Include sbitmap.h, basic-block.h, df.h.
3872         * df.h: Add include guard.  Include bitmap.h, sbitmap.h,
3873         basic-block.h.
3874         * genconditions.c:  Remove reload.h.
3875         * ra.h: Add include guard.  Include bitmap.h, sbitmap.h,
3876         hard-reg-set.h, insn-modes.h.
3877         * resource.h: Add include guard.  Include hard-reg-set.h.
3878         * sched-int.h:  Add include guard.  Include insn-attr.h,
3879         basic-block.h, rtl.h.
3880         * target.h: Add include guard.  Include insn-modes.h.
3881         * tree-ssa-live.h: Include partition.h.
3882
3883 2004-06-03  Daniel Berlin  <dberlin@dberlin.org>
3884                 Kenneth Zadeck <zadeck@naturalbridge.com>
3885
3886         * tree-ssa-ccp.c (varying_ssa_edges): New worklist.
3887         (add_var_to_ssa_edges_worklist): Add value argument.
3888         Update callers.
3889         Use new worklist.
3890         (process_ssa_edge_worklist): New function.
3891         (tree_ssa_ccp): Move worklist processing core to
3892         process_ssa_edge_worklist, and just call that for the two worklists.
3893
3894 2004-06-03  Steven Bosscher  <stevenb@suse.de>
3895
3896         * basic-block.c (tail_recursion_label_list): Don't declare.
3897         (CLEANUP_PRE_SIBCALL): Remove.  Renumber the other CLEANUP_*
3898         accordingly.
3899         * cfgbuild.c (find_label_refs): Remove.
3900         (find_basic_blocks_1): Don't handle CALL_PLACEHOLDER insns.
3901         * cfgcleanup.c (tail_recursion_label_p): Remove.
3902         (merge_blocks_move): Do not check for tail recursion.
3903         (try_optimize_cfg): Likewise.
3904         (cleanup_cfg): Never handle CLEANUP_PRE_SIBCALL.
3905         * cfgrtl.c (tail_recursion_label_list): Remove.
3906         * except.c (remove_unreachable_regions): Don't handle
3907         CALL_PLACEHOLDER insns.
3908         (convert_from_eh_region_ranges_1, can_throw_internal,
3909         can_throw_external): Likewise.
3910         * function.c (free_after_compilation): Don't clear
3911         x_tail_recursion_label.
3912         (fixup_var_refs_insns): Don't handle CALL_PLACEHOLDER insns.
3913         (identify_blocks_1): Don't recurse for CALL_PLACEHOLDER insns.
3914         (reorder_blocks_1): Likewise.
3915         * function.h (struct function): Remove x_tail_recursion_label
3916         member.  Don't define tail_recursion_label.
3917         * jump.c (mark_all_labels): Don't handle CALL_PLACEHOLDER insns.
3918         * print-rtl.c (print_rtx): Likewise.
3919         * rtl.def (CALL_PLACEHOLDER): Remove.
3920         * rtl.h (sibcall_use_t): Remove enum.
3921         (optimize_sibling_and_tail_recursive_calls,
3922         replace_call_placeholder): Remove function prototypes.
3923         * stmt.c (tail_recursion_args): Remove.
3924         (optimize_tail_recursion): Remove.
3925         (expand_return): Don't check for possible tail recursion.
3926         * tree.h (optimize_tail_recursion): Remove prototype.
3927
3928 2004-06-02  Jan Hubicka  <jh@suse.cz>
3929
3930         * tree-cfg.c (tree_find_edge_insert_loc):  Allow inserting before
3931         return_stmt.
3932
3933 2004-06-02  Jason Merrill  <jason@redhat.com>
3934
3935         * Makefile.in (TAGS): Don't mess with c-parse.[ch].
3936         Do include c-parse.in.
3937
3938 2004-06-02  Eric Christopher  <echristo@redhat.com>
3939
3940         * c-typeck.c (common_type): Don't lose type qualifiers
3941         when creating new variants.
3942
3943 2004-06-02  Andrew Pinski  <pinskia@physics.uc.edu>
3944
3945         PR tree-optimization/14042
3946         PR tree-optimization/14729
3947         PR tree-optimization/14736
3948         * tree-ssa.c (tree_ssa_useless_type_conversion_1):
3949         Check the type which the pointer points to
3950         instead of the pointer types.
3951
3952 2004-06-02  Kazu Hirata  <kazu@cs.umass.edu>
3953
3954         PR tree-optimization/15738.
3955         * builtins.c (fold_builtin_strchr): Transform
3956         strrchr (s, '\0') to strchr (s, '\0').
3957
3958 2004-06-02  Steven Bosscher  <stevenb@suse.de>
3959
3960         * i386.c (ix86_adjust_cost): Don't increase the cost for
3961         load+operation for PROCESSOR_PENTIUMPRO, it is already
3962         modelled in the DFA description
3963
3964 2004-06-01  Jerry Quinn  <jlquinn@optonline.net>
3965
3966         * Makefile.in (EXPR_H): Add insn-config.h, function.h,
3967         $(RTL_H), flags.h, $(TREE_H), $(MACHMODE_H), $(EXPR_H).
3968         (ALIAS_H, EMIT_RTL_H): New.
3969         (cselib.o): Replace EXPR_H with EMIT_RTL_H.
3970         (cfgcleanup.o): Add EMIT_RTL_H.
3971         (alias.o): Replace EXPR_H with EMIT_RTL_H and ALIAS_H.
3972         * alias.c: Replace expr.h with emit-rtl.h and alias.h.
3973         * attribs.c, c-lex.c, c-obj-common.c, c-semantics.c: Remove expr.h.
3974         * cfgcleanup.c, cselib.c: Replace expr.h with emit-rtl.h.
3975         * expr.h: Add include guard.  Include function.h, rtl.h, flags.h,
3976         tree.h, machmode.h, insn-config.h, alias.h, emit-rtl.h.
3977         (get_varargs_alias_set, get_frame_alias_set, record_base_value,
3978         record_alias_subset, new_alias_set, can_address_p): Move to alias.h.
3979         (set_mem_alias_set, set_mem_align, set_mem_expr, set_mem_offset,
3980         set_mem_size): Move to emit-rtl.h.
3981         * emit-rtl.h: New.
3982         * alias.h: New.
3983
3984 2004-06-01  Eric Botcazou  <ebotcazou@act-europe.fr>
3985
3986         * function.c (walk_fixup_memory_subreg): New parameter 'var'.
3987         Call fixup_memory_subreg only if the MEM is equal to 'var'.
3988         Adjust recursive calls to self.
3989         (fixup_var_refs_insn): Pass 'var' to walk_fixup_memory_subreg.
3990
3991 2004-06-01  Richard Henderson  <rth@redhat.com>
3992             Andrew Pinski  <pinskia@physics.uc.edu>
3993
3994         * c-parse.in (OFFSETOF, offsetof_member_designator): New.
3995         (primary): Handle offsetof.  Add error productions for faux functions.
3996         Move component_ref objc checking to build_component_ref.
3997         (reswords): Add offsetof.
3998         (rid_to_yy): Add offsetof.
3999         * c-tree.h (build_offsetof): Declare.
4000         * c-common.h (objc_is_public): Declare.
4001         * c-typeck.c (build_component_ref): Check objc_is_public.
4002         (build_offsetof): New.
4003         * stub-objc.c (objc_is_public): New.
4004         * objc/objc-act.c, objc/objc-act.h (objc_is_public): Rename
4005         from is_public.
4006         * ginclude/stddef.h (offsetof): Use __builtin_offsetof.
4007         * doc/extend.texi (Offsetof): Move from C++ section to C section
4008         and rewrite for __builtin_offsetof.
4009
4010 2004-06-01  Peter Barada  <peter@the-baradas.com>
4011             Peter Jakubek  <peter@laseranimation.com>
4012
4013         * config/m68k/m68k.c(m68k_output_mi_thunk):  For ColdFire, use %d0 as
4014         a scratch to perform an add to memory.
4015
4016 2004-06-01  Bernardo Innocenti  <bernie@develer.com>
4017
4018         PR target/14018
4019         * config/m68k/m68k.c (m68k_align_loops_string, m68k_align_jumps_string,
4020         m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
4021         m68k_align_funcs): Remove.
4022         (override_options): Remove code to handle -malign-* options.
4023         * config/m68k/m68k.h (TARGET_OPTIONS): Remove -malign-* options.
4024         (FUNCTION_BOUNDARY, LOOP_ALIGN, LOOP_ALIGN_AFTER_BARRIER): Remove.
4025         (m68k_align_loops_string, m68k_align_jumps_string,
4026         m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
4027         m68k_align_funcs): Remove definitions.
4028
4029 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
4030
4031         PR target/15626
4032         * doc/install.texi (sparc-sun-solaris2*): Document messages issued
4033         by the Sun linker in conjunction with the Sun assembler.
4034         (sparc-sun-solaris2.7): Update revision info for Sun patch 106950.
4035
4036 2004-06-01  Jeff Law  <law@redhat.com>
4037
4038         * stmt.c (expand_decl): Be more selective about calling
4039         mark_reg_pointer.
4040
4041 2004-06-01  Nicola Pero  <nicola@brainstorm.co.uk>
4042
4043         PR objc/7993
4044         * objc-act.c (is_private): Do not emit the 'instance variable %s
4045         is declared private' error.
4046         (is_public): Emit the error after calling is_private.
4047         (lookup_objc_ivar): If the instance variable is private, return 0
4048         - the instance variable is invisible here.
4049
4050 2004-06-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
4051
4052         * doc/invoke.texi (-static-libgcc): Explicitly mention
4053         non-GNU linkers.
4054
4055 2004-06-01  Bernardo Innocenti  <bernie@develer.com>
4056
4057         PR target/12968
4058         * doc/invoke.texi: Document stack alignment side-effect of -mshort.
4059
4060 2004-05-31  Joseph S. Myers  <jsm@polyomino.org.uk>
4061
4062         PR c/15749
4063         * c-decl.c (grokdeclarator, finish_struct): Don't pedwarn for
4064         misuses of structures with flexible array members if
4065         in_system_header.
4066
4067 2004-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
4068
4069         PR target/15693
4070         * config/sparc/sparc.c (compare_operand): New predicate.
4071         * config/sparc/sparc.h (PREDICATE_CODES): Add it.
4072         * config/sparc/sparc.md (cmpsi expander): Use it.  If the first
4073         operand is a ZERO_EXTRACT and the second operand is not zero,
4074         force the former to a register.
4075         (cmpdi expander): Likewise.
4076
4077 2004-05-31  Geoffrey Keating  <geoffk@apple.com>
4078
4079         * gengtype-lex.l: Catch stray GTY markers in the files gengtype
4080         looks at.
4081         * alias.c (alias_invariant_size): Make alias_invariant_size
4082         static, fix GTY marker.
4083
4084 2004-05-31  Kazu Hirata  <kazu@cs.umass.edu>
4085
4086         PR tree-optimization/15743.
4087         * builtins.c (fold_builtin_1): Fold index() and rindex().
4088
4089 2004-05-31  Roger Sayle  <roger@eyesopen.com>
4090
4091         PR middle-end/15069
4092         * fold-const.c (fold_single_bit_test): Only perform "(X & C) != 0"
4093         into "X < 0" (where C is the signbit) if X's type is a full mode.
4094
4095 2004-05-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4096
4097         * pa.md: Disable the peephole2 patterns that generate indexed
4098         floating-point stores when indexing is disabled.
4099
4100 2004-05-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4101
4102         * c-pretty-print.c (pp_c_left_bracket): Make a function.
4103         (pp_c_right_bracket): Likewise.
4104         (pp_c_star): Likewise.
4105         (pp_c_ampersand): Define.
4106         * c-pretty-print.h (pp_c_left_bracket): Declare.
4107         (pp_c_right_bracket): Likewise.
4108         (pp_c_star): Likewise.
4109         (pp_c_ampersand): Likewise.
4110
4111 2004-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
4112
4113         * config/sol2.h (__enable_execute_stack): ANSIfy function
4114         definition.
4115
4116 2004-05-31  Danny Smith  <dannysmith@users.sourceforge.net>
4117
4118         * c-incpath.c (add_path): Canonicalize paths to use '/' if
4119         HAVE_DOS_BASED_FILESYSTEM.
4120
4121 2004-05-31  Steven Bosscher  <stevenb@suse.de>
4122
4123         * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
4124         Only look at case labels if the immediate dominator is also
4125         the only predecessor.  Don't look for more case labels if the
4126         first seen is a case range.
4127
4128 2004-05-31  Kazu Hirata  <kazu@cs.umass.edu>
4129
4130         * builtins.c: Add a prototype for fold_builtin_strchr().
4131
4132 2004-05-31  Paolo Bonzini  <bonzini@gnu.org>
4133
4134         Revert this patch:
4135         2004-05-27  Paolo Bonzini  <bonzini@gnu.org>
4136
4137         * combine.c (gen_binary): Remove.
4138         (known_cond, simplify_shift_const
4139         find_split_point, combine_simplify_rtx,
4140         simplify_if_then_else, simplify_set,
4141         simplify_logical, expand_field_assignment,
4142         extract_left_shift, force_to_mode,
4143         if_then_else_cond, apply_distributive_law,
4144         simplify_and_const_int, simplify_shift_const,
4145         gen_lowpart_for_combine, simplify_comparison,
4146         reversed_comparison): Replace with
4147         simplify_gen_binary, simplify_gen_relational or
4148         distribute_and_simplify_rtx.
4149         (distribute_and_simplify_rtx): New function.
4150
4151 2004-05-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4152
4153         * pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands
4154         when generating PIC code.
4155
4156 2004-05-30  Andrew Pinski  <pinskia@physics.uc.edu>
4157
4158         * c-decl.c (c_expand_body_1): Remove and fold back into ...
4159         (c_expand_body): here.
4160         (c_expand_decl): Move to ...
4161         * c-common.c (c_expand_decl): Here and remove check for nested
4162         functions.
4163         * c-common.h (c_expand_decl): Add prototype.
4164         * c-tree.h (c_expand_decl): Remove.
4165
4166 2004-05-30  Roger Sayle  <roger@eyesopen.com>
4167
4168         * fold-const.c (combine_comparisons, optimize_bit_field_compare,
4169         range_binop, fold_truthop, fold_binary_op_with_conditional_arg,
4170         fold_mathfn_compare, fold_inf_compare, fold,
4171         fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
4172         Use constant_boolean_node where appropriate.  Don't bother using
4173         fold_convert on the second argument to omit_one_operand.
4174
4175 2004-05-30  Roger Sayle  <roger@eyesopen.com>
4176
4177         * doc/c-tree.texi (Expressions): Document FLOOR_DIV_EXPR,
4178         CEIL_DIV_EXPR, ROUND_DIV_EXPR, FLOOR_MOD_EXPR, CEIL_MOD_EXPR,
4179         ROUND_MOD_EXPR, EXACT_DIV_EXPR.  Improve documentation of
4180         TRUNC_DIV_EXPR, TRUNC_MOD_EXPR and comparison operations.
4181         Add missing (but documented) tree nodes to the index.
4182
4183 2004-05-30  Steven Bosscher  <stevenb@suse.de>
4184
4185         PR tree-optimization/14819
4186         * builtins.c (fold_builtin_strchr): New.
4187         (fold_builtin_1): Handle BUILT_IN_STRCHR and BUILT_IN_STRRCHR
4188         with fold_builtin_strchr().
4189
4190 2004-05-30  Kazu Hirata  <kazu@cs.umass.edu>
4191
4192         * bb-reorder.c, builtins.c, c-common.c, c-gimplify.c,
4193         c-incpath.c, cgraphunit.c, ddg.c, defaults.h, dwarf2out.c,
4194         expmed.c, flags.h, gcc.c, gensupport.c, gimplify.c, global.c,
4195         passes.c, reg-stack.c, target.h, toplev.c, tree-alias-ander.c,
4196         tree-alias-common.c, tree-cfg.c, tree-complex.c, tree-dfa.c,
4197         tree-eh.c, tree-mudflap.c, tree-mudflap.h, tree-outof-ssa.c,
4198         tree-phinodes.c, tree-pretty-print.c, tree-ssa-alias.c,
4199         tree-ssa-ccp.c, tree-ssa-live.c, tree-ssa-live.h,
4200         tree-ssa-pre.c, tree.h, value-prof.h, varasm.c: Fix comment
4201         formatting.
4202
4203 2004-05-30  Steven Bosscher  <stevenb@suse.de>
4204
4205         * gimplify.c (sort_case_labels): New.  Split out from...
4206         (gimplify_switch_expr): ...here.  Use it.
4207         * tree-eh.c (lower_try_finally_switch): Sort the labels of
4208         the SWITCH_EXPR created here before leaving the function.
4209         * tree.c (sort_case_labels): Add prototype.
4210
4211 2004-05-30  Andrew Pinski  <pinskia@physics.uc.edu>
4212
4213         * fold-const.c (fold) [case TRUTH_NOT_EXPR]: Make sure the type is
4214         of BOOLEAN_TYPE.
4215
4216 2004-05-30  Kazu Hirata  <kazu@cs.umass.edu>
4217
4218         * c-common.c, calls.c, cfgcleanup.c, cgraph.c, cgraphunit.c,
4219         ddg.c, ddg.h, df.c, df.h, except.c, expr.c, flags.h,
4220         fold-const.c, gcc.c, gimplify.c, haifa-sched.c,
4221         modulo-sched.c, tree-inline.c, tree-into-ssa.c, tree-nested.c,
4222         tree-nrv.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-live.c,
4223         tree-ssa-loop.c, tree-ssa-pre.c, tree-tailcall.c, tree.h: Fix
4224         comment typos.  Follow spelling conventions.
4225
4226 2004-05-29  Geoffrey Keating  <geoffk@apple.com>
4227
4228         * gengtype-yacc.y: Add NESTED_PTR token.
4229         (option): Record `nested_ptr' option.
4230         * gengtype-lex.l: Handle `nested_ptr' keyword.
4231         * gengtype.c (walk_type): Process `nested_ptr' option.
4232         * gengtype.h (struct nested_ptr_data): New.
4233         * doc/gty.texi (GTY Options): Document `nested_ptr' option.
4234         * stringpool.c (struct string_pool_data): Make 'entries' point to
4235         ht_identifier instead of tree.
4236         (gt_pch_save_stringpool): Don't adjust pointers.
4237         (gt_pch_restore_stringpool): Call ht_load.
4238
4239 2004-05-29  Jason Merrill  <jason@redhat.com>
4240
4241         * gimplify.c (gimplify_expr): Don't build a statement list
4242         if no gimplification was necessary.
4243
4244 2004-05-29  Joseph S. Myers  <jsm@polyomino.org.uk>
4245
4246         * pretty-print.c (pp_base_format_text): Support %< instead of %`
4247         and %> as well as %'.
4248         * c-format.c: Use %< and %>.
4249         (gcc_diag_char_table, gcc_cdiag_char_table,
4250         gcc_cxxdiag_char_table): Update.
4251
4252 2004-05-29  Joseph S. Myers  <jsm@polyomino.org.uk>
4253
4254         * c-typeck.c (common_type): Correct comment.
4255
4256 2004-05-29  Peter Barada  <peter@the-baradas.com>
4257
4258         * config/m68k/m68k.c (CONST_METHOD): Add MVZ, MVS.
4259         * config/m68k/m68k.c (const_method): Likewise.
4260         * config/m68k/m68k.c (const_int_cost): Likewise.
4261         * config/m68k/m68k.c (const_int_cost): Likewise.
4262         * config/m68k/m68k.c (output_move_const_into_data_reg): Likewise.
4263
4264 2004-05-29  Peter Barada  <peter@the-baradas.com>
4265
4266         * config/m68k/m68k.h (EXTRA_CONSTRAINT): add 'U' for register offset
4267         addressing.
4268         * config/m68k/m68k.md: Add 'U,U' alternative to ColdFire variants of
4269         movsi,movhi,movqi insn patterns.
4270
4271 2004-05-28  Andrew Pinski  <pinskia@physics.uc.edu>
4272
4273         * c-semantics.c (emit_local_var): Remove code for DECL_INITIAL.
4274
4275         PR target/15720
4276         * config/darwin.c (machopic_indirect_call_target): Copy
4277         the SYMBOL_REF_DECL from the original RTX for the new
4278         stub RTX.
4279
4280 2004-05-28  DJ Delorie  <dj@redhat.com>
4281
4282         * stor-layout.c (place_field): Revert erroneous commit.
4283
4284 2004-05-28  Ziemowit Laski  <zlaski@apple.com>
4285
4286         * config/rs6000/altivec.h (vec_ctf, vec_vcfsx, vec_vcfux, vec_cts,
4287         vec_ctu, vec_dss, vec_dst, vec_dstst, vec_dststt, vec_dstt, vec_ld,
4288         vec_ldl, vec_lvsl, vec_lvsr, vec_sld, vec_splat, vec_vspltw,
4289         vec_vsplth, vec_vspltb, vec_splat_s8, vec_splat_s16, vec_splat_s32,
4290         vec_splat_u8, vec_splat_u16, vec_splat_u32, vec_st, vec_stl,
4291         vec_ste): Remove type checks for integral parameters and literals
4292         from '..._args_eq' macros.
4293
4294 2004-05-28  Aldy Hernandez  <aldyh@redhat.com>
4295
4296         * c-common.c (fname_as_string): Fix xcalloc to xmalloc.
4297
4298 2004-05-28  Aldy Hernandez  <aldyh@redhat.com>
4299
4300         * testsuite/g++.dg/charset/function.cc: New.
4301
4302         * testsuite/gcc.dg/charset/function.c: New.
4303
4304         * c-decl.c (c_make_fname_decl): Free return value from
4305         fname_as_string.
4306
4307         * cp/decl.c (cp_make_fname_decl): Free return value from
4308         fname_as_string.
4309
4310         * c-common.c (fname_as_string): Translate if necessary.
4311
4312 2004-05-28  Geoffrey Keating  <geoffk@apple.com>
4313
4314         * stringpool.c: Add comments to PCH saving/restoring routines.
4315
4316 2004-05-28  Andrew Pinski  <pinskia@physics.uc.edu>
4317
4318         * c-common.c (c_estimate_num_insns_1): Kill.
4319         (c_estimate_num_insns): Kill.
4320         * c-common.h (c_estimate_num_insns): Kill.
4321
4322         * gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING
4323         when checking for _POSIX_THREAD_PRIORITY_SCHEDULING.
4324         Remove comment about not checking for
4325         _POSIX_PRIORITY_SCHEDULING.
4326         * gthr-posix.c: Likewise.
4327
4328 2004-05-28  Paolo Bonzini  <bonzini@gnu.org>
4329             Roger Sayle  <roger@eyesopen.com>
4330
4331         PR rtl-optimization/15649
4332         Add LTGT_EXPR and improve pretty-printing of unordered
4333         comparisons.
4334         * c-common.c (c_common_truthvalue_conversion):
4335         Handle LTGT_EXPR.
4336         * c-typeck.c (build_binary_op): Likewise.
4337         * dojump.c (do_jump): Likewise.
4338         * expr.c (expand_expr_real_1, do_store_flag): Likewise.
4339         * predict.c (tree_predict_by_opcode): Likewise.
4340         * real.c (real_compare): Likewise.
4341         * tree-cfg.c (verify_expr): Likewise.
4342         * tree-inline.c (estimate_num_insns_1): Likewise.
4343         * tree-pretty-print.c (dump_generic_node): Likewise.
4344         Handle ORDERED_EXPR, UNORDERED_EXPR.
4345         (op_symbol): Print unordered comparisons differently
4346         than ordered ones.
4347         * tree.def (LTGT_EXPR): New '<' tree code.
4348         * doc/c-tree.texi (Expressions): Document floating-point
4349         comparison nodes.
4350
4351         Fold comparisons between floating point values.
4352         * fold-const.c (enum comparison_code): New, from
4353         #define'd constants.  Define compcodes for unordered
4354         comparisons and for invalid transformations.
4355         (invert_tree_comparison): Add "honor_nans" parameter.
4356         (fold_truthop): Revamp to work on floating-point types too.
4357         (comparison_to_compcode): Support unordered comparisons.
4358         Use new enum comparison_code.
4359         (compcode_to_comparison): Likewise.
4360         (combine_compcodes): New function.
4361         (invert_truthvalue): Let invert_tree_comparison decide
4362         whether it is valid to fold the comparison.  Fold ORDERED
4363         and UNORDERED even if flag_unsafe_math_optimizations is off,
4364         and the remaining even if flag_unsafe_math_optimizations
4365         is off but we are under -fno-trapping-math.
4366         (fold_relational_const): Integer modes do not honor NaNs.
4367
4368 2004-05-28  Paul Brook  <paul@codesourcery.com>
4369
4370         * config/arm/arm.c (arm_output_epilogue): Remove redundant code.
4371
4372 2004-05-28  Paul Brook  <paul@codesourcery.com>
4373
4374         * config/arm/arm.c (thumb_force_lr_save): New function.
4375         (arm_get_frame_offsets, thumb_unexpanded_epilogue,
4376         thumb_output_function_prologue): Use it.
4377         (thumb_expand_prologue): Set lr_save_eliminated.
4378
4379 2004-05-28  Richard Sandiford  <rsandifo@redhat.com>
4380
4381         * config/mips/mips.md (extendsidi2): Tie the source and destination
4382         of the register alternative.  Split it into nothing.
4383
4384 2004-05-28  Richard Sandiford  <rsandifo@redhat.com>
4385
4386         * rtl.h (skip_consecutive_labels): Declare.
4387         * emit-rtl.c (skip_consecutive_labels): New function.
4388         * reorg.c (relax_delay_slots, dbr_schedule): Use it.
4389         * jump.c (follow_jumps): Say what null return values mean.
4390
4391 2004-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
4392
4393         PR target/13250
4394         * config/sh/sh.md (rotlsi3): Use emit_move_insn.
4395
4396 2004-05-27  Kaz Kojima  <kkojima@gcc.gnu.org>
4397
4398         * config/sh/t-linux (SHLIB_MAPFILES): Use sh specific
4399         libgcc-std.ver.
4400         * config/sh/libgcc-std.ver: New file.
4401
4402 2004-05-27  Bryce McKinlay  <mckinlay@redhat.com>
4403
4404         * except.c: Revert change of 2004-05-26.
4405         * config/i386/i386.md: Revert change of 2004-05-27.
4406
4407 2004-05-27  Bryce McKinlay  <mckinlay@redhat.com>
4408
4409         * configure.ac: Remove --enable-tree-browser option.
4410         Define TREEBROWSER when ac_tree_checking is defined.
4411         * configure: Rebuilt.
4412
4413 2004-05-27  Olivier Hainque  <hainque@act-europe.fr>
4414
4415         * expr.c (store_constructor): Restore sanity check on
4416         the size of the type before clearing.
4417
4418 2004-05-27  Jan Hubicka  <jh@suse.cz>
4419
4420         * cfgbuild.c (control_flow_insn_p):  Notice noreturn call
4421
4422 2004-05-27  Paolo Bonzini  <bonzini@gnu.org>
4423
4424         * combine.c (gen_binary): Remove.
4425         (known_cond, simplify_shift_const
4426         find_split_point, combine_simplify_rtx,
4427         simplify_if_then_else, simplify_set,
4428         simplify_logical, expand_field_assignment,
4429         extract_left_shift, force_to_mode,
4430         if_then_else_cond, apply_distributive_law,
4431         simplify_and_const_int, simplify_shift_const,
4432         gen_lowpart_for_combine, simplify_comparison,
4433         reversed_comparison): Replace with
4434         simplify_gen_binary, simplify_gen_relational or
4435         distribute_and_simplify_rtx.
4436         (distribute_and_simplify_rtx): New function.
4437         * simplify-rtx.c (simplify_binary_operation):
4438         Use nonzero_bits to simplify ANDs where we are
4439         turning off bits already known to be off in OP0.
4440
4441 2004-05-27  Alan Modra  <amodra@bigpond.net.au>
4442
4443         PR target/14478
4444         * config/rs6000/rs6000.c (reg_or_neg_short_operand): Don't allow zero.
4445
4446 2004-05-27  Josef Zlomek  <zlomekj@suse.cz>
4447
4448         PR middle-end/14084
4449         * emit-rtl.c (gen_rtx_REG_offset): Adjust the offset according
4450         to size of decl.
4451
4452 2004-05-26  Aldy Hernandez  <aldyh@redhat.com>
4453
4454         PR/14924
4455         * config/rs6000/rs6000.c (spe_expand_stv_builtin): New.
4456
4457 2004-05-26  Roger Sayle  <roger@eyesopen.com>
4458
4459         * tree.h: Fix comment typo.
4460
4461 2004-05-27  Steven Bosscher  <stevenb@suse.de>
4462
4463         * gimplify.c (compare_case_labels): New function.
4464         (gimplify_switch_expr): Sort case labels, and make sure the
4465         last label in the label vector is the default case.
4466         * tree-cfg.c (group_case_labels): New function.
4467         (build_tree_cfg): Cleanup redundant labels and group case labels
4468         before creating edges.
4469         (cleanup_dead_labels): Handle GOTO_EXPRs.
4470         (find_case_label_for_value): Use a binary search to find the
4471         case label for the given value.
4472         * tree-gimple.c: Mention that labels are sorted, and that the
4473         last label must be the default.
4474
4475 2004-05-27  Jan Hubicka  <jh@suse.cz>
4476
4477         * cfgcleanup.c (try_optimize_cfg): Do not merge across jumptables.
4478
4479 2004-05-27  Jan Hubicka  <jh@suse.cz>
4480
4481         * i386.md (UNSPECV_EH_RETURN): Kill.
4482         (eh_return): Use jump_insn.
4483         (eh_return_si, eh_return_di): Change pattern to jump instruction.
4484
4485 2004-05-26  Jan Hubicka  <jh@suse.cz>
4486
4487         * cfgcleanup.c (try_forward_edges):  Do not check loop structure when
4488         not loop optimizing.
4489
4490 2004-05-26  Jan Hubicka  <jh@suse.cz>
4491
4492         * except.c (can_throw_internal):  Notice RESX instructions.
4493
4494 2004-05-26  Eric Botcazou  <ebotcazou@act-europe.fr>
4495
4496         * varasm.c (output_constant) <INTEGER_TYPE>: Pass the minimum
4497         of the two sizes to assemble_integer.
4498
4499 2004-05-25  Paul Brook  <paul@codesourcery.com>
4500
4501         * config/arm/arm.c (thumb_exit, thumb_unexpanded_epilogue): Remove
4502         pointless #ifdef.
4503
4504 2004-04-25  Paolo Bonzini  <bonzini@gnu.org>
4505
4506         * Makefile.in (top_builddir): Define to .
4507
4508 2004-05-25  Alexandre Oliva  <aoliva@redhat.com>
4509
4510         * configure.ac (gcc_cv_ld): Prefer in-tree ld over whatever the
4511         top-level detects, except when in-tree ld is being cross-built.
4512         (gcc_cv_as): Likewise for as.  Use AS_FOR_TARGET otherwise, and
4513         then AS only if target is host.
4514         * configure: Rebuilt.
4515
4516 2004-05-25  Vladimir Makarov  <vmakarov@redhat.com>
4517
4518         * global.c (global_alloc): Call make_accurate_live_analysis.
4519         (record_one_conflict): Remove dead code.
4520         (mark_reg_clobber): Remove ATTRIBUTE_UNUSED for parameter data.
4521         (bb_info): New structure.
4522         (BB_INFO, BB_INFO_BY_INDEX): New macros.
4523         (allocate_bb_info, free_bb_info, mark_reg_change,
4524         calculate_local_reg_bb_info, set_up_bb_rts_numbers, rpost_cmp,
4525         modify_bb_reg_pav, calculate_reg_pav,
4526         make_accurate_live_analysis): New functions.
4527
4528 2004-05-25  Devang Patel  <dpatel@apple.com>
4529
4530         * alias.c (init_alias_analysis): Use ggc_calloc instead of
4531         xrealloc.
4532         (end_alias_analysis): Use ggc_free instead fo free.
4533
4534 2004-05-25  Andrew Pinski  <pinskia@physics.uc.edu>
4535
4536         PR target/15546
4537         * config/ia64/ia64.h (ASM_OUTPUT_FDESC): Mark the DECL
4538         as needed to be outputted.
4539
4540 2004-05-25  Jan Hubicka  <jh@suse.cz>
4541
4542         * builtins.def (__builtin_expect):  Mark the function as const&nothrow.
4543
4544 2004-05-25  Ayal Zaks  <zaks@il.ibm.com>
4545         Mostafa Hagog  <mustafa@il.ibm.com>
4546
4547         * Makefile.in (modulo-sched.o, ddg.o): New.
4548         * ddg.h, ddg.c, modulo-sched.c: New files.
4549         * cfglayout.c (duplicate_insn_chain): Remove "static" and push
4550         internals to "dupicate_insn".
4551         (duplicate_insn): New function.
4552         * cfglayout.h (duplicate_insn_chain, duplicate_insn): New
4553         declarations.
4554         * common.opt (fmodulo-sched): New flag.
4555         * df.c (df_bb_regno_last_use_find, df_bb_regno_first_def_find):
4556         Remove static and forward declaration.
4557         (df_find_def, df_reg_used, df_bb_regno_last_def_find): New
4558         functions.
4559         * df.h (df_bb_regno_last_use_find, df_bb_regno_first_def_find,
4560         df_bb_regno_last_def_find, df_find_def, df_reg_used): New
4561         declarations.
4562         * flags.h (flag_modulo_sched): New flag.
4563         * opts.c (common_handle_option): Handle modulo-sched flag.
4564         * params.def (max-sms-loop-number, sms-max-ii-factor,
4565         sms-dfa-history, sms-loop-average-count-threshold): New
4566         parameters.
4567         * params.h (MAX_SMS_LOOP_NUMBER, SMS_MAX_II_FACTOR,
4568         SMS_DFA_HISTORY, SMS_LOOP_AVERAGE_COUNT_THRESHOLD): New
4569         parameters.
4570         * passes.c ("sms", "sms-vcg"): New dumps.
4571         (rest_of_handle_sched): Call sms_schedule.
4572         * rtl.h (sms_schedule): New declaration.
4573         * timevar.def (TV_SMS): New.
4574         * toplev.c (flag_modulo_sched): Initialize.
4575         (f_options): Handle -fmodulo-sched option.
4576         * docs/invoke.texi: Document -fmodulo-sched & -dm options.
4577         * docs/passes.texi: Document new SMS pass.
4578
4579 2004-05-25  Paolo Bonzini  <bonzini@gnu.org>
4580
4581         * Makefile.in (OBJS): Add rtlhooks.o.
4582         (rtlanal.o): Depend on function.h.
4583         (cse.o): Depend on rtlhooks-def.h.
4584         (combine.o): Depend on rtlhooks-def.h.
4585         (rtlhooks.o): New rule.
4586         * combine.c: Include rtlhooks-def.h.
4587         (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
4588         num_sign_bit_copies, cached_num_sign_bit_copies,
4589         num_sign_bit_copies1): Move most of the code to rtlanal.c.
4590         (reg_nonzero_bits_for_combine,
4591         reg_num_sign_bit_copies_for_combine): New functions holding
4592         the remnants of the above.
4593         (combine_rtl_hooks): New.
4594         (combine_instructions): Set rtl_hooks instead of gen_lowpart.
4595         * cse.c: Include rtlhooks-def.h.
4596         (cse_rtl_hooks): New.
4597         (cse_main): Set rtl_hooks instead of gen_lowpart.
4598         * emit-rtl.c (gen_lowpart): Remove.
4599         (gen_lowpart_general): Move to rtlhooks.c.
4600         * rtl.h (nonzero_bits, num_sign_bit_copies,
4601         struct rtl_hooks, rtl_hooks, general_rtl_hooks): New.
4602         (gen_lowpart_general): Remove.
4603         (gen_lowpart): Temporarily redefine as a macro.
4604         * rtlanal.c: Include function.h.
4605         (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
4606         num_sign_bit_copies, cached_num_sign_bit_copies,
4607         num_sign_bit_copies1): New, from combine.c.
4608         * rtlhooks.c: New file.
4609         * rtlhooks-def.h: New file.
4610
4611 2004-05-25  Svein E. Seldal  <Svein.Seldal@solidas.com>
4612
4613         * config/avr/avr.h (LONG_LONG_TYPE_SIZE): Changed long long type
4614         to support 32-bit -mint8 mode.
4615
4616         * doc/invoke.texi (-mint8): Added documentation for the -mint8
4617         option in the AVR architecture.
4618
4619 2004-05-24  Mike Stump  <mrs@apple.com>
4620
4621         * doc/install.texi: Document that dejagnu 1.4.4 is required.
4622
4623 2004-05-24  Joseph S. Myers  <jsm@polyomino.org.uk>
4624
4625         * intl.h (open_quote, close_quote): New.
4626         * intl.c (open_quote, close_quote): New.
4627         (gcc_init_libintl): Set them.
4628         * pretty-print.c: Include "intl.h".
4629         (pp_base_format_text): Support 'q' format flag and %` and %'
4630         formats.  Use ' instead of ` in comments.
4631         * c-format.c (gcc_diag_flag_specs, gcc_cxxdiag_flag_specs,
4632         gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table,
4633         foramt_types_orig): Describe these new formats.
4634         (decode_format_attr, check_function_format,
4635         check_format_info_main): Use these new formats.
4636         (status_warning): Use ATTRIBUTE_GCC_DIAG.
4637         * toplev.c (ATTRIBUTE_GCC_DIAG): Increase required GCC version to
4638         check these formats to 3.5.
4639
4640 2004-05-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4641
4642         * Makefile.in (CPPLIBS): Renamed to CPPLIB.
4643         (BACKEND): Reflect this.
4644         (LIBDEPS): Move CPPLIB before LIBIBERTY.
4645         (LIBS): Likewise.
4646
4647 2004-05-24  Ulrich Weigand  <uweigand@de.ibm.com>
4648
4649         PR tree-optimization/14197
4650         * builtins.c: Include "tree-gimple.h"
4651         (readonly_data_expr): Use get_base_address.  Make sure to call
4652         decl_readonly_section only on trees it can handle.
4653         * tree-gimple.c (get_base_address): Accept STRING_CST and
4654         CONSTRUCTOR expressions.
4655         * Makefile.in: Update dependencies.
4656
4657 2004-05-23  Paolo Bonzini  <bonzini@gnu.org>
4658
4659         Move libcpp to the toplevel.
4660         * Makefile.in: Remove references to libcpp files,
4661         use CPPLIBS instead of libcpp.a.  Define SYMTAB_H
4662         and change hashtable.h to that.
4663         * aclocal.m4 (gcc_AC_HEADER_STDBOOL,
4664         gcc_AC_HEADER_STRING, gcc_AC_C__BOOL): Remove.
4665         * configure.ac (gcc_AC_C__BOOL, HAVE_UCHAR): Remove tests.
4666         * configure: Regenerate.
4667         * config.in: Regenerate.
4668         * c-ppoutput.c: Include ../libcpp/internal.h instead of cpphash.h.
4669         * cppcharset.c: Removed.
4670         * cpperror.c: Removed.
4671         * cppexp.c: Removed.
4672         * cppfiles.c: Removed.
4673         * cpphash.c: Removed.
4674         * cpphash.h: Removed.
4675         * cppinit.c: Removed.
4676         * cpplex.c: Removed.
4677         * cpplib.c: Removed.
4678         * cpplib.h: Removed.
4679         * cppmacro.c: Removed.
4680         * cpppch.c: Removed.
4681         * cpptrad.c: Removed.
4682         * cppucnid.h: Removed.
4683         * cppucnid.pl: Removed.
4684         * cppucnid.tab: Removed.
4685         * hashtable.c: Removed.
4686         * hashtable.h: Removed.
4687         * line-map.c: Removed.
4688         * line-map.h: Removed.
4689         * mkdeps.c: Removed.
4690         * mkdeps.h: Removed.
4691         * stringpool.h: Include symtab.h instead of hashtable.h.
4692         * tree.h: Include symtab.h instead of hashtable.h.
4693         * system.h (O_NONBLOCK, O_NOCTTY): Do not define.
4694
4695 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
4696
4697         * gcc.c (struct prefix_list): Add forward declaration.
4698         (do_spec_path): New function, extracted from...
4699         (do_spec_1) <'D'>: ... here.  Drop support for
4700         SPACE_AFTER_L_OPTION.
4701         (do_spec_1) <'I'>: Use do_spec_path.
4702         (process_command): Do not store the 'include' suffix
4703         in include_prefixes.
4704         * system.h: Poison SPACE_AFTER_L_OPTION.
4705
4706 2002-05-23  Roger Sayle  <roger@eyesopen.com>
4707
4708         * fold-const.c (non_lvalue): Explicitly list the tree codes that
4709         need to be wrapped by NON_LVALUE_EXPR, instead of those that don't.
4710
4711 2004-05-23  Joseph S. Myers  <jsm@polyomino.org.uk>
4712
4713         * doc/gcc.texi, doc/gccint.texi, doc/include/gcc-common.texi:
4714         Update based on printed manual.  Enable setting of offsets for
4715         FSFPRINT and move it to gcc-common.texi.
4716         * doc/gcc.texi: Update FSF printing details.
4717         * doc/gccint.texi: Remove FSF printing details.
4718
4719 2004-05-23  Andrew Pinski  <pinskia@physics.uc.edu>
4720
4721         * config/rs6000/t-rs6000: Remove the disabling -Werror.
4722
4723 2004-05-22  Roger Sayle  <roger@eyesopen.com>
4724
4725         * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
4726         expand_builtin_strrchr, expand_builtin_strpbrk,
4727         expand_builtin_mempcpy, expand_builtin_memcmp,
4728         expand_builtin_strcmp, expand_builtin_strncmp,
4729         expand_builtin_strcat, std_expand_builtin_va_start,
4730         std_expand_builtin_va_arg, expand_builtin_va_copy,
4731         expand_builtin_signbit, fold_builtin_cabs,
4732         fold_builtin_logarithm, fold_builtin_mempcpy,
4733         fold_builtin_signbit, fold_builtin_isascii,
4734         fold_builtin_toascii, fold_builtin_isdigit,
4735         fold_builtin_1, build_function_call_expr,
4736         simplify_builtin_strchr, simplify_builtin_strrchr,
4737         simplify_builtin_strpbrk, simplify_builtin_strncpy,
4738         simplify_builtin_memcmp, simplify_builtin_strcmp,
4739         simplify_builtin_strncmp, simplify_builtin_strncat,
4740         simplify_builtin_strspn, simplify_builtin_strcspn,
4741         simplify_builtin_fputs, simplify_builtin_sprintf): Replace calls
4742         to build with calls to build2, build3 or omit_one_operand.
4743
4744 2004-05-22  Richard Sandiford  <rsandifo@redhat.com>
4745
4746         * config/mips/mips.c (mips_file_start): Emit a .gcc_compiled_longXX
4747         section when generating EABI code.
4748
4749 2004-05-22  Andrew Pinski  <pinskia@physics.uc.edu>
4750
4751         PR 15546
4752         * config/i386/i386.c (output_pic_addr_const <case SYMBOL_REF>):
4753         Call mark_decl_referenced on the SYMBOL_REF_DECL.
4754
4755 2004-05-22  Andrew Pinski  <pinskia@physics.uc.edu>
4756
4757         * c-common.c (c_common_truthvalue_conversion): Handle
4758         UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR,
4759         ORDERED_EXPR, and UNORDERED_EXPR as comparison operators,
4760         i.e. set the type to truthvalue_type_node and return.
4761
4762 2004-05-22  Zack Weinberg  <zack@codesourcery.com>
4763
4764        * tree.h (struct tree_decl): Add possibly_inlined bit.
4765         (DECL_POSSIBLY_INLINED): New accessor macro.
4766         * cgraph.h: Remove declaration of cgraph_inline_hash.
4767         * cgraph.c: Remove definition of cgraph_inline_hash.
4768         (hash_node): Revert to hashing DECL_UID.
4769         (eq_node): Take two pointers to cgraph_node structures.
4770         Compare DECL_UIDs.
4771         (cgraph_remove_node): Pass the node directly to htab_find_slot.
4772         (cgraph_varpool_hash_node): Rename hash_varpool_node;
4773         hash on DECL_UID.
4774         (eq_cgraph_varpool_node): Rename eq_varpool_node; take two
4775         pointers to cgraph_varpool_node structures; compare DECL_UIDs.
4776         (cgraph_node): Allocate a temporary node on the stack, fill in
4777         its DECL field, and pass that to htab_find_slot.
4778         (cgraph_varpool_node): Likewise.
4779         (cgraph_function_possibly_inlined_p): If global info is ready,
4780         return the DECL_POSSIBLY_INLINED bit.
4781         * cgraphunit.c (cgraph_mark_inline_edge): Set DECL_POSSIBLY_INLINED
4782         instead of mucking with cgraph_inline_hash.
4783
4784 2004-05-22  Joseph S. Myers  <jsm@polyomino.org.uk>
4785
4786         * doc/contrib.texi: Add g77 contributors.
4787
4788 2004-05-22  Richard Sandiford  <rsandifo@redhat.com>
4789
4790         * calls.c (initialize_argument_information): Forbid sibcalls if a
4791         callee-copied argument is stored in the current function's frame.
4792
4793 2004-05-22  Eric Christopher  <echristo@redhat.com>
4794
4795         * fix-header.c (read_scan_file): Update for add_path change.
4796
4797 2004-05-22  Ben Elliston  <bje@au.ibm.com>
4798
4799         * c.opt (Wmissing-include-dirs): New.
4800         * c-opts.c (c_common_handle_option): Pass true for user_supplied_p
4801         to add_path () for -I, but false for OPT_idirafter, OPT_iquote and
4802         OPT_isystem. Handle case OPT_Wmissing_include_dirs.
4803         * c-incpath.h (add_path): Add fourth (bool) argument.
4804         * c-incpath.c (add_env_var_paths): Pass false to add_path ().
4805         (add_standard_paths): Likewise.
4806         (remove_duplicates) [REASON_NOENT]: Warn if -Wmissing-include-dirs
4807         is used and the directory was user-supplied via -I.
4808         (add_path): Set p->user_supplied_p.  Remove duplicated code by
4809         using add_cpp_dir_path ().
4810         * cpplib.h (struct cpp_options): Add warn_missing_include_dirs.
4811         (struct cpp_dir): Add user_supplied_p.
4812         * doc/invoke.texi (Warning Options): Document new option.
4813
4814 2004-05-21  Ulrich Weigand  <uweigand@de.ibm.com>
4815
4816         * fold-const.c (fold_read_from_constant_string): Convert result to
4817         requested type.
4818
4819 2004-05-21  Richard Henderson  <rth@redhat.com>
4820
4821         * gimplify.c (mostly_copy_tree_r): Don't attempt to copy decls.
4822         (copy_if_shared_r): Don't copy decls, types, constants, BINDs.
4823         Don't mark VA_ARG_EXPRs volatile here.
4824         (gimplify_modify_expr): Unshare TYPE_SIZE_UNIT.
4825
4826 2004-05-21  Richard Henderson  <rth@redhat.com>
4827
4828         * Makefile.in (tree-dump.o): Depend on tree-iterator.h.
4829         * tree-dump.c (dequeue_and_dump): Dump STATEMENT_LISTs.
4830
4831 2004-05-21  Roger Sayle  <roger@eyesopen.com>
4832
4833         * fold-const.c (fold, fold_relational_hi_lo,
4834         nondestructive_fold_binary_to_constant,
4835         fold_read_from_constant_string): Use fold_convert instead of convert.
4836         * builtins.c (simplify_builtin, simplify_builtin_strstr,
4837         simplify_builtin_strchr, simplify_builtin_strrchr,
4838         simplify_builtin_strpbrk): Use fold_convert instead of convert.
4839
4840 2004-05-21  Diego Novillo  <dnovillo@redhat.com>
4841
4842         * tree-flow-inline.h (num_immediate_uses): Don't abort if DF
4843         is NULL.
4844
4845 2004-05-21  Jakub Jelinek  <jakub@redhat.com>
4846
4847         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): If SPARC_BI_ARCH,
4848         override sparc.h definition.
4849
4850 2004-05-20  Roger Sayle  <roger@eyesopen.com>
4851
4852         * tree.c (array_type_nelts, save_expr, substitute_in_expr,
4853         get_unwidened, get_narrower): Replace build with build2.
4854         * fold-const.c (negate_expr, associate_trees, size_binop,
4855         fold_convert, eval_subst, omit_one_operand, invert_truthvalue,
4856         pedantic_omit_one_operand, distribute_bit_expr,
4857         make_bit_field_ref, optimize_bit_field_compare,
4858         decode_field_reference, range_binop, make_range,
4859         build_range_check, fold_range_test, fold_truthop,
4860         optimize_minmax_comparison, extract_muldiv_1,
4861         fold_binary_op_with_conditional_arg, fold_mathfn_compare,
4862         fold_inf_compare, fold_single_bit_test, fold,
4863         fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
4864         Likewise replace build with either build2 or build3.
4865
4866 2004-05-20  Ian Lance Taylor  <ian@wasabisystems.com>
4867
4868         * system.h: Poison NO_RECURSIVE_FUNCTION_CSE.
4869         * calls.c (prepare_call_address): Don't test
4870         NO_RECURSIVE_FUNCTION_CSE.
4871         * config/arc/arc.h (NO_RECURSIVE_FUNCTION_CSE): Don't define.
4872         * config/arm/arm.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4873         * config/avr/avr.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4874         * config/frv/frv.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4875         * config/i386/i386.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4876         * config/ip2k/ip2k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4877         * config/iq2000/iq2000.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4878         * config/m32r/m32r.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4879         * config/m68k/m68k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4880         * config/mcore/mcore.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4881         * config/mips/mips.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4882         * config/stormy16/stormy16.h (NO_RECURSIVE_FUNCTION_CSE):
4883         Likewise.
4884         * config/xtensa/xtensa.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4885         * config/sh/sh.h: Remove NO_RECURSIVE_FUNCTION_CSE comment.
4886         * doc/tm.texi (Costs): Remove documentation for
4887         NO_RECURSIVE_FUNCTION_CSE.
4888
4889 2004-05-20  Paul Brook  <paul@codesourcery.com>
4890
4891         * unwind-dw2-fde.c (get_cie_encoding): Handle dwarf3 CIE format.
4892         * unwind-dw2.c (extract_cie_info): Ditto.
4893         (_Unwind_FrameState): Change retaddr_column to word type.
4894
4895 2004-05-20  Roger Sayle  <roger@eyesopen.com>
4896
4897         PR middle-end/3074
4898         * fold-const.c (strip_compound_expr): Delete function.
4899         (count_cond): Delete function.
4900         (fold_binary_op_with_conditional_arg): Only perform transformations
4901         "a + (b?c:d) -> b ? a+c : a+d" and "(b?c:d) + a -> b ? c+a : d+a"
4902         when a is constant.  This greatly simplifies this routine.
4903
4904         * tree.c (saved_expr_p): Delete function.
4905         * tree.h (saved_expr_p): Delete function prototype.
4906
4907 2004-05-20  Andrew Pinski  <pinskia@physics.uc.edu>
4908
4909         * common.opt (ftree-loop-optimize): Remove.
4910
4911 2004-05-20  Daniel Jacobowitz  <dan@debian.org>
4912
4913         * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET)
4914         (NM_FOR_TARGET): Use := and $(shell).
4915         (mainversion): Remove unused variable.
4916
4917 2004-05-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4918
4919         * reorg.c (delete_from_delay_slot): If we have a barrier after the
4920         sequence containing the insn to be deleted, always reemit it.
4921
4922 2004-05-20  Richard Henderson  <rth@redhat.com>
4923
4924         PR 15454
4925         * tree-nested.c (get_chain_decl): Create a PARM_DECL by hand.
4926         * function.c (expand_function_start): Expand static_chain_decl by hand.
4927         * gimplify.c (create_tmp_var_name): Export.
4928         * tree-gimple.h (create_tmp_var_name): Declare.
4929
4930 2004-05-20  Andrew Pinski  <pinskia@physics.uc.edu>
4931
4932         * rs6000.c (print_operand) <case 'z'>: Call
4933         mark_decl_referenced before assemble_name.
4934
4935 2004-05-20  Zack Weinberg  <zack@codesourcery.com>
4936
4937         * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
4938         (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
4939         (cgraph_varpool_node): Hash on the pointer to the decl, not
4940         the DECL_UID.  Fixes 64-bit bootstrap failure.
4941
4942 2004-05-20  Richard Earnshaw <rearnsha@arm.com>
4943
4944         * arm.md (ite_ne_zeroextractsi, ite_ne_zeroextractsi_shifted): Ensure
4945         we don't earlyclobber operands used in the second insn.
4946
4947 2004-05-20  Steven Bosscher  <stevenb@suse.de>
4948
4949         * tree-mudflap.c: Formatting fixes.
4950
4951 2004-05-20  J"orn Rennecke <joern.rennecke@superh.com>
4952
4953         * Makefile.in (GTFILES): Add $(srcdir)/reload.h.
4954         * gengtype.c (open_base_files): Include reload.h in ifiles.
4955         * reload.h (reg_equiv_memory_loc_varray): Declare.
4956         * reload1.c (reg_equiv_memory_loc_varray): New variable.
4957         (init_reload): Initialize it.
4958         (reload): Instead of freeing reg_equiv_memory_loc, 'grow'
4959         reg_equiv_memory_loc_varray to size 0.
4960         * ra.c (reg_alloc): Allocate reg_equiv_memory_loc by
4961         growing reg_equiv_memory_loc_varray to the desired size.
4962         * passes.c (rest_of_handle_old_regalloc): Likewise.
4963         * reload.c: Amend comment on calling init_reload.
4964
4965 2004-05-20  Nick Clifton  <nickc@redhat.com>
4966
4967         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Replace 'tramp'
4968         with 'TRAMP' in the body of the macro definition.
4969
4970 2004-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4971
4972         PR target/15383
4973         * config/ia64/ia64.c (ia64_expand_compare): Don't check
4974         TARGET_HPUX for TFmode compare. Abort if op0 is in TFmode and
4975         cmptf_libfunc isn't set.
4976         (ia64_init_libfuncs): Rename TFmode libfuncs using the HPUX
4977         conventions.
4978         (ia64_sysv4_init_libfuncs): New.
4979
4980         * config/ia64/sysv4.h (TARGET_INIT_LIBFUNCS): New. Defined as
4981         ia64_sysv4_init_libfuncs.
4982
4983 2004-05-20  Falk Hueffner  <falk@debian.org>
4984
4985         PR other/15526
4986         * libgcc2.c (__mulvsi3): Fix overflow test.
4987
4988 2004-05-19  Andrew Pinski  <pinskia@physics.uc.edu>
4989
4990         PR c/14171
4991         * reg-stack.c (nan): Rename to ...
4992         (not_a_num): Here.
4993         (reg_to_stack): Rename nan to not_a_num.
4994         (subst_stack_regs_pat): Likewise.
4995         (convert_regs_entry): Likewise.
4996         (convert_regs_1): Likewise.
4997
4998         * tree-cfg.c (find_case_label_for_value): Replace call to
4999         simple_cst_equal with tree_int_cst_equal.
5000
5001 2004-05-19  Jeff Law <law@redhat.com>
5002
5003         * tree-into-ssa.c (prepare_operand_for_rename): New argument is_use.
5004         If the operand is for a use, then strip away the SSA_NAME, do not
5005         strip away the SSA_NAME for a set.  Never call release_ssa_name.
5006         (mark_def_sites): Appropriately pass additional argument to
5007         prepare_operand_for_rename.  If a VDEF_RESULT is not an SSA_NAME,
5008         then set the VDEF_RESULT to the VDEF_OP.
5009         (set_def_block): Strip away any SSA_NAME to get to the real
5010         underlying variable.
5011
5012         * tree-ssa-phiopt.c (value_replacement): Handle the case where
5013         the desired edge out of COND_BLOCK reaches OTHER_BLOCK rather than
5014         BB directly.
5015
5016 2004-05-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5017
5018         PR c++/15463
5019         * loop-iv.c (iv_number_of_iterations):  Use trunc_int_for_mode on
5020         result of inverse.
5021
5022         PR rtl-optimization/15274
5023         * loop-iv.c (determine_max_iter, shorten_into_mode,
5024         iv_number_of_iterations): Handle constants correctly.
5025         * rtl.h (get_mode_bounds): Declaration changed.
5026         * stor-layout.c (get_mode_bounds): Return a constant suitable for
5027         the target mode.
5028
5029         PR rtl-optimization/14692
5030         * loop-unswitch.c (may_unswitch_on): Try folding the result.
5031         (unswitch_single_loop): Work correctly when may_unswitch_on
5032         returns a folded constant.
5033
5034         * loop-iv.c (implies_p): Handle A < B ==> A + 1 <= B.
5035         * simplify-rtx.c (simplify_const_relational_operation): Optimize
5036         comparisons with mode bounds.
5037
5038         * function.c (struct temp_slot): Add new field prev.
5039         (free_after_compilation, init_temp_slots): Free new fields.
5040         (cut_slot_from_list, insert_slot_to_list,
5041         temp_slots_at_level, max_slot_level, move_slot_to_level,
5042         make_slot_available): New functions.
5043         (assign_stack_temp_for_type, combine_temp_slots,
5044         find_temp_slot_from_address, preserve_temp_slots,
5045         preserve_rtl_expr_result, free_temp_slots,
5046         free_temps_for_rtl_expr, pop_temp_slots): Work with
5047         the new structure of lists.
5048         (mark_all_temps_used): Removed.
5049         * function.h (struct function): Field x_temp_slots
5050         replaced by x_used_temp_slots and x_avail_temp_slots.
5051         (temp_slots): Replaced by ...
5052         (used_temp_slots, avail_temp_slots): New.
5053         * tree.h (mark_all_temps_used): Declaration removed.
5054
5055         * loop-iv.c (mark_single_set, get_biv_step_1, iv_analyze,
5056         simplify_using_assignment): Take the expression out of
5057         the expr_list wrapper.
5058
5059         * loop-iv.c (iv_number_of_iterations): Improve clasification of
5060         infinite loops.
5061
5062 2004-05-19  Roger Sayle  <roger@eyesopen.com>
5063
5064         * doc/tm.texi (TARGET_RTX_COSTS): Document that instruction
5065         costs should be based on code size when optimizing for size.
5066
5067 2004-05-19  Paolo Bonzini  <bonzini@gnu.org>
5068
5069         * fold-const.c: Remove non-printable character 160.
5070
5071 2004-05-19  Nick Clifton  <nickc@redhat.com>
5072
5073         * doc/invoke.texi (ARM Options): Fix typo.
5074         Remove descrption of -mshort-load-bytes and
5075         -mno-short-load-bytes.
5076
5077         * config/ip2k/ip2k.c (ip2k_composite_xexp_not_uses_reg_p): Add
5078         missing parenthesis.
5079         * config/ip2k/ip2k.c (ip2k_unary_operator): Likewise.
5080         * config/ip2k/ip2k.c (ip2k_binary_operator): Likewise.
5081
5082 2004-05-19  Steven Bosscher  <stevenb@suse.de>
5083
5084         * expr.c (store_constructor): Build loop start and end by hand
5085         instead of via loop functions from stmt.c.
5086         (expand_expr_real_1): Abort if we see an EXIT_EXPR or a LOOP_EXPR.
5087         Remove the code to expand them.
5088
5089         * stmt.c (loop_stack): Remove this and everything related.
5090         (struct nesting, enum nesting_desc): Update.
5091         (expand_fixup): Likewise.
5092         (expand_loop_start, expand_start_loop_continue_elsewhere,
5093         expand_start_null_loop, expand_loop_continue_here, expand_end_loop,
5094         expand_end_null_loop, expand_continue_loop, expand_exit_loop,
5095         expand_exit_loop_if_false, expand_exit_loop_top_cond,
5096         expand_exit_something): Remove.
5097         * tree.h: Remove prototypes.
5098
5099 2004-05-18  Mike Stump  <mrs@apple.com>
5100             Devang Patel  <dpatel@apple.com>
5101
5102         * doc/tm.texi (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument to indicate
5103         if this label is for eh.
5104         * config/darwin-protos.h (darwin_emit_unwind_label): Likewise.
5105         * config/darwin.c (darwin_emit_unwind_label): Likewise.
5106         * dwarf2out.c (output_call_frame_info): Likewise.
5107         * output.h (default_emit_unwind_label): Likewise.
5108         * target.h (unwind_label): Likewise.
5109         * varasm.c (default_emit_unwind_label): Likewise.
5110
5111         * config/darwin.h (DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
5112         DEBUG_FRAME_SECTION, DEBUG_INFO_SECTION, DEBUG_ABBREV_SECTION,
5113         DEBUG_ARANGES_SECTION, DEBUG_MACINFO_SECTION, DEBUG_LINE_SECTION,
5114         DEBUG_LOC_SECTION, DEBUG_PUBNAMES_SECTION, DEBUG_STR_SECTION,
5115         DEBUG_RANGES_SECTION): Define.
5116
5117 2004-05-18  Zack Weinberg  <zack@codesourcery.com>
5118
5119         * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
5120         (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
5121         (cgraph_varpool_node):
5122         Use DECL_UID for the key, not DECL_ASSEMBLER_NAME.
5123         (cgraph_function_possibly_inlined_p): Use the decl itself for
5124         the key, not DECL_ASSEMBLER_NAME.
5125         (change_decl_assembler_name): No need to muck with the hash tables.
5126         (cgraph_node_for_identifier, cgraph_varpool_node_for_identifier):
5127         Delete.
5128         * cgraphunit.c (cgraph_mark_inline_edge): Use the decl itself
5129         for the key, not DECL_ASSEMBLER_NAME.
5130         * cgraph.h: Remove prototypes of deleted functions.
5131         * varasm.c (mark_referenced): Just set TREE_SYMBOL_REFERENCED.
5132         (mark_decl_referenced): New function.
5133         * tree.h: Prototype mark_decl_referenced.
5134         * final.c (output_addr_const) <case SYMBOL_REF>: Call
5135         mark_decl_referenced before assemble_name.
5136         * c-decl.c (finish_decl): Use mark_decl_referenced.
5137
5138 2004-05-18  Andrew Pinski  <pinskia@physics.uc.edu>
5139             Jeff Law <law@redhat.com>
5140
5141         * tree-ssa-phiopt.c (abs_replacement): New function.
5142         (empty_block_p): New function extracted from...
5143         (candidate_bb_for_phi_optimization): Break out empty block test.
5144         (conditional_replacement): Use empty_block_p.
5145         (value_replacement): Similarly.
5146
5147         * Makefile.in (tree-ssa-phiopt.o): Depends on flags.h.
5148         * tree-ssa-phiopt.c: Include flags.h.
5149         (conditional_replacement): Remove argument names from prototype.
5150         Minor formatting and comment fixes.
5151         (tree_ssa_phiopt): If conditional_replacement returns false, then
5152         call value_replacement.
5153         (value_replacement): New function.
5154
5155 2004-05-18  Jeff Law  <law@redhat.com>
5156
5157         * tree-ssa-phiopt.c (replace_phi_with_stmt): New function extracted
5158         from conditional_replacement.
5159         (candidate_bb_for_phi_optimization): Similarly.
5160         (conditional_replacement): Use replace_phi_with_stmt and
5161         candidate_bb_for_phi_optimization.
5162
5163         * tree-ssa-phiopt.c: Fix various formatting issues.
5164
5165 2004-05-18  Steven Bosscher  <stevenb@suse.de>
5166
5167         * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
5168         s390_expand_cmpmem): Do not use expand_start_loop and
5169         expand_end_loop, instead build the loop manually.
5170
5171 2004-05-18  Alan Modra  <amodra@bigpond.net.au>
5172
5173         * config/rs6000/rs6000.md (ctrsi_internal3): Delete.
5174         (ctrsi_internal4, ctrdi_internal3, ctrdi_internal4): Delete.
5175
5176 2004-05-17  Jeff Law  <law@redhat.com>
5177
5178         * toplev.h (flag_delete_null_pointer_checks): Move from here to...
5179         * flags.h (flag_delete_null_pointer_checks): Here.
5180         * tree-flow.h (cprop_into_successor_phis): Add argument to prototype.
5181         * tree-phinodes.c (resize_phi_node): Initialize PHI_ARG_NONZERO.
5182         (add_phi_arg, remove_phi_arg_num): Similarly.
5183         * tree-ssa-copy.c (cprop_into_successor_phis): Propagate nonzero
5184         property into PHI nodes.
5185         * tree-ssa-dom.c: Remove redundant inclusion of flags.h.
5186         (record_equivalences_from_phis): If all PHI arguments are known to be
5187         nonzero, then the result must be nonzero as well.
5188         (cprop_into_phis): Pass nonzero_vars bitmap to cprop_into_successor_phis.
5189         (record_equivalences_from_stmt): Check flag_delete_null_pointer_checks
5190         appropriately.  Walk the USE-DEF chains and propagate nonzero property
5191         as appropriate.
5192         * tree.h (PHI_ARG_NONZERO): Define.
5193         (phi_arg_d): Add nonzero flag.
5194
5195 2004-05-17  Zack Weinberg  <zack@codesourcery.com>
5196
5197         * f: Entire directory removed
5198
5199         * c-common.h (CTI_G77_INTEGER_TYPE, CTI_G77_UINTEGER_TYPE)
5200         (CTI_G77_LONGINT_TYPE, CTI_G77_ULONGINT_TYPE)
5201         (g77_integer_type_node, g77_uinteger_type_node)
5202         (g77_longint_type_node, or g77_ulongint_type_node): Delete.
5203         * c-common.c (c_common_nodes_and_builtins): Do not initialize
5204         the above set of variables.
5205
5206         * config/i386/uwin.h: No need to define WIN32_UWIN_TARGET.
5207         * doc/invoke.texi, doc/standards.texi: Remove cross-references
5208         to g77 manual.
5209
5210 2004-05-17  Steven Bosscher  <stevenb@suse.de>
5211
5212         PR tree-optimization/15438
5213         * tree-ssa-operands.c (get_expr_operands): Do not treat malloc
5214         attributed functions as pure or const.
5215
5216 2004-05-17  Frank Ch. Eigler  <fche@redhat.com>
5217
5218         * tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting
5219         from source code with errors.
5220
5221 2004-05-17  Ranjit Mathew  <rmathew@hotmail.com>
5222
5223         Enable tree browser for all front ends.
5224         * Makefile.in (cc1): Moved @TREEBROWSER@ from here...
5225         (BACKEND): ...to here.
5226
5227 2004-05-17  Jan Hubicka  <jh@suse.cz>
5228
5229         * i386.c (construct_container): Do not produce BLKmode registers.
5230         (classify_argument): Properly compute alignment of complex types.
5231
5232 2004-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5233
5234         PR target/15084
5235         * config/i386/i386.md (*movsi_insv_1_rex64): Changed to DImode
5236         and renamed to movdi_insv_1_rex64.
5237         (insv): Support SImode for 32bit and DImode for 64bit.
5238
5239 2004-05-17  Richard Sandiford  <rsandifo@redhat.com>
5240
5241         * config/mips/mips.h (MASK_DEBUG_G, TARGET_DEBUG_G_MODE): Delete.
5242         (TARGET_SWITCHES): Remove debugg.
5243         * config/mips/mips.md (adddi3, ashldi3, ashrdi3, lshrdi3): Only handle
5244         TARGET_64BIT.
5245         (subdi3): Replace the define_expand with a define_insn, the latter
5246         renamed from subdi3_internal_3.
5247         (negdi2): Likewise negdi2_internal_2.
5248         (adddi3_internal_[12], subdi3_internal, ashldi3_internal{,2,3})
5249         (ashrdi3_internal{,2,3}, lshrdi3_internal{,2,3}): Remove patterns
5250         and associated define_splits.
5251         (adddi3_internal): Renamed from adddi3_internal_3.
5252         (ashldi3_internal): Likewise ashldi3_internal4.
5253         (ashrdi3_internal): Likewise ashrdi3_internal4.
5254         (lshrdi3_internal): Likewise lshrdi3_internal4.
5255
5256 2004-05-17  Richard Sandiford  <rsandifo@redhat.com>
5257
5258         * optabs.c (expand_unop): Try implementing negation using subtraction
5259         from zero.
5260
5261 2004-05-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5262
5263         * pa.md:  Fix typo from last change.  Remove DFmode move to and from
5264         SAR register.
5265
5266 2004-05-16  Richard Earnshaw  <rearnsha@arm.com>
5267
5268         PR target/10982
5269         * arm.md (ne_zeroextractsi): Convert to insn-and-split.
5270         (ne_zeroextractsi_shifted): New pattern.
5271         (ite_ne_zeroextractsi): New pattern.
5272         (ite_ne_zeroextractsi_shifted): New pattern.
5273
5274 2004-05-15  Steven Bosscher  <stevenb@suse.de>
5275
5276         * c-gimplify.c (c_genericize):
5277         Replace calls via (*lang_hooks.foo) with lang_hooks.foo.
5278         * c-parse.in <expr_no_commas>: Likewise.
5279         <if_prefix>: Likewise.
5280         <select_or_iter_stmt>: Likewise.
5281         * expr.c (expand_var, expand_expr_real_1): Likewise.
5282         * expr.h (expand_expr): Make it a static inline function.
5283         Move prototype for expand_expr_real up before this.
5284         * fold-const.c (fold_relational_hi_lo, fold_relational_const):
5285         Likewise.
5286         * gimplify.c (gimple_boolify, gimplify_addr_expr,
5287         gimplify_asm_expr, gimplify_expr): Likewise.
5288         * tree-cfg.c (dump_tree_cfg, dump_cfg_stats, tree_cfg2vcg,
5289         dump_function_to_file): Likewise.
5290         * tree-dfa.c (dump_immediate_uses, dump_dfa_stats): Likewise.
5291         * tree-inline.c (remap_block, save_body, walk_tree): Likewise.
5292         * tree-into-ssa.c (dump_tree_ssa): Likewise.
5293         * tree-mudflap.c (mf_varname_tree, mf_file_function_line_tree):
5294         Likewise.
5295         * tree-optimize.c (execute_one_pass): Likewise.
5296         * tree-pretty-print.c (dump_generic_bb_buff): Likewise.
5297         * tree-ssa-alias.c (dump_alias_stats, dump_alias_info): Likewise.
5298
5299         * objc/objc-act.c (objc_build_try_enter_fragment,
5300         objc_build_try_epilogue, objc_build_catch_stmt,
5301         objc_build_finally_prologue): Replace calls via (*lang_hooks.foo)
5302         with lang_hooks.foo ().
5303
5304 2004-05-15  Roger Sayle  <roger@eyesopen.com>
5305
5306         * builtins.c (simplify_builtin_strcpy): Avoid use of chainon, so
5307         that simplify_builtin doesn't destructively modify its argument.
5308
5309 2004-05-15  Richard Earnshaw  <reanrsha@arm.com>
5310
5311         * arm/lib1funcs.asm (_lshrdi3, _ashrdi3, _ashldi3): Add ASM
5312         implementations for ARM and Thumb.
5313         * arm/t-arm-elf (LIB1ASMFUNCS): Use them.
5314
5315 2004-05-15  Thomas Quinot  <quinot@act-europe.fr>
5316
5317         * prefix.c (update_path): Replace PREFIX with KEY only
5318         when it matches a full directory name in PATH.
5319
5320 2004-05-15  Richard Earnshaw  <reanrsha@arm.com>
5321
5322         * arm.h (TARGET_APCS_32): Delete.
5323         (TARGET_MMU_TRAPS): Delete.
5324         (TARGET_CPU_CPP_BUILTINS): Unconditionally define __APCS_32__.  Never
5325         define __APCS_26__.
5326         (CPP_SPEC): Remove checking of -mapcs-{26,32}.
5327         (ARM_FLAG_APCS_32, ARM_FLAG_MMU_TRAPS): Delete.
5328         (TARGET_SWITCHES): Remove alignment_traps and apcs-{26,32} switches.
5329         (prog_mode_type): Delete.
5330         (PROMOTE_MODE): Always promote unsigned for HImode.
5331         (SECONDARY_INPUT_RELOAD_CLASS): Simplify.
5332         (MASK_RETURN_ADDR): Simplify.
5333         * arm.c (arm_prgmode): Delete.
5334         (arm_override_options, arm_gen_rotated_half_load): Simplify.
5335         (print_multi_reg, output_return_instruction): Simplify.
5336         (arm_output_epilogue, arm_final_prescan_insn): Simplify.
5337         (arm_return_addr): Simplify.
5338         * arm.md (prog_mode): Delete.
5339         (conds): Simplify.
5340         (zero_extendhisi2, extendhisi2, movhi, movhi_bytes): Simplify.
5341         (rotated_loadsi, movhi_insn_littleend, movhi_insn_bigend): Delete.
5342         (loadhi_si_bigend, loadhi_preinc, loadhi_shiftpreinc): Delete.
5343         (loadhi_shiftpredec): Delete.
5344         (peephole for post-increment on HImode load): Delete.
5345         * arm/crtn.asm: (FUNC_END): Simplify.
5346         * arm/lib1funcs.asm: Remove APCS-26 return macros.
5347         * arm/aof.h, arm/coff.h arm/elf.h arm/linux-elf.h arm/netbsd-elf.h
5348         * arm/netbsd.h arm/pe.h arm/semi.h arm/semiaof.h arm/unknown-elf.h
5349         * arm/vxworks.h arm/wince-pe.h: Tidy TARGET_DEFAULTS and
5350         MULTILIB_DEFAULTS as required.
5351         * arm/t-arm-elf arm/t-linux arm/t-pe arm/t-semi arm/t-wince-pe
5352         * arm/t-xscale-coff arm/t-xscale-elf arm/uclinux-elf: Tidy MULTILIB
5353         variables as required.
5354         * doc/invoke.texi (ARM Options): Remove obsolete flags.
5355
5356 2004-05-15  Alan Modra  <amodra@bigpond.net.au>
5357
5358         * config/rs6000/rs6000.c (rs6000_va_arg <ABI_V4>): Don't use
5359         UNITS_PER_WORD to calculate gpr size.  Re-instate code to set reg
5360         count to 8 to handle n_reg > 2.
5361
5362 2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
5363
5364         * doc/extend.texi: Update WG14 URL.
5365
5366 2004-05-15  Steven Bosscher  <stevenb@suse.de>
5367
5368         * basic-block.h (life_analysis, delete_noop_moves):
5369         Update prototypes.
5370         * bt-load.c (branch_target_load_optimize): Don't take the
5371         insns stream as an argument.  Update the life_analysis calls.
5372         * combine.c (combine_instructions): Update delete_noop_moves
5373         calls.
5374         * flow.c (notice_stack_pointer_modification): Don't take the
5375         insns stream as an argument.  Work on the flow graph.
5376         (life_analysis): Likewise.
5377         (delete_noop_moves): Likewise.
5378         * passes.c (rest_of_handle_stack_regs): Update reg_to_stack call.
5379         (rest_of_handle_life): Update life_analysis call.
5380         (rest_of_compilation): Likewise, and also update
5381         branch_target_load_optimize call.
5382         * ra.c (reg_alloc): Update life_analysis call.
5383         * reg-stack.c (reg_to_stack): Likewise.  Also, don't take
5384         the insns stream as an argument.
5385         * regrename.c (copyprop_hardreg_forward): Update delete_noop_moves
5386         call.
5387         * rtl.c (branch_target_load_optimize, reg_to_stack): Update
5388         prototypes.
5389         * value-profile.c (branch_prob): Update life_analysis call.
5390         * web.c (web_main): Work on the CFG, not on the insns stream.
5391
5392         * config/ip2k/ip2k.c (ip2k_reorg): Update life_analysis calls.
5393         * config/m68hc11/m68hc11.c (m68hc11_reorg): Likewise.
5394         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
5395
5396 2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
5397
5398         PR c/15444
5399         * c-format.c (avoid_dollar_number): New function.
5400         (check_format_info_main): Call avoid_dollar_number when operand
5401         numbers might occur but has_operand_number == 0.
5402
5403 2004-05-14  Richard Earnshaw  <rearnsha@arm.com>
5404
5405         * arm.md (all peephole2 patterns): Use predicates that validate
5406         register classes as appropriate.
5407
5408 2004-05-14  Steven Bosscher  <stevenb@suse.de>
5409
5410         PR opt/14472
5411         * tree-tailcall.c (process_assignment): Use STRIP_NOPS to
5412         ignore type conversions that do not inhibit tail calling.
5413         (find_tail_calls): Likewise.
5414
5415 2004-05-14  Jeff Law  <law@redhat.com>
5416
5417         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't even
5418         bother marking bypassed virtuals for out-of-ssa.  Instead merge
5419         bypassed virtuals into vars_to_rename just before into-ssa pass.
5420
5421         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Reorganize
5422         so that it picks up more opportunities to eliminate ABS expressions
5423         or turn them into negations.
5424
5425 2004-05-14  Steven Bosscher  <stevenb@suse.de>
5426
5427         * passes.c (rest_of_handle_null_pointer): Remove.
5428         (rest_of_handle_cse): Don't call rest_of_handle_null_pointer.
5429         (rest_of_compilation): Likewise.
5430         * rtl.h (delete_null_pointer_checks): Remove prototype.
5431         * gcse.c (rd_kill, rd_gen, reaching_defs, rd_out, ae_in, ae_out):
5432         Remove declarations.
5433         (get_bitmap_width, alloc_rd_mem, free_rd_mem, handle_rd_kill_set,
5434         compute_kill_rd, compute_rd, alloc_avail_expr_mem,
5435         free_avail_expr_mem, compute_ae_gen, expr_killed_p, compute_ae_kill,
5436         expr_reaches_here_p, computing_insn, def_reaches_here_p,
5437         can_disregard_other_sets, handle_avail_expr, classic_gcse,
5438         one_classic_gcse_pass, invalidate_nonnull_info,
5439         delete_null_pointer_checks_1, delete_null_pointer_checks,
5440         expr_reached_here_p_work): Remove.
5441         (gcse_main): Do not perform classic GCSE when optimizing for size.
5442         (alloc_pre_mem, free_pre_mem): Don't touch ae_in and ae_out, they
5443         are never used.
5444
5445 2004-05-14  Andrew Pinski  <pinskia@physics.uc.edu>
5446
5447         PR optimization/14466
5448         * tree-complex.c (make_temp): Remove.
5449         (gimplify_val): Replace make_temp with make_rename_temp
5450         and add NULL as the second argument.
5451         (expand_complex_div_wide): Likewise.
5452         * tree-dfa.c (make_rename_temp): New function.
5453         * tree-flow.h (make_rename_temp): Declare.
5454         * tree-sra.c (make_temp): Remove.
5455         (lookup_scalar): Replace make_temp with make_rename_temp.
5456         (create_scalar_copies): Likewise.
5457         * tree-ssa-phiopt.c (conditional_replacement): When we
5458         get non gimple create a temporary variable to hold the
5459         casted expression.
5460
5461 2004-05-14  Paul Brook  <paul@codesourcery.com>
5462
5463         * stor-layout.c (update_alignment_for_field): Use
5464         targetm.align_anon_bitfield.
5465         * target-def.h (TARGET_ALIGN_ANON_BITFIELD): Define.
5466         (TARGET_INITIALIZER): Use it.
5467         * target.h (struct gcc_target): Add align_anon_bitfield.
5468         * config/arm/arm.c (arm_align_anon_bitfield):  New function.
5469         (TARGET_ALIGN_ANON_BITFIELD): Define.
5470         * doc/tm.texi: Document TARGET_ALIGN_ANON_BITFIELD.
5471
5472 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
5473
5474         * tree.def (documentation): Remove mention of class 'b'.
5475         (BLOCK): Now in class 'x'.
5476         * c-common.c (verify_tree): Remove case 'b'.
5477         * c-typeck.c (same_translation_unit_p): Change 'b' to 'x'.
5478         * calls.c (calls_function_1): Control cannot get past the switch
5479         when exp is a BLOCK.
5480         * print-tree.c (print_node): Move code for class 'b' to the class
5481         'c'/'x' switch, as case BLOCK.
5482         * tree.c (tree_size, make_node_stat, tree_node_structure): Likewise.
5483         (unsafe_for_reeval, substitute_placeholder_in_expr)
5484         (stabilize_reference_1): Remove case 'b'.
5485         * tree-browser.c (browse_tree): Change all tests for TREE_CODE_CLASS
5486         of something being 'b' to tests for TREE_CODE of something being
5487         BLOCK.
5488         * tree-ssa-operands.c (get_expr_operands): Likewise.
5489
5490 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
5491
5492         * tree-gimple.c: Rename from tree-simple.c.
5493         * tree-gimple.h: Rename from tree-simple.h.
5494         * c-gimplify.c: Rename from c-simplify.c
5495         * Makefile.in, c-decl.c, gimple-low.c, gimplify.c,
5496         langhooks.c, tree-alias-ander.c, tree-alias-common.c,
5497         tree-complex.c, tree-dfa.c, tree-flow.h, tree-inline.c,
5498         tree-into-ssa.c, tree-iterator.c, tree-mudflap.c,
5499         tree-nested.c, tree-nomudflap.c, tree-outof-ssa.c, tree-sra.c,
5500         tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-copyrename.c,
5501         tree-ssa-dce.c, tree-ssa-live.c, tree-ssa-pre.c, tree-ssa.c:
5502         Update.
5503
5504 2004-05-14  Ranjit Mathew  <rmathew@hotmail.com>
5505
5506         * doc/sourcebuild.texi: Mention libbanshee and libmudflap.
5507
5508 2004-05-13  Andrew Pinski  <pinskia@physics.uc.edu>
5509
5510         * tree-ssa.c (delete_tree_ssa): XFREE
5511         bitmaps allocated with BITMAP_XMALLOC.
5512
5513         * tree-ssa-pre.c (execute_pre): Free ephi_use_pool and
5514         idfs_cache at the end of the function.
5515
5516         * tree-ssa-live.c (calculate_live_on_entry): Free saw_def
5517         at the end of the function.
5518
5519         * tree-ssa-dce.c (perform_tree_ssa_dce): Free
5520         el at the end of the function.
5521
5522         * tree-into-ssa.c (insert_phi_nodes_for): XFREE
5523         bitmaps allocated with BITMAP_XMALLOC.
5524
5525         * loop-unswitch.c (unswitch_single_loop): Free bbs at
5526         the end.
5527
5528         * final.c (shorten_branches): Free uid_shuid before
5529         reallocating it.
5530
5531         * bb-reoder.c (connect_traces): Free cold_traces at the end.
5532
5533 2004-05-13  Jeff Law  <law@redhat.com>
5534
5535         * tree-ssa-live.c (calculate_live_on_entry): Ignore virtual
5536         variables.  Simplify slightly by using USE_OP/DEF_OP instead
5537         of USE_OP_PTR/DEF_OP_PTR and dereferencing the result.
5538
5539         * tree-into-ssa.c (compute_global_livein): Use EXECUTE_IF_SET_IN_BITMAP
5540         rather than iterating through the blocks testing each bit in
5541         livein to initialize the worklist.
5542         (mark_def_sites): Remove useless checks of KILLS for virtual
5543         operands.
5544
5545         * tree-ssa-forwprop.c (record_single_argument_cond_exprs): Accept
5546         new parameters for the statement and variable worklist as well
5547         as a bitmap of interesting SSA_NAMEs.  Walk over the statement
5548         worklist recording interesting variables in the variable worklist
5549         and bitmap.  Handle casts between integral and boolean types.
5550         (substitute_single_use_vars): Accept new parameters for the statement
5551         and variable worklist.  When a substitution is made add a new
5552         entry to the statement worklist.  Handle casts between integral
5553         and boolean types.
5554         (tree_ssa_forward_propagate_single_use_vars): Rework to pass
5555         worklists to children.  Iterate until the statement worklist
5556         is empty.
5557
5558 2004-05-13  Andrew Pinski  <pinskia@physics.uc.edu>
5559
5560         * tree-outof-ssa.c (rewrite_vars_out_of_ssa): Free map at
5561         the end of the block.
5562
5563         * tree-into-ssa.c (def_blocks_free): XFREE bitmaps allocated
5564         with BITMAP_XMALLOC.
5565
5566         * tree-ssa-alias.c (delete_alias_info): XFREE bitmaps allocated
5567         with BITMAP_XMALLOC.
5568
5569         * tree-ssa-dom.c (tree_ssa_dominator_optimize):
5570         Free nonzero_vars at the end of the function.
5571
5572         * convert.c (convert_to_integer): Make a CONVERT_EXPR when there is a
5573         need to generate code instead of a NOP_EXPR.
5574
5575 2004-05-13  Ian Lance Taylor  <ian@wasabisystems.com>
5576
5577         * gcc.c (default_compilers): Fill out initializers for new Fortran
5578         entries.
5579
5580 2004-05-13  Paul Brook  <paul@codesourcery.com>
5581
5582         * config/arm/arm.h (PCC_BITFIELD_TYPE_MATTERS): Define.
5583
5584 2004-05-13  Paul Brook  <paul@codesourcery.com>
5585
5586         * config/arm/arm.c (arm_default_short_enums): New function.
5587         (TARGET_DEFAULT_SHORT_ENUMS): Define.
5588
5589 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
5590
5591         Merge from tree-ssa-20020619-branch.
5592
5593         * Makefile.in (reload1.o-warn): Add.
5594         (tree-alias-ander.o-warn): Add.
5595         (GMPLIBS): Define.
5596         (GMPINC): Define.
5597         (BANSHEELIB): Define.
5598         (BANSHEEINC): Define.
5599         (TREE_DUMP_H): Define.
5600         (TREE_SIMPLE_H): Define.
5601         (TREE_FLOW_H): Define.
5602         (LIBDEPS): Add BANSHEELIB.
5603         (INCLUDES): Add BANSHEEINC and GMPINC.
5604         (C_AND_OBJC_OBJS): Add c-simplify.o, tree-mudflap.o,
5605         c-mudflap.o and c-pretty-print.o.
5606         (C_OBJS): Remove c-pretty-print.o.
5607         (OBJS-common): Remove sibcall.o.
5608         Add tree-cfg.o, tree-dfa.o, tree-eh.o,
5609         tree-ssa.o, tree-optimize.o, tree-simple.o,
5610         tree-alias-type.o, gimplify.o, tree-pretty-print.o,
5611         tree-into-ssa.o, tree-outof-ssa.o, tree-alias-common.o,
5612         tree-ssa-ccp.o, @ANDER@, tree-ssa-dce.o, tree-ssa-copy.o,
5613         tree-nrv.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
5614         tree-ssa-live.o, tree-ssa-operands.o, tree-ssa-alias.o,
5615         tree-ssa-phiopt.o, tree-ssa-forwprop.o, tree-nested.o,
5616         tree-ssa-dse.o, tree-ssa-dom.o, domwalk.o,
5617         tree-tailcall.o, gimple-low.o, tree-iterator.o,
5618         tree-phinodes.o, tree-ssanames.o, tree-sra.o,
5619         tree-complex.o, tree-ssa-loop.o, rtl-profile.o and
5620         tree-profile.o.
5621         (OBJC-archive): Add tree-nomudflap.o.
5622         (cc1): Add dependency on @TREEBROWSER@.
5623         (c-decl.o): Add dependency on TREE_DUMP_H.
5624         (c-dump.o): Likewise.
5625         (c-common.o): Add dependency on tree-iterator.h
5626         (c-pretty-print.o): Add dependency on DIAGNOSTIC_H.
5627         (gtype-desc.o): Add dependency on TREE_FLOW_H.
5628         (tree.o): Add dependency on tree-iterator.h,
5629         BASIC_BLOCK_H and TREE_FLOW_H.
5630         (tree-dump.o): Depend on TREE_DUMP_H instead of tree-dump.h.
5631         (langhooks.o): Add dependency on TREE_SIMPLE_H.
5632         (tree-alias-type.o, tree-alias-ander.o,
5633         tree-alias-common.o, tree-ssa.o, tree-into-ssa.o,
5634         tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o,
5635         tree-ssa-phiopt.o, tree-nrv.o, tree-ssa-copy.o,
5636         tree-ssa-dom.o, tree-ssanames.o, tree-phinodes.o,
5637         domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o,
5638         tree-ssa-pre.o, tree-cfg.o, tree-tailcall.o,
5639         tree-nested.o, tree-iterator.o, tree-dfa.o,
5640         tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o,
5641         tree-ssa-alias.o, tree-optimize.o, c-simplify.o,
5642         gimplify.o, gimple-low.o, tree-browser.o, tree-simple.o,
5643         tree-mudflap.o, c-mudflap.o, tree-nomudflap.o,
5644         tree-pretty-print.o, tree-ssa-dce.o, tree-ssa-ccp.o,
5645         tree-sra.o, tree-complex.o, tree-profile.o,
5646         rtl-profile.o): New rules.
5647         (function.o): Add dependency on basic-block.h
5648         (expr.o): Add dependency on tree-iterator.h.
5649         (sibcall.o): Remove.
5650         (profile.o): Depend on TREE_FLOW_H instead of TREE_H.
5651         (cfg.o): Add dependency on TIMEVAR_H.
5652         (cfghooks.o): Add dependency on TREE_FLOW_H.
5653         (reg-stack.o): Add dependency on basic-block.h.
5654         (GTFILES): Add hwint.h, tree-mudflaph.c, tree-flow.h,
5655         c-objc-common.c, c-common.c, c-parse.in, tree-ssanames.c,
5656         tree-eh.c, tree-phinodes.c, tree-cfg.c, tree-dfa.c,
5657         tree-ssa-ccp.c, tree-iterator.c, gimplify.c,
5658         tree-alias-type.h, tree-alias-common.h,
5659         tree-alias-type.c, tree-alias-common.c,
5660         tree-ssa-operands.h, tree-ssa-operands.c, tree-profile.c,
5661         rtl-profile.c and tree-nested.c.
5662         (gt-tree-alias-common.h, gt-tree-mudflap.h,
5663         gt-tree-ssa-ccp.h, gt-tree-eh.h, gt-tree-ssanames.h,
5664         gt-tree-iterator.h, gt-gimplify.h, gt-tree-phinodes.h,
5665         gt-tree-cfg.h, gt-tree-nested.h): New rules.
5666         (TEXI_GCCINT_FILES): Add cfg.texi and tree-ssa.texi.
5667         * basic-block.h: Include predict.h
5668         (struct edge_def): Add GTY marker.
5669         Change field 'insns' to be a union of tree and rtx.
5670         (EDGE_TRUE_VALUE): Define.
5671         (EDGE_FALSE_VALUE): Define.
5672         (EDGE_EXECUTABLE): Define.
5673         (struct bb_ann_d): Forward declare.
5674         (struct basic_block_def): Add GTY marker.
5675         Remove fields head_tree and end_tree.
5676         Add fields stmt_list, rbi and tree_annotations.
5677         (struct reorder_block_def): Define.
5678         (basic_block_info): Add GTY marker.
5679         (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Change to global
5680         variables instead of macros.
5681         (flow_call_edges_add): Remove declaration.
5682         (make_eh_edge): Remove declaration.
5683         (brief_dump_cfg, find_edge, tree_predicted_by_p,
5684         rtl_predicted_by_p, tree_predict_edge, rtl_predict_edge,
5685         predict_edge_def, rtl_make_eh_edge, find_basic_blocks,
5686         cleanup_cfg, delete_unreachable_blocks, merge_seq_blocks,
5687         alloc_rbi_pool, initialize_bb_rbi, free_rbi_pool): Declare.
5688         (try_redirect_by_replacing_jump): Modfiy return type to
5689         edge instead of bool.
5690         * bb-reorder.c (copy_bb): Call duplicate_block
5691         instead of cfg_layout_duplicate_bb.
5692         (copy_bb_p): Call can_duplicate_block_p instead of
5693         cfg_layout_can_duplicate_bb_p.
5694         * bitmap.c (bitmap_first_set_bit): Abort if word
5695         wasn't found.
5696         (bitmap_last_set_bit): Likewise.
5697         * builtin-types.def (DEF_FUNCTION_TYPE_2): Add
5698         (DEF_FUNCTION_TYPE_3): Add.
5699         * builtins.c (c_strlen): Make extern.
5700         (builtin_save_expr): New.
5701         (expand_builtin_nonlocal_goto): New.
5702         (expand_builtin_constant_p): Remove.
5703         (expand_builtin_mathfn): Call builtin_save_expr instead
5704         of save_expr.
5705         (expand_builtin_mathfn_2): Likewise.
5706         (expand_builtin_strcmp): Likewise.
5707         (expand_builtin_strncmp): Likewise.
5708         (expand_builtin_strcat): Likewise.
5709         (fold_builtin_cabs): Likewise.
5710         (expand_builtin_alloca): Don't trigger if -fmudflap is
5711         given.
5712         (build_string_literal): Set TREE_INVARIANT on new node.
5713         (expand_builtin_profile_fun): New.
5714         (round_trampoline_addr): New.
5715         (expand_builtin_init_trampoline): New.
5716         (expand_builtin_adjust_trampoline): New.
5717         (expand_builtin) <BUILT_IN_NEXT_ARG>: Call simplify_builtin_next_arg.
5718         <BUILT_IN_CONSTANT_P>: Return const0_rtx;
5719         <BUILT_IN_STACK_ALLOC, BUILT_IN_STACK_SAVE,
5720         BUILT_IN_STACK_RESTORE, BUILT_IN_NONLOCAL_GOTO,
5721         BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT,
5722         BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE>:
5723         Handle.
5724         (fold_builtin_expect): New.
5725         (fold_builtin_isascii): Don't return non-constant results
5726         in GIMPLE form.
5727         (fold_builtin_isdigit): Likewise.
5728         (fold_builtin_1): New.
5729         (fold_builtin): Call it.
5730         (build_function_call_expr): Update call to build a new
5731         CALL_EXPR.
5732         (purge_builtin_constant_p): Remove.
5733         (simplify_builtin, simplify_builtin_memcmp,
5734         simplify_builtin_strcmp, simplify_builtin_strncmp,
5735         simplify_builtin_strpbrk, simplify_builtin_strstr,
5736         simplify_builtin_strchr, simplify_builtin_strrchr,
5737         simplify_builtin_strcat, simplify_builtin_strncat,
5738         simplify_builtin_strspn, simplify_builtin_strcspn,
5739         simplify_builtin_next_arg, simplify_builtin_va_start,
5740         simplify_builtin_sprintf): New.
5741         * builtins.def (BUILT_IN_STACK_ALLOC,
5742         BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE,
5743         BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE,
5744         BUILT_IN_NONLOCAL_GOTO, BUILT_IN_PROFILE_FUNC_ENTER,
5745         BUILT_IN_PROFILE_FUNC_EXIT): Define.
5746         * c-common.c: Include tree-iterator.h and hashtab.h.
5747         (lang_statement_code_p): Declare.
5748         (lang_gimplify_stmt): Declare.
5749         (fix_string_type): Set TREE_INVARIANT for value.
5750         (pointer_int_sum): Rely on build to set TREE_CONSTANT.
5751         (c_type_hash): New.
5752         (c_common_get_alias_set): Handle multiple type nodes
5753         referring to "the same" type, currently for C90 only.
5754         (c_add_case_label): Use create_artificial_label.
5755         (finish_label_address_expr): Don't set TREE_CONSTANT on
5756         result.
5757         (c_expand_expr): Don't handle STMT_EXPR.
5758         (handle_alias_attribute): Marke aliased variables to be
5759         TREE_STATIC.
5760         (handle_nonnull_attribute): Initialize arg_num.
5761         (check_function_nonnull): Likewise.
5762         (c_walk_subtrees): New.
5763         (c_estimate_num_insns_1): Don't handle
5764         EXPR_WITH_FILE_LOCATION nor FILE_STMT.
5765         (c_decl_uninit_1): Remove.
5766         (c_decl_uninit): Remove.
5767         (c_warn_unused_result): New.
5768         * c-common.def (ASM_STMT): Change number of operands
5769         to 4.
5770         (FILE_STMT): Remove.
5771         * c-common.h (lang_expand_stmt, lang_expand_decl_stmt):
5772         Remove.
5773         (lang_gimplify_stmt): Add.
5774         (expand_stmt): Remove.
5775         (ASM_CV_QUAL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
5776         ASM_CLOBBERS, STMT_EXPR_WARN_UNUSED_RESULT,
5777         ASM_VOLATILE_P, FILE_STMT_FILENAME_NODE,
5778         FILE_STMT_FILENAME, STMT_LINENO, STMT_LINENO_FOR_FN_P,
5779         ASM_INPUT_P, DECL_C_HARD_REGISTER): Remove.
5780         (genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
5781         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
5782         genrtl_while_stmt, genrtl_do_stmt, genrtl_return_stmt,
5783         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
5784         genrtl_scope_stmt, genrtl_switch_stmt, genrtl_case_label,
5785         genrtl_compound_stmt, genrtl_asm_stmt,
5786         genrtl_cleanup_stmt, c_decl_uninit): Remove.
5787         (c_do_switch_warnings, c_gimplify_expr, c_walk_subtrees,
5788         c_tree_chain_matters_p, c_warn_unused_result,
5789         c_genericize, c_gimplify_stmt, stmt_expr_last_stmt):
5790         Declare.
5791         * c-convert.c (convert): Make convert work when
5792         converting to compatible types across translation unit.
5793         * c-decl.c: Include langhooks.h, tree-mudflap.h,
5794         tree-simple.h, diagnostic.h and tree-dump.h
5795         (merge_decls): Initialize oldtype to NULL.
5796         (finish_decl): Use DECL_HARD_REGISTER instead of
5797         DECL_C_HARD_REGISTER.
5798         (check_bitfield_type_and_width): Check for null
5799         lang_type_specific when check the precision of an enum.
5800         (grokdeclarator): Immediately layout an ARRAY_TYPE used
5801         in a pointer-to-array declarator.
5802         (finish_struct): Clear allocated struct lang_type.
5803         (finish_enum): Set enum_min and enum_max.  Set
5804         TYPE_MIN/MAX_VALUE to the limits of the compatible type,
5805         not to the enumerators.
5806         (set_decl_nonlocal): New.
5807         (store_parm_decls): Use it via walk_tree.
5808         (c_finalize): New.
5809         (finish_function): When !targetm.have_ctors_dtors,
5810         record static constructors and destructors here...
5811         (c_expand_body_1): ... not here.
5812         (c_expand_decl): Rename from c_expand_decl_stmt.
5813         Handle all C-specific expansion semantics.
5814         * c-dump.c (dump_stmt): Use EXPR_LOCUS instead of
5815         STMT_LINENO.
5816         * c-format.c (handle_format_arg_attribute): Initialize
5817         format_num.
5818         * c-lang.c: Include tree-inline.h
5819         (LANG_HOOKS_EXPAND_DECL,
5820         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
5821         LANG_HOOKS_TREE_INLINING_WALK_SUBTREES,
5822         LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P,
5823         LANG_HOOKS_GIMPLIFY_EXPR, LANG_HOOKS_TYPES_COMPATIBLE_P): Define.
5824         (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
5825         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): Remove.
5826         (c_types_compatible_p): New.
5827         * c-mudflap.c: New file.
5828         * c-objc-common.c: Include tree-mudflap.h
5829         (start_cdtor, finish_cdtor): Collapse
5830         together into
5831         (build_cdtor): ...here.  Update to construct a complete tree
5832         for the function.  No need to call push_scope, pop_scope, or
5833         clear_last_expr, or set current_function_cannot_inline.
5834         (c_missing_noreturn_ok_p): Change prototype to return
5835         bool.
5836         (c_objc_common_init): Don't set lang_missing_noreturn_ok_p.
5837         * c-opts.c (c_common_handle_option): Move handling of -fdump- to
5838         opts.c.
5839         (c_common_post_options): Don't ever use rtl inlining.
5840         * c-parse.in: Use EXPR_LOCUS instead of STMT_LINENO.
5841         * c-pragma.c (handle_pragma_redefine_extname): Define
5842         always.
5843         (init_pragma): Activate #pragma redefine_extname for mudflap.
5844         * c-pretty-print.c (pp_c_statement): Remove FILE_STMT.
5845         (pp_c_initializer): Accept any type CONSTRUCTOR.
5846         (pp_c_initializer_list): Fix code expectations for VECTOR_TYPE and
5847         COMPLEX_TYPE.
5848         (decl_name_str): New local function.
5849         (pp_c_direct_declarator): Call it.
5850         (pp_c_primary_expression): Call it.
5851         (pp_c_id_expression): Call it.
5852         (pp_c_statement): Call it.
5853         (print_c_tree): Create new pp object.
5854         * c-pretty-print.h (pp_c_tree_decl_identifier,
5855         print_c_tree): Declare.
5856         * c-semantics.c: Include langhooks.h
5857         (lang_expand_stmt, lang_expand_decl_stmt,
5858         find_reachable_label_1, find_reachable_label,
5859         expand_unreachable_if_stmt, expand_unreachable_stmt,
5860         genrtl_do_stmt_1): Remove.
5861         (begin_stmt_tree): Don't check for changed filename.
5862         Call annotate_with_locus.
5863         (finish_stmt_tree): Don't set line for end of function.
5864         (build_stmt): Don't check type nodes for
5865         side effects.
5866         (build_stmt): Set TREE_SIDE_EFFECTS.
5867         Set EXPR_LOCUS instead of STMT_LINENO.
5868         (lang_expand_stmt, lang_expand_decl_stmt,
5869         expand_cond, genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
5870         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
5871         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_do_stmt,
5872         genrtl_return_stmt, genrtl_for_stmt, genrtl_break_stmt,
5873         genrtl_continue_stmt, genrtl_scope_stmt, genrtl_switch_stmt,
5874         genrtl_case_label, genrtl_compound_stmt, genrtl_asm_stmt,
5875         genrtl_cleanup_stmt, expand_stmt, find_reachable_label,
5876         find_reachable_label_1, expand_unreachable_if_stmt,
5877         expand_unreachable_stmt): Remove.
5878         (prep_stmt): Use EXPR_LOCUS instead of STMT_LINENO.
5879         * c-simplify.c: New file.
5880         * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Define.
5881         (struct lang_type): Add fields enum_min and enum_max.
5882         (c_expand_decl_stmt, c_missing_noreturn_ok_p): Remove.
5883         (c_expand_decl, c_missing_noreturn_ok_p,
5884         c_types_compatible_p): Declare.
5885         * c-typeck.c (tagged_types_tu_compatible_p): Allow for
5886         compiler-generated TYPE_DECLs without a DECL_ORIGINAL_TYPE.
5887         (default_function_array_conversion): Rely on build to
5888         set TREE_CONSTANT.
5889         (parser_build_binary_op, pointer_diff): Likewise.
5890         (build_unary_op, build_binary_op): Likewise.
5891         (build_array_ref):
5892         (build_external_ref): Set TREE_INVARIANT.
5893         (build_c_cast, pop_init_level): Likewise.
5894         (process_init_element): Use ASM_VOLATILE_P.
5895         (build_asm_expr): Adapt to GENERIC/GIMPLE syntax.
5896         (c_finish_case): Call c_do_switch_warnings.
5897         * c.opt (fdump-): Remove.
5898         * calls.c (try_to_integrate): Remove.
5899         (prepare_call_address): Replace fndecl arg with a
5900         precomputed static chain value.
5901         (emit_call_1): New argument for full call expr.
5902         (flags_from_decl_or_type): Call special_function_p.
5903         (initialize_argument_information): Add argument
5904         may_tailcall.
5905         (purge_reg_equiv_notes): New.
5906         (expand_call): Do not try to expand calls inline.
5907         (fixup_tail_calls): New.
5908         * cfg.c: Include timevar.h and ggc.h.
5909         (bb_pool, edge_pool): Remove.
5910         (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Declare.
5911         (entry_exit_blocks): Remove.
5912         (rbi_pool): Declare.
5913         (init_flow): Do not create pools.
5914         Allocate entry/exit block.
5915         (free_edge, alloc_block, expunge_block, unchecked_make_edge): Use GGC.
5916         (alloc_rbi_pool, free_rbi_pool, initialize_bb_rbi): New.
5917         (unlink_block): Clear b->prev_bb and b->next_bb.
5918         (compact_blocks): Clear all slots of BASIC_BLOCK array.
5919         (dump_flow_info): Work on trees too.
5920         (dump_cfg_bb_info): New.
5921         (brief_dump_cfg): New.
5922         * cfganal.c (need_fake_edge_p, flow_call_edges_add): Remove.
5923         (find_edge): New.
5924         * cfgbuild.c (rtl_make_eh_edge): Rename from
5925         make_eh_edge.  Update all users.
5926         (find_basic_blocks): Don't call VARRAY_FREE on
5927         basic_block_info.
5928         * cfgcleanup.c (outgoing_edges_match): Initialize newpos1
5929         and newpos2.
5930         (delete_unreachable_blocks): Return changed status.
5931         (merge_seq_blocks): New.
5932         * cfghooks.c: Include tree-flow.h
5933         (tree_register_cfg_hooks, ir_type): New.
5934         (redirect_edge_and_branch): Change return type to edge.
5935         (predict_edge, predicted_by_p, can_duplicate_block_p,
5936         duplicate_block, block_ends_with_call_p,
5937         block_ends_with_condjump_p, flow_call_edges_add): New.
5938         * cfghooks.h (redirect_edge_and_branch): Change return
5939         type to edge.
5940         (predict_edge, predicted_by_p, can_duplicate_block_p,
5941         duplicate_block, block_ends_with_call_p,
5942         block_ends_with_condjump_p, flow_call_edges_add): Declare.
5943         (redirect_edge_and_branch): Change return type to edge.
5944         (struct cfg_hooks): Add fields block_ends_with_call_p,
5945         block_ends_with_condjump_p, flow_call_edges_add,
5946         predict_edge, predicted_by_p, can_duplicate_block_p and
5947         duplicate_block.
5948         (tree_cfg_hooks, ir_type, tree_register_cfg_hooks): Declare.
5949         * cfglayout.c (cfg_layout_pool, cfg_layout_initialize_rbi): Removed.
5950         (fixup_reorder_chain): Use initialize_bb_rbi.
5951         (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Hookized.
5952         (cfg_layout_initialize): Use cfg.c rbi pool manipulation functions.
5953         (can_copy_bbs_p, copy_bbs): Use cfghooks for bb duplication.
5954         (insn_locators_initialize): Use new info about blocks.
5955         * cfglayout.h (typedef struct reorder_block_def): Moved to
5956         basic_block.h.
5957         (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Declaration
5958         removed.
5959         * cfgloop.c: Include tree.h and tree-flow.h.
5960         * cfgloop.h (create_loop_notes): Declare.
5961         * cfgloopmanip.c (create_loop_notes): New.
5962         * cfgrtl.c (cfg_layout_create_basic_block): Use initialize_bb_rbi.
5963         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Fill in can_duplicate_block_p
5964         and duplicate_block fields.
5965         (create_basic_block_structure): Don't look at
5966         RTX_INTEGRATED_P.
5967         (rtl_block_ends_with_call_p): New.
5968         (rtl_block_ends_with_condjump_p): New.
5969         (need_fake_edge_p): Moved from cfganal.c.
5970         (rtl_flow_call_edges_add): Moved from cfganal.c (flow_call_edges_add).
5971         (rtl_cfg_hooks): Add rtl_block_ends_with_call_p,
5972         rtl_block_ends_with_condjump_p, rtl_flow_call_edges_add.
5973         (cfg_layout_rtl_cfg_hooks): Ditto.
5974         * cgraph.c (cgraph_mark_reachable_node): Don't force nested
5975         functions to be reachable.
5976         * cgraphunit.c (decide_is_function_needed):
5977         * cgraphunit.c (decide_is_function_needed): Nested functions of extern
5978         inline functions don't need to be output.
5979         (cgraph_assemble_pending_functions): Don't do anything
5980         special for nested functions.
5981         (cgraph_mark_functions_to_output): Likewise.
5982         (cgraph_finalize_function): Don't zap DECL_STRUCT_FUNCTION.
5983         (cgraph_analyze_function): Use estimate_num_insns.
5984         (cgraph_mark_functions_to_output): Likewise.
5985         (cgraph_estimate_growth, cgraph_clone_inlined_nodes): Likewise.
5986         (cgraph_expand_function): Allow functions to not be
5987         emitted.
5988         (cgraph_remove_unreachable_nodes):
5989         (cgraph_recursive_inlining_p): Simplify.
5990         (lookup_recursive_calls,
5991         cgraph_decide_recursive_inlining): New.
5992         (cgraph_decide_inlining_*): Update calls of
5993         cgraph_mark_inline.
5994         * combine.c (get_pos_from_mask): Always set *plen.
5995         * common.opt (fdump-, fmudflap, fmudflapth, fmudflapir,
5996         ftree-based-profiling, ftree-ccp, ftree-ch,
5997         ftree-combine-temps, ftree-copyrename, ftree-dce,
5998         ftree-dominator-opts, ftree-dse, ftree-loop-optimize,
5999         ftree-points-to, ftree-pre, ftree-sra, ftree-ter,
6000         ftree-lrs): Add.
6001         * config.in (HAVE_LD_PIE, HAVE_BANSHEE, PREFIX_INCLUDE_DIR):
6002         Undefine.
6003         * configure.ac: Add --enable-tree-browser option.
6004         Add --with-libbanshee option.
6005         Add GMPLIBS and GMPINC.
6006         * configure: Regenerate.
6007         * coverage.c (tree_ctr_tables): New.
6008         (coverage_counter_alloc): Use it.
6009         (build_ctr_info_value): Ditto.
6010         (coverage_counter_ref): Ditto.  Rename to rtl_coverage_counter_ref.
6011         (tree_coverage_counter_ref): New.
6012         * coverage.h (coverage_counter_ref): Remove declaration.
6013         (rtl_coverage_counter_ref): Declare.
6014         (tree_coverage_counter_ref): Declare.
6015         * cppexp.c (append_digit): Rearrange unsignedp/overflow setting.
6016         (eval_token, num_binary_op, num_part_mul, num_div_op): Likewise.
6017         * cse.c (fold_rtx): Do not handle CONSTANT_P_RTX.
6018         (struct cse_basic_block_data): Rename enum values to not
6019         conflict with profile.h; update all uses.
6020         * dbxout.c (dbxout_symbol_location): Don't mention integrate.c
6021         in comments.
6022         * defaults.h (TRAMPOLINE_ALIGNMENT): Move from function.c.
6023         * diagnostic.h (debug_output_buffer, dump_generic_node,
6024         print_generic_stmt, print_generic_stmt_indented,
6025         print_generic_expr, print_generic_decl,
6026         debug_generic_expr, debug_generic_stmt, debug_c_tree):
6027         Declare.
6028         * dominance.c: Cache immediate dominators.
6029         * domwalk.c: New file.
6030         * domwalk.h: New file.
6031         * dwarf2out.c (is_fortran): Support DW_LANG_Fortran95.
6032         (gen_subprogram_die): Generate a DIE for a named
6033         return value.
6034         (loc_descriptor_from_tree): Treat RESULT_DECL like VAR_DECL.
6035         (add_location_or_const_value_attribute): Likewise.
6036         (add_bound_info): Likewise.
6037         (gen_decl_die): Likewise.
6038         * emit-rtl.c (maybe_set_first_label_num): New.
6039         (copy_most_rtx): Don't copy the integrated flag.
6040         Copy the new return_val flag.
6041         * et-forest.c (MAX_NODES): Define.
6042         (record_path_before_1): Abort if len is greater than
6043         MAX_NODES.
6044         * except.c (gen_eh_region, gen_eh_region_cleanup, gen_eh_region_try,
6045         gen_eh_region_catch, gen_eh_region_allowed,
6046         gen_eh_region_must_not_throw, get_eh_region_number,
6047         get_eh_region_may_contain_throw, get_eh_region_tree_label,
6048         set_eh_region_tree_label, expand_resx_expr): New.
6049         (expand_eh_region_start, expand_start_catch): Use them.
6050         (expand_end_catch): Tidy.
6051         (note_eh_region_may_contain_throw): Take region argument.
6052         (note_current_region_may_contain_throw): New.
6053         (get_exception_filter): Export.
6054         (collect_eh_region_array): Export.
6055         (remove_unreachable_regions): Check ERT_TRY based on reachability
6056         of catches, not reachability of continue_label.  Never remove
6057         ERT_MUST_NOT_THROW regions.
6058         (collect_rtl_labels_from_trees): New.
6059         (convert_from_eh_region_ranges): Use it.
6060         (connect_post_landing_pads): Handle dying cleanups.
6061         (struct reachable_info): Add callback data.
6062         (add_reachable_handler): Invoke the callback.
6063         (foreach_reachable_handler): New.
6064         (reachable_handlers): Use it.
6065         (arh_to_landing_pad, arh_to_label): New.
6066         (can_throw_internal_1): Split out from can_throw_internal.
6067         (can_throw_external_1): Similarly.
6068         * except.h: Update.
6069         * explow.c (emit_stack_save): Remove savearea mode check.
6070         (update_nonlocal_goto_save_area): New.
6071         (allocate_dynamic_stack_space): Use it.
6072         (probe_stack_range): Never emit loop notes.
6073         * expmed.c (extract_fixed_bit_field): Always propagate the
6074         target for the shift if it is a REG.
6075         * expr.c: Include tree-iterator.h
6076         (is_zeros_p): Remove.
6077         (categorize_ctor_elements_1, categorize_ctor_elements): New.
6078         (count_type_elements): New.
6079         (mostly_zeros_p): Use them.
6080         (expr_wfl_stack): Remove.
6081         (convert_move): Do nothing if to and from are the same.
6082         (emit_block_move_via_loop): Don't emit LOOP notes.
6083         (emit_move_insn): Don't handle CONSTANT_P_RTX.
6084         (emit_move_insn_1): Don't generate inline warnings.
6085         (expand_vars, expand_var): Split from ...
6086         (expand_expr_1): ... here.
6087         (expand_expr_real, expand_expr_real_1):  Use new macros
6088         EXPR_LOCATION and EXPR_HAS_LOCATION.
6089         * expr.h (simplify_builtin_fputs,
6090         simplify_builtin_strcpy, simplify_builtin_strncpy,
6091         expand_var, fixup_tail_calls,
6092         update_nonlocal_goto_save_area): Declare.
6093         (lookup_static_chain, expand_inline_function,
6094         mark_seen_cases): Remove.
6095         (prepare_call_address): Change type of 2nd argument to
6096         rtx.
6097         * final.c (profile_function): Update static chain test.
6098         (final): Don't look at RTX_INTEGRATED_P.
6099         * flags.h (flag_mudflap, flag_mudflap_threads,
6100         flag_mudflap_ignore_reads, flag_tree_pre, flag_tree_ccp,
6101         flag_tree_dce, flag_tree_combine_temps,
6102         flag_tree_live_range_split, flag_tree_dom, flag_tree_ch,
6103         flag_tree_dse, flag_tree_sra, flag_tree_copyrename,
6104         flag_tree_points_to): Declare.
6105         (enum pta_type): Declare.
6106         * flow.c (lang_missing_noreturn_ok_p): Remove.
6107         (check_function_return_warnings): Remove.
6108         (update_life_info): Update comments.
6109         (free_basic_block_vars): Don't call VARRAY_FREE for
6110         basic_block_info.
6111         (regno_uninitialized): Remove.
6112         * fold-const.c (int_const_binop): Make extern.
6113         (non_lvalue): Rely on build to set TREE_CONSTANT.
6114         (operand_equal_p): Replace only_const argument with
6115         flags.  Allow pure functions if OEP_PURE_SAME.
6116         (fold): Use OEP_ONLY_CONST.
6117         (invert_truthvalue) <NOP_EXPR> Break if argument is of
6118         boolean type.
6119         (fold_relational_hi_lo,
6120         nondestructive_fold_binary_to_constant,
6121         nondestructive_fold_unary_to_constant,
6122         fold_read_from_constant_string): New.
6123         * function.c (struct function): Remove calls_constant_p.
6124         (current_function_calls_constant_p): Remove.
6125         (inline_function_decl): Remove.
6126         (put_var_into_stack): Don't use it.
6127         (fix_lexical_addr): Likewise.
6128         (inline_function_decl): Remove extern declaration.
6129         (TRAMPOLINE_ALIGNMENT): Move to defaults.h.
6130         (trampolines_created): Move to varasm.c.
6131         (free_after_compilation): Update for removed fields.
6132         (allocate_struct_function): Likewise.
6133         (delete_handlers, lookup_static_chain): Remove.
6134         (fix_lexical_addr): Don't consider non-local variable refs.
6135         (trampoline_address): Remove.
6136         (round_trampoline_addr): Move to builtins.c.
6137         (adjust_trampoline_addr): Remove.
6138         (expand_function_start): Update for changes to static chain
6139         and nonlocal goto handling.
6140         (initial_trampoline): Move to varasm.c.
6141         (expand_function_end): Don't build trampolines or kill
6142         unreferenced nonlocal goto labels.
6143         (free_after_compilation): Don't set it.
6144         (expand_function_end): Likewise.
6145         (setjmp_vars_warning): Rename from
6146         uninitialized_vars_warning, remove uninitialized vars warning.
6147         (uninitialized_vars_warning): Remove old comment
6148         and check for DECL_INITIAL, replace with a check of TREE_NO_WARNING
6149         and do not call the langhook.
6150         (expand_function_start, expand_function_end): Don't do
6151         function instrumentation here.
6152         (clear_block_marks): Rename from reorder_blocks_0, export.
6153         (blocks_nreverse): Export.
6154         (uninitialized_vars_warning): Use DECL_RTL_SET_P to test for presence
6155         of rtl.
6156         (reset_block_changes, record_block_change, finalize_block_changes,
6157         check_block_change, free_block_changes): New functions.
6158         (assign_parms): Setting of current_function_stdarg
6159         moved ...
6160         (allocate_struct_function): ... here.
6161         * function.h (struct function): Remove x_nonlocal_labels,
6162         x_nonlocal_goto_handler_slots, x_nonlocal_goto_stack_level,
6163         x_context_display, x_trampoline_list, needs_context.
6164         Add static_chain_decl, nonlocal_goto_save_area.
6165         (struct function): Remove x_clobber_return_insn.
6166         Add tail_call_emit field, last_label_uid,
6167         unexpanded_var_list, dont_emit_block_notes,
6168         ib_boundaries_block, function_end_locus and saved_tree/saved_args.
6169         (clear_block_marks): Declare.
6170         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Add -fmudflapth support.
6171         (mfwrap_spec, mflib_spec): Declare.
6172         (cpp_unique_options, cc1_options): Ditto.
6173         (default_compilers): Add .F and .f90.
6174         (static_specs): Add mfwrap and mflib.
6175         * gcse.c (want_to_gcse_p, gcse_constant_p): Don't handle
6176         CONSTANT_RTX_P.
6177         (reg_used_on_edge, reg_killed_on_edge, bypass_block):
6178         Update to match insns field in struct edge_def.
6179         * gdbinit.in (pgs, pge): Define.
6180         * genattrtab.c (ATTR_PERMANENT_P): Use the return_val flag
6181         instead of the integrated flag.
6182         * gengtype-lex.l (IWOrD): Add HOST_WIDEST_INT
6183         * gengtype-yacc.y (bitfieldlen): Add empty action.
6184         (struct_fields): Accept unnamed bitfields.
6185         (bitfieldlen): Split from ...
6186         (bitfieldopt): ... here.
6187         * gengtype.c (ifiles): Add tree-alias-type.h and
6188         tree-flow.h.
6189         * genrecog.c (validate_pattern): Do not handle
6190         CONSTANT_P_RTX.
6191         * gimple-low.c: New file.
6192         * gimplify.c: New file.
6193         * haifa-sched.c (priority): Do not handle CONSTANT_P_RTX.
6194         (restore_line_notes): Do not set RTX_INTEGRATED_P.
6195         * ifcvt.c (dead_or_predicable): Initialize local variable
6196         'earliest'.
6197         * input.h (expr_wfl_stack): Remove.
6198         * integrate.c (INTEGRATE_THRESHOLD): Remove.
6199         (setup_initial_hard_reg_value_integration): Likewise.
6200         (initialize_for_inline): Likewise.
6201         (note_modified_parmregs): Likewise.
6202         (integrate_parm_decls): Likewise.
6203         (process_reg_param): Likewise.
6204         (save_parm_insns): Likewise.
6205         (copy_insn_list): Likewise.
6206         (copy_insn_notes): Likewise.
6207         (compare_blocks): Likewise.
6208         (find_block): Likewise.
6209         (inlining): Likewise.
6210         (function_cannot_inline_p): Likewise.
6211         (parmdecl_map): Likewise.
6212         (in_nonparam_insns): Likewise.
6213         (save_for_inline): Likewise.
6214         (FIXED_BASE_PLUS): Likewise.
6215         (expand_inline_function): Likewise.
6216         (copy_rtx_and_substitute): Don't look at map->integrating,
6217         map->inline_target, and inlining, since we are never copying
6218         for integrating.
6219         Don't abort on RTX_INTEGRATED_P.
6220         (old_fun): Remove.
6221         (output_inline_function): Remove.
6222         * integrate.h (struct inline_map): Remove fields integrating,
6223         block_map, leaf_reg_map, inline_target, and local_return_label.
6224         * jump.c (next_nonnote_insn_in_loop, duplicate_loop_exit_test,
6225         copy_loop_headers, never_reached_warning): Removed.
6226         (any_uncondjump_p): Reject nonlocal goto.
6227         * langhooks-def.h (lhd_types_compatible_p,
6228         lhd_expand_decl, lhd_gimplify_expr): Declare.
6229         (LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
6230         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
6231         LANG_HOOKS_FUNCTION_LEAVE_NESTED,
6232         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
6233         LANG_HOOKS_GIMPLIFY_EXPR,
6234         LANG_HOOKS_GIMPLE_BEFORE_INLINING,
6235         LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
6236         LANG_HOOKS_GIMPLIFY_EXPR,
6237         LANG_HOOKS_GIMPLE_BEFORE_INLINING): Define.
6238         (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_START,
6239         LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END,
6240         LANG_HOOKS_FUNCTION_LEAVE_NESTED,
6241         LANG_HOOKS_RTL_EXPAND_INITIALIZER,
6242         LANG_HOOKS_DECL_UNINIT,
6243         LANG_HOOKS_RTL_EXPAND_INITIALIZER): Remove.
6244         * langhooks.c: Include tree-simple.h.
6245         (lhd_expand_decl): New.
6246         (lhd_types_compatible_p): New.
6247         (lhd_decl_uninit): Remove.
6248         (lhd_gimplify_expr): New.
6249         * langhooks.h (struct lang_hooks_for_rtl_expansion):
6250         Remove.
6251         (struct lang_hooks_for_functions): Add field
6252         missing_noreturn_ok_p.
6253         (struct lang_hooks): Add field expand_decl,
6254         types_compatible_p, gimplify_expr and
6255         gimple_before_inlining.
6256         Remove fields decl_uninit and rtl_expand
6257         * opts.c (decode_options): Set flag_tree_ccp,
6258         flag_tree_dce, flag_tree_dom, flag_tree_dse,
6259         flag_tree_pre, flag_tree_ter,
6260         flag_tree_live_range_split, flag_tree_sra,
6261         flag_tree_copyrename and flag_tree_ch at -O1 and higher.
6262         (common_handle_option): Handle OPT_fdump_, OPT_fmudflap,
6263         OPT_fmudflapth, OPT_fmudflapir,
6264         OPT_ftree_based_profiling, OPT_ftree_ccp, OPT_ftree_dce,
6265         OPT_ftree_combine_temps, OPT_ftree_ter, OPT_ftree_lrs,
6266         OPT_ftree_dominator_opts, OPT_ftree_copyrename,
6267         OPT_ftree_ch, OPT_ftree_dse, OPT_ftree_sra,
6268         OPT_ftree_points_to_ and OPT_ftree_pre.
6269         * output.h (regno_uninitialized, find_basic_blocks,
6270         cleanup_cfg, delete_unreachable_blocks,
6271         check_function_return_warnings): Remove.
6272         * params.def (PARAM_MAX_INLINE_INSNS_RECURSIVE,
6273         PARAM_MAX_INLINE_INSNS_RECURSIVE_AUTO,
6274         PARAM_MAX_INLINE_RECURSIVE_DEPTH,
6275         PARAM_MAX_INLINE_RECURSIVE_DEPTH_AUTO,
6276         PARAM_GLOBAL_VAR_THRESHOLD, PARAM_MAX_ALIASED_VOPS):
6277         * params.h (GLOBAL_VAR_THRESHOLD, MAX_ALIASED_VOPS):
6278         Define.
6279         * passes.c (rest_of_decl_compilation):
6280         (rest_of_handle_sibling_calls): Remove.
6281         (rest_of_handle_inlining): Remove.
6282         (rest_of_handle_gcse): Do not run
6283         purge_builtin_constant_p.
6284         (rest_of_compilation): Update.
6285         Do not call copy_loop_headers.
6286         Do rtl-based profiling only when
6287         !flag_tree_based_profiling.  Register rtl-based profiling
6288         hooks.
6289         * predict.c:  Include tree-flow.h, ggc.h, tree-dump.h
6290         (predicted_by_p): Rename to ...
6291         (rtl_predicted_by_p): .. this one; make global
6292         (tree_predicted_by_p): New.
6293         (dump_prediction): Add FILE argument.
6294         (predict_edge): Rename to ...
6295         (rtl_predict_edge): .. this one.
6296         (tree_predict_edge): New.
6297         (combine_predictions_for_insn): Update calls of predict_edge.
6298         (predict_loops): Break out from ...
6299         (estimate_probability): ... here; update comments; move updating
6300         of unknown probabilities from ...
6301         (estimate_bb_frequencies): ... here.
6302         (combine_predictions_for_bb): New.
6303         (tree_predict_by_opcode): New.
6304         (tree_estimate_probability): New.
6305         * predict.def (PRED_TREE_POINTER, PRED_TREE_OPCODE_POSITIVE,
6306         PRED_TREE_OPCODE_NONEQUAL, PRED_TREE_FPOPCODE): New predictors.
6307         * predict.h: Add include guard.
6308         (predict_edge, predict_edge_def): Move prototypes to basic_block.h
6309         * pretty-print.c (pp_write_text_to_stream): Make extern.
6310         * pretty-print.h (pp_write_text_to_stream): Declare.
6311         * print-rtl.c (print_rtx): Don't print the integrated flag.
6312         Print the return_val flag.
6313         * print-tree.c: Use TREE_FILENAME and TREE_LINENO instead
6314         of DECL_SOURCE_FILE and DECL_SOURCE_LINE respectively.
6315         Remove support for EXPR_WITH_FILE_LOCATION nodes.
6316         (print_node): Print TREE_INVARIANT and TREE_VISITED.
6317         * profile.c: Include cfghooks.h, tree-flow.h.
6318         (profile_hooks): New.
6319         (profile_dump_file): New.
6320         (instrument_edges): Use hooks instead of RTL-specific code.
6321         (instrument_values): Ditto.
6322         (get_exec_counts): Ditto.
6323         (compute_branch_probabilities): Ditto.
6324         (compute_value_histograms): Ditto.
6325         (branch_prob): Ditto.
6326         (find_spanning_tree): Ditto.
6327         (end_branch_prob): Ditto.
6328         (gen_edge_profiler): Move to rtl-profile.c (rtl_gen_edge_profiler).
6329         (gen_interval_profiler): Ditto (rtl_gen_interval_profiler).
6330         (gen_pow2_profiler): Ditto (rtl_gen_pow2_profiler).
6331         (gen_one_value_profiler): Ditto (rtl_gen_one_value_profiler).
6332         (tree_register_profile_hooks): New.
6333         (rtl_register_profile_hooks): New.
6334         * ra-rewrite.c (rewrite_program): Clear variable info.
6335         * recog.c (immediate_operand): Do not handle CONSTANT_P_RTX.
6336         * regs.h: Add include guards.
6337         * reload.c (decompose): Clear val using memset.
6338         * rtl.def (CONSTANT_P_RTX): Remove.
6339         * rtl.h (CONSTANT_P): Do not handle CONSTANT_P_RTX.
6340         (copy_loop_headers): Remove.
6341         (struct rtx_def): Replace the integrated flag with the
6342         return_val flag.
6343         (maybe_set_first_label_num): Declare.
6344         (init_branch_prob): Move declaration to value-prof.h.
6345         (end_branch_prob): Ditto.
6346         (branch_prob): Ditto.
6347         (never_reached_warning): Don't declare it.
6348         * rtlanal.c (get_related_value): Initialize get_jump_table_offset
6349         (hoist_insn_to_edge): Update to match field insns in
6350         struct edge_def.
6351         * sbitmap.c (sbitmap_realloc): New.
6352         * sbitmap.h (sbitmap_realloc): Declare.
6353         * sibcall.c: Remove file.
6354         * simplify-rtx.c (simplify_rtx): Do not handle
6355         CONSTANT_P_RTX.
6356         * stmt.c (parse_output_constraint): Don't warn for read-write
6357         memory operand.
6358         (tail_recursion_args): Use types_compatible_p langhook.
6359         (force_label_rtx): Don't look at inline_function_decl.
6360         (label_rtx): Set LABEL_PRESERVE_P appropriately.
6361         (expand_label): Handle DECL_NONLOCAL and FORCED_LABEL.
6362         (declare_nonlocal_label): Remove.
6363         (expand_goto): Don't handle nonlocal gotos.
6364         (expand_nl_handler_label): Remove.
6365         (expand_nl_goto_receivers): Remove.
6366         (expand_end_bindings): Don't expand_nl_goto_receivers.  Use
6367         update_nonlocal_goto_save_area.
6368         (expand_expr_stmt_value): Check TREE_NO_WARNING.
6369         (warn_if_unused_value): Likewise.
6370         (expand_start_loop, expand_loop_continue_here,
6371         expand_end_loop): Don't create loop notes.
6372         (all_cases_count, BITARRAY_TEST, BITARRAY_SET,
6373         mark_seen_cases, check_for_full_enumeration_handling): Remove.
6374         (expand_end_case_type): Don't do warn_switch handling.
6375         (pushcase, pushcase_range) Update add_case_node calls.
6376         (add_case_node): Add dont_expand_label argument.
6377         (same_case_target_p): Don't search rtl.
6378         (expand_start_bindings_and_block, expand_end_bindings):
6379         Don't emit block notes when dont_emit_block_notes.
6380         (using_eh_for_cleanups_p): Export.
6381         (expand_return): Allow any typed rhs.
6382         (expand_stack_alloc): New.
6383         (expand_stack_save, expand_stack_restore): New.
6384         (containing_blocks_have_cleanups_or_stack_level): New
6385         function.
6386         (asm_op_is_mem_input): New fn.
6387         (expand_asm_expr): New fn.
6388         (warn_if_unused_value): Check operand 0 of SAVE_EXPR
6389         nodes.
6390         * stor-layout.c (layout_type): Just return if type is
6391         error_mark_node.
6392         (update_alignment_for_field): Export.
6393         (variable_size): We don't care about global_bindings_p if
6394         the frontend doesn't want a list of the expressions.
6395         * system.h: Poison INTEGRATE_THRESHOLD.
6396         * timevar.def (TV_TREE_GIMPLIFY, TV_TREE_EH, TV_TREE_CFG,
6397         TV_TREE_CLEANUP_CFG, TV_TREE_PTA, TV_TREE_MAY_ALIAS,
6398         TV_TREE_INSERT_PHI_NODES, TV_TREE_SSA_REWRITE_BLOCKS,
6399         TV_TREE_SSA_OTHER, TV_TREE_OPS,
6400         TV_TREE_SSA_DOMINATOR_OPTS, TV_TREE_SRA, TV_TREE_CCP,
6401         TV_TREE_SPLIT_EDGES, TV_TREE_PRE, TV_TREE_PHIOPT,
6402         TV_TREE_FORWPROP, TV_TREE_DCE, TV_TREE_CD_DCE,
6403         TV_TREE_DSE, TV_TREE_LOOP, TV_TREE_CH,
6404         TV_TREE_SSA_TO_NORMAL, TV_TREE_SSA_TO_NORMAL,
6405         TV_TREE_NRV, TV_TREE_COPY_RENAME, TV_TREE_SSA_VERIFY,
6406         TV_TREE_STMT_VERIFY, TV_DOM_FRONTIERS,
6407         TV_CONTROL_DEPENDENCES): Define.
6408         * toplev.c: Include tree-alias-common.h
6409         (current_file_decl, flag_mudflap, flag_mudflap_threads,
6410         flag_mudflap_ignore_reads, flag_tree_based_profiling,
6411         flag_tree_gvn, flag_tree_points_to, flag_tree_ccp,
6412         flag_tree_dce, flag_tree_ch, flag_tree_sra,
6413         flag_tree_combine_temps, flag_tree_ter,
6414         flag_tree_live_range_split, flag_tree_dom,
6415         flag_tree_copyrename, flag_tree_dse): Declare.
6416         (f_options): Add tree-based-profiling, tree-gvn,
6417         tree-pre, tree-ccp, tree-dce,
6418         tree-dominator-opts, tree-copyrename, tree-dse,
6419         tree-combine-temps, tree-ter, tree-lrs and tree-ch.
6420         (wrapup_global_declarations): Don't output nested inlined functions.
6421         (general_init): Call init_tree_optimization_passes.
6422         (process_options): Sorry for -ftree-based-profiling plus
6423         -ftest-coverage or -fprofile-values.
6424         * toplev.h (init_tree_optimization_passes,
6425         flag_tree_based_profiling): Declare.
6426         * tracer.c (tail_duplicate): Use cfghooks for bb duplication.
6427         * tree-alias-ander.c: New file.
6428         * tree-alias-ander.h: New file.
6429         * tree-alias-common.c: New file.
6430         * tree-alias-common.h: New file.
6431         * tree-alias-type.c: New file.
6432         * tree-alias-type.h: New file.
6433         * tree-browser.c: New file.
6434         * tree-browser.def: New file.
6435         * tree-cfg.c: New file.
6436         * tree-complex.c: New file.
6437         * tree-dfa.c: New file.
6438         * tree-dump.c (dump_enable_all): New.
6439         (dequeue_and_dump): Do not handle EXPR_WITH_FILE_LOCATION.
6440         (dump_node): Remove const from field suffix and swtch.
6441         (dump_files): Add null entry, .generic, .nested, .vcg,
6442         .xml and a match-all entry.
6443         (extra_dump_files, extra_dump_files_in_use,
6444         extra_dump_files_alloced): Declare
6445         (dump_option_value_info): Add raw, details, stats,
6446         blocks, vops, lineno, uid and all.
6447         (dump_register): New.
6448         (get_dump_file_info): New.
6449         (dump_begin): Call it.
6450         Do nothing for TDI_none.
6451         (dump_begin): Include phase number in dump filename.
6452         (dump_enable_all): New.
6453         (dump_switch_p_1): Split out from dump_switch_p.
6454         (dump_switch_p): Handle extra_dump_files.
6455         Start our scan at TDI_none + 1.
6456         If -fdump-tree-all was given, call dump_enable_all.
6457         * tree-dump.h: Include splay-tree.h.
6458         (dump_function, dump_function_to_file, dump_register):
6459         Declare.
6460         * tree-eh.c: New file.
6461         * tree-flow-inline.h: New file.
6462         * tree-flow.h: New file.
6463         * tree-inline.c: Re-write to handle inlining on GIMPLE.
6464         * tree-inline.h (walk_tree,
6465         walk_tree_without_duplicates): Move to tree.h.
6466         (estimate_num_insns): Declare.
6467         * tree-into-ssa.c: New file.
6468         * tree-iterator.c: New file.
6469         * tree-iterator.h: New file.
6470         * tree-mudflap.c: New file.
6471         * tree-mudflap.h: New file.
6472         * tree-nested.c: New file.
6473         * tree-nomudflap.c: New file.
6474         * tree-nrv.c: New file.
6475         * tree-optimize.c (dump_flags, vars_to_rename,
6476         in_gimple_form, all_passes, pass_gimple,
6477         pass_rebuild_bind, pass_all_optimizations, pass_del_cfg): Declare.
6478         (execute_gimple, execute_rebuild_bind,
6479         gate_all_optimizations, execute_del_cfg,
6480         register_one_dump_file, register_dump_files, dup_pass_1,
6481         init_tree_optimization_passes, execute_todo,
6482         execute_one_pass, execute_pass_list): New.
6483         (clear_decl_rtl): Remove.
6484         (tree_rest_of_compilation): Update to use tree
6485         optimizers.
6486         * tree-outof-ssa.c: New file.
6487         * tree-pass.h: New file.
6488         * tree-phinodes.c: New file.
6489         * tree-pretty-print.c: New file.
6490         * tree-profile.c: New file.
6491         * tree-simple.c: New file.
6492         * tree-simple.h: New file.
6493         * tree-sra.c: New file.
6494         * tree-ssa-alias.c: New file.
6495         * tree-ssa-ccp.c: New file.
6496         * tree-ssa-copy.c: New file.
6497         * tree-ssa-copyrename.c: New file.
6498         * tree-ssa-dce.c: New file.
6499         * tree-ssa-dom.c: New file.
6500         * tree-ssa-dse.c: New file.
6501         * tree-ssa-forwprop.c: New file.
6502         * tree-ssa-live.c: New file.
6503         * tree-ssa-live.h: New file.
6504         * tree-ssa-loop.c: New file.
6505         * tree-ssa-operands.c: New file.
6506         * tree-ssa-operands.h: New file.
6507         * tree-ssa-phiopt.c: New file.
6508         * tree-ssa-pre.c: New file.
6509         * tree-ssa.c: New file.
6510         * tree-ssanames.c: New file.
6511         * tree-tailcall.c: New file.
6512         * tree.c: Include tree-iterator.h, basic-block.h and
6513         tree-flow.h.
6514         (tree_node_kind): Add phi_nodes and ssa names.
6515         (tree_size): Handle PHI_NODE, EPHI_NODE, SSA_NAME,
6516         EUSE_NODE, EKILL_NODE, EEXIT_NODE and STATEMENT_LIST.
6517         (make_node_stat): Handle PHI_NODE and SSA_NAME.
6518         <'c'> Set TREE_INVARIANT.
6519         (copy_node_stat): Abort if trying to copy a
6520         STATEMENT_LIST.
6521         Clear TREE_VISITED.
6522         Clear annotation field.
6523         (build_constructor): Copy TREE_INVARIANT from vals.
6524         Don't clear TREE_CONSTANT.
6525         (expr_first, expr_last, expr_length): Remove.
6526         (staticp): Pass unknown component references to the language.
6527         (save_expr): Check TREE_INVARIANT instead of TREE_CONSTANT.
6528         (skip_simple_arithmetic): Likewise.
6529         (stabilize_reference_1): Likewise.
6530         (tree_node_structure): Handle PHI_NODE, EPHI_NODE,
6531         EUSE_NODE, EKILL_NODE, EEXIT_NODE, SSA_NAME and
6532         STATEMENT_LIST.
6533         (lhd_unsave_expr_now): Remove.
6534         (unsafe_for_reeval): Handle LABEL_EXPR and BIND_EXPR.
6535         (recompute_tree_invarant_for_addr_expr): New.
6536         (build1_stat): Clear EXPR_LOCUS and TREE_BLOCK.
6537         Call recompute_tree_invarant_for_addr_expr.
6538         Set TREE_INVARIANT accordingly.
6539         (build2_stat): Don't handle CALL_EXPR.
6540         (build3_stat): Don't call build2_stat for CALL_EXPRs.
6541         (build_expr_wfl): Remove.
6542         (annotate_with_file_line, annotate_with_locus): New.
6543         (simple_cst_equal): Call simple_cst_list_equal to compare
6544         CONSTRUCTOR_ELTS pointers.
6545         (iterative_hash_expr): Don't hash types associated
6546         with conversions.  Instead hash on the signedness of the
6547         toplevel object and the operand of the conversion.
6548         (dump_tree_statistics): Call ssanames_print_statistics
6549         and phinodes_print_statistics.
6550         (ephi_node_elt_check_failed, phi_node_elt_check_failed,
6551         add_var_to_bind_expr, build_empty_stmt, is_essa_node,
6552         needs_to_live_in_memory): New.
6553         (initializer_zerop): Handle VECTOR_CST.  Don't check
6554         AGGREGATE_TYPE_P for CONSTRUCTOR.
6555         * tree.def (FILTER_EXPR, CASE_LABEL_EXPR, RESX_EXPR,
6556         SSA_NAME, EUSE_NODE, EKILL_NODE, EPHI_NODE, EEXIT_NODE,
6557         PHI_NODE, CATCH_EXPR, EH_FILTER_EXPR, STATEMENT_LIST): Define.
6558         (GOTO_SUBROUTINE_EXPR): Change type to 's'.
6559         (CALL_EXPR): Add another operand.
6560         (EXPR_WITH_FILE_LOCATION): Remove.
6561         (SWITCH_EXPR): Add another operand.
6562         * tree.h: Update various comments.
6563         (union tree_ann_d): Forward declare.
6564         (struct tree_common): Add fields nowarning_flag,
6565         invariant_flag and visited.
6566         (EREF_NODE_CHECK, EPHI_NODE_ELT_CHECK,
6567         PHI_NODE_ELT_CHECK, EREF_NODE_CHECK, PHI_NODE_ELT_CHECK,
6568         EPHI_NODE_ELT_CHECK, TREE_BLOCK,
6569         STRIP_USELESS_TYPE_CONVERSION, CALL_EXPR_TAILCALL,
6570         TREE_NO_WARNING, FORCED_LABEL, TREE_INVARIANT,
6571         IS_EMPTY_STMT, EXPR_LOCUS, SET_EXPR_LOCUS, EXPR_FILENAME,
6572         EXPR_LINENO, EXPR_LOCATION, EXPR_HAS_LOCATION,
6573         EXIT_EXPR_COND, SWITCH_COND, SWITCH_BODY, SWITCH_LABELS,
6574         CASE_LOW, CASE_HIGH, CASE_LABEL, BIND_EXPR_VARS,
6575         BIND_EXPR_BODY, BIND_EXPR_BLOCK, GOTO_DESTINATION,
6576         ASM_STRING, ASM_OUTPUTS, ASM_INPUTS, ASM_CLOBBERS,
6577         ASM_INPUT_P, ASM_VOLATILE_P, COND_EXPR_COND,
6578         COND_EXPR_THEN, COND_EXPR_ELSE, LABEL_EXPR_LABEL,
6579         CATCH_TYPES, CATCH_BODY, EH_FILTER_TYPES,
6580         EH_FILTER_FAILURE, EH_FILTER_MUST_NOT_THROW,
6581         SSA_NAME_VAR, SSA_NAME_DEF_STMT, SSA_NAME_VERSION,
6582         SSA_NAME_OCCURS_IN_ABNORMAL_PHI, SSA_NAME_IN_FREE_LIST,
6583         PHI_RESULT, PHI_REWRITTEN, PHI_NUM_ARGS,
6584         PHI_ARG_CAPACITY, PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF,
6585         EREF_PROCESSED, EREF_ID, EREF_NAME, EREF_STMT,
6586         EREF_RELOAD, EREF_SAVE, EREF_CLASS, EREF_INJURED,
6587         EREF_TEMP, EUSE_DEF, EUSE_PHIOP, EUSE_INSERTED,
6588         EUSE_LVAL, EPHI_NUM_ARGS, EPHI_ARG_CAPACITY,
6589         EPHI_ARG_ELT, EPHI_ARG_EDGE, EPHI_ARG_PRED, EPHI_ARG_DEF,
6590         EPHI_ARG_INJURED, EPHI_ARG_DELAYED_RENAME,
6591         EPHI_ARG_HAS_REAL_USE, EPHI_ARG_STOPS,
6592         EPHI_ARG_PROCESSED2, EPHI_IDENTITY, EPHI_IDENT_INJURED,
6593         EPHI_REP_OCCUR_KNOWN, EPHI_IDENTICAL_TO, EPHI_DOWNSAFE,
6594         EPHI_CANT_BE_AVAIL, EPHI_DEAD, EPHI_USES, EPHI_STOPS,
6595         TREE_VISITED, SSA_VAR_P, DECL_NUM_STMTS,
6596         DECL_HARD_REGISTER, DECL_PTA_ALIASVAR, LABEL_DECL_UID,
6597         DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL,
6598         STATEMENT_LIST_HEAD, STATEMENT_LIST_TAIL, TDF_RAW,
6599         TDF_DETAILS, TDF_STATS, TDF_BLOCKS, TDF_VOPS, TDF_LINENO,
6600         TDF_UID,): Define.
6601         (TREE_NO_UNUSED_WARNING, EXPR_WFL_EMIT_LINE_NOTE,
6602         EXPR_WFL_NODE, EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME,
6603         EXPR_WFL_LINECOL, EXPR_WFL_LINENO, EXPR_WFL_COLNO,
6604         EXPR_WFL_SET_LINECOL): Remove.
6605         (phi_node_elt_check_failed, ephi_node_elt_check_failed,
6606         make_phi_node, init_phinodes, fini_phinodes,
6607         release_phi_node, phinodes_print_statistics,
6608         init_ssanames, fini_ssanames, make_ssa_name,
6609         release_ssa_name, ssanames_print_statistics,
6610         annotate_with_file_line, build_empty_stmt,
6611         annotate_with_locus, expr_only, categorize_ctor_elements,
6612         count_type_elements, add_var_to_bind_expr, is_essa_node,
6613         expand_stack_alloc, expand_stack_save,
6614         expand_stack_restore, add_case_node, operand_equal_p,
6615         nondestructive_fold_unary_to_constant,
6616         nondestructive_fold_binary_to_constant,
6617         fold_read_from_constant_string, int_const_binop,
6618         strip_float_extensions, simplify_builtin, c_strlen,
6619         recompute_tree_invarant_for_addr_expr,
6620         needs_to_live_in_memory, make_vector,
6621         setjmp_vars_warning, update_alignment_for_field,
6622         expand_asm_expr, asm_op_is_mem_input,
6623         containing_blocks_have_cleanups_or_stack_level,
6624         create_artificial_label, gimplify_function_tree,
6625         get_name, unshare_expr, walk_tree,
6626         walk_tree_without_duplicates, in_gimple_form): Declare.
6627         (struct tree_exp): Add fields locus and block.
6628         (struct tree_ssa_name, struct edge_def, struct
6629         tree_phi_node, struct tree_eref_common, struct
6630         tree_euse_node, struct ephi_arg_d, struct tree_ephi_node,
6631         union alias_var_def, struct tree_statement_list_node,
6632         struct tree_statement_list, enum operand_equal_flag): Declare.
6633         (enum tree_node_structure_enum): Add TS_SSA_NAME,
6634         TS_PHI_NODE, TS_EPHI_NODE, TS_EUSE_NODE, TS_EREF_NODE,
6635         TS_STATEMENT_LIST.
6636         (union tree_node): Add fields ssa_name, phi, eref, ephi,
6637         euse and stmt_list.
6638         (function_cannot_inline_p, uninitialized_vars_warning,
6639         save_for_inline, output_inline_function, all_cases_count,
6640         check_for_full_enumeration_handling,
6641         declare_nonlocal_label): Remove.
6642         (enum tree_dump_index): Add TDI_none, TDI_tu,
6643         TDI_generic, TDI_nested, TDI_vcg, TDI_xml.
6644         * unroll.c (unroll_loop): Don't clear map->inline_target.
6645         * unwind-sjlj.c (uw_install_context): Make a proper static inline
6646         function.
6647         * value-prof.c (value_prof_hooks): New.
6648         (find_values_to_profile): Rename to rtl_find_values_to_profile.
6649         Move rtl-specific bits in from branch_prob.
6650         (value_profile_transformations): Rename to
6651         rtl_value_profile_transformations.
6652         (struct value_prof_hooks): New.
6653         (rtl_value_prof_hooks): New.
6654         (rtl_register_value_prof_hooks): New.
6655         (tree_find_values_to_profile): New stub.
6656         (tree_value_profile_transformations): New stub.
6657         (tree_value_prof_hooks): New stub.
6658         (tree_register_value_prof_hooks): New stub.
6659         (find_values_to_profile): New.
6660         (value_profile_transformations): New.
6661         * value-prof.h: Add multiple inclusion guard.
6662         (struct histogram_value): Change rtx fields to void *.
6663         (rtl_register_value_prof_hooks): New declaration.
6664         (tree_register_value_prof_hooks): New declaration.
6665         (find_values_to_profile): New declaration.
6666         (free_profiled_values): New declaration.
6667         (value_profile_transformations): New declaration.
6668         (struct profile_hooks): New declaration.
6669         (init_branch_prob): Declaration moved from rtl.h.
6670         (branch_prob): Declaration moved from rtl.h.
6671         (end_branch_prob): Declaration mooved from rtl.h.
6672         (tree_register_profile_hooks): New declaration.
6673         (rtl_register_profile_hooks): New declaration.
6674         (tree_profile_hooks): New declaration.
6675         (rtl_profile_hooks): New declaration.
6676         * varasm.c: Include tree-mudflap.h.
6677         (TRAMPOLINE_ALIGNMENT): Remove.
6678         (make_decl_rtl): Call mudflap_enqueue_decl.
6679         (assemble_static_space):
6680         (assemble_trampoline_template): Set and return
6681         TRAMPOLINE_ALIGNMENT.
6682         * varray.c (element): Add GENERIC_PTR_NOGC entry.
6683         Add entry for 'tree *'.
6684         Add entry for struct edge_def *.
6685         (varray_copy): New.
6686         * varray.h (enum varray_data_enum): Add
6687         VARRAY_DATA_GENERIC_NOGC, VARRAY_DATA_EDGE and
6688         VARRAY_DATA_TREE_PTR.
6689         (union varray_data_tag): Corresponding changes.
6690         (VARRAY_GENERIC_PTR_NOGC_INIT, VARRAY_EDGE_INIT,
6691         VARRAY_TREE_PTR_INIT, VARRAY_GENERIC_PTR_NOGC,
6692         VARRAY_EDGE, VARRAY_TREE_PTR,
6693         VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_EDGE,
6694         VARRAY_PUSH_TREE_PTR, VARRAY_TOP_GENERIC_PTR_NOGC,
6695         VARRAY_TOP_EDGE, VARRAY_TOP_TREE_PTR): Define.
6696
6697         * config/*/*: Various updates for changed macros, tree
6698         codes, etc.  Check ChangeLog.tree-ssa.
6699
6700         * doc/cfg.texi: New file.
6701         * doc/tree-ssa.texi: New file.
6702         * doc/c-tree.texi: Document new codes.
6703         * doc/gccint.texi: Include new files.
6704         * doc/install.texi: Document new features.
6705         * doc/invoke.texi: Document new switches.
6706         * doc/passes.texi: Document new passes.
6707         * doc/rtl.texi: Update changed RTL codes.
6708         * doc/sourcebuild.texi: Update build instructions.
6709         * doc/standards.texi: Document Fortran changes.
6710         * doc/tm.texi: Update.
6711
6712 2004-05-12  Paolo Bonzini  <bonzini@gnu.org>
6713
6714         Replace several arrays with a struct of arrays.
6715         * combine.c (struct reg_stat): New.
6716         (init_reg_last_arrays): Renamed to...
6717         (init_reg_last): ...this.  Callers adjusted.
6718         (reg_stat): New.
6719         (combine_instructions): Allocate it and use it.
6720         (reg_last_death, reg_last_set, reg_last_set_value,
6721         reg_last_set_label, reg_last_set_table_tick,
6722         reg_last_set_invalid, reg_nonzero_bits, reg_sign_bit_copies,
6723         reg_last_set_mode, reg_last_set_nonzero_bits,
6724         reg_last_set_sign_bit_copies): Replace throughout
6725         with items of reg_stat.
6726
6727 2004-05-11  Kaz Kojima  <kkojima@gcc.gnu.org>
6728
6729         PR optimization/15100
6730         * combine.c (distribute_notes): Don't create a dangling
6731         REG_LIBCALL/REG_RETVAL note.
6732
6733 2004-05-11  Aldy Hernandez  <aldyh@redhat.com>
6734
6735         * config/rs6000/spe.md (spe_evneg): Rename to negv2si2.
6736
6737         * config/rs6000/rs6000.c (bdesc_1arg): Change spe_evneg to
6738         negv2si2.
6739
6740 2004-05-11  Aldy Hernandez  <aldyh@redhat.com>
6741
6742         * doc/md.texi (Standard Names): Fix typo in vec_init description.
6743
6744 2004-05-11  Geoffrey Keating  <geoffk@apple.com>
6745
6746         * doc/gty.texi (GTY Options): Clarify example.
6747
6748 2004-05-11  Fariborz Jahanian  <fjahanian@apple.com>
6749
6750         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
6751         Add const qualifier to altivec vector type if one is needed.
6752
6753 2004-05-11  Paul Brook  <paul@codesourcery.com>
6754
6755         * flags.h (flag_short_enums): Update comment.
6756         * opts.c (decode_options): Set flag_short_enums to 2.
6757         * toplev.c (flag_short_enums): Update comment.
6758         (process_options): Call default_short_enums target hook.
6759
6760 2004-05-11  Andrew Pinski  <pinskia@gcc.gnu.org>
6761
6762         PR target/14063
6763         * config/rs6000/altivec.md (altivec_dssall):
6764         Change to unspec_volatile.
6765         (altivec_dss): Likewise.
6766
6767 2004-05-10  Aldy Hernandez  <aldyh@redhat.com>
6768
6769         * config/rs6000/altivec.md ("one_cmplv16qi2"): Change vnot to
6770         vnor.
6771         ("one_cmplv8hi2"): Same.
6772         ("one_cmplv4si2"): Same.
6773
6774 2004-05-10  Kaz Kojima  <kkojima@gcc.gnu.org>
6775
6776         PR target/15130
6777         * config/sh/sh-protos.h (sh_expand_epilogue): Change prototype.
6778         * config/sh/sh.c (output_stack_adjust): Take the sibcall epilogue
6779         into account.  Compute the correct number of general registers
6780         for the return value.  Generate a special push/pop sequence when
6781         failing to get a temporary register for non SHmedia epilogue.
6782         (sh_expand_epilogue): Add an argument to show whether it's for
6783         sibcall or not.  Set the 3rd argument of output_stack_adjust to
6784         -1 if needed.
6785         (sh_need_epilogue): Call sh_expand_epilogue with 0.
6786         * config/sh/sh.md (sibcall_epilogue): Call sh_expand_epilogue
6787         with 1.
6788         (epilogue): Call sh_expand_epilogue with 0.
6789
6790 2004-05-10  Andrew Pinski  <pinskia@physics.uc.edu>
6791
6792         * gcse.c (eliminate_partially_redundant_loads): Instead of returning early,
6793         goto a cleanup label.  After the cleanup, free the allocated memory.
6794
6795 2004-05-10  Ziemowit Laski  <zlaski@apple.com>
6796
6797         * config/rs6000/altivec.h (vec_sld): Add overloads for
6798         argument/return types of 'vector bool int', 'vector bool short'
6799         and 'vector bool char'.
6800
6801 2004-05-10  Zack Weinberg  <zack@codesourcery.com>
6802
6803         * c-decl.c (store_parm_decls_newstyle): Correct test for a
6804         nested function.
6805
6806 2004-05-10  Richard Sandiford  <rsandifo@redhat.com>
6807
6808         * read-rtl.c (read_rtx): Allow 's' and 'T' strings to be omitted,
6809         treating missing ones as "".
6810         * config/mips/mips.md: Remove constraints from match_operands and
6811         match_scratches if they appear in define_expands (except reload*),
6812         define_peephole2s, define_splits or attribute specifications.
6813         * config/mips/7000.md, config/mips/sb1.md: Remove match_operand
6814         constraint strings.
6815
6816 2004-05-10  Alan Modra  <amodra@bigpond.net.au>
6817
6818         * config/rs6000/rs6000.c (function_arg_boundary): Always align
6819         AltiVec vectors.
6820         (function_arg_advance): Pass TARGET_32BIT -mabi=no-altivec AltiVec
6821         vectors by refererence.  Align the same for TARGET_64BIT to a 16
6822         byte boundary.  Remove useless code.  Add function comment.
6823         (function_arg): Similarly.  Move gpr rs6000_mixed_function_arg
6824         call to where it belongs.
6825         (function_arg_partial_nregs): Return true for all TARGET_32BIT
6826         -mabi=no-altivec AltiVec vectors.  Fix debug output.
6827         (rs6000_va_arg): Adjust for AltiVec change.
6828
6829 2004-05-10  Paul Brook  <paul@codesourcery.com>
6830
6831         * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
6832         * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
6833         (TARGET_DOUBLEWORD_ALIGN): Use it.
6834         (WCHAR_TYPE): Define.
6835         (WCHAR_SIZE_TYPE): Define.
6836         (SIZE_TYPE): Define.
6837
6838 2004-05-10  Alan Modra  <amodra@bigpond.net.au>
6839
6840         * config/rs6000/rs6000.c (function_arg_boundary): Align for ABI_V4
6841         when size is 8 bytes.
6842         (function_arg_advance): Account for stack space used by AltiVec
6843         args when -mabi=altivec.  Simplify alignment calculations.  For
6844         ABI_V4, pass AltiVec vectors by reference when -mabi=no-altivec.
6845         (function_arg): Similarly.
6846         (function_arg_pass_by_reference): True for ABI_V4 AltiVec when
6847         not AltiVec ABI.
6848         (rs6000_va_arg): Correct fp arg test.  Adjust for AltiVec change.
6849         Correct alignment, and align before testing reg count.  Remove
6850         TREE_THIS_VOLATILE from reg.  Don't emit unused labels.
6851         (rs6000_complex_function_value): Check TARGET_HARD_FLOAT and
6852         TARGET_FPRS here..
6853         (rs6000_function_value): .. not here before call.
6854
6855 2004-05-09  Aldy Hernandez  <aldyh@redhat.com>
6856
6857         * config/rs6000/spe.md ("tstsflt_gpr"): Fix typo in unspec.
6858
6859 2004-05-09  Zack Weinberg  <zack@codesourcery.com>
6860
6861         PR 15007
6862         * c-decl.c (current_file_decl): Rename to all_translation_units,
6863         adjust comment.
6864         (pop_scope): If popping file_scope, construct a
6865         TRANSLATION_UNIT_DECL and make it the context of all the
6866         symbols in the scope.
6867         (push_file_scope): Don't construct a TRANSLATION_UNIT_DECL here.
6868         (pushdecl): Clarify comment.  Do not set DECL_CONTEXT of
6869         anything to current_file_decl.
6870         (pushdecl_top_level): Likewise.
6871         (store_parm_decls_newstyle): Adjust check for nested function.
6872         (c_write_global_declarations): Update for renamed variable.
6873
6874 2004-05-09  Aldy Hernandez  <aldyh@redhat.com>
6875
6876         * config/rs6000/rs6000-protos.h
6877         (rs6000_conditional_register_usage): Protoize.
6878
6879         * config/rs6000/rs6000.c (rs6000_conditional_register_usage): New.
6880
6881         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Call
6882         function.
6883
6884 2004-05-08  Roger Sayle  <roger@eyesopen.com>
6885
6886         * fold-const.c (fold_div_compare): New function to optimize X/C1 op C2
6887         where op is a comparison operator and C1 and C2 are integer constants
6888         into a range check.
6889         (fold): Call fold_div_compare.
6890
6891 2004-05-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
6892
6893         * doc/install.texi (sparc-sun-solaris2*): Document bootstrap
6894         problems with earlier versions of the GNU compiler.
6895
6896 2004-05-07  Aldy Hernandez  <aldyh@redhat.com>
6897
6898         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_mode_ok_p):
6899         Declare.
6900
6901         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok_p): New.
6902         (rs6000_hard_regno_mode_ok): New.
6903         (rs6000_init_hard_regno_mode_ok): New.
6904         (rs6000_override_options): Call rs6000_init_hard_regno_mode_ok.
6905
6906         * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Use precomputed
6907         result.
6908
6909 2004-05-07  Ziemowit Laski  <zlaski@apple.com>
6910
6911         * config/rs6000/altivec.h (vector, pixel, bool): Do not
6912         define as macros #ifdef __APPLE_ALTIVEC__.
6913
6914 2004-05-07  Fariborz Jahanian  <fjahanian@apple.com>
6915
6916         * config/rs6000/rs6000.c (rs6000_mixed_function_arg):
6917         Generate appropriate parallels for vector arguments
6918         passed to vararg functions. (function_arg): make the call
6919         to rs6000_mixed_function_arg for vector args as needed.
6920
6921 2004-05-07  Richard Sandiford  <rsandifo@redhat.com>
6922
6923         * config/mips/mips.c (mips_va_arg): Fix calculation of osize for
6924         EABI_FLOAT_VARARGS_P.
6925
6926 2004-05-07  Richard Sandiford  <rsandifo@redhat.com>
6927
6928         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY): Remove TARGET_MIPS5500.
6929         * config/mips/mips.c (override_options): Disable branch likely
6930         instructions if TUNE_MIPS5500.
6931
6932 2004-05-07  Richard Sandiford  <rsandifo@redhat.com>
6933
6934         * config/mips/mips.c (override_options): Allow the hi and lo registers
6935         to store any integral mode, not just MODE_INTs.
6936
6937 2004-05-07  Paul Brook  <paul@codesourcery.com>
6938
6939         * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
6940         * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
6941         (TARGET_DOUBLEWORD_ALIGN): Use it.
6942         (WCHAR_TYPE): Define.
6943         (WCHAR_SIZE_TYPE): Define.
6944         (SIZE_TYPE): Define.
6945
6946 2004-05-07  Uros Bizjak  <uros@kss-loka.si>
6947
6948         * config/i386/i386.c (ix86_emit_fp_unordered_jump): Use
6949         testb $4, %ah insn instead of sahf insn if !TARGET_USE_SAHF.
6950
6951 2004-05-07  Andrew Pinski  <pinskia@physics.uc.edu>
6952
6953         * loop-doloop.c (doloop_valid_p): Make sure that body
6954         gets freed.
6955
6956 2004-05-07  Eric Botcazou  <ebotcazou@act-europe.fr>
6957
6958         * config/sparc/sparc-protos.h (sparc_skip_caller_unimp): New
6959         declaration.
6960         * config/sparc/sparc.c (SKIP_CALLERS_UNIMP_P): Delete.
6961         (sparc_skip_caller_unimp): New global variable.
6962         (sparc_function_epilogue): Set 'sparc_skip_caller_unimp'.
6963         Use it instead of SKIP_CALLERS_UNIMP_P.
6964         * config/sparc/sparc.md (call expander): Add sanity check.
6965         (call_address_struct_value_sp32): Re-sync with expander.
6966         (call_symbolic_struct_value_sp32): Likewise.
6967         (return peepholes): Use 'sparc_skip_caller_unimp' instead
6968         of custom predicate.
6969
6970 2004-05-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
6971
6972         PR c++/14962
6973         * c-pragma.c (handle_pragma_redefine_extname): Only change
6974         the assembler name of FUNCTION_DECLs and VAR_DECLs.
6975
6976 2004-05-07  Uros Bizjak  <uros@kss-loka.si>
6977
6978         * optabs.h (enum optab_index): Add new OTI_log1p.
6979         (log1p_optab): Define corresponding macro.
6980         * optabs.c (init_optabs): Initialize log1p_optab.
6981         * genopinit.c (optabs): Implement log1p_optab using log1p?f2
6982         patterns.
6983         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG1P{,F,L}
6984         using log1p_optab.
6985         (expand_builtin): Expand BUILT_IN_LOG1P{,F,L} using
6986         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
6987
6988         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2XP1.
6989
6990         * config/i386/i386.c (ix86_emit_i387_log1p): New function.
6991         * config/i386/i386-protos.h (ix86_emit_i387_log1p):
6992         Prototype here.
6993         * config/i386/i386.md (UNSPEC_FYL2XP1): New unspec to represent
6994         x87's fyl2xp1 instruction.
6995         (*fyl2x_xf3): Rename insn definition to fyl2x_xf3.
6996         (fyl2xp1_xf3): New pattern to implement fyl2xp1 x87 instruction.
6997         (log1psf2, log1pdf2, log1pxf2): New expanders to implement log1pf,
6998         log1p  and log1pl built-ins as inline x87 intrinsics.
6999
7000 2004-05-07  Loren James Rittle  <ljrittle@acm.org>
7001
7002         * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Proper redefinition.
7003         * config/arm/freebsd.h: Likewise.
7004         * config/ia64/freebsd.h: Likewise.
7005         * config/sparc/freebsd.h: Likewise.
7006
7007 2004-05-07  Hans-Peter Nilsson  <hp@axis.com>
7008
7009         PR optimization/15296
7010         * reorg.c (fill_simple_delay_slots): Use next_real_insn when
7011         getting last consecutive label at a branch.
7012         (relax_delay_slots): Similar, near top of loop.
7013
7014 2004-05-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7015
7016         PR target/15202
7017         * pa.md (movdi, movsi, movhi, movqi): Support move from shift amount
7018         register to general register.
7019
7020 2004-05-07  Alan Modra  <amodra@bigpond.net.au>
7021
7022         * config/rs6000/rs6000.h (STACK_BOUNDARY): Use 128 bit for either
7023         TARGET_ALTIVEC or TARGET_ALTIVEC_ABI.
7024         * config/rs6000/sysv4.h (ABI_STACK_BOUNDARY): Likewise.
7025         (STACK_BOUNDARY): Delete.
7026
7027 2004-05-06  Stuart Hastings  <stuart@apple.com>
7028
7029         * gcc/doc/invoke.texi: Restore -fgcse-after-reload doc from 1.421,
7030         mistakenly clobbered by 1.423.
7031
7032 2004-05-06  Richard Sandiford  <rsandifo@redhat.com>
7033
7034         * doc/invoke.texi: Document -mvr4130-align.
7035         * config/mips/mips.h (MASK_VR4130_ALIGN, TARGET_VR4130_ALIGN)
7036         (TUNE_MIPS4120, TUNE_MIPS4130): New macros.
7037         (TUNE_MACC_CHAINS): Include TUNE_MIPS4120 and TUNE_MIPS4130.
7038         (TARGET_SWITCHES): Add -mvr4130-align and -mno-vr4130-align.
7039         * config/mips/mips.md: Include sched-int.h.
7040         (USEFUL_INSN_P, SEQ_BEGIN, SEQ_END, FOR_EACH_SUBINSN): New macros.
7041         (mips_rtx_costs): Set integer multiplication costs for TUNE_MIPS4130.
7042         (override_options): Enable -mvr4130-align at -O3 and above.
7043         (mips_sim_insn): New variable.
7044         (mips_sim): New structure.
7045         (mips_sim_reset, mips_sim_init, mips_sim_next_cycle, mips_sim_wait_reg)
7046         (mips_sim_wait_regs_2, mips_sim_wait_regs_1, mips_sim_wait_regs)
7047         (mips_sim_wait_units, mips_sim_wait_insn, mips_sim_record_set)
7048         (mips_sim_issue_insn, mips_sim_issue_nop, mips_sim_finish_insn)
7049         (vr4130_avoid_branch_rt_conflict, vr4130_align_insns): New functions.
7050         (mips_reorg): Call vr4130_align_insns.
7051         (vr4130_last_insn): New variable.
7052         (vr4130_true_reg_dependence_p_1, vr4130_true_reg_dependence_p)
7053         (vr4130_swap_insns_p, vr4130_reorder): New functions.
7054         (mips_sched_reorder, mips_variable_issue): Hook in vr4130 code.
7055         (mips_issue_rate): Return 2 for PROCESSOR_R4130.
7056         (mips_use_dfa_pipeline_interface): Return true for the same.
7057         * config/mips/4130.md: New file.
7058         * config/mips/mips.md: Include it.  Add a peephole2 to convert
7059         "mult;mflo" into "mtlo;macc".
7060         (*macc, *umul_acc_di, *smul_acc_di): Use $1 rather than $0 as the
7061         target of maccs.
7062         (*msac_using_macc): New pattern.
7063
7064 2004-05-06  Richard Sandiford  <rsandifo@redhat.com>
7065
7066         * config/mips/5500.md (ir_vr55_store): Set latency to 0.
7067         (ir_vr55_hilo): Split into...
7068         (ir_vr55_mfhilo, ir_vr55_mthilo): ...these new reservations.
7069         (ir_vr55_imul_si, ir_vr55_imadd): Change latency to 5.
7070         (ir_vr55_imul_di): Change latency to 9.  Reserve vr55_mac for 4 cycles.
7071         Add various multiplication bypasses.
7072         * config/mips/mips.c (mips_rtx_costs): Adjust VR5500 costs for integer
7073         multiplication.
7074
7075 2004-05-06  Uros Bizjak  <uros@kss-loka.si>
7076
7077         * config/i386/i386.md (*fscalexf4): Correct insn "mode"
7078         attribute to "XF".
7079
7080 2004-05-05  Uros Bizjak  <uros@kss-loka.si>
7081
7082         * optabs.h (enum optab_index): Add new OTI_fmod and OTI_drem.
7083         (fmod_optab, drem_optab): Define corresponding macros.
7084         * optabs.c (init_optabs): Initialize fmod_optab and drem_optab.
7085         * genopinit.c (optabs): Implement fmod_optab and drem_optab
7086         using fmod?f3 and drem?f3 patterns.
7087         * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_FMOD{,F,L}
7088         using fmod_optab and BUILT_IN_DREM{,F,L} using drem_optab.
7089         (expand_builtin): Expand BUILT_IN_FMOD{,F,L} and
7090         BUILT_IN_DREM{,F,L} using expand_builtin_mathfn_2 if
7091         flag_unsafe_math_optimizations is set.
7092
7093         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FPREM_F,
7094         UNSPEC_FPREM_U, UNSPEC_FPREM1_F and UNSPEC_FPREM1_U.
7095
7096         * config/i386/i386.c (ix86_emit_fp_unordered_jump): New function.
7097         * config/i386/i386-protos.h (ix86_emit_fp_unordered_jump):
7098         Prototype here.
7099         * config/i386/i386.md (UNSPEC_FPREM_F, UNSPEC_FPREM_U,
7100         UNSPEC_FPREM1_F, UNSPEC_FPREM1_U): New unspecs to represent x87's
7101         fprem and fprem1 instructions.
7102         (*x86_fnstsw_1): Change input parameter to (reg:CCFP 18).
7103         Rename insn definition to x86_fnstsw_1.
7104         (fpremxf4, fprem1xf4): New patterns to implement fprem and fprem1
7105         x87 instructions.
7106         (fmodsf3, fmoddf3, fmodxf3): New expanders to implement fmodf, fmod
7107         and fmodl built-ins as inline x87 intrinsics.
7108         (dremsf3, dremdf3, dremxf3): New expanders to implement dremf, drem
7109         and dreml built-ins as inline x87 intrinsics.
7110
7111 2004-05-05  Roger Sayle  <roger@eyesopen.com>
7112
7113         * reload1.c (inherit_piecemeal_p): Mark parameters potentially unused.
7114
7115 2004-05-05  Ian Lance Taylor  <ian@wasabisystems.com>
7116
7117         PR driver/9822
7118         * doc/invoke.texi (Spec Files): Remove documentation of %c.
7119
7120 2004-05-05  Chris Demetriou  <cgd@broadcom.com>
7121
7122         * config/mips/mips.md: Update the msub define_split for new mflo/mfhi
7123         representation.
7124
7125 2004-05-06  Paul Brook  <paul@codesourcery.com>
7126
7127         * config/arm/arm-protots.h (vfp_mem_operand): Rename ...
7128         (arm_coproc_mem_operand): ... To this.
7129         * config/arm/arm.c (arm_legitimate_address_p): Allow ldrd modes.
7130         (arm_legitimate_index_p): Ditto.
7131         (vfp_mem_operand): Rename ...
7132         (arm_coproc_mem_operand): ... To this.  Handle writeback modes.
7133         (vfp_secondary_reload_class): Use it.
7134         (output_move_double): Use doubleword load/store instructions.
7135         (arm_hard_regno_mode_ok): Only allow even reg pairs for ldrd.
7136         * config/arm/arm.h (TARGET_LDRD): Define.
7137         (EXTRA_CONSTRAINT_STR_ARM): Add 'Uy'.
7138         * config/gcc/arm/arm.md (arm_movdi): Allow all valid memory operands.
7139         New splitter for invalid doubleword loads.
7140         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Use Uy constraint.
7141         * config/arm/vfp.md (arm_movdi_vfp): Allow all valid memory operands.
7142         * doc/md.texi: Document Uy constraint.
7143
7144 2004-05-05  Jan Hubicka  <jh@suse.cz>
7145
7146         PR opt/14980
7147         * cgraphunit.c (cgraph_remove_unreachable_nodes): Deal properly with
7148         inline clones.
7149
7150 2004-05-05  H.J. Lu  <hongjiu.lu@intel.com>
7151
7152         PR target/15290
7153         * config/i386/i386.c (ix86_split_to_parts): Use real_to_target
7154         instead of REAL_VALUE_TO_TARGET_LONG_DOUBLE.
7155
7156 2004-05-05  Mike Stump  <mrs@apple.com>
7157
7158         * config/darwin-c.c (add_framework): Copy the directory name as it
7159         can be freed later.  Also, ensure we always allocate enough room
7160         for the cached framework information.
7161         (find_subframework_header): Keep track of the directory where the
7162         subframework header was found.
7163         (framework_construct_pathname): Speed up by not trying to re-add a
7164         framework.
7165         * cppfiles.c (search_path_exhausted): Arrange for the missing
7166         header callback to be able to set the directory where the header
7167         was found.
7168         (cpp_get_dir): Add.
7169         * cpplib.h (missing_header_cb): Add a parameter.
7170         (cpp_get_dir): Add.
7171
7172 2004-05-03  Mike Stump  <mrs@apple.com>
7173
7174         * doc/invoke.texi (Directory Options): Document -iquote.
7175         * doc/cpp.texi: Likewise.
7176         * doc/cppopts.texi: Likewise.
7177         * c-opts.c (c_common_missing_argument): Add -iquote processing.
7178         (c_common_handle_option): Likewise.
7179         * c.opt (iquote): Add.
7180         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -iquote.
7181         * c-incpath.c (merge_include_chains): Update comment to use -iquote.
7182
7183         * c-opts.c (case OPT_I): Deprecate -I- support.
7184         * doc/invoke.texi: Likewise.
7185         * doc/cpp.texi: Likewise.
7186         * doc/cppopts.texi: Likewise.
7187
7188 2004-05-05  Steven Bosscher  <stevenb@suse.de>
7189
7190         * basic-block.h (free_basic_block_vars): Update prototype.
7191         * flow.c (free_basic_block_vars): Remove the keep_head_end_p
7192         argument.
7193         (life_analysis): Update call.
7194         * ifcvt.c (if_convert): Likewise.
7195         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
7196         * passes.c (rest_of_handle_final): Likewise.
7197         (rest_of_compilation): Likewise.
7198         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7199
7200         * emit-rtl.c (next_real_insn): Use INSN_P.
7201         (prev_real_insn): Likewise.
7202
7203 2004-05-05  Eric Christopher  <echristo@redhat.com>
7204
7205         * config/mips/mips.md: Update the madd define_split for new mflo/mfhi
7206         representation.
7207
7208 2004-05-05  Paolo Bonzini  <bonzini@gnu.org>
7209
7210         * config/rs6000/rs6000.c (build_opaque_vector_type):
7211         New function.
7212         (rs6000_init_builtins): Use it.
7213
7214 2004-05-04  Bernard Giroud  <bgiroud2@free.fr>
7215
7216         * gcc/gcc/vmsdbgout.c (vms_func_node, vms_func_ref): New.
7217         (func_table): Change type from char ** to vms_func_ref.
7218         (write_rtnbeg):  Update to reflect func_table change.  Use
7219         fde->funcdef_number instead of rtnnum in output.
7220         (write_rtnend, vmxdbgout_begin_function, vmsdbgout_init): Likewise.
7221
7222 2004-05-04  Paolo Bonzini  <bonzini@gnu.org>
7223             Richard Henderson  <rth@redhat.com>
7224
7225         PR target/14899
7226
7227         * c-common.c (vector_types_convertible_p): New function.
7228         * c-typeck.c (comptypes): Recurse on vector types.
7229         (convert_for_assignment): Use vector_types_convertible_p.
7230         (digest_init): Use vector_types_convertible_p to check
7231         validness of constant vector initializers; otherwise treat
7232         them as scalars.
7233         * tree.c (make_or_reuse_type): New.
7234         (build_common_tree_nodes): Use it.
7235         * cp/call.c (standard_conversion): Likewise.
7236         * cp/typeck.c (comptypes): Recurse on vector types.
7237         (convert_for_assignment): Use vector_types_convertible_p.
7238
7239 2004-05-04  Chris Demetriou  <cgd@broadcom.com>
7240
7241         * config/mips/mips.c (override_options): Default to no
7242         generation of branch-likely operations when tuning for
7243         CPUs where they tend to have a negative performance impact
7244         (e.g., SB-1).
7245
7246 2004-05-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7247
7248         * expr.c (store_constructor_field): Don't call store_constructor
7249         if bitsize is not a multiple of a byte.
7250
7251 2004-05-04  Richard Sandiford  <rsandifo@redhat.com>
7252
7253         * reload1.c (inherit_piecemeal_p): New function.
7254         (emit_reload_insns): When reloading a group of hard registers, use
7255         inherit_piecemeal_p to decide whether the values of individual hard
7256         registers can be inherited.
7257
7258 2004-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7259
7260         * config/ia64/t-ia64 (LIB2ADDEH): Remove gthr-gnat.c.
7261         * config/s390/t-tpf (LIB2ADDEHDEP): Likewise.
7262         * config/t-linux (LIB2ADDEHDEP): Likewise.
7263
7264 2004-05-04  Paul Brook  <paul@codesourcery.com>
7265
7266         * config/arm/crti.asm: Push an even number of registers.
7267         * config/arm/crtn.asm: And restore them.  Load via sp.
7268
7269 2004-05-04  Paolo Bonzini  <bonzini@gnu.org>
7270
7271         * ggc-zone.c (ggc_alloc_zone_1): Add MEM_STAT_DECL parameter.
7272         Collect overhead information.
7273         (ggc_alloc_stat): New name of ggc_alloc.  Add MEM_STAT_DECL
7274         parameter and pass it through.
7275         (ggc_alloc_typed_stat): New name of ggc_alloc_typed.  Add
7276         MEM_STAT_DECL parameter and pass it through.
7277         (ggc_alloc_zone_stat): New name of ggc_alloc_zone.  Add
7278         MEM_STAT_DECL parameter and pass it through.
7279
7280 2004-05-03  Aldy Hernandez  <aldyh@redhat.com>
7281
7282         * config/rs6000/rs6000-protos.h: Protoize rs6000_hard_regno_nregs.
7283
7284         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): New.
7285
7286         * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Call
7287         rs6000_hard_regno_nregs.
7288
7289 2004-05-03  Eric Christopher  <echristo@redhat.com>
7290
7291         * config/s390/s390.c (s390_emit_prologue): Call unspec tpf
7292         prologue insn instead of setting up call.
7293         (s390_emit_epilogue): Ditto.
7294         * config/s390/s390.md (prologue_tpf, epilogue_tpf): New patterns.
7295         (define_constants): Add numbers for above patterns.
7296
7297 2004-05-03  Eric Christopher  <echristo@redhat.com>
7298
7299         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Move body...
7300         * config/s390/s390.c (s390_conditional_register_usage): ...here.
7301         * config/s390/s390-protos.h: Prototype.
7302
7303 2004-05-03  Joe Buck <jbuck@welsh-buck.org>
7304
7305         * cppfiles.c (pchf_adder): Eliminate use of |= in d->have_once_only
7306         assignment.
7307
7308 2004-05-03  Eric Christopher  <echristo@redhat.com>
7309
7310         * config/mips/mips.md: Fix branch length attribute definition.
7311
7312 2004-05-03  Aldy Hernandez  <aldyh@redhat.com>
7313
7314         * config.gcc: Remove --enable-altivec support.
7315
7316         * config/rs6000/altivec-defs.h: Remove.
7317
7318 2004-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7319
7320         * fixinc/inclhack.def (svr4_profil): Don't apply on IRIX 5/6.
7321         * fixinc/fixincl.x: Regenerate.
7322
7323 2004-05-03  Uros Bizjak  <uros@kss-loka.si>
7324
7325         * config/i386/i386.md (*fyl2x_sfxf3, *fyl2x_dfxf3): Remove insn
7326         definition.
7327         (log?f2, log10?f2, log2?f2): Reimplement expanders with
7328         float_truncate insn.
7329         (*fxtractsf3, *fxtractdf3): Remove insn definition.
7330         (logb?f2): Reimplement expanders with float_truncate insn.
7331
7332 2004-05-03  Graham Stott  <graham.stott@btinternet.com>
7333
7334         PR 14718
7335         * dwarf2out.c (dwarf2out_imported_module_or_decl): Use
7336         force_type_die for CONST_DECL.
7337
7338 2004-05-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
7339             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7340
7341         * config.gcc (sparc64-*-solaris2*, sparcv9-*-solaris2*): Add
7342         tm-dwarf2.h to tm_file.
7343         (sparc-*-solaris2*): Add tm-dwarf2.h to tm_file for Solaris 7+.
7344         * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Delete.
7345         (ASM_DEBUG_SPEC): Delete.
7346
7347 2004-05-03  Uros Bizjak  <uros@kss-loka.si>
7348
7349         * optabs.h (enum optab_index): Add new OTI_expm1.
7350         (expm1_optab): Define corresponding macro.
7351         * optabs.c (init_optabs): Initialize expm1_optab.
7352         * genopinit.c (optabs): Implement expm1_optab using expm1?f2
7353         patterns.
7354         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXPM1{,F,L}
7355         using expm1_optab.
7356         (expand_builtin): Expand BUILT_IN_EXPM1{,F,L} using
7357         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
7358
7359         * config/i386/i386.md (expm1df2, expm1sf2, expm1xf2): New expanders
7360         to implement expm1, expm1f and expm1l built-ins as inline x87
7361         intrinsics.
7362
7363 2004-05-02  Alexandre Oliva  <aoliva@redhat.com>
7364
7365         2003-11-19  Richard Sandiford  <rsandifo@redhat.com>
7366         * config/frv/frv.md (*return_true, *return_false): New patterns.
7367
7368 2004-05-02  Kazu Hirata  <kazu@cs.umass.edu>
7369
7370         * rtl.h (PHI_NODE_P): Remove.
7371
7372 2004-05-02  Eric Botcazou  <ebotcazou@act-europe.fr>
7373
7374         PR middle-end/14988
7375         * function.c (assign_stack_local_1): Use BITS_PER_UNIT alignment
7376         when passed -2 as 'align'.
7377         (put_var_into_stack): Use 'bool' as the type for the three local
7378         predicates.  Adjust calls to put_reg_into_stack.
7379         When passed a CONCAT, instruct put_reg_into_stack to use
7380         a consecutive stack slot for the second part.
7381         (put_reg_into_stack): Remove 'promoted_mode' parameter, add
7382         'consecutive_p' parameter.  Turn the three predicates into 'bool'
7383         parameters.  Retrieve the register mode from 'reg'.
7384         When consecutive_p is true, instruct assign_stack_local_1 to use
7385         BITS_PER_UNIT alignment.
7386         (put_addressof_into_stack): Use 'bool' as the type for the two
7387         local predicates. Adjust call to put_reg_into_stack.
7388
7389 2004-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7390
7391         * fold-const.c (fold_convert_const, fold): Add missing
7392         FIX_ROUND_EXPR case.
7393
7394 2004-05-02  Alexandre Oliva  <aoliva@redhat.com>
7395
7396         * configure.ac (FLEX, BISON): Only use tools from the build tree
7397         if build equals host.
7398         * configure: Rebuilt.
7399
7400         * config/frv/frv-protos.h (frv_expand_epilogue,
7401         frv_expand_fdpic_call): Add bool argument.
7402         * config/frv/frv.c (frv_function_ok_for_sibcall): New.
7403         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to it.
7404         (frv_expand_epilogue): Use new argument to decide whether to emit
7405         return instruction or copy the return address to LR.
7406         (frv_expand_fdpic_call): Inline PLT entry when emitting direct
7407         sibcalls.
7408         (sibcall_operand): New.
7409         * config/frv/frv.h (PREDICATE_CODES): call_operand doesn't match
7410         PLUS nor LABEL_REF.  Add sibcall_operand.
7411         * config/frv/frv.md (call, call_value): Pass false to
7412         frv_expand_fdpic_call.
7413         (call_fdpicdi, call_value_fdpicdi): Insert %i0 in calll.
7414         (sibcall, sibcall_internal, sibcall_fdpicdi, sibcall_value,
7415         sibcall_value_internal, sibcall_value_fdpicdi): New.
7416         (return_unsigned_true, return_unsigned_false): New.
7417         (epilogue): Adjust call to frv_expand_epilogue.
7418         (sibcall_epilogue): New.
7419
7420         * config/frv/frv.h (ASM_SPEC): Pass -mno-fdpic as -mnopic.
7421         (CPP_SPEC, CPP_SIMPLE_SPEC): Undefine __FRV_ACC__ and __FRV_FPR__
7422         before redefining them.
7423
7424 2004-05-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7425
7426         * builtins.c (fold_fixed_mathfn): New function.
7427         (fold_builtin_lround, fold_builtin): Use it.
7428
7429 2004-05-01  Jakub Jelinek  <jakub@redhat.com>
7430
7431         * config/sparc/linux64.h (TARGET_DEFAULT): Make 64-bit by default
7432         also for TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc3.
7433
7434 2004-05-01  Kazu Hirata  <kazu@cs.umass.edu>
7435
7436         * config/cris/cris.h: Revert my "fix comment typos" patch.
7437
7438 2004-05-01  Richard Sandiford  <rsandifo@redhat.com>
7439
7440         * config/mips/mips.h (TUNE_MACC_CHAINS): Fix comment.
7441
7442 2004-05-01  Falk Hueffner  <falk@debian.org>
7443
7444         * config/alpha/alpha.md (builtin_insbl, builtin_inswl,
7445         builtin_insll): Disallow 0 as first input operand.
7446
7447 2004-05-01  Falk Hueffner  <falk@debian.org>
7448
7449         * config/alpha/alpha.c (alpha_rtx_costs): Fix shiftadd costs.
7450
7451 2004-05-01  Ulrich Weigand  <uweigand@de.ibm.com>
7452
7453         PR middle-end/15054
7454         * expr.c (expand_expr_real): Do not call preserve_temp_slots
7455         on a TARGET_EXPR temp.
7456         * function.c (assign_stack_temp_for_type): Set 'keep' flag for
7457         TARGET_EXPR temp slots.
7458
7459 2004-05-01  Paolo Bonzini  <bonzini@gnu.org>
7460
7461         * simplify-rtx.c (simplify_ternary_operation): When
7462         converting an IF_THEN_ELSE to a relational op, return
7463         correct mode.
7464
7465 2004-04-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7466
7467         * builtins.c (fold_builtin_round): Fix comment typo.
7468         (fold_builtin_lround): New function.
7469         (fold_builtin): Use it.
7470
7471 2004-04-20  Andrew Pinski  <pinskia@physics.uc.edu>
7472
7473         PR target/11608
7474         * config/sh/elf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Update and make it
7475         more like the one in config/dbxelf.h.
7476
7477 2004-04-30  Zack Weinberg  <zack@codesourcery.com>
7478
7479         * tree.h (SET_ARRAY_OR_VECTOR_CHECK): Rename to SET_OR_ARRAY_CHECK
7480         and adjust definition accordingly.
7481         (TYPE_DOMAIN): Allow only SET_TYPE and ARRAY_TYPE.
7482         (TYPE_DEBUG_REPRESENTATION_TYPE): Allow only VECTOR_TYPE.
7483         * expr.c (store_constructor): Do not access TYPE_DOMAIN of a
7484         VECTOR_TYPE.
7485
7486 2004-04-30  Jason Merrill  <jason@redhat.com>
7487
7488         PR c++/14587
7489         * config/i386/winnt.c (associated_type): Look for attributes on
7490         the TYPE_MAIN_VARIANT of *this.
7491         * attribs.c (decl_attributes): If ATTR_FLAG_TYPE_IN_PLACE, also
7492         apply the attributes to the variants.
7493
7494 2004-04-30  Paul Brook  <paul@codesourcery.com>
7495
7496         * config.gcc: Simplify arm --with-{cpu,tune} test.
7497         * config/arm/arm-cores.def: Document whitespace restrictions.
7498
7499 2004-04-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7500
7501         PR other/1963
7502         * config/alpha/osf.h (SWITCHES_NEED_SPACES): Define.
7503
7504 2004-04-30  Brian Ford  <ford@vss.fsi.com>
7505             DJ Delorie  <dj@redhat.com>
7506
7507         * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
7508         (DWARF2_DEBUGGING_INFO): Define to enable.
7509         (DBX_REGISTER_NUMBER): Define to use the svr4 register map for
7510         DWARF2.
7511         * configure.ac (Target-specific assembler checks)
7512         <i[34567]86-*-[cygwin*|pe|mingw32*]>: New test for .secrel32
7513         relocs.
7514         * configure: Regenerate.
7515         * config.in: Likewise.
7516
7517         * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
7518         (ASM_OUPUT_DWARF_OFFSET): Define.
7519
7520 2004-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
7521
7522         * config/s390/s390-protos.h (s390_emit_epilogue): Parameter added.
7523         (s390_emit_call): New function prototype added.
7524         (s390_tls_get_offset): Function removed.
7525         * config/s390/s390.c (s390_function_ok_for_sibcall,
7526         s390_call_saved_register_used_p): New functions.
7527         (TARGET_FUNCTION_OK_FOR_SIBCALL): Definition of target macro added.
7528         (s390_tls_get_offset): Function merged into s390_emit_tls_call_insn.
7529         (s390_emit_tls_call_insn): New function.
7530         (legitimize_tls_address): Call s390_emit_tls_call_insn instead of
7531         emit_call_insn.
7532         (s390_emit_prologue): Use s390_emit_call instead of emit_call_insn.
7533         (s390_emit_epilogue): Like s390_emit_prologue. Parameter for sibcalls
7534         added.
7535         * config/s390/s390.h (SIBCALL_REGNUM): New macro representing the
7536         register number used to hold the target address for sibcalls.
7537         * config/s390/s390.md ("sibcall", "sibcall_value", "sibcall_epilogue"):
7538         New expanders.
7539         ("*sibcall_br", "*sibcall_brc", "*sibcall_brcl", "*sibcall_value_br",
7540         "*sibcall_value_brc", "*sibcall_value_brcl"): New insns.
7541         ("call_exp", "call_value_exp", "call_value_tls", "call_value_tls_exp"):
7542         Expanders removed.
7543         ("call", "call_value"): Call s390_emit_call to emit the call patterns.
7544         ("*bras", "*brasl", "*bras_r", "*brasl_r", "*bras_tls", "*brasl_tls",
7545         "*basr", "*basr_r", "*basr_tls"): Added constraint: !SIBLING_CALL_P.
7546         ("epilogue"): Changed the call to s390_emit_epilogue to use the
7547         new parameter.
7548
7549 2004-04-30  Kazu Hirata  <kazu@cs.umass.edu>
7550
7551         * bb-reorder.c, c-opts.c, cfglayout.c, cgraph.c, cgraphunit.c,
7552         cppfiles.c, fold-const.c, ggc-zone.c, loop-doloop.c, optabs.c,
7553         reg-stack.c, varasm.c, config/alpha/ev4.md,
7554         config/alpha/ev5.md, config/alpha/ev6.md, config/arm/arm.c,
7555         config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.c,
7556         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
7557         config/frv/frv.h, config/frv/frv.md, config/h8300/h8300.c,
7558         config/i386/i386.c, config/i386/i386.md, config/i386/winnt.c,
7559         config/ia64/itanium2.md, config/ip2k/ip2k.c,
7560         config/mips/mips.c, config/mips/mips.h, config/mips/sr71k.md,
7561         config/pa/pa.c, config/s390/s390.c, config/sh/sh.c: Fix
7562         comment typos.
7563
7564 2004-04-30  Paul Brook  <paul@codesourcery.com>
7565
7566         * config.gcc: Default ep9312 to hard-float.
7567         * config/arm/arm-cores.def: Add ARCH field.
7568         * config/arm/arm.c (FL_FOR_ARCH*): Define.
7569         (arm_arch_cirrus): New variable.
7570         (all_cores): Set and use arch.
7571         (all_architectures): Ditto.
7572         (arm_arch_name): New variable.
7573         (arm_override_options): Set it. Use [SUB]TARGET_CPU_DEFAULT.
7574         Set and use arm_arch_cirrus.
7575         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set arch defines.
7576         (enum processor_type): Update ARM_CORE define.
7577         (enum target_cpus): Add.  Replaces TARGET_CPU_* defines.
7578         (CPP_SPEC): Remove %(cpp_cpu_arch).
7579         (CPP_ARCH_DEFAULT_SPEC): Remove.
7580         (CPP_CPU_ARCH_SPEC): Remove.
7581         (EXTRA_SPECS): Don't use CPP_*ARCH*_SPEC.
7582         (FPUTYPE_DEFAULT): Don't define here.
7583
7584 2004-04-30  J"orn Rennecke <joern.rennecke@superh.com>
7585
7586         * flow.c (propagate_one_insn): Call mark_set_regs for stack pointer
7587         updates too.
7588
7589 2004-04-30  Paul Brook  <paul@codesourcery.com>
7590
7591         * arm.c (arm_needs_doubleword_align): Use mode alignment.
7592
7593 2004-04-30  Paolo Bonzini  <bonzini@gnu.org>
7594
7595         * config/altivec/altivec.h [__cplusplus] (vec_subsubs): Rename to
7596         vec_sububs.
7597         [__cplusplus] (vec_subsuhs): Rename to vec_subuhs, without
7598         duplicates.
7599
7600 2004-04-30  Uros Bizjak  <uros@kss-loka.si>
7601
7602         * config/i386/i386.md (atansf2, atandf2, atanxf2): Move near
7603         atan2?f3 expanders.
7604
7605 2004-04-29  Nick Clifton  <nickc@redhat.com>
7606
7607         Bug 14093
7608         * config/sh/sh-protos.h (sh_promote_prototypes): Declare.
7609         * config/sh/sh.c (sh_promote_prototypes): Remove declaration.
7610         Delete static from definition.
7611         * config/sh/sh.h (FUNCTION_VALUE): Add sh_promote_prototypes call.
7612
7613 2004-04-30  Uros Bizjak  <uros@kss-loka.si>
7614
7615         * reg-stack.c (subst_stack_regs_pat): <UNSPEC_SIN, UNSPEC_COS,
7616         UNSPEC_FRNDINT, UNSPEC_F2XM1>: abort() if src1 dies.
7617         <UNSPEC_SINCOS_COS, UNSPEC_TAN_ONE, UNSPEC_XTRACT_FRACT>: Same.
7618         <UNSPEC_SINCOS_SIN, UNSPEC_TAN_TAN, UNSPEC_XTRACT_EXP>: Same.
7619
7620 2004-04-29  Richard Guenther  <richard.guenther@uni-tuebingen.de>
7621
7622         * commom.opt (Wfatal-errors): Add it.
7623         * diagnostic.c (flag_fatal_errors): Define it.
7624         (diagnostic_action_after_output): Check for flag_fatal_errors.
7625         * flags.h (flag_fatal_errors): Declare it.
7626         * opts.c (common_handle_option): Add OPT_Wfatal_errors.
7627         * doc/invoke.texi (Warning Options): Document -Wfatal-errors.
7628
7629 2004-04-30  Josef Zlomek  <zlomekj@suse.cz>
7630
7631         * gcse.c (remove_reachable_equiv_notes): Delete notes also in
7632         blocks which have kill flag set.
7633
7634 2004-04-29  Ben Elliston  <bje@au.ibm.com>
7635
7636         * configure.ac (--with-as): Abort if user-supplied assembler
7637         cannot be executed.
7638         (--with-ld): Likewise for the linker.
7639         * configure: Regenerate.
7640
7641 2004-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7642
7643         * convert.c (convert_to_integer): Ensure `long_integer_type_node'
7644         isn't NULL before using it.
7645
7646 2004-04-29  Richard Sandiford  <rsandifo@redhat.com>
7647
7648         PR target/15189
7649         * config/mips/mips.md (load_df_low): Use default length.
7650         (load_df_high, store_df_high): Likewise.
7651
7652 2004-04-29  Kazu Hirata  <kazu@cs.umass.edu>
7653
7654         * config/mips/mips.md, config/mips/sb1.md,
7655         config/rs6000/rs6000.c: Fix comment typos.
7656
7657 2004-04-29  Kazu Hirata  <kazu@cs.umass.edu>
7658
7659         * builtins.c, cgraph.c, cgraphunit.c, final.c, fold-const.c:
7660         Fix comment typos.
7661
7662 2004-04-29  Douglas B Rupp  <rupp@gnat.com>
7663
7664         * gcc.c (DELETE_IF_ORDINARY): New macro default definition.
7665         (delete_if_ordinary): Use above macro.
7666         * config/alpha/xm-vms.h (DELETE_IF_ORDINARY): New macro VMS definition.
7667         Update copyright.
7668         * doc/hostconfig.texi (DELETE_IF_ORDINARY): Document new macro.
7669
7670 2004-04-29  Richard Earnshaw  <rearnsha@arm.com>
7671
7672         * c-decl.c (get_parm_info): Use the correct tag keywords when
7673         warning about type declarations in prototypes.
7674
7675 2004-04-29  Paul Brook  <paul@codesourcery.com>
7676
7677         * config.gcc: Pull list of cores from arm-cores.def.
7678
7679 2004-04-29  Paolo Bonzini  <bonzini@gnu.org>
7680
7681         * combine.c (combine_simplify_rtx): Adjust call to use
7682         simplify_relational_operation.  Do not use SELECT_CC_MODE
7683         when a comparison already has a MODE_CC mode.
7684
7685 2004-04-29  Paolo Bonzini  <bonzini@gnu.org>
7686
7687         (simplify_set): simplify_relational_operation may now
7688         return another relational expression.
7689         * cse.c (fold_rtx): simplify_relational_operation now
7690         takes of computing the comparison mode.
7691         * dojump.c (compare_from_rtx): Use simplify_relational_operation,
7692         remove dead code.
7693         (do_compare_rtx_and_jump): Likewise.
7694         * integrate.c (subst_constants): simplify_relational_operation
7695         may now return another relational expression.
7696         * simplify-rtx.c (simplify_gen_relational): Move most code to
7697         the new simplify_relational_operation and
7698         simplify_relational_operation_1 functions.
7699         (simplify_relational_operation): Rewritten.
7700         (simplify_relational_operation_1): New function.
7701         (simplify_ternary_operation): simplify_relational_operation
7702         may now return another relational expression.
7703         (simplify_rtx): Remove unnecessary temp variable.
7704
7705 2004-04-29  Uros Bizjak  <uros@kss-loka.si>
7706
7707         * reg-stack.c (swap_to_top): New function.
7708         (subst_stack_regs_pat): UNSPEC_FPATAN, UNSPEC_FYL2X: Use
7709         swap_to_top().
7710         (subst_stack_regs_pat): UNSPEC_FSCALE: Remove.
7711         (subst_stack_regs_pat): Handle UNSPEC_FSCALE_FRACT and
7712         UNSPEC_FSCALE_EXP.
7713
7714         * config/i386/i386.md (UNSPEC_FSCALE): Remove.
7715         (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): Remove insn pattern.
7716         (UNSPEC_FSCALE_FRACT, UNSPEC_FSCALE_EXP): New unspecs to represent
7717         x87's fscale insn.
7718         (*fscalexf4: Define new insn pattern to implement x87 fscale insn.
7719         (exp?f2, exp10?f2, exp2?f2): Use *fscalexf4 and float_truncate
7720         patterns.
7721
7722 2004-04-28  Serge Belyshev  <1319@bot.ru>
7723
7724         PR 14944
7725         * coverage.c (read_counts_file): Fix usage of warning () call.
7726         * pretty-print.c (pp_base_format_text): Fix typo in the comment.
7727
7728 2004-04-28  Ben Elliston  <bje@au.ibm.com>
7729
7730         * doc/invoke.texi (Objective-C Dialect Options): Don't prefix
7731         options with "-" in the option index.
7732         (SPARC Options): Likewise.
7733         (M32R/D Options): Likewise.
7734
7735 2004-04-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7736
7737         * convert.c (convert_to_integer): Convert (long)round -> lround,
7738         etc.
7739
7740 2004-04-28  Andrew Pinski  <pinskia@physics.uc.edu>
7741
7742         * config/rs6000/rs6000.c (registers_ok_for_quad_peep):
7743         Return false if we do not have fp register.
7744         (addrs_ok_for_quad_peep): Rename to ...
7745         (mems_ok_for_quad_peep): this.
7746         Add check for volatile memory.
7747         * config/rs6000/rs6000-protos.h (addrs_ok_for_quad_peep):
7748         Rename to ...
7749         (mems_ok_for_quad_peep): this.
7750         * config/rs6000/rs6000.md: Change peephole's for lfq/stq
7751         to peephole2's.
7752         (lfq_power2): New instruction.
7753         (stfq_power2): Likewise.
7754
7755 2004-04-28  Jan Hubicka  <jh@suse.cz>
7756
7757         PR c/15004
7758         * function.c (do_warn_unused_parameter): Break out form ...
7759         (expand_function_end): ... here; warn only when not using cgraphunit.
7760         * function.h (do_warn_unused_parameter): Declare.
7761         * cgraphunit.c: Include function.h.
7762         (cgraph_finalize_function): Do unused parameter warning.
7763         * Makefile.in (cgraphunit.o): Depend on function.h
7764
7765 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
7766
7767         * Makefile.in ($(DESTDIR)$(infodir)/%.info): Don't condition
7768         calling install-info on $(DESTDIR)$(infodir)/dir already being
7769         present.
7770
7771 2004-04-28  Paul Brook  <paul@codesourcery.com>
7772
7773         * dwarf2out.c (mem_loc_descriptor): Handle shifts.
7774
7775 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
7776
7777         * gcse.c (find_moveable_store): Do not accept store insns with
7778         REG_EH_REGION note.
7779
7780 2004-04-28  Paul Brook  <paul@codesourcery.com>
7781
7782         * calls.c (precompute_arguments): Remove PROMOTE_FOR_CALL_ONLY.
7783         * function.c (assign_temp): Ditto.
7784         * system.h (PROMOTE_FOR_CALL_ONLY): Poison.
7785
7786 2004-04-28  Paul Brook  <paul@codesourcery.com>
7787
7788         * config/arm/lib1funcs.asm: Recognize armv5tej and armv6.
7789
7790 2004-04-28  Josef Zlomek  <zlomekj@suse.cz>
7791
7792         * var-tracking.c (variable_different_p): Add a parameter
7793         compare_current_location, compare current location of variable parts
7794         if it is true.
7795         (dataflow_set_different_1): Pass compare_current_location == false.
7796         (dataflow_set_different_2): Pass compare_current_location == false.
7797         (emit_notes_for_differences_1): Pass compare_current_location == true.
7798
7799 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
7800
7801         * config/s390/s390.md ("casesi"): Mark jump table access as
7802         non-trapping and unchanging.
7803
7804 2004-04-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7805
7806         PR debug/14829
7807         * dwarf2out.c (reg_number): Rename to dbx_reg_number.  Adjust all
7808         callers.
7809         (multiple_reg_loc_descriptor, reg_loc_descriptor): Use gcc register
7810         number for indexing hard_regno_nregs array.
7811
7812 2004-04-27  Geoffrey Keating  <geoffk@apple.com>
7813
7814         * config/darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
7815         * config/darwin-crt2.c: Only have contents on __ppc__.
7816
7817 2004-04-27  Bob Wilson  <bob.wilson@acm.org>
7818
7819         * config/xtensa/xtensa.c (call_insn_operand): Check
7820         SYMBOL_REF_EXTERNAL_P in addition to SYMBOL_REF_LOCAL_P.
7821         * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND): Likewise.
7822         * config/xtensa/xtensa.md (call, call_value): Likewise.
7823
7824 2004-04-27  Wu Yongwei  <adah@sh163.net>
7825
7826         * gthr-win32.h (__gthread_mutex_t): Change typedef to new structure.
7827         (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
7828         (__gthread_mutex_init_function): Replace CreateMutex with
7829         initialization of custom mutex using CreateSemaphore.
7830         (__gthread_mutex_lock): Use InterlockedIncrement.
7831         (__gthread_mutex_trylock): Use InterlockedCompareExchange.
7832         (__gthread_mutex_unlock): Use InterlockedDecrement and
7833         ReleaseSemaphore to unlock
7834         * config/i386/gthr-win32.c (__gthread_mutex_init_function,
7835         __gthread_mutex_lock, __gthread_mutex_trylock,
7836         __gthread_mutex_unlock): Adjust to match inline versions in
7837         gthr-win32.h.
7838
7839 2004-04-27  Paul Brook  <paul@codesourcery.com>
7840
7841         * config/arm/arm.c (arm_promote_prototypes): New function.
7842         (TARGET_PROMOTE_PROTOTYPES): Use it.
7843
7844 2004-04-27  Paul Brook  <paul@codesourcery.com>
7845
7846         * config/arm/arm.c (arm_expand_epilogue): Count blocks of 4 regs.
7847
7848 2004-04-26  Bernard Giroud  <bgiroud@free.fr>
7849
7850         * config/alpha.c (alpha_end_function): For OpenVMS gas,
7851         correctly output .pdesc directive before .end.
7852
7853 2004-04-26  James E Wilson  <wilson@specifixinc.com>
7854
7855         Bug 14927
7856         * config/ia64/ia64.md (movxf): New local op0.  Handle case where
7857         operands[0] is a SUBREG.  Handle case where operands[1] is a GR reg.
7858
7859 2004-04-26  Zack Weinberg  <zack@codesourcery.com>
7860
7861         * config/ia64/hpux.h: Predefine __STDCPP__ when compiling C++.
7862         * config/pa/pa-hpux10.h: Likewise.
7863         * config/pa/pa-hpux11.h: Likewise.
7864
7865 2004-04-26  Geoffrey Keating  <geoffk@apple.com>
7866
7867         * doc/invoke.texi (Overall Options): Document default for -o
7868         for PCH files.
7869
7870 2004-04-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7871
7872         * builtins.c (expand_builtin_update_setjmp_buf): New function.
7873         (expand_builtin, case BUILT_IN_UPDATE_SETJMP_BUF): New case.
7874         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): New code.
7875
7876 2004-04-26  Paul Brook  <paul@codesourcery.com>
7877
7878         * config/arm/arm.c (arm_legitimate_index_p): Correct iwmmxt offsets.
7879
7880 2004-04-26  Paul Brook  <paul@codesourcery.com>
7881
7882         * config/arm/arm.c (arm_legitimate_index_p): Correct maverick offsets.
7883
7884 2004-04-25  Roger Sayle  <roger@eyesopen.com>
7885
7886         * fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to
7887         fold (build1 (NEGATE_EXPR, ...)).  Optimize X / -1 as -X and
7888         X % -1 as 0.
7889
7890 2004-04-26  Hans-Peter Nilsson  <hp@bitrange.com>
7891
7892         PR bootstrap/15141
7893         * except.c (connect_post_landing_pads): Delete insns after the
7894         barrier when generating a unwind_resume_libfunc call.
7895
7896 2004-04-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7897
7898         PR/c++ 15119
7899         * tree.c (substitute_placeholder_in_expr, case 4): New case,
7900         for TARGET_EXPR.
7901
7902 2004-04-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7903
7904         * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
7905         __gcov_execv, __gcov_execvp, __gcov_execve): Do not declare when
7906         inhibit_libc is defined.
7907
7908 2004-04-25  Richard Sandiford  <rsandifo@redhat.com>
7909
7910         * config/mips/mips-protos.h (mips_linked_macc_p): Declare.
7911         * config/mips/mips.h (TUNE_MACC_CHAINS): New macro.
7912         * config/mips/mips.c (TARGET_SCHED_REORDER): Define.
7913         (TARGET_SCHED_VARIABLE_ISSUE): Define.
7914         (mips_adjust_cost): Move later in file, next to other sched hooks.
7915         (mips_macc_chains_last_hilo): New variable.
7916         (mips_linked_madd_p, mips_macc_chains_record, mips_macc_chains_reorder)
7917         (mips_promote_ready, mips_sched_reorder, mips_variable_issue): New.
7918         * config/mips/mips.md (may_clobber_hilo): New attribute.
7919
7920 2004-04-24  Roger Sayle  <roger@eyesopen.com>
7921             Bruce Korb  <bkorb@gnu.org>
7922
7923         * fixinc/inclhack.def (aix_syswait_2): New fix.
7924         * fixinc/fixincl.x: Regenerate.
7925         * fixinc/tests/base/sys/wait.h: Update for new test.
7926
7927 2004-04-24  Alan Modra  <amodra@bigpond.net.au>
7928
7929         PR target/14960
7930         * config/rs6000/rs6000.c (rs6000_stack_info): Rename total_raw_size
7931         to non_fixed_size, and leave out fixed_size from the sum.
7932         (generate_set_vrsave): Correct clobbers.
7933         (rs6000_emit_epilogue): Test TARGET_ALTIVEC with TARGET_ALTIVEC_SAVE.
7934         (rs6000_function_value): Test TARGET_ALTIVEC and TARGET_ALTIVEC_ABI.
7935         (rs6000_libcall_value): Likewise.
7936         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Likewise.
7937         (FUNCTION_ARG_REGNO_P): Likewise.
7938
7939 2004-04-24  Ulrich Weigand  <uweigand@de.ibm.com>
7940
7941         * expmed.c (expand_mult_highpart_adjust): Do not assume OP1
7942         is a CONST_INT.
7943         (expand_mult_highpart_optab): Call expand_mult_highpart_adjust
7944         with NARROW_OP1 instead of OP1.
7945
7946 2004-04-24  Ulrich Weigand  <uweigand@de.ibm.com>
7947
7948         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __s390__
7949         and __s390x__ hosts.
7950
7951 2004-03-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7952
7953         * Makefile.in (LIBGCOV): Add _gcov_fork, _gcov_execl, _gcov_execlp,
7954         _gcov_execle, _gcov_execv, _gcov_execvp, _gcov_execve.
7955         * builtin-types.def (BT_PID, BT_PTR_CONST_STRING, BT_FN_PID,
7956         BT_FN_INT_CONST_STRING_PTR_CONST_STRING,
7957         BT_FN_INT_CONST_STRING_PTR_CONST_STRING_PTR_CONST_STRING): New.
7958         * builtins.c (expand_builtin_fork_or_exec): New.
7959         (expand_builtin): Call it.
7960         * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP,BUILT_IN_EXECLE,
7961         BUILT_IN_EXECV, BUILT_IN_EXECVP, BUILT_IN_EXECVE, BUILT_IN_FORK): New.
7962         * c-common.c (PID_TYPE): New macro.
7963         (c_common_nodes_and_builtins): Initialize pid_type_node.
7964         * calls.c (special_function_p): Do not handle fork and exec.
7965         (expand_call): Do not handle ECF_FORK_OR_EXEC.
7966         * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
7967         __gcov_execv, __gcov_execvp, __gcov_execve): Declare.
7968         * libgcov.c (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
7969         __gcov_execv, __gcov_execvp, __gcov_execve): New.
7970         * tree.h (enum tree_index): Add TI_PID_TYPE.
7971         (pid_type_node): New macro.
7972         (ECF_FORK_OR_EXEC): Removed.
7973
7974 2004-04-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
7975
7976         PR optimization/13985
7977         * cfgloopmanip.c (fix_loop_placements): New prototype.
7978         Call fix_bb_placements on the preheader of loops that have
7979         been reparented.
7980         (remove_path): Adjust call to fix_loop_placements.
7981
7982 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
7983
7984         * config/darwin7.h: New file.
7985         * config.gcc (*-*-darwin*): Add darwin7.h if the
7986         version is greater than 6.
7987         * config/darwin.h (TARGET_C99_FUNCTIONS): Define.
7988         (MATH_LIBRARY): Wrap in ifdefs.
7989
7990 2004-04-23  Daniel Jacobowitz  <drow@mvista.com>
7991
7992         * config/arm/arm.c (arm_output_epilogue): Reverse the order of
7993         loading iWMMXt registers with a frame pointer.  Use post-increment
7994         without a frame pointer.
7995         (arm_expand_prologue): Reverse the order of saving iWMMXt registers.
7996
7997 2004-04-23  Paolo Bonzini  <bonzini@gnu.org>
7998
7999         * doc/invoke.texi (Optimize Options): Refer to "unit-at-a-time
8000         mode" rather than "-funit-at-a-time" since -O2 enables it
8001         without requiring -f* options.  Refer to -fprofile-generate and
8002         -fprofile-use correctly.  Move -funit-at-a-time among options
8003         enabled by -O.  Add information about unit-at-a-time caveats.
8004
8005 2004-04-22  Per Bothner  <per@bothner.com>
8006
8007         * line-map.h (struct line_maps):  New field highest_line.
8008         (linemap_position_for_column):  Make non-inline function.
8009         (LINEMAP_POSITION_FOR_COLUMN):  New macro.
8010         * line-map.c (linemap_init):  Clear highest_line field.
8011         (linemap_add):  Set highest_line field.
8012         (linemap_line_start):  Minor optimization - use highest_line field.
8013         Reduce maximum column hint to 10000.  Update highest_line field.
8014         (linemap_position_for_column):  Moved from line-map.h.  Optimize a bit.
8015         * cpphash.h (struct cpp_reader):  Remove line field - instead use
8016         line_table->highest_line.
8017         (saved_line):  Remove unused field.
8018         (CPP_INCREMENT_FILE):  Don't do linemap_lookup - just use newest map.
8019         Use  line_table's highest_line field instead of cpp_reader's line.
8020         * cpplib.c (start_directive):  Likewise use highest_line field.
8021         (do_line, do_linemarker):  Likewise just use newest map.
8022         (_cpp_do_file_change):  Don't need to set cpp_reader's line field.
8023         * cpperror.c (cpp_error):  Likewise use highest_line field.
8024         * cppfiles.c (open_file_failed:  Likewise.
8025         (cpp_make_system_header):  Likewise use newest map and highest_line.
8026         * cppinit.c (cpp_create_reader):  Don't initialize removed field.
8027         * cpplex.c (_cpp_process_line_notes, _cpp_skip_block_comment,
8028         skip_line_comment, skip_whitespace, _cpp_get_fresh_line,
8029         _cpp_lex_direct):  Likewise use highest_line.
8030         (_cpp_lex_direct):  Use new LINEMAP_POSITION_FOR_COLUMN macro.
8031         * cppmacro.c (_cpp_builtin_macro_text):  Likewise use highest_line,
8032         and use newest map.
8033         * cpppch.c (cpp_read_state):  Don't save+restore cpp_reader's line.
8034         * cpptrad.c (_cpp_overlay_buffer):  Don't save cpp_reader's line.
8035         (copy_comment, _cpp_scan_out_logical_line):  Likewise use highest_line.
8036
8037 2004-04-23  Alan Modra  <amodra@bigpond.net.au>
8038
8039         PR bootstrap/14992
8040         * gcc.c (init_gcc_specs): Test USE_LD_AS_NEEDED, not HAVE_LD_AS_NEEDED.
8041         * config/linux.h (USE_LD_AS_NEEDED): Define.
8042         * gcc/config/alpha/linux.h (USE_LD_AS_NEEDED): Define.
8043         * gcc/config/arm/linux-elf.h (USE_LD_AS_NEEDED): Define.
8044         * gcc/config/rs6000/linux.h (USE_LD_AS_NEEDED): Define.
8045         * gcc/config/rs6000/linux64.h (USE_LD_AS_NEEDED): Define.
8046         * gcc/config/sh/linux.h (USE_LD_AS_NEEDED): Define.
8047         * gcc/config/sparc/linux.h (USE_LD_AS_NEEDED): Define.
8048         * gcc/config/sparc/linux64.h (USE_LD_AS_NEEDED): Define.
8049
8050 2004-04-22  Per Bothner  <per@bothner.com>
8051
8052         * cppinit.c (cpp_read_main_file):  Return NULL rather than false.
8053         Fixes PR preprocessor/15067.
8054
8055 2004-04-23  Andreas Schwab  <schwab@suse.de>
8056
8057         * config/ia64/ia64intrin.h: Add intermediate cast to void * to
8058         avoid aliasing warning.
8059
8060 2004-04-22  Jan Hubicka  <jh@suse.cz>
8061             Mostafa Hagog <mustafa@il.ibm.com>
8062
8063       * cfgloopmanip.c (scale_bbs_frequencies): Use RDIV macro
8064       * cfgloopanal.c (expected_loop_iterations): Change the return value
8065
8066 2004-04-22  Jakub Jelinek  <jakub@redhat.com>
8067
8068         * cselib.h (struct elt_loc_list): Remove canon_loc field.
8069         * cselib.c (new_elt_loc_list): Remove canon_loc initialization.
8070         (cselib_invalidate_mem): Remove all canon_loc and canon_x
8071         traces.
8072
8073 2004-04-22  Josef Zlomek  <zlomekj@suse.cz>
8074
8075         Revert
8076         2004-04-20  Josef Zlomek  <zlomekj@suse.cz>
8077
8078                 * var-tracking.c (variable_part_different_p): Variable parts
8079                 differ when the most recent locations differ.
8080
8081 2004-04-22  Richard Sandiford  <rsandifo@redhat.com>
8082
8083         * doc/invoke.texi: Remove the MIPS -membedded-pic option.
8084         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): Delete.
8085         (embedded_pic_offset): Delete.
8086         * config/mips/mips.h (MASK_EMBEDDED_PIC): Delete.  Shuffle other
8087         MASK_* constants.
8088         (TARGET_EMBEDDED_PIC): Delete.
8089         (TARGET_SWITCHES): Remove -m{no-,}embedded-pic.
8090         (ASM_SPEC): Remove -membedded-pic.
8091         (ASM_OUTPUT_ADDR_DIFF_ELT): Remove embedded-pic handling.
8092         (ASM_OUTPUT_CASE_LABEL): Likewise.
8093         * config/mips/vxworks.h (ASM_SPEC): Remove -membedded-pic.
8094         * config/mips/windiss.h (ASM_SPEC): Likewise.
8095         * config/mips/mips.c (struct machine_function): Remove
8096         embedded_pic_fnaddr_rtx.
8097         (TARGET_ENCODE_SECTION_INFO): Remove override.
8098         (embedded_pic_fnaddr_reg, embedded_pic_offset): Delete.
8099         (override_options): Remove -membedded-pic handling.
8100         (print_operand): Remove handling of '%S'.
8101         (mips_select_section: Remove -membedded-pic handling.
8102         (mips_encode_section_info): Delete.
8103         (mips_output_conditional_branch): Remove mention of -membedded-pic.
8104         * config/mips/mips.md (define_attr length, movsi, movdi, jump): Remove
8105         -membedded-pic handling.
8106         (casesi, casesi_internal, casesi_internal_di, get_fnaddr): Delete.
8107
8108 2004-04-22  Alan Modra  <amodra@bigpond.net.au>
8109
8110         * var-tracking.c (frame_base_decl): Remove useless GTY.
8111
8112 2004-04-21  Aldy Hernandez  <aldyh@redhat.com>
8113
8114         * config/rs6000/rs6000.c (rs6000_override_options): Error when
8115         user wants altivec and e500 instructions.
8116
8117 2004-04-21  H.J. Lu  <hongjiu.lu@intel.com>
8118
8119         PR target/14813
8120         * config/ia64/crtend.asm: Move pointer to __do_global_ctors_aux
8121         in .init_array section to ...
8122         * config/ia64/crtbegin.asm: Here.
8123
8124         * config/ia64/crtend.asm: Mark __do_global_ctors_aux global
8125         and hidden if HAVE_INITFINI_ARRAY is defined.
8126
8127 2004-04-21  James E Wilson  <wilson@specifixinc.com>
8128
8129         * config/mips/mips-protos.h (fp_register_operand, lo_operand): Declare.
8130         * config/mips/mips.c (mips_multipass_dfa_lookahead): Declare.
8131         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): New.
8132         (fp_register_operand, lo_operand): New.
8133         (mips_rtx_costs): Add TUNE_SB1 support.
8134         (mips_issue_rate): Add comment.  Add PROCESSOR_SB1 support.
8135         (mips_use_dfa_pipeline_interface): Add PROCESSOR_SB1 support.
8136         (mips_multipass_dfa_lookahead): New.
8137         * config/mips/mips.h (MASK_FP_EXCEPTIONS, TARGET_FP_EXCEPTIONS,
8138         TUNE_SB1): New.
8139         (TARGET_SWITCHES): Add -mfp-exceptions support.
8140         (TARGET_FP_EXCEPTIONS_DEFAULT): New.
8141         (BRANCH_COST): Fix whitespace.
8142         * config/mips/mips.md: Include sb1.md.
8143         * config/mips/sb1.md: New file.
8144         * doc/invoke.texi: Document -mfp-exceptions.
8145
8146         * Makefile.in (fixinc.sh): Don't set or export WARN_CFLAGS.  Fix
8147         comment.
8148         * fixinc/Makefile.in (FL_LIST): Don't mention WARN_CFLAGS.
8149         (fixincl.o-warn): Delete.
8150
8151 2004-04-21  Andrew Pinski  <pinskia@physics.uc.edu>
8152
8153         * config/rs6000/rs6000 (print_operand) ['z']:
8154         Change ifdef of TARGET_MACHO to if TARGET_MACHO.
8155
8156 2004-04-21 Daniel Jacobowitz  <drow@mvista.com>
8157
8158         * config.gcc: Support --with-arch=iwmmxt for ARM.
8159
8160 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8161
8162         * expmed.c (expand_mult_highpart_optab): Use narrower version of OP1
8163         in two more places; remove unneeded force_reg
8164
8165 2004-04-21  Andrew Pinski  <pinskia@physics.uc.edu>
8166
8167         * config/rs6000/rs6000.c (symbol_ref_operand): Remove hack
8168         for TARGET_MACHO.
8169         (print_operand): For TARGET_MACHO check to see if we need a stub
8170         and output one if we need it.
8171
8172         PR debug/15033
8173         * dwarf2out.c (rtl_for_decl_location): Check for NULL
8174         rtl.
8175
8176 2004-04-20  James E Wilson  <wilson@specifixinc.com>
8177
8178         * config/ia64/ia64.md (call_value_nogp): Add constraints for op0.
8179         (vall_value_gp): Likewise.
8180
8181 2004-04-20  DJ Delorie  <dj@redhat.com>
8182
8183         * dwarf2out.c (rtl_for_decl_location): Adjust rtl for byte
8184         variables stored in word registers, then in memory.
8185
8186 2004-04-20  Eric Christopher  <echristo@redhat.com>
8187
8188         * cp/parser.c (cp_parser_declaration): Move translate
8189         up before tokens are lexed.
8190
8191 2004-04-20  Uros Bizjak  <uros@kss-loka.si>
8192
8193         * optabs.h (enum optab_index): Add new OTI_asin and OTI_acos.
8194         (asin_optab, acos_optab): Define corresponding macros.
8195         * optabs.c (init_optabs): Initialize asin_optab and acos_optab.
8196         * genopinit.c (optabs): Implement asin_optab and acos_optab
8197         using asin?f2 and acos?f2 patterns.
8198         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_ASIN{,F,L}
8199         using asin_optab, and BUILT_IN_ACOS{,F,L} using acos_optab.
8200         (expand_builtin): Expand BUILT_IN_ASIN{,F,L} and BUILT_IN_ACOS{,F,L}
8201         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
8202
8203         * config/i386/i386.md (asindf2, asinsf2, asinxf2, acosdf2,
8204         acossf2, acosxf2): New expanders to implement asin, asinf, asinl,
8205         acos, acosf and acosl built-ins as inline x87 intrinsics.
8206
8207 2004-04-20  Paul Brook  <paul@codesourcery.com>
8208
8209         * config/arm/arm.c (arm_legitimate_address_p): Use rtx_equal_p.
8210
8211 2004-04-20  Paul Brook  <paul@codesourcery.com>
8212
8213         * config/arm/arm.c (arm_expand_prologue): Fix size calculation.
8214
8215 2004-04-20  Paolo Bonzini  <bonzini@gnu.org>
8216
8217         Revert part of 2004-04-17 change that moved -frename-registers
8218         to -O1.  -frename-registers is buggy.
8219
8220         * toplev.c (flag_rename_registers): Initialize to 0.
8221         * doc/invoke.texi (Optimize options): Move -frename-registers
8222         to "Not triggered by any -O level" section.  Adjust commentary
8223         accordingly.
8224
8225 2004-04-20  Anil Paranjpe <anilp1@kpitcummins.com>
8226
8227         * toplev.c (compile_file): Move targetm.asm_out.file_end call to end.
8228
8229 2004-04-20  Richard Sandiford  <rsandifo@redhat.com>
8230
8231         * config/mips/mips.c (mips_legitimize_move): Generate special patterns
8232         for mflo and mfhi instructions.
8233         (mips_output_move): Remove mflo and mfhi handling.
8234         * config/mips/mips.md (UNSPEC_MFHILO): New unspec.
8235         (*mulsidi3_64bit): Update for new mfhi/mflo representation.
8236         Likewise various define_peephole2s.
8237         (*movdi_32bit, *movdi_64bit, *movsi_internal): Merge x<-J and x<-d
8238         alternatives.
8239         (*movdi_64bit, *movdi_64bit_mips16, *mov[shq]i_internal)
8240         (*mov[shq]i_mips16): Remove mflo and mfhi alternatives.
8241         (mfhilo_di, mfhilo_si): New patterns.
8242
8243 2004-04-20  Josef Zlomek  <zlomekj@suse.cz>
8244
8245         * function.c (assign_parms): Force
8246         MEM_EXPR (DECL_INCOMING_RTL (parm)) == parm.
8247
8248 2004-04-20  Josef Zlomek  <zlomekj@suse.cz>
8249
8250         * var-tracking.c (variable_part_different_p): Variable parts differ
8251         when the most recent locations differ.
8252
8253 2004-04-19  James E Wilson  <wilson@specifixinc.com>
8254
8255         * rtl.h (reg_set_last): Delete declaration.
8256         * rtlanal.c (reg_set_last): Delete.
8257
8258 2004-04-19  Roger Sayle  <roger@eyesopen.com>
8259
8260         * fold-const.c (fold_convert): Make function extern/public.
8261         * tree.h (fold_convert): Prototype here.
8262         * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
8263         expand_builtin_strrchr, expand_builtin_strpbrk,
8264         expand_builtin_mempcpy, expand_builtin_bcopy,
8265         expand_builtin_bzero, expand_builtin_memcmp,
8266         expand_builtin_strcmp, expand_builtin_strncmp,
8267         stabilize_va_list, expand_builtin_sprintf,
8268         fold_trunc_transparent_mathfn, fold_builtin_logarithm,
8269         fold_builtin_exponent, fold_builtin_mempcpy,
8270         fold_builtin_strcpy, fold_builtin_strcmp, fold_builtin_strncmp,
8271         fold_builtin_signbit, fold_builtin_isdigit, fold_builtin): Prefer
8272         fold_convert to "convert" or "fold (build1 (NOP_EXPR, ...))".
8273
8274 2004-04-19  Aldy Hernandez  <aldyh@redhat.com>
8275
8276         * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): New constant.
8277         (move_from_CR_gt_bit): New.
8278         (cceq_ior_compare): Name previously unnamed pattern.  Disable for
8279         E500.
8280         (cceq_rev_compare): Name previously unnamed pattern.  Allow for
8281         E500.
8282
8283         * config/rs6000/spe.md (cmpsfeq_gpr): Rewrite as unspec.
8284         (tstsfeq_gpr): Same.
8285         (cmpsfgt_gpr): Same.
8286         (tstsfgt_gpr): Same.
8287         (cmpsflt_gpr): Same.
8288         (tstsflt_gpr): Same.
8289         (e500_cceq_ior_compare): New.
8290         (e500_flip_gt_bit): New.
8291
8292         * config/rs6000/rs6000.c (ccr_bit): Remove E500 specific code.
8293         (print_operand): Add 'c' and 'D'.
8294         (rs6000_generate_compare): Rewrite to generate correct rtl.
8295         (rs6000_emit_sCOND): Handle E500.
8296         (output_cbranch): Adjust for changes in rs6000_generate_compare.
8297         (output_e500_flip_gt_bit): New.
8298
8299         * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit):
8300         Protoize.
8301
8302 2004-04-19  Eric Christopher  <echristo@redhat.com>
8303
8304         * config/mips/mips.h (DWARF2_ADDR_SIZE): New.
8305
8306 2004-04-19  David Edelsohn  <edelsohn@gnu.org>
8307
8308         * doc/install.texi (*-ibm-aix*): Add AIX 5.1 assembler and archiver
8309         fix information.
8310
8311 2004-04-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8312
8313         * doc/install.texi (Specific, mips-sgi-irix5): Fix IRIX 5.3 IDO
8314         download URL.
8315
8316 2004-04-19  Daniel Jacobowitz  <drow@mvista.com>
8317
8318         * stor-layout.c (layout_decl): Check DECL_PACKED before calling
8319         ADJUST_FIELD_ALIGN.  Check maximum_field_alignment after.
8320
8321 2004-04-19  Andrew PInski  <pinskia@physics.uc.edu>
8322
8323         * builtins.c (fold_builtin_cabs): Remove fndecl parameter.
8324         (fold_builtin): Update caller to match.
8325
8326         PR bootstrap/15009
8327         * bb-reorder.c (fix_up_fall_thru_edges): Init cond_jump.
8328
8329         PR bootstrap/14999
8330         * builtins.c (fold_builtin_cabs): Mark fndecl as unused.
8331
8332 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8333
8334         * varasm.c (compare_constant, case VIEW_CONVERT_EXPR): Add case.
8335
8336         * expmed.c (expand_mult_highpart_adjust): Make OP1 valid for MODE.
8337         (expand_mult_highpart_optab): Likewise.
8338         (expand_mult_highpart): Make OP1 valid for WIDER_MODE, not MODE.
8339
8340 2004-04-19  Paul Brook  <paul@codesourcery.com>
8341
8342         * config/arm/arm.md (fixuns_truncsfsi2, fixuns_truncdfsi2,
8343         floatunssisf2, floatunssidf2): New patterns.
8344
8345 2004-04-18  Mark Mitchell  <mark@codesourcery.com>
8346
8347         PR other/14918
8348         * doc/invoke.texi (-fprofile-generate): Document requirement to
8349         use -fprofile-generate when linking.
8350
8351         * doc/extend.texi (Strong Using): Warn users against using this
8352         feature.
8353
8354 2004-04-18  Richard Sandiford  <rsandifo@redhat.com>
8355
8356         * config/mips/mips-protos.h (m16_usym8_4, m16_usym5_4): Delete.
8357         * config/mips/mips.h (mips_entry, mips_string_length): Delete.
8358         (CONSTANT_POOL_BEFORE_FUNCTION, ASM_OUTPUT_POOL_EPILOGUE): Undefine.
8359         * config/mips/mips.c (struct mips16_constant): Renamed from struct
8360         constant.  Propogate change throughout file.
8361         (struct machine_function): Remove insns_len.
8362         (mips_string_length, mips16_strings, string_constants): Delete.
8363         (mips_classify_symbol): Return SYMBOL_CONSTANT_POOL for LABEL_REFs
8364         when generating mips16 code.  Remove special mips16 treatment of
8365         string constants.
8366         (mips_symbolic_constant_p): Allow mips16 constant pool accesses
8367         to have the form LABEL+CONSTANT.
8368         (mips_symbolic_address_p): Fix comment.
8369         (m16_usym8_4, m16_usym5_4): Delete.
8370         (mips_output_function_epilogue): Remove mips16 string handling.
8371         (mips_output_mi_thunk): Call mips16_lay_out_constants.
8372         (mips_select_section, mips_encode_section_info): Remove mips16
8373         string handling.
8374         (struct mips16_constant_pool): New.
8375         (add_constant): Take a mips16_constant_pool structure.  Keep pool
8376         sorted into order of ascending mode size.  Keep track of the highest
8377         possible start address, taking padding and the masking of the base PC
8378         value into account.
8379         (dump_constants_1): New function, split out from dump_constants.
8380         Handle vector constants.  Use gen_consttable_{int,float} rather than
8381         separate functions for each mode.
8382         (dump_constants): Simplify.  Use GET_MODE_ALIGNMENT.  Use gen_align
8383         rather than separate functions for each alignment.
8384         (mips_find_symbol): Delete.
8385         (mips16_insn_length): New function, split out from
8386         mips16_lay_out_constants.
8387         (mips16_rewrite_pool_refs): New function.
8388         (mips16_lay_out_constants): Rework. Remove string handling.
8389         Always create an inline constant pool.
8390         * config/mips/mips.md (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT)
8391         (UNSPEC_ALIGN): New constants.
8392         (UNSPEC_CONSTTABLE_[QHSD]I, UNSPEC_CONSTTABLE_[SD]F): Delete.
8393         (UNSPEC_ALIGN_[248]): Delete.
8394         (consttable_int, consttable_float, align): New patterns.
8395         (consttable_[qhsd]i, consttable_[sd]f, align_[248]): Delete.
8396
8397 2004-04-17  Aldy Hernandez  <aldyh@redhat.com>
8398
8399         * config/rs6000/altivec.h (vec_any_numeric): Correct typo in
8400         __unn_args_eq.
8401
8402 2004-04-17  Alan Modra  <amodra@bigpond.net.au>
8403
8404         PR target/14715
8405         * config/rs6000/rs6000.c (rs6000_stack_info): Make parm_size agree
8406         with STARTING_FRAME_OFFSET.
8407
8408 2004-04-17  Richard Sandiford  <rsandifo@redhat.com>
8409
8410         * config/mips/mips.h (PREDICATE_CODES): Add macc_msac_operand.
8411         * config/mips/mips.c (macc_msac_operand): New function.
8412         * config/mips/mips.md (*msac): Move after *macc.
8413         (*msac2): New.  Generalize macc-related peepholes so that they apply
8414         to msac too.
8415
8416 2004-04-17  Paolo Bonzini  <bonzini@gnu.org>
8417
8418         * opts.c (decode_options): Do not enable flag_rename_registers
8419         and flag_web at -O3.
8420         * toplev.c (flag_rename_registers): Initialize
8421         flag_rename_registers and flag_web to
8422         AUTODETECT_FLAG_VAR_TRACKING.
8423         (default_debug_hooks): New global.
8424         (process_options): Initialize default_debug_hooks.  Warn if
8425         -fvar-tracking specified but not supported by the current
8426         debug format.  Do not run var tracking at -O0 or if not
8427         supported by the current debug format, even if
8428         -fvar-tracking was given.  If -fno-rename-registers
8429         is not specified, always run register renaming if var
8430         tracking is supported by the default debugging information
8431         format for the target, and we are at -O1 or higher; similarly
8432         for -fweb, but only at -O2 or higher.
8433         * doc/invoke.texi (Optimize Options): Document this.
8434
8435 2004-04-17  Richard Sandiford  <rsandifo@redhat.com>
8436
8437         * configure.ac (gcc_cv_ld_as_needed): Use AC_CACHE_CHECK.
8438         * configure: Regenerate.
8439
8440 2004-04-17  Richard Sandiford  <rsandifo@redhat.com>
8441
8442         * gcc.c (used_arg): Check whether an option has been removed.
8443
8444 2004-04-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8445
8446         * config.gcc (i[34567]86-*-solaris2*): Default to DWARF-2
8447         debugging on Solaris 7 and up.
8448
8449 2004-04-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8450
8451         * doc/install.texi (Specific, mips-sgi-irix5): Reflect working
8452         IRIX 5 port.
8453         Remove -save-temps workaround, handled automatically.
8454         Require GNU binutils 2.15 for debugging.
8455         Remove SGI make warnings since GNU make is now required.
8456         (Specific, mips-sgi-irix6): Some markup fixes.
8457         Describe MIPSpro C problems and workarounds.
8458         Mention working O32 ABI support.
8459         Recommend GNU as 2.15 for O32 with debugging.
8460         Remove description of fixed structure pass/return bug.
8461
8462 2004-04-16  DJ Delorie  <dj@redhat.com>
8463
8464         * sdbout.c (sdbout_one_type): Use TYPE_VALUES for enums, not
8465         TYPE_FIELDS.
8466         (sdbout_finish): Don't free deferred_global_decls; it's GC'd.
8467
8468 2004-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8469
8470         * pa.md: Remove unnecessary declarations for asm_out_file.
8471
8472         * pa64-regs.h (DBX_REGISTER_NUMBER): Simplify and correct mapping of
8473         SAR register.  Fix comment.
8474         (ADDITIONAL_REGISTER_NAMES): Correct register number of SAR register
8475         (%cr11).
8476
8477         * pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld.
8478
8479 2004-04-16  Nick Clifton  <nickc@redhat.com>
8480
8481         * config/arm/arm.c (arm_override_options): Revert previous patch.
8482         * config/arm/t-xscale-elf: Disable iwmmxt multilibs until they can
8483         be safely built.
8484
8485 2004-04-16  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8486
8487         * config/m32r/m32r.h (BIG_ENDIAN_BIT): Deleted to fix endian
8488         bug.
8489         (TARGET_LITTLE_ENDIAN, TARGET_BIG_ENDIAN,
8490         TARGET_DEFAULT): Changed. Ditto.
8491         (LITTLE_ENDIAN_BIT, TARGET_CPU_DEFAULT,
8492         TARGET_ENDIAN_DEFAULT): Added. Ditto.
8493         * config/m32r/little.h (TARGET_LITTLE_ENDIAN): Deleted.
8494         (TARGET_ENDIAN_DEFAULT): Added.
8495
8496 2004-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8497
8498         * builtins.def (BUILT_IN_ISDIGIT, BUILT_IN_ISXDIGIT): Mark with
8499         ATTR_CONST_NOTHROW_LIST.
8500
8501 2004-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8502
8503         PR/middle-end 14915
8504         * builtins.c (expand_builtin_signbit): Test BYTES_BIG_ENDIAN, not
8505         BITS_BIG_ENDIAN.
8506
8507 2004-04-15  Pat Haugen  <pthaugen@us.ibm.com>
8508
8509         * ra-debug.c (ra_print_rtx): Add break's to case legs.
8510
8511 2004-04-14  James E Wilson  <wilson@specifixinc.com>
8512
8513         * Makefile.in (fixinc.sh): Set WARN_CFLAGS to empty string.
8514
8515 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
8516
8517         * libada-mk.in: New file.
8518         * configure.ac: Create libada-mk from libada-mk.in.
8519         * configure: Regenerate.
8520
8521 2004-04-14  Uros Bizjak  <uros@kss-loka.si>
8522
8523         * optabs.h (enum optab_index): Add new OTI_logb and OTI_ilogb.
8524         (logb_optab, ilogb_optab): Define corresponding macros.
8525         * optabs.c (init_optabs): Initialize logb_optab and ilogb_optab.
8526         * genopinit.c (optabs): Implement logb_optab and ilogb_optab
8527         using logb?f2 and ilogb?i2 patterns.
8528         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOGB{,F,L}
8529         using logb_optab, and BUILT_IN_ILOGB{,F,L} using ilogb_optab.
8530         (expand_builtin): Expand BUILT_IN_LOGB{,F,L} and BUILT_IN_ILOGB{,F,L}
8531         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
8532
8533         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_XTRACT_FRACT
8534         and UNSPEC_XTRACT_EXP.
8535
8536         * config/i386/i386.md (*fxtractdf3, *fxtractsf3, *fxtractxf3): New
8537         patterns to implement fxtract x87 instruction.
8538         (logbdf2, logbsf2, logbxf2, ilogbsi2): New expanders to implement
8539         logb, logbf, logbl, ilogb, ilogbf and ilogbl built-ins as inline x87
8540         intrinsics.
8541         (UNSPEC_XTRACT_FRACT, UNSPEC_XTRACT_EXP): New unspecs to represent
8542         x87's fxtract insn.
8543
8544 2004-04-14  Eric Christopher  <echristo@redhat.com>
8545
8546         * config/mips/t-elf: Enable multilibs by default.
8547
8548 2004-04-14  Andreas Tobler  <a.tobler@schweiz.ch>
8549
8550         * bb-reorder.c (fix_crossing_conditional_branches): Adjust the
8551         previous fix to check HAVE_return at runtime too.
8552
8553 2004-04-14  Nick Clifton  <nickc@redhat.com>
8554
8555         * config/arm/arm.c (arm_override_options): If the user has not
8556         specified an ABI, then default to AAPCS for the iWMMXt processor.
8557         * config/arm/t-xscale-elf: Remove redundant multilib specifications.
8558         * config/arm/t-xscale-coff: Likewise.
8559
8560 2004-04-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8561
8562         * builtins.c (fold_builtin_isdigit): New.
8563         (fold_builtin): Handle BUILT_IN_ISDIGIT.
8564         * defaults.h: Add TARGET_DIGIT0 and sort.
8565         * doc/tm.texi: Add TARGET_BS and TARGET_DIGIT0.
8566
8567 2004-04-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8568
8569         * builtins.c (fold_builtin_cabs, fold_builtin): Use
8570         `mathfn_built_in' to determine the new builtin.
8571         * fold-const.c (fold): Likewise.
8572
8573 2004-04-14  Richard Sandiford  <rsandifo@redhat.com>
8574
8575         * doc/invoke.texi: Rename MIPS's -mfix-vr4122-bugs to -mfix-vr4120.
8576         * config/mips/mips.h (MASK_FIX_VR4120): Renamed from MASK_FIX_VR4122.
8577         (TARGET_FIX_VR4120): Likewise TARGET_FIX_VR4122.
8578         (TARGET_SWITCHES): Replace -mfix-vr4122-bugs with -mfix-vr4120.
8579         (ASM_SPEC): Update accordingly.
8580         * config/mips/mips.c: Update after above renaming.
8581         * config/mips/mips.md, config/mips/t-vr, config/mips/vr.h: Likewise.
8582         * config/mips/vr4120-div.S: Renamed from vr4122-div.S.
8583
8584 2004-04-13  James E Wilson  <wilson@specifixinc.com>
8585
8586         * c-opt.c (c_common_post_options): If this_input_filename is NULL,
8587         increment errorcount and return false instead of true.
8588
8589 2004-04-13  Uros Bizjak  <uros@kss-loka.si>:
8590
8591         * optabs.c (expand_twoval_unop): Reorder function arguments.
8592         * builtins.c (expand_builtin_mathfn_3): Update calls to
8593         expand_twoval_unop.
8594
8595         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_TAN_ONE
8596         and UNSPEC_TAN_TAN. Add missing comment.
8597
8598         * config/i386/i386.md (*tandf3_1, *tansf3_1, *tanxf3_1): New
8599         patterns to implement fptan x87 instruction.
8600         (tandf2, tansf2, tanxf2): New expanders to implement tan, tanf
8601         and tanl built-ins as inline x87 intrinsics. Define corresponding
8602         peephole2 optimizers for 'fptan; fstp %st(0); fld1' sequence.
8603         (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): New unspecs to represent
8604         x87's fptan insn.
8605
8606 2004-03-13  Richard Henderson  <rth@redhat.com>
8607
8608         * bb-reorder.c (fix_crossing_unconditional_branches): Use Pmode
8609         for LABEL_REFs.
8610
8611         * defaults.h (HOT_TEXT_SECTION_NAME): Add leading dot.
8612         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Likewise.
8613         * doc/invoke.texi: Update to match.
8614
8615         * varasm.c (unlikely_text_section): Use assemble_align instead of
8616         ASM_OUTPUT_ALIGN.  Use it in the correct place with an approximately
8617         correct alignment argument.
8618
8619 2004-04-13  Ulrich Weigand  <uweigand@de.ibm.com>
8620
8621         * reload1.c (emit_reload_insns): Set reg_has_output_reload to one
8622         after setting reg_last_reload_reg for optional output reloads.
8623
8624 2004-04-12  Fariborz Jahanian <fjahanian@apple.com>
8625
8626         * config/rs6000/altivec.h (vec_mergeh, vec_mergel):
8627         Definition of these two macros are corrected by adding
8628         matchine right paren.
8629
8630 2004-04-12  Jonathan Larmour  <jifl@eCosCentric.com>
8631
8632         * fix-header.c: kill(), putenv() and tzset() are POSIX not ANSI.
8633
8634 2004-04-12  Roger Sayle  <roger@eyesopen.com>
8635
8636         * config/i386/i386.c (output_387_reg_move): New function.
8637         * config/i386/i386-protos.h (output_387_reg_move): Prototype here.
8638         * config/i386/i386.md (*movsf_1, *movsf1_nointerunit,
8639         *movdf_nointeger, *movdf_integer, *movxf_nointeger, *movxf_integer,
8640         *extendsfdf2_1,  *extendsfxf2_1, *extenddfxf2_1, truncdfsf2_noop,
8641         truncxfsf2_noop, truncxfdf2_noop): Call output_387_reg_move.
8642
8643 2004-04-12  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8644
8645         * c-decl.c (finish_decl): Make a decl_stmt for a variable-sized
8646         TYPE_DECL.
8647         * c-semantics.c (genrtl_decl_stmt): Handle TYPE_DECL.
8648         * stmt.c (expand_decl): Remove redundant expansion of TYPE_DOMAIN.
8649         * stor-layout.c (variable_size): Don't check for MINUS_EXPR.
8650         Use skip_simple_arithmetic to find SAVE_EXPR.
8651         (force_type_save_exprs, force_type_save_exprs_1): New functions.
8652         * tree-inline.c (remap_type, case POINTER_TYPE, case REFERENCE_TYPE):
8653         Properly chain multiple pointers.
8654         (copy_tree_r): Copy a TYPE_DECL.
8655         * tree.c (variably_modified_type_p): Add some missing tests and
8656         make some other minor changes.
8657         * tree.h (force_type_save_exprs): New declaration.
8658
8659 2004-04-12  Roger Sayle  <roger@eyesopen.com>
8660
8661         * simplify-rtx.c (simplify_binary_operation) <UDIV, DIV, UMOD, MOD>:
8662         Remove fall throughs.  Convert 0/x and 0%x into x&0 when x has
8663         side-effects.  Don't convert x/1.0 into x if we honor signaling NaNs.
8664         Convert x/-1.0 into -x if we don't honor signaling NaNs.  Convert
8665         x/-1 into -x.  Optimize x%1 into x&0 if x has side-effects.  Optimize
8666         x%-1 into 0 (or x&0 if x has side-effects).
8667
8668 2004-04-11  Aldy Hernandez  <aldyh@redhat.com>
8669
8670         * config/rs6000/rs6000.md: Document why a pattern is not
8671         available.
8672
8673         * config/rs6000/rs6000.c (rs6000_emit_cmove): Disable comparisons
8674         of floats on the E500.
8675         (branch_positive_comparison_operator): Do not allow NE even on the
8676         E500.
8677
8678 2004-04-11  Aldy Hernandez  <aldyh@redhat.com>
8679
8680         * config/rs6000/rs6000.c (rs6000_assemble_integer): Change
8681         in_text_unlikely_section to in_unlikely_text_section.
8682
8683 2004-04-11  Roger Sayle  <roger@eyesopen.com>
8684
8685         * fold-const.c (fold_binary_op_with_conditional_arg):  Tweak
8686         calling convention to allow a NULL_TREE to be returned.  Factor
8687         sanity checks from callers, return NULL_TREE when appropriate.
8688         (fold): Handle COMPOUND_EXPR operands of binary expressions
8689         before COND_EXPR operands.  Use reorder_operands_p(a,b) to check
8690         whether a op (b,c) can be rewritten as (b, a op c).  Simplify
8691         calls to fold_binary_op_with_conditional_arg.
8692
8693 2004-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8694
8695         * config/mips/iris5.h (current_section_flags):  Add
8696         in_unlikely_executed_text and default case.
8697
8698 2004-04-11  Andreas Tobler  <a.tobler@schweiz.ch>
8699
8700         * bb-reorder.c (fix_crossing_conditional_branches): Fix bootstrap
8701         failure on solaris. Place ifdef HAVE_return around gen_ret call.
8702         * cfgrtl.c (force_nonfallthru_and_redirect): Remove ifdef
8703         HAVE_return and place it around the place where it is needed.
8704
8705 2004-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
8706
8707         * varasm.c (text_section): Use TEXT_SECTION_ASM_OP and
8708         ASM_OUTPUT_ALIGN instead of SECTION_FORMAT_STRING
8709         and NORMAL_TEXT_SECTION_NAME.
8710         (unlikely_text_section): Check targetm.have_named_sections
8711         instead of TARGET_ASM_NAMED_SECTION and use TEXT_SECTION_ASM_OP
8712         instead of SECTION_FORMAT_STRING.
8713         * config/mips/iris5.h (current_section_name): Add
8714         in_unlikely_executed_text case and move the abort into the switch.
8715         * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME): Remove.
8716         (NORMAL_TEXT_SECTION_NAME): Remove.
8717         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
8718         (SECTION_FORMAT_STRING): Remove.
8719         * defaults.h (SECTION_FORMAT_STRING): Remove.
8720         * tm.texi (NORMAL_TEXT_SECTION_NAME): Remove.
8721         (SECTION_FORMAT_STRING): Remove.
8722
8723 2004-04-10  Joseph S. Myers  <jsm@polyomino.org.uk>
8724
8725         * c-typeck.c (common_type): Prefer long long to long when same
8726         precision.
8727
8728 2004-04-09  Zack Weinberg  <zack@codesourcery.com>
8729
8730         PR 14887
8731         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Look only at
8732         mode argument.
8733         * config/ia64/ia64.c (ia64_hpux_file_end): Check
8734         TREE_SYMBOL_REFERENCED on DECL_ASSEMBLER_NAME, not DECL_NAME.
8735
8736 2004-04-09  Roger Sayle  <roger@eyesopen.com>
8737
8738         * simplify-rtx.c (mode_signbit_p): New function to check whether
8739         an RTX is an immediate constant that represents the most significant
8740         bit of a given machine mode.
8741         (simplify_unary_operation) <NOT>: Optimize ~(X+C) as X ^ ~C, where
8742         C is the sign bit.
8743         (simplify_binary_operation) <PLUS>: Optimize (X^C1) + C2 as X^(C1^C2)
8744         when C2 is the sign bit.
8745         (simplify_binary_operation) <XOR>: Canonicalize X^C as X+C when C
8746         is the sign bit.  Optimize (X+C1) ^ C2 as X^(C1^C2) when C1 is the
8747         sign bit.
8748
8749 2004-04-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8750
8751         * builtins.c (mathfn_built_in): Check TYPE_MAIN_VARIANT, not
8752         TYPE_MODE.
8753
8754 2004-04-09  Andrew Pinski  <pinskia@physics.uc.edu>
8755
8756         * c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead
8757         of TREE_READONLY for types.
8758
8759 2004-04-09  Caroline Tice  <ctice@apple.com>
8760
8761         * basic-block.h (struct edge_def):  Add new field, crossing_edge.
8762         (struct basic_block_def):  Add new field, partition.
8763         (UNPARTITIONED, HOT_PARTITION, COLD_PARTITION):  New constant macro
8764         definitions.
8765         (partition_hot_cold_basic_blocks): Add extern function
8766         declaration.
8767         * bb-reorder.c (function.h, obstack.h, expr.h, regs.h):  Add four new
8768         include statements.
8769         (N_ROUNDS): Increase the maximum number of rounds by 1.
8770         (branch_threshold): Add array value for new round.
8771         (exec_threshold): Add array value for new round.
8772         (push_to_next_round_p): New function.
8773         (add_unlikely_executed_notes): New function.
8774         (find_rarely_executed_basic_blocks_and_crossing_edges): New function.
8775         (mark_bb_for_unlikely_executed_section): New function.
8776         (add_labels_and_missing_jumps): New function.
8777         (add_reg_crossing_jump_notes): New function.
8778         (fix_up_fall_thru_edges): New function.
8779         (find_jump_block): New function.
8780         (fix_crossing_conditional_branches): New function.
8781         (fix_crossing_unconditional_branches): New function.
8782         (fix_edges_for_rarely_executed_code): New function.
8783         (partition_hot_cold_basic_blocks): New function.
8784         (find_traces):  Add an extra round for partitioning hot/cold
8785         basic blocks.
8786         (find_traces_1_round): Add a parameter.  Modify to push all cold blocks,
8787         and only cold blocks, into the last (extra) round of collecting traces.
8788         (better_edge_p): Add a parameter.  Modify to favor non-crossing edges
8789         over crossing edges.
8790         (bb_to_key):  Add code to correctly identify cold blocks when
8791         doing partitioning.
8792         (connect_traces): Modify to connect all the non-cold traces first, then
8793         go back and connect up all the cold traces.
8794         (reorder_basic_blocks):  Add call to add_unlikely_executed_notes.
8795         * cfg.c (entry_exit_blocks): Add initialization for partition field in
8796         entry and exit blocks.
8797         * cfgbuild.c (make_edges): Update current_function_has_computed_jump
8798         if we are doing hot/cold partitioning.
8799         * cfgcleanup.c (cfglayout.h): Add new include statement.
8800         (try_simplify_condjump): Modify to not attempt on blocks with jumps
8801         that cross section boundaries.
8802         (try_forward_edges): Likewise.
8803         (merge_blocks_move_predecessor_nojumps): Likewise.
8804         (merge_blocks_move_successor_nojumps): Likewise.
8805         (merge_blocks_move): Likewise.
8806         (try_crossjump_to_edge): Modify to not attempt after we have done
8807         the block partitioning.
8808         (try_crossjump_bb): Modify to not attempt on blocks with jumps that
8809         cross section boundaries.
8810         (try_optimize_cfg): Likewise.
8811         * cfghooks.c (tidy_fallthru_edges): Modify to not remove indirect
8812         jumps that cross section boundaries.
8813         * cfglayout.c (flags.h): Add new include statement.
8814         (update_unlikely_executed_notes):  New function.
8815         (fixup_reorder_chain):  Add code so when a new jumping basic block is
8816         added, it's UNLIKELY_EXECUTED_CODE and REG_CROSSING_JUMP notes are
8817         updated appropriately.
8818         (duplicate_insn_chain):  Add code to duplicate the new NOTE insn
8819         introduced by this optimization.
8820         * cfglayout.h (scan_ahead_for_unlikely_executed_note):  Add new
8821         extern function declaration.
8822         * cfgrtl.c (can_delete_note_p):  Add NOTE_INSN_UNLIKELY_EXECUTED_CODE to
8823         list of notes that can be deleted.
8824         (create_basic_block_structure):  Add initialization for partition field.
8825         (rtl_can_merge_blocks):  Modify to test blocks for jumps that cross
8826         section boundaries.
8827         (try_redirect_by_replacing_jump):  Modify to not attempt on jumps that
8828         cross section boundaries.
8829         (commit_one_edge_insertion): Add code so newly created basic block
8830         ends up in correct (hot or cold) section.  Modify to disallow
8831         insertions before NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
8832         (rtl_verify_flow_info_1):  Add code to verify that no fall_thru edge
8833         crosses section boundaries.
8834         (cfg_layout_can_merge_blocks_p): Modify to test blocks for jumps that
8835         cross section boundaries.
8836         (force_nonfallthru_and_redirect): Modify to make sure new basic block
8837         ends up in correct section, with correct notes attached.
8838         * common.opt (freorder-blocks-and-partition):  Add new flag for this
8839         optimization.
8840         * dbxout.c (dbx_function_end):  Add code to make sure scope labels at
8841         the end of functions are written into the correct (hot or cold)
8842         section.
8843         (dbx_source_file): Add code so writing debug file information
8844         doesn't incorrectly change sections.
8845         * defaults.h (NORMAL_TEXT_SECTION_NAME): New constant macro, for use
8846         in partitioning hot/cold basic blocks into separate sections.
8847         (SECTION_FORMAT_STRING): New constant macro, for linux/i386 hot/cold
8848         section partitioning.
8849         (HAS_LONG_COND_BRANCH): New constant macro, indicating whether or not
8850         conditional branches can span all of memory.
8851         (HAS_LONG_UNCOND_BRANCH): New constant macro, indicationg whether or not
8852         unconditional branches can span all of memory.
8853         * final.c (scan_ahead_for_unlikely_executed_note):  New function.
8854         (final_scan_insn):  Add code to check for NOTE instruction indicating
8855         whether basic block belongs in hot or cold section, and to make sure
8856         the current basic block is being written to the appropriate section.
8857         Also added code to ensure that jump table basic blocks end up in the
8858         correct section.
8859         * flags.h (flag_reorder_blocks_and_partition):  New flag.
8860         * ifcvt.c (find_if_case_1):  Modify to not attempt if conversion if
8861         one of the branches has a jump that crosses between sections.
8862         (find_if_case_2): Likewise.
8863         (ifcvt): Modify to not attempt to mark loop exit edges after
8864         hot/cold partitioning has occurred.
8865         * opts.c (decode_options): Code to handle new flag,
8866         flag_reorder_blocks_and_partition; also to turn it off if
8867         flag_exceptions is on.
8868         (common_handle_option): Code to handle new flag,
8869         flag_reorder_blocks_and_partition.
8870         * output.h (unlikely_text_section): New extern function declaration.
8871         (in_unlikely_text_section): New extern function declaration.
8872         * passes.c (rest_of_handle_stack_regs):  Add
8873         flag_reorder_blocks_and_partition as an 'or' condition for calling
8874         reorder_basic_blocks.
8875         (rest_of_handle_reorder_blocks):  Add flag_reorder_blocks_and_partition
8876         as an 'or' condition for calling reorder_basic_blocks.
8877         (rest_of_compilation):  Add call to partition_hot_cold_basic_blocks.
8878         * print-rtl.c (print_rtx): Add code for handling new note,
8879         NOTE_INSN_UNLIKELY_EXECUTED_CODE
8880         * rtl.c  (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note insn (see below).
8881         (REG_CROSSING_JUMP): New kind of reg_note, to mark jumps that
8882         cross between section boundaries.
8883         * rtl.h (NOTE_INSN_UNLIKELY_EXECUTED_CODE):  New note instruction,
8884         indicating the basic block containing it belongs in the cold section.
8885         (REG_CROSSING_JUMP): New type of reg_note, to mark jumps that cross
8886         between hot and cold sections.
8887         * toplev.c (flag_reorder_blocks_and_partition):  Add code to
8888         initialize this flag, and to tie it to the command-line option
8889         freorder-blocks-and-partition.
8890         * varasm.c (cfglayout.h):  Add new include statement.
8891         (unlikely_section_label_printed):  New global variable, used for
8892         determining when to output section name labels for cold sections.
8893         (in_section):  Add in_unlikely_executed_text to enum data structure.
8894         (text_section):  Modify code to use SECTION_FORMAT_STRING and
8895         NORMAL_TEXT_SECTION_NAME macros.
8896         (unlikely_text_section):  New function.
8897         (in_unlikely_text_section):  New function.
8898         (function_section):  Add code to make sure beginning of function is
8899         written into correct section (hot or cold).
8900         (assemble_start_function):  Add code to make sure stuff is written to
8901         the correct section.
8902         (assemble_zeros):  Add in_unlikely_text_section as an 'or' condition
8903         to an if statement that was checking 'in_text_section'.
8904         (assemble_variable):  Add 'in_unlikely_text_section' as an 'or'
8905         condition to an if statement that was checking 'in_text_section'.
8906         (default_section_type_flags_1):  Add check: if in cold section
8907         flags = SECTION_CODE.
8908         * config/darwin.c (darwin_asm_named_section):  Modify to use
8909         SECTION_FORMAT_STRING if we are partitioning hot/cold blocks.
8910         * config/i386/i386.h (HAS_LONG_COND_BRANCH): Defined this macro
8911         specifically for the i386.
8912         (HAS_LONG_UNCOND_BRANCH):  Defined this macro specifically for the i386.
8913         * config/rs6000/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Change
8914         text string to something more informative.
8915         (NORMAL_TEXT_SECTION_NAME): Add new definition.
8916         (SECTION_FORMAT_STRING):  Add new definition.
8917         * config/rs6000/rs6000.c (rs6000_assemble_integer):  Add
8918         '!in_unlikely_text_section' as an 'and' condition to an if statement
8919         that was already checking '!in_text_section'.
8920         * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME,NORMAL_TEXT_SECTION_NAME,
8921         UNLIKELY_EXECUTED_TEXT_SECTION_NAME,SECTION_FORMAT_STRING): Make
8922         sure these are properly defined for linux on ppc.
8923         * doc/invoke.texi  (freorder-blocks-and-partition): Add documentation
8924         for this new flag.
8925         * doc/rtl.texi (REG_CROSSING_JUMP):  Add documentation for new
8926         reg_note.
8927         * doc/tm.texi (NORMAL_TEXT_SECTION_NAME, SECTION_FORMAT_STRING,
8928         HAS_LONG_COND_BRANCH, HAS_LONG_UNCOND_BRANCH): Add documentation for
8929         these new macros.
8930
8931 2004-04-08  Roger Sayle  <roger@eyesopen.com>
8932
8933         * function.c (gen_mem_addressof): When changing the RTX from a REG
8934         to a MEM, clear MEM_VOLATILE_P which was formerly REG_USERVAR_P.
8935
8936 2004-04-08  Roger Sayle  <roger@eyesopen.com>
8937
8938         PR target/14888
8939         * config/i386/i386.md (truncdfsf2_noop, truncxfsf2_noop,
8940         truncxfdf2_noop): Provide dummy "fmov" implementations.
8941
8942 2004-04-08  Ian Lance Taylor  <ian@wasabisystems.com>
8943
8944         * gcc.c (default_compilers): Add missing initializers.
8945
8946         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
8947         Return 1 if file was successfully mapped.
8948
8949 2004-04-08  Geoffrey Keating  <geoffk@apple.com>
8950
8951         PR pch/13419
8952         PR pch/14137
8953         Radar #: 3315288
8954         * doc/invoke.texi (Precompiled Headers): Suggest -o
8955         to put an output file in a particular place.  Be more detailed
8956         about which options affect PCH validity and which options
8957         might not work.
8958         * c-pch.c (pch_matching): New.
8959         (MATCH_SIZE): New.
8960         (struct c_pch_validity): New field 'match'.
8961         (pch_init): Handle pch_matching.
8962         (c_common_valid_pch): Check pch_matching.
8963
8964         * explow.c: Fix typo defining default of PROMOTE_FUNCTION_MODE.
8965
8966 2004-04-08  Mark Mitchell  <mark@codesourcery.com>
8967
8968         * doc/invoke.texi (Precompiled Headers): Warn about known
8969         problems.
8970
8971 2004-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
8972
8973         PR c++/14808
8974         * defaults.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): New macro. Default
8975         to 1 if ASM_OUTPUT_DEF is defined.
8976         * doc/tm.texi (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document.
8977         * config/i386/cygming.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): Define.
8978         Set to non-zero iff not a one_only decl.
8979
8980 2004-04-08  Paul Brook  <paul@codesourcery.com>
8981
8982         * arm.h (CLASS_LIKELY_SPILLED_P): Define.
8983
8984 2004-04-08  Paul Brook  <paul@codesourcery.com>
8985
8986         * explow.c (promote_mode): Use PROMOTE_FUNCTION_MODE instead of
8987         PROMOTE_FOR_CALL_ONLY.
8988         * config/arm/arm-protos.h (arm_function_value): Declare.
8989         * config/arm/arm.h (TARGET_PROMOTE_FUNCTION_ARGS): Define.
8990         (TARGET_PROMOTE_PROTOTYPES): Return false.
8991         (arm_function_value): New function.
8992         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Define.
8993         (FUNCTION_VALUE): Call arm_function_value.
8994         * config/cris/cris.h (PROMOTE_MODE): Rename ...
8995         (PROMOTE_FUNCTION_MODE): ... to this.
8996         (PROMOTE_FOR_CALL_ONLY): Remove.
8997         * config/mmix/mmix.h: Likewise.
8998         * config/s390/s390.h: Likewise.
8999         * config/sparc/sparc.h: Likewise.
9000         * config/sparc/sparc.c: Update comments about PROMOTE_MODE.
9001         * doc/tm.texi (PROMOTE_FUNCTION_MODE): Document.
9002         (TARGET_PROMOTE_FUNCTION_MODE, TARGET_PROMOTE_FUNCTION_RETURN): Update.
9003         (PROMOTE_FOR_CALL_ONLY): Remove.
9004
9005 2004-04-08  Joel Sherrill <joel@oarcorp.com>
9006
9007         PR ada/14538
9008         * ada/5rosinte.adb: Remove fake mprotect() body.
9009         * ada/5rosinte.ads: Add SA_SIGINFO.
9010         * ada/5rtpopsp.adb: Rewrite to use new interface.
9011         * ada/init.c: Reorder so the simple single OS conditional __rtems__
9012         is tested before more complex ones which mix UNIX and embedded
9013         systems in the conditional.
9014
9015 2004-04-08  Joel Sherrill  <joel@oarcorp.com>
9016
9017         PR ada/14665
9018         * ada/osint.adb (Find_Program_Name): Rework to properly handle
9019         filenames which end in .exe or have versioning suffixes like VMS.
9020
9021 2004-04-08  Andrew Pinski  <pinskia@physics.uc.edu>
9022
9023         PR target/10129
9024         * config/darwin.c (darwin_encode_section_info): When the decl has
9025         a DECL_INITIAL, it is only defined also when it is not a common.
9026
9027 2004-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9028
9029         * builtins.c (fold_builtin_isascii, fold_builtin_toascii): New.
9030         (fold_builtin): Handle BUILT_IN_ISASCII and BUILT_IN_TOASCII.
9031
9032 2004-04-07  H.J. Lu  <hongjiu.lu@intel.com>
9033
9034         * config/ia64/ia64.c (ia64_encode_section_info): Don't prod
9035         global register variables.
9036
9037 2004-04-07  Joseph S. Myers  <jsm@polyomino.org.uk>
9038
9039         * fixinc/inclhack.def (rpc_xdr_lvalue_cast_a,
9040         rpc_xdr_lvalue_cast_b): New fixes.
9041         * fixinc/fixincl.x: Regenerate.
9042         * fixinc/tests/base/rpc/xdr.h: Add new tests.
9043
9044 2004-04-07  David Edelsohn  <edelsohn@gnu.org>
9045
9046         * config/rs6000/rs6000.c (processor_target_table): Add MASK_MFCRF
9047         to power4 and power5 entries.
9048
9049 2004-04-06  Geoffrey Keating  <geoffk@apple.com>
9050
9051         * c-common.h (pending_lang_change): Mark for PCH.
9052
9053 2004-04-07  Caroline Tice  <ctice@apple.com>
9054
9055         * gcc.c (main): Move 'break' in main loops (on an error)
9056         to wait until error processing has occurred.
9057
9058 2004-04-06  Nathanael Nerode  <neroden@gcc.gnu.org>
9059
9060         * config.gcc: Stop changing enable_threads midstream.
9061         Replace uses of enable_threads_flag with enable_threads.
9062         * configure.ac: Replace uses of enable_threads_flag with
9063         enable_threads.  Improve autoconf quotation in one place.
9064         * configure: Regenerate.
9065
9066 2004-04-06  Uros Bizjak  <uros@kss-loka.si>
9067
9068         * builtins.c: Implement support for sincos function.
9069         (expand_builtin_mathfn): Remove BUILT_IN_SIN{,F,L} and
9070         BUILT_IN_COS{,F,L}.
9071         (expand_builtin_mathfn_3): New function.
9072         (expand_builtin): Expand BUILT_IN_SIN{,F,L} and
9073         BUILT_IN_COS{,F,L} using expand_builtin_mathfn_3 if
9074         flag_unsafe_math_optimization is set.
9075
9076         * optabs.h (enum optab_index): Add new OTI_sincos.
9077         (sincos_optab): Define corresponding macro.
9078
9079         * optabs.c (init_optabs): Initialize sincos_optab.
9080         (expand_twoval_unop): New function.
9081
9082         * genopinit.c (optabs): Implement sincos_optab using sincos?f3
9083         patterns.
9084
9085         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_SINCOS_COS
9086         and UNSPEC_SINCOS_SIN.
9087
9088         * config/i386/i386.md (sincosdf3, sincossf3, *sincosextendsfdf3,
9089         sincosxf3): New patterns to implement sincos, sincosf and sincosl
9090         built-ins as inline x87 intrinsics. Define splits for
9091         sindf2, sinsf2, *sinextendsfdf2, sinxf2, cosdf2,
9092         cossf2, *cosextendsfdf2 and cosxf2 patterns from corresponding
9093         sincos patterns.
9094         (sindf2, sinsf2, sinxf2): Rename to *sindf2, *sinsf2, *sinxf2.
9095         (cosdf2, cossf2, cosxf2): Rename to *cosdf2, *cossf2, *cosxf2.
9096
9097         (UNSPEC_SINCOS_SIN, UNSPEC_SINCOS_COS): New unspecs to represent
9098         x87's fsincos insn.
9099
9100 2004-04-06  Devang Patel  <dpatel@apple.com>
9101
9102         PR 14467
9103         * config/darwin.h (LINK_COMMAND_SPEC): Use c++filt instead of c++filt3.
9104
9105 2004-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9106
9107         * doc/install.texi: Update HP-UX 11 installation procedure.
9108
9109 2004-04-06  Paul Brook  <paul@codesourcery.com>
9110
9111         * doc/sourcebuild.texi: Remove obsolete contraint on testcases.
9112
9113 2004-04-05  Kaz Kojima  <kkojima@gcc.gnu.org>
9114
9115         * config/sh/sh.c (prepare_move_operands): Use emit_call_insn
9116         when the TLS address is generated by a function call.
9117         * config/sh/sh.md (tls_global_dynamic): Use a call expression.
9118         (tls_local_dynamic): Likewise.
9119
9120 2004-04-05  Andrew Pinski  <pinskia@physics.uc.edu>
9121
9122         * tree.c (reconstruct_complex_type): Use TYPE_READONLY
9123         and TYPE_VOLATILE.
9124
9125 2004-04-05  Caroline Tice  <ctice@apple.com>
9126
9127         * gcc.c (combine_flag): New global variable, for new driver option.
9128         (struct compiler): Add two new fields, to be used when
9129         combining multiple input files in a single pass (IMA).
9130         (default_compilers):  Add values for the new fields to all
9131         compiler entries. Modify the "@c" compiler entry for doing IMA
9132         properly with "-save-temps" and the "combine" flag.
9133         (option_map):  Add new driver option, "--combine", to tell driver
9134         to pass multiple input files to compiler at one time.
9135         (have_o_argbuf_index): New global variable.
9136         (store_arg): Modify to assign value to have_o_argbuf_index.
9137         (struct infile):  Add three new fields, to help with IMA.
9138         (display_help): Add help for new "combine" option.
9139         (process_command): Remove local variable have_o; add code to check
9140         for new "combine" option; remove assignment to combine_inputs.
9141         (do_spec_1):  Modify to deal with IMA better.
9142         (main): Make variable 'lang_n_infiles' local to entire function
9143         rather than to a single block.  Use flag combine_flag to
9144         determine whether to do IMA or not; Modify loop initializing
9145         infiles to deal properly with linker files.
9146         Add code for doing preprocessing in presence of
9147         IMA with "-save-temps" flag.  Modify "main" loop to handle
9148         multiple input files, in multiple languages, with or without
9149         preprocessing,  gracefully.
9150         * toplev.c (set_src_pwd): Modify to not complain if attempting to
9151         re-set it to same directory it's previously been set to (avoid
9152         irritating, meaningless warning messages when doing IMA with
9153         save-temps).
9154         * doc/invoke.texi: Add "-combine" to list of Overall Options;
9155         remove documentation about IMA that is no longer accurate; Add
9156         documentation explaining what "-combine" does.
9157         * ada/lang-specs.h: Add initialization values for new fields in
9158         "struct compiler".
9159         * cp/lang-specs.h: Likewise.
9160         * f/lang-specs.h: Likewise.
9161         * java/lang-specs.h: Likewise.
9162         * objc/lang-specs.h: Likewise.
9163         * treelang/lang-specs.h: Likewise.
9164
9165 2004-04-05  David Edelsohn
9166
9167         * config/rs6000/rs6000.c (VTABLE_NAME_P): Add _ZTI to special
9168         symbol handling.
9169
9170 2004-04-05  Jakub Jelinek  <jakub@redhat.com>
9171             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9172
9173         PR optimization/13424 (hppa), bootstrap/14462, c/14828
9174         * pa.md: Use replace_equiv_address to retain the attributes of the
9175         memory operands used in the split and peephole2 patterns for optimizing
9176         the pre-reload movstrsi, movstrdi, clrstrsi and clrstrdi patterns.
9177
9178 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9179
9180         * c-decl.c (build_compound_literal): Use TYPE_READONLY.
9181         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
9182         * objc/objc-act.c (adorn_decl, gen_declspecs): Likewise.
9183         * c-typeck.c (decl_constant_value): Don't access DECL_INITIAL of a
9184         PARM_DECL.
9185         * calls.c (flags_from_decl_or_type): Use TYPE_READONLY and do so only
9186         for a type.
9187         * print-tree.c (print_node): Properly handle side-effects, readonly,
9188         and constant flags.
9189         * tree.c (build1_stat, build_expr_wfl): Only look at TREE_SIDE_EFFECTS
9190         and TREE_CONSTANT if not a type.
9191         * tree.h (IS_NON_TYPE_CODE_CLASS): New macro.
9192         (IS_EXPR_CODE_CLASS): Write 'E', not 'e'.
9193         (NON_TYPE_CHECK): New macro.
9194         (TREE_SIDE_EFFECT, TREE_READONLY, TREE_CONSTANT: Add check.
9195
9196 2004-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
9197
9198         * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Set
9199         to DWARF2_DEBUG unconditionally.
9200         (ASM_DEBUG_SPEC): Set the default to --gdwarf2 unconditionally.
9201
9202 2004-04-04  Ian Lance Taylor  <ian@wasabisystems.com>
9203             Nathanael Nerode  <neroden@gcc.gnu.org>
9204
9205         PR target/14548
9206         * config.host: Set the shell variable host_can_use_collect2.
9207         Set it to yes by default, and to no for alpha*-dec-*vms*,
9208         i[34567]86-*-mingw32*, and powerpc-*-beos*.
9209         * configure.ac: Set and substitute the shell variable collect2.
9210         Give an error if use_collect2 is yes and host_can_use_collect2 is
9211         no.
9212         * Makefile.in (COLLECT2): Rename from USE_COLLECT2.  Change all
9213         uses.  Initialize to @collect2@.
9214         (STAGESTUFF): Remove $(USE_COLLECT2).
9215         * config/alpha/x-vms (USE_COLLECT2): Don't set.
9216         * config/i386/t-mingw32 (USE_COLLECT2): Likewise.
9217         * config/rs6000/t-beos (USE_COLLECT2): Likewise.
9218         * config/pa/t-pa64: Remove commented out USE_COLLECT2.
9219         * configure: Regenerate.
9220
9221 2004-04-04  Roger Sayle  <roger@eyesopen.com>
9222
9223         * simplify-rtx.c (simplify_binary_operation): Constant fold
9224         DIV, MOD, UDIV and UMOD using div_and_round_double.
9225
9226 2004-04-04  Mark Mitchell  <mark@codesourcery.com>
9227
9228         PR c++/14804
9229         * varasm.c (initializer_constant_valid_p): Allow NOP_EXPRs to
9230         RECORD_TYPEs.
9231
9232 2004-04-04  Mark Mitchell  <mark@codesourcery.com>
9233
9234         * doc/invoke.texi (-mabi=o64): Create link to O64 ABI
9235         documentation.
9236
9237 2004-04-04  Roger Sayle  <roger@eyesopen.com>
9238
9239         * cse.c (cse_insn): Correct usage of simplify_replace_rtx when
9240         updating the REG_EQUAL note on an insn's libcall_insn.
9241
9242 2004-04-04  Roger Sayle  <roger@eyesopen.com>
9243
9244         * df.h: Tidy up whitespace in the definitions of the DF_ flags.
9245
9246 2004-04-03  Roger Sayle  <roger@eyesopen.com>
9247
9248         * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
9249         with reorder_operands_p.
9250
9251 2004-04-03  Jan Hubicka  <jh@suse.cz>
9252
9253         * md.texi (vec_set, vec_extract, vec_init): Document.
9254
9255 2004-04-02  Gabor Loki <loki@inf.u-szeged.hu>
9256
9257        * opts.c (decode_options): Do function inlining with very small
9258        max-inline-insns-* parameters when optimizing for size.
9259
9260 2004-04-02  Vladimir Makarov  <vmakarov@redhat.com>
9261
9262         * config/i386/i386.h (TARGET_NOCONA): New macro.
9263         (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
9264         (processor_type): Add PROCESSOR_NOCONA.
9265
9266         * config/i386/i386.md (cpu): Add nocona to the attribute values.
9267
9268         * config/i386/i386.c (nocona_cost): New variable.
9269         (m_NOCONA): New macro.
9270         (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
9271         x86_branch_hints, x86_use_sahf, x86_single_stringop,
9272         x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
9273         x86_integer_DFmode_moves, x86_partial_reg_dependency,
9274         x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
9275         x86_decompose_lea, x86_arch_always_fancy_math_387,
9276         x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
9277         x86_ext_80387_constants, x86_four_jump_limit):
9278         (override_options): Add nocona_cost to processor_target_table.
9279         Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
9280         (incdec_operand): Prevent inc/dec generation for Nocona too.
9281         (ix86_issue_rate): Add PROCESSOR_NOCONA.
9282
9283 2004-04-01  Andrew Pinski  <pinskia@physics.uc.edu>
9284
9285         * rtlanal.c (find_reg_note): Manually
9286         unswitch the loop.
9287
9288 2004-04-01  Mark Mitchell  <mark@codesourcery.com>
9289
9290         * genemit.c (gen_split): Change prototype of generated code.
9291         * genrecog.c (write_action): Adjust prototype for and calls to
9292         gen_split_*.
9293         * gensupport.c (struct queue_elem): Add split field.
9294         (queue_pattern): Return a value.  Clear the split field.
9295         (process_rtx): Maintain an association between an insn and the
9296         split generated from it for a define_insn_and_split.
9297         (process_one_cond_exec): Generate a new split for a
9298         define_insn_and_split.
9299         * config/arm/arm-protos.h (arm_split_constant): Add insn
9300         parameter.
9301         (emit_constant_insn): New function.
9302         (arm_gen_constant): Use it.
9303         * config/arm/arm.md: Adjust calls to arm_split_constant.
9304
9305 2004-04-02  Jan Hubicka  <jh@suse.cz>
9306
9307         * cgraph.c: Add overall comment.
9308         (cgraph_inline_hash): New global variable.
9309         (cgraph_create_node): Break out from ...
9310         (cgraph_node): ... here.
9311         (cgraph_edge): New function.
9312         (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
9313         (cgraph_remove_edge): Accept edge, intead of source and destination.
9314         (cgraph_redirect_edge_callee): New.
9315         (cgraph_remove_node): Update all new datastructures.
9316         (cgraph_record_call, cgraph_remove_call): Kill.
9317         (dump_cgraph_node): Break out from ... ; dump new datastructures.
9318         (dump_cgraph): ... here.
9319         (cgraph_function_possibly_inlined_p): Use new hashtable.
9320         (cgraph_clone_edge, cgraph_clone_node): New.
9321         * cgraph.h: Include hashtab.h
9322         (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
9323         fields, add inlined_to pointer.
9324         (cgraph_node): Add pointer to next_clone.
9325         (cgraph_remove_edge, cgraph_create_edge): Update prototype.
9326         (cgraph_remove_call, cgraph_record_call): Kill.
9327         (cgraph_inline_hash): Declare.
9328         (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
9329         cgraph_redirect_edge_callee): Declare.
9330         (cgraph_create_edges, cgraph_inline_p): Update prorotype.
9331         (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
9332         cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
9333         * cgraphunit.c: Add overall comment.
9334         (cgraph_optimize_function): Kill.
9335         (cgraph_assemble_pending_functions): Do not assemble inline clones.
9336         (cgraph_finalize_function): Update call of cgraph_remove_node
9337         (record_call_1): Record call sites.
9338         (cgraph_create_edges): Accept node instead of decl argument.
9339         (error_found): New static variable.
9340         (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
9341         (cgraph_analyze_function): Update for new datastructures.
9342         (cgraph_finalize_compilation_unit): Plug memory leak.
9343         (cgraph_optimize_function): Kill.
9344         (cgraph_expand_function): Do not use cgraph_optimize_function.
9345         (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
9346         cgraph_inlined_callees): Kill.
9347         (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
9348         clones.
9349         (estimate_growth): Simplify.
9350         (cgraph_clone_inlined_nodes): New function.
9351         (cgraph_mark_inline_edge): Re-implement.
9352         (cgraph_mark_inline): Likewise.
9353         (cgraph_check_inline_limits): Simplify.
9354         (cgraph_recursive_inlining_p): New.
9355         (update_callee_keys): Break out from ...
9356         (cgraph_decide_inlining_of_small_functions): ... here; simplify.
9357         (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
9358         Likewise.
9359         (cgraph_expand_all_functions):  Remove inline clones from the ordered
9360         list.
9361         (cgraph_preserve_function_body_p): New predicate.
9362         (cgraph_optimize): Verify cgraph.
9363         * function.h (struct function): Add fields saved_tree/saved_args.
9364         * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
9365         * toplev.c (rest_of_compilation): Do not free cfun.
9366         * tree-inline.c: Include function.h
9367         (struct inline_data): Add saving_p field; replace decl/current_decl by
9368         node/current_node.
9369         (insert_decl_map): New function.
9370         (copy_body_r): Handle saving; update cgraph datastructure.
9371         (copy_body): Handle recursive inlining.
9372         (initialize_inlined_parameters): Likewise.
9373         (expand_call_inline): Propagate node attributes; update cgraph.
9374         (optimize_inline_calls): Verify that datastructure still match.
9375         (save_body): New function.
9376         * tree-inline.h (save_body): New.
9377         * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
9378         * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
9379         * langhooks.c (lang_hooks): Add update_decl_after_saving.
9380
9381 2004-04-01  Serge Belyshev  <1319@bot.ru>
9382
9383         PR target/14702
9384         * config/i386/i386.md: fix source operand constraints in
9385         mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
9386
9387 2004-04-01  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
9388
9389         * fold-const.c (folda): Preserve types of comparisons.
9390
9391 2004-04-01  Richard Henderson  <rth@redhat.com>
9392
9393         * toplev.c (backend_init): Move init_optimization_passes call ...
9394         (lang_dependent_init): ... here.
9395
9396 2004-04-01  Alan Modra  <amodra@bigpond.net.au>
9397             Jakub Jelinek  <jakub@redhat.com>
9398
9399         * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
9400         -lgcc --as-needed -lgcc_s --no-as-needed by default.
9401         * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
9402         * configure: Rebuilt.
9403         * config.in: Rebuilt.
9404         * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
9405         (stage2-start, stage3-start, stage4-start): Likewise.
9406         (stageprofile-start, stagefeedback-start): Likewise.
9407
9408 2004-04-01  Jakub Jelinek  <jakub@redhat.com>
9409
9410         * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
9411         * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
9412         * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
9413         * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
9414         (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
9415         * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
9416         with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
9417         * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
9418         * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
9419         * config/sparc/t-linux: Removed.
9420
9421 2004-04-01  Jakub Jelinek  <jakub@redhat.com>
9422
9423         PR c++/14755
9424         * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
9425         "bitfld++ == const" to "++bitfld == const + incr" transformations.
9426
9427 2004-04-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9428
9429         * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
9430         * stor-layout.c (layout_decl): Likewise.
9431         * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
9432         * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
9433         * print-tree.c (print_node): Handle various used of unsigned_flag.
9434         * tree.def (BIT_FIELD_REF): Update comment.
9435         * tree.h (TREE_UNSIGNED): Deleted.
9436         (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
9437
9438 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9439
9440         * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
9441         Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
9442         * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
9443         * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
9444         * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
9445         * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
9446         * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
9447         * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
9448         * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
9449         * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
9450         REAL_TYPE, not INTEGER_TYPE.
9451         (layout_type, case VECTOR_TYPE): Simplify code.
9452         * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
9453         * tree.h: Update comments.
9454         (STRIP_NOPS): Use TYPE_UNSIGNED.
9455         (TYPE_UNSIGNED): New macro.
9456         (TYPE_TRAP_SIGNED): Remove now redundant check.
9457         (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
9458
9459 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9460
9461         * function.c (put_var_into_stack): Properly set orig_reg for indirect.
9462
9463 2004-03-31  Andrew Pinski  <pinskia@physics.uc.edu>
9464
9465         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
9466         Add darwin-fpsave.asm, darwin-vecsave.asm,
9467         and darwin-world.asm.
9468         (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
9469         as the asm files contain altivec instructions.
9470         * config/rs6000/darwin-fpsave.asm: New file.
9471         * config/rs6000/darwin-vecsave.asm: New file.
9472         * config/rs6000/darwin-world.asm: New file.
9473
9474 2004-03-31  Zack Weinberg  <zack@codesourcery.com>
9475
9476         * gengtype-yacc.y (option, stringseq): Add missing
9477         terminating semicolon.
9478
9479 2004-03-30  David Edelsohn  <edelsohn@gnu.org>
9480
9481         * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
9482         tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
9483         tls_dtprel_ha_32, tls_dtprel_ha_64,
9484         tls_dtprel_lo_32, tls_dtprel_lo_64,
9485         tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
9486         tls_tprel_ha_32, tls_tprel_ha_64,
9487         tls_tprel_lo_32, tls_tprel_lo_64,
9488         tls_got_tprel_32, tls_got_tprel_64,
9489         tls_tls_32, tls_tls_64): Replace register_operand with
9490         gpc_reg_operand.
9491
9492 2004-03-30  Mostafa Hagog  <mustafa@il.ibm.com>
9493
9494         * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
9495         *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
9496         *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
9497         *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
9498         *ctrdi_internal6): Replace register_operand with
9499         nonimmediate_operand.
9500
9501 2004-03-29  Fariborz Jahanian <fjahanian@apple.com>
9502
9503         * fold-const.c (fold): Reassociate multiply expression
9504         with an adjacent non-multiply expression to use
9505         architecture's multiply-add instruction.
9506
9507 2004-03-30  Zack Weinberg  <zack@codesourcery.com>
9508
9509         * gengtype.c (create_option): New function.
9510         * gengtype.h: Prototype it.
9511         * gengtype-yacc.y (stringseq): New rule.
9512         (option): Use create_option.  Add new bare ID production.  Use
9513         stringseq, not STRING directly.
9514
9515         * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
9516         * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
9517         * varray.h, config/alpha/alpha.c:
9518         Use new shorter form of GTY markers.
9519
9520         * doc/gty.texi: Rewrite.
9521
9522 2004-03-30  Andrew Pinski  <pinskia@physics.uc.edu>
9523
9524         * config/darwin.c (machopic_function_base_name):
9525         Remove current_name and getting the name of the
9526         current function.
9527
9528 2004-03-30  Nick Clifton  <nickc@redhat.com>
9529
9530         * config/arm/arm.md (thumb_jump): Reduce the backward branch
9531         range, and increase the forward branch range, to allow for
9532         the fact that the PC will be off by 4.
9533
9534 2004-03-30  Alan Modra  <amodra@bigpond.net.au>
9535
9536         * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
9537
9538 2004-03-30  Hartmut Penner  <hpenner@de.ibm.com>
9539
9540         * config/rs6000/rs6000.c (output_vec_const_move):
9541         Find all cases of EASY_VECTOR_15_ADD_SELF.
9542         (easy_vector_constant_add_self): Accept
9543         all vector constant loadable by vsplt* and vadd*.
9544         (easy_vector_same): Use easy_vector_splat_const.
9545         (easy_vector_const): Use easy_vector_splat_const.
9546         (easy_vector_splat_const): New function.
9547         (gen_easy_vector_constant_add_self): New function.
9548
9549         * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
9550         New prototype.
9551
9552         * config/rs6000/altivec.md (movv4si splitter): Change to
9553         emit move insn with halfed vector constant.
9554         (*movv8hi splitter): Likewise.
9555         (*movv16qi splitter): Likewise.
9556
9557 2004-03-30  Hartmut Penner  <hpenner@de.ibm.com>
9558
9559         PR 11591
9560         * config/rs6000/rs6000.c (rs6000_legitimate_address):
9561         Allow any offset to argument pointer in no-strict case.
9562
9563 2004-03-30  Jan Hubicka  <jh@suse.cz>
9564
9565         * toplev.c (backend_init): Add missing call to inint_optimization_passes.
9566         * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
9567         dump file in non-unit-at-a-time mode.
9568
9569 2004-03-29  Hans-Peter Nilsson  <hp@axis.com>
9570
9571         * config/cris/cris.h: Correct #ifdef to test for
9572         HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
9573         HAVE_AS_MUL_BUG_ABORT_OPTION.
9574
9575 2004-03-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9576
9577         * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
9578         the address inside the old RTL.
9579
9580 2004-03-28  Zack Weinberg  <zack@codesourcery.com>
9581
9582         * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
9583         (struct c_binding, struct c_scope): Add chain_next
9584         attributes to GTY markers.
9585         (struct lang_identifier, struct lang_tree_node): Define
9586         here...
9587         * c-tree.h: ... not here.  No longer need to declare struct
9588         c_binding either.  Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
9589         * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
9590         to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
9591
9592         PR 14734, 11944
9593         * c-decl.c (get_parm_info): If error_mark_node is encountered
9594         in the bindings chain, unbind and discard it; don't abort.
9595
9596 2004-03-28  Olga Golovonevsky <olga@il.ibm.com>
9597             Dorit Naishlos <dorit@il.ibm.com>
9598
9599         * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
9600         one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
9601
9602 2004-03-28  Stephane Carrez  <stcarrez@nerim.fr>
9603
9604         * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
9605
9606         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
9607         (m68hc11_attribute_table): New attribute "page0" to mark a global
9608         variable as being allocated from within page0 section.
9609         (m68hc11_encode_label): New function.
9610         (m68hc11_strip_name_encoding): New function.
9611         (m68hc11_page0_symbol_p): New function.
9612         (m68hc11_indirect_p): Accept global variables marked in page0.
9613         (m68hc11_encode_section_info): Lookup "page0" attribute.
9614
9615         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
9616         represents access to page0 variables.
9617
9618         * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
9619         ("*logicalsi3_silshl16_zext"): Likewise.
9620         ("*ashldi3_const32"): Likewise.
9621         (peephole2 ashift): Likewise.
9622
9623 2004-03-28  Joseph S. Myers  <jsm@polyomino.org.uk>
9624
9625         * c-tree.h (C_DECL_REGISTER): New.
9626         * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
9627         finish_decl, grokdeclarator, get_parm_info), c-typeck.c
9628         (build_array_ref, c_mark_addressable): Set and use it.
9629         * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
9630         Allow structures with volatile fields to be declared register.
9631         Don't check TREE_ADDRESSABLE before warning about taking address
9632         of register.
9633         * c-decl.c (finish_decl): Don't allow structures with volatile
9634         fields to be placed in named register.
9635         * doc/trouble.texi: Remove reference to structures with volatile
9636         fields in registers.
9637
9638 2004-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
9639
9640         * function.c (thread_prologue_and_epilogue): Move
9641         NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
9642         before the epilogue.
9643
9644 2004-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
9645
9646         * expr.c (store_constructor): Use gen_int_mode to correctly
9647         sign-extend CONST_INT value.
9648
9649 2004-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9650
9651         * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
9652         * builtins.def (DEF_C94_BUILTIN): New.  Add wctype builtins.
9653         * doc/extend.texi: Likewise.
9654
9655 2004-03-26  Diego Novillo  <dnovillo@redhat.com>
9656
9657         * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
9658           with TYPE_ORIG_SIZE_TYPE.
9659
9660 2004-03-25  Aldy Hernandez  <aldyh@redhat.com>
9661
9662         PR 14219
9663         * c-typeck.c (build_binary_op): Do not allow comparisons of
9664         vectors.
9665
9666 2004-03-26  James A. Morrison  <ja2morri@uwaterloo.ca>
9667
9668         * config.gcc: Remove sparc-tti-*.
9669         * config/sparc/pbd.h: Delete.
9670
9671         * config/sparc/sol2.h: Remove note about Sun OS 4.x.
9672         * config/sparc/aout.h: Likewise.
9673
9674         * config/sparc/sparc.h: Remove if 0'd code.
9675         * config/sparc/sparc.md (call): Remove if 0'd code.
9676         (call_value): Likewise.
9677         (nonlocal_goto): Likewise.
9678         (unimp_insn): Delete.
9679
9680 2004-03-25  Roger Sayle  <roger@eyesopen.com>
9681
9682         * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
9683         BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
9684
9685 2004-03-25  Richard Henderson  <rth@redhat.com>
9686
9687         PR 11527
9688         * c-typeck.c (pop_init_level): Emit pending init elements earlier
9689         rather than later.
9690
9691 2004-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9692
9693         * builtins.c (fold_builtin): Fix error in last change.
9694
9695 2004-03-25  Richard Sandiford  <rsandifo@redhat.com>
9696
9697         * config/mips/mips.h: Formatting fix.
9698
9699 2004-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9700
9701         * builtins.def: Add ctype builtins.
9702         * doc/extend.texi: Likewise.
9703
9704 2004-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9705
9706         * builtins.c (fold_builtin): Add new builtin optimizations for
9707         sqrt and/or cbrt.
9708         * fold-const.c (fold): Likewise.
9709
9710 2004-03-25  David Edelsohn  <edelsohn@gnu.org>
9711
9712         * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
9713         (rs6000_sched_groups): New variable.
9714         (processor_target_table): Add power5.
9715         (rs6000_override_options): Set rs6000_sched_insert_nops,
9716         rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
9717         from rs6000_sched_groups.
9718         (output_cbranch): Use rs6000_always_hint.
9719         (rs6000_variable_issue): Use rs6000_sched_groups.
9720         (rs6000_adjust_cost): Add CPU_POWER5.
9721         (is_microcoded_insn): Use rs6000_sched_groups.
9722         (is_dispatch_slot_restricted): Use rs6000_sched_groups.
9723         Return 2 for POWER5 cracked instructions.
9724         (is_cracked_insn): Use rs6000_sched_groups.
9725         (is_branch_slot_insn): Use rs6000_sched_groups.
9726         (rs6000_issue_rate): Add CPU_POWER5.
9727         (rs6000_sched_finish): Use rs6000_sched_groups.
9728         (rs6000_rtx_costs): Add PROCESSOR_POWER5.
9729         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
9730         (DEFAULT_SCHED_COSTLY_DEP): Delete.
9731         (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
9732         (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
9733         * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
9734         * config/rs6000/power5.md: New file.
9735         * doc/invoke.texi: Add power5 option.
9736
9737 2004-03-25  Kazu Hirata  <kazu@cs.umass.edu>
9738
9739         * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
9740         config/arm/arm.c, objc/objc-act.c: Fix comment typos.
9741         * doc/invoke.texi: Fix a typo.
9742
9743 2004-03-25  Kazu Hirata  <kazu@cs.umass.edu>
9744
9745         PR optimization/9707.
9746         * stmt.c (emit_case_nodes): Emit equality comparisons instead
9747         of recursing if both children are single-valued cases with no
9748         children.
9749
9750 2004-03-25  Paul Brook  <paul@codesourcery.com>
9751
9752         * config/arm/arm.c (vfp_print_multi): Remove.
9753         (arm_output_fldmx): New function.
9754         (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
9755         (arm_expand_prologue): Update to match.
9756         (arm_get_vfp_saved_size): New Function.
9757         (arm_get_frame_offsets): Use it.
9758         (arm_output_epilogue): Use new functions.
9759
9760 2004-03-24  Richard Henderson  <rth@redhat.com>
9761
9762         * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
9763         (reg_known_value, reg_known_value_size): Likewise; make static.
9764         (reg_known_equiv_p): Make static.
9765         (clear_reg_alias_info): Update for new indexing.
9766         (get_reg_known_value, set_reg_known_value): New.
9767         (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
9768         (canon_rtx): Use them.
9769         (init_alias_analysis): Likewise.  Allocate reg_known_value with gc.
9770         Don't play queer offsetting games with reg_known_value and
9771         reg_known_equiv_p.
9772         (end_alias_analysis): Free reg_known_value with gc.
9773         * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
9774         * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
9775         (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
9776         functions instead.
9777
9778 2004-03-24  Kazu Hirata  <kazu@cs.umass.edu>
9779
9780         * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
9781         config/i386/mmintrin.h: Update copyright.
9782
9783 2004-03-24  Nathanael Nerode  <neroden@gcc.gnu.org>
9784
9785         * configure.ac: Add --enable-werror-always (for top level bootstrap
9786         support).
9787         * configure: Regenerate.
9788
9789 2004-03-24  Ziemowit Laski  <zlaski@apple.com>
9790
9791         * objc/objc-act.c (objc_comptypes): Treat comparisons
9792         between 'Class' and '<class> *' as explicitly invalid.
9793
9794 2004-03-24  David Edelsohn  <edelsohn@gnu.org>
9795
9796         * doc/invoke.texi (-frename-registers): Add enabled at -O3.
9797         (-fprofile-values): Add enabled with profile-{generate,use}.
9798         (-fvpt): Same.
9799         (-ftracer): Add enabled with profile-use.
9800         (-funit-at-a-time): Add enabled at -O2,-O3.
9801         (-funroll-loops): Add enabled with profile-use.
9802         (-funswitch-loops): Add enabled with profile-use.  Remove duplicates.
9803         (max-gcse-passes): Mention default.
9804         (max-cse-path-length): Mention default.
9805
9806 2004-03-24  Nathanael Nerode  <neroden@gcc.gnu.org>
9807
9808         * Makefile.in (STRICT2_WARN): Reorder.
9809         * configure.ac: Check for -Wold-style-definition, and use it
9810         in strict1_warn if it's available.
9811         * configure: Regnerate.
9812
9813 2004-03-24  Paul Brook  <paul@nowt.org>
9814
9815         * config.gcc <arm>: Add --with-abi=
9816         * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
9817         thumb_far_jump_used): Remove prototypes.
9818         (arm_needs_doubleword_align): Add prototype.
9819         (thumb_compute_initial_elimination_offset): Ditto.
9820         * config/arm/arm.c (arm_get_frame_offsets): New function.
9821         (use_return_insn, output_return_instruction, arm_output_epilogue,
9822         arm_output_function_epilogue, arm_compute_initial_elimination_offset,
9823         arm_expand_prologue, thumb_expand_epilogue): Use it.
9824         (arm_abi, target_abi_name, all_arm_abis): New variables.
9825         (arm_override_options): Set them.  Set structure padding for AAPCS.
9826         (arm_return_in_memory): Update ABI check.
9827         (arm_init_cumulative_args): Initialize can_split.
9828         (arm_needs_doubleword_align): New function.
9829         (arm_function_arg): Don't split args after pushing to stack. Handle
9830         doubleword/even reg alignment.
9831         (arm_va_arg): Handle all doubleword aligned args.
9832         (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
9833         on ABI, not CPU.
9834         (arm_compute_save_reg0_reg12_mask): Fix comment.
9835         (thumb_get_frame_size, thumb_get_frame_size): Remove.
9836         (thumb_jump_far_used_p): Remove superfluous argument.  Return save
9837         value for alignment.
9838         (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
9839         to match.
9840         (thumb_compute_initial_elimination_offset): New function.
9841         (thumb_expand_prologue): Use arm_get_frame_offsets.  Remove
9842         unneccessary rounding.
9843         * config/arm/arm.h (target_abi_name): Declare.
9844         (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
9845         arm_abi_type, ARM_DEFAULT_ABI): Define.
9846         (ARM_FLAG_ATPCS): Remove.
9847         (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
9848         (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
9849         (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
9850         TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
9851         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
9852         Contitionalize on ABI, not CPU.
9853         (struct arm_stack_offsets): Define.
9854         (struct machine_function): Add stack_offsets.  Remove frame_size.
9855         (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
9856         pushed.
9857         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
9858         doubleword alignment.
9859         (THUMB_INITIAL_ELIMINATION_OFFSET,
9860         ARM_INITIAL_ELIMINATION_OFFSET): Remove.
9861         (INITIAL_ELIMINATION_OFFSET): Call functions directly.
9862         * config/arm/arm.md (align_8): Enable for all targets.
9863         * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
9864         (ARM_DEFAULT_ABI): Define.
9865         * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
9866         -mstructure-size-boundary.
9867
9868 2004-03-24  Nathanael Nerode  <neroden@gcc.gnu.org>
9869
9870         * configure.ac: Check for -Wno-variadic-macros; don't use
9871         -pedantic (in stage 1 or a simple 'make all') unless it's available,
9872         and if it's available, use it.  Also, clean up check for
9873         -Wno-long-long.
9874         * configure: Regenerate.
9875
9876 2004-03-24  Richard Sandiford  <rsandifo@redhat.com>
9877
9878         * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
9879         * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
9880         (MULTILIB_DEFAULTS): Use it.
9881         (MIPS_CPU_STRING_DEFAULT): Remove.
9882         (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
9883         (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120.  Make
9884         EABI64 -mlong32 the default ABI.  Enforce the default architecture.
9885         * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
9886         march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
9887         (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
9888         (MULTILIB_EXCEPTIONS): Change choice of multilibs.  Update comments
9889         accordingly.
9890
9891 2004-03-24  DJ Delorie  <dj@redhat.com>
9892             Richard Sandiford  <rsandifo@redhat.com>
9893
9894         * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
9895         (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
9896         (ASM_SPEC): Pass down -mfix-vr4122-bugs.
9897         * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
9898         in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
9899         (mips_init_libfuncs): Use special functions for divsi3 and modsi3
9900         if TARGET_FIX_VR4122.
9901         * config/mips/mips.md (define_attr length): Account for nops inserted
9902         after macc and dmult when using -mfix-vr4122-bugs.
9903         (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
9904         * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
9905         LIB2FUNCS_EXTRA.  Add config/mips/vr4122-div.S.
9906         * config/mips/vr4122-div.S: New file.
9907         * doc/invoke.texi: Document -mfix-vr4122-bugs.
9908
9909 2004-03-24  Richard Sandiford  <rsandifo@redhat.com>
9910
9911         * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
9912         (TARGET_MIPS4130): New macro.
9913         (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
9914         * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
9915         (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
9916         with PROCESSOR_R4130.
9917         * config/mips/mips.md (define_attr cpu): Add r4130.
9918         * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
9919
9920 2004-03-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
9921             Richard Sandiford  <rsandifo@redhat.com>
9922
9923         * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
9924
9925 2004-03-24  Alexandre Oliva  <aoliva@redhat.com>
9926
9927         PR preprocessor/14438
9928         * cpplib.c (do_pragma): Remove line_change call after pragma
9929         handler.
9930
9931 2004-03-23  Ian Lance Taylor  <ian@wasabisystems.com>
9932
9933         * doc/extend.texi (ARM Built-in Functions): Replace with correct
9934         declarations.
9935
9936 2004-03-23  Roger Sayle  <roger@eyesopen.com>
9937
9938         * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
9939         if flag_unsafe_math_optimizations.
9940         * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
9941         and TARGET_80387 expand using truncdfsf2_noop pattern.
9942         (truncxfsf2): Likewise using truncxfsf2_noop.
9943         (truncxfdf2): Likewise using truncxfdf2_noop.
9944         (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
9945
9946 2004-03-23  Ziemowit Laski  <zlaski@apple.com>
9947
9948         * hooks.c (hook_constcharptr_tree_null): New hook.
9949         * hooks.h (hook_constcharptr_tree_null): New prototype.
9950         * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
9951         * target.h (mangle_fundamental_type): New target hook.
9952         * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
9953         target hook at rs6000_mangle_fundamental_type.
9954         (rs6000_mangle_fundamental_type): New function.
9955         * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
9956
9957 2004-03-23  Zack Weinberg  <zack@codesourcery.com>
9958
9959         PR 12267, 12391, 12560, 13129, 14114, 14133
9960         * c-tree.h: Forward declare struct c_binding.  Declare
9961         c_override_bindings_to_false.  Update prototypes.
9962         (struct lang_identifier): Update comments.  Change fields to be
9963         struct c_binding *.
9964         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
9965         (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
9966         (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
9967         (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
9968         * c-common.h: Update prototypes.
9969         * c-decl.c (struct c_scope): Update commentary.  Remove names,
9970         names_last, parms, parms_last, tags, and shadowed fields.  Add
9971         bindings and depth fields.
9972         (scope_freelist): Move to more appropriate location.
9973         (c_print_identifier): Update for changes to struct lang_identifier.
9974         (objc_mark_locals_volatile): Update for new bindings structures.
9975         (global_bindings_p): Honor c_override_global_bindings_to_false.
9976         (pushlevel): Rename to push_scope; take no arguments; use the
9977         scope_freelist; initialize scope->depth and check for overflow.
9978         (poplevel): Rename to pop_scope; totally rewritten for new bindings
9979         structures.
9980         (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
9981         C_DECL_INVISIBLE, for certain decisions.  Adjust some diagnostics.
9982         Improve some commentary.  Adjust handling of forward parm decls.
9983         (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
9984         Preserve C_DECL_IN_EXTERNAL_SCOPE.
9985         (warn_if_shadowing): Correct indentation.  Improve diagnostics.
9986         (pushdecl): Remove unnecessary assertion.  Short-circuit anonymous
9987         decls.  Rewrite for new bindings structures.  Improve commentary.
9988         Eliminate the copy_node call.
9989         (implicit_decl_warning): Use the "diag" idiom (as seen in
9990         locate_old_decl) to reduce code duplication; call locate_old_decl
9991         if appropriate.  Relocate to remove need for forward declaration.
9992         (implicitly_declare): Adjust for new bindings structures.  Kludge
9993         around Objective-C not-really-builtin functions.
9994         (undeclared_variable): Improve diagnostics.  If current_function_decl
9995         is nonnull but current_function_scope is null, use current_scope.
9996         Use bind.
9997         (lookup_tag): Adjust for new bindings structures.  Kludge around
9998         Objective-C's tag declarations that wind up in the external scope.
9999         (lookup_name): Adjust for new bindings structures.  Kludge around
10000         c-common.c's pseudo-typedefs that wind up in the external scope.
10001         (lookup_name_current_level): Rename lookup_name_in_scope; take a
10002         second argument indicating the scope to examine; rewrite for
10003         new bindings structures.
10004         (c_init_decl_processing): Adjust for renamed functions.  Do not
10005         initialize current_file_decl, first_builtin_decl, last_builtin_decl.
10006         First scope pushed is the external scope, not the global scope.
10007         (builtin_function): Use bind, not pushdecl.  Adjust other bits
10008         for new data structures.  Keep track of builtins that should be
10009         made visible automatically.
10010         (start_decl): Adjust diagnostics.  Remove unnecessary call to
10011         expand_decl.
10012         (grokparms): Return 0 if arg_types is error_mark_node.
10013         (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
10014         reversed sense.  Rewrite for new bindings structures.  Do not
10015         leave any decls in the scope, to prevent pop_scope from doing
10016         contradictory things with them.
10017         (finish_struct, finish_enum): Remove redundant diagnostics.
10018         (build_enumerator): Don't cascade diagnostics for error_mark_node.
10019         Mark location where -pedantic changes the meaning of the program.
10020         (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
10021         parameter decls into the function's scope structure using bind.
10022         Warn here about function definitions in the wrong style.
10023         Adjust diagnostics.
10024         (store_parm_decls): Correct the determination of whether a
10025         function was defined with a prototype.
10026         (c_write_global_declarations): Operate on all file decls and on
10027         the external scope.  Split body of the loop to...
10028         (c_write_global_declarations_1): ... this new function, to avoid
10029         code duplication.
10030         (truly_local_externals, first_builtin_decl, last_builtin_decl)
10031         (make_scope, pop_scope, in_parm_level_p, set_block)
10032         (any_external_decl, record_external_decl, bind_label, getdecls)
10033         (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
10034         (c_reset_state): Delete.
10035         (visible_builtins, c_override_global_bindings_to_false)
10036         (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
10037         (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
10038         (external_scope, binding_freelist, bind, free_binding_and_advance)
10039         (push_file_scope, pop_file_scope): New.
10040         (pushtag, pushdecl_top_level, lookup_label, declare_label)
10041         (define_label, c_make_fname_decl, finish_decl)
10042         (mark_forward_parm_decls, build_compound_literal)
10043         (grokdeclarator, start_function, check_for_loop_decls)
10044         (identifier_global_value, record_builtin_type): Minor adjustments
10045         for new bindings structures.  Improve diagnostics and commentary.
10046         * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
10047         pushlevel/poplevel respectively.
10048         (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
10049         * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
10050         Warn about YYDEBUG not being defined only if -dy.  Remove no-longer-
10051         correct loop over multiple translation units; call fatal_error if
10052         requested to compile more than one file at once.  (This disables
10053         IMA temporarily - an up-front error being preferable to a crash.)
10054         * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
10055         (all actions): Adjust calls to pushlevel/poplevel.
10056         (parsing_iso_function_signature): Delete.
10057         (extdef_1): Fold into extdef.
10058         (old_style_parm_decls_1): Fold into old_style_parm_decls.  Don't
10059         warn here about function definitions in the wrong style.
10060         (after_tyle_declarator, parm_declarator_starttypename)
10061         (parm_declarator_nostarttypename, notype_declarator): Remove
10062         commented-out productions.
10063         (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
10064         an empty TREE_LIST node.  Adjust calls to get_parm_info.
10065         (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
10066         to suppress -Wold-style-definition after this error.
10067         (c_parse_file): Don't clear the binding stack or call
10068         finish_fname_decls here.  Correct comment.
10069         * c-typeck.c (same_translation_unit_p): Export.
10070         (common_type): Use c_override_global_bindings_to_false, not
10071         pushlevel/poplevel/declare_parm_level.
10072         * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
10073         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
10074         and LANG_HOOKS_GETDECLS with do-nothing stubs.
10075         * objc/objc-lang.c: Likewise.
10076         * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
10077         get_parm_info.
10078         (OBJC_VOID_AT_END): Delete; replace all uses
10079         with void_list_node.
10080         (generate_forward_declaration_to_string_table): Delete.
10081         * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
10082
10083         * coverage.c (create_coverage): Don't pushdecl anything.
10084         * langhooks.c (lhd_clear_binding_stack): Call
10085         lang_hooks.decls.poplevel, not poplevel.
10086         * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
10087         circular list rather than going into an infinite loop.
10088
10089 2004-03-23  Olivier Hainque  <hainque@act-europe.fr>
10090
10091         * optabs.c (expand_binop): When synthesizing double word rotates
10092         from single word shifts, use a new register target if the provided
10093         target is not a REG already.
10094
10095 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10096
10097         * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
10098         * c-common.c (handle_mode_attribute): Add extra arg to
10099         build_pointer_type_for_mode and build_reference_type_for_mode.
10100         * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
10101         for INTEGER_CST.
10102         * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
10103         Chain pointers via TYPE_NEXT_PTR_TO.
10104         (build_reference_type_for_mode): Similarly.
10105         (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
10106         and build_reference_type_for_mode.
10107         (tree_check4_failed): New function.
10108         * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
10109         (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
10110         (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
10111         Add check.
10112
10113 2004-03-23  Roger Sayle  <roger@eyesopen.com>
10114
10115         * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
10116         A is nonnegative or B is nonnegative.  Similarly A|B is nonnegative
10117         when both A and B are nonnegative.
10118         (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
10119         nonzero.
10120
10121 2004-03-23  Kazu Hirata  <kazu@cs.umass.edu>
10122
10123         * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
10124         VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
10125
10126 2004-03-23  Kazu Hirata  <kazu@cs.umass.edu>
10127
10128         PR optimization/14669
10129         * fold-const.c (fold): Only unwiden integer comparisons for equality
10130         and inequality operators, or when the signedness doesn't change.
10131
10132 2004-03-23  Jakub Jelinek  <jakub@redhat.com>
10133
10134         * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
10135         * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
10136         * config/sparc/t-linux: New file.
10137
10138 2004-03-23  Richard Sandiford  <rsandifo@redhat.com>
10139
10140         * gcse.c (can_assign_to_reg_p): New function, split out from...
10141         (want_to_gcse_p): ...here.
10142         (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
10143         the rhs of a store.
10144
10145 2004-03-22  Diego Novillo  <dnovillo@redhat.com>
10146
10147         * c-typeck.c (same_translation_unit_p): Fix pasto.
10148
10149 2004-03-22  David Edelsohn  <edelsohn@gnu.org>
10150
10151         * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
10152         (PARAM_MAX_SCHED_REGION_INSNS): New.
10153         * sched-rgn.c: Include params.h
10154         (MAX_RGN_BLOCKS): Delete.
10155         (MAX_RGN_INSNS): Delete.
10156         (too_large): Return bool.  Convert to PARAM_VALUE.
10157         * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
10158         * doc/invoke.texi (param): Document max-sched-region-blocks and
10159         max-sched-region-insns.
10160
10161 2004-03-22  Joel Brobecker  <brobecker@gnat.com>
10162
10163         * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
10164         for base types.
10165
10166 2004-03-22  Joel Brobecker  <brobecker@gnat.com>
10167
10168         * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
10169         change.
10170
10171 2004-03-22  Jakub Jelinek  <jakub@redhat.com>
10172
10173         PR c/14069
10174         * c-decl.c (finish_struct): Change type of incorrect flexible array
10175         field into error_mark_node.
10176
10177 2004-03-22  Andrew Pinski  <pinskia@physics.uc.edu>
10178
10179         PR target/14580
10180         * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
10181         who are not local for Darwin PIC.
10182
10183 2004-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
10184
10185         * regrename.c (regrename_optimize): Set regs_ever_live for all
10186         registers introduced as replacement.
10187
10188 2004-03-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
10189
10190         PR middle-end/14470
10191         * expr.c (mark_queue): New function.
10192         (emit_insns_enqueued_after_mark): New function replacing
10193         emit_queue.  Clear the body of emitted queued insns.
10194         (emit_queue): Call emit_insns_enqueued_after_mark.
10195         (store_expr): Mark the increment queue on entry.  Emit
10196         only the incrementations queued when expanding the source.
10197
10198 2004-03-22  Nathanael Nerode  <neroden@gcc.gnu.org>
10199
10200         * configure.ac: Allow --disable-coverage-flags (for the future benefit
10201         of top level bootstrap, and consistency).  Reindent.
10202         * configure: Regenerate.
10203
10204 2004-03-21  Kazu Hirata  <kazu@cs.umass.edu>
10205
10206         * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
10207         ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
10208         unnecessary casts.
10209
10210 2004-03-22  Danny Smith  <dannysmith@users.sourceforge.net>
10211
10212         PR target/14291
10213         * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
10214         __MINGW32__.
10215
10216 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
10217
10218         * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
10219         to nonimmediate_operand.
10220         ("*doloop_di"): Likewise.
10221
10222 2004-03-21  Alexandre Oliva  <aoliva@redhat.com>
10223
10224         * real.h (struct real_value): Use the same type for all
10225         bitfields.  Rename exp to uexp.
10226         (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
10227         Adjust all uses of exp...
10228         * builtins.c: ... here, ...
10229         * emit-rtl.c: ... here, and ...
10230         * real.c: ... and here.
10231
10232 2004-03-21  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10233
10234         * pretty-print.c (pp_base_maybe_space): New function.
10235         * pretty-print.h (pp_base_maybe_space): Declare.
10236         (pp_maybe_space): New macro.
10237
10238 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
10239
10240         * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
10241
10242 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
10243
10244         * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
10245         of using register multiplication cost.
10246         (expand_mult): Adapt choose_mult_variant call.
10247         (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
10248         of MODE; pass appropriate cost bound.  Adjust result when
10249         performing signed multiplication by a negative constant.
10250         Don't use intermediate modes larger than word_mode.
10251
10252 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10253
10254         * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
10255         * emit-rtl.c (component_ref_for_mem_expr): Likewise.
10256         (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
10257         * explow.c (expr_size): Likewise.
10258         * expr.h (placeholder_list, find_placeholder): Deleted.
10259         * expr.c (store_constructor): Likewise.
10260         (get_inner_reference): Likewise.  Also don't call find_placeholder.
10261         (placeholder_list, find_placeholder): Deleted.
10262         (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
10263         (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
10264         (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
10265         * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
10266         * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
10267         Likewise.
10268         * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
10269         (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
10270         * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
10271         (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
10272         Clean up by using first_rtl_op.
10273         (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
10274         (substitute_placeholder_in_expr): New function.
10275         * tree.def (WITH_RECORD_EXPR): Deleted.
10276         * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
10277         (substitute_placeholder_in_expr): New.
10278
10279 2004-03-21  Andrew Pinski  <pinskia@gcc.gnu.org>
10280
10281         * dojump.c (prefer_and_bit_test): Fix which part of
10282         the and_test is replaced.
10283
10284 2004-03-21  Joseph S. Myers  <jsm@polyomino.org.uk>
10285
10286         * frontends.texi: Add missing line.
10287
10288 2004-03-21  Zack Weinberg  <zack@codesourcery.com>
10289             Chris Devers  <cdevers@pobox.com>
10290             Joseph S. Myers  <jsm@polyomino.org.uk>
10291
10292         * doc/frontends.texi: Rewrite.
10293         * doc/gcc.texi: Update last modification date.
10294
10295 2004-03-21  Josef Zlomek  <zlomekj@suse.cz>
10296
10297         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
10298         message before redirecting the edge.
10299
10300 2004-03-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10301
10302         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
10303         flag.
10304         * explow.c (force_not_mem): Set REG_POINTER flag according to
10305         MEM_POINTER one.
10306         * rtl.h (MEM_POINTER): New macro.
10307         (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
10308         for MEM_POINTER.
10309
10310 2004-03-20  Roger Sayle  <roger@eyesopen.com>
10311
10312         PR target/13889
10313         * cse.c (fold_rtx): Avoid substituting constants into unary
10314         conversion operations.
10315
10316 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
10317
10318         * fold-const.c (fold): Replace "expr" with "t".
10319
10320 2004-03-20  Ian Lance Taylor  <ian@wasabisystems.com>
10321
10322         PR c/12373
10323         * c-typeck.c (tagged_types_tu_compatible_p): Don't use
10324         DECL_ORIGINAL_TYPE if there isn't one.
10325
10326 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
10327
10328         * fold-const.c (fold): Replace "final_type" with "type".
10329         Remove variable "final_type".
10330
10331 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
10332
10333         * fold-const.c (fold): Constify "type".
10334         Replace "TREE_TYPE (t)" with "type".
10335
10336 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
10337
10338         * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
10339         dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
10340         via (*targetm.foo) () with targetm.foo ().
10341
10342 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
10343
10344         PR other/14630
10345         * doc/install.texi: Add info directory category and entry.
10346
10347 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
10348
10349         * fold-const.c (fold): Replace "t" with "tem" where it is used
10350         as a temporary variable.  Remove "orig_t" and all of its uses.
10351
10352 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
10353
10354         * fold-const.c (fold): Remove variable "invert".
10355         Move the handling of relational expressions that can be folded
10356         to a constant ...
10357         (fold_relational_const): ... here.
10358         (tree_expr_nonzero_p): New.
10359
10360 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
10361
10362         PR c/14635
10363         * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
10364         DEF_GCC_BUILTIN.
10365
10366 2004-03-20  Richard Sandiford  <rsandifo@redhat.com>
10367
10368         * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
10369         (GTFILES): Add $(srcdir)/dojump.h.
10370         (gt-dojump.h): New dependency.
10371         * dojump.c (and_reg, and_test, shift_test): New static variables.
10372         (prefer_and_bit_test): New function.
10373         (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
10374
10375 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
10376
10377         * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
10378         expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
10379         reorg.c, tree.h: Fix comment typos.
10380
10381 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
10382
10383         * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
10384         c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
10385         cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
10386         haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
10387         sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
10388         vmsdbgout.c: Replace calls via (*targetm.foo) () with
10389         targetm.foo ().
10390
10391 2004-03-19  Ziemowit Laski  <zlaski@apple.com>
10392
10393         * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
10394         vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
10395         always_inline attribute.
10396         * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
10397         Treat expansion as completed even if literal argument is
10398         invalid (so that other expansions are not tried in vain).
10399
10400 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
10401
10402         * loop-doloop.c (add_test): Replace GEN_INT (0) with
10403         const0_rtx.
10404
10405 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
10406
10407         * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
10408         ...
10409         (fold_abs_const): ... here.
10410
10411 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10412
10413         * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
10414
10415 2004-03-19  Denis Chertykov  <denisc@overta.ru>
10416
10417         PR target/11520
10418         * config/avr/avr.md ("call_insn"): Handle explicit integer
10419         specially.
10420         (call_value_insn): Likewise.
10421
10422 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10423
10424         * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
10425
10426 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
10427
10428         * fold-const.c (negate_expr): Move the handling of constants
10429         ...
10430         (fold_negate_const): ... here.
10431
10432 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10433
10434         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
10435         * langhooks.h (struct lang_hooks_for_types): New field hash_types.
10436         * tree.c (debug_no_type_hash): Deleted.
10437         (type_hash_canon): Abort if passed a variant.
10438         Check lang_hooks.types.hash_types.
10439         (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
10440         (build_array_type): Remove unnecessary allocation of pointer type.
10441         (build_complex_type): Properly qualify resulting type.
10442
10443 2004-03-19  Paolo Bonzini  <bonzini@gnu.org>
10444
10445         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
10446
10447 2004-03-19  Richard Sandiford  <rsandifo@redhat.com>
10448
10449         * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
10450         (expand_mult): ...here.
10451         (extract_high_half): New, split out from expand_mult_highpart.
10452         (expand_highpart_optab): Likewise.  Don't clobber target prematurely.
10453         (expand_highpart): Evaluate the cost of a shift/add sequence,
10454         then see if any of the specialized optabs are cheaper.
10455
10456 2004-03-18  Ian Lance Taylor  <ian@wasabisystems.com>
10457
10458         * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
10459
10460 2004-03-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10461
10462         * convert.c (convert_to_real): Add more math builtins.
10463
10464 2004-03-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10465
10466         * convert.c (convert_to_real): Reformat using switch stmt.
10467
10468 2004-03-18  Mark Mitchell  <mark@codesourcery.com>
10469
10470         * c-common.c (pointer_int_sum): Do not complain about using
10471         pointers to pointers-to-members.
10472
10473 2004-03-18  Kazu Hirata  <kazu@cs.umass.edu>
10474
10475         * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
10476         have moved to the target hooks structure".
10477
10478 2004-03-18  James E Wilson  <wilson@specifixinc.com>
10479
10480         * config/mips/mips.md (type): Split move into arith and fmove.  Split
10481         hilo into mthilo and mfhilo.  Add trap.  Delete icmp.  Fix all uses.
10482         * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
10483         Likewise.
10484         * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
10485         Likewise.
10486         * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
10487         rm7_fp_quick): Likewise.
10488         * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
10489         rm9k_fquick): Likewise.
10490         * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
10491         Likewise.
10492         (ir_sr70_icmp): Delete.
10493
10494 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10495
10496         * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
10497         (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
10498         (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
10499         (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
10500         (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
10501         Protect with proper check.
10502         (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
10503         (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
10504         * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
10505         (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
10506         * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
10507         * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
10508         not TYPE_FIELDS.
10509         * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
10510
10511 2004-03-18  Mostafa Hagog  <mustafa@il.ibm.com>
10512
10513         * gcse.c (eliminate_partially_redundant_loads): Reject change if
10514         dest is set between beginning and current insn.
10515
10516 2004-03-18  Mark Mitchell  <mark@codesourcery.com>
10517
10518         * c-decl.c (grokdeclarator): Do not complain about redeclaring
10519         visible "static" identifiers "extern" in a local scope.
10520         * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
10521         post-increments/decrements.
10522
10523 2004-03-18  Bob Wilson  <bob.wilson@acm.org>
10524
10525         * config/xtensa/xtensa.c (current_function_arg_words): Delete.
10526         (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
10527         (xtensa_va_start): Remove assignment to current_function_arg_words.
10528
10529 2004-03-18  Richard Sandiford  <rsandifo@redhat.com>
10530
10531         * alias.c (record_set): Detect the case where a register is assigned
10532         a new value that has the same base term as the old one.
10533
10534 2004-03-18  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10535
10536         * doloop.c: Removed.
10537         * loop-doloop.c: New file.
10538         * Makefile.in (doloop.o): Remove.
10539         (loop-doloop.o): New.
10540         * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
10541         * cfgloopanal.c (get_loop_level): New function.
10542         * loop-iv.c (iv_number_of_iterations): Handle case when loop
10543         is leaved immediatelly.
10544         * loop.c (strength_reduce): Do not call doloop optimization.
10545         * loop.h (LOOP_BCT): Removed.
10546         * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
10547         (rest_of_handle_loop2): Call doloop_optimize_loops.
10548         (rest_of_compilation): Test for optimizations moved to
10549         rest_of_handle_loop2.
10550
10551 2004-03-17  Fariborz Jahanian <fjahanian@apple.com>
10552
10553         * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
10554         for mixed mode.
10555         (rs6000_emit_prologue): Ditto.
10556         (rs6000_emit_epilogue): Ditto.
10557         * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
10558         macro for mixed mode.
10559
10560 2004-03-18  Jan Hubicka  <jh@suse.cz>
10561
10562         * predict.c (propagate_freq): Compute correctly frequency of
10563         EXIT_BLOCK.
10564
10565 2004-03-17  Eric Christopher  <echristo@redhat.com>
10566
10567         * builtins.c (apply_args_size): Use reg_raw_mode.
10568         (apply_result_size): Ditto.
10569
10570 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
10571
10572         PR target/14620
10573         * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
10574
10575 2004-03-17  Jakub Jelinek  <jakub@redhat.com>
10576
10577         * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
10578         32-bit builds when defaulting to 32-bit.
10579
10580 2004-03-17  Jan Hubicka  <jh@suse.cz>
10581
10582         * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
10583         array.
10584
10585 2004-03-17  James E Wilson  <wilson@specifixinc.com>
10586
10587         * config/mips/mips.md (zero_extendsidi2): Add length attribute.
10588         (hazard_nop): Change type to nop.
10589         (type): Split arith into arith, shift, slt, clz.  Delete darith.
10590         Fix all uses.  Change arith to multi if more than one insn emitted.
10591         * config/mips/5400.md (ir_vr54_arith): Likewise.
10592         * config/mips/5500.md (ir_vr55_arith): Likewise.
10593         * config/mips/7000.md (rm7_int_other): Likewise.
10594         * config/mips/9000.md (rm9k_int): Likewise.
10595         * config/mips/sr71k.md (ir_sr70_arith): Likewise.
10596
10597 2004-03-17  Joel Brobecker  <brobecker@gnat.com>
10598
10599         * dwarf2out.c (subrange_type_die): Define new variable "subtype"
10600         to hold the subtype tree instead of recomputing it several times.
10601
10602 2004-03-17  Kazu Hirata  <kazu@cs.umass.edu>
10603
10604         * config/mn10300/mn10300.c (notice_update_cc): Don't handle
10605         CC_INVERT.
10606         * config/mn10300/mn10300.md (cc): Remove "invert".
10607
10608 2004-03-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10609
10610         * builtins.c (integer_valued_real_p): Add builtin rint.
10611         (fold_builtin): Likewise.
10612         * convert.c (convert_to_real): Likewise.
10613
10614         * convert.c (convert_to_real): Fix typos in `long double'
10615         builtins.
10616
10617 2004-03-16  Mark Mitchell  <mark@codesourcery.com>
10618
10619         PR c++/14481
10620         * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
10621         generated COMPOUND_EXPRs.
10622
10623 2004-03-16  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
10624
10625         * config/h8300/t-rtems (h8300-*-rtems*): New.
10626
10627 2004-03-16  Eric Christopher  <echristo@redhat.com>
10628
10629         * doc/cppopts.texi(fwide-exec-charset): Fix typo.
10630
10631 2004-03-16  Kazu Hirata  <kazu@cs.umass.edu>
10632
10633         * config/i386/i386-protos.h: Add a prototype for
10634         ix86_reverse_condition.
10635         * config/i386/i386.c (ix86_reverse_condition): New.
10636         * config/i386/i386.h (REVERSE_CONDITION): Use
10637         ix86_reverse_condition.
10638         * config/i386/i386.md: Use ix86_reverse_condition instead of
10639         REVERSE_CONDITION.
10640
10641 2004-03-16  J. Brobecker  <brobecker@gnat.com>
10642
10643         * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
10644
10645 2004-03-16  Nathanael Nerode  <neroden@gcc.gnu.org>
10646
10647         PR bootstrap/12974
10648         * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
10649
10650 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
10651
10652         * c-common.c (c_common_type_for_mode): Build vector types on
10653         demand.
10654         (handle_mode_attribute): Deprecate using the mode attribute
10655         to create vector types.  Fix indentation.
10656         (vector_type_node_list): Remove.
10657         (handle_vector_size_attribute): Create vector types on demand.
10658         Strip a NON_LVALUE_EXPR from the attribute if there is one.
10659         * c-typeck.c (comptypes): Make vector types compatible if they
10660         have the same underlying mode.
10661         (convert_for_assignment): Use comptypes to convert between
10662         vector types.
10663         * tree.c (build_common_tree_nodes_2): Do not create vector types.
10664         * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
10665         vector types.
10666         * tree.h: Remove vector types.
10667         * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
10668         * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
10669         (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
10670         V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
10671         * doc/extend.texi (Vector Types): Document how to use the
10672         vector_size attribute to create vectors, rather than mode.
10673
10674         * config/arm/mmintrin.h: Use vector_size attribute, not mode.
10675         * config/i386/emmintrin.h: Likewise.
10676         * config/i386/mmintrin.h: Likewise.
10677         * config/i386/xmmintrin.h: Likewise.
10678         * config/sh/ushmedia.h: Likewise.
10679
10680 2004-03-16  Kazu Hirata  <kazu@cs.umass.edu>
10681
10682         * config/freebsd-spec.h, config/arc/arc-protos.h,
10683         config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
10684         config/arm/linux-gas.h, config/arm/semi.h,
10685         config/cris/cris-protos.h, config/i386/xm-djgpp.h,
10686         config/ia64/freebsd.h, config/mips/7000.md,
10687         config/mips/9000.md, config/ns32k/ns32k-protos.h,
10688         config/sparc/pbd.h: Update copyright.
10689
10690 2004-03-16  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
10691
10692         PR target/14577
10693         * config.gcc: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff.
10694
10695 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
10696
10697         * combine.c (combine_simplify_rtx): Remove the "last"
10698         parameter and its documentation.  Adjust recursive calls.
10699         (simplify_logical): Always perform the only simplification
10700         controlled by "last", if the simplified expression is
10701         actually different.
10702         (try_combine): Do not pass the "last" parameter to
10703         combine_simplify_rtx.
10704
10705 2004-03-16  Richard Sandiford  <rsandifo@redhat.com>
10706
10707         PR target/14599
10708         * config/mips/mips.md (UNSPEC_GP): New constant.
10709         * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
10710         an UNSPEC instead of (reg $gp).
10711         (mips16_gp_pseudo_reg): Change accordingly.
10712         (print_operand): Print $gp directly when handling CONST_GP_P.
10713
10714 2004-03-16  Richard Zidlicky  <rz@linux-m68k.org>
10715
10716         * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
10717         * longlong.h: Make code 68060 clean when compiling for m68060.
10718
10719 2004-03-16  Richard Zidlicky  <rz@linux-m68k.org>
10720
10721         * config/m68k/m68k.md: Fix constraints for bitfield instructions.
10722         * doc/md.texi: Clarify description of "i" constraint.
10723
10724 2004-03-15  James E Wilson  <wilson@specifixinc.com>
10725
10726         * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
10727         Split store into store, fpstore, fpidxstore.  Fix all uses.
10728         * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
10729         Likewise.
10730         * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
10731         * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
10732         * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
10733         * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
10734         ir_sr70_fstore): Likewise.
10735
10736 2004-03-15  Richard Henderson  <rth@redhat.com>
10737
10738         PR middle-end/14535
10739         * except.c (collect_one_action_chain): Record action for cleanup
10740         outer of exception spec.
10741
10742 2004-03-15  Ian Lance Taylor  <ian@wasabisystems.com>
10743
10744         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
10745         Fix the check for abort and only do the mmap if we can.
10746
10747 2004-03-15  Eric Botcazou  <ebotcazou@act-europe.fr>
10748
10749         * config/sparc/sparc.h: Rework comments about the code model
10750         in 64-bit environment and the mode 'Pmode'.
10751         * doc/invoke.texi (SPARC options): Rework description of the
10752         different code models supported in 64-bit environment.
10753
10754 2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>
10755
10756         * defaults.h (REVERSIBLE_CC_MODE): Define.
10757         * jump.c (reversed_comparison_code_parts): Don't check if
10758         REVERSIBLE_CC_MODE is defined.
10759
10760 2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>
10761
10762         * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
10763         et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
10764         hosthooks.h, params.h, ra-colorize.c, web.c,
10765         config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
10766         config/avr/avr-protos.h, config/avr/avr.md,
10767         config/fr30/fr30-protos.h, config/fr30/fr30.md,
10768         config/h8300/fixunssfsi.c, config/i386/darwin.h,
10769         config/i386/freebsd.h, config/i386/freebsd64.h,
10770         config/ia64/hpux.h, config/ia64/unwind-ia64.c,
10771         config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
10772         config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
10773         config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
10774         config/pa/pa64-regs.h, config/rs6000/aix41.h,
10775         config/rs6000/aix43.h, config/rs6000/host-darwin.c,
10776         config/sparc/aout.h, config/sparc/freebsd.h,
10777         config/sparc/litecoff.h, config/vax/vax-protos.h,
10778         doc/hostconfig.texi, doc/include/gcc-common.texi: Update
10779         copyright.
10780
10781 2004-03-15  Paul Brook  <paul@codesourcery.com>
10782
10783         * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
10784
10785 2004-03-15  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10786
10787         * c-pretty-print.c (pp_c_semicolon): Fix formatting.
10788         (pp_c_cv_qualifier): Document.
10789         (pp_c_space_for_pointer_operator): Likewise.
10790         (pp_c_integer_constant): Likewise.
10791         (pp_c_identifier): Likewise.
10792         (pp_c_init_declarator): Don't print function body.
10793
10794 2004-03-14  Joseph S. Myers  <jsm@polyomino.org.uk>
10795
10796         * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
10797         doc/install.texi, doc/invoke.texi, doc/makefile.texi,
10798         doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
10799         "gcc", "g++" and "g77" or mark up with appropriate markup.  Adjust
10800         wording and grammar.
10801
10802 2004-03-14  Roger Sayle  <roger@eyesopen.com>
10803
10804         * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
10805         with lang_hooks.foo ().
10806         * builtins.c (expand_builtin_va_arg): Likewise.
10807         * c-common.c (fname_as_string, c_common_truthvalue_conversion,
10808         c_common_type_for_mode, c_common_nodes_and_builtins,
10809         handle_mode_attribute, handle_vector_size_attribute): Likewise.
10810         * c-convert.c (convert): Likewise.
10811         * c-format.c (check_format_types): Likewise.
10812         * c-objc-common.c (c_tree_printer): Likewise.
10813         * c-typeck.c (build_unary_op, build_conditional_expr,
10814         build_binary_op): Likewise.
10815         * calls.c (try_to_integrate, expand_call,
10816         emit_library_call_value_1): Likewise.
10817         * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
10818         Likewise.
10819         * cgraphunit.c (record_call_1, cgraph_analyze_function,
10820         cgraph_expand_function): Likewise.
10821         * convert.c (convert_to_pointer, convert_to_integer): Likewise.
10822         * coverage.c (build_fn_info_type, build_ctr_info_type,
10823         build_gcov_info, create_coverage): Likewise.
10824         * dbxout.c (dbxout_init): Likewise.
10825         * diagnostic.c (diagnostic_report_current_function): Likewise.
10826         * dojump.c (do_jump): Likewise.
10827         * dwarf2out.c (dwarf2_name): Likewise.
10828         * except.c (init_eh): Likewise.
10829         * explow.c (expr_size, int_expr_size): Likewise.
10830         * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
10831         Likewise.
10832         * expr.c (store_expr, store_constructor, safe_from_p,
10833         expand_expr_real, do_store_flag, try_casesi): Likewise.
10834         * function.c (push_function_context_to, pop_function_context_from,
10835         free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
10836         put_var_into_stack, allocate_struct_function, current_function_name):
10837         Likewise.
10838         * integrate.c (copy_decl_for_inlining, expand_inline_function):
10839         Likewise.
10840         * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
10841         lhd_print_error_function): Likewise.
10842         * opts.c (handle_option, decode_options): Likewise.
10843         * passes.c (open_dump_file): Likewise.
10844         * print-tree.c (print_node): Likewise.
10845         * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
10846         expand_decl_cleanup, emit_case_nodes): Likewise.
10847         * stor-layout.c (variable_size): Likewise.
10848         * toplev.c (announce_function, wrapup_global_declarations,
10849         check_global_declarations, compile_file, default_tree_printer,
10850         process_options, lang_dependent_init, finalize): Likewise.
10851         * tree-dump.c (dequeue_and_dump): Likewise.
10852         * tree-inline.c (remap_decl, remap_block, copy_body_r,
10853         initialize_inlined_parameters, declare_return_variable,
10854         inlinable_function_p, expand_call_inline, optimize_inline_calls,
10855         walk_tree, copy_tree_r): Likewise.
10856         * tree-optimize.c (tree_rest_of_compilation): Likewise.
10857         * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
10858         unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
10859         variably_modified_type_p, dump_tree_statistics): Likewise.
10860         * varasm.c (assemble_variable, compare_constant, copy_constant,
10861         force_const_mem, compute_reloc_for_constant, output_constant,
10862         output_addressed_constants, initializer_constant_valid_p): Likewise.
10863
10864 2004-03-14  Kelley Cook  <kcook@gcc.gnu.org>
10865
10866         * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
10867
10868 2004-03-14  Andreas Tobler  <a.tobler@schweiz.ch>
10869
10870         * doc/install.texi: Reflect autoconf and automake version for
10871         libffi. Update autoconf version to 2.59.
10872
10873 2004-03-13  Roger Sayle  <roger@eyesopen.com>
10874
10875         * fold-const.c (negate_expr, operand_equal_for_comparison_p,
10876         optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
10877         make_range, build_range_check, fold_range_test, unextend,
10878         constant_boolean_node, fold_binary_op_with_conditional_arg,
10879         fold_truthop, fold_mathfn_compare, fold_inf_compare,
10880         fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
10881         with lang_hooks.foo ().
10882
10883 2004-03-14  Richard Earnshaw  <rearnsha@arm.com>
10884
10885         * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
10886
10887 2004-03-13  Dara Hazeghi  <dhazeghi@yahoo.com>
10888
10889         * doc/install.texi: Note status of -fnew-ra.
10890
10891 2004-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
10892
10893         PR middle-end/14470
10894         * expr.c (store_expr): Call emit_queue before generating the move
10895         from the temporary to the original target.  Protect the temporary
10896         from emit_queue.
10897
10898 2004-03-13  Jakub Jelinek  <jakub@redhat.com>
10899
10900         PR target/14533
10901         * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
10902         other than UNSPEC_GOTOFF.
10903
10904 2004-03-13  Richard Earnshaw  <rearnsha@arm.com>
10905
10906         * arm.c (arm_legitimate_address_p): New argument, OUTER.  Pass through
10907         to arm_legitimate_index_p.  Update all callers with SET as default
10908         value.
10909         (arm_legitimate_index_p): New argument, OUTER.  Restrict the index
10910         range if OUTER is a sign-extend operation on QImode.  Correctly
10911         reject shift operations on sign-extended QImode addresses.
10912         (bad_signed_byte_operand): Delete.
10913         (arm_extendqisi_mem_op): New function.
10914         * arm.h (EXTRA_CONSTRAINT_ARM): Delete.  Replace with...
10915         (EXTRA_CONSTRAINT_STR_ARM): ... this.  Handle extended address
10916         constraints.
10917         (CONSTRAINT_LEN): New.
10918         (EXTRA_CONSTRAINT): Delete.  Replace with...
10919         (EXTRA_CONSTRAINT_STR): ... this.
10920         (PREDICATE_CODES): Remove bad_signed_byte_operand.
10921         * arm.md (extendqihi_insn): Use new constraint Uq.  Rework.  Length
10922         is now always default.
10923         (define_splits for bad sign-extend loads): Delete.
10924         (arm_extendqisi, arm_extendqisi_v5): Likewise.
10925         * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
10926         Rework 'U' constraint to 'Uv'.
10927         * arm-protos.h: Remove bad_signed_byte_operand.  Add
10928         arm_extendqisi_mem_op.
10929         * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
10930         Add Uq constraint.
10931
10932 2004-03-13  Alan Modra  <amodra@bigpond.net.au>
10933
10934         * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
10935         with targetm version.
10936
10937         PR target/14567
10938         * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
10939         (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
10940         * config/rs6000/rs6000.c (rs6000_arg_size): New function.
10941         Update all users of RS6000_ARG_SIZE.
10942         (function_arg_advance): Count fregno using mode size.
10943         (function_arg): Handle long double split over regs and memory.
10944         (function_arg_partial_nregs): Likewise.
10945         (rs6000_va_arg): Repackage complex args.
10946
10947 2004-03-13  Dean Ferreyra <dferreyra@igc.org>
10948
10949         PR target/14047
10950         * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
10951         (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
10952         * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
10953
10954 2004-03-12  Jakub Jelinek  <jakub@redhat.com>
10955
10956         * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
10957         prototype.
10958         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
10959         * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
10960
10961 2004-03-12  Andrew Pinski  <apinski@apple.com>
10962
10963         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
10964         Use ret instead of result. Use addr instead of base.
10965
10966 2004-03-12  David Edelsohn  <edelsohn@gnu.org>
10967
10968         * doc/install.texi (*-ibm-aix*): Document assembler and achiver
10969         fixes required by libstdc++ and update installation instructions
10970         for libstdc++.a.
10971
10972 2004-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
10973
10974         * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
10975         leading '@' on fastcall symbols before stripping suffix.
10976
10977 2004-03-12  Roger Sayle  <roger@eyesopen.com>
10978
10979         * combine.c (unmentioned_reg_p): New function to check whether an
10980         expression is a "specialization" of another, i.e. that there are
10981         no registers or memory references mentioned in the first that don't
10982         appear in the second.
10983         (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
10984         (combine_instructions): Also try combining instructions using the
10985         REG_EQUAL note from a preceding log-linked instruction.
10986
10987 2004-03-12  Roger Sayle  <roger@eyesopen.com>
10988
10989         * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
10990
10991 2004-03-12  Matt Austern  <austern@apple.com>
10992
10993         * target.h (struct gcc_target): New target hook, unwind_label.
10994         * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
10995         * output.h (default_emit_unwind_label): New function.
10996         * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
10997         (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
10998         (TARGET_SUPPORTS_HIDDEN): New target macro.
10999         * dwarf2out.c (struct dw_fde_struct): Add field for function decl
11000         that corresponds to this FDE.
11001         (FRAME_BEGIN_LABEL): Allow target to override default label.
11002         (output_call_frame_info): If FDEs are linknonce, then use extra
11003         indirection for FDE encoding, output a label for each FDE, and
11004         output an empty label for each function without an FDE.
11005         (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
11006         * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
11007         decls with DECL_ONE_ONLY set, if that macro is defined.
11008         (make_decl_one_only): Don't use DECL_COMMON if we're compiling
11009         for a SUPPORTS_ONE_ONLY target.
11010         * config/darwin-protos.h (darwin_unique_section): Declare.
11011         (darwin_asm_named_section): Likewise.
11012         (darwin_section_type_flags): Likewise.
11013         (darwin_non_lazy_pcrel): Likewise.
11014         (darwin_emit_unwind_label): Likewise.
11015         (darwin_make_decl_one_only): Likewise.
11016         * config/darwin.c (machopic_finish): Get rid of tweak that
11017         eliminate stubs for symbols that are defined.
11018         (darwin_encode_section_info): Don't treat weak functions as defined.
11019         (darwin_make_decl_one_only): Define.
11020         (darwin_asm_named_section): Likewise.
11021         (darwin_section_type_flags): Likewise.
11022         (darwin_unique_section): Likewise.
11023         (darwin_emit_unwind_label): Likewise.
11024         (darwin_non_lazy_pcrel): Likewise.
11025         (darwin_asm_output_dwarf_delta): Difference between two labels is
11026         local only if both labels are local.
11027         * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
11028         (ASM_MAKE_LABEL_LINKONCE): Likewise.
11029         (TARGET_SUPPORTS_HIDDEN): Likewise.
11030         (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
11031         (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
11032         (FRAME_BEGIN_LABEL): Likewise.
11033         (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
11034         (ASM_DECLARE_FUNCTION_NAME): Likewise.
11035         (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
11036         (TARGET_ASM_UNIQUE_SECTION): Define.
11037         (EH_FRAME_SECTION_NAME): Define.
11038         (EH_FRAME_SECTION_ATTR): Likewise.
11039         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
11040         (TARGET_ASM_NAMED_SECTION): Likewise.
11041         (TARGET_SECTION_TYPE_FLAGS): Likewise.
11042         * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
11043         TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
11044         TARGET_ASM_EMIT_UNWIND_LABEL.
11045
11046 2004-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11047
11048         * builtins.c (expand_builtin_mathfn): Add pow10* to the
11049         existing exp10* case.
11050         (expand_builtin): Likewise.
11051
11052 2004-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
11053
11054         * doc/tm.texi (registers) <Values in Registers>: Add
11055         entry for REGMODE_NATURAL_SIZE.
11056
11057 2004-03-12  Richard Henderson  <rth@redhat.com>
11058
11059         PR target/14547
11060         * target.h (struct gcc_target): Move calls substructure before
11061         booleans.  Add split_complex_arg.
11062         * function.c (assign_parms, split_complex_args): Use it.
11063         * calls.c (expand_call): Likewise.
11064         (split_complex_values): Likewise.  Check for splittable types
11065         before allocating memory.
11066         (split_complex_types): Likewise.
11067         * system.h (SPLIT_COMPLEX_ARGS): Poison.
11068         * expr.h (SPLIT_COMPLEX_ARGS): Remove.
11069         * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
11070         * config/alpha/alpha.c (alpha_split_complex_arg): New.
11071         (TARGET_SPLIT_COMPLEX_ARG): New.
11072         * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
11073         * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
11074         (rs6000_override_options): Zap it for non-AIX.
11075         (rs6000_function_value): Use targetm.calls.split_complex_arg.
11076         * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
11077         * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
11078         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
11079         * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
11080         SPLIT_COMPLEX_ARGS entry.
11081
11082 2004-03-11  Richard Henderson  <rth@redhat.com>
11083
11084         * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
11085         (alpha_lookup_xfloating_lib_func): Use them, return rtx.
11086         (alpha_emit_xfloating_arith): Update to match.
11087         (alpha_emit_xfloating_compare): Likewise.
11088         (alpha_emit_xfloating_cvt): Likewise.
11089         (alpha_emit_xfloating_libcall): Take already built symbol,
11090         mark call const.
11091         * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
11092         op1 in a register.
11093
11094 2004-03-11  Richard Henderson  <rth@redhat.com>
11095
11096         PR target/14539
11097         * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
11098
11099         * simplify-rtx.c (simplify_relational_operation): Fix typo.
11100
11101 2004-03-11  Richard Henderson  <rth@redhat.com>
11102
11103         PR middle-end/14477
11104         * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
11105
11106 2004-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
11107
11108         PR target/14262
11109         * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
11110         defined, pass small BLKmode values in registers in the low-order part.
11111
11112 2004-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
11113
11114         * combine.c (if_then_else_cond): Check for NULL return value of
11115         simplify_gen_subreg.
11116
11117 2004-03-11  Richard Sandiford  <rsandifo@redhat.com>
11118
11119         PR target/14496
11120         * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
11121         TARGET_SINGLE_FLOAT.
11122
11123 2004-03-11  Steve Ellcey  <sje@cup.hp.com>
11124
11125         * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
11126         * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
11127         * config/ia64/ia64.c (ia64_init_libfuncs): New.
11128         (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
11129
11130 2004-03-11  Roger Sayle  <roger@eyesopen.com>
11131
11132         * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
11133         -((int)X>>C) where C is an integer constant one bit less than the
11134         size of X into (unsigned)X>>C.  Similarly for unsigned->signed.
11135         (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
11136
11137         * simplify-rtx.c (simplify_unary_operation): Also implement the
11138         above transformations at the RTL level.
11139
11140 2004-03-11  Alan Modra  <amodra@bigpond.net.au>
11141
11142         * real.c (encode_ibm_extended): Do round low word.
11143
11144 2004-03-11  Ben Elliston  <bje@wasabisystems.com>
11145
11146         * config/arm/arm.md (is_xscale): Comment this attribute and move
11147         it a bit further up in the file, closer to related attributes.
11148
11149 2004-03-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
11150
11151         * config/host-solaris.c (sol_gt_pch_use_address): Add
11152         missing terminating marker to comment.
11153
11154 2004-03-11  Richard Sandiford  <rsandifo@redhat.com>
11155
11156         * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
11157         (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
11158         (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
11159         (*movsf_mips16, *movdf_mips16):  Name unnamed patterns.  Use
11160         move_operand as source predicate in all cases.
11161         (*movdi_32bit): Renamed from movdi_internal.  Remove 'F' constraint.
11162         Test reg_or_0_operand.  Use move_operand as source predicate.
11163         (*movdi_64bit): Renamed from movdi_internal2.  Test reg_or_0_operand.
11164         (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
11165         (*movsi_internal): Renamed from movsi_internal.  Test reg_or_0_operand.
11166         (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
11167         (*movhi_internal): Renamed from movhi_internal.  Test reg_or_0_operand.
11168         Use move_operand as source predicate.  Remove 'K' constraint.
11169         (*movqi_internal): Likewise movqi_internal.
11170         (*movsf_hardfloat): Renamed from movsf_internal1.  Test
11171         reg_or_0_operand.  Use move_operand as source predicate.
11172         (*movsf_softfloat): Likewise movsf_internal2.
11173         (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
11174         (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
11175         (*movdf_softfloat): Likewise movdf_internal2.
11176         * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
11177         for DImode if !TARGET_64BIT.
11178         (mips_legitimize_move): Simplify accordingly.
11179
11180 2004-03-11  Josef Zlomek  <zlomekj@suse.cz>
11181
11182         PR/14362
11183         * var-tracking.c (struct variable_def): Added field refcount.
11184         (variable_htab_free): Decrease the refcount and delete variable
11185         only if there are no more references.
11186         (unshare_variable): New function.
11187         (vars_copy_1): Increase refcount instead of copying the variable.
11188         (variable_union): Share the variables where possible, unshare
11189         the variables if needed.
11190         (variable_different_p): Return false if var1 and var2 are
11191         the same structure.
11192         (variable_was_changed): Init the refcount of new variable.
11193         (set_frame_base_location): Unshare variable if needed.
11194         (set_variable_part): Init the refcount of new variable.
11195         Unshare the variables if needed.
11196         (delete_variable_part): Unshare the variables if needed.
11197         (emit_notes_for_differences_1): Init the refcount of new variable.
11198         (vt_add_function_parameters): Do not add function parameters to
11199         IN set of ENTRY_BLOCK_PTR because it is unused anyway.
11200         (vt_initialize): Do not add frame_base_decl to IN set of
11201         ENTRY_BLOCK_PTR because it is unused anyway.
11202
11203 2004-03-11  Josef Zlomek  <zlomekj@suse.cz>
11204
11205         * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
11206         (vars_copy): Likewise.
11207         (variable_union): Likewise.
11208         (set_variable_part): Likewise.
11209         (delete_variable_part): Likewise.
11210
11211 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
11212
11213         * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
11214         ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
11215         config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
11216         config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
11217         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
11218         config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
11219         config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
11220         config/pdp11/pdp11.h, config/rs6000/rs6000.c,
11221         config/stormy16/stormy16.c: Fix comment typos and formatting.
11222
11223 2004-03-11  Nathanael Nerode  <neroden@gcc.gnu.org>
11224
11225         * configure: Regenerate, since I forgot to while committing Paolo's
11226         changes.
11227
11228 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
11229
11230         PR ada/14131
11231         Move language detection to the top level.
11232         * configure.ac: Remove code to detect languages,
11233         it now lives exclusively in the top level.
11234         * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
11235         top level, renamed to ACX_PROG_GNAT.
11236
11237 2004-03-10  Richard Henderson  <rth@redhat.com>
11238
11239         * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
11240         extra arguments.
11241         * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
11242         and host_xmake_file fragments.
11243         * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
11244         (gt_pch_restore): Similarly for gt_pch_use_address.
11245         (default_gt_pch_get_address): New.
11246         (mmap_gt_pch_get_address): Split out of gt_pch_save.
11247         (default_gt_pch_use_address): Split out of gt_pch_restore.
11248         (mmap_gt_pch_use_address): Likewise.
11249         * hooks.c (hook_voidp_size_t_null): Remove.
11250         (hook_bool_voidp_size_t_false): Remove.
11251         * hooks.h: Likewise.
11252         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
11253         default_ or mmap_ definitions.
11254         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
11255         * hosthooks.h (struct host_hooks): Update gt_pch_get_address
11256         and gt_pch_use_address.
11257         * config/host-linux.c, config/host-solaris.c: New files.
11258         * config/x-linux, config/x-solaris: New files.
11259         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
11260         Update for changed definition.
11261         (darwin_rs6000_gt_pch_use_address): Likewise.
11262         * doc/hostconfig.texi: Update docs.
11263
11264 2004-03-10  Richard Henderson  <rth@redhat.com>
11265
11266         PR c/14517
11267         * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
11268         except for pedantic c90 mode.
11269
11270 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
11271
11272         * configure.ac: Bump AC_PREREQ to 2.59.
11273         * configure: Regenerate.
11274
11275 2004-03-10  Uros Bizjak  <uros@kss-loka.si>
11276
11277         * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
11278         (exp10_optab, exp2_optab): Define corresponding macros.
11279         * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
11280         * genopinit.c (optabs): Implement exp10_optab and exp2_optab
11281         using exp10?f2 and exp2?f2 patterns.
11282         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
11283         using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
11284         (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
11285         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
11286
11287         * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
11288         exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
11289         exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
11290
11291 2004-03-10  Anthony Green  <green@redhat.com>
11292
11293         * doc/invoke.texi (ARM Options): Fix -mpfu typo.
11294
11295 2004-03-10  David Edelsohn  <edelsohn@gnu.org>
11296
11297         * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
11298         (TARGET_OS_AIX_CPP_BUILTINS): this.  Conditionally define
11299         __LONGDOUBLE128.
11300         * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
11301         TARGET_OS_AIX_CPP_BUILTINS.
11302         * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
11303         * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
11304         * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
11305         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
11306         previous change.
11307
11308 2004-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11309
11310         * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
11311
11312 2004-03-10  David Edelsohn  <edelsohn@gnu.org>
11313
11314         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
11315         __LONGDOUBLE128 on AIX.
11316
11317 2004-03-10  Andrew Haley  <aph@redhat.com>
11318
11319         PR optimization/14381
11320         * function.c (expand_function_end): Emit a blockage insn before
11321         the epilogue when -fnon-call-exceptions is used.
11322
11323         * except.c (expand_start_all_catch): Make comment more accurate.
11324
11325 2004-03-08  Joel Sherrill  <joel@oarcorp.com>
11326
11327         PR target/14480
11328         * config/rs6000/t-rtems: Add missing file on branch.
11329
11330 2004-03-10  Ulrich Weigand  <uweigand@de.ibm.com>
11331
11332         * dbxout.c (dbxout_symbol_location): Do not output references
11333         to optimized-out constant pool symbols.
11334
11335 2004-03-10  Andreas Schwab  <schwab@suse.de>
11336
11337         * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
11338         twon34_r.
11339
11340 2004-03-09  James E Wilson  <wilson@specifixinc.com>
11341
11342         * alias.c (alias_sets_might_conflict_p): New.
11343         * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
11344         * common.opt (Wstrict-aliasing=): New.
11345         * flags.h (warn_strict_aliasing): Change type to int.
11346         * opts.c (warn_strict_aliasing): Change type to int.
11347         (common_handle_option): Handle OPT_Wstrict_aliasing_.
11348         * tree.h (alias_sets_might_conflict_p): Declare it.
11349         * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
11350
11351 2004-03-10  Roman Zippel  <zippel@linux-m68k.org>
11352
11353         PR bootstrap/12371
11354         * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
11355         (CALL_USED_REGISTERS): Likewise.
11356         (REG_CLASS_CONTENTS): Likewise.
11357         (REG_ALLOC_ORDER): New.
11358         (REGNO_REG_CLASS): Use regno_reg_class.
11359         * config/m68k/m68k.c: Add regno_reg_class array.
11360
11361 2004-03-09  Steve Ellcey  <sje@cup.hp.com>
11362
11363         * config/ia64/ia64.md (divsi3): Fix algorithm.
11364           (udivsi3): Ditto.
11365           (setf_exp_xf): Remove '*' from name.
11366         * testsuite/gcc.dg/20040309-1.c: New test.
11367
11368 2004-03-09  Ian Lance Taylor  <ian@wasabisystems.com>
11369
11370         * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
11371         * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
11372         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
11373         * config/sparc/sparc.c (sparc_aout_select_section): Remove.
11374         (sparc_aout_select_rtx_section): Don't check
11375         SUNOS4_SHARED_LIBRARIES.
11376         * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
11377
11378 2004-03-10  Hans-Peter Nilsson  <hp@axis.com>
11379
11380         PR other/14474
11381         * doc/md.texi (Pattern Ordering, Dependent Patterns)
11382         (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
11383         INTERNALS".
11384
11385 2004-03-09  Zack Weinberg  <zack@codesourcery.com>
11386
11387         * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
11388         (LIBGCC_SPEC): Update to match.
11389
11390 2004-03-09  Zack Weinberg  <zack@codesourcery.com>
11391
11392         * c-decl.c (last_function_parms, last_function_parm_tags)
11393         (last_function_parm_others, current_function_parms)
11394         (current_function_parm_tags, current_function_parm_others):
11395         Delete.
11396         (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
11397         New macros.
11398         (grokdeclarator): For function definitions, save the arg-info
11399         block from the declarator in DECL_ARGUMENTS.
11400         (grokparms): Do not write to last_function_parm*.  Use ARG_INFO_*
11401         macros to operate on arg-info block.  Can assume ARG_INFO_PARMS
11402         contains only PARM_DECLs.  Improve diagnostics.
11403         (get_parm_info): Use ARG_INFO_* macros.  Improve comments and
11404         diagnostics.  Disable some expensive checks if not ENABLE_CHECKING.
11405         (store_parm_decls_newstyle): Take the function to operate on,
11406         and an arg-info block, as arguments; don't get anything from
11407         current_function_* globals.
11408         (store_parm_decls_oldstyle): Likewise.
11409         (store_parm_decls): Pass fndecl and its arg-info block down to
11410         store_parm_decls_newstyle/oldstyle.  Send functions with empty
11411         argument lists through store_parm_decls_newstyle to reduce
11412         overhead.
11413         (pushdecl): Comment on the problems with the call to copy_node.
11414         Clear DECL_ARGUMENTS of the old node after copying it, if it
11415         is an arg-info block instead of a chain of decls.
11416         (start_function): Do not manipulate current_function_parm* or
11417         last_function_parm*.
11418
11419 2004-03-09  Roger Sayle  <roger@eyesopen.com>
11420             Andrew Pinski  <pinskia@physics.uc.edu>
11421
11422         * ifcvt.c (noce_try_sign_mask): New function to transform
11423         "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
11424         (noce_process_if_block): Call noce_try_sign_mask.
11425
11426 2004-03-09  Andrew Pinski  <apinski@apple.com>
11427
11428         * c-typeck.c (tagged_types_tu_compatible_p):
11429         Fix typo.
11430
11431 2004-03-09  Roger Sayle  <roger@eyesopen.com>
11432
11433         * simplify-rtx.c (simplify_const_relational_operation): New function
11434         renamed from simplify_relational_operation.
11435         (simplify_relational_operation): Change prototype to accept an
11436         additional mode argument.  Call simplify_const_relational_operation.
11437         (simplify_gen_relational): Update simplify_relational_operation call.
11438         (simplify_ternary_operation): Update simplify_relational_operation
11439         subroutine call to use simplify_const_relational_operation instead.
11440
11441         * rtl.h (simplify_const_relational_operation): Prototype here.
11442         (simplify_relational_operation): Add addtional mode argument.
11443
11444         * combine.c (combine_simplify_rtx): Update calls to
11445         simplify_relational_operation.
11446         (simplify_set): Likewise.
11447         (gen_binary): Likewise.
11448         * cse.c (fold_rtx): Likewise.
11449         * dojump.c (compare_from_rtx): Likewise.
11450         (do_compare_rtx_and_jump): Likewise.
11451         * integrate.c (subst_constants): Likewise.
11452         * unroll.c (simplify_cmp_and_jump_insns): Likewise.
11453
11454 2004-03-09  Kazu Hirata  <kazu@cs.umass.edu>
11455
11456         * config/m32r/m32r.md: Remove all define_peephole's.
11457
11458 2004-03-09  Alan Modra  <amodra@bigpond.net.au>
11459
11460         * config/rs6000/rs6000.md: Remove trailing whitespace.
11461
11462 2004-03-08  Eric Christopher  <echristo@redhat.com>
11463
11464         * Makefile.in (site.exp): Add libiconv variable definition.
11465
11466 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
11467
11468         * configure: Regenerate for config/accross.m4 correction.
11469
11470 2004-03-08  Joel Sherrill  <joel@oarcorp.com>
11471
11472         PR target/14480
11473         * config/rs6000/t-rtems: Add missing file on branch.
11474
11475 2004-03-08  Roger Sayle  <roger@eyesopen.com>
11476
11477         PR middle-end/14289
11478         * c-typeck.c (c_mark_addressable): A register variable should
11479         be considered global if its not automatic, i.e. TREE_PUBLIC,
11480         TREE_STATIC or DECL_EXTERNAL.
11481         * function.c (put_var_into_stack): Call abort when placing a
11482         hard register into the stack, if x_parm_reg_stack_loc is NULL.
11483
11484 2004-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
11485
11486         * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
11487         ("*extendqisi2_short_displ"): Likewise.
11488
11489 2004-03-08  Kazu Hirata  <kazu@cs.umass.edu>
11490
11491         * config/pdp11/pdp11.c (comparison_operator_index): Remove.
11492         (comp_operator): Likewise.
11493         * config/pdp11/pdp11-protos.h: Remove corresponding
11494         prototypes.
11495
11496 2004-03-08  Eric Botcazou  <ebotcazou@act-europe.fr>
11497
11498         * expr.c (highest_pow2_factor_for_type): Rename into
11499         highest_pow2_factor_for_target.  Use DECL_ALIGN instead of
11500         TYPE_ALIGN when the target is a COMPONENT_REF.
11501         (expand_assignment): Ajust call to highest_pow2_factor_for_type.
11502
11503 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
11504
11505         * config/rs6000/rs6000.c: Formatting fix.
11506         (legitimate_offset_address_p): Correct offset range check.
11507
11508         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
11509         -msoft-float by -mcpu.  Consolidate similar code for MASK_MULTIPLE
11510         and MASK_STRING.
11511
11512 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
11513
11514         * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
11515         for little endian.
11516         ("ashrdi3_no_power"): Disable for little endian.
11517         (ashrdi3): Same.
11518
11519 2004-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11520
11521         * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
11522         builtins.
11523
11524 2004-03-08  Hans-Peter Nilsson  <hp@axis.com>
11525
11526         PR target/14471
11527         * configure.ac (Target-specific assembler checks) <cris-*-*>: New
11528         case, checking for -no-mul-bug-abort option.
11529         * configure, config.in: Regenerate.
11530         * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
11531         and -mno-mul-bug-workaround.
11532         * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
11533         ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
11534         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
11535         Ditto.  Make attribute "slottable" dependent on TARGET_MUL_BUG.
11536         * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
11537         sure mulu.d is not last on cache-line.
11538         * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
11539         into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
11540         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
11541         (TARGET_SWITCHES): New options -mmul-bug-workaround and
11542         -mno-mul-bug-workaround.
11543         (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
11544         (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
11545         * config/cris/cris.c (cris_operand_extend_operator): Clarify
11546         relation to MULT in head comment.
11547         (cris_op_str): Abort for MULT.
11548         (cris_print_operand) <case '!'>: New case.
11549
11550 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
11551
11552         PR debug/11983
11553         * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
11554         dw_val_class_vec.  Replace use throughout file.
11555         (dw_float_const): Delete.
11556         (dw_vec_const): New.
11557         (dw_val_struct_union): Rename val_float to val_vec.  Replace use
11558         throughout file.
11559         (add_AT_vec): Rename from add_AT_float.  Add elt_size param.
11560         (same_dw_val_p): Adjust vec comparison.  Use memcmp.
11561         (size_of_die): Adjust dw_val_class_vec sizing.
11562         (output_die): Output dw_val_class_vec.
11563         (insert_int, extract_int, insert_float): New functions.
11564         (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
11565         Handle CONST_VECTOR.
11566         (add_location_or_const_value_attribute): Handle CONST_VECTOR.
11567
11568 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
11569
11570         * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
11571         AltiVec abi cannot co-exist.
11572
11573         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
11574
11575 2004-03-07  Jan Hubicka  <jh@suse.cz>
11576
11577         * except.c (emit_to_new_bb_before):  Break fallthru edges.
11578
11579 2004-03-07  Stephane Carrez  <stcarrez@nerim.fr>
11580
11581         * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
11582         ("*lshrsi3"): Also accept an immediate for 68HC12.
11583         ("*ashrsi3_const"): Likewise.
11584         ("*ashrsi3"): Likewise.
11585         ("*ashlsi3_const"): Likewise.
11586         ("*ashlsi3"): Likewise.
11587         ("cmphi_1_hc12"): Compare two hard register by pushing them and
11588         comparing with a pop; don't use a split for that.
11589         ("cmphi split"): Disable compare split for 68HC12.
11590
11591         * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
11592         the status operands if they have side effects.
11593
11594 2004-03-07  Kazu Hirata  <kazu@cs.umass.edu>
11595
11596         * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
11597         definition.
11598         * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
11599         config/h8300/h8300.h, config/ia64/ia64.h,
11600         config/mcore/mcore.h, config/mmix/mmix.h,
11601         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
11602         config/stormy16/stormy16.h, config/v850/v850.h,
11603         config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
11604         * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
11605         definition.
11606
11607 2004-03-07  Roger Sayle  <roger@eyesopen.com>
11608
11609         * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
11610         <XOR_EXPR>: Fold x ^ x as zero.
11611         <AND_EXPR>: Fold x & x as x.
11612
11613 2004-03-07  Roger Sayle  <roger@eyesopen.com>
11614
11615         * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
11616         "foo++ == const" into "++foo == const+incr".
11617
11618 2004-03-07  Richard Sandiford  <rsandifo@redhat.com>
11619
11620         * config/mips/mips.c (mips_in_small_data_p): Return false if
11621         TARGET_ABICALLS.
11622
11623 2004-03-06  Stephane Carrez  <stcarrez@nerim.fr>
11624
11625         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
11626         the stack register.
11627         (expand_prologue): Don't make an interrupt or a trap handler a far
11628         symbol.
11629         (m68hc11_initial_elimination_offset): Likewise.
11630
11631 2004-03-06  Richard Henderson  <rth@redhat.com>
11632
11633         * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
11634
11635 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
11636
11637         * config/ns32k/ns32k-protos.h: Add a prototype for
11638         ns32k_notice_update_cc.
11639         * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
11640         * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
11641         ns32k_notice_update_cc.
11642
11643 2004-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
11644
11645         * config/s390/s390.md ("load_multiple", "*load_multiple_di",
11646         "*load_multiple_si"): Allow only if reload_completed.
11647         ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
11648         Likewise.
11649
11650 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
11651
11652         * config/vax/vax-protos.h: Add a prototype for
11653         vax_notice_update_cc.
11654         * config/vax/vax.c (vax_notice_update_cc): New.
11655         * config/vax/vax.h (NOTICE_UPDATE_CC): Call
11656         vax_notice_update_cc.
11657
11658 2004-03-06  David Edelsohn  <edelsohn@gnu.org>
11659
11660         * collect2.c (main): Only export initfunc and finifunc if
11661         LD_INIT_SWITCH not defined.
11662         (scan_prog_file): Only export constructors and destructors if
11663         LD_INIT_SWITCH not defined.  Only export symbols not found in
11664         shared objects.
11665
11666 2004-03-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11667
11668         * pa.md (icacheflush): Reorder operands to make match_scratch operand
11669         last.
11670         * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
11671         from calls to gen_icacheflush.
11672
11673 2004-03-06  Richard Henderson  <rth@redhat.com>
11674
11675         * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
11676         (TARGET_LONG_DOUBLE_128): New.
11677         (TARGET_SWITCHES): Add long-double-{128,64}.
11678         (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
11679         (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
11680         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
11681         (WIDEST_HARDWARE_FP_SIZE): New.
11682         (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
11683         * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
11684         if TARGET_VAX_FLOAT.
11685         * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
11686         (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
11687
11688 2004-03-06  Richard Henderson  <rth@redhat.com>
11689
11690         * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
11691         botched rtx class conversion.
11692
11693 2004-03-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11694
11695         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
11696         BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
11697
11698         * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
11699         macros.
11700         * fold-const.c (fold_mathfn_compare, fold): Likewise.
11701
11702 2004-03-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
11703
11704         PR target/14343
11705         * config/i386/i386.md (movv2di_internal): Conditionalize on
11706         TARGET_SSE, not TARGET_SSE2.
11707
11708 2004-03-05  Chris Demetriou  <cgd@broadcom.com>
11709
11710         * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
11711         duplicated line.
11712
11713 2004-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11714
11715         * builtins.c: Consistently use logN not log* in comments.
11716
11717 2004-03-05  Andreas Krebbel  <krebbel1@de.ibm.com>
11718
11719         * rtl.h (mem_expr_equal_p): Function prototype added.
11720         * cfgcleanup.c (merge_memattrs): New function.
11721         (flow_find_cross_jump): Call merge_memattrs for matching insns.
11722         * emit-rtl.c (mem_expr_equal_p): New function.
11723
11724 2004-03-05  Ziemowit Laski  <zlaski@apple.com>
11725
11726         * objc/objc-act.c (synth_module_prologue): Const-qualify
11727         objc_selector type if using the GNU runtime; fix generated
11728         signatures for objc_msg_lookup and objc_msg_lookup_super
11729         to match what GNU ObjC headers provide; reformat and clean up.
11730         (synth_self_and_ucmd_args): Use previously constructed (and
11731         hence possibly const-qualified) objc_selector type.
11732
11733 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
11734
11735         * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
11736
11737 2004-03-05  Jason Merrill  <jason@redhat.com>
11738
11739         * tree.h (TYPE_HASH): Use TYPE_UID.
11740         (TREE_HASH): New macro with old definition of TYPE_HASH.
11741         * tree.c (build_type_attribute_variant): Use iterative_hash_object.
11742         (build_array_type, build_function_type): Likewise.
11743         (build_method_type_directly): Likewise.
11744         (build_offset_type, build_complex_type): Likewise.
11745         (type_hash_list, attribute_hash_list): Likewise. Now static.
11746         * except.c: s/TYPE_HASH/TREE_HASH/.
11747
11748 2004-03-05  Bob Wilson  <bob.wilson@acm.org>
11749
11750         * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
11751         (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32).  Adjust
11752         __va_ndx by 2 words when referencing an argument on the stack.
11753         (xtensa_va_arg): Handle 16-byte aligned args.  Adjust __va_ndx by 2
11754         words when an arg on the stack is first seen.
11755
11756 2004-03-05  Paul Brook  <paul@codesourcery.com>
11757
11758         * arm.h (ARM_FLAG_VFP): Remove.
11759         (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
11760         * netbsd-elf.h (ARM_FLAG_VFP): Remove.
11761
11762 2004-03-05  Paul Brook  <paul@codesourcery.com>
11763
11764         * function.c (assign_parms): Include pretend alignment offset.
11765
11766 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11767
11768         * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
11769         FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
11770
11771 2004-03-05  Ian Lance Taylor  <ian@wasabisystems.com>
11772
11773         * configure.ac: When passing --enable-languages to subdir
11774         configure when host != build, make sure we don't pass an empty
11775         value.
11776         * configure: Regenerate.
11777
11778 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
11779
11780         PR 13577
11781         * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
11782         options.
11783
11784 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
11785
11786         * simplify-rtx.c (simplify_relational_operation): If
11787         flag_wrapv is set, do not move terms between the two
11788         side of a relational operator.
11789
11790 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
11791
11792         * rtlanal.c: Include target.h and output.h
11793         (rtx_cost, address_cost, default_address_cost): Move from...
11794         * cse.c (rtx_cost, address_cost, default_address_cost):
11795         ... this file.
11796         * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
11797         * Makefile.in: Adjust dependencies.
11798
11799 2004-03-05  Paolo Bonzini <bonzini@gnu.org>
11800
11801         * cse.c (cse_end_of_basic_block): Make static.
11802         * local-alloc.c (function_invariant_p): Move to
11803         reload1.c.
11804         * loop.c (libcall_other_reg, record_excess_regs):
11805         Make static.
11806         * reload1.c (function_invariant_p): Moved here
11807         from local-alloc.c, made static.
11808         * rtl.h (cse_end_of_basic_block, function_invariant_p,
11809         libcall_other_reg, record_excess_regs): Remove
11810         declarations.
11811
11812 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
11813
11814         * config/m32r/m32r.c (signed_comparison_operator): Add a
11815         missing parenthesis.
11816
11817 2004-03-04  Ian Lance Taylor  <ian@wasabisystems.com>
11818
11819         * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
11820         going to call mmap again.  Read the file into the right place.
11821         Give a fatal error if we have to relocate.
11822
11823 2004-03-04  Bob Wilson  <bob.wilson@acm.org>
11824
11825         * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
11826         (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
11827
11828 2004-03-05  Hans-Peter Nilsson  <hp@axis.com>
11829
11830         PR other/14354
11831         * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
11832         round the same.  When rounding, clear bits that would cause a
11833         second rounding in pack_d.
11834         (_fpmul_parts): Ditto.  Remove #if 0:d code.
11835
11836 2004-03-04  Ziemowit Laski  <zlaski@apple.com>
11837
11838         PR c++/14425, c++/14426
11839         * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
11840         vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
11841         Change C++ definitions to accept a 'const int' argument;
11842         the prototypes already do.
11843         * config/rs6000/rs6000.c (rs6000_common_init_builtins):
11844         Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
11845         v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
11846         v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
11847         v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
11848         v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
11849         end in ..._int; change them to accept an int instead of a char
11850         as the last parameter.
11851
11852 2004-03-04  Phil Edwards  <phil@codesourcery.com>
11853
11854         * genmultilib:  Change '=' to '-' when translating option names
11855         to directory names.
11856
11857 2004-03-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11858
11859         * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
11860         stack slot for temp used for result of BLKmode but in integral mode.
11861
11862 2004-03-04  Jan Hubicka  <jh@suse.cz>
11863
11864         * reload.c (find_reloads): Reorganize if seqeunce to switch.
11865
11866         * cfgrtl.c (rtl_redirect_edge_and_branch):  Set the source BB as dirty.
11867         (cfglayout_redirect_edge_and_branch):  Set the source BB as dirty.
11868
11869 2004-03-04  Steve Ellcey  <sje@cup.hp.com>
11870
11871         * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
11872         * testsuite/gcc.dg/20040303-1.c: New test.
11873
11874 2004-03-04  Steven Bosscher  <stevenb@suse.de>
11875
11876         * ppro.md: Rewrite as a DFA pipeline description.
11877         * i386.md: Remove all uses of the ppro_uops attribute.
11878         * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
11879         ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
11880         ix86_sched_reorder, ix86_variable_issue,
11881         struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
11882         TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
11883         (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
11884         (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
11885         * athlon.md (athlon_ssecmp_load): Fix comment
11886
11887 2004-03-04  Stuart Hastings  <stuart@apple.com>
11888
11889         * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
11890
11891 2004-03-04  Stuart Hastings  <stuart@apple.com>
11892
11893         * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
11894         686, tell Darwin assembler to allow prefetch insns, non-empty def
11895         of SUBTARGET_OPTION_TRANSLATE_TABLE.
11896
11897 2004-03-04  DJ Delorie  <dj@redhat.com>
11898
11899         PR optimization/14282
11900         * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
11901         between a call and the assignment of its return value.
11902
11903 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
11904
11905         * config/h8300/h8300.c: Put a comment for every function.
11906
11907 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
11908
11909         * config/h8300/h8300.md: Add comments about peephole2's.
11910
11911 2004-03-04  Steven Bosscher  <stevenb@suse.de>
11912
11913         * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
11914
11915 2004-03-04  Jan Hubicka  <jh@suse.cz>
11916
11917         * cfgcleanup.c (thread_jump): Update call of cselib_init.
11918         * cselib.c (cselib_record_memory): New static variable.
11919         (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
11920         Give up on memories when asked for.
11921         (cselib_init): Accept new argument.
11922         * cselib.h (cselib_init): Update prototype.
11923         * gcse.c (local_cprop_pass): Update call of cselib_init.
11924         * loop.c (load_mems): Update call of cselib_init.
11925         * postreload.c (reload_cse_regs_1): Update call of cselib_init.
11926         * sched-deps.c (sched_analyze): Update call of cselib_init.
11927
11928 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
11929             GP <gp@qnx.com>
11930
11931         * config/rs6000/rs6000.c (output_function_profiler): Append @plt
11932         when compiling PIC.
11933
11934 2004-03-04  Josef Zlomek  <zlomekj@suse.cz>
11935
11936         PR/14362
11937         * var-tracking.c (track_expr_p): Do not track variables which
11938         should be ignored for debugging purposes.
11939
11940 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
11941
11942         * real.c (encode_ibm_extended): Don't bother rounding low double.
11943         * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
11944         when fmt->pnan < fmt->p.
11945
11946 2004-03-04  Eric Christopher  <echristo@redhat.com>
11947
11948         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
11949         only range of valid arg registers and fixed_regs.
11950
11951 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
11952
11953         PR target/14406
11954         * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
11955         (abstf2, abstf2_internal): New define_expand.
11956
11957 2004-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
11958
11959         PR optimization/14235
11960         * expr.c (convert_move): Copy the source to a new pseudo
11961         when converting from a sub-word source to a larger-than-word
11962         register which conflicts with the source.
11963
11964 2004-03-03  Zack Weinberg  <zack@codesourcery.com>
11965
11966         PR 13728
11967         * c-decl.c (diagnose_mismatched_decls): Issue an error for two
11968         parameters with the same name, unless one is a forward decl.
11969         Do not issue a redundant-redeclaration warning for forward
11970         decls of parameters.
11971
11972 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
11973
11974         * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
11975         configuration.
11976
11977 2004-03-03  Ian Lance Taylor  <ian@wasabisystems.com>
11978
11979         * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
11980
11981 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
11982
11983         * target-def.h (TARGET_OPTF): Delete.
11984         * c-opts.c (TARGET_OPTF): Define.
11985
11986 2004-03-04  Jan Hubicka  <jh@suse.cz>
11987
11988         * cselib.c (cselib_finish): Fix another miss-application of my previous
11989         patch.
11990
11991 2004-03-03  Mike Stump  <mrs@apple.com>
11992
11993         Add framework support for darwin.
11994
11995         * c-incpath.c: Include target.h and machmode.h.
11996         (add_path): Use a consistent style for cpp_dir.  Initialize
11997         p->construct to 0.
11998         (add_cpp_dir_path): New.
11999         (register_include_chains): Add use of extra_includes callback.
12000         (hook_void_int): Add.
12001         (target_c_incpath): Add.
12002         * c-incpath.h (add_cpp_dir_path): New.
12003         (target_c_incpath_s): Add.
12004         (target_c_incpath): Add.
12005         (C_INCPATH_INIT): Add.
12006         * c-opts.c (c_common_missing_argument,
12007         c_common_handle_option): Add -F argument processing.
12008         * c.opt: Add -F argument processing.
12009         * gcc.c (trad_capable_cpp): Add -F argument processing.
12010         * cppfiles.c (find_file_in_dir): Update to use construct
12011         callback.
12012         (search_path_exhausted, cpp_get_path, cpp_get_buffer,
12013         cpp_get_prev): New.
12014         (_cpp_find_file): Use search_path_exhausted.
12015         (make_cpp_dir): Initialize construct to 0.
12016         * cpplib.h (missing_header_cb
12017         cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
12018         (cpp_callbacks): Add missing_header
12019         (cpp_dir): Add construct.
12020         * target-def.h: (TARGET_OPTF): New.
12021         * hooks.c (hook_void_int, hook_void_charptr): Add.
12022         * hooks.h (hook_void_int, hook_void_charptr): Add.
12023         * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
12024         $(MACHMODE_H) dependencies.
12025         * doc/invoke.texi (Darwin Options): Document -F.
12026         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
12027         (TARGET_OPTF): Add.
12028         * fix-header.c (target_c_incpath): Add.
12029
12030         * config/darwin-c.c: Add c-incpath.h include.
12031         (using_frameworks, find_subframework_file,
12032         find_subframework_header, add_system_framework_path,
12033         frameworks_in_use, num_frameworks, max_frameworks,
12034         add_framework, find_framework, struct framework_header,
12035         framework_header_dirs, framework_construct_pathname,
12036         find_subframework_file, add_system_framework_path,
12037         add_framework_path, framework_defaults,
12038         darwin_register_frameworks, find_subframework_header): Add.
12039         * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
12040         (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
12041         (CPP_SPEC): Add __APPLE_CC__ support.
12042         * t-darwin (darwin-c.o): Add c-incpath.h dependency.
12043
12044 2004-03-04  Jan Hubicka  <jh@suse.cz>
12045
12046         * cselib.c (cselib_finish): Fix miss-application of my previous
12047         patch.
12048
12049 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
12050
12051         * hooks.c (hook_tree_tree_identity): New.
12052         * hooks.h: Add a prototype for hook_tree_tree_identity.
12053         * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
12054         instead of MD_ASM_CLOBBERS.
12055         * system.h (MD_ASM_CLOBBERS): Poison.
12056         * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
12057         (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
12058         * target.h (gcc_target): Add md_asm_clobbers.
12059         * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
12060         (ix86_md_asm_clobbers): New.
12061         * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
12062         * doc/tm.texi (MD_ASM_CLOBBERS): Change to
12063         TARGET_MD_ASM_CLOBBERS.
12064
12065 2004-03-03  Stuart Hastings  <stuart@apple.com>
12066
12067         * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
12068
12069 2004-03-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
12070
12071         * config/sparc/sparc.c (noov_compare64_op): Fix typo.
12072
12073         * config/sparc/sparc.h (ASM_FLOAT): Delete.
12074         (ASM_DOUBLE): Likewise.
12075         (ASM_LONGDOUBLE): Likewise.
12076         * config/sparc/pbd.h (ASM_INT_OP): Delete.
12077
12078 2004-03-03  Richard Henderson  <rth@redhat.com>
12079
12080         PR opt/13862
12081         * cselib.c (cselib_record_sets): Don't record multiple sets in
12082         asm insns.
12083
12084 2004-03-03  Mostafa Hagog  <mustafa@il.ibm.com>
12085
12086         * common.opt: Add description of the new -fgcse-after-reload flag.
12087
12088         * flags.h (flag_gcse_after_reload): Declaration of global variable.
12089
12090         * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
12091         reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
12092         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
12093         get_bb_avail_insn, hash_scan_set_after_reload,
12094         compute_hash_table_after_reload, eliminate_partially_redundant_loads,
12095         gcse_after_reload, get_bb_avail_insn): New functions to implement
12096         gcse-after-reload.
12097         (gcse_after_reload_main): New function, the main entry point to
12098         gcse-after-reload.
12099
12100         * rtl.h (gcse_after_reload_main): Declaration of the new function.
12101
12102         * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
12103
12104         * toplev.c (flag_gcse_after_reload): Initialization.
12105
12106         * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
12107
12108         * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
12109         PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
12110         the gcse after reload optimization.
12111
12112         * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
12113         GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
12114         parameters.
12115
12116         * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
12117
12118 2004-03-03  Nicolas Pitre <nico@cam.org>
12119
12120         * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
12121         small negative values.
12122
12123 2004-03-03  Jan Hubicka  <jh@suse.cz>
12124
12125         * cselib.c (hash_table):  Remove GTY marker.
12126         (reg_values): Turn into array.
12127         (used_regs): Likewise.
12128         (n_used_regs): New static variable.
12129         (reg_values_old): Kill.
12130         (clear_table): Update uses of arrays.
12131         (cselib_lookup): Likewise.
12132         (cselib_record_set): Likewise.
12133         (cselib_init): Likewise.
12134         (cselib_finish): Likewise.
12135         (cselib_udpate_varray_sizes): Kill.
12136         * cselib.h (cselib_update_varray_sizes): Kill.
12137
12138 2004-03-03  Paul Brook  <paul@codesourcery.com>
12139
12140         * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
12141
12142 2004-03-03  Jan Hubicka  <jh@suse.cz>
12143
12144         * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
12145         Rename from ...; make statistics transparent.
12146         (ggc_alloc_cleared, ggc_realloc_stat): ... these.
12147         (loc_descriptor): New structure.
12148         (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
12149         add_statistics):
12150         New static function.
12151         (ggc_record_overhead, dump_statistics): New global function.
12152         * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
12153         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
12154         from ...; accept locations
12155         (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
12156         ggc_realloc, ggc_alloc_typed):  ... this one.
12157         from ...; accept locations
12158         * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
12159         ggc_alloc_stat): Rename from ... ; pass locations
12160         * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
12161         ... this one.
12162         (ggc_alloc_stat): Record overehead.
12163         * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
12164         ggc_realloc, ggc_alloc_typed):  Turn to macros
12165         (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
12166         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
12167         (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
12168         * langhooks.h (lhd_make_node): Declare.
12169         (LANG_HOOKS_MAKE_TYPE): Default to new function,
12170         * langhooks.c (lhd_make_node): New.
12171         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
12172         locations.
12173         (rtx_alloc, swallow_copy_rtx): ... this one.
12174         * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
12175         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
12176         * toplpev.c (finalize): Dump stats.
12177         * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
12178         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
12179         Rename from ... ; pass locators.
12180         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
12181         build?,  build_decl): Declare.
12182         * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
12183         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
12184         Declare.
12185         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
12186         build?,  build_decl): New macros.
12187         * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
12188         * statistics.h: New file.
12189
12190 2004-03-03  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12191             Richard Sandiford  <rsandifo@redhat.com>
12192
12193         * config/mips/mips.h (MASK_FIX_SB1): Bump.
12194         (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
12195         (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
12196         * config/mips/mips.c (mips_output_division): Fill the branch delay
12197         slot with a nop if TARGET_FIX_R4000.  Extend R4000 workarounds to
12198         TARGET_FIX_R4400.
12199         (mips_output_division): Adjust accordingly.
12200         (override_options): Make -march=r4400 imply -mfix-r4400 by default.
12201         * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
12202
12203 2004-03-03  Paolo Bonzini  <bonzini@gnu.org>
12204
12205         * alias.c (rtx_equal_for_memref_p): Use predicates
12206         to test rtx classes and new rtx class codes, possibly
12207         splitting conditionals that tested against '<' and 'o'.
12208         * caller-save.c (save_call_clobbered_regs): Likewise.
12209         * combine.c (contains_muldiv, find_split_point, subst,
12210         combine_simplify_rtx, simplify_if_then_else,
12211         simplify_set, simplify_logical, expand_compound_operation,
12212         make_compound_operation, if_then_else_cond, known_cond,
12213         apply_distributive_law, cached_nonzero_bits,
12214         cached_num_sign_bit_copies, simplify_shift_const,
12215         gen_binary, simplify_comparison, update_table_tick,
12216         record_value_for_reg, get_lsat_value_validate): Likewise.
12217         * cse.c (mention_regs, find_best_addr, find_comparison_args,
12218         fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
12219         Likewise.
12220         * emit-rtl.c (copy_insn_1): Likewise.
12221         * expr.c (force_operand): Likewise.
12222         * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
12223         * flow.c (notice_stack_pointer_modification_1,
12224         invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
12225         and_reg_cond, elim_reg_cond): Likewise.
12226         * function.c (update_epilogue_consts): Likewise.
12227         * genattrtab.c (attr_rtx_1): Likewise.
12228         * genopinit.c (gen_insn): Likewise.
12229         * integrate.c (subst_constants): Likewise.
12230         * jump.c (reversed_comparison_code_parts,
12231         reversed_comparison_code, delete_related_insns,
12232         rtx_renumbered_equal_p): Likewise.
12233         * local-alloc.c (block_alloc): Likewise.
12234         * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
12235         canonicalize_condition): Likewise.
12236         * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
12237         Likewise.
12238         * optabs.c (add_equal_node, expand_binop): Likewise.
12239         * predict.c (estimate_probability): Likewise.
12240         * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
12241         * recog.c (validate_replace_rtx_1, comparison_operator,
12242         offsettable_address_p, constrain_operands): Likewise.
12243         * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
12244         Likewise.
12245         * regclass.c (scan_one_insn): Likewise.
12246         * regmove.c (stable_and_no_regs_but_for_p): Likewise.
12247         * regrename.c (kill_autoinc_value): Likewise.
12248         * reload.c (find_reusable_reload, find_reloads,
12249         reg_overlap_mentioned_for_reload_p): Likewise.
12250         * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
12251         * rtl.c (copy_rtx): Likewise.
12252         * rtl.h (CONSTANT_P, INSN_P): Likewise.
12253         * rtlanal.c (commutative_operand_precedence): Likewise.
12254         * sched-deps.c (conditions_mutex_p): Likewise.
12255         * sched-rgn.c (is_cfg_nonregular): Likewise.
12256         * simplify-rtx.c (simplify_gen_binary,
12257         simplify_gen_relational, simplify_replace_rtx,
12258         simplify_unary_operation, simplify_binary_operation,
12259         simplify_ternary_operation, simplify_rtx): Likewise.
12260         * unroll.c (reg_dead_after_loop): Likewise.
12261         * config/alpha/alpha.c (alpha_swapped_comparison_operator,
12262         print_operand): Likewise.
12263         * config/arc/arc.c (proper_comparison_operator): Likewise.
12264         * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
12265         Likewise.
12266         * config/avr/avr.c (_reg_unused_after): Likewise.
12267         * config/frv/frv.c (frv_ifcvt_modify_tests,
12268         frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
12269         * config/i386/i386.c (ix86_comparison_operator,
12270         ix86_carry_flag_operator, fcmov_comparison_operator,
12271         arith_or_logical_operator, print_operand,
12272         ix86_expand_binary_operator, ix86_binary_operator_ok):
12273         Likewise.
12274         * config/i386/i386.md: Likewise.
12275         * config/ia64/ia64.c (not_postinc_memory_operand,
12276         ia64_print_operand, update_set_flags, errata_emit_nops):
12277         Likewise.
12278         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
12279         CONSTRAINT_OK_FOR_S): Likewise.
12280         * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
12281         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
12282         ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
12283         ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
12284         Likewise.
12285         * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
12286         eqne_comparison_operator, signed_comparison_operator):
12287         Likewise.
12288         * config/mips/mips.c (cmp_op, symbolic_expression_p):
12289         Likewise.
12290         * config/mmix/mmix (mmix_foldable_comparison_operator,
12291         mmix_comparison_operator): Likewise.
12292         * config/pa/pa.c (hppa_legitimize_address): Likewise.
12293         * config/rs6000/rs6000.c (stmw_operation,
12294         branch_comparison_operator, trap_comparison_operator,
12295         ccr_bit): Likewise.
12296         * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
12297         * config/s390/s390.c (s390_alc_comparison,
12298         s390_slb_comparison):L Likewise.
12299         * config/sh/sh.c (gen_block_redirect, reg_unused_after):
12300         Likewise.
12301         * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
12302         noov_compare_op, noov_compare64_op, v9_regcmp_op,
12303         emit_hard_tfmode_operation, reg_unused_after)
12304         * doc/md.texi, doc/rtl.texi: Likewise.
12305
12306         * ra-debug.c: Add 2004 to list of copyright years.
12307         * unroll.c: Likewise.
12308
12309         * combine.c (simplify_logical): Remove dummy test,
12310         (apply_distributive_law): Fix typo in comment.
12311         GET_CODE (x) == AND so x is a commutative binary op.
12312         * jump.c (delete_related_insns): simplify loop
12313         condition, move testing of RTX codes inside the loop.
12314         (rtx_renumbered_equal_p): do not use RTX_CODE.
12315         * rtl.c (rtx_class): Declare as enum rtx_class.
12316         * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
12317         Move to RTX_COMM_COMPARE class.
12318         (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
12319         Move to RTX_CONST_OBJ class.
12320         * rtl.h (enum rtx_class): New declaration,
12321         (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
12322         RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
12323         RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
12324         RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
12325         RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
12326         ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
12327         SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
12328         OBJECT_P): New macros.
12329         * config/sparc/sparc.c (noov_compare_op): Remove register
12330         from parameter.
12331
12332 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
12333
12334         * target.h: Remove texi jargons in comments.
12335
12336 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
12337
12338         * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
12339         threshold to 0x4f.
12340
12341         Revert:
12342         2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
12343         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
12344         as well.
12345         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
12346         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
12347
12348 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
12349
12350         * doc/md.texi (cbranchmode4): New.
12351
12352 2004-03-02  Eric Christopher  <echristo@redhat.com>
12353
12354         * config/mips/mips16.S: Change fixsfsi and fixdfsi to
12355         fix_trunc.
12356         * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
12357         * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
12358         * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
12359         * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
12360
12361 2004-03-02  Richard Henderson  <rth@redhat.com>
12362
12363         PR middle-end/11767
12364         * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
12365         * optabs.c (prepare_cmp_insn): Force trapping memories to registers
12366         before the compare, if flag_non_call_exceptions.
12367
12368 2004-03-02  Richard Henderson  <rth@redhat.com>
12369
12370         PR middle-end/14327
12371         * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
12372         emitting the label, not after.
12373
12374 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
12375
12376         * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
12377         (m68hc11_mov_addr_mode): Likewise.
12378         (m68hc11_override_options): Initialize them based on target.
12379         (register_indirect_p): Allow a MEM for indirect addressing modes and
12380         use flags to control what is allowed.
12381         (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
12382         supported addressing modes.
12383         (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
12384         (go_if_legitimate_address_internal): Likewise.
12385         (m68hc11_indirect_p): Likewise and check the mode.
12386         (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
12387
12388 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
12389
12390         * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
12391         (expand_builtin_setjmp_setup): Use
12392         targetm.builtin_setjmp_frame_value instead of
12393         BUILTIN_SETJMP_FRAME_VALUE.
12394         * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
12395         * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
12396         (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
12397         * target.h (gcc_target): Add builtin_setjmp_frame_value.
12398         * targhooks.c (default_builtin_setjmp_frame_value): New.
12399         * targhooks.h: Add a prototype for
12400         default_builtin_setjmp_frame_value.
12401         * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
12402         TARGET_BUILTIN_SETJMP_FRAME_VALUE.
12403
12404 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
12405
12406         * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
12407         sequences of moves.
12408         (add peepholes): New peepholes to optimize sequences adding small
12409         constants.
12410         (bset peepholes): New peepholes to transform an OR in a bset form
12411         (bclr peepholes): Likewise for bclr form.
12412         (cmp peepholes): New peepholes to avoid register copies when comparing.
12413
12414 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
12415
12416         * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
12417         to separate push from moves.
12418         ("*pushdf_internal"): Likewise.
12419         ("*pushsf_internal"): Likewise.
12420         ("*pushsi_internal"): Likewise.
12421         ("movdi_internal"): Use define_insn_and_split; non push operand.
12422         ("movdf_internal"): Likewise.
12423         ("movsf_internal"): Likewise.
12424         ("movsi_internal"): Likewise.
12425         ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
12426         ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
12427         ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
12428
12429 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
12430
12431         * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
12432         ("cmphi_z_used", "cmpqi_z_used"): Likewise.
12433         ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
12434         ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
12435         ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
12436         ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
12437         ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
12438         ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
12439         ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
12440         ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
12441         ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
12442
12443 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
12444
12445         * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
12446         (SOFT_XY_REGNUM): Define.
12447         (cmp split): Use the above instead of hard coded numbers.
12448         (8-bit op split): No need to check the mode; allow Q_REG.
12449         (ashift split): Adjust the first operand if it uses the SP and we
12450         are pushing the shifted value.
12451         (plus shift split): Fix when a source is in register D+X.
12452         ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
12453
12454 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
12455
12456         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
12457         comparing with Z register.
12458
12459 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12460
12461         * cfgloop.h (struct loop_desc): Removed.
12462         (struct loop): Fields simple, desc and has_desc removed.
12463         (simple_loop_p, count_loop_iterations): Declaration removed.
12464         * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
12465         (unmark_altered, blocks_invariant_registers, unmark_altered_insn
12466         blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
12467         invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
12468         simple_loop_exit_p, variable_initial_value, variable_initial_values,
12469         simple_condition_p, simple_increment, count_strange_loop_iterations,
12470         inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
12471         Removed.
12472         * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
12473
12474 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
12475
12476         * genattrtab.c: Don't handle MATCH_INSN.
12477         * genrecog.c: Likewise.
12478         * gensupport.c: Likewise.
12479         * rtl.def (match_insn): Remove.
12480         * doc/md.texi (match_insn, match_insn2): Remove.
12481
12482 2004-03-02  Mark Mitchell  <mark@codesourcery.com>
12483
12484         * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
12485         macro results in memory allocation.
12486
12487 2004-03-02  David O'Brien  <obrien@FreeBSD.org>
12488
12489         * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
12490         * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
12491         %(fbsd_dynamic_linker),
12492         (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
12493         config/i386/freebsd.h
12494         * config/arm/freebsd.h: Ditto.
12495         * config/i386/freebsd.h: Ditto.
12496         * config/i386/freebsd64.h: Ditto.
12497         * config/ia64/freebsd.h: Ditto.
12498         * config/rs6000/sysv4.h: Ditto.
12499         * config/sparc/freebsd.h: Ditto.
12500
12501 2004-03-02  Loren James Rittle  <ljrittle@acm.org>
12502
12503         * gcc/doc/install.texi (*-*-freebsd*): Update target information.
12504
12505 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
12506
12507         * rtl.def (define_combine): Remove.
12508
12509 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
12510
12511         * config/h8300/h8300.md: Tweak formatting.
12512
12513 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
12514
12515         * config/h8300/h8300.md (*cmphi_h8300): Rename to
12516         *cmphi_h8300_znvc.
12517         (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
12518
12519 2004-03-01  Mark Mitchell  <mark@codesourcery.com>
12520
12521         PR bootstrap/14356
12522         * gcc.c (process_command): Remove const-qualification from argv.
12523         (main): Likewise.
12524
12525 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
12526
12527         * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
12528         pushqi1_h8300hs_advanced.  Adjust its caller.
12529         (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
12530         Adjust its caller.
12531
12532 2004-03-02  Nicolas Roche  <roche@act-europe.fr>
12533
12534         * Makefile.in (install-libgcc, install-multilib): Pass
12535         mkinstalldirs var to libgcc.mk.
12536
12537 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
12538
12539         * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
12540         * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
12541
12542 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
12543
12544         * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
12545         * config/h8300/h8300.md: Split several peephole2's, each into
12546         two.
12547
12548 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12549
12550         * dominance.c (recount_dominator): Handle postdominators.
12551
12552 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
12553
12554         * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
12555         (NUM_SYMBOL_TYPES): Likewise.
12556         (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
12557         (mips_unspec_address): Declare.
12558         (mips_gotoff_page, mips_gotoff_global): Delete.
12559         * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
12560         * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
12561         (mips_symbolic_constant_p, mips_symbolic_address_p)
12562         (mips_symbol_insns): Handle new symbol types.
12563         (general_symbolic_operand): New predicate.
12564         (mips_unspec_address): Make extern.
12565         (mips_gotoff_page, mips_gotoff_global): Delete.
12566         (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
12567         Handle new symbol types.
12568         * config/mips/mips.md (*lea_high64, *lea64): New patterns.
12569         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
12570         mips_unspec_address directly.
12571         * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
12572         the documentation of -mexplicit-relocs.
12573
12574 2004-03-01  Jeff Law  <law@redhat.com>
12575
12576         * fold-const.c (fold): An equality comparison of a non-weak object
12577         against zero has a known result.  Similarly an equality comparison
12578         of the address of two non-weak, unaliased symbols has a known result.
12579
12580         * ggc-page.c (struct page_entry): New field PREV.
12581         (ggc_alloc): Update PREV field appropriately.
12582         (sweep_pages): Likewise.
12583         (ggc_free): Likewise.  Use PREV field rather than loop to
12584         improve ggc_free performance.
12585
12586 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
12587
12588         * config/mips/mips.c (mips_output_division): Use the division
12589         instruction to fill the delay slot of a zero check.
12590         (mips_idiv_insns): Adjust accordingly.
12591
12592 2004-03-01  Nathanael Nerode  <neroden@gcc.gnu.org>
12593
12594         * config.gcc: Create a default tmake_file for linux, and use
12595         it in all but two linux clauses.  Comment those two.
12596
12597 2004-03-01  Paolo Bonzini  <bonzini@gnu.org>
12598
12599         * combine.c (try_combine):  Do not refer to is_replaced.
12600         (gen_lowpart_for_combine):  Perverse subregs now have a
12601         more politically correct name.
12602         * cse.c (cse_insn): Likewise.
12603         * jump.c: Fix bogus reference to delete_insn.
12604
12605 2004-02-29  Mark Mitchell  <mark@codesourcery.com>
12606
12607         PR debug/14328
12608         * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
12609         constants as signed values.
12610
12611         PR middle-end/13448
12612         * c-tree.h (readonly_warning): Rename to ...
12613         (readonly_error): ... this.
12614         * c-typeck.c (build_unary_op): Adjust accordingly.
12615         (readonly_warning): Rename to ...
12616         (readonly_error): ... this and issue errors, not warnings.
12617         (build_modify_expr): Call readonly_error, not readonly_warning.
12618         (c_expand_asm_operands): Likewise.
12619         * tree-inline.c (optimize_inline_calls): Do not inline functions
12620         after errors have occurred.
12621
12622 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
12623
12624         * configure.ac: Rearrange some threading code for clarity;
12625         add section comment.
12626         * configure: Regenerate.
12627
12628 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
12629
12630         * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
12631         typos.
12632         * doc/cppopts.texi: Fix a typo.
12633
12634 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
12635
12636         * config/i386/i386.md: Fix formatting.
12637
12638 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
12639
12640         * configure.ac: Add some comments delineating sections of code.
12641
12642         * doc/install.texi: Note that libada uses autoconf 2.57 also.
12643
12644         * doc/install.texi: Fix idiot typo in previous commit.
12645
12646         * doc/install.texi: Update for conversion of intl to autoconf 2.57.
12647
12648 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
12649
12650         * config/h8300/h8300.md: Add comments about peephole2's.
12651
12652 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
12653
12654         * config/h8300/h8300.md: Tweak operand numbers of some
12655         peephole2's.
12656
12657 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
12658
12659         * config/h8300/h8300.md: Tweak comments about peephole2's.
12660
12661 2004-02-29  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
12662
12663         PR middle-end/14203
12664         * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
12665         instead of testing whether DECL_RTL is not NULL.
12666
12667 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
12668
12669         * config/sh/sh.c: Fix formatting.
12670
12671 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
12672
12673         * config/sh/sh.c: Convert to ISO-C.
12674
12675 2004-02-28  Andrew Pinski  <pinskia@physics.uc.edu>
12676
12677         * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
12678         my previous patch.
12679
12680         * config/darwin.h (machopic_finish): Output stub even if the
12681         symbol is already defined.
12682
12683 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12684
12685         * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
12686
12687 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
12688
12689         * genattr.c (main): Don't define
12690         TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
12691         * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
12692         (DFA_PIPELINE_INTERFACE): Likewise.
12693         * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
12694         (DFA_PIPELINE_INTERFACE): Likewise.
12695
12696 2004-02-28  Richard Sandiford  <rsandifo@redhat.com>
12697
12698         * config/mips/mips.md (tstsi, tstdi): Delete.
12699
12700 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12701
12702         * config/mips/mips.c (override_options): Remove an obsolete
12703         duplicate definition of the "e" constraint.
12704         * config/mips/mips.h: Update a comment accordingly.
12705
12706 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12707
12708         * config/mips/mips.md: Complete the unfinished R4000
12709         multiply/shift errata workaround.  Improve documentation.
12710         (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
12711         has a hilo hazard.
12712         (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
12713         (muldi3, muldi3_internal): Likewise.
12714         (muldi3_internal2): Remove, replacing with...
12715         (muldi3_mult3, muldi3_r4000): ...these new patterns.
12716         (mulsidi3): Take the errata into account.
12717         (mulsidi3_32bit): Remove, replacing with...
12718         (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
12719         (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
12720         (umulsidi3): Take the errata into account.
12721         (umulsidi3_32bit): Remove, replacing with..
12722         (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
12723         (umulsi3_highpart, umulsi3_highpart_internal): Disable if
12724         TARGET_FIX_R4000.
12725         (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
12726         (smuldi3_highpart, umuldi3_highpart): Likewise.
12727         * doc/invoke.texi: Document the errata workaround.
12728
12729 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
12730
12731         * config/mips/mips-protos.h (mips_idiv_insns): Declare.
12732         * config/mips/mips.h (MASK_FIX_SB1): Bump.
12733         (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
12734         (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
12735         * config/mips/mips.c (mips_idiv_insns): New function.
12736         (override_options): Make -march=r4000 imply -mfix-r4000 by default.
12737         (mips_output_division): Add a workaround for the R4000 divide/shift
12738         errata.
12739         * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
12740         the length of an "idiv" instruction.
12741         * doc/invoke.texi: Document the new switches.
12742
12743 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
12744
12745         * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
12746         TARGET_SCHED_IS_COSTLY_DEPENDENCE.
12747
12748 2004-02-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12749
12750         PR optimization/14229
12751         * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
12752
12753 2004-02-28  Eric Botcazou  <ebotcazou@act-europe.fr>
12754
12755         * fold-const.c (fold): Strip NOPs that change the signedness
12756         for RSHIFT too.  Expand comment.
12757
12758 2004-02-27  Ian Lance Taylor  <ian@wasabisystems.com>
12759
12760         PR optimization/7871
12761         * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
12762         from or to call insns.
12763
12764 2004-02-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
12765
12766         PR optimization/7871
12767         * flow.c (propagate_one_insn): Interpret calls as setting global
12768         registers, not merely clobbering them.
12769
12770 2004-02-27  Dale Johannesen  <dalej@apple.com>
12771
12772         * config/darwin.c (machopic_output_possible_stub_label):  Remove.
12773         config/darwin-protos.h:  Ditto.
12774         config/darwin.h:  Remove call to it.
12775         * combine.c (distribute_notes): Do not place a REG_DEAD note
12776         when value is both set and used.
12777
12778 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
12779
12780         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
12781         as well.
12782         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
12783         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
12784
12785 2004-02-27  Andrew Pinski  <apinski@apple.com>
12786
12787         * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
12788         Speedup common case of the type values being in the same order.
12789
12790 2004-02-27  Steve Ellcey  <sje@cup.hp.com>
12791
12792         * config/ia64/ia64.h (no-inline-float-divide): New option.
12793         * config/ia64/ia64.h (no-inline-int-divide): New option.
12794         * config/ia64/ia64.h (no-inline-sqrt): New option.
12795         (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
12796         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
12797         * config/ia64/ia64.c (ia64_override_options): Modify error
12798         checking for inlined division/sqrt.
12799
12800 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
12801
12802         * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
12803         ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
12804         value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
12805         config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
12806         copyright.
12807
12808 2004-02-27  Paul Brook  <paul@codesourcery.com>
12809
12810         * function.c (assign_parms): Don't count pretend args for alignment.
12811
12812 2004-02-27  Richard Henderson  <rth@redhat.com>
12813
12814         * passes.c: New file.
12815         * Makefile.in (OBJS-common): Add it.
12816         * diagnostic.c (rtl_dump_and_exit): Move decl ...
12817         * flags.h (rtl_dump_and_exit): ... here.
12818         * output.h (size_directive_output, last_assemble_variable_decl):
12819         Move from toplev.c.
12820         * rtl.h (reg_alloc): Move from toplev.c.
12821         * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
12822         struct dump_file_info, enum dump_file_index, dump_file_tbl,
12823         open_dump_file, close_dump_file, rest_of_decl_compilation,
12824         rest_of_type_compilation, rest_of_handle_final,
12825         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
12826         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
12827         rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
12828         rest_of_handle_regrename, rest_of_handle_reorder_blocks,
12829         rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
12830         rest_of_handle_tracer, rest_of_handle_if_conversion,
12831         rest_of_handle_if_after_combine, rest_of_handle_web,
12832         rest_of_handle_branch_prob,
12833         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
12834         rest_of_handle_addressof, rest_of_handle_sibling_calls,
12835         rest_of_handle_jump_bypass, rest_of_handle_inlining,
12836         rest_of_handle_null_pointer, rest_of_handle_combine,
12837         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
12838         rest_of_handle_gcse, rest_of_handle_loop_optimize,
12839         rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
12840         (decode_d_option): Use enable_rtl_dump_file.
12841         (compile_file, finalize, do_compile): Move profile+combine+graph
12842         cleanup to finish_optimization_passes.
12843         * toplev.h (init_optimization_passes, finish_optimization_passes,
12844         enable_rtl_dump_file): Declare.
12845
12846 2004-02-27  Eric Botcazou  <ebotcazou@act-europe.fr>
12847             Roger Sayle  <roger@eyesopen.com>
12848
12849         * fold-const.c (fold): Revert 2004-02-25 change.  Use the original
12850         operands to build a tree with swapped operands.
12851         * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
12852         'unsignedp' predicate to specify the signedness.
12853
12854 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
12855
12856         * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
12857         expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
12858         params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
12859         comment typos and formatting.  Follow spelling conventions.
12860
12861 2004-02-26  Aldy Hernandez  <aldyh@redhat.com>
12862
12863         * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
12864         fix_truncsfsi2.
12865
12866         * config/rs6000/spe.md: Delete spe_efsctuiz.
12867         Add spe_fixuns_truncsfsi2.
12868         Add spe_fix_truncsfsi2.
12869
12870 2004-02-26  Eric Christopher  <echristo@redhat.com>
12871
12872         * c-lex.c (c_lex_string_translate): New variable.
12873         (lex_string): Use to determine string translation.
12874         * c-pragma.h: Prototype.
12875         * c-parse.in (start_string_translation): New. Set above.
12876         (stop_string_translation): Ditto.
12877         (attribute, attribute_list, asm_def, asm_stmt,
12878         asm_operand): Use above functions.
12879         * cp/parser.c (cp_parser_declaration): Translate strings
12880         unless token is RID_EXTERN. Set c_lex_string_translate
12881         for recursive use.
12882         (cp_parser_asm_definition): Only translate argument strings
12883         to asms.
12884         (cp_parser_asm_operand_list): Ditto.
12885         (cp_parser_attribute_list): Do not translate attribute strings.
12886
12887 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
12888
12889         * stmt.c (expand_start_case_dummy): Remove.
12890         * tree.h: Remove the corresponding prototype.
12891
12892 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
12893
12894         * builtins.c (apply_args_register_offset): Remove.
12895         * tree.h: Remove the corresponding prototype.
12896
12897 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
12898
12899         * stor-layout.c (is_pending_size): Remove.
12900         * tree.h: Remove the corresponding prototype.
12901
12902 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
12903
12904         * recog.c (validate_replace_src): Remove.
12905         * recog.h: Remove the corresponding prototype.
12906
12907 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
12908
12909         * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
12910         MAYBE_REG_PARM_STACK_SPACE.
12911         * function.c: Likewise.
12912         * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
12913         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
12914         * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
12915         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
12916
12917 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
12918
12919         * c-decl.c (c_expand_deferred_function): Remove.
12920         * c-tree.h: Remove the corresponding prototype.
12921
12922 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
12923
12924         * postreload.c (reload_cse_move2add): Generate just a PLUS
12925         instead of an entire SET.
12926
12927 2004-02-26  Jan Hubicka  <jh@suse.cz>
12928
12929         * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
12930         /pentium4m.
12931         * i386.c (override_options): Add support for new CPUs.
12932         * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
12933         (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
12934         constants.
12935         * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
12936
12937 2004-02-26  Bob Wilson  <bob.wilson@acm.org>
12938
12939         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
12940
12941 2004-02-26  Eric Botcazou  <ebotcazou@act-europe.fr>
12942
12943         * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
12944         (sparc_emit_fixunsdi): New prototype.
12945         * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
12946         (sparc_emit_fixunsdi): New function.
12947         * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
12948         operand 1.  Pass SFmode to sparc_emit_floatunsdi.
12949         (floatunsdidf2): Use 'general_operand' for operand 1.  Pass DFmode
12950         to sparc_emit_floatunsdi.
12951         (fixuns_truncsfdi2): New expander.
12952         (fixuns_truncdfdi2): Likewise.
12953
12954 2004-02-26  Alan Modra  <amodra@bigpond.net.au>
12955
12956         * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
12957         unless HAVE_cc0.
12958
12959 2004-02-25  Richard Henderson  <rth@redhat.com>
12960
12961         * explow.c (force_reg): Call mark_reg_pointer as appropriate.
12962         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
12963         use (op0-op1) == 0 if op0 is a pointer.
12964         * config/alpha/alpha.md (cmpdi): Use some_operand.
12965         (three comparison combine splits): Remove.
12966
12967 2004-02-25  Richard Henderson  <rth@redhat.com>
12968
12969         PR c/12794
12970         * c-common.c (handle_alias_attribute): Reject the attribute if
12971         current_function_decl is set.
12972
12973 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
12974
12975         * config.gcc: Add comment describing extra_gcc_objs.
12976         i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
12977         * configure.ac (extra_gcc_objs): New substitution variable.
12978         (host_extra_gcc_objs): Don't substitute.
12979         * configure: Regenerate.
12980         * Makefile.in: Use extra_gcc_objs.
12981
12982 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
12983
12984         * doc/contrib.texi: Add an entry for myself.
12985
12986 2004-02-25  Jan Hubicka  <jh@suse.cz>
12987
12988         * basic-block.h (make_eh_edge, break_superblocks): Declare.
12989         * cfgbuild.c (make_eh_edge):  Make global.
12990         * cfglayout.c (break_superblocks): Likewise; fix memory leak.
12991         * except.c (build_post_landing_pads, connect_post_landing_pads,
12992         dw2_build_landing_pads, sjlj_emit_function_enter,
12993         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
12994         sjlj_build_landing_pads): Update CFG.
12995         (emit_to_new_bb_before): New function.
12996         (finish_eh_generation): Do not rebuild the CFG.
12997
12998 2004-02-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12999
13000         * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
13001         target_cpu_default defines.
13002         * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
13003         * pa.h (TARGET_DEFAULT): Likewise.
13004
13005 2004-02-25  Eric Botcazou  <ebotcazou@act-europe.fr>
13006
13007         * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
13008         comparisons with regard to signedness.
13009
13010 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
13011
13012         * arm.c (thumb_legitimize_address): New function.
13013         * arm-protos.h: Prototype it.
13014         * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
13015         (LEGITIMIZE_ADDRESS): Use it.
13016
13017 2004-02-25  J"orn Rennecke <joern.rennecke@superh.com>
13018
13019         * reload1.c (reload): Only spill eliminable register with multiple
13020         adjacent elimination alternatives if all alternatives fail.
13021
13022 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
13023
13024         * arm.c (arm_legitimate_index_p): For QImode the range of an offset
13025         is -4095...+4095 inclusive.
13026
13027 2004-02-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
13028
13029         * doc/install.texi (sparc-sun-solaris2* specific notes): Document
13030         the bootstrap failure with Sun CC 5.4 and 5.5.
13031
13032 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
13033
13034         * cse.c (cse_change_cc_mode_insns): Stop at any instruction
13035         which modifies NEWREG.
13036         (cse_condition_code_reg): Update the mode of CC_REG in
13037         CC_SRC_INSN on our own.
13038
13039 2004-02-24  Michael Matz  <matz@suse.de>
13040
13041         * config/i386/i386.c (ix86_comp_type_attributes): Check for
13042         regparm attributes.
13043
13044 2004-02-24  Richard Henderson  <rth@redhat.com>
13045
13046         * toplev.c (dump_file_tbl): Rename from dump_file.
13047         * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
13048         cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
13049         config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
13050         config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
13051         loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
13052         ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
13053         toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
13054         s/rtl_dump_file/dump_file/g.
13055
13056 2004-02-24  Aldy Hernandez  <aldyh@redhat.com>
13057
13058         * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
13059         (spe_fixuns_truncsfsi2): Delete.
13060
13061         * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
13062         (fixuns_truncsfsi2): Delete.
13063
13064 2004-02-24  Josef Zlomek  <zlomekj@suse.cz>
13065
13066         PR/14240
13067         * rtlanal.c (replace_label): Fix replacing labels in constant pool.
13068
13069 2004-02-24  Geoffrey Keating  <geoffk@apple.com>
13070
13071         * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
13072
13073 2004-02-24  Jason Merrill  <jason@redhat.com>
13074
13075         * tree.c (check_qualified_type): New fn.
13076         (get_qualified_type): Use it.  If type already has the desired
13077         quals, just return it.
13078         * tree.h: Declare it.
13079
13080 2004-02-24  Sanjiv Kumar Gupta  <sanjivg@noida.hcltech.com>
13081
13082         * target-def.h (TARGET_SCHED_INIT_GLOBAL,
13083         TARGET_SCHED_FINISH_GLOBAL): New macros.
13084
13085         * target.h (md_init_global, md_finish_global): Function
13086         declarations corresponding to new target macros.
13087
13088         * haifa-sched.c (sched_init, sched_finish): Allow target to
13089         call the new schedular hooks.
13090
13091         * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
13092         call to update_life_info.
13093
13094         * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
13095         flag_schedule_insns for SH4.
13096
13097         * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
13098         find_set_regmode_weight, find_insn_regmode_weight,
13099         find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
13100         sh_variable_issue, high_pressure, ready_reorder,
13101         rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
13102         functions used to throttle the insn movement in first
13103         scheduling pass for SH.
13104
13105         * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
13106         TARGET_SCHED_FINISH_GLOBAL.
13107
13108 2004-02-24  Alexandre Oliva  <aoliva@redhat.com>
13109
13110         Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
13111         2004-02-05  Alexandre Oliva  <aoliva@redhat.com>
13112         * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
13113         symbols in sections named by the user.
13114         2004-01-30  Alexandre Oliva  <aoliva@redhat.com>
13115         * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
13116         2004-01-27  Alexandre Oliva  <aoliva@redhat.com>
13117         * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
13118         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
13119         the above.
13120         2004-01-20  Alexandre Oliva  <aoliva@redhat.com>
13121         * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
13122         one more pseudo to further improve code generation.
13123         2004-01-19  Alexandre Oliva  <aoliva@redhat.com>
13124         * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
13125         inside UNSPEC.
13126         2004-01-16  Alexandre Oliva  <aoliva@redhat.com>
13127         * config/frv/frv.c (frv_legitimate_address_p): Added
13128         allow_double_reg_p argument.  Adjust all callers.  Use it to
13129         decide whether to enable double-register indirect addressing.
13130         (frv_funcdesc_alias_set): Remove.
13131         (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
13132         register.  Emit movdi_ldd.
13133         (ldd_address_operand): New.
13134         * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
13135         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13136         (PREDICATE_CODES): Add ldd_address_operand.
13137         * config/frv/frv.md (movdi_ldd): New.
13138         (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
13139         intermediate computations if possible.
13140         (symGOTOFF2reg_i): Fix harmless typo.
13141         2003-12-18  Alexandre Oliva  <aoliva@redhat.com>
13142         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
13143         relocated p_vaddr to vaddr type.
13144         * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
13145         * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
13146         (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
13147         MEM, or use a funcdesc alias set.  Use regular move instead of
13148         ldd.
13149         (dbl_memory_one_insn_operand): Recognize function descriptors by
13150         type or by alias set, and don't split them.
13151         * config/frv/frv.md (call, call_value): Never use call_internal
13152         for fdpic.
13153         (call_internal, call_value_internal): Never match for FDPIC.
13154         (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
13155         call_value_fdpicsi): Require FDPIC.
13156         (ldd): Removed.
13157         2003-12-17  Alexandre Oliva  <aoliva@redhat.com>
13158         * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
13159         * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
13160         (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
13161         FDPIC.  Compute data base address.
13162         * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
13163         before the other self-specs are processed.
13164         * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
13165         Build with -fPIC.
13166         2003-12-15  Alexandre Oliva  <aoliva@redhat.com>
13167         * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
13168         inhibit_libc is defined.
13169         2003-12-12  Alexandre Oliva  <aoliva@redhat.com>
13170         * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
13171         __FRV_FDPIC__.
13172         (__RELOC_POINTER): Define.
13173         (_Unwind_IteratePhdrCallback): Use it.
13174         * config/frv/frv.h (Twrite): Define.
13175         (TRANSFER_FROM_TRAMPOLINE): Use it.
13176         * config/frv/linux.h (INVOKE__main): Undefine.
13177         (Twrite): Override.
13178         2003-12-05  Richard Sandiford  <rsandifo@redhat.com>
13179         * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
13180         (-mlibrary-pic): Emphasize that this option generates EABI code.
13181         (-mcpu): Add fr550.
13182         (-mpack): Remove.
13183         2003-11-30  Alexandre Oliva  <aoliva@redhat.com>
13184         * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
13185         and CONSTs in FDPIC mode.
13186         * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
13187         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
13188         * config/frv/frv.c (move_source_operand): Don't accept symbolic
13189         constants.
13190         * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
13191         rather than 'i' constraint for the 2-instruction alternative.
13192         (*movsi_2word): New, incorporating existing int_2word_operand splitter.
13193         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
13194         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
13195         EXTRA_CONSTRAINT_FOR_Y.
13196         (EXTRA_CONSTRAINT): Remove handling of 'Y'.
13197         * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
13198         (addsi3): Change 'Y' constraint to 'Q'.
13199         2003-11-27  Richard Sandiford  <rsandifo@redhat.com>
13200         * reload.c (CONST_POOL_OK_P): New macro.
13201         (find_reloads): Use it to decide whether a constant can be forced
13202         into memory.
13203         * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
13204         constant satisfies got12_operand.
13205         (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
13206         (frv_legitimate_address_p): Check for valid unspec offsets using
13207         got12_operand rather than frv_legitimate_fdpic_operand_p.
13208         (frv_legitimate_fdpic_operand_p): Delete.
13209         (frv_emit_movsi): Abort if we try to use the FDPIC register during
13210         or after reload.
13211         (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
13212         TARGET_FDPIC.
13213         * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
13214         2003-11-19  Richard Sandiford  <rsandifo@redhat.com>
13215         * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
13216         (frv_fdpic_fptr_operand): Don't declare here.
13217         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
13218         rather than fdpic_got12_operand.
13219         (PREDICATE_CODES): Remove symbolic_operand entry.  Add entries for
13220         got12_operand and const_unspec_operand.
13221         * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
13222         (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
13223         (symbolic_operand): Remove.
13224         (const_unspec_operand): New predicate.
13225         * config/frv/frv.md (*movsi_got): Use got12_operand.
13226         (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
13227         2003-11-18  Richard Sandiford  <rsandifo@redhat.com>
13228         * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
13229         * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
13230         * config/frv/frv.c (frv_unspec): New structure.
13231         (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
13232         (frv_print_operand_memory_reference): Use frv_const_unspec_p to
13233         validate CONST indices.  Use frv_output_const_unspec to print them.
13234         (frv_print_operand): Update call to unspec_got_name.  Use
13235         frv_output_const_unspec to print constant unspecs.
13236         (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
13237         Reject UNSPECs otherwise.
13238         (unspec_got_name): Take the relocation number as argument, not an
13239         rtx containing it.
13240         (frv_output_addr_const_extra): Remove, replacing with...
13241         (frv_output_const_unspec): ...this new function.
13242         (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
13243         (gpr_or_int12_operand): Use fdpic_got12_operand.
13244         (dbl_memory_one_insn_operand): Likewise.
13245         (fdpic_got12_operand): Use frv_const_unspec_p.
13246         (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
13247         are already legitimate.  Use frv_small_data_reloc_p when deciding
13248         whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
13249         2003-11-18  Alexandre Oliva  <aoliva@redhat.com>
13250         * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
13251         * config/frv/libgcc-frv.ver: ... frv-specific symbols.  New file.
13252         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
13253         label, for real this time.
13254         * config/frv/frv.c (frv_local_funcdesc_p): Update to new
13255         representation of visibility.
13256         (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
13257         such.
13258         2003-11-17  Richard Sandiford  <rsandifo@redhat.com>
13259         * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
13260         (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
13261         * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
13262         it was explicitly disabled.
13263         (frv_stack_info): There is no need to save the link register in every
13264         frame unless TARGET_LINKED_FP is true.
13265         (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
13266         frame pointer if the stack pointer might change value.
13267         (frv_return_addr_rtx): Check and process "count" argument.
13268         2003-11-14  Richard Sandiford  <rsandifo@redhat.com>
13269         * config/frv/frv-protos.h (frv_legitimize_address): Remove.
13270         (frv_find_base_term): Declare.
13271         * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
13272         (FIND_BASE_TERM): Define.
13273         (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
13274         small_data_register_operand, small_data_symbolic_operand.  Add
13275         symbolic_operand.
13276         * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
13277         (frv_print_operand_memory_reference, output_move_single): Remove
13278         special handling for unlegitimized sdata addresses.
13279         (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
13280         and symbolic addresses.
13281         (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
13282         (frv_find_base_term): New function.
13283         (int_2word_operand): Check specifically for symbolic address constants.
13284         (pic_register_operand, pic_symbolic_operand): Delete.
13285         (small_data_register_operand, small_data_symbolic_operand): Delete.
13286         (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
13287         Allow UNSPEC_GOT constants if !TARGET_FDPIC.
13288         (move_source_operand): Only accept CONSTs if they're a two-insn
13289         symbolic constant.
13290         (fdpic_got12_operand): Don't require TARGET_FDPIC.
13291         (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
13292         using gen_symGOTOFF2reg*.
13293         (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
13294         (frv_rtx_costs): Give all MEM addresses a cost of 0.  Give MEMs
13295         themselves a cost of 3 insns.
13296         * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
13297         Change predicate to symbolic_operand.
13298         (*movsi_high_got, *movsi_lo_sum_got): Likewise.
13299         (*movsi_lda_sdata): Delete.
13300         (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
13301         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
13302         * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
13303         frv-*-*linux*.
13304         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
13305         label.
13306         * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
13307         -multilib-library-pic.
13308         (LINK_SPEC): Add -z text for -mfdpic.
13309         * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
13310         * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
13311         * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
13312         Override.
13313         (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
13314         FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
13315         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
13316         crtstuff-generated files.
13317         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
13318         * config.gcc: Add frv-*-*linux*.
13319         * config/frv/linux.h, config/frv/t-linux: New.
13320         2003-10-06  Alexandre Oliva  <aoliva@redhat.com>
13321         * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
13322         when -mfdpic even if a linker script is explicitly listed.
13323         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
13324         * config/frv/frv.c (frv_override_options): Clear asm_out
13325         unaligned_op for SImode on FDPIC.
13326         (frv_emit_movsi): Use compute_reloc_for_constant to compute the
13327         argument passed to decl_readonly_section.
13328         (frv_assemble_integer): Revert 2003-09-30's change, but make the
13329         whole block run with FDPIC even with -fno-PIC.
13330         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
13331         * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
13332         symbol or label plus offset to memory.
13333         (frv_emit_movsi): Emit GPREL only if -mgprel-ro.  Emit 32-bit
13334         GOTOFF and GPREL for LABEL_REF.
13335         * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
13336         -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
13337         (MASK_GPREL_RO, TARGET_GPREL_RO): New.
13338         (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
13339         * doc/invoke.texi: Document them.
13340         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
13341         * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
13342         (frv_splittable_got_operand): Removed.
13343         * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
13344         LO_SUM.  Add comments.
13345         (frv_override_options): Moved enabling of FDPIC to
13346         DRIVER_SELF_SPECS.  Don't enable MASK_DWORD.
13347         (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
13348         (frv_legitimize_fdpic_address): Don't duplicate logic in
13349         frv_emit_movsi.
13350         (frv_gen_GPsym2reg): New.
13351         (unspec_got_name): Added gprel.
13352         (frv_expand_fdpic_call): Add support for inlining PLTs.
13353         (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
13354         (gpr_or_int12_operand): Added GPREL12.
13355         (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
13356         (small_data_symbolic_operand): Fail if FDPIC.
13357         (fdpic_splittable_got_operand): Removed.
13358         (fdpic_got12_operand): Added GPREL12.
13359         (frv_emit_movsi): Reorganize to avoid duplication.  Emit GPREL
13360         when appropriate.  Fix sdata GOTOFF.
13361         (frv_legitimate_constant_p): Require legitimate PIC operand for
13362         FDPIC with pic, but only a legitimate fdpic operand for non-pic.
13363         (frv_assemble_integer): Move FDPIC funcdesc handling out of
13364         flag_pic case.
13365         (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
13366         frv_assemble_integer fails.
13367         * config/frv/frv.h (DRIVER_SELF_SPECS): New.
13368         (SUBTARGET_DRIVER_SELF_SPECS): New.
13369         (ASM_SPEC): Don't pass -mno-fdpic.
13370         (LINK_SPEC): Pass -melf32frvfd for FDPIC.
13371         (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
13372         (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
13373         -multilib-library-pic.
13374         (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
13375         condexec_si_media_operator, condexec_sf_add_operator and
13376         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
13377         and condexec_sf_unary_operator.
13378         * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
13379         New.
13380         (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
13381         movsi_internal.  Give them internal names.  movsi_got has type
13382         int.
13383         (fdpic got splitters): Remove.
13384         (symGPREL2reg, symGPREL2reg_hilo): New.
13385         * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
13386         to -mlibrary-pic.  Map -multilib-library-pic to it.
13387         * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
13388         Document.
13389         2003-09-28  Alexandre Oliva  <aoliva@redhat.com>
13390         * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
13391         (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
13392         (frv_cannot_force_const_mem): New function.
13393         (const_small_data_p, plus_small_data_p): Update comments on sdata
13394         on FDPIC.
13395         (frv_override_options): Set flag_pie for FDPIC too.
13396         (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
13397         call-saved registers on FDPIC.
13398         (frv_stack_info): Don't preserve the PIC register on FDPIC, and
13399         don't force LR to be preserved.
13400         (frv_expand_prologue): Likewise.
13401         (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
13402         (frv_frame_pointer_required): Don't force it just because the
13403         FDPIC register is used.
13404         (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
13405         operand only if !condexec_p.
13406         (frv_legitimize_address): Return the FDPIC-legitimized address.
13407         Don't match small data here on FDPIC.
13408         (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
13409         symbols.  Use TRUE/FALSE instead of 1/0.
13410         (frv_local_funcdesc_p): New.
13411         (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
13412         immediates when possible.
13413         (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
13414         (dbl_memory_one_insn_operand): Accept addresses that add a REG and
13415         an UNSPEC_GOT.
13416         (frv_emit_movsi): Handle FDPIC before small data.  Use GOTOFF and
13417         12-bit immediates when possible.
13418         (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
13419         are not legitimate pic operands.
13420         (frv_in_small_data_p): Re-enable for FDPIC.
13421         * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
13422         (FRV_GLOBAL_P): Removed.
13423         * config/frv/frv.md: Add modes to CONSTs.
13424         (movsi_got): New.
13425         (movsi_lo_sum_got): Use separate matches instead of match_dup.
13426         (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
13427         (fdpic splittable operations): Match on flag_pic != 1.
13428         2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
13429         * config/frv/frv.c (frv_asm_out_constructor,
13430         frv_asm_out_destructor): Pass to frv_assemble_integer the size in
13431         bytes, not bits.
13432         2003-09-19  Alexandre Oliva  <aoliva@redhat.com>
13433         * config/frv/frv.c (frv_assemble_integer): Reject complex
13434         expressions referencing function SYMBOL_REFs.
13435         * config/frv/frv.c (frv_function_symbol_referenced_p): New.
13436         (move_source_operand): Reject CONSTs that reference function
13437         SYMBOL_REFs on FDPIC.
13438         (frv_emit_movsi): If we get such a CONST, break it up.
13439         * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
13440         (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
13441         * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
13442         MEM.
13443         (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
13444         (frv_trampoline_size): Increase for FDPIC.
13445         * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
13446         (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
13447         * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
13448         Disable use of GOTOFF for now.
13449         (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
13450         Disable use of small data in FDPIC for now.
13451         (frv_asm_output_mi_thunk): Implement for FDPIC.
13452         * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
13453         * config/frv/frv.c (frv_asm_out_constructor): Use
13454         frv_assemble_integer for FDPIC pointers.
13455         (frv_asm_out_destructor): Likewise.
13456         * config/frv/frv.md (ldd): Fix order of operands.  Use
13457         address_operand for input.
13458         2003-09-18  DJ Delorie  <dj@redhat.com>
13459         * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
13460         (unspec_got_name): Correct typo.
13461         (frv_emit_movsi): Pre-expand splittable GOTs.
13462         (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
13463         * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
13464         (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
13465         * config/frv/t-frv: Add -mfdpic multilibs.
13466         * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
13467         (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
13468         * config/frv/frv.c (frv_override_options): -mfdpic assumes
13469         flag_pic, default to 32-bit pics, require DWORD ops.
13470         (frv_override_options): Add W and Z constraints.
13471         (frv_expand_prologue): No pic prologue for -mfdpic.
13472         (frv_asm_output_mi_thunk): Support -mfdpic (soon).
13473         (frv_print_operand_memory_reference): Handle GOT constants.
13474         (frv_legitimate_address_p): Allow GOT constants.
13475         (frv_legitimize_address): Handle GOT addresses too.
13476         (frv_legitimate_fdpic_operand_p): New.
13477         (frv_legitimize_fdpic_address): New.
13478         (unspec_got_name): New.
13479         (frv_output_addr_const_extra): New.
13480         (frv_expand_fdpic_call): New.
13481         (frv_fdpic_fptr_operand): New.
13482         (gpr_or_int12_operand): Handle GOT operands.
13483         (int_2word_operand): Handle GOT operands.
13484         (fdpic_operand): New.
13485         (fdpic_splittable_got_operand): New.
13486         (fdpic_got12_operand): New.
13487         (frv_emit_movsi): Handle GOT operands.
13488         (frv_assemble_integer): -mfdpic doesn't use rofixups.
13489         (frv_print_operand): Support 'g' code for GOT operands.
13490         * config/frv/frv-protos.h: Add prototypes as needed.
13491         * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
13492         R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
13493         R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
13494         R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
13495         R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
13496         R_FRV_GOTOFFLO): New.
13497         (movsi_high_got, movsi_lo_sum_got): New.
13498         (*movsi_pic): Don't use this splitter for -mfdpic.
13499         (addsi3): Allow GOT references also.
13500         (call, call_value): Handle -mfdpic separately.
13501         (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
13502         call_value_fdpicsi): New.
13503         (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
13504         symGOTOFF2reg_i): New.
13505         * config/frv/frv.h (MASK_FDPIC): New.
13506         (TARGET_FDPIC): New.
13507         (TARGET_SWITCHES): Add -mfdpic.
13508         (FDPIC_FPTR_REGNO): New.
13509         (FDPIC_REGNO): New.
13510         (OUR_FDPIC_REG): New.
13511         (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
13512         FDPIC_CALL_REGS.
13513         (REG_CLASS_NAMES): Likewise.
13514         (REG_CLASS_CONTENTS): Likewise.
13515         (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
13516         (EXTRA_CONSTRAINT): Add it here.
13517         (FRV_GLOBAL_P): New.
13518         (OUTPUT_ADDR_CONST_EXTRA): New.
13519
13520 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
13521
13522         * config/sparc/sparc.h: Remove commented-out definitions of
13523         TARGET_EDOM and GEN_ERRNO_RTX.
13524
13525 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
13526
13527         * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
13528         df_analyse with df_analyze.
13529
13530 2004-02-24  Alan Modra  <amodra@bigpond.net.au>
13531
13532         * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
13533         beginning of block.
13534
13535 2004-02-23  James E Wilson  <wilson@specifixinc.com>
13536
13537         * calls.c (precompute_arguments): Update comment.
13538
13539 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
13540
13541         * et-forest.c: Replace et_occurences with et_occurrences.
13542
13543 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
13544
13545         * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
13546         with iv_analyze.
13547
13548 2004-02-23  Kelley Cook  <kcook@gcc.gnu.org>
13549
13550         * config/i386/i386.c: Rename pni to sse3.
13551         * config/i386/i386.h: Likewise.
13552         * config/i386/i386.md: Likewise.
13553         * config/i386/pmmintrin.h: Likewise.
13554         * doc/extend.texi: Likewise.
13555         * doc/invoke.texi: Likewise.
13556
13557 2004-02-23  Zack Weinberg  <zack@codesourcery.com>
13558             Kazu Hirata  <kazu@cs.umass.edu>
13559
13560         Remove -fwritable-strings.
13561         * c-common.c (fix_string_type): Don't check
13562         flag_writable_strings.
13563         (fix_string_type): Likewise.
13564         * c-opts.c (set_std_c89): Don't initialize
13565         flag_writable_strings.
13566         (set_std_c99): Likewise.
13567         * common.opt (fwritable-strings): Remove.
13568         * flags.h: Remove the external declaration of
13569         flag_writable_strings.
13570         * opts.c (common_handle_option) <OPT_fwritable_strings>:
13571         Remove.
13572         * toplev.c (flag_writable_strings): Remove.
13573         (f_options): Remove an entry for writable-strings.
13574         * varasm.c (const_hash_1) <STRING_CST>: Don't check
13575         flag_writable_strings.
13576         (compare_constant) <STRING_CST>: Likewise.
13577         (build_constant_desc): Likewise.
13578         * config/darwin.c (machopic_select_section): Likewise.
13579         * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
13580         * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
13581         * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
13582         * config/mips/mips.c (mips_select_section): Likewise.
13583         (mips_encode_section_info): Likewise.
13584         * config/pa/pa.c (pa_select_section): Likewise.
13585         * config/pa/pa.h (TEXT_SPACE_P): Likewise.
13586         * config/v850/v850.c (v850_select_section): Likewise.
13587         * doc/invoke.texi (-fwritable-strings): Remove.
13588         (-fno-const-strings): Don't mention -fwritable-strings.
13589         * doc/trouble.texi: Don't mention -fwritable-strings.
13590
13591 2004-02-23  Nathanael Nerode  <neroden@gcc.gnu.org>
13592
13593         * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
13594
13595 2004-02-23  Dale Johannesen  <dalej@apple.com>
13596
13597         * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
13598         (movdf_hardfloat64):  Ditto.
13599         (movdf_softfloat64):  Ditto.
13600
13601 2004-02-23  Fariborz Jahanian <fjahanian@apple.com>
13602         * config/rs6000/rs6000.c (function_arg): call to
13603         rs6000_mixed_function_arg for DFmode moved to allow
13604         normal DFmode incoming register assignment.
13605
13606 2004-02-23  Dale Johannesen  <dalej@apple.com>
13607
13608         * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
13609         (movdf_hardfloat64):  Ditto.
13610
13611 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
13612
13613         * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
13614         config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
13615         copyright.
13616
13617 2004-02-23  Andrew Pinski  <pinskia@physics.uc.edu>
13618
13619         PR c/14156
13620         * c-typeck.c (c_expand_return): Change check for VAR_DECL
13621         to use DECL_P instead.
13622
13623         * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
13624         * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
13625
13626 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
13627
13628         * Makefile.in (opts.o): Depend on target.h.
13629         * opts.c (decode_options): Use targetm.default_short_enums
13630         instead of DEFAULT_SHORT_ENUMS.
13631         * system.h (DEFAULT_SHORT_ENUMS): Poison.
13632         * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
13633         (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
13634         * target.h (gcc_target): Add default_short_enums.
13635         * config/cris/cris.h: Remove a comment about
13636         DEFAULT_SHORT_ENUMS.
13637         * config/ip2k/ip2k.h: Likewise.
13638         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
13639         TARGET_DEFAULT_SHORT_ENUMS.  Update the description.
13640
13641 2004-02-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
13642             Falk Hueffner  <falk@debian.org>
13643
13644         PR c/14188
13645         * builtins.c (expand_builtin_va_arg): Emit an informative message
13646         if a trap is generated.
13647         * c-typeck.c (build_function_call): Likewise.
13648
13649 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
13650
13651         * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
13652         fopen.
13653         * libgcov.c: Include sys/stat.h.
13654         * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
13655         * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
13656         * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
13657         * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
13658
13659 2004-02-22  Kazu Hirata  <kazu@cs.umass.edu>
13660
13661         * reorg.c: Remove comments about dead ports.
13662
13663 2004-02-22  Christopher Faylor  <cgf@redhat.com>
13664
13665         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
13666         extra host object file when targetting cygwin rather than generic
13667         object files.
13668
13669 2004-02-22  Josef Zlomek  <zlomekj@suse.cz>
13670
13671         Merge from tree-ssa:
13672         2003-11-20  Richard Henderson  <rth@redhat.com>
13673
13674                 * tree-inline.c (insert_decl_map): New.
13675                 (remap_decl, remap_type, remap_block, copy_body_r,
13676                 initialize_inlined_parameters, declare_return_variable,
13677                 remap_save_expr): Use it.
13678
13679         * function.c (copy_body_r): Add mapping from id->ret_label to
13680         id->ret_label.  Revert test for ret_label.
13681
13682 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
13683
13684         * genoutput.c (process_template): Strip trailing whitespace in @
13685         templates and issue a warning if there was any.
13686
13687 2004-02-21  Christopher Faylor  <cgf@redhat.com>
13688
13689         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
13690         object file when targetting cygwin.
13691         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
13692         overridden by top-level Makefile.
13693
13694 2004-02-21  Roger Sayle  <roger@eyesopen.com>
13695
13696         * config/i386/i386.c (standard_80387_constant_p): Also prefer
13697         the x87's load constant instructions when optimizing for size.
13698
13699 2004-02-21  Kazu Hirata  <kazu@cs.umass.edu>
13700
13701         * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
13702         * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
13703         * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
13704         * fold-const.c: Likewise.
13705         * simplify-rtx.c: Likewise.
13706
13707 2004-02-21  Alan Modra  <amodra@bigpond.net.au>
13708
13709         * combine.c (can_combine_p): Don't ignore SETs marked with
13710         REG_EH_REGION notes.
13711         (try_combine): When attemting to fix unrecognized insns, don't
13712         split a PARALLEL that contains the original i2.
13713
13714 2004-02-21  Ziemowit Laski  <zlaski@apple.com>
13715
13716         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
13717         SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
13718         * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
13719         * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
13720         (vector, pixel, bool): #define to __vector, __pixel and __bool.
13721         (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
13722         portion of header.
13723         (__altivec_link_error_invalid_argument): Remove prototype; will use
13724         __builtin_altivec_compiletime_error("vec_*") instead.
13725         (vec_*): Fix/complete set of available operation overloads given the
13726         existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
13727         cv-correctness of pointer arguments; in C, always check for correct
13728         argument types before macro expansion.
13729         * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
13730         defining Darwin/PowerPC-specific '-f[no-]altivec' and
13731         '-W[no-]altivec-long-deprecated' switches.
13732         * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
13733         '__vector', '__pixel' and '__bool' macros using
13734         '__attribute__((altivec(...)))' types.
13735         * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
13736         bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
13737         bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
13738         New type nodes.
13739         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
13740         handling '-W[no-]altivec-long-deprecated'.
13741         (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
13742         (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
13743         altivec_expand_dst_builtin): Remove casts from integer literals.
13744         (altivec_expand_builtin): Likewise; handle expansion of new
13745         '__builtin_altivec_compiletime_error' function.
13746         (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
13747         types, and make them distinct from other vector types; register
13748         '__builtin_altivec_compiletime_error' function.
13749         (print_operand): For 'P', print a full target register name instead of
13750         merely its number.
13751         (rs6000_attribute_table): Add "altivec" attribute.
13752         (rs6000_handle_altivec_attribute): New function.
13753         * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
13754         '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
13755         maps to).
13756         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
13757         declare.
13758         (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
13759
13760 2004-02-20  James E Wilson  <wilson@specifixinc.com>
13761
13762         * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
13763         check.
13764         (shift_mix4left+2): Delete redundant pattern.
13765
13766 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
13767
13768         * alias.c (OUTGOING_REGNO): Don't define the default.
13769         * builtins.c (OUTGOING_REGNO): Likewise.
13770         (INCOMING_REGNO): Likewise.
13771         (apply_args_register_offset): Always use OUTGOING_REGNO.
13772         * combine.c (OUTGOING_REGNO): Likewise.
13773         * sibcall.c (OUTGOING_REGNO): Likewise.
13774         * defaults.h (INCOMING_REGNO): Provide the default.
13775         (OUTGOING_REGNO): Likewise.
13776
13777 2004-02-21  Jan Hubicka  <jh@suse.cz>
13778
13779         * params.def (max-peeled-insns, max-completely-peeled-insns,
13780         max-once-peeled-insns): Set to 400.
13781
13782 2004-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13783
13784         PR c++/12007
13785         * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
13786         are set for parameters before outputing debugging information.
13787
13788 2004-02-20  Falk Hueffner  <falk@debian.org>
13789
13790         PR target/14201
13791         * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
13792         numbers.
13793
13794 2004-02-20  Per Bothner  <per@bothner.com>
13795
13796         * input.h:  Don't #include line-map.h.  It may cause link problems
13797         with undefined linemap_line_start when line-map.h is included but
13798         line-map.o is not linked, as currently happens with gengtype on
13799         compilers that don't support inline.
13800         * toplev.c:  So we do have to explicitly #include line-map.h here.
13801
13802 2004-02-20  Richard Henderson  <rth@redhat.com>
13803
13804         * doc/invoke.texi: Add -Wvariadic-macros.
13805
13806 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
13807
13808         * haifa-sched.c (sched_emit_insn): Remove.
13809         * sched-int.h: Remove the corresponding prototype.
13810
13811 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
13812
13813         Revert:
13814         2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
13815         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
13816         * system.h (DEFAULT_SHORT_ENUMS): Poison.
13817         * config/cris/cris.h: Remove a comment about
13818         DEFAULT_SHORT_ENUMS.
13819         * config/ip2k/ip2k.h: Likewise.
13820         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
13821
13822 2004-02-20  Mohan Embar  <gnustuff@thisiscool.com>
13823             Tom Tromey  <tromey@redhat.com>
13824
13825         * doc/install.texi: Moved --disable-libgcj and
13826         --with-system-zlib documentation to new section for
13827         Java-specific options.
13828         Added explicit Cross-Compiler-Specific Options subheading.
13829         Added section for Java-specific options.
13830
13831 2004-02-20  Matt Kraai  <kraai@alumni.cmu.edu>
13832
13833         * doc/install.texi (Building the Ada compiler): Remove
13834         example.
13835
13836 2004-02-20  James E Wilson  <wilson@specifixinc.com>
13837
13838         * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
13839
13840 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
13841
13842         * gcc.c (process_command): Allow translation of the copyright
13843         symbol but not the rest of the copyright message.
13844         * gcov.c (print_version): Likewise.  Allow translation of the
13845         message about warranty.
13846
13847 2004-02-20  Hans-Peter Nilsson  <hp@axis.com>
13848
13849         * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
13850         predicate.
13851         ("*andsi_clear"): Tweak constraints to not match postincrement.
13852         Adjust the predicate to exclude a volatile memory reference.
13853         ("*andhi_clear"): Ditto.  Rename from "*andhi_clear_signed".
13854         ("*andhi_clear_unsigned"): Remove, non-matching pattern.
13855
13856 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
13857
13858         * move-if-change: Remove.
13859         * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
13860         (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
13861         (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
13862         (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
13863         (s-gtyp-gen, s-iov): Use the top level move-if-change.
13864         * objc/Make-lang.in (objc/objc-parse.y): Likewise.
13865
13866 2004-02-19  James E Wilson  <wilson@specifixinc.com>
13867
13868         * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
13869         for operand2.  Add condition that requires register_operand operand2
13870         before reload.
13871
13872 2004-02-19  Richard Sandiford  <rsandifo@redhat.com>
13873             Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
13874
13875         * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
13876         * config/mips/mips.md: Expand comment above unaligned loads and stores.
13877
13878 2004-02-19  Richard Henderson  <rth@redhat.com>
13879
13880         * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
13881         * tree.c (build0, build1, build2, build3, build4): Split out from...
13882         (build): ... here.  Call them.
13883         * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
13884
13885         * convert.c (convert_to_integer): Remove extra build argument.
13886         * tree-inline.c (expand_call_inline): Likewise.
13887
13888 2004-02-19  Richard Henderson  <rth@redhat.com>
13889
13890         * c-opts.c (warn_variadic_macros): New.
13891         (c_common_handle_option): Set it.
13892         (sanitize_cpp_opts): Copy it to cpp_opts.
13893         * c.opt (Wvariadic-macros): New.
13894         * cpplib.h (struct cpp_options): Add warn_variadic_macros.
13895         * cppinit.c (cpp_create_reader): Initialize it.
13896         * cppmacro.c (parse_params): Check it.
13897
13898 2004-02-19  David Daney <ddaney@avtrex.com>
13899
13900         PR preprocessor/14198
13901         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
13902         builtin_assert ("machine=mips")
13903
13904 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
13905
13906         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
13907         * system.h (DEFAULT_SHORT_ENUMS): Poison.
13908         * config/cris/cris.h: Remove a comment about
13909         DEFAULT_SHORT_ENUMS.
13910         * config/ip2k/ip2k.h: Likewise.
13911         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
13912
13913 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
13914
13915         * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
13916         when passing single SFmode quantities in general registers,
13917         put them in the high half.
13918
13919 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
13920
13921         * doc/md.texi (Standard Names): Document additional dependency on
13922         fix pattern.
13923
13924         * optabs.c (ftruncify): Remove.
13925         (expand_fix): Manually inline ftruncify above.
13926         (can_fix_p): Add FIXME note.
13927
13928 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
13929
13930         * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
13931         spe_fixuns_truncsfsi2.
13932
13933         * config/rs6000/rs6000.md (fixunssfsi2): Rename to
13934         fixuns_truncsfsi2.
13935
13936 2004-02-19  Steve Ellcey  <sje@cup.hp.com>
13937
13938         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
13939         * testsuite/gcc.dg/20040219-1.c: New test.
13940
13941 2004-02-19  Ulrich Weigand  <uweigand@de.ibm.com>
13942
13943         * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
13944         "*subsf3_cconly"): Subtraction is not commutative.
13945
13946 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
13947
13948         * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
13949         (sdbout_symbol): If called before sdbout_init, queue DECL for
13950         later and return.
13951         (sdbout_init): Set sdbout_initialized true, process decls
13952         queued earlier by sdbout_symbol.
13953         (sdbout_finish): Use size_t for index variable.
13954
13955 2004-02-19  Jeff Law  <law@redhat.com>
13956
13957         * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
13958         for unordered comparison codes.
13959
13960 2004-02-19  Ian Lance Taylor  <ian@wasabisystems.com>
13961
13962         * reload1.c (reload): Correct comment.
13963         (scan_paradoxical_subregs): Remove #if 0 and old comment.
13964         * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
13965         register variables are not used by reload.
13966
13967 2004-02-19  Hans-Peter Nilsson  <hp@axis.com>
13968
13969         PR target/14209
13970         * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
13971         constraints to not match postincrement.  Adjust the predicate to
13972         exclude a volatile memory reference.
13973
13974 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
13975
13976         * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
13977
13978 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
13979
13980         * hooks.c (hook_void_tree_int): Remove.
13981         (hook_void_constcharptr): Likewise.
13982         (hook_int_void_0): Likewise.
13983         * hooks.h: Remove the prototypes for the above three
13984         functions.
13985         * targhooks.c (hook_bool_machine_mode_true): Remove.
13986         * targhooks.h: Remove the prototype for
13987         hook_bool_machine_mode_true.
13988
13989 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
13990
13991         * emit-rtl.c (subreg_realpart_p): Remove.
13992         (reorder_insns_with_line_notes): Likewise.
13993         (end_full_sequence): Likewise.
13994         * rtl.h: Remove the prototype for the above functions.
13995
13996 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
13997
13998         * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
13999         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
14000         config/iq2000/iq2000.h, config/m32r/m32r.h,
14001         config/pdp11/pdp11.h, config/sparc/sparc.h,
14002         config/xtensa/xtensa.h: Remove commented-out or useless
14003         definitions of CASE_VECTOR_PC_RELATIVE.
14004
14005 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
14006
14007         * loop.c (all_sets_invariant_p): Remove.
14008
14009 2004-02-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
14010
14011         PR target/12916
14012         * config/sparc/sparc.h (NPARM_REGS): Delete.
14013         (BASE_RETURN_VALUE_REG): Likewise.
14014         (BASE_OUTGOING_VALUE_REG): Likewise.
14015         (BASE_PASSING_ARG_REG): Likewise.
14016         (BASE_INCOMING_ARG_REG): Likewise.
14017         * config/sparc/sparc.c (sparc_strict_argument_naming): Test
14018         TARGET_ARCH64, not TARGET_V9.
14019         (function_arg_slotno): Dispatch based on the mode class.
14020         Handle vector modes like floating-point modes.
14021         (function_arg_record_value_1): Handle vector types like
14022         floating-point types.
14023         (function_arg_record_value_2): Likewise.
14024         Calculate regno after mode transformation.
14025         (function_arg): Handle vector modes like floating-point modes.
14026         (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
14027         If ARCH64, do not recheck alignment.
14028         (function_arg_pass_by_reference): Reorder the conditions.
14029         (sparc_return_in_memory): Move after function_arg_padding.
14030         Implement calling conventions for vector modes.
14031         (sparc_struct_value_rtx): Move after sparc_return_in_memory.
14032         (function_value): Move scope of 'regbase'.
14033         Implement calling conventions for vector modes.
14034         (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
14035         and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
14036         (sparc_va_arg): Use function_arg_pass_by_reference to test whether
14037         the argument is passed by reference.
14038         (sparc_type_code): Handle vector types.
14039
14040 2004-02-19  Alan Modra  <amodra@bigpond.net.au>
14041
14042         * function.c (assign_parms): When building decl_rtl for
14043         SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
14044
14045 2004-02-19  Olivier Hainque  <hainque@act-europe.fr>
14046
14047         * expr.c (is_aligning_offset): Check if we are aligning the
14048         expressions's address over BIGGEST_ALIGNMENT in bytes, not
14049         in bits.
14050
14051 2004-02-18  Matt Austern  <austern@apple.com>
14052
14053         * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
14054         LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
14055         (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
14056         defined.  Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
14057         spec string.
14058         * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
14059
14060 2004-02-18  Zack Weinberg  <zack@codesourcery.com>
14061
14062         * dwarf2out.c (loclabel_num): Move outside #ifdef
14063         DWARF2_DEBUGGING_INFO and mark with GTY(()).
14064         * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
14065         Mark with GTY(()).
14066         (ia64_hpux_add_extern_decl): Save the decl, not the name string.
14067         Allocate memory with ggc_alloc.  No need to copy anything.
14068         (ia64_hpux_file_end): Update to match.
14069
14070 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
14071
14072         * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
14073         by default.
14074
14075 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
14076
14077         * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
14078         ("divmodtisi3"): Likewise.
14079         ("udivmoddi4", "udivmodtidi3"): Likewise.
14080         ("divmodsi4", "divmoddisi3"): Likewise.
14081         ("udivmodsi4", "udivmoddisi3"): Likewise.
14082         ("udivsi3", "umodsi3"): Likewise.
14083
14084 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
14085
14086         * config/s390/s390.c (s390_mainpool_start): Delete the main pool
14087         placeholder insn when chunkifying the pool.
14088
14089 2004-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14090
14091         * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
14092         generating PIC code.
14093
14094 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
14095
14096         * config/h8300/h8300-protos.h: Add a prototype for
14097         h8300_expand_branch.
14098         * config/h8300/h8300.c (h8300_expand_branch): New.
14099         * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
14100         bgtu, beq, bne): Call h8300_expand_branch().
14101
14102 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
14103
14104         * config/h8300/h8300-protos.h: Add prototypes for
14105         h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
14106         * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
14107         (h8300_hard_regno_mode_ok): Likewise.
14108         * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
14109         h8300_hard_regno_nregs().
14110         (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
14111
14112 2004-02-18  Per Bothner  <per@bothner.com>
14113
14114         * cpphash.h (struct cpp_buffer):  Restore return_at_eof field.  This
14115         partly reverts my 2003-10-01 change, because we're back to logically
14116         including <command line> inside the main line.
14117         * cpplex.c (_cpp_get_fresh_line):  Check return_at_eof field.
14118         * cppmacro.c (cpp_scan_nooutput):  Set return_at_eof of current buffer.
14119         Fixes PR preprocessor/14103.
14120
14121         * cppfiles.c (_cpp_stack_include):  When appropriate decrement
14122         line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
14123         (cpp_push_include):  Don't need to increment pfile's line field.
14124         * line-map.h (LAST_SOURCE_LINE_LOCATION):  Only decrement by 1.
14125
14126         * c-ppoutput.c (print struct):  New first_time field.
14127         (init_pp_output):  Set print.first_time.
14128         (pp_file_change):  Use print.first_time, rather than MAIN_FILE_P,
14129         which is set also for (say) <command line>.  Clear print.first_time.
14130
14131         * cppfiles.c (struct _cpp_file):  Comment and type for pch field
14132         does not match the code, so fix both.
14133         (should_stack_file):  Inline include_pch_p function.
14134         (include_pch_p):  Remove pointless function.
14135
14136         * cpphash.h (struct cpp_buffer):  Remove unused search_cached field.
14137
14138 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
14139
14140         * config/h8300/h8300.md (four define_peephole2's): Use
14141         h8300_regs_ok_for_stm().
14142
14143 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
14144
14145         * config/h8300/h8300-protos.h: Update the prototype for
14146         expand_a_rotate().
14147         * config/h8300/h8300.c (expand_a_rotate): Remove the first
14148         argument.
14149         * config/h8300/h8300.md: Update all callers.
14150
14151 2004-02-18  Jan Hubicka  <jh@suse.cz>
14152
14153         * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
14154         floats.
14155         (simplify_binary_operation): Deal with logicals on floats.
14156
14157         * i386.md (SSE fabs splitters): Emit new patterns.
14158         (SSE cmov splitters): Likewise.
14159         (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
14160         (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
14161         subregs.
14162         (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
14163         (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
14164
14165 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
14166
14167         * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
14168         by hand.
14169         (output_a_rotate): Tweak a comment.
14170         * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
14171         (*rotlhi3_1): Change to rotlhi3_1.
14172         (*rotlsi3_1): Change to rotlsi3_1.
14173
14174 2004-02-18  Richard Earnshaw  <rearnsha@arm.com>
14175
14176         PR target/13866
14177         * arm.c (load_multiple_operation): Don't insist that the source reg
14178         of a post-increment component is the same as the destination.
14179         (store_multiple_operation): Likewise.
14180
14181 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
14182
14183         * config/h8300/h8300.md: Move movsf patterns into one section
14184         of the file.
14185
14186 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
14187
14188         * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
14189         loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
14190         xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
14191         config/mips/linux64.h, config/pa/pa-64.h,
14192         config/rs6000/aix51.h, config/rs6000/aix52.h,
14193         config/rs6000/spe.md, config/sparc/linux.h,
14194         config/sparc/linux64.h: Update copyright.
14195
14196 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
14197
14198         * config/h8300/h8300.md: Move push patterns into one
14199         section of the file.
14200
14201 2004-02-18  Mark Mitchell <mark@codesourcery.com>
14202
14203         PR c++/11326
14204         * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
14205         fntype.
14206
14207 2004-02-18  Paul Brook  <paul@codesourcery.com>
14208
14209         * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
14210
14211 2004-02-18  Paul Brook  <paul@codesourcery.com>
14212
14213         PR debug/12934
14214         * dwarf2out.c (loc_descriptor_from_tree): Handle
14215         EXPR_WITH_FILE_LOCATION.
14216
14217 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
14218
14219         * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
14220         testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
14221         trailing whitespace from instructions.
14222
14223 2004-02-17  Geoffrey Keating  <geoffk@apple.com>
14224
14225         * configure.ac: When generating auto-build.h, pass
14226         --enable-languages to the sub-configure.
14227         Put quotes around ${program_transform_name} when generating
14228         name of as, ld, nm, objdump.
14229         * configure: Regenerate.
14230
14231 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
14232
14233         * Makefile.in (s-check, s-config, s-conditions, s-flags)
14234         (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
14235         (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
14236         (s-preds, s-iov): Do not depend on move-if-change.
14237
14238 2004-02-17  James E Wilson  <wilson@specifixinc.com>
14239
14240         * caller-save.c (insert_restore): Pass mem through copy_rtx.
14241         (insert_save): Likewise.
14242
14243 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
14244
14245         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
14246         warning.
14247
14248 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
14249
14250         * config/h8300/h8300.md (*one_complsi2_h8300): Change to
14251         *one_cmplsi2_h8300.
14252         (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
14253
14254 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
14255
14256         * config/h8300/h8300-protos.h: Update the prototype of
14257         fix_bit_operand().
14258         * config/h8300/h8300.c (fix_bit_operand): Remove the second
14259         argument "what".
14260         * config/h8300/h8300.md: Update all callers.
14261
14262 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
14263
14264         * config/h8300/h8300.c (fix_bit_operand): Change the name of
14265         the last argument to "code" from "type".
14266
14267 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
14268
14269         * config/h8300/h8300.c: Remove an extern declaration of
14270         rtx_equal_function_value_matters.
14271
14272 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
14273
14274         * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
14275         by hand.
14276         * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
14277         (*iorqi3_1): Change to iorqi3_1.
14278         (*xorqi3_1): Change to xorqi3_1.
14279
14280 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
14281
14282         * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
14283         typos.
14284
14285 2004-02-17  Jan Hubicka  <jh@suse.cz>
14286
14287         * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
14288
14289 2004-02-18  Alan Modra  <amodra@bigpond.net.au>
14290
14291         PR optimization/14119
14292         * combine.c (try_combine): When attemting to fix unrecognized insns,
14293         don't delete SETs marked with REG_EH_REGION notes.
14294
14295 2004-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
14296
14297         * combine.c (simplify_if_then_else): Do not replace
14298         (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
14299         modes differ.
14300
14301 2004-02017  Steven Bosscher  <stevenb@suse.de>
14302
14303         * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
14304         function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
14305         tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
14306         * ada/utils.c: Likewise.
14307         * cp/decl.c: Likewise.
14308         * f/com.c: Likewise.
14309         * java/class.c: Likewise.
14310
14311 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
14312
14313         * config/h8300/h8300.md: Fix comment typos.
14314
14315 2004-02-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14316
14317         * config/mips/t-iris6gld: Renamed to ...
14318         * config/mips/t-irix-gld: ... this.
14319         * config.gcc (mips-sgi-irix6*): Reflect this
14320         (mips-sgi-irix5*): Use it with GNU ld.
14321
14322         * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
14323         to ...
14324         * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
14325         * config/mips/t-irix-gld: Reflect this.
14326         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
14327
14328         * config/mips/iris5gld.h: New file.
14329         * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
14330         Only use collect2 without gas.
14331
14332         * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
14333         Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
14334         (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
14335         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
14336
14337         * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
14338         * config/mips/iris5.h: ... here.
14339
14340         * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
14341         IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
14342         (STARTFILE_SPEC, ENDFILE_SPEC): Define.
14343
14344         * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
14345         using irix_startfile_spec, irix_endfile_spec.
14346
14347 2004-02-16  Gunther Nikl  <gni@gecko.de>
14348
14349         * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
14350
14351 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
14352
14353         * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
14354         insns by hand.
14355
14356 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14357
14358         * cfghooks.c (split_edge): Speed up updating of dominators.
14359
14360 2004-02-17  Mark Mitchell  <mark@codesourcery.com>
14361
14362         PR c++/11326
14363         * c-common.c (flag_abi_version): Remove.
14364         * c-common.h (flag_abi_version): Likewise.
14365         * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
14366         * c.opt (fabi-version): Remove.
14367         * calls.c (expand_call): Always pass a function type to
14368         struct_value_rtx.  Use convert_memory_address.
14369         * common.opt (fabi-version): Add it.
14370         * flags.h (flag_abi_version): Likewise.
14371         (abi_version_at_least): New macro.
14372         * opts.c (common_handle_option): Add OPT_fabi_version.
14373         * toplev.c (flag_abi_version): Define it.
14374         * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
14375         New function.
14376         (ia64_output_mi_thunk): Use it.
14377         (ia64_struct_value_rtx): Likewise.
14378
14379 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
14380
14381         * config/h8300/h8300.c (h8300_emit_stack_adjustment):
14382         Don't generate insns by hand.
14383
14384 2004-02-17  Andrew Pinski  <pinskia@physics.uc.edu>
14385
14386         PR c++/14178
14387         * doc/invoke.texi (fabi-version): The default is 2 now.
14388
14389 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14390
14391         * loop-iv.c: New file.
14392         * Makefile.in (loop-iv.o): New.
14393         * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
14394         * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
14395         num_loop_branches): New functions.
14396         * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
14397         iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
14398         find_simple_exit, iv_number_of_iterations, iv_analysis_done,
14399         get_simple_loop_desc, free_simple_loop_desc): Declare.
14400         (simple_loop_desc): New inline function.
14401         (struct rtx_iv, struct niter_desc): New.
14402         * cfgloopmanip.c (loopify): Specify semantics more precisely.
14403         * expr.c (force_operand): Handle subregs of expressions created by
14404         loop unroller.
14405         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
14406         parts of the initialization to toplev.c
14407         * loop-unroll.c (loop_exit_at_end_p): New.
14408         (unroll_and_peel_loops): Call iv_analysis_done.
14409         (decide_peel_once_rolling, decide_peel_completely,
14410         decide_unroll_stupid, decide_unroll_constant_iterations,
14411         decide_unroll_runtime_iterations, decide_peel_simple,
14412         peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
14413         unroll_loop_runtime_iterations): Use new simple loop analysis.
14414         * loop-unswitch.c (compare_and_jump_seq): New.
14415         (may_unswitch_on_p): Renamed to ...
14416         (may_unswitch_on): Use new iv analysis.
14417         (reversed_condition): Export.
14418         (unswitch_single_loop, unswitch_loop): Use new iv analysis.
14419         * predict.c (estimate_probability): Use new simple loop analysis.
14420         * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
14421         canon_condition, simplify_using_condition): Declare.
14422         * stor-layout.c (get_mode_bounds): New.
14423         * toplev.c (rest_of_handle_loop2): Some parts of
14424         initialization/finalization moved here from loop-init.c.
14425
14426 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
14427
14428         * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
14429         pointer.
14430         (CALL_USED_REGISTERS): Likewise.
14431         (REG_ALLOC_ORDER): Likewise.
14432         (REG_CLASS) <GENERAL_REGS>: Likewise.
14433
14434 2004-02-16  Geoffrey Keating  <geoffk@apple.com>
14435
14436         * doc/md.texi (Insn Canonicalizations): Document left-chaining
14437         in associative operators.
14438         * rtlanal.c (commutative_operand_precedence): Create some new
14439         variables.  Prefer a commutative operand on the left, then
14440         binary expressions, then NEG and NOT.
14441
14442 2004-02-16  Matthias Klose  <doko@debian.org>
14443
14444         * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
14445         in terms of SHLIB_SOVERSION.
14446         * config/m68k/t-slibgcc-elf-ver: New file.
14447         * config/pa/t-slibgcc-elf-ver: New file.
14448         * config.gcc (m68k-linux, parisc-linux): Use them when not
14449         sjlj exceptions are not configured.
14450
14451 2004-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
14452
14453         * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
14454
14455 2004-02-16  Zack Weinberg  <zack@codesourcery.com>
14456
14457         * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
14458
14459 2004-02-16  Joseph S. Myers  <jsm@polyomino.org.uk>
14460
14461         * doc/sourcebuild.texi: Mention backends.html.
14462
14463 2004-02-16  Kazu Hirata  <kazu@cs.umass.edu>
14464
14465         * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
14466         line-map.c, line-map.h, var-tracking.c: Fix comment
14467         formatting.
14468
14469 2004-02-16  Richard Henderson  <rth@redhat.com>
14470
14471         * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
14472
14473         * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
14474
14475 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
14476
14477         * config/h8300/h8300.md: Remove unnecessary parallels from
14478         all define_insn and define_split patterns.
14479
14480 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
14481
14482         * config/h8300/h8300.md: Remove explicit (set_attr "cc"
14483         "clobber").
14484
14485 2004-02-15  Bernardo Innocenti  <bernie@develer.com>
14486
14487         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
14488         '%#'.
14489
14490 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
14491
14492         * config/ia64/ia64.c, config/mips/mips.c,
14493         config/mmix/mmix-modes.def: Fix comment typos.
14494
14495 2004-02-15  Roger Sayle  <roger@eyesopen.com>
14496
14497         * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
14498         (get_directive_line): Remove unused function prototype.
14499
14500 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
14501
14502         * tree-inline.c (copy_body_r): Do not replace ret_label.
14503
14504 2004-02-14  Jan Hubicka  <jh@suse.cz>
14505
14506         * i386.c (x86_four_jump_limit): New variable.
14507         (k8_avoid_jump_misspredicts): Rename to ...
14508         (ix86_avoid_jump_misspredicts): .. this one.
14509         (ix86_pad_returns): Break out from ...
14510         (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
14511         to.
14512         * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
14513
14514 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
14515
14516         * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
14517         PARALLEL is NULL.
14518
14519 2004-02-14  Per Bothner  <per@bothner.com>
14520
14521         * fix-header.c (line_table):  Move local variable in main to global.
14522         * scan.h (line_table):  Use it.
14523         * scan-decls.c (scan_decls):  Need to call linemap_lookup on token's
14524         line (recently renamed to src_loc) before calling recognized_function.
14525
14526 2004-02-14  Matt Kraai  <kraai@alumni.cmu.edu>
14527
14528         * Makefile.in: Fix comment typos.
14529
14530 2004-02-14  Olivier Hainque  <hainque@act-europe.fr>
14531
14532         * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
14533         for start_value when it is directly moved into reg, and factorize
14534         the retrieval of GET_MODE (reg).
14535
14536 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
14537
14538         * config/mips/mips-protos.h (mips_load_got_page): Delete.
14539         (mips_load_got_global): Delete.
14540         (mips_gotoff_page): Declare.
14541         * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
14542         (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
14543         UNSPEC_LOAD_GOT pattern rather than a MEM.
14544         (*load_got[sd]i): New patterns.
14545         * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
14546         (mips_load_got_page, mips_load_got_global): Delete.
14547         (mips_gotoff_page): New function.
14548         (override_options): Don't initialize mips_got_alias_set.
14549
14550 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
14551
14552         * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
14553         (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
14554         (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
14555         (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
14556         (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
14557         * config/mips/mips.c: Fix some overly-long lines.
14558         (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
14559         (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
14560
14561 2004-02-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14562
14563         * configure.ac: Search for as, ld below libexec/gcc.
14564         * configure: Regenerate.
14565
14566 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
14567
14568         * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
14569         __builtin_arm_setwcx ().
14570         * config/arm/arm.c (arm_expand_builtin): Generate operands
14571         correctly and reverse their order in call to gen_iwmmxt_tmcr ().
14572
14573 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
14574
14575         * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
14576         and "wmuluh" to "wmulsm" and "wmulum", respectively.
14577         * config/arm/arm.h (enum arm_builtins): Rename enumerators to
14578         ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
14579         * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
14580         (_mm_mulhi_pu16): Likewise.
14581
14582 2004-02-13  Zack Weinberg  <zack@codesourcery.com>
14583
14584         * xcoffout.c (xcoff_assign_fundamental_type_number): Check
14585         DECL_NAME != 0 before dereferencing.
14586
14587 2004-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
14588
14589         * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
14590         (s390_output_addr_const_extra): Declare.
14591         (s390_output_pool_entry): Remove FILE * argument.
14592         * config/s390/s390.c (s390_output_symbolic_const): Remove.
14593         (s390_output_addr_const_extra): New function.
14594         (print_operand_address): Call output_addr_const instead of
14595         s390_output_symbolic_const.
14596         (print_operand): Likewise.
14597         (s390_output_pool_entry): Use assemble_integer for symbolic constants.
14598         Remove FILE * argument.
14599         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
14600         * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
14601         call.
14602
14603 2004-02-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14604
14605         * cfgloopanal.c (mark_irreducible_loops): Rewriten.
14606         (struct edge, struct vertex, struct graph): New.
14607         (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
14608         free_graph): New functions.
14609
14610 2004-02-12  Chris Demetriou  <cgd@broadcom.com>
14611
14612         * config/mips/mips.md (casesi_internal, casesi_internal_di):
14613         Use ".set macro" to avoid warnings about multi-instruction
14614         macros, since they're intentional.
14615
14616 2004-02-12  Geoffrey Keating  <geoffk@apple.com>
14617
14618         * config/darwin.h: Add include guards.  Remove old, now incorrect,
14619         comment about STANDARD_EXEC_PREFIX.
14620
14621         * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
14622         $(GCOV_INSTALL_NAME) to install manpages.  Remove generic rule
14623         for installing .1 manpages.  Add rules for installing cpp
14624         and gcov manpages under their installed names.
14625
14626 2004-02-12  Alexandre Oliva  <aoliva@redhat.com>
14627
14628         * configure.ac (gcc_cv_ld): Don't set to LD if target is not
14629         host, but try LD_FOR_TARGET first.
14630         * configure: Rebuilt.
14631
14632 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
14633
14634         * dbxout.c: Move declaration of dbxout_type_decl outside
14635         #ifdef DBX_DEBUGGING_INFO.
14636         * c-parse.in: Don't give the asmdef production a type.
14637
14638 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
14639
14640         * debug.h (struct gcc_debug_hooks): Add type_decl field.
14641         (debug_nothing_tree_int): Prototype.
14642         (dwarf_debug_hooks): Delete, unused.
14643         * debug.c (do_nothing_debug_hooks): Update.
14644         (debug_nothing_tree_int): New function.
14645         * langhooks.h (struct lang_hooks_for_decls):
14646         Remove builtin_type_decls field.
14647         * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
14648         (LANG_HOOKS_DECLS): Update.
14649         * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
14650         Use debug_hooks->type_decl.
14651         * dbxout.c (preinit_symbols): New static.
14652         (dbx_debug_hooks, xcoff_debug_hooks): Update.
14653         (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
14654         lang_hooks.decls.builtin_type_decls.  Do scan preinit_symbols
14655         for symbols to output.
14656         (dbxout_type_decl): New function.
14657         (dbxout_symbol): If called before dbxout_init has run, queue
14658         the symbol for later.  Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
14659         to TYPE_DECLs before emitting them.
14660         * xcoffout.c (assign_type_number): Delete.
14661         (xcoff_type_numbers): New static table.
14662         (xcoff_assign_fundamental_type_number): New function.
14663         * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
14664         DBX_OUTPUT_STANDARD_TYPES.  Remove unnecessary #ifdefs.
14665         * sdbout.c: Include varray.h.
14666         (deferred_global_decls): New static.
14667         (sdb_debug_hooks): Update.
14668         (sdbout_global_decl): If we can't emit something right now,
14669         remember it in deferred_global_decls.
14670         (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
14671         (sdbout_init): Initialize deferred_global_decls.
14672         * Makefile.in: Update dependencies of sdbout.o.
14673         * dwarf2out.c (dwarf2out_type_decl): New function.
14674         (dwarf2_debug_hooks): Update.
14675         * vmsdbgout.c (vmsdbg_debug_hooks): Update.
14676         * c-decl.c (getdecls): Just return 0.
14677         (check_for_loop_decls): Don't use getdecls.
14678         (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
14679         * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
14680
14681 2004-02-12  Ulrich Weigand  <uweigand@de.ibm.com>
14682
14683         * config/s390/s390.c (s390_sched_reorder2): Remove.
14684         (TARGET_SCHED_REORDER2): Do not redefine.
14685
14686 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
14687
14688         * c-parse.in (maybe_type_qual): Delete.
14689         (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
14690         (asm_argument): New grammar rules.
14691         (extdef_1): Use asmdef.
14692         (maybeasm): Move down with other asm rules; use simple_asm_expr.
14693         (xexpr): Move up with other expression rules.
14694         (stmt): Use asm_stmt.
14695
14696         * c-typeck.c (build_asm_expr): New function - body mostly
14697         pulled from build_asm_stmt.
14698         (build_asm_stmt): Just handle tacking on the volatile qualifier.
14699         * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
14700
14701 2004-02-12  Richard Sandiford  <rsandifo@redhat.com>
14702
14703         PR bootstrap/13617
14704         * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
14705         (mips_declare_object): Make variadic.
14706         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
14707         mips_output_aligned_decl_common.
14708         * config/mips/mips.c (mips_output_aligned_decl_common): New function.
14709         (mips_declare_object): Make variadic.
14710
14711 2004-02-12  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14712
14713         * function.c (update_epilogue_consts): Teach about binary operations.
14714
14715         * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
14716         previous MEM_VOLATILE in REF.
14717         * function.c (fixup_var_refs): Save volatile_ok and set to 1.
14718         * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
14719
14720 2004-02-12  Gunther Nikl  <gni@gecko.de>
14721
14722         * config.gcc: Restore support for m68k-openbsd.
14723
14724 2004-02-12  Jan Hubicka  <jh@suse.cz>
14725
14726         * tree-optimize.c (tree_rest_of_compilation): Do not release
14727         DECL_ARGUMENTS.
14728
14729 2004-02-11  Matt Kraai  <kraai@alumni.cmu.edu>
14730
14731         * doc/install.texi: Fix the spelling of "explicitly".
14732
14733 2004-02-11  Eric Christopher  <echristo@redhat.com>
14734
14735         * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
14736         duplicate argument structure of cpp_interpret_string.
14737         * cpphash.h: Move prototype...
14738         * cpplib.h: Here.
14739         * cpplib.c: Fix calls to match new function signature.
14740
14741 2004-02-11  Joseph S. Myers  <jsm@polyomino.org.uk>
14742
14743         PR c/456
14744         * cppexp.c (num_binary_op): Don't allow comma operators in #if
14745         constant expressions at all outside C99 mode if pedantic.
14746
14747 2004-02-11  Uros Bizjak  <uros@kss-loka.si>
14748
14749         * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
14750         (log10_optab, log2_optab): Define corresponding macros.
14751         * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
14752         * genopinit.c (optabs): Implement log10_optab and log2_optab
14753         using log10?f2 and log2?f2 patterns.
14754         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
14755         using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
14756         (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
14757         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
14758
14759         * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
14760         log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
14761         log2, log2f and log2l built-ins as inline x87 intrinsics.
14762
14763 2004-02-11  Richard Henderson  <rth@redhat.com>
14764
14765         PR target/1532
14766         * flow.c (insn_dead_p): A clobber of a dead hard register is a
14767         dead insn after reload.
14768
14769 2004-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
14770
14771         * tree.h (frame_base_decl): Add GTY marker.
14772         * var-tracking.c (frame_base_decl): Likewise.
14773
14774 2004-02-11  Daniel Berlin  <dberlin@dberlin.org>
14775
14776         * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
14777         incorrect, hunk.
14778         (add_location_or_const_value_attribute): Use text_section_label,
14779         not TEXT_SECTION_NAME.
14780
14781 2004-02-11  Per Bothner  <per@bothner.com>
14782
14783         Represent column numbers using line-map's source_location.
14784         The "next available source_location" is now managed internally by
14785         line-maps.c rather than by clients.
14786         * line-map.h (struct line_map):  New field column_bits.
14787         <from_line>:  Rename field to start_location.
14788         (struct line_maps):  New fields highest_location and max_column_hint.
14789         (linemap_check_files_exited):  New declaration.
14790         (linemap_line_start):  New declaration.
14791         (linemap_add):  Remove from_line parameter; use highest_location field.
14792         (SOURCE_LINE, LAST_SOURCE_LINE):  Modify to use column_bits.
14793         (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION):  New macros.
14794         (CURRENT_LINE_MAP):  Remove macro.
14795         (linemap_position_for_column):  New inline function.
14796         * line-map.c (linemap_init):  Clear new fields.
14797         (linemap_check_files_exited):  New function, extracted from ...
14798         (linemap_free):  Use linemap_check_files_exited.
14799         (linemap_add):  Remove from_line parameter.  Various updates.
14800         (linemap_line_start):  New function.
14801         (linemap_lookeup):  Update for new field names.
14802         * cpphash.h (struct cpp_reader) <map>:  Field removed.  Because
14803         linemap_position_for_column may unpredictably change the current map,
14804         it is cleaner and simpler for us to not cache it in cpp_reader.
14805         (struct cpp_buffer):  New sysp field.
14806         Changed warned_cplusplus_comments and from_stage3 to bitfields.
14807         * cppinit.c (cpp_read_min_file):  pfile->map no longer exists.
14808         * cpplib.c (do_line, do_linemarker, _cpp_do_file_change):  Get
14809         current map using linemap_lookup.
14810         (do_linemarker):  Also set buffer's sysp field.
14811         (destringize_and_run):  No longer need to decrement current line.
14812         * cppfiles.c (_cpp_stack_file):  Set sysp from and in buffer.
14813         (search_path_head, open_file_failed):  Use buffer's sysp.
14814         (cpp_make_system_header):  Get current map using linemap_lookup.
14815         Also set buffer's sysp flag.
14816         * cppmacro.c (_cpp_builtin_macro_text):  Likewise use linemap_lookup.
14817         * cpphash.h (CPP_INCREMENT_LINE):  New macro.
14818         (struct cpp_buffer):  Moved fields saved_cur, saved_rlimit to ...
14819         (struct cpp_reader):  ... and adding saved_line_base field.
14820         * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
14821         Update accordingly.  Don't adjust line.
14822         (_cpp_scan_out_logical_line):  Use CPP_INCREMENT_LINE.
14823         * cpphash.c (CPP_IN_SYSTEM_HEADER):  Replaced macro by ...
14824         (cpp_in_system_header):  ... new inline function, using buffer's sysp.
14825         * cpperror.c (_cpp_begin_message):  Update to use cpp_in_system_header.
14826         * cpplex.c (_cpp_lex_direct):  Likewise.
14827         * cppmacro.c (_cpp_builtin_macro_text):  Likewise.
14828         * cppmacro.c (_cpp_create_definition):  Use buffer's sysp field.
14829         * cpplib.h (struct cpp_token):  Rename line field to src_loc.
14830         Remove col field as it is now subsumed by src_loc.
14831         * cpperror.c:  Update various field, parameter, and macro names.
14832         (print_location):  If col==0, try SOURCE_COLUMN of line.
14833         (cpp_error):  Use cur_token's src_loc field, rather than line+col.
14834         * cpplib.c (do_diagnostic):  Token's src_loc fields replaces line+col.
14835         * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
14836         _cpp_skip_block_comment):  Use CPP_INCREMENT_LINE.
14837         (_cpp_temp_token):  Replace cpp_token's line+col fields by src_loc.
14838         (_cpp_get_fresh_line):  Don't need to adjust line for missing newline.
14839         (_cpp_lex_direct):  Use linemap_position_for_column.
14840         * c-ppoutput.c (maybe_print_line, print_line):  Don't take map
14841         parameter.  Instead get it from the line_table global.  Adjust callers.
14842         (print):  Remove map field.  Replace line field to src_line.
14843         (init_pp_output, account_for_newlines, maybe_print_line):  Adjust.
14844         (cb_line_change):  Use SOURCE_COLUMN.  Minor optimizations.
14845         (pp_file_change):  Use MAIN_FILE_P since we cannot checked print.map.
14846         Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
14847         * cpptrad.c (copy_comment):  Rename variable.
14848         * c-lex.c (map):  Remove static variable, for same reason we removed
14849         cpp_reader's map field.
14850         (cb_line_change, cb_def_pragma, cb_define, cb_undef):  Hence we need
14851         to call linemap_lookup.
14852         (cb_line_change):  Token's line field replaced by src_loc.
14853         (fe_file_change):  Use MAINFILE_P and LAST_SOURCE_LINE macros.
14854         Don't save new_map.
14855
14856         * cpphash.h, cpperror.c, cpplib.h:  Some renames of fileline to
14857         source_location.
14858
14859 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
14860
14861         * config/rs6000/altivec.md (*movv4si_internal): At least one
14862         operand must be register_operand.
14863         (*movv8hi_internal1): Likewise.
14864         (*movv16qi_internal1): Likewise.
14865         (*movv4sf_internal1): Likewise.
14866
14867 2004-02-10  Aldy Hernandez  <aldyh@redhat.com>
14868
14869         * config/rs6000/spe.md ("*movv2si_internal"): Check for register
14870         operand.
14871         (movv4hi_internal): Same.
14872         (movv2sf_internal): Same.
14873         (movv1di_internal): Same.
14874
14875 2004-02-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
14876
14877         * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
14878         TARGET_OLDABI consistently.
14879         * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
14880         mips_va_arg,override_options,compute_frame_size,
14881         mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
14882         ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
14883         and TARGET_OLDABI consistently.
14884         * config/mips/mips.md (exception_receiver): Likewise.
14885         * config/mips/linux64.h: Likewise.
14886
14887 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
14888
14889         * gcc/config/rs6000/rs6000.c (rs6000_override_options)
14890         Set AltiVec ABI and vrsave as default for ppc64 linux.
14891         (init_cumulative_args): Post error, if try to return
14892         value in AltiVec register without enable AltiVec.
14893         (function_arg_advance): Ditto for passing arguments.
14894
14895 2004-02-11  Richard Sandiford  <rsandifo@redhat.com>
14896
14897         * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
14898         a label before updating its usage count.
14899
14900 2004-02-10  Matt Kraai  <kraai@alumni.cmu.edu>
14901
14902         * doc/install.texi: Remove extra cd.
14903
14904 2004-02-10  Ziemowit Laski  <zlaski@apple.com>
14905
14906         * c-common.c (vector_size_helper): Remove; call
14907         reconstruct_complex_type() instead.
14908         * tree.c (reconstruct_complex_type): New function
14909         (formerly vector_size_helper() in c-common.c).
14910         (make_vector): Make externally visible.
14911         * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
14912
14913 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
14914
14915         * config/h8300/h8300-protos.h: Add a prototype for
14916         h8300_regs_ok_for_stm.
14917         * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
14918         * config/h8300/h8300.md (stm_h8300s_2_advanced,
14919         stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
14920         stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
14921         stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
14922         ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
14923         ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
14924         ldm_h8300s_4_normal, ldm_h8300s_4): Use
14925         h8300_regs_ok_for_stm().
14926
14927 2004-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
14928
14929         PR c/14088
14930         * real.c (real_from_string): Look for 'X' as well as 'x' in
14931         hexfloat strings.
14932
14933 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
14934
14935         * config/h8300/h8300.md: Remove an incorrect comment about
14936         peephole2.  Add comments.
14937
14938 2004-02-10  Josef Zlomek  <zlomekj@suse.cz>
14939
14940         PR/14058
14941         * emit-rtl.c (set_decl_incoming_rtl): New.
14942         * tree.h (set_decl_incoming_rtl): New.
14943         * function.c (assign_parms): Use set_decl_incoming_rtl for setting
14944         DECL_INCOMING_RTL.
14945         * ada/misc.c (adjust_decl_rtl): Likewise.
14946
14947 2004-02-10  Per Bothner  <per@bothner.com>
14948
14949         * c-opts.c (c_common_post_options):   Don't emit working directory
14950         in cpp output if -P was specified.
14951
14952 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
14953
14954         PR c/14092
14955         * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
14956         negate_expr back to the original type.
14957
14958 2004-02-10  Alan Modra  <amodra@bigpond.net.au>
14959
14960         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
14961         bump retaddr here.
14962
14963 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
14964
14965         * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
14966         gen_lowpart_SUBREG): Move under the file in which they
14967         are actually declared.
14968
14969 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>
14970
14971         * doc/sourcebuild.texi: Add libada documentation.
14972
14973         * doc/install.texi: Update documentation on Ada build, now
14974         that the GNAT lib and tools are built automatically.
14975
14976 2004-02-10  Richard Sandiford  <rsandifo@redhat.com>
14977
14978         * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
14979         && TARGET_IRIX.
14980
14981 2004-02-09  Ziemowit Laski  <zlaski@apple.com>
14982
14983         * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
14984         boundaries outside build_component_ref() call (a macro in ObjC++).
14985
14986 2004-02-09  Bob Wilson  <bob.wilson@acm.org>
14987
14988         * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
14989         (init_cumulative_args): Likewise.
14990         (a7_overlap_mentioned_p): Delete prototype.
14991         * config/xtensa/xtensa.c (struct machine_function): Replace
14992         incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
14993         Add set_frame_ptr_insn field.
14994         (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
14995         (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
14996         if the operand is an argument in a7.  If so, copy a7 to a new pseudo
14997         at the function entry and replace the operand with the pseudo.
14998         (init_cumulative_args): Remove unused arguments.  Add new "incoming"
14999         argument and record this flag in CUMULATIVE_ARGS.
15000         (function_arg): Remove result_mode and special-case code to handle
15001         arguments in a7.  Instead, set need_a7_copy flag when there is an
15002         incoming argument in a7.
15003         (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
15004         and use the value recorded in cfun->machine->set_frame_ptr_insn.
15005         (xtensa_builtin_saveregs): Check for negative gp_left value.  Set
15006         need_a7_copy and vararg_a7 flags.  Use move_block_from_reg instead of
15007         special-case code.
15008         (a7_overlap_mentioned_p): Delete.
15009         * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
15010         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
15011         arguments to init_cumulative_args and pass "incoming" flag instead.
15012         (BLOCK_REG_PADDING): Delete.
15013         * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
15014         checks for reload_in_progress and reload_completed.  Update calls to
15015         xtensa_copy_incoming_a7.
15016         (ashlsi3): Rename existing insn to ashlsi3_internal.  Add expander
15017         to call xtensa_copy_incoming_a7.
15018
15019 2004-02-09  DJ Delorie  <dj@redhat.com>
15020
15021         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
15022         longer modify standard_exec_prefix, standard_bindir_prefix, or
15023         standard_startfile_prefix.
15024
15025 2004-02-09  James E Wilson  <wilson@specifixinc.com>
15026
15027         PR c++/11295
15028         * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
15029         to expand_expr_real call, and pass in alt_rtl as last argument.
15030
15031         PR libstdc++/5625
15032         * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
15033         * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
15034         * builtins.def (BUILT_IN_EXTEND_POINTER): New.
15035         * except.c (expand_builtin_extend_pointer): New.
15036         * except.h (expand_builtin_extend_pointer): Declare.
15037
15038 2004-02-09  David Edelsohn  <edelsohn@gnu.org>
15039
15040         * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
15041         unaligned loads and stores.
15042
15043 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15044
15045         * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
15046         * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
15047
15048         * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
15049         * config/mips/iris5.h: ... here.
15050         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
15051
15052         * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
15053         * config/mips/iris5.h: ... here.
15054
15055 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15056
15057         * configure.ac: Remove default executable files before AC_PROG_CC.
15058         * configure: Regenerate.
15059
15060 2004-02-09  Kazu Hirata  <kazu@cs.umass.edu>
15061
15062         PR target/13721
15063         * config/h8300/h8300.c (byte_reg): Call abort() if asked to
15064         print a operand other than a register.
15065
15066 2004-02-09  Roger Sayle  <roger@eyesopen.com>
15067
15068         * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
15069         tree code rather than call fold_convert, which doesn't specify a
15070         default floating point to integer conversion.
15071
15072 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
15073
15074         * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
15075         code to support SGS assembler.  Reformat adjacent code where possible.
15076         * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
15077         definition.
15078         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
15079         for '%#'.
15080         * config/m68k/linux.h, config/m68k/m68k.c,
15081         * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
15082         macros and asm_printf() format strings.
15083         * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
15084         * config/m68k/linux.h: Update copyright.
15085         * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
15086
15087 2004-02-08  Andreas Schwab  <schwab@suse.de>
15088             Bernardo Innocenti  <bernie@develer.com>
15089
15090         * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
15091         REGISTER_PREFIX.
15092         * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
15093         frame pointer register, overridable by OS targets.
15094         * (M68K_REGNAME): Macro to obtain register name for asm output,
15095         eventually replacing %a6 with M68K_FP_REG_NAME.
15096         * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
15097         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
15098         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
15099         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
15100         * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
15101
15102 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
15103
15104         * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
15105         hook_rtx_tree_int_null.
15106         * targhooks.c (default_struct_value_rtx): Remove.
15107         * targhooks.h: Remove the prototype for
15108         default_struct_value_rtx.
15109         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
15110         config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
15111         config/ip2k/ip2k.c, config/iq2000/iq2000.c,
15112         config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
15113         config/mn10300/mn10300.c, config/pdp11/pdp11.c,
15114         config/rs6000/rs6000.c, config/s390/s390.c,
15115         config/stormy16/stormy16.c, config/v850/v850.c,
15116         config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
15117         * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
15118
15119 2004-02-08  Joseph S. Myers  <jsm@polyomino.org.uk>
15120
15121         * README.Portability: Change "ISO C89" to "ISO C90".
15122         * c-parse.in (primary, initelt): Likewise.
15123
15124 2004-02-08  Richard Sandiford  <rsandifo@redhat.com>
15125
15126         * real.c (encode_ibm_extended): Normalize the input value before
15127         converting it to a double.  Handle the case where a normal value
15128         rounds to infinity.
15129
15130 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
15131
15132         * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
15133         warning.
15134         * cse.c (preferrable): Change to preferable. Update all of its
15135         callers.
15136         * genautomata.c (ainsn): Change
15137         first_ainsn_with_given_equialence_num to
15138         first_ainsn_with_given_equivalence_num.  Update all of its
15139         references.
15140
15141 2004-02-08  Jan Hubicka  <jh@suse.cz>
15142
15143         * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
15144
15145 2004-02-07  David Edelsohn  <edelsohn@gnu.org>
15146
15147         * function.c (assign_parms): Fix formatting.
15148
15149 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
15150
15151         * default.h (PROMOTE_PROTOTYPES): Remove.
15152         * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
15153         STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
15154         EXPAND_BUILTIN_SAVEREGS): Poison.
15155         * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
15156         hook_bool_tree_false.
15157         (TARGET_PROMOTE_PROTOTYPES): Likewise.
15158         * target.h: Replace SETUP_INCOMING_VARARGS with
15159         targetm.calls.setup_incoming_varargs().
15160         * targhooks.c (default_promote_function_return): Remove.
15161         (default_promote_prototypes): Likewise.
15162         (default_struct_value_rtx): Always abort().
15163         (default_expand_builtin_saveregs): Always print an error
15164         message.
15165         (default_setup_incoming_varargs): Do nothing.
15166         (default_pretend_outgoing_varargs_named): Don't depend on
15167         SETUP_INCOMING_VARARGS.
15168         * targhooks.h: Remove the prototype for
15169         default_promote_function_return and
15170         default_promote_prototypes.
15171
15172 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
15173
15174         * system.h (SHARED_SECTION_ASM_OP): Poison.
15175         * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
15176         * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
15177
15178 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
15179
15180         Bug 13856
15181         * c-decl.c (diagnose_mismatched_decls): Only give special
15182         treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
15183         is also true.
15184         (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
15185         DECL_FUNCTION_CODE when defining a built-in function.
15186         Don't update DECL_ESTIMATED_INSNS.
15187         * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
15188         FUNCTION_DECLs.
15189         * tree.h: Delete DECL_ESTIMATED_INSNS.
15190         * tree-inline.c (struct inline_data): Delete inlined_insns field.
15191         (expand_call_inline, optimize_inline_calls): Don't update
15192         DECL_ESTIMATED_INSNS nor inlined_insns.
15193         * cgraphunit.c (cgraph_analyze_function): Don't update
15194         DECL_ESTIMATED_INSNS.
15195
15196 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
15197
15198         * c-common.c (shadow_warning): Delete.
15199         * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
15200         * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
15201         * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
15202         * c-parse.in (free_parser_stacks): Delete.
15203
15204 2004-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
15205
15206         * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
15207         config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
15208         Use the top level mkinstalldirs, not the one in the gcc subdir.
15209         * mkinstalldirs: Remove (from the gcc subdir).
15210
15211 2004-02-07  Roger Sayle  <roger@eyesopen.com>
15212
15213         PR middle-end/13696
15214         * fold-const.c (fold_convert): New function to provide type
15215         conversion to the middle-end without using convert.
15216         (negate_expr, associate_trees, size_diffop, omit_one_operand,
15217         operand_equal_for_comparison_p, pedantic_omit_one_operand,
15218         invert_truthvalue, optimize_bit_field_compare, range_binop,
15219         decode_field_reference, make_range, build_range_check, unextend,
15220         fold_truthop, extract_muldiv_1, fold_mathfn_compare,
15221         fold_binary_op_with_conditional_arg, fold_inf_compare,
15222         fold_single_bit_test, fold, multiple_of_p): Replace all calls to
15223         convert with calls to fold_convert.
15224
15225 2004-02-07  Jan Hubicka  <jh@suse.cz>
15226
15227         * genrecog.c (find_operand): add extra argument stop.
15228         (validate_pattern): Verify that mach_dup is duplicating operand
15229         defined lexically earlier.
15230
15231 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
15232
15233         * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
15234         * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
15235         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
15236         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
15237         config/ia64/ia64.h, config/ip2k/ip2k.h,
15238         config/iq2000/iq2000.h, config/mips/iris5.h,
15239         config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
15240         config/rs6000/aix51.h, config/rs6000/aix52.h,
15241         config/rs6000/darwin.h, config/rs6000/rs6000.h,
15242         config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
15243         config/sparc/linux.h, config/sparc/linux64.h,
15244         config/sparc/netbsd-elf.h, config/sparc/sparc.h,
15245         config/xtensa/xtensa.h: Remove the definitions of
15246         MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
15247         MAX_WCHAR_TYPE_SIZE.
15248         * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
15249         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
15250
15251 2004-02-07  Stephane Carrez  <stcarrez@nerim.fr>
15252
15253         PR bootstrap/13990
15254         * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
15255         gen_rtx_NE.
15256
15257 2004-02-07  Josef Zlomek  <zlomekj@suse.cz>
15258
15259         * var-tracking.c (vt_add_function_parameters): Surround checkings by
15260         #ifdef ENABLE_CHECKING and #endif.
15261
15262 2004-02-07  Roger Sayle  <roger@eyesopen.com>
15263
15264         * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
15265         either (-A)-B or (-B)-A, if A or B is easily negated respectively.
15266         (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
15267         integer types and floating point with unsafe_math_optimizations.
15268         Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
15269         Optimize A - B as A + (-B), if B is easily negated.
15270
15271 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
15272
15273         * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
15274         config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
15275         config/m32r/linux.h, config/rs6000/ppc64-fp.c,
15276         config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
15277         Update copyright.
15278
15279 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
15280
15281         * c-ppoutput.c, var-tracking.c: Fix comment typos.
15282
15283 2004-02-06  James E Wilson  <wilson@specifixinc.com>
15284
15285         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
15286         glibc 2.3 or better.
15287
15288 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
15289
15290         * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
15291         to FLOAT_LIB_COMPARE_RETURNS_BOOL.
15292
15293 2004-02-07  Alan Modra  <amodra@bigpond.net.au>
15294
15295         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
15296         (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
15297         (SHLIB_MKMAP_OPTS): Delete.
15298         (TARGET_LIBGCC2_CFLAGS): Add -specs.
15299         (bispecs): Add rule.
15300         * config/rs6000/libgcc-ppc64.ver: New file.
15301         * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
15302         (__floatdidf, __floatdisf): Optimize multiply.
15303         (__fixunstfdi): New function.
15304         * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
15305         real and imag parts larger than one register.
15306         (function_arg): Correct type of reg used when fp arg split partially
15307         to stack.
15308         * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
15309         and __MACH__ or __powerpc64__.
15310
15311 2004-02-06  Roger Sayle  <roger@eyesopen.com>
15312             Ulrich Weigand  <uweigand@de.ibm.com>
15313
15314         * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
15315         of gen_highpart or gen_lowpart when the floating point format is
15316         wider than the result mode.
15317
15318 2004-02-06  Andrew Pinski  <pinskia@physics.uc.edu>
15319
15320         * dwarf2out.c (loclabel_num): Move into #ifdef
15321         DWARF2_DEBUGGING_INFO.
15322
15323 2004-02-06  Ziemowit Laski  <zlaski@apple.com>
15324
15325         * objc/objc-act.c (build_super_template) the 'class' field of
15326         'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
15327         (get_super_receiver): Likewise.
15328
15329 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
15330
15331         * reload1.c (check_eliminable_occurrences): Optimize the reset
15332         of can_eliminate.
15333         (eliminate_regs_in_insn): Likewise.
15334
15335 2004-02-06  Daniel Berlin <dberlin@dberlin.org>
15336             Josef Zlomek  <zlomekj@suse.cz>
15337
15338         * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
15339         at the beginning of function, call dwarf2out_var_location for
15340         NOTE_INSN_VAR_LOCATION note.
15341         (struct var_loc_node, struct var_loc_list_def, loclabel_num,
15342         decl_loc_table): New.
15343         (lookup_decl_loc): New function.
15344         (add_var_loc_to_decl): New function.
15345         (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
15346         only if can_use_fbreg.
15347         (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
15348         functions.
15349         (loc_descriptor): Likewise. Process VAR_LOCATION.
15350         (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
15351         (loc_descriptor_from_tree): Call mem_loc_descriptor with
15352         can_use_fbreg == true.
15353         (add_location_or_const_value_attribute): Added parameter enum
15354         dwarf_attribute attr, generate attribute ATTR.  Create the location list.
15355         (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
15356         (gen_formal_parameter_die): Call add_location_or_const_value_attribute
15357         with attr == DW_AT_location.
15358         (gen_subprogram_die): Generate the location list for DW_AT_frame_base
15359         if frame_base_decl is defined and has a location list.
15360         (gen_variable_die): Call add_location_or_const_value_attribute with
15361         attr == DW_AT_location.
15362         (dwarf2out_var_location): New function.
15363         (dwarf2out_begin_function): New function.
15364         (dwarf2out_init): Create decl_loc_table.
15365
15366 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
15367
15368         * loop.c (force_movables): Transitively increase the priorities of
15369         all insns forces by an insn, not just the first one.
15370
15371 2004-02-06  Josef Zlomek  <zlomekj@suse.cz>
15372             Daniel Berlin <dberlin@dberlin.org>
15373
15374         Josef Zlomek  <zlomekj@suse.cz>
15375         * Makefile.in (var-tracking.o): New.
15376         * common.opt (fvar-tracking): New.
15377         * flags.h (flag_var_tracking): New.
15378         * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
15379         * opts.c (common_handle_option): Add OPT_fvar_tracking.
15380         * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
15381         * rtl.c (note_insn_name): Likewise.
15382         * rtl.def (VAR_LOCATION): New.
15383         * rtl.h (NOTE_VAR_LOCATION): New.
15384         (NOTE_VAR_LOCATION_DECL): New.
15385         (NOTE_VAR_LOCATION_LOC): New.
15386         (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
15387         (variable_tracking_main): New exported function.
15388         * timevar.def (TV_VAR_TRACKING): New.
15389         * toplev.c (enum dump_file_index): Added DFI_vartrack.
15390         (dump_file): "vartrack" was added (-dV).
15391         (flag_var_tracking): New.
15392         (f_options): "var-tracking" was added.
15393         (rest_of_handle_variable_tracking): New function.
15394         (rest_of_compilation): Run variable tracking.
15395         (process_options): If user has not specified flag_var_tracking set it
15396         according to optimize, debug_info_level and debug_hooks.
15397         * tree.h (frame_base_decl): New.
15398         * var-tracking.c: New file.
15399         * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
15400         (ia64_override_options): Set flags to run variable tracking in machine
15401         dependent reorg instead of toplev.c.
15402         (ia64_reorg): Run variable tracking if wanted.
15403         * doc/invoke.texi: Mention variable tracking in -dV,
15404         add and -fvar-tracking.
15405         * doc/passes.texi: Added variable tracking pass.
15406
15407         Daniel Berlin <dberlin@dberlin.org>
15408         * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
15409         * dbxout.c (dbx_debug_hooks): Likewise.
15410         (xcoff_debug): Likewise.
15411         * debug.c (do_nothing_debug_hooks): Likewise.
15412         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
15413         * dwarfout.c (dwarf_debug_hooks): Likewise.
15414         * sdbout.c (sdb_debug_hooks): Likewise.
15415         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15416         * final.c (final_scan_insn): Call var_location debug hook for each
15417         NOTE_INSN_VAR_LOCATION.
15418
15419 2004-02-06  Jan Hubicka  <jh@suse.cz>
15420
15421         * flow.c (update_life_info): Allocate reg_deaths when called from
15422         scheudler.
15423         (attempt_auto_inc):  Update life ranges accordingly.
15424
15425 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
15426
15427         PR debug/11816
15428         * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
15429
15430 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
15431
15432         * cfganal.c (flow_call_edges_add): Never split a libcall block.
15433
15434 2004-02-06  Daniel Berlin  <dberlin@dberlin.org>
15435
15436         * dwarf2out.c (output_loc_list): Don't use deltas if we have
15437         a separate line info table in use.
15438         Use the correct size for terminators.
15439         (output_die): Use offset, not delta.
15440
15441 2004-02-06  H.J. Lu  <hongjiu.lu@intel.com>
15442
15443         * doc/invoke.texi: Remove the pni option from -mfpmath=.
15444
15445 2004-02-06  Jan Hubicka  <jh@suse.cz>
15446
15447         * recog.c (split_all_insns): Do not update reg info.
15448         * regrename.c (regrename_optimize): Likewise.
15449         * toplev.c (rest_of_handle_reorder_blocks): Likewise.
15450         * flow.c (struct propagate_block_info): Add insn_num field.
15451         (reg_deaths): New array.
15452         (life_analysis): Free reg_deaths info.
15453         (allocate_reg_life_data): Allocate reg_deaths array.
15454         (propagate_one_insn): Use new array.
15455         (init_propagate_block): Initialize it.
15456         (free_propagate_block_info): Finish compuation of
15457         REG_LIVE_LENGTH
15458         (attempt_auto_inc): Sanity check that REG_INFO is not
15459         computed at same time.
15460         (mark_used_regs): Update new array.
15461
15462         * reg-stack.c (subst_stack_regs): Unshare clobbers before
15463         substitution.
15464
15465 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
15466
15467         * config/s390/s390.md (*extendsiqi2_short_displ): Change to
15468         *extendqisi2_short_displ.
15469
15470 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
15471
15472         * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
15473         * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
15474         (emit_library_call_value_1): Likewise pass nargs.
15475         * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
15476         * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
15477         * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
15478         parameter instead of scanning TYPE_ARGS_TYPES to count args.
15479         * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
15480         prototype.
15481         * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
15482         (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
15483         (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
15484         * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
15485         INIT_CUMULATIVE_ARGS.
15486         * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
15487         * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
15488         config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
15489         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
15490         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
15491         config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
15492         config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
15493         config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
15494         config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
15495         config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
15496         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
15497         config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
15498
15499 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
15500
15501         * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
15502         possible.
15503
15504 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
15505
15506         * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
15507         note containing (plus (reg) (const_int)), where reg is an
15508         eliminable reg, then perform the register elimination without
15509         depending on eliminate_regs().
15510
15511 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
15512
15513         * config/arc/arc.c (arc_return_in_memory): Check the return
15514         value of int_size_in_bytes against -1.  Don't check
15515         TREE_ADDRESSABLE.
15516         * config/avr/avr.c (avr_return_in_memory): Check the return
15517         value of int_size_in_bytes against -1.
15518         * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
15519         * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
15520         Likewise.
15521         * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
15522         * config/stormy16/stormy16.c (xstormy16_return_in_memory):
15523         Likewise.
15524
15525 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
15526
15527         * config/frv/frv-protos.h: Remove the prototype for
15528         frv_setup_incoming_varargs.
15529         * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
15530         (frv_setup_incoming_varargs): Make it static.
15531         * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
15532
15533 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
15534
15535         * config/fr30/fr30-protos.h: Remove the prototype for
15536         fr30_setup_incoming_varargs.
15537         Update the prototypes for fr30_num_arg_regs and
15538         fr30_function_arg_partial_nregs.
15539         * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
15540         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
15541         (fr30_setup_incoming_varargs): Make it static.
15542         Add argument second_time.  Don't do anything when second_time
15543         is nonzero.
15544         (fr30_num_arg_regs): Change the type of the first argument to
15545         enum machine_mode.
15546         (fr30_function_arg_partial_nregs): Change the type of the
15547         second argument to enum machine_mode.
15548         * config/fr30/fr30.h (STRUCT_VALUE): Remove.
15549         (SETUP_INCOMING_VARARGS): Remove.
15550
15551 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
15552
15553         * config/arc/arc-protos.h: Remove the prototype for
15554         arc_setup_incoming_varargs.
15555         * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
15556         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
15557         (arc_setup_incoming_varargs): Make it static.
15558         (arc_external_libcall): Likewise.
15559         * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
15560         Remove the commented-out definition of
15561         ASM_OUTPUT_EXTERNAL_LIBCALL.
15562
15563 2004-02-05  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
15564
15565         * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
15566         to $$(slibdir) in the installation commands.
15567
15568 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
15569
15570         * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
15571         with inner_regno, not regno.
15572         * rtlanal.c (refers_to_regno_p): Same.
15573
15574 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
15575
15576         * config.gcc: Remove i370 support.
15577
15578 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
15579
15580         * doc/install.texi:  Update automake and autoconf version
15581         requirements.  Note where to find gcj automake version.
15582
15583 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
15584
15585         * Makefile.in (generate-manpages): Move dependencies to ...
15586         (man): here.
15587         * doc/makefile.texi: Document new targets.
15588         * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
15589
15590 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
15591
15592         PR/13485
15593         Makefile.in (srcextra):  Add a level of indirection to ...
15594         (gcc.srcextra): ... here.
15595         (po-generated): Delete.
15596         (po/$(PACKAGE).pot: Use srcextra instead of po-generated.  Depend on
15597         options.c.
15598         (start.encap): Remove superfluous lang.srcextra dependency.
15599         objc/Make-lang.in (po-generated):  Delete.
15600
15601 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
15602
15603         * config/ia64/ia64.c (REG_GP): Remove.
15604
15605 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15606
15607         * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
15608
15609 2004-02-05  Devang Patel  <dpatel@apple.com>
15610
15611         * dwarf2out.c (force_type_die): Look up input type itself
15612         instead of root_type() of type.
15613
15614 2004-02-05  Andreas Krebbel  <krebbel1@de.ibm.com>
15615
15616         * config/s390/s390.md ("*tmqidi_ext"): New insn.
15617         ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
15618         pre-reload splitters are transformed to post-reload
15619         define_insn_and_split patterns.
15620         ("*tmqisi_ext"): Renamed old "*tmqi_ext".
15621
15622 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
15623
15624         * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
15625         TARGET_PROMOTE_PROTOTYPES.
15626
15627 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15628
15629         PR middle-end/13750
15630         Revert:
15631         2004-01-15  Geoffrey Keating  <geoffk@apple.com>
15632         PR pch/13361
15633         * c-typeck.c (constructor_asmspec): Delete.
15634         (struct initializer_stack): Delete field 'asmspec'.
15635         (start_init): Delete saving of asmspec.
15636         (finish_init): Don't update constructor_asmspec.
15637         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
15638         * stmt.c (expand_asm): Duplicate strings from tree.
15639         (expand_asm_operands): Likewise.
15640         * tree.c (tree_size): Update computation of size of STRING_CST.
15641         (make_node): Don't make STRING_CST nodes.
15642         (build_string): Allocate string with tree node.
15643         * tree.def (STRING_CST): Update comment.
15644         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
15645         (tree_string): Place contents of string in tree node.
15646         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
15647         from tree.
15648
15649 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
15650
15651         * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
15652         msgid.
15653
15654 2004-02-05  Dorit Naishlos  <dorit@il.ibm.com>
15655
15656         * config/rs6000/altivec.md (*movv4si_internal): At least one
15657         operand must be altivec_register_operand.
15658         (*movv8hi_internal1): Likewise.
15659         (*movv16qi_internal1): Likewise.
15660         (*movv4sf_internal1): Likewise.
15661
15662 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
15663
15664         * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
15665         * configure: Regenerate.
15666
15667 2004-02-05  Jonathan Wakely  <redi@gcc.gnu.org>
15668
15669         * doc/install.texi: Update description of --gxx-include-dir to
15670         give correct default value.
15671
15672 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
15673
15674         * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
15675         8 with MAC_REG.
15676
15677 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
15678
15679         * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
15680         gen_rtx_PARALLEL.
15681
15682 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
15683
15684         * emit-rtl.c: Update the comment about the file.
15685
15686 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
15687
15688         * sourcebuild.texi (Test Idioms): Update testcase naming
15689         conventions.
15690
15691 2004-02-04  Per Bothner  <per@bothner.com>
15692
15693         Partially revert/redo 2003-10-01 change; fix -fworking-directory.
15694         * c-ppoutput.c (pp_dir_change):  New function.
15695         * c-common.h (pp_dir_change):  New declaration.
15696         * cpplib.h (struct cpp_options):  Remove working_directory field.
15697         * cppinit.c (cpp_find_main_file, cpp_push_main_file):  Merge back to
15698         (cpp_read_main_file):  as before 10-01.  Call _cpp_stack_file.
15699         Don't handle -fworking_directory here, but in c_common_post_options.
15700         (read_original_directory): Don't back up when done.
15701         Don't clear no-longer used working_directory flag.
15702         * cpplib.h:  Update declarations to match.
15703         * c-lex.c (cb_dir_change):  Move to c-opts.c.
15704         (init_c_lex):  Don't set dir_change callback here, since we want
15705         to set it even if flag_preprocess_only.
15706         * c-opts.c (cb_dir_change):  Function moved from c-lex.c.
15707         (c_common_post_options):  Set dir_change callback.
15708         Call pp_dir_change if approporiate.
15709         (finish_options):  Don't call cpp_find_main_file here.  Hence remove
15710         unneeded parameter and result. Do LC_RENAME for <built-in>.
15711         (c_common_post_options):  Call cpp_read_main_file here instead.
15712         (c_common_init):  Update accordingly.
15713         (push_command_line_include):  Don't cpp_push_main_file.
15714         Do LC_RENAME rather than LC_LEASE to get back to main file.
15715         Compared to pre-10-01 version, inline cpp_rename_to_main_file.
15716         (c_common_parse_file):  Call cpp_read_main_file for subsequent main
15717         files, but call finish_options for all files.
15718         * c-opts.c (sanitize_cpp_opts):  Don't set cpp_opts->working_directory.
15719         * fix-header.c (read_scan_file):  Call cpp_read_main_file instead of
15720         cpp_find_main_file + cpp_push_main_file.
15721         * c-lex.c (fe_file_change):  Don't set main_input_filename here.
15722         * opts.c (handle_options):  Only set main_input_filename first time.
15723
15724 2004-02-05  Ian Lance Taylor  <ian@wasabisystems.com>
15725
15726         * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
15727
15728 2004-02-04  Geoffrey Keating  <geoffk@apple.com>
15729
15730         * reload.c (find_equiv_reg): When checking for register overlap,
15731         don't index hard_regno_nregs with a pseudo-reg.
15732
15733 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
15734
15735         * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
15736
15737 2004-02-04  David Edelsohn  <edelsohn@gnu.org>
15738
15739         * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
15740         against FIRST_PSEUDO_REGISTER.
15741
15742 2004-02-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15743
15744         * Makefile.in: Move target, host overrides after per-language
15745         fragments.
15746
15747         * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
15748         (GNATLIBCFLAGS): Remove -g.
15749
15750 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
15751
15752         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
15753         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
15754         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
15755         config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
15756         config/pdp11/pdp11.c, config/rs6000/rs6000.c,
15757         config/sparc/sparc.c, config/vax/vax.c: Revert the
15758         replacements of "FALLTHRU" with "Fall through" done in the
15759         previous patch.
15760
15761 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
15762
15763         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
15764         config/arm/arm.c, config/arm/arm.md,
15765         config/cris/cris-protos.h, config/fr30/fr30.c,
15766         config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
15767         config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
15768         config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
15769         config/ip2k/ip2k.md, config/ip2k/libgcc.S,
15770         config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
15771         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
15772         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
15773         config/ns32k/netbsd.h, config/ns32k/ns32k.c,
15774         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
15775         config/rs6000/darwin-ldouble.c, config/s390/s390.h,
15776         config/s390/s390.md, config/sparc/netbsd-elf.h,
15777         config/sparc/openbsd.h, config/sparc/sparc.c,
15778         config/xtensa/lib2funcs.S: Fix comment formatting.
15779
15780 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
15781
15782         * config/alpha/alpha.c, config/arc/arc.c,
15783         config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
15784         config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
15785         config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
15786         config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
15787         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
15788         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
15789         config/iq2000/iq2000.c, config/m32r/m32r.c,
15790         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
15791         config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
15792         config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
15793         config/rs6000/rs6000.h, config/sparc/sparc.c,
15794         config/vax/vax.c: Fix comment typos.  Follow spelling
15795         conventions.
15796
15797 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
15798
15799         * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
15800         caller-save.c, df.h, genconfig.c, global.c, lcm.c,
15801         ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
15802         sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
15803         config/arm/fpa.md, config/arm/iwmmxt.md,
15804         config/arm/netbsd-elf.h, config/arm/netbsd.h,
15805         config/m68hc11/m68hc11.md, config/mips/iris5.h,
15806         config/mn10300/mn10300.md, config/rs6000/altivec.md,
15807         config/sparc/netbsd-elf.h: Update copyright.
15808
15809 2004-02-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
15810
15811         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
15812         for all modes whose size is greater than 8 bytes if ARCH32.
15813         (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
15814         by reference if ARCH32.
15815
15816 2004-02-04  Aldy Hernandez  <aldyh@redhat.com>
15817
15818         * cgraphunit.c (cgraph_postorder): Fix typo in comment.
15819
15820 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
15821
15822         * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
15823         to before adddi3 insn patterns.
15824         ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
15825         "reload_insi"): Move to before addsi3 insn patterns.
15826
15827 2004-02-04  Mark Mitchell  <mark@codesourcery.com>
15828
15829         * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
15830         parameter.  Use it instead of current_function_is_thunk.
15831         * function.h (struct function): Update documentation for is_thunk.
15832         * tree.h (CALL_FROM_THUNK_P): New macro.
15833         * config/alpha/alpha.c (alpha_sa_mask): Do not check
15834         no_new_pseudos when testing current_function_is_thunk.
15835         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
15836
15837 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
15838
15839         * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
15840         TARGET_SETUP_INCOMING_VARARGS.
15841
15842 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
15843
15844         * emit-rtl.c (gen_rtx): Remove.
15845         * genattrtab.c: Don't mention gen_rtx in a comment.
15846         * rtl.h: Remove the prototype for gen_rtx.
15847         * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
15848
15849 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
15850
15851         * config/arc/arc.h, config/fr30/fr30.h
15852         (SETUP_INCOMING_VARARGS): Remove the target-independent
15853         comments.
15854         * doc/tm.texi: Don't mention deprecated target macros.
15855
15856 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
15857
15858         * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
15859         target-independent comment.
15860
15861 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
15862
15863         * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
15864         mention deprecated target macros.
15865
15866 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
15867
15868         * config.gcc: Remove obsolete ports and configurations.
15869         * config/linux-aout.h, config/netware.h,
15870         config/t-linux-gnulibc1, config/d30v/abi,
15871         config/d30v/d30v-protos.h, config/d30v/d30v.c,
15872         config/d30v/d30v.h, config/d30v/d30v.md,
15873         config/d30v/libgcc1.asm, config/d30v/t-d30v,
15874         config/dsp16xx/dsp16xx-modes.def,
15875         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
15876         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
15877         config/i370/README, config/i370/i370-c.c,
15878         config/i370/i370-protos.h, config/i370/i370.c,
15879         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
15880         config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
15881         config/i386/freebsd-aout.h, config/i386/linux-aout.h,
15882         config/i386/moss.h, config/i386/netware.h,
15883         config/i386/svr3.ifile, config/i386/svr3dbx.h,
15884         config/i386/svr3gas.h, config/i386/svr3z.ifile,
15885         config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
15886         config/i960/i960-c.c, config/i960/i960-coff.h,
15887         config/i960/i960-modes.def, config/i960/i960-protos.h,
15888         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
15889         config/i960/rtems.h, config/i960/t-960bare,
15890         config/m68k/hp310.h, config/m68k/hp320.h,
15891         config/m68k/hp320base.h, config/m68k/m68kv4.h,
15892         config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
15893         Remove.
15894         * doc/extend.texi, doc/install.texi, doc/invoke.texi,
15895         doc/md.texi: Remove mentions of obsolete ports.
15896
15897 2004-02-04  Jan Hubicka  <jh@suse.cz>
15898
15899         * alias.c (find_base_term, get_addr):  Do not dereference NULL
15900         pointer when all VALUE's locations has been invalidated.
15901         (rtx_equal_for_memref_p): Simplify checking of VALUEs.
15902
15903 2004-02-03  Wolfgang Bangerth  <bangerth@dealii.org>
15904
15905         * doc/invoke.texi (x86 options): Fix spelling/wording.
15906
15907 2004-02-03  Richard Sandiford  <rsandifo@redhat.com>
15908
15909         * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
15910         put the original string in a comment.
15911         * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
15912         * config/mips/mips.c (mips_output_ascii): Likewise.
15913         * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
15914
15915 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
15916
15917         * system.h (GIV_SORT_CRITERION): Poison.
15918         * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
15919         * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
15920
15921 2004-02-03  Roger Sayle  <roger@eyesopen.com>
15922
15923         PR target/9348
15924         * expr.c (expand_expr_real) <MULT_EXPR>:  When performing widening
15925         multiplies with a multiplication of the wrong signedness, its the
15926         signedness of the multiplication that we've performed that needs to
15927         be passed to expand_mult_highpart_adjust.  Avoid emitting a nop-move
15928         if expand_mult_highpart_adjust places the result in target.
15929
15930 2004-02-03  Richard Henderson  <rth@redhat.com>
15931
15932         * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
15933
15934 2004-02-03  J"orn Rennecke <joern.rennecke@superh.com>
15935
15936         * config.gcc (sh[234]l): Use little endian fragments.
15937
15938 2004-02-03  Paul Koning  <pkoning@equallogic.com>
15939
15940         * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
15941         * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
15942         * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
15943         encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
15944         floating point format.
15945         (pdp11_f_format, pdp11_d_format): New real_format descriptors for
15946         the above functions.
15947         (output_move_quad): Output float values in correct target format.
15948         (legitimate_const_double_p): New function.
15949         * config/pdp11/pdp11.h: Fix typos.
15950         (FLOAT_WORDS_BIG_ENDIAN): Add definition.
15951         (TARGET_FLOAT_FORMAT): Ditto.
15952         (pdp11_f_format, pdp11_d_format): Add external declarations.
15953         (MAX_REGS_PER_ADDRESS): Corrected.
15954         (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
15955         (PRINT_OPERAND): Output float literals in target format.
15956
15957 2004-02-03  Mark Mitchell  <mark@codesourcery.com>
15958
15959         PR c++/13975
15960         * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
15961         TI_PRIVATE.
15962         (access_public_node): Redefine.
15963         (access_protected_node): Likewise.
15964         (access_private_node): Likewise.
15965         * tree.c (build_common_tree_nodes): Create access_public_node,
15966         access_protected_node, and access_private_node.
15967
15968 2004-02-03  Steve Ellcey  <sje@cup.hp.com>
15969
15970         * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
15971         (MASK_INLINE_INT_DIV_THR): Ditto.
15972         (MASK_INLINE_SQRT_LAT): Ditto.
15973         (MASK_INLINE_SQRT_THR): Ditto.
15974         (MASK_DWARF2_ASM): Ditto.
15975         (MASK_EARLY_STOP_BITS): Ditto.
15976
15977 2004-02-02  Paul Brook  <paul@codesourcery.com>
15978
15979         Merge from csl-arm-branch.
15980
15981         2004-01-30  Paul Brook  <paul@codesourcery.com>
15982
15983         * aof.h (REGISTER_NAMES): Add vfp reg names
15984         (ADDITIONAL_REGISTER_NAMES): Ditto.
15985         * aout.h (REGISTER_NAMES): Ditto.
15986         (ADDITIONAL_REGISTER_NAMES): Ditto.
15987         * arm-protos.h: Update/Add Prototypes.
15988         * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
15989         Only allow 0.0 for VFP.
15990         (fp_consts_inited): Rename from fpa_consts_inited.  Update users.
15991         (values_fp): Rename from values_fpa.  Update Users.
15992         (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
15993         Update users.  Only check valid constants for this hardware.
15994         (arm_float_rhs_operand): Rename from fpa_rhs_operand.  Update Users.
15995         Only allow consts for FPA.
15996         (arm_float_add_operand): Rename from fpa_add_operand.  Update users.
15997         Only allow consts for FPA.
15998         (use_return_insn): Check for saved VFP regs.
15999         (arm_legitimate_address_p): Handle VFP DFmode addressing.
16000         (arm_legitimize_address): Ditto.
16001         (arm_general_register_operand): New function.
16002         (vfp_mem_operand): New function.
16003         (vfp_compare_operand): New function.
16004         (vfp_secondary_reload_class): New function.
16005         (arm_float_compare_operand): New function.
16006         (vfp_print_multi): New function.
16007         (vfp_output_fstmx): New function.
16008         (vfp_emit_fstm): New function.
16009         (arm_output_epilogue): Output VPF reg restore code.
16010         (arm_expand_prologue): Output VFP reg save code.
16011         (arm_print_operand): Add 'P'.
16012         (arm_hard_regno_mode_ok): Return modes for VFP regs.
16013         (arm_regno_class): Return classes for VFP regs.
16014         (arm_compute_initial_elimination_offset): Include space for VFP regs.
16015         (arm_get_frame_size): Ditto.
16016         * arm.h (FIXED_REGISTERS): Add VFP regs.
16017         (CALL_USED_REGISTERS): Ditto.
16018         (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
16019         (FIRST_VFP_REGNUM): Define.
16020         (LAST_VFP_REGNUM): Define.
16021         (IS_VFP_REGNUM): Define.
16022         (FIRST_PSEUDO_REGISTER): Include VFP regs.
16023         (HARD_REGNO_NREGS): Handle VFP regs.
16024         (REG_ALLOC_ORDER): Add VFP regs.
16025         (enum reg_class): Add VFP_REGS.
16026         (REG_CLASS_NAMES): Ditto.
16027         (REG_CLASS_CONTENTS): Ditto.
16028         (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
16029         (REG_CLASS_FROM_LETTER): Add 'w'.
16030         (EXTRA_CONSTRAINT_ARM): Add 'U'.
16031         (EXTRA_MEMORY_CONSTRAINT): Define.
16032         (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
16033         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
16034         (REGISTER_MOVE_COST): Ditto.
16035         (PREDICATE_CODES): Add arm_general_register_operand,
16036         arm_float_compare_operand and vfp_compare_operand.
16037         * arm.md (various): Rename as above.
16038         (divsf3): Enable when TARGET_VFP.
16039         (divdf3): Ditto.
16040         (movdfcc): Ditto.
16041         (sqrtsf2): Ditto.
16042         (sqrtdf2): Ditto.
16043         (arm_movdi): Disable when TARGET_VFP.
16044         (arm_movsi_insn): Ditto.
16045         (movsi): Only split with general regs.
16046         (cmpsf): Use arm_float_compare_operand.
16047         (push_fp_multi): Restrict to TARGET_FPA.
16048         (vfp.md): Include.
16049         * vfp.md: New file.
16050         * fpa.md (various): Rename as above.
16051         * doc/md.texi: Document ARM w and U constraints.
16052
16053         2004-01-15  Paul Brook  <paul@codesourcery.com>
16054
16055         * config.gcc: Add with_fpu.  Allow with-float=softfp.
16056         * config/arm/arm.c (arm_override_options): Rename *-s to *s.
16057         Break out of loop when we find a float-abi.  Fix typo.
16058         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
16059         Set -mfloat-abi=.
16060         * doc/install.texi: Document --with-fpu.
16061
16062         2003-01-14  Paul Brook  <paul@codesourcery.com>
16063
16064         * config.gcc (with_arch): Add armv6.
16065         * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
16066         * config/arm/arm.c (arm_overrride_options): Ditto.
16067
16068         2004-01-08  Richard Earnshaw  <rearnsha@arm.com>
16069
16070         * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
16071         (FL_ARCH6): Renamed from FL_ARCH6J.
16072         (arm_arch3m): Renamed from arm_fast_multiply.
16073         (arm_arch6): Renamed from arm_arch6j.
16074         * arm.h: Update all uses of above.
16075         * arm-cores.def: Likewise.
16076         * arm.md: Likewise.
16077
16078         * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
16079         not arm6j.  Add entry for arch armv6.
16080
16081         2004-01-07  Richard Earnshaw  <rearnsha@arm.com>
16082
16083         * arm.c (arm_emit_extendsi): Delete.
16084         * arm-protos.h (arm_emit_extendsi): Delete.
16085         * arm.md (zero_extendhisi2): Also handle zero-extension of
16086         non-subregs.
16087         (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
16088         (thumb_zero_extendhisi2): Only match if not v6.
16089         (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
16090         (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
16091         (thumb_extendqisi2): Likewise.
16092         (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
16093         (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
16094         (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
16095         (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
16096         (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
16097         (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
16098         (arm_zero_extendhisi2addsi): Remove subreg.  Add attributes.
16099         (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
16100         (arm_extendqisi2addsi): Likewise.
16101
16102         2003-12-31  Mark Mitchell  <mark@codesourcery.com>
16103
16104         Revert this change:
16105         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
16106         + REG addressing modes.
16107
16108         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
16109         + REG addressing modes.
16110
16111         2003-12-30  Mark Mitchell  <mark@codesourcery.com>
16112
16113         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
16114         CONSTANT_P_RTX.
16115
16116         2003-30-12  Paul Brook  <paul@codesourcery.com>
16117
16118         * longlong.h: protect arm inlines with !defined (__thumb__)
16119
16120         2003-30-12  Paul Brook  <paul@codesourcery.com>
16121
16122         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
16123
16124         2003-12-30  Nathan Sidwell  <nathan@codesourcery.com>
16125
16126         * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
16127         change.
16128
16129         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
16130
16131         * builtins.c (expand_builtin_apply_args_1): Add pretend args size
16132         to the virtual incoming args pointer for downward stacks.
16133
16134         2003-12-29  Paul Brook  <paul@codesourcery.com>
16135
16136         * config/arm/arm-cores.def: Add cost function.
16137         * config/arm/arm.c (arm_*_rtx_costs): New functions.
16138         (arm_rtx_costs): Remove
16139         (struct processors): Add rtx_costs field.
16140         (all_cores, all_architectures): Ditto.
16141         (arm_override_options): Set targetm.rtx_costs.
16142         (thumb_rtx_costs): New function.
16143         (arm_rtx_costs_1): Remove cases handled elsewhere.
16144         * config/arm/arm.h (processor_type): Add COSTS parameter.
16145
16146         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
16147
16148         * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
16149         (arm926ejs.md): Include it.
16150         * config/arm/arm926ejs.md: New pipeline description.
16151
16152         2003-12-24  Paul Brook  <paul@codesourcery.com>
16153
16154         * config/arm/arm.c (arm_arch6j): New variable.
16155         (arm_override_options): Set it.
16156         (arm_emit_extendsi): New function.
16157         * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
16158         * config/arm/arm.h (arm_arch6j): Declare.
16159         * config/arm/arm.md: Add sign/zero extend insns.
16160
16161         2003-12-23  Paul Brook  <paul@codesourcery.com>
16162
16163         * config/arm/arm.c (all_architectures): Add armv6.
16164         * doc/invoke.texi: Document it.
16165
16166         2003-12-19  Paul Brook  <paul@codesourcery.com>
16167
16168         * config/arm/arm.md: Add load1 and load_byte "type" attrs.  Modify
16169         insn patterns to match.
16170         * config/arm/arm-generic.md: Ditto.
16171         * config/arm/cirrus.md: Ditto.
16172         * config/arm/fpa.md: Ditto.
16173         * config/amm/iwmmxt.md: Ditto.
16174         * config/arm/arm1026ejs.md: Ditto.
16175         * config/arm/arm1135jfs.md: Ditto.  Add insn_reservation and bypasses
16176         for 11_loadb.
16177
16178         2003-12-18  Nathan Sidwell  <nathan@codesourcery.com>
16179
16180         * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
16181         * config/arm/arm.c (arm_adjust_cost): Check shift cost for
16182         TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
16183         (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
16184         arm_no_early_mul_dep): Correctly deal with conditional execution,
16185         parallels and single shift operations.
16186         (arm_no_early_alu_shift_value_dep): Define.
16187         * arm.md (attr type): Replace 'normal' with 'alu',
16188         'alu_shift' and 'alu_shift_reg'.
16189         (attr core_cycles): Adjust.
16190         (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
16191         *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
16192         *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
16193         *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
16194         *arith_shiftsi_compare0_scratch, *sub_shiftsi,
16195         *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
16196         *if_shift_move, *if_move_shift, *if_shift_shift): Set type
16197         attribute appropriately.
16198         * config/arm/arm1026ejs.md (alu_op): Adjust.
16199         (alu_shift_op, alu_shift_reg_op): New.
16200         * config/arm/arm1136.md: Add better bypasses for early
16201         registers. Remove load[234] and store[234] bypasses.
16202         (11_alu_op): Adjust.
16203         (11_alu_shift_op, 11_alu_shift_reg_op): New.
16204
16205         2003-12-15  Nathan Sidwell  <nathan@codesourcery.com>
16206
16207         * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
16208         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
16209         * config/arm/arm.c (arm_no_early_store_addr_dep,
16210         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
16211         * config/arm/arm1026ejs.md: Add load-store bypass.
16212         * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
16213         Add bypasses between instructions.
16214
16215         2003-12-10  Paul Brook  <paul@codesourcery.com>
16216
16217         * config/arm/arm.c (arm_fpu_model): New variable.
16218         (arm_fload_abi): New variable.
16219         (target_fpe_name): Rename from target_fp_name.
16220         (target_fpu_name): New variable.
16221         (arm_is_cirrus): Remove.
16222         (fpu_desc): New struct.
16223         (all_fpus): Define.
16224         (pf_model_for_fpu): Define.
16225         (all_loat_abis): Define.
16226         (arm_override_options): Set fp arch flags based on -mfpu=
16227         and -float-abi=.
16228         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
16229         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
16230         (*): Use new TARGET_* flags.
16231         * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
16232         (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
16233         (TARGET_SOFT_FLOAT): Ditto.
16234         (TARGET_SOFT_FLOAT_ABI): New.
16235         (TARGET_MAVERICK): Rename from TARGET_CIRRUS.  No longer implies
16236         TARGET_HARD_FLOAT.
16237         (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
16238         (TARGET_OPTIONS): Add -mfpu=.
16239         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
16240         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
16241         (arm_pf_model): Define.
16242         (arm_float_abi_type): Define.
16243         (fputype): Add FPUTYPE_VFP.  Change SOFT_FPA->NONE
16244         * config/arm/arm.md: Use new TARGET_* flags.
16245         * config/arm/cirrus.md: Ditto.
16246         * config/arm/fpa.md: Ditto.
16247         * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
16248         * config/arm/semi.h (ASM_SPEC): Ditto.
16249         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
16250         (FPUTYPE_DEFAULT): Set to VFP.
16251         * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
16252
16253         2003-11-22  Phil Edwards  <phil@codesourcery.com>
16254
16255         PR target/12476
16256         * config/arm/arm.c (arm_output_mi_thunk):  In Thumb mode, use
16257         'bx' instead of 'b' to avoid branch range restrictions.  Output
16258         the thunk immediately before the thunked-to function.
16259         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME):  Do not emit
16260         .thumb_func if a thunk is being generated.  Emit .code 16 along
16261         with .thumb_func if a thunk is not being generated.
16262
16263         2003-11-15  Nicolas Pitre <nico@cam.org>
16264
16265         * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
16266         arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
16267         * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
16268         (lshrdi3_iwmmxt): Renamed from lshrdi3.
16269         * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
16270
16271         2003-11-12  Steve Woodford  <scw@wasabisystems.com>
16272             Ian Lance Taylor  <ian@wasabisystems.com>
16273
16274         * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
16275         code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
16276
16277         2003-11-05  Phil Edwards  <phil@codesourcery.com>
16278
16279         * config/arm/arm.md (insn):  Add new V6 instruction names.
16280         (generic_sched):  New attr.
16281         * config/arm/arm-generic.md:  Use generic_sched here.
16282         * config/arm/arm1026ejs.md:  Do not model fetch/issue/decode
16283         stages of pipeline.  Adjust latency counts accordingly.
16284         * config/arm/arm1136jfs.md:  New file.
16285
16286         2003-10-28  Mark Mitchell  <mark@codesourcery.com>
16287
16288         * config/arm/arm.h (processor_type): New enumeration type.
16289         (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
16290         ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
16291         (CPP_CPU_ARCH_SPEC): Likewise.
16292         * config/arm/arm.c (arm_tune): New variable.
16293         (all_cores): Use cores.def.
16294         (all_architectures): Add representative processor.
16295         (arm_override_options): Restructure way in which tuning
16296         information is deduced.
16297         * arm.md: Update "insn" and "type" attributes throughout.
16298         (insn): New attribute.
16299         (type): Compute "mult" from "insn" attribute.  Add load2,
16300         load3, load4 alternatives.
16301         (arm automaton): Move to arm-generic.md.
16302         * config/arm/arm-cores.def: New file.
16303         * config/arm/arm-generic.md: Likewise.
16304         * config/arm/arm1026ejs.md: Likewise.
16305
16306 2004-02-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
16307
16308         * doc/invoke.texi (SPARC options): Remove -mflat and
16309         all -mxxx (xxx:chip) options.
16310         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
16311         * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
16312         * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
16313         * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
16314         * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
16315         * config/sparc/sparc.c: Likewise.
16316         (sparc_output_function_prologue): Remove TARGET_FLAT handling.
16317         (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
16318         (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
16319         (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
16320         (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
16321         (sparc_flat_must_save_register_p): Likewise.
16322         (sparc_flat_compute_frame_size): Likewise.
16323         (sparc_flat_save_restore): Likewise.
16324         (sparc_flat_function_prologue): Likewise.
16325         (sparc_flat_function_epilogue): Likewise.
16326         (sparc_flat_epilogue_delay_slots): Likewise.
16327         (sparc_flat_eligible_for_epilogue_delay): Likewise.
16328         (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
16329         * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
16330         (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
16331         (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
16332         (CONDITIONAL_REGISTER_USAGE): Likewise.
16333         (FRAME_POINTER_REQUIRED): Likewise.
16334         (INITIAL_ELIMINATION_OFFSET): Likewise.
16335         (BASE_RETURN_VALUE_REG): Likewise.
16336         (BASE_OUTGOING_VALUE_REG): Likewise.
16337         (BASE_PASSING_ARG_REG): Likewise.
16338         (BASE_INCOMING_ARG_REG): Likewise.
16339         (INCOMING_REGNO): Likewise.
16340         (OUTGOING_REGNO): Likewise.
16341         (LOCAL_REGNO): Likewise.
16342         (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
16343         (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
16344         (EPILOGUE_USES): Likewise.
16345         * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
16346         ("flat" attribute): Delete.
16347         (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
16348         handling.
16349         (call followed by jump define_peephole's): Delete.
16350         (exception_receiver): Likewise.
16351         (builtin_setjmp_receiver): Likewise.
16352         * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
16353
16354 2004-02-03  Paolo Bonzini  <bonzini@gnu.org>
16355
16356         PR c/11658
16357         PR c/13994
16358         * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
16359         on langhooks.h.
16360         * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
16361         * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
16362         Include langhooks.h.  Replace c_common_truthvalue_conversion
16363         with the truthvalue_conversion language hook throughout.
16364         (expr_no_commas): Call default_conversion before save_expr
16365         for the first term of the production 'x ? : y'.
16366         * c-common.c (c_common_truthvalue_conversion): Remove
16367         obsolete block.  Invoke recursively the hook instead
16368         of this function.
16369         * c-convert.c (convert): handle ERROR_MARK_NODE.
16370         * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
16371         returned by the truthvalue_conversion language hook.
16372         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
16373         c_objc_common_truthvalue_conversion.
16374         * c-objc-common.c (c_objc_common_truthvalue_conversion):
16375         New function.
16376         * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
16377         * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
16378         c_objc_common_truthvalue_conversion.
16379
16380 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
16381
16382         * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
16383         of gen_rtx.
16384         (LIBCALL_VALUE): Likewise.
16385         * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
16386         gen_rtx_CC0 instead of gen_rtx.
16387         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
16388         gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
16389         (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
16390         gen_rtx.
16391         (m68hc11_emit_logical): Likewise.
16392
16393 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
16394
16395         * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
16396         config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
16397         config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
16398         config/m32r/m32r.md, config/m68hc11/m68hc11.c,
16399         config/mips/mips.md, config/mmix/mmix.c,
16400         config/mn10300/mn10300.c, config/mn10300/mn10300.md,
16401         config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
16402         config/rs6000/altivec.md, config/s390/s390.c,
16403         config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
16404         config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
16405         Use const0_rtx instead of GEN_INT (0).  Do the same for other
16406         constants that are readily available.
16407
16408 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
16409
16410         * doloop.c, optabs.c, regmove.c, sched-deps.c,
16411         config/i386/i386.c, config/i386/i386.md: Use const0_rtx
16412         instead of GEN_INT (0).  Do the same for other constants that
16413         are readily available.
16414
16415 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
16416
16417         * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
16418         gen_rtx.
16419         * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
16420         instead of gen_rtx.
16421         * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
16422         gen_rtx.
16423         * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
16424         gen_rtx_ASHIFT instead of gen_rtx.
16425         (udivmodqi4): Likewise.
16426
16427 2004-02-02  Richard Henderson  <rth@redhat.com>
16428
16429         PR target/13789
16430         * expr.c (store_expr): Use force_operand before emit_move_insn.
16431
16432 2004-02-02  Jeff Law  <law@redhat.com>
16433             Roger Sayle  <roger@eyesopen.com>
16434
16435         * tree.c (commutative_tree_code, associative_tree_code): New
16436         functions.
16437         (iterative_hash_expr): Use commutative_tree_code.
16438         * tree.h (commutative_tree_code, associative_tree_code): Declare.
16439         * fold-const.c (operand_equal_p): Use commutative_tree_code
16440         rather than inlining the commutativity check.
16441         (fold): Likewise.
16442
16443 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
16444
16445         * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
16446         * config/frv/frv-protos.h: Remove the prototype for
16447         frv_function_arg_keep_as_reference.
16448         * config/frv/frv.c (frv_function_arg_keep_as_reference):
16449         Remove.
16450         * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
16451         * config/stormy16/stormy16.h: Remove the commented-out
16452         definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
16453
16454 2004-02-03  Alan Modra  <amodra@bigpond.net.au>
16455
16456         PR target/13914
16457         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
16458         for retaddr_column.
16459
16460 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
16461
16462         * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
16463         gen_rtx.
16464
16465 2004-02-02  Eric Christopher  <echristo@redhat.com>
16466             Zack Weinberg  <zack@codesourcery.com>
16467
16468         * c-opts.c (c_common_handle_option): Add -finput-charset.
16469         * c.opt: Ditto.
16470         * cppcharset.c (one_iso88591_to_utf8): Remove.
16471         (convert_iso88591_utf8): Ditto.
16472         (conversion_tab): Remove 8859-1 converter.
16473         (_cpp_input_to_utf8): Remove.
16474         (_cpp_init_iconv_buffer): Ditto.
16475         (_cpp_close_iconv_buffer): Ditto.
16476         (_cpp_convert_input): New function.
16477         (_cpp_default_encoding): Ditto.
16478         * cpphash.h: Add/remove prototypes for above.
16479         * cppfiles.c (read_file_guts): Use _cpp_convert_input.
16480         * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
16481         for narrow execution and input character sets.
16482         * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
16483         * doc/cppopts.texi: Document -finput-charset.
16484
16485 2004-02-02  David Edelsohn  <edelsohn@gnu.org>
16486
16487         * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
16488         against FIRST_PSEUDO_REGISTER.
16489
16490 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
16491
16492         * doc/invoke.texi (SPARC options): Further improve.
16493
16494 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
16495
16496         * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
16497         config/h8300/h8300.c, config/ip2k/ip2k.md,
16498         config/iq2000/iq2000.c, config/mips/mips.c,
16499         config/rs6000/rs6000.c, config/rs6000/rs6000.md,
16500         config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
16501         config/v850/v850.md: Fix indentation.
16502
16503 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
16504
16505         * config/sparc/sparc.c (function_arg_slotno): Align TImode
16506         arguments on a 16-byte boundary in the parameter array if ARCH64.
16507         Split handling of TFmode.
16508
16509 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
16510
16511         * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
16512         Don't test CONSTANT_P (x).
16513         (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
16514         ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
16515         Fix misindentation.
16516
16517 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
16518
16519         * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
16520
16521 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
16522
16523         * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
16524         config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
16525         config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
16526         config/iq2000/iq2000.c, config/m32r/m32r.c,
16527         config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
16528         config/mn10300/mn10300.c, config/rs6000/rs6000.c,
16529         config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
16530         config/stormy16/stormy16.c, config/v850/v850.md,
16531         config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
16532
16533 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
16534
16535         * config/mcore/mcore.c (block_move_sequence): Replace
16536         gen_rtx_CONST_INT with GEN_INT.
16537
16538 2004-02-02  Jan Hubicka  <jh@suse.cz>
16539
16540         * alias.c (record_set): Use hard_regno_nregs.
16541         * bt-load.c (find_btr_reference, note_btr_set): Likewise.
16542         * builtins.c (apply_args_size): Likewise.
16543         * caller-save.c (setup_save_areas, save_call_clobbered_regs,
16544         mark_set_regs, add_stored_regs, mark_referenced_regs,
16545         insert_restore, insert_save, insert_one_insn): Likewise.
16546         * cfgcleanup.c: Include regs.h
16547         (mark_effect, mentions_nonequal_regs): Likewise.
16548         * cfgrtl.c (mark_killed_regs): Likewise
16549         * combine.c (update_table_tick, record_value_for_reg,
16550         record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
16551         reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
16552         reg_bitfield_target_p, distribute_notes): Likewise.
16553         * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
16554         exp_equiv_p, cse_insn): Likewise.
16555         * cselib.c (cselib_lookup): Likewise.
16556         (cselib_invalidate_regno, cselib_record_set): Likewise.
16557         * df.c (df_ref_record): Likewise.
16558         * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
16559         Likewise.
16560         * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
16561         count_or_remove_death_notes_bb): Likewise.
16562         * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
16563         * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
16564         mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
16565         * integrate.c (mark_stores): Likewise.
16566         * jump.c (delete_prior_computation): Likewise.
16567         * lcm.c (reg_dies, reg_becomes_live): Likewise.
16568         * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
16569         * loop.c (LOOP_REGNO_NREGS): Likewise.
16570         * postreload.c (reload_combine, reload_combine_note_store,
16571         reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
16572         * ra-colorize.c (combine, color_usable_p, get_free_reg,
16573         calculate_dont_begin, calculate_dont_begin, colorize_one_web,
16574         try_recolor_web, insert_coalesced_conflicts, check_colors,
16575         break_precolored_alias): Likewise.
16576         * ra-debug.c: Include regs.h
16577         (ra_print_rtx_object): Likewise.
16578         * ra-rewrite (choose_spill_colors): Likewise.
16579         (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
16580         * ra.c (init_ra): Likewise.
16581         * recog.c (reg_fits_class_p, peep2_reg_dead_p,
16582         peep2_find_free_register): Likewise.
16583         * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
16584         * regclass.c (hard_regno_nregs): New array.
16585         (init_reg_modes_once): Initialize it.
16586         (choose_hard_reg_mode): Use it.
16587         (record_reg_classes): Likewise.
16588         * regmove.c (mark_flags_life_zones): Likewise.
16589         * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
16590         scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
16591         copy_value, maybe_mode_change, find_oldest_value_reg,
16592         copyprop_hardreg_forward_1):
16593         * regs.h (hard_regno_nregs): Declare.
16594         * realod.c (reload_inner_reg_of_subreg): Use it.
16595         (push_reload, combine_reloads, find_dummy_reload,
16596         hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
16597         refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
16598         reload_adjust_reg_for_mode): Likewise.
16599         * reload1.c (compute_use_by_pseudos, count_pseudo,
16600         count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
16601         spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
16602         clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
16603         allocate_reload_reg, choose_reload_regs, emit_reload_insns,
16604         delete_output_reload): Likewise.
16605         * resource.c (update_live_status, mark_referenced_resources,
16606         mark_set_resources, mark_target_live_regs): Likewise.
16607         * rtlanal.c:  Include regs.h
16608         (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
16609         dead_or_set_regno_p, find_regno_note, find_reg_fusage,
16610         subreg_regno_offset, subreg_offset_representable_p,
16611         hoist_test_store): Likewise.
16612         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
16613         * sched-rgn.c (check_live_1, update_live_1): Likewise.
16614         * stmt.c: Include regs.h
16615         (decl_conflicts_with_clobbers_p): Likewise.
16616         * varasm.c (make_decl_rtl): Likewise.
16617         * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
16618
16619 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
16620
16621         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
16622         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
16623         config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
16624         config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
16625         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
16626         config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
16627         config/iq2000/iq2000.h, config/m32r/m32r.c,
16628         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
16629         config/m68hc11/m68hc11.md, config/m68k/m68k.md,
16630         config/mcore/mcore.c, config/mcore/mcore.h,
16631         config/mcore/mcore.md, config/mips/mips.c,
16632         config/ns32k/ns32k.h, config/ns32k/ns32k.md,
16633         config/rs6000/rs6000.c, config/s390/s390.c,
16634         config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
16635         config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
16636         "gen_rtx (FOO, " with "gen_rtx_FOO (".
16637
16638 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
16639
16640         * config/h8300/h8300.md (two peephole2's): New.
16641
16642 2004-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
16643
16644         * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
16645         (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
16646         (ASM_CPU_SPEC): Likewise
16647         * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
16648         (ASM_CPU_SPEC): Remove -mcpu=v8plus.  Handle -mcpu=ultrasparc3.
16649
16650 2004-02-01  Roger Sayle  <roger@eyesopen.com>
16651
16652         * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
16653         isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
16654         (expand_builtin): Always call expand_builtin_pow.
16655
16656 2004-02-01  Roger Sayle  <roger@eyesopen.com>
16657
16658         * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
16659         BUILT_IN_SIGNBITL): New GCC builtins.
16660         * builtins.c (expand_builtin_signbit): New function to RTL expand
16661         calls to signbit, signbitf and signbitl as inline intrinsics.
16662         (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
16663         (fold_builtin_signbit): New function to perform constant folding
16664         of signbit, signbitf and signbitl.
16665         (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
16666
16667         * doc/extend.texi: Document new signbit{,f,l} builtins.
16668
16669 2004-02-01  Richard Sandiford  <rsandifo@redhat.com>
16670
16671         * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
16672
16673 2004-02-01  Chris Demetriou  <cgd@broadcom.com>
16674
16675         * config/mips/mips.h (PREDICATE_CODES): Remove entries for
16676         "mips_const_double_ok" and "simple_memory_operand", which were
16677         removed from the MIPS port with the mips-3_4-rewrite branch merge.
16678         * config/mips/mips.c (mips16_lay_out_constants): Update comment
16679         for removal of simple_memory_operand.
16680
16681 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
16682
16683         * config/c4x/c4x.md: Use GEN_INT instead of
16684         gen_rtx (CONST_INT, ...).
16685
16686 2004-01-31  Richard Henderson  <rth@redhat.com>
16687
16688         * varasm.c (output_constant_pool): Don't zap the pool.
16689
16690 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
16691
16692         * genrecog.c (decision_type): Add DT_const_int.
16693         (write_cond) [DT_const_int]: Print a comparison against small
16694         constant.
16695         (write_node): Simplify comparisons against small constants
16696         before printing tests.
16697
16698 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
16699
16700         * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
16701         instead of gen_rtx_CONST_INT.
16702
16703 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
16704
16705         * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
16706         instead of gen_rtx_CONST_INT.
16707
16708 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
16709
16710         * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
16711         hook_bool_CUMULATIVE_ARGS_false.
16712         * targhooks.c (default_strict_argument_naming): Rename to
16713         hook_bool_CUMULATIVE_ARGS_false.
16714         * targhooks.h: Update the prototype for
16715         default_strict_argument_naming.
16716
16717 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
16718
16719         * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
16720         * config/sh/sh.h: Likewise.
16721         * config/sh/sh.md: Likewise.
16722
16723 2004-01-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
16724
16725         * doc/invoke.texi (SPARC options): Restructure and update.
16726
16727 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
16728
16729         * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
16730         STRICT_ARGUMENT_NAMING): Poison.
16731         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
16732         hook_bool_tree_false.
16733         * targhooks.c (default_promote_function_args): Remove.
16734         (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
16735         Don't check incoming.
16736         (default_strict_argument_naming): Don't use
16737         STRICT_ARGUMENT_NAMING.
16738         * targhooks.h: Remove the prototype for
16739         default_promote_function_args.
16740
16741 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
16742
16743         * config/i386/i386-protos.h: Remove the prototype for
16744         ix86_setup_incoming_varargs.
16745         * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
16746         (ix86_setup_incoming_varargs): Make it static.
16747         * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
16748
16749 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
16750
16751         * alloc-pool.c: Fix comment typos.
16752         * builtin-types.def: Likewise.
16753         * builtins.def: Likewise.
16754         * c-pretty-print.c: Likewise.
16755         * df.h: Likewise.
16756         * reload1.c: Likewise.
16757
16758 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
16759
16760         * doc/invoke.texi: Follow spelling conventions.
16761         * doc/tm.texi: Likewise.
16762
16763 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
16764
16765         * doc/install.texi: Fix typos.
16766         * doc/invoke.texi: Likewise.
16767
16768 2004-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
16769
16770         * config/s390/s390.c (s390_decompose_address): Do not treat virtual
16771         registers as pointers.
16772         * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
16773
16774 2004-01-31  Paolo Bonzini  <bonzini@gnu.org>
16775
16776         * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
16777         and restore it to gen_lowpart_general on exit.
16778         (gen_lowpart_for_combine): Adjust all callers to go through
16779         gen_lowpart.
16780         * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
16781         and restore it to gen_lowpart_general on exit.
16782         (gen_lowpart_if_possible): Adjust all callers to go through
16783         gen_lowpart.
16784         * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
16785         (gen_lowpart): Declare as pointer to function, initialized to
16786         gen_lowpart_general.
16787         * rtl.h (gen_lowpart): Declare as pointer to function.
16788
16789 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
16790
16791         * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
16792         * calls.c: Likewise.
16793         * emit-rtl.c: Likewise.
16794         * function.c: Likewise.
16795         * reload1.c: Likewise.
16796         * config/i386/cygming.h: Likewise.
16797         * config/i386/i386.c: Likewise.
16798         * config/i386/winnt.c: Likewise.
16799
16800 2004-01-30  Dara Hazeghi  <dhazeghi@yahoo.com>
16801
16802         PR bootstrap/9249
16803         * doc/install.texi: document --enable-__cxa_atexit option.
16804         * configure.ac: Disable __cxa_atexit if not supported.
16805         * configure: Regenerate.
16806
16807 2004-01-30  Daniel Berlin  <dberlin@dberlin.org>
16808
16809         * ggc-zone.c (ggc_free): New function.
16810
16811 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
16812
16813         alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
16814         cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
16815         flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
16816         ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
16817         tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
16818         config/alpha/alpha.c, config/alpha/alpha.h,
16819         config/alpha/alpha.md, config/alpha/unicosmk.h,
16820         config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
16821         config/c4x/c4x-protos.h, config/c4x/c4x.md,
16822         config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
16823         config/frv/frvend.c, config/i386/cygming.h,
16824         config/i386/djgpp.h, config/i386/emmintrin.h,
16825         config/i386/gthr-win32.c, config/i386/i386-interix.h,
16826         config/i386/i386-protos.h, config/i386/openbsd.h,
16827         config/i386/winnt.c, config/i386/xm-mingw32.h,
16828         config/i386/xmmintrin.h, config/ia64/ia64.md,
16829         config/iq2000/iq2000.md, config/m32r/m32r.md,
16830         config/m68k/m68k.md, config/mcore/mcore-elf.h,
16831         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
16832         config/mips/iris5gas.h, config/mips/iris6.h,
16833         config/mips/iris6gas.h, config/mips/linux.h,
16834         config/mips/mips.md, config/mips/netbsd.h,
16835         config/mips/openbsd.h, config/mips/windiss.h,
16836         config/pa/fptr.c, config/rs6000/aix.h,
16837         config/rs6000/altivec.h, config/rs6000/darwin.h,
16838         config/rs6000/xcoff.h, config/s390/s390-protos.h,
16839         config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
16840         config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
16841         config/sparc/sol2.h: Update copyright.
16842
16843 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
16844
16845         * Makefile.in (abs_docdir, abs_srcdir): Define.
16846         (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
16847
16848 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
16849
16850         * genconfig.c (main): Have CC0_P check its operand even on a
16851         target without cc0.
16852
16853 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
16854
16855         * config/alpha/alpha.c: Remove mentions of deprecates macros
16856         in comments, remove some target-independent comments about target
16857         macros, and/or add minimal function comments for target hook
16858         implementations.
16859         * config/avr/avr.c: Likewise.
16860         * config/ia64/ia64.h: Likewise.
16861         * config/ip2k/ip2k.c: Likewise.
16862         * config/iq2000/iq2000.c: Likewise.
16863         * config/m32r/m32r.h: Likewise.
16864         * config/m68hc11/m68hc11.c: Likewise.
16865         * config/mcore/mcore.c: Likewise.
16866         * config/mmix/mmix.c: Likewise.
16867         * config/mn10300/mn10300.c: Likewise.
16868         * config/pa/pa.c: Likewise.
16869         * config/pdp11/pdp11.c: Likewise.
16870         * config/rs6000/rs6000.h: Likewise.
16871         * config/sh/sh.c: Likewise.
16872         * config/sh/sh.h: Likewise.
16873         * config/sparc/sparc.c: Likewise.
16874         * config/sparc/sparc.h: Likewise.
16875         * config/stormy16/stormy16.c: Likewise.
16876         * config/xtensa/xtensa.c: Likewise.
16877
16878 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
16879
16880         PR optimization/12147
16881         * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
16882         RELOAD_FOR_OPADDR_ADDR.
16883         (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
16884         might be reused as RELOAD_FOR_OPADDR_ADDR register.
16885
16886 2004-01-30  Jan Hubicka  <jh@suse.cz>
16887
16888         * reload.c (get_secondary_mem): Fix updating of
16889         secondary_memlocs_elim_used.
16890
16891 2004-01-30  Richard Henderson  <rth@redhat.com>
16892
16893         * varasm.c (struct rtx_const, struct pool_constant): Remove.
16894         (MAX_RTX_HASH_TABLE): Remove.
16895         (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
16896         (first_pool, last_pool, pool_offset): Remove.
16897         (struct rtx_constant_pool): Split out from ...
16898         (struct varasm_status): ... here.  Reference one via pointer.
16899         (struct constant_descriptor_rtx): Merge struct pool_constant.
16900         (SYMHASH): Remove.
16901         (decode_rtx_const): Remove.
16902         (const_hash_rtx, compare_constant_rtx): Remove.
16903         (record_constant_rtx): Remove.
16904         (const_desc_rtx_hash, const_desc_rtx_eq): New.
16905         (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
16906         (const_rtx_hash_1, const_rtx_hash): New.
16907         (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
16908         (simplify_subtraction): Use simplify_rtx.
16909         (force_const_mem): Rewrite to use new data structures.
16910         (find_pool_constant): Likewise.
16911         (get_pool_constant, get_pool_constant_mark,
16912         get_pool_constant_for_function, get_pool_mode,
16913         get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
16914         (output_constant_pool_2): Split out from output_constant_pool.
16915         (output_constant_pool_1): Likewise.  Use new pool datastructures.
16916         (output_constant_pool): Zap entire pool datastructure.
16917         (mark_constant): Use new pool datastructures.
16918         (mark_constants): Use for_each_rtx.
16919         (mark_constant_pool): Use new pool datastructures.
16920
16921 2004-01-30  Fariborz Jahanian <fjahanian@apple.com>
16922
16923         * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
16924         Copy operands[1] to pseudo for simplify_gen_subreg.
16925
16926 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
16927
16928         * gcse.c (bypass_block): Fix a typo in the previous check-in
16929         to the file.
16930
16931 2004-01-30  Andrew Pinski <pinskia@physics.uc.edu>
16932
16933         * toplev.c: Include alloc-pool.h.
16934         * Makefile.in (toplev.c): Update dependencies.
16935
16936 2004-01-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16937
16938         * combine.c (simplify_shift_const, case XOR): Be careful when
16939         commuting XOR with ASHIFTRT.
16940
16941 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
16942             Eric Botcazou  <ebotcazou@libertysurf.fr>
16943
16944         * config/sparc/sparc-protos.h: Remove the prototype for
16945         sparc_builtin_saveregs.
16946         * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16947         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16948         (TARGET_PROMOTE_PROTOTYPES): Likewise.
16949         (TARGET_STRUCT_VALUE_RTX): Likewise.
16950         (TARGET_RETURN_IN_MEMORY): Likewise.
16951         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
16952         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
16953         (sparc_builtin_saveregs): Make it static.
16954         (sparc_promote_prototypes): New.
16955         (sparc_struct_value_rtx): Likewise.
16956         (sparc_return_in_memory): Likewise.
16957         * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
16958         (PROMOTE_FUNCTION_RETURN): Likewise.
16959         (RETURN_IN_MEMORY): Likewise.
16960         (STRUCT_VALUE): Likewise.
16961         (STRUCT_VALUE_INCOMING): Likewise.
16962         (EXPAND_BUILTIN_SAVEREGS): Likewise.
16963         (STRICT_ARGUMENT_NAMING): Likewise.
16964         (PROMOTE_PROTOTYPES): Likewise.
16965
16966         * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
16967
16968 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
16969
16970         PR c/12818
16971         * varasm.c (const_hash_1) <STRING_CST>: Use the
16972         address to compute the hash value if flag_writable_strings.
16973         (compare_constant) <STRING_CST>: Compare the addresses
16974         if flag_writable_strings.
16975         (build_constant_desc): Do not copy the expression for a
16976         STRING_CST if flag_writable_strings.
16977
16978 2004-01-30  Jan Hubicka  <jh@suse.cz>
16979
16980         * alloc-pool.c: Include hashtab.h
16981         (alloc_pool_descriptor): New structure
16982         (alloc_pool_hash): New global variable.
16983         (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
16984         (create_alloc_pool): Update statistics.
16985         (free_alloc_pool): Likewise.
16986         (pool_alloc): Likewise.
16987         (output_info): New structure
16988         (print_statistics, dump_alloc_pool_statistics): New function.
16989         * alloc-pool.h (alloc_pool_def): Turn name to be constant.
16990         (dump_alloc_pool_statistics): Declare.
16991         * toplev.c (finalize):  Dump statistics.
16992
16993         * reload.c (secondary_memlocs_elim_used): New static variable.
16994         (get_secondary_mem): Update it.
16995         (find_reloads): Use it.
16996
16997 2004-01-30  Steven Bosscher <s.bosscher@student.tudelft.nl>
16998
16999         * toplev.c: Fix broken checkin of 2003-12-30, again.
17000
17001 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
17002
17003         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
17004         s390*-*-* targets by specifying a 'nop' insn.
17005         * configure: Regenerate.
17006
17007 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
17008
17009         PR target/11475
17010         * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
17011
17012 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
17013
17014         * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
17015         of addr when creating MEM copy.
17016
17017 2004-01-29  Devang Patel  <dpatel@apple.com>
17018
17019         * dwarf2out.c (gen_field_die): Do not equate decl number to die.
17020
17021 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
17022
17023         PR inline-asm/6162
17024         * reload.c (find_reloads): Only support one pair of commutative
17025         operands.
17026
17027 2004-01-29  Roger Sayle  <roger@eyesopen.com>
17028
17029         PR java/13824
17030         * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
17031         as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
17032         recursion.
17033
17034 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
17035
17036         * config/frv/frv.c: Don't mention deprecated macros in
17037         comments.  Remove some target-independent comments about
17038         target macros.
17039         * config/frv/frv.h: Likewise.
17040
17041 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
17042
17043         * cfghooks.c (split_block): Set probability and count of the
17044         new edge.
17045
17046 2004-01-29  Josef Zlomek  <zlomekj@suse.cz>
17047
17048         * dwarf2out.c (struct die_struct): Added field decl_id.
17049         (decl_die_table): Changed to hash table.
17050         (decl_die_table_allocated): Deleted.
17051         (decl_die_table_in_use): Deleted.
17052         (DECL_DIE_TABLE_INCREMENT): Deleted.
17053         (decl_die_table_hash): New function.
17054         (decl_die_table_eq): New function.
17055         (lookup_decl_die): Lookup in a hash table.
17056         (equate_decl_number_to_die): Insert into a hash table.
17057         (dwarf2out_init): Init hash table decl_die_table.
17058
17059 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
17060
17061         PR optimization/13424
17062         * expr.c (store_constructor): Revert 2003-12-03 change.
17063
17064         * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
17065         expected before returning early.  Avoid sharing RTL if they
17066         need to be changed.
17067
17068         * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
17069         handling so that memory attributes are preserved.  Don't call
17070         ix86_set_move_mem_attrs.
17071         (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
17072         (ix86_expand_clrstr): Rename src argument to
17073         dst.  Rework rep_stos and strset handling so that memory attributes
17074         are preserved.
17075         (ix86_expand_strlen): Pass src argument to
17076         ix86_expand_strlensi_unroll_1.  Rework strlenqi_1 handling so that
17077         memory attributes are preserved.
17078         (ix86_expand_strlensi_unroll_1): Add src argument.  Use
17079         change_address instead of gen_rtx_MEM.
17080         * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
17081         expanders.
17082         (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
17083         strmovqi, strmovqi_rex64): Remove.
17084         (rep_mov*, strmov*): Prefix insn names with *.
17085         (strset, strset_singleop, rep_stos): New expanders.
17086         (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
17087         strsetqi, strsetqi_rex64): Remove.
17088         (rep_stos*, strset*): Prefix insn names with *.
17089         (rep_stosqi_rex64): Likewise.  Fix mode of dirflag reg from DImode
17090         to SImode.
17091         (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
17092         are preserved.
17093         (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
17094         Prefix insn names with *.
17095         (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
17096         (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
17097         (strlenqi_1): New expander.
17098         * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
17099
17100 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
17101
17102         * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
17103         * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
17104         verify_flow_info): Declaration removed.
17105         * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
17106         (debug_bb, debug_bb_n): Add argument to dump_bb call.
17107         * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
17108         try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
17109         instead of delete_block.
17110         * cfghooks.c: Include timevar.h and toplev.h.
17111         (cfg_hooks): Define here.
17112         (verify_flow_info, dump_bb): Moved from cfg.c.
17113         (redirect_edge_and_branch, redirect_edge_and_branch_force,
17114         split_block, split_block_after_labels, move_block_after,
17115         delete_basic_block, split_edge, create_basic_block,
17116         create_empty_bb, can_merge_blocks_p, merge_blocks,
17117         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
17118         New functions.
17119         * cfghooks.h (struct cfg_hooks): Added fields name,
17120         make_forwarder_block, tidy_fallthru_edge and
17121         move_block_after. Changed type of verify_flow_info, dump_bb,
17122         split_block fields. Renamed cfgh_split_edge and delete_block
17123         fields.
17124         (redirect_edge_and_branch, redirect_edge_and_branch_force,
17125         split_block, delete_block, split_edge, create_basic_block,
17126         can_merge_blocks_p, merge_blocks): Macros removed.
17127         (cfg_hooks): Do not export.
17128         (verify_flow_info, dump_bb, redirect_edge_and_branch,
17129         redirect_edge_and_branch_force, split_block, split_block_after_labels,
17130         move_block_after, delete_basic_block, split_edge, create_basic_block,
17131         create_empty_bb, can_merge_blocks_p, merge_blocks,
17132         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
17133         Declare.
17134         (cfg_layout_rtl_cfg_hooks): Declare.
17135         * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
17136         New functions.
17137         (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
17138         (redirect_edge_with_latch_update): Removed.
17139         (make_forwarder_block): Moved to cfghooks.c, semantics changed.
17140         * cfgloopmanip.c (remove_bbs): Do not update dominators here.
17141         * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
17142         rtl_delete_block, rtl_split_block, rtl_merge_blocks,
17143         tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
17144         cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
17145         cfghooks.c.
17146         (rtl_create_basic_block): Coding style fix.
17147         (rtl_tidy_fallthru_edge, rtl_move_block_after,
17148         rtl_make_forwarder_block): New functions.
17149         (update_cfg_after_block_merging): Removed.
17150         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
17151         * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
17152         to dump_bb.
17153         * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
17154         find_if_case_2): Don't update dominators.
17155         * timevar.def (TV_CFG_VERIFY): New.
17156         * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
17157         * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
17158         * cfgloopmanip.c (split_loop_bb): Don't update dominators.
17159         (remove_bbs): Don't call remove_bbs.
17160         (create_preheader): Use make_forwarder_block.
17161         (mfb_keep_just, mfb_update_loops): New static functions.
17162
17163 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
17164
17165         * config/avr/avr.h: Remove target-independent comments about
17166         target macros.
17167
17168 2004-01-28  Daniel Berlin  <dberlin@dberlin.org>
17169
17170         * timevar.c (timevar_print): Mention when checking is enabled.
17171
17172 2004-01-28  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
17173
17174         * c-lex.c (c_lex): Rename to...
17175         (c_lex_with_flags): Add new parameter to get CPP flags.
17176         (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
17177         * c-pragma.h (c_lex_with_flags): Declare.
17178
17179 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
17180
17181         * config/mcore/mcore.c (mcore_external_libcall): Add a
17182         comment.
17183         (mcore_return_in_memory): Likewise.
17184
17185 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
17186
17187         * config/mcore/mcore-protos.h: Remove the prototype for
17188         mcore_setup_incoming_varargs.
17189         * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
17190         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
17191         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17192         (TARGET_PROMOTE_PROTOTYPES): Likewise.
17193         (TARGET_STRUCT_VALUE_RTX): Likewise.
17194         (TARGET_RETURN_IN_MEMORY): Likewise.
17195         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17196         (mcore_setup_incoming_varargs): Make it static.  Receive the
17197         first argument by reference.  Add argument second_time.
17198         (mcore_external_libcall): New.
17199         (mcore_return_in_memory): Likewise.
17200         * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
17201         (PROMOTE_FUNCTION_RETURN): Likewise.
17202         (STRUCT_VALUE): Likewise.
17203         (RETURN_IN_MEMORY): Likewise.
17204         (SETUP_INCOMING_VARARGS): Likewise.
17205         (PROMOTE_PROTOTYPES): Likewise.
17206         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
17207
17208 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
17209
17210         * config/m32r/m32r-protos.h: Remove the prototype for
17211         m32r_setup_incoming_varargs.
17212         * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
17213         (TARGET_STRUCT_VALUE_RTX): Likewise.
17214         (TARGET_RETURN_IN_MEMORY): Likewise.
17215         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17216         (m32r_return_in_memory): New.
17217         (m32r_setup_incoming_varargs): Make it static.
17218         * config/m32r/m32r.h: Remove #undef of
17219         ASM_OUTPUT_EXTERNAL_LIBCALL.  Remove the commented-out
17220         definitions of PROMOTE_FUNCTION_ARGS and
17221         PROMOTE_FUNCTION_RETURN.
17222         (PROMOTE_PROTOTYPES): Remove.
17223         (RETURN_IN_MEMORY): Likewise.
17224         (STRUCT_VALUE): Likewise.
17225
17226 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
17227
17228         * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
17229         (TARGET_STRUCT_VALUE_RTX): Likewise.
17230         (m68k_struct_value_rtx): Likewise.
17231         * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
17232         STRUCT_VALUE_REGNUM.
17233         (PROMOTE_PROTOTYPES): Remove.
17234         * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
17235         STRUCT_VALUE_REGNUM.
17236         * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
17237         * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
17238
17239 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
17240
17241         * config/stormy16/stormy16.c
17242         (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
17243         TARGET_BUILD_BUILTIN_VA_LIST.
17244
17245 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
17246
17247         * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
17248         (TARGET_STRUCT_VALUE_RTX): Likewise.
17249         (TARGET_RETURN_IN_MEMORY): Likewise.
17250         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17251         (v850_return_in_memory): Likewise.
17252         (v850_setup_incoming_varargs): Likewise.
17253         * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
17254         (SETUP_INCOMING_VARARGS): Likewise.
17255         (RETURN_IN_MEMORY): Likewise.
17256         (STRUCT_VALUE): Likewise.
17257
17258 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
17259
17260         * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
17261         (fr30_setup_incoming_varargs): Don't use
17262         STRICT_ARGUMENT_NAMING.
17263         * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
17264         (STRICT_ARGUMENT_NAMING): Likewise.
17265
17266 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
17267
17268         * config/frv/frv-protos.h: Remove the prototype for
17269         frv_expand_builtin_saveregs.
17270         * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
17271         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
17272         (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
17273         STRUCT_VALUE_REGNUM.
17274         (frv_expand_builtin_saveregs): Make it static.
17275         (frv_struct_value_rtx): New.
17276         * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
17277
17278 2004-01-29  Jan Hubicka  <jh@suse.cz>
17279
17280         PR c++/12850
17281         * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
17282         initial pointers.
17283         * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
17284         for functions that will be only inlined.
17285         (cgraph_mark_function_to_output): Likewise.
17286         (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
17287         do not clear function body.
17288         * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
17289         (tree_rest_of_compilation): Reorganize the logic releasing function
17290         body to use callgraph datastructure.
17291
17292 2004-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17293
17294         * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
17295         to register_operand.
17296
17297 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
17298
17299         * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
17300         (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
17301         match_operand expressions so that all match_dups appear
17302         lexically after their corresponding match_operands.
17303
17304 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
17305
17306         * config/h8300/h8300.c (WORD_REG_USED): Use
17307         HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
17308         (compute_saved_regs): Likewise.
17309         (h8300_expand_prologue): Likewise.  Allocate locals after
17310         saving registers.
17311         (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
17312         of FRAME_POINTER_REGNUM.  Deallocate locals before saving
17313         registers.
17314         (h8300_initial_elimination_offset): Adjust for the new frame
17315         layout, which swaps flips the order of locals and saved
17316         registers.
17317         * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
17318         (HARD_FRAME_POINTER_REGNUM): New.
17319         (ELIMINABLE_REGS): Add an elimination rule from
17320         FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
17321         (REGISTER_NAMES): Add fp.
17322         * config/h8300/h8300.md (FP_REG): Change to 11.
17323         (HFP_REG): New.
17324
17325 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
17326
17327         * genrecog.c (write_node): Remove a useless local variable.
17328
17329 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
17330
17331         * Makefile.in (options.c options.h): Use stamp file s-options to
17332         avoid unnecessary rebuilds.
17333         (options.o): New target listing dependencies.
17334         (gtyp-gen.h): Use stamp file s-gtyp-gen.
17335         (STAGESTUFF): Add s-gtyp-gen.
17336
17337 2004-01-28  Richard Henderson  <rth@redhat.com>
17338
17339         * ggc.h (ggc_free): Declare.
17340         * ggc-common.c (ggc_realloc): Use it.
17341         * ggc-page.c: Remove lots of inline markers.
17342         (globals): Add free_object_list.
17343         (ggc_alloc): Tidy.
17344         (ggc_free, validate_free_objects): New.
17345         (poison_pages): Provide default.
17346         (ggc_collect): Call validate_free_objects; emit markers to
17347         the debug file.
17348
17349 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
17350             Jim Wilson  <wilson@specifixinc.com>
17351
17352         * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
17353         Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
17354         scratch pointer.
17355         (ia64_secondary_reload_class): Delete case GR_REGS.
17356         * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
17357         Do not allocate a scratch register.
17358         (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
17359
17360 2004-01-28  Jan Hubicka  <jh@suse.cz>
17361
17362         * gcse.c (bypass_block): Prevent edges to be unified when we are
17363         about to emit compenstation code.
17364
17365 2004-01-28  Nick Clifton  <nickc@redhat.com>
17366
17367         * config/arm/arm.c (arm_expand_builtin): Force second argument of
17368         the setcwx insn into a register.
17369
17370 2004-01-28  Richard Sandiford  <rsandifo@redhat.com>
17371
17372         * config/fp-bit.c (pack_d): When using paired doubles to implement
17373         a long double, round the high part separately.
17374         (unpack_d): Fix the case in which the high part is a power of two
17375         and the low part is a nonzero value of the opposite sign.
17376
17377 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
17378
17379         * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
17380         (TARGET_STRUCT_VALUE_RTX): Likewise.
17381         (c4x_external_libcall): Likewise.
17382         (c4x_struct_value_rtx): Likewise.
17383         * config/c4x/c4x.h: Remove.
17384         (STRUCT_VALUE_REGNUM): Likewise.
17385         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
17386
17387 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
17388
17389         * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
17390         (TARGET_STRUCT_VALUE_RTX): Likewise.
17391         * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
17392         (STRUCT_VALUE): Likewise.
17393         (PROMOTE_PROTOTYPES): Likewise.
17394
17395 2004-01-27  Roger Sayle  <roger@eyesopen.com>
17396
17397         * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
17398         CONST_INT before using INTVAL.
17399
17400 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
17401
17402         * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
17403         * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
17404         frame if !TARGET_BACKCHAIN.
17405         * config/s390/s390.md ("allocate_stack"): Use pattern only if
17406         TARGET_BACKCHAIN.
17407         * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
17408
17409 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
17410
17411         * ia64.c (ia64_function_arg): When placing HFAs in integer
17412         registers, do not special case the mode used for complex
17413         types.  Do not advance int_regs until the current register
17414         is full.
17415
17416 2004-01-27  Richard Sandiford  <rsandifo@redhat.com>
17417
17418         PR target/7297
17419         * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
17420
17421 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
17422
17423         * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
17424         slow, unaligned loads and stores while debugging.  Fix formatting.
17425
17426 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
17427
17428         * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
17429         of computing wmode.
17430         (restore_stack_nonlocal): Same.
17431
17432 2004-01-27  Devang Patel <dpatel@apple.com>
17433
17434         * Makefile.in (dwarf2out.o): Depend on input.h
17435         * dbxout.c (dbx_debug_hooks): Add new empty hook for
17436         imported_module_or_decl.
17437         (xcoff_debug_hooks): Same.
17438         * sdbout.c (sdb_debug_hooks): Same.
17439         * vmsdbgout.c (vmsdbg_debug_hooks): Same.
17440         * debug.c (do_nothing_debug_hooks): Same.
17441         (debug_nothing_tree_tree): New function.
17442         * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
17443         * dwarf2out.c: Include input.h.
17444         (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
17445         (remove_child_TAG): New function.
17446         (dwarf_tag_name): Handle DW_TAG_imported_module.
17447         (gen_subprogram_die): Equate decl number to declaration die. Do not
17448         remove all children dies while reusing declaration die for definition.
17449         Instead, selectively remove only formal parameters.
17450         (gen_variable_die): Equate variable decl to declaration die.
17451         (gen_field_die): Equate field decl to line number.
17452         (force_namespace_die): Replace it with ...
17453         (force_decl_die): ... this.
17454         (force_type_die): New function.
17455         (setup_namespace_context): Replace use of force_namespace_die() with
17456         force_decl_die().
17457         (gen_namespace_die): Same.
17458         (dwarf2out_imported_module_or_decl): New function.
17459
17460 2004-01-27  Bob Wilson  <bob.wilson@acm.org>
17461
17462         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
17463         on CQImode and CHImode incoming arguments in register a7.
17464         (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
17465         * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
17466         * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
17467         xtensa_copy_incoming_a7 before reload.
17468
17469 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
17470
17471         * coverage.c (get_coverage_counts): Give a different message
17472         if flag_guess_branch_prob is set.
17473         * predict.c (counts_to_freqs): Return an int.
17474         (estimate_bb_frequencies): If counts_to_freqs returns zero,
17475         calculate estimates.
17476
17477 2004-01-27  Kazu Hirata  <kazu@cs.umass.edu>
17478
17479         * config/iq2000/iq2000-protos.h: Remove the prototype for
17480         iq2000_setup_incoming_varargs.
17481         * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17482         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17483         (TARGET_PROMOTE_PROTOTYPES): Likewise.
17484         (TARGET_STRUCT_VALUE_RTX): Likewise.
17485         (TARGET_RETURN_IN_MEMORY): Likewise.
17486         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17487         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
17488         (iq2000_return_in_memory): Likewise.
17489         (iq2000_setup_incoming_varargs): Make it static.  Receive the
17490         first argument by reference.
17491         * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
17492         (PROMOTE_FUNCTION_RETURN): Likewise.
17493         (PROMOTE_PROTOTYPES): Likewise.
17494         (RETURN_IN_MEMORY): Likewise.
17495         (STRUCT_VALUE): Likewise.
17496         (SETUP_INCOMING_VARARGS): Likewise.
17497         (STRICT_ARGUMENT_NAMING): Likewise.
17498
17499 2004-01-24  James A. Morrison  <ja2morri@uwaterloo.ca>
17500
17501         * fixinc/fixinc.c (test_test): Initialize res.
17502         (start_flexer): Initialize pz_cmd_save.
17503
17504 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
17505
17506         * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
17507         SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
17508
17509 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
17510
17511         PR 7198
17512         * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
17513         (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
17514         (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
17515         Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
17516         Possibly rename pattern for consistency.
17517         Remove ??? comments suggesting that this be done.
17518         (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
17519         New patterns.
17520         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
17521         (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
17522         (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
17523         (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
17524         Update to match.
17525
17526 2004-01-27  Ian Lance Taylor  <ian@wasabisystems.com>
17527
17528         * config/arm/arm.c (output_return_instruction): Only restore IP
17529         into SP if frame_pointer_needed.
17530
17531 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
17532
17533         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
17534         for SCmode and DCmode if ARCH32.
17535         (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
17536         * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
17537         if ARCH32.
17538         (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
17539         if ARCH32.
17540         (BASE_OUTGOING_VALUE_REG): Likewise.
17541
17542 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
17543
17544         PR target/10904
17545         PR target/13058
17546         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
17547         Forbid mode changes from SImode for lower FP regs if ARCH64.
17548
17549 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
17550
17551         * Makefile.in (bt-load.o): Depend on except.h.
17552         * bt-load.c (except.h): #include.
17553         (compute_defs_uses_and_gen): If insn at end of BB can throw
17554         within this function, consider registers used by it unavailable for
17555         btr migration.
17556         (move_btr_def): If insn at end of BB can throw, insert before rather
17557         than after.
17558
17559         * flags.h (flag_btr_bb_exclusive): Declare.
17560         * toplev.c (flag_btr_bb_exclusive): New variable.
17561         (f_options): Add btr-bb-exclusive.
17562         * bt-load.c (augment_live_range): Restore old behaviour if
17563         flag_btr_bb_exclusive is set.
17564         * common.opt: Add entry for -fbtr-bb-exclusive.
17565         * opts.c (common_handle_options): Same.
17566         * doc/invoke.texi: Document -fbtr-bb-exclusive.
17567
17568         * bt-load.c (btrs_live_at_end): New variable.
17569         (compute_defs_uses_and_gen): Compute its pointed-to array.
17570         (clear_btr_from_live_range, add_btr_to_live_range): Update it.
17571         (augment_live_range): When augmenting with a new dominator,
17572         use only its btrs_live_at_end set, but also add in the full set
17573         of the old dominator.
17574         (btr_def_live_range): Use btrs_live_at_end.
17575         (move_btr_def): Set other_btr_uses_before_def, and move new set
17576         to the end of the basic block, if appropriate.
17577         (migrate_btr_defs): Allocate and free btrs_live_at_end.
17578
17579         * bt-load.c (basic_block_freq): Remove outdated comment.
17580
17581 2004-01-27  Alan Modra  <amodra@bigpond.net.au>
17582
17583         * config/rs6000/rs6000.h: Correct target_flags free bits comment.
17584         (PREDICATE_CODES): Remove duplicate.
17585         * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
17586         (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
17587         (MASK_PROFILE_KERNEL): Adjust define.
17588
17589 2004-01-27  Jakub Jelinek  <jakub@redhat.com>
17590
17591         * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
17592         of long string literals from 32 bytes to sizeof (void *) when !-Os
17593         and to 1 with -Os.
17594
17595 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
17596
17597         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
17598         constant addresses in the normal mode.
17599
17600 2004-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17601
17602         * system.h (CHAR_BITFIELD): Delete.
17603         (BOOL_BITFIELD): New.
17604         * c-decl.c (c_scope): Use BOOL_BITFIELD.
17605         * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
17606
17607 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
17608
17609         * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17610         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17611         (TARGET_PROMOTE_PROTOTYPES): Likewise.
17612         (TARGET_STRUCT_VALUE_RTX): Likewise.
17613         (TARGET_RETURN_IN_MEMORY): Likewise.
17614         (arc_return_in_memory): Likewise.
17615         * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
17616         (PROMOTE_FUNCTION_RETURN): Likewise.
17617         (RETURN_IN_MEMORY): Likewise.
17618         (STRUCT_VALUE): Likewise.
17619
17620 2004-01-26  Richard Henderson  <rth@redhat.com>
17621
17622         * c-parse.in (extension): Use itype.
17623         (SAVE_EXT_FLAGS): Don't allocate a tree.
17624         (RESTORE_EXT_FLAGS): Don't read a tree.
17625
17626 2004-01-26  Jan Hubicka  <jh@suse.cz>
17627
17628         * cselib.c (discard_useless_values):  Clear out value pointer pointing
17629         to datastructure to be recycled.
17630
17631 2004-01-25  Jan Hubicka  <jh@suse.cz>
17632
17633         * genextract.c (main): Do not output the memset when not checking.
17634
17635 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
17636
17637         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
17638         switch statement instead of a chain of if statements.
17639
17640 2004-01-26  Jeff Law  <law@redhat.com>
17641
17642         * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry.  Add
17643         acute accents for Petur Runolfsson's entry.
17644
17645 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
17646
17647         * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
17648         (TARGET_RETURN_IN_MEMORY): Likewise.
17649         * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
17650         (RETURN_IN_MEMORY): Likewise.
17651
17652 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
17653
17654          * config/rs6000/rs6000.c (rs6000_emit_move): split slow
17655          unaligned load/store into smaller loads and stores.
17656
17657 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
17658
17659         * function.c (assign_parms): Do not assign
17660         long long argument to memory in prologue if
17661         is it loaded into register.
17662
17663 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
17664
17665          PR middle-end/13779
17666          * expr.c (emit_group_load): split constant
17667          correctly into register components of PARALLEL insn.
17668
17669 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
17670
17671         * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
17672         Use adjust_address_nv directly with appropriate mode.
17673         (restore_stack_nonlocal): Ditto.
17674
17675 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
17676
17677         * config/xtensa/xtensa-protos.h: Remove the prototype for
17678         xtensa_builtin_saveregs.
17679         * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17680         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17681         (TARGET_PROMOTE_PROTOTYPES): Likewise.
17682         (TARGET_STRUCT_VALUE_RTX): Likewise.
17683         (TARGET_RETURN_IN_MEMORY): Likewise.
17684         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
17685         (xtensa_builtin_saveregs): Make it static.
17686         (xtensa_return_in_memory): New.
17687         * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
17688         (PROMOTE_FUNCTION_RETURN): Likewise.
17689         (PROMOTE_PROTOTYPES): Likewise.
17690         (STRUCT_VALUE): Likewise.
17691         (RETURN_IN_MEMORY): Likewise.
17692         (EXPAND_BUILTIN_SAVEREGS): Likewise.
17693
17694 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
17695
17696         * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
17697         (arm_setup_incoming_varargs): Likewise.
17698         * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
17699
17700 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
17701
17702         * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
17703         (cris_setup_incoming_varargs): Likewise.
17704         * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
17705
17706 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
17707
17708         * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
17709         (ns32k_struct_value_rtx): Likewise.
17710         * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
17711         NS32K_STRUCT_VALUE_REGNUM.
17712
17713 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
17714
17715         * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17716         (TARGET_PROMOTE_PROTOTYPES): Likewise.
17717         (TARGET_STRUCT_VALUE_RTX): Likewise.
17718         (arm_struct_value_rtx): Likewise.
17719         * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
17720         (STRUCT_VALUE): Likewise.
17721         (STRUCT_VALUE_REGNUM): Likewise.
17722         (PROMOTE_PROTOTYPES): Likewise.
17723
17724 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
17725
17726         * config/ia64/ia64-protos.h: Remove the prototype for
17727         ia64_setup_incoming_varargs and ia64_return_in_memory.
17728         * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
17729         (TARGET_RETURN_IN_MEMORY): Likewise.
17730         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17731         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
17732         (ia64_setup_incoming_varargs): Adjust the arguments to meet
17733         the requirement of TARGET_SETUP_INCOMING_VARARGS.
17734         (ia64_return_in_memory): Make it static.  Change the return
17735         type to bool from int.  Add an argument.
17736         (ia64_struct_value_rtx): New.
17737         * config/ia64/ia64.h: Remove commented-out definitions of
17738         PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
17739         PROMOTE_PROTOTYPES.
17740         (RETURN_IN_MEMORY): Remove.
17741         (STRUCT_VALUE_REGNUM): Likewise.
17742         (STRICT_ARGUMENT_NAMING): Likewise.
17743
17744 2004-01-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
17745
17746         PR target/13666
17747         * config/sparc/sparc.c (function_arg_union_value): New function.
17748         (function_arg): Use it to deal with unions.
17749         (function_value): Likewise.  Define 'regbase' only for ARCH64.
17750         Replace a conditional statement by a simpler one.
17751
17752 2004-01-26  Richard Sandiford  <rsandifo@redhat.com>
17753
17754         * config/mips/mips.c (mips16_optimize_gp): Delete.
17755         (mips_reorg): Don't call it.
17756
17757 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
17758
17759         * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
17760         (floatunsqihf2): Remove operand 6.
17761         (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
17762         fix patterns.
17763         (ldi_conditional, ldf_conditional): Validate operands.
17764
17765 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
17766
17767         * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
17768         (HAVE_GAS_HIDDEN): Undefine as interim measure.
17769
17770 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
17771
17772         * config/c4x/c4x.c (c4x_legitimate_address_p):  Invalidate direct
17773         memory references if TARGET_EXPOSE_LDP nonzero.
17774
17775 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
17776
17777         * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
17778
17779 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
17780
17781         * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
17782         invalid operand combinations.
17783
17784 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
17785
17786         * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
17787         c4x_legitimate_address_p.  Fix post_modify check.
17788
17789         * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
17790         * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
17791
17792 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
17793
17794         * config/pa/pa-protos.h: Remove the prototype for
17795         hppa_builtin_saveregs.  Add a prototype for
17796         pa_return_in_memory.
17797         * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
17798         (TARGET_PROMOTE_PROTOTYPES): Likewise.
17799         (TARGET_STRUCT_VALUE_RTX): Likewise.
17800         (TARGET_RETURN_IN_MEMORY): Likewise.
17801         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
17802         (pa_struct_value_rtx): Likewise.
17803         (pa_return_in_memory): Likewise.
17804         * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
17805         PA_STRUCT_VALUE_REGNUM.
17806         (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
17807         (EXPAND_BUILTIN_SAVEREGS): Remove.
17808         (PROMOTE_PROTOTYPES): Likewise.
17809         (PROMOTE_FUNCTION_RETURN): Likewise.
17810
17811 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
17812
17813         * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
17814         (TARGET_STRUCT_VALUE_RTX): Likewise.
17815         (vax_struct_value_rtx): Likewise.
17816         * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
17817         VAX_STRUCT_VALUE_REGNUM.
17818         (PROMOTE_PROTOTYPES): Remove.
17819
17820 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
17821
17822         * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS):  Handle symref.
17823
17824 2004-01-25  Chris Demetriou  <cgd@broadcom.com>
17825
17826         * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
17827         and MIPS64 have HI/LO interlocks.  Update comment.
17828
17829 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
17830
17831         * config/stormy16/stormy16-protos.h: Remove the prototype for
17832         xstormy16_setup_incoming_varargs.
17833         * config/stormy16/stormy16.c
17834         (xstormy16_setup_incoming_varargs): Remove.
17835         (xstormy16_return_in_memory): New.
17836         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
17837         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17838         (TARGET_PROMOTE_PROTOTYPES): Likewise.
17839         (TARGET_STRUCT_VALUE_RTX): Likewise.
17840         (TARGET_RETURN_IN_MEMORY): Likewise.
17841         * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
17842         (PROMOTE_FUNCTION_RETURN): Likewise
17843         (PROMOTE_PROTOTYPES): Likewise
17844         (RETURN_IN_MEMORY): Likewise
17845         (STRUCT_VALUE): Likewise
17846         (SETUP_INCOMING_VARARGS): Likewise
17847
17848 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
17849
17850         * config/mips/mips.c (mips_offset_within_object_p): New function.
17851         (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
17852         SYMBOL_CONSTANT_POOL cases.  Also use it for SYMBOL_GENERAL if the
17853         ABI has 64-bit pointers and the object file only allows 32-bit symbols.
17854
17855 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
17856
17857         * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
17858         (PROMOTE_FUNCTION_RETURN): Likewise.
17859
17860 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
17861
17862         * config/mn10300/mn10300-protos.h: Remove the prototype for
17863         mn10300_builtin_saveregs.
17864         * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
17865         (TARGET_STRUCT_VALUE_RTX): Likewise.
17866         (TARGET_RETURN_IN_MEMORY): Likewise.
17867         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
17868         (mn10300_return_in_memory): Likewise.
17869         (mn10300_builtin_saveregs): Make it static.
17870         * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
17871         (RETURN_IN_MEMORY): Likewise.
17872         (STRUCT_VALUE): Likewise.
17873         (EXPAND_BUILTIN_SAVEREGS): Likewise.
17874
17875 2004-01-25  Eric Botcazou  <ebotcazou@act-europe.fr>
17876
17877         PR bootstrap/13853
17878         * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
17879
17880 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
17881
17882         * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
17883         using ccr.
17884
17885 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
17886
17887         * config/i860/i860-protos.h: Remove the prototype for
17888         i860_saveregs.
17889         * config/i860/i860.c (i860_saveregs): Make it static.
17890         (i860_struct_value_rtx): New.
17891         (TARGET_STRUCT_VALUE_RTX): Likewise.
17892         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
17893         * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
17894         I860_STRUCT_VALUE_REGNUM.
17895         (EXPAND_BUILTIN_SAVEREGS): Remove.
17896
17897 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
17898
17899         * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
17900         (TARGET_RETURN_IN_MEMORY): Likewise.
17901         (m68hc11_struct_value_rtx): Likewise.
17902         (m68hc11_return_in_memory): Likewise.
17903         * config/m68hc11/m68hc11.h: Remove a commented-out definition
17904         of PROMOTE_PROTOTYPES.
17905         (RETURN_IN_MEMORY): Remove.
17906         (STRUCT_VALUE_REGNUM): Likewise.
17907
17908 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
17909
17910         * config/mmix/mmix-protos.h: Remove the prototype for
17911         mmix_setup_incoming_varargs.
17912         * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17913         (TARGET_STRUCT_VALUE_RTX): Likewise.
17914         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17915         (mmix_setup_incoming_varargs): Make it static.
17916         (mmix_struct_value_rtx): New.
17917         * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
17918         Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
17919         (STRUCT_VALUE_REGNUM): Remove.
17920         (SETUP_INCOMING_VARARGS): Likewise.
17921
17922 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
17923
17924         * config/mips/mips-protos.h: Remove the prototypes for
17925         mips_setup_incoming_varargs and mips_return_in_memory.
17926         * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17927         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17928         (TARGET_PROMOTE_PROTOTYPES): Likewise.
17929         (TARGET_STRUCT_VALUE_RTX): Likewise.
17930         (TARGET_RETURN_IN_MEMORY): Likewise.
17931         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17932         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
17933         (mips_setup_incoming_varargs): Match the prototype for
17934         TARGET_SETUP_INCOMING_VARARGS.
17935         (mips_return_in_memory): Make it static.  Add argument fntype.
17936         (mips_strict_argument_naming): New.
17937         * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
17938         (PROMOTE_FUNCTION_ARGS): Likewise.
17939         (PROMOTE_FUNCTION_RETURN): Likewise.
17940         (STRUCT_VALUE): Likewise.
17941         (RETURN_IN_MEMORY): Likewise.
17942         (SETUP_INCOMING_VARARGS): Likewise.
17943         (STRICT_ARGUMENT_NAMING): Likewise.
17944
17945 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
17946
17947         * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
17948         (TARGET_RETURN_IN_MEMORY): Likewise.
17949         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17950         (ip2k_return_in_memory): Likewise.
17951         (ip2k_setup_incoming_varargs): Likewise.
17952         * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
17953         (STRUCT_VALUE): Likewise.
17954         (STRUCT_VALUE_INCOMING): Likewise.
17955         (SETUP_INCOMING_VARARGS): Likewise.
17956
17957 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
17958
17959         * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
17960         (TARGET_RETURN_IN_MEMORY): Likewise.
17961         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
17962         (avr_return_in_memory): Remove.
17963         * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
17964         (STRUCT_VALUE): Likewise.
17965         (STRUCT_VALUE_INCOMING): Likewise.
17966         (STRICT_ARGUMENT_NAMING): Likewise.
17967
17968 2004-01-25  Jan Hubicka  <jh@suse.cz>
17969
17970         * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
17971
17972 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
17973
17974         * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
17975         (mips_regno_mode_ok_for_base_p): Declare.
17976         * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
17977         (FRAME_POINTER_REGNUM): Renumber to 78.
17978         (FIRST_PSEUDO_REGISTER): Update comment accordingly.
17979         (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
17980         (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
17981         (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
17982         (REG_MODE_OK_FOR_BASE_P): Likewise.
17983         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
17984         entry for 77 to "$arg" and entry for 78 to "$frame".
17985         (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
17986         (mips_reg_mode_ok_for_base_p): Remove.
17987         (mips_regno_mode_ok_for_base_p): New function, derived from old
17988         BASE_REG_P macro.  Don't enforce the mips16 stack pointer
17989         restrictions unless we're being strict.
17990         (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
17991
17992 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
17993
17994         * c-common.h: Fix comment typos.
17995         * c-decl.c: Likewise.
17996         * cgraphunit.c: Likewise.
17997         * combine.c: Likewise.
17998         * et-forest.c: Likewise.
17999         * flow.c: Likewise.
18000         * function.c: Likewise.
18001         * ifcvt.c: Likewise.
18002         * integrate.c: Likewise.
18003         * jump.c: Likewise.
18004         * postreload.c: Likewise.
18005         * varray.c: Likewise.
18006
18007 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
18008
18009         * doc/frontends.texi: Update copyright.
18010         * doc/gcov.texi: Likewise.
18011         * doc/gty.texi: Likewise.
18012         * doc/sourcebuild.texi: Likewise.
18013         * doc/standards.texi: Likewise.
18014
18015 2004-01-24  Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
18016
18017         PR target/12978
18018         * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
18019         Remove movstrqi_small because it conflicts with movstrqi_large.
18020
18021 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
18022
18023         * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
18024         (TARGET_STRUCT_VALUE_RTX): Likewise.
18025         (cris_struct_value_rtx): Likewise.
18026         * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
18027         (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
18028         STRUCT_VALUE_REGNUM.
18029         (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
18030
18031 2004-01-24  Ian Lance Taylor  <ian@wasabisystems.com>
18032
18033         PR bootstrap/13848
18034         * cse.c (cse_cc_succs): Change the mode of the source expression
18035         as soon as decide we need a new mode.  Don't permit changing modes
18036         if we found a match in a successor block.
18037         (cse_condition_code_reg): Save original mode of source expression
18038         so that we know whether we have to change the mode in other
18039         insns.
18040
18041 2004-01-24  Jan Hubicka  <jh@suse.cz>
18042
18043         * emit-rtl.c (change_address, adjust_address_1, offset_address,
18044         widen_memory_access):  Return early when there is nothing to change.
18045
18046 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
18047
18048         * simplify-rtx.c (simplify_relational_operation): Don't
18049         simplify address == constant into address + -constant == 0.
18050
18051 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
18052
18053         * gcc.c (process_command): Don't internationalize the
18054         Copyright message.
18055         * mips-tfile.c (main): Likewise.
18056
18057 2004-01-24  Andreas Tobler  <a.tobler@schweiz.ch>
18058
18059         * cse.c: (cse_cc_succs) Fix comparison warning.
18060
18061 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
18062
18063         * config/h8300/h8300.md: Remove extraneous USE in expanders.
18064
18065 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
18066
18067         * config/h8300/h8300-protos.h: Provide prototypes for
18068         h8300_legitimate_constant_p and h8300_legitimate_address_p.
18069         * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
18070         (h8300_rtx_ok_for_base_p): Likewise.
18071         (h8300_legitimate_address_p): Likewise.
18072         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
18073         h8300_legitimate_constant_p.
18074         (RTX_OK_FOR_BASE_P): Remove.
18075         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
18076
18077 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
18078
18079         * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
18080         (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
18081         (REG_OK_FOR_INDEX_STRICT_P): Likewise.
18082         (REG_OK_FOR_BASE_STRICT_P): Likewise.
18083         (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
18084         (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
18085         (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
18086         (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
18087
18088 2004-01-24  Jan Hubicka  <jh@suse.cz>
18089
18090         * cselib.c (remove_useless_values):  Do not access discarded values.
18091
18092 2004-01-24  Joseph S. Myers  <jsm@polyomino.org.uk>
18093
18094         * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
18095         arrays.
18096
18097 2004-01-23  Kazu Hirata  <kazu@cs.umass.edu>
18098
18099         * recog.c: Fix a typo in copyright.
18100
18101 2004-01-23  Andrew Pinski  <apinski@apple.com>
18102
18103         * config/rs6000/rs6000.md (call): Fix misappiled patch.
18104         (call_value): Likewise.
18105
18106 2004-01-23  Richard Henderson  <rth@redhat.com>
18107
18108         PR opt/12941
18109         * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
18110         (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
18111         if SHIFT_COUNT_TRUNCATED is set.
18112
18113 2004-01-23  Bob Wilson  <bob.wilson@acm.org>
18114
18115         * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
18116         separate real and imaginary parts.
18117         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
18118
18119 2004-01-23  Hartmut Penner <hpenner@de.ibm.com>
18120
18121         PR target/13674
18122         * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
18123         loading into GPR.
18124
18125 2004-01-23  Jan Hubicka  <jh@suse.cz>
18126
18127         * emit-rtl.c (change_address_1):  Do not re-generate the RTX if nothing
18128         change.
18129
18130         * alloc-pool.c (align_four): Kill.
18131         (create_alloc_pool): Align size to eight.
18132         (free_alloc_pool, free_pool): Invalidate deallocated data.
18133
18134 2004-01-23  Ian Lance Taylor  <ian@wasabisystems.com>
18135
18136         PR gcc/1532
18137         * cse.c (cse_change_cc_mode): New static function.
18138         (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
18139         (cse_condition_code_reg): New function.
18140         * rtl.h (cse_condition_code_reg): Declare.
18141         * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
18142         * target.h (struct gcc_target): Add fixed_condition_code_regs and
18143         cc_modes_compatible.
18144         * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
18145         (TARGET_CC_MODES_COMPATIBLE): Define.
18146         (TARGET_INITIALIZER): Add new initializers.
18147         * targhooks.c (default_cc_modes_compatible): New function.
18148         * targhooks.c (default_cc_modes_compatible): Declare.
18149         * hooks.c (hook_bool_intp_intp_false): New function.
18150         * hooks.h (hook_bool_intp_intp_false): Declare.
18151         * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
18152         (TARGET_CC_MODES_COMPATIBLE): Define.
18153         (ix86_fixed_condition_code_regs): New static function.
18154         (ix86_cc_modes_compatible): Likewise.
18155         * doc/tm.texi (Condition Code): Document new hooks.
18156
18157 2004-01-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18158
18159         * fixinc/inclhack.def (bad_lval): Renamed to ...
18160         (alpha_bad_lval): ... this.
18161         Removed file list.
18162         Restrict to alpha*-dec-osf*.
18163         * fixinc/fixincl.x: Regenerate.
18164         * fixinc/tests/base/dirent.h: Remove, moving test ...
18165         * fixinc/tests/base/testing.h: ... here, reflecting new name.
18166
18167 2004-01-23  Zack Weinberg  <zack@codesourcery.com>
18168
18169         PR c/13814
18170         * c-decl.c (diagnose_mismatched_decls): Also discard a
18171         built-in if we encounter an old-style definition with the
18172         same name.
18173
18174 2004-01-23  Jakub Jelinek  <jakub@redhat.com>
18175
18176         * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
18177         set to default{32,64}.
18178
18179 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
18180
18181         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
18182         [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
18183
18184 2004-01-23  Eric Botcazou  <ebotcazou@act-europe.fr>
18185             Olivier Hainque  <hainque@act-europe.fr>
18186
18187         * fold-const.c (fold_binary_op_with_conditional_arg): Only
18188         build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
18189
18190 2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
18191
18192         * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
18193         size for minipool references.
18194
18195 2004-01-23  Roger Sayle  <roger@eyesopen.com>
18196
18197         * real.c (real_floor, real_ceil): Tweak to allow input and output
18198         arguments to overlap.
18199         (real_round): New function to implement round(3m) semantics.
18200         * real.h (real_round): Prototype here.
18201         * builtins.c (fold_builtin_round): New function to constant fold
18202         round, roundf and roundl.
18203         (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
18204
18205 2004-01-23  Alexandre Oliva  <aoliva@redhat.com>
18206
18207         PR optimization/13819
18208         * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
18209         introduced by 2004-01-20's Jan Hubicka's copy_insn change.
18210         (sh_handle_sp_switch_attribute): Remove warning.
18211
18212 2004-01-23  Jan Hubicka  <jh@suse.cz>
18213
18214         * i386.c (ix86_emit_restore_regs_using_mov):  Deal with large offsets.
18215
18216 2004-01-23  J"orn Rennecke <joern.rennecke@superh.com>
18217
18218         * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
18219         may or may not return non-NIL.
18220         * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
18221         check CANNOT_CHANGE_MODE_CLASS
18222
18223 2004-01-23  Jan Hubicka  <jh@suse.cz>
18224
18225         * basic-block.h (PROP_POSTRELOAD): New macro.
18226         (CLEANUP_LOG_LINKS): New.
18227         * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
18228         * toplev.c (rest_of_handle_life):  Preserve LOG_LINKS trought cleanup_cfg.
18229
18230         * cselib.c (value_pool): New.
18231         (new_cselib_val): Use pool.
18232         (cselib_init): Initialize value_pool
18233         (cselib_finish): Free pool.
18234
18235 2004-01-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
18236
18237         * config/sparc/sparc.c (scan_record_type): New function.
18238         (function_arg_slotno): Use it to determine which kinds of
18239         registers the record can be passed in.
18240
18241 2004-01-22  James A. Mmorrison  <ja2morri@uwaterloo.ca>
18242
18243         * config/pa/fptr.c: Fix old-style definition.
18244
18245 2004-01-22  Paolo Bonzini  <bonzini@gnu.org>
18246
18247         PR optimization/13724
18248         * cse.c (fold_rtx) <SUBREG>:  Fold a SUBREG to zero if it
18249         represents the zero bits produced by a ZERO_EXTEND operation.
18250
18251 2004-01-22  Roger Sayle  <roger@eyesopen.com>
18252
18253         PR optimization/13821
18254         * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
18255         correctly calculate the lowpart offset of the contracted subreg.
18256
18257 2004-01-22  Ian Lance Taylor  <ian@wasabisystems.com>
18258
18259         * doc/invoke.texi (Optimize Options): Note that --param arguments
18260         are subject to change without notice.
18261
18262 2004-01-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18263
18264         * config.gcc (mips-sgi-irix6*o32): Removed.
18265         * config/mips/iris6-o32-as.h: Likewise.
18266         * config/mips/iris6-o32-gas.h: Likewise.
18267         * config/mips/iris6-o32.h: Likewise.
18268
18269 2004-01-22  Jan Hubicka  <jh@suse.cz>
18270
18271         * cfgcleanup.c (first_pass): New static variable.
18272         (try_forward_edges):  Add work limiting check for threading.
18273         (try_crossjump_bb):  Add work limiting check for crossjumping.
18274         (try_optimize_cfg):  Maintain first pass variable.
18275
18276 2004-01-22  Bob Wilson  <bob.wilson@acm.org>
18277
18278         * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
18279         handles complex and vector modes.
18280
18281 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
18282
18283         * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
18284         (REG_OK_FOR_BASE_P_STRICT): Likewise.
18285         (STRICT): Likewise.
18286
18287 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
18288
18289         * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
18290         (genrtl_for_stmt): Remove emit_nop calls.
18291
18292 2004-01-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18293
18294         PR target/13713
18295         PR target/13324
18296         * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
18297         movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
18298         clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
18299
18300 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
18301
18302         * config/arm/arm.c: Include "debug.h".
18303         (thumb_pushpop): Take two new arguments.  Add some commentary.
18304         Output frame information when pushing.
18305         (thumb_exit, thumb_unexpanded_epilogue): Update calls to
18306         thumb_pushpop.
18307         (thumb_output_function_prologue): Likewise.  Accumulate a CFA
18308         offset, and pass it to thumb_pushpop.  Output CFI information.
18309         (thumb_expand_prologue): Add some frame-related markers and notes.
18310
18311 2004-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
18312
18313         * config/s390/s390.c (s390_frame_info): Allow large frame sizes
18314         for TARGET_64BIT.
18315         (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
18316         * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
18317
18318 2004-01-22  Roger Sayle  <roger@eyesopen.com>
18319             Paolo Bonzini  <bonzini@gnu.org>
18320
18321         * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
18322         (subreg_lsb): Change to call new subreg_lsb_1 helper function.
18323         * rtl.h (subreg_lsb_1): Prototype here.
18324         * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
18325         sign extensions.
18326
18327 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
18328
18329         * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
18330         macro need not be defined if jump-tables should contain
18331         relative addresses only when -fPIC or -fPIC is in effect.
18332
18333 2004-01-22  Jan Hubicka  <jh@suse.cz>
18334
18335         * alias.c (reg_base_value): Turn into varray.
18336         (reg_base_value_size): Kill.
18337         (old_reg_base_value): New deletable varray.
18338         (alias_invariant_size): New variable.
18339         (REG_BASE_VALUE): Update to use varray.
18340         (find_base_value): Likewise.
18341         (record_set): Likewise.
18342         (record_base_value): Likewise.
18343         (memrefs_conflict_p): Likewise.
18344         (record_set): Likewise
18345         (record_base_value): Likewise.
18346         (memrefs_conflict_p): Use alias_invariant_size.
18347         (init_alias_analysis): Use varray; set alias_invariant_size;
18348         rescale other arrays to be sized by maxreg.
18349         (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
18350
18351 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
18352
18353         * config/sparc/sparc.c (function_arg_slotno): Use
18354         FLOAT_TYPE_P to detect FP fields in structures.
18355         (function_arg_record_value_1): Likewise.
18356         (function_arg_record_value_2): Likewise.
18357
18358 2004-01-22  Jan Hubicka  <jh@suse.cz>
18359
18360         * function.c (allocate_struct_function): Do not initialize expr, emit
18361         and varasm.
18362         (prepare_function_start): Do it here.
18363         * c-parse.in (maybe_type_qual): Do not produce line number notes.
18364
18365 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
18366
18367         PR target/13559
18368         * config/sparc/sparc.c (function_arg_record_value_3): Revert
18369         to 'word_mode' once the first slot has been filled.
18370
18371 2004-01-22  Olivier Hainque  <hainque@act-europe.fr>
18372
18373         * config/sparc/sparc.c (function_arg_record_value_1): Fix
18374         computation of the number of integer registers required.
18375
18376 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
18377
18378         * config/i386/i386.md: Simplify certain comparisons of
18379         const_int.
18380
18381 2004-01-21  Andrew Pinski  <apinski@apple.com>
18382
18383         PR target/13785
18384         * config/rs6000/rs6000.md (call_value): Force operand
18385         1 not operand 0 into a register.
18386
18387 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
18388
18389         * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
18390         unwind-dw2-fde.h: Update copyright.
18391
18392 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18393
18394         * pa-protos.h: Update copyright.
18395         * pa.h: Likewise.
18396         * pa.md: Likewise.
18397
18398 2004-01-21  Caroline Tice  <ctice@apple.com>
18399
18400         PR target/12308
18401         * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
18402         flags register.
18403         (fix_truncdfdi2): Likewise.
18404         (fix_truncsfdi2): Likewise.
18405         (*fix_truncdi_1): Likewise.
18406         (fix_truncxfsi2): Likewise.
18407         (fix_truncdfsi2): Likewise.
18408         (fix_truncsfsi2): Likewise.
18409         (*fix_truncsi_1): Likewise.
18410         (fix_truncxfhi2): Likewise.
18411         (fix_truncdfhi2): Likewise.
18412         (fix_truncsfhi2): Likewise.
18413         (*fix_trunchi_1): Likewise.
18414
18415 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
18416
18417         * alias.c, basic-block.h, c-common.c, c-common.h,
18418         c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
18419         calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
18420         combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
18421         cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
18422         defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
18423         expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
18424         genautomata.c, genconditions.c, genemit.c, genflags.c,
18425         gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
18426         ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
18427         langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
18428         line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
18429         ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
18430         rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
18431         target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
18432         unwind.h, varray.c, varray.h: Update copyright.
18433
18434 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
18435
18436         * config/h8300/coff.h: Update copyright.
18437         * config/h8300/elf.h: Likewise.
18438         * config/h8300/h8300-protos.h: Likewise.
18439         * config/h8300/h8300.c: Likewise.
18440         * config/h8300/h8300.h: Likewise.
18441         * config/h8300/h8300.md: Likewise.
18442
18443 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18444
18445         * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
18446         ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
18447         ultrix_unistd): New hacks.
18448         * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
18449         ULTRIX_CONST2_CHECK): Add checks.
18450         * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
18451         * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
18452         * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
18453         * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
18454         * fixinc/tests/base/locale.h: New file.
18455         * fixinc/fixincl.x: Rebuilt.
18456
18457 2004-01-21  Andreas Jaeger  <aj@suse.de>
18458             Michael Matz  <matz@suse.de>
18459
18460         * doc/extend.texi (Extended Asm): Clarify memory clobber.
18461
18462 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
18463
18464         * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
18465         _Jv_RegisterClasses through a function pointer.
18466
18467 2004-01-21  Falk Hueffner  <falk@debian.org>
18468
18469         PR target/12898
18470         * config/alpha/alpha.c (alpha_emit_set_const_1): If
18471         no_new_pseudos, use gen_rtx_SET directly for SImode constants
18472         which need multiple instructions to emit.
18473
18474 2004-01-21  Inaoka Kazuhiro  <inaoka.kazuhiro@renesas.com>
18475
18476         * config/m32r/m32r.h (CPP_SPEC): Define.
18477
18478 2004-01-21  Zack Weinberg  <zack@codesourcery.com>
18479
18480         * c-decl.c (merge_decls): Kill different_binding_level and
18481         different_tu arguments; simplify throughout.
18482         (duplicate_decls): Likewise.
18483         (pushdecl, merge_translation_unit_decls): Update calls to
18484         duplicate_decls.
18485
18486 2004-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18487
18488         * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
18489         $(SYSTEM_H).
18490         (print-rtl1.o): Depend on $(SYSTEM_H).
18491
18492 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
18493
18494         PR bootstrap/12730
18495         * configure.ac: Delete definition and subsitution of docdir.
18496         Add info, man, srcman and srcinfo to target hooks. Create doc/
18497         directory.
18498         * configure: Regenerate.
18499         * Makefile.in: Don't substitute docdir and delete all references
18500         throughout.
18501         (MAKEINFOFLAGS): Define.
18502         (stmp-docobjdir): Delete.
18503         (INFOFILES, MANFILES): Define.
18504         (info): Call lang.info, srcinfo and lang.srcinfo.
18505         (generated-manpages): Call lang.man, srcman and lang.srcman.
18506         (srcinfo, srcman): New rules to copy back files to source directory.
18507         (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
18508         (install-man): Revamp rule.
18509         (clean): Update dvi directory.
18510         (distclean): Delete TAGS from front end directorys.
18511         (maintainer-clean): Delete all document files in source directory.
18512
18513         objc/Make-lang.in (objc.man, objc.info): Dummy entries.
18514         (objc.srcman, objc.srcinfo): Likewise.
18515
18516 2004-01-20  Bruce Korb  <bkorb@gnu.org>
18517
18518         * fixinc/inclhack.def(math_exception): bypass only for glibc.
18519         (matherr_decl): rename & relocate as exception_structure.
18520         This fix must precede the math_exception fix.
18521
18522 2004-01-20  Roger Sayle  <roger@eyesopen.com>
18523
18524         * fold-const.c (fold_convert): Rename to fold_convert_const.
18525         (fold_convert_const): Change arguments to take a tree_code,
18526         a type and the operand/expression to be converted.  Return
18527         NULL_TREE if no simplification is possible.  Add support for
18528         FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
18529         (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
18530         Adjust call to fold_convert to match new fold_convert_const.
18531         Avoid modifying the tree passed to fold in-place.
18532
18533 2004-01-21  Alan Modra  <amodra@bigpond.net.au>
18534
18535         * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
18536         * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
18537         * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
18538
18539 2004-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18540
18541         * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
18542         * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
18543         Likewise.  Handle frames larger than 0x7fffffff on 64-bit ports.
18544         (emit_move_sequence): Check scratch_reg first in various if statements.
18545         Extend source simplification to handle all 64-bit CONST_INTs.
18546         (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
18547         frame size.
18548         (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
18549         frame offset calculations.
18550         * pa.h (NEW_HP_ASSEMBLER): Add comment.
18551         (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
18552         LEGITIMATE_64BIT_CONST_INT_P): Define.
18553         (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P.  Treat
18554         any CONST_INT as legitimate during and after reload.
18555         (VAL_32_BITS_P, INT_32_BITS): Define.
18556         (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
18557
18558 2004-01-20  Jan Hubicka  <jh@suse.cz>
18559
18560         * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
18561         emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
18562         containing hard regs are shared.
18563         (gen_hard_reg_clobber): New function.
18564         (hard_reg_clobbers): New array.
18565         * genemit.c (gen_exp): Use gen_hard_reg_clobber.
18566         (copy_rtx): Do not copy clobbers containing hard regs.
18567         * rtl.h (gen_hard_reg_clobber): Declare.
18568
18569 2004-01-20  Jan Hubicka  <jh@suse.cz>
18570
18571         * varray.c:  Include hashtab.h
18572         (varray_descriptor): New structure.
18573         (hash_descriptor, eq_descriptor, varray_descriptor,
18574         print_statistics): New static functions
18575         (varray_init, varray_grow): Update statistics
18576         (dump_varray_statistics): New function.
18577         * varray.h (dump_varray_statistics): Declare.
18578         * toplev.c (finalize): Call it.
18579         * Makefile.in (varray.o): Add dependency.
18580
18581 2004-01-20  Jan Hubicka  <jh@suse.cz>
18582
18583         * cselib.c: Include alloc-pool.h
18584         (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
18585         (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
18586         (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
18587         unchain_one_elt_loc_list_pool, unchain_one_value,
18588         new_cselib_val): Simplify using allocpool.
18589         (cselib_init): Initialize allocpools.
18590         (cselib_finish): Finish allocpools.
18591         * Makefile.in (cselib.o): Depend on alloc-pool.h
18592
18593 2004-01-20  Richard Sandiford  <rsandifo@redhat.com>
18594
18595         * config/mips/mips.c (mips_load_call_address): Make the call insn
18596         use $gp if it could be calling a lazy binding stub.
18597
18598 2004-01-20  Kazu Hirata  <kazu@cs.umass.edu>
18599
18600         * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
18601         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
18602         (TARGET_STRUCT_VALUE_RTX): Likewise.
18603         * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
18604         (PROMOTE_FUNCTION_RETURN): Remove.
18605         (STRUCT_VALUE): Remove.
18606
18607 2004-01-20  Denis Chertykov  <denisc@overta.ru>
18608
18609         PR bootstrap/13735
18610         * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
18611         register as pointer after reload.
18612
18613 2004-01-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18614
18615         PR optimization/12440
18616         * loop.c: Include ggc.h.
18617         (loop_optimize): Run garbage collector between optimization of loops.
18618         * Makefile.in (loop.o): Add GGC_H dependency.
18619
18620 2004-01-20  Hartmut Penner  <hpenner@de.ibm.com>
18621
18622         * gcc/config/rs6000/rs6000.c (function_arg) Handle
18623         vector register special in function without prototype.
18624         (function_arg_advance): Vector parameters get always
18625         GPRs allocated for the linux64 target.
18626
18627 2004-01-20  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
18628
18629         * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
18630         not TARGET_M32RX_MASK.
18631
18632 2004-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
18633
18634         PR target/13557
18635         * config/sparc/sparc.c (function_arg): Reorder the cases.
18636
18637 2004-01-19  Per Bothner  <per@bothner.com>
18638
18639         Move cpp_reader's line_maps field to a shared global.
18640         * cpphash.h (cpp_reader):  Rename line_maps field to line_table
18641         and change the type to a pointer rather than a struct.
18642         * cppinit.c (cpp_push_main_field):  Adjust accordingly.
18643         * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
18644         Likewise.
18645         * cppfiles.c (validate_pch):  Likewise.
18646         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
18647         Likewise.
18648         * cpperror.c (print_location):  Likewise.
18649         * cpplib.h (cpp_create_reader):  New line_maps pointer parameter.
18650         * cppinit.c (cpp_create_reader):  Handle new parameter.
18651         (cpp_destroy):  Don't free line_maps - that's no longer our job.
18652         * input.h (line_table):  New variable.
18653         * toplev.c (line_table):  Declare variable.
18654         (general_init):  Initialize line_table.
18655         * c-opts.c (c_common_init_options):  Pass line_table to
18656         cpp_create_reader.
18657         * fix-header.c (read_scan_file):  New local variable line_table.
18658         Initialize, and pass it to cpp_create_reader.
18659         * Makefile.in (LIBS, LIBDEPS):  Add libcpp.a.
18660         (C_AND_OBJC_OBJS, fix-header):  Remove redundant libcpp.a.
18661
18662 2004-01-19  Per Bothner  <per@bothner.com>
18663
18664         Implement a cache for linemap_lookup.
18665         * line-map.h (struct_line_maps):  Add cache field.
18666         * line-map.c (linemap_init):  Zero cache field.
18667         (linemap_add):  Set cache field to offset of newly allocated map.
18668         (linemap_lookup):  Use and set cache field.
18669
18670 2004-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
18671
18672         PR optimization/13567
18673         * cse.c (cse_basic_block): Call cse_insn with a non-null
18674         libcall_insn for the last SET insn of a no-confilict block.
18675
18676 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
18677
18678         * Makefile.in (target_noncanonical, program_transform_name): Use
18679         immediate define instead of deferred.
18680         (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
18681         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
18682         GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
18683         deferred backquote.
18684
18685 2004-01-20  Joseph S. Myers  <jsm@polyomino.org.uk>
18686
18687         * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
18688         true unconditionally.
18689         * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
18690         Remove.
18691         (build_unary_op, build_modify_expr): Don't handle extended
18692         lvalues.
18693         (build_component_ref, build_conditional_expr): Call non_lvalue
18694         instead of pedantic_non_lvalue.
18695         (build_c_cast): Don't condition use of non_lvalue on pedantic.
18696         * fold-const.c (fold): Don't check pedantic directly for
18697         COMPOUND_EXPR.  Ensure that results for COMPOUND_EXPR are
18698         passed to pedantic_non_lvalue.
18699         * doc/extend.texi: Remove documentation of extended lvalues.
18700
18701 2004-01-19  Roger Sayle  <roger@eyesopen.com>
18702
18703         PR optimization/5263
18704         * simplify-rtx.c (associative_constant_p): Delete.
18705         (simplify_associative_operation): Rewrite to linearize terms, and
18706         attempt to simplify new term against both left and right subterms.
18707         (simplify_binary_operation): Call swap_commutative_operands_p on
18708         op0 and op1, not trueop0 and trueop1.  Move the initialization of
18709         trueop0 and trueop1 down to where first needed.
18710         (simplify_relational_operation): Likewise.
18711         * rtlanal.c (commutative_operand_precedence): Also order constant
18712         operands using avoid_constant_pool_reference.
18713
18714 2004-01-19  Richard Henderson  <rth@redhat.com>
18715
18716         * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
18717         don't check memory mode.
18718         (unaligned_memory_operand): Likewise.
18719         (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
18720         abort for op0 not MEM.
18721
18722         * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
18723         is not a reg, copy to a scratch first.
18724         (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
18725         unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
18726         unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
18727         (reload_inqi, reload_inhi): Fix mode of op0.
18728         (reload_inqi_help, reload_inhi_help, reload_outqi_help,
18729         reload_outhi_help): Likewise.  Use define_insn_and_split.
18730
18731         * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
18732         as well as $29 dead.
18733
18734 2004-01-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
18735
18736         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New.  Emit
18737         "tls_object" for thread-local objects.
18738         * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
18739         "#tls" for thread-local sections.
18740         * configure.ac (thread-local checks): Specify --fatal-warnings in
18741         every binutils-specific checks.  For sparc*-*-*, test whether the
18742         OS is Solaris and the tools are native and act accordingly.
18743         * configure: Rebuild.
18744
18745 2004-01-19  Jeff Law  <law@redhat.com>
18746
18747         * contrib.texi: Update Paolo Carlini's entry.  New entries for
18748         Jerry Quinn and Petur Runolfsson.
18749
18750 2004-01-19  Roger Sayle  <roger@eyesopen.com>
18751
18752         * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
18753         size, don't use the larger zero-extending loads.
18754
18755 2004-01-19  Richard Henderson  <rth@redhat.com>
18756
18757         * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
18758         * alpha.md (UNSPEC_NT_LDA): Remove.
18759         (UNSPEC_CVTLQ, cvtlq): New.
18760         (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
18761         (extendsidi2_fix): Remove.
18762         (extendsidi2 splitter): Use cvtlq.
18763         (extendsidi2 fp peepholes): Remove.
18764         (cvtql): Use SFmode instead of SImode.
18765         (fix_trunc?fsi): Update to match.
18766         (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
18767         (movsi): Rename from movsi_nofix, remove f alternatives.
18768         (movsi_nt_vms): Similarly.
18769         (movsi_fix, movsi_nt_vms_fix): Remove.
18770         (nt_lda): Remove.
18771         * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
18772
18773 2004-01-19  Jan Hubicka  <jh@suse.cz>
18774
18775         * cgraph.c (cgraph_remove_node): Fix removal from linked list.
18776         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
18777         list.
18778         (cgraph_remove_unreachable_nodes): New function
18779         (cgraph_decide_inlining_of_small_function): Fix pasto.
18780         (cgraph_decide_inlining_incrementally): Fix pasto.
18781         (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
18782
18783 2004-01-19  Steven Bosscher  <stevenb@suse.de>
18784
18785         * gengtype.c (header_file): Make it static.
18786         (write_types_process_field, write_enum_defn): Minor whitespace fixes.
18787         * gengtype.h (header_file): No longer extern.
18788
18789 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
18790
18791         * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
18792         * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
18793         * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
18794
18795 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
18796
18797         * stmt.c (HAVE_casesi): Define it not already defined.
18798         (HAVE_tablejump): Likewise.
18799         (expand_end_case_type): Resort to the binary tree method if
18800         neither casesi or tablejump is available.
18801
18802 2004-01-18  Daniel Jacobowitz  <drow@mvista.com>
18803
18804         * final.c (final_scan_insn): Make non-static again.
18805         * output.h (final_scan_insn): Re-add prototype.
18806         * config/arc/arc.c (arc_output_function_epilogue): Add NULL
18807         to final_scan_insn call.
18808         * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
18809         * config/mips/mips.c (mips_output_conditional_branch): Likewise.
18810         * config/pa/pa.c (output_lbranch, output_call): Likewise.
18811         * config/sh/sh.c (print_slot): Likewise.
18812         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
18813         (output_sibcall, sparc_flat_function_epilogue): Likewise.
18814
18815 2004-01-18  Jan Hubicka  <jh@suse.cz>
18816
18817         * basic-block.h (try_redirect_by_replacing_jump): Declare.
18818         * cfgcleanup.c (try_optimize_cfg): Use it.
18819         * cfgrtl.c (try_redirect_by_replacing_jump): Export.
18820         (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
18821         Kill hack.
18822         (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
18823
18824         Revert:
18825         2004-01-16  Geoffrey Keating  <geoffk@apple.com>
18826
18827                 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
18828                 even after reload, just don't remove the actual jump tables.
18829
18830 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
18831
18832         * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
18833
18834 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
18835
18836         * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
18837         the size of a pointer in bytes.
18838
18839 2004-01-18  Roger Sayle  <roger@eyesopen.com>
18840
18841         * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
18842         live "next" variable, which could lead to an infinite loop.
18843
18844 2004-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
18845
18846         * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
18847         block.
18848
18849         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
18850         Check for NULL in the chain and remove repeated code.
18851
18852 2004-01-18  Jan Hubicka  <jh@suse.cz>
18853
18854         * coverage.c (checksum_string): Rename to ...
18855         (coverage_checksum_string): ... this one, Use crc32_string; recognize
18856         names containing random number and zero the number out in order to get
18857         match.
18858
18859 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
18860
18861         * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
18862
18863 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
18864
18865         * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
18866         doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
18867         doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
18868         doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
18869         doc/trouble.texi: Remove trailing whitespace.
18870
18871 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
18872
18873         PR target/7618
18874         * config/mips/mips.c: Include cfglayout.h.
18875         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
18876         (mips_unspec_offset_high): Add temporary register argument.
18877         (mips_load_call_address): New function, split out from...
18878         (mips_expand_call): ...here.
18879         (mips_output_cplocal): New function.
18880         (mips_output_function_prologue, mips_output_function_epilogue): Use it.
18881         (mips_emit_loadgp): New function, split out from...
18882         (mips_expand_prologue): ...here.
18883         (mips_output_mi_thunk): New function.
18884
18885 2004-01-17  Bernardo Innocenti  <bernie@develer.com>
18886
18887         * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
18888         mcpu32): Remove redundant checks for implied target predefines.
18889
18890 2004-1-17  Andrew Pinski  <pinskia@physics.uc.edu>
18891
18892         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
18893         Return type is unsigned int not int.
18894         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
18895         Likewise.
18896
18897 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
18898
18899         * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
18900         doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
18901         "GNU/Linux" and "Microsoft Windows" terminology.
18902
18903 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
18904
18905         * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
18906         doc/cppopts.texi, doc/extend.texi, doc/install.texi,
18907         doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
18908         doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
18909         @smallexample instead of @example.
18910
18911 2004-01-17  Ziemowit Laski  <zlaski@apple.com>
18912
18913         * objc/objc-act.c (build_objc_method_call): Use target
18914         hooks instead of macros to determine if ..._stret
18915         dispatchers should be used (NeXT runtime only).
18916
18917 2004-01-17  Roger Sayle  <roger@eyesopen.com>
18918
18919         * builtins.c (expand_builtin_expect_jump): Fix mistake in my
18920         last patch.  Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
18921
18922 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
18923
18924         * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
18925         (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
18926         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
18927         macros.
18928         * reload1.c (emit_reload_insns): Use them.
18929         * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
18930         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
18931         for NULL PATTERN.
18932
18933 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
18934
18935         * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
18936         (final_scan_insn): Update to take an additional SEEN argument.  Emit
18937         a line note after the prologue.  Make static.
18938         (line_note_exists): Remove.
18939         (final): Don't initialize line_note_exists.  Update call to
18940         final_scan_insn.
18941         * output.h (final_scan_insn): Remove prologue.
18942         * function.c (set_insn_locators): Update comment.
18943         (thread_prologue_and_epilogue_insns): Add a comment.
18944
18945 2004-01-17  Andrew Pinski  <pinskia@physics.uc.edu>
18946
18947         PR target/10781
18948         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
18949         Prototype.
18950         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
18951         New function.
18952         * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
18953         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
18954         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
18955
18956 2004-01-17  Jan Hubicka  <jh@suse.cz>
18957
18958         * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
18959         commit.
18960
18961         * toplev.c (HAVE_conditional_execution): Provide default.
18962         (rest_of_handle_reorder_blocks): For conditional_execution target
18963         update liveness once after all transformations
18964         (rest_of_compilation): Do crossjumping before ce3.
18965
18966 2004-01-17  Geoffrey Keating  <geoffk@apple.com>
18967
18968         * alias.c (new_alias_set): Mark last_alias_set for PCH.
18969         (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
18970         for PCH.
18971         (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
18972         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
18973         (get_TOC_alias_set): Mark 'set' for PCH.
18974
18975 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
18976
18977         * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
18978         even after reload, just don't remove the actual jump tables.
18979
18980 2004-01-17  J. Brobecker  <brobecker@gnat.com>
18981
18982         * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
18983         Remove checks for is_ada() and TREE_UNSIGNED.
18984         (subrange_type_die): Emit a byte_size attribute if the subrange
18985         type size is different from the base type size.
18986         (modified_type_die): Replace call to is_ada_subrange_type() by
18987         call to is_subrange_type().
18988
18989 2004-01-16  Andrew Pinski  <pinskia@physics.uc.edu>
18990
18991         * config/sh/sh.c: Include ggc.h.
18992
18993 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
18994
18995         * Makefile.in (MD5_H): New.
18996         (fold-const.o): Depend on md5.h.
18997         (dwarf2out.o): Likewise.
18998         (cppfiles.o): Likewise.
18999         * cppfiles.c: Include md5.h.
19000         (should_stack_file): Check against list read from PCH file.
19001         (struct pchf_data): New.
19002         (pchf): New variable.
19003         (struct pchf_adder_info): New.
19004         (pchf_adder): New.
19005         (pchf_save_compare): New.
19006         (_cpp_save_file_entries): New.
19007         (_cpp_read_file_entries): New.
19008         (struct pchf_compare_data): New.
19009         (pchf_compare): New.
19010         (check_file_against_entries): New.
19011         * cpphash.h (_cpp_save_file_entries): Prototype.
19012         (_cpp_read_file_entries): Prototype.
19013         * cpppch.c (cpp_write_pch_state): Write the list of headers.
19014         (cpp_read_state): Read the list of headers.
19015
19016 2004-01-17  Jan Hubicka  <jh@suse.cz>
19017
19018         * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
19019         builtin_expect specially.
19020         * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
19021         (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
19022         * invoke.texi (max-inline-insns-single): Set to 100.
19023         (large-function-insns): Set to 3000.
19024
19025 2004-01-16  Eric Christopher  <echristo@redhat.com>
19026             Chandrakala Chavva <cchavva@redhat.com>
19027
19028         * cppcharset.c (one_iso88591_to_utf8): New function.
19029         (convert_iso88591_utf8): Ditto. Use.
19030         (conversion_tab): Use.
19031         (_cpp_input_to_utf8): New function.
19032         (_cpp_init_iconv_buffer): Ditto.
19033         (_cpp_close_iconv_buffer): Ditto.
19034         * cpphash.h: Prototype new functions.
19035         (cpp_buffer): Add input_cset_desc.
19036         * cppinit.c: Add input_charset default.
19037         * cpplib.c (cpp_push_buffer): Support init and
19038         close of iconv.
19039         * cpplib.h (cpp_options): Add input_charset.
19040
19041 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
19042
19043         * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
19044         * config/alpha/unicosmk.h: Remove a commented-out definition
19045         of ASM_OUTPUT_SECTION_NAME.
19046         * config/stormy16/stormy16.h: Likewise.
19047
19048 2004-01-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19049
19050         * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
19051         (alpha___extern_prefix_sys_stat): ... this.
19052         Apply to <sys/mount.h>, too.
19053         Tweak to match more variations.
19054         * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
19055
19056         * fixinc/inclhack.def (alpha___extern_prefix,
19057         alpha___extern_prefix_standards): New hacks to obey
19058         __PRAGMA_EXTERN_PREFIX.
19059         * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
19060         test.
19061         * fixinc/tests/base/standards.h: Likewise.
19062
19063         * fixincl/inclhack.def (alpha_pthread): Tweak to match more
19064         variations.
19065         New testcase.
19066         * fixinc/tests/base/pthread.h: Handle it.
19067
19068         * fixincl/inclhack.def (bad_lval): Sort file list.
19069         Add many missing files up to Tru64 UNIX V5.1B.
19070         * gcc/fixinc/tests/base/libgen.h: Renamed to ...
19071         * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
19072         order.
19073
19074         * fixinc/fixincl.x: Regenerate.
19075
19076 2004-01-16  Mark Mitchell  <mark@codesourcery.com>
19077
19078         * version.c (version_string): Change to 3.5.0.
19079         * doc/include/gcc-common.texi (version-GCC): Likewise.
19080
19081 2004-01-16  Jan Hubicka  <jh@suse.cz>
19082
19083         * i386.md (load_tp_di): Fix pasto.
19084
19085         PR opt/13608
19086         * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
19087
19088         * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
19089         pp_c_character_constant, pp_c_floating_constant,
19090         pp_c_additive_expression, pp_c_shift_expression,
19091         pp_c_equality_expression, pp_c_and_expression,
19092         pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
19093         pp_c_logical_and_expression): Remove inline modifier.
19094         * dwarf2out.c (get_AT): Likewise.
19095         * et-forest.c (et_splay): Likewise.
19096         * ra.h (ra_alloc, ra_calloc): Likewise
19097
19098 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
19099
19100         * config/frv/frv-protos.h: Fix comment formatting.
19101         * config/frv/frv.c: Likewise.
19102         * config/frv/frv.h: Likewise.
19103         * config/frv/frv.md: Likewise.
19104         * config/frv/frvbegin.c: Likewise.
19105         * config/frv/frvend.c: Likewise.
19106
19107 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
19108
19109         * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
19110         * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
19111         LINKER_DOES_NOT_WORK_WITH_DWARF2.
19112         (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
19113
19114 2004-01-16  J"orn Rennecke <joern.rennecke@superh.com>
19115
19116         PR 11864
19117         * postreload.c (reload_cse_simplify_operands): Don't remove
19118         implicit extension from LOAD_EXTEND_OP.
19119
19120 2004-01-16  Jan Hubicka  <jh@suse.cz>
19121
19122         PR opt/11350
19123         * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
19124         after reload.
19125         * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
19126         rtl_try_redirect_by_replacing_branch): Likewise.
19127
19128 2004-01-15  Geoffrey Keating  <geoffk@apple.com>
19129
19130         PR pch/13689
19131         * alias.c (struct alias_set_entry): Mark for GC.
19132         (alias_sets): Make static, mark for GC.
19133         (record_alias_subset): Use GC to allocate alias structures.
19134         * varray.c (element): Make generic varrays GCed.
19135
19136         PR pch/13361
19137         * c-typeck.c (constructor_asmspec): Delete.
19138         (struct initializer_stack): Delete field 'asmspec'.
19139         (start_init): Delete saving of asmspec.
19140         (finish_init): Don't update constructor_asmspec.
19141         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
19142         * stmt.c (expand_asm): Duplicate strings from tree.
19143         (expand_asm_operands): Likewise.
19144         * tree.c (tree_size): Update computation of size of STRING_CST.
19145         (make_node): Don't make STRING_CST nodes.
19146         (build_string): Allocate string with tree node.
19147         * tree.def (STRING_CST): Update comment.
19148         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
19149         (tree_string): Place contents of string in tree node.
19150         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
19151         from tree.
19152
19153         * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
19154         altivec operands.
19155
19156 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
19157
19158         * c-common.h: Fix comment formatting.
19159         * c-cppbuiltin.c: Likewise.
19160         * c-pragma.c: Likewise.
19161         * calls.c: Likewise.
19162         * collect2.c: Likewise.
19163         * cppcharset.c: Likewise.
19164         * cpptrad.c: Likewise.
19165         * dbxout.c: Likewise.
19166         * defaults.h: Likewise.
19167         * dwarf2out.c: Likewise.
19168         * fold-const.c: Likewise.
19169         * genautomata.c: Likewise.
19170         * genconditions.c: Likewise.
19171         * genflags.c: Likewise.
19172         * gengtype.c: Likewise.
19173         * integrate.c: Likewise.
19174         * loop.c: Likewise.
19175         * predict.c: Likewise.
19176         * sdbout.c: Likewise.
19177
19178 2004-01-15  Zack Weinberg  <zack@codesourcery.com>
19179
19180         * config/ia64/ia64.md (*movti_internal): C output template
19181         extracted to ia64.c.
19182         (*movti_internal_reg): Delete.
19183         (reload_inti, reload_outti): Use the correct mode on operand 2
19184         in the first place, don't fix it up in the output template.
19185         (movtf, reload_ointf, reload_outtf): New expanders.
19186         (*movtf_internal): New define_insn_and_split.
19187         * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
19188         make static; do not hand TFmode CONST_DOUBLEs to split_double.
19189         (ia64_split_tmode_move): New function, body mostly pulled
19190         from ia64.md:*movti_internal.
19191         (ia64_function_arg_words): New function, extracted common
19192         logic from ia64_function_arg et seq.
19193         (ia64_function_arg_offset): Likewise.  Handle correctly the
19194         case of a scalar quantity 16 bytes wide with only 8-byte alignment.
19195         (ia64_function_arg, ia64_function_arg_partial_nregs)
19196         (ia64_function_arg_advance): Use ia64_function_arg_words and
19197         ia64_function_arg_offset.
19198         (ia64_function_value): TCmode does not go in float regs.
19199         (ia64_secondary_reload_class): Also handle TFmode.
19200         * config/ia64/ia64-protos.h: Remove prototype for
19201         ia64_split_timode; add prototype for ia64_split_tmode_move.
19202
19203 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
19204
19205         * Makefile.in (MAINT): Make it an immediate assignment.
19206
19207 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
19208
19209         * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
19210
19211 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
19212
19213         * config/h8300/coff.h: Replace Hitachi with Renesas.
19214         * config/h8300/elf.h: Likewise.
19215         * config/h8300/h8300-protos.h: Likewise.
19216         * config/h8300/h8300.c: Likewise.
19217         * config/h8300/h8300.h: Likewise.
19218         * config/h8300/h8300.md: Likewise.
19219         * config/h8300/lib1funcs.asm: Likewise.
19220
19221 2004-01-15  Andrew Pinski  <apinski@apple.com>
19222
19223         * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
19224         around it.
19225
19226 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
19227
19228         * config/h8300/h8300.c (h8300_return_in_memory): New.
19229         (TARGET_STRUCT_VALUE_RTX): Likewise.
19230         (TARGET_RETURN_IN_MEMORY): Likewise.
19231         * config/h8300/h8300.h (STRUCT_VALUE): Remove.
19232         (RETURN_IN_MEMORY): Likewise.
19233
19234 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
19235
19236         PR optimization/13375
19237         * gcse.c (handle_avail_expr): Just return if the source is not a
19238         single set.
19239
19240 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
19241             Daniel Jacobowitz  <drow@mvista.com>
19242
19243         * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
19244         (EQUIV): Define.
19245         (ARM_FUNC_ALIAS): New macro.
19246         * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
19247         * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
19248
19249 2004-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19250
19251         PR optimization/12372
19252         * calls.c (expand_call): Add call_fusage data for stack arguments in
19253         constant calls.
19254
19255 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
19256
19257         * config/rs6000/rs6000.c (uses_TOC): Correct comment.  Make static.
19258         (rs6000_elf_declare_function_name): Formatting.
19259         * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
19260
19261 2004-01-15  Jan Hubicka  <jh@suse.cz>
19262
19263         PR bootstrap/13692
19264         * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
19265         previous patch.
19266
19267 2004-01-15  Richard Henderson  <rth@redhat.com>
19268
19269         * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
19270         integer regs of the same call-savedness.
19271
19272 2004-01-15  Andreas Schwab  <schwab@suse.de>
19273
19274         PR bootstrap/13562
19275         * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
19276         status for NOTB/NOTW/NEGW methods.
19277
19278 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
19279
19280         * doc/invoke.texi: Update dump file names.  Fix a typo.
19281
19282 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
19283
19284         * builtins.c (expand_builtin_va_end): Don't use
19285         EXPAND_BUILTIN_VA_END.
19286         * system.h (EXPAND_BUILTIN_VA_END): Poison.
19287         * config/d30v/d30v.h: Remove a commented-out definition of
19288         EXPAND_BUILTIN_VA_END.
19289         * config/stormy16/stormy16.h: Likewise.
19290
19291 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
19292
19293         * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
19294         * targhooks.c (default_struct_value_rtx): Don't use
19295         STRUCT_VALUE_INCOMING_REGNUM.
19296
19297 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
19298
19299         PR bootstrap/12744
19300         * configure.in: Revamp enable-generated-files-in-srcdir rule to define
19301         GENINSRC and not parsedir.  Define srcextra as a langhook.
19302         * configure: Regenerate.
19303         * Makefile.in: Suppress default .l.c rule.  Don't substitute
19304         parsedir and delete all references throughout.  Conditionally define
19305         rule for srcextra dependent on GENINSRC.
19306         (stmp-docobjdir): Delete.
19307         (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
19308         (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
19309         and gengtype-yacc.h back to source directory.
19310         (maintainer-clean): Delete all parse files in source directory.
19311         (distclean): Delete generated files.
19312
19313         * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
19314         (objc-parse.c, objc-parse.y): Don't use parsedir.
19315         (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
19316         directory if requested.
19317         (po-generated): Don't use parsedir.
19318         (objc.maintainer-clean): Delete above files from source directory.
19319
19320 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
19321
19322         * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
19323
19324 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
19325
19326         * doc/tm.texi: Replace RETURN_IN_MEMORY with
19327         TARGET_RETURN_IN_MEMORY.
19328
19329 2004-01-15  Jan Hubicka  <jh@suse.cz>
19330
19331         * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
19332         * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
19333         functions accepting SSE arguments
19334         (function_arg): Warn only when asked to warn.
19335         * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
19336
19337 2004-01-14  Joseph S. Myers  <jsm@polyomino.org.uk>
19338
19339         * c-parse.in (stmts_and_decls): Make label at end of compound
19340         statement a hard error.
19341
19342 2004-01-14  Jan Hubicka  <jh@suse.cz>
19343
19344         * cgraph.c (create_edge): Use local.redefined_extern_inline.
19345         * cgraph.h (cgraph_local_info): Sort fields by size; add
19346         redefined_extern_inline
19347         (cgraph_global_info): Sort fields by size.
19348         (cgraph_node): Likewise.
19349         * cgraphunit.c (cgraph_finalize_function): Se
19350         local.redefined_extern_inline on redefinition.
19351         (cgraph_analyze_function): Use it; fix formating.
19352
19353 2004-01-14  Jan Hubicka  <jh@suse.cz>
19354
19355         PR c++/10776
19356         * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
19357         outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
19358         bitmaps
19359         (cache_size): New variable
19360         (add_dependence): Update use; canonize early memory locations
19361         (sched_analyze_1): Likewise.
19362         (sched_analyze_2): Likewise.
19363         (init_dependency_caches): Initialize bitmaps.
19364         (free_dependency_caches): Free bitmaps
19365
19366 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
19367
19368         * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
19369         targetm.calls.strict_argument_naming().
19370         * target.h: Likewise.
19371
19372 2004-01-14  Richard Henderson  <rth@redhat.com>
19373
19374         PR debug/13231
19375         * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
19376         instructions.
19377
19378 2004-01-14  Richard Henderson  <rth@redhat.com>
19379
19380         PR c++/12491
19381         * except.c (struct eh_region): Add u.fixup.resolved.
19382         (resolve_one_fixup_region): Split out from ...
19383         (resolve_fixup_regions): ... here.
19384
19385 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
19386
19387         * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
19388
19389 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
19390
19391         * config/alpha/alpha.h (STRUCT_VALUE): Remove.
19392         * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
19393         (STRUCT_VALUE): Remove.
19394
19395 2004-01-14  Steven Bosscher  <stevenb@suse.de>
19396
19397         * system.h: Poison PROMOTED_MODE
19398         * integrate.c (expand_inline_function): Don't mention the
19399         PROMOTED_MODE.
19400         * loop.c (update_giv_derive): Same.
19401         * tree.h (DECL_RTL): Same.
19402
19403 2004-01-14  J"orn Rennecke <joern.rennecke@superh.com>
19404
19405         PR target/9365
19406         * sh.c (gen_block_redirect): Add special handling of RETURN.
19407         (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
19408         far branch target (i.e. it's a return).
19409
19410 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
19411
19412         * regrename.c (find_oldest_value_reg): Fix a warning.
19413
19414 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
19415
19416         PR bootstrap/12527
19417         * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
19418         Move linux-gas.h and linux-elf.h before aout.h.
19419         * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
19420         * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
19421
19422 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
19423
19424         * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
19425         (CONST_INT, VOIDmode, ...).
19426
19427 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
19428
19429         * regrename.c (find_oldest_value_reg): If the replacement uses
19430         multiple hard registers, check that all of them are in CLASS.
19431
19432 2004-01-14  Jan Hubicka  <jh@suse.cz>
19433
19434         * alias.c (get_alias_set):  Initialize alias set to 0 when subset is
19435         impossible.
19436
19437 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
19438
19439         * Makefile.in: Define MAINT from --enable-maintainer-mode.
19440
19441 2004-01-14  Hartmut Penner  <hpenner@de.ibm.com>
19442
19443         * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
19444         Calculate always vrsave_mask if TARGET_ALTIVEC.
19445         (rs6000_emit_prologue): Emit code for vrsave
19446         only if TARGET_ALTIVEC_VRSAVE.
19447         (rs6000_emit_epilogue): Likewise.
19448
19449 2004-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
19450
19451         * config/sparc/sparc.md (tie_add32): Fix pasto.
19452         (tie_add64): Likewise.
19453
19454 2004-01-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19455
19456         * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
19457
19458 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
19459
19460         * config/iq2000/iq2000-protos.h: Fix comment formatting.
19461         * config/iq2000/iq2000.c: Likewise.
19462         * config/iq2000/iq2000.md: Likewise.
19463
19464 2004-01-14  J. Brobecker  <brobecker@gnat.com>
19465
19466         * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
19467         (subrange_type_die): Add handle for nameless subrange types.
19468
19469 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
19470
19471         * config/h8300/h8300-protos.h: Replace do_movsi with
19472         h8300_expand_movsi.
19473         * config/h8300/h8300.c (do_movsi): Change to
19474         h8300_expand_movsi.
19475         * config/h8300/h8300.md (movsi): Replace do_movsi with
19476         h8300_expand_movsi.
19477         (movsf): Likewise.
19478
19479 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
19480
19481         * config/h8300/h8300.c (dosize): Change to
19482         h8300_emit_stack_adjustment.  Update callers.
19483
19484 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
19485
19486         * config/h8300/h8300.md (movstrictqi): Add an alternative with
19487         the source being post_inc.  Tighten the predicate for the
19488         destination to register_operand.
19489         (movstricthi): Likewise.
19490
19491 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
19492
19493         * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
19494         * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
19495         * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
19496
19497 2004-01-14  Jan Hubicka  <jh@suse.cz>
19498
19499         Partial fix PR c++/12850
19500         * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
19501         at zero nest level.
19502
19503 2004-01-13  Bernardo Innocenti  <bernie@develer.com>
19504
19505         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
19506         pseudo-register.
19507
19508 2004-01-13  Devang Patel <dpatel@apple.com
19509
19510         PR debug/7078
19511         * dbxout.c (dbxout_symbol_name): Emit mangled names for
19512         NAMESPACE_DECL memebers.
19513
19514 2004-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
19515
19516         PR c++/12709
19517         * c-common.c (finish_fname_decls): Use the chain only if the
19518         tree is an expr_stmt.
19519
19520 2004-01-13  Vladimir Makarov  <vmakarov@redhat.com>
19521
19522         * rtl.def: Add comment about new option in automata_option.
19523
19524         * genautomata.c (PROGRESS_OPTION): New macro.
19525         (progress_flag): New global variable.
19526         (gen_automata_option): Process `progress'.
19527         (transform_insn_regexps, check_unit_distributions_to_automata,
19528         make_automaton, NDFA_to_DFA, build_automaton, create_automata,
19529         expand_automata, write_automata): Print about the progress only if
19530         progress_flag.  Remove fflush.
19531         (initiate_automaton_gen): Process command line flag `-progress'.
19532
19533         * doc/md.texi: Describe the new option.
19534
19535 2004-01-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19536
19537         * cfg.c (dump_bb): Dump entry edges.
19538
19539 2004-01-13  Richard Earnshaw  <rearnsha@arm.com>
19540
19541         * arm.c (thumb_legitimate_address_p): Only allow constant pool
19542         references from SImode.
19543         * arm.md (thumb_movhi_insn): Don't allow minipool references.
19544
19545 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
19546
19547         * system.h (TEXT_SECTION): Poison.
19548         * varasm.c (text_section): Don't use TEXT_SECTION.
19549         * config/sh/sh.c (sh_file_start): Fix a comment typo.
19550         * doc/tm.texi (TEXT_SECTION): Remove.
19551
19552 2004-01-13  Ben Elliston  <bje@wasabisystems.com>
19553
19554         * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
19555
19556 2004-01-12  James E Wilson  <wilson@specifixinc.com>
19557
19558         * unwind-libunwind.c: Delete.
19559
19560 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
19561
19562         PR 13656
19563         * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
19564         oldtype is set, set *newtypep or *oldtypep too.  Do not set
19565         them at the very end.
19566         (validate_proto_after_old_defn): Restructure for comprehensibility;
19567         make error messages clearer.
19568
19569 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
19570
19571         * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
19572         (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
19573         * varray.c: No need to prototype error.
19574         (varray_check_failed): Wrap long string onto two lines.
19575         (varray_underflow): New function.
19576
19577 2004-01-13  Steven Bosscher  <stevenb@suse.de>
19578
19579         PR c++/13376
19580         * function.h (struct function): Kill `name' field.
19581         (current_function_name): Make it an extern function.
19582         * function.c (current_function_name): New function.
19583         * graph.c: Update all uses of current_function_name.
19584         * gcse.c: Likewise.
19585         * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
19586         config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
19587         * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
19588         instead of a strcmp with "main".
19589
19590 2004-01-13  Jan Hubicka  <jh@suse.cz>
19591
19592         * c-decl.c (diagnose_mismatched_decls):  Fix warning calls.
19593
19594         * cgraphunit.c (cgraph_optimize_function):  Always do
19595         optimize_inline_calls when there is always_inline callee.
19596         (cgraph_decide_inlining): Fix formating.
19597         * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
19598         functions.
19599         (expand_call_inline): Likewise.
19600         * toplev.h (sorry): Fix prototype.
19601
19602 2004-01-12  Roger Sayle  <roger@eyesopen.com>
19603
19604         * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
19605         conditional jumps that drop through to unconditional jumps or the
19606         end of the sequence.
19607
19608 2004-01-13  Jan Hubicka  <jh@suse.cz>
19609
19610         * alias.c (new_alias_set): Construct the alias_set varray.
19611         (init_alias_once): Don't do it here.
19612
19613 2004-01-12  Marc Espie <espie@openbsd.org>
19614
19615         * system.h: handle YYBYACC like YYBISON.
19616
19617 2004-01-12  Jonathan Merriman <jonm@dualitymedia.com>
19618
19619         PR target/10847
19620         * config.gcc: No longer includes conflicting header sparc/sol2.h when
19621         building on sparc64-*-openbsd*.
19622
19623 2004-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
19624
19625         PR debug/13539
19626         * dbxout.c (dbxout_type): Protected inheritance is not
19627         private but protected.
19628
19629 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
19630
19631         * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
19632
19633 2004-01-12  Kazu Hirata  <kazu@cs.umass.edu>
19634
19635         PR optimization/12508.
19636         * combine.c (try_combine): Remove a dead set in a parallel
19637         even if its destination is a subreg.
19638
19639         Revert:
19640         2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
19641         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
19642         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
19643
19644 2004-01-12  Geoffrey Keating  <geoffk@apple.com>
19645
19646         * real.c: Update copyright date.
19647         * emit-rtl.c: Likewise.
19648         * rtl.h: Likewise.
19649         * dwarf2out.c: Likewise.
19650         * config/rs6000/darwin-ldouble.c: Likewise.
19651         * config/rs6000/rs6000.md: Likewise.
19652
19653 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
19654
19655         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
19656         TFmode to SImode libfuncs.
19657
19658 2004-01-12  Roger Sayle  <roger@eyesopen.com>
19659
19660         PR middle-end/11397
19661         * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
19662
19663 2004-01-12  Jan Hubicka  <jh@suse.cz>
19664
19665         PR opt/12826
19666         * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
19667         stored.
19668
19669         PR opt/12863
19670         * cfgcleanup.c (label_is_jump_target_p): Move to...
19671         * rtlanal.c (label_is_jump_target_p): ... here.
19672         * cfgrtl.c (cfg_layout_redirect_edge_and_branch):  Fix redirecting of fallthru
19673         edges unified with branch edges.
19674
19675 2004-01-12  Richard Earnshaw  <rearnsha@arm.com>
19676
19677         * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
19678         high word of an integral CONST_DOUBLE.
19679
19680 2004-01-12  Paul Brook  <paul@codesourcery.com>
19681
19682         * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
19683
19684 2004-01-12  J"orn Rennecke <joern.rennecke@superh.com>
19685
19686         PR target/13585
19687         * sh-protos.h (check_use_sfunc_addr): Declare.
19688         * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
19689         * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
19690
19691 2004-01-12  Jan Hubicka  <jh@suse.cz>
19692
19693         * alias.c:  Invlude varray.h
19694         (alias_sets): Turn into varray.
19695         (get_alias_set_entry): Use VARRAY; mark inline.
19696         (mems_in_disjoint_alias_sets_p): Mark inline.
19697         (record_alias_subset): Use varray.
19698         (init_alias_once): Initialize varray.
19699         (new_alias_set): Grow array.
19700         * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
19701
19702 2004-01-12  Jan Hubicka  <jh@suse.cz>
19703
19704         Partial fix for PR opt/10776 II
19705         * cselib.c: Include params.h
19706         (cselib_invalidate_mem):  Limit amount of nonconflicting memory
19707         locations.
19708         * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
19709         * Makefile.in (cselib.o): Depend on params.h
19710
19711 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
19712
19713         * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
19714         simplify_unary_operation if the operand has a known mode.
19715
19716 2004-01-12  Hartmut Penner  <hpenner@de.ibm.com>
19717
19718         PR target/13534
19719         * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
19720         predicate to handle 'ld' conform addresses.
19721         * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
19722         contraint.
19723         (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
19724         are memory contraints.
19725         * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
19726         New prototype.
19727         * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
19728         Change 'o' to 'Y' constraint.
19729         (*movdf_softfloat64): Ditto.
19730
19731 2004-01-12  Bernardo Innocenti  <bernie@develer.com>
19732
19733         * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
19734         brace-enclosed syntax in all C output statements.
19735
19736 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
19737
19738         PR target/13401
19739         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
19740         Objective-C language type value is 14.
19741
19742 2004-01-12  Markus F.X.J. Oberhumer  <markus@oberhumer.com>
19743
19744         PR c/12148
19745         * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
19746         `int' in a number of places to make sure we always have a SImode
19747         and not a HImode.  Add a 'L' suffix to a number of constants.
19748
19749 2004-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19750
19751         * pa.c: Don't include obstack.h.
19752
19753         * pa.md: Correct constraint in pattern for loading PIC label address.
19754
19755 2004-01-11  Kaz Kojima  <kkojima@gcc.gnu.org>
19756
19757         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
19758          before defining.
19759
19760 2004-01-11  Steven Bosscher  <stevenb@suse.de>
19761
19762         PR fortran/9972
19763         * toplev.c (rest_of_handle_inline): Also consider functions
19764         for deferral if the language is GNU F77.
19765
19766 2004-01-11  Zack Weinberg  <zack@codesourcery.com>
19767
19768         * c-decl.c (diagnose_arglist_conflict): Add missing space to
19769         diagnostic messages.
19770
19771 2004-01-11  Jakub Jelinek  <jakub@redhat.com>
19772
19773         PR middle-end/13392
19774         * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
19775         to drop through label.  Don't fall back to SCC even when conditional
19776         jump has not been found.
19777
19778 2004-01-11  Jan Hubicka  <jh@suse.cz>
19779
19780         * invoke.texi: Fix syntax error in previous patch.
19781
19782         Partial fix for PR opt/10776
19783         * Makefile.in (reload.o): Include param.h
19784         * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
19785         * reload.c: Include params.h.
19786         (find_equiv_reg): Work limiting check.
19787         * invoke.texi: Document.
19788
19789 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
19790
19791         * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
19792         out-of-bounds accesses to string constants.  Simplify mips16
19793         case accordingly.
19794
19795 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
19796
19797         PR optimization/13469
19798         * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
19799         reload_cse_regs (-fnon-call-exceptions only).
19800
19801 2004-01-11  Kazu Hirata  <kazu@cs.umass.edu>
19802
19803         * config/mcore/lib1.asm: Fix comment formatting.
19804         * config/mcore/mcore-elf.h: Likewise.
19805         * config/mcore/mcore.c: Likewise.
19806         * config/mcore/mcore.h: Likewise.
19807         * config/mcore/mcore.md: Likewise.
19808
19809 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
19810
19811         * c-decl.c (duplicate_decls): Break apart into...
19812         (diagnose_arglist_conflict, validate_proto_after_old_defn)
19813         (locate_old_defn, diagnose_mismatched_decls, merge_decls):
19814         ... these new functions.  Restructure for comprehensibility.
19815         Remove various archaic special cases.  Always report the
19816         location of the previous declaration when a diagnostic is issued.
19817         (redeclaration_error_message): Fold into diagnose_mismatched_decls.
19818         (match_builtin_function_types): Delete unnecessary forward declaration.
19819
19820 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
19821
19822         * genautomata.c (make_automaton, NDFA_to_DFA):
19823         Print progress bars with '.' characters instead of '*'.
19824         (build_automaton): Change notes to match.
19825
19826 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
19827
19828         * config/m32r/m32r.md: Use define_constants for unspec and
19829         unspec_volatile.
19830
19831 2004-01-10  Jan Hubicka  <jh@suse.cz>
19832
19833         PR opt/11635
19834         * expr.c (expand_expr_real):  More curefully expand union casts.
19835
19836 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
19837
19838         * config/m32r/m32r.md (flush_icache): Use 1 for
19839         unspec_volatile.
19840
19841 2004-01-10  David Edelsohn  <edelsohn@gnu.org>
19842             James E Wilson  <wilson@specifixinc.com>
19843
19844         PR debug/12860
19845         * dbxout.c (dbxout_symbol): Remove initialization of
19846         current_sym_code, current_sym_value, and current_sym_addr.
19847         (dbxout_symbol_location): Same.
19848         (dbxout_prepare_symbol): Zero current_sym_code,
19849         current_sym_value, and current_sym_addr.
19850
19851 2004-01-10  Richard Sandiford  <rsandifo@redhat.com>
19852
19853         * tree.c (get_unwidened): Reorder conditions so that the null pointer
19854         check is done first.
19855
19856 2004-01-09  Eric Christopher  <echristo@redhat.com>
19857
19858         * toplev.c (rest_of_handle_cfg): Add reg_scan pass
19859         if we're running mark_constant_function.
19860
19861 2004-01-09  Jeff Bailey  <jbailey@nisa.net>
19862
19863         PR target/12561
19864         * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
19865
19866 2004-01-09  Andrew Pinski <pinskia@physics.uc.edu>
19867
19868         PR debug/11231
19869         * dbxout.c (dbxout_type_fields): Return if any item is
19870         error_mark_node or the type is error_mark_node.
19871
19872 2004-01-09  Geoffrey Keating  <geoffk@apple.com>
19873
19874         * config/rs6000/darwin-ldouble.c: Add big comment explaining
19875         exactly what is expected as a 'long double'.
19876         (_xlqadd): When a value to be returned is representable as a
19877         'double', just return it directly, do not construct it using a union.
19878         Also, correct final fixup.
19879         (_xlqmul): Likewise.
19880         (_xlqdiv): Likewise.
19881         * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
19882
19883         * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
19884
19885 2004-01-09  Richard Henderson  <rth@redhat.com>
19886
19887         * recog.c (constrain_operands): Validate mem operands.
19888
19889 2004-01-09   James E Wilson  <wilson@specifixinc.com>
19890
19891         * gcc.c (init_spec): Remove -lunwind from shared case.
19892         * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
19893
19894 2004-01-09  Steve Ellcey  <sje@cup.hp.com>
19895
19896         * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
19897         * configure: Regenerate
19898
19899 2004-01-09  Joseph S. Myers  <jsm@polyomino.org.uk>
19900
19901         PR c/11234
19902         * c-typeck.c (build_c_cast): If pedantic, warn for conversions
19903         between function and object pointers.
19904         (digest_init): When comparing a pointer to function type to the
19905         target type, only apply TREE_TYPE once to the pointer to function
19906         type.
19907         * except.c (for_each_eh_label_1): Treat data as a pointer to a
19908         function pointer rather than casting it to a function pointer.
19909         (for_each_eh_label): Update caller.
19910         * recog.h (struct insn_data): Use a struct or union for output.
19911         * genoutput.c (output_insn_data): Update.
19912         * final.c (get_insn_template): Update.
19913
19914 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
19915
19916         * expr.h (expand_expr): Make it a macro, not a function.
19917         (expand_expr_real): New function.
19918         * expr.c (store_expr): Adjust logic for deciding whether or not to
19919         copy the value returned by expand_expr.
19920         (expand_expr): Rename to ...
19921         (expand_expr_real): ... this.  Add alt_rtl parameter.  Adjust
19922         calls to language hooks.
19923         * c-common.h (c_expand_expr): Adjust prototype.
19924         * c-common.c (c_expand_expr): Add alt_rtl parameter.
19925         * langhooks-def.h (lhd_expand_expr): Change prototype.
19926         * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
19927         * langhooks.h (lang_hooks): Change type of expand_expr.
19928         * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
19929         (last_expr_alt_rtl): Likewise.
19930         (expand_expr_stmt_value): Set last_expr_alt_rtl.
19931         (clear_last_expr): Clear it.
19932         (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
19933         (expand_end_bindings): Save and restor last_expr_alt_rtl.
19934         * tree.def (RTL_EXPR): Give it an additional operand.
19935         * tree.h (RTL_EXPR_ALT_RTL): New macro.
19936
19937 2004-01-09  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
19938
19939         * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
19940         * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
19941
19942 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
19943
19944         PR target/13380.
19945         * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
19946         or (ne:SI (reg:CC 17) (const_int 0)).
19947         Be specific about modes wherever possible.
19948
19949 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
19950
19951         * config/m32r/m32r.c (m32r_expand_block_move): Call
19952         gen_movestrsi_internal with two more arguments.
19953         (m32r_output_block_move): Adjust operand numbers.
19954         Properly update the source and destination pointers.
19955         * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
19956         'r+'.  Change the set detinations to match_operand.
19957
19958 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
19959
19960         * final.c (FIRST_INSN_ADDRESS): Remove.
19961         (shorten_branches): Don't use FIRST_INSN_ADDRESS.
19962         * system.h (FIRST_INSN_ADDRESS): Poison.
19963         * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
19964         * config/m32r/m32r-protos.h: Remove the prototype for
19965         m32r_first_insn_address.
19966         * config/m32r/m32r.c (m32r_first_insn_address): Remove.
19967         * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
19968         * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
19969
19970 2004-01-09  J. Brobecker  <brobecker@gnat.com>
19971
19972         * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
19973         we just created.
19974         (is_ada_subrange_type): DIEs for enumeration subtypes should be
19975         emitted as subrange types too.
19976         (subrange_type_die): Add handling of enumeration subtypes.
19977
19978 2004-01-08  Richard Henderson  <rth@redhat.com>
19979
19980         PR opt/12441
19981         Revert: Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
19982         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
19983         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
19984         (ix86_address_cost): Be prepared for SUBREGed registers.
19985         (legitimate_address_p): Accept SUBREGed registers.
19986
19987 2004-01-08  Kelley Cook  <kcook@gcc.gnu.org>
19988
19989         * Makefile.in: Rename configure.in to configure.ac
19990         * doc/sourcebuild.texi: Likewise.
19991         * configure: Regenerate.
19992         * config.in: Regenerate.
19993
19994 2004-01-08  Stuart Hastings  <stuart@apple.com>
19995
19996         * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
19997
19998 2004-01-08  Jan Hubicka  <jh@suse.cz>
19999
20000         * cgraphunit.c (cgraph_decide_inlining):  Fix typo.
20001
20002 2004-01-08  Geoffrey Keating  <geoffk@apple.com>
20003
20004         * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
20005         (UNSPEC_FIX_TRUNC_TF): New constant.
20006         (movtf_internal): Make splitter active only when insn is active.
20007         (extenddftf2): Rewrite to properly load zero into low part.
20008         (extenddftf2_internal): New.
20009         (extendsftf2): Rewrite.
20010         (truncdftf2): Correct length.
20011         (floatditf2): Delete.
20012         (fix_trunc_helper): New.
20013         (fix_trunctfdi2): Use fix_trunc_helper.
20014         (fix_trunctfsi2): Likewise.fix_trunc
20015         (fix_trunctfsi2_internal): New.
20016
20017         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
20018         addresses are legitimate on Darwin even when flag_pic.
20019         (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
20020         non-offsettable addresses for loads of TFmode constants.
20021
20022 2004-01-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
20023
20024         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
20025         variables in the appropriate bss section.
20026
20027 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
20028
20029         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
20030         target_flags has MASK_POWERPC64 when -m64.
20031         * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
20032         to 620, 630, power3, power4 and rs64a entries.
20033         * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
20034
20035 2004-01-08  Richard Sandiford  <rsandifo@redhat.com>
20036
20037         * simplify-rtx.c (simplify_immed_subreg): Fix construction of
20038         floating-point constants.
20039
20040 2004-01-08  J. Brobecker  <brobecker@gnat.com>
20041
20042         * dwarf2out.c (subrange_type_die): Add context_die parameter.
20043         Create the subrange_type DIE using the given context DIE.
20044         (modified_type_die): Update call to subrange_type_die.
20045
20046 2004-01-08  Zack Weinberg  <zack@codesourcery.com>
20047
20048         * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
20049         Add multiple-include guard.
20050
20051 2004-01-08  Hartmut Penner  <hpenner@de.ibm.com>
20052
20053         * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
20054         all vector constant loadable by vsplt*.
20055         (output_vec_const_move): Likewise.
20056
20057 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
20058
20059         PR c/6024
20060         * c-typeck.c (comptypes): Only treat enumerated types in the same
20061         translation unit as compatible with each other when they are the
20062         same type.
20063         * doc/extend.texi: Update.
20064
20065 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
20066
20067         PR c/12165
20068         * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
20069         array type from the array element type.
20070
20071 2004-01-07  Alan Modra  <amodra@bigpond.net.au>
20072
20073         * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
20074         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
20075         * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
20076         (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
20077         * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
20078
20079 2004-01-06  Eric Christopher  <echristo@redhat.com>
20080
20081         * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
20082         (DWARF2_DEBUGGING_INFO): Define.
20083         (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
20084         * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
20085         * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
20086         for irix as.
20087         (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
20088         * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
20089         * config/mips/iris5gas.h: Ditto.
20090         (DBX_DEBUGGING_INFO): Remove.
20091         (DWARF2_DEBUGGING_INFO): Ditto.
20092         (MIPS_DEBUGGING_INFO): Ditto.
20093         (PREFERRED_DEBUGGING_TYPE): Ditto.
20094         * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
20095         (PREFERRED_DEBUGGING_TYPE): Ditto.
20096         (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
20097         * config/mips/elf64.h: Ditto.
20098
20099 2004-01-06  Jan Hubicka  <jh@suse.cz>
20100
20101         * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
20102         (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
20103
20104 2004-01-06  Geoffrey Keating  <geoffk@apple.com>
20105
20106         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
20107         (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
20108         * config/rs6000/darwin-ldouble.c: New.
20109
20110         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
20111         for constants.
20112         (constant_subword): Delete.
20113         * rtl.h (constant_subword): Delete prototype.
20114         (immed_double_const): Is not in varasm.c.
20115         * simplify-rtx.c (simplify_immed_subreg): New.
20116         (simplify_subreg): Use simplify_immed_subreg.
20117
20118         * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
20119         than trying to generate RTL directly.
20120         (fix_trunctfsi2): Use expand_fix rather than trying to generate
20121         RTL directly.
20122
20123         * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
20124
20125 2004-01-06  David Edelsohn  <edelsohn@gnu.org>
20126
20127         * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
20128         function into a separate macro.
20129         (read_only_data_section): Add void argument.
20130         (private_data_section): Same.
20131         (read_only_private_data_section): Same.
20132         (toc_section): Same.
20133
20134 2004-01-06  Jan Hubicka  <jh@suse.cz>
20135
20136         * invoke.texi:  Remove typo in last change.
20137
20138         PR target/10301
20139         * config.gcc: Accept opteron and athlon-64 as variants
20140         of k8.
20141         * i386.c (override_options): Likewise.
20142         * invoke.texi (i386 -mtune): Expand documentation.
20143
20144 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
20145
20146         * alias.c: Fix comment typos.
20147         * builtins.c: Likewise.
20148         * cfg.c: Likewise.
20149         * df.c: Likewise.
20150         * dominance.c: Likewise.
20151         * dwarf2out.c: Likewise.
20152         * emit-rtl.c: Likewise.
20153         * expr.c: Likewise.
20154         * final.c: Likewise.
20155         * fold-const.c: Likewise.
20156         * gcse.c: Likewise.
20157         * genattrtab.c: Likewise.
20158         * genrecog.c: Likewise.
20159         * gensupport.c: Likewise.
20160         * ggc-zone.c: Likewise.
20161         * integrate.c: Likewise.
20162         * local-alloc.c: Likewise.
20163         * loop.c: Likewise.
20164         * recog.c: Likewise.
20165         * regmove.c: Likewise.
20166         * reg-stack.c: Likewise.
20167         * reorg.c: Likewise.
20168         * rtlanal.c: Likewise.
20169         * rtl.h: Likewise.
20170         * sched-ebb.c: Likewise.
20171         * simplify-rtx.c: Likewise.
20172         * toplev.c: Likewise.
20173         * varasm.c: Likewise.
20174
20175 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
20176
20177         * doc/install.texi: Fix typos.
20178         * doc/invoke.texi: Likewise.
20179         * doc/md.texi: Likewise.
20180
20181 2004-01-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
20182
20183         * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
20184
20185 2004-01-06  Jan Hubicka  <jh@suse.cz>
20186
20187         * i386.c (init_cumulative_args):  Add handling of MMX_REGPARM.
20188         (function_arg_advance):  Do not pass aggregates in SSE; deal handling
20189         of MMX_REGPARM.
20190         (function_arg): Add new warnings about ABI changes;  fix SSE_REGPARM;
20191         add MMX_REGPARM.
20192         * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
20193         (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
20194         (MMX_REGPARM_MAX): Similarly for -mmmx.
20195
20196 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
20197
20198         * config/sh/linux.h: Fix comment formatting.
20199         * config/sh/netbsd-elf.h: Likewise.
20200         * config/sh/sh.c: Likewise.
20201         * config/sh/sh.h: Likewise.
20202         * config/sh/vxworks.h: Likewise.
20203
20204 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
20205
20206         * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
20207         * toplev.c (output_file_directive): Don't use
20208         ASM_OUTPUT_MAIN_SOURCE_FILENAME.
20209
20210 2004-01-05  Steven Bosscher <s.bosscher@student.tudelft.nl>
20211
20212         * toplev.c: Fix broken checkin of 2003-12-30.
20213
20214 2004-01-05  Daniel Berlin  <dberlin@dberlin.org>
20215
20216         * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
20217         (USING_MMAP): We don't support non-mmap.
20218         (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
20219         large objects.
20220         (struct page_entry): Remove bytes_free.
20221         (struct page_table_chain): Remove.
20222         (struct globals): Remove page_table member.
20223         (loookup_page_table_entry): Function deleted.
20224         (set_page_table_entry): Ditto.
20225         (ggc_allocated_p): No longer need page table lookups.
20226         (ggc_marked_p): Ditto.
20227         (alloc_small_page): Don't care about bytes_free anymore.
20228         (alloc_large_page): Round up size.
20229         (ggc_alloc_zone_1): Mark large objects as such, and calculate
20230         their size the new way.
20231         Remove page table lookups and setting.
20232         (ggc_get_size): Calculate large object size the new way.
20233         (sweep_pages): Redo to account for fact that we no longer have
20234         bytes_free.
20235         (ggc_collect): No longer need to reincrement bytes_free.
20236         (ggc_pch_alloc_object): Handle new large objects properly.
20237         (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
20238
20239 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
20240
20241         * doc/invoke.texi: Remove a page break.
20242
20243 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
20244
20245         * config/avr/avr.c (avr_output_function_prologue): Remove an
20246         extra pair of curly braces.
20247
20248 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
20249
20250         * config/mn10300/mn10300.c: Fix comment formatting.
20251         * config/mn10300/mn10300.h: Likewise.
20252
20253 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20254
20255         * tree.h: Update documentation on nothrow_flag.
20256         * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
20257         types.
20258
20259 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
20260
20261         * doc/invoke.texi: Remove traces of dead ports.
20262
20263 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
20264
20265         * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
20266         option.
20267
20268 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
20269
20270         PR target/12945
20271         * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
20272         counter labels.
20273         * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
20274         (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
20275         string constants if TARGET_MIPS16.  Use SYMBOL_REF_DECL to check
20276         the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
20277         (mips_symbol_insns): Don't trust the local/global classification.
20278         (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
20279         (override_options): Make -mabicalls -fno-unit-at-a-time imply
20280         -mno-explicit-relocs.
20281         (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
20282         between local and global symbols.
20283
20284 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
20285
20286         * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
20287         (mips_preferred_reload_class): Declare.
20288         * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
20289         (EXTRA_CONSTRAINT): Update accordingly.
20290         (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
20291         * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
20292         (mips_preferred_reload_class): New function.  Prefer LEA_REGS if
20293         mips_dangerous_for_la25_p.
20294         (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
20295         if mips_dangerous_for_la25_p.
20296
20297 2004-01-05  Bernardo Innocenti  <bernie@develer.com>
20298
20299         * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
20300         warning.
20301
20302 2004-01-04  Nathanael Nerode  <neroden@gcc.gnu.org>
20303
20304         * configure.ac: Use AC_PROG_CPP_WERROR.
20305         * configure: Regenerate.
20306
20307 2004-01-04  Zack Weinberg  <zack@codesourcery.com>
20308
20309         * .cvsignore: Add autom4te.cache.
20310
20311 2004-01-04  Richard Sandiford  <rsandifo@redhat.com>
20312
20313         * doc/invoke.texi: Revamp documentation of MIPS options.  Remove
20314         -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
20315         -m4650, -mfix7000 and -(m)no-crt0.  Put endianness options first,
20316         then architecture options, then ABI options.  General rewording.
20317
20318 2004-01-04  Joseph S. Myers  <jsm@polyomino.org.uk>
20319
20320         PR c/3414
20321         * doc/extend.texi: Clarify definition of malloc attribute.
20322
20323 2004-01-04  Jan Hubicka  <jh@suse.cz>
20324
20325         * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
20326         * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
20327         * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
20328         (cgraph_inline_p): Add extra argument reason.
20329         * cgraphunit.c: Minor formating fixes.
20330         cgraph_first_inlined_callee): New functions.
20331         (record_call_1): Record builtins too.
20332         (cgraph_analyze_function): Update inline_failed messages.
20333         (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
20334         cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
20335         (cgraph_check_inline_limits): Likewise; Add argument reason.
20336         (cgraph_set_inline_failed): New static function.
20337         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
20338         reasons.
20339         (cgraph_inline_p): Add new argument reason.
20340         * tree-inline.c (expand_call_inline):  Update warning.
20341
20342 2004-01-03  Nathanael Nerode  <neroden@gcc.gnu.org>
20343
20344         * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
20345         with modern equivalents.
20346         * configure: Regenerate.
20347
20348         * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
20349         * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
20350         * configure: Regenerate.
20351
20352         * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
20353
20354         * configure.in: Rename to configure.ac.
20355         * configure.ac: Renamed from configure.in; make minimum necessary
20356         changes for autoconf 2.5x.
20357         * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
20358         * configure: Regenerate with autoconf 2.57.
20359
20360 2004-01-03  Kazu Hirata  <kazu@cs.umass.edu>
20361
20362         * config/mips/linux.h: Fix comment formatting.
20363         * config/mips/mips.c: Likewise.
20364         * config/mips/mips.h: Likewise.
20365         * config/mips/mips.md: Likewise.
20366         * config/mips/netbsd.h: Likewise.
20367         * config/mips/windiss.h: Likewise.
20368
20369 2004-01-02  Richard Henderson  <rth@redhat.com>
20370
20371         * config/i386/i386.md (fp constant pool splitter): Reorg suppression
20372         for sse and 387; add suppression for mmx.
20373
20374 2004-01-02  Andrew Pinski  <pinskia@physics.uc.edu>
20375
20376         * loop.c (loop_optimize): Free all loops_info's mems.
20377
20378         * c-typeck.c (finish_init): Free spelling_base before
20379         setting it again.
20380
20381         * cfgloop.c (flow_loops_find): Always free the sbitmap
20382         headers.
20383
20384         * predict.c (estimate_probability): Free bbs after being
20385         done with it.
20386
20387 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
20388
20389         * config/mn10300/mn10300.h (PREDICATE_CODES): Add
20390         const_8bit_operand and call_address_operand.
20391
20392 2004-01-02  Jan Hubicka  <jh@suse.cz>
20393
20394         * cgraphunit.c (cgraph_optimize_function):  Call optimize_inline_calls
20395         when there is nothing to inline but warnings are requested.
20396         (cgraph_decide_inlining):  Fix memory leak.
20397
20398 2004-01-02  Jan Hubicka  <jh@suse.cz>
20399
20400         * expr.c (store_constructor):  Fix pasto in previous patch.
20401
20402 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
20403
20404         * config/i386/cygming.h: Fix comment formatting.
20405         * config/i386/djgpp.h: Likewise.
20406         * config/i386/gthr-win32.c: Likewise.
20407         * config/i386/i386-interix.h: Likewise.
20408         * config/i386/i386.c: Likewise.
20409         * config/i386/i386.h: Likewise.
20410         * config/i386/openbsd.h: Likewise.
20411         * config/i386/winnt.c: Likewise.
20412         * config/i386/xm-mingw32.h: Likewise.
20413
20414 2004-01-02  Joseph S. Myers  <jsm@polyomino.org.uk>
20415
20416         * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
20417         copyright and last modification dates.
20418
20419 2004-01-02  Andreas Jaeger  <aj@suse.de>, Gerald Pfeifer  <gp@suse.de>
20420
20421         * doc/install.texi (Specific): Mention x86_64.
20422
20423 2004-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
20424
20425         * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
20426         Call force_operand on plus_constant result.
20427
20428 2004-01-01  Jan Hubicka  <jh@suse.cz>
20429
20430         * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
20431         * expr.c (store_constructor): Use vec_init pattern.
20432         * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
20433         * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
20434         (vec_set_optab, vec_extract_optab, vec_init_optab): New.
20435         * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
20436         New patterns.
20437         (sse2_unpc?pd): Fix pattern.
20438         (sse2_movlpd): Kill.
20439         (sse2_movsd): Deal with movlpd too.
20440         * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
20441         (ix86_expand_vector_init): New.
20442         * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
20443         * md.texi (vec_set, vec_extract): Document
20444
20445 2003-12-31  Jan Hubicka  <jh@suse.cz>
20446
20447         PR opt/13473
20448         * recog.c (validate_replace_rtx_1):  Take care for RTL sharing inside
20449         ASM input operands
20450
20451         PR opt/12617
20452         * toplev.c (dump_file_index): Reorder ce3 and bbro.
20453         (dump_file): Likewise.
20454         (rest_of_compilation): Likewise.
20455
20456         PR debug/13367
20457         * cgraph.c (cgraph_function_possibly_inlined):  Even with
20458         flag_really_no_inline we inline always_inline functions.
20459         * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
20460         for non-always_inline functions when there is flag_really_no_inline.
20461         (cgraph_decide_inlining): Limit work done when not inlining.
20462         (cgraph_decide_inlining_incrementally): Likewise.
20463         (cgraph_optimize_function): Check whether something got inlined.
20464         * c-objc-common.c (c_disregard_inline_limits): Do not always inline
20465         extern inline functions when not inlining.
20466
20467         * opts.c (decode_options):  Disable crossjumping at -O1
20468         * invoke.texi (-O1): Document change.
20469
20470 See ChangeLog.10 for earlier changes.