]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
tree-ssa.c (raise_value): Removed.
[gcc.git] / gcc / ChangeLog
1 2004-06-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2
3 * tree-ssa.c (raise_value): Removed.
4 (get_eq_name, check_phi_redundancy): New functions.
5 (kill_redundant_phi_nodes): Use standard ssa minimalization algorithm.
6
7 2004-06-18 Roger Sayle <roger@eyesopen.com>
8
9 * fold-const.c (fold) <UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR,
10 UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR>: Add
11 constant folding for unordered comparison tree nodes. If both
12 operands are real constants, call fold_relational_const. If either
13 operand is a NaN, evaluate the other for side-effects and return a
14 constant. Optimize (double)float1 CMP (double)float2 into the
15 equivalent float1 CMP float2.
16 (nondestructive_fold_binary_to_constant) <UNORDERED_EXPR,
17 ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR,
18 LTGT_EXPR>: Call fold_relational_const for constant operands.
19 (fold_relational_const): Add support for unordered comparison tree
20 nodes. Don't constant fold "ordered" floating point comparisons
21 against NaN if when flag_trapping_math is set.
22
23 2004-06-19 Jakub Jelinek <jakub@redhat.com>
24
25 * fold-const.c (build_range_check): If !in_p and recursive call
26 fails, exit immediately. If high - low overflows and etype is
27 a signed type, retry with unsigned etype.
28 (merge_ranges): If !in0_p and !in1_p, handle even range2 adjacent
29 to range1 at TYPE_MAX_VALUE and TYPE_MIN_VALUE.
30
31 2004-06-18 Richard Henderson <rth@redhat.com>
32
33 * c-gimplify.c (gimplify_condition): Remove.
34 (gimplify_c_loop, gimplify_if_stmt, gimplify_switch_stmt): Don't
35 call it.
36
37 2004-06-18 Richard Henderson <rth@redhat.com>
38
39 * tree-eh.c (decide_copy_try_finally): Fix scaling of copy and
40 switch estimates.
41
42 2004-06-18 Andrew Pinski <pinskia@physics.uc.edu>
43
44 * config/i386/darwin.h (HOT_TEXT_SECTION_NAME): Define.
45 (NORMAL_TEXT_SECTION_NAME): Define.
46 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
47 (SECTION_FORMAT_STRING): Define.
48
49 2004-06-18 Steven Bosscher <stevenb@suse.de>
50
51 * config/xtensa/xtensa.c
52 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
53 * xtensa.md: Replace the old pipeline description with a DFA model.
54
55 2004-06-18 Steven Bosscher <stevenb@suse.de>
56 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
57
58 * config/s390/s390.md: Remove the generic pipeline description.
59 * config/s390/2064.md: Make all insn reservations apply to
60 the z900, g5 and g6.
61 * config/s390/s390.c (s390_use_dfa_pipeline_interface): Remove.
62 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
63 Define to hook_int_void_1.
64 (s390_adjust_cost): Cleanup. Don't check address dependency here.
65 (s390_first_cycle_multipass_dfa_lookahead): Always return 4.
66
67 2004-06-18 Daniel Berlin <dberlin@dberlin.org>
68 Diego Novillo <dnovillo@redhat.com>
69
70 * tree-dfa.c (create_var_ann): tree_ann -> tree_ann_t.
71 (create_stmt_ann): Ditto.
72 (create_tree_ann): New function.
73 (create_cst_ann): Remove.
74 (create_expr_ann): Ditto.
75
76 * tree-flow-inline.h (cst_ann): Remove.
77 (get_cst_ann): Ditto.
78 (get_expr_ann): Ditto.
79 (expr_ann): Ditto.
80 (get_tree_ann): New function.
81 (tree_ann): Ditto.
82 (ann_type): tree_ann -> tree_ann_t.
83 * tree-flow.h (tree_ann_type): CST_ANN, EXPR_ANN removed.
84 (struct cst_ann_d): Removed.
85 (struct expr_ann_d): Ditto.
86 (union tree_ann_d): Removed cst and expr.
87 (tree_ann): Renamed to tree_ann_t.
88 * tree-ssa-ccp.c (set_rhs): tree_ann -> tree_ann_t.
89 * tree-ssa-pre.c (get_value_handle): Rewrite for single common
90 annotation.
91 (set_value_handle): Ditto.
92 (phi_translate): Ditto.
93 * tree-tailcall.c (adjust_return_value): tree_ann -> tree_ann_t.
94
95 2004-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
96
97 * config/sh/t-linux64: New file.
98 * config.gcc: Add it to tmake_file for sh64*-*-linux*.
99
100 2004-06-18 Paolo Bonzini <bonzini@gnu.org>
101
102 * emit-rtl.c (unshare_all_rtl_1): New name of unshare_all_rtl.
103 (unshare_all_rtl_again): Call unshare_all_rtl_1.
104 (unshare_all_rtl): New.
105 * function.c (instantiate_virtual_regs): Remove parameters.
106 * function.h (instantiate_virtual_regs): Add prototype.
107 * rtl.h (unshare_all_rtl): Add prototype.
108 * tree.h (instantiate_virtual_regs, unshare_all_rtl): Remove
109 prototype.
110 * passes.c: Remove assertions on the parameters to
111 rest_of_handle_* functions. Remove the parameters to
112 the functions, replacing decl with current_function_decl
113 and insns with get_insns ().
114
115 2004-06-17 Roger Sayle <roger@eyesopen.com>
116
117 * fold-const.c (constant_boolean_node): Handle boolean_type_node
118 directly, return either boolean_true_node or boolean_false_node.
119
120 2004-06-18 Kelley Cook <kcook@gcc.gnu.org>
121
122 * opts.sh: Delete. Break out generated code to next four files.
123 * opt-gather.awk: New file.
124 * optc-gen.awk: New file.
125 * opth-gen.awk: New file.
126 * opt-functions.awk: New common file.
127 * Makefile.in: Update for above.
128 * configure.ac: Update comment.
129 * configure: Regenerate.
130
131 2004-06-17 Richard Henderson <rth@redhat.com>
132
133 * c-common.c (flag_objc_sjlj_exceptions): New.
134 * c-common.h (flag_objc_sjlj_exceptions): Declare.
135 * c-opts.c (c_common_handle_option): Set it.
136 (c_common_post_options): Handle interation of different
137 objective-c exception and runtime switches.
138 * c-decl.c (c_eh_initialized_p): New.
139 (finish_decl): Use it instead of local eh_initialized_p.
140 * c-parse.in (nested_function, notype_nested_function): Record
141 the result of compstmt.
142 (compstmt_or_error): Likewise.
143 (compstmt): Don't add_stmt the result.
144 (stmt): Don't return anything. Rewrite objc try and sync rules.
145 (objc_try_stmt, objc_catch_list): Remove.
146 (objc_catch_block, objc_finally_block): Remove.
147 (objc_catch_prefix, objc_catch_clause, objc_opt_catch_list): New.
148 (objc_try_catch_clause, objc_finally_clause): New.
149 (objc_try_catch_stmt): Rewrite.
150 * c-tree.h (c_eh_initialized_p): Declare.
151 * c-opt (fobjc-sjlj-exceptions): New.
152 * except.c (output_function_exception_table): Don't call cgraph
153 on non-decls.
154 * objc/objc-act.c (UTAG_EXCDATA_VAR, UTAG_CAUGHTEXC_VAR,
155 UTAG_RETHROWEXC_VAR, UTAG_EVALONCE_VAR, struct val_stack,
156 catch_count_stack, exc_binding_stack, if_nesting_count,
157 blk_nesting_count, objc_enter_block, objc_exit_block,
158 objc_declare_variable, val_stack_push, val_stack_pop,
159 objc_build_try_enter_fragment, objc_build_extract_expr,
160 objc_build_try_exit_fragment, objc_build_extract_fragment,
161 objc_build_try_prologue, objc_build_try_epilogue,
162 objc_build_catch_stmt, objc_build_catch_epilogue,
163 objc_build_finally_prologue, objc_build_finally_epilogue,
164 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
165 objc_build_synchronized_epilogue): Remove.
166 (objc_create_temporary_var, struct objc_try_context, cur_try_context,
167 objc_eh_runtime_type, objc_init_exceptions, objc_build_exc_ptr,
168 next_sjlj_build_try_exit, next_sjlj_build_enter_and_setjmp,
169 next_sjlj_build_exc_extract, next_sjlj_build_catch_list,
170 next_sjlj_build_try_catch_finally, objc_begin_try_stmt,
171 objc_begin_catch_clause, objc_finish_catch_clause,
172 objc_build_finally_clause, objc_finish_try_stmt,
173 objc_build_synchronized): New.
174 (objc_is_object_id, objc_is_class_id): New.
175 (objc_comptypes): Use them.
176 (build_next_objc_exception_stuff): Break NeXT sjlj out from
177 build_objc_exception_stuff.
178 (synth_module_prologue): Update to match.
179 (objc_build_throw_stmt): Use cur_try_context to decide if
180 we're in a @catch.
181 * objc/objc-act.h: Update prototypes.
182 (OCTI_EXCEPTION_BLK_STACK, objc_exception_block_stack): Remove.
183
184 2004-06-17 Andrew Pinski <apinski@apple.com>
185
186 * c-typeck.c (tagged_types_tu_compatible_p <case UNION_TYPE>):
187 Use TYPE_FIELDS instead of TYPE_VALUES.
188
189 2004-06-17 Jason Merrill <jason@redhat.com>
190
191 PR c++/16015
192 * gimplify.c (gimplify_target_expr): Handle void initializer.
193 * expr.c (expand_expr_real_1) [TARGET_EXPR]: Likewise.
194 * doc/c-tree.texi (Expression trees): Update TARGET_EXPR
195 and AGGR_INIT_EXPR.
196
197 2004-06-17 Roger Sayle <roger@eyesopen.com>
198
199 * fold-const.c (fold_relational_const): Use constant_boolean_node.
200
201 2004-06-17 Jan Hubicka <jh@suse.cz>
202
203 PR target/15433
204 * i386.md (SSE SF cmov 0 splitter): The conditional is VOIDmode; fix
205 operand numbering in the output template.
206 (SSE DF cmov 0 splitter): The conditional is VOIDmode.
207
208 2004-06-17 Jan Hubicka <jh@suse.cz>
209
210 * except.c (can_throw_internal): Recognize RESX expresisons.
211
212 2004-06-17 Jan Hubicka <jh@suse.cz>
213
214 * cfgbuild.c (make_edges): Do not use label_value_list.
215 (find_basic_blocks_1): Do not collect label_value_list.
216 (find_sub_basic_blocks): Update call of make_edges.
217
218 2004-06-17 Andrew MacLeod <amacleod@redhat.com>
219
220 * tree-cfg.c (tree_make_forwarder_block): Use SET_PHI_RESULT.
221 * tree-flow-inline.h (get_use_op_ptr): Return a use_operand_p.
222 (get_use_from_ptr, get_def_from_ptr): New. Return operand pointers.
223 (get_def_op_ptr): Return a def_operand_p instead of a 'tree *'.
224 (get_v_may_def_result_ptr): Return a def_operand_p.
225 (get_v_may_def_op_ptr, get_vuse_op_ptr): Return a use_operand_p.
226 (get_v_must_def_op_ptr): Return a def_operand_p.
227 (get_phi_result_ptr): New. Return a pointer to the result of a PHI.
228 (get_phi_arg_def_ptr): New. Return a pointer to an argument of a PHI.
229 (phi_element_for_edge): Remove.
230 * tree-flow.h (propagate_value, replace_exp): Change prototype.
231 (propagate_tree_value): Add new prototype.
232 (phi_element_for_edge): Remove prototype.
233 * tree-into-ssa.c (mark_def_sites): Use new operand types.
234 (prepare_operand_for_rename): Split into two functions.
235 (prepare_use_operand_for_rename): Prepare use operands.
236 (prepare_def_operand_for_rename): Prepare def operands.
237 (rewrite_stmt): Use new operand types.
238 (rewrite_operand): Use new operand types, change parameter type.
239 * tree-outof-ssa.c (replace_variable): Split into two functions.
240 (replace_use_variable): Rewrite uses.
241 (replace_def_variable): Rewrite defs.
242 (rewrite_trees, rewrite_vars_out_of_ssa): Use new operand types.
243 * tree-phinodes.c (make_phi_node, resize_phi_node): Use new types.
244 (add_phi_arg, remove_phi_arg_num): Use new operand types.
245 * tree-ssa-ccp.c (substitute_and_fold): Use new operand types.
246 (ccp_fold, replace_uses_in): Use new operand types.
247 * tree-ssa-copy.c (replace_ssa_names): Rename to replace_ssa_names_ann
248 and no longer set the value, change parameter type.
249 (replace_exp_1): Use new operand types.
250 (propagate_value): Change parameter type, use new operand types.
251 (propagate_tree_value): Propagate_value without SSA operands.
252 (replace_exp, cprop_operand, cprop_into_stmt): Use new operand types.
253 (cprop_into_successor_phis): Use new operand types.
254 * tree-ssa-dom.c (thread_across_edge): Use new operand types.
255 (eliminate_redundant_computations): Use new operand types.
256 * tree-ssa-dse.c (fix_phi_uses): Use new operand_types.
257 (fix_stmt_v_may_defs): Use new operand_types.
258 * tree-ssa-live.c (create_ssa_var_map): Use new operand_types.
259 (build_tree_conflict_graph): Use new operand_types.
260 * tree-ssa-loop.c (duplicate_blocks): Use PHI_ARG_DEF_FROM_EDGE.
261 * tree-ssa-operands.c (struct freelist_d): Remove.
262 (check_optype_freelist, add_optype_freelist): Remove.
263 (allocate_def_optype, allocate_use_optype, allocate_v_may_def_optype,
264 allocate_vuse_optype, allocate_v_must_def_optype): Call ggc_alloc.
265 (free_uses, free_defs, free_vuses, free_v_may_defs, free_v_must_defs):
266 Call ggc_free instead of add_optype_freelist.
267 (init_ssa_operands, fini_ssa_operands): Remove free list code.
268 (finalize_ssa_defs, finalize_ssa_uses): Set new use/def operands.
269 * tree-ssa-operands.h (struct def_optype_d): Change underlying type.
270 (struct use_optype_d): Change underlying type.
271 (def_operand_p, use_operand_p): New types for pointers to operands.
272 (USE_OP, DEF_OP, V_MAY_DEF_RESULT, V_MAY_DEF_OP, VUSE_OP,
273 V_MUST_DEF_OP): Use new pointer type instead of dereferencing directly.
274 (USE_FROM_PTR, DEF_FROM_PTR): New macros to "dereference" operand
275 pointer types.
276 (SET_USE, SET_DEF): New macros to set operands from their pointer.
277 (SET_USE_OP, SET_DEF_OP, SET_V_MAY_DEF_RESULT, SET_V_MAY_DEF_OP,
278 SET_VUSE_OP, SET_V_MUST_DEF_OP): New SET routines for operands.
279 (PHI_RESULT_PTR, PHI_RESULT, SET_PHI_RESULT): Macros to manage the
280 PHI result as an operand.
281 (PHI_ARG_DEF_PTR, PHI_ARG_DEF, SET_PHI_ARG_DEF, PHI_ARG_DEF_FROM_EDGE,
282 PHI_ARG_DEF_PTR_FROM_EDGE): Macros to manage the PHI arguments.
283 * tree-ssa-pre.c (eliminate): Call propagate_tree_value.
284 * tree-tailcall.c (independent_of_stmt_p, propagate_through_phis): Use
285 PHI_ARG_DEF_FROM_EDGE.
286 * tree.h (PHI_RESULT): Renamed to PHI_RESULT_TREE.
287 (PHI_ARG_DEF): Renamed to PHI_ARG_DEF_TREE.
288
289 2004-06-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
290
291 PR tree-optimization/15991
292 * tree-cfg.c (tree_block_label): Export.
293 * tree-flow-inline.h (bsi_after_labels): New function.
294 * tree-flow.h (bsi_after_labels, tree_block_label): Declare.
295 * tree-ssa.c (propagate_into_addr): New function.
296 (replace_immediate_uses): Handle propagation of pointer constants.
297 (raise_value): Do not restrict propagation of pointer constants.
298 * tree-ssanames.c (duplicate_ssa_name): New function.
299 * tree.h (duplicate_ssa_name): Declare.
300
301 2004-06-17 David Ayers <d.ayers@inode.at>
302
303 * c-parse.in: Unify Objective-C token names.
304
305 2004-06-17 Zack Weinberg <zack@codesourcery.com>
306
307 Bug 14610
308 * Makefile.in (min-insn-modes.o): Correct dependencies.
309 * real.c (encode_ieee_extended, decode_ieee_extended): Always
310 produce/consume 12-byte little-endian Intel format.
311 (encode_ieee_extended_128, decode_ieee_extended_128): Delete.
312 (encode_ieee_extended_motorola, decode_ieee_extended_motorola)
313 (encode_ieee_extended_intel_96, decode_ieee_extended_intel_96)
314 (encode_ieee_extended_intel_128, decode_ieee_extended_intel_128):
315 New functions which convert between 12-byte little-endian Intel
316 format and the desired format.
317 (ieee_extended_motorola_format, ieee_extended_intel_96_round_53_format)
318 (ieee_extended_intel_96_format, ieee_extended_intel_128_format):
319 Update.
320
321 2004-06-17 Zack Weinberg <zack@codesourcery.com>
322
323 * expmed.c (expand_mult_const): In sanity check, compare only
324 the bits of val and val_so_far that are significant in the
325 result mode.
326
327 2004-06-17 Daniel Berlin <dberlin@dberlin.org>
328
329 * tree-ssa-pre.c: Update comments.
330 (val_expr_pair_eq): Factor code from here.
331 (expr_pred_trans_eq): and here.
332 (expressions_equal_p): To here.
333 (print_value_set): Print value for expression.
334 (phi_trans_lookup): Rename some variables.
335 (lookup): Ditto.
336 (value_exists_in_set_bitmap): Ditto.
337 (value_remove_from_set_bitmap): Ditto.
338 (value_insert_into_set_bitmap): Ditto.
339
340 2004-06-17 Ulrich Weigand <uweigand@de.ibm.com>
341
342 * config/s390/s390-modes.def (CCL3mode): New machine mode.
343 * config/s390/s390.c (s390_match_ccmode_set): Support CCL3mode.
344 (s390_alc_comparison, s390_slb_comparison): Likewise.
345 (s390_branch_condition_mask): Likewise.
346 * config/s390/s390.md ("*subdi3_cc2", "*subdi3_cconly2"): New.
347 ("*subsi3_cc2", "*subsi3_cconly2"): New.
348
349 * config/s390/s390.h (PREDICATE_CODE): Accept SIGN_EXTEND and
350 ZERO_EXTEND for s390_alc_comparison and s390_slb_comparison.
351 * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
352 Handle SIGN_EXTEND and ZERO_EXTEND.
353
354 * config/s390/s390-protos.h (s390_expand_addcc): New prototype.
355 * config/s390/s390.c (s390_expand_addcc): New function.
356 * config/s390/s390.md ("adddicc", "addsicc"): New expanders.
357 ("*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg"): New insns.
358 ("sltu", "sgtu", "sleu", "sgeu"): New expanders.
359
360 2004-06-17 Ben Elliston <bje@au.ibm.com>
361
362 * tree-alias-common.c: Add whitespace.
363 * tree-inline.c: Correct comment about this file's purpose.
364 * tree-optimize.c: Likewise.
365 * tree-tailcall.c: Likewise.
366
367 * tree-alias-ander.h: Add standard top-of-file comment.
368 * tree-alias-common.h: Likewise.
369 * tree-alias-type.h: Likewise.
370
371 2004-06-16 Daniel Berlin <dberlin@dberlin.org>
372
373 * tree-ssa-pre.c (compute_avail): Value number uses as well.
374 Strip useless type conversions.
375 Casts have to be treated slightly different than normal unaries.
376
377 2004-06-16 Richard Henderson <rth@redhat.com>
378
379 * c-common.def (COMPOUND_STMT): Remove.
380 * c-common.c (finish_fname_decls): Don't look through it.
381 * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
382 * c-common.h (COMPOUND_BODY): Remove.
383 (c_common_stmt_codes): Remove COMPOUND_STMT.
384 * c-dump.c (c_dump_tree): Likewise.
385 * c-gimplify.c (c_gimplify_stmt): Likewise.
386 * c-pretty-print.c (pp_c_statement): Likewise.
387 * tree.h (DECL_SAVED_TREE): Update commentary.
388 * doc/c-tree.texi (ASM_EXPR): Rename from ASM_STMT.
389 (CASE_LABEL_EXPR): Rename from CASE_LABEL.
390 (GOTO_EXPR): Rename from GOTO_STMT.
391 (GOTO_FAKE_P): Remove.
392 (COMPOUND_STMT): Remove.
393 (HANDLER): Update wrt COMPOUND_STMT.
394 (STMT_EXPR): Likewise.
395 (LABEL_EXPR): Rename from LABEL_STMT.
396 (SCOPE_STMT): Remove.
397 * objc/objc-act.c (objc_build_try_catch_finally_stmt): Don't look
398 through COMPOUND_STMT.
399
400 2004-06-16 Richard Henderson <rth@redhat.com>
401
402 * c-common.h (c_begin_if_stmt, c_begin_while_stmt,
403 c_finish_while_stmt_cond): Remove decls.
404 * c-parse.in (if_prefix): Don't save c_begin_if_stmt result.
405 * c-typeck.c (c_begin_if_stmt): Return void.
406 (c_begin_else): Tidy. Save stmt_count.
407 * c-tree.h (c_begin_if_stmt): Update decl.
408
409 * objc/objc-act.c (objc_build_try_enter_fragment,
410 objc_build_extract_fragment, objc_build_try_epilogue,
411 objc_build_catch_stmt, objc_build_catch_epilogue,
412 objc_build_finally_prologue, objc_build_finally_epilogue): Update
413 for if builder function changes.
414
415 2004-06-16 Ulrich Weigand <uweigand@de.ibm.com>
416
417 * config/s390/s390.c (struct machine_function): New member
418 last_restore_gpr.
419 (s390_frame_info): Add BASE_USED and RETURN_ADDR_USED parameters.
420 Do not modify machine->save_return_addr_p or regs_ever_live.
421 Fill in machine->last_restore_gpr.
422 (s390_optimize_prolog): Use s390_frame_info to compute registers
423 to save/restore, remove duplicated code.
424 (s390_arg_frame_offset): Use s390_frame_info to compute frame
425 size, remove duplicated code.
426 (s390_emit_prologue): Adapt s390_frame_info call. Update
427 machine->save_return_addr_p and regs_ever_live.
428 (s390_emit_epilogue): Use machine->last_restore_gpr instead of
429 machine->last_save_gpr.
430
431 2004-06-16 Richard Henderson <rth@redhat.com>
432
433 * c-parse.in (if_stmt_locus): Remove.
434 (if_prefix): Increment stmt_count; pass it to c_finish_if_cond.
435 (select_or_iter_stmt): Move empty if warnings to c-typeck.c.
436 * c-typeck.c (if_elt): Sort by expected size. Rename locus to
437 empty_locus. Add stmt_count, saw_else.
438 (c_begin_if_stmt): Push if_stack here.
439 (c_finish_if_cond): Rename from c_expand_end_cond. Record stmt_count.
440 (c_finish_then, c_finish_else): Record empty_locus.
441 (c_begin_else): Rename from c_expand_start_else. Record stmt_count.
442 (c_finish_if_stmt): Rename from c_expand_end_cond. Warn for empty
443 if or else body.
444 * c-tree.h: Update prototypes.
445
446 2004-06-16 Steven Bosscher <stevenb@suse.de>
447
448 * tree.h (PHI_CHAIN): New.
449 * (tree-cfg.c, tree-dfa.c, tree-flow-inline.h, tree-into-ssa.c,
450 tree-outof-ssa.c, tree-phinodes.c, tree-pretty-print.c,
451 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-dse.c,
452 tree-ssa-live.c, tree-ssa-loop.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
453 tree-ssa.c, tree-tailcall.c): Use PHI_CHAIN instead of TREE_CHAIN
454 when traversing a list of PHI_NODEs.
455
456 2004-06-16 Bernardo Innocenti <bernie@develer.com>
457
458 PR target/13292
459 * config/m68k/m68k.h (TARGET_SWITCHES): Don't remove MASK_68040_ONLY
460 on -msoft-float.
461 (TARGET_FLT_EVAL_METHOD): Don't advertise extended precision for
462 68040 and soft-float.
463 * config/m68k/m68k.md (truncdfsf2): Explicitly require TARGET_68881
464 in the TARGET_68040_ONLY case.
465
466 2004-06-16 Peter Barada <peter@the-baradas.com>
467
468 * config/m68k/m68k.md (movsi_cfv4): New pattern to allow mov3q.
469 (movsi_cf): Make named, don't match TARGET_CFV4.
470 (pushexthisi_const): Use mov3q if possible.
471 (extendhisi2, cvf4_extendhisi2): Split extendhisi2 pattern
472 to special case mvz.w for ColdFire V4.
473 (extendqisi2, cvf4_extendqisi2): Split extendhisi2 pattern
474 to special case mvz.b for ColdFire V4.
475 (udivmodhi4, divmodhi4): Use mvz to zero extend arg for
476 divide.
477 (iorsi3, xorsi3, andsi3): Use bitfield instructions if possible.
478 * config/m68k/m68k.c(valid_mov3q_const): New function.
479 (const_method): SWAP is valid for ColdFire.
480 (MULL_COST, MULW_COST): Fix costs for ColdFire V3/V4.
481 * config/m68k/m68k-protos.h (valid_mov3q_const): Prototype here.
482
483 2004-06-16 Richard Henderson <rth@redhat.com>
484
485 * c-common.def (CASE_LABEL): Remove.
486 * c-common.c (c_add_case_label): Use CASE_LABEL, not CASE_LABEL_DECL.
487 (match_case_to_enum_1): Likewise.
488 * c-common.h (c_common_stmt_codes): Remove CASE_LABEL.
489 * c-dump.c (c_dump_tree): Likewise.
490 * c-gimplify.c (c_gimplify_stmt): Likewise.
491 * c-pretty-print.c (pp_c_statement): Likewise.
492 * c-semantics.c (build_case_label): Use CASE_LABEL_EXPR.
493 * tree.h (CASE_LOW): Update commentary.
494
495 2004-06-16 Richard Henderson <rth@redhat.com>
496
497 * c-common.def (ASM_STMT): Remove.
498 * c-common.h (c_common_stmt_codes): Remove ASM_STMT.
499 * c-dump.c (c_dump_tree): Likewise.
500 * c-gimplify.c (c_gimplify_stmt): Likewise.
501 * c-pretty-print.c (pp_c_statement): Likewise.
502 * c-typeck.c (build_asm_expr): Use ASM_EXPR.
503 * tree.h: Fix commentary.
504
505 2004-06-16 Richard Henderson <rth@redhat.com>
506
507 * c-common.def (GOTO_STMT, LABEL_STMT): Remove.
508 * c-common.c (c_add_case_label): Use LABEL_EXPR.
509 * c-common.h (GOTO_FAKE_P, LABEL_STMT_LABEL): Remove.
510 (c_common_stmt_codes): Remove GOTO_STMT, LABEL_STMT.
511 * c-dump.c (c_dump_tree): Likewise.
512 * c-gimplify.c (c_gimplify_stmt): Likewise.
513 * c-pretty-print.c (pp_c_statement): Likewise.
514 * c-parse.in (stmt): Use GOTO_EXPR.
515 (label): Use LABEL_EXPR.
516 * c-semantics.c (build_stmt): Set TREE_TYPE to void.
517 * tree-inline.c (copy_body_r): Don't build empty BLOCKs.
518
519 2004-06-16 J"orn Rennecke <joern.rennecke@superh.com>
520
521 * cfgcleanup.c (try_simplify_condjump): Update test to make
522 sure we have a conditional branch around am unconditional branch.
523
524 2004-06-16 Daniel Berlin <dberlin@dberlin.org>
525
526 * tree-cfg.c (pass_split_crit_edge): Give it a name and a dump file.
527
528 2004-06-16 Dale Johannesen <dalej@apple.com>
529
530 * loop.c (loop_givs_reduce): Avoid miscompilation of
531 loops entered at bottom.
532
533 2004-06-16 J"orn Rennecke <joern.rennecke@superh.com>
534
535 * cfglayout.c (fixup_reorder_chain): Handle case where the
536 destination of E_FALL is EXIT_BLOCK_PTR.
537
538 2004-06-16 Vladimir Makarov <vmakarov@redhat.com>
539
540 PR target/15653
541 * config/ia64/ia64.c (ia64_dfa_new_cycle): Do not insert nops
542 after shifts before asm.
543
544 2004-06-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
545
546 PR tree-optimization/15993
547 * tree-ssa-dom.c (thread_across_edge): Do not thread edge if its
548 destination is unchanged.
549
550 2004-06-16 Andreas Jaeger <aj@suse.de>
551
552 * doc/install.texi (Configuration): Update description for
553 --enable-version-specific-runtime-libs.
554
555 2004-06-16 Paolo Bonzini <bonzini@gnu.org>
556
557 * doc/install.texi: boehm-gc now uses automake 1.8.5.
558
559 2004-06-16 Paolo Bonzini <bonzini@gnu.org>
560
561 * toplev.h (rest_of_compilation): Adjust prototype.
562
563 2004-06-16 Paolo Bonzini <bonzini@gnu.org>
564
565 * coverage.c: Remove argument to rest_of_compilation.
566 * expr.c (execute_expand, set_save_expr_context, pass_expand): New.
567 * passes.c (rest_of_compilation): Remove argument.
568 (pass_rest_of_compilation): New.
569 (rest_of_handle_final, rest_of_handle_delay_slots,
570 rest_of_handle_stack_regs, rest_of_handle_variable_tracking
571 rest_of_handle_machine_reorg, rest_of_handle_regrename
572 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_gcse2
573 rest_of_handle_regmove, rest_of_handle_tracer
574 rest_of_handle_if_conversion, rest_of_handle_if_after_combine
575 rest_of_handle_web, rest_of_handle_branch_prob
576 rest_of_handle_value_profile_transformations, rest_of_handle_cfg
577 rest_of_handle_addressof, rest_of_handle_jump_bypass
578 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2):
579 Check that the two arguments are actually superfluous.
580 * tree-optimize.c (register_dump_files): Add properties argument.
581 Track validity of passes. Only initialize dump files for
582 tree-based passes. Store the full set of provided passes in
583 the pass.
584 (init_tree_optimization_passes): Register pass_expand and
585 pass_rest_of_compilation.
586 (execute_one_pass): Do not track the presence of required properties
587 here. Set in_gimple_form. Do not update current_properties.
588 (current_properties): Remove.
589 (set_save_expr_context): Remove.
590 (tree_rest_of_compilation): Do not set in_gimple_form. Do not
591 expand to RTL here, and do not call rest_of_compilation. Push
592 GGC context even before gimplification.
593 * tree-pass.h (PROP_rtl, PROP_trees): New flags.
594 (pass_expand, pass_rest_of_compilation): Declare.
595
596 2004-06-15 Jeff Law <law@redhat.com>
597
598 * fold-const.c (swap_tree_comparison): No longer static.
599 (tree_swap_operands_p): Similarly. Return true if both operands
600 are SSA_NAMEs and the first operand has a higher version number than
601 the second operand.
602 * tree.h (swap_tree_comparison): Prototype.
603 (tree_swap_operands_p): Prototype.
604 * tree-ssa-operands.c (get_expr_operands): For commutative
605 operators and relational comparisons, canonicalize the
606 order of the operands.
607
608 2004-06-15 Richard Henderson <rth@redhat.com>
609
610 * c-common.c (lang_gimplify_stmt): Remove next_p argument.
611 (if_elt, if_stack, if_stack_space, c_expand_start_cond, c_finish_then,
612 c_expand_end_cond, c_expand_start_else, c_finish_else, c_begin_if_stmt,
613 c_begin_while_stmt, c_finish_while_stmt_cond): Move to c-typeck.c.
614 (finish_fname_decls, fname_decl): Use statement_lists.
615 (c_expand_expr_stmt): Don't set last_expr_type.
616 (c_type_hash): Fix indentation.
617 (c_safe_from_p): Don't follow TREE_CHAIN.
618 (c_tree_chain_matters_p): Remove.
619 * c-common.def (SCOPE_STMT): Remove.
620 (CLEANUP_STMT): Redefine to contain its own body.
621 * c-common.h (struct stmt_tree_s): Remove x_last_stmt,
622 x_last_expr_type, x_last_expr_filename, x_scope_stmt_stack.
623 Add x_cur_stmt_list.
624 (last_tree, last_expr_type, last_expr_filename, RECHAIN_STMTS): Remove.
625 (cur_stmt_list): New.
626 (STATEMENT_LIST_STMT_EXPR): New.
627 (SCOPE_BEGIN_P, SCOPE_END_P, SCOPE_STMT_BLOCK, SCOPE_NULLIFIED_P,
628 SCOPE_NO_CLEANUPS_P, SCOPE_PARTIAL_P, NEW_FOR_SCOPE_P): Remove.
629 (CLEANUP_BODY): New.
630 (CLEANUP_DECL): Move to operand 2.
631 (c_common_stmt_codes): Remove SCOPE_STMT.
632 (COMPOUND_STMT_NO_SCOPE, COMPOUND_STMT_BODY_BLOCK): Remove.
633 * c-decl.c (c_scope_stmt_stack, current_scope_stmt_stack): Remove.
634 (c_push_function_context, c_pop_function_context): Don't save it.
635 (finish_decl): Set TREE_USED on the decl for a cleanup.
636 Use push_cleanup.
637 (store_parm_decls): Use statement lists.
638 (finish_function): Remove compstmt rule workaround. Use statement
639 lists. Call finish_fname_decls after finalizing the body.
640 (c_begin_compound_stmt): Move to c-typeck.c.
641 * c-dump.c (c_dump_tree): Remove SCOPE_STMT.
642 * c-gimplify.c (gimplify_cleanup_stmt, gimplify_cleanup_stmts): New.
643 (c_genericize): Invoke them.
644 (c_gimplify_stmt): Don't look through TREE_CHAIN. Kill SCOPE_STMT.
645 (c_build_bind_expr): Export.
646 (gimplify_block, gimplify_cleanup): Remove.
647 (gimplify_condition): Use gimplify_stmt.
648 (gimplify_for_stmt): Remove FOR_INIT_STMT chaining hack.
649 (gimplify_if_stmt): Remove recursion hack.
650 (c_gimplify_expr): Remove STMT_EXPR handling.
651 (stmt_expr_last_stmt, gimplify_stmt_expr): Remove.
652 (is_last_stmt_of_scope): Remove.
653 * c-lang.c (LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P): Remove.
654 * c-mudflap.c (mflang_flush_calls): Use c_begin_compound_stmt,
655 c_end_compound_stmt.
656 * c-objc-common.c (build_cdtor): Likewise.
657 * c-parse.in (primary): Use c_finish_stmt_expr.
658 (push_scope, pop_scope): Remove.
659 (c99_block_start, compstmt_start): Use c_begin_compound_stmt.
660 (c99_block_end, compstmt): Use c_end_compound_stmt.
661 (c99_block_lineno_labeled_stmt): Likewise.
662 (compstmt_primary_start): Use c_begin_stmt_expr.
663 (simple_if, select_or_iter_stmt): Update calls to stmt builders.
664 (do_stmt_start): Fill in body directly.
665 (lineno_stmt): Avoid setting lineno on constants.
666 * c-pretty-print.c (pp_c_statement): Handle STATEMENT_LIST.
667 Remove SCOPE_STMT.
668 * c-semantics.c (begin_stmt_tree): Remove.
669 (push_stmt_list, re_push_stmt_list, pop_stmt_list): New.
670 (add_stmt): Use statement lists.
671 (add_scope_stmt, finish_stmt_tree): Remove.
672 (push_cleanup): New.
673 * c-tree.h: Move some decls from c-common.h.
674 * c-typeck.c (c_tree_expr_nonnegative_p): Simplify for statement lists.
675 (do_case, c_finish_case): Likewise.
676 (c_finish_then): Take body for then as argument.
677 (c_finish_else): Similarly.
678 (c_begin_for_stmt, c_finish_for_stmt_init, c_finish_for_stmt_cond,
679 c_finish_for_stmt_incr, c_finish_for_stmt): New.
680 (c_begin_stmt_expr, c_finish_stmt_expr): New.
681 (c_begin_compound_stmt): Do scope management.
682 (c_end_compound_stmt): New.
683 * fold-const.c (tree_expr_nonnegative_p): Fix BIND_EXPR.
684 * gimplify.c (voidify_wrapper_expr): Accept temporary argument.
685 Look through exception handling constructs.
686 (gimplify_bind_expr): Accept temporary argument.
687 (gimplify_target_expr): Special case BIND_EXPR bodies.
688 (gimplify_expr): Handle fallback == fb_none like a statement.
689 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P): Kill.
690 * langhooks.c (lhd_tree_inlining_tree_chain_matters_p): Remove.
691 * langhooks.h (tree_chain_matters_p): Remove.
692 * stub-objc.c (objc_clear_super_receiver): New.
693 * tree-gimple.h (voidify_wrapper_expr): Update decl.
694 (append_to_statement_list, append_to_statement_list_force): Move
695 to tree-iterator.h.
696 * tree-inline.c (expand_call_inline): Update call.
697 (clone_body): Use statement lists.
698 (walk_tree): Don't check tree_chain_matters_p.
699 (copy_tree_r): Likewise.
700 * tree-iterator.c (alloc_stmt_list): Clear lang bits.
701 (tsi_link_before, tsi_link_after): Set TREE_SIDE_EFFECTS properly.
702 * tree-iterator.h (append_to_statement_list,
703 append_to_statement_list_force): Moved from tree-gimple.h.
704 * tree-pretty-print.c (dump_generic_node): Clean up TARGET_EXPR dump.
705 * objc/objc-act.c (build_module_descriptor): Use c_begin_compound_stmt.
706 (objc_enter_block): Likewise.
707 (objc_exit_block): Use c_end_compound_stmt.
708 (objc_build_try_enter_fragment): Add #error and comment for
709 rewriting for OBJCPLUS.
710 (objc_build_extract_fragment, objc_build_try_epilogue,
711 objc_build_catch_stmt, objc_build_finally_prologue,
712 objc_build_finally_epilogue): Update for C statement builders.
713 * objc/objc-lang.c (LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P):
714 Remove.
715
716 2004-06-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
717
718 * df.c (df_reg_clobber_gen): Removed.
719 (df_bb_rd_local_compute, df_insn_refs_record, df_rd_local_compute):
720 Make more effective for hard regs.
721 * ra-build.c (livethrough_conflicts_bb): Check contains_call.
722
723 2004-06-15 Alexandre Oliva <aoliva@redhat.com>
724
725 * c-pragma.h (c_lex_string_translate): Change type to int.
726 * c-parse.in: Change all assignments of c_lex_string_translate
727 to true and false to 1 and 0.
728 * c-lex.c (c_lex_string_translate): Likewise.
729 (lex_string): Convert string without translation in the -1
730 case.
731
732 2004-06-15 Mark G. Adams <mark.g.adams@sympatico.ca>
733
734 * convert.h: Add include guards
735
736 2004-06-15 Daniel Berlin <dberlin@dberlin.org>
737
738 * tree-flow-inline.h: Document all functions.
739
740 2004-06-15 Daniel Berlin <dberlin@dberlin.org>
741
742 * tree-flow-inline.h (stmt_ann): Remove use of is_essa_node.
743 * tree-dfa.c (create_stmt_ann): Ditto.
744 * tree-pretty-print.c (dump_generic_node): Remove E* node handling.
745 * tree-inline.c (estimate_num_insns_1): Ditto.
746 * tree.c (tree_size): Ditto.
747 (make_node_stat): Ditto.
748 (tree_node_structure): Ditto.
749 (ephi_node_elt_check_failed): Remove.
750 (is_essa_node): Ditto.
751 * tree.def (EPHI_NODE): Ditto.
752 (EEXIT_NODE): Ditto.
753 (EUSE_NODE): Ditto.
754 (EKILL_NODE): Ditto.
755 * tree.h (EREF_NODE_CHECK): Remove.
756 (EPHI_NODE_ELT_CHECK): Ditto.
757 (struct tree_eref_common): Ditto.
758 (struct tree_euse_node): Ditto.
759 (struct ephi_arg_d): Ditto.
760 (struct tree_ephi_node): Ditto.
761 (ephi_node_elt_check_failed): Remove prototype.
762 (is_essa_node): Ditto.
763 (enum tree_node_structure_enum): Remove TS_E*_NODE.
764 (union tree_node): Remove E*_NODE uses.
765
766 2004-06-15 Jerry Quinn <jlquinn@optonline.net>
767
768 * alias.c (record_set, record_base_value, canon_rtx, get_addr,
769 nonlocal_mentioned_p_1, init_alias_analysis): Use REG_P.
770 * bt-load.c (find_btr_reference, insn_sets_btr_p, note_btr_set):
771 Likewise.
772 * builtins.c (expand_builtin_setjmp, expand_builtin_apply,
773 expand_builtin_mathfn, expand_builtin_strlen, expand_builtin_memcmp,
774 expand_builtin_strcmp, expand_builtin_strncmp,
775 expand_builtin_frame_address): Likewise.
776 * caller-save.c (mark_set_regs, add_stored_regs, mark_referenced_regs,
777 insert_one_insn): Likewise.
778 * calls.c (prepare_call_address, precompute_register_parameters,
779 precompute_arguments, expand_call, emit_library_call_value_1): Likewise.
780 * cfganal.c (flow_active_insn_p): Likewise.
781 * combine.c (set_nonzero_bits_and_sign_copies, can_combine_p,
782 combinable_i3pat, try_combine, find_split_point, COMBINE_RTX_EQUAL_P,
783 subst, combine_simplify_rtx, simplify_if_then_else, simplify_set,
784 make_extraction, recog_for_combine, gen_lowpart_for_combine,
785 simplify_comparison, record_dead_and_set_regs_1,
786 record_dead_and_set_regs, record_promoted_value,
787 check_promoted_subreg, get_last_value_validate, get_last_value,
788 reg_dead_at_p_1, reg_bitfield_target_p, distribute_notes,
789 unmentioned_reg_p_1): Likewise.
790 * conflict.c (mark_reg): Likewise.
791 * cse.c (HASH, COST, COST_IN, approx_reg_cost_1, notreg_cost,
792 mention_regs, insert_regs, lookup, lookup_for_remove, insert,
793 merge_equiv_classes, flush_hash_table, invalidate,
794 remove_invalid_refs, remove_invalid_subreg_refs, rehash_using_reg,
795 invalidate_for_call, use_related_value, canon_hash, exp_equiv_p,
796 cse_rtx_varies_p, canon_reg, find_best_addr, fold_rtx, equiv_constant,
797 record_jump_cond, cse_insn, addr_affects_sp_p,
798 invalidate_from_clobbers, cse_process_notes, cse_around_loop,
799 cse_set_around_loop, count_reg_usage, set_live_p, cse_change_cc_mode,
800 cse_cc_succs, cse_condition_code_reg): Likewise.
801 * cselib.c (cselib_reg_set_mode, rtx_equal_for_cselib_p,
802 cselib_lookup, cselib_invalidate_regno, cselib_invalidate_rtx,
803 cselib_record_set, cselib_record_sets): Likewise.
804 * dbxout.c (dbxout_symbol_location, dbxout_parms, dbxout_reg_parms,
805 dbxout_block): Likewise.
806 * df.c (df_ref_record, df_def_record_1, df_uses_record): Likewise.
807 * dojump.c (do_jump): Likewise.
808 * dwarf2out.c (dwarf2out_frame_debug_expr, is_pseudo_reg,
809 is_based_loc, rtl_for_decl_location): Likewise.
810 * emit-rtl.c (set_reg_attrs_for_parm, set_decl_rtl,
811 set_decl_incoming_rtl, mark_user_reg): Likewise.
812 * explow.c (copy_all_regs, copy_all_regs, memory_address, force_reg,
813 copy_to_suggested_reg, allocate_dynamic_stack_space,
814 probe_stack_range, hard_function_value): Likewise.
815 * expmed.c (store_bit_field, store_fixed_bit_field,
816 store_split_bit_field, extract_bit_field, extract_fixed_bit_field,
817 extract_split_bit_field, expand_divmod, emit_store_flag_force):
818 Likewise.
819 * expr.c (convert_move, convert_modes,
820 block_move_libcall_safe_for_call_parm, emit_group_load, use_reg,
821 use_group_regs, emit_move_insn, emit_move_insn_1,
822 compress_float_constant, push_block, emit_single_push_insn,
823 emit_push_insn, get_subtarget, expand_assignment, store_expr,
824 store_constructor, store_field, force_operand, safe_from_p,
825 expand_expr_real_1, expand_increment, do_store_flag, do_tablejump):
826 Likewise.
827 * final.c (profile_function, final_scan_insn, alter_subreg,
828 get_mem_expr_from_op, output_asm_operand_names, output_operand,
829 only_leaf_regs_used, leaf_renumber_regs_insn): Likewise.
830 * flow.c (verify_wide_reg_1, mark_regs_live_at_end,
831 find_regno_partial, propagate_one_insn, init_propagate_block_info,
832 insn_dead_p, libcall_dead_p, mark_set_1, not_reg_cond,
833 attempt_auto_inc, find_auto_inc, mark_used_regs,
834 count_or_remove_death_notes_bb): Likewise.
835 * function.c (find_temp_slot_from_address, update_temp_slot_address,
836 preserve_temp_slots, put_var_into_stack, fixup_var_refs_insn,
837 fixup_var_refs_1, fixup_stack_1, optimize_bit_field, flush_addressof,
838 put_addressof_into_stack, purge_addressof_1, insns_for_mem_walk,
839 purge_single_hard_subreg_set, instantiate_decl,
840 instantiate_virtual_regs_1, aggregate_value_p, assign_parms,
841 promoted_input_arg, setjmp_vars_warning, setjmp_args_warning,
842 setjmp_protect, setjmp_protect_args, fix_lexical_addr,
843 expand_function_start, diddle_return_value, clobber_return_register,
844 expand_function_end, keep_stack_depressed, handle_epilogue_set,
845 update_epilogue_consts): Likewise.
846 * genemit.c (gen_exp, gen_insn): Likewise.
847 * genrecog.c (make_insn_sequence): Likewise.
848 * global.c (global_conflicts, expand_preferences, mark_reg_store,
849 mark_reg_conflicts, set_preference, reg_becomes_live,
850 build_insn_chain, mark_reg_change): Likewise.
851 * haifa_sched.c (CONST_BASED_ADDRESS_P, find_set_reg_weight):
852 Likewise.
853 * ifcvt.c (noce_try_abs, noce_get_condition, noce_process_if_block):
854 Likewise.
855 * integrate.c (copy_rtx_and_substitute, try_constants,
856 subst_constants, mark_stores, allocate_initial_values): Likewise.
857 * jump.c (reversed_comparison_code_parts, delete_prior_computation,
858 delete_computation, rtx_renumbered_equal_p, true_regnum,
859 reg_or_subregno): Likewise.
860 * lcm.c (reg_dies, reg_becomes_live): Likewise.
861 * local-alloc.c (validate_equiv_mem_from_store, validate_equiv_mem,
862 update_equiv_regs, no_equiv, block_alloc, combine_regs, reg_is_set,
863 wipe_dead_reg, no_conflict_p): Likewise.
864 * loop-iv.c (simple_reg_p, simple_set_p, kill_sets,
865 iv_get_reaching_def, iv_analyze_biv, altered_reg_used, mark_altered,
866 simple_rhs_p, simplify_using_assignment, implies_p): Likewise.
867 * loop.c (scan_loop, combine_movables, rtx_equal_for_loop_p,
868 move_movables, note_set_pseudo_multiple_uses, consec_sets_invariant_p,
869 find_single_use_in_loop, count_one_set, loop_bivs_init_find,
870 loop_givs_rescan, check_insn_for_bivs, check_insn_for_givs,
871 valid_initial_value_p, simplify_giv_expr, consec_sets_giv,
872 loop_regs_update, check_dbra_loop, maybe_eliminate_biv,
873 maybe_eliminate_biv_1, record_initial, update_reg_last_use,
874 canonicalize_condition, loop_regs_scan, load_mems, try_copy_prop,
875 try_swap_copy_prop): Likewise.
876 * optabs.c (expand_binop, expand_vector_binop, expand_vector_unop,
877 expand_abs, emit_no_conflict_block, emit_libcall_block, expand_float):
878 Likewise.
879 * postreload.c (reload_cse_simplify, reload_cse_simplify_set,
880 reload_cse_simplify_operands, reload_combine,
881 reload_combine_note_store, reload_combine_note_use,
882 reload_cse_move2add, move2add_note_store): Likewise.
883 * print-rtl.c (print_rtx): Likewise.
884 * ra-build.c (copy_insn_p, remember_move, init_one_web_common,
885 contains_pseudo, handle_asm_insn): Likewise.
886 * ra-debug.c (ra_print_rtx_object, dump_constraints,
887 dump_static_insn_cost): Likewise.
888 * ra-rewrite.c (slots_overlap_p, emit_colors,
889 remove_suspicious_death_notes): Likewise.
890 * recog.c (validate_replace_rtx_1, find_single_use_1, find_single_use,
891 register_operand, scratch_operand, nonmemory_operand,
892 constrain_operands): Likewise.
893 * reg-stack (check_asm_stack_operands, remove_regno_note,
894 emit_swap_insn, swap_rtx_condition, subst_stack_regs_pat,
895 subst_asm_stack_regs): Likewise.
896 * regclass.c (scan_one_insn, record_reg_classes, copy_cost,
897 record_address_regs, reg_scan_mark_refs): Likewise.
898 * regmove.c (discover_flags_reg, replacement_quality,
899 copy_src_to_dest, reg_is_remote_constant_p, regmove_optimize,
900 fixup_match_1): Likewise.
901 * regrename.c (note_sets, clear_dead_regs, build_def_use, kill_value,
902 kill_set_value, copyprop_hardreg_forward_1): Likewise.
903 * reload.c (MATCHES, push_secondary_reload, find_reusable_reload,
904 reload_inner_reg_of_subreg, can_reload_into, push_reload,
905 combine_reloads, find_dummy_reload, hard_reg_set_here_p,
906 operands_match_p, decompose, find_reloads, find_reloads_toplev,
907 find_reloads_address, subst_indexed_address, find_reloads_address_1,
908 find_reloads_subreg_address, find_replacement,
909 refers_to_regno_for_reload_p, reg_overlap_mentioned_for_reload_p,
910 refers_to_mem_for_reload_p, find_equiv_reg, regno_clobbered_p): Likewise.
911 * reload1.c (replace_pseudos_in, reload, calculate_needs_all_insns,
912 find_reg, delete_dead_insn, alter_reg, eliminate_regs,
913 elimination_effects, eliminate_regs_in_insn, scan_paradoxical_subregs,
914 forget_old_reloads_1, reload_reg_free_for_value_p, choose_reload_regs,
915 emit_input_reload_insns, emit_output_reload_insns, do_input_reload,
916 do_output_reload, emit_reload_insns, gen_reload,
917 delete_address_reloads_1, inc_for_reload): Likewise.
918 * reorg.c (update_reg_dead_notes, fix_reg_dead_note,
919 update_reg_unused_notes, fill_slots_from_thread): Likewise.
920 * resource.c (update_live_status, mark_referenced_resources,
921 mark_set_resources, mark_target_live_regs): Likewise.
922 * rtlanal.c (nonzero_address_p, get_jump_table_offset,
923 global_reg_mentioned_p_1, reg_mentioned_p, reg_referenced_p,
924 reg_set_p, set_noop_p, find_last_value, refers_to_regno_p,
925 note_stores, dead_or_set_p, dead_or_set_regno_p, find_regno_note,
926 find_reg_fusage, find_regno_fusage, replace_regs, regno_use_in,
927 parms_set, find_first_parameter_load, keep_with_call_p,
928 hoist_test_store, hoist_update_store, address_cost, nonzero_bits1,
929 num_sign_bit_copies1): Likewise.
930 * rtlhooks.c (gen_lowpart_general): Likewise.
931 * sched-deps.c (deps_may_trap_p, sched_analyze_1, sched_analyze_insn,
932 sched_analyze): Likewise.
933 * sched-rgn.c (check_live_1, update_live_1, sets_likely_spilled_1):
934 Likewise.
935 * sdbout.c (sdbout_symbol, sdbout_parms, sdbout_reg_parms): Likewise.
936 * simplify-rtx.c (simplify_replace_rtx, simplify_unary_operation,
937 simplify_binary_operation, simplify_const_relational_operation,
938 simplify_subreg): Likewise.
939 * stmt.c (decl_conflicts_with_clobbers_p, expand_asm_operands,
940 expand_end_stmt_expr, expand_return, expand_decl,
941 expand_anon_union_decl): Likewise.
942 * unroll.c (precondition_loop_p, calculate_giv_inc, copy_loop_body,
943 find_splittable_regs, find_splittable_givs, find_common_reg_term,
944 loop_iterations): Likewise.
945 * var-tracking.c (variable_union, variable_part_different_p,
946 variable_different_p, count_uses, add_uses, add_stores,
947 compute_bb_dataflow, set_variable_part, delete_variable_part,
948 emit_notes_in_bb, vt_get_decl_and_offset, vt_add_function_parameters):
949 Likewise.
950 * varasm.c (assemble_variable): Likewise.
951
952 2004-06-15 Chris Demetriou <cgd@broadcom.com>
953
954 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove
955 definition.
956 * config/mips/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove
957 #undef and #if 0'd definition.
958
959 2004-06-15 J"orn Rennecke <joern.rennecke@superh.com>
960
961 * combine.c (distribute_notes): Comment typo fix.
962
963 2004-06-15 Roger Sayle <roger@eyesopen.com>
964
965 * expmed.c (synth_mult): Mask bits of the multiplier to the
966 machine mode of the multiplication. Don't consider shifts
967 by more than (or equal to) the width of the operation's mode.
968
969 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
970
971 * doc/install.texi: Yet another update for autoconf
972 and automake versions.
973
974 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
975
976 * function.h (struct function): Remove cannot_inline field.
977 (current_function_cannot_inline): Remove.
978 * passes.c (rest_of_compilation): Reset DECL_DEFER_OUTPUT.
979 Simplify conditionals to ignore warn_return_type.
980 * tree-optimize.c (tree_rest_of_compilation): Do not reset
981 DECL_DEFER_OUTPUT.
982 * objc/objc-act.c (build_module_descriptor, finish_method_def):
983 Do not set current_function_cannot_inline.
984
985 2004-06-15 J"orn Rennecke <joern.rennecke@superh.com>
986
987 * cfglayout.c (fixup_reorder_chain): Handle case where the
988 destination of E_TAKEN is EXIT_BLOCK_PTR.
989
990 2004-06-15 Diego Novillo <dnovillo@redhat.com>
991
992 * tree-ssa-copy.c (cprop_into_successor_phis): Fix typo.
993
994 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
995
996 * fold-const.c (operand_equal_p): Update comment.
997
998 2004-06-15 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
999
1000 * config/m32r/m32r.h (RETURN_ADDR_RTX): Define.
1001 (INCOMING_RETURN_ADDR_RTX): Define.
1002 * config/m32r/m32r-protos.h (m32r_return_addr): Added.
1003 * config/m32r/m32r.c (m32r_exppand_prologue): Changed for
1004 __builtin_return_address(0).
1005 (m32r_return_addr): Added for __builtin_return_address(0).
1006 (m32r_reload_lr): Ditto.
1007
1008 * longlong.h: Fix macros for m32r add_ssaaaa and sub_ddmmss.
1009
1010 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1011
1012 * doc/install.texi (Prerequisites): Update libbanshee,
1013 fastjar, libcpp, libjava/libltdl entries to
1014 automake 1.8.5.
1015
1016 2004-06-15 Eric Botcazou <ebotcazou@act-europe.fr>
1017 Olivier Hainque <hainque@act-europe.fr>
1018
1019 * function.c (fixup_var_refs): Also adjust the start of sequence
1020 after fixing up the insns.
1021
1022 2004-06-15 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1023
1024 * gccbug.in: Update optimization -> tree-optimization/rtl-optimization.
1025
1026 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
1027
1028 * doc/install.texi (Prerequisites): Update libstdc++ entry to
1029 automake 1.8.5.
1030
1031 2004-06-14 Eric Christopher <echristo@redhat.com>
1032
1033 * config/s390/s390.h (TARGET_SWITCHES): Change -mtpf (-mno-tpf)
1034 to -mtpf-trace (-mno-tpf-trace).
1035 * doc/invoke.texi (S/390 and zSeries Options): Add tpf option
1036 documentation.
1037
1038 2004-06-14 Eric Botcazou <ebotcazou@libertysurf.fr>
1039
1040 * real.c: Fix bit count in head comment.
1041
1042 2004-06-14 Jeff Law <law@redhat.com>
1043
1044 * tree-ssa.c (kill_redundant_phi_nodes): More correctly handle
1045 PHIs where the destination or an argument is marked with
1046 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1047
1048 2004-06-14 Jakub Jelinek <jakub@redhat.com>
1049
1050 PR middle-end/15945
1051 * simplify-rtx.c (simplify_binary_operation): Don't optimize out
1052 Inf + -Inf, Inf - Inf, Inf / Inf and 0 * Inf if flag_trapping_math.
1053
1054 2004-06-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1055
1056 * opts.sh (var_args): Fix regexp.
1057
1058 2004-06-14 Jakub Jelinek <jakub@redhat.com>
1059
1060 PR target/15178
1061 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
1062
1063 2004-06-14 Paul Brook <paul@codesourcery.com>
1064
1065 * dwarf2out.c (output_call_frame_info): Support dwarf3 cie entries.
1066
1067 2004-06-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1068
1069 * Makefile.in (FLAGS_H): New.
1070 (flags.h): Replace by FLAGS_H.
1071 * c.opt: Document Var, VarExists, Init and Report attributes.
1072 * common.opt: Fill the values of the attributes.
1073 * diagnostic.c (flag_fatal_errors): Do not define.
1074 * except.c (flag_non_call_exceptions): Do not define.
1075 * flags.h: Include options.h. Remove declarations conflicting with
1076 the automatically defined ones.
1077 * opts.c: Remove automatically defined variables.
1078 (handle_option): Perform default initialization.
1079 (common_handle_option): Do not handle options covered by the
1080 default initialization.
1081 * opts.h (struct cl_option): Add flag_var, has_set_value and set_value
1082 fields.
1083 (CL_REPORT): New.
1084 * opts.sh: Generate variable declarations, handle CL_REPORT.
1085 * toplev.c: Remove automatically defined variables.
1086 (f_options): Removed.
1087 (print_switch_values): Use cl_options instead of f_options.
1088 * toplev.h (version_flag): Declaration removed.
1089
1090 2004-06-14 Ian Lance Taylor <ian@wasabisystems.com>
1091
1092 * config/sparc/sparc.h: Correct comment about availability of
1093 little endian option.
1094
1095 * config.gcc: Remove sparc64-*-aout*.
1096 * config/sparc/sparc.c (sparc_aout_select_rtx_section): Remove.
1097 * config/sparc/sp64-aout.h: Remove.
1098 * config/sparc/aout.h: Remove.
1099
1100 2004-06-14 Ulrich Weigand <uweigand@de.ibm.com>
1101
1102 * config/s390/s390.c: Include "tree-gimple.h".
1103 (s390_gimplify_va_arg): New function.
1104 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
1105 (s390_va_arg): Remove.
1106 * config/s390/s390-protos.h (s390_va_arg): Remove.
1107 * config/s390/s390.h (EXPAND_BUILTIN_VA_ARG): Call abort ().
1108
1109 2004-06-14 J"orn Rennecke <joern.rennecke@superh.com>
1110
1111 * basic-block.h (could_fall_through): Declare.
1112 * cfganal.c (can_fallthru): Succeed if the target is EXIT_BLOCK_PTR.
1113 Fail if the source already has a fallthrough edge to the exit
1114 block pointer.
1115 (could_fall_through): New function.
1116 * cfgbuild.c (make_edges): Check if we already have a fallthrough
1117 edge to the exit block pointer.
1118 * cfglayout.c (fixup_fallthru_exit_predecessor): Check that it is
1119 not called before reload has completed.
1120 Handle special case of first block having a fall-through exit edge.
1121 (cfg_layout_finalize): Don't call it before reload or if we have
1122 rtl epilogues.
1123 (fixup_reorder_chain): A fall through to the exit block does not
1124 require the block to come last. Add sanity checks.
1125 * cfgrtl.c (rtl_split_edge): Add special handling of fall through
1126 edges to the exit block.
1127 * function.c (cfglayout.h): #include.
1128 (thread_prologue_and_epilogue_insns): If we have neither return nor
1129 epilogue, but a fall through to the exit block from mid-function,
1130 force a non-fall-through exit.
1131 * Makefile.in (function.o): Depend on CFGLAYOUT_H.
1132
1133 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1134
1135 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Handle -mpowerpc64 and -mcpu
1136 for power5 and rs64a. Correct condition for default. Correct power3,
1137 620, 630, 7400, 7450, G4, 970 and G5 -mcpu entries. Add -many.
1138
1139 2004-06-13 Steven Bosscher <stevenb@suse.de>
1140
1141 * gcse.c (hash_scan_set, hash_scan_insn, mark_set, mark_oprs_set):
1142 Revert previous change, don't use CALL_P.
1143
1144 2004-06-13 Jason Merrill <jason@redhat.com>
1145
1146 * tree.h: Move std_gimplify_va_arg_expr protoype here.
1147 * tree-gimple.h: From here.
1148
1149 2004-06-13 Daniel Berlin <dberlin@dberlin.org>
1150
1151 Fix PR tree-optimization/15979
1152 Fix PR tree-optimization/15981
1153 * tree-ssa-pre.c (insert_aux): Fix faulty logic so that we don't
1154 try to insert values undefined along some path.
1155
1156 2004-06-13 Daniel Berlin <dberlin@dberlin.org>
1157
1158 * tree-ssa-pre.c (add_to_value): is_gimple_min_invariant things
1159 are available everywhere too.
1160
1161 2004-06-13 Andrew Pinski <pinskia@physics.uc.edu>
1162
1163 * fold-const.c (fold_checksum_tree <case 't'>): Only
1164 look at TREE_VALUES if the EXPR is an ENUMERAL_TYPE.
1165 Only look at TYPE_MIN_VALUE and TYPE_MAX_VALUE if
1166 EXPR is an INTEGERAL_TYPE or a scalar float type.
1167
1168 2004-06-13 Diego Novillo <dnovillo@redhat.com>
1169
1170 * tree-sra.c (tree_sra): Update documentation.
1171
1172 2004-06-13 Joseph S. Myers <jsm@polyomino.org.uk>
1173
1174 * c-typeck.c (comptypes, tagged_types_tu_compatible_p,
1175 function_types_compatible_p, type_lists_compatible_p): Remove
1176 flags parameter.
1177 * c-tree.h (comptypes): Likewise.
1178 (COMPARE_STRICT): Remove.
1179 * c-decl.c, c-lang.c, c-parse.in, c-typeck.c, objc/objc-act.c: All
1180 callers changed.
1181
1182 2004-06-13 Eric Christopher <echristo@redhat.com>
1183
1184 * c-decl.c (diagnose_mismatched_decls): Improve error message.
1185 Remove unused code.
1186 * c-typeck.c (comptypes): Add location in standard we're checking.
1187
1188 2004-06-13 Kaz Kojima <kkojima@gcc.gnu.org>
1189
1190 * config/sh/libgcc-std.ver: Add __unorddf2 and __unordsf2 with
1191 version 3.3.4.
1192
1193 2004-06-12 Roger Sayle <roger@eyesopen.com>
1194
1195 * expmed.c (shift_cost, shiftadd_cost, shiftsub_cost): Additionally
1196 index by machine mode.
1197 (init_expmed): Initialize shift_cost, shiftadd_cost and shiftsub_cost
1198 tables inside the loop over machine modes.
1199 (synth_mult, expand_mult_highpart_optab, expand_mult_highpart,
1200 expand_divmod): Index shift*_cost by the appropriate machine mode.
1201
1202 2004-06-12 Eric Christopher <echristo@redhat.com>
1203
1204 * config/s390/s390.h: Rename TARGET_TPF to TARGET_TPF_PROFILING.
1205 * config/s390/s390.md: Ditto.
1206 * config/s390/s390.c: Ditto.
1207 (s390_frame_info): Conditionalize frame and setup info on
1208 TARGET_TPF_PROFILING.
1209 (s390_arg_frame_offset): Ditto.
1210
1211 2004-06-12 Roger Sayle <roger@eyesopen.com>
1212
1213 * fold-const.c (omit_two_operands): New function.
1214 * tree.h (omit_two_operands): Prototype here.
1215 * builtins.c (fold_builtin_unordered_cmp): New function to lower
1216 C99 unordered comparison builtins to the appropriate tree nodes.
1217 (fold_builtin_1): Use fold_builtin_unordered_cmp to lower
1218 BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
1219 BUILT_IN_ISLESSEQUAL and BUILT_IN_ISLESSGREATER. Manually lower
1220 BUILT_IN_ISUNORDERED comparisons to an UNORDERED_EXPR tree node.
1221 (simplify_builtin_memcmp, simplify_builtin_strncmp,
1222 simplify_builtin_strncat, simplify_builtin_strspn): Use the new
1223 omit_two_operands function to build the required COMPOUND_EXPRs.
1224
1225 2004-06-12 Steven Bosscher <stevenb@suse.de>,
1226 Andreas Jaeger <aj@suse.de>
1227
1228 * gcse.c (record_set_info): Use predicates like REG_P.
1229 (mems_conflict_for_gcse_p): Likewise.
1230 (load_killed_in_block_p): Likewise.
1231 (hash_expr_1): Likewise.
1232 (insert_set_in_table): Likewise.
1233 (gcse_constant_p): Likewise.
1234 (hash_scan_set): Likewise.
1235 (hash_scan_insn): Likewise.
1236 (canon_list_insert): Likewise.
1237 (record_last_mem_set_info): Likewise.
1238 (record_last_set_info): Likewise.
1239 (compute_hash_table_work): Likewise.
1240 (mark_set): Likewise.
1241 (mark_clobber): Likewise.
1242 (mark_oprs_set): Likewise.
1243 (compute_transp): Likewise.
1244 (find_avail_set): Likewise.
1245 (cprop_insn): Likewise.
1246 (do_local_cprop): Likewise.
1247 (cprop): Likewise.
1248 (find_implicit_sets): Likewise.
1249 (find_bypass_set): Likewise.
1250 (bypass_conditional_jumps): Likewise.
1251 (insert_insn_end_bb): Likewise.
1252 (pre_insert_copy_insn): Likewise.
1253 (compute_transpout): Likewise.
1254 (next_ls_expr): Likewise.
1255 (invalidate_any_buried_refs): Likewise.
1256 (compute_ld_motion_mems): Likewise.
1257 (reg_set_info): Likewise.
1258 (reg_clear_last_set): Likewise.
1259 (find_moveable_store): Likewise.
1260 (compute_store_table): Likewise.
1261 (find_loads): Likewise.
1262 (store_killed_in_insn): Likewise.
1263 (insert_insn_start_bb): Likewise.
1264 (reg_set_between_after_reload_p): Likewise.
1265 (reg_used_between_after_reload_p): Likewise.
1266 (is_jump_table_basic_block): Likewise.
1267 (gcse_after_reload): Likewise.
1268 (hash_scan_set_after_reload): Likewise.
1269 (compute_hash_table_after_reload): Likewise.
1270
1271 2004-06-12 Steven Bosscher <stevenb@suse.de>
1272
1273 * rtl.h (MEM_P, NONJUMP_INSN_P, CALL_INSN_P): New predicates.
1274 (INSN_P): Don't look at the rtx code class, just explicitly
1275 check for one of the tree RTX_INSN codes.
1276
1277 2004-06-11 Zack Weinberg <zack@codesourcery.com>
1278
1279 * c-typeck.c (default_function_array_conversion): Use
1280 build_pointer_type not TYPE_POINTER_TO.
1281
1282 2004-06-11 Zack Weinberg <zack@codesourcery.com>
1283
1284 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
1285 * configure, config.in: Regenerate.
1286 * system.h: Unconditionally define bool as unsigned char,
1287 BOOL_BITFIELD as unsigned int.
1288 * domwalk.h: Use BOOL_BITFIELD.
1289
1290 2004-06-12 Andreas Jaeger <aj@suse.de>
1291
1292 * libgcc-std.ver: Add __unorddf2 and __unordsf2 with version 3.3.4.
1293 * libgcc-darwin.ver: Likewise.
1294
1295 2004-06-12 Peter Jakubek <peter@laseranimation.com>
1296
1297 * reload.c (find_reloads): Force reload for pseudo registers on big
1298 endian machines.
1299
1300 2004-06-11 Steven Bosscher <stevenb@suse.de>
1301
1302 * tree-ssa-dce.c (mark_control_dependent_edges_necessary):
1303 Don't try to mark anything control dependent on the entry or
1304 exit blocks.
1305
1306 2004-06-11 Daniel Berlin <dberlin@dberlin.org>
1307
1308 Fix Bug 15899
1309 Fix Bug 15460
1310 * tree.h (SSA_NAME_VALUE): New macro.
1311 (struct tree_ssa_name): Add value_handle member.
1312 * tree-ssa-pre.c: Replaced.
1313 * tree-flow.h (tree_ann_type): Add CST_ANN, EXPR_ANN.
1314 (struct cst_ann_d): New.
1315 (struct expr_ann_d): New.
1316 (union tree_ann_d): Add cst_ann, expr_ann.
1317 * tree-dfa.c (create_cst_ann): New function.
1318 (create_expr_ann): Ditto.
1319 * tree-flow-inline.h (cst_ann): New function.
1320 (expr_ann): Ditto.
1321 (get_cst_ann): Ditto.
1322 (get_expr_ann): Ditto..
1323
1324 2004-06-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1325
1326 * pa.c (pa_hpux_init_libfunc): Add support for unord_optab.
1327 * pa/quadlib.c (enum qfcmp_magic): Define magic values for call to
1328 _U_Qfcmp library function.
1329 (_U_Qfltgt, _U_Qfunle, _U_Qfunlt, _U_Qfunge, _U_Qfungt, _U_Qfuneq,
1330 _U_Qfunord, _U_Qford): Add more TFmode builtin compare functions.
1331
1332 * pa.c (legitimize_pic_address): Use UNSPEC_DLTIND14R to identify
1333 unspec used for loading address from DLT.
1334 * pa.md: Define constants for the uses of UNSPEC and UNSPEC_VOLATILE.
1335 Change all users of UNSPEC and UNSPEC_VOLATILE to use new constants.
1336 Don't use short code sequence when loading the address of a nonlocal
1337 label.
1338 (nonlocal_goto): New expander.
1339 (indirect_goto): New jump pattern for nonlocal gotos.
1340 (short_jump): Remove extra whitespace.
1341 (builtin_longjmp): Clobber memory and hard frame pointer. Restore
1342 frame pointer via virtual_stack_vars_rtx when we have a nonlocal goto
1343 pattern.
1344
1345 2004-06-11 Roger Sayle <roger@eyesopen.com>
1346
1347 * expmed.c (synth_mult): Add an additional MODE argument for the
1348 machine mode of the multiplication. Update recursive calls. Use
1349 mode instead of word_mode for determining operation costs.
1350 (choose_mult_variant): Update calls to synth_mult with "mode".
1351
1352 2004-06-11 Richard Henderson <rth@redhat.com>
1353
1354 * tree-ssa-operands.c (get_stmt_operands): Clear makes_aliased_loads
1355 and makes_aliased_stores.
1356
1357 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
1358
1359 * doc/install.text (--enable-shared): Fix typo.
1360
1361 2004-06-11 Richard Henderson <rth@redhat.com>
1362
1363 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Remove post_p
1364 argument. Use internal post for call to gimplify_expr. Tidy
1365 rounded type size computation.
1366 (alpha_gimplify_va_arg): Use get_formal_tmp_var and
1367 get_initialized_tmp_var.
1368
1369 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
1370
1371 * doc/install.texi (--enable-shared): Update libobjc's shared library
1372 status. Remove reference to libf2c.
1373
1374 2004-06-11 Jason Merrill <jason@redhat.com>
1375
1376 * config/i386/i386.h (EXPAND_BUILTIN_VA_ARG): Just abort.
1377 * config/i386/i386.c (ix86_va_arg): Remove.
1378 * config/rs6000/rs6000.h (EXPAND_BUILTIN_VA_ARG): Just abort.
1379 * config/rs6000/rs6000.c (rs6000_va_arg): Remove.
1380 * config/alpha/alpha.h (EXPAND_BUILTIN_VA_ARG): Just abort.
1381 * config/alpha/alpha.c (alpha_va_arg): Remove.
1382 * config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Just abort.
1383 * config/sparc/sparc.c (sparc_va_arg): Remove.
1384
1385 * tree-ssa-operands.c (get_stmt_operands): Use a V_MAY_DEF if the
1386 assignment might throw.
1387 * tree-eh.c (tree_could_throw_p): Support non-call exceptions in
1388 expressions.
1389
1390 2004-06-11 J"orn Rennecke <joern.rennecke@superh.com>
1391
1392 PR 15886:
1393 * sh.h (ALLOCATE_INITIAL_VALUE): Use return_address_pointer_rtx.
1394
1395 2004-06-11 Joseph S. Myers <jsm@polyomino.org.uk>
1396
1397 * doc/install.texi (Prerequisites): Update documentation of
1398 required versions of autoconf and automake. Remove mention of
1399 libf2c.
1400
1401 2004-06-11 Jason Merrill <jason@redhat.com>
1402
1403 * config/sparc/sparc.c (sparc_gimplify_va_arg): New fn.
1404 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
1405
1406 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
1407
1408 * typeclass.h: Add GPL plus exception license. Add include
1409 guard.
1410
1411 2004-06-10 Jason Merrill <jason@redhat.com>
1412
1413 * gimplify.c (gimplify_modify_expr): Don't force a temporary
1414 of an aggregate_value_p type.
1415
1416 2004-06-10 Jeff Law <law@redhat.com>
1417
1418 * fold-const.c (fold_inf_compare): Avoid creating non-gimple
1419 code when we are in gimple form.
1420
1421 2004-06-10 Diego Novillo <dnovillo@redhat.com>
1422
1423 * Makefile.in (tree-ssanames.o): Depend on TREE_FLOW_H.
1424 * tree-flow.h (ssa_names, num_ssa_names, ssa_name): Declare.
1425 (highest_ssa_version): Remove.
1426 * tree-outof-ssa.c (new_temp_expr_table): Replace
1427 highest_ssa_version with num_ssa_names.
1428 (dump_replaceable_exprs): Likewise.
1429 (rewrite_vars_out_of_ssa): Likewise.
1430 * tree-ssa-ccp.c (initialize): Likewise
1431 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
1432 * tree-ssa-dce.c (tree_dce_init): Likewise.
1433 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
1434 * tree-ssa-live.c (create_ssa_var_map): Likewise.
1435 (dump_var_map): Likewise.
1436 * tree-ssa.c (verify_ssa): Likewise.
1437 (kill_redundant_phi_nodes): Likewise.
1438 Do not build a local array of SSA_NAMEs. Use the ssa_names table.
1439 * tree-ssanames.c: Include tree-flow.h
1440 (ssa_names): New varray.
1441 (init_ssa_names): Initialize ssa_names.
1442 Reserve the first slot of the ssa_names table.
1443 (make_ssa_name): Push the newly created SSA_NAME into ssa_names.
1444 Assign version numbers using num_ssa_names.
1445
1446 2004-06-10 Joseph S. Myers <jsm@polyomino.org.uk>
1447
1448 * doc/sourcebuild.texi (Front End): Add details of more
1449 installation documentation required.
1450
1451 2004-06-10 Brian Booth <bbooth@redhat.com>
1452
1453 * doc/tree-ssa.texi: Remove references to VDEF and add descriptions
1454 of V_MAY_DEF and V_MUST_DEF.
1455 * tree-dfa.c (dfa_stats_d): Add num_v_must_defs and rename
1456 num_vdefs to num_v_may_defs.
1457 (compute_immediate_uses_for_stmt): Rename occurences of vdef
1458 to v_may_def.
1459 (redirect_immediate_uses): Ditto.
1460 (dump_dfa_stats): Ditto. Also added code to dump num_v_must_defs.
1461 (collect_dfa_stats_r): Rename occurences of vdef to v_may_def.
1462 Also add code to sum up the number of v_must_defs.
1463 (vdefs_disappeared_p): Replace with...
1464 (v_may_defs_disappeared_p): This.
1465 (v_must_defs_disappeared_p): New function.
1466 (mark_new_vars_to_rename): Rename occurences of vdef to v_may_def.
1467 Also add code to mark new variables found in V_MUST_DEFs for
1468 renameing.
1469 * tree-flow.h (stmt_ann_d): Add v_must_def_ops and replace
1470 vdef_ops to v_may_def_ops.
1471 (get_vdef_ops): Replace with...
1472 (get_v_may_def_ops): This.
1473 * tree-flow-inline.h (get_vdef_ops): Replace with...
1474 (get_v_may_def_ops): This.
1475 (get_v_must_def_ops): New function.
1476 (get_vdef_result_ptr): Replace with...
1477 (get_v_may_def_result_ptr): This.
1478 (get_vdef_op_ptr): Ditto with...
1479 (get_v_may_def_op_ptr); This.
1480 (get_v_must_def_op_ptr): New function.
1481 * tree-into-ssa.c (mark_def_sites): Rename occurences of vdef
1482 to v_may_def. Also add code to mark statements with
1483 V_MUST_DEFs as definition sites.
1484 (rewrite_stmt): Rename occurences of vdef to v_may_def. Also
1485 add code to register new V_MUST_DEFs made by the statement.
1486 * tree-outof-ssa.c (VIRTUAL_PARTITION): Update comments.
1487 (check_replaceable): Rename occurences of vdef to v_may_def. Also
1488 add check for V_MUST_DEFs.
1489 (find_replaceable_in_bb): Ditto.
1490 * tree-pretty-print.c (dump_vops): Rename occurences of vdef
1491 to v_may_def. Also add code to dump V_MUST_DEFs.
1492 * tree-sra.c (mark_all_vdefs): Replace with...
1493 (mark_all_v_may_defs): This.
1494 (mark_all_v_must_defs): New function.
1495 (create_scalar_copies): Replace call to mark_all_vdefs with
1496 calls to mark_all_v_may_defs and mark_all_v_must_defs.
1497 (scalarize_structures): Rename occurences of vdef to v_may_def.
1498 Also add a check for V_MUST_DEFs.
1499 (scalarize_modify_expr): Rename occurences of vdef to v_may_def.
1500 * tree-ssa-alias.c (global_var): Update comment.
1501 (compute_may_aliases): Ditto.
1502 (compute_points_to_and_addr_escape): Rename occurences of vdef
1503 to v_may_def. Also add code to mark variables in V_MUST_DEF
1504 operands as being written to.
1505 (group_aliases): Update comment.
1506 (maybe_create_global_var): Ditto.
1507 * tree-ssa.c (verify_ssa): Rename occurences of vdef to v_may_def.
1508 Also add a check for V_MUST_DEFs on GIMPLE registers.
1509 (replace_immediate_uses): Rename occurences of vdef to v_may_def.
1510 * tree-ssa-ccp.c (visit_stmt): Rename occurences of vdef
1511 to v_may_def. Also add code to mark all V_MUST_DEF operands
1512 VARYING.
1513 (initialize): Ditto.
1514 (set_rhs): Rename occurences of vdef to v_may_def. Also add
1515 code to update SSA_NAMEs in V_MUST_DEFs.
1516 * tree-ssa-copy.c (cprop_into_stmt): Rename occurences of vdef
1517 to v_may_def.
1518 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Rename
1519 occurences of vdef to v_may_def. Also add code to mark statements
1520 with V_MUST_DEFs as necessary.
1521 (propagate_necessity): Rename occurences of vdef to v_may_def.
1522 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Rename
1523 occurences of vdef to v_may_def. Also add code to mark operands
1524 in V_MUST_DEFs for renaming.
1525 (eliminate_redundant_computations): Rename occurences of vdef
1526 to v_may_def.
1527 (record_equivalences_from_stmt): Rename occurences of vdef
1528 to v_may_def. Also add code to record VUSEs for V_MUST_DEFs.
1529 (optimize_stmt): Remove unnesessary variable vdefs. Update
1530 comment.
1531 (register_definitions_for_stmt): Rename occurences of vdef
1532 to v_may_def. Also add code to register definitions made with
1533 V_MUST_DEFs.
1534 * tree-ssa-dse.c (fix_stmt_vdefs): Replace with...
1535 (fix_stmt_v_may_defs): This.
1536 (fix_phi_uses): Rename occurences of vdef to v_may_def.
1537 (dse_optimize_stmt): Ditto.
1538 * tree-ssa-live.c (create_ssa_var_map): Rename occurences of vdef
1539 to v_may_def. Also add code to mark V_MUST_DEF operands as being
1540 used in virtual operators.
1541 * tree-ssa-loop.c (mark_defs_for_rewrite): Rename occurences of
1542 vdef to v_may_def. Also add code to mark V_MUST_DEF operands for
1543 renaming.
1544 * tree-ssa-operands.c (opf_kill_def): New flag for killing
1545 definitions.
1546 (build_vdefs): Renamed to...
1547 (build_v_may_defs): This.
1548 (build_v_must_defs): New variable.
1549 (voperands_d): Add v_must_def_ops and replace vdef_ops with
1550 v_may_def_ops.
1551 (append_vdef): Replace with...
1552 (append_v_may_def): This.
1553 (append_v_must_def): New function.
1554 (NUM_FREE): Increment for V_MUST_DEF
1555 (optype_freelist): Increment its size for V_MUST_DEF
1556 (allocate_vdef_optype): Replace with...
1557 (allocate_v_may_def_optype): This.
1558 (allocate_v_must_def_optype): New function.
1559 (free_vdefs): Replace with...
1560 (free_v_may_defs): This.
1561 (free_v_must_defs): New function.
1562 (remove_vdefs): Replace with...
1563 (remove_v_may_defs): This.
1564 (remove_v_must_defs): New function.
1565 (init_ssa_operands): Rename occurences of vdef to v_may_def. Also
1566 add code to initialize build_v_must_defs.
1567 (finalize_ssa_vdefs): Replace with...
1568 (finalize_ssa_v_may_defs): This.
1569 (finalize_ssa_vuses): Rename occurences of vdef to v_may_def.
1570 (finalize_ssa_v_must_defs): New function.
1571 (finalize_ssa_stmt_operands): Replace call to finalize_ssa_vdefs
1572 with calls to finalize_ssa_v_may_defs and finalize_ssa_v_must_defs.
1573 (verify_start_operands): Rename occurences of vdef to v_may_def.
1574 Also add check for build_v_must_defs.
1575 (get_stmt_operands): Rename occurences of vdef to v_may_def.
1576 Also add code to handle V_MUST_DEFs and to use opf_kill_def for
1577 killing definitions.
1578 (get_expr_operands): Update comment and use opf_kill_def for
1579 killing definitions.
1580 (add_stmt_operand): Replace code that appends VDEFs with code
1581 that appends V_MUST_DEFs when opf_kill_def is set and V_MAY_DEFs
1582 otherwise.
1583 (add_call_clobber_ops): Update comments.
1584 * tree-ssa-operands.h (vdef_optype_d): Replace with...
1585 (v_may_def_optype_d): This.
1586 (v_must_def_optype_d): New structure.
1587 (VDEF_OPS): Replace with...
1588 (V_MAY_DEF_OPS): This.
1589 (STMT_VDEF_OPS): Same with...
1590 (STMT_V_MAY_DEF_OPS): This.
1591 (NUM_VDEFS): And...
1592 (NUM_V_MAY_DEFS): This.
1593 (VDEF_RESULT_PTR): As well as...
1594 (V_MAY_DEF_RESULT_PTR): This.
1595 (VDEF_RESULT): Same goes for...
1596 (V_MAY_DEF_RESULT): This.
1597 (VDEF_OP_PTR): And...
1598 (V_MAY_DEF_OP_PTR): This.
1599 (VDEF_OP): And...
1600 (V_MAY_DEF_OP): This.
1601 (V_MUST_DEF_OPS): New macro.
1602 (STMT_V_MUST_DEF_OPS): Ditto.
1603 (NUM_V_MUST_DEFS): Ditto.
1604 (V_MUST_DEF_OP_PTR): Ditto.
1605 (V_MUST_DEF_OP): Ditto.
1606 (remove_vdefs): Replace signature with...
1607 (remove_v_may_defs): This.
1608 (remove_v_must_defs): New function signature.
1609 * tree-ssa-pre.c (subst_phis): Replace call to remove_vdefs
1610 with calls to remove_v_may_defs and remove_v_must_defs.
1611 (process_left_occs_and_kills): Rename occurences of vdef to v_may_def.
1612 Also add code that marks left occurences of operands in V_MUST_DEFs.
1613 * tree-tailcall.c (find_tail_calls): Rename occurences of vdef
1614 to v_may_def. Also add check for V_MUST_DEFs.
1615 (eliminate_tail_call):Rename occurences of vdef to v_may_def.
1616
1617 2004-06-10 Vladimir Makarov <vmakarov@redhat.com>
1618
1619 PR target/15653
1620 * haifa-sched.c (schedule_block): Finish cycle after issuing asm
1621 insn.
1622
1623 2004-06-10 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1624
1625 PR web/15263
1626 * doc/install.texi: Remove superfluous linebreak.
1627
1628 2004-06-10 Roger Sayle <roger@eyesopen.com>
1629
1630 * builtins.c (expand_builtin): Fall back to library function call for
1631 conj, conjf, conjl, creal, crealf, creall, cimag, cimagf and cimagl.
1632 (fold_builtin_1): Lower built-ins BUILT_IN_CONJ{,F,L} to CONJ_EXPR,
1633 BUILT_IN_CREAL{,F,L} to REALPART_EXPR, and BUILT_IN_CIMAG{,F,L} to
1634 IMAGPART_EXPR respectively.
1635
1636 2004-06-10 J"orn Rennecke <joern.rennecke@superh.com>
1637
1638 * sh.c (dump_table): New argument start. Changed caller.
1639 (fixup_mova): New function.
1640 (find_barrier): Use it.
1641 (sh_reorg): Likewise. Check for CODE_FOR_casesi_worker_2.
1642 If the label a mova refers to is above the mova itself, change
1643 the mova into a load.
1644 * sh.md (*casesi_worker): Rename to:
1645 (casesi_worker_1).
1646 (casesi_worker_2): New insn.
1647
1648 2004-06-10 Jason Merrill <jason@redhat.com>
1649
1650 * target.h (struct gcc_target): Change gimplify_va_arg_expr
1651 hook signature.
1652 * tree-gimple.h: Adjust.
1653 * config/alpha/alpha.c (alpha_gimplify_va_arg): Adjust.
1654 * config/i386/i386.c (ix86_gimplify_va_arg): Adjust.
1655 Use fold_convert.
1656 * config/ia64/ia64.c (ia64_gimplify_va_arg): Adjust.
1657 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust.
1658 Use COMPLEX_EXPR for complex numbers. Use fold_convert.
1659 * builtins.c (std_gimplify_va_arg_expr): Adjust. Use fold_convert.
1660 (gimplify_va_arg_expr): Return GS_ERROR in error case.
1661 Gimplify valist rather than calling stabilize_va_list.
1662
1663 2004-06-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1664
1665 * Makefile.in (df.o): Remove fibheap dependency.
1666 * df.h: Do not include sbitmap.h.
1667 (struct ref): New field "data".
1668 (DF_REF_DATA): New accessor macro.
1669 (struct df): Field "dom" removed.
1670 (df_analyze_subcfg): New function.
1671 (transfer_function_sbitmap, transfer_function_bitmap): Replaced by ...
1672 (transfer_function): ... new type.
1673 (iterative_dataflow_sbitmap, iterative_dataflow_bitmap): Replaced by ...
1674 (iterative_dataflow): ... new function.
1675 (enum set_representation, struct dataflow): New.
1676 * df.c: Do not include fibheap.h.
1677
1678 (df_reg_def_chain_clean, df_reg_use_chain_clean,
1679 (df_bb_table_realloc, df_analyse_subcfg, free_reg_ref_chain,
1680 prune_to_subcfg, df_bb_modify): New functions.
1681 (df_bitmaps_alloc, df_reg_def_chain_create, df_reg_use_chain_create,
1682 df_refs_update, df_reg_table_realloc, df_ref_create,
1683 df_bb_reg_def_chain_create, df_bb_reg_use_chain_create,
1684 df_bb_rd_local_compute, df_bb_ru_local_compute, df_bb_lr_local_compute,
1685 df_analyse_1, df_insn_modify): Support analysing only a part of the cfg.
1686
1687 (dataflow_set_a_op_b, dataflow_set_copy): New functions.
1688 (df_rd_transfer_function, df_ru_transfer_function,
1689 df_lr_transfer_function): Type of bitmaps changed to void *.
1690 (hybrid_search_bitmap, hybrid_search_sbitmap): Merge into ...
1691 (hybrid_search): ... new function.
1692 (iterative_dataflow_bitmap, iterative_dataflow_sbitmap): Merge into ...
1693 (iterative_dataflow): ... new function. Avoid use of fibheaps for
1694 a worklist. Do not process basic blocks unnecessarily.
1695
1696 2004-06-10 Roger Sayle <roger@eyesopen.com>
1697
1698 * fold-const.c (fold_abs_const): Make extern.
1699 * tree.h (fold_abs_const): Prototype here.
1700 * builtins.c (fold_builtin_fabs): New function to transform
1701 fabs, fabsf and fabsl builtins into ABS_EXPR tree nodes.
1702 (fold_builtin_abs): New function to transform abs, labs, llabs
1703 and imaxabs builtins into ABS_EXPR tree nodes.
1704 (expand_builtin): Fall back to a function call for abs, labs,
1705 llabs and imaxabs builtins that survive constant folding.
1706 (fold_builtin_1): Call fold_builtin_fabs for FABS, FABSF and
1707 FABSL, and fold_builtin_abs for ABS, LABS, LLABS and IMAXABS.
1708
1709 2004-06-10 Jakub Jelinek <jakub@redhat.com>
1710
1711 * config/ia64/unwind-ia64.c (uw_frame_state_for): Don't assume a
1712 leaf function without unwind info at RP 0.
1713
1714 2004-06-10 Jakub Jelinek <jakub@redhat.com>
1715
1716 PR c++/14791
1717 * tree.h (enum tree_index): Add TI_FILEPTR_TYPE.
1718 (fileptr_type_node): Define.
1719 * tree.c (build_common_tree_nodes_2): Initialize
1720 fileptr_type_node to ptr_type_node.
1721 * c-common.c (c_common_nodes_and_builtins): For C++, make
1722 fileptr_type_node a distinct type copy.
1723 * builtin-types.def (BT_FILEPTR, BT_FN_INT_CONST_STRING_FILEPTR,
1724 BT_FN_INT_INT_FILEPTR, BT_FN_INT_FILEPTR_CONST_STRING_VALIST_ARG,
1725 BT_FN_SIZE_CONST_PTR_SIZE_SIZE_FILEPTR,
1726 BT_FN_INT_FILEPTR_CONST_STRING_VAR): Add.
1727 (BT_FN_INT_CONST_STRING_PTR, BT_FN_INT_INT_PTR,
1728 BT_FN_SIZE_CONST_PTR_SIZE_SIZE_PTR, BT_FN_INT_PTR_CONST_STRING_VAR,
1729 BT_FN_INT_PTR_CONST_STRING_VALIST_ARG): Remove.
1730 * builtins.def (BUILT_IN_FPRINTF, BUILT_IN_FPRINTF_UNLOCKED,
1731 BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS,
1732 BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FSCANF, BUILT_IN_FWRITE,
1733 BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): Use
1734 the above *FILEPTR* types instead of *PTR*.
1735
1736 2004-06-09 Daniel Berlin <dberlin@dberlin.org>
1737
1738 * tree-ssa.c (verify_ssa): Verify that vdefs/makes_aliased_stores
1739 match.
1740
1741 2004-06-09 Roger Sayle <roger@eyesopen.com>
1742
1743 * fold-const.c (fold_not_const): New function.
1744 (fold) <ABS_EXPR>: Don't bother testing wins.
1745 (fold) <BIT_NOT_EXPR>: Call fold_not_const.
1746 (nondestructive_fold_unary_to_constant) <BIT_NOT_EXPR>: Likewise.
1747
1748 2004-06-09 Richard Henderson <rth@redhat.com>
1749
1750 PR middle-end/15228
1751 * function.c (assign_parms): Always set_mem_align with the computed
1752 FUNCTION_ARG_BOUNDARY. Don't clear stack_parm if !STRICT_ALIGNMENT.
1753
1754 2004-06-09 Richard Henderson <rth@redhat.com>
1755
1756 PR opt/15108
1757 * tree-tailcall.c (find_tail_calls): Don't check early for
1758 tail_recursion failure.
1759
1760 2004-06-09 Diego Novillo <dnovillo@redhat.com>
1761
1762 Move SSA_NAME annotations into tree_ssa_name.
1763
1764 * tree-dfa.c (create_ssa_name_ann): Remove.
1765 * tree-flow-inline.h (ssa_name_ann, get_ssa_name_ann): Remove.
1766 * tree-flow.h (enum tree_ann_type): Remove SSA_NAME_ANN.
1767 (struct ssa_name_ann_d): Remove.
1768 (union tree_ann_d): Update.
1769 (ssa_name_ann_t): Remove.
1770 * tree-ssa-alias.c: (get_ptr_info): New local function.
1771 Replace references to ssa_name_ann_t with struct ptr_info_def.
1772 * tree-ssa-operands.c (get_expr_operands): Likewise.
1773 * tree.h (SSA_NAME_PTR_INFO): Define.
1774 (struct ptr_info_def): Declare.
1775 (struct tree_ssa_name): Add field 'ptr_info'.
1776
1777 2004-06-09 Danny Smith <dannysmith@users.sourceforge.net>
1778
1779 * config/i386/winnt.c (i386_pe_output_labelref): Correct
1780 misplaced ')'.
1781
1782 2004-06-09 Steven Bosscher <stevenb@suse.de>
1783
1784 * config/i386/k6.md: Rewrite using the DFA model.
1785 * config/i386/i386.c (ix86_adjust_cost): Don't increase the
1786 cost of load-operation insns for the K6.
1787 (ia32_use_dfa_pipeline_interface): Add TARGET_K6.
1788 (ia32_multipass_dfa_lookahead): Likewise.
1789
1790 2004-06-09 Richard Henderson <rth@redhat.com>
1791
1792 * config/alpha/alpha.c (alpha_gimplify_va_arg_1,
1793 alpha_gimplify_va_arg, TARGET_GIMPLIFY_VA_ARG_EXPR): New.
1794
1795 2004-06-09 Richard Henderson <rth@redhat.com>
1796
1797 * expmed.c (emit_store_flag): Cope with FLOAT_STORE_FLAG_VALUE.
1798
1799 2004-06-09 Geoffrey Keating <geoffk@apple.com>
1800
1801 * Makefile.in (CPPLIB_H): Put files in order of inclusion.
1802 (CPP_ID_DATA_H): New.
1803 (gtype-desc.o): Update dependencies.
1804 (GTFILES): Use CPP_ID_DATA_H.
1805
1806 2004-06-09 Mark Mitchell <mark@codesourcery.com>
1807
1808 Revert:
1809 PR c++/15815
1810 2004-06-07 Mark Mitchell <mark@codesourcery.com>
1811 * doc/extend.texi: Deprecate #pragma interface and #pragma
1812 implementation.
1813
1814 2004-06-09 David S. Miller <davem@nuts.davemloft.net>
1815
1816 * config/sparc/sparc.h (MOVE_RATIO): New definition.
1817
1818 2004-06-09 Richard Henderson <rth@redhat.com>
1819
1820 * basic-block.h (struct edge_def): Add goto_locus.
1821 * tree-cfg.c (make_goto_expr_edges): Set it.
1822 (disband_implicit_edges): Use it.
1823 * tree-pretty-print.c (dump_implicit_edges): Print it.
1824
1825 2004-06-08 Anil Paranjpe <anilp1@kpitcummins.com>
1826
1827 * h8300.md (ldm_h8300s_4): Fix condition for expander.
1828
1829 2004-06-08 Jason Merrill <jason@redhat.com>
1830
1831 Gimplify VA_ARG_EXPR into simpler forms.
1832 * target.h: Add gimplify_va_arg_expr hook.
1833 * target-def.h: Add TARGET_GIMPLIFY_VA_ARG_EXPR.
1834 * fold-const.c (build_fold_addr_expr)
1835 (build_fold_addr_expr_with_type): Move from gimplify.c.
1836 * tree.h: Declare them.
1837 * gimplify.c (gimplify_and_add): New fn.
1838 (build_addr_expr, build_addr_expr_with_type): Move to fold-const.c.
1839 (gimplify_array_ref_to_plus, gimplify_modify_expr)
1840 (gimplify_expr): Use build_fold_*.
1841 (copy_if_shared_r): Only mark VA_ARG_EXPR volatile if we
1842 don't know how to gimplify it.
1843 * builtins.c (std_gimplify_va_arg_expr): New fn.
1844 (dummy_object): New static fn.
1845 (gimplify_va_arg_expr): New fn.
1846 (stabilize_va_list): Use build_fold_*.
1847 * tree-gimple.h: Declare new fns.
1848 * config/i386/i386.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
1849 (ix86_gimplify_va_arg): New fn.
1850 * config/ia64/ia64.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
1851 (ia64_gimplify_va_arg): New fn.
1852 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): New fn.
1853 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
1854 * alias.c (get_varargs_alias_set): Just return 0 for now.
1855
1856 * c-objc-common.c (c_tree_printer): Improve handling of %T.
1857
1858 2004-06-09 Andrew Pinski <pinskia@physics.uc.edu>
1859
1860 * tree-complex.c (expand_complex_comparison): Use fold_convert instead
1861 of convert.
1862 * tree-inline.c (setup_one_parameter): Likewise.
1863 * tree-sra.c (csc_build_component_ref): Likewise.
1864 * tree-ssa-ccp.c (ccp_fold): Likewise.
1865 * tree-ssa-copy.c (cprop_operand): Likewise.
1866 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
1867 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
1868
1869 2004-06-09 J"orn Rennecke <joern.rennecke@superh.com>
1870
1871 PR rtl-optimization/15521:
1872 * sched-int.h (in_post_call_group_p): Change type to enum.
1873 * sched-deps.c (sched_analyze_insn):
1874 (sched_analyze): When in_post_call_group_p is post_call_initial,
1875 don't add a dependency, but still set SCHED_GROUP_P and CANT_MOVE,
1876 and also reset in_post_call_group_p to post_call.
1877 (sched_analyze): When the previous basic block ended in a CALL_INSN,
1878 initialize in_post_call_group_p as post_call_initial.
1879 (init_deps): initialize in_post_call_group_p to not_post_call.
1880
1881 2004-06-09 Arnaud Charlet <charlet@act-europe.fr>
1882
1883 PR ada/6637
1884 * doc/install.texi: List ada, libada as options to --enable-shared
1885
1886 2004-06-09 Paolo Bonzini <bonzini@gnu.org>
1887
1888 * aclocal.m4 (gcc_AC_PROG_LN): Remove.
1889 (gcc_AC_CHECK_DECLS): Use AH_TEMPLATE to generate
1890 config.in entries.
1891 * configure.ac: Call ACX_PROG_LN, falling back to $LN_S
1892 if hard links are not available.
1893 * configure: Regenerate.
1894 * config.in: Regenerate.
1895
1896 2004-06-08 Per Bothner <per@bothner.com>
1897
1898 * configure.ac: New --enable-mapped-location sets USE_MAPPED_LOCATION.
1899
1900 2004-06-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1901
1902 * toplev.c (floor_log2_wide): Correct casts for 64-bit hosts.
1903 Correct formatting.
1904
1905 2004-06-08 James E Wilson <wilson@specifixinc.com>
1906
1907 PR target/15790
1908 * config/i386/i386-coff.h (ASM_OUTPUT_ALIGN): Define.
1909
1910 2004-06-08 Andrew Pinski <pinskia@physics.uc.edu>
1911
1912 * fold-const.c (fold_convert): Treat OFFSET_TYPE like
1913 POINTER_TYPE and INTEGER_TYPE.
1914
1915 2004-06-08 Bernardo Innocenti <bernie@develer.com>
1916
1917 * modulo-sched.c: Compile only when INSN_SCHEDULING is
1918 defined.
1919
1920 2004-06-08 Jeff Law <law@redhat.com>
1921
1922 * doc/contrib.texi: Add entries for Stefan Olsson and
1923 Ola Ronnerup.
1924
1925 2004-06-08 DJ Delorie <dj@redhat.com>
1926
1927 * toplev.c (floor_log2_wide): Replace loop with faster bit
1928 operations.
1929 (exact_log2_wide): Define in terms of the above.
1930 * toplev.h (floor_log2): Use _builtin_clz family of builtins if
1931 available.
1932
1933 2004-06-08 Andrew Pinski <pinskia@physics.uc.edu>
1934
1935 * config/rs6000/rs6000.c (print_operand, <case 'z'>):
1936 Make sure that we are in INDIRECT mode when getting the
1937 stub name.
1938
1939 2004-06-08 Anil Paranjpe <anilp1@kpitcummins.com>
1940
1941 * h8300.md (extendqisi2_h8300): Add constraints.
1942 (ldm_h8300s_4_normal): Fix typo.
1943
1944 2004-06-08 Richard Henderson <rth@redhat.com>
1945
1946 * gimple-low.c (struct lower_data): Replace the_return_label and
1947 one_return_stmt with return_statements.
1948 (lower_function_body): Process the entire list of return_statements.
1949 (lower_return_expr): Check source value before unifying return_exprs.
1950 * gimplify.c (gimplify_return_expr): Force the use of a temporary
1951 for !aggregate_value_p.
1952 * tree-gimple.c: Update RETURN_EXPR grammer.
1953
1954 2004-06-08 Vladimir Makarov <vmakarov@redhat.com>
1955
1956 PR target/15598
1957 * config/ia64/ia64.c (bundling): Add missed TYPE_A.
1958
1959 2004-06-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1960
1961 PR rtl-optimization/15717
1962 * config/i386/i386.c (legitimate_constant_p): Do not allow
1963 x - symbol_ref.
1964
1965 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
1966
1967 * gimplify.c (copy_if_shared_r): Revert:
1968 2004-05-21 Richard Henderson <rth@redhat.com>
1969 * gimplify.c [...] Don't mark VA_ARG_EXPRs volatile here.
1970
1971 2004-06-07 Roger Sayle <roger@eyesopen.com>
1972
1973 * expmed.c (add_cost, neg_cost, sdiv_pow2_cheap, smod_pow2_cheap):
1974 Make arrays indexed by machine mode. Rename negate_cost to neg_cost.
1975 (init_expmed): Initialize these cost arrays as appropriate.
1976 (store_bit_field, extract_bit_field): Correct whitespace.
1977 (synth_mult, choose_mult_variant, expand_mult, expand_mult_highpart,
1978 expand_mult_highpart_optab, expand_divmod): Update uses of add_cost,
1979 neg_cost, sdiv_pow2_cheap, smod_pow2_cheap to index with mode,
1980 word_mode or compute_mode as appropriate.
1981
1982 2004-06-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1983
1984 PR target/15783
1985 * config/sparc/sparc.c (function_arg_union_value): Add 'mode'
1986 parameter. Enumerate the registers inside the PARALLEL.
1987 (function_arg): Adjust call to function_arg_union_value.
1988 (function_value): Likewise.
1989
1990 * config/sparc/sparc.c (sparc_function_epilogue): Properly format.
1991
1992 2004-06-07 Roger Sayle <roger@eyesopen.com>
1993
1994 * real.c (real_copysign): New function to implement libm's copysign.
1995 * real.h (real_copysign): Prototype here.
1996 * fold-const.c (tree_expr_nonnegative_p): The result of sqrt, sqrtf
1997 and sqrtl can be negative, as sqrt(-0.0) = -0.0. Correct whitespace.
1998 * builtins.c (fold_builtin_isascii, fold_builtin_toascii,
1999 fold_builtin_isdigit): Add function prototypes.
2000 (fold_builtin_copysign): New function to fold copysign, copysignf
2001 and copysignl. Optimize copysign(x,x) as x. Evaluate copysign of
2002 constant arguments at compile-time using real_copysign. Fold
2003 copysign(X,Y) as fabs(X) if Y is always non-negative.
2004 (fold_builtin_1): Correct minor whitespace/style issues. Call
2005 fold_builtin_copysign for BUILT_IN_COPYSIGN{,F,L}.
2006
2007 2004-06-07 J"orn Rennecke <joern.rennecke@superh.com>
2008
2009 * tree.c (iterative_hash_expr): Use real_hash.
2010
2011 2004-06-07 Joseph S. Myers <jsm@polyomino.org.uk>
2012
2013 PR c/14765
2014 * c-parse.in (compstmt_primary_start): Set last_expr_type to
2015 NULL_TREE.
2016
2017 2004-06-07 Mark Mitchell <mark@codesourcery.com>
2018
2019 PR c++/15815
2020 * doc/extend.texi: Deprecate #pragma interface and #pragma
2021 implementation.
2022
2023 2004-06-07 Alexandre Oliva <aoliva@redhat.com>
2024
2025 PR middle-end/15666
2026 * c-decl.c (finish_decl): Use change_decl_assembler_name for the
2027 builtin decl as well.
2028
2029 2004-06-07 Roger Sayle <roger@eyesopen.com>
2030
2031 PR c/14649
2032 * c-typeck.c (require_constant_value, require_constant_elements):
2033 Move declarations to the top of the file.
2034 (build_function_call): If we require a constant value, fold with
2035 fold_initializer. If the result is a constant, and the function
2036 wasn't called using __builtin_foo, issue a pedantic warning.
2037 (build_unary_op): If we require a constant value, fold tree with
2038 fold_initializer.
2039 (build_binary_op): Use require_constant_value to determine whether
2040 to call fold or fold_initializer.
2041
2042 2004-06-07 Richard Henderson <rth@redhat.com>
2043
2044 * gimple-low.c (struct lower_data): Add the_return_label and
2045 one_return_stmt.
2046 (lower_function_body): Initialize and use them.
2047 (lower_return_expr): New.
2048 (lower_stmt): Call it.
2049 * gimplify.c (gimplify_return_expr): Force the argument to be either
2050 null or a result_decl.
2051 * tree-gimple.c: Update gimple grammer to match.
2052 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Deny
2053 coalescing of result_decls.
2054
2055 2004-06-07 Richard Henderson <rth@redhat.com>
2056
2057 PR rtl-opt/15193
2058 * expmed.c (extract_bit_field): Fix vector_extract return.
2059
2060 * config/i386/i386.md (negv4sf2): New pattern.
2061
2062 2004-06-07 Mark Mitchell <mark@codesourcery.com>
2063
2064 PR c++/15337
2065 * c-common.c (c_sizeof_or_alignof_type): Use more detailed error
2066 message.
2067
2068 2004-06-06 Paolo Bonzini <bonzini@gnu.org>
2069
2070 * config.in: Regenerate.
2071
2072 2004-06-06 Steven Bosscher <stevenb@suse.de>
2073
2074 * tree-cfg.c (tree_verify_flow_info): Make sure that labels in
2075 SWITCH_LABELS are always sorted.
2076
2077 2004-06-06 Steven Bosscher <stevenb@suse.de>
2078
2079 * hooks.c (hook_int_void_1): New generic hook.
2080 * hooks.h (hook_int_void_1): Add prototype.
2081 * config/c4x/c4x.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
2082 Define to hook_int_void_1.
2083 * config/c4x/c4x.md: Replace dummies for the old pipeline model
2084 with dummies for the new one.
2085
2086 2004-06-06 Roger Sayle <roger@eyesopen.com>
2087
2088 * tree.h (lvalue_or_else): Delete function prototype.
2089 * c-typeck.c (lvalue_or_else): Make static. Add static prototype.
2090
2091 2004-06-06 Stephane Carrez <stcarrez@nerim.fr>
2092
2093 PR target/14542
2094 * config/m68hc11/m68hc11.md (move peephole2): Emit a use note to avoid
2095 a live change of a register after peephole replacement.
2096
2097 2004-06-06 Joseph S. Myers <jsm@polyomino.org.uk>
2098
2099 PR c/13519
2100 * c-typeck.c (composite_type, common_pointer_type): New functions.
2101 (common_type): Split parts into composite_type and
2102 common_pointer_type. Ensure that arithmetic operations return
2103 unqualified types without attributes. Don't make composite type
2104 of signed enum and compatible integer be unsigned.
2105 (build_conditional_expr, build_binary_op): Use
2106 common_pointer_type.
2107 * c-decl.c (merge_decls): Use composite_type.
2108 * c-tree.h (composite_type): Declare.
2109
2110 2004-06-06 Stephane Carrez <stcarrez@nerim.fr>
2111
2112 PR target/14457
2113 * config/m68hc11/m68hc11.c (splitable_operand): New predicate.
2114 * config/m68hc11/m68hc11-protos.h (splitable_operand): Declare.
2115 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register it.
2116 (inhibit_libc): Must define.
2117 * config/m68hc11/m68hc11.md ("movhi_const0"): Use splitable_operand.
2118 ("*andhi3_gen", "iorhi3", "*iorhi3_gen"): Likewise.
2119 ("xorhi3"): Likewise.
2120
2121 2004-06-06 Eric Botcazou <ebotcazou@libertysurf.fr>
2122
2123 * cgraphunit.c (cgraph_decide_inlining): Adjust dump lines in
2124 always_inline pass.
2125
2126 2004-06-05 David S. Miller <davem@nuts.davemloft.net>
2127
2128 * config/sparc/linux.h (TARGET_C99_FUNCTIONS): Set.
2129 * config/sparc/linux64.h (TARGET_C99_FUNCTIONS): Likewise.
2130
2131 2004-06-05 Bernardo Innocenti <bernie@develer.com>
2132
2133 * regclass.c (init_reg_sets): Check for missing registers in target
2134 initializer macros FIXED_REGISTERS and CALL_USED_REGISTERS.
2135
2136 2004-06-05 Zack Weinberg <zack@codesourcery.com>
2137
2138 * Makefile.in (MKDEPS_H): New shorthand.
2139 (c-opts.o): Update dependencies.
2140 * c-opts.c: Include mkdeps.h.
2141 (handle_deferred_opts): Use cpp_get_deps and deps_add_target,
2142 not cpp_add_dependency_target.
2143
2144 2004-06-05 Steven Bosscher <stevenb@suse.de>
2145
2146 * config/v850/v850.c (v850_use_dfa_pipeline_interface): New.
2147 * config/v850/v850.md: Convert to DFA scheduler description.
2148
2149 2004-06-05 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
2150
2151 PR fortran/15478
2152 * doc/install.texi: Document GMP as prerequisite. Document
2153 --with-gmp and --with-gmp-dir configure options.
2154 * fortran/gfortran.texi: Remove section "Compiling and testing",
2155 remove TOC reference to it.
2156
2157 2004-06-05 Graham Stott <graham.stott@btinternet.com>
2158
2159 * combine.c(simplify_shift_const): Check shift amount is a
2160 CONST_INT.
2161
2162 2004-06-05 Danny Smith <dannysmith@users.sourceforge.net>
2163
2164 * toplev.c (init_asm_output): Add explicit 'b' to mode when
2165 opening asm_out_file.
2166 * c-pch.c (c_common_write_pch): Remove unnecessary fflush before
2167 reading asm_out_file. Replace fflush after reading asm_out_file
2168 with fseek.
2169 * hosthooks-def.h (HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY): Define
2170 default and add to HOST_HOOKS_INITIALIZER.
2171 * hosthooks.h (gt_pch_alloc_granularity): Declare hook function.
2172 * ggc-common.c (default_gt_pch_alloc_granularity): New function.
2173 (gt_pch_save): Use host_hooks.gt_pch_alloc_granularity
2174 to set mmi.offset padding.
2175 * config.gcc (i[34567]86-*-mingw32*): Set target_gtfiles to
2176 $(srcdir)/config/i386/winnt.c.
2177 (i[34567]86-*-pe | i[34567]86-*-cygwin*): Likewise.
2178 (i[34567]86-*-uwin*): Likewise.
2179 *i[34567]86-*-interix3*): Likewise.
2180 * config.host (i[34567]86-*-mingw32*): Set out_host_hook_obj.
2181 * config/i386/host-mingw32.c: New file.
2182 * config/i386/x-mingw32: Add rule for host-mingw32.o.
2183 * config/i386/winnt.c: (struct extern_list) Tag as GTY.
2184 (extern_head): Likewise.
2185 (struct export_list) Likewise.
2186 (export_head): Likewise.
2187 (i386_pe_record_external_function): Use ggc_alloc.
2188 (i386_pe_record_exported_symbol): Likewise.
2189 Include "gt-winnt.h" at end.
2190 * doc/hostconfig.texi: Document
2191 HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY.
2192
2193 2004-06-04 Bernardo Innocenti <bernie@develer.com>
2194
2195 * config/m68k/m68k.h: Remove comments copied over from tm.texi.
2196 Rename 68000 and 68k to m68k for consistency in comments. Remove
2197 trailing whitespace before EOLs and before TABs.
2198 (MAX_CODE_ALIGN): Remove unused macro.
2199 (CALL_USED_REGISTERS): Reformat and add comments.
2200
2201 2004-06-04 Frank Ch. Eigler <fche@redhat.com>
2202
2203 * gcc.c (MFLIB_SPEC): Remove library references, to require users
2204 to enumerate -lmudflap* and dependencies when linking.
2205
2206 2004-06-04 Paolo Bonzini <bonzini@gnu.org>
2207
2208 PR target/15822
2209 * dojump.c (do_jump): Fix uninitialized variable tcode1.
2210
2211 2004-06-04 Jerry Quinn <jlquinn@optonline.net>
2212
2213 * Makefile.in (insn-conditions.o): Back out removal of reload.h.
2214 * genconditions.c (write_header): Back out removal of reload.h.
2215
2216 2004-06-04 Jan Hubicka <jh@suse.cz>
2217
2218 Re-apply hopefully fixed patch:
2219 * i386.md (UNSPECV_EH_RETURN): Kill.
2220 (eh_return): Use jump_insn.
2221 (eh_return_si, eh_return_di): Change pattern to jump instruction.
2222
2223 2004-06-04 Jeff Law <law@redhat.com>
2224
2225 * cfgrtl.c (try_redirect_by_replacing_jump): Fix return value.
2226
2227 2004-06-04 Steven Bosscher <stevenb@suse.de>
2228
2229 * except.c (for_each_eh_region): New function.
2230 * except.h (for_each_eh_region): Add a prototype for it.
2231 * tree-cfg.c (update_eh_labels): New function, callback for
2232 for_each_eh_region.
2233 (label_for_bb): Make global static, unfortunately.
2234 (cleanup_dead_labels): Also update label references for
2235 exception regions.
2236
2237 2004-06-03 Chris Demetriou <cgd@broadcom.com>
2238
2239 * config/mips/mips.c (struct irix_section_align_entry): Fix
2240 GTY marker.
2241
2242 2004-06-03 Geoffrey Keating <geoffk@apple.com>
2243
2244 * toplev.c (check_global_declarations): Don't ask for
2245 DECL_ASSEMBLER_NAME unless the function really is declared
2246 static and not defined.
2247
2248 2004-06-03 Matt Austern <austern@apple.com>
2249
2250 PR c++/15428
2251 * default.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): New name
2252 for TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, with reversed sense.
2253 * config/darwin.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Likewise.
2254 * doc/tm.texi (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Rewrite
2255 documentation to reflect the new macro name and to clarify its
2256 meaning.
2257
2258 2004-06-03 Steven Bosscher <stevenb@suse.de>
2259
2260 * rtl.def (VAR_LOCATION): Make RTX_EXTRA.
2261
2262 2004-06-03 Andrew Pinski <pinskia@physics.uc.edu>
2263
2264 * config/darwin.c (machopic_indirect_data_reference): Copy
2265 the SYMBOL_REF_DECL from the original RTX for the new
2266 non-lazy pointer RTX.
2267
2268 2004-06-03 Mark G. Adams <mark.g.adams@sympatico.ca>
2269
2270 * tree.h: Remove include of version.h
2271 * c-cppbuiltin.c: Include version.h
2272 * diagnostic.c: Include version.h
2273 * dwarf2out.c: Include version.h
2274 * toplev.c: Include version.h
2275 * vmsdbgout.c: Include version.h
2276 * Makefile.in: Remove dependency on version.h from TREE_H, and
2277 add dependencies to required .o targets
2278
2279 2004-06-03 Jerry Quinn <jlquinn@optonline.net>
2280
2281 * Makefile.in (RA_H, RESOURCE_H, SCHED_INT_H, CFGLAYOUT_H,
2282 CFGLOOP_H, DF_H, DDG_H, TREE_SSA_LIVE_H): New.
2283 (TARGET_H): Add insn-modes.h.
2284 (tree-ssa.o, tree-cfg.o, tree-ssa-loop.o, toplev.o, passes.o,
2285 loop.o, loop-doloop.o, unroll.o, cfgloop.o, cfgloopanal.o,
2286 loop-iv.o, cfgloopmanip.o, loop-init.o, loop-unswitch.o,
2287 loop-unroll.o, ddg.o, modulo-sched.o, predict.o,
2288 cfglayout.o, ifcvt.o): Replace cfgloop.h with CFGLOOP_H.
2289 (toplev.o, passes.o, cfghooks.o, cfgloopmanip.o, loop-init.o,
2290 loop-unswitch.o, loop-unroll.o, ddg.o, modulo-sched.o,
2291 bb-reorder.o, tracer.o, cfglayout.o): Replace cfglayout.h with
2292 CFGLAYOUT_H.
2293 (ra.o, ra-build.o, ra-colorize.o, ra-debug.o, ra-rewrite.o):
2294 Replace ra.h with RA_H.
2295 (resource.o, regrename.o, insn-conditions.o, insn-emit.o,
2296 insn-recog.o): Replace resource.h with RESOURCE_H.
2297 (ddg.o, modulo-sched.o, haifa-sched.o, sched-deps.o, sched-rgn.o,
2298 sched-ebb.o, sched-vis.o, out_object_file): Replace sched-int.h
2299 with SCHED_INT_H.
2300 (web.o, lcm.o, df.o, ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
2301 ra-rewrite.o): Replace df.h with DF_H.
2302 (ddg.o, modulo-sched.o): Replace ddf.h with DDG_H.
2303 (tree-outof-ssa.o, tree-ssa-live.o, tree-ssa-copyrename.o):
2304 Replace tree-ssa-live.h with TREE_SSA_LIVE_H.
2305 (insn-conditions.o): Remove unused reload.h.
2306 * cfglayout.h: Add include guard. Include basic-block.h.
2307 * cfgloop.h: Add include guard. Include basic-block.h, rtl.h.
2308 * ddg.h: Include sbitmap.h, basic-block.h, df.h.
2309 * df.h: Add include guard. Include bitmap.h, sbitmap.h,
2310 basic-block.h.
2311 * genconditions.c: Remove reload.h.
2312 * ra.h: Add include guard. Include bitmap.h, sbitmap.h,
2313 hard-reg-set.h, insn-modes.h.
2314 * resource.h: Add include guard. Include hard-reg-set.h.
2315 * sched-int.h: Add include guard. Include insn-attr.h,
2316 basic-block.h, rtl.h.
2317 * target.h: Add include guard. Include insn-modes.h.
2318 * tree-ssa-live.h: Include partition.h.
2319
2320 2004-06-03 Daniel Berlin <dberlin@dberlin.org>
2321 Kenneth Zadeck <zadeck@naturalbridge.com>
2322
2323 * tree-ssa-ccp.c (varying_ssa_edges): New worklist.
2324 (add_var_to_ssa_edges_worklist): Add value argument.
2325 Update callers.
2326 Use new worklist.
2327 (process_ssa_edge_worklist): New function.
2328 (tree_ssa_ccp): Move worklist processing core to
2329 process_ssa_edge_worklist, and just call that for the two worklists.
2330
2331 2004-06-03 Steven Bosscher <stevenb@suse.de>
2332
2333 * basic-block.c (tail_recursion_label_list): Don't declare.
2334 (CLEANUP_PRE_SIBCALL): Remove. Renumber the other CLEANUP_*
2335 accordingly.
2336 * cfgbuild.c (find_label_refs): Remove.
2337 (find_basic_blocks_1): Don't handle CALL_PLACEHOLDER insns.
2338 * cfgcleanup.c (tail_recursion_label_p): Remove.
2339 (merge_blocks_move): Do not check for tail recursion.
2340 (try_optimize_cfg): Likewise.
2341 (cleanup_cfg): Never handle CLEANUP_PRE_SIBCALL.
2342 * cfgrtl.c (tail_recursion_label_list): Remove.
2343 * except.c (remove_unreachable_regions): Don't handle
2344 CALL_PLACEHOLDER insns.
2345 (convert_from_eh_region_ranges_1, can_throw_internal,
2346 can_throw_external): Likewise.
2347 * function.c (free_after_compilation): Don't clear
2348 x_tail_recursion_label.
2349 (fixup_var_refs_insns): Don't handle CALL_PLACEHOLDER insns.
2350 (identify_blocks_1): Don't recurse for CALL_PLACEHOLDER insns.
2351 (reorder_blocks_1): Likewise.
2352 * function.h (struct function): Remove x_tail_recursion_label
2353 member. Don't define tail_recursion_label.
2354 * jump.c (mark_all_labels): Don't handle CALL_PLACEHOLDER insns.
2355 * print-rtl.c (print_rtx): Likewise.
2356 * rtl.def (CALL_PLACEHOLDER): Remove.
2357 * rtl.h (sibcall_use_t): Remove enum.
2358 (optimize_sibling_and_tail_recursive_calls,
2359 replace_call_placeholder): Remove function prototypes.
2360 * stmt.c (tail_recursion_args): Remove.
2361 (optimize_tail_recursion): Remove.
2362 (expand_return): Don't check for possible tail recursion.
2363 * tree.h (optimize_tail_recursion): Remove prototype.
2364
2365 2004-06-02 Jan Hubicka <jh@suse.cz>
2366
2367 * tree-cfg.c (tree_find_edge_insert_loc): Allow inserting before
2368 return_stmt.
2369
2370 2004-06-02 Jason Merrill <jason@redhat.com>
2371
2372 * Makefile.in (TAGS): Don't mess with c-parse.[ch].
2373 Do include c-parse.in.
2374
2375 2004-06-02 Eric Christopher <echristo@redhat.com>
2376
2377 * c-typeck.c (common_type): Don't lose type qualifiers
2378 when creating new variants.
2379
2380 2004-06-02 Andrew Pinski <pinskia@physics.uc.edu>
2381
2382 PR tree-optimization/14042
2383 PR tree-optimization/14729
2384 PR tree-optimization/14736
2385 * tree-ssa.c (tree_ssa_useless_type_conversion_1):
2386 Check the type which the pointer points to
2387 instead of the pointer types.
2388
2389 2004-06-02 Kazu Hirata <kazu@cs.umass.edu>
2390
2391 PR tree-optimization/15738.
2392 * builtins.c (fold_builtin_strchr): Transform
2393 strrchr (s, '\0') to strchr (s, '\0').
2394
2395 2004-06-02 Steven Bosscher <stevenb@suse.de>
2396
2397 * i386.c (ix86_adjust_cost): Don't increase the cost for
2398 load+operation for PROCESSOR_PENTIUMPRO, it is already
2399 modelled in the DFA description
2400
2401 2004-06-01 Jerry Quinn <jlquinn@optonline.net>
2402
2403 * Makefile.in (EXPR_H): Add insn-config.h, function.h,
2404 $(RTL_H), flags.h, $(TREE_H), $(MACHMODE_H), $(EXPR_H).
2405 (ALIAS_H, EMIT_RTL_H): New.
2406 (cselib.o): Replace EXPR_H with EMIT_RTL_H.
2407 (cfgcleanup.o): Add EMIT_RTL_H.
2408 (alias.o): Replace EXPR_H with EMIT_RTL_H and ALIAS_H.
2409 * alias.c: Replace expr.h with emit-rtl.h and alias.h.
2410 * attribs.c, c-lex.c, c-obj-common.c, c-semantics.c: Remove expr.h.
2411 * cfgcleanup.c, cselib.c: Replace expr.h with emit-rtl.h.
2412 * expr.h: Add include guard. Include function.h, rtl.h, flags.h,
2413 tree.h, machmode.h, insn-config.h, alias.h, emit-rtl.h.
2414 (get_varargs_alias_set, get_frame_alias_set, record_base_value,
2415 record_alias_subset, new_alias_set, can_address_p): Move to alias.h.
2416 (set_mem_alias_set, set_mem_align, set_mem_expr, set_mem_offset,
2417 set_mem_size): Move to emit-rtl.h.
2418 * emit-rtl.h: New.
2419 * alias.h: New.
2420
2421 2004-06-01 Eric Botcazou <ebotcazou@act-europe.fr>
2422
2423 * function.c (walk_fixup_memory_subreg): New parameter 'var'.
2424 Call fixup_memory_subreg only if the MEM is equal to 'var'.
2425 Adjust recursive calls to self.
2426 (fixup_var_refs_insn): Pass 'var' to walk_fixup_memory_subreg.
2427
2428 2004-06-01 Richard Henderson <rth@redhat.com>
2429 Andrew Pinski <pinskia@physics.uc.edu>
2430
2431 * c-parse.in (OFFSETOF, offsetof_member_designator): New.
2432 (primary): Handle offsetof. Add error productions for faux functions.
2433 Move component_ref objc checking to build_component_ref.
2434 (reswords): Add offsetof.
2435 (rid_to_yy): Add offsetof.
2436 * c-tree.h (build_offsetof): Declare.
2437 * c-common.h (objc_is_public): Declare.
2438 * c-typeck.c (build_component_ref): Check objc_is_public.
2439 (build_offsetof): New.
2440 * stub-objc.c (objc_is_public): New.
2441 * objc/objc-act.c, objc/objc-act.h (objc_is_public): Rename
2442 from is_public.
2443 * ginclude/stddef.h (offsetof): Use __builtin_offsetof.
2444 * doc/extend.texi (Offsetof): Move from C++ section to C section
2445 and rewrite for __builtin_offsetof.
2446
2447 2004-06-01 Peter Barada <peter@the-baradas.com>
2448 Peter Jakubek <peter@laseranimation.com>
2449
2450 * config/m68k/m68k.c(m68k_output_mi_thunk): For ColdFire, use %d0 as
2451 a scratch to perform an add to memory.
2452
2453 2004-06-01 Bernardo Innocenti <bernie@develer.com>
2454
2455 PR target/14018
2456 * config/m68k/m68k.c (m68k_align_loops_string, m68k_align_jumps_string,
2457 m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
2458 m68k_align_funcs): Remove.
2459 (override_options): Remove code to handle -malign-* options.
2460 * config/m68k/m68k.h (TARGET_OPTIONS): Remove -malign-* options.
2461 (FUNCTION_BOUNDARY, LOOP_ALIGN, LOOP_ALIGN_AFTER_BARRIER): Remove.
2462 (m68k_align_loops_string, m68k_align_jumps_string,
2463 m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
2464 m68k_align_funcs): Remove definitions.
2465
2466 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
2467
2468 PR target/15626
2469 * doc/install.texi (sparc-sun-solaris2*): Document messages issued
2470 by the Sun linker in conjunction with the Sun assembler.
2471 (sparc-sun-solaris2.7): Update revision info for Sun patch 106950.
2472
2473 2004-06-01 Jeff Law <law@redhat.com>
2474
2475 * stmt.c (expand_decl): Be more selective about calling
2476 mark_reg_pointer.
2477
2478 2004-06-01 Nicola Pero <nicola@brainstorm.co.uk>
2479
2480 PR objc/7993
2481 * objc-act.c (is_private): Do not emit the 'instance variable %s
2482 is declared private' error.
2483 (is_public): Emit the error after calling is_private.
2484 (lookup_objc_ivar): If the instance variable is private, return 0
2485 - the instance variable is invisible here.
2486
2487 2004-06-01 Eric Botcazou <ebotcazou@libertysurf.fr>
2488
2489 * doc/invoke.texi (-static-libgcc): Explicitly mention
2490 non-GNU linkers.
2491
2492 2004-06-01 Bernardo Innocenti <bernie@develer.com>
2493
2494 PR target/12968
2495 * doc/invoke.texi: Document stack alignment side-effect of -mshort.
2496
2497 2004-05-31 Joseph S. Myers <jsm@polyomino.org.uk>
2498
2499 PR c/15749
2500 * c-decl.c (grokdeclarator, finish_struct): Don't pedwarn for
2501 misuses of structures with flexible array members if
2502 in_system_header.
2503
2504 2004-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
2505
2506 PR target/15693
2507 * config/sparc/sparc.c (compare_operand): New predicate.
2508 * config/sparc/sparc.h (PREDICATE_CODES): Add it.
2509 * config/sparc/sparc.md (cmpsi expander): Use it. If the first
2510 operand is a ZERO_EXTRACT and the second operand is not zero,
2511 force the former to a register.
2512 (cmpdi expander): Likewise.
2513
2514 2004-05-31 Geoffrey Keating <geoffk@apple.com>
2515
2516 * gengtype-lex.l: Catch stray GTY markers in the files gengtype
2517 looks at.
2518 * alias.c (alias_invariant_size): Make alias_invariant_size
2519 static, fix GTY marker.
2520
2521 2004-05-31 Kazu Hirata <kazu@cs.umass.edu>
2522
2523 PR tree-optimization/15743.
2524 * builtins.c (fold_builtin_1): Fold index() and rindex().
2525
2526 2004-05-31 Roger Sayle <roger@eyesopen.com>
2527
2528 PR middle-end/15069
2529 * fold-const.c (fold_single_bit_test): Only perform "(X & C) != 0"
2530 into "X < 0" (where C is the signbit) if X's type is a full mode.
2531
2532 2004-05-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2533
2534 * pa.md: Disable the peephole2 patterns that generate indexed
2535 floating-point stores when indexing is disabled.
2536
2537 2004-05-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
2538
2539 * c-pretty-print.c (pp_c_left_bracket): Make a function.
2540 (pp_c_right_bracket): Likewise.
2541 (pp_c_star): Likewise.
2542 (pp_c_ampersand): Define.
2543 * c-pretty-print.h (pp_c_left_bracket): Declare.
2544 (pp_c_right_bracket): Likewise.
2545 (pp_c_star): Likewise.
2546 (pp_c_ampersand): Likewise.
2547
2548 2004-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
2549
2550 * config/sol2.h (__enable_execute_stack): ANSIfy function
2551 definition.
2552
2553 2004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
2554
2555 * c-incpath.c (add_path): Canonicalize paths to use '/' if
2556 HAVE_DOS_BASED_FILESYSTEM.
2557
2558 2004-05-31 Steven Bosscher <stevenb@suse.de>
2559
2560 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
2561 Only look at case labels if the immediate dominator is also
2562 the only predecessor. Don't look for more case labels if the
2563 first seen is a case range.
2564
2565 2004-05-31 Kazu Hirata <kazu@cs.umass.edu>
2566
2567 * builtins.c: Add a prototype for fold_builtin_strchr().
2568
2569 2004-05-31 Paolo Bonzini <bonzini@gnu.org>
2570
2571 Revert this patch:
2572 2004-05-27 Paolo Bonzini <bonzini@gnu.org>
2573
2574 * combine.c (gen_binary): Remove.
2575 (known_cond, simplify_shift_const
2576 find_split_point, combine_simplify_rtx,
2577 simplify_if_then_else, simplify_set,
2578 simplify_logical, expand_field_assignment,
2579 extract_left_shift, force_to_mode,
2580 if_then_else_cond, apply_distributive_law,
2581 simplify_and_const_int, simplify_shift_const,
2582 gen_lowpart_for_combine, simplify_comparison,
2583 reversed_comparison): Replace with
2584 simplify_gen_binary, simplify_gen_relational or
2585 distribute_and_simplify_rtx.
2586 (distribute_and_simplify_rtx): New function.
2587
2588 2004-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2589
2590 * pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands
2591 when generating PIC code.
2592
2593 2004-05-30 Andrew Pinski <pinskia@physics.uc.edu>
2594
2595 * c-decl.c (c_expand_body_1): Remove and fold back into ...
2596 (c_expand_body): here.
2597 (c_expand_decl): Move to ...
2598 * c-common.c (c_expand_decl): Here and remove check for nested
2599 functions.
2600 * c-common.h (c_expand_decl): Add prototype.
2601 * c-tree.h (c_expand_decl): Remove.
2602
2603 2004-05-30 Roger Sayle <roger@eyesopen.com>
2604
2605 * fold-const.c (combine_comparisons, optimize_bit_field_compare,
2606 range_binop, fold_truthop, fold_binary_op_with_conditional_arg,
2607 fold_mathfn_compare, fold_inf_compare, fold,
2608 fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
2609 Use constant_boolean_node where appropriate. Don't bother using
2610 fold_convert on the second argument to omit_one_operand.
2611
2612 2004-05-30 Roger Sayle <roger@eyesopen.com>
2613
2614 * doc/c-tree.texi (Expressions): Document FLOOR_DIV_EXPR,
2615 CEIL_DIV_EXPR, ROUND_DIV_EXPR, FLOOR_MOD_EXPR, CEIL_MOD_EXPR,
2616 ROUND_MOD_EXPR, EXACT_DIV_EXPR. Improve documentation of
2617 TRUNC_DIV_EXPR, TRUNC_MOD_EXPR and comparison operations.
2618 Add missing (but documented) tree nodes to the index.
2619
2620 2004-05-30 Steven Bosscher <stevenb@suse.de>
2621
2622 PR tree-optimization/14819
2623 * builtins.c (fold_builtin_strchr): New.
2624 (fold_builtin_1): Handle BUILT_IN_STRCHR and BUILT_IN_STRRCHR
2625 with fold_builtin_strchr().
2626
2627 2004-05-30 Kazu Hirata <kazu@cs.umass.edu>
2628
2629 * bb-reorder.c, builtins.c, c-common.c, c-gimplify.c,
2630 c-incpath.c, cgraphunit.c, ddg.c, defaults.h, dwarf2out.c,
2631 expmed.c, flags.h, gcc.c, gensupport.c, gimplify.c, global.c,
2632 passes.c, reg-stack.c, target.h, toplev.c, tree-alias-ander.c,
2633 tree-alias-common.c, tree-cfg.c, tree-complex.c, tree-dfa.c,
2634 tree-eh.c, tree-mudflap.c, tree-mudflap.h, tree-outof-ssa.c,
2635 tree-phinodes.c, tree-pretty-print.c, tree-ssa-alias.c,
2636 tree-ssa-ccp.c, tree-ssa-live.c, tree-ssa-live.h,
2637 tree-ssa-pre.c, tree.h, value-prof.h, varasm.c: Fix comment
2638 formatting.
2639
2640 2004-05-30 Steven Bosscher <stevenb@suse.de>
2641
2642 * gimplify.c (sort_case_labels): New. Split out from...
2643 (gimplify_switch_expr): ...here. Use it.
2644 * tree-eh.c (lower_try_finally_switch): Sort the labels of
2645 the SWITCH_EXPR created here before leaving the function.
2646 * tree.c (sort_case_labels): Add prototype.
2647
2648 2004-05-30 Andrew Pinski <pinskia@physics.uc.edu>
2649
2650 * fold-const.c (fold) [case TRUTH_NOT_EXPR]: Make sure the type is
2651 of BOOLEAN_TYPE.
2652
2653 2004-05-30 Kazu Hirata <kazu@cs.umass.edu>
2654
2655 * c-common.c, calls.c, cfgcleanup.c, cgraph.c, cgraphunit.c,
2656 ddg.c, ddg.h, df.c, df.h, except.c, expr.c, flags.h,
2657 fold-const.c, gcc.c, gimplify.c, haifa-sched.c,
2658 modulo-sched.c, tree-inline.c, tree-into-ssa.c, tree-nested.c,
2659 tree-nrv.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-live.c,
2660 tree-ssa-loop.c, tree-ssa-pre.c, tree-tailcall.c, tree.h: Fix
2661 comment typos. Follow spelling conventions.
2662
2663 2004-05-29 Geoffrey Keating <geoffk@apple.com>
2664
2665 * gengtype-yacc.y: Add NESTED_PTR token.
2666 (option): Record `nested_ptr' option.
2667 * gengtype-lex.l: Handle `nested_ptr' keyword.
2668 * gengtype.c (walk_type): Process `nested_ptr' option.
2669 * gengtype.h (struct nested_ptr_data): New.
2670 * doc/gty.texi (GTY Options): Document `nested_ptr' option.
2671 * stringpool.c (struct string_pool_data): Make 'entries' point to
2672 ht_identifier instead of tree.
2673 (gt_pch_save_stringpool): Don't adjust pointers.
2674 (gt_pch_restore_stringpool): Call ht_load.
2675
2676 2004-05-29 Jason Merrill <jason@redhat.com>
2677
2678 * gimplify.c (gimplify_expr): Don't build a statement list
2679 if no gimplification was necessary.
2680
2681 2004-05-29 Joseph S. Myers <jsm@polyomino.org.uk>
2682
2683 * pretty-print.c (pp_base_format_text): Support %< instead of %`
2684 and %> as well as %'.
2685 * c-format.c: Use %< and %>.
2686 (gcc_diag_char_table, gcc_cdiag_char_table,
2687 gcc_cxxdiag_char_table): Update.
2688
2689 2004-05-29 Joseph S. Myers <jsm@polyomino.org.uk>
2690
2691 * c-typeck.c (common_type): Correct comment.
2692
2693 2004-05-29 Peter Barada <peter@the-baradas.com>
2694
2695 * config/m68k/m68k.c (CONST_METHOD): Add MVZ, MVS.
2696 * config/m68k/m68k.c (const_method): Likewise.
2697 * config/m68k/m68k.c (const_int_cost): Likewise.
2698 * config/m68k/m68k.c (const_int_cost): Likewise.
2699 * config/m68k/m68k.c (output_move_const_into_data_reg): Likewise.
2700
2701 2004-05-29 Peter Barada <peter@the-baradas.com>
2702
2703 * config/m68k/m68k.h (EXTRA_CONSTRAINT): add 'U' for register offset
2704 addressing.
2705 * config/m68k/m68k.md: Add 'U,U' alternative to ColdFire variants of
2706 movsi,movhi,movqi insn patterns.
2707
2708 2004-05-28 Andrew Pinski <pinskia@physics.uc.edu>
2709
2710 * c-semantics.c (emit_local_var): Remove code for DECL_INITIAL.
2711
2712 PR target/15720
2713 * config/darwin.c (machopic_indirect_call_target): Copy
2714 the SYMBOL_REF_DECL from the original RTX for the new
2715 stub RTX.
2716
2717 2004-05-28 DJ Delorie <dj@redhat.com>
2718
2719 * stor-layout.c (place_field): Revert erroneous commit.
2720
2721 2004-05-28 Ziemowit Laski <zlaski@apple.com>
2722
2723 * config/rs6000/altivec.h (vec_ctf, vec_vcfsx, vec_vcfux, vec_cts,
2724 vec_ctu, vec_dss, vec_dst, vec_dstst, vec_dststt, vec_dstt, vec_ld,
2725 vec_ldl, vec_lvsl, vec_lvsr, vec_sld, vec_splat, vec_vspltw,
2726 vec_vsplth, vec_vspltb, vec_splat_s8, vec_splat_s16, vec_splat_s32,
2727 vec_splat_u8, vec_splat_u16, vec_splat_u32, vec_st, vec_stl,
2728 vec_ste): Remove type checks for integral parameters and literals
2729 from '..._args_eq' macros.
2730
2731 2004-05-28 Aldy Hernandez <aldyh@redhat.com>
2732
2733 * c-common.c (fname_as_string): Fix xcalloc to xmalloc.
2734
2735 2004-05-28 Aldy Hernandez <aldyh@redhat.com>
2736
2737 * testsuite/g++.dg/charset/function.cc: New.
2738
2739 * testsuite/gcc.dg/charset/function.c: New.
2740
2741 * c-decl.c (c_make_fname_decl): Free return value from
2742 fname_as_string.
2743
2744 * cp/decl.c (cp_make_fname_decl): Free return value from
2745 fname_as_string.
2746
2747 * c-common.c (fname_as_string): Translate if necessary.
2748
2749 2004-05-28 Geoffrey Keating <geoffk@apple.com>
2750
2751 * stringpool.c: Add comments to PCH saving/restoring routines.
2752
2753 2004-05-28 Andrew Pinski <pinskia@physics.uc.edu>
2754
2755 * c-common.c (c_estimate_num_insns_1): Kill.
2756 (c_estimate_num_insns): Kill.
2757 * c-common.h (c_estimate_num_insns): Kill.
2758
2759 * gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING
2760 when checking for _POSIX_THREAD_PRIORITY_SCHEDULING.
2761 Remove comment about not checking for
2762 _POSIX_PRIORITY_SCHEDULING.
2763 * gthr-posix.c: Likewise.
2764
2765 2004-05-28 Paolo Bonzini <bonzini@gnu.org>
2766 Roger Sayle <roger@eyesopen.com>
2767
2768 PR rtl-optimization/15649
2769 Add LTGT_EXPR and improve pretty-printing of unordered
2770 comparisons.
2771 * c-common.c (c_common_truthvalue_conversion):
2772 Handle LTGT_EXPR.
2773 * c-typeck.c (build_binary_op): Likewise.
2774 * dojump.c (do_jump): Likewise.
2775 * expr.c (expand_expr_real_1, do_store_flag): Likewise.
2776 * predict.c (tree_predict_by_opcode): Likewise.
2777 * real.c (real_compare): Likewise.
2778 * tree-cfg.c (verify_expr): Likewise.
2779 * tree-inline.c (estimate_num_insns_1): Likewise.
2780 * tree-pretty-print.c (dump_generic_node): Likewise.
2781 Handle ORDERED_EXPR, UNORDERED_EXPR.
2782 (op_symbol): Print unordered comparisons differently
2783 than ordered ones.
2784 * tree.def (LTGT_EXPR): New '<' tree code.
2785 * doc/c-tree.texi (Expressions): Document floating-point
2786 comparison nodes.
2787
2788 Fold comparisons between floating point values.
2789 * fold-const.c (enum comparison_code): New, from
2790 #define'd constants. Define compcodes for unordered
2791 comparisons and for invalid transformations.
2792 (invert_tree_comparison): Add "honor_nans" parameter.
2793 (fold_truthop): Revamp to work on floating-point types too.
2794 (comparison_to_compcode): Support unordered comparisons.
2795 Use new enum comparison_code.
2796 (compcode_to_comparison): Likewise.
2797 (combine_compcodes): New function.
2798 (invert_truthvalue): Let invert_tree_comparison decide
2799 whether it is valid to fold the comparison. Fold ORDERED
2800 and UNORDERED even if flag_unsafe_math_optimizations is off,
2801 and the remaining even if flag_unsafe_math_optimizations
2802 is off but we are under -fno-trapping-math.
2803 (fold_relational_const): Integer modes do not honor NaNs.
2804
2805 2004-05-28 Paul Brook <paul@codesourcery.com>
2806
2807 * config/arm/arm.c (arm_output_epilogue): Remove redundant code.
2808
2809 2004-05-28 Paul Brook <paul@codesourcery.com>
2810
2811 * config/arm/arm.c (thumb_force_lr_save): New function.
2812 (arm_get_frame_offsets, thumb_unexpanded_epilogue,
2813 thumb_output_function_prologue): Use it.
2814 (thumb_expand_prologue): Set lr_save_eliminated.
2815
2816 2004-05-28 Richard Sandiford <rsandifo@redhat.com>
2817
2818 * config/mips/mips.md (extendsidi2): Tie the source and destination
2819 of the register alternative. Split it into nothing.
2820
2821 2004-05-28 Richard Sandiford <rsandifo@redhat.com>
2822
2823 * rtl.h (skip_consecutive_labels): Declare.
2824 * emit-rtl.c (skip_consecutive_labels): New function.
2825 * reorg.c (relax_delay_slots, dbr_schedule): Use it.
2826 * jump.c (follow_jumps): Say what null return values mean.
2827
2828 2004-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
2829
2830 PR target/13250
2831 * config/sh/sh.md (rotlsi3): Use emit_move_insn.
2832
2833 2004-05-27 Kaz Kojima <kkojima@gcc.gnu.org>
2834
2835 * config/sh/t-linux (SHLIB_MAPFILES): Use sh specific
2836 libgcc-std.ver.
2837 * config/sh/libgcc-std.ver: New file.
2838
2839 2004-05-27 Bryce McKinlay <mckinlay@redhat.com>
2840
2841 * except.c: Revert change of 2004-05-26.
2842 * config/i386/i386.md: Revert change of 2004-05-27.
2843
2844 2004-05-27 Bryce McKinlay <mckinlay@redhat.com>
2845
2846 * configure.ac: Remove --enable-tree-browser option.
2847 Define TREEBROWSER when ac_tree_checking is defined.
2848 * configure: Rebuilt.
2849
2850 2004-05-27 Olivier Hainque <hainque@act-europe.fr>
2851
2852 * expr.c (store_constructor): Restore sanity check on
2853 the size of the type before clearing.
2854
2855 2004-05-27 Jan Hubicka <jh@suse.cz>
2856
2857 * cfgbuild.c (control_flow_insn_p): Notice noreturn call
2858
2859 2004-05-27 Paolo Bonzini <bonzini@gnu.org>
2860
2861 * combine.c (gen_binary): Remove.
2862 (known_cond, simplify_shift_const
2863 find_split_point, combine_simplify_rtx,
2864 simplify_if_then_else, simplify_set,
2865 simplify_logical, expand_field_assignment,
2866 extract_left_shift, force_to_mode,
2867 if_then_else_cond, apply_distributive_law,
2868 simplify_and_const_int, simplify_shift_const,
2869 gen_lowpart_for_combine, simplify_comparison,
2870 reversed_comparison): Replace with
2871 simplify_gen_binary, simplify_gen_relational or
2872 distribute_and_simplify_rtx.
2873 (distribute_and_simplify_rtx): New function.
2874 * simplify-rtx.c (simplify_binary_operation):
2875 Use nonzero_bits to simplify ANDs where we are
2876 turning off bits already known to be off in OP0.
2877
2878 2004-05-27 Alan Modra <amodra@bigpond.net.au>
2879
2880 PR target/14478
2881 * config/rs6000/rs6000.c (reg_or_neg_short_operand): Don't allow zero.
2882
2883 2004-05-27 Josef Zlomek <zlomekj@suse.cz>
2884
2885 PR middle-end/14084
2886 * emit-rtl.c (gen_rtx_REG_offset): Adjust the offset according
2887 to size of decl.
2888
2889 2004-05-26 Aldy Hernandez <aldyh@redhat.com>
2890
2891 PR/14924
2892 * config/rs6000/rs6000.c (spe_expand_stv_builtin): New.
2893
2894 2004-05-26 Roger Sayle <roger@eyesopen.com>
2895
2896 * tree.h: Fix comment typo.
2897
2898 2004-05-27 Steven Bosscher <stevenb@suse.de>
2899
2900 * gimplify.c (compare_case_labels): New function.
2901 (gimplify_switch_expr): Sort case labels, and make sure the
2902 last label in the label vector is the default case.
2903 * tree-cfg.c (group_case_labels): New function.
2904 (build_tree_cfg): Cleanup redundant labels and group case labels
2905 before creating edges.
2906 (cleanup_dead_labels): Handle GOTO_EXPRs.
2907 (find_case_label_for_value): Use a binary search to find the
2908 case label for the given value.
2909 * tree-gimple.c: Mention that labels are sorted, and that the
2910 last label must be the default.
2911
2912 2004-05-27 Jan Hubicka <jh@suse.cz>
2913
2914 * cfgcleanup.c (try_optimize_cfg): Do not merge across jumptables.
2915
2916 2004-05-27 Jan Hubicka <jh@suse.cz>
2917
2918 * i386.md (UNSPECV_EH_RETURN): Kill.
2919 (eh_return): Use jump_insn.
2920 (eh_return_si, eh_return_di): Change pattern to jump instruction.
2921
2922 2004-05-26 Jan Hubicka <jh@suse.cz>
2923
2924 * cfgcleanup.c (try_forward_edges): Do not check loop structure when
2925 not loop optimizing.
2926
2927 2004-05-26 Jan Hubicka <jh@suse.cz>
2928
2929 * except.c (can_throw_internal): Notice RESX instructions.
2930
2931 2004-05-26 Eric Botcazou <ebotcazou@act-europe.fr>
2932
2933 * varasm.c (output_constant) <INTEGER_TYPE>: Pass the minimum
2934 of the two sizes to assemble_integer.
2935
2936 2004-05-25 Paul Brook <paul@codesourcery.com>
2937
2938 * config/arm/arm.c (thumb_exit, thumb_unexpanded_epilogue): Remove
2939 pointless #ifdef.
2940
2941 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
2942
2943 * Makefile.in (top_builddir): Define to .
2944
2945 2004-05-25 Alexandre Oliva <aoliva@redhat.com>
2946
2947 * configure.ac (gcc_cv_ld): Prefer in-tree ld over whatever the
2948 top-level detects, except when in-tree ld is being cross-built.
2949 (gcc_cv_as): Likewise for as. Use AS_FOR_TARGET otherwise, and
2950 then AS only if target is host.
2951 * configure: Rebuilt.
2952
2953 2004-05-25 Vladimir Makarov <vmakarov@redhat.com>
2954
2955 * global.c (global_alloc): Call make_accurate_live_analysis.
2956 (record_one_conflict): Remove dead code.
2957 (mark_reg_clobber): Remove ATTRIBUTE_UNUSED for parameter data.
2958 (bb_info): New structure.
2959 (BB_INFO, BB_INFO_BY_INDEX): New macros.
2960 (allocate_bb_info, free_bb_info, mark_reg_change,
2961 calculate_local_reg_bb_info, set_up_bb_rts_numbers, rpost_cmp,
2962 modify_bb_reg_pav, calculate_reg_pav,
2963 make_accurate_live_analysis): New functions.
2964
2965 2004-05-25 Devang Patel <dpatel@apple.com>
2966
2967 * alias.c (init_alias_analysis): Use ggc_calloc instead of
2968 xrealloc.
2969 (end_alias_analysis): Use ggc_free instead fo free.
2970
2971 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
2972
2973 PR target/15546
2974 * config/ia64/ia64.h (ASM_OUTPUT_FDESC): Mark the DECL
2975 as needed to be outputted.
2976
2977 2004-05-25 Jan Hubicka <jh@suse.cz>
2978
2979 * builtins.def (__builtin_expect): Mark the function as const&nothrow.
2980
2981 2004-05-25 Ayal Zaks <zaks@il.ibm.com>
2982 Mostafa Hagog <mustafa@il.ibm.com>
2983
2984 * Makefile.in (modulo-sched.o, ddg.o): New.
2985 * ddg.h, ddg.c, modulo-sched.c: New files.
2986 * cfglayout.c (duplicate_insn_chain): Remove "static" and push
2987 internals to "dupicate_insn".
2988 (duplicate_insn): New function.
2989 * cfglayout.h (duplicate_insn_chain, duplicate_insn): New
2990 declarations.
2991 * common.opt (fmodulo-sched): New flag.
2992 * df.c (df_bb_regno_last_use_find, df_bb_regno_first_def_find):
2993 Remove static and forward declaration.
2994 (df_find_def, df_reg_used, df_bb_regno_last_def_find): New
2995 functions.
2996 * df.h (df_bb_regno_last_use_find, df_bb_regno_first_def_find,
2997 df_bb_regno_last_def_find, df_find_def, df_reg_used): New
2998 declarations.
2999 * flags.h (flag_modulo_sched): New flag.
3000 * opts.c (common_handle_option): Handle modulo-sched flag.
3001 * params.def (max-sms-loop-number, sms-max-ii-factor,
3002 sms-dfa-history, sms-loop-average-count-threshold): New
3003 parameters.
3004 * params.h (MAX_SMS_LOOP_NUMBER, SMS_MAX_II_FACTOR,
3005 SMS_DFA_HISTORY, SMS_LOOP_AVERAGE_COUNT_THRESHOLD): New
3006 parameters.
3007 * passes.c ("sms", "sms-vcg"): New dumps.
3008 (rest_of_handle_sched): Call sms_schedule.
3009 * rtl.h (sms_schedule): New declaration.
3010 * timevar.def (TV_SMS): New.
3011 * toplev.c (flag_modulo_sched): Initialize.
3012 (f_options): Handle -fmodulo-sched option.
3013 * docs/invoke.texi: Document -fmodulo-sched & -dm options.
3014 * docs/passes.texi: Document new SMS pass.
3015
3016 2004-05-25 Paolo Bonzini <bonzini@gnu.org>
3017
3018 * Makefile.in (OBJS): Add rtlhooks.o.
3019 (rtlanal.o): Depend on function.h.
3020 (cse.o): Depend on rtlhooks-def.h.
3021 (combine.o): Depend on rtlhooks-def.h.
3022 (rtlhooks.o): New rule.
3023 * combine.c: Include rtlhooks-def.h.
3024 (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
3025 num_sign_bit_copies, cached_num_sign_bit_copies,
3026 num_sign_bit_copies1): Move most of the code to rtlanal.c.
3027 (reg_nonzero_bits_for_combine,
3028 reg_num_sign_bit_copies_for_combine): New functions holding
3029 the remnants of the above.
3030 (combine_rtl_hooks): New.
3031 (combine_instructions): Set rtl_hooks instead of gen_lowpart.
3032 * cse.c: Include rtlhooks-def.h.
3033 (cse_rtl_hooks): New.
3034 (cse_main): Set rtl_hooks instead of gen_lowpart.
3035 * emit-rtl.c (gen_lowpart): Remove.
3036 (gen_lowpart_general): Move to rtlhooks.c.
3037 * rtl.h (nonzero_bits, num_sign_bit_copies,
3038 struct rtl_hooks, rtl_hooks, general_rtl_hooks): New.
3039 (gen_lowpart_general): Remove.
3040 (gen_lowpart): Temporarily redefine as a macro.
3041 * rtlanal.c: Include function.h.
3042 (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
3043 num_sign_bit_copies, cached_num_sign_bit_copies,
3044 num_sign_bit_copies1): New, from combine.c.
3045 * rtlhooks.c: New file.
3046 * rtlhooks-def.h: New file.
3047
3048 2004-05-25 Svein E. Seldal <Svein.Seldal@solidas.com>
3049
3050 * config/avr/avr.h (LONG_LONG_TYPE_SIZE): Changed long long type
3051 to support 32-bit -mint8 mode.
3052
3053 * doc/invoke.texi (-mint8): Added documentation for the -mint8
3054 option in the AVR architecture.
3055
3056 2004-05-24 Mike Stump <mrs@apple.com>
3057
3058 * doc/install.texi: Document that dejagnu 1.4.4 is required.
3059
3060 2004-05-24 Joseph S. Myers <jsm@polyomino.org.uk>
3061
3062 * intl.h (open_quote, close_quote): New.
3063 * intl.c (open_quote, close_quote): New.
3064 (gcc_init_libintl): Set them.
3065 * pretty-print.c: Include "intl.h".
3066 (pp_base_format_text): Support 'q' format flag and %` and %'
3067 formats. Use ' instead of ` in comments.
3068 * c-format.c (gcc_diag_flag_specs, gcc_cxxdiag_flag_specs,
3069 gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table,
3070 foramt_types_orig): Describe these new formats.
3071 (decode_format_attr, check_function_format,
3072 check_format_info_main): Use these new formats.
3073 (status_warning): Use ATTRIBUTE_GCC_DIAG.
3074 * toplev.c (ATTRIBUTE_GCC_DIAG): Increase required GCC version to
3075 check these formats to 3.5.
3076
3077 2004-05-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3078
3079 * Makefile.in (CPPLIBS): Renamed to CPPLIB.
3080 (BACKEND): Reflect this.
3081 (LIBDEPS): Move CPPLIB before LIBIBERTY.
3082 (LIBS): Likewise.
3083
3084 2004-05-24 Ulrich Weigand <uweigand@de.ibm.com>
3085
3086 PR tree-optimization/14197
3087 * builtins.c: Include "tree-gimple.h"
3088 (readonly_data_expr): Use get_base_address. Make sure to call
3089 decl_readonly_section only on trees it can handle.
3090 * tree-gimple.c (get_base_address): Accept STRING_CST and
3091 CONSTRUCTOR expressions.
3092 * Makefile.in: Update dependencies.
3093
3094 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
3095
3096 Move libcpp to the toplevel.
3097 * Makefile.in: Remove references to libcpp files,
3098 use CPPLIBS instead of libcpp.a. Define SYMTAB_H
3099 and change hashtable.h to that.
3100 * aclocal.m4 (gcc_AC_HEADER_STDBOOL,
3101 gcc_AC_HEADER_STRING, gcc_AC_C__BOOL): Remove.
3102 * configure.ac (gcc_AC_C__BOOL, HAVE_UCHAR): Remove tests.
3103 * configure: Regenerate.
3104 * config.in: Regenerate.
3105 * c-ppoutput.c: Include ../libcpp/internal.h instead of cpphash.h.
3106 * cppcharset.c: Removed.
3107 * cpperror.c: Removed.
3108 * cppexp.c: Removed.
3109 * cppfiles.c: Removed.
3110 * cpphash.c: Removed.
3111 * cpphash.h: Removed.
3112 * cppinit.c: Removed.
3113 * cpplex.c: Removed.
3114 * cpplib.c: Removed.
3115 * cpplib.h: Removed.
3116 * cppmacro.c: Removed.
3117 * cpppch.c: Removed.
3118 * cpptrad.c: Removed.
3119 * cppucnid.h: Removed.
3120 * cppucnid.pl: Removed.
3121 * cppucnid.tab: Removed.
3122 * hashtable.c: Removed.
3123 * hashtable.h: Removed.
3124 * line-map.c: Removed.
3125 * line-map.h: Removed.
3126 * mkdeps.c: Removed.
3127 * mkdeps.h: Removed.
3128 * stringpool.h: Include symtab.h instead of hashtable.h.
3129 * tree.h: Include symtab.h instead of hashtable.h.
3130 * system.h (O_NONBLOCK, O_NOCTTY): Do not define.
3131
3132 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
3133
3134 * gcc.c (struct prefix_list): Add forward declaration.
3135 (do_spec_path): New function, extracted from...
3136 (do_spec_1) <'D'>: ... here. Drop support for
3137 SPACE_AFTER_L_OPTION.
3138 (do_spec_1) <'I'>: Use do_spec_path.
3139 (process_command): Do not store the 'include' suffix
3140 in include_prefixes.
3141 * system.h: Poison SPACE_AFTER_L_OPTION.
3142
3143 2002-05-23 Roger Sayle <roger@eyesopen.com>
3144
3145 * fold-const.c (non_lvalue): Explicitly list the tree codes that
3146 need to be wrapped by NON_LVALUE_EXPR, instead of those that don't.
3147
3148 2004-05-23 Joseph S. Myers <jsm@polyomino.org.uk>
3149
3150 * doc/gcc.texi, doc/gccint.texi, doc/include/gcc-common.texi:
3151 Update based on printed manual. Enable setting of offsets for
3152 FSFPRINT and move it to gcc-common.texi.
3153 * doc/gcc.texi: Update FSF printing details.
3154 * doc/gccint.texi: Remove FSF printing details.
3155
3156 2004-05-23 Andrew Pinski <pinskia@physics.uc.edu>
3157
3158 * config/rs6000/t-rs6000: Remove the disabling -Werror.
3159
3160 2004-05-22 Roger Sayle <roger@eyesopen.com>
3161
3162 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
3163 expand_builtin_strrchr, expand_builtin_strpbrk,
3164 expand_builtin_mempcpy, expand_builtin_memcmp,
3165 expand_builtin_strcmp, expand_builtin_strncmp,
3166 expand_builtin_strcat, std_expand_builtin_va_start,
3167 std_expand_builtin_va_arg, expand_builtin_va_copy,
3168 expand_builtin_signbit, fold_builtin_cabs,
3169 fold_builtin_logarithm, fold_builtin_mempcpy,
3170 fold_builtin_signbit, fold_builtin_isascii,
3171 fold_builtin_toascii, fold_builtin_isdigit,
3172 fold_builtin_1, build_function_call_expr,
3173 simplify_builtin_strchr, simplify_builtin_strrchr,
3174 simplify_builtin_strpbrk, simplify_builtin_strncpy,
3175 simplify_builtin_memcmp, simplify_builtin_strcmp,
3176 simplify_builtin_strncmp, simplify_builtin_strncat,
3177 simplify_builtin_strspn, simplify_builtin_strcspn,
3178 simplify_builtin_fputs, simplify_builtin_sprintf): Replace calls
3179 to build with calls to build2, build3 or omit_one_operand.
3180
3181 2004-05-22 Richard Sandiford <rsandifo@redhat.com>
3182
3183 * config/mips/mips.c (mips_file_start): Emit a .gcc_compiled_longXX
3184 section when generating EABI code.
3185
3186 2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
3187
3188 PR 15546
3189 * config/i386/i386.c (output_pic_addr_const <case SYMBOL_REF>):
3190 Call mark_decl_referenced on the SYMBOL_REF_DECL.
3191
3192 2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
3193
3194 * c-common.c (c_common_truthvalue_conversion): Handle
3195 UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR,
3196 ORDERED_EXPR, and UNORDERED_EXPR as comparison operators,
3197 i.e. set the type to truthvalue_type_node and return.
3198
3199 2004-05-22 Zack Weinberg <zack@codesourcery.com>
3200
3201 * tree.h (struct tree_decl): Add possibly_inlined bit.
3202 (DECL_POSSIBLY_INLINED): New accessor macro.
3203 * cgraph.h: Remove declaration of cgraph_inline_hash.
3204 * cgraph.c: Remove definition of cgraph_inline_hash.
3205 (hash_node): Revert to hashing DECL_UID.
3206 (eq_node): Take two pointers to cgraph_node structures.
3207 Compare DECL_UIDs.
3208 (cgraph_remove_node): Pass the node directly to htab_find_slot.
3209 (cgraph_varpool_hash_node): Rename hash_varpool_node;
3210 hash on DECL_UID.
3211 (eq_cgraph_varpool_node): Rename eq_varpool_node; take two
3212 pointers to cgraph_varpool_node structures; compare DECL_UIDs.
3213 (cgraph_node): Allocate a temporary node on the stack, fill in
3214 its DECL field, and pass that to htab_find_slot.
3215 (cgraph_varpool_node): Likewise.
3216 (cgraph_function_possibly_inlined_p): If global info is ready,
3217 return the DECL_POSSIBLY_INLINED bit.
3218 * cgraphunit.c (cgraph_mark_inline_edge): Set DECL_POSSIBLY_INLINED
3219 instead of mucking with cgraph_inline_hash.
3220
3221 2004-05-22 Joseph S. Myers <jsm@polyomino.org.uk>
3222
3223 * doc/contrib.texi: Add g77 contributors.
3224
3225 2004-05-22 Richard Sandiford <rsandifo@redhat.com>
3226
3227 * calls.c (initialize_argument_information): Forbid sibcalls if a
3228 callee-copied argument is stored in the current function's frame.
3229
3230 2004-05-22 Eric Christopher <echristo@redhat.com>
3231
3232 * fix-header.c (read_scan_file): Update for add_path change.
3233
3234 2004-05-22 Ben Elliston <bje@au.ibm.com>
3235
3236 * c.opt (Wmissing-include-dirs): New.
3237 * c-opts.c (c_common_handle_option): Pass true for user_supplied_p
3238 to add_path () for -I, but false for OPT_idirafter, OPT_iquote and
3239 OPT_isystem. Handle case OPT_Wmissing_include_dirs.
3240 * c-incpath.h (add_path): Add fourth (bool) argument.
3241 * c-incpath.c (add_env_var_paths): Pass false to add_path ().
3242 (add_standard_paths): Likewise.
3243 (remove_duplicates) [REASON_NOENT]: Warn if -Wmissing-include-dirs
3244 is used and the directory was user-supplied via -I.
3245 (add_path): Set p->user_supplied_p. Remove duplicated code by
3246 using add_cpp_dir_path ().
3247 * cpplib.h (struct cpp_options): Add warn_missing_include_dirs.
3248 (struct cpp_dir): Add user_supplied_p.
3249 * doc/invoke.texi (Warning Options): Document new option.
3250
3251 2004-05-21 Ulrich Weigand <uweigand@de.ibm.com>
3252
3253 * fold-const.c (fold_read_from_constant_string): Convert result to
3254 requested type.
3255
3256 2004-05-21 Richard Henderson <rth@redhat.com>
3257
3258 * gimplify.c (mostly_copy_tree_r): Don't attempt to copy decls.
3259 (copy_if_shared_r): Don't copy decls, types, constants, BINDs.
3260 Don't mark VA_ARG_EXPRs volatile here.
3261 (gimplify_modify_expr): Unshare TYPE_SIZE_UNIT.
3262
3263 2004-05-21 Richard Henderson <rth@redhat.com>
3264
3265 * Makefile.in (tree-dump.o): Depend on tree-iterator.h.
3266 * tree-dump.c (dequeue_and_dump): Dump STATEMENT_LISTs.
3267
3268 2004-05-21 Roger Sayle <roger@eyesopen.com>
3269
3270 * fold-const.c (fold, fold_relational_hi_lo,
3271 nondestructive_fold_binary_to_constant,
3272 fold_read_from_constant_string): Use fold_convert instead of convert.
3273 * builtins.c (simplify_builtin, simplify_builtin_strstr,
3274 simplify_builtin_strchr, simplify_builtin_strrchr,
3275 simplify_builtin_strpbrk): Use fold_convert instead of convert.
3276
3277 2004-05-21 Diego Novillo <dnovillo@redhat.com>
3278
3279 * tree-flow-inline.h (num_immediate_uses): Don't abort if DF
3280 is NULL.
3281
3282 2004-05-21 Jakub Jelinek <jakub@redhat.com>
3283
3284 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): If SPARC_BI_ARCH,
3285 override sparc.h definition.
3286
3287 2004-05-20 Roger Sayle <roger@eyesopen.com>
3288
3289 * tree.c (array_type_nelts, save_expr, substitute_in_expr,
3290 get_unwidened, get_narrower): Replace build with build2.
3291 * fold-const.c (negate_expr, associate_trees, size_binop,
3292 fold_convert, eval_subst, omit_one_operand, invert_truthvalue,
3293 pedantic_omit_one_operand, distribute_bit_expr,
3294 make_bit_field_ref, optimize_bit_field_compare,
3295 decode_field_reference, range_binop, make_range,
3296 build_range_check, fold_range_test, fold_truthop,
3297 optimize_minmax_comparison, extract_muldiv_1,
3298 fold_binary_op_with_conditional_arg, fold_mathfn_compare,
3299 fold_inf_compare, fold_single_bit_test, fold,
3300 fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
3301 Likewise replace build with either build2 or build3.
3302
3303 2004-05-20 Ian Lance Taylor <ian@wasabisystems.com>
3304
3305 * system.h: Poison NO_RECURSIVE_FUNCTION_CSE.
3306 * calls.c (prepare_call_address): Don't test
3307 NO_RECURSIVE_FUNCTION_CSE.
3308 * config/arc/arc.h (NO_RECURSIVE_FUNCTION_CSE): Don't define.
3309 * config/arm/arm.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3310 * config/avr/avr.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3311 * config/frv/frv.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3312 * config/i386/i386.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3313 * config/ip2k/ip2k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3314 * config/iq2000/iq2000.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3315 * config/m32r/m32r.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3316 * config/m68k/m68k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3317 * config/mcore/mcore.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3318 * config/mips/mips.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3319 * config/stormy16/stormy16.h (NO_RECURSIVE_FUNCTION_CSE):
3320 Likewise.
3321 * config/xtensa/xtensa.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3322 * config/sh/sh.h: Remove NO_RECURSIVE_FUNCTION_CSE comment.
3323 * doc/tm.texi (Costs): Remove documentation for
3324 NO_RECURSIVE_FUNCTION_CSE.
3325
3326 2004-05-20 Paul Brook <paul@codesourcery.com>
3327
3328 * unwind-dw2-fde.c (get_cie_encoding): Handle dwarf3 CIE format.
3329 * unwind-dw2.c (extract_cie_info): Ditto.
3330 (_Unwind_FrameState): Change retaddr_column to word type.
3331
3332 2004-05-20 Roger Sayle <roger@eyesopen.com>
3333
3334 PR middle-end/3074
3335 * fold-const.c (strip_compound_expr): Delete function.
3336 (count_cond): Delete function.
3337 (fold_binary_op_with_conditional_arg): Only perform transformations
3338 "a + (b?c:d) -> b ? a+c : a+d" and "(b?c:d) + a -> b ? c+a : d+a"
3339 when a is constant. This greatly simplifies this routine.
3340
3341 * tree.c (saved_expr_p): Delete function.
3342 * tree.h (saved_expr_p): Delete function prototype.
3343
3344 2004-05-20 Andrew Pinski <pinskia@physics.uc.edu>
3345
3346 * common.opt (ftree-loop-optimize): Remove.
3347
3348 2004-05-20 Daniel Jacobowitz <dan@debian.org>
3349
3350 * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET)
3351 (NM_FOR_TARGET): Use := and $(shell).
3352 (mainversion): Remove unused variable.
3353
3354 2004-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3355
3356 * reorg.c (delete_from_delay_slot): If we have a barrier after the
3357 sequence containing the insn to be deleted, always reemit it.
3358
3359 2004-05-20 Richard Henderson <rth@redhat.com>
3360
3361 PR 15454
3362 * tree-nested.c (get_chain_decl): Create a PARM_DECL by hand.
3363 * function.c (expand_function_start): Expand static_chain_decl by hand.
3364 * gimplify.c (create_tmp_var_name): Export.
3365 * tree-gimple.h (create_tmp_var_name): Declare.
3366
3367 2004-05-20 Andrew Pinski <pinskia@physics.uc.edu>
3368
3369 * rs6000.c (print_operand) <case 'z'>: Call
3370 mark_decl_referenced before assemble_name.
3371
3372 2004-05-20 Zack Weinberg <zack@codesourcery.com>
3373
3374 * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
3375 (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
3376 (cgraph_varpool_node): Hash on the pointer to the decl, not
3377 the DECL_UID. Fixes 64-bit bootstrap failure.
3378
3379 2004-05-20 Richard Earnshaw <rearnsha@arm.com>
3380
3381 * arm.md (ite_ne_zeroextractsi, ite_ne_zeroextractsi_shifted): Ensure
3382 we don't earlyclobber operands used in the second insn.
3383
3384 2004-05-20 Steven Bosscher <stevenb@suse.de>
3385
3386 * tree-mudflap.c: Formatting fixes.
3387
3388 2004-05-20 J"orn Rennecke <joern.rennecke@superh.com>
3389
3390 * Makefile.in (GTFILES): Add $(srcdir)/reload.h.
3391 * gengtype.c (open_base_files): Include reload.h in ifiles.
3392 * reload.h (reg_equiv_memory_loc_varray): Declare.
3393 * reload1.c (reg_equiv_memory_loc_varray): New variable.
3394 (init_reload): Initialize it.
3395 (reload): Instead of freeing reg_equiv_memory_loc, 'grow'
3396 reg_equiv_memory_loc_varray to size 0.
3397 * ra.c (reg_alloc): Allocate reg_equiv_memory_loc by
3398 growing reg_equiv_memory_loc_varray to the desired size.
3399 * passes.c (rest_of_handle_old_regalloc): Likewise.
3400 * reload.c: Amend comment on calling init_reload.
3401
3402 2004-05-20 Nick Clifton <nickc@redhat.com>
3403
3404 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Replace 'tramp'
3405 with 'TRAMP' in the body of the macro definition.
3406
3407 2004-05-19 H.J. Lu <hongjiu.lu@intel.com>
3408
3409 PR target/15383
3410 * config/ia64/ia64.c (ia64_expand_compare): Don't check
3411 TARGET_HPUX for TFmode compare. Abort if op0 is in TFmode and
3412 cmptf_libfunc isn't set.
3413 (ia64_init_libfuncs): Rename TFmode libfuncs using the HPUX
3414 conventions.
3415 (ia64_sysv4_init_libfuncs): New.
3416
3417 * config/ia64/sysv4.h (TARGET_INIT_LIBFUNCS): New. Defined as
3418 ia64_sysv4_init_libfuncs.
3419
3420 2004-05-20 Falk Hueffner <falk@debian.org>
3421
3422 PR other/15526
3423 * libgcc2.c (__mulvsi3): Fix overflow test.
3424
3425 2004-05-19 Andrew Pinski <pinskia@physics.uc.edu>
3426
3427 PR c/14171
3428 * reg-stack.c (nan): Rename to ...
3429 (not_a_num): Here.
3430 (reg_to_stack): Rename nan to not_a_num.
3431 (subst_stack_regs_pat): Likewise.
3432 (convert_regs_entry): Likewise.
3433 (convert_regs_1): Likewise.
3434
3435 * tree-cfg.c (find_case_label_for_value): Replace call to
3436 simple_cst_equal with tree_int_cst_equal.
3437
3438 2004-05-19 Jeff Law <law@redhat.com>
3439
3440 * tree-into-ssa.c (prepare_operand_for_rename): New argument is_use.
3441 If the operand is for a use, then strip away the SSA_NAME, do not
3442 strip away the SSA_NAME for a set. Never call release_ssa_name.
3443 (mark_def_sites): Appropriately pass additional argument to
3444 prepare_operand_for_rename. If a VDEF_RESULT is not an SSA_NAME,
3445 then set the VDEF_RESULT to the VDEF_OP.
3446 (set_def_block): Strip away any SSA_NAME to get to the real
3447 underlying variable.
3448
3449 * tree-ssa-phiopt.c (value_replacement): Handle the case where
3450 the desired edge out of COND_BLOCK reaches OTHER_BLOCK rather than
3451 BB directly.
3452
3453 2004-05-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3454
3455 PR c++/15463
3456 * loop-iv.c (iv_number_of_iterations): Use trunc_int_for_mode on
3457 result of inverse.
3458
3459 PR rtl-optimization/15274
3460 * loop-iv.c (determine_max_iter, shorten_into_mode,
3461 iv_number_of_iterations): Handle constants correctly.
3462 * rtl.h (get_mode_bounds): Declaration changed.
3463 * stor-layout.c (get_mode_bounds): Return a constant suitable for
3464 the target mode.
3465
3466 PR rtl-optimization/14692
3467 * loop-unswitch.c (may_unswitch_on): Try folding the result.
3468 (unswitch_single_loop): Work correctly when may_unswitch_on
3469 returns a folded constant.
3470
3471 * loop-iv.c (implies_p): Handle A < B ==> A + 1 <= B.
3472 * simplify-rtx.c (simplify_const_relational_operation): Optimize
3473 comparisons with mode bounds.
3474
3475 * function.c (struct temp_slot): Add new field prev.
3476 (free_after_compilation, init_temp_slots): Free new fields.
3477 (cut_slot_from_list, insert_slot_to_list,
3478 temp_slots_at_level, max_slot_level, move_slot_to_level,
3479 make_slot_available): New functions.
3480 (assign_stack_temp_for_type, combine_temp_slots,
3481 find_temp_slot_from_address, preserve_temp_slots,
3482 preserve_rtl_expr_result, free_temp_slots,
3483 free_temps_for_rtl_expr, pop_temp_slots): Work with
3484 the new structure of lists.
3485 (mark_all_temps_used): Removed.
3486 * function.h (struct function): Field x_temp_slots
3487 replaced by x_used_temp_slots and x_avail_temp_slots.
3488 (temp_slots): Replaced by ...
3489 (used_temp_slots, avail_temp_slots): New.
3490 * tree.h (mark_all_temps_used): Declaration removed.
3491
3492 * loop-iv.c (mark_single_set, get_biv_step_1, iv_analyze,
3493 simplify_using_assignment): Take the expression out of
3494 the expr_list wrapper.
3495
3496 * loop-iv.c (iv_number_of_iterations): Improve clasification of
3497 infinite loops.
3498
3499 2004-05-19 Roger Sayle <roger@eyesopen.com>
3500
3501 * doc/tm.texi (TARGET_RTX_COSTS): Document that instruction
3502 costs should be based on code size when optimizing for size.
3503
3504 2004-05-19 Paolo Bonzini <bonzini@gnu.org>
3505
3506 * fold-const.c: Remove non-printable character 160.
3507
3508 2004-05-19 Nick Clifton <nickc@redhat.com>
3509
3510 * doc/invoke.texi (ARM Options): Fix typo.
3511 Remove descrption of -mshort-load-bytes and
3512 -mno-short-load-bytes.
3513
3514 * config/ip2k/ip2k.c (ip2k_composite_xexp_not_uses_reg_p): Add
3515 missing parenthesis.
3516 * config/ip2k/ip2k.c (ip2k_unary_operator): Likewise.
3517 * config/ip2k/ip2k.c (ip2k_binary_operator): Likewise.
3518
3519 2004-05-19 Steven Bosscher <stevenb@suse.de>
3520
3521 * expr.c (store_constructor): Build loop start and end by hand
3522 instead of via loop functions from stmt.c.
3523 (expand_expr_real_1): Abort if we see an EXIT_EXPR or a LOOP_EXPR.
3524 Remove the code to expand them.
3525
3526 * stmt.c (loop_stack): Remove this and everything related.
3527 (struct nesting, enum nesting_desc): Update.
3528 (expand_fixup): Likewise.
3529 (expand_loop_start, expand_start_loop_continue_elsewhere,
3530 expand_start_null_loop, expand_loop_continue_here, expand_end_loop,
3531 expand_end_null_loop, expand_continue_loop, expand_exit_loop,
3532 expand_exit_loop_if_false, expand_exit_loop_top_cond,
3533 expand_exit_something): Remove.
3534 * tree.h: Remove prototypes.
3535
3536 2004-05-18 Mike Stump <mrs@apple.com>
3537 Devang Patel <dpatel@apple.com>
3538
3539 * doc/tm.texi (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument to indicate
3540 if this label is for eh.
3541 * config/darwin-protos.h (darwin_emit_unwind_label): Likewise.
3542 * config/darwin.c (darwin_emit_unwind_label): Likewise.
3543 * dwarf2out.c (output_call_frame_info): Likewise.
3544 * output.h (default_emit_unwind_label): Likewise.
3545 * target.h (unwind_label): Likewise.
3546 * varasm.c (default_emit_unwind_label): Likewise.
3547
3548 * config/darwin.h (DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
3549 DEBUG_FRAME_SECTION, DEBUG_INFO_SECTION, DEBUG_ABBREV_SECTION,
3550 DEBUG_ARANGES_SECTION, DEBUG_MACINFO_SECTION, DEBUG_LINE_SECTION,
3551 DEBUG_LOC_SECTION, DEBUG_PUBNAMES_SECTION, DEBUG_STR_SECTION,
3552 DEBUG_RANGES_SECTION): Define.
3553
3554 2004-05-18 Zack Weinberg <zack@codesourcery.com>
3555
3556 * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
3557 (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
3558 (cgraph_varpool_node):
3559 Use DECL_UID for the key, not DECL_ASSEMBLER_NAME.
3560 (cgraph_function_possibly_inlined_p): Use the decl itself for
3561 the key, not DECL_ASSEMBLER_NAME.
3562 (change_decl_assembler_name): No need to muck with the hash tables.
3563 (cgraph_node_for_identifier, cgraph_varpool_node_for_identifier):
3564 Delete.
3565 * cgraphunit.c (cgraph_mark_inline_edge): Use the decl itself
3566 for the key, not DECL_ASSEMBLER_NAME.
3567 * cgraph.h: Remove prototypes of deleted functions.
3568 * varasm.c (mark_referenced): Just set TREE_SYMBOL_REFERENCED.
3569 (mark_decl_referenced): New function.
3570 * tree.h: Prototype mark_decl_referenced.
3571 * final.c (output_addr_const) <case SYMBOL_REF>: Call
3572 mark_decl_referenced before assemble_name.
3573 * c-decl.c (finish_decl): Use mark_decl_referenced.
3574
3575 2004-05-18 Andrew Pinski <pinskia@physics.uc.edu>
3576 Jeff Law <law@redhat.com>
3577
3578 * tree-ssa-phiopt.c (abs_replacement): New function.
3579 (empty_block_p): New function extracted from...
3580 (candidate_bb_for_phi_optimization): Break out empty block test.
3581 (conditional_replacement): Use empty_block_p.
3582 (value_replacement): Similarly.
3583
3584 * Makefile.in (tree-ssa-phiopt.o): Depends on flags.h.
3585 * tree-ssa-phiopt.c: Include flags.h.
3586 (conditional_replacement): Remove argument names from prototype.
3587 Minor formatting and comment fixes.
3588 (tree_ssa_phiopt): If conditional_replacement returns false, then
3589 call value_replacement.
3590 (value_replacement): New function.
3591
3592 2004-05-18 Jeff Law <law@redhat.com>
3593
3594 * tree-ssa-phiopt.c (replace_phi_with_stmt): New function extracted
3595 from conditional_replacement.
3596 (candidate_bb_for_phi_optimization): Similarly.
3597 (conditional_replacement): Use replace_phi_with_stmt and
3598 candidate_bb_for_phi_optimization.
3599
3600 * tree-ssa-phiopt.c: Fix various formatting issues.
3601
3602 2004-05-18 Steven Bosscher <stevenb@suse.de>
3603
3604 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
3605 s390_expand_cmpmem): Do not use expand_start_loop and
3606 expand_end_loop, instead build the loop manually.
3607
3608 2004-05-18 Alan Modra <amodra@bigpond.net.au>
3609
3610 * config/rs6000/rs6000.md (ctrsi_internal3): Delete.
3611 (ctrsi_internal4, ctrdi_internal3, ctrdi_internal4): Delete.
3612
3613 2004-05-17 Jeff Law <law@redhat.com>
3614
3615 * toplev.h (flag_delete_null_pointer_checks): Move from here to...
3616 * flags.h (flag_delete_null_pointer_checks): Here.
3617 * tree-flow.h (cprop_into_successor_phis): Add argument to prototype.
3618 * tree-phinodes.c (resize_phi_node): Initialize PHI_ARG_NONZERO.
3619 (add_phi_arg, remove_phi_arg_num): Similarly.
3620 * tree-ssa-copy.c (cprop_into_successor_phis): Propagate nonzero
3621 property into PHI nodes.
3622 * tree-ssa-dom.c: Remove redundant inclusion of flags.h.
3623 (record_equivalences_from_phis): If all PHI arguments are known to be
3624 nonzero, then the result must be nonzero as well.
3625 (cprop_into_phis): Pass nonzero_vars bitmap to cprop_into_successor_phis.
3626 (record_equivalences_from_stmt): Check flag_delete_null_pointer_checks
3627 appropriately. Walk the USE-DEF chains and propagate nonzero property
3628 as appropriate.
3629 * tree.h (PHI_ARG_NONZERO): Define.
3630 (phi_arg_d): Add nonzero flag.
3631
3632 2004-05-17 Zack Weinberg <zack@codesourcery.com>
3633
3634 * f: Entire directory removed
3635
3636 * c-common.h (CTI_G77_INTEGER_TYPE, CTI_G77_UINTEGER_TYPE)
3637 (CTI_G77_LONGINT_TYPE, CTI_G77_ULONGINT_TYPE)
3638 (g77_integer_type_node, g77_uinteger_type_node)
3639 (g77_longint_type_node, or g77_ulongint_type_node): Delete.
3640 * c-common.c (c_common_nodes_and_builtins): Do not initialize
3641 the above set of variables.
3642
3643 * config/i386/uwin.h: No need to define WIN32_UWIN_TARGET.
3644 * doc/invoke.texi, doc/standards.texi: Remove cross-references
3645 to g77 manual.
3646
3647 2004-05-17 Steven Bosscher <stevenb@suse.de>
3648
3649 PR tree-optimization/15438
3650 * tree-ssa-operands.c (get_expr_operands): Do not treat malloc
3651 attributed functions as pure or const.
3652
3653 2004-05-17 Frank Ch. Eigler <fche@redhat.com>
3654
3655 * tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting
3656 from source code with errors.
3657
3658 2004-05-17 Ranjit Mathew <rmathew@hotmail.com>
3659
3660 Enable tree browser for all front ends.
3661 * Makefile.in (cc1): Moved @TREEBROWSER@ from here...
3662 (BACKEND): ...to here.
3663
3664 2004-05-17 Jan Hubicka <jh@suse.cz>
3665
3666 * i386.c (construct_container): Do not produce BLKmode registers.
3667 (classify_argument): Properly compute alignment of complex types.
3668
3669 2004-05-17 H.J. Lu <hongjiu.lu@intel.com>
3670
3671 PR target/15084
3672 * config/i386/i386.md (*movsi_insv_1_rex64): Changed to DImode
3673 and renamed to movdi_insv_1_rex64.
3674 (insv): Support SImode for 32bit and DImode for 64bit.
3675
3676 2004-05-17 Richard Sandiford <rsandifo@redhat.com>
3677
3678 * config/mips/mips.h (MASK_DEBUG_G, TARGET_DEBUG_G_MODE): Delete.
3679 (TARGET_SWITCHES): Remove debugg.
3680 * config/mips/mips.md (adddi3, ashldi3, ashrdi3, lshrdi3): Only handle
3681 TARGET_64BIT.
3682 (subdi3): Replace the define_expand with a define_insn, the latter
3683 renamed from subdi3_internal_3.
3684 (negdi2): Likewise negdi2_internal_2.
3685 (adddi3_internal_[12], subdi3_internal, ashldi3_internal{,2,3})
3686 (ashrdi3_internal{,2,3}, lshrdi3_internal{,2,3}): Remove patterns
3687 and associated define_splits.
3688 (adddi3_internal): Renamed from adddi3_internal_3.
3689 (ashldi3_internal): Likewise ashldi3_internal4.
3690 (ashrdi3_internal): Likewise ashrdi3_internal4.
3691 (lshrdi3_internal): Likewise lshrdi3_internal4.
3692
3693 2004-05-17 Richard Sandiford <rsandifo@redhat.com>
3694
3695 * optabs.c (expand_unop): Try implementing negation using subtraction
3696 from zero.
3697
3698 2004-05-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3699
3700 * pa.md: Fix typo from last change. Remove DFmode move to and from
3701 SAR register.
3702
3703 2004-05-16 Richard Earnshaw <rearnsha@arm.com>
3704
3705 PR target/10982
3706 * arm.md (ne_zeroextractsi): Convert to insn-and-split.
3707 (ne_zeroextractsi_shifted): New pattern.
3708 (ite_ne_zeroextractsi): New pattern.
3709 (ite_ne_zeroextractsi_shifted): New pattern.
3710
3711 2004-05-15 Steven Bosscher <stevenb@suse.de>
3712
3713 * c-gimplify.c (c_genericize):
3714 Replace calls via (*lang_hooks.foo) with lang_hooks.foo.
3715 * c-parse.in <expr_no_commas>: Likewise.
3716 <if_prefix>: Likewise.
3717 <select_or_iter_stmt>: Likewise.
3718 * expr.c (expand_var, expand_expr_real_1): Likewise.
3719 * expr.h (expand_expr): Make it a static inline function.
3720 Move prototype for expand_expr_real up before this.
3721 * fold-const.c (fold_relational_hi_lo, fold_relational_const):
3722 Likewise.
3723 * gimplify.c (gimple_boolify, gimplify_addr_expr,
3724 gimplify_asm_expr, gimplify_expr): Likewise.
3725 * tree-cfg.c (dump_tree_cfg, dump_cfg_stats, tree_cfg2vcg,
3726 dump_function_to_file): Likewise.
3727 * tree-dfa.c (dump_immediate_uses, dump_dfa_stats): Likewise.
3728 * tree-inline.c (remap_block, save_body, walk_tree): Likewise.
3729 * tree-into-ssa.c (dump_tree_ssa): Likewise.
3730 * tree-mudflap.c (mf_varname_tree, mf_file_function_line_tree):
3731 Likewise.
3732 * tree-optimize.c (execute_one_pass): Likewise.
3733 * tree-pretty-print.c (dump_generic_bb_buff): Likewise.
3734 * tree-ssa-alias.c (dump_alias_stats, dump_alias_info): Likewise.
3735
3736 * objc/objc-act.c (objc_build_try_enter_fragment,
3737 objc_build_try_epilogue, objc_build_catch_stmt,
3738 objc_build_finally_prologue): Replace calls via (*lang_hooks.foo)
3739 with lang_hooks.foo ().
3740
3741 2004-05-15 Roger Sayle <roger@eyesopen.com>
3742
3743 * builtins.c (simplify_builtin_strcpy): Avoid use of chainon, so
3744 that simplify_builtin doesn't destructively modify its argument.
3745
3746 2004-05-15 Richard Earnshaw <reanrsha@arm.com>
3747
3748 * arm/lib1funcs.asm (_lshrdi3, _ashrdi3, _ashldi3): Add ASM
3749 implementations for ARM and Thumb.
3750 * arm/t-arm-elf (LIB1ASMFUNCS): Use them.
3751
3752 2004-05-15 Thomas Quinot <quinot@act-europe.fr>
3753
3754 * prefix.c (update_path): Replace PREFIX with KEY only
3755 when it matches a full directory name in PATH.
3756
3757 2004-05-15 Richard Earnshaw <reanrsha@arm.com>
3758
3759 * arm.h (TARGET_APCS_32): Delete.
3760 (TARGET_MMU_TRAPS): Delete.
3761 (TARGET_CPU_CPP_BUILTINS): Unconditionally define __APCS_32__. Never
3762 define __APCS_26__.
3763 (CPP_SPEC): Remove checking of -mapcs-{26,32}.
3764 (ARM_FLAG_APCS_32, ARM_FLAG_MMU_TRAPS): Delete.
3765 (TARGET_SWITCHES): Remove alignment_traps and apcs-{26,32} switches.
3766 (prog_mode_type): Delete.
3767 (PROMOTE_MODE): Always promote unsigned for HImode.
3768 (SECONDARY_INPUT_RELOAD_CLASS): Simplify.
3769 (MASK_RETURN_ADDR): Simplify.
3770 * arm.c (arm_prgmode): Delete.
3771 (arm_override_options, arm_gen_rotated_half_load): Simplify.
3772 (print_multi_reg, output_return_instruction): Simplify.
3773 (arm_output_epilogue, arm_final_prescan_insn): Simplify.
3774 (arm_return_addr): Simplify.
3775 * arm.md (prog_mode): Delete.
3776 (conds): Simplify.
3777 (zero_extendhisi2, extendhisi2, movhi, movhi_bytes): Simplify.
3778 (rotated_loadsi, movhi_insn_littleend, movhi_insn_bigend): Delete.
3779 (loadhi_si_bigend, loadhi_preinc, loadhi_shiftpreinc): Delete.
3780 (loadhi_shiftpredec): Delete.
3781 (peephole for post-increment on HImode load): Delete.
3782 * arm/crtn.asm: (FUNC_END): Simplify.
3783 * arm/lib1funcs.asm: Remove APCS-26 return macros.
3784 * arm/aof.h, arm/coff.h arm/elf.h arm/linux-elf.h arm/netbsd-elf.h
3785 * arm/netbsd.h arm/pe.h arm/semi.h arm/semiaof.h arm/unknown-elf.h
3786 * arm/vxworks.h arm/wince-pe.h: Tidy TARGET_DEFAULTS and
3787 MULTILIB_DEFAULTS as required.
3788 * arm/t-arm-elf arm/t-linux arm/t-pe arm/t-semi arm/t-wince-pe
3789 * arm/t-xscale-coff arm/t-xscale-elf arm/uclinux-elf: Tidy MULTILIB
3790 variables as required.
3791 * doc/invoke.texi (ARM Options): Remove obsolete flags.
3792
3793 2004-05-15 Alan Modra <amodra@bigpond.net.au>
3794
3795 * config/rs6000/rs6000.c (rs6000_va_arg <ABI_V4>): Don't use
3796 UNITS_PER_WORD to calculate gpr size. Re-instate code to set reg
3797 count to 8 to handle n_reg > 2.
3798
3799 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
3800
3801 * doc/extend.texi: Update WG14 URL.
3802
3803 2004-05-15 Steven Bosscher <stevenb@suse.de>
3804
3805 * basic-block.h (life_analysis, delete_noop_moves):
3806 Update prototypes.
3807 * bt-load.c (branch_target_load_optimize): Don't take the
3808 insns stream as an argument. Update the life_analysis calls.
3809 * combine.c (combine_instructions): Update delete_noop_moves
3810 calls.
3811 * flow.c (notice_stack_pointer_modification): Don't take the
3812 insns stream as an argument. Work on the flow graph.
3813 (life_analysis): Likewise.
3814 (delete_noop_moves): Likewise.
3815 * passes.c (rest_of_handle_stack_regs): Update reg_to_stack call.
3816 (rest_of_handle_life): Update life_analysis call.
3817 (rest_of_compilation): Likewise, and also update
3818 branch_target_load_optimize call.
3819 * ra.c (reg_alloc): Update life_analysis call.
3820 * reg-stack.c (reg_to_stack): Likewise. Also, don't take
3821 the insns stream as an argument.
3822 * regrename.c (copyprop_hardreg_forward): Update delete_noop_moves
3823 call.
3824 * rtl.c (branch_target_load_optimize, reg_to_stack): Update
3825 prototypes.
3826 * value-profile.c (branch_prob): Update life_analysis call.
3827 * web.c (web_main): Work on the CFG, not on the insns stream.
3828
3829 * config/ip2k/ip2k.c (ip2k_reorg): Update life_analysis calls.
3830 * config/m68hc11/m68hc11.c (m68hc11_reorg): Likewise.
3831 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
3832
3833 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
3834
3835 PR c/15444
3836 * c-format.c (avoid_dollar_number): New function.
3837 (check_format_info_main): Call avoid_dollar_number when operand
3838 numbers might occur but has_operand_number == 0.
3839
3840 2004-05-14 Richard Earnshaw <rearnsha@arm.com>
3841
3842 * arm.md (all peephole2 patterns): Use predicates that validate
3843 register classes as appropriate.
3844
3845 2004-05-14 Steven Bosscher <stevenb@suse.de>
3846
3847 PR opt/14472
3848 * tree-tailcall.c (process_assignment): Use STRIP_NOPS to
3849 ignore type conversions that do not inhibit tail calling.
3850 (find_tail_calls): Likewise.
3851
3852 2004-05-14 Jeff Law <law@redhat.com>
3853
3854 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't even
3855 bother marking bypassed virtuals for out-of-ssa. Instead merge
3856 bypassed virtuals into vars_to_rename just before into-ssa pass.
3857
3858 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Reorganize
3859 so that it picks up more opportunities to eliminate ABS expressions
3860 or turn them into negations.
3861
3862 2004-05-14 Steven Bosscher <stevenb@suse.de>
3863
3864 * passes.c (rest_of_handle_null_pointer): Remove.
3865 (rest_of_handle_cse): Don't call rest_of_handle_null_pointer.
3866 (rest_of_compilation): Likewise.
3867 * rtl.h (delete_null_pointer_checks): Remove prototype.
3868 * gcse.c (rd_kill, rd_gen, reaching_defs, rd_out, ae_in, ae_out):
3869 Remove declarations.
3870 (get_bitmap_width, alloc_rd_mem, free_rd_mem, handle_rd_kill_set,
3871 compute_kill_rd, compute_rd, alloc_avail_expr_mem,
3872 free_avail_expr_mem, compute_ae_gen, expr_killed_p, compute_ae_kill,
3873 expr_reaches_here_p, computing_insn, def_reaches_here_p,
3874 can_disregard_other_sets, handle_avail_expr, classic_gcse,
3875 one_classic_gcse_pass, invalidate_nonnull_info,
3876 delete_null_pointer_checks_1, delete_null_pointer_checks,
3877 expr_reached_here_p_work): Remove.
3878 (gcse_main): Do not perform classic GCSE when optimizing for size.
3879 (alloc_pre_mem, free_pre_mem): Don't touch ae_in and ae_out, they
3880 are never used.
3881
3882 2004-05-14 Andrew Pinski <pinskia@physics.uc.edu>
3883
3884 PR optimization/14466
3885 * tree-complex.c (make_temp): Remove.
3886 (gimplify_val): Replace make_temp with make_rename_temp
3887 and add NULL as the second argument.
3888 (expand_complex_div_wide): Likewise.
3889 * tree-dfa.c (make_rename_temp): New function.
3890 * tree-flow.h (make_rename_temp): Declare.
3891 * tree-sra.c (make_temp): Remove.
3892 (lookup_scalar): Replace make_temp with make_rename_temp.
3893 (create_scalar_copies): Likewise.
3894 * tree-ssa-phiopt.c (conditional_replacement): When we
3895 get non gimple create a temporary variable to hold the
3896 casted expression.
3897
3898 2004-05-14 Paul Brook <paul@codesourcery.com>
3899
3900 * stor-layout.c (update_alignment_for_field): Use
3901 targetm.align_anon_bitfield.
3902 * target-def.h (TARGET_ALIGN_ANON_BITFIELD): Define.
3903 (TARGET_INITIALIZER): Use it.
3904 * target.h (struct gcc_target): Add align_anon_bitfield.
3905 * config/arm/arm.c (arm_align_anon_bitfield): New function.
3906 (TARGET_ALIGN_ANON_BITFIELD): Define.
3907 * doc/tm.texi: Document TARGET_ALIGN_ANON_BITFIELD.
3908
3909 2004-05-13 Zack Weinberg <zack@codesourcery.com>
3910
3911 * tree.def (documentation): Remove mention of class 'b'.
3912 (BLOCK): Now in class 'x'.
3913 * c-common.c (verify_tree): Remove case 'b'.
3914 * c-typeck.c (same_translation_unit_p): Change 'b' to 'x'.
3915 * calls.c (calls_function_1): Control cannot get past the switch
3916 when exp is a BLOCK.
3917 * print-tree.c (print_node): Move code for class 'b' to the class
3918 'c'/'x' switch, as case BLOCK.
3919 * tree.c (tree_size, make_node_stat, tree_node_structure): Likewise.
3920 (unsafe_for_reeval, substitute_placeholder_in_expr)
3921 (stabilize_reference_1): Remove case 'b'.
3922 * tree-browser.c (browse_tree): Change all tests for TREE_CODE_CLASS
3923 of something being 'b' to tests for TREE_CODE of something being
3924 BLOCK.
3925 * tree-ssa-operands.c (get_expr_operands): Likewise.
3926
3927 2004-05-13 Diego Novillo <dnovillo@redhat.com>
3928
3929 * tree-gimple.c: Rename from tree-simple.c.
3930 * tree-gimple.h: Rename from tree-simple.h.
3931 * c-gimplify.c: Rename from c-simplify.c
3932 * Makefile.in, c-decl.c, gimple-low.c, gimplify.c,
3933 langhooks.c, tree-alias-ander.c, tree-alias-common.c,
3934 tree-complex.c, tree-dfa.c, tree-flow.h, tree-inline.c,
3935 tree-into-ssa.c, tree-iterator.c, tree-mudflap.c,
3936 tree-nested.c, tree-nomudflap.c, tree-outof-ssa.c, tree-sra.c,
3937 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-copyrename.c,
3938 tree-ssa-dce.c, tree-ssa-live.c, tree-ssa-pre.c, tree-ssa.c:
3939 Update.
3940
3941 2004-05-14 Ranjit Mathew <rmathew@hotmail.com>
3942
3943 * doc/sourcebuild.texi: Mention libbanshee and libmudflap.
3944
3945 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
3946
3947 * tree-ssa.c (delete_tree_ssa): XFREE
3948 bitmaps allocated with BITMAP_XMALLOC.
3949
3950 * tree-ssa-pre.c (execute_pre): Free ephi_use_pool and
3951 idfs_cache at the end of the function.
3952
3953 * tree-ssa-live.c (calculate_live_on_entry): Free saw_def
3954 at the end of the function.
3955
3956 * tree-ssa-dce.c (perform_tree_ssa_dce): Free
3957 el at the end of the function.
3958
3959 * tree-into-ssa.c (insert_phi_nodes_for): XFREE
3960 bitmaps allocated with BITMAP_XMALLOC.
3961
3962 * loop-unswitch.c (unswitch_single_loop): Free bbs at
3963 the end.
3964
3965 * final.c (shorten_branches): Free uid_shuid before
3966 reallocating it.
3967
3968 * bb-reoder.c (connect_traces): Free cold_traces at the end.
3969
3970 2004-05-13 Jeff Law <law@redhat.com>
3971
3972 * tree-ssa-live.c (calculate_live_on_entry): Ignore virtual
3973 variables. Simplify slightly by using USE_OP/DEF_OP instead
3974 of USE_OP_PTR/DEF_OP_PTR and dereferencing the result.
3975
3976 * tree-into-ssa.c (compute_global_livein): Use EXECUTE_IF_SET_IN_BITMAP
3977 rather than iterating through the blocks testing each bit in
3978 livein to initialize the worklist.
3979 (mark_def_sites): Remove useless checks of KILLS for virtual
3980 operands.
3981
3982 * tree-ssa-forwprop.c (record_single_argument_cond_exprs): Accept
3983 new parameters for the statement and variable worklist as well
3984 as a bitmap of interesting SSA_NAMEs. Walk over the statement
3985 worklist recording interesting variables in the variable worklist
3986 and bitmap. Handle casts between integral and boolean types.
3987 (substitute_single_use_vars): Accept new parameters for the statement
3988 and variable worklist. When a substitution is made add a new
3989 entry to the statement worklist. Handle casts between integral
3990 and boolean types.
3991 (tree_ssa_forward_propagate_single_use_vars): Rework to pass
3992 worklists to children. Iterate until the statement worklist
3993 is empty.
3994
3995 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
3996
3997 * tree-outof-ssa.c (rewrite_vars_out_of_ssa): Free map at
3998 the end of the block.
3999
4000 * tree-into-ssa.c (def_blocks_free): XFREE bitmaps allocated
4001 with BITMAP_XMALLOC.
4002
4003 * tree-ssa-alias.c (delete_alias_info): XFREE bitmaps allocated
4004 with BITMAP_XMALLOC.
4005
4006 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
4007 Free nonzero_vars at the end of the function.
4008
4009 * convert.c (convert_to_integer): Make a CONVERT_EXPR when there is a
4010 need to generate code instead of a NOP_EXPR.
4011
4012 2004-05-13 Ian Lance Taylor <ian@wasabisystems.com>
4013
4014 * gcc.c (default_compilers): Fill out initializers for new Fortran
4015 entries.
4016
4017 2004-05-13 Paul Brook <paul@codesourcery.com>
4018
4019 * config/arm/arm.h (PCC_BITFIELD_TYPE_MATTERS): Define.
4020
4021 2004-05-13 Paul Brook <paul@codesourcery.com>
4022
4023 * config/arm/arm.c (arm_default_short_enums): New function.
4024 (TARGET_DEFAULT_SHORT_ENUMS): Define.
4025
4026 2004-05-13 Diego Novillo <dnovillo@redhat.com>
4027
4028 Merge from tree-ssa-20020619-branch.
4029
4030 * Makefile.in (reload1.o-warn): Add.
4031 (tree-alias-ander.o-warn): Add.
4032 (GMPLIBS): Define.
4033 (GMPINC): Define.
4034 (BANSHEELIB): Define.
4035 (BANSHEEINC): Define.
4036 (TREE_DUMP_H): Define.
4037 (TREE_SIMPLE_H): Define.
4038 (TREE_FLOW_H): Define.
4039 (LIBDEPS): Add BANSHEELIB.
4040 (INCLUDES): Add BANSHEEINC and GMPINC.
4041 (C_AND_OBJC_OBJS): Add c-simplify.o, tree-mudflap.o,
4042 c-mudflap.o and c-pretty-print.o.
4043 (C_OBJS): Remove c-pretty-print.o.
4044 (OBJS-common): Remove sibcall.o.
4045 Add tree-cfg.o, tree-dfa.o, tree-eh.o,
4046 tree-ssa.o, tree-optimize.o, tree-simple.o,
4047 tree-alias-type.o, gimplify.o, tree-pretty-print.o,
4048 tree-into-ssa.o, tree-outof-ssa.o, tree-alias-common.o,
4049 tree-ssa-ccp.o, @ANDER@, tree-ssa-dce.o, tree-ssa-copy.o,
4050 tree-nrv.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
4051 tree-ssa-live.o, tree-ssa-operands.o, tree-ssa-alias.o,
4052 tree-ssa-phiopt.o, tree-ssa-forwprop.o, tree-nested.o,
4053 tree-ssa-dse.o, tree-ssa-dom.o, domwalk.o,
4054 tree-tailcall.o, gimple-low.o, tree-iterator.o,
4055 tree-phinodes.o, tree-ssanames.o, tree-sra.o,
4056 tree-complex.o, tree-ssa-loop.o, rtl-profile.o and
4057 tree-profile.o.
4058 (OBJC-archive): Add tree-nomudflap.o.
4059 (cc1): Add dependency on @TREEBROWSER@.
4060 (c-decl.o): Add dependency on TREE_DUMP_H.
4061 (c-dump.o): Likewise.
4062 (c-common.o): Add dependency on tree-iterator.h
4063 (c-pretty-print.o): Add dependency on DIAGNOSTIC_H.
4064 (gtype-desc.o): Add dependency on TREE_FLOW_H.
4065 (tree.o): Add dependency on tree-iterator.h,
4066 BASIC_BLOCK_H and TREE_FLOW_H.
4067 (tree-dump.o): Depend on TREE_DUMP_H instead of tree-dump.h.
4068 (langhooks.o): Add dependency on TREE_SIMPLE_H.
4069 (tree-alias-type.o, tree-alias-ander.o,
4070 tree-alias-common.o, tree-ssa.o, tree-into-ssa.o,
4071 tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o,
4072 tree-ssa-phiopt.o, tree-nrv.o, tree-ssa-copy.o,
4073 tree-ssa-dom.o, tree-ssanames.o, tree-phinodes.o,
4074 domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o,
4075 tree-ssa-pre.o, tree-cfg.o, tree-tailcall.o,
4076 tree-nested.o, tree-iterator.o, tree-dfa.o,
4077 tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o,
4078 tree-ssa-alias.o, tree-optimize.o, c-simplify.o,
4079 gimplify.o, gimple-low.o, tree-browser.o, tree-simple.o,
4080 tree-mudflap.o, c-mudflap.o, tree-nomudflap.o,
4081 tree-pretty-print.o, tree-ssa-dce.o, tree-ssa-ccp.o,
4082 tree-sra.o, tree-complex.o, tree-profile.o,
4083 rtl-profile.o): New rules.
4084 (function.o): Add dependency on basic-block.h
4085 (expr.o): Add dependency on tree-iterator.h.
4086 (sibcall.o): Remove.
4087 (profile.o): Depend on TREE_FLOW_H instead of TREE_H.
4088 (cfg.o): Add dependency on TIMEVAR_H.
4089 (cfghooks.o): Add dependency on TREE_FLOW_H.
4090 (reg-stack.o): Add dependency on basic-block.h.
4091 (GTFILES): Add hwint.h, tree-mudflaph.c, tree-flow.h,
4092 c-objc-common.c, c-common.c, c-parse.in, tree-ssanames.c,
4093 tree-eh.c, tree-phinodes.c, tree-cfg.c, tree-dfa.c,
4094 tree-ssa-ccp.c, tree-iterator.c, gimplify.c,
4095 tree-alias-type.h, tree-alias-common.h,
4096 tree-alias-type.c, tree-alias-common.c,
4097 tree-ssa-operands.h, tree-ssa-operands.c, tree-profile.c,
4098 rtl-profile.c and tree-nested.c.
4099 (gt-tree-alias-common.h, gt-tree-mudflap.h,
4100 gt-tree-ssa-ccp.h, gt-tree-eh.h, gt-tree-ssanames.h,
4101 gt-tree-iterator.h, gt-gimplify.h, gt-tree-phinodes.h,
4102 gt-tree-cfg.h, gt-tree-nested.h): New rules.
4103 (TEXI_GCCINT_FILES): Add cfg.texi and tree-ssa.texi.
4104 * basic-block.h: Include predict.h
4105 (struct edge_def): Add GTY marker.
4106 Change field 'insns' to be a union of tree and rtx.
4107 (EDGE_TRUE_VALUE): Define.
4108 (EDGE_FALSE_VALUE): Define.
4109 (EDGE_EXECUTABLE): Define.
4110 (struct bb_ann_d): Forward declare.
4111 (struct basic_block_def): Add GTY marker.
4112 Remove fields head_tree and end_tree.
4113 Add fields stmt_list, rbi and tree_annotations.
4114 (struct reorder_block_def): Define.
4115 (basic_block_info): Add GTY marker.
4116 (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Change to global
4117 variables instead of macros.
4118 (flow_call_edges_add): Remove declaration.
4119 (make_eh_edge): Remove declaration.
4120 (brief_dump_cfg, find_edge, tree_predicted_by_p,
4121 rtl_predicted_by_p, tree_predict_edge, rtl_predict_edge,
4122 predict_edge_def, rtl_make_eh_edge, find_basic_blocks,
4123 cleanup_cfg, delete_unreachable_blocks, merge_seq_blocks,
4124 alloc_rbi_pool, initialize_bb_rbi, free_rbi_pool): Declare.
4125 (try_redirect_by_replacing_jump): Modfiy return type to
4126 edge instead of bool.
4127 * bb-reorder.c (copy_bb): Call duplicate_block
4128 instead of cfg_layout_duplicate_bb.
4129 (copy_bb_p): Call can_duplicate_block_p instead of
4130 cfg_layout_can_duplicate_bb_p.
4131 * bitmap.c (bitmap_first_set_bit): Abort if word
4132 wasn't found.
4133 (bitmap_last_set_bit): Likewise.
4134 * builtin-types.def (DEF_FUNCTION_TYPE_2): Add
4135 (DEF_FUNCTION_TYPE_3): Add.
4136 * builtins.c (c_strlen): Make extern.
4137 (builtin_save_expr): New.
4138 (expand_builtin_nonlocal_goto): New.
4139 (expand_builtin_constant_p): Remove.
4140 (expand_builtin_mathfn): Call builtin_save_expr instead
4141 of save_expr.
4142 (expand_builtin_mathfn_2): Likewise.
4143 (expand_builtin_strcmp): Likewise.
4144 (expand_builtin_strncmp): Likewise.
4145 (expand_builtin_strcat): Likewise.
4146 (fold_builtin_cabs): Likewise.
4147 (expand_builtin_alloca): Don't trigger if -fmudflap is
4148 given.
4149 (build_string_literal): Set TREE_INVARIANT on new node.
4150 (expand_builtin_profile_fun): New.
4151 (round_trampoline_addr): New.
4152 (expand_builtin_init_trampoline): New.
4153 (expand_builtin_adjust_trampoline): New.
4154 (expand_builtin) <BUILT_IN_NEXT_ARG>: Call simplify_builtin_next_arg.
4155 <BUILT_IN_CONSTANT_P>: Return const0_rtx;
4156 <BUILT_IN_STACK_ALLOC, BUILT_IN_STACK_SAVE,
4157 BUILT_IN_STACK_RESTORE, BUILT_IN_NONLOCAL_GOTO,
4158 BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT,
4159 BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE>:
4160 Handle.
4161 (fold_builtin_expect): New.
4162 (fold_builtin_isascii): Don't return non-constant results
4163 in GIMPLE form.
4164 (fold_builtin_isdigit): Likewise.
4165 (fold_builtin_1): New.
4166 (fold_builtin): Call it.
4167 (build_function_call_expr): Update call to build a new
4168 CALL_EXPR.
4169 (purge_builtin_constant_p): Remove.
4170 (simplify_builtin, simplify_builtin_memcmp,
4171 simplify_builtin_strcmp, simplify_builtin_strncmp,
4172 simplify_builtin_strpbrk, simplify_builtin_strstr,
4173 simplify_builtin_strchr, simplify_builtin_strrchr,
4174 simplify_builtin_strcat, simplify_builtin_strncat,
4175 simplify_builtin_strspn, simplify_builtin_strcspn,
4176 simplify_builtin_next_arg, simplify_builtin_va_start,
4177 simplify_builtin_sprintf): New.
4178 * builtins.def (BUILT_IN_STACK_ALLOC,
4179 BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE,
4180 BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE,
4181 BUILT_IN_NONLOCAL_GOTO, BUILT_IN_PROFILE_FUNC_ENTER,
4182 BUILT_IN_PROFILE_FUNC_EXIT): Define.
4183 * c-common.c: Include tree-iterator.h and hashtab.h.
4184 (lang_statement_code_p): Declare.
4185 (lang_gimplify_stmt): Declare.
4186 (fix_string_type): Set TREE_INVARIANT for value.
4187 (pointer_int_sum): Rely on build to set TREE_CONSTANT.
4188 (c_type_hash): New.
4189 (c_common_get_alias_set): Handle multiple type nodes
4190 referring to "the same" type, currently for C90 only.
4191 (c_add_case_label): Use create_artificial_label.
4192 (finish_label_address_expr): Don't set TREE_CONSTANT on
4193 result.
4194 (c_expand_expr): Don't handle STMT_EXPR.
4195 (handle_alias_attribute): Marke aliased variables to be
4196 TREE_STATIC.
4197 (handle_nonnull_attribute): Initialize arg_num.
4198 (check_function_nonnull): Likewise.
4199 (c_walk_subtrees): New.
4200 (c_estimate_num_insns_1): Don't handle
4201 EXPR_WITH_FILE_LOCATION nor FILE_STMT.
4202 (c_decl_uninit_1): Remove.
4203 (c_decl_uninit): Remove.
4204 (c_warn_unused_result): New.
4205 * c-common.def (ASM_STMT): Change number of operands
4206 to 4.
4207 (FILE_STMT): Remove.
4208 * c-common.h (lang_expand_stmt, lang_expand_decl_stmt):
4209 Remove.
4210 (lang_gimplify_stmt): Add.
4211 (expand_stmt): Remove.
4212 (ASM_CV_QUAL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
4213 ASM_CLOBBERS, STMT_EXPR_WARN_UNUSED_RESULT,
4214 ASM_VOLATILE_P, FILE_STMT_FILENAME_NODE,
4215 FILE_STMT_FILENAME, STMT_LINENO, STMT_LINENO_FOR_FN_P,
4216 ASM_INPUT_P, DECL_C_HARD_REGISTER): Remove.
4217 (genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
4218 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
4219 genrtl_while_stmt, genrtl_do_stmt, genrtl_return_stmt,
4220 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
4221 genrtl_scope_stmt, genrtl_switch_stmt, genrtl_case_label,
4222 genrtl_compound_stmt, genrtl_asm_stmt,
4223 genrtl_cleanup_stmt, c_decl_uninit): Remove.
4224 (c_do_switch_warnings, c_gimplify_expr, c_walk_subtrees,
4225 c_tree_chain_matters_p, c_warn_unused_result,
4226 c_genericize, c_gimplify_stmt, stmt_expr_last_stmt):
4227 Declare.
4228 * c-convert.c (convert): Make convert work when
4229 converting to compatible types across translation unit.
4230 * c-decl.c: Include langhooks.h, tree-mudflap.h,
4231 tree-simple.h, diagnostic.h and tree-dump.h
4232 (merge_decls): Initialize oldtype to NULL.
4233 (finish_decl): Use DECL_HARD_REGISTER instead of
4234 DECL_C_HARD_REGISTER.
4235 (check_bitfield_type_and_width): Check for null
4236 lang_type_specific when check the precision of an enum.
4237 (grokdeclarator): Immediately layout an ARRAY_TYPE used
4238 in a pointer-to-array declarator.
4239 (finish_struct): Clear allocated struct lang_type.
4240 (finish_enum): Set enum_min and enum_max. Set
4241 TYPE_MIN/MAX_VALUE to the limits of the compatible type,
4242 not to the enumerators.
4243 (set_decl_nonlocal): New.
4244 (store_parm_decls): Use it via walk_tree.
4245 (c_finalize): New.
4246 (finish_function): When !targetm.have_ctors_dtors,
4247 record static constructors and destructors here...
4248 (c_expand_body_1): ... not here.
4249 (c_expand_decl): Rename from c_expand_decl_stmt.
4250 Handle all C-specific expansion semantics.
4251 * c-dump.c (dump_stmt): Use EXPR_LOCUS instead of
4252 STMT_LINENO.
4253 * c-format.c (handle_format_arg_attribute): Initialize
4254 format_num.
4255 * c-lang.c: Include tree-inline.h
4256 (LANG_HOOKS_EXPAND_DECL,
4257 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
4258 LANG_HOOKS_TREE_INLINING_WALK_SUBTREES,
4259 LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P,
4260 LANG_HOOKS_GIMPLIFY_EXPR, LANG_HOOKS_TYPES_COMPATIBLE_P): Define.
4261 (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
4262 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): Remove.
4263 (c_types_compatible_p): New.
4264 * c-mudflap.c: New file.
4265 * c-objc-common.c: Include tree-mudflap.h
4266 (start_cdtor, finish_cdtor): Collapse
4267 together into
4268 (build_cdtor): ...here. Update to construct a complete tree
4269 for the function. No need to call push_scope, pop_scope, or
4270 clear_last_expr, or set current_function_cannot_inline.
4271 (c_missing_noreturn_ok_p): Change prototype to return
4272 bool.
4273 (c_objc_common_init): Don't set lang_missing_noreturn_ok_p.
4274 * c-opts.c (c_common_handle_option): Move handling of -fdump- to
4275 opts.c.
4276 (c_common_post_options): Don't ever use rtl inlining.
4277 * c-parse.in: Use EXPR_LOCUS instead of STMT_LINENO.
4278 * c-pragma.c (handle_pragma_redefine_extname): Define
4279 always.
4280 (init_pragma): Activate #pragma redefine_extname for mudflap.
4281 * c-pretty-print.c (pp_c_statement): Remove FILE_STMT.
4282 (pp_c_initializer): Accept any type CONSTRUCTOR.
4283 (pp_c_initializer_list): Fix code expectations for VECTOR_TYPE and
4284 COMPLEX_TYPE.
4285 (decl_name_str): New local function.
4286 (pp_c_direct_declarator): Call it.
4287 (pp_c_primary_expression): Call it.
4288 (pp_c_id_expression): Call it.
4289 (pp_c_statement): Call it.
4290 (print_c_tree): Create new pp object.
4291 * c-pretty-print.h (pp_c_tree_decl_identifier,
4292 print_c_tree): Declare.
4293 * c-semantics.c: Include langhooks.h
4294 (lang_expand_stmt, lang_expand_decl_stmt,
4295 find_reachable_label_1, find_reachable_label,
4296 expand_unreachable_if_stmt, expand_unreachable_stmt,
4297 genrtl_do_stmt_1): Remove.
4298 (begin_stmt_tree): Don't check for changed filename.
4299 Call annotate_with_locus.
4300 (finish_stmt_tree): Don't set line for end of function.
4301 (build_stmt): Don't check type nodes for
4302 side effects.
4303 (build_stmt): Set TREE_SIDE_EFFECTS.
4304 Set EXPR_LOCUS instead of STMT_LINENO.
4305 (lang_expand_stmt, lang_expand_decl_stmt,
4306 expand_cond, genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
4307 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
4308 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_do_stmt,
4309 genrtl_return_stmt, genrtl_for_stmt, genrtl_break_stmt,
4310 genrtl_continue_stmt, genrtl_scope_stmt, genrtl_switch_stmt,
4311 genrtl_case_label, genrtl_compound_stmt, genrtl_asm_stmt,
4312 genrtl_cleanup_stmt, expand_stmt, find_reachable_label,
4313 find_reachable_label_1, expand_unreachable_if_stmt,
4314 expand_unreachable_stmt): Remove.
4315 (prep_stmt): Use EXPR_LOCUS instead of STMT_LINENO.
4316 * c-simplify.c: New file.
4317 * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Define.
4318 (struct lang_type): Add fields enum_min and enum_max.
4319 (c_expand_decl_stmt, c_missing_noreturn_ok_p): Remove.
4320 (c_expand_decl, c_missing_noreturn_ok_p,
4321 c_types_compatible_p): Declare.
4322 * c-typeck.c (tagged_types_tu_compatible_p): Allow for
4323 compiler-generated TYPE_DECLs without a DECL_ORIGINAL_TYPE.
4324 (default_function_array_conversion): Rely on build to
4325 set TREE_CONSTANT.
4326 (parser_build_binary_op, pointer_diff): Likewise.
4327 (build_unary_op, build_binary_op): Likewise.
4328 (build_array_ref):
4329 (build_external_ref): Set TREE_INVARIANT.
4330 (build_c_cast, pop_init_level): Likewise.
4331 (process_init_element): Use ASM_VOLATILE_P.
4332 (build_asm_expr): Adapt to GENERIC/GIMPLE syntax.
4333 (c_finish_case): Call c_do_switch_warnings.
4334 * c.opt (fdump-): Remove.
4335 * calls.c (try_to_integrate): Remove.
4336 (prepare_call_address): Replace fndecl arg with a
4337 precomputed static chain value.
4338 (emit_call_1): New argument for full call expr.
4339 (flags_from_decl_or_type): Call special_function_p.
4340 (initialize_argument_information): Add argument
4341 may_tailcall.
4342 (purge_reg_equiv_notes): New.
4343 (expand_call): Do not try to expand calls inline.
4344 (fixup_tail_calls): New.
4345 * cfg.c: Include timevar.h and ggc.h.
4346 (bb_pool, edge_pool): Remove.
4347 (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Declare.
4348 (entry_exit_blocks): Remove.
4349 (rbi_pool): Declare.
4350 (init_flow): Do not create pools.
4351 Allocate entry/exit block.
4352 (free_edge, alloc_block, expunge_block, unchecked_make_edge): Use GGC.
4353 (alloc_rbi_pool, free_rbi_pool, initialize_bb_rbi): New.
4354 (unlink_block): Clear b->prev_bb and b->next_bb.
4355 (compact_blocks): Clear all slots of BASIC_BLOCK array.
4356 (dump_flow_info): Work on trees too.
4357 (dump_cfg_bb_info): New.
4358 (brief_dump_cfg): New.
4359 * cfganal.c (need_fake_edge_p, flow_call_edges_add): Remove.
4360 (find_edge): New.
4361 * cfgbuild.c (rtl_make_eh_edge): Rename from
4362 make_eh_edge. Update all users.
4363 (find_basic_blocks): Don't call VARRAY_FREE on
4364 basic_block_info.
4365 * cfgcleanup.c (outgoing_edges_match): Initialize newpos1
4366 and newpos2.
4367 (delete_unreachable_blocks): Return changed status.
4368 (merge_seq_blocks): New.
4369 * cfghooks.c: Include tree-flow.h
4370 (tree_register_cfg_hooks, ir_type): New.
4371 (redirect_edge_and_branch): Change return type to edge.
4372 (predict_edge, predicted_by_p, can_duplicate_block_p,
4373 duplicate_block, block_ends_with_call_p,
4374 block_ends_with_condjump_p, flow_call_edges_add): New.
4375 * cfghooks.h (redirect_edge_and_branch): Change return
4376 type to edge.
4377 (predict_edge, predicted_by_p, can_duplicate_block_p,
4378 duplicate_block, block_ends_with_call_p,
4379 block_ends_with_condjump_p, flow_call_edges_add): Declare.
4380 (redirect_edge_and_branch): Change return type to edge.
4381 (struct cfg_hooks): Add fields block_ends_with_call_p,
4382 block_ends_with_condjump_p, flow_call_edges_add,
4383 predict_edge, predicted_by_p, can_duplicate_block_p and
4384 duplicate_block.
4385 (tree_cfg_hooks, ir_type, tree_register_cfg_hooks): Declare.
4386 * cfglayout.c (cfg_layout_pool, cfg_layout_initialize_rbi): Removed.
4387 (fixup_reorder_chain): Use initialize_bb_rbi.
4388 (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Hookized.
4389 (cfg_layout_initialize): Use cfg.c rbi pool manipulation functions.
4390 (can_copy_bbs_p, copy_bbs): Use cfghooks for bb duplication.
4391 (insn_locators_initialize): Use new info about blocks.
4392 * cfglayout.h (typedef struct reorder_block_def): Moved to
4393 basic_block.h.
4394 (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Declaration
4395 removed.
4396 * cfgloop.c: Include tree.h and tree-flow.h.
4397 * cfgloop.h (create_loop_notes): Declare.
4398 * cfgloopmanip.c (create_loop_notes): New.
4399 * cfgrtl.c (cfg_layout_create_basic_block): Use initialize_bb_rbi.
4400 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Fill in can_duplicate_block_p
4401 and duplicate_block fields.
4402 (create_basic_block_structure): Don't look at
4403 RTX_INTEGRATED_P.
4404 (rtl_block_ends_with_call_p): New.
4405 (rtl_block_ends_with_condjump_p): New.
4406 (need_fake_edge_p): Moved from cfganal.c.
4407 (rtl_flow_call_edges_add): Moved from cfganal.c (flow_call_edges_add).
4408 (rtl_cfg_hooks): Add rtl_block_ends_with_call_p,
4409 rtl_block_ends_with_condjump_p, rtl_flow_call_edges_add.
4410 (cfg_layout_rtl_cfg_hooks): Ditto.
4411 * cgraph.c (cgraph_mark_reachable_node): Don't force nested
4412 functions to be reachable.
4413 * cgraphunit.c (decide_is_function_needed):
4414 * cgraphunit.c (decide_is_function_needed): Nested functions of extern
4415 inline functions don't need to be output.
4416 (cgraph_assemble_pending_functions): Don't do anything
4417 special for nested functions.
4418 (cgraph_mark_functions_to_output): Likewise.
4419 (cgraph_finalize_function): Don't zap DECL_STRUCT_FUNCTION.
4420 (cgraph_analyze_function): Use estimate_num_insns.
4421 (cgraph_mark_functions_to_output): Likewise.
4422 (cgraph_estimate_growth, cgraph_clone_inlined_nodes): Likewise.
4423 (cgraph_expand_function): Allow functions to not be
4424 emitted.
4425 (cgraph_remove_unreachable_nodes):
4426 (cgraph_recursive_inlining_p): Simplify.
4427 (lookup_recursive_calls,
4428 cgraph_decide_recursive_inlining): New.
4429 (cgraph_decide_inlining_*): Update calls of
4430 cgraph_mark_inline.
4431 * combine.c (get_pos_from_mask): Always set *plen.
4432 * common.opt (fdump-, fmudflap, fmudflapth, fmudflapir,
4433 ftree-based-profiling, ftree-ccp, ftree-ch,
4434 ftree-combine-temps, ftree-copyrename, ftree-dce,
4435 ftree-dominator-opts, ftree-dse, ftree-loop-optimize,
4436 ftree-points-to, ftree-pre, ftree-sra, ftree-ter,
4437 ftree-lrs): Add.
4438 * config.in (HAVE_LD_PIE, HAVE_BANSHEE, PREFIX_INCLUDE_DIR):
4439 Undefine.
4440 * configure.ac: Add --enable-tree-browser option.
4441 Add --with-libbanshee option.
4442 Add GMPLIBS and GMPINC.
4443 * configure: Regenerate.
4444 * coverage.c (tree_ctr_tables): New.
4445 (coverage_counter_alloc): Use it.
4446 (build_ctr_info_value): Ditto.
4447 (coverage_counter_ref): Ditto. Rename to rtl_coverage_counter_ref.
4448 (tree_coverage_counter_ref): New.
4449 * coverage.h (coverage_counter_ref): Remove declaration.
4450 (rtl_coverage_counter_ref): Declare.
4451 (tree_coverage_counter_ref): Declare.
4452 * cppexp.c (append_digit): Rearrange unsignedp/overflow setting.
4453 (eval_token, num_binary_op, num_part_mul, num_div_op): Likewise.
4454 * cse.c (fold_rtx): Do not handle CONSTANT_P_RTX.
4455 (struct cse_basic_block_data): Rename enum values to not
4456 conflict with profile.h; update all uses.
4457 * dbxout.c (dbxout_symbol_location): Don't mention integrate.c
4458 in comments.
4459 * defaults.h (TRAMPOLINE_ALIGNMENT): Move from function.c.
4460 * diagnostic.h (debug_output_buffer, dump_generic_node,
4461 print_generic_stmt, print_generic_stmt_indented,
4462 print_generic_expr, print_generic_decl,
4463 debug_generic_expr, debug_generic_stmt, debug_c_tree):
4464 Declare.
4465 * dominance.c: Cache immediate dominators.
4466 * domwalk.c: New file.
4467 * domwalk.h: New file.
4468 * dwarf2out.c (is_fortran): Support DW_LANG_Fortran95.
4469 (gen_subprogram_die): Generate a DIE for a named
4470 return value.
4471 (loc_descriptor_from_tree): Treat RESULT_DECL like VAR_DECL.
4472 (add_location_or_const_value_attribute): Likewise.
4473 (add_bound_info): Likewise.
4474 (gen_decl_die): Likewise.
4475 * emit-rtl.c (maybe_set_first_label_num): New.
4476 (copy_most_rtx): Don't copy the integrated flag.
4477 Copy the new return_val flag.
4478 * et-forest.c (MAX_NODES): Define.
4479 (record_path_before_1): Abort if len is greater than
4480 MAX_NODES.
4481 * except.c (gen_eh_region, gen_eh_region_cleanup, gen_eh_region_try,
4482 gen_eh_region_catch, gen_eh_region_allowed,
4483 gen_eh_region_must_not_throw, get_eh_region_number,
4484 get_eh_region_may_contain_throw, get_eh_region_tree_label,
4485 set_eh_region_tree_label, expand_resx_expr): New.
4486 (expand_eh_region_start, expand_start_catch): Use them.
4487 (expand_end_catch): Tidy.
4488 (note_eh_region_may_contain_throw): Take region argument.
4489 (note_current_region_may_contain_throw): New.
4490 (get_exception_filter): Export.
4491 (collect_eh_region_array): Export.
4492 (remove_unreachable_regions): Check ERT_TRY based on reachability
4493 of catches, not reachability of continue_label. Never remove
4494 ERT_MUST_NOT_THROW regions.
4495 (collect_rtl_labels_from_trees): New.
4496 (convert_from_eh_region_ranges): Use it.
4497 (connect_post_landing_pads): Handle dying cleanups.
4498 (struct reachable_info): Add callback data.
4499 (add_reachable_handler): Invoke the callback.
4500 (foreach_reachable_handler): New.
4501 (reachable_handlers): Use it.
4502 (arh_to_landing_pad, arh_to_label): New.
4503 (can_throw_internal_1): Split out from can_throw_internal.
4504 (can_throw_external_1): Similarly.
4505 * except.h: Update.
4506 * explow.c (emit_stack_save): Remove savearea mode check.
4507 (update_nonlocal_goto_save_area): New.
4508 (allocate_dynamic_stack_space): Use it.
4509 (probe_stack_range): Never emit loop notes.
4510 * expmed.c (extract_fixed_bit_field): Always propagate the
4511 target for the shift if it is a REG.
4512 * expr.c: Include tree-iterator.h
4513 (is_zeros_p): Remove.
4514 (categorize_ctor_elements_1, categorize_ctor_elements): New.
4515 (count_type_elements): New.
4516 (mostly_zeros_p): Use them.
4517 (expr_wfl_stack): Remove.
4518 (convert_move): Do nothing if to and from are the same.
4519 (emit_block_move_via_loop): Don't emit LOOP notes.
4520 (emit_move_insn): Don't handle CONSTANT_P_RTX.
4521 (emit_move_insn_1): Don't generate inline warnings.
4522 (expand_vars, expand_var): Split from ...
4523 (expand_expr_1): ... here.
4524 (expand_expr_real, expand_expr_real_1): Use new macros
4525 EXPR_LOCATION and EXPR_HAS_LOCATION.
4526 * expr.h (simplify_builtin_fputs,
4527 simplify_builtin_strcpy, simplify_builtin_strncpy,
4528 expand_var, fixup_tail_calls,
4529 update_nonlocal_goto_save_area): Declare.
4530 (lookup_static_chain, expand_inline_function,
4531 mark_seen_cases): Remove.
4532 (prepare_call_address): Change type of 2nd argument to
4533 rtx.
4534 * final.c (profile_function): Update static chain test.
4535 (final): Don't look at RTX_INTEGRATED_P.
4536 * flags.h (flag_mudflap, flag_mudflap_threads,
4537 flag_mudflap_ignore_reads, flag_tree_pre, flag_tree_ccp,
4538 flag_tree_dce, flag_tree_combine_temps,
4539 flag_tree_live_range_split, flag_tree_dom, flag_tree_ch,
4540 flag_tree_dse, flag_tree_sra, flag_tree_copyrename,
4541 flag_tree_points_to): Declare.
4542 (enum pta_type): Declare.
4543 * flow.c (lang_missing_noreturn_ok_p): Remove.
4544 (check_function_return_warnings): Remove.
4545 (update_life_info): Update comments.
4546 (free_basic_block_vars): Don't call VARRAY_FREE for
4547 basic_block_info.
4548 (regno_uninitialized): Remove.
4549 * fold-const.c (int_const_binop): Make extern.
4550 (non_lvalue): Rely on build to set TREE_CONSTANT.
4551 (operand_equal_p): Replace only_const argument with
4552 flags. Allow pure functions if OEP_PURE_SAME.
4553 (fold): Use OEP_ONLY_CONST.
4554 (invert_truthvalue) <NOP_EXPR> Break if argument is of
4555 boolean type.
4556 (fold_relational_hi_lo,
4557 nondestructive_fold_binary_to_constant,
4558 nondestructive_fold_unary_to_constant,
4559 fold_read_from_constant_string): New.
4560 * function.c (struct function): Remove calls_constant_p.
4561 (current_function_calls_constant_p): Remove.
4562 (inline_function_decl): Remove.
4563 (put_var_into_stack): Don't use it.
4564 (fix_lexical_addr): Likewise.
4565 (inline_function_decl): Remove extern declaration.
4566 (TRAMPOLINE_ALIGNMENT): Move to defaults.h.
4567 (trampolines_created): Move to varasm.c.
4568 (free_after_compilation): Update for removed fields.
4569 (allocate_struct_function): Likewise.
4570 (delete_handlers, lookup_static_chain): Remove.
4571 (fix_lexical_addr): Don't consider non-local variable refs.
4572 (trampoline_address): Remove.
4573 (round_trampoline_addr): Move to builtins.c.
4574 (adjust_trampoline_addr): Remove.
4575 (expand_function_start): Update for changes to static chain
4576 and nonlocal goto handling.
4577 (initial_trampoline): Move to varasm.c.
4578 (expand_function_end): Don't build trampolines or kill
4579 unreferenced nonlocal goto labels.
4580 (free_after_compilation): Don't set it.
4581 (expand_function_end): Likewise.
4582 (setjmp_vars_warning): Rename from
4583 uninitialized_vars_warning, remove uninitialized vars warning.
4584 (uninitialized_vars_warning): Remove old comment
4585 and check for DECL_INITIAL, replace with a check of TREE_NO_WARNING
4586 and do not call the langhook.
4587 (expand_function_start, expand_function_end): Don't do
4588 function instrumentation here.
4589 (clear_block_marks): Rename from reorder_blocks_0, export.
4590 (blocks_nreverse): Export.
4591 (uninitialized_vars_warning): Use DECL_RTL_SET_P to test for presence
4592 of rtl.
4593 (reset_block_changes, record_block_change, finalize_block_changes,
4594 check_block_change, free_block_changes): New functions.
4595 (assign_parms): Setting of current_function_stdarg
4596 moved ...
4597 (allocate_struct_function): ... here.
4598 * function.h (struct function): Remove x_nonlocal_labels,
4599 x_nonlocal_goto_handler_slots, x_nonlocal_goto_stack_level,
4600 x_context_display, x_trampoline_list, needs_context.
4601 Add static_chain_decl, nonlocal_goto_save_area.
4602 (struct function): Remove x_clobber_return_insn.
4603 Add tail_call_emit field, last_label_uid,
4604 unexpanded_var_list, dont_emit_block_notes,
4605 ib_boundaries_block, function_end_locus and saved_tree/saved_args.
4606 (clear_block_marks): Declare.
4607 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Add -fmudflapth support.
4608 (mfwrap_spec, mflib_spec): Declare.
4609 (cpp_unique_options, cc1_options): Ditto.
4610 (default_compilers): Add .F and .f90.
4611 (static_specs): Add mfwrap and mflib.
4612 * gcse.c (want_to_gcse_p, gcse_constant_p): Don't handle
4613 CONSTANT_RTX_P.
4614 (reg_used_on_edge, reg_killed_on_edge, bypass_block):
4615 Update to match insns field in struct edge_def.
4616 * gdbinit.in (pgs, pge): Define.
4617 * genattrtab.c (ATTR_PERMANENT_P): Use the return_val flag
4618 instead of the integrated flag.
4619 * gengtype-lex.l (IWOrD): Add HOST_WIDEST_INT
4620 * gengtype-yacc.y (bitfieldlen): Add empty action.
4621 (struct_fields): Accept unnamed bitfields.
4622 (bitfieldlen): Split from ...
4623 (bitfieldopt): ... here.
4624 * gengtype.c (ifiles): Add tree-alias-type.h and
4625 tree-flow.h.
4626 * genrecog.c (validate_pattern): Do not handle
4627 CONSTANT_P_RTX.
4628 * gimple-low.c: New file.
4629 * gimplify.c: New file.
4630 * haifa-sched.c (priority): Do not handle CONSTANT_P_RTX.
4631 (restore_line_notes): Do not set RTX_INTEGRATED_P.
4632 * ifcvt.c (dead_or_predicable): Initialize local variable
4633 'earliest'.
4634 * input.h (expr_wfl_stack): Remove.
4635 * integrate.c (INTEGRATE_THRESHOLD): Remove.
4636 (setup_initial_hard_reg_value_integration): Likewise.
4637 (initialize_for_inline): Likewise.
4638 (note_modified_parmregs): Likewise.
4639 (integrate_parm_decls): Likewise.
4640 (process_reg_param): Likewise.
4641 (save_parm_insns): Likewise.
4642 (copy_insn_list): Likewise.
4643 (copy_insn_notes): Likewise.
4644 (compare_blocks): Likewise.
4645 (find_block): Likewise.
4646 (inlining): Likewise.
4647 (function_cannot_inline_p): Likewise.
4648 (parmdecl_map): Likewise.
4649 (in_nonparam_insns): Likewise.
4650 (save_for_inline): Likewise.
4651 (FIXED_BASE_PLUS): Likewise.
4652 (expand_inline_function): Likewise.
4653 (copy_rtx_and_substitute): Don't look at map->integrating,
4654 map->inline_target, and inlining, since we are never copying
4655 for integrating.
4656 Don't abort on RTX_INTEGRATED_P.
4657 (old_fun): Remove.
4658 (output_inline_function): Remove.
4659 * integrate.h (struct inline_map): Remove fields integrating,
4660 block_map, leaf_reg_map, inline_target, and local_return_label.
4661 * jump.c (next_nonnote_insn_in_loop, duplicate_loop_exit_test,
4662 copy_loop_headers, never_reached_warning): Removed.
4663 (any_uncondjump_p): Reject nonlocal goto.
4664 * langhooks-def.h (lhd_types_compatible_p,
4665 lhd_expand_decl, lhd_gimplify_expr): Declare.
4666 (LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
4667 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
4668 LANG_HOOKS_FUNCTION_LEAVE_NESTED,
4669 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
4670 LANG_HOOKS_GIMPLIFY_EXPR,
4671 LANG_HOOKS_GIMPLE_BEFORE_INLINING,
4672 LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
4673 LANG_HOOKS_GIMPLIFY_EXPR,
4674 LANG_HOOKS_GIMPLE_BEFORE_INLINING): Define.
4675 (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_START,
4676 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END,
4677 LANG_HOOKS_FUNCTION_LEAVE_NESTED,
4678 LANG_HOOKS_RTL_EXPAND_INITIALIZER,
4679 LANG_HOOKS_DECL_UNINIT,
4680 LANG_HOOKS_RTL_EXPAND_INITIALIZER): Remove.
4681 * langhooks.c: Include tree-simple.h.
4682 (lhd_expand_decl): New.
4683 (lhd_types_compatible_p): New.
4684 (lhd_decl_uninit): Remove.
4685 (lhd_gimplify_expr): New.
4686 * langhooks.h (struct lang_hooks_for_rtl_expansion):
4687 Remove.
4688 (struct lang_hooks_for_functions): Add field
4689 missing_noreturn_ok_p.
4690 (struct lang_hooks): Add field expand_decl,
4691 types_compatible_p, gimplify_expr and
4692 gimple_before_inlining.
4693 Remove fields decl_uninit and rtl_expand
4694 * opts.c (decode_options): Set flag_tree_ccp,
4695 flag_tree_dce, flag_tree_dom, flag_tree_dse,
4696 flag_tree_pre, flag_tree_ter,
4697 flag_tree_live_range_split, flag_tree_sra,
4698 flag_tree_copyrename and flag_tree_ch at -O1 and higher.
4699 (common_handle_option): Handle OPT_fdump_, OPT_fmudflap,
4700 OPT_fmudflapth, OPT_fmudflapir,
4701 OPT_ftree_based_profiling, OPT_ftree_ccp, OPT_ftree_dce,
4702 OPT_ftree_combine_temps, OPT_ftree_ter, OPT_ftree_lrs,
4703 OPT_ftree_dominator_opts, OPT_ftree_copyrename,
4704 OPT_ftree_ch, OPT_ftree_dse, OPT_ftree_sra,
4705 OPT_ftree_points_to_ and OPT_ftree_pre.
4706 * output.h (regno_uninitialized, find_basic_blocks,
4707 cleanup_cfg, delete_unreachable_blocks,
4708 check_function_return_warnings): Remove.
4709 * params.def (PARAM_MAX_INLINE_INSNS_RECURSIVE,
4710 PARAM_MAX_INLINE_INSNS_RECURSIVE_AUTO,
4711 PARAM_MAX_INLINE_RECURSIVE_DEPTH,
4712 PARAM_MAX_INLINE_RECURSIVE_DEPTH_AUTO,
4713 PARAM_GLOBAL_VAR_THRESHOLD, PARAM_MAX_ALIASED_VOPS):
4714 * params.h (GLOBAL_VAR_THRESHOLD, MAX_ALIASED_VOPS):
4715 Define.
4716 * passes.c (rest_of_decl_compilation):
4717 (rest_of_handle_sibling_calls): Remove.
4718 (rest_of_handle_inlining): Remove.
4719 (rest_of_handle_gcse): Do not run
4720 purge_builtin_constant_p.
4721 (rest_of_compilation): Update.
4722 Do not call copy_loop_headers.
4723 Do rtl-based profiling only when
4724 !flag_tree_based_profiling. Register rtl-based profiling
4725 hooks.
4726 * predict.c: Include tree-flow.h, ggc.h, tree-dump.h
4727 (predicted_by_p): Rename to ...
4728 (rtl_predicted_by_p): .. this one; make global
4729 (tree_predicted_by_p): New.
4730 (dump_prediction): Add FILE argument.
4731 (predict_edge): Rename to ...
4732 (rtl_predict_edge): .. this one.
4733 (tree_predict_edge): New.
4734 (combine_predictions_for_insn): Update calls of predict_edge.
4735 (predict_loops): Break out from ...
4736 (estimate_probability): ... here; update comments; move updating
4737 of unknown probabilities from ...
4738 (estimate_bb_frequencies): ... here.
4739 (combine_predictions_for_bb): New.
4740 (tree_predict_by_opcode): New.
4741 (tree_estimate_probability): New.
4742 * predict.def (PRED_TREE_POINTER, PRED_TREE_OPCODE_POSITIVE,
4743 PRED_TREE_OPCODE_NONEQUAL, PRED_TREE_FPOPCODE): New predictors.
4744 * predict.h: Add include guard.
4745 (predict_edge, predict_edge_def): Move prototypes to basic_block.h
4746 * pretty-print.c (pp_write_text_to_stream): Make extern.
4747 * pretty-print.h (pp_write_text_to_stream): Declare.
4748 * print-rtl.c (print_rtx): Don't print the integrated flag.
4749 Print the return_val flag.
4750 * print-tree.c: Use TREE_FILENAME and TREE_LINENO instead
4751 of DECL_SOURCE_FILE and DECL_SOURCE_LINE respectively.
4752 Remove support for EXPR_WITH_FILE_LOCATION nodes.
4753 (print_node): Print TREE_INVARIANT and TREE_VISITED.
4754 * profile.c: Include cfghooks.h, tree-flow.h.
4755 (profile_hooks): New.
4756 (profile_dump_file): New.
4757 (instrument_edges): Use hooks instead of RTL-specific code.
4758 (instrument_values): Ditto.
4759 (get_exec_counts): Ditto.
4760 (compute_branch_probabilities): Ditto.
4761 (compute_value_histograms): Ditto.
4762 (branch_prob): Ditto.
4763 (find_spanning_tree): Ditto.
4764 (end_branch_prob): Ditto.
4765 (gen_edge_profiler): Move to rtl-profile.c (rtl_gen_edge_profiler).
4766 (gen_interval_profiler): Ditto (rtl_gen_interval_profiler).
4767 (gen_pow2_profiler): Ditto (rtl_gen_pow2_profiler).
4768 (gen_one_value_profiler): Ditto (rtl_gen_one_value_profiler).
4769 (tree_register_profile_hooks): New.
4770 (rtl_register_profile_hooks): New.
4771 * ra-rewrite.c (rewrite_program): Clear variable info.
4772 * recog.c (immediate_operand): Do not handle CONSTANT_P_RTX.
4773 * regs.h: Add include guards.
4774 * reload.c (decompose): Clear val using memset.
4775 * rtl.def (CONSTANT_P_RTX): Remove.
4776 * rtl.h (CONSTANT_P): Do not handle CONSTANT_P_RTX.
4777 (copy_loop_headers): Remove.
4778 (struct rtx_def): Replace the integrated flag with the
4779 return_val flag.
4780 (maybe_set_first_label_num): Declare.
4781 (init_branch_prob): Move declaration to value-prof.h.
4782 (end_branch_prob): Ditto.
4783 (branch_prob): Ditto.
4784 (never_reached_warning): Don't declare it.
4785 * rtlanal.c (get_related_value): Initialize get_jump_table_offset
4786 (hoist_insn_to_edge): Update to match field insns in
4787 struct edge_def.
4788 * sbitmap.c (sbitmap_realloc): New.
4789 * sbitmap.h (sbitmap_realloc): Declare.
4790 * sibcall.c: Remove file.
4791 * simplify-rtx.c (simplify_rtx): Do not handle
4792 CONSTANT_P_RTX.
4793 * stmt.c (parse_output_constraint): Don't warn for read-write
4794 memory operand.
4795 (tail_recursion_args): Use types_compatible_p langhook.
4796 (force_label_rtx): Don't look at inline_function_decl.
4797 (label_rtx): Set LABEL_PRESERVE_P appropriately.
4798 (expand_label): Handle DECL_NONLOCAL and FORCED_LABEL.
4799 (declare_nonlocal_label): Remove.
4800 (expand_goto): Don't handle nonlocal gotos.
4801 (expand_nl_handler_label): Remove.
4802 (expand_nl_goto_receivers): Remove.
4803 (expand_end_bindings): Don't expand_nl_goto_receivers. Use
4804 update_nonlocal_goto_save_area.
4805 (expand_expr_stmt_value): Check TREE_NO_WARNING.
4806 (warn_if_unused_value): Likewise.
4807 (expand_start_loop, expand_loop_continue_here,
4808 expand_end_loop): Don't create loop notes.
4809 (all_cases_count, BITARRAY_TEST, BITARRAY_SET,
4810 mark_seen_cases, check_for_full_enumeration_handling): Remove.
4811 (expand_end_case_type): Don't do warn_switch handling.
4812 (pushcase, pushcase_range) Update add_case_node calls.
4813 (add_case_node): Add dont_expand_label argument.
4814 (same_case_target_p): Don't search rtl.
4815 (expand_start_bindings_and_block, expand_end_bindings):
4816 Don't emit block notes when dont_emit_block_notes.
4817 (using_eh_for_cleanups_p): Export.
4818 (expand_return): Allow any typed rhs.
4819 (expand_stack_alloc): New.
4820 (expand_stack_save, expand_stack_restore): New.
4821 (containing_blocks_have_cleanups_or_stack_level): New
4822 function.
4823 (asm_op_is_mem_input): New fn.
4824 (expand_asm_expr): New fn.
4825 (warn_if_unused_value): Check operand 0 of SAVE_EXPR
4826 nodes.
4827 * stor-layout.c (layout_type): Just return if type is
4828 error_mark_node.
4829 (update_alignment_for_field): Export.
4830 (variable_size): We don't care about global_bindings_p if
4831 the frontend doesn't want a list of the expressions.
4832 * system.h: Poison INTEGRATE_THRESHOLD.
4833 * timevar.def (TV_TREE_GIMPLIFY, TV_TREE_EH, TV_TREE_CFG,
4834 TV_TREE_CLEANUP_CFG, TV_TREE_PTA, TV_TREE_MAY_ALIAS,
4835 TV_TREE_INSERT_PHI_NODES, TV_TREE_SSA_REWRITE_BLOCKS,
4836 TV_TREE_SSA_OTHER, TV_TREE_OPS,
4837 TV_TREE_SSA_DOMINATOR_OPTS, TV_TREE_SRA, TV_TREE_CCP,
4838 TV_TREE_SPLIT_EDGES, TV_TREE_PRE, TV_TREE_PHIOPT,
4839 TV_TREE_FORWPROP, TV_TREE_DCE, TV_TREE_CD_DCE,
4840 TV_TREE_DSE, TV_TREE_LOOP, TV_TREE_CH,
4841 TV_TREE_SSA_TO_NORMAL, TV_TREE_SSA_TO_NORMAL,
4842 TV_TREE_NRV, TV_TREE_COPY_RENAME, TV_TREE_SSA_VERIFY,
4843 TV_TREE_STMT_VERIFY, TV_DOM_FRONTIERS,
4844 TV_CONTROL_DEPENDENCES): Define.
4845 * toplev.c: Include tree-alias-common.h
4846 (current_file_decl, flag_mudflap, flag_mudflap_threads,
4847 flag_mudflap_ignore_reads, flag_tree_based_profiling,
4848 flag_tree_gvn, flag_tree_points_to, flag_tree_ccp,
4849 flag_tree_dce, flag_tree_ch, flag_tree_sra,
4850 flag_tree_combine_temps, flag_tree_ter,
4851 flag_tree_live_range_split, flag_tree_dom,
4852 flag_tree_copyrename, flag_tree_dse): Declare.
4853 (f_options): Add tree-based-profiling, tree-gvn,
4854 tree-pre, tree-ccp, tree-dce,
4855 tree-dominator-opts, tree-copyrename, tree-dse,
4856 tree-combine-temps, tree-ter, tree-lrs and tree-ch.
4857 (wrapup_global_declarations): Don't output nested inlined functions.
4858 (general_init): Call init_tree_optimization_passes.
4859 (process_options): Sorry for -ftree-based-profiling plus
4860 -ftest-coverage or -fprofile-values.
4861 * toplev.h (init_tree_optimization_passes,
4862 flag_tree_based_profiling): Declare.
4863 * tracer.c (tail_duplicate): Use cfghooks for bb duplication.
4864 * tree-alias-ander.c: New file.
4865 * tree-alias-ander.h: New file.
4866 * tree-alias-common.c: New file.
4867 * tree-alias-common.h: New file.
4868 * tree-alias-type.c: New file.
4869 * tree-alias-type.h: New file.
4870 * tree-browser.c: New file.
4871 * tree-browser.def: New file.
4872 * tree-cfg.c: New file.
4873 * tree-complex.c: New file.
4874 * tree-dfa.c: New file.
4875 * tree-dump.c (dump_enable_all): New.
4876 (dequeue_and_dump): Do not handle EXPR_WITH_FILE_LOCATION.
4877 (dump_node): Remove const from field suffix and swtch.
4878 (dump_files): Add null entry, .generic, .nested, .vcg,
4879 .xml and a match-all entry.
4880 (extra_dump_files, extra_dump_files_in_use,
4881 extra_dump_files_alloced): Declare
4882 (dump_option_value_info): Add raw, details, stats,
4883 blocks, vops, lineno, uid and all.
4884 (dump_register): New.
4885 (get_dump_file_info): New.
4886 (dump_begin): Call it.
4887 Do nothing for TDI_none.
4888 (dump_begin): Include phase number in dump filename.
4889 (dump_enable_all): New.
4890 (dump_switch_p_1): Split out from dump_switch_p.
4891 (dump_switch_p): Handle extra_dump_files.
4892 Start our scan at TDI_none + 1.
4893 If -fdump-tree-all was given, call dump_enable_all.
4894 * tree-dump.h: Include splay-tree.h.
4895 (dump_function, dump_function_to_file, dump_register):
4896 Declare.
4897 * tree-eh.c: New file.
4898 * tree-flow-inline.h: New file.
4899 * tree-flow.h: New file.
4900 * tree-inline.c: Re-write to handle inlining on GIMPLE.
4901 * tree-inline.h (walk_tree,
4902 walk_tree_without_duplicates): Move to tree.h.
4903 (estimate_num_insns): Declare.
4904 * tree-into-ssa.c: New file.
4905 * tree-iterator.c: New file.
4906 * tree-iterator.h: New file.
4907 * tree-mudflap.c: New file.
4908 * tree-mudflap.h: New file.
4909 * tree-nested.c: New file.
4910 * tree-nomudflap.c: New file.
4911 * tree-nrv.c: New file.
4912 * tree-optimize.c (dump_flags, vars_to_rename,
4913 in_gimple_form, all_passes, pass_gimple,
4914 pass_rebuild_bind, pass_all_optimizations, pass_del_cfg): Declare.
4915 (execute_gimple, execute_rebuild_bind,
4916 gate_all_optimizations, execute_del_cfg,
4917 register_one_dump_file, register_dump_files, dup_pass_1,
4918 init_tree_optimization_passes, execute_todo,
4919 execute_one_pass, execute_pass_list): New.
4920 (clear_decl_rtl): Remove.
4921 (tree_rest_of_compilation): Update to use tree
4922 optimizers.
4923 * tree-outof-ssa.c: New file.
4924 * tree-pass.h: New file.
4925 * tree-phinodes.c: New file.
4926 * tree-pretty-print.c: New file.
4927 * tree-profile.c: New file.
4928 * tree-simple.c: New file.
4929 * tree-simple.h: New file.
4930 * tree-sra.c: New file.
4931 * tree-ssa-alias.c: New file.
4932 * tree-ssa-ccp.c: New file.
4933 * tree-ssa-copy.c: New file.
4934 * tree-ssa-copyrename.c: New file.
4935 * tree-ssa-dce.c: New file.
4936 * tree-ssa-dom.c: New file.
4937 * tree-ssa-dse.c: New file.
4938 * tree-ssa-forwprop.c: New file.
4939 * tree-ssa-live.c: New file.
4940 * tree-ssa-live.h: New file.
4941 * tree-ssa-loop.c: New file.
4942 * tree-ssa-operands.c: New file.
4943 * tree-ssa-operands.h: New file.
4944 * tree-ssa-phiopt.c: New file.
4945 * tree-ssa-pre.c: New file.
4946 * tree-ssa.c: New file.
4947 * tree-ssanames.c: New file.
4948 * tree-tailcall.c: New file.
4949 * tree.c: Include tree-iterator.h, basic-block.h and
4950 tree-flow.h.
4951 (tree_node_kind): Add phi_nodes and ssa names.
4952 (tree_size): Handle PHI_NODE, EPHI_NODE, SSA_NAME,
4953 EUSE_NODE, EKILL_NODE, EEXIT_NODE and STATEMENT_LIST.
4954 (make_node_stat): Handle PHI_NODE and SSA_NAME.
4955 <'c'> Set TREE_INVARIANT.
4956 (copy_node_stat): Abort if trying to copy a
4957 STATEMENT_LIST.
4958 Clear TREE_VISITED.
4959 Clear annotation field.
4960 (build_constructor): Copy TREE_INVARIANT from vals.
4961 Don't clear TREE_CONSTANT.
4962 (expr_first, expr_last, expr_length): Remove.
4963 (staticp): Pass unknown component references to the language.
4964 (save_expr): Check TREE_INVARIANT instead of TREE_CONSTANT.
4965 (skip_simple_arithmetic): Likewise.
4966 (stabilize_reference_1): Likewise.
4967 (tree_node_structure): Handle PHI_NODE, EPHI_NODE,
4968 EUSE_NODE, EKILL_NODE, EEXIT_NODE, SSA_NAME and
4969 STATEMENT_LIST.
4970 (lhd_unsave_expr_now): Remove.
4971 (unsafe_for_reeval): Handle LABEL_EXPR and BIND_EXPR.
4972 (recompute_tree_invarant_for_addr_expr): New.
4973 (build1_stat): Clear EXPR_LOCUS and TREE_BLOCK.
4974 Call recompute_tree_invarant_for_addr_expr.
4975 Set TREE_INVARIANT accordingly.
4976 (build2_stat): Don't handle CALL_EXPR.
4977 (build3_stat): Don't call build2_stat for CALL_EXPRs.
4978 (build_expr_wfl): Remove.
4979 (annotate_with_file_line, annotate_with_locus): New.
4980 (simple_cst_equal): Call simple_cst_list_equal to compare
4981 CONSTRUCTOR_ELTS pointers.
4982 (iterative_hash_expr): Don't hash types associated
4983 with conversions. Instead hash on the signedness of the
4984 toplevel object and the operand of the conversion.
4985 (dump_tree_statistics): Call ssanames_print_statistics
4986 and phinodes_print_statistics.
4987 (ephi_node_elt_check_failed, phi_node_elt_check_failed,
4988 add_var_to_bind_expr, build_empty_stmt, is_essa_node,
4989 needs_to_live_in_memory): New.
4990 (initializer_zerop): Handle VECTOR_CST. Don't check
4991 AGGREGATE_TYPE_P for CONSTRUCTOR.
4992 * tree.def (FILTER_EXPR, CASE_LABEL_EXPR, RESX_EXPR,
4993 SSA_NAME, EUSE_NODE, EKILL_NODE, EPHI_NODE, EEXIT_NODE,
4994 PHI_NODE, CATCH_EXPR, EH_FILTER_EXPR, STATEMENT_LIST): Define.
4995 (GOTO_SUBROUTINE_EXPR): Change type to 's'.
4996 (CALL_EXPR): Add another operand.
4997 (EXPR_WITH_FILE_LOCATION): Remove.
4998 (SWITCH_EXPR): Add another operand.
4999 * tree.h: Update various comments.
5000 (union tree_ann_d): Forward declare.
5001 (struct tree_common): Add fields nowarning_flag,
5002 invariant_flag and visited.
5003 (EREF_NODE_CHECK, EPHI_NODE_ELT_CHECK,
5004 PHI_NODE_ELT_CHECK, EREF_NODE_CHECK, PHI_NODE_ELT_CHECK,
5005 EPHI_NODE_ELT_CHECK, TREE_BLOCK,
5006 STRIP_USELESS_TYPE_CONVERSION, CALL_EXPR_TAILCALL,
5007 TREE_NO_WARNING, FORCED_LABEL, TREE_INVARIANT,
5008 IS_EMPTY_STMT, EXPR_LOCUS, SET_EXPR_LOCUS, EXPR_FILENAME,
5009 EXPR_LINENO, EXPR_LOCATION, EXPR_HAS_LOCATION,
5010 EXIT_EXPR_COND, SWITCH_COND, SWITCH_BODY, SWITCH_LABELS,
5011 CASE_LOW, CASE_HIGH, CASE_LABEL, BIND_EXPR_VARS,
5012 BIND_EXPR_BODY, BIND_EXPR_BLOCK, GOTO_DESTINATION,
5013 ASM_STRING, ASM_OUTPUTS, ASM_INPUTS, ASM_CLOBBERS,
5014 ASM_INPUT_P, ASM_VOLATILE_P, COND_EXPR_COND,
5015 COND_EXPR_THEN, COND_EXPR_ELSE, LABEL_EXPR_LABEL,
5016 CATCH_TYPES, CATCH_BODY, EH_FILTER_TYPES,
5017 EH_FILTER_FAILURE, EH_FILTER_MUST_NOT_THROW,
5018 SSA_NAME_VAR, SSA_NAME_DEF_STMT, SSA_NAME_VERSION,
5019 SSA_NAME_OCCURS_IN_ABNORMAL_PHI, SSA_NAME_IN_FREE_LIST,
5020 PHI_RESULT, PHI_REWRITTEN, PHI_NUM_ARGS,
5021 PHI_ARG_CAPACITY, PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF,
5022 EREF_PROCESSED, EREF_ID, EREF_NAME, EREF_STMT,
5023 EREF_RELOAD, EREF_SAVE, EREF_CLASS, EREF_INJURED,
5024 EREF_TEMP, EUSE_DEF, EUSE_PHIOP, EUSE_INSERTED,
5025 EUSE_LVAL, EPHI_NUM_ARGS, EPHI_ARG_CAPACITY,
5026 EPHI_ARG_ELT, EPHI_ARG_EDGE, EPHI_ARG_PRED, EPHI_ARG_DEF,
5027 EPHI_ARG_INJURED, EPHI_ARG_DELAYED_RENAME,
5028 EPHI_ARG_HAS_REAL_USE, EPHI_ARG_STOPS,
5029 EPHI_ARG_PROCESSED2, EPHI_IDENTITY, EPHI_IDENT_INJURED,
5030 EPHI_REP_OCCUR_KNOWN, EPHI_IDENTICAL_TO, EPHI_DOWNSAFE,
5031 EPHI_CANT_BE_AVAIL, EPHI_DEAD, EPHI_USES, EPHI_STOPS,
5032 TREE_VISITED, SSA_VAR_P, DECL_NUM_STMTS,
5033 DECL_HARD_REGISTER, DECL_PTA_ALIASVAR, LABEL_DECL_UID,
5034 DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL,
5035 STATEMENT_LIST_HEAD, STATEMENT_LIST_TAIL, TDF_RAW,
5036 TDF_DETAILS, TDF_STATS, TDF_BLOCKS, TDF_VOPS, TDF_LINENO,
5037 TDF_UID,): Define.
5038 (TREE_NO_UNUSED_WARNING, EXPR_WFL_EMIT_LINE_NOTE,
5039 EXPR_WFL_NODE, EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME,
5040 EXPR_WFL_LINECOL, EXPR_WFL_LINENO, EXPR_WFL_COLNO,
5041 EXPR_WFL_SET_LINECOL): Remove.
5042 (phi_node_elt_check_failed, ephi_node_elt_check_failed,
5043 make_phi_node, init_phinodes, fini_phinodes,
5044 release_phi_node, phinodes_print_statistics,
5045 init_ssanames, fini_ssanames, make_ssa_name,
5046 release_ssa_name, ssanames_print_statistics,
5047 annotate_with_file_line, build_empty_stmt,
5048 annotate_with_locus, expr_only, categorize_ctor_elements,
5049 count_type_elements, add_var_to_bind_expr, is_essa_node,
5050 expand_stack_alloc, expand_stack_save,
5051 expand_stack_restore, add_case_node, operand_equal_p,
5052 nondestructive_fold_unary_to_constant,
5053 nondestructive_fold_binary_to_constant,
5054 fold_read_from_constant_string, int_const_binop,
5055 strip_float_extensions, simplify_builtin, c_strlen,
5056 recompute_tree_invarant_for_addr_expr,
5057 needs_to_live_in_memory, make_vector,
5058 setjmp_vars_warning, update_alignment_for_field,
5059 expand_asm_expr, asm_op_is_mem_input,
5060 containing_blocks_have_cleanups_or_stack_level,
5061 create_artificial_label, gimplify_function_tree,
5062 get_name, unshare_expr, walk_tree,
5063 walk_tree_without_duplicates, in_gimple_form): Declare.
5064 (struct tree_exp): Add fields locus and block.
5065 (struct tree_ssa_name, struct edge_def, struct
5066 tree_phi_node, struct tree_eref_common, struct
5067 tree_euse_node, struct ephi_arg_d, struct tree_ephi_node,
5068 union alias_var_def, struct tree_statement_list_node,
5069 struct tree_statement_list, enum operand_equal_flag): Declare.
5070 (enum tree_node_structure_enum): Add TS_SSA_NAME,
5071 TS_PHI_NODE, TS_EPHI_NODE, TS_EUSE_NODE, TS_EREF_NODE,
5072 TS_STATEMENT_LIST.
5073 (union tree_node): Add fields ssa_name, phi, eref, ephi,
5074 euse and stmt_list.
5075 (function_cannot_inline_p, uninitialized_vars_warning,
5076 save_for_inline, output_inline_function, all_cases_count,
5077 check_for_full_enumeration_handling,
5078 declare_nonlocal_label): Remove.
5079 (enum tree_dump_index): Add TDI_none, TDI_tu,
5080 TDI_generic, TDI_nested, TDI_vcg, TDI_xml.
5081 * unroll.c (unroll_loop): Don't clear map->inline_target.
5082 * unwind-sjlj.c (uw_install_context): Make a proper static inline
5083 function.
5084 * value-prof.c (value_prof_hooks): New.
5085 (find_values_to_profile): Rename to rtl_find_values_to_profile.
5086 Move rtl-specific bits in from branch_prob.
5087 (value_profile_transformations): Rename to
5088 rtl_value_profile_transformations.
5089 (struct value_prof_hooks): New.
5090 (rtl_value_prof_hooks): New.
5091 (rtl_register_value_prof_hooks): New.
5092 (tree_find_values_to_profile): New stub.
5093 (tree_value_profile_transformations): New stub.
5094 (tree_value_prof_hooks): New stub.
5095 (tree_register_value_prof_hooks): New stub.
5096 (find_values_to_profile): New.
5097 (value_profile_transformations): New.
5098 * value-prof.h: Add multiple inclusion guard.
5099 (struct histogram_value): Change rtx fields to void *.
5100 (rtl_register_value_prof_hooks): New declaration.
5101 (tree_register_value_prof_hooks): New declaration.
5102 (find_values_to_profile): New declaration.
5103 (free_profiled_values): New declaration.
5104 (value_profile_transformations): New declaration.
5105 (struct profile_hooks): New declaration.
5106 (init_branch_prob): Declaration moved from rtl.h.
5107 (branch_prob): Declaration moved from rtl.h.
5108 (end_branch_prob): Declaration mooved from rtl.h.
5109 (tree_register_profile_hooks): New declaration.
5110 (rtl_register_profile_hooks): New declaration.
5111 (tree_profile_hooks): New declaration.
5112 (rtl_profile_hooks): New declaration.
5113 * varasm.c: Include tree-mudflap.h.
5114 (TRAMPOLINE_ALIGNMENT): Remove.
5115 (make_decl_rtl): Call mudflap_enqueue_decl.
5116 (assemble_static_space):
5117 (assemble_trampoline_template): Set and return
5118 TRAMPOLINE_ALIGNMENT.
5119 * varray.c (element): Add GENERIC_PTR_NOGC entry.
5120 Add entry for 'tree *'.
5121 Add entry for struct edge_def *.
5122 (varray_copy): New.
5123 * varray.h (enum varray_data_enum): Add
5124 VARRAY_DATA_GENERIC_NOGC, VARRAY_DATA_EDGE and
5125 VARRAY_DATA_TREE_PTR.
5126 (union varray_data_tag): Corresponding changes.
5127 (VARRAY_GENERIC_PTR_NOGC_INIT, VARRAY_EDGE_INIT,
5128 VARRAY_TREE_PTR_INIT, VARRAY_GENERIC_PTR_NOGC,
5129 VARRAY_EDGE, VARRAY_TREE_PTR,
5130 VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_EDGE,
5131 VARRAY_PUSH_TREE_PTR, VARRAY_TOP_GENERIC_PTR_NOGC,
5132 VARRAY_TOP_EDGE, VARRAY_TOP_TREE_PTR): Define.
5133
5134 * config/*/*: Various updates for changed macros, tree
5135 codes, etc. Check ChangeLog.tree-ssa.
5136
5137 * doc/cfg.texi: New file.
5138 * doc/tree-ssa.texi: New file.
5139 * doc/c-tree.texi: Document new codes.
5140 * doc/gccint.texi: Include new files.
5141 * doc/install.texi: Document new features.
5142 * doc/invoke.texi: Document new switches.
5143 * doc/passes.texi: Document new passes.
5144 * doc/rtl.texi: Update changed RTL codes.
5145 * doc/sourcebuild.texi: Update build instructions.
5146 * doc/standards.texi: Document Fortran changes.
5147 * doc/tm.texi: Update.
5148
5149 2004-05-12 Paolo Bonzini <bonzini@gnu.org>
5150
5151 Replace several arrays with a struct of arrays.
5152 * combine.c (struct reg_stat): New.
5153 (init_reg_last_arrays): Renamed to...
5154 (init_reg_last): ...this. Callers adjusted.
5155 (reg_stat): New.
5156 (combine_instructions): Allocate it and use it.
5157 (reg_last_death, reg_last_set, reg_last_set_value,
5158 reg_last_set_label, reg_last_set_table_tick,
5159 reg_last_set_invalid, reg_nonzero_bits, reg_sign_bit_copies,
5160 reg_last_set_mode, reg_last_set_nonzero_bits,
5161 reg_last_set_sign_bit_copies): Replace throughout
5162 with items of reg_stat.
5163
5164 2004-05-11 Kaz Kojima <kkojima@gcc.gnu.org>
5165
5166 PR optimization/15100
5167 * combine.c (distribute_notes): Don't create a dangling
5168 REG_LIBCALL/REG_RETVAL note.
5169
5170 2004-05-11 Aldy Hernandez <aldyh@redhat.com>
5171
5172 * config/rs6000/spe.md (spe_evneg): Rename to negv2si2.
5173
5174 * config/rs6000/rs6000.c (bdesc_1arg): Change spe_evneg to
5175 negv2si2.
5176
5177 2004-05-11 Aldy Hernandez <aldyh@redhat.com>
5178
5179 * doc/md.texi (Standard Names): Fix typo in vec_init description.
5180
5181 2004-05-11 Geoffrey Keating <geoffk@apple.com>
5182
5183 * doc/gty.texi (GTY Options): Clarify example.
5184
5185 2004-05-11 Fariborz Jahanian <fjahanian@apple.com>
5186
5187 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
5188 Add const qualifier to altivec vector type if one is needed.
5189
5190 2004-05-11 Paul Brook <paul@codesourcery.com>
5191
5192 * flags.h (flag_short_enums): Update comment.
5193 * opts.c (decode_options): Set flag_short_enums to 2.
5194 * toplev.c (flag_short_enums): Update comment.
5195 (process_options): Call default_short_enums target hook.
5196
5197 2004-05-11 Andrew Pinski <pinskia@gcc.gnu.org>
5198
5199 PR target/14063
5200 * config/rs6000/altivec.md (altivec_dssall):
5201 Change to unspec_volatile.
5202 (altivec_dss): Likewise.
5203
5204 2004-05-10 Aldy Hernandez <aldyh@redhat.com>
5205
5206 * config/rs6000/altivec.md ("one_cmplv16qi2"): Change vnot to
5207 vnor.
5208 ("one_cmplv8hi2"): Same.
5209 ("one_cmplv4si2"): Same.
5210
5211 2004-05-10 Kaz Kojima <kkojima@gcc.gnu.org>
5212
5213 PR target/15130
5214 * config/sh/sh-protos.h (sh_expand_epilogue): Change prototype.
5215 * config/sh/sh.c (output_stack_adjust): Take the sibcall epilogue
5216 into account. Compute the correct number of general registers
5217 for the return value. Generate a special push/pop sequence when
5218 failing to get a temporary register for non SHmedia epilogue.
5219 (sh_expand_epilogue): Add an argument to show whether it's for
5220 sibcall or not. Set the 3rd argument of output_stack_adjust to
5221 -1 if needed.
5222 (sh_need_epilogue): Call sh_expand_epilogue with 0.
5223 * config/sh/sh.md (sibcall_epilogue): Call sh_expand_epilogue
5224 with 1.
5225 (epilogue): Call sh_expand_epilogue with 0.
5226
5227 2004-05-10 Andrew Pinski <pinskia@physics.uc.edu>
5228
5229 * gcse.c (eliminate_partially_redundant_loads): Instead of returning early,
5230 goto a cleanup label. After the cleanup, free the allocated memory.
5231
5232 2004-05-10 Ziemowit Laski <zlaski@apple.com>
5233
5234 * config/rs6000/altivec.h (vec_sld): Add overloads for
5235 argument/return types of 'vector bool int', 'vector bool short'
5236 and 'vector bool char'.
5237
5238 2004-05-10 Zack Weinberg <zack@codesourcery.com>
5239
5240 * c-decl.c (store_parm_decls_newstyle): Correct test for a
5241 nested function.
5242
5243 2004-05-10 Richard Sandiford <rsandifo@redhat.com>
5244
5245 * read-rtl.c (read_rtx): Allow 's' and 'T' strings to be omitted,
5246 treating missing ones as "".
5247 * config/mips/mips.md: Remove constraints from match_operands and
5248 match_scratches if they appear in define_expands (except reload*),
5249 define_peephole2s, define_splits or attribute specifications.
5250 * config/mips/7000.md, config/mips/sb1.md: Remove match_operand
5251 constraint strings.
5252
5253 2004-05-10 Alan Modra <amodra@bigpond.net.au>
5254
5255 * config/rs6000/rs6000.c (function_arg_boundary): Always align
5256 AltiVec vectors.
5257 (function_arg_advance): Pass TARGET_32BIT -mabi=no-altivec AltiVec
5258 vectors by refererence. Align the same for TARGET_64BIT to a 16
5259 byte boundary. Remove useless code. Add function comment.
5260 (function_arg): Similarly. Move gpr rs6000_mixed_function_arg
5261 call to where it belongs.
5262 (function_arg_partial_nregs): Return true for all TARGET_32BIT
5263 -mabi=no-altivec AltiVec vectors. Fix debug output.
5264 (rs6000_va_arg): Adjust for AltiVec change.
5265
5266 2004-05-10 Paul Brook <paul@codesourcery.com>
5267
5268 * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
5269 * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
5270 (TARGET_DOUBLEWORD_ALIGN): Use it.
5271 (WCHAR_TYPE): Define.
5272 (WCHAR_SIZE_TYPE): Define.
5273 (SIZE_TYPE): Define.
5274
5275 2004-05-10 Alan Modra <amodra@bigpond.net.au>
5276
5277 * config/rs6000/rs6000.c (function_arg_boundary): Align for ABI_V4
5278 when size is 8 bytes.
5279 (function_arg_advance): Account for stack space used by AltiVec
5280 args when -mabi=altivec. Simplify alignment calculations. For
5281 ABI_V4, pass AltiVec vectors by reference when -mabi=no-altivec.
5282 (function_arg): Similarly.
5283 (function_arg_pass_by_reference): True for ABI_V4 AltiVec when
5284 not AltiVec ABI.
5285 (rs6000_va_arg): Correct fp arg test. Adjust for AltiVec change.
5286 Correct alignment, and align before testing reg count. Remove
5287 TREE_THIS_VOLATILE from reg. Don't emit unused labels.
5288 (rs6000_complex_function_value): Check TARGET_HARD_FLOAT and
5289 TARGET_FPRS here..
5290 (rs6000_function_value): .. not here before call.
5291
5292 2004-05-09 Aldy Hernandez <aldyh@redhat.com>
5293
5294 * config/rs6000/spe.md ("tstsflt_gpr"): Fix typo in unspec.
5295
5296 2004-05-09 Zack Weinberg <zack@codesourcery.com>
5297
5298 PR 15007
5299 * c-decl.c (current_file_decl): Rename to all_translation_units,
5300 adjust comment.
5301 (pop_scope): If popping file_scope, construct a
5302 TRANSLATION_UNIT_DECL and make it the context of all the
5303 symbols in the scope.
5304 (push_file_scope): Don't construct a TRANSLATION_UNIT_DECL here.
5305 (pushdecl): Clarify comment. Do not set DECL_CONTEXT of
5306 anything to current_file_decl.
5307 (pushdecl_top_level): Likewise.
5308 (store_parm_decls_newstyle): Adjust check for nested function.
5309 (c_write_global_declarations): Update for renamed variable.
5310
5311 2004-05-09 Aldy Hernandez <aldyh@redhat.com>
5312
5313 * config/rs6000/rs6000-protos.h
5314 (rs6000_conditional_register_usage): Protoize.
5315
5316 * config/rs6000/rs6000.c (rs6000_conditional_register_usage): New.
5317
5318 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Call
5319 function.
5320
5321 2004-05-08 Roger Sayle <roger@eyesopen.com>
5322
5323 * fold-const.c (fold_div_compare): New function to optimize X/C1 op C2
5324 where op is a comparison operator and C1 and C2 are integer constants
5325 into a range check.
5326 (fold): Call fold_div_compare.
5327
5328 2004-05-08 Eric Botcazou <ebotcazou@libertysurf.fr>
5329
5330 * doc/install.texi (sparc-sun-solaris2*): Document bootstrap
5331 problems with earlier versions of the GNU compiler.
5332
5333 2004-05-07 Aldy Hernandez <aldyh@redhat.com>
5334
5335 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_mode_ok_p):
5336 Declare.
5337
5338 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok_p): New.
5339 (rs6000_hard_regno_mode_ok): New.
5340 (rs6000_init_hard_regno_mode_ok): New.
5341 (rs6000_override_options): Call rs6000_init_hard_regno_mode_ok.
5342
5343 * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Use precomputed
5344 result.
5345
5346 2004-05-07 Ziemowit Laski <zlaski@apple.com>
5347
5348 * config/rs6000/altivec.h (vector, pixel, bool): Do not
5349 define as macros #ifdef __APPLE_ALTIVEC__.
5350
5351 2004-05-07 Fariborz Jahanian <fjahanian@apple.com>
5352
5353 * config/rs6000/rs6000.c (rs6000_mixed_function_arg):
5354 Generate appropriate parallels for vector arguments
5355 passed to vararg functions. (function_arg): make the call
5356 to rs6000_mixed_function_arg for vector args as needed.
5357
5358 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
5359
5360 * config/mips/mips.c (mips_va_arg): Fix calculation of osize for
5361 EABI_FLOAT_VARARGS_P.
5362
5363 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
5364
5365 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY): Remove TARGET_MIPS5500.
5366 * config/mips/mips.c (override_options): Disable branch likely
5367 instructions if TUNE_MIPS5500.
5368
5369 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
5370
5371 * config/mips/mips.c (override_options): Allow the hi and lo registers
5372 to store any integral mode, not just MODE_INTs.
5373
5374 2004-05-07 Paul Brook <paul@codesourcery.com>
5375
5376 * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
5377 * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
5378 (TARGET_DOUBLEWORD_ALIGN): Use it.
5379 (WCHAR_TYPE): Define.
5380 (WCHAR_SIZE_TYPE): Define.
5381 (SIZE_TYPE): Define.
5382
5383 2004-05-07 Uros Bizjak <uros@kss-loka.si>
5384
5385 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Use
5386 testb $4, %ah insn instead of sahf insn if !TARGET_USE_SAHF.
5387
5388 2004-05-07 Andrew Pinski <pinskia@physics.uc.edu>
5389
5390 * loop-doloop.c (doloop_valid_p): Make sure that body
5391 gets freed.
5392
5393 2004-05-07 Eric Botcazou <ebotcazou@act-europe.fr>
5394
5395 * config/sparc/sparc-protos.h (sparc_skip_caller_unimp): New
5396 declaration.
5397 * config/sparc/sparc.c (SKIP_CALLERS_UNIMP_P): Delete.
5398 (sparc_skip_caller_unimp): New global variable.
5399 (sparc_function_epilogue): Set 'sparc_skip_caller_unimp'.
5400 Use it instead of SKIP_CALLERS_UNIMP_P.
5401 * config/sparc/sparc.md (call expander): Add sanity check.
5402 (call_address_struct_value_sp32): Re-sync with expander.
5403 (call_symbolic_struct_value_sp32): Likewise.
5404 (return peepholes): Use 'sparc_skip_caller_unimp' instead
5405 of custom predicate.
5406
5407 2004-05-07 Eric Botcazou <ebotcazou@libertysurf.fr>
5408
5409 PR c++/14962
5410 * c-pragma.c (handle_pragma_redefine_extname): Only change
5411 the assembler name of FUNCTION_DECLs and VAR_DECLs.
5412
5413 2004-05-07 Uros Bizjak <uros@kss-loka.si>
5414
5415 * optabs.h (enum optab_index): Add new OTI_log1p.
5416 (log1p_optab): Define corresponding macro.
5417 * optabs.c (init_optabs): Initialize log1p_optab.
5418 * genopinit.c (optabs): Implement log1p_optab using log1p?f2
5419 patterns.
5420 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG1P{,F,L}
5421 using log1p_optab.
5422 (expand_builtin): Expand BUILT_IN_LOG1P{,F,L} using
5423 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
5424
5425 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2XP1.
5426
5427 * config/i386/i386.c (ix86_emit_i387_log1p): New function.
5428 * config/i386/i386-protos.h (ix86_emit_i387_log1p):
5429 Prototype here.
5430 * config/i386/i386.md (UNSPEC_FYL2XP1): New unspec to represent
5431 x87's fyl2xp1 instruction.
5432 (*fyl2x_xf3): Rename insn definition to fyl2x_xf3.
5433 (fyl2xp1_xf3): New pattern to implement fyl2xp1 x87 instruction.
5434 (log1psf2, log1pdf2, log1pxf2): New expanders to implement log1pf,
5435 log1p and log1pl built-ins as inline x87 intrinsics.
5436
5437 2004-05-07 Loren James Rittle <ljrittle@acm.org>
5438
5439 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Proper redefinition.
5440 * config/arm/freebsd.h: Likewise.
5441 * config/ia64/freebsd.h: Likewise.
5442 * config/sparc/freebsd.h: Likewise.
5443
5444 2004-05-07 Hans-Peter Nilsson <hp@axis.com>
5445
5446 PR optimization/15296
5447 * reorg.c (fill_simple_delay_slots): Use next_real_insn when
5448 getting last consecutive label at a branch.
5449 (relax_delay_slots): Similar, near top of loop.
5450
5451 2004-05-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5452
5453 PR target/15202
5454 * pa.md (movdi, movsi, movhi, movqi): Support move from shift amount
5455 register to general register.
5456
5457 2004-05-07 Alan Modra <amodra@bigpond.net.au>
5458
5459 * config/rs6000/rs6000.h (STACK_BOUNDARY): Use 128 bit for either
5460 TARGET_ALTIVEC or TARGET_ALTIVEC_ABI.
5461 * config/rs6000/sysv4.h (ABI_STACK_BOUNDARY): Likewise.
5462 (STACK_BOUNDARY): Delete.
5463
5464 2004-05-06 Stuart Hastings <stuart@apple.com>
5465
5466 * gcc/doc/invoke.texi: Restore -fgcse-after-reload doc from 1.421,
5467 mistakenly clobbered by 1.423.
5468
5469 2004-05-06 Richard Sandiford <rsandifo@redhat.com>
5470
5471 * doc/invoke.texi: Document -mvr4130-align.
5472 * config/mips/mips.h (MASK_VR4130_ALIGN, TARGET_VR4130_ALIGN)
5473 (TUNE_MIPS4120, TUNE_MIPS4130): New macros.
5474 (TUNE_MACC_CHAINS): Include TUNE_MIPS4120 and TUNE_MIPS4130.
5475 (TARGET_SWITCHES): Add -mvr4130-align and -mno-vr4130-align.
5476 * config/mips/mips.md: Include sched-int.h.
5477 (USEFUL_INSN_P, SEQ_BEGIN, SEQ_END, FOR_EACH_SUBINSN): New macros.
5478 (mips_rtx_costs): Set integer multiplication costs for TUNE_MIPS4130.
5479 (override_options): Enable -mvr4130-align at -O3 and above.
5480 (mips_sim_insn): New variable.
5481 (mips_sim): New structure.
5482 (mips_sim_reset, mips_sim_init, mips_sim_next_cycle, mips_sim_wait_reg)
5483 (mips_sim_wait_regs_2, mips_sim_wait_regs_1, mips_sim_wait_regs)
5484 (mips_sim_wait_units, mips_sim_wait_insn, mips_sim_record_set)
5485 (mips_sim_issue_insn, mips_sim_issue_nop, mips_sim_finish_insn)
5486 (vr4130_avoid_branch_rt_conflict, vr4130_align_insns): New functions.
5487 (mips_reorg): Call vr4130_align_insns.
5488 (vr4130_last_insn): New variable.
5489 (vr4130_true_reg_dependence_p_1, vr4130_true_reg_dependence_p)
5490 (vr4130_swap_insns_p, vr4130_reorder): New functions.
5491 (mips_sched_reorder, mips_variable_issue): Hook in vr4130 code.
5492 (mips_issue_rate): Return 2 for PROCESSOR_R4130.
5493 (mips_use_dfa_pipeline_interface): Return true for the same.
5494 * config/mips/4130.md: New file.
5495 * config/mips/mips.md: Include it. Add a peephole2 to convert
5496 "mult;mflo" into "mtlo;macc".
5497 (*macc, *umul_acc_di, *smul_acc_di): Use $1 rather than $0 as the
5498 target of maccs.
5499 (*msac_using_macc): New pattern.
5500
5501 2004-05-06 Richard Sandiford <rsandifo@redhat.com>
5502
5503 * config/mips/5500.md (ir_vr55_store): Set latency to 0.
5504 (ir_vr55_hilo): Split into...
5505 (ir_vr55_mfhilo, ir_vr55_mthilo): ...these new reservations.
5506 (ir_vr55_imul_si, ir_vr55_imadd): Change latency to 5.
5507 (ir_vr55_imul_di): Change latency to 9. Reserve vr55_mac for 4 cycles.
5508 Add various multiplication bypasses.
5509 * config/mips/mips.c (mips_rtx_costs): Adjust VR5500 costs for integer
5510 multiplication.
5511
5512 2004-05-06 Uros Bizjak <uros@kss-loka.si>
5513
5514 * config/i386/i386.md (*fscalexf4): Correct insn "mode"
5515 attribute to "XF".
5516
5517 2004-05-05 Uros Bizjak <uros@kss-loka.si>
5518
5519 * optabs.h (enum optab_index): Add new OTI_fmod and OTI_drem.
5520 (fmod_optab, drem_optab): Define corresponding macros.
5521 * optabs.c (init_optabs): Initialize fmod_optab and drem_optab.
5522 * genopinit.c (optabs): Implement fmod_optab and drem_optab
5523 using fmod?f3 and drem?f3 patterns.
5524 * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_FMOD{,F,L}
5525 using fmod_optab and BUILT_IN_DREM{,F,L} using drem_optab.
5526 (expand_builtin): Expand BUILT_IN_FMOD{,F,L} and
5527 BUILT_IN_DREM{,F,L} using expand_builtin_mathfn_2 if
5528 flag_unsafe_math_optimizations is set.
5529
5530 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FPREM_F,
5531 UNSPEC_FPREM_U, UNSPEC_FPREM1_F and UNSPEC_FPREM1_U.
5532
5533 * config/i386/i386.c (ix86_emit_fp_unordered_jump): New function.
5534 * config/i386/i386-protos.h (ix86_emit_fp_unordered_jump):
5535 Prototype here.
5536 * config/i386/i386.md (UNSPEC_FPREM_F, UNSPEC_FPREM_U,
5537 UNSPEC_FPREM1_F, UNSPEC_FPREM1_U): New unspecs to represent x87's
5538 fprem and fprem1 instructions.
5539 (*x86_fnstsw_1): Change input parameter to (reg:CCFP 18).
5540 Rename insn definition to x86_fnstsw_1.
5541 (fpremxf4, fprem1xf4): New patterns to implement fprem and fprem1
5542 x87 instructions.
5543 (fmodsf3, fmoddf3, fmodxf3): New expanders to implement fmodf, fmod
5544 and fmodl built-ins as inline x87 intrinsics.
5545 (dremsf3, dremdf3, dremxf3): New expanders to implement dremf, drem
5546 and dreml built-ins as inline x87 intrinsics.
5547
5548 2004-05-05 Roger Sayle <roger@eyesopen.com>
5549
5550 * reload1.c (inherit_piecemeal_p): Mark parameters potentially unused.
5551
5552 2004-05-05 Ian Lance Taylor <ian@wasabisystems.com>
5553
5554 PR driver/9822
5555 * doc/invoke.texi (Spec Files): Remove documentation of %c.
5556
5557 2004-05-05 Chris Demetriou <cgd@broadcom.com>
5558
5559 * config/mips/mips.md: Update the msub define_split for new mflo/mfhi
5560 representation.
5561
5562 2004-05-06 Paul Brook <paul@codesourcery.com>
5563
5564 * config/arm/arm-protots.h (vfp_mem_operand): Rename ...
5565 (arm_coproc_mem_operand): ... To this.
5566 * config/arm/arm.c (arm_legitimate_address_p): Allow ldrd modes.
5567 (arm_legitimate_index_p): Ditto.
5568 (vfp_mem_operand): Rename ...
5569 (arm_coproc_mem_operand): ... To this. Handle writeback modes.
5570 (vfp_secondary_reload_class): Use it.
5571 (output_move_double): Use doubleword load/store instructions.
5572 (arm_hard_regno_mode_ok): Only allow even reg pairs for ldrd.
5573 * config/arm/arm.h (TARGET_LDRD): Define.
5574 (EXTRA_CONSTRAINT_STR_ARM): Add 'Uy'.
5575 * config/gcc/arm/arm.md (arm_movdi): Allow all valid memory operands.
5576 New splitter for invalid doubleword loads.
5577 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Use Uy constraint.
5578 * config/arm/vfp.md (arm_movdi_vfp): Allow all valid memory operands.
5579 * doc/md.texi: Document Uy constraint.
5580
5581 2004-05-05 Jan Hubicka <jh@suse.cz>
5582
5583 PR opt/14980
5584 * cgraphunit.c (cgraph_remove_unreachable_nodes): Deal properly with
5585 inline clones.
5586
5587 2004-05-05 H.J. Lu <hongjiu.lu@intel.com>
5588
5589 PR target/15290
5590 * config/i386/i386.c (ix86_split_to_parts): Use real_to_target
5591 instead of REAL_VALUE_TO_TARGET_LONG_DOUBLE.
5592
5593 2004-05-05 Mike Stump <mrs@apple.com>
5594
5595 * config/darwin-c.c (add_framework): Copy the directory name as it
5596 can be freed later. Also, ensure we always allocate enough room
5597 for the cached framework information.
5598 (find_subframework_header): Keep track of the directory where the
5599 subframework header was found.
5600 (framework_construct_pathname): Speed up by not trying to re-add a
5601 framework.
5602 * cppfiles.c (search_path_exhausted): Arrange for the missing
5603 header callback to be able to set the directory where the header
5604 was found.
5605 (cpp_get_dir): Add.
5606 * cpplib.h (missing_header_cb): Add a parameter.
5607 (cpp_get_dir): Add.
5608
5609 2004-05-03 Mike Stump <mrs@apple.com>
5610
5611 * doc/invoke.texi (Directory Options): Document -iquote.
5612 * doc/cpp.texi: Likewise.
5613 * doc/cppopts.texi: Likewise.
5614 * c-opts.c (c_common_missing_argument): Add -iquote processing.
5615 (c_common_handle_option): Likewise.
5616 * c.opt (iquote): Add.
5617 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -iquote.
5618 * c-incpath.c (merge_include_chains): Update comment to use -iquote.
5619
5620 * c-opts.c (case OPT_I): Deprecate -I- support.
5621 * doc/invoke.texi: Likewise.
5622 * doc/cpp.texi: Likewise.
5623 * doc/cppopts.texi: Likewise.
5624
5625 2004-05-05 Steven Bosscher <stevenb@suse.de>
5626
5627 * basic-block.h (free_basic_block_vars): Update prototype.
5628 * flow.c (free_basic_block_vars): Remove the keep_head_end_p
5629 argument.
5630 (life_analysis): Update call.
5631 * ifcvt.c (if_convert): Likewise.
5632 * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
5633 * passes.c (rest_of_handle_final): Likewise.
5634 (rest_of_compilation): Likewise.
5635 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
5636
5637 * emit-rtl.c (next_real_insn): Use INSN_P.
5638 (prev_real_insn): Likewise.
5639
5640 2004-05-05 Eric Christopher <echristo@redhat.com>
5641
5642 * config/mips/mips.md: Update the madd define_split for new mflo/mfhi
5643 representation.
5644
5645 2004-05-05 Paolo Bonzini <bonzini@gnu.org>
5646
5647 * config/rs6000/rs6000.c (build_opaque_vector_type):
5648 New function.
5649 (rs6000_init_builtins): Use it.
5650
5651 2004-05-04 Bernard Giroud <bgiroud2@free.fr>
5652
5653 * gcc/gcc/vmsdbgout.c (vms_func_node, vms_func_ref): New.
5654 (func_table): Change type from char ** to vms_func_ref.
5655 (write_rtnbeg): Update to reflect func_table change. Use
5656 fde->funcdef_number instead of rtnnum in output.
5657 (write_rtnend, vmxdbgout_begin_function, vmsdbgout_init): Likewise.
5658
5659 2004-05-04 Paolo Bonzini <bonzini@gnu.org>
5660 Richard Henderson <rth@redhat.com>
5661
5662 PR target/14899
5663
5664 * c-common.c (vector_types_convertible_p): New function.
5665 * c-typeck.c (comptypes): Recurse on vector types.
5666 (convert_for_assignment): Use vector_types_convertible_p.
5667 (digest_init): Use vector_types_convertible_p to check
5668 validness of constant vector initializers; otherwise treat
5669 them as scalars.
5670 * tree.c (make_or_reuse_type): New.
5671 (build_common_tree_nodes): Use it.
5672 * cp/call.c (standard_conversion): Likewise.
5673 * cp/typeck.c (comptypes): Recurse on vector types.
5674 (convert_for_assignment): Use vector_types_convertible_p.
5675
5676 2004-05-04 Chris Demetriou <cgd@broadcom.com>
5677
5678 * config/mips/mips.c (override_options): Default to no
5679 generation of branch-likely operations when tuning for
5680 CPUs where they tend to have a negative performance impact
5681 (e.g., SB-1).
5682
5683 2004-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5684
5685 * expr.c (store_constructor_field): Don't call store_constructor
5686 if bitsize is not a multiple of a byte.
5687
5688 2004-05-04 Richard Sandiford <rsandifo@redhat.com>
5689
5690 * reload1.c (inherit_piecemeal_p): New function.
5691 (emit_reload_insns): When reloading a group of hard registers, use
5692 inherit_piecemeal_p to decide whether the values of individual hard
5693 registers can be inherited.
5694
5695 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
5696
5697 * config/ia64/t-ia64 (LIB2ADDEH): Remove gthr-gnat.c.
5698 * config/s390/t-tpf (LIB2ADDEHDEP): Likewise.
5699 * config/t-linux (LIB2ADDEHDEP): Likewise.
5700
5701 2004-05-04 Paul Brook <paul@codesourcery.com>
5702
5703 * config/arm/crti.asm: Push an even number of registers.
5704 * config/arm/crtn.asm: And restore them. Load via sp.
5705
5706 2004-05-04 Paolo Bonzini <bonzini@gnu.org>
5707
5708 * ggc-zone.c (ggc_alloc_zone_1): Add MEM_STAT_DECL parameter.
5709 Collect overhead information.
5710 (ggc_alloc_stat): New name of ggc_alloc. Add MEM_STAT_DECL
5711 parameter and pass it through.
5712 (ggc_alloc_typed_stat): New name of ggc_alloc_typed. Add
5713 MEM_STAT_DECL parameter and pass it through.
5714 (ggc_alloc_zone_stat): New name of ggc_alloc_zone. Add
5715 MEM_STAT_DECL parameter and pass it through.
5716
5717 2004-05-03 Aldy Hernandez <aldyh@redhat.com>
5718
5719 * config/rs6000/rs6000-protos.h: Protoize rs6000_hard_regno_nregs.
5720
5721 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): New.
5722
5723 * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Call
5724 rs6000_hard_regno_nregs.
5725
5726 2004-05-03 Eric Christopher <echristo@redhat.com>
5727
5728 * config/s390/s390.c (s390_emit_prologue): Call unspec tpf
5729 prologue insn instead of setting up call.
5730 (s390_emit_epilogue): Ditto.
5731 * config/s390/s390.md (prologue_tpf, epilogue_tpf): New patterns.
5732 (define_constants): Add numbers for above patterns.
5733
5734 2004-05-03 Eric Christopher <echristo@redhat.com>
5735
5736 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Move body...
5737 * config/s390/s390.c (s390_conditional_register_usage): ...here.
5738 * config/s390/s390-protos.h: Prototype.
5739
5740 2004-05-03 Joe Buck <jbuck@welsh-buck.org>
5741
5742 * cppfiles.c (pchf_adder): Eliminate use of |= in d->have_once_only
5743 assignment.
5744
5745 2004-05-03 Eric Christopher <echristo@redhat.com>
5746
5747 * config/mips/mips.md: Fix branch length attribute definition.
5748
5749 2004-05-03 Aldy Hernandez <aldyh@redhat.com>
5750
5751 * config.gcc: Remove --enable-altivec support.
5752
5753 * config/rs6000/altivec-defs.h: Remove.
5754
5755 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5756
5757 * fixinc/inclhack.def (svr4_profil): Don't apply on IRIX 5/6.
5758 * fixinc/fixincl.x: Regenerate.
5759
5760 2004-05-03 Uros Bizjak <uros@kss-loka.si>
5761
5762 * config/i386/i386.md (*fyl2x_sfxf3, *fyl2x_dfxf3): Remove insn
5763 definition.
5764 (log?f2, log10?f2, log2?f2): Reimplement expanders with
5765 float_truncate insn.
5766 (*fxtractsf3, *fxtractdf3): Remove insn definition.
5767 (logb?f2): Reimplement expanders with float_truncate insn.
5768
5769 2004-05-03 Graham Stott <graham.stott@btinternet.com>
5770
5771 PR 14718
5772 * dwarf2out.c (dwarf2out_imported_module_or_decl): Use
5773 force_type_die for CONST_DECL.
5774
5775 2004-05-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5776 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5777
5778 * config.gcc (sparc64-*-solaris2*, sparcv9-*-solaris2*): Add
5779 tm-dwarf2.h to tm_file.
5780 (sparc-*-solaris2*): Add tm-dwarf2.h to tm_file for Solaris 7+.
5781 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Delete.
5782 (ASM_DEBUG_SPEC): Delete.
5783
5784 2004-05-03 Uros Bizjak <uros@kss-loka.si>
5785
5786 * optabs.h (enum optab_index): Add new OTI_expm1.
5787 (expm1_optab): Define corresponding macro.
5788 * optabs.c (init_optabs): Initialize expm1_optab.
5789 * genopinit.c (optabs): Implement expm1_optab using expm1?f2
5790 patterns.
5791 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXPM1{,F,L}
5792 using expm1_optab.
5793 (expand_builtin): Expand BUILT_IN_EXPM1{,F,L} using
5794 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
5795
5796 * config/i386/i386.md (expm1df2, expm1sf2, expm1xf2): New expanders
5797 to implement expm1, expm1f and expm1l built-ins as inline x87
5798 intrinsics.
5799
5800 2004-05-02 Alexandre Oliva <aoliva@redhat.com>
5801
5802 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
5803 * config/frv/frv.md (*return_true, *return_false): New patterns.
5804
5805 2004-05-02 Kazu Hirata <kazu@cs.umass.edu>
5806
5807 * rtl.h (PHI_NODE_P): Remove.
5808
5809 2004-05-02 Eric Botcazou <ebotcazou@act-europe.fr>
5810
5811 PR middle-end/14988
5812 * function.c (assign_stack_local_1): Use BITS_PER_UNIT alignment
5813 when passed -2 as 'align'.
5814 (put_var_into_stack): Use 'bool' as the type for the three local
5815 predicates. Adjust calls to put_reg_into_stack.
5816 When passed a CONCAT, instruct put_reg_into_stack to use
5817 a consecutive stack slot for the second part.
5818 (put_reg_into_stack): Remove 'promoted_mode' parameter, add
5819 'consecutive_p' parameter. Turn the three predicates into 'bool'
5820 parameters. Retrieve the register mode from 'reg'.
5821 When consecutive_p is true, instruct assign_stack_local_1 to use
5822 BITS_PER_UNIT alignment.
5823 (put_addressof_into_stack): Use 'bool' as the type for the two
5824 local predicates. Adjust call to put_reg_into_stack.
5825
5826 2004-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5827
5828 * fold-const.c (fold_convert_const, fold): Add missing
5829 FIX_ROUND_EXPR case.
5830
5831 2004-05-02 Alexandre Oliva <aoliva@redhat.com>
5832
5833 * configure.ac (FLEX, BISON): Only use tools from the build tree
5834 if build equals host.
5835 * configure: Rebuilt.
5836
5837 * config/frv/frv-protos.h (frv_expand_epilogue,
5838 frv_expand_fdpic_call): Add bool argument.
5839 * config/frv/frv.c (frv_function_ok_for_sibcall): New.
5840 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to it.
5841 (frv_expand_epilogue): Use new argument to decide whether to emit
5842 return instruction or copy the return address to LR.
5843 (frv_expand_fdpic_call): Inline PLT entry when emitting direct
5844 sibcalls.
5845 (sibcall_operand): New.
5846 * config/frv/frv.h (PREDICATE_CODES): call_operand doesn't match
5847 PLUS nor LABEL_REF. Add sibcall_operand.
5848 * config/frv/frv.md (call, call_value): Pass false to
5849 frv_expand_fdpic_call.
5850 (call_fdpicdi, call_value_fdpicdi): Insert %i0 in calll.
5851 (sibcall, sibcall_internal, sibcall_fdpicdi, sibcall_value,
5852 sibcall_value_internal, sibcall_value_fdpicdi): New.
5853 (return_unsigned_true, return_unsigned_false): New.
5854 (epilogue): Adjust call to frv_expand_epilogue.
5855 (sibcall_epilogue): New.
5856
5857 * config/frv/frv.h (ASM_SPEC): Pass -mno-fdpic as -mnopic.
5858 (CPP_SPEC, CPP_SIMPLE_SPEC): Undefine __FRV_ACC__ and __FRV_FPR__
5859 before redefining them.
5860
5861 2004-05-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5862
5863 * builtins.c (fold_fixed_mathfn): New function.
5864 (fold_builtin_lround, fold_builtin): Use it.
5865
5866 2004-05-01 Jakub Jelinek <jakub@redhat.com>
5867
5868 * config/sparc/linux64.h (TARGET_DEFAULT): Make 64-bit by default
5869 also for TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc3.
5870
5871 2004-05-01 Kazu Hirata <kazu@cs.umass.edu>
5872
5873 * config/cris/cris.h: Revert my "fix comment typos" patch.
5874
5875 2004-05-01 Richard Sandiford <rsandifo@redhat.com>
5876
5877 * config/mips/mips.h (TUNE_MACC_CHAINS): Fix comment.
5878
5879 2004-05-01 Falk Hueffner <falk@debian.org>
5880
5881 * config/alpha/alpha.md (builtin_insbl, builtin_inswl,
5882 builtin_insll): Disallow 0 as first input operand.
5883
5884 2004-05-01 Falk Hueffner <falk@debian.org>
5885
5886 * config/alpha/alpha.c (alpha_rtx_costs): Fix shiftadd costs.
5887
5888 2004-05-01 Ulrich Weigand <uweigand@de.ibm.com>
5889
5890 PR middle-end/15054
5891 * expr.c (expand_expr_real): Do not call preserve_temp_slots
5892 on a TARGET_EXPR temp.
5893 * function.c (assign_stack_temp_for_type): Set 'keep' flag for
5894 TARGET_EXPR temp slots.
5895
5896 2004-05-01 Paolo Bonzini <bonzini@gnu.org>
5897
5898 * simplify-rtx.c (simplify_ternary_operation): When
5899 converting an IF_THEN_ELSE to a relational op, return
5900 correct mode.
5901
5902 2004-04-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5903
5904 * builtins.c (fold_builtin_round): Fix comment typo.
5905 (fold_builtin_lround): New function.
5906 (fold_builtin): Use it.
5907
5908 2004-04-20 Andrew Pinski <pinskia@physics.uc.edu>
5909
5910 PR target/11608
5911 * config/sh/elf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Update and make it
5912 more like the one in config/dbxelf.h.
5913
5914 2004-04-30 Zack Weinberg <zack@codesourcery.com>
5915
5916 * tree.h (SET_ARRAY_OR_VECTOR_CHECK): Rename to SET_OR_ARRAY_CHECK
5917 and adjust definition accordingly.
5918 (TYPE_DOMAIN): Allow only SET_TYPE and ARRAY_TYPE.
5919 (TYPE_DEBUG_REPRESENTATION_TYPE): Allow only VECTOR_TYPE.
5920 * expr.c (store_constructor): Do not access TYPE_DOMAIN of a
5921 VECTOR_TYPE.
5922
5923 2004-04-30 Jason Merrill <jason@redhat.com>
5924
5925 PR c++/14587
5926 * config/i386/winnt.c (associated_type): Look for attributes on
5927 the TYPE_MAIN_VARIANT of *this.
5928 * attribs.c (decl_attributes): If ATTR_FLAG_TYPE_IN_PLACE, also
5929 apply the attributes to the variants.
5930
5931 2004-04-30 Paul Brook <paul@codesourcery.com>
5932
5933 * config.gcc: Simplify arm --with-{cpu,tune} test.
5934 * config/arm/arm-cores.def: Document whitespace restrictions.
5935
5936 2004-04-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5937
5938 PR other/1963
5939 * config/alpha/osf.h (SWITCHES_NEED_SPACES): Define.
5940
5941 2004-04-30 Brian Ford <ford@vss.fsi.com>
5942 DJ Delorie <dj@redhat.com>
5943
5944 * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
5945 (DWARF2_DEBUGGING_INFO): Define to enable.
5946 (DBX_REGISTER_NUMBER): Define to use the svr4 register map for
5947 DWARF2.
5948 * configure.ac (Target-specific assembler checks)
5949 <i[34567]86-*-[cygwin*|pe|mingw32*]>: New test for .secrel32
5950 relocs.
5951 * configure: Regenerate.
5952 * config.in: Likewise.
5953
5954 * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
5955 (ASM_OUPUT_DWARF_OFFSET): Define.
5956
5957 2004-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
5958
5959 * config/s390/s390-protos.h (s390_emit_epilogue): Parameter added.
5960 (s390_emit_call): New function prototype added.
5961 (s390_tls_get_offset): Function removed.
5962 * config/s390/s390.c (s390_function_ok_for_sibcall,
5963 s390_call_saved_register_used_p): New functions.
5964 (TARGET_FUNCTION_OK_FOR_SIBCALL): Definition of target macro added.
5965 (s390_tls_get_offset): Function merged into s390_emit_tls_call_insn.
5966 (s390_emit_tls_call_insn): New function.
5967 (legitimize_tls_address): Call s390_emit_tls_call_insn instead of
5968 emit_call_insn.
5969 (s390_emit_prologue): Use s390_emit_call instead of emit_call_insn.
5970 (s390_emit_epilogue): Like s390_emit_prologue. Parameter for sibcalls
5971 added.
5972 * config/s390/s390.h (SIBCALL_REGNUM): New macro representing the
5973 register number used to hold the target address for sibcalls.
5974 * config/s390/s390.md ("sibcall", "sibcall_value", "sibcall_epilogue"):
5975 New expanders.
5976 ("*sibcall_br", "*sibcall_brc", "*sibcall_brcl", "*sibcall_value_br",
5977 "*sibcall_value_brc", "*sibcall_value_brcl"): New insns.
5978 ("call_exp", "call_value_exp", "call_value_tls", "call_value_tls_exp"):
5979 Expanders removed.
5980 ("call", "call_value"): Call s390_emit_call to emit the call patterns.
5981 ("*bras", "*brasl", "*bras_r", "*brasl_r", "*bras_tls", "*brasl_tls",
5982 "*basr", "*basr_r", "*basr_tls"): Added constraint: !SIBLING_CALL_P.
5983 ("epilogue"): Changed the call to s390_emit_epilogue to use the
5984 new parameter.
5985
5986 2004-04-30 Kazu Hirata <kazu@cs.umass.edu>
5987
5988 * bb-reorder.c, c-opts.c, cfglayout.c, cgraph.c, cgraphunit.c,
5989 cppfiles.c, fold-const.c, ggc-zone.c, loop-doloop.c, optabs.c,
5990 reg-stack.c, varasm.c, config/alpha/ev4.md,
5991 config/alpha/ev5.md, config/alpha/ev6.md, config/arm/arm.c,
5992 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.c,
5993 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
5994 config/frv/frv.h, config/frv/frv.md, config/h8300/h8300.c,
5995 config/i386/i386.c, config/i386/i386.md, config/i386/winnt.c,
5996 config/ia64/itanium2.md, config/ip2k/ip2k.c,
5997 config/mips/mips.c, config/mips/mips.h, config/mips/sr71k.md,
5998 config/pa/pa.c, config/s390/s390.c, config/sh/sh.c: Fix
5999 comment typos.
6000
6001 2004-04-30 Paul Brook <paul@codesourcery.com>
6002
6003 * config.gcc: Default ep9312 to hard-float.
6004 * config/arm/arm-cores.def: Add ARCH field.
6005 * config/arm/arm.c (FL_FOR_ARCH*): Define.
6006 (arm_arch_cirrus): New variable.
6007 (all_cores): Set and use arch.
6008 (all_architectures): Ditto.
6009 (arm_arch_name): New variable.
6010 (arm_override_options): Set it. Use [SUB]TARGET_CPU_DEFAULT.
6011 Set and use arm_arch_cirrus.
6012 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set arch defines.
6013 (enum processor_type): Update ARM_CORE define.
6014 (enum target_cpus): Add. Replaces TARGET_CPU_* defines.
6015 (CPP_SPEC): Remove %(cpp_cpu_arch).
6016 (CPP_ARCH_DEFAULT_SPEC): Remove.
6017 (CPP_CPU_ARCH_SPEC): Remove.
6018 (EXTRA_SPECS): Don't use CPP_*ARCH*_SPEC.
6019 (FPUTYPE_DEFAULT): Don't define here.
6020
6021 2004-04-30 J"orn Rennecke <joern.rennecke@superh.com>
6022
6023 * flow.c (propagate_one_insn): Call mark_set_regs for stack pointer
6024 updates too.
6025
6026 2004-04-30 Paul Brook <paul@codesourcery.com>
6027
6028 * arm.c (arm_needs_doubleword_align): Use mode alignment.
6029
6030 2004-04-30 Paolo Bonzini <bonzini@gnu.org>
6031
6032 * config/altivec/altivec.h [__cplusplus] (vec_subsubs): Rename to
6033 vec_sububs.
6034 [__cplusplus] (vec_subsuhs): Rename to vec_subuhs, without
6035 duplicates.
6036
6037 2004-04-30 Uros Bizjak <uros@kss-loka.si>
6038
6039 * config/i386/i386.md (atansf2, atandf2, atanxf2): Move near
6040 atan2?f3 expanders.
6041
6042 2004-04-29 Nick Clifton <nickc@redhat.com>
6043
6044 Bug 14093
6045 * config/sh/sh-protos.h (sh_promote_prototypes): Declare.
6046 * config/sh/sh.c (sh_promote_prototypes): Remove declaration.
6047 Delete static from definition.
6048 * config/sh/sh.h (FUNCTION_VALUE): Add sh_promote_prototypes call.
6049
6050 2004-04-30 Uros Bizjak <uros@kss-loka.si>
6051
6052 * reg-stack.c (subst_stack_regs_pat): <UNSPEC_SIN, UNSPEC_COS,
6053 UNSPEC_FRNDINT, UNSPEC_F2XM1>: abort() if src1 dies.
6054 <UNSPEC_SINCOS_COS, UNSPEC_TAN_ONE, UNSPEC_XTRACT_FRACT>: Same.
6055 <UNSPEC_SINCOS_SIN, UNSPEC_TAN_TAN, UNSPEC_XTRACT_EXP>: Same.
6056
6057 2004-04-29 Richard Guenther <richard.guenther@uni-tuebingen.de>
6058
6059 * commom.opt (Wfatal-errors): Add it.
6060 * diagnostic.c (flag_fatal_errors): Define it.
6061 (diagnostic_action_after_output): Check for flag_fatal_errors.
6062 * flags.h (flag_fatal_errors): Declare it.
6063 * opts.c (common_handle_option): Add OPT_Wfatal_errors.
6064 * doc/invoke.texi (Warning Options): Document -Wfatal-errors.
6065
6066 2004-04-30 Josef Zlomek <zlomekj@suse.cz>
6067
6068 * gcse.c (remove_reachable_equiv_notes): Delete notes also in
6069 blocks which have kill flag set.
6070
6071 2004-04-29 Ben Elliston <bje@au.ibm.com>
6072
6073 * configure.ac (--with-as): Abort if user-supplied assembler
6074 cannot be executed.
6075 (--with-ld): Likewise for the linker.
6076 * configure: Regenerate.
6077
6078 2004-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6079
6080 * convert.c (convert_to_integer): Ensure `long_integer_type_node'
6081 isn't NULL before using it.
6082
6083 2004-04-29 Richard Sandiford <rsandifo@redhat.com>
6084
6085 PR target/15189
6086 * config/mips/mips.md (load_df_low): Use default length.
6087 (load_df_high, store_df_high): Likewise.
6088
6089 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
6090
6091 * config/mips/mips.md, config/mips/sb1.md,
6092 config/rs6000/rs6000.c: Fix comment typos.
6093
6094 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
6095
6096 * builtins.c, cgraph.c, cgraphunit.c, final.c, fold-const.c:
6097 Fix comment typos.
6098
6099 2004-04-29 Douglas B Rupp <rupp@gnat.com>
6100
6101 * gcc.c (DELETE_IF_ORDINARY): New macro default definition.
6102 (delete_if_ordinary): Use above macro.
6103 * config/alpha/xm-vms.h (DELETE_IF_ORDINARY): New macro VMS definition.
6104 Update copyright.
6105 * doc/hostconfig.texi (DELETE_IF_ORDINARY): Document new macro.
6106
6107 2004-04-29 Richard Earnshaw <rearnsha@arm.com>
6108
6109 * c-decl.c (get_parm_info): Use the correct tag keywords when
6110 warning about type declarations in prototypes.
6111
6112 2004-04-29 Paul Brook <paul@codesourcery.com>
6113
6114 * config.gcc: Pull list of cores from arm-cores.def.
6115
6116 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
6117
6118 * combine.c (combine_simplify_rtx): Adjust call to use
6119 simplify_relational_operation. Do not use SELECT_CC_MODE
6120 when a comparison already has a MODE_CC mode.
6121
6122 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
6123
6124 (simplify_set): simplify_relational_operation may now
6125 return another relational expression.
6126 * cse.c (fold_rtx): simplify_relational_operation now
6127 takes of computing the comparison mode.
6128 * dojump.c (compare_from_rtx): Use simplify_relational_operation,
6129 remove dead code.
6130 (do_compare_rtx_and_jump): Likewise.
6131 * integrate.c (subst_constants): simplify_relational_operation
6132 may now return another relational expression.
6133 * simplify-rtx.c (simplify_gen_relational): Move most code to
6134 the new simplify_relational_operation and
6135 simplify_relational_operation_1 functions.
6136 (simplify_relational_operation): Rewritten.
6137 (simplify_relational_operation_1): New function.
6138 (simplify_ternary_operation): simplify_relational_operation
6139 may now return another relational expression.
6140 (simplify_rtx): Remove unnecessary temp variable.
6141
6142 2004-04-29 Uros Bizjak <uros@kss-loka.si>
6143
6144 * reg-stack.c (swap_to_top): New function.
6145 (subst_stack_regs_pat): UNSPEC_FPATAN, UNSPEC_FYL2X: Use
6146 swap_to_top().
6147 (subst_stack_regs_pat): UNSPEC_FSCALE: Remove.
6148 (subst_stack_regs_pat): Handle UNSPEC_FSCALE_FRACT and
6149 UNSPEC_FSCALE_EXP.
6150
6151 * config/i386/i386.md (UNSPEC_FSCALE): Remove.
6152 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): Remove insn pattern.
6153 (UNSPEC_FSCALE_FRACT, UNSPEC_FSCALE_EXP): New unspecs to represent
6154 x87's fscale insn.
6155 (*fscalexf4: Define new insn pattern to implement x87 fscale insn.
6156 (exp?f2, exp10?f2, exp2?f2): Use *fscalexf4 and float_truncate
6157 patterns.
6158
6159 2004-04-28 Serge Belyshev <1319@bot.ru>
6160
6161 PR 14944
6162 * coverage.c (read_counts_file): Fix usage of warning () call.
6163 * pretty-print.c (pp_base_format_text): Fix typo in the comment.
6164
6165 2004-04-28 Ben Elliston <bje@au.ibm.com>
6166
6167 * doc/invoke.texi (Objective-C Dialect Options): Don't prefix
6168 options with "-" in the option index.
6169 (SPARC Options): Likewise.
6170 (M32R/D Options): Likewise.
6171
6172 2004-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6173
6174 * convert.c (convert_to_integer): Convert (long)round -> lround,
6175 etc.
6176
6177 2004-04-28 Andrew Pinski <pinskia@physics.uc.edu>
6178
6179 * config/rs6000/rs6000.c (registers_ok_for_quad_peep):
6180 Return false if we do not have fp register.
6181 (addrs_ok_for_quad_peep): Rename to ...
6182 (mems_ok_for_quad_peep): this.
6183 Add check for volatile memory.
6184 * config/rs6000/rs6000-protos.h (addrs_ok_for_quad_peep):
6185 Rename to ...
6186 (mems_ok_for_quad_peep): this.
6187 * config/rs6000/rs6000.md: Change peephole's for lfq/stq
6188 to peephole2's.
6189 (lfq_power2): New instruction.
6190 (stfq_power2): Likewise.
6191
6192 2004-04-28 Jan Hubicka <jh@suse.cz>
6193
6194 PR c/15004
6195 * function.c (do_warn_unused_parameter): Break out form ...
6196 (expand_function_end): ... here; warn only when not using cgraphunit.
6197 * function.h (do_warn_unused_parameter): Declare.
6198 * cgraphunit.c: Include function.h.
6199 (cgraph_finalize_function): Do unused parameter warning.
6200 * Makefile.in (cgraphunit.o): Depend on function.h
6201
6202 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
6203
6204 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Don't condition
6205 calling install-info on $(DESTDIR)$(infodir)/dir already being
6206 present.
6207
6208 2004-04-28 Paul Brook <paul@codesourcery.com>
6209
6210 * dwarf2out.c (mem_loc_descriptor): Handle shifts.
6211
6212 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
6213
6214 * gcse.c (find_moveable_store): Do not accept store insns with
6215 REG_EH_REGION note.
6216
6217 2004-04-28 Paul Brook <paul@codesourcery.com>
6218
6219 * calls.c (precompute_arguments): Remove PROMOTE_FOR_CALL_ONLY.
6220 * function.c (assign_temp): Ditto.
6221 * system.h (PROMOTE_FOR_CALL_ONLY): Poison.
6222
6223 2004-04-28 Paul Brook <paul@codesourcery.com>
6224
6225 * config/arm/lib1funcs.asm: Recognize armv5tej and armv6.
6226
6227 2004-04-28 Josef Zlomek <zlomekj@suse.cz>
6228
6229 * var-tracking.c (variable_different_p): Add a parameter
6230 compare_current_location, compare current location of variable parts
6231 if it is true.
6232 (dataflow_set_different_1): Pass compare_current_location == false.
6233 (dataflow_set_different_2): Pass compare_current_location == false.
6234 (emit_notes_for_differences_1): Pass compare_current_location == true.
6235
6236 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
6237
6238 * config/s390/s390.md ("casesi"): Mark jump table access as
6239 non-trapping and unchanging.
6240
6241 2004-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6242
6243 PR debug/14829
6244 * dwarf2out.c (reg_number): Rename to dbx_reg_number. Adjust all
6245 callers.
6246 (multiple_reg_loc_descriptor, reg_loc_descriptor): Use gcc register
6247 number for indexing hard_regno_nregs array.
6248
6249 2004-04-27 Geoffrey Keating <geoffk@apple.com>
6250
6251 * config/darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
6252 * config/darwin-crt2.c: Only have contents on __ppc__.
6253
6254 2004-04-27 Bob Wilson <bob.wilson@acm.org>
6255
6256 * config/xtensa/xtensa.c (call_insn_operand): Check
6257 SYMBOL_REF_EXTERNAL_P in addition to SYMBOL_REF_LOCAL_P.
6258 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND): Likewise.
6259 * config/xtensa/xtensa.md (call, call_value): Likewise.
6260
6261 2004-04-27 Wu Yongwei <adah@sh163.net>
6262
6263 * gthr-win32.h (__gthread_mutex_t): Change typedef to new structure.
6264 (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
6265 (__gthread_mutex_init_function): Replace CreateMutex with
6266 initialization of custom mutex using CreateSemaphore.
6267 (__gthread_mutex_lock): Use InterlockedIncrement.
6268 (__gthread_mutex_trylock): Use InterlockedCompareExchange.
6269 (__gthread_mutex_unlock): Use InterlockedDecrement and
6270 ReleaseSemaphore to unlock
6271 * config/i386/gthr-win32.c (__gthread_mutex_init_function,
6272 __gthread_mutex_lock, __gthread_mutex_trylock,
6273 __gthread_mutex_unlock): Adjust to match inline versions in
6274 gthr-win32.h.
6275
6276 2004-04-27 Paul Brook <paul@codesourcery.com>
6277
6278 * config/arm/arm.c (arm_promote_prototypes): New function.
6279 (TARGET_PROMOTE_PROTOTYPES): Use it.
6280
6281 2004-04-27 Paul Brook <paul@codesourcery.com>
6282
6283 * config/arm/arm.c (arm_expand_epilogue): Count blocks of 4 regs.
6284
6285 2004-04-26 Bernard Giroud <bgiroud@free.fr>
6286
6287 * config/alpha.c (alpha_end_function): For OpenVMS gas,
6288 correctly output .pdesc directive before .end.
6289
6290 2004-04-26 James E Wilson <wilson@specifixinc.com>
6291
6292 Bug 14927
6293 * config/ia64/ia64.md (movxf): New local op0. Handle case where
6294 operands[0] is a SUBREG. Handle case where operands[1] is a GR reg.
6295
6296 2004-04-26 Zack Weinberg <zack@codesourcery.com>
6297
6298 * config/ia64/hpux.h: Predefine __STDCPP__ when compiling C++.
6299 * config/pa/pa-hpux10.h: Likewise.
6300 * config/pa/pa-hpux11.h: Likewise.
6301
6302 2004-04-26 Geoffrey Keating <geoffk@apple.com>
6303
6304 * doc/invoke.texi (Overall Options): Document default for -o
6305 for PCH files.
6306
6307 2004-04-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6308
6309 * builtins.c (expand_builtin_update_setjmp_buf): New function.
6310 (expand_builtin, case BUILT_IN_UPDATE_SETJMP_BUF): New case.
6311 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): New code.
6312
6313 2004-04-26 Paul Brook <paul@codesourcery.com>
6314
6315 * config/arm/arm.c (arm_legitimate_index_p): Correct iwmmxt offsets.
6316
6317 2004-04-26 Paul Brook <paul@codesourcery.com>
6318
6319 * config/arm/arm.c (arm_legitimate_index_p): Correct maverick offsets.
6320
6321 2004-04-25 Roger Sayle <roger@eyesopen.com>
6322
6323 * fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to
6324 fold (build1 (NEGATE_EXPR, ...)). Optimize X / -1 as -X and
6325 X % -1 as 0.
6326
6327 2004-04-26 Hans-Peter Nilsson <hp@bitrange.com>
6328
6329 PR bootstrap/15141
6330 * except.c (connect_post_landing_pads): Delete insns after the
6331 barrier when generating a unwind_resume_libfunc call.
6332
6333 2004-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6334
6335 PR/c++ 15119
6336 * tree.c (substitute_placeholder_in_expr, case 4): New case,
6337 for TARGET_EXPR.
6338
6339 2004-04-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6340
6341 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
6342 __gcov_execv, __gcov_execvp, __gcov_execve): Do not declare when
6343 inhibit_libc is defined.
6344
6345 2004-04-25 Richard Sandiford <rsandifo@redhat.com>
6346
6347 * config/mips/mips-protos.h (mips_linked_macc_p): Declare.
6348 * config/mips/mips.h (TUNE_MACC_CHAINS): New macro.
6349 * config/mips/mips.c (TARGET_SCHED_REORDER): Define.
6350 (TARGET_SCHED_VARIABLE_ISSUE): Define.
6351 (mips_adjust_cost): Move later in file, next to other sched hooks.
6352 (mips_macc_chains_last_hilo): New variable.
6353 (mips_linked_madd_p, mips_macc_chains_record, mips_macc_chains_reorder)
6354 (mips_promote_ready, mips_sched_reorder, mips_variable_issue): New.
6355 * config/mips/mips.md (may_clobber_hilo): New attribute.
6356
6357 2004-04-24 Roger Sayle <roger@eyesopen.com>
6358 Bruce Korb <bkorb@gnu.org>
6359
6360 * fixinc/inclhack.def (aix_syswait_2): New fix.
6361 * fixinc/fixincl.x: Regenerate.
6362 * fixinc/tests/base/sys/wait.h: Update for new test.
6363
6364 2004-04-24 Alan Modra <amodra@bigpond.net.au>
6365
6366 PR target/14960
6367 * config/rs6000/rs6000.c (rs6000_stack_info): Rename total_raw_size
6368 to non_fixed_size, and leave out fixed_size from the sum.
6369 (generate_set_vrsave): Correct clobbers.
6370 (rs6000_emit_epilogue): Test TARGET_ALTIVEC with TARGET_ALTIVEC_SAVE.
6371 (rs6000_function_value): Test TARGET_ALTIVEC and TARGET_ALTIVEC_ABI.
6372 (rs6000_libcall_value): Likewise.
6373 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Likewise.
6374 (FUNCTION_ARG_REGNO_P): Likewise.
6375
6376 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
6377
6378 * expmed.c (expand_mult_highpart_adjust): Do not assume OP1
6379 is a CONST_INT.
6380 (expand_mult_highpart_optab): Call expand_mult_highpart_adjust
6381 with NARROW_OP1 instead of OP1.
6382
6383 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
6384
6385 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __s390__
6386 and __s390x__ hosts.
6387
6388 2004-03-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6389
6390 * Makefile.in (LIBGCOV): Add _gcov_fork, _gcov_execl, _gcov_execlp,
6391 _gcov_execle, _gcov_execv, _gcov_execvp, _gcov_execve.
6392 * builtin-types.def (BT_PID, BT_PTR_CONST_STRING, BT_FN_PID,
6393 BT_FN_INT_CONST_STRING_PTR_CONST_STRING,
6394 BT_FN_INT_CONST_STRING_PTR_CONST_STRING_PTR_CONST_STRING): New.
6395 * builtins.c (expand_builtin_fork_or_exec): New.
6396 (expand_builtin): Call it.
6397 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP,BUILT_IN_EXECLE,
6398 BUILT_IN_EXECV, BUILT_IN_EXECVP, BUILT_IN_EXECVE, BUILT_IN_FORK): New.
6399 * c-common.c (PID_TYPE): New macro.
6400 (c_common_nodes_and_builtins): Initialize pid_type_node.
6401 * calls.c (special_function_p): Do not handle fork and exec.
6402 (expand_call): Do not handle ECF_FORK_OR_EXEC.
6403 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
6404 __gcov_execv, __gcov_execvp, __gcov_execve): Declare.
6405 * libgcov.c (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
6406 __gcov_execv, __gcov_execvp, __gcov_execve): New.
6407 * tree.h (enum tree_index): Add TI_PID_TYPE.
6408 (pid_type_node): New macro.
6409 (ECF_FORK_OR_EXEC): Removed.
6410
6411 2004-04-23 Eric Botcazou <ebotcazou@libertysurf.fr>
6412
6413 PR optimization/13985
6414 * cfgloopmanip.c (fix_loop_placements): New prototype.
6415 Call fix_bb_placements on the preheader of loops that have
6416 been reparented.
6417 (remove_path): Adjust call to fix_loop_placements.
6418
6419 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
6420
6421 * config/darwin7.h: New file.
6422 * config.gcc (*-*-darwin*): Add darwin7.h if the
6423 version is greater than 6.
6424 * config/darwin.h (TARGET_C99_FUNCTIONS): Define.
6425 (MATH_LIBRARY): Wrap in ifdefs.
6426
6427 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
6428
6429 * config/arm/arm.c (arm_output_epilogue): Reverse the order of
6430 loading iWMMXt registers with a frame pointer. Use post-increment
6431 without a frame pointer.
6432 (arm_expand_prologue): Reverse the order of saving iWMMXt registers.
6433
6434 2004-04-23 Paolo Bonzini <bonzini@gnu.org>
6435
6436 * doc/invoke.texi (Optimize Options): Refer to "unit-at-a-time
6437 mode" rather than "-funit-at-a-time" since -O2 enables it
6438 without requiring -f* options. Refer to -fprofile-generate and
6439 -fprofile-use correctly. Move -funit-at-a-time among options
6440 enabled by -O. Add information about unit-at-a-time caveats.
6441
6442 2004-04-22 Per Bothner <per@bothner.com>
6443
6444 * line-map.h (struct line_maps): New field highest_line.
6445 (linemap_position_for_column): Make non-inline function.
6446 (LINEMAP_POSITION_FOR_COLUMN): New macro.
6447 * line-map.c (linemap_init): Clear highest_line field.
6448 (linemap_add): Set highest_line field.
6449 (linemap_line_start): Minor optimization - use highest_line field.
6450 Reduce maximum column hint to 10000. Update highest_line field.
6451 (linemap_position_for_column): Moved from line-map.h. Optimize a bit.
6452 * cpphash.h (struct cpp_reader): Remove line field - instead use
6453 line_table->highest_line.
6454 (saved_line): Remove unused field.
6455 (CPP_INCREMENT_FILE): Don't do linemap_lookup - just use newest map.
6456 Use line_table's highest_line field instead of cpp_reader's line.
6457 * cpplib.c (start_directive): Likewise use highest_line field.
6458 (do_line, do_linemarker): Likewise just use newest map.
6459 (_cpp_do_file_change): Don't need to set cpp_reader's line field.
6460 * cpperror.c (cpp_error): Likewise use highest_line field.
6461 * cppfiles.c (open_file_failed: Likewise.
6462 (cpp_make_system_header): Likewise use newest map and highest_line.
6463 * cppinit.c (cpp_create_reader): Don't initialize removed field.
6464 * cpplex.c (_cpp_process_line_notes, _cpp_skip_block_comment,
6465 skip_line_comment, skip_whitespace, _cpp_get_fresh_line,
6466 _cpp_lex_direct): Likewise use highest_line.
6467 (_cpp_lex_direct): Use new LINEMAP_POSITION_FOR_COLUMN macro.
6468 * cppmacro.c (_cpp_builtin_macro_text): Likewise use highest_line,
6469 and use newest map.
6470 * cpppch.c (cpp_read_state): Don't save+restore cpp_reader's line.
6471 * cpptrad.c (_cpp_overlay_buffer): Don't save cpp_reader's line.
6472 (copy_comment, _cpp_scan_out_logical_line): Likewise use highest_line.
6473
6474 2004-04-23 Alan Modra <amodra@bigpond.net.au>
6475
6476 PR bootstrap/14992
6477 * gcc.c (init_gcc_specs): Test USE_LD_AS_NEEDED, not HAVE_LD_AS_NEEDED.
6478 * config/linux.h (USE_LD_AS_NEEDED): Define.
6479 * gcc/config/alpha/linux.h (USE_LD_AS_NEEDED): Define.
6480 * gcc/config/arm/linux-elf.h (USE_LD_AS_NEEDED): Define.
6481 * gcc/config/rs6000/linux.h (USE_LD_AS_NEEDED): Define.
6482 * gcc/config/rs6000/linux64.h (USE_LD_AS_NEEDED): Define.
6483 * gcc/config/sh/linux.h (USE_LD_AS_NEEDED): Define.
6484 * gcc/config/sparc/linux.h (USE_LD_AS_NEEDED): Define.
6485 * gcc/config/sparc/linux64.h (USE_LD_AS_NEEDED): Define.
6486
6487 2004-04-22 Per Bothner <per@bothner.com>
6488
6489 * cppinit.c (cpp_read_main_file): Return NULL rather than false.
6490 Fixes PR preprocessor/15067.
6491
6492 2004-04-23 Andreas Schwab <schwab@suse.de>
6493
6494 * config/ia64/ia64intrin.h: Add intermediate cast to void * to
6495 avoid aliasing warning.
6496
6497 2004-04-22 Jan Hubicka <jh@suse.cz>
6498 Mostafa Hagog <mustafa@il.ibm.com>
6499
6500 * cfgloopmanip.c (scale_bbs_frequencies): Use RDIV macro
6501 * cfgloopanal.c (expected_loop_iterations): Change the return value
6502
6503 2004-04-22 Jakub Jelinek <jakub@redhat.com>
6504
6505 * cselib.h (struct elt_loc_list): Remove canon_loc field.
6506 * cselib.c (new_elt_loc_list): Remove canon_loc initialization.
6507 (cselib_invalidate_mem): Remove all canon_loc and canon_x
6508 traces.
6509
6510 2004-04-22 Josef Zlomek <zlomekj@suse.cz>
6511
6512 Revert
6513 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
6514
6515 * var-tracking.c (variable_part_different_p): Variable parts
6516 differ when the most recent locations differ.
6517
6518 2004-04-22 Richard Sandiford <rsandifo@redhat.com>
6519
6520 * doc/invoke.texi: Remove the MIPS -membedded-pic option.
6521 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): Delete.
6522 (embedded_pic_offset): Delete.
6523 * config/mips/mips.h (MASK_EMBEDDED_PIC): Delete. Shuffle other
6524 MASK_* constants.
6525 (TARGET_EMBEDDED_PIC): Delete.
6526 (TARGET_SWITCHES): Remove -m{no-,}embedded-pic.
6527 (ASM_SPEC): Remove -membedded-pic.
6528 (ASM_OUTPUT_ADDR_DIFF_ELT): Remove embedded-pic handling.
6529 (ASM_OUTPUT_CASE_LABEL): Likewise.
6530 * config/mips/vxworks.h (ASM_SPEC): Remove -membedded-pic.
6531 * config/mips/windiss.h (ASM_SPEC): Likewise.
6532 * config/mips/mips.c (struct machine_function): Remove
6533 embedded_pic_fnaddr_rtx.
6534 (TARGET_ENCODE_SECTION_INFO): Remove override.
6535 (embedded_pic_fnaddr_reg, embedded_pic_offset): Delete.
6536 (override_options): Remove -membedded-pic handling.
6537 (print_operand): Remove handling of '%S'.
6538 (mips_select_section: Remove -membedded-pic handling.
6539 (mips_encode_section_info): Delete.
6540 (mips_output_conditional_branch): Remove mention of -membedded-pic.
6541 * config/mips/mips.md (define_attr length, movsi, movdi, jump): Remove
6542 -membedded-pic handling.
6543 (casesi, casesi_internal, casesi_internal_di, get_fnaddr): Delete.
6544
6545 2004-04-22 Alan Modra <amodra@bigpond.net.au>
6546
6547 * var-tracking.c (frame_base_decl): Remove useless GTY.
6548
6549 2004-04-21 Aldy Hernandez <aldyh@redhat.com>
6550
6551 * config/rs6000/rs6000.c (rs6000_override_options): Error when
6552 user wants altivec and e500 instructions.
6553
6554 2004-04-21 H.J. Lu <hongjiu.lu@intel.com>
6555
6556 PR target/14813
6557 * config/ia64/crtend.asm: Move pointer to __do_global_ctors_aux
6558 in .init_array section to ...
6559 * config/ia64/crtbegin.asm: Here.
6560
6561 * config/ia64/crtend.asm: Mark __do_global_ctors_aux global
6562 and hidden if HAVE_INITFINI_ARRAY is defined.
6563
6564 2004-04-21 James E Wilson <wilson@specifixinc.com>
6565
6566 * config/mips/mips-protos.h (fp_register_operand, lo_operand): Declare.
6567 * config/mips/mips.c (mips_multipass_dfa_lookahead): Declare.
6568 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): New.
6569 (fp_register_operand, lo_operand): New.
6570 (mips_rtx_costs): Add TUNE_SB1 support.
6571 (mips_issue_rate): Add comment. Add PROCESSOR_SB1 support.
6572 (mips_use_dfa_pipeline_interface): Add PROCESSOR_SB1 support.
6573 (mips_multipass_dfa_lookahead): New.
6574 * config/mips/mips.h (MASK_FP_EXCEPTIONS, TARGET_FP_EXCEPTIONS,
6575 TUNE_SB1): New.
6576 (TARGET_SWITCHES): Add -mfp-exceptions support.
6577 (TARGET_FP_EXCEPTIONS_DEFAULT): New.
6578 (BRANCH_COST): Fix whitespace.
6579 * config/mips/mips.md: Include sb1.md.
6580 * config/mips/sb1.md: New file.
6581 * doc/invoke.texi: Document -mfp-exceptions.
6582
6583 * Makefile.in (fixinc.sh): Don't set or export WARN_CFLAGS. Fix
6584 comment.
6585 * fixinc/Makefile.in (FL_LIST): Don't mention WARN_CFLAGS.
6586 (fixincl.o-warn): Delete.
6587
6588 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
6589
6590 * config/rs6000/rs6000 (print_operand) ['z']:
6591 Change ifdef of TARGET_MACHO to if TARGET_MACHO.
6592
6593 2004-04-21 Daniel Jacobowitz <drow@mvista.com>
6594
6595 * config.gcc: Support --with-arch=iwmmxt for ARM.
6596
6597 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6598
6599 * expmed.c (expand_mult_highpart_optab): Use narrower version of OP1
6600 in two more places; remove unneeded force_reg
6601
6602 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
6603
6604 * config/rs6000/rs6000.c (symbol_ref_operand): Remove hack
6605 for TARGET_MACHO.
6606 (print_operand): For TARGET_MACHO check to see if we need a stub
6607 and output one if we need it.
6608
6609 PR debug/15033
6610 * dwarf2out.c (rtl_for_decl_location): Check for NULL
6611 rtl.
6612
6613 2004-04-20 James E Wilson <wilson@specifixinc.com>
6614
6615 * config/ia64/ia64.md (call_value_nogp): Add constraints for op0.
6616 (vall_value_gp): Likewise.
6617
6618 2004-04-20 DJ Delorie <dj@redhat.com>
6619
6620 * dwarf2out.c (rtl_for_decl_location): Adjust rtl for byte
6621 variables stored in word registers, then in memory.
6622
6623 2004-04-20 Eric Christopher <echristo@redhat.com>
6624
6625 * cp/parser.c (cp_parser_declaration): Move translate
6626 up before tokens are lexed.
6627
6628 2004-04-20 Uros Bizjak <uros@kss-loka.si>
6629
6630 * optabs.h (enum optab_index): Add new OTI_asin and OTI_acos.
6631 (asin_optab, acos_optab): Define corresponding macros.
6632 * optabs.c (init_optabs): Initialize asin_optab and acos_optab.
6633 * genopinit.c (optabs): Implement asin_optab and acos_optab
6634 using asin?f2 and acos?f2 patterns.
6635 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_ASIN{,F,L}
6636 using asin_optab, and BUILT_IN_ACOS{,F,L} using acos_optab.
6637 (expand_builtin): Expand BUILT_IN_ASIN{,F,L} and BUILT_IN_ACOS{,F,L}
6638 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
6639
6640 * config/i386/i386.md (asindf2, asinsf2, asinxf2, acosdf2,
6641 acossf2, acosxf2): New expanders to implement asin, asinf, asinl,
6642 acos, acosf and acosl built-ins as inline x87 intrinsics.
6643
6644 2004-04-20 Paul Brook <paul@codesourcery.com>
6645
6646 * config/arm/arm.c (arm_legitimate_address_p): Use rtx_equal_p.
6647
6648 2004-04-20 Paul Brook <paul@codesourcery.com>
6649
6650 * config/arm/arm.c (arm_expand_prologue): Fix size calculation.
6651
6652 2004-04-20 Paolo Bonzini <bonzini@gnu.org>
6653
6654 Revert part of 2004-04-17 change that moved -frename-registers
6655 to -O1. -frename-registers is buggy.
6656
6657 * toplev.c (flag_rename_registers): Initialize to 0.
6658 * doc/invoke.texi (Optimize options): Move -frename-registers
6659 to "Not triggered by any -O level" section. Adjust commentary
6660 accordingly.
6661
6662 2004-04-20 Anil Paranjpe <anilp1@kpitcummins.com>
6663
6664 * toplev.c (compile_file): Move targetm.asm_out.file_end call to end.
6665
6666 2004-04-20 Richard Sandiford <rsandifo@redhat.com>
6667
6668 * config/mips/mips.c (mips_legitimize_move): Generate special patterns
6669 for mflo and mfhi instructions.
6670 (mips_output_move): Remove mflo and mfhi handling.
6671 * config/mips/mips.md (UNSPEC_MFHILO): New unspec.
6672 (*mulsidi3_64bit): Update for new mfhi/mflo representation.
6673 Likewise various define_peephole2s.
6674 (*movdi_32bit, *movdi_64bit, *movsi_internal): Merge x<-J and x<-d
6675 alternatives.
6676 (*movdi_64bit, *movdi_64bit_mips16, *mov[shq]i_internal)
6677 (*mov[shq]i_mips16): Remove mflo and mfhi alternatives.
6678 (mfhilo_di, mfhilo_si): New patterns.
6679
6680 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
6681
6682 * function.c (assign_parms): Force
6683 MEM_EXPR (DECL_INCOMING_RTL (parm)) == parm.
6684
6685 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
6686
6687 * var-tracking.c (variable_part_different_p): Variable parts differ
6688 when the most recent locations differ.
6689
6690 2004-04-19 James E Wilson <wilson@specifixinc.com>
6691
6692 * rtl.h (reg_set_last): Delete declaration.
6693 * rtlanal.c (reg_set_last): Delete.
6694
6695 2004-04-19 Roger Sayle <roger@eyesopen.com>
6696
6697 * fold-const.c (fold_convert): Make function extern/public.
6698 * tree.h (fold_convert): Prototype here.
6699 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
6700 expand_builtin_strrchr, expand_builtin_strpbrk,
6701 expand_builtin_mempcpy, expand_builtin_bcopy,
6702 expand_builtin_bzero, expand_builtin_memcmp,
6703 expand_builtin_strcmp, expand_builtin_strncmp,
6704 stabilize_va_list, expand_builtin_sprintf,
6705 fold_trunc_transparent_mathfn, fold_builtin_logarithm,
6706 fold_builtin_exponent, fold_builtin_mempcpy,
6707 fold_builtin_strcpy, fold_builtin_strcmp, fold_builtin_strncmp,
6708 fold_builtin_signbit, fold_builtin_isdigit, fold_builtin): Prefer
6709 fold_convert to "convert" or "fold (build1 (NOP_EXPR, ...))".
6710
6711 2004-04-19 Aldy Hernandez <aldyh@redhat.com>
6712
6713 * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): New constant.
6714 (move_from_CR_gt_bit): New.
6715 (cceq_ior_compare): Name previously unnamed pattern. Disable for
6716 E500.
6717 (cceq_rev_compare): Name previously unnamed pattern. Allow for
6718 E500.
6719
6720 * config/rs6000/spe.md (cmpsfeq_gpr): Rewrite as unspec.
6721 (tstsfeq_gpr): Same.
6722 (cmpsfgt_gpr): Same.
6723 (tstsfgt_gpr): Same.
6724 (cmpsflt_gpr): Same.
6725 (tstsflt_gpr): Same.
6726 (e500_cceq_ior_compare): New.
6727 (e500_flip_gt_bit): New.
6728
6729 * config/rs6000/rs6000.c (ccr_bit): Remove E500 specific code.
6730 (print_operand): Add 'c' and 'D'.
6731 (rs6000_generate_compare): Rewrite to generate correct rtl.
6732 (rs6000_emit_sCOND): Handle E500.
6733 (output_cbranch): Adjust for changes in rs6000_generate_compare.
6734 (output_e500_flip_gt_bit): New.
6735
6736 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit):
6737 Protoize.
6738
6739 2004-04-19 Eric Christopher <echristo@redhat.com>
6740
6741 * config/mips/mips.h (DWARF2_ADDR_SIZE): New.
6742
6743 2004-04-19 David Edelsohn <edelsohn@gnu.org>
6744
6745 * doc/install.texi (*-ibm-aix*): Add AIX 5.1 assembler and archiver
6746 fix information.
6747
6748 2004-04-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6749
6750 * doc/install.texi (Specific, mips-sgi-irix5): Fix IRIX 5.3 IDO
6751 download URL.
6752
6753 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
6754
6755 * stor-layout.c (layout_decl): Check DECL_PACKED before calling
6756 ADJUST_FIELD_ALIGN. Check maximum_field_alignment after.
6757
6758 2004-04-19 Andrew PInski <pinskia@physics.uc.edu>
6759
6760 * builtins.c (fold_builtin_cabs): Remove fndecl parameter.
6761 (fold_builtin): Update caller to match.
6762
6763 PR bootstrap/15009
6764 * bb-reorder.c (fix_up_fall_thru_edges): Init cond_jump.
6765
6766 PR bootstrap/14999
6767 * builtins.c (fold_builtin_cabs): Mark fndecl as unused.
6768
6769 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6770
6771 * varasm.c (compare_constant, case VIEW_CONVERT_EXPR): Add case.
6772
6773 * expmed.c (expand_mult_highpart_adjust): Make OP1 valid for MODE.
6774 (expand_mult_highpart_optab): Likewise.
6775 (expand_mult_highpart): Make OP1 valid for WIDER_MODE, not MODE.
6776
6777 2004-04-19 Paul Brook <paul@codesourcery.com>
6778
6779 * config/arm/arm.md (fixuns_truncsfsi2, fixuns_truncdfsi2,
6780 floatunssisf2, floatunssidf2): New patterns.
6781
6782 2004-04-18 Mark Mitchell <mark@codesourcery.com>
6783
6784 PR other/14918
6785 * doc/invoke.texi (-fprofile-generate): Document requirement to
6786 use -fprofile-generate when linking.
6787
6788 * doc/extend.texi (Strong Using): Warn users against using this
6789 feature.
6790
6791 2004-04-18 Richard Sandiford <rsandifo@redhat.com>
6792
6793 * config/mips/mips-protos.h (m16_usym8_4, m16_usym5_4): Delete.
6794 * config/mips/mips.h (mips_entry, mips_string_length): Delete.
6795 (CONSTANT_POOL_BEFORE_FUNCTION, ASM_OUTPUT_POOL_EPILOGUE): Undefine.
6796 * config/mips/mips.c (struct mips16_constant): Renamed from struct
6797 constant. Propogate change throughout file.
6798 (struct machine_function): Remove insns_len.
6799 (mips_string_length, mips16_strings, string_constants): Delete.
6800 (mips_classify_symbol): Return SYMBOL_CONSTANT_POOL for LABEL_REFs
6801 when generating mips16 code. Remove special mips16 treatment of
6802 string constants.
6803 (mips_symbolic_constant_p): Allow mips16 constant pool accesses
6804 to have the form LABEL+CONSTANT.
6805 (mips_symbolic_address_p): Fix comment.
6806 (m16_usym8_4, m16_usym5_4): Delete.
6807 (mips_output_function_epilogue): Remove mips16 string handling.
6808 (mips_output_mi_thunk): Call mips16_lay_out_constants.
6809 (mips_select_section, mips_encode_section_info): Remove mips16
6810 string handling.
6811 (struct mips16_constant_pool): New.
6812 (add_constant): Take a mips16_constant_pool structure. Keep pool
6813 sorted into order of ascending mode size. Keep track of the highest
6814 possible start address, taking padding and the masking of the base PC
6815 value into account.
6816 (dump_constants_1): New function, split out from dump_constants.
6817 Handle vector constants. Use gen_consttable_{int,float} rather than
6818 separate functions for each mode.
6819 (dump_constants): Simplify. Use GET_MODE_ALIGNMENT. Use gen_align
6820 rather than separate functions for each alignment.
6821 (mips_find_symbol): Delete.
6822 (mips16_insn_length): New function, split out from
6823 mips16_lay_out_constants.
6824 (mips16_rewrite_pool_refs): New function.
6825 (mips16_lay_out_constants): Rework. Remove string handling.
6826 Always create an inline constant pool.
6827 * config/mips/mips.md (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT)
6828 (UNSPEC_ALIGN): New constants.
6829 (UNSPEC_CONSTTABLE_[QHSD]I, UNSPEC_CONSTTABLE_[SD]F): Delete.
6830 (UNSPEC_ALIGN_[248]): Delete.
6831 (consttable_int, consttable_float, align): New patterns.
6832 (consttable_[qhsd]i, consttable_[sd]f, align_[248]): Delete.
6833
6834 2004-04-17 Aldy Hernandez <aldyh@redhat.com>
6835
6836 * config/rs6000/altivec.h (vec_any_numeric): Correct typo in
6837 __unn_args_eq.
6838
6839 2004-04-17 Alan Modra <amodra@bigpond.net.au>
6840
6841 PR target/14715
6842 * config/rs6000/rs6000.c (rs6000_stack_info): Make parm_size agree
6843 with STARTING_FRAME_OFFSET.
6844
6845 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
6846
6847 * config/mips/mips.h (PREDICATE_CODES): Add macc_msac_operand.
6848 * config/mips/mips.c (macc_msac_operand): New function.
6849 * config/mips/mips.md (*msac): Move after *macc.
6850 (*msac2): New. Generalize macc-related peepholes so that they apply
6851 to msac too.
6852
6853 2004-04-17 Paolo Bonzini <bonzini@gnu.org>
6854
6855 * opts.c (decode_options): Do not enable flag_rename_registers
6856 and flag_web at -O3.
6857 * toplev.c (flag_rename_registers): Initialize
6858 flag_rename_registers and flag_web to
6859 AUTODETECT_FLAG_VAR_TRACKING.
6860 (default_debug_hooks): New global.
6861 (process_options): Initialize default_debug_hooks. Warn if
6862 -fvar-tracking specified but not supported by the current
6863 debug format. Do not run var tracking at -O0 or if not
6864 supported by the current debug format, even if
6865 -fvar-tracking was given. If -fno-rename-registers
6866 is not specified, always run register renaming if var
6867 tracking is supported by the default debugging information
6868 format for the target, and we are at -O1 or higher; similarly
6869 for -fweb, but only at -O2 or higher.
6870 * doc/invoke.texi (Optimize Options): Document this.
6871
6872 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
6873
6874 * configure.ac (gcc_cv_ld_as_needed): Use AC_CACHE_CHECK.
6875 * configure: Regenerate.
6876
6877 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
6878
6879 * gcc.c (used_arg): Check whether an option has been removed.
6880
6881 2004-04-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6882
6883 * config.gcc (i[34567]86-*-solaris2*): Default to DWARF-2
6884 debugging on Solaris 7 and up.
6885
6886 2004-04-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6887
6888 * doc/install.texi (Specific, mips-sgi-irix5): Reflect working
6889 IRIX 5 port.
6890 Remove -save-temps workaround, handled automatically.
6891 Require GNU binutils 2.15 for debugging.
6892 Remove SGI make warnings since GNU make is now required.
6893 (Specific, mips-sgi-irix6): Some markup fixes.
6894 Describe MIPSpro C problems and workarounds.
6895 Mention working O32 ABI support.
6896 Recommend GNU as 2.15 for O32 with debugging.
6897 Remove description of fixed structure pass/return bug.
6898
6899 2004-04-16 DJ Delorie <dj@redhat.com>
6900
6901 * sdbout.c (sdbout_one_type): Use TYPE_VALUES for enums, not
6902 TYPE_FIELDS.
6903 (sdbout_finish): Don't free deferred_global_decls; it's GC'd.
6904
6905 2004-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6906
6907 * pa.md: Remove unnecessary declarations for asm_out_file.
6908
6909 * pa64-regs.h (DBX_REGISTER_NUMBER): Simplify and correct mapping of
6910 SAR register. Fix comment.
6911 (ADDITIONAL_REGISTER_NAMES): Correct register number of SAR register
6912 (%cr11).
6913
6914 * pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld.
6915
6916 2004-04-16 Nick Clifton <nickc@redhat.com>
6917
6918 * config/arm/arm.c (arm_override_options): Revert previous patch.
6919 * config/arm/t-xscale-elf: Disable iwmmxt multilibs until they can
6920 be safely built.
6921
6922 2004-04-16 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6923
6924 * config/m32r/m32r.h (BIG_ENDIAN_BIT): Deleted to fix endian
6925 bug.
6926 (TARGET_LITTLE_ENDIAN, TARGET_BIG_ENDIAN,
6927 TARGET_DEFAULT): Changed. Ditto.
6928 (LITTLE_ENDIAN_BIT, TARGET_CPU_DEFAULT,
6929 TARGET_ENDIAN_DEFAULT): Added. Ditto.
6930 * config/m32r/little.h (TARGET_LITTLE_ENDIAN): Deleted.
6931 (TARGET_ENDIAN_DEFAULT): Added.
6932
6933 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6934
6935 * builtins.def (BUILT_IN_ISDIGIT, BUILT_IN_ISXDIGIT): Mark with
6936 ATTR_CONST_NOTHROW_LIST.
6937
6938 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6939
6940 PR/middle-end 14915
6941 * builtins.c (expand_builtin_signbit): Test BYTES_BIG_ENDIAN, not
6942 BITS_BIG_ENDIAN.
6943
6944 2004-04-15 Pat Haugen <pthaugen@us.ibm.com>
6945
6946 * ra-debug.c (ra_print_rtx): Add break's to case legs.
6947
6948 2004-04-14 James E Wilson <wilson@specifixinc.com>
6949
6950 * Makefile.in (fixinc.sh): Set WARN_CFLAGS to empty string.
6951
6952 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
6953
6954 * libada-mk.in: New file.
6955 * configure.ac: Create libada-mk from libada-mk.in.
6956 * configure: Regenerate.
6957
6958 2004-04-14 Uros Bizjak <uros@kss-loka.si>
6959
6960 * optabs.h (enum optab_index): Add new OTI_logb and OTI_ilogb.
6961 (logb_optab, ilogb_optab): Define corresponding macros.
6962 * optabs.c (init_optabs): Initialize logb_optab and ilogb_optab.
6963 * genopinit.c (optabs): Implement logb_optab and ilogb_optab
6964 using logb?f2 and ilogb?i2 patterns.
6965 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOGB{,F,L}
6966 using logb_optab, and BUILT_IN_ILOGB{,F,L} using ilogb_optab.
6967 (expand_builtin): Expand BUILT_IN_LOGB{,F,L} and BUILT_IN_ILOGB{,F,L}
6968 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
6969
6970 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_XTRACT_FRACT
6971 and UNSPEC_XTRACT_EXP.
6972
6973 * config/i386/i386.md (*fxtractdf3, *fxtractsf3, *fxtractxf3): New
6974 patterns to implement fxtract x87 instruction.
6975 (logbdf2, logbsf2, logbxf2, ilogbsi2): New expanders to implement
6976 logb, logbf, logbl, ilogb, ilogbf and ilogbl built-ins as inline x87
6977 intrinsics.
6978 (UNSPEC_XTRACT_FRACT, UNSPEC_XTRACT_EXP): New unspecs to represent
6979 x87's fxtract insn.
6980
6981 2004-04-14 Eric Christopher <echristo@redhat.com>
6982
6983 * config/mips/t-elf: Enable multilibs by default.
6984
6985 2004-04-14 Andreas Tobler <a.tobler@schweiz.ch>
6986
6987 * bb-reorder.c (fix_crossing_conditional_branches): Adjust the
6988 previous fix to check HAVE_return at runtime too.
6989
6990 2004-04-14 Nick Clifton <nickc@redhat.com>
6991
6992 * config/arm/arm.c (arm_override_options): If the user has not
6993 specified an ABI, then default to AAPCS for the iWMMXt processor.
6994 * config/arm/t-xscale-elf: Remove redundant multilib specifications.
6995 * config/arm/t-xscale-coff: Likewise.
6996
6997 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6998
6999 * builtins.c (fold_builtin_isdigit): New.
7000 (fold_builtin): Handle BUILT_IN_ISDIGIT.
7001 * defaults.h: Add TARGET_DIGIT0 and sort.
7002 * doc/tm.texi: Add TARGET_BS and TARGET_DIGIT0.
7003
7004 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7005
7006 * builtins.c (fold_builtin_cabs, fold_builtin): Use
7007 `mathfn_built_in' to determine the new builtin.
7008 * fold-const.c (fold): Likewise.
7009
7010 2004-04-14 Richard Sandiford <rsandifo@redhat.com>
7011
7012 * doc/invoke.texi: Rename MIPS's -mfix-vr4122-bugs to -mfix-vr4120.
7013 * config/mips/mips.h (MASK_FIX_VR4120): Renamed from MASK_FIX_VR4122.
7014 (TARGET_FIX_VR4120): Likewise TARGET_FIX_VR4122.
7015 (TARGET_SWITCHES): Replace -mfix-vr4122-bugs with -mfix-vr4120.
7016 (ASM_SPEC): Update accordingly.
7017 * config/mips/mips.c: Update after above renaming.
7018 * config/mips/mips.md, config/mips/t-vr, config/mips/vr.h: Likewise.
7019 * config/mips/vr4120-div.S: Renamed from vr4122-div.S.
7020
7021 2004-04-13 James E Wilson <wilson@specifixinc.com>
7022
7023 * c-opt.c (c_common_post_options): If this_input_filename is NULL,
7024 increment errorcount and return false instead of true.
7025
7026 2004-04-13 Uros Bizjak <uros@kss-loka.si>:
7027
7028 * optabs.c (expand_twoval_unop): Reorder function arguments.
7029 * builtins.c (expand_builtin_mathfn_3): Update calls to
7030 expand_twoval_unop.
7031
7032 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_TAN_ONE
7033 and UNSPEC_TAN_TAN. Add missing comment.
7034
7035 * config/i386/i386.md (*tandf3_1, *tansf3_1, *tanxf3_1): New
7036 patterns to implement fptan x87 instruction.
7037 (tandf2, tansf2, tanxf2): New expanders to implement tan, tanf
7038 and tanl built-ins as inline x87 intrinsics. Define corresponding
7039 peephole2 optimizers for 'fptan; fstp %st(0); fld1' sequence.
7040 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): New unspecs to represent
7041 x87's fptan insn.
7042
7043 2004-03-13 Richard Henderson <rth@redhat.com>
7044
7045 * bb-reorder.c (fix_crossing_unconditional_branches): Use Pmode
7046 for LABEL_REFs.
7047
7048 * defaults.h (HOT_TEXT_SECTION_NAME): Add leading dot.
7049 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Likewise.
7050 * doc/invoke.texi: Update to match.
7051
7052 * varasm.c (unlikely_text_section): Use assemble_align instead of
7053 ASM_OUTPUT_ALIGN. Use it in the correct place with an approximately
7054 correct alignment argument.
7055
7056 2004-04-13 Ulrich Weigand <uweigand@de.ibm.com>
7057
7058 * reload1.c (emit_reload_insns): Set reg_has_output_reload to one
7059 after setting reg_last_reload_reg for optional output reloads.
7060
7061 2004-04-12 Fariborz Jahanian <fjahanian@apple.com>
7062
7063 * config/rs6000/altivec.h (vec_mergeh, vec_mergel):
7064 Definition of these two macros are corrected by adding
7065 matchine right paren.
7066
7067 2004-04-12 Jonathan Larmour <jifl@eCosCentric.com>
7068
7069 * fix-header.c: kill(), putenv() and tzset() are POSIX not ANSI.
7070
7071 2004-04-12 Roger Sayle <roger@eyesopen.com>
7072
7073 * config/i386/i386.c (output_387_reg_move): New function.
7074 * config/i386/i386-protos.h (output_387_reg_move): Prototype here.
7075 * config/i386/i386.md (*movsf_1, *movsf1_nointerunit,
7076 *movdf_nointeger, *movdf_integer, *movxf_nointeger, *movxf_integer,
7077 *extendsfdf2_1, *extendsfxf2_1, *extenddfxf2_1, truncdfsf2_noop,
7078 truncxfsf2_noop, truncxfdf2_noop): Call output_387_reg_move.
7079
7080 2004-04-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7081
7082 * c-decl.c (finish_decl): Make a decl_stmt for a variable-sized
7083 TYPE_DECL.
7084 * c-semantics.c (genrtl_decl_stmt): Handle TYPE_DECL.
7085 * stmt.c (expand_decl): Remove redundant expansion of TYPE_DOMAIN.
7086 * stor-layout.c (variable_size): Don't check for MINUS_EXPR.
7087 Use skip_simple_arithmetic to find SAVE_EXPR.
7088 (force_type_save_exprs, force_type_save_exprs_1): New functions.
7089 * tree-inline.c (remap_type, case POINTER_TYPE, case REFERENCE_TYPE):
7090 Properly chain multiple pointers.
7091 (copy_tree_r): Copy a TYPE_DECL.
7092 * tree.c (variably_modified_type_p): Add some missing tests and
7093 make some other minor changes.
7094 * tree.h (force_type_save_exprs): New declaration.
7095
7096 2004-04-12 Roger Sayle <roger@eyesopen.com>
7097
7098 * simplify-rtx.c (simplify_binary_operation) <UDIV, DIV, UMOD, MOD>:
7099 Remove fall throughs. Convert 0/x and 0%x into x&0 when x has
7100 side-effects. Don't convert x/1.0 into x if we honor signaling NaNs.
7101 Convert x/-1.0 into -x if we don't honor signaling NaNs. Convert
7102 x/-1 into -x. Optimize x%1 into x&0 if x has side-effects. Optimize
7103 x%-1 into 0 (or x&0 if x has side-effects).
7104
7105 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
7106
7107 * config/rs6000/rs6000.md: Document why a pattern is not
7108 available.
7109
7110 * config/rs6000/rs6000.c (rs6000_emit_cmove): Disable comparisons
7111 of floats on the E500.
7112 (branch_positive_comparison_operator): Do not allow NE even on the
7113 E500.
7114
7115 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
7116
7117 * config/rs6000/rs6000.c (rs6000_assemble_integer): Change
7118 in_text_unlikely_section to in_unlikely_text_section.
7119
7120 2004-04-11 Roger Sayle <roger@eyesopen.com>
7121
7122 * fold-const.c (fold_binary_op_with_conditional_arg): Tweak
7123 calling convention to allow a NULL_TREE to be returned. Factor
7124 sanity checks from callers, return NULL_TREE when appropriate.
7125 (fold): Handle COMPOUND_EXPR operands of binary expressions
7126 before COND_EXPR operands. Use reorder_operands_p(a,b) to check
7127 whether a op (b,c) can be rewritten as (b, a op c). Simplify
7128 calls to fold_binary_op_with_conditional_arg.
7129
7130 2004-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7131
7132 * config/mips/iris5.h (current_section_flags): Add
7133 in_unlikely_executed_text and default case.
7134
7135 2004-04-11 Andreas Tobler <a.tobler@schweiz.ch>
7136
7137 * bb-reorder.c (fix_crossing_conditional_branches): Fix bootstrap
7138 failure on solaris. Place ifdef HAVE_return around gen_ret call.
7139 * cfgrtl.c (force_nonfallthru_and_redirect): Remove ifdef
7140 HAVE_return and place it around the place where it is needed.
7141
7142 2004-04-11 Andrew Pinski <pinskia@physics.uc.edu>
7143
7144 * varasm.c (text_section): Use TEXT_SECTION_ASM_OP and
7145 ASM_OUTPUT_ALIGN instead of SECTION_FORMAT_STRING
7146 and NORMAL_TEXT_SECTION_NAME.
7147 (unlikely_text_section): Check targetm.have_named_sections
7148 instead of TARGET_ASM_NAMED_SECTION and use TEXT_SECTION_ASM_OP
7149 instead of SECTION_FORMAT_STRING.
7150 * config/mips/iris5.h (current_section_name): Add
7151 in_unlikely_executed_text case and move the abort into the switch.
7152 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME): Remove.
7153 (NORMAL_TEXT_SECTION_NAME): Remove.
7154 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
7155 (SECTION_FORMAT_STRING): Remove.
7156 * defaults.h (SECTION_FORMAT_STRING): Remove.
7157 * tm.texi (NORMAL_TEXT_SECTION_NAME): Remove.
7158 (SECTION_FORMAT_STRING): Remove.
7159
7160 2004-04-10 Joseph S. Myers <jsm@polyomino.org.uk>
7161
7162 * c-typeck.c (common_type): Prefer long long to long when same
7163 precision.
7164
7165 2004-04-09 Zack Weinberg <zack@codesourcery.com>
7166
7167 PR 14887
7168 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Look only at
7169 mode argument.
7170 * config/ia64/ia64.c (ia64_hpux_file_end): Check
7171 TREE_SYMBOL_REFERENCED on DECL_ASSEMBLER_NAME, not DECL_NAME.
7172
7173 2004-04-09 Roger Sayle <roger@eyesopen.com>
7174
7175 * simplify-rtx.c (mode_signbit_p): New function to check whether
7176 an RTX is an immediate constant that represents the most significant
7177 bit of a given machine mode.
7178 (simplify_unary_operation) <NOT>: Optimize ~(X+C) as X ^ ~C, where
7179 C is the sign bit.
7180 (simplify_binary_operation) <PLUS>: Optimize (X^C1) + C2 as X^(C1^C2)
7181 when C2 is the sign bit.
7182 (simplify_binary_operation) <XOR>: Canonicalize X^C as X+C when C
7183 is the sign bit. Optimize (X+C1) ^ C2 as X^(C1^C2) when C1 is the
7184 sign bit.
7185
7186 2004-04-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7187
7188 * builtins.c (mathfn_built_in): Check TYPE_MAIN_VARIANT, not
7189 TYPE_MODE.
7190
7191 2004-04-09 Andrew Pinski <pinskia@physics.uc.edu>
7192
7193 * c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead
7194 of TREE_READONLY for types.
7195
7196 2004-04-09 Caroline Tice <ctice@apple.com>
7197
7198 * basic-block.h (struct edge_def): Add new field, crossing_edge.
7199 (struct basic_block_def): Add new field, partition.
7200 (UNPARTITIONED, HOT_PARTITION, COLD_PARTITION): New constant macro
7201 definitions.
7202 (partition_hot_cold_basic_blocks): Add extern function
7203 declaration.
7204 * bb-reorder.c (function.h, obstack.h, expr.h, regs.h): Add four new
7205 include statements.
7206 (N_ROUNDS): Increase the maximum number of rounds by 1.
7207 (branch_threshold): Add array value for new round.
7208 (exec_threshold): Add array value for new round.
7209 (push_to_next_round_p): New function.
7210 (add_unlikely_executed_notes): New function.
7211 (find_rarely_executed_basic_blocks_and_crossing_edges): New function.
7212 (mark_bb_for_unlikely_executed_section): New function.
7213 (add_labels_and_missing_jumps): New function.
7214 (add_reg_crossing_jump_notes): New function.
7215 (fix_up_fall_thru_edges): New function.
7216 (find_jump_block): New function.
7217 (fix_crossing_conditional_branches): New function.
7218 (fix_crossing_unconditional_branches): New function.
7219 (fix_edges_for_rarely_executed_code): New function.
7220 (partition_hot_cold_basic_blocks): New function.
7221 (find_traces): Add an extra round for partitioning hot/cold
7222 basic blocks.
7223 (find_traces_1_round): Add a parameter. Modify to push all cold blocks,
7224 and only cold blocks, into the last (extra) round of collecting traces.
7225 (better_edge_p): Add a parameter. Modify to favor non-crossing edges
7226 over crossing edges.
7227 (bb_to_key): Add code to correctly identify cold blocks when
7228 doing partitioning.
7229 (connect_traces): Modify to connect all the non-cold traces first, then
7230 go back and connect up all the cold traces.
7231 (reorder_basic_blocks): Add call to add_unlikely_executed_notes.
7232 * cfg.c (entry_exit_blocks): Add initialization for partition field in
7233 entry and exit blocks.
7234 * cfgbuild.c (make_edges): Update current_function_has_computed_jump
7235 if we are doing hot/cold partitioning.
7236 * cfgcleanup.c (cfglayout.h): Add new include statement.
7237 (try_simplify_condjump): Modify to not attempt on blocks with jumps
7238 that cross section boundaries.
7239 (try_forward_edges): Likewise.
7240 (merge_blocks_move_predecessor_nojumps): Likewise.
7241 (merge_blocks_move_successor_nojumps): Likewise.
7242 (merge_blocks_move): Likewise.
7243 (try_crossjump_to_edge): Modify to not attempt after we have done
7244 the block partitioning.
7245 (try_crossjump_bb): Modify to not attempt on blocks with jumps that
7246 cross section boundaries.
7247 (try_optimize_cfg): Likewise.
7248 * cfghooks.c (tidy_fallthru_edges): Modify to not remove indirect
7249 jumps that cross section boundaries.
7250 * cfglayout.c (flags.h): Add new include statement.
7251 (update_unlikely_executed_notes): New function.
7252 (fixup_reorder_chain): Add code so when a new jumping basic block is
7253 added, it's UNLIKELY_EXECUTED_CODE and REG_CROSSING_JUMP notes are
7254 updated appropriately.
7255 (duplicate_insn_chain): Add code to duplicate the new NOTE insn
7256 introduced by this optimization.
7257 * cfglayout.h (scan_ahead_for_unlikely_executed_note): Add new
7258 extern function declaration.
7259 * cfgrtl.c (can_delete_note_p): Add NOTE_INSN_UNLIKELY_EXECUTED_CODE to
7260 list of notes that can be deleted.
7261 (create_basic_block_structure): Add initialization for partition field.
7262 (rtl_can_merge_blocks): Modify to test blocks for jumps that cross
7263 section boundaries.
7264 (try_redirect_by_replacing_jump): Modify to not attempt on jumps that
7265 cross section boundaries.
7266 (commit_one_edge_insertion): Add code so newly created basic block
7267 ends up in correct (hot or cold) section. Modify to disallow
7268 insertions before NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
7269 (rtl_verify_flow_info_1): Add code to verify that no fall_thru edge
7270 crosses section boundaries.
7271 (cfg_layout_can_merge_blocks_p): Modify to test blocks for jumps that
7272 cross section boundaries.
7273 (force_nonfallthru_and_redirect): Modify to make sure new basic block
7274 ends up in correct section, with correct notes attached.
7275 * common.opt (freorder-blocks-and-partition): Add new flag for this
7276 optimization.
7277 * dbxout.c (dbx_function_end): Add code to make sure scope labels at
7278 the end of functions are written into the correct (hot or cold)
7279 section.
7280 (dbx_source_file): Add code so writing debug file information
7281 doesn't incorrectly change sections.
7282 * defaults.h (NORMAL_TEXT_SECTION_NAME): New constant macro, for use
7283 in partitioning hot/cold basic blocks into separate sections.
7284 (SECTION_FORMAT_STRING): New constant macro, for linux/i386 hot/cold
7285 section partitioning.
7286 (HAS_LONG_COND_BRANCH): New constant macro, indicating whether or not
7287 conditional branches can span all of memory.
7288 (HAS_LONG_UNCOND_BRANCH): New constant macro, indicationg whether or not
7289 unconditional branches can span all of memory.
7290 * final.c (scan_ahead_for_unlikely_executed_note): New function.
7291 (final_scan_insn): Add code to check for NOTE instruction indicating
7292 whether basic block belongs in hot or cold section, and to make sure
7293 the current basic block is being written to the appropriate section.
7294 Also added code to ensure that jump table basic blocks end up in the
7295 correct section.
7296 * flags.h (flag_reorder_blocks_and_partition): New flag.
7297 * ifcvt.c (find_if_case_1): Modify to not attempt if conversion if
7298 one of the branches has a jump that crosses between sections.
7299 (find_if_case_2): Likewise.
7300 (ifcvt): Modify to not attempt to mark loop exit edges after
7301 hot/cold partitioning has occurred.
7302 * opts.c (decode_options): Code to handle new flag,
7303 flag_reorder_blocks_and_partition; also to turn it off if
7304 flag_exceptions is on.
7305 (common_handle_option): Code to handle new flag,
7306 flag_reorder_blocks_and_partition.
7307 * output.h (unlikely_text_section): New extern function declaration.
7308 (in_unlikely_text_section): New extern function declaration.
7309 * passes.c (rest_of_handle_stack_regs): Add
7310 flag_reorder_blocks_and_partition as an 'or' condition for calling
7311 reorder_basic_blocks.
7312 (rest_of_handle_reorder_blocks): Add flag_reorder_blocks_and_partition
7313 as an 'or' condition for calling reorder_basic_blocks.
7314 (rest_of_compilation): Add call to partition_hot_cold_basic_blocks.
7315 * print-rtl.c (print_rtx): Add code for handling new note,
7316 NOTE_INSN_UNLIKELY_EXECUTED_CODE
7317 * rtl.c (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note insn (see below).
7318 (REG_CROSSING_JUMP): New kind of reg_note, to mark jumps that
7319 cross between section boundaries.
7320 * rtl.h (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note instruction,
7321 indicating the basic block containing it belongs in the cold section.
7322 (REG_CROSSING_JUMP): New type of reg_note, to mark jumps that cross
7323 between hot and cold sections.
7324 * toplev.c (flag_reorder_blocks_and_partition): Add code to
7325 initialize this flag, and to tie it to the command-line option
7326 freorder-blocks-and-partition.
7327 * varasm.c (cfglayout.h): Add new include statement.
7328 (unlikely_section_label_printed): New global variable, used for
7329 determining when to output section name labels for cold sections.
7330 (in_section): Add in_unlikely_executed_text to enum data structure.
7331 (text_section): Modify code to use SECTION_FORMAT_STRING and
7332 NORMAL_TEXT_SECTION_NAME macros.
7333 (unlikely_text_section): New function.
7334 (in_unlikely_text_section): New function.
7335 (function_section): Add code to make sure beginning of function is
7336 written into correct section (hot or cold).
7337 (assemble_start_function): Add code to make sure stuff is written to
7338 the correct section.
7339 (assemble_zeros): Add in_unlikely_text_section as an 'or' condition
7340 to an if statement that was checking 'in_text_section'.
7341 (assemble_variable): Add 'in_unlikely_text_section' as an 'or'
7342 condition to an if statement that was checking 'in_text_section'.
7343 (default_section_type_flags_1): Add check: if in cold section
7344 flags = SECTION_CODE.
7345 * config/darwin.c (darwin_asm_named_section): Modify to use
7346 SECTION_FORMAT_STRING if we are partitioning hot/cold blocks.
7347 * config/i386/i386.h (HAS_LONG_COND_BRANCH): Defined this macro
7348 specifically for the i386.
7349 (HAS_LONG_UNCOND_BRANCH): Defined this macro specifically for the i386.
7350 * config/rs6000/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Change
7351 text string to something more informative.
7352 (NORMAL_TEXT_SECTION_NAME): Add new definition.
7353 (SECTION_FORMAT_STRING): Add new definition.
7354 * config/rs6000/rs6000.c (rs6000_assemble_integer): Add
7355 '!in_unlikely_text_section' as an 'and' condition to an if statement
7356 that was already checking '!in_text_section'.
7357 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME,NORMAL_TEXT_SECTION_NAME,
7358 UNLIKELY_EXECUTED_TEXT_SECTION_NAME,SECTION_FORMAT_STRING): Make
7359 sure these are properly defined for linux on ppc.
7360 * doc/invoke.texi (freorder-blocks-and-partition): Add documentation
7361 for this new flag.
7362 * doc/rtl.texi (REG_CROSSING_JUMP): Add documentation for new
7363 reg_note.
7364 * doc/tm.texi (NORMAL_TEXT_SECTION_NAME, SECTION_FORMAT_STRING,
7365 HAS_LONG_COND_BRANCH, HAS_LONG_UNCOND_BRANCH): Add documentation for
7366 these new macros.
7367
7368 2004-04-08 Roger Sayle <roger@eyesopen.com>
7369
7370 * function.c (gen_mem_addressof): When changing the RTX from a REG
7371 to a MEM, clear MEM_VOLATILE_P which was formerly REG_USERVAR_P.
7372
7373 2004-04-08 Roger Sayle <roger@eyesopen.com>
7374
7375 PR target/14888
7376 * config/i386/i386.md (truncdfsf2_noop, truncxfsf2_noop,
7377 truncxfdf2_noop): Provide dummy "fmov" implementations.
7378
7379 2004-04-08 Ian Lance Taylor <ian@wasabisystems.com>
7380
7381 * gcc.c (default_compilers): Add missing initializers.
7382
7383 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
7384 Return 1 if file was successfully mapped.
7385
7386 2004-04-08 Geoffrey Keating <geoffk@apple.com>
7387
7388 PR pch/13419
7389 PR pch/14137
7390 Radar #: 3315288
7391 * doc/invoke.texi (Precompiled Headers): Suggest -o
7392 to put an output file in a particular place. Be more detailed
7393 about which options affect PCH validity and which options
7394 might not work.
7395 * c-pch.c (pch_matching): New.
7396 (MATCH_SIZE): New.
7397 (struct c_pch_validity): New field 'match'.
7398 (pch_init): Handle pch_matching.
7399 (c_common_valid_pch): Check pch_matching.
7400
7401 * explow.c: Fix typo defining default of PROMOTE_FUNCTION_MODE.
7402
7403 2004-04-08 Mark Mitchell <mark@codesourcery.com>
7404
7405 * doc/invoke.texi (Precompiled Headers): Warn about known
7406 problems.
7407
7408 2004-04-08 Danny Smith <dannysmith@users.sourceforge.net>
7409
7410 PR c++/14808
7411 * defaults.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): New macro. Default
7412 to 1 if ASM_OUTPUT_DEF is defined.
7413 * doc/tm.texi (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document.
7414 * config/i386/cygming.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): Define.
7415 Set to non-zero iff not a one_only decl.
7416
7417 2004-04-08 Paul Brook <paul@codesourcery.com>
7418
7419 * arm.h (CLASS_LIKELY_SPILLED_P): Define.
7420
7421 2004-04-08 Paul Brook <paul@codesourcery.com>
7422
7423 * explow.c (promote_mode): Use PROMOTE_FUNCTION_MODE instead of
7424 PROMOTE_FOR_CALL_ONLY.
7425 * config/arm/arm-protos.h (arm_function_value): Declare.
7426 * config/arm/arm.h (TARGET_PROMOTE_FUNCTION_ARGS): Define.
7427 (TARGET_PROMOTE_PROTOTYPES): Return false.
7428 (arm_function_value): New function.
7429 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Define.
7430 (FUNCTION_VALUE): Call arm_function_value.
7431 * config/cris/cris.h (PROMOTE_MODE): Rename ...
7432 (PROMOTE_FUNCTION_MODE): ... to this.
7433 (PROMOTE_FOR_CALL_ONLY): Remove.
7434 * config/mmix/mmix.h: Likewise.
7435 * config/s390/s390.h: Likewise.
7436 * config/sparc/sparc.h: Likewise.
7437 * config/sparc/sparc.c: Update comments about PROMOTE_MODE.
7438 * doc/tm.texi (PROMOTE_FUNCTION_MODE): Document.
7439 (TARGET_PROMOTE_FUNCTION_MODE, TARGET_PROMOTE_FUNCTION_RETURN): Update.
7440 (PROMOTE_FOR_CALL_ONLY): Remove.
7441
7442 2004-04-08 Joel Sherrill <joel@oarcorp.com>
7443
7444 PR ada/14538
7445 * ada/5rosinte.adb: Remove fake mprotect() body.
7446 * ada/5rosinte.ads: Add SA_SIGINFO.
7447 * ada/5rtpopsp.adb: Rewrite to use new interface.
7448 * ada/init.c: Reorder so the simple single OS conditional __rtems__
7449 is tested before more complex ones which mix UNIX and embedded
7450 systems in the conditional.
7451
7452 2004-04-08 Joel Sherrill <joel@oarcorp.com>
7453
7454 PR ada/14665
7455 * ada/osint.adb (Find_Program_Name): Rework to properly handle
7456 filenames which end in .exe or have versioning suffixes like VMS.
7457
7458 2004-04-08 Andrew Pinski <pinskia@physics.uc.edu>
7459
7460 PR target/10129
7461 * config/darwin.c (darwin_encode_section_info): When the decl has
7462 a DECL_INITIAL, it is only defined also when it is not a common.
7463
7464 2004-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7465
7466 * builtins.c (fold_builtin_isascii, fold_builtin_toascii): New.
7467 (fold_builtin): Handle BUILT_IN_ISASCII and BUILT_IN_TOASCII.
7468
7469 2004-04-07 H.J. Lu <hongjiu.lu@intel.com>
7470
7471 * config/ia64/ia64.c (ia64_encode_section_info): Don't prod
7472 global register variables.
7473
7474 2004-04-07 Joseph S. Myers <jsm@polyomino.org.uk>
7475
7476 * fixinc/inclhack.def (rpc_xdr_lvalue_cast_a,
7477 rpc_xdr_lvalue_cast_b): New fixes.
7478 * fixinc/fixincl.x: Regenerate.
7479 * fixinc/tests/base/rpc/xdr.h: Add new tests.
7480
7481 2004-04-07 David Edelsohn <edelsohn@gnu.org>
7482
7483 * config/rs6000/rs6000.c (processor_target_table): Add MASK_MFCRF
7484 to power4 and power5 entries.
7485
7486 2004-04-06 Geoffrey Keating <geoffk@apple.com>
7487
7488 * c-common.h (pending_lang_change): Mark for PCH.
7489
7490 2004-04-07 Caroline Tice <ctice@apple.com>
7491
7492 * gcc.c (main): Move 'break' in main loops (on an error)
7493 to wait until error processing has occurred.
7494
7495 2004-04-06 Nathanael Nerode <neroden@gcc.gnu.org>
7496
7497 * config.gcc: Stop changing enable_threads midstream.
7498 Replace uses of enable_threads_flag with enable_threads.
7499 * configure.ac: Replace uses of enable_threads_flag with
7500 enable_threads. Improve autoconf quotation in one place.
7501 * configure: Regenerate.
7502
7503 2004-04-06 Uros Bizjak <uros@kss-loka.si>
7504
7505 * builtins.c: Implement support for sincos function.
7506 (expand_builtin_mathfn): Remove BUILT_IN_SIN{,F,L} and
7507 BUILT_IN_COS{,F,L}.
7508 (expand_builtin_mathfn_3): New function.
7509 (expand_builtin): Expand BUILT_IN_SIN{,F,L} and
7510 BUILT_IN_COS{,F,L} using expand_builtin_mathfn_3 if
7511 flag_unsafe_math_optimization is set.
7512
7513 * optabs.h (enum optab_index): Add new OTI_sincos.
7514 (sincos_optab): Define corresponding macro.
7515
7516 * optabs.c (init_optabs): Initialize sincos_optab.
7517 (expand_twoval_unop): New function.
7518
7519 * genopinit.c (optabs): Implement sincos_optab using sincos?f3
7520 patterns.
7521
7522 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_SINCOS_COS
7523 and UNSPEC_SINCOS_SIN.
7524
7525 * config/i386/i386.md (sincosdf3, sincossf3, *sincosextendsfdf3,
7526 sincosxf3): New patterns to implement sincos, sincosf and sincosl
7527 built-ins as inline x87 intrinsics. Define splits for
7528 sindf2, sinsf2, *sinextendsfdf2, sinxf2, cosdf2,
7529 cossf2, *cosextendsfdf2 and cosxf2 patterns from corresponding
7530 sincos patterns.
7531 (sindf2, sinsf2, sinxf2): Rename to *sindf2, *sinsf2, *sinxf2.
7532 (cosdf2, cossf2, cosxf2): Rename to *cosdf2, *cossf2, *cosxf2.
7533
7534 (UNSPEC_SINCOS_SIN, UNSPEC_SINCOS_COS): New unspecs to represent
7535 x87's fsincos insn.
7536
7537 2004-04-06 Devang Patel <dpatel@apple.com>
7538
7539 PR 14467
7540 * config/darwin.h (LINK_COMMAND_SPEC): Use c++filt instead of c++filt3.
7541
7542 2004-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7543
7544 * doc/install.texi: Update HP-UX 11 installation procedure.
7545
7546 2004-04-06 Paul Brook <paul@codesourcery.com>
7547
7548 * doc/sourcebuild.texi: Remove obsolete contraint on testcases.
7549
7550 2004-04-05 Kaz Kojima <kkojima@gcc.gnu.org>
7551
7552 * config/sh/sh.c (prepare_move_operands): Use emit_call_insn
7553 when the TLS address is generated by a function call.
7554 * config/sh/sh.md (tls_global_dynamic): Use a call expression.
7555 (tls_local_dynamic): Likewise.
7556
7557 2004-04-05 Andrew Pinski <pinskia@physics.uc.edu>
7558
7559 * tree.c (reconstruct_complex_type): Use TYPE_READONLY
7560 and TYPE_VOLATILE.
7561
7562 2004-04-05 Caroline Tice <ctice@apple.com>
7563
7564 * gcc.c (combine_flag): New global variable, for new driver option.
7565 (struct compiler): Add two new fields, to be used when
7566 combining multiple input files in a single pass (IMA).
7567 (default_compilers): Add values for the new fields to all
7568 compiler entries. Modify the "@c" compiler entry for doing IMA
7569 properly with "-save-temps" and the "combine" flag.
7570 (option_map): Add new driver option, "--combine", to tell driver
7571 to pass multiple input files to compiler at one time.
7572 (have_o_argbuf_index): New global variable.
7573 (store_arg): Modify to assign value to have_o_argbuf_index.
7574 (struct infile): Add three new fields, to help with IMA.
7575 (display_help): Add help for new "combine" option.
7576 (process_command): Remove local variable have_o; add code to check
7577 for new "combine" option; remove assignment to combine_inputs.
7578 (do_spec_1): Modify to deal with IMA better.
7579 (main): Make variable 'lang_n_infiles' local to entire function
7580 rather than to a single block. Use flag combine_flag to
7581 determine whether to do IMA or not; Modify loop initializing
7582 infiles to deal properly with linker files.
7583 Add code for doing preprocessing in presence of
7584 IMA with "-save-temps" flag. Modify "main" loop to handle
7585 multiple input files, in multiple languages, with or without
7586 preprocessing, gracefully.
7587 * toplev.c (set_src_pwd): Modify to not complain if attempting to
7588 re-set it to same directory it's previously been set to (avoid
7589 irritating, meaningless warning messages when doing IMA with
7590 save-temps).
7591 * doc/invoke.texi: Add "-combine" to list of Overall Options;
7592 remove documentation about IMA that is no longer accurate; Add
7593 documentation explaining what "-combine" does.
7594 * ada/lang-specs.h: Add initialization values for new fields in
7595 "struct compiler".
7596 * cp/lang-specs.h: Likewise.
7597 * f/lang-specs.h: Likewise.
7598 * java/lang-specs.h: Likewise.
7599 * objc/lang-specs.h: Likewise.
7600 * treelang/lang-specs.h: Likewise.
7601
7602 2004-04-05 David Edelsohn
7603
7604 * config/rs6000/rs6000.c (VTABLE_NAME_P): Add _ZTI to special
7605 symbol handling.
7606
7607 2004-04-05 Jakub Jelinek <jakub@redhat.com>
7608 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7609
7610 PR optimization/13424 (hppa), bootstrap/14462, c/14828
7611 * pa.md: Use replace_equiv_address to retain the attributes of the
7612 memory operands used in the split and peephole2 patterns for optimizing
7613 the pre-reload movstrsi, movstrdi, clrstrsi and clrstrdi patterns.
7614
7615 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7616
7617 * c-decl.c (build_compound_literal): Use TYPE_READONLY.
7618 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7619 * objc/objc-act.c (adorn_decl, gen_declspecs): Likewise.
7620 * c-typeck.c (decl_constant_value): Don't access DECL_INITIAL of a
7621 PARM_DECL.
7622 * calls.c (flags_from_decl_or_type): Use TYPE_READONLY and do so only
7623 for a type.
7624 * print-tree.c (print_node): Properly handle side-effects, readonly,
7625 and constant flags.
7626 * tree.c (build1_stat, build_expr_wfl): Only look at TREE_SIDE_EFFECTS
7627 and TREE_CONSTANT if not a type.
7628 * tree.h (IS_NON_TYPE_CODE_CLASS): New macro.
7629 (IS_EXPR_CODE_CLASS): Write 'E', not 'e'.
7630 (NON_TYPE_CHECK): New macro.
7631 (TREE_SIDE_EFFECT, TREE_READONLY, TREE_CONSTANT: Add check.
7632
7633 2004-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
7634
7635 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Set
7636 to DWARF2_DEBUG unconditionally.
7637 (ASM_DEBUG_SPEC): Set the default to --gdwarf2 unconditionally.
7638
7639 2004-04-04 Ian Lance Taylor <ian@wasabisystems.com>
7640 Nathanael Nerode <neroden@gcc.gnu.org>
7641
7642 PR target/14548
7643 * config.host: Set the shell variable host_can_use_collect2.
7644 Set it to yes by default, and to no for alpha*-dec-*vms*,
7645 i[34567]86-*-mingw32*, and powerpc-*-beos*.
7646 * configure.ac: Set and substitute the shell variable collect2.
7647 Give an error if use_collect2 is yes and host_can_use_collect2 is
7648 no.
7649 * Makefile.in (COLLECT2): Rename from USE_COLLECT2. Change all
7650 uses. Initialize to @collect2@.
7651 (STAGESTUFF): Remove $(USE_COLLECT2).
7652 * config/alpha/x-vms (USE_COLLECT2): Don't set.
7653 * config/i386/t-mingw32 (USE_COLLECT2): Likewise.
7654 * config/rs6000/t-beos (USE_COLLECT2): Likewise.
7655 * config/pa/t-pa64: Remove commented out USE_COLLECT2.
7656 * configure: Regenerate.
7657
7658 2004-04-04 Roger Sayle <roger@eyesopen.com>
7659
7660 * simplify-rtx.c (simplify_binary_operation): Constant fold
7661 DIV, MOD, UDIV and UMOD using div_and_round_double.
7662
7663 2004-04-04 Mark Mitchell <mark@codesourcery.com>
7664
7665 PR c++/14804
7666 * varasm.c (initializer_constant_valid_p): Allow NOP_EXPRs to
7667 RECORD_TYPEs.
7668
7669 2004-04-04 Mark Mitchell <mark@codesourcery.com>
7670
7671 * doc/invoke.texi (-mabi=o64): Create link to O64 ABI
7672 documentation.
7673
7674 2004-04-04 Roger Sayle <roger@eyesopen.com>
7675
7676 * cse.c (cse_insn): Correct usage of simplify_replace_rtx when
7677 updating the REG_EQUAL note on an insn's libcall_insn.
7678
7679 2004-04-04 Roger Sayle <roger@eyesopen.com>
7680
7681 * df.h: Tidy up whitespace in the definitions of the DF_ flags.
7682
7683 2004-04-03 Roger Sayle <roger@eyesopen.com>
7684
7685 * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
7686 with reorder_operands_p.
7687
7688 2004-04-03 Jan Hubicka <jh@suse.cz>
7689
7690 * md.texi (vec_set, vec_extract, vec_init): Document.
7691
7692 2004-04-02 Gabor Loki <loki@inf.u-szeged.hu>
7693
7694 * opts.c (decode_options): Do function inlining with very small
7695 max-inline-insns-* parameters when optimizing for size.
7696
7697 2004-04-02 Vladimir Makarov <vmakarov@redhat.com>
7698
7699 * config/i386/i386.h (TARGET_NOCONA): New macro.
7700 (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
7701 (processor_type): Add PROCESSOR_NOCONA.
7702
7703 * config/i386/i386.md (cpu): Add nocona to the attribute values.
7704
7705 * config/i386/i386.c (nocona_cost): New variable.
7706 (m_NOCONA): New macro.
7707 (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
7708 x86_branch_hints, x86_use_sahf, x86_single_stringop,
7709 x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
7710 x86_integer_DFmode_moves, x86_partial_reg_dependency,
7711 x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
7712 x86_decompose_lea, x86_arch_always_fancy_math_387,
7713 x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
7714 x86_ext_80387_constants, x86_four_jump_limit):
7715 (override_options): Add nocona_cost to processor_target_table.
7716 Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
7717 (incdec_operand): Prevent inc/dec generation for Nocona too.
7718 (ix86_issue_rate): Add PROCESSOR_NOCONA.
7719
7720 2004-04-01 Andrew Pinski <pinskia@physics.uc.edu>
7721
7722 * rtlanal.c (find_reg_note): Manually
7723 unswitch the loop.
7724
7725 2004-04-01 Mark Mitchell <mark@codesourcery.com>
7726
7727 * genemit.c (gen_split): Change prototype of generated code.
7728 * genrecog.c (write_action): Adjust prototype for and calls to
7729 gen_split_*.
7730 * gensupport.c (struct queue_elem): Add split field.
7731 (queue_pattern): Return a value. Clear the split field.
7732 (process_rtx): Maintain an association between an insn and the
7733 split generated from it for a define_insn_and_split.
7734 (process_one_cond_exec): Generate a new split for a
7735 define_insn_and_split.
7736 * config/arm/arm-protos.h (arm_split_constant): Add insn
7737 parameter.
7738 (emit_constant_insn): New function.
7739 (arm_gen_constant): Use it.
7740 * config/arm/arm.md: Adjust calls to arm_split_constant.
7741
7742 2004-04-02 Jan Hubicka <jh@suse.cz>
7743
7744 * cgraph.c: Add overall comment.
7745 (cgraph_inline_hash): New global variable.
7746 (cgraph_create_node): Break out from ...
7747 (cgraph_node): ... here.
7748 (cgraph_edge): New function.
7749 (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
7750 (cgraph_remove_edge): Accept edge, intead of source and destination.
7751 (cgraph_redirect_edge_callee): New.
7752 (cgraph_remove_node): Update all new datastructures.
7753 (cgraph_record_call, cgraph_remove_call): Kill.
7754 (dump_cgraph_node): Break out from ... ; dump new datastructures.
7755 (dump_cgraph): ... here.
7756 (cgraph_function_possibly_inlined_p): Use new hashtable.
7757 (cgraph_clone_edge, cgraph_clone_node): New.
7758 * cgraph.h: Include hashtab.h
7759 (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
7760 fields, add inlined_to pointer.
7761 (cgraph_node): Add pointer to next_clone.
7762 (cgraph_remove_edge, cgraph_create_edge): Update prototype.
7763 (cgraph_remove_call, cgraph_record_call): Kill.
7764 (cgraph_inline_hash): Declare.
7765 (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
7766 cgraph_redirect_edge_callee): Declare.
7767 (cgraph_create_edges, cgraph_inline_p): Update prorotype.
7768 (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
7769 cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
7770 * cgraphunit.c: Add overall comment.
7771 (cgraph_optimize_function): Kill.
7772 (cgraph_assemble_pending_functions): Do not assemble inline clones.
7773 (cgraph_finalize_function): Update call of cgraph_remove_node
7774 (record_call_1): Record call sites.
7775 (cgraph_create_edges): Accept node instead of decl argument.
7776 (error_found): New static variable.
7777 (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
7778 (cgraph_analyze_function): Update for new datastructures.
7779 (cgraph_finalize_compilation_unit): Plug memory leak.
7780 (cgraph_optimize_function): Kill.
7781 (cgraph_expand_function): Do not use cgraph_optimize_function.
7782 (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
7783 cgraph_inlined_callees): Kill.
7784 (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
7785 clones.
7786 (estimate_growth): Simplify.
7787 (cgraph_clone_inlined_nodes): New function.
7788 (cgraph_mark_inline_edge): Re-implement.
7789 (cgraph_mark_inline): Likewise.
7790 (cgraph_check_inline_limits): Simplify.
7791 (cgraph_recursive_inlining_p): New.
7792 (update_callee_keys): Break out from ...
7793 (cgraph_decide_inlining_of_small_functions): ... here; simplify.
7794 (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
7795 Likewise.
7796 (cgraph_expand_all_functions): Remove inline clones from the ordered
7797 list.
7798 (cgraph_preserve_function_body_p): New predicate.
7799 (cgraph_optimize): Verify cgraph.
7800 * function.h (struct function): Add fields saved_tree/saved_args.
7801 * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
7802 * toplev.c (rest_of_compilation): Do not free cfun.
7803 * tree-inline.c: Include function.h
7804 (struct inline_data): Add saving_p field; replace decl/current_decl by
7805 node/current_node.
7806 (insert_decl_map): New function.
7807 (copy_body_r): Handle saving; update cgraph datastructure.
7808 (copy_body): Handle recursive inlining.
7809 (initialize_inlined_parameters): Likewise.
7810 (expand_call_inline): Propagate node attributes; update cgraph.
7811 (optimize_inline_calls): Verify that datastructure still match.
7812 (save_body): New function.
7813 * tree-inline.h (save_body): New.
7814 * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
7815 * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
7816 * langhooks.c (lang_hooks): Add update_decl_after_saving.
7817
7818 2004-04-01 Serge Belyshev <1319@bot.ru>
7819
7820 PR target/14702
7821 * config/i386/i386.md: fix source operand constraints in
7822 mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
7823
7824 2004-04-01 Waldek Hebisch <hebisch@math.uni.wroc.pl>
7825
7826 * fold-const.c (folda): Preserve types of comparisons.
7827
7828 2004-04-01 Richard Henderson <rth@redhat.com>
7829
7830 * toplev.c (backend_init): Move init_optimization_passes call ...
7831 (lang_dependent_init): ... here.
7832
7833 2004-04-01 Alan Modra <amodra@bigpond.net.au>
7834 Jakub Jelinek <jakub@redhat.com>
7835
7836 * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
7837 -lgcc --as-needed -lgcc_s --no-as-needed by default.
7838 * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
7839 * configure: Rebuilt.
7840 * config.in: Rebuilt.
7841 * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
7842 (stage2-start, stage3-start, stage4-start): Likewise.
7843 (stageprofile-start, stagefeedback-start): Likewise.
7844
7845 2004-04-01 Jakub Jelinek <jakub@redhat.com>
7846
7847 * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
7848 * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
7849 * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
7850 * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
7851 (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
7852 * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
7853 with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
7854 * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
7855 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
7856 * config/sparc/t-linux: Removed.
7857
7858 2004-04-01 Jakub Jelinek <jakub@redhat.com>
7859
7860 PR c++/14755
7861 * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
7862 "bitfld++ == const" to "++bitfld == const + incr" transformations.
7863
7864 2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7865
7866 * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
7867 * stor-layout.c (layout_decl): Likewise.
7868 * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
7869 * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
7870 * print-tree.c (print_node): Handle various used of unsigned_flag.
7871 * tree.def (BIT_FIELD_REF): Update comment.
7872 * tree.h (TREE_UNSIGNED): Deleted.
7873 (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
7874
7875 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7876
7877 * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
7878 Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
7879 * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
7880 * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
7881 * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
7882 * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
7883 * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
7884 * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
7885 * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
7886 * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
7887 REAL_TYPE, not INTEGER_TYPE.
7888 (layout_type, case VECTOR_TYPE): Simplify code.
7889 * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
7890 * tree.h: Update comments.
7891 (STRIP_NOPS): Use TYPE_UNSIGNED.
7892 (TYPE_UNSIGNED): New macro.
7893 (TYPE_TRAP_SIGNED): Remove now redundant check.
7894 (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
7895
7896 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7897
7898 * function.c (put_var_into_stack): Properly set orig_reg for indirect.
7899
7900 2004-03-31 Andrew Pinski <pinskia@physics.uc.edu>
7901
7902 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
7903 Add darwin-fpsave.asm, darwin-vecsave.asm,
7904 and darwin-world.asm.
7905 (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
7906 as the asm files contain altivec instructions.
7907 * config/rs6000/darwin-fpsave.asm: New file.
7908 * config/rs6000/darwin-vecsave.asm: New file.
7909 * config/rs6000/darwin-world.asm: New file.
7910
7911 2004-03-31 Zack Weinberg <zack@codesourcery.com>
7912
7913 * gengtype-yacc.y (option, stringseq): Add missing
7914 terminating semicolon.
7915
7916 2004-03-30 David Edelsohn <edelsohn@gnu.org>
7917
7918 * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
7919 tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
7920 tls_dtprel_ha_32, tls_dtprel_ha_64,
7921 tls_dtprel_lo_32, tls_dtprel_lo_64,
7922 tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
7923 tls_tprel_ha_32, tls_tprel_ha_64,
7924 tls_tprel_lo_32, tls_tprel_lo_64,
7925 tls_got_tprel_32, tls_got_tprel_64,
7926 tls_tls_32, tls_tls_64): Replace register_operand with
7927 gpc_reg_operand.
7928
7929 2004-03-30 Mostafa Hagog <mustafa@il.ibm.com>
7930
7931 * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
7932 *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
7933 *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
7934 *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
7935 *ctrdi_internal6): Replace register_operand with
7936 nonimmediate_operand.
7937
7938 2004-03-29 Fariborz Jahanian <fjahanian@apple.com>
7939
7940 * fold-const.c (fold): Reassociate multiply expression
7941 with an adjacent non-multiply expression to use
7942 architecture's multiply-add instruction.
7943
7944 2004-03-30 Zack Weinberg <zack@codesourcery.com>
7945
7946 * gengtype.c (create_option): New function.
7947 * gengtype.h: Prototype it.
7948 * gengtype-yacc.y (stringseq): New rule.
7949 (option): Use create_option. Add new bare ID production. Use
7950 stringseq, not STRING directly.
7951
7952 * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
7953 * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
7954 * varray.h, config/alpha/alpha.c:
7955 Use new shorter form of GTY markers.
7956
7957 * doc/gty.texi: Rewrite.
7958
7959 2004-03-30 Andrew Pinski <pinskia@physics.uc.edu>
7960
7961 * config/darwin.c (machopic_function_base_name):
7962 Remove current_name and getting the name of the
7963 current function.
7964
7965 2004-03-30 Nick Clifton <nickc@redhat.com>
7966
7967 * config/arm/arm.md (thumb_jump): Reduce the backward branch
7968 range, and increase the forward branch range, to allow for
7969 the fact that the PC will be off by 4.
7970
7971 2004-03-30 Alan Modra <amodra@bigpond.net.au>
7972
7973 * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
7974
7975 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
7976
7977 * config/rs6000/rs6000.c (output_vec_const_move):
7978 Find all cases of EASY_VECTOR_15_ADD_SELF.
7979 (easy_vector_constant_add_self): Accept
7980 all vector constant loadable by vsplt* and vadd*.
7981 (easy_vector_same): Use easy_vector_splat_const.
7982 (easy_vector_const): Use easy_vector_splat_const.
7983 (easy_vector_splat_const): New function.
7984 (gen_easy_vector_constant_add_self): New function.
7985
7986 * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
7987 New prototype.
7988
7989 * config/rs6000/altivec.md (movv4si splitter): Change to
7990 emit move insn with halfed vector constant.
7991 (*movv8hi splitter): Likewise.
7992 (*movv16qi splitter): Likewise.
7993
7994 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
7995
7996 PR 11591
7997 * config/rs6000/rs6000.c (rs6000_legitimate_address):
7998 Allow any offset to argument pointer in no-strict case.
7999
8000 2004-03-30 Jan Hubicka <jh@suse.cz>
8001
8002 * toplev.c (backend_init): Add missing call to inint_optimization_passes.
8003 * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
8004 dump file in non-unit-at-a-time mode.
8005
8006 2004-03-29 Hans-Peter Nilsson <hp@axis.com>
8007
8008 * config/cris/cris.h: Correct #ifdef to test for
8009 HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
8010 HAVE_AS_MUL_BUG_ABORT_OPTION.
8011
8012 2004-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8013
8014 * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
8015 the address inside the old RTL.
8016
8017 2004-03-28 Zack Weinberg <zack@codesourcery.com>
8018
8019 * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
8020 (struct c_binding, struct c_scope): Add chain_next
8021 attributes to GTY markers.
8022 (struct lang_identifier, struct lang_tree_node): Define
8023 here...
8024 * c-tree.h: ... not here. No longer need to declare struct
8025 c_binding either. Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
8026 * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
8027 to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
8028
8029 PR 14734, 11944
8030 * c-decl.c (get_parm_info): If error_mark_node is encountered
8031 in the bindings chain, unbind and discard it; don't abort.
8032
8033 2004-03-28 Olga Golovonevsky <olga@il.ibm.com>
8034 Dorit Naishlos <dorit@il.ibm.com>
8035
8036 * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
8037 one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
8038
8039 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8040
8041 * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
8042
8043 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
8044 (m68hc11_attribute_table): New attribute "page0" to mark a global
8045 variable as being allocated from within page0 section.
8046 (m68hc11_encode_label): New function.
8047 (m68hc11_strip_name_encoding): New function.
8048 (m68hc11_page0_symbol_p): New function.
8049 (m68hc11_indirect_p): Accept global variables marked in page0.
8050 (m68hc11_encode_section_info): Lookup "page0" attribute.
8051
8052 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
8053 represents access to page0 variables.
8054
8055 * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
8056 ("*logicalsi3_silshl16_zext"): Likewise.
8057 ("*ashldi3_const32"): Likewise.
8058 (peephole2 ashift): Likewise.
8059
8060 2004-03-28 Joseph S. Myers <jsm@polyomino.org.uk>
8061
8062 * c-tree.h (C_DECL_REGISTER): New.
8063 * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
8064 finish_decl, grokdeclarator, get_parm_info), c-typeck.c
8065 (build_array_ref, c_mark_addressable): Set and use it.
8066 * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
8067 Allow structures with volatile fields to be declared register.
8068 Don't check TREE_ADDRESSABLE before warning about taking address
8069 of register.
8070 * c-decl.c (finish_decl): Don't allow structures with volatile
8071 fields to be placed in named register.
8072 * doc/trouble.texi: Remove reference to structures with volatile
8073 fields in registers.
8074
8075 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8076
8077 * function.c (thread_prologue_and_epilogue): Move
8078 NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
8079 before the epilogue.
8080
8081 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8082
8083 * expr.c (store_constructor): Use gen_int_mode to correctly
8084 sign-extend CONST_INT value.
8085
8086 2004-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8087
8088 * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
8089 * builtins.def (DEF_C94_BUILTIN): New. Add wctype builtins.
8090 * doc/extend.texi: Likewise.
8091
8092 2004-03-26 Diego Novillo <dnovillo@redhat.com>
8093
8094 * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
8095 with TYPE_ORIG_SIZE_TYPE.
8096
8097 2004-03-25 Aldy Hernandez <aldyh@redhat.com>
8098
8099 PR 14219
8100 * c-typeck.c (build_binary_op): Do not allow comparisons of
8101 vectors.
8102
8103 2004-03-26 James A. Morrison <ja2morri@uwaterloo.ca>
8104
8105 * config.gcc: Remove sparc-tti-*.
8106 * config/sparc/pbd.h: Delete.
8107
8108 * config/sparc/sol2.h: Remove note about Sun OS 4.x.
8109 * config/sparc/aout.h: Likewise.
8110
8111 * config/sparc/sparc.h: Remove if 0'd code.
8112 * config/sparc/sparc.md (call): Remove if 0'd code.
8113 (call_value): Likewise.
8114 (nonlocal_goto): Likewise.
8115 (unimp_insn): Delete.
8116
8117 2004-03-25 Roger Sayle <roger@eyesopen.com>
8118
8119 * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
8120 BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
8121
8122 2004-03-25 Richard Henderson <rth@redhat.com>
8123
8124 PR 11527
8125 * c-typeck.c (pop_init_level): Emit pending init elements earlier
8126 rather than later.
8127
8128 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8129
8130 * builtins.c (fold_builtin): Fix error in last change.
8131
8132 2004-03-25 Richard Sandiford <rsandifo@redhat.com>
8133
8134 * config/mips/mips.h: Formatting fix.
8135
8136 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8137
8138 * builtins.def: Add ctype builtins.
8139 * doc/extend.texi: Likewise.
8140
8141 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8142
8143 * builtins.c (fold_builtin): Add new builtin optimizations for
8144 sqrt and/or cbrt.
8145 * fold-const.c (fold): Likewise.
8146
8147 2004-03-25 David Edelsohn <edelsohn@gnu.org>
8148
8149 * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
8150 (rs6000_sched_groups): New variable.
8151 (processor_target_table): Add power5.
8152 (rs6000_override_options): Set rs6000_sched_insert_nops,
8153 rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
8154 from rs6000_sched_groups.
8155 (output_cbranch): Use rs6000_always_hint.
8156 (rs6000_variable_issue): Use rs6000_sched_groups.
8157 (rs6000_adjust_cost): Add CPU_POWER5.
8158 (is_microcoded_insn): Use rs6000_sched_groups.
8159 (is_dispatch_slot_restricted): Use rs6000_sched_groups.
8160 Return 2 for POWER5 cracked instructions.
8161 (is_cracked_insn): Use rs6000_sched_groups.
8162 (is_branch_slot_insn): Use rs6000_sched_groups.
8163 (rs6000_issue_rate): Add CPU_POWER5.
8164 (rs6000_sched_finish): Use rs6000_sched_groups.
8165 (rs6000_rtx_costs): Add PROCESSOR_POWER5.
8166 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
8167 (DEFAULT_SCHED_COSTLY_DEP): Delete.
8168 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
8169 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
8170 * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
8171 * config/rs6000/power5.md: New file.
8172 * doc/invoke.texi: Add power5 option.
8173
8174 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
8175
8176 * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
8177 config/arm/arm.c, objc/objc-act.c: Fix comment typos.
8178 * doc/invoke.texi: Fix a typo.
8179
8180 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
8181
8182 PR optimization/9707.
8183 * stmt.c (emit_case_nodes): Emit equality comparisons instead
8184 of recursing if both children are single-valued cases with no
8185 children.
8186
8187 2004-03-25 Paul Brook <paul@codesourcery.com>
8188
8189 * config/arm/arm.c (vfp_print_multi): Remove.
8190 (arm_output_fldmx): New function.
8191 (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
8192 (arm_expand_prologue): Update to match.
8193 (arm_get_vfp_saved_size): New Function.
8194 (arm_get_frame_offsets): Use it.
8195 (arm_output_epilogue): Use new functions.
8196
8197 2004-03-24 Richard Henderson <rth@redhat.com>
8198
8199 * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
8200 (reg_known_value, reg_known_value_size): Likewise; make static.
8201 (reg_known_equiv_p): Make static.
8202 (clear_reg_alias_info): Update for new indexing.
8203 (get_reg_known_value, set_reg_known_value): New.
8204 (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
8205 (canon_rtx): Use them.
8206 (init_alias_analysis): Likewise. Allocate reg_known_value with gc.
8207 Don't play queer offsetting games with reg_known_value and
8208 reg_known_equiv_p.
8209 (end_alias_analysis): Free reg_known_value with gc.
8210 * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
8211 * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
8212 (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
8213 functions instead.
8214
8215 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
8216
8217 * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
8218 config/i386/mmintrin.h: Update copyright.
8219
8220 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
8221
8222 * configure.ac: Add --enable-werror-always (for top level bootstrap
8223 support).
8224 * configure: Regenerate.
8225
8226 2004-03-24 Ziemowit Laski <zlaski@apple.com>
8227
8228 * objc/objc-act.c (objc_comptypes): Treat comparisons
8229 between 'Class' and '<class> *' as explicitly invalid.
8230
8231 2004-03-24 David Edelsohn <edelsohn@gnu.org>
8232
8233 * doc/invoke.texi (-frename-registers): Add enabled at -O3.
8234 (-fprofile-values): Add enabled with profile-{generate,use}.
8235 (-fvpt): Same.
8236 (-ftracer): Add enabled with profile-use.
8237 (-funit-at-a-time): Add enabled at -O2,-O3.
8238 (-funroll-loops): Add enabled with profile-use.
8239 (-funswitch-loops): Add enabled with profile-use. Remove duplicates.
8240 (max-gcse-passes): Mention default.
8241 (max-cse-path-length): Mention default.
8242
8243 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
8244
8245 * Makefile.in (STRICT2_WARN): Reorder.
8246 * configure.ac: Check for -Wold-style-definition, and use it
8247 in strict1_warn if it's available.
8248 * configure: Regnerate.
8249
8250 2004-03-24 Paul Brook <paul@nowt.org>
8251
8252 * config.gcc <arm>: Add --with-abi=
8253 * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
8254 thumb_far_jump_used): Remove prototypes.
8255 (arm_needs_doubleword_align): Add prototype.
8256 (thumb_compute_initial_elimination_offset): Ditto.
8257 * config/arm/arm.c (arm_get_frame_offsets): New function.
8258 (use_return_insn, output_return_instruction, arm_output_epilogue,
8259 arm_output_function_epilogue, arm_compute_initial_elimination_offset,
8260 arm_expand_prologue, thumb_expand_epilogue): Use it.
8261 (arm_abi, target_abi_name, all_arm_abis): New variables.
8262 (arm_override_options): Set them. Set structure padding for AAPCS.
8263 (arm_return_in_memory): Update ABI check.
8264 (arm_init_cumulative_args): Initialize can_split.
8265 (arm_needs_doubleword_align): New function.
8266 (arm_function_arg): Don't split args after pushing to stack. Handle
8267 doubleword/even reg alignment.
8268 (arm_va_arg): Handle all doubleword aligned args.
8269 (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
8270 on ABI, not CPU.
8271 (arm_compute_save_reg0_reg12_mask): Fix comment.
8272 (thumb_get_frame_size, thumb_get_frame_size): Remove.
8273 (thumb_jump_far_used_p): Remove superfluous argument. Return save
8274 value for alignment.
8275 (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
8276 to match.
8277 (thumb_compute_initial_elimination_offset): New function.
8278 (thumb_expand_prologue): Use arm_get_frame_offsets. Remove
8279 unneccessary rounding.
8280 * config/arm/arm.h (target_abi_name): Declare.
8281 (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
8282 arm_abi_type, ARM_DEFAULT_ABI): Define.
8283 (ARM_FLAG_ATPCS): Remove.
8284 (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
8285 (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
8286 (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
8287 TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
8288 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
8289 Contitionalize on ABI, not CPU.
8290 (struct arm_stack_offsets): Define.
8291 (struct machine_function): Add stack_offsets. Remove frame_size.
8292 (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
8293 pushed.
8294 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
8295 doubleword alignment.
8296 (THUMB_INITIAL_ELIMINATION_OFFSET,
8297 ARM_INITIAL_ELIMINATION_OFFSET): Remove.
8298 (INITIAL_ELIMINATION_OFFSET): Call functions directly.
8299 * config/arm/arm.md (align_8): Enable for all targets.
8300 * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
8301 (ARM_DEFAULT_ABI): Define.
8302 * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
8303 -mstructure-size-boundary.
8304
8305 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
8306
8307 * configure.ac: Check for -Wno-variadic-macros; don't use
8308 -pedantic (in stage 1 or a simple 'make all') unless it's available,
8309 and if it's available, use it. Also, clean up check for
8310 -Wno-long-long.
8311 * configure: Regenerate.
8312
8313 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
8314
8315 * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
8316 * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
8317 (MULTILIB_DEFAULTS): Use it.
8318 (MIPS_CPU_STRING_DEFAULT): Remove.
8319 (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
8320 (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120. Make
8321 EABI64 -mlong32 the default ABI. Enforce the default architecture.
8322 * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
8323 march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
8324 (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
8325 (MULTILIB_EXCEPTIONS): Change choice of multilibs. Update comments
8326 accordingly.
8327
8328 2004-03-24 DJ Delorie <dj@redhat.com>
8329 Richard Sandiford <rsandifo@redhat.com>
8330
8331 * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
8332 (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
8333 (ASM_SPEC): Pass down -mfix-vr4122-bugs.
8334 * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
8335 in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
8336 (mips_init_libfuncs): Use special functions for divsi3 and modsi3
8337 if TARGET_FIX_VR4122.
8338 * config/mips/mips.md (define_attr length): Account for nops inserted
8339 after macc and dmult when using -mfix-vr4122-bugs.
8340 (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
8341 * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
8342 LIB2FUNCS_EXTRA. Add config/mips/vr4122-div.S.
8343 * config/mips/vr4122-div.S: New file.
8344 * doc/invoke.texi: Document -mfix-vr4122-bugs.
8345
8346 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
8347
8348 * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
8349 (TARGET_MIPS4130): New macro.
8350 (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
8351 * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
8352 (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
8353 with PROCESSOR_R4130.
8354 * config/mips/mips.md (define_attr cpu): Add r4130.
8355 * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
8356
8357 2004-03-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8358 Richard Sandiford <rsandifo@redhat.com>
8359
8360 * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
8361
8362 2004-03-24 Alexandre Oliva <aoliva@redhat.com>
8363
8364 PR preprocessor/14438
8365 * cpplib.c (do_pragma): Remove line_change call after pragma
8366 handler.
8367
8368 2004-03-23 Ian Lance Taylor <ian@wasabisystems.com>
8369
8370 * doc/extend.texi (ARM Built-in Functions): Replace with correct
8371 declarations.
8372
8373 2004-03-23 Roger Sayle <roger@eyesopen.com>
8374
8375 * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
8376 if flag_unsafe_math_optimizations.
8377 * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
8378 and TARGET_80387 expand using truncdfsf2_noop pattern.
8379 (truncxfsf2): Likewise using truncxfsf2_noop.
8380 (truncxfdf2): Likewise using truncxfdf2_noop.
8381 (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
8382
8383 2004-03-23 Ziemowit Laski <zlaski@apple.com>
8384
8385 * hooks.c (hook_constcharptr_tree_null): New hook.
8386 * hooks.h (hook_constcharptr_tree_null): New prototype.
8387 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
8388 * target.h (mangle_fundamental_type): New target hook.
8389 * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
8390 target hook at rs6000_mangle_fundamental_type.
8391 (rs6000_mangle_fundamental_type): New function.
8392 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
8393
8394 2004-03-23 Zack Weinberg <zack@codesourcery.com>
8395
8396 PR 12267, 12391, 12560, 13129, 14114, 14133
8397 * c-tree.h: Forward declare struct c_binding. Declare
8398 c_override_bindings_to_false. Update prototypes.
8399 (struct lang_identifier): Update comments. Change fields to be
8400 struct c_binding *.
8401 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
8402 (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
8403 (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
8404 (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
8405 * c-common.h: Update prototypes.
8406 * c-decl.c (struct c_scope): Update commentary. Remove names,
8407 names_last, parms, parms_last, tags, and shadowed fields. Add
8408 bindings and depth fields.
8409 (scope_freelist): Move to more appropriate location.
8410 (c_print_identifier): Update for changes to struct lang_identifier.
8411 (objc_mark_locals_volatile): Update for new bindings structures.
8412 (global_bindings_p): Honor c_override_global_bindings_to_false.
8413 (pushlevel): Rename to push_scope; take no arguments; use the
8414 scope_freelist; initialize scope->depth and check for overflow.
8415 (poplevel): Rename to pop_scope; totally rewritten for new bindings
8416 structures.
8417 (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
8418 C_DECL_INVISIBLE, for certain decisions. Adjust some diagnostics.
8419 Improve some commentary. Adjust handling of forward parm decls.
8420 (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
8421 Preserve C_DECL_IN_EXTERNAL_SCOPE.
8422 (warn_if_shadowing): Correct indentation. Improve diagnostics.
8423 (pushdecl): Remove unnecessary assertion. Short-circuit anonymous
8424 decls. Rewrite for new bindings structures. Improve commentary.
8425 Eliminate the copy_node call.
8426 (implicit_decl_warning): Use the "diag" idiom (as seen in
8427 locate_old_decl) to reduce code duplication; call locate_old_decl
8428 if appropriate. Relocate to remove need for forward declaration.
8429 (implicitly_declare): Adjust for new bindings structures. Kludge
8430 around Objective-C not-really-builtin functions.
8431 (undeclared_variable): Improve diagnostics. If current_function_decl
8432 is nonnull but current_function_scope is null, use current_scope.
8433 Use bind.
8434 (lookup_tag): Adjust for new bindings structures. Kludge around
8435 Objective-C's tag declarations that wind up in the external scope.
8436 (lookup_name): Adjust for new bindings structures. Kludge around
8437 c-common.c's pseudo-typedefs that wind up in the external scope.
8438 (lookup_name_current_level): Rename lookup_name_in_scope; take a
8439 second argument indicating the scope to examine; rewrite for
8440 new bindings structures.
8441 (c_init_decl_processing): Adjust for renamed functions. Do not
8442 initialize current_file_decl, first_builtin_decl, last_builtin_decl.
8443 First scope pushed is the external scope, not the global scope.
8444 (builtin_function): Use bind, not pushdecl. Adjust other bits
8445 for new data structures. Keep track of builtins that should be
8446 made visible automatically.
8447 (start_decl): Adjust diagnostics. Remove unnecessary call to
8448 expand_decl.
8449 (grokparms): Return 0 if arg_types is error_mark_node.
8450 (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
8451 reversed sense. Rewrite for new bindings structures. Do not
8452 leave any decls in the scope, to prevent pop_scope from doing
8453 contradictory things with them.
8454 (finish_struct, finish_enum): Remove redundant diagnostics.
8455 (build_enumerator): Don't cascade diagnostics for error_mark_node.
8456 Mark location where -pedantic changes the meaning of the program.
8457 (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
8458 parameter decls into the function's scope structure using bind.
8459 Warn here about function definitions in the wrong style.
8460 Adjust diagnostics.
8461 (store_parm_decls): Correct the determination of whether a
8462 function was defined with a prototype.
8463 (c_write_global_declarations): Operate on all file decls and on
8464 the external scope. Split body of the loop to...
8465 (c_write_global_declarations_1): ... this new function, to avoid
8466 code duplication.
8467 (truly_local_externals, first_builtin_decl, last_builtin_decl)
8468 (make_scope, pop_scope, in_parm_level_p, set_block)
8469 (any_external_decl, record_external_decl, bind_label, getdecls)
8470 (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
8471 (c_reset_state): Delete.
8472 (visible_builtins, c_override_global_bindings_to_false)
8473 (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
8474 (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
8475 (external_scope, binding_freelist, bind, free_binding_and_advance)
8476 (push_file_scope, pop_file_scope): New.
8477 (pushtag, pushdecl_top_level, lookup_label, declare_label)
8478 (define_label, c_make_fname_decl, finish_decl)
8479 (mark_forward_parm_decls, build_compound_literal)
8480 (grokdeclarator, start_function, check_for_loop_decls)
8481 (identifier_global_value, record_builtin_type): Minor adjustments
8482 for new bindings structures. Improve diagnostics and commentary.
8483 * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
8484 pushlevel/poplevel respectively.
8485 (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
8486 * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
8487 Warn about YYDEBUG not being defined only if -dy. Remove no-longer-
8488 correct loop over multiple translation units; call fatal_error if
8489 requested to compile more than one file at once. (This disables
8490 IMA temporarily - an up-front error being preferable to a crash.)
8491 * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
8492 (all actions): Adjust calls to pushlevel/poplevel.
8493 (parsing_iso_function_signature): Delete.
8494 (extdef_1): Fold into extdef.
8495 (old_style_parm_decls_1): Fold into old_style_parm_decls. Don't
8496 warn here about function definitions in the wrong style.
8497 (after_tyle_declarator, parm_declarator_starttypename)
8498 (parm_declarator_nostarttypename, notype_declarator): Remove
8499 commented-out productions.
8500 (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
8501 an empty TREE_LIST node. Adjust calls to get_parm_info.
8502 (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
8503 to suppress -Wold-style-definition after this error.
8504 (c_parse_file): Don't clear the binding stack or call
8505 finish_fname_decls here. Correct comment.
8506 * c-typeck.c (same_translation_unit_p): Export.
8507 (common_type): Use c_override_global_bindings_to_false, not
8508 pushlevel/poplevel/declare_parm_level.
8509 * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
8510 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
8511 and LANG_HOOKS_GETDECLS with do-nothing stubs.
8512 * objc/objc-lang.c: Likewise.
8513 * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
8514 get_parm_info.
8515 (OBJC_VOID_AT_END): Delete; replace all uses
8516 with void_list_node.
8517 (generate_forward_declaration_to_string_table): Delete.
8518 * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
8519
8520 * coverage.c (create_coverage): Don't pushdecl anything.
8521 * langhooks.c (lhd_clear_binding_stack): Call
8522 lang_hooks.decls.poplevel, not poplevel.
8523 * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
8524 circular list rather than going into an infinite loop.
8525
8526 2004-03-23 Olivier Hainque <hainque@act-europe.fr>
8527
8528 * optabs.c (expand_binop): When synthesizing double word rotates
8529 from single word shifts, use a new register target if the provided
8530 target is not a REG already.
8531
8532 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8533
8534 * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
8535 * c-common.c (handle_mode_attribute): Add extra arg to
8536 build_pointer_type_for_mode and build_reference_type_for_mode.
8537 * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
8538 for INTEGER_CST.
8539 * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
8540 Chain pointers via TYPE_NEXT_PTR_TO.
8541 (build_reference_type_for_mode): Similarly.
8542 (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
8543 and build_reference_type_for_mode.
8544 (tree_check4_failed): New function.
8545 * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
8546 (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
8547 (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
8548 Add check.
8549
8550 2004-03-23 Roger Sayle <roger@eyesopen.com>
8551
8552 * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
8553 A is nonnegative or B is nonnegative. Similarly A|B is nonnegative
8554 when both A and B are nonnegative.
8555 (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
8556 nonzero.
8557
8558 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
8559
8560 * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
8561 VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
8562
8563 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
8564
8565 PR optimization/14669
8566 * fold-const.c (fold): Only unwiden integer comparisons for equality
8567 and inequality operators, or when the signedness doesn't change.
8568
8569 2004-03-23 Jakub Jelinek <jakub@redhat.com>
8570
8571 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
8572 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
8573 * config/sparc/t-linux: New file.
8574
8575 2004-03-23 Richard Sandiford <rsandifo@redhat.com>
8576
8577 * gcse.c (can_assign_to_reg_p): New function, split out from...
8578 (want_to_gcse_p): ...here.
8579 (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
8580 the rhs of a store.
8581
8582 2004-03-22 Diego Novillo <dnovillo@redhat.com>
8583
8584 * c-typeck.c (same_translation_unit_p): Fix pasto.
8585
8586 2004-03-22 David Edelsohn <edelsohn@gnu.org>
8587
8588 * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
8589 (PARAM_MAX_SCHED_REGION_INSNS): New.
8590 * sched-rgn.c: Include params.h
8591 (MAX_RGN_BLOCKS): Delete.
8592 (MAX_RGN_INSNS): Delete.
8593 (too_large): Return bool. Convert to PARAM_VALUE.
8594 * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
8595 * doc/invoke.texi (param): Document max-sched-region-blocks and
8596 max-sched-region-insns.
8597
8598 2004-03-22 Joel Brobecker <brobecker@gnat.com>
8599
8600 * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
8601 for base types.
8602
8603 2004-03-22 Joel Brobecker <brobecker@gnat.com>
8604
8605 * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
8606 change.
8607
8608 2004-03-22 Jakub Jelinek <jakub@redhat.com>
8609
8610 PR c/14069
8611 * c-decl.c (finish_struct): Change type of incorrect flexible array
8612 field into error_mark_node.
8613
8614 2004-03-22 Andrew Pinski <pinskia@physics.uc.edu>
8615
8616 PR target/14580
8617 * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
8618 who are not local for Darwin PIC.
8619
8620 2004-03-22 Ulrich Weigand <uweigand@de.ibm.com>
8621
8622 * regrename.c (regrename_optimize): Set regs_ever_live for all
8623 registers introduced as replacement.
8624
8625 2004-03-22 Eric Botcazou <ebotcazou@libertysurf.fr>
8626
8627 PR middle-end/14470
8628 * expr.c (mark_queue): New function.
8629 (emit_insns_enqueued_after_mark): New function replacing
8630 emit_queue. Clear the body of emitted queued insns.
8631 (emit_queue): Call emit_insns_enqueued_after_mark.
8632 (store_expr): Mark the increment queue on entry. Emit
8633 only the incrementations queued when expanding the source.
8634
8635 2004-03-22 Nathanael Nerode <neroden@gcc.gnu.org>
8636
8637 * configure.ac: Allow --disable-coverage-flags (for the future benefit
8638 of top level bootstrap, and consistency). Reindent.
8639 * configure: Regenerate.
8640
8641 2004-03-21 Kazu Hirata <kazu@cs.umass.edu>
8642
8643 * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
8644 ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
8645 unnecessary casts.
8646
8647 2004-03-22 Danny Smith <dannysmith@users.sourceforge.net>
8648
8649 PR target/14291
8650 * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
8651 __MINGW32__.
8652
8653 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8654
8655 * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
8656 to nonimmediate_operand.
8657 ("*doloop_di"): Likewise.
8658
8659 2004-03-21 Alexandre Oliva <aoliva@redhat.com>
8660
8661 * real.h (struct real_value): Use the same type for all
8662 bitfields. Rename exp to uexp.
8663 (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
8664 Adjust all uses of exp...
8665 * builtins.c: ... here, ...
8666 * emit-rtl.c: ... here, and ...
8667 * real.c: ... and here.
8668
8669 2004-03-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
8670
8671 * pretty-print.c (pp_base_maybe_space): New function.
8672 * pretty-print.h (pp_base_maybe_space): Declare.
8673 (pp_maybe_space): New macro.
8674
8675 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8676
8677 * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
8678
8679 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8680
8681 * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
8682 of using register multiplication cost.
8683 (expand_mult): Adapt choose_mult_variant call.
8684 (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
8685 of MODE; pass appropriate cost bound. Adjust result when
8686 performing signed multiplication by a negative constant.
8687 Don't use intermediate modes larger than word_mode.
8688
8689 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8690
8691 * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
8692 * emit-rtl.c (component_ref_for_mem_expr): Likewise.
8693 (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
8694 * explow.c (expr_size): Likewise.
8695 * expr.h (placeholder_list, find_placeholder): Deleted.
8696 * expr.c (store_constructor): Likewise.
8697 (get_inner_reference): Likewise. Also don't call find_placeholder.
8698 (placeholder_list, find_placeholder): Deleted.
8699 (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
8700 (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
8701 (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
8702 * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
8703 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
8704 Likewise.
8705 * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
8706 (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
8707 * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
8708 (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
8709 Clean up by using first_rtl_op.
8710 (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
8711 (substitute_placeholder_in_expr): New function.
8712 * tree.def (WITH_RECORD_EXPR): Deleted.
8713 * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
8714 (substitute_placeholder_in_expr): New.
8715
8716 2004-03-21 Andrew Pinski <pinskia@gcc.gnu.org>
8717
8718 * dojump.c (prefer_and_bit_test): Fix which part of
8719 the and_test is replaced.
8720
8721 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
8722
8723 * frontends.texi: Add missing line.
8724
8725 2004-03-21 Zack Weinberg <zack@codesourcery.com>
8726 Chris Devers <cdevers@pobox.com>
8727 Joseph S. Myers <jsm@polyomino.org.uk>
8728
8729 * doc/frontends.texi: Rewrite.
8730 * doc/gcc.texi: Update last modification date.
8731
8732 2004-03-21 Josef Zlomek <zlomekj@suse.cz>
8733
8734 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
8735 message before redirecting the edge.
8736
8737 2004-03-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8738
8739 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
8740 flag.
8741 * explow.c (force_not_mem): Set REG_POINTER flag according to
8742 MEM_POINTER one.
8743 * rtl.h (MEM_POINTER): New macro.
8744 (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
8745 for MEM_POINTER.
8746
8747 2004-03-20 Roger Sayle <roger@eyesopen.com>
8748
8749 PR target/13889
8750 * cse.c (fold_rtx): Avoid substituting constants into unary
8751 conversion operations.
8752
8753 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
8754
8755 * fold-const.c (fold): Replace "expr" with "t".
8756
8757 2004-03-20 Ian Lance Taylor <ian@wasabisystems.com>
8758
8759 PR c/12373
8760 * c-typeck.c (tagged_types_tu_compatible_p): Don't use
8761 DECL_ORIGINAL_TYPE if there isn't one.
8762
8763 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
8764
8765 * fold-const.c (fold): Replace "final_type" with "type".
8766 Remove variable "final_type".
8767
8768 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
8769
8770 * fold-const.c (fold): Constify "type".
8771 Replace "TREE_TYPE (t)" with "type".
8772
8773 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
8774
8775 * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
8776 dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
8777 via (*targetm.foo) () with targetm.foo ().
8778
8779 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
8780
8781 PR other/14630
8782 * doc/install.texi: Add info directory category and entry.
8783
8784 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
8785
8786 * fold-const.c (fold): Replace "t" with "tem" where it is used
8787 as a temporary variable. Remove "orig_t" and all of its uses.
8788
8789 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
8790
8791 * fold-const.c (fold): Remove variable "invert".
8792 Move the handling of relational expressions that can be folded
8793 to a constant ...
8794 (fold_relational_const): ... here.
8795 (tree_expr_nonzero_p): New.
8796
8797 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
8798
8799 PR c/14635
8800 * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
8801 DEF_GCC_BUILTIN.
8802
8803 2004-03-20 Richard Sandiford <rsandifo@redhat.com>
8804
8805 * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
8806 (GTFILES): Add $(srcdir)/dojump.h.
8807 (gt-dojump.h): New dependency.
8808 * dojump.c (and_reg, and_test, shift_test): New static variables.
8809 (prefer_and_bit_test): New function.
8810 (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
8811
8812 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
8813
8814 * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
8815 expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
8816 reorg.c, tree.h: Fix comment typos.
8817
8818 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
8819
8820 * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
8821 c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
8822 cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
8823 haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
8824 sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
8825 vmsdbgout.c: Replace calls via (*targetm.foo) () with
8826 targetm.foo ().
8827
8828 2004-03-19 Ziemowit Laski <zlaski@apple.com>
8829
8830 * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
8831 vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
8832 always_inline attribute.
8833 * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
8834 Treat expansion as completed even if literal argument is
8835 invalid (so that other expansions are not tried in vain).
8836
8837 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
8838
8839 * loop-doloop.c (add_test): Replace GEN_INT (0) with
8840 const0_rtx.
8841
8842 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
8843
8844 * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
8845 ...
8846 (fold_abs_const): ... here.
8847
8848 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8849
8850 * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
8851
8852 2004-03-19 Denis Chertykov <denisc@overta.ru>
8853
8854 PR target/11520
8855 * config/avr/avr.md ("call_insn"): Handle explicit integer
8856 specially.
8857 (call_value_insn): Likewise.
8858
8859 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8860
8861 * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
8862
8863 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
8864
8865 * fold-const.c (negate_expr): Move the handling of constants
8866 ...
8867 (fold_negate_const): ... here.
8868
8869 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8870
8871 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
8872 * langhooks.h (struct lang_hooks_for_types): New field hash_types.
8873 * tree.c (debug_no_type_hash): Deleted.
8874 (type_hash_canon): Abort if passed a variant.
8875 Check lang_hooks.types.hash_types.
8876 (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
8877 (build_array_type): Remove unnecessary allocation of pointer type.
8878 (build_complex_type): Properly qualify resulting type.
8879
8880 2004-03-19 Paolo Bonzini <bonzini@gnu.org>
8881
8882 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
8883
8884 2004-03-19 Richard Sandiford <rsandifo@redhat.com>
8885
8886 * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
8887 (expand_mult): ...here.
8888 (extract_high_half): New, split out from expand_mult_highpart.
8889 (expand_highpart_optab): Likewise. Don't clobber target prematurely.
8890 (expand_highpart): Evaluate the cost of a shift/add sequence,
8891 then see if any of the specialized optabs are cheaper.
8892
8893 2004-03-18 Ian Lance Taylor <ian@wasabisystems.com>
8894
8895 * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
8896
8897 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8898
8899 * convert.c (convert_to_real): Add more math builtins.
8900
8901 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8902
8903 * convert.c (convert_to_real): Reformat using switch stmt.
8904
8905 2004-03-18 Mark Mitchell <mark@codesourcery.com>
8906
8907 * c-common.c (pointer_int_sum): Do not complain about using
8908 pointers to pointers-to-members.
8909
8910 2004-03-18 Kazu Hirata <kazu@cs.umass.edu>
8911
8912 * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
8913 have moved to the target hooks structure".
8914
8915 2004-03-18 James E Wilson <wilson@specifixinc.com>
8916
8917 * config/mips/mips.md (type): Split move into arith and fmove. Split
8918 hilo into mthilo and mfhilo. Add trap. Delete icmp. Fix all uses.
8919 * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
8920 Likewise.
8921 * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
8922 Likewise.
8923 * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
8924 rm7_fp_quick): Likewise.
8925 * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
8926 rm9k_fquick): Likewise.
8927 * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
8928 Likewise.
8929 (ir_sr70_icmp): Delete.
8930
8931 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8932
8933 * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
8934 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
8935 (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
8936 (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
8937 (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
8938 Protect with proper check.
8939 (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
8940 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
8941 * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
8942 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
8943 * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
8944 * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
8945 not TYPE_FIELDS.
8946 * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
8947
8948 2004-03-18 Mostafa Hagog <mustafa@il.ibm.com>
8949
8950 * gcse.c (eliminate_partially_redundant_loads): Reject change if
8951 dest is set between beginning and current insn.
8952
8953 2004-03-18 Mark Mitchell <mark@codesourcery.com>
8954
8955 * c-decl.c (grokdeclarator): Do not complain about redeclaring
8956 visible "static" identifiers "extern" in a local scope.
8957 * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
8958 post-increments/decrements.
8959
8960 2004-03-18 Bob Wilson <bob.wilson@acm.org>
8961
8962 * config/xtensa/xtensa.c (current_function_arg_words): Delete.
8963 (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
8964 (xtensa_va_start): Remove assignment to current_function_arg_words.
8965
8966 2004-03-18 Richard Sandiford <rsandifo@redhat.com>
8967
8968 * alias.c (record_set): Detect the case where a register is assigned
8969 a new value that has the same base term as the old one.
8970
8971 2004-03-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8972
8973 * doloop.c: Removed.
8974 * loop-doloop.c: New file.
8975 * Makefile.in (doloop.o): Remove.
8976 (loop-doloop.o): New.
8977 * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
8978 * cfgloopanal.c (get_loop_level): New function.
8979 * loop-iv.c (iv_number_of_iterations): Handle case when loop
8980 is leaved immediatelly.
8981 * loop.c (strength_reduce): Do not call doloop optimization.
8982 * loop.h (LOOP_BCT): Removed.
8983 * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
8984 (rest_of_handle_loop2): Call doloop_optimize_loops.
8985 (rest_of_compilation): Test for optimizations moved to
8986 rest_of_handle_loop2.
8987
8988 2004-03-17 Fariborz Jahanian <fjahanian@apple.com>
8989
8990 * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
8991 for mixed mode.
8992 (rs6000_emit_prologue): Ditto.
8993 (rs6000_emit_epilogue): Ditto.
8994 * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
8995 macro for mixed mode.
8996
8997 2004-03-18 Jan Hubicka <jh@suse.cz>
8998
8999 * predict.c (propagate_freq): Compute correctly frequency of
9000 EXIT_BLOCK.
9001
9002 2004-03-17 Eric Christopher <echristo@redhat.com>
9003
9004 * builtins.c (apply_args_size): Use reg_raw_mode.
9005 (apply_result_size): Ditto.
9006
9007 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9008
9009 PR target/14620
9010 * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
9011
9012 2004-03-17 Jakub Jelinek <jakub@redhat.com>
9013
9014 * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
9015 32-bit builds when defaulting to 32-bit.
9016
9017 2004-03-17 Jan Hubicka <jh@suse.cz>
9018
9019 * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
9020 array.
9021
9022 2004-03-17 James E Wilson <wilson@specifixinc.com>
9023
9024 * config/mips/mips.md (zero_extendsidi2): Add length attribute.
9025 (hazard_nop): Change type to nop.
9026 (type): Split arith into arith, shift, slt, clz. Delete darith.
9027 Fix all uses. Change arith to multi if more than one insn emitted.
9028 * config/mips/5400.md (ir_vr54_arith): Likewise.
9029 * config/mips/5500.md (ir_vr55_arith): Likewise.
9030 * config/mips/7000.md (rm7_int_other): Likewise.
9031 * config/mips/9000.md (rm9k_int): Likewise.
9032 * config/mips/sr71k.md (ir_sr70_arith): Likewise.
9033
9034 2004-03-17 Joel Brobecker <brobecker@gnat.com>
9035
9036 * dwarf2out.c (subrange_type_die): Define new variable "subtype"
9037 to hold the subtype tree instead of recomputing it several times.
9038
9039 2004-03-17 Kazu Hirata <kazu@cs.umass.edu>
9040
9041 * config/mn10300/mn10300.c (notice_update_cc): Don't handle
9042 CC_INVERT.
9043 * config/mn10300/mn10300.md (cc): Remove "invert".
9044
9045 2004-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9046
9047 * builtins.c (integer_valued_real_p): Add builtin rint.
9048 (fold_builtin): Likewise.
9049 * convert.c (convert_to_real): Likewise.
9050
9051 * convert.c (convert_to_real): Fix typos in `long double'
9052 builtins.
9053
9054 2004-03-16 Mark Mitchell <mark@codesourcery.com>
9055
9056 PR c++/14481
9057 * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
9058 generated COMPOUND_EXPRs.
9059
9060 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9061
9062 * config/h8300/t-rtems (h8300-*-rtems*): New.
9063
9064 2004-03-16 Eric Christopher <echristo@redhat.com>
9065
9066 * doc/cppopts.texi(fwide-exec-charset): Fix typo.
9067
9068 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
9069
9070 * config/i386/i386-protos.h: Add a prototype for
9071 ix86_reverse_condition.
9072 * config/i386/i386.c (ix86_reverse_condition): New.
9073 * config/i386/i386.h (REVERSE_CONDITION): Use
9074 ix86_reverse_condition.
9075 * config/i386/i386.md: Use ix86_reverse_condition instead of
9076 REVERSE_CONDITION.
9077
9078 2004-03-16 J. Brobecker <brobecker@gnat.com>
9079
9080 * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
9081
9082 2004-03-16 Nathanael Nerode <neroden@gcc.gnu.org>
9083
9084 PR bootstrap/12974
9085 * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
9086
9087 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
9088
9089 * c-common.c (c_common_type_for_mode): Build vector types on
9090 demand.
9091 (handle_mode_attribute): Deprecate using the mode attribute
9092 to create vector types. Fix indentation.
9093 (vector_type_node_list): Remove.
9094 (handle_vector_size_attribute): Create vector types on demand.
9095 Strip a NON_LVALUE_EXPR from the attribute if there is one.
9096 * c-typeck.c (comptypes): Make vector types compatible if they
9097 have the same underlying mode.
9098 (convert_for_assignment): Use comptypes to convert between
9099 vector types.
9100 * tree.c (build_common_tree_nodes_2): Do not create vector types.
9101 * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
9102 vector types.
9103 * tree.h: Remove vector types.
9104 * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
9105 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
9106 (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
9107 V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
9108 * doc/extend.texi (Vector Types): Document how to use the
9109 vector_size attribute to create vectors, rather than mode.
9110
9111 * config/arm/mmintrin.h: Use vector_size attribute, not mode.
9112 * config/i386/emmintrin.h: Likewise.
9113 * config/i386/mmintrin.h: Likewise.
9114 * config/i386/xmmintrin.h: Likewise.
9115 * config/sh/ushmedia.h: Likewise.
9116
9117 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
9118
9119 * config/freebsd-spec.h, config/arc/arc-protos.h,
9120 config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
9121 config/arm/linux-gas.h, config/arm/semi.h,
9122 config/cris/cris-protos.h, config/i386/xm-djgpp.h,
9123 config/ia64/freebsd.h, config/mips/7000.md,
9124 config/mips/9000.md, config/ns32k/ns32k-protos.h,
9125 config/sparc/pbd.h: Update copyright.
9126
9127 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9128
9129 PR target/14577
9130 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff.
9131
9132 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
9133
9134 * combine.c (combine_simplify_rtx): Remove the "last"
9135 parameter and its documentation. Adjust recursive calls.
9136 (simplify_logical): Always perform the only simplification
9137 controlled by "last", if the simplified expression is
9138 actually different.
9139 (try_combine): Do not pass the "last" parameter to
9140 combine_simplify_rtx.
9141
9142 2004-03-16 Richard Sandiford <rsandifo@redhat.com>
9143
9144 PR target/14599
9145 * config/mips/mips.md (UNSPEC_GP): New constant.
9146 * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
9147 an UNSPEC instead of (reg $gp).
9148 (mips16_gp_pseudo_reg): Change accordingly.
9149 (print_operand): Print $gp directly when handling CONST_GP_P.
9150
9151 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
9152
9153 * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
9154 * longlong.h: Make code 68060 clean when compiling for m68060.
9155
9156 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
9157
9158 * config/m68k/m68k.md: Fix constraints for bitfield instructions.
9159 * doc/md.texi: Clarify description of "i" constraint.
9160
9161 2004-03-15 James E Wilson <wilson@specifixinc.com>
9162
9163 * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
9164 Split store into store, fpstore, fpidxstore. Fix all uses.
9165 * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
9166 Likewise.
9167 * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
9168 * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
9169 * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
9170 * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
9171 ir_sr70_fstore): Likewise.
9172
9173 2004-03-15 Richard Henderson <rth@redhat.com>
9174
9175 PR middle-end/14535
9176 * except.c (collect_one_action_chain): Record action for cleanup
9177 outer of exception spec.
9178
9179 2004-03-15 Ian Lance Taylor <ian@wasabisystems.com>
9180
9181 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
9182 Fix the check for abort and only do the mmap if we can.
9183
9184 2004-03-15 Eric Botcazou <ebotcazou@act-europe.fr>
9185
9186 * config/sparc/sparc.h: Rework comments about the code model
9187 in 64-bit environment and the mode 'Pmode'.
9188 * doc/invoke.texi (SPARC options): Rework description of the
9189 different code models supported in 64-bit environment.
9190
9191 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
9192
9193 * defaults.h (REVERSIBLE_CC_MODE): Define.
9194 * jump.c (reversed_comparison_code_parts): Don't check if
9195 REVERSIBLE_CC_MODE is defined.
9196
9197 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
9198
9199 * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
9200 et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
9201 hosthooks.h, params.h, ra-colorize.c, web.c,
9202 config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
9203 config/avr/avr-protos.h, config/avr/avr.md,
9204 config/fr30/fr30-protos.h, config/fr30/fr30.md,
9205 config/h8300/fixunssfsi.c, config/i386/darwin.h,
9206 config/i386/freebsd.h, config/i386/freebsd64.h,
9207 config/ia64/hpux.h, config/ia64/unwind-ia64.c,
9208 config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
9209 config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
9210 config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
9211 config/pa/pa64-regs.h, config/rs6000/aix41.h,
9212 config/rs6000/aix43.h, config/rs6000/host-darwin.c,
9213 config/sparc/aout.h, config/sparc/freebsd.h,
9214 config/sparc/litecoff.h, config/vax/vax-protos.h,
9215 doc/hostconfig.texi, doc/include/gcc-common.texi: Update
9216 copyright.
9217
9218 2004-03-15 Paul Brook <paul@codesourcery.com>
9219
9220 * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
9221
9222 2004-03-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
9223
9224 * c-pretty-print.c (pp_c_semicolon): Fix formatting.
9225 (pp_c_cv_qualifier): Document.
9226 (pp_c_space_for_pointer_operator): Likewise.
9227 (pp_c_integer_constant): Likewise.
9228 (pp_c_identifier): Likewise.
9229 (pp_c_init_declarator): Don't print function body.
9230
9231 2004-03-14 Joseph S. Myers <jsm@polyomino.org.uk>
9232
9233 * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
9234 doc/install.texi, doc/invoke.texi, doc/makefile.texi,
9235 doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
9236 "gcc", "g++" and "g77" or mark up with appropriate markup. Adjust
9237 wording and grammar.
9238
9239 2004-03-14 Roger Sayle <roger@eyesopen.com>
9240
9241 * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
9242 with lang_hooks.foo ().
9243 * builtins.c (expand_builtin_va_arg): Likewise.
9244 * c-common.c (fname_as_string, c_common_truthvalue_conversion,
9245 c_common_type_for_mode, c_common_nodes_and_builtins,
9246 handle_mode_attribute, handle_vector_size_attribute): Likewise.
9247 * c-convert.c (convert): Likewise.
9248 * c-format.c (check_format_types): Likewise.
9249 * c-objc-common.c (c_tree_printer): Likewise.
9250 * c-typeck.c (build_unary_op, build_conditional_expr,
9251 build_binary_op): Likewise.
9252 * calls.c (try_to_integrate, expand_call,
9253 emit_library_call_value_1): Likewise.
9254 * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
9255 Likewise.
9256 * cgraphunit.c (record_call_1, cgraph_analyze_function,
9257 cgraph_expand_function): Likewise.
9258 * convert.c (convert_to_pointer, convert_to_integer): Likewise.
9259 * coverage.c (build_fn_info_type, build_ctr_info_type,
9260 build_gcov_info, create_coverage): Likewise.
9261 * dbxout.c (dbxout_init): Likewise.
9262 * diagnostic.c (diagnostic_report_current_function): Likewise.
9263 * dojump.c (do_jump): Likewise.
9264 * dwarf2out.c (dwarf2_name): Likewise.
9265 * except.c (init_eh): Likewise.
9266 * explow.c (expr_size, int_expr_size): Likewise.
9267 * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
9268 Likewise.
9269 * expr.c (store_expr, store_constructor, safe_from_p,
9270 expand_expr_real, do_store_flag, try_casesi): Likewise.
9271 * function.c (push_function_context_to, pop_function_context_from,
9272 free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
9273 put_var_into_stack, allocate_struct_function, current_function_name):
9274 Likewise.
9275 * integrate.c (copy_decl_for_inlining, expand_inline_function):
9276 Likewise.
9277 * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
9278 lhd_print_error_function): Likewise.
9279 * opts.c (handle_option, decode_options): Likewise.
9280 * passes.c (open_dump_file): Likewise.
9281 * print-tree.c (print_node): Likewise.
9282 * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
9283 expand_decl_cleanup, emit_case_nodes): Likewise.
9284 * stor-layout.c (variable_size): Likewise.
9285 * toplev.c (announce_function, wrapup_global_declarations,
9286 check_global_declarations, compile_file, default_tree_printer,
9287 process_options, lang_dependent_init, finalize): Likewise.
9288 * tree-dump.c (dequeue_and_dump): Likewise.
9289 * tree-inline.c (remap_decl, remap_block, copy_body_r,
9290 initialize_inlined_parameters, declare_return_variable,
9291 inlinable_function_p, expand_call_inline, optimize_inline_calls,
9292 walk_tree, copy_tree_r): Likewise.
9293 * tree-optimize.c (tree_rest_of_compilation): Likewise.
9294 * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
9295 unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
9296 variably_modified_type_p, dump_tree_statistics): Likewise.
9297 * varasm.c (assemble_variable, compare_constant, copy_constant,
9298 force_const_mem, compute_reloc_for_constant, output_constant,
9299 output_addressed_constants, initializer_constant_valid_p): Likewise.
9300
9301 2004-03-14 Kelley Cook <kcook@gcc.gnu.org>
9302
9303 * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
9304
9305 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
9306
9307 * doc/install.texi: Reflect autoconf and automake version for
9308 libffi. Update autoconf version to 2.59.
9309
9310 2004-03-13 Roger Sayle <roger@eyesopen.com>
9311
9312 * fold-const.c (negate_expr, operand_equal_for_comparison_p,
9313 optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
9314 make_range, build_range_check, fold_range_test, unextend,
9315 constant_boolean_node, fold_binary_op_with_conditional_arg,
9316 fold_truthop, fold_mathfn_compare, fold_inf_compare,
9317 fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
9318 with lang_hooks.foo ().
9319
9320 2004-03-14 Richard Earnshaw <rearnsha@arm.com>
9321
9322 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
9323
9324 2004-03-13 Dara Hazeghi <dhazeghi@yahoo.com>
9325
9326 * doc/install.texi: Note status of -fnew-ra.
9327
9328 2004-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
9329
9330 PR middle-end/14470
9331 * expr.c (store_expr): Call emit_queue before generating the move
9332 from the temporary to the original target. Protect the temporary
9333 from emit_queue.
9334
9335 2004-03-13 Jakub Jelinek <jakub@redhat.com>
9336
9337 PR target/14533
9338 * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
9339 other than UNSPEC_GOTOFF.
9340
9341 2004-03-13 Richard Earnshaw <rearnsha@arm.com>
9342
9343 * arm.c (arm_legitimate_address_p): New argument, OUTER. Pass through
9344 to arm_legitimate_index_p. Update all callers with SET as default
9345 value.
9346 (arm_legitimate_index_p): New argument, OUTER. Restrict the index
9347 range if OUTER is a sign-extend operation on QImode. Correctly
9348 reject shift operations on sign-extended QImode addresses.
9349 (bad_signed_byte_operand): Delete.
9350 (arm_extendqisi_mem_op): New function.
9351 * arm.h (EXTRA_CONSTRAINT_ARM): Delete. Replace with...
9352 (EXTRA_CONSTRAINT_STR_ARM): ... this. Handle extended address
9353 constraints.
9354 (CONSTRAINT_LEN): New.
9355 (EXTRA_CONSTRAINT): Delete. Replace with...
9356 (EXTRA_CONSTRAINT_STR): ... this.
9357 (PREDICATE_CODES): Remove bad_signed_byte_operand.
9358 * arm.md (extendqihi_insn): Use new constraint Uq. Rework. Length
9359 is now always default.
9360 (define_splits for bad sign-extend loads): Delete.
9361 (arm_extendqisi, arm_extendqisi_v5): Likewise.
9362 * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
9363 Rework 'U' constraint to 'Uv'.
9364 * arm-protos.h: Remove bad_signed_byte_operand. Add
9365 arm_extendqisi_mem_op.
9366 * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
9367 Add Uq constraint.
9368
9369 2004-03-13 Alan Modra <amodra@bigpond.net.au>
9370
9371 * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
9372 with targetm version.
9373
9374 PR target/14567
9375 * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
9376 (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
9377 * config/rs6000/rs6000.c (rs6000_arg_size): New function.
9378 Update all users of RS6000_ARG_SIZE.
9379 (function_arg_advance): Count fregno using mode size.
9380 (function_arg): Handle long double split over regs and memory.
9381 (function_arg_partial_nregs): Likewise.
9382 (rs6000_va_arg): Repackage complex args.
9383
9384 2004-03-13 Dean Ferreyra <dferreyra@igc.org>
9385
9386 PR target/14047
9387 * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
9388 (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
9389 * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
9390
9391 2004-03-12 Jakub Jelinek <jakub@redhat.com>
9392
9393 * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
9394 prototype.
9395 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
9396 * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
9397
9398 2004-03-12 Andrew Pinski <apinski@apple.com>
9399
9400 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
9401 Use ret instead of result. Use addr instead of base.
9402
9403 2004-03-12 David Edelsohn <edelsohn@gnu.org>
9404
9405 * doc/install.texi (*-ibm-aix*): Document assembler and achiver
9406 fixes required by libstdc++ and update installation instructions
9407 for libstdc++.a.
9408
9409 2004-03-12 Danny Smith <dannysmith@users.sourceforge.net>
9410
9411 * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
9412 leading '@' on fastcall symbols before stripping suffix.
9413
9414 2004-03-12 Roger Sayle <roger@eyesopen.com>
9415
9416 * combine.c (unmentioned_reg_p): New function to check whether an
9417 expression is a "specialization" of another, i.e. that there are
9418 no registers or memory references mentioned in the first that don't
9419 appear in the second.
9420 (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
9421 (combine_instructions): Also try combining instructions using the
9422 REG_EQUAL note from a preceding log-linked instruction.
9423
9424 2004-03-12 Roger Sayle <roger@eyesopen.com>
9425
9426 * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
9427
9428 2004-03-12 Matt Austern <austern@apple.com>
9429
9430 * target.h (struct gcc_target): New target hook, unwind_label.
9431 * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
9432 * output.h (default_emit_unwind_label): New function.
9433 * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
9434 (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
9435 (TARGET_SUPPORTS_HIDDEN): New target macro.
9436 * dwarf2out.c (struct dw_fde_struct): Add field for function decl
9437 that corresponds to this FDE.
9438 (FRAME_BEGIN_LABEL): Allow target to override default label.
9439 (output_call_frame_info): If FDEs are linknonce, then use extra
9440 indirection for FDE encoding, output a label for each FDE, and
9441 output an empty label for each function without an FDE.
9442 (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
9443 * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
9444 decls with DECL_ONE_ONLY set, if that macro is defined.
9445 (make_decl_one_only): Don't use DECL_COMMON if we're compiling
9446 for a SUPPORTS_ONE_ONLY target.
9447 * config/darwin-protos.h (darwin_unique_section): Declare.
9448 (darwin_asm_named_section): Likewise.
9449 (darwin_section_type_flags): Likewise.
9450 (darwin_non_lazy_pcrel): Likewise.
9451 (darwin_emit_unwind_label): Likewise.
9452 (darwin_make_decl_one_only): Likewise.
9453 * config/darwin.c (machopic_finish): Get rid of tweak that
9454 eliminate stubs for symbols that are defined.
9455 (darwin_encode_section_info): Don't treat weak functions as defined.
9456 (darwin_make_decl_one_only): Define.
9457 (darwin_asm_named_section): Likewise.
9458 (darwin_section_type_flags): Likewise.
9459 (darwin_unique_section): Likewise.
9460 (darwin_emit_unwind_label): Likewise.
9461 (darwin_non_lazy_pcrel): Likewise.
9462 (darwin_asm_output_dwarf_delta): Difference between two labels is
9463 local only if both labels are local.
9464 * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
9465 (ASM_MAKE_LABEL_LINKONCE): Likewise.
9466 (TARGET_SUPPORTS_HIDDEN): Likewise.
9467 (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
9468 (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
9469 (FRAME_BEGIN_LABEL): Likewise.
9470 (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
9471 (ASM_DECLARE_FUNCTION_NAME): Likewise.
9472 (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
9473 (TARGET_ASM_UNIQUE_SECTION): Define.
9474 (EH_FRAME_SECTION_NAME): Define.
9475 (EH_FRAME_SECTION_ATTR): Likewise.
9476 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
9477 (TARGET_ASM_NAMED_SECTION): Likewise.
9478 (TARGET_SECTION_TYPE_FLAGS): Likewise.
9479 * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
9480 TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
9481 TARGET_ASM_EMIT_UNWIND_LABEL.
9482
9483 2004-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9484
9485 * builtins.c (expand_builtin_mathfn): Add pow10* to the
9486 existing exp10* case.
9487 (expand_builtin): Likewise.
9488
9489 2004-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
9490
9491 * doc/tm.texi (registers) <Values in Registers>: Add
9492 entry for REGMODE_NATURAL_SIZE.
9493
9494 2004-03-12 Richard Henderson <rth@redhat.com>
9495
9496 PR target/14547
9497 * target.h (struct gcc_target): Move calls substructure before
9498 booleans. Add split_complex_arg.
9499 * function.c (assign_parms, split_complex_args): Use it.
9500 * calls.c (expand_call): Likewise.
9501 (split_complex_values): Likewise. Check for splittable types
9502 before allocating memory.
9503 (split_complex_types): Likewise.
9504 * system.h (SPLIT_COMPLEX_ARGS): Poison.
9505 * expr.h (SPLIT_COMPLEX_ARGS): Remove.
9506 * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
9507 * config/alpha/alpha.c (alpha_split_complex_arg): New.
9508 (TARGET_SPLIT_COMPLEX_ARG): New.
9509 * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
9510 * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
9511 (rs6000_override_options): Zap it for non-AIX.
9512 (rs6000_function_value): Use targetm.calls.split_complex_arg.
9513 * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
9514 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
9515 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
9516 * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
9517 SPLIT_COMPLEX_ARGS entry.
9518
9519 2004-03-11 Richard Henderson <rth@redhat.com>
9520
9521 * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
9522 (alpha_lookup_xfloating_lib_func): Use them, return rtx.
9523 (alpha_emit_xfloating_arith): Update to match.
9524 (alpha_emit_xfloating_compare): Likewise.
9525 (alpha_emit_xfloating_cvt): Likewise.
9526 (alpha_emit_xfloating_libcall): Take already built symbol,
9527 mark call const.
9528 * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
9529 op1 in a register.
9530
9531 2004-03-11 Richard Henderson <rth@redhat.com>
9532
9533 PR target/14539
9534 * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
9535
9536 * simplify-rtx.c (simplify_relational_operation): Fix typo.
9537
9538 2004-03-11 Richard Henderson <rth@redhat.com>
9539
9540 PR middle-end/14477
9541 * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
9542
9543 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
9544
9545 PR target/14262
9546 * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
9547 defined, pass small BLKmode values in registers in the low-order part.
9548
9549 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
9550
9551 * combine.c (if_then_else_cond): Check for NULL return value of
9552 simplify_gen_subreg.
9553
9554 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
9555
9556 PR target/14496
9557 * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
9558 TARGET_SINGLE_FLOAT.
9559
9560 2004-03-11 Steve Ellcey <sje@cup.hp.com>
9561
9562 * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
9563 * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
9564 * config/ia64/ia64.c (ia64_init_libfuncs): New.
9565 (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
9566
9567 2004-03-11 Roger Sayle <roger@eyesopen.com>
9568
9569 * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
9570 -((int)X>>C) where C is an integer constant one bit less than the
9571 size of X into (unsigned)X>>C. Similarly for unsigned->signed.
9572 (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
9573
9574 * simplify-rtx.c (simplify_unary_operation): Also implement the
9575 above transformations at the RTL level.
9576
9577 2004-03-11 Alan Modra <amodra@bigpond.net.au>
9578
9579 * real.c (encode_ibm_extended): Do round low word.
9580
9581 2004-03-11 Ben Elliston <bje@wasabisystems.com>
9582
9583 * config/arm/arm.md (is_xscale): Comment this attribute and move
9584 it a bit further up in the file, closer to related attributes.
9585
9586 2004-03-11 Eric Botcazou <ebotcazou@libertysurf.fr>
9587
9588 * config/host-solaris.c (sol_gt_pch_use_address): Add
9589 missing terminating marker to comment.
9590
9591 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
9592
9593 * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
9594 (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
9595 (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
9596 (*movsf_mips16, *movdf_mips16): Name unnamed patterns. Use
9597 move_operand as source predicate in all cases.
9598 (*movdi_32bit): Renamed from movdi_internal. Remove 'F' constraint.
9599 Test reg_or_0_operand. Use move_operand as source predicate.
9600 (*movdi_64bit): Renamed from movdi_internal2. Test reg_or_0_operand.
9601 (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
9602 (*movsi_internal): Renamed from movsi_internal. Test reg_or_0_operand.
9603 (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
9604 (*movhi_internal): Renamed from movhi_internal. Test reg_or_0_operand.
9605 Use move_operand as source predicate. Remove 'K' constraint.
9606 (*movqi_internal): Likewise movqi_internal.
9607 (*movsf_hardfloat): Renamed from movsf_internal1. Test
9608 reg_or_0_operand. Use move_operand as source predicate.
9609 (*movsf_softfloat): Likewise movsf_internal2.
9610 (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
9611 (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
9612 (*movdf_softfloat): Likewise movdf_internal2.
9613 * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
9614 for DImode if !TARGET_64BIT.
9615 (mips_legitimize_move): Simplify accordingly.
9616
9617 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
9618
9619 PR/14362
9620 * var-tracking.c (struct variable_def): Added field refcount.
9621 (variable_htab_free): Decrease the refcount and delete variable
9622 only if there are no more references.
9623 (unshare_variable): New function.
9624 (vars_copy_1): Increase refcount instead of copying the variable.
9625 (variable_union): Share the variables where possible, unshare
9626 the variables if needed.
9627 (variable_different_p): Return false if var1 and var2 are
9628 the same structure.
9629 (variable_was_changed): Init the refcount of new variable.
9630 (set_frame_base_location): Unshare variable if needed.
9631 (set_variable_part): Init the refcount of new variable.
9632 Unshare the variables if needed.
9633 (delete_variable_part): Unshare the variables if needed.
9634 (emit_notes_for_differences_1): Init the refcount of new variable.
9635 (vt_add_function_parameters): Do not add function parameters to
9636 IN set of ENTRY_BLOCK_PTR because it is unused anyway.
9637 (vt_initialize): Do not add frame_base_decl to IN set of
9638 ENTRY_BLOCK_PTR because it is unused anyway.
9639
9640 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
9641
9642 * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
9643 (vars_copy): Likewise.
9644 (variable_union): Likewise.
9645 (set_variable_part): Likewise.
9646 (delete_variable_part): Likewise.
9647
9648 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
9649
9650 * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
9651 ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
9652 config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
9653 config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
9654 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
9655 config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
9656 config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
9657 config/pdp11/pdp11.h, config/rs6000/rs6000.c,
9658 config/stormy16/stormy16.c: Fix comment typos and formatting.
9659
9660 2004-03-11 Nathanael Nerode <neroden@gcc.gnu.org>
9661
9662 * configure: Regenerate, since I forgot to while committing Paolo's
9663 changes.
9664
9665 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
9666
9667 PR ada/14131
9668 Move language detection to the top level.
9669 * configure.ac: Remove code to detect languages,
9670 it now lives exclusively in the top level.
9671 * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
9672 top level, renamed to ACX_PROG_GNAT.
9673
9674 2004-03-10 Richard Henderson <rth@redhat.com>
9675
9676 * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
9677 extra arguments.
9678 * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
9679 and host_xmake_file fragments.
9680 * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
9681 (gt_pch_restore): Similarly for gt_pch_use_address.
9682 (default_gt_pch_get_address): New.
9683 (mmap_gt_pch_get_address): Split out of gt_pch_save.
9684 (default_gt_pch_use_address): Split out of gt_pch_restore.
9685 (mmap_gt_pch_use_address): Likewise.
9686 * hooks.c (hook_voidp_size_t_null): Remove.
9687 (hook_bool_voidp_size_t_false): Remove.
9688 * hooks.h: Likewise.
9689 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
9690 default_ or mmap_ definitions.
9691 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
9692 * hosthooks.h (struct host_hooks): Update gt_pch_get_address
9693 and gt_pch_use_address.
9694 * config/host-linux.c, config/host-solaris.c: New files.
9695 * config/x-linux, config/x-solaris: New files.
9696 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
9697 Update for changed definition.
9698 (darwin_rs6000_gt_pch_use_address): Likewise.
9699 * doc/hostconfig.texi: Update docs.
9700
9701 2004-03-10 Richard Henderson <rth@redhat.com>
9702
9703 PR c/14517
9704 * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
9705 except for pedantic c90 mode.
9706
9707 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
9708
9709 * configure.ac: Bump AC_PREREQ to 2.59.
9710 * configure: Regenerate.
9711
9712 2004-03-10 Uros Bizjak <uros@kss-loka.si>
9713
9714 * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
9715 (exp10_optab, exp2_optab): Define corresponding macros.
9716 * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
9717 * genopinit.c (optabs): Implement exp10_optab and exp2_optab
9718 using exp10?f2 and exp2?f2 patterns.
9719 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
9720 using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
9721 (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
9722 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
9723
9724 * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
9725 exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
9726 exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
9727
9728 2004-03-10 Anthony Green <green@redhat.com>
9729
9730 * doc/invoke.texi (ARM Options): Fix -mpfu typo.
9731
9732 2004-03-10 David Edelsohn <edelsohn@gnu.org>
9733
9734 * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
9735 (TARGET_OS_AIX_CPP_BUILTINS): this. Conditionally define
9736 __LONGDOUBLE128.
9737 * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
9738 TARGET_OS_AIX_CPP_BUILTINS.
9739 * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
9740 * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
9741 * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
9742 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
9743 previous change.
9744
9745 2004-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9746
9747 * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
9748
9749 2004-03-10 David Edelsohn <edelsohn@gnu.org>
9750
9751 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
9752 __LONGDOUBLE128 on AIX.
9753
9754 2004-03-10 Andrew Haley <aph@redhat.com>
9755
9756 PR optimization/14381
9757 * function.c (expand_function_end): Emit a blockage insn before
9758 the epilogue when -fnon-call-exceptions is used.
9759
9760 * except.c (expand_start_all_catch): Make comment more accurate.
9761
9762 2004-03-08 Joel Sherrill <joel@oarcorp.com>
9763
9764 PR target/14480
9765 * config/rs6000/t-rtems: Add missing file on branch.
9766
9767 2004-03-10 Ulrich Weigand <uweigand@de.ibm.com>
9768
9769 * dbxout.c (dbxout_symbol_location): Do not output references
9770 to optimized-out constant pool symbols.
9771
9772 2004-03-10 Andreas Schwab <schwab@suse.de>
9773
9774 * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
9775 twon34_r.
9776
9777 2004-03-09 James E Wilson <wilson@specifixinc.com>
9778
9779 * alias.c (alias_sets_might_conflict_p): New.
9780 * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
9781 * common.opt (Wstrict-aliasing=): New.
9782 * flags.h (warn_strict_aliasing): Change type to int.
9783 * opts.c (warn_strict_aliasing): Change type to int.
9784 (common_handle_option): Handle OPT_Wstrict_aliasing_.
9785 * tree.h (alias_sets_might_conflict_p): Declare it.
9786 * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
9787
9788 2004-03-10 Roman Zippel <zippel@linux-m68k.org>
9789
9790 PR bootstrap/12371
9791 * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
9792 (CALL_USED_REGISTERS): Likewise.
9793 (REG_CLASS_CONTENTS): Likewise.
9794 (REG_ALLOC_ORDER): New.
9795 (REGNO_REG_CLASS): Use regno_reg_class.
9796 * config/m68k/m68k.c: Add regno_reg_class array.
9797
9798 2004-03-09 Steve Ellcey <sje@cup.hp.com>
9799
9800 * config/ia64/ia64.md (divsi3): Fix algorithm.
9801 (udivsi3): Ditto.
9802 (setf_exp_xf): Remove '*' from name.
9803 * testsuite/gcc.dg/20040309-1.c: New test.
9804
9805 2004-03-09 Ian Lance Taylor <ian@wasabisystems.com>
9806
9807 * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
9808 * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
9809 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
9810 * config/sparc/sparc.c (sparc_aout_select_section): Remove.
9811 (sparc_aout_select_rtx_section): Don't check
9812 SUNOS4_SHARED_LIBRARIES.
9813 * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
9814
9815 2004-03-10 Hans-Peter Nilsson <hp@axis.com>
9816
9817 PR other/14474
9818 * doc/md.texi (Pattern Ordering, Dependent Patterns)
9819 (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
9820 INTERNALS".
9821
9822 2004-03-09 Zack Weinberg <zack@codesourcery.com>
9823
9824 * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
9825 (LIBGCC_SPEC): Update to match.
9826
9827 2004-03-09 Zack Weinberg <zack@codesourcery.com>
9828
9829 * c-decl.c (last_function_parms, last_function_parm_tags)
9830 (last_function_parm_others, current_function_parms)
9831 (current_function_parm_tags, current_function_parm_others):
9832 Delete.
9833 (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
9834 New macros.
9835 (grokdeclarator): For function definitions, save the arg-info
9836 block from the declarator in DECL_ARGUMENTS.
9837 (grokparms): Do not write to last_function_parm*. Use ARG_INFO_*
9838 macros to operate on arg-info block. Can assume ARG_INFO_PARMS
9839 contains only PARM_DECLs. Improve diagnostics.
9840 (get_parm_info): Use ARG_INFO_* macros. Improve comments and
9841 diagnostics. Disable some expensive checks if not ENABLE_CHECKING.
9842 (store_parm_decls_newstyle): Take the function to operate on,
9843 and an arg-info block, as arguments; don't get anything from
9844 current_function_* globals.
9845 (store_parm_decls_oldstyle): Likewise.
9846 (store_parm_decls): Pass fndecl and its arg-info block down to
9847 store_parm_decls_newstyle/oldstyle. Send functions with empty
9848 argument lists through store_parm_decls_newstyle to reduce
9849 overhead.
9850 (pushdecl): Comment on the problems with the call to copy_node.
9851 Clear DECL_ARGUMENTS of the old node after copying it, if it
9852 is an arg-info block instead of a chain of decls.
9853 (start_function): Do not manipulate current_function_parm* or
9854 last_function_parm*.
9855
9856 2004-03-09 Roger Sayle <roger@eyesopen.com>
9857 Andrew Pinski <pinskia@physics.uc.edu>
9858
9859 * ifcvt.c (noce_try_sign_mask): New function to transform
9860 "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
9861 (noce_process_if_block): Call noce_try_sign_mask.
9862
9863 2004-03-09 Andrew Pinski <apinski@apple.com>
9864
9865 * c-typeck.c (tagged_types_tu_compatible_p):
9866 Fix typo.
9867
9868 2004-03-09 Roger Sayle <roger@eyesopen.com>
9869
9870 * simplify-rtx.c (simplify_const_relational_operation): New function
9871 renamed from simplify_relational_operation.
9872 (simplify_relational_operation): Change prototype to accept an
9873 additional mode argument. Call simplify_const_relational_operation.
9874 (simplify_gen_relational): Update simplify_relational_operation call.
9875 (simplify_ternary_operation): Update simplify_relational_operation
9876 subroutine call to use simplify_const_relational_operation instead.
9877
9878 * rtl.h (simplify_const_relational_operation): Prototype here.
9879 (simplify_relational_operation): Add addtional mode argument.
9880
9881 * combine.c (combine_simplify_rtx): Update calls to
9882 simplify_relational_operation.
9883 (simplify_set): Likewise.
9884 (gen_binary): Likewise.
9885 * cse.c (fold_rtx): Likewise.
9886 * dojump.c (compare_from_rtx): Likewise.
9887 (do_compare_rtx_and_jump): Likewise.
9888 * integrate.c (subst_constants): Likewise.
9889 * unroll.c (simplify_cmp_and_jump_insns): Likewise.
9890
9891 2004-03-09 Kazu Hirata <kazu@cs.umass.edu>
9892
9893 * config/m32r/m32r.md: Remove all define_peephole's.
9894
9895 2004-03-09 Alan Modra <amodra@bigpond.net.au>
9896
9897 * config/rs6000/rs6000.md: Remove trailing whitespace.
9898
9899 2004-03-08 Eric Christopher <echristo@redhat.com>
9900
9901 * Makefile.in (site.exp): Add libiconv variable definition.
9902
9903 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
9904
9905 * configure: Regenerate for config/accross.m4 correction.
9906
9907 2004-03-08 Joel Sherrill <joel@oarcorp.com>
9908
9909 PR target/14480
9910 * config/rs6000/t-rtems: Add missing file on branch.
9911
9912 2004-03-08 Roger Sayle <roger@eyesopen.com>
9913
9914 PR middle-end/14289
9915 * c-typeck.c (c_mark_addressable): A register variable should
9916 be considered global if its not automatic, i.e. TREE_PUBLIC,
9917 TREE_STATIC or DECL_EXTERNAL.
9918 * function.c (put_var_into_stack): Call abort when placing a
9919 hard register into the stack, if x_parm_reg_stack_loc is NULL.
9920
9921 2004-03-08 Ulrich Weigand <uweigand@de.ibm.com>
9922
9923 * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
9924 ("*extendqisi2_short_displ"): Likewise.
9925
9926 2004-03-08 Kazu Hirata <kazu@cs.umass.edu>
9927
9928 * config/pdp11/pdp11.c (comparison_operator_index): Remove.
9929 (comp_operator): Likewise.
9930 * config/pdp11/pdp11-protos.h: Remove corresponding
9931 prototypes.
9932
9933 2004-03-08 Eric Botcazou <ebotcazou@act-europe.fr>
9934
9935 * expr.c (highest_pow2_factor_for_type): Rename into
9936 highest_pow2_factor_for_target. Use DECL_ALIGN instead of
9937 TYPE_ALIGN when the target is a COMPONENT_REF.
9938 (expand_assignment): Ajust call to highest_pow2_factor_for_type.
9939
9940 2004-03-08 Alan Modra <amodra@bigpond.net.au>
9941
9942 * config/rs6000/rs6000.c: Formatting fix.
9943 (legitimate_offset_address_p): Correct offset range check.
9944
9945 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
9946 -msoft-float by -mcpu. Consolidate similar code for MASK_MULTIPLE
9947 and MASK_STRING.
9948
9949 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
9950
9951 * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
9952 for little endian.
9953 ("ashrdi3_no_power"): Disable for little endian.
9954 (ashrdi3): Same.
9955
9956 2004-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9957
9958 * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
9959 builtins.
9960
9961 2004-03-08 Hans-Peter Nilsson <hp@axis.com>
9962
9963 PR target/14471
9964 * configure.ac (Target-specific assembler checks) <cris-*-*>: New
9965 case, checking for -no-mul-bug-abort option.
9966 * configure, config.in: Regenerate.
9967 * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
9968 and -mno-mul-bug-workaround.
9969 * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
9970 ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
9971 ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
9972 Ditto. Make attribute "slottable" dependent on TARGET_MUL_BUG.
9973 * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
9974 sure mulu.d is not last on cache-line.
9975 * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
9976 into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
9977 (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
9978 (TARGET_SWITCHES): New options -mmul-bug-workaround and
9979 -mno-mul-bug-workaround.
9980 (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
9981 (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
9982 * config/cris/cris.c (cris_operand_extend_operator): Clarify
9983 relation to MULT in head comment.
9984 (cris_op_str): Abort for MULT.
9985 (cris_print_operand) <case '!'>: New case.
9986
9987 2004-03-08 Alan Modra <amodra@bigpond.net.au>
9988
9989 PR debug/11983
9990 * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
9991 dw_val_class_vec. Replace use throughout file.
9992 (dw_float_const): Delete.
9993 (dw_vec_const): New.
9994 (dw_val_struct_union): Rename val_float to val_vec. Replace use
9995 throughout file.
9996 (add_AT_vec): Rename from add_AT_float. Add elt_size param.
9997 (same_dw_val_p): Adjust vec comparison. Use memcmp.
9998 (size_of_die): Adjust dw_val_class_vec sizing.
9999 (output_die): Output dw_val_class_vec.
10000 (insert_int, extract_int, insert_float): New functions.
10001 (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
10002 Handle CONST_VECTOR.
10003 (add_location_or_const_value_attribute): Handle CONST_VECTOR.
10004
10005 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
10006
10007 * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
10008 AltiVec abi cannot co-exist.
10009
10010 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
10011
10012 2004-03-07 Jan Hubicka <jh@suse.cz>
10013
10014 * except.c (emit_to_new_bb_before): Break fallthru edges.
10015
10016 2004-03-07 Stephane Carrez <stcarrez@nerim.fr>
10017
10018 * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
10019 ("*lshrsi3"): Also accept an immediate for 68HC12.
10020 ("*ashrsi3_const"): Likewise.
10021 ("*ashrsi3"): Likewise.
10022 ("*ashlsi3_const"): Likewise.
10023 ("*ashlsi3"): Likewise.
10024 ("cmphi_1_hc12"): Compare two hard register by pushing them and
10025 comparing with a pop; don't use a split for that.
10026 ("cmphi split"): Disable compare split for 68HC12.
10027
10028 * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
10029 the status operands if they have side effects.
10030
10031 2004-03-07 Kazu Hirata <kazu@cs.umass.edu>
10032
10033 * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
10034 definition.
10035 * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
10036 config/h8300/h8300.h, config/ia64/ia64.h,
10037 config/mcore/mcore.h, config/mmix/mmix.h,
10038 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
10039 config/stormy16/stormy16.h, config/v850/v850.h,
10040 config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
10041 * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
10042 definition.
10043
10044 2004-03-07 Roger Sayle <roger@eyesopen.com>
10045
10046 * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
10047 <XOR_EXPR>: Fold x ^ x as zero.
10048 <AND_EXPR>: Fold x & x as x.
10049
10050 2004-03-07 Roger Sayle <roger@eyesopen.com>
10051
10052 * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
10053 "foo++ == const" into "++foo == const+incr".
10054
10055 2004-03-07 Richard Sandiford <rsandifo@redhat.com>
10056
10057 * config/mips/mips.c (mips_in_small_data_p): Return false if
10058 TARGET_ABICALLS.
10059
10060 2004-03-06 Stephane Carrez <stcarrez@nerim.fr>
10061
10062 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
10063 the stack register.
10064 (expand_prologue): Don't make an interrupt or a trap handler a far
10065 symbol.
10066 (m68hc11_initial_elimination_offset): Likewise.
10067
10068 2004-03-06 Richard Henderson <rth@redhat.com>
10069
10070 * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
10071
10072 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
10073
10074 * config/ns32k/ns32k-protos.h: Add a prototype for
10075 ns32k_notice_update_cc.
10076 * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
10077 * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
10078 ns32k_notice_update_cc.
10079
10080 2004-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10081
10082 * config/s390/s390.md ("load_multiple", "*load_multiple_di",
10083 "*load_multiple_si"): Allow only if reload_completed.
10084 ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
10085 Likewise.
10086
10087 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
10088
10089 * config/vax/vax-protos.h: Add a prototype for
10090 vax_notice_update_cc.
10091 * config/vax/vax.c (vax_notice_update_cc): New.
10092 * config/vax/vax.h (NOTICE_UPDATE_CC): Call
10093 vax_notice_update_cc.
10094
10095 2004-03-06 David Edelsohn <edelsohn@gnu.org>
10096
10097 * collect2.c (main): Only export initfunc and finifunc if
10098 LD_INIT_SWITCH not defined.
10099 (scan_prog_file): Only export constructors and destructors if
10100 LD_INIT_SWITCH not defined. Only export symbols not found in
10101 shared objects.
10102
10103 2004-03-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10104
10105 * pa.md (icacheflush): Reorder operands to make match_scratch operand
10106 last.
10107 * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
10108 from calls to gen_icacheflush.
10109
10110 2004-03-06 Richard Henderson <rth@redhat.com>
10111
10112 * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
10113 (TARGET_LONG_DOUBLE_128): New.
10114 (TARGET_SWITCHES): Add long-double-{128,64}.
10115 (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
10116 (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
10117 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
10118 (WIDEST_HARDWARE_FP_SIZE): New.
10119 (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
10120 * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
10121 if TARGET_VAX_FLOAT.
10122 * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
10123 (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
10124
10125 2004-03-06 Richard Henderson <rth@redhat.com>
10126
10127 * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
10128 botched rtx class conversion.
10129
10130 2004-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10131
10132 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
10133 BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
10134
10135 * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
10136 macros.
10137 * fold-const.c (fold_mathfn_compare, fold): Likewise.
10138
10139 2004-03-06 Eric Botcazou <ebotcazou@libertysurf.fr>
10140
10141 PR target/14343
10142 * config/i386/i386.md (movv2di_internal): Conditionalize on
10143 TARGET_SSE, not TARGET_SSE2.
10144
10145 2004-03-05 Chris Demetriou <cgd@broadcom.com>
10146
10147 * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
10148 duplicated line.
10149
10150 2004-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10151
10152 * builtins.c: Consistently use logN not log* in comments.
10153
10154 2004-03-05 Andreas Krebbel <krebbel1@de.ibm.com>
10155
10156 * rtl.h (mem_expr_equal_p): Function prototype added.
10157 * cfgcleanup.c (merge_memattrs): New function.
10158 (flow_find_cross_jump): Call merge_memattrs for matching insns.
10159 * emit-rtl.c (mem_expr_equal_p): New function.
10160
10161 2004-03-05 Ziemowit Laski <zlaski@apple.com>
10162
10163 * objc/objc-act.c (synth_module_prologue): Const-qualify
10164 objc_selector type if using the GNU runtime; fix generated
10165 signatures for objc_msg_lookup and objc_msg_lookup_super
10166 to match what GNU ObjC headers provide; reformat and clean up.
10167 (synth_self_and_ucmd_args): Use previously constructed (and
10168 hence possibly const-qualified) objc_selector type.
10169
10170 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
10171
10172 * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
10173
10174 2004-03-05 Jason Merrill <jason@redhat.com>
10175
10176 * tree.h (TYPE_HASH): Use TYPE_UID.
10177 (TREE_HASH): New macro with old definition of TYPE_HASH.
10178 * tree.c (build_type_attribute_variant): Use iterative_hash_object.
10179 (build_array_type, build_function_type): Likewise.
10180 (build_method_type_directly): Likewise.
10181 (build_offset_type, build_complex_type): Likewise.
10182 (type_hash_list, attribute_hash_list): Likewise. Now static.
10183 * except.c: s/TYPE_HASH/TREE_HASH/.
10184
10185 2004-03-05 Bob Wilson <bob.wilson@acm.org>
10186
10187 * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
10188 (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32). Adjust
10189 __va_ndx by 2 words when referencing an argument on the stack.
10190 (xtensa_va_arg): Handle 16-byte aligned args. Adjust __va_ndx by 2
10191 words when an arg on the stack is first seen.
10192
10193 2004-03-05 Paul Brook <paul@codesourcery.com>
10194
10195 * arm.h (ARM_FLAG_VFP): Remove.
10196 (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
10197 * netbsd-elf.h (ARM_FLAG_VFP): Remove.
10198
10199 2004-03-05 Paul Brook <paul@codesourcery.com>
10200
10201 * function.c (assign_parms): Include pretend alignment offset.
10202
10203 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10204
10205 * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
10206 FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
10207
10208 2004-03-05 Ian Lance Taylor <ian@wasabisystems.com>
10209
10210 * configure.ac: When passing --enable-languages to subdir
10211 configure when host != build, make sure we don't pass an empty
10212 value.
10213 * configure: Regenerate.
10214
10215 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
10216
10217 PR 13577
10218 * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
10219 options.
10220
10221 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
10222
10223 * simplify-rtx.c (simplify_relational_operation): If
10224 flag_wrapv is set, do not move terms between the two
10225 side of a relational operator.
10226
10227 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
10228
10229 * rtlanal.c: Include target.h and output.h
10230 (rtx_cost, address_cost, default_address_cost): Move from...
10231 * cse.c (rtx_cost, address_cost, default_address_cost):
10232 ... this file.
10233 * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
10234 * Makefile.in: Adjust dependencies.
10235
10236 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
10237
10238 * cse.c (cse_end_of_basic_block): Make static.
10239 * local-alloc.c (function_invariant_p): Move to
10240 reload1.c.
10241 * loop.c (libcall_other_reg, record_excess_regs):
10242 Make static.
10243 * reload1.c (function_invariant_p): Moved here
10244 from local-alloc.c, made static.
10245 * rtl.h (cse_end_of_basic_block, function_invariant_p,
10246 libcall_other_reg, record_excess_regs): Remove
10247 declarations.
10248
10249 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
10250
10251 * config/m32r/m32r.c (signed_comparison_operator): Add a
10252 missing parenthesis.
10253
10254 2004-03-04 Ian Lance Taylor <ian@wasabisystems.com>
10255
10256 * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
10257 going to call mmap again. Read the file into the right place.
10258 Give a fatal error if we have to relocate.
10259
10260 2004-03-04 Bob Wilson <bob.wilson@acm.org>
10261
10262 * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
10263 (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
10264
10265 2004-03-05 Hans-Peter Nilsson <hp@axis.com>
10266
10267 PR other/14354
10268 * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
10269 round the same. When rounding, clear bits that would cause a
10270 second rounding in pack_d.
10271 (_fpmul_parts): Ditto. Remove #if 0:d code.
10272
10273 2004-03-04 Ziemowit Laski <zlaski@apple.com>
10274
10275 PR c++/14425, c++/14426
10276 * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
10277 vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
10278 Change C++ definitions to accept a 'const int' argument;
10279 the prototypes already do.
10280 * config/rs6000/rs6000.c (rs6000_common_init_builtins):
10281 Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
10282 v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
10283 v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
10284 v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
10285 v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
10286 end in ..._int; change them to accept an int instead of a char
10287 as the last parameter.
10288
10289 2004-03-04 Phil Edwards <phil@codesourcery.com>
10290
10291 * genmultilib: Change '=' to '-' when translating option names
10292 to directory names.
10293
10294 2004-03-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10295
10296 * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
10297 stack slot for temp used for result of BLKmode but in integral mode.
10298
10299 2004-03-04 Jan Hubicka <jh@suse.cz>
10300
10301 * reload.c (find_reloads): Reorganize if seqeunce to switch.
10302
10303 * cfgrtl.c (rtl_redirect_edge_and_branch): Set the source BB as dirty.
10304 (cfglayout_redirect_edge_and_branch): Set the source BB as dirty.
10305
10306 2004-03-04 Steve Ellcey <sje@cup.hp.com>
10307
10308 * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
10309 * testsuite/gcc.dg/20040303-1.c: New test.
10310
10311 2004-03-04 Steven Bosscher <stevenb@suse.de>
10312
10313 * ppro.md: Rewrite as a DFA pipeline description.
10314 * i386.md: Remove all uses of the ppro_uops attribute.
10315 * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
10316 ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
10317 ix86_sched_reorder, ix86_variable_issue,
10318 struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
10319 TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
10320 (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
10321 (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
10322 * athlon.md (athlon_ssecmp_load): Fix comment
10323
10324 2004-03-04 Stuart Hastings <stuart@apple.com>
10325
10326 * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
10327
10328 2004-03-04 Stuart Hastings <stuart@apple.com>
10329
10330 * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
10331 686, tell Darwin assembler to allow prefetch insns, non-empty def
10332 of SUBTARGET_OPTION_TRANSLATE_TABLE.
10333
10334 2004-03-04 DJ Delorie <dj@redhat.com>
10335
10336 PR optimization/14282
10337 * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
10338 between a call and the assignment of its return value.
10339
10340 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
10341
10342 * config/h8300/h8300.c: Put a comment for every function.
10343
10344 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
10345
10346 * config/h8300/h8300.md: Add comments about peephole2's.
10347
10348 2004-03-04 Steven Bosscher <stevenb@suse.de>
10349
10350 * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
10351
10352 2004-03-04 Jan Hubicka <jh@suse.cz>
10353
10354 * cfgcleanup.c (thread_jump): Update call of cselib_init.
10355 * cselib.c (cselib_record_memory): New static variable.
10356 (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
10357 Give up on memories when asked for.
10358 (cselib_init): Accept new argument.
10359 * cselib.h (cselib_init): Update prototype.
10360 * gcse.c (local_cprop_pass): Update call of cselib_init.
10361 * loop.c (load_mems): Update call of cselib_init.
10362 * postreload.c (reload_cse_regs_1): Update call of cselib_init.
10363 * sched-deps.c (sched_analyze): Update call of cselib_init.
10364
10365 2004-03-04 David Edelsohn <edelsohn@gnu.org>
10366 GP <gp@qnx.com>
10367
10368 * config/rs6000/rs6000.c (output_function_profiler): Append @plt
10369 when compiling PIC.
10370
10371 2004-03-04 Josef Zlomek <zlomekj@suse.cz>
10372
10373 PR/14362
10374 * var-tracking.c (track_expr_p): Do not track variables which
10375 should be ignored for debugging purposes.
10376
10377 2004-03-04 Alan Modra <amodra@bigpond.net.au>
10378
10379 * real.c (encode_ibm_extended): Don't bother rounding low double.
10380 * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
10381 when fmt->pnan < fmt->p.
10382
10383 2004-03-04 Eric Christopher <echristo@redhat.com>
10384
10385 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
10386 only range of valid arg registers and fixed_regs.
10387
10388 2004-03-04 Alan Modra <amodra@bigpond.net.au>
10389
10390 PR target/14406
10391 * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
10392 (abstf2, abstf2_internal): New define_expand.
10393
10394 2004-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
10395
10396 PR optimization/14235
10397 * expr.c (convert_move): Copy the source to a new pseudo
10398 when converting from a sub-word source to a larger-than-word
10399 register which conflicts with the source.
10400
10401 2004-03-03 Zack Weinberg <zack@codesourcery.com>
10402
10403 PR 13728
10404 * c-decl.c (diagnose_mismatched_decls): Issue an error for two
10405 parameters with the same name, unless one is a forward decl.
10406 Do not issue a redundant-redeclaration warning for forward
10407 decls of parameters.
10408
10409 2004-03-04 David Edelsohn <edelsohn@gnu.org>
10410
10411 * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
10412 configuration.
10413
10414 2004-03-03 Ian Lance Taylor <ian@wasabisystems.com>
10415
10416 * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
10417
10418 2004-03-04 Alan Modra <amodra@bigpond.net.au>
10419
10420 * target-def.h (TARGET_OPTF): Delete.
10421 * c-opts.c (TARGET_OPTF): Define.
10422
10423 2004-03-04 Jan Hubicka <jh@suse.cz>
10424
10425 * cselib.c (cselib_finish): Fix another miss-application of my previous
10426 patch.
10427
10428 2004-03-03 Mike Stump <mrs@apple.com>
10429
10430 Add framework support for darwin.
10431
10432 * c-incpath.c: Include target.h and machmode.h.
10433 (add_path): Use a consistent style for cpp_dir. Initialize
10434 p->construct to 0.
10435 (add_cpp_dir_path): New.
10436 (register_include_chains): Add use of extra_includes callback.
10437 (hook_void_int): Add.
10438 (target_c_incpath): Add.
10439 * c-incpath.h (add_cpp_dir_path): New.
10440 (target_c_incpath_s): Add.
10441 (target_c_incpath): Add.
10442 (C_INCPATH_INIT): Add.
10443 * c-opts.c (c_common_missing_argument,
10444 c_common_handle_option): Add -F argument processing.
10445 * c.opt: Add -F argument processing.
10446 * gcc.c (trad_capable_cpp): Add -F argument processing.
10447 * cppfiles.c (find_file_in_dir): Update to use construct
10448 callback.
10449 (search_path_exhausted, cpp_get_path, cpp_get_buffer,
10450 cpp_get_prev): New.
10451 (_cpp_find_file): Use search_path_exhausted.
10452 (make_cpp_dir): Initialize construct to 0.
10453 * cpplib.h (missing_header_cb
10454 cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
10455 (cpp_callbacks): Add missing_header
10456 (cpp_dir): Add construct.
10457 * target-def.h: (TARGET_OPTF): New.
10458 * hooks.c (hook_void_int, hook_void_charptr): Add.
10459 * hooks.h (hook_void_int, hook_void_charptr): Add.
10460 * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
10461 $(MACHMODE_H) dependencies.
10462 * doc/invoke.texi (Darwin Options): Document -F.
10463 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
10464 (TARGET_OPTF): Add.
10465 * fix-header.c (target_c_incpath): Add.
10466
10467 * config/darwin-c.c: Add c-incpath.h include.
10468 (using_frameworks, find_subframework_file,
10469 find_subframework_header, add_system_framework_path,
10470 frameworks_in_use, num_frameworks, max_frameworks,
10471 add_framework, find_framework, struct framework_header,
10472 framework_header_dirs, framework_construct_pathname,
10473 find_subframework_file, add_system_framework_path,
10474 add_framework_path, framework_defaults,
10475 darwin_register_frameworks, find_subframework_header): Add.
10476 * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
10477 (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
10478 (CPP_SPEC): Add __APPLE_CC__ support.
10479 * t-darwin (darwin-c.o): Add c-incpath.h dependency.
10480
10481 2004-03-04 Jan Hubicka <jh@suse.cz>
10482
10483 * cselib.c (cselib_finish): Fix miss-application of my previous
10484 patch.
10485
10486 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
10487
10488 * hooks.c (hook_tree_tree_identity): New.
10489 * hooks.h: Add a prototype for hook_tree_tree_identity.
10490 * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
10491 instead of MD_ASM_CLOBBERS.
10492 * system.h (MD_ASM_CLOBBERS): Poison.
10493 * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
10494 (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
10495 * target.h (gcc_target): Add md_asm_clobbers.
10496 * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
10497 (ix86_md_asm_clobbers): New.
10498 * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
10499 * doc/tm.texi (MD_ASM_CLOBBERS): Change to
10500 TARGET_MD_ASM_CLOBBERS.
10501
10502 2004-03-03 Stuart Hastings <stuart@apple.com>
10503
10504 * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
10505
10506 2004-03-03 Eric Botcazou <ebotcazou@libertysurf.fr>
10507
10508 * config/sparc/sparc.c (noov_compare64_op): Fix typo.
10509
10510 * config/sparc/sparc.h (ASM_FLOAT): Delete.
10511 (ASM_DOUBLE): Likewise.
10512 (ASM_LONGDOUBLE): Likewise.
10513 * config/sparc/pbd.h (ASM_INT_OP): Delete.
10514
10515 2004-03-03 Richard Henderson <rth@redhat.com>
10516
10517 PR opt/13862
10518 * cselib.c (cselib_record_sets): Don't record multiple sets in
10519 asm insns.
10520
10521 2004-03-03 Mostafa Hagog <mustafa@il.ibm.com>
10522
10523 * common.opt: Add description of the new -fgcse-after-reload flag.
10524
10525 * flags.h (flag_gcse_after_reload): Declaration of global variable.
10526
10527 * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
10528 reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
10529 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
10530 get_bb_avail_insn, hash_scan_set_after_reload,
10531 compute_hash_table_after_reload, eliminate_partially_redundant_loads,
10532 gcse_after_reload, get_bb_avail_insn): New functions to implement
10533 gcse-after-reload.
10534 (gcse_after_reload_main): New function, the main entry point to
10535 gcse-after-reload.
10536
10537 * rtl.h (gcse_after_reload_main): Declaration of the new function.
10538
10539 * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
10540
10541 * toplev.c (flag_gcse_after_reload): Initialization.
10542
10543 * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
10544
10545 * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
10546 PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
10547 the gcse after reload optimization.
10548
10549 * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
10550 GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
10551 parameters.
10552
10553 * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
10554
10555 2004-03-03 Nicolas Pitre <nico@cam.org>
10556
10557 * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
10558 small negative values.
10559
10560 2004-03-03 Jan Hubicka <jh@suse.cz>
10561
10562 * cselib.c (hash_table): Remove GTY marker.
10563 (reg_values): Turn into array.
10564 (used_regs): Likewise.
10565 (n_used_regs): New static variable.
10566 (reg_values_old): Kill.
10567 (clear_table): Update uses of arrays.
10568 (cselib_lookup): Likewise.
10569 (cselib_record_set): Likewise.
10570 (cselib_init): Likewise.
10571 (cselib_finish): Likewise.
10572 (cselib_udpate_varray_sizes): Kill.
10573 * cselib.h (cselib_update_varray_sizes): Kill.
10574
10575 2004-03-03 Paul Brook <paul@codesourcery.com>
10576
10577 * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
10578
10579 2004-03-03 Jan Hubicka <jh@suse.cz>
10580
10581 * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
10582 Rename from ...; make statistics transparent.
10583 (ggc_alloc_cleared, ggc_realloc_stat): ... these.
10584 (loc_descriptor): New structure.
10585 (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
10586 add_statistics):
10587 New static function.
10588 (ggc_record_overhead, dump_statistics): New global function.
10589 * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
10590 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
10591 from ...; accept locations
10592 (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
10593 ggc_realloc, ggc_alloc_typed): ... this one.
10594 from ...; accept locations
10595 * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
10596 ggc_alloc_stat): Rename from ... ; pass locations
10597 * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
10598 ... this one.
10599 (ggc_alloc_stat): Record overehead.
10600 * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
10601 ggc_realloc, ggc_alloc_typed): Turn to macros
10602 (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
10603 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
10604 (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
10605 * langhooks.h (lhd_make_node): Declare.
10606 (LANG_HOOKS_MAKE_TYPE): Default to new function,
10607 * langhooks.c (lhd_make_node): New.
10608 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
10609 locations.
10610 (rtx_alloc, swallow_copy_rtx): ... this one.
10611 * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
10612 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
10613 * toplpev.c (finalize): Dump stats.
10614 * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
10615 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
10616 Rename from ... ; pass locators.
10617 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
10618 build?, build_decl): Declare.
10619 * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
10620 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
10621 Declare.
10622 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
10623 build?, build_decl): New macros.
10624 * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
10625 * statistics.h: New file.
10626
10627 2004-03-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
10628 Richard Sandiford <rsandifo@redhat.com>
10629
10630 * config/mips/mips.h (MASK_FIX_SB1): Bump.
10631 (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
10632 (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
10633 * config/mips/mips.c (mips_output_division): Fill the branch delay
10634 slot with a nop if TARGET_FIX_R4000. Extend R4000 workarounds to
10635 TARGET_FIX_R4400.
10636 (mips_output_division): Adjust accordingly.
10637 (override_options): Make -march=r4400 imply -mfix-r4400 by default.
10638 * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
10639
10640 2004-03-03 Paolo Bonzini <bonzini@gnu.org>
10641
10642 * alias.c (rtx_equal_for_memref_p): Use predicates
10643 to test rtx classes and new rtx class codes, possibly
10644 splitting conditionals that tested against '<' and 'o'.
10645 * caller-save.c (save_call_clobbered_regs): Likewise.
10646 * combine.c (contains_muldiv, find_split_point, subst,
10647 combine_simplify_rtx, simplify_if_then_else,
10648 simplify_set, simplify_logical, expand_compound_operation,
10649 make_compound_operation, if_then_else_cond, known_cond,
10650 apply_distributive_law, cached_nonzero_bits,
10651 cached_num_sign_bit_copies, simplify_shift_const,
10652 gen_binary, simplify_comparison, update_table_tick,
10653 record_value_for_reg, get_lsat_value_validate): Likewise.
10654 * cse.c (mention_regs, find_best_addr, find_comparison_args,
10655 fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
10656 Likewise.
10657 * emit-rtl.c (copy_insn_1): Likewise.
10658 * expr.c (force_operand): Likewise.
10659 * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
10660 * flow.c (notice_stack_pointer_modification_1,
10661 invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
10662 and_reg_cond, elim_reg_cond): Likewise.
10663 * function.c (update_epilogue_consts): Likewise.
10664 * genattrtab.c (attr_rtx_1): Likewise.
10665 * genopinit.c (gen_insn): Likewise.
10666 * integrate.c (subst_constants): Likewise.
10667 * jump.c (reversed_comparison_code_parts,
10668 reversed_comparison_code, delete_related_insns,
10669 rtx_renumbered_equal_p): Likewise.
10670 * local-alloc.c (block_alloc): Likewise.
10671 * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
10672 canonicalize_condition): Likewise.
10673 * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
10674 Likewise.
10675 * optabs.c (add_equal_node, expand_binop): Likewise.
10676 * predict.c (estimate_probability): Likewise.
10677 * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
10678 * recog.c (validate_replace_rtx_1, comparison_operator,
10679 offsettable_address_p, constrain_operands): Likewise.
10680 * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
10681 Likewise.
10682 * regclass.c (scan_one_insn): Likewise.
10683 * regmove.c (stable_and_no_regs_but_for_p): Likewise.
10684 * regrename.c (kill_autoinc_value): Likewise.
10685 * reload.c (find_reusable_reload, find_reloads,
10686 reg_overlap_mentioned_for_reload_p): Likewise.
10687 * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
10688 * rtl.c (copy_rtx): Likewise.
10689 * rtl.h (CONSTANT_P, INSN_P): Likewise.
10690 * rtlanal.c (commutative_operand_precedence): Likewise.
10691 * sched-deps.c (conditions_mutex_p): Likewise.
10692 * sched-rgn.c (is_cfg_nonregular): Likewise.
10693 * simplify-rtx.c (simplify_gen_binary,
10694 simplify_gen_relational, simplify_replace_rtx,
10695 simplify_unary_operation, simplify_binary_operation,
10696 simplify_ternary_operation, simplify_rtx): Likewise.
10697 * unroll.c (reg_dead_after_loop): Likewise.
10698 * config/alpha/alpha.c (alpha_swapped_comparison_operator,
10699 print_operand): Likewise.
10700 * config/arc/arc.c (proper_comparison_operator): Likewise.
10701 * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
10702 Likewise.
10703 * config/avr/avr.c (_reg_unused_after): Likewise.
10704 * config/frv/frv.c (frv_ifcvt_modify_tests,
10705 frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
10706 * config/i386/i386.c (ix86_comparison_operator,
10707 ix86_carry_flag_operator, fcmov_comparison_operator,
10708 arith_or_logical_operator, print_operand,
10709 ix86_expand_binary_operator, ix86_binary_operator_ok):
10710 Likewise.
10711 * config/i386/i386.md: Likewise.
10712 * config/ia64/ia64.c (not_postinc_memory_operand,
10713 ia64_print_operand, update_set_flags, errata_emit_nops):
10714 Likewise.
10715 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
10716 CONSTRAINT_OK_FOR_S): Likewise.
10717 * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
10718 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
10719 ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
10720 ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
10721 Likewise.
10722 * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
10723 eqne_comparison_operator, signed_comparison_operator):
10724 Likewise.
10725 * config/mips/mips.c (cmp_op, symbolic_expression_p):
10726 Likewise.
10727 * config/mmix/mmix (mmix_foldable_comparison_operator,
10728 mmix_comparison_operator): Likewise.
10729 * config/pa/pa.c (hppa_legitimize_address): Likewise.
10730 * config/rs6000/rs6000.c (stmw_operation,
10731 branch_comparison_operator, trap_comparison_operator,
10732 ccr_bit): Likewise.
10733 * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
10734 * config/s390/s390.c (s390_alc_comparison,
10735 s390_slb_comparison):L Likewise.
10736 * config/sh/sh.c (gen_block_redirect, reg_unused_after):
10737 Likewise.
10738 * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
10739 noov_compare_op, noov_compare64_op, v9_regcmp_op,
10740 emit_hard_tfmode_operation, reg_unused_after)
10741 * doc/md.texi, doc/rtl.texi: Likewise.
10742
10743 * ra-debug.c: Add 2004 to list of copyright years.
10744 * unroll.c: Likewise.
10745
10746 * combine.c (simplify_logical): Remove dummy test,
10747 (apply_distributive_law): Fix typo in comment.
10748 GET_CODE (x) == AND so x is a commutative binary op.
10749 * jump.c (delete_related_insns): simplify loop
10750 condition, move testing of RTX codes inside the loop.
10751 (rtx_renumbered_equal_p): do not use RTX_CODE.
10752 * rtl.c (rtx_class): Declare as enum rtx_class.
10753 * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
10754 Move to RTX_COMM_COMPARE class.
10755 (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
10756 Move to RTX_CONST_OBJ class.
10757 * rtl.h (enum rtx_class): New declaration,
10758 (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
10759 RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
10760 RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
10761 RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
10762 RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
10763 ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
10764 SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
10765 OBJECT_P): New macros.
10766 * config/sparc/sparc.c (noov_compare_op): Remove register
10767 from parameter.
10768
10769 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
10770
10771 * target.h: Remove texi jargons in comments.
10772
10773 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
10774
10775 * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
10776 threshold to 0x4f.
10777
10778 Revert:
10779 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
10780 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
10781 as well.
10782 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
10783 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
10784
10785 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
10786
10787 * doc/md.texi (cbranchmode4): New.
10788
10789 2004-03-02 Eric Christopher <echristo@redhat.com>
10790
10791 * config/mips/mips16.S: Change fixsfsi and fixdfsi to
10792 fix_trunc.
10793 * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
10794 * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
10795 * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
10796 * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
10797
10798 2004-03-02 Richard Henderson <rth@redhat.com>
10799
10800 PR middle-end/11767
10801 * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
10802 * optabs.c (prepare_cmp_insn): Force trapping memories to registers
10803 before the compare, if flag_non_call_exceptions.
10804
10805 2004-03-02 Richard Henderson <rth@redhat.com>
10806
10807 PR middle-end/14327
10808 * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
10809 emitting the label, not after.
10810
10811 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
10812
10813 * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
10814 (m68hc11_mov_addr_mode): Likewise.
10815 (m68hc11_override_options): Initialize them based on target.
10816 (register_indirect_p): Allow a MEM for indirect addressing modes and
10817 use flags to control what is allowed.
10818 (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
10819 supported addressing modes.
10820 (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
10821 (go_if_legitimate_address_internal): Likewise.
10822 (m68hc11_indirect_p): Likewise and check the mode.
10823 (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
10824
10825 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
10826
10827 * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
10828 (expand_builtin_setjmp_setup): Use
10829 targetm.builtin_setjmp_frame_value instead of
10830 BUILTIN_SETJMP_FRAME_VALUE.
10831 * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
10832 * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
10833 (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
10834 * target.h (gcc_target): Add builtin_setjmp_frame_value.
10835 * targhooks.c (default_builtin_setjmp_frame_value): New.
10836 * targhooks.h: Add a prototype for
10837 default_builtin_setjmp_frame_value.
10838 * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
10839 TARGET_BUILTIN_SETJMP_FRAME_VALUE.
10840
10841 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
10842
10843 * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
10844 sequences of moves.
10845 (add peepholes): New peepholes to optimize sequences adding small
10846 constants.
10847 (bset peepholes): New peepholes to transform an OR in a bset form
10848 (bclr peepholes): Likewise for bclr form.
10849 (cmp peepholes): New peepholes to avoid register copies when comparing.
10850
10851 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
10852
10853 * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
10854 to separate push from moves.
10855 ("*pushdf_internal"): Likewise.
10856 ("*pushsf_internal"): Likewise.
10857 ("*pushsi_internal"): Likewise.
10858 ("movdi_internal"): Use define_insn_and_split; non push operand.
10859 ("movdf_internal"): Likewise.
10860 ("movsf_internal"): Likewise.
10861 ("movsi_internal"): Likewise.
10862 ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
10863 ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
10864 ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
10865
10866 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
10867
10868 * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
10869 ("cmphi_z_used", "cmpqi_z_used"): Likewise.
10870 ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
10871 ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
10872 ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
10873 ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
10874 ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
10875 ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
10876 ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
10877 ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
10878 ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
10879
10880 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
10881
10882 * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
10883 (SOFT_XY_REGNUM): Define.
10884 (cmp split): Use the above instead of hard coded numbers.
10885 (8-bit op split): No need to check the mode; allow Q_REG.
10886 (ashift split): Adjust the first operand if it uses the SP and we
10887 are pushing the shifted value.
10888 (plus shift split): Fix when a source is in register D+X.
10889 ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
10890
10891 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
10892
10893 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
10894 comparing with Z register.
10895
10896 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10897
10898 * cfgloop.h (struct loop_desc): Removed.
10899 (struct loop): Fields simple, desc and has_desc removed.
10900 (simple_loop_p, count_loop_iterations): Declaration removed.
10901 * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
10902 (unmark_altered, blocks_invariant_registers, unmark_altered_insn
10903 blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
10904 invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
10905 simple_loop_exit_p, variable_initial_value, variable_initial_values,
10906 simple_condition_p, simple_increment, count_strange_loop_iterations,
10907 inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
10908 Removed.
10909 * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
10910
10911 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
10912
10913 * genattrtab.c: Don't handle MATCH_INSN.
10914 * genrecog.c: Likewise.
10915 * gensupport.c: Likewise.
10916 * rtl.def (match_insn): Remove.
10917 * doc/md.texi (match_insn, match_insn2): Remove.
10918
10919 2004-03-02 Mark Mitchell <mark@codesourcery.com>
10920
10921 * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
10922 macro results in memory allocation.
10923
10924 2004-03-02 David O'Brien <obrien@FreeBSD.org>
10925
10926 * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
10927 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
10928 %(fbsd_dynamic_linker),
10929 (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
10930 config/i386/freebsd.h
10931 * config/arm/freebsd.h: Ditto.
10932 * config/i386/freebsd.h: Ditto.
10933 * config/i386/freebsd64.h: Ditto.
10934 * config/ia64/freebsd.h: Ditto.
10935 * config/rs6000/sysv4.h: Ditto.
10936 * config/sparc/freebsd.h: Ditto.
10937
10938 2004-03-02 Loren James Rittle <ljrittle@acm.org>
10939
10940 * gcc/doc/install.texi (*-*-freebsd*): Update target information.
10941
10942 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
10943
10944 * rtl.def (define_combine): Remove.
10945
10946 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
10947
10948 * config/h8300/h8300.md: Tweak formatting.
10949
10950 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
10951
10952 * config/h8300/h8300.md (*cmphi_h8300): Rename to
10953 *cmphi_h8300_znvc.
10954 (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
10955
10956 2004-03-01 Mark Mitchell <mark@codesourcery.com>
10957
10958 PR bootstrap/14356
10959 * gcc.c (process_command): Remove const-qualification from argv.
10960 (main): Likewise.
10961
10962 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
10963
10964 * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
10965 pushqi1_h8300hs_advanced. Adjust its caller.
10966 (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
10967 Adjust its caller.
10968
10969 2004-03-02 Nicolas Roche <roche@act-europe.fr>
10970
10971 * Makefile.in (install-libgcc, install-multilib): Pass
10972 mkinstalldirs var to libgcc.mk.
10973
10974 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
10975
10976 * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
10977 * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
10978
10979 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
10980
10981 * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
10982 * config/h8300/h8300.md: Split several peephole2's, each into
10983 two.
10984
10985 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10986
10987 * dominance.c (recount_dominator): Handle postdominators.
10988
10989 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
10990
10991 * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
10992 (NUM_SYMBOL_TYPES): Likewise.
10993 (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
10994 (mips_unspec_address): Declare.
10995 (mips_gotoff_page, mips_gotoff_global): Delete.
10996 * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
10997 * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
10998 (mips_symbolic_constant_p, mips_symbolic_address_p)
10999 (mips_symbol_insns): Handle new symbol types.
11000 (general_symbolic_operand): New predicate.
11001 (mips_unspec_address): Make extern.
11002 (mips_gotoff_page, mips_gotoff_global): Delete.
11003 (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
11004 Handle new symbol types.
11005 * config/mips/mips.md (*lea_high64, *lea64): New patterns.
11006 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
11007 mips_unspec_address directly.
11008 * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
11009 the documentation of -mexplicit-relocs.
11010
11011 2004-03-01 Jeff Law <law@redhat.com>
11012
11013 * fold-const.c (fold): An equality comparison of a non-weak object
11014 against zero has a known result. Similarly an equality comparison
11015 of the address of two non-weak, unaliased symbols has a known result.
11016
11017 * ggc-page.c (struct page_entry): New field PREV.
11018 (ggc_alloc): Update PREV field appropriately.
11019 (sweep_pages): Likewise.
11020 (ggc_free): Likewise. Use PREV field rather than loop to
11021 improve ggc_free performance.
11022
11023 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
11024
11025 * config/mips/mips.c (mips_output_division): Use the division
11026 instruction to fill the delay slot of a zero check.
11027 (mips_idiv_insns): Adjust accordingly.
11028
11029 2004-03-01 Nathanael Nerode <neroden@gcc.gnu.org>
11030
11031 * config.gcc: Create a default tmake_file for linux, and use
11032 it in all but two linux clauses. Comment those two.
11033
11034 2004-03-01 Paolo Bonzini <bonzini@gnu.org>
11035
11036 * combine.c (try_combine): Do not refer to is_replaced.
11037 (gen_lowpart_for_combine): Perverse subregs now have a
11038 more politically correct name.
11039 * cse.c (cse_insn): Likewise.
11040 * jump.c: Fix bogus reference to delete_insn.
11041
11042 2004-02-29 Mark Mitchell <mark@codesourcery.com>
11043
11044 PR debug/14328
11045 * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
11046 constants as signed values.
11047
11048 PR middle-end/13448
11049 * c-tree.h (readonly_warning): Rename to ...
11050 (readonly_error): ... this.
11051 * c-typeck.c (build_unary_op): Adjust accordingly.
11052 (readonly_warning): Rename to ...
11053 (readonly_error): ... this and issue errors, not warnings.
11054 (build_modify_expr): Call readonly_error, not readonly_warning.
11055 (c_expand_asm_operands): Likewise.
11056 * tree-inline.c (optimize_inline_calls): Do not inline functions
11057 after errors have occurred.
11058
11059 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
11060
11061 * configure.ac: Rearrange some threading code for clarity;
11062 add section comment.
11063 * configure: Regenerate.
11064
11065 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
11066
11067 * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
11068 typos.
11069 * doc/cppopts.texi: Fix a typo.
11070
11071 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
11072
11073 * config/i386/i386.md: Fix formatting.
11074
11075 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
11076
11077 * configure.ac: Add some comments delineating sections of code.
11078
11079 * doc/install.texi: Note that libada uses autoconf 2.57 also.
11080
11081 * doc/install.texi: Fix idiot typo in previous commit.
11082
11083 * doc/install.texi: Update for conversion of intl to autoconf 2.57.
11084
11085 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
11086
11087 * config/h8300/h8300.md: Add comments about peephole2's.
11088
11089 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
11090
11091 * config/h8300/h8300.md: Tweak operand numbers of some
11092 peephole2's.
11093
11094 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
11095
11096 * config/h8300/h8300.md: Tweak comments about peephole2's.
11097
11098 2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl>
11099
11100 PR middle-end/14203
11101 * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
11102 instead of testing whether DECL_RTL is not NULL.
11103
11104 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
11105
11106 * config/sh/sh.c: Fix formatting.
11107
11108 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
11109
11110 * config/sh/sh.c: Convert to ISO-C.
11111
11112 2004-02-28 Andrew Pinski <pinskia@physics.uc.edu>
11113
11114 * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
11115 my previous patch.
11116
11117 * config/darwin.h (machopic_finish): Output stub even if the
11118 symbol is already defined.
11119
11120 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11121
11122 * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
11123
11124 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
11125
11126 * genattr.c (main): Don't define
11127 TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
11128 * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
11129 (DFA_PIPELINE_INTERFACE): Likewise.
11130 * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
11131 (DFA_PIPELINE_INTERFACE): Likewise.
11132
11133 2004-02-28 Richard Sandiford <rsandifo@redhat.com>
11134
11135 * config/mips/mips.md (tstsi, tstdi): Delete.
11136
11137 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
11138
11139 * config/mips/mips.c (override_options): Remove an obsolete
11140 duplicate definition of the "e" constraint.
11141 * config/mips/mips.h: Update a comment accordingly.
11142
11143 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
11144
11145 * config/mips/mips.md: Complete the unfinished R4000
11146 multiply/shift errata workaround. Improve documentation.
11147 (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
11148 has a hilo hazard.
11149 (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
11150 (muldi3, muldi3_internal): Likewise.
11151 (muldi3_internal2): Remove, replacing with...
11152 (muldi3_mult3, muldi3_r4000): ...these new patterns.
11153 (mulsidi3): Take the errata into account.
11154 (mulsidi3_32bit): Remove, replacing with...
11155 (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
11156 (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
11157 (umulsidi3): Take the errata into account.
11158 (umulsidi3_32bit): Remove, replacing with..
11159 (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
11160 (umulsi3_highpart, umulsi3_highpart_internal): Disable if
11161 TARGET_FIX_R4000.
11162 (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
11163 (smuldi3_highpart, umuldi3_highpart): Likewise.
11164 * doc/invoke.texi: Document the errata workaround.
11165
11166 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
11167
11168 * config/mips/mips-protos.h (mips_idiv_insns): Declare.
11169 * config/mips/mips.h (MASK_FIX_SB1): Bump.
11170 (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
11171 (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
11172 * config/mips/mips.c (mips_idiv_insns): New function.
11173 (override_options): Make -march=r4000 imply -mfix-r4000 by default.
11174 (mips_output_division): Add a workaround for the R4000 divide/shift
11175 errata.
11176 * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
11177 the length of an "idiv" instruction.
11178 * doc/invoke.texi: Document the new switches.
11179
11180 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
11181
11182 * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
11183 TARGET_SCHED_IS_COSTLY_DEPENDENCE.
11184
11185 2004-02-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11186
11187 PR optimization/14229
11188 * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
11189
11190 2004-02-28 Eric Botcazou <ebotcazou@act-europe.fr>
11191
11192 * fold-const.c (fold): Strip NOPs that change the signedness
11193 for RSHIFT too. Expand comment.
11194
11195 2004-02-27 Ian Lance Taylor <ian@wasabisystems.com>
11196
11197 PR optimization/7871
11198 * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
11199 from or to call insns.
11200
11201 2004-02-27 Eric Botcazou <ebotcazou@libertysurf.fr>
11202
11203 PR optimization/7871
11204 * flow.c (propagate_one_insn): Interpret calls as setting global
11205 registers, not merely clobbering them.
11206
11207 2004-02-27 Dale Johannesen <dalej@apple.com>
11208
11209 * config/darwin.c (machopic_output_possible_stub_label): Remove.
11210 config/darwin-protos.h: Ditto.
11211 config/darwin.h: Remove call to it.
11212 * combine.c (distribute_notes): Do not place a REG_DEAD note
11213 when value is both set and used.
11214
11215 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
11216
11217 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
11218 as well.
11219 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
11220 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
11221
11222 2004-02-27 Andrew Pinski <apinski@apple.com>
11223
11224 * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
11225 Speedup common case of the type values being in the same order.
11226
11227 2004-02-27 Steve Ellcey <sje@cup.hp.com>
11228
11229 * config/ia64/ia64.h (no-inline-float-divide): New option.
11230 * config/ia64/ia64.h (no-inline-int-divide): New option.
11231 * config/ia64/ia64.h (no-inline-sqrt): New option.
11232 (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
11233 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
11234 * config/ia64/ia64.c (ia64_override_options): Modify error
11235 checking for inlined division/sqrt.
11236
11237 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
11238
11239 * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
11240 ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
11241 value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
11242 config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
11243 copyright.
11244
11245 2004-02-27 Paul Brook <paul@codesourcery.com>
11246
11247 * function.c (assign_parms): Don't count pretend args for alignment.
11248
11249 2004-02-27 Richard Henderson <rth@redhat.com>
11250
11251 * passes.c: New file.
11252 * Makefile.in (OBJS-common): Add it.
11253 * diagnostic.c (rtl_dump_and_exit): Move decl ...
11254 * flags.h (rtl_dump_and_exit): ... here.
11255 * output.h (size_directive_output, last_assemble_variable_decl):
11256 Move from toplev.c.
11257 * rtl.h (reg_alloc): Move from toplev.c.
11258 * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
11259 struct dump_file_info, enum dump_file_index, dump_file_tbl,
11260 open_dump_file, close_dump_file, rest_of_decl_compilation,
11261 rest_of_type_compilation, rest_of_handle_final,
11262 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
11263 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
11264 rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
11265 rest_of_handle_regrename, rest_of_handle_reorder_blocks,
11266 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
11267 rest_of_handle_tracer, rest_of_handle_if_conversion,
11268 rest_of_handle_if_after_combine, rest_of_handle_web,
11269 rest_of_handle_branch_prob,
11270 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
11271 rest_of_handle_addressof, rest_of_handle_sibling_calls,
11272 rest_of_handle_jump_bypass, rest_of_handle_inlining,
11273 rest_of_handle_null_pointer, rest_of_handle_combine,
11274 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
11275 rest_of_handle_gcse, rest_of_handle_loop_optimize,
11276 rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
11277 (decode_d_option): Use enable_rtl_dump_file.
11278 (compile_file, finalize, do_compile): Move profile+combine+graph
11279 cleanup to finish_optimization_passes.
11280 * toplev.h (init_optimization_passes, finish_optimization_passes,
11281 enable_rtl_dump_file): Declare.
11282
11283 2004-02-27 Eric Botcazou <ebotcazou@act-europe.fr>
11284 Roger Sayle <roger@eyesopen.com>
11285
11286 * fold-const.c (fold): Revert 2004-02-25 change. Use the original
11287 operands to build a tree with swapped operands.
11288 * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
11289 'unsignedp' predicate to specify the signedness.
11290
11291 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
11292
11293 * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
11294 expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
11295 params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
11296 comment typos and formatting. Follow spelling conventions.
11297
11298 2004-02-26 Aldy Hernandez <aldyh@redhat.com>
11299
11300 * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
11301 fix_truncsfsi2.
11302
11303 * config/rs6000/spe.md: Delete spe_efsctuiz.
11304 Add spe_fixuns_truncsfsi2.
11305 Add spe_fix_truncsfsi2.
11306
11307 2004-02-26 Eric Christopher <echristo@redhat.com>
11308
11309 * c-lex.c (c_lex_string_translate): New variable.
11310 (lex_string): Use to determine string translation.
11311 * c-pragma.h: Prototype.
11312 * c-parse.in (start_string_translation): New. Set above.
11313 (stop_string_translation): Ditto.
11314 (attribute, attribute_list, asm_def, asm_stmt,
11315 asm_operand): Use above functions.
11316 * cp/parser.c (cp_parser_declaration): Translate strings
11317 unless token is RID_EXTERN. Set c_lex_string_translate
11318 for recursive use.
11319 (cp_parser_asm_definition): Only translate argument strings
11320 to asms.
11321 (cp_parser_asm_operand_list): Ditto.
11322 (cp_parser_attribute_list): Do not translate attribute strings.
11323
11324 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
11325
11326 * stmt.c (expand_start_case_dummy): Remove.
11327 * tree.h: Remove the corresponding prototype.
11328
11329 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
11330
11331 * builtins.c (apply_args_register_offset): Remove.
11332 * tree.h: Remove the corresponding prototype.
11333
11334 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
11335
11336 * stor-layout.c (is_pending_size): Remove.
11337 * tree.h: Remove the corresponding prototype.
11338
11339 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
11340
11341 * recog.c (validate_replace_src): Remove.
11342 * recog.h: Remove the corresponding prototype.
11343
11344 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
11345
11346 * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
11347 MAYBE_REG_PARM_STACK_SPACE.
11348 * function.c: Likewise.
11349 * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
11350 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
11351 * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
11352 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
11353
11354 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
11355
11356 * c-decl.c (c_expand_deferred_function): Remove.
11357 * c-tree.h: Remove the corresponding prototype.
11358
11359 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
11360
11361 * postreload.c (reload_cse_move2add): Generate just a PLUS
11362 instead of an entire SET.
11363
11364 2004-02-26 Jan Hubicka <jh@suse.cz>
11365
11366 * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
11367 /pentium4m.
11368 * i386.c (override_options): Add support for new CPUs.
11369 * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
11370 (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
11371 constants.
11372 * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
11373
11374 2004-02-26 Bob Wilson <bob.wilson@acm.org>
11375
11376 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
11377
11378 2004-02-26 Eric Botcazou <ebotcazou@act-europe.fr>
11379
11380 * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
11381 (sparc_emit_fixunsdi): New prototype.
11382 * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
11383 (sparc_emit_fixunsdi): New function.
11384 * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
11385 operand 1. Pass SFmode to sparc_emit_floatunsdi.
11386 (floatunsdidf2): Use 'general_operand' for operand 1. Pass DFmode
11387 to sparc_emit_floatunsdi.
11388 (fixuns_truncsfdi2): New expander.
11389 (fixuns_truncdfdi2): Likewise.
11390
11391 2004-02-26 Alan Modra <amodra@bigpond.net.au>
11392
11393 * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
11394 unless HAVE_cc0.
11395
11396 2004-02-25 Richard Henderson <rth@redhat.com>
11397
11398 * explow.c (force_reg): Call mark_reg_pointer as appropriate.
11399 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
11400 use (op0-op1) == 0 if op0 is a pointer.
11401 * config/alpha/alpha.md (cmpdi): Use some_operand.
11402 (three comparison combine splits): Remove.
11403
11404 2004-02-25 Richard Henderson <rth@redhat.com>
11405
11406 PR c/12794
11407 * c-common.c (handle_alias_attribute): Reject the attribute if
11408 current_function_decl is set.
11409
11410 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
11411
11412 * config.gcc: Add comment describing extra_gcc_objs.
11413 i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
11414 * configure.ac (extra_gcc_objs): New substitution variable.
11415 (host_extra_gcc_objs): Don't substitute.
11416 * configure: Regenerate.
11417 * Makefile.in: Use extra_gcc_objs.
11418
11419 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
11420
11421 * doc/contrib.texi: Add an entry for myself.
11422
11423 2004-02-25 Jan Hubicka <jh@suse.cz>
11424
11425 * basic-block.h (make_eh_edge, break_superblocks): Declare.
11426 * cfgbuild.c (make_eh_edge): Make global.
11427 * cfglayout.c (break_superblocks): Likewise; fix memory leak.
11428 * except.c (build_post_landing_pads, connect_post_landing_pads,
11429 dw2_build_landing_pads, sjlj_emit_function_enter,
11430 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
11431 sjlj_build_landing_pads): Update CFG.
11432 (emit_to_new_bb_before): New function.
11433 (finish_eh_generation): Do not rebuild the CFG.
11434
11435 2004-02-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11436
11437 * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
11438 target_cpu_default defines.
11439 * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
11440 * pa.h (TARGET_DEFAULT): Likewise.
11441
11442 2004-02-25 Eric Botcazou <ebotcazou@act-europe.fr>
11443
11444 * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
11445 comparisons with regard to signedness.
11446
11447 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
11448
11449 * arm.c (thumb_legitimize_address): New function.
11450 * arm-protos.h: Prototype it.
11451 * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
11452 (LEGITIMIZE_ADDRESS): Use it.
11453
11454 2004-02-25 J"orn Rennecke <joern.rennecke@superh.com>
11455
11456 * reload1.c (reload): Only spill eliminable register with multiple
11457 adjacent elimination alternatives if all alternatives fail.
11458
11459 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
11460
11461 * arm.c (arm_legitimate_index_p): For QImode the range of an offset
11462 is -4095...+4095 inclusive.
11463
11464 2004-02-25 Eric Botcazou <ebotcazou@libertysurf.fr>
11465
11466 * doc/install.texi (sparc-sun-solaris2* specific notes): Document
11467 the bootstrap failure with Sun CC 5.4 and 5.5.
11468
11469 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
11470
11471 * cse.c (cse_change_cc_mode_insns): Stop at any instruction
11472 which modifies NEWREG.
11473 (cse_condition_code_reg): Update the mode of CC_REG in
11474 CC_SRC_INSN on our own.
11475
11476 2004-02-24 Michael Matz <matz@suse.de>
11477
11478 * config/i386/i386.c (ix86_comp_type_attributes): Check for
11479 regparm attributes.
11480
11481 2004-02-24 Richard Henderson <rth@redhat.com>
11482
11483 * toplev.c (dump_file_tbl): Rename from dump_file.
11484 * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
11485 cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
11486 config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
11487 config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
11488 loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
11489 ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
11490 toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
11491 s/rtl_dump_file/dump_file/g.
11492
11493 2004-02-24 Aldy Hernandez <aldyh@redhat.com>
11494
11495 * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
11496 (spe_fixuns_truncsfsi2): Delete.
11497
11498 * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
11499 (fixuns_truncsfsi2): Delete.
11500
11501 2004-02-24 Josef Zlomek <zlomekj@suse.cz>
11502
11503 PR/14240
11504 * rtlanal.c (replace_label): Fix replacing labels in constant pool.
11505
11506 2004-02-24 Geoffrey Keating <geoffk@apple.com>
11507
11508 * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
11509
11510 2004-02-24 Jason Merrill <jason@redhat.com>
11511
11512 * tree.c (check_qualified_type): New fn.
11513 (get_qualified_type): Use it. If type already has the desired
11514 quals, just return it.
11515 * tree.h: Declare it.
11516
11517 2004-02-24 Sanjiv Kumar Gupta <sanjivg@noida.hcltech.com>
11518
11519 * target-def.h (TARGET_SCHED_INIT_GLOBAL,
11520 TARGET_SCHED_FINISH_GLOBAL): New macros.
11521
11522 * target.h (md_init_global, md_finish_global): Function
11523 declarations corresponding to new target macros.
11524
11525 * haifa-sched.c (sched_init, sched_finish): Allow target to
11526 call the new schedular hooks.
11527
11528 * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
11529 call to update_life_info.
11530
11531 * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
11532 flag_schedule_insns for SH4.
11533
11534 * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
11535 find_set_regmode_weight, find_insn_regmode_weight,
11536 find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
11537 sh_variable_issue, high_pressure, ready_reorder,
11538 rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
11539 functions used to throttle the insn movement in first
11540 scheduling pass for SH.
11541
11542 * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
11543 TARGET_SCHED_FINISH_GLOBAL.
11544
11545 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
11546
11547 Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
11548 2004-02-05 Alexandre Oliva <aoliva@redhat.com>
11549 * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
11550 symbols in sections named by the user.
11551 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
11552 * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
11553 2004-01-27 Alexandre Oliva <aoliva@redhat.com>
11554 * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
11555 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
11556 the above.
11557 2004-01-20 Alexandre Oliva <aoliva@redhat.com>
11558 * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
11559 one more pseudo to further improve code generation.
11560 2004-01-19 Alexandre Oliva <aoliva@redhat.com>
11561 * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
11562 inside UNSPEC.
11563 2004-01-16 Alexandre Oliva <aoliva@redhat.com>
11564 * config/frv/frv.c (frv_legitimate_address_p): Added
11565 allow_double_reg_p argument. Adjust all callers. Use it to
11566 decide whether to enable double-register indirect addressing.
11567 (frv_funcdesc_alias_set): Remove.
11568 (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
11569 register. Emit movdi_ldd.
11570 (ldd_address_operand): New.
11571 * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
11572 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11573 (PREDICATE_CODES): Add ldd_address_operand.
11574 * config/frv/frv.md (movdi_ldd): New.
11575 (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
11576 intermediate computations if possible.
11577 (symGOTOFF2reg_i): Fix harmless typo.
11578 2003-12-18 Alexandre Oliva <aoliva@redhat.com>
11579 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
11580 relocated p_vaddr to vaddr type.
11581 * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
11582 * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
11583 (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
11584 MEM, or use a funcdesc alias set. Use regular move instead of
11585 ldd.
11586 (dbl_memory_one_insn_operand): Recognize function descriptors by
11587 type or by alias set, and don't split them.
11588 * config/frv/frv.md (call, call_value): Never use call_internal
11589 for fdpic.
11590 (call_internal, call_value_internal): Never match for FDPIC.
11591 (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
11592 call_value_fdpicsi): Require FDPIC.
11593 (ldd): Removed.
11594 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
11595 * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
11596 * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
11597 (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
11598 FDPIC. Compute data base address.
11599 * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
11600 before the other self-specs are processed.
11601 * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
11602 Build with -fPIC.
11603 2003-12-15 Alexandre Oliva <aoliva@redhat.com>
11604 * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
11605 inhibit_libc is defined.
11606 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
11607 * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
11608 __FRV_FDPIC__.
11609 (__RELOC_POINTER): Define.
11610 (_Unwind_IteratePhdrCallback): Use it.
11611 * config/frv/frv.h (Twrite): Define.
11612 (TRANSFER_FROM_TRAMPOLINE): Use it.
11613 * config/frv/linux.h (INVOKE__main): Undefine.
11614 (Twrite): Override.
11615 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
11616 * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
11617 (-mlibrary-pic): Emphasize that this option generates EABI code.
11618 (-mcpu): Add fr550.
11619 (-mpack): Remove.
11620 2003-11-30 Alexandre Oliva <aoliva@redhat.com>
11621 * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
11622 and CONSTs in FDPIC mode.
11623 * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
11624 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
11625 * config/frv/frv.c (move_source_operand): Don't accept symbolic
11626 constants.
11627 * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
11628 rather than 'i' constraint for the 2-instruction alternative.
11629 (*movsi_2word): New, incorporating existing int_2word_operand splitter.
11630 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
11631 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
11632 EXTRA_CONSTRAINT_FOR_Y.
11633 (EXTRA_CONSTRAINT): Remove handling of 'Y'.
11634 * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
11635 (addsi3): Change 'Y' constraint to 'Q'.
11636 2003-11-27 Richard Sandiford <rsandifo@redhat.com>
11637 * reload.c (CONST_POOL_OK_P): New macro.
11638 (find_reloads): Use it to decide whether a constant can be forced
11639 into memory.
11640 * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
11641 constant satisfies got12_operand.
11642 (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
11643 (frv_legitimate_address_p): Check for valid unspec offsets using
11644 got12_operand rather than frv_legitimate_fdpic_operand_p.
11645 (frv_legitimate_fdpic_operand_p): Delete.
11646 (frv_emit_movsi): Abort if we try to use the FDPIC register during
11647 or after reload.
11648 (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
11649 TARGET_FDPIC.
11650 * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
11651 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
11652 * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
11653 (frv_fdpic_fptr_operand): Don't declare here.
11654 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
11655 rather than fdpic_got12_operand.
11656 (PREDICATE_CODES): Remove symbolic_operand entry. Add entries for
11657 got12_operand and const_unspec_operand.
11658 * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
11659 (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
11660 (symbolic_operand): Remove.
11661 (const_unspec_operand): New predicate.
11662 * config/frv/frv.md (*movsi_got): Use got12_operand.
11663 (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
11664 2003-11-18 Richard Sandiford <rsandifo@redhat.com>
11665 * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
11666 * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
11667 * config/frv/frv.c (frv_unspec): New structure.
11668 (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
11669 (frv_print_operand_memory_reference): Use frv_const_unspec_p to
11670 validate CONST indices. Use frv_output_const_unspec to print them.
11671 (frv_print_operand): Update call to unspec_got_name. Use
11672 frv_output_const_unspec to print constant unspecs.
11673 (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
11674 Reject UNSPECs otherwise.
11675 (unspec_got_name): Take the relocation number as argument, not an
11676 rtx containing it.
11677 (frv_output_addr_const_extra): Remove, replacing with...
11678 (frv_output_const_unspec): ...this new function.
11679 (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
11680 (gpr_or_int12_operand): Use fdpic_got12_operand.
11681 (dbl_memory_one_insn_operand): Likewise.
11682 (fdpic_got12_operand): Use frv_const_unspec_p.
11683 (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
11684 are already legitimate. Use frv_small_data_reloc_p when deciding
11685 whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
11686 2003-11-18 Alexandre Oliva <aoliva@redhat.com>
11687 * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
11688 * config/frv/libgcc-frv.ver: ... frv-specific symbols. New file.
11689 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
11690 label, for real this time.
11691 * config/frv/frv.c (frv_local_funcdesc_p): Update to new
11692 representation of visibility.
11693 (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
11694 such.
11695 2003-11-17 Richard Sandiford <rsandifo@redhat.com>
11696 * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
11697 (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
11698 * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
11699 it was explicitly disabled.
11700 (frv_stack_info): There is no need to save the link register in every
11701 frame unless TARGET_LINKED_FP is true.
11702 (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
11703 frame pointer if the stack pointer might change value.
11704 (frv_return_addr_rtx): Check and process "count" argument.
11705 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
11706 * config/frv/frv-protos.h (frv_legitimize_address): Remove.
11707 (frv_find_base_term): Declare.
11708 * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
11709 (FIND_BASE_TERM): Define.
11710 (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
11711 small_data_register_operand, small_data_symbolic_operand. Add
11712 symbolic_operand.
11713 * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
11714 (frv_print_operand_memory_reference, output_move_single): Remove
11715 special handling for unlegitimized sdata addresses.
11716 (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
11717 and symbolic addresses.
11718 (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
11719 (frv_find_base_term): New function.
11720 (int_2word_operand): Check specifically for symbolic address constants.
11721 (pic_register_operand, pic_symbolic_operand): Delete.
11722 (small_data_register_operand, small_data_symbolic_operand): Delete.
11723 (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
11724 Allow UNSPEC_GOT constants if !TARGET_FDPIC.
11725 (move_source_operand): Only accept CONSTs if they're a two-insn
11726 symbolic constant.
11727 (fdpic_got12_operand): Don't require TARGET_FDPIC.
11728 (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
11729 using gen_symGOTOFF2reg*.
11730 (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
11731 (frv_rtx_costs): Give all MEM addresses a cost of 0. Give MEMs
11732 themselves a cost of 3 insns.
11733 * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
11734 Change predicate to symbolic_operand.
11735 (*movsi_high_got, *movsi_lo_sum_got): Likewise.
11736 (*movsi_lda_sdata): Delete.
11737 (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
11738 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
11739 * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
11740 frv-*-*linux*.
11741 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
11742 label.
11743 * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
11744 -multilib-library-pic.
11745 (LINK_SPEC): Add -z text for -mfdpic.
11746 * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
11747 * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
11748 * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
11749 Override.
11750 (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
11751 FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
11752 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
11753 crtstuff-generated files.
11754 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
11755 * config.gcc: Add frv-*-*linux*.
11756 * config/frv/linux.h, config/frv/t-linux: New.
11757 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
11758 * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
11759 when -mfdpic even if a linker script is explicitly listed.
11760 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
11761 * config/frv/frv.c (frv_override_options): Clear asm_out
11762 unaligned_op for SImode on FDPIC.
11763 (frv_emit_movsi): Use compute_reloc_for_constant to compute the
11764 argument passed to decl_readonly_section.
11765 (frv_assemble_integer): Revert 2003-09-30's change, but make the
11766 whole block run with FDPIC even with -fno-PIC.
11767 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
11768 * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
11769 symbol or label plus offset to memory.
11770 (frv_emit_movsi): Emit GPREL only if -mgprel-ro. Emit 32-bit
11771 GOTOFF and GPREL for LABEL_REF.
11772 * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
11773 -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
11774 (MASK_GPREL_RO, TARGET_GPREL_RO): New.
11775 (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
11776 * doc/invoke.texi: Document them.
11777 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
11778 * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
11779 (frv_splittable_got_operand): Removed.
11780 * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
11781 LO_SUM. Add comments.
11782 (frv_override_options): Moved enabling of FDPIC to
11783 DRIVER_SELF_SPECS. Don't enable MASK_DWORD.
11784 (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
11785 (frv_legitimize_fdpic_address): Don't duplicate logic in
11786 frv_emit_movsi.
11787 (frv_gen_GPsym2reg): New.
11788 (unspec_got_name): Added gprel.
11789 (frv_expand_fdpic_call): Add support for inlining PLTs.
11790 (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
11791 (gpr_or_int12_operand): Added GPREL12.
11792 (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
11793 (small_data_symbolic_operand): Fail if FDPIC.
11794 (fdpic_splittable_got_operand): Removed.
11795 (fdpic_got12_operand): Added GPREL12.
11796 (frv_emit_movsi): Reorganize to avoid duplication. Emit GPREL
11797 when appropriate. Fix sdata GOTOFF.
11798 (frv_legitimate_constant_p): Require legitimate PIC operand for
11799 FDPIC with pic, but only a legitimate fdpic operand for non-pic.
11800 (frv_assemble_integer): Move FDPIC funcdesc handling out of
11801 flag_pic case.
11802 (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
11803 frv_assemble_integer fails.
11804 * config/frv/frv.h (DRIVER_SELF_SPECS): New.
11805 (SUBTARGET_DRIVER_SELF_SPECS): New.
11806 (ASM_SPEC): Don't pass -mno-fdpic.
11807 (LINK_SPEC): Pass -melf32frvfd for FDPIC.
11808 (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
11809 (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
11810 -multilib-library-pic.
11811 (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
11812 condexec_si_media_operator, condexec_sf_add_operator and
11813 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
11814 and condexec_sf_unary_operator.
11815 * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
11816 New.
11817 (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
11818 movsi_internal. Give them internal names. movsi_got has type
11819 int.
11820 (fdpic got splitters): Remove.
11821 (symGPREL2reg, symGPREL2reg_hilo): New.
11822 * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
11823 to -mlibrary-pic. Map -multilib-library-pic to it.
11824 * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
11825 Document.
11826 2003-09-28 Alexandre Oliva <aoliva@redhat.com>
11827 * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
11828 (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
11829 (frv_cannot_force_const_mem): New function.
11830 (const_small_data_p, plus_small_data_p): Update comments on sdata
11831 on FDPIC.
11832 (frv_override_options): Set flag_pie for FDPIC too.
11833 (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
11834 call-saved registers on FDPIC.
11835 (frv_stack_info): Don't preserve the PIC register on FDPIC, and
11836 don't force LR to be preserved.
11837 (frv_expand_prologue): Likewise.
11838 (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
11839 (frv_frame_pointer_required): Don't force it just because the
11840 FDPIC register is used.
11841 (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
11842 operand only if !condexec_p.
11843 (frv_legitimize_address): Return the FDPIC-legitimized address.
11844 Don't match small data here on FDPIC.
11845 (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
11846 symbols. Use TRUE/FALSE instead of 1/0.
11847 (frv_local_funcdesc_p): New.
11848 (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
11849 immediates when possible.
11850 (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
11851 (dbl_memory_one_insn_operand): Accept addresses that add a REG and
11852 an UNSPEC_GOT.
11853 (frv_emit_movsi): Handle FDPIC before small data. Use GOTOFF and
11854 12-bit immediates when possible.
11855 (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
11856 are not legitimate pic operands.
11857 (frv_in_small_data_p): Re-enable for FDPIC.
11858 * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
11859 (FRV_GLOBAL_P): Removed.
11860 * config/frv/frv.md: Add modes to CONSTs.
11861 (movsi_got): New.
11862 (movsi_lo_sum_got): Use separate matches instead of match_dup.
11863 (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
11864 (fdpic splittable operations): Match on flag_pic != 1.
11865 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
11866 * config/frv/frv.c (frv_asm_out_constructor,
11867 frv_asm_out_destructor): Pass to frv_assemble_integer the size in
11868 bytes, not bits.
11869 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
11870 * config/frv/frv.c (frv_assemble_integer): Reject complex
11871 expressions referencing function SYMBOL_REFs.
11872 * config/frv/frv.c (frv_function_symbol_referenced_p): New.
11873 (move_source_operand): Reject CONSTs that reference function
11874 SYMBOL_REFs on FDPIC.
11875 (frv_emit_movsi): If we get such a CONST, break it up.
11876 * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
11877 (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
11878 * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
11879 MEM.
11880 (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
11881 (frv_trampoline_size): Increase for FDPIC.
11882 * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
11883 (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
11884 * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
11885 Disable use of GOTOFF for now.
11886 (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
11887 Disable use of small data in FDPIC for now.
11888 (frv_asm_output_mi_thunk): Implement for FDPIC.
11889 * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
11890 * config/frv/frv.c (frv_asm_out_constructor): Use
11891 frv_assemble_integer for FDPIC pointers.
11892 (frv_asm_out_destructor): Likewise.
11893 * config/frv/frv.md (ldd): Fix order of operands. Use
11894 address_operand for input.
11895 2003-09-18 DJ Delorie <dj@redhat.com>
11896 * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
11897 (unspec_got_name): Correct typo.
11898 (frv_emit_movsi): Pre-expand splittable GOTs.
11899 (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
11900 * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
11901 (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
11902 * config/frv/t-frv: Add -mfdpic multilibs.
11903 * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
11904 (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
11905 * config/frv/frv.c (frv_override_options): -mfdpic assumes
11906 flag_pic, default to 32-bit pics, require DWORD ops.
11907 (frv_override_options): Add W and Z constraints.
11908 (frv_expand_prologue): No pic prologue for -mfdpic.
11909 (frv_asm_output_mi_thunk): Support -mfdpic (soon).
11910 (frv_print_operand_memory_reference): Handle GOT constants.
11911 (frv_legitimate_address_p): Allow GOT constants.
11912 (frv_legitimize_address): Handle GOT addresses too.
11913 (frv_legitimate_fdpic_operand_p): New.
11914 (frv_legitimize_fdpic_address): New.
11915 (unspec_got_name): New.
11916 (frv_output_addr_const_extra): New.
11917 (frv_expand_fdpic_call): New.
11918 (frv_fdpic_fptr_operand): New.
11919 (gpr_or_int12_operand): Handle GOT operands.
11920 (int_2word_operand): Handle GOT operands.
11921 (fdpic_operand): New.
11922 (fdpic_splittable_got_operand): New.
11923 (fdpic_got12_operand): New.
11924 (frv_emit_movsi): Handle GOT operands.
11925 (frv_assemble_integer): -mfdpic doesn't use rofixups.
11926 (frv_print_operand): Support 'g' code for GOT operands.
11927 * config/frv/frv-protos.h: Add prototypes as needed.
11928 * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
11929 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
11930 R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
11931 R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
11932 R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
11933 R_FRV_GOTOFFLO): New.
11934 (movsi_high_got, movsi_lo_sum_got): New.
11935 (*movsi_pic): Don't use this splitter for -mfdpic.
11936 (addsi3): Allow GOT references also.
11937 (call, call_value): Handle -mfdpic separately.
11938 (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
11939 call_value_fdpicsi): New.
11940 (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
11941 symGOTOFF2reg_i): New.
11942 * config/frv/frv.h (MASK_FDPIC): New.
11943 (TARGET_FDPIC): New.
11944 (TARGET_SWITCHES): Add -mfdpic.
11945 (FDPIC_FPTR_REGNO): New.
11946 (FDPIC_REGNO): New.
11947 (OUR_FDPIC_REG): New.
11948 (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
11949 FDPIC_CALL_REGS.
11950 (REG_CLASS_NAMES): Likewise.
11951 (REG_CLASS_CONTENTS): Likewise.
11952 (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
11953 (EXTRA_CONSTRAINT): Add it here.
11954 (FRV_GLOBAL_P): New.
11955 (OUTPUT_ADDR_CONST_EXTRA): New.
11956
11957 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
11958
11959 * config/sparc/sparc.h: Remove commented-out definitions of
11960 TARGET_EDOM and GEN_ERRNO_RTX.
11961
11962 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
11963
11964 * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
11965 df_analyse with df_analyze.
11966
11967 2004-02-24 Alan Modra <amodra@bigpond.net.au>
11968
11969 * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
11970 beginning of block.
11971
11972 2004-02-23 James E Wilson <wilson@specifixinc.com>
11973
11974 * calls.c (precompute_arguments): Update comment.
11975
11976 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
11977
11978 * et-forest.c: Replace et_occurences with et_occurrences.
11979
11980 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
11981
11982 * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
11983 with iv_analyze.
11984
11985 2004-02-23 Kelley Cook <kcook@gcc.gnu.org>
11986
11987 * config/i386/i386.c: Rename pni to sse3.
11988 * config/i386/i386.h: Likewise.
11989 * config/i386/i386.md: Likewise.
11990 * config/i386/pmmintrin.h: Likewise.
11991 * doc/extend.texi: Likewise.
11992 * doc/invoke.texi: Likewise.
11993
11994 2004-02-23 Zack Weinberg <zack@codesourcery.com>
11995 Kazu Hirata <kazu@cs.umass.edu>
11996
11997 Remove -fwritable-strings.
11998 * c-common.c (fix_string_type): Don't check
11999 flag_writable_strings.
12000 (fix_string_type): Likewise.
12001 * c-opts.c (set_std_c89): Don't initialize
12002 flag_writable_strings.
12003 (set_std_c99): Likewise.
12004 * common.opt (fwritable-strings): Remove.
12005 * flags.h: Remove the external declaration of
12006 flag_writable_strings.
12007 * opts.c (common_handle_option) <OPT_fwritable_strings>:
12008 Remove.
12009 * toplev.c (flag_writable_strings): Remove.
12010 (f_options): Remove an entry for writable-strings.
12011 * varasm.c (const_hash_1) <STRING_CST>: Don't check
12012 flag_writable_strings.
12013 (compare_constant) <STRING_CST>: Likewise.
12014 (build_constant_desc): Likewise.
12015 * config/darwin.c (machopic_select_section): Likewise.
12016 * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
12017 * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
12018 * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
12019 * config/mips/mips.c (mips_select_section): Likewise.
12020 (mips_encode_section_info): Likewise.
12021 * config/pa/pa.c (pa_select_section): Likewise.
12022 * config/pa/pa.h (TEXT_SPACE_P): Likewise.
12023 * config/v850/v850.c (v850_select_section): Likewise.
12024 * doc/invoke.texi (-fwritable-strings): Remove.
12025 (-fno-const-strings): Don't mention -fwritable-strings.
12026 * doc/trouble.texi: Don't mention -fwritable-strings.
12027
12028 2004-02-23 Nathanael Nerode <neroden@gcc.gnu.org>
12029
12030 * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
12031
12032 2004-02-23 Dale Johannesen <dalej@apple.com>
12033
12034 * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
12035 (movdf_hardfloat64): Ditto.
12036 (movdf_softfloat64): Ditto.
12037
12038 2004-02-23 Fariborz Jahanian <fjahanian@apple.com>
12039 * config/rs6000/rs6000.c (function_arg): call to
12040 rs6000_mixed_function_arg for DFmode moved to allow
12041 normal DFmode incoming register assignment.
12042
12043 2004-02-23 Dale Johannesen <dalej@apple.com>
12044
12045 * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
12046 (movdf_hardfloat64): Ditto.
12047
12048 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
12049
12050 * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
12051 config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
12052 copyright.
12053
12054 2004-02-23 Andrew Pinski <pinskia@physics.uc.edu>
12055
12056 PR c/14156
12057 * c-typeck.c (c_expand_return): Change check for VAR_DECL
12058 to use DECL_P instead.
12059
12060 * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
12061 * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
12062
12063 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
12064
12065 * Makefile.in (opts.o): Depend on target.h.
12066 * opts.c (decode_options): Use targetm.default_short_enums
12067 instead of DEFAULT_SHORT_ENUMS.
12068 * system.h (DEFAULT_SHORT_ENUMS): Poison.
12069 * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
12070 (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
12071 * target.h (gcc_target): Add default_short_enums.
12072 * config/cris/cris.h: Remove a comment about
12073 DEFAULT_SHORT_ENUMS.
12074 * config/ip2k/ip2k.h: Likewise.
12075 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
12076 TARGET_DEFAULT_SHORT_ENUMS. Update the description.
12077
12078 2004-02-23 Eric Botcazou <ebotcazou@libertysurf.fr>
12079 Falk Hueffner <falk@debian.org>
12080
12081 PR c/14188
12082 * builtins.c (expand_builtin_va_arg): Emit an informative message
12083 if a trap is generated.
12084 * c-typeck.c (build_function_call): Likewise.
12085
12086 2004-02-22 Jakub Jelinek <jakub@redhat.com>
12087
12088 * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
12089 fopen.
12090 * libgcov.c: Include sys/stat.h.
12091 * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
12092 * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
12093 * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
12094 * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
12095
12096 2004-02-22 Kazu Hirata <kazu@cs.umass.edu>
12097
12098 * reorg.c: Remove comments about dead ports.
12099
12100 2004-02-22 Christopher Faylor <cgf@redhat.com>
12101
12102 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
12103 extra host object file when targetting cygwin rather than generic
12104 object files.
12105
12106 2004-02-22 Josef Zlomek <zlomekj@suse.cz>
12107
12108 Merge from tree-ssa:
12109 2003-11-20 Richard Henderson <rth@redhat.com>
12110
12111 * tree-inline.c (insert_decl_map): New.
12112 (remap_decl, remap_type, remap_block, copy_body_r,
12113 initialize_inlined_parameters, declare_return_variable,
12114 remap_save_expr): Use it.
12115
12116 * function.c (copy_body_r): Add mapping from id->ret_label to
12117 id->ret_label. Revert test for ret_label.
12118
12119 2004-02-22 Jakub Jelinek <jakub@redhat.com>
12120
12121 * genoutput.c (process_template): Strip trailing whitespace in @
12122 templates and issue a warning if there was any.
12123
12124 2004-02-21 Christopher Faylor <cgf@redhat.com>
12125
12126 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
12127 object file when targetting cygwin.
12128 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
12129 overridden by top-level Makefile.
12130
12131 2004-02-21 Roger Sayle <roger@eyesopen.com>
12132
12133 * config/i386/i386.c (standard_80387_constant_p): Also prefer
12134 the x87's load constant instructions when optimizing for size.
12135
12136 2004-02-21 Kazu Hirata <kazu@cs.umass.edu>
12137
12138 * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
12139 * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
12140 * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
12141 * fold-const.c: Likewise.
12142 * simplify-rtx.c: Likewise.
12143
12144 2004-02-21 Alan Modra <amodra@bigpond.net.au>
12145
12146 * combine.c (can_combine_p): Don't ignore SETs marked with
12147 REG_EH_REGION notes.
12148 (try_combine): When attemting to fix unrecognized insns, don't
12149 split a PARALLEL that contains the original i2.
12150
12151 2004-02-21 Ziemowit Laski <zlaski@apple.com>
12152
12153 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
12154 SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
12155 * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
12156 * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
12157 (vector, pixel, bool): #define to __vector, __pixel and __bool.
12158 (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
12159 portion of header.
12160 (__altivec_link_error_invalid_argument): Remove prototype; will use
12161 __builtin_altivec_compiletime_error("vec_*") instead.
12162 (vec_*): Fix/complete set of available operation overloads given the
12163 existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
12164 cv-correctness of pointer arguments; in C, always check for correct
12165 argument types before macro expansion.
12166 * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
12167 defining Darwin/PowerPC-specific '-f[no-]altivec' and
12168 '-W[no-]altivec-long-deprecated' switches.
12169 * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
12170 '__vector', '__pixel' and '__bool' macros using
12171 '__attribute__((altivec(...)))' types.
12172 * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
12173 bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
12174 bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
12175 New type nodes.
12176 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
12177 handling '-W[no-]altivec-long-deprecated'.
12178 (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
12179 (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
12180 altivec_expand_dst_builtin): Remove casts from integer literals.
12181 (altivec_expand_builtin): Likewise; handle expansion of new
12182 '__builtin_altivec_compiletime_error' function.
12183 (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
12184 types, and make them distinct from other vector types; register
12185 '__builtin_altivec_compiletime_error' function.
12186 (print_operand): For 'P', print a full target register name instead of
12187 merely its number.
12188 (rs6000_attribute_table): Add "altivec" attribute.
12189 (rs6000_handle_altivec_attribute): New function.
12190 * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
12191 '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
12192 maps to).
12193 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
12194 declare.
12195 (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
12196
12197 2004-02-20 James E Wilson <wilson@specifixinc.com>
12198
12199 * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
12200 check.
12201 (shift_mix4left+2): Delete redundant pattern.
12202
12203 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
12204
12205 * alias.c (OUTGOING_REGNO): Don't define the default.
12206 * builtins.c (OUTGOING_REGNO): Likewise.
12207 (INCOMING_REGNO): Likewise.
12208 (apply_args_register_offset): Always use OUTGOING_REGNO.
12209 * combine.c (OUTGOING_REGNO): Likewise.
12210 * sibcall.c (OUTGOING_REGNO): Likewise.
12211 * defaults.h (INCOMING_REGNO): Provide the default.
12212 (OUTGOING_REGNO): Likewise.
12213
12214 2004-02-21 Jan Hubicka <jh@suse.cz>
12215
12216 * params.def (max-peeled-insns, max-completely-peeled-insns,
12217 max-once-peeled-insns): Set to 400.
12218
12219 2004-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12220
12221 PR c++/12007
12222 * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
12223 are set for parameters before outputing debugging information.
12224
12225 2004-02-20 Falk Hueffner <falk@debian.org>
12226
12227 PR target/14201
12228 * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
12229 numbers.
12230
12231 2004-02-20 Per Bothner <per@bothner.com>
12232
12233 * input.h: Don't #include line-map.h. It may cause link problems
12234 with undefined linemap_line_start when line-map.h is included but
12235 line-map.o is not linked, as currently happens with gengtype on
12236 compilers that don't support inline.
12237 * toplev.c: So we do have to explicitly #include line-map.h here.
12238
12239 2004-02-20 Richard Henderson <rth@redhat.com>
12240
12241 * doc/invoke.texi: Add -Wvariadic-macros.
12242
12243 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
12244
12245 * haifa-sched.c (sched_emit_insn): Remove.
12246 * sched-int.h: Remove the corresponding prototype.
12247
12248 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
12249
12250 Revert:
12251 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
12252 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
12253 * system.h (DEFAULT_SHORT_ENUMS): Poison.
12254 * config/cris/cris.h: Remove a comment about
12255 DEFAULT_SHORT_ENUMS.
12256 * config/ip2k/ip2k.h: Likewise.
12257 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
12258
12259 2004-02-20 Mohan Embar <gnustuff@thisiscool.com>
12260 Tom Tromey <tromey@redhat.com>
12261
12262 * doc/install.texi: Moved --disable-libgcj and
12263 --with-system-zlib documentation to new section for
12264 Java-specific options.
12265 Added explicit Cross-Compiler-Specific Options subheading.
12266 Added section for Java-specific options.
12267
12268 2004-02-20 Matt Kraai <kraai@alumni.cmu.edu>
12269
12270 * doc/install.texi (Building the Ada compiler): Remove
12271 example.
12272
12273 2004-02-20 James E Wilson <wilson@specifixinc.com>
12274
12275 * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
12276
12277 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
12278
12279 * gcc.c (process_command): Allow translation of the copyright
12280 symbol but not the rest of the copyright message.
12281 * gcov.c (print_version): Likewise. Allow translation of the
12282 message about warranty.
12283
12284 2004-02-20 Hans-Peter Nilsson <hp@axis.com>
12285
12286 * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
12287 predicate.
12288 ("*andsi_clear"): Tweak constraints to not match postincrement.
12289 Adjust the predicate to exclude a volatile memory reference.
12290 ("*andhi_clear"): Ditto. Rename from "*andhi_clear_signed".
12291 ("*andhi_clear_unsigned"): Remove, non-matching pattern.
12292
12293 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
12294
12295 * move-if-change: Remove.
12296 * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
12297 (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
12298 (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
12299 (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
12300 (s-gtyp-gen, s-iov): Use the top level move-if-change.
12301 * objc/Make-lang.in (objc/objc-parse.y): Likewise.
12302
12303 2004-02-19 James E Wilson <wilson@specifixinc.com>
12304
12305 * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
12306 for operand2. Add condition that requires register_operand operand2
12307 before reload.
12308
12309 2004-02-19 Richard Sandiford <rsandifo@redhat.com>
12310 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12311
12312 * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
12313 * config/mips/mips.md: Expand comment above unaligned loads and stores.
12314
12315 2004-02-19 Richard Henderson <rth@redhat.com>
12316
12317 * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
12318 * tree.c (build0, build1, build2, build3, build4): Split out from...
12319 (build): ... here. Call them.
12320 * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
12321
12322 * convert.c (convert_to_integer): Remove extra build argument.
12323 * tree-inline.c (expand_call_inline): Likewise.
12324
12325 2004-02-19 Richard Henderson <rth@redhat.com>
12326
12327 * c-opts.c (warn_variadic_macros): New.
12328 (c_common_handle_option): Set it.
12329 (sanitize_cpp_opts): Copy it to cpp_opts.
12330 * c.opt (Wvariadic-macros): New.
12331 * cpplib.h (struct cpp_options): Add warn_variadic_macros.
12332 * cppinit.c (cpp_create_reader): Initialize it.
12333 * cppmacro.c (parse_params): Check it.
12334
12335 2004-02-19 David Daney <ddaney@avtrex.com>
12336
12337 PR preprocessor/14198
12338 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
12339 builtin_assert ("machine=mips")
12340
12341 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
12342
12343 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
12344 * system.h (DEFAULT_SHORT_ENUMS): Poison.
12345 * config/cris/cris.h: Remove a comment about
12346 DEFAULT_SHORT_ENUMS.
12347 * config/ip2k/ip2k.h: Likewise.
12348 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
12349
12350 2004-02-19 Zack Weinberg <zack@codesourcery.com>
12351
12352 * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
12353 when passing single SFmode quantities in general registers,
12354 put them in the high half.
12355
12356 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
12357
12358 * doc/md.texi (Standard Names): Document additional dependency on
12359 fix pattern.
12360
12361 * optabs.c (ftruncify): Remove.
12362 (expand_fix): Manually inline ftruncify above.
12363 (can_fix_p): Add FIXME note.
12364
12365 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
12366
12367 * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
12368 spe_fixuns_truncsfsi2.
12369
12370 * config/rs6000/rs6000.md (fixunssfsi2): Rename to
12371 fixuns_truncsfsi2.
12372
12373 2004-02-19 Steve Ellcey <sje@cup.hp.com>
12374
12375 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
12376 * testsuite/gcc.dg/20040219-1.c: New test.
12377
12378 2004-02-19 Ulrich Weigand <uweigand@de.ibm.com>
12379
12380 * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
12381 "*subsf3_cconly"): Subtraction is not commutative.
12382
12383 2004-02-19 Zack Weinberg <zack@codesourcery.com>
12384
12385 * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
12386 (sdbout_symbol): If called before sdbout_init, queue DECL for
12387 later and return.
12388 (sdbout_init): Set sdbout_initialized true, process decls
12389 queued earlier by sdbout_symbol.
12390 (sdbout_finish): Use size_t for index variable.
12391
12392 2004-02-19 Jeff Law <law@redhat.com>
12393
12394 * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
12395 for unordered comparison codes.
12396
12397 2004-02-19 Ian Lance Taylor <ian@wasabisystems.com>
12398
12399 * reload1.c (reload): Correct comment.
12400 (scan_paradoxical_subregs): Remove #if 0 and old comment.
12401 * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
12402 register variables are not used by reload.
12403
12404 2004-02-19 Hans-Peter Nilsson <hp@axis.com>
12405
12406 PR target/14209
12407 * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
12408 constraints to not match postincrement. Adjust the predicate to
12409 exclude a volatile memory reference.
12410
12411 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
12412
12413 * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
12414
12415 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
12416
12417 * hooks.c (hook_void_tree_int): Remove.
12418 (hook_void_constcharptr): Likewise.
12419 (hook_int_void_0): Likewise.
12420 * hooks.h: Remove the prototypes for the above three
12421 functions.
12422 * targhooks.c (hook_bool_machine_mode_true): Remove.
12423 * targhooks.h: Remove the prototype for
12424 hook_bool_machine_mode_true.
12425
12426 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
12427
12428 * emit-rtl.c (subreg_realpart_p): Remove.
12429 (reorder_insns_with_line_notes): Likewise.
12430 (end_full_sequence): Likewise.
12431 * rtl.h: Remove the prototype for the above functions.
12432
12433 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
12434
12435 * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
12436 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
12437 config/iq2000/iq2000.h, config/m32r/m32r.h,
12438 config/pdp11/pdp11.h, config/sparc/sparc.h,
12439 config/xtensa/xtensa.h: Remove commented-out or useless
12440 definitions of CASE_VECTOR_PC_RELATIVE.
12441
12442 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
12443
12444 * loop.c (all_sets_invariant_p): Remove.
12445
12446 2004-02-19 Eric Botcazou <ebotcazou@libertysurf.fr>
12447
12448 PR target/12916
12449 * config/sparc/sparc.h (NPARM_REGS): Delete.
12450 (BASE_RETURN_VALUE_REG): Likewise.
12451 (BASE_OUTGOING_VALUE_REG): Likewise.
12452 (BASE_PASSING_ARG_REG): Likewise.
12453 (BASE_INCOMING_ARG_REG): Likewise.
12454 * config/sparc/sparc.c (sparc_strict_argument_naming): Test
12455 TARGET_ARCH64, not TARGET_V9.
12456 (function_arg_slotno): Dispatch based on the mode class.
12457 Handle vector modes like floating-point modes.
12458 (function_arg_record_value_1): Handle vector types like
12459 floating-point types.
12460 (function_arg_record_value_2): Likewise.
12461 Calculate regno after mode transformation.
12462 (function_arg): Handle vector modes like floating-point modes.
12463 (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
12464 If ARCH64, do not recheck alignment.
12465 (function_arg_pass_by_reference): Reorder the conditions.
12466 (sparc_return_in_memory): Move after function_arg_padding.
12467 Implement calling conventions for vector modes.
12468 (sparc_struct_value_rtx): Move after sparc_return_in_memory.
12469 (function_value): Move scope of 'regbase'.
12470 Implement calling conventions for vector modes.
12471 (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
12472 and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
12473 (sparc_va_arg): Use function_arg_pass_by_reference to test whether
12474 the argument is passed by reference.
12475 (sparc_type_code): Handle vector types.
12476
12477 2004-02-19 Alan Modra <amodra@bigpond.net.au>
12478
12479 * function.c (assign_parms): When building decl_rtl for
12480 SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
12481
12482 2004-02-19 Olivier Hainque <hainque@act-europe.fr>
12483
12484 * expr.c (is_aligning_offset): Check if we are aligning the
12485 expressions's address over BIGGEST_ALIGNMENT in bytes, not
12486 in bits.
12487
12488 2004-02-18 Matt Austern <austern@apple.com>
12489
12490 * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
12491 LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
12492 (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
12493 defined. Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
12494 spec string.
12495 * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
12496
12497 2004-02-18 Zack Weinberg <zack@codesourcery.com>
12498
12499 * dwarf2out.c (loclabel_num): Move outside #ifdef
12500 DWARF2_DEBUGGING_INFO and mark with GTY(()).
12501 * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
12502 Mark with GTY(()).
12503 (ia64_hpux_add_extern_decl): Save the decl, not the name string.
12504 Allocate memory with ggc_alloc. No need to copy anything.
12505 (ia64_hpux_file_end): Update to match.
12506
12507 2004-02-18 Jakub Jelinek <jakub@redhat.com>
12508
12509 * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
12510 by default.
12511
12512 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
12513
12514 * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
12515 ("divmodtisi3"): Likewise.
12516 ("udivmoddi4", "udivmodtidi3"): Likewise.
12517 ("divmodsi4", "divmoddisi3"): Likewise.
12518 ("udivmodsi4", "udivmoddisi3"): Likewise.
12519 ("udivsi3", "umodsi3"): Likewise.
12520
12521 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
12522
12523 * config/s390/s390.c (s390_mainpool_start): Delete the main pool
12524 placeholder insn when chunkifying the pool.
12525
12526 2004-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12527
12528 * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
12529 generating PIC code.
12530
12531 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
12532
12533 * config/h8300/h8300-protos.h: Add a prototype for
12534 h8300_expand_branch.
12535 * config/h8300/h8300.c (h8300_expand_branch): New.
12536 * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
12537 bgtu, beq, bne): Call h8300_expand_branch().
12538
12539 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
12540
12541 * config/h8300/h8300-protos.h: Add prototypes for
12542 h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
12543 * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
12544 (h8300_hard_regno_mode_ok): Likewise.
12545 * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
12546 h8300_hard_regno_nregs().
12547 (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
12548
12549 2004-02-18 Per Bothner <per@bothner.com>
12550
12551 * cpphash.h (struct cpp_buffer): Restore return_at_eof field. This
12552 partly reverts my 2003-10-01 change, because we're back to logically
12553 including <command line> inside the main line.
12554 * cpplex.c (_cpp_get_fresh_line): Check return_at_eof field.
12555 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof of current buffer.
12556 Fixes PR preprocessor/14103.
12557
12558 * cppfiles.c (_cpp_stack_include): When appropriate decrement
12559 line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
12560 (cpp_push_include): Don't need to increment pfile's line field.
12561 * line-map.h (LAST_SOURCE_LINE_LOCATION): Only decrement by 1.
12562
12563 * c-ppoutput.c (print struct): New first_time field.
12564 (init_pp_output): Set print.first_time.
12565 (pp_file_change): Use print.first_time, rather than MAIN_FILE_P,
12566 which is set also for (say) <command line>. Clear print.first_time.
12567
12568 * cppfiles.c (struct _cpp_file): Comment and type for pch field
12569 does not match the code, so fix both.
12570 (should_stack_file): Inline include_pch_p function.
12571 (include_pch_p): Remove pointless function.
12572
12573 * cpphash.h (struct cpp_buffer): Remove unused search_cached field.
12574
12575 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
12576
12577 * config/h8300/h8300.md (four define_peephole2's): Use
12578 h8300_regs_ok_for_stm().
12579
12580 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
12581
12582 * config/h8300/h8300-protos.h: Update the prototype for
12583 expand_a_rotate().
12584 * config/h8300/h8300.c (expand_a_rotate): Remove the first
12585 argument.
12586 * config/h8300/h8300.md: Update all callers.
12587
12588 2004-02-18 Jan Hubicka <jh@suse.cz>
12589
12590 * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
12591 floats.
12592 (simplify_binary_operation): Deal with logicals on floats.
12593
12594 * i386.md (SSE fabs splitters): Emit new patterns.
12595 (SSE cmov splitters): Likewise.
12596 (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
12597 (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
12598 subregs.
12599 (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
12600 (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
12601
12602 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
12603
12604 * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
12605 by hand.
12606 (output_a_rotate): Tweak a comment.
12607 * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
12608 (*rotlhi3_1): Change to rotlhi3_1.
12609 (*rotlsi3_1): Change to rotlsi3_1.
12610
12611 2004-02-18 Richard Earnshaw <rearnsha@arm.com>
12612
12613 PR target/13866
12614 * arm.c (load_multiple_operation): Don't insist that the source reg
12615 of a post-increment component is the same as the destination.
12616 (store_multiple_operation): Likewise.
12617
12618 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
12619
12620 * config/h8300/h8300.md: Move movsf patterns into one section
12621 of the file.
12622
12623 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
12624
12625 * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
12626 loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
12627 xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
12628 config/mips/linux64.h, config/pa/pa-64.h,
12629 config/rs6000/aix51.h, config/rs6000/aix52.h,
12630 config/rs6000/spe.md, config/sparc/linux.h,
12631 config/sparc/linux64.h: Update copyright.
12632
12633 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
12634
12635 * config/h8300/h8300.md: Move push patterns into one
12636 section of the file.
12637
12638 2004-02-18 Mark Mitchell <mark@codesourcery.com>
12639
12640 PR c++/11326
12641 * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
12642 fntype.
12643
12644 2004-02-18 Paul Brook <paul@codesourcery.com>
12645
12646 * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
12647
12648 2004-02-18 Paul Brook <paul@codesourcery.com>
12649
12650 PR debug/12934
12651 * dwarf2out.c (loc_descriptor_from_tree): Handle
12652 EXPR_WITH_FILE_LOCATION.
12653
12654 2004-02-18 Jakub Jelinek <jakub@redhat.com>
12655
12656 * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
12657 testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
12658 trailing whitespace from instructions.
12659
12660 2004-02-17 Geoffrey Keating <geoffk@apple.com>
12661
12662 * configure.ac: When generating auto-build.h, pass
12663 --enable-languages to the sub-configure.
12664 Put quotes around ${program_transform_name} when generating
12665 name of as, ld, nm, objdump.
12666 * configure: Regenerate.
12667
12668 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
12669
12670 * Makefile.in (s-check, s-config, s-conditions, s-flags)
12671 (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
12672 (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
12673 (s-preds, s-iov): Do not depend on move-if-change.
12674
12675 2004-02-17 James E Wilson <wilson@specifixinc.com>
12676
12677 * caller-save.c (insert_restore): Pass mem through copy_rtx.
12678 (insert_save): Likewise.
12679
12680 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
12681
12682 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
12683 warning.
12684
12685 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
12686
12687 * config/h8300/h8300.md (*one_complsi2_h8300): Change to
12688 *one_cmplsi2_h8300.
12689 (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
12690
12691 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
12692
12693 * config/h8300/h8300-protos.h: Update the prototype of
12694 fix_bit_operand().
12695 * config/h8300/h8300.c (fix_bit_operand): Remove the second
12696 argument "what".
12697 * config/h8300/h8300.md: Update all callers.
12698
12699 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
12700
12701 * config/h8300/h8300.c (fix_bit_operand): Change the name of
12702 the last argument to "code" from "type".
12703
12704 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
12705
12706 * config/h8300/h8300.c: Remove an extern declaration of
12707 rtx_equal_function_value_matters.
12708
12709 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
12710
12711 * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
12712 by hand.
12713 * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
12714 (*iorqi3_1): Change to iorqi3_1.
12715 (*xorqi3_1): Change to xorqi3_1.
12716
12717 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
12718
12719 * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
12720 typos.
12721
12722 2004-02-17 Jan Hubicka <jh@suse.cz>
12723
12724 * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
12725
12726 2004-02-18 Alan Modra <amodra@bigpond.net.au>
12727
12728 PR optimization/14119
12729 * combine.c (try_combine): When attemting to fix unrecognized insns,
12730 don't delete SETs marked with REG_EH_REGION notes.
12731
12732 2004-02-17 Ulrich Weigand <uweigand@de.ibm.com>
12733
12734 * combine.c (simplify_if_then_else): Do not replace
12735 (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
12736 modes differ.
12737
12738 2004-02017 Steven Bosscher <stevenb@suse.de>
12739
12740 * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
12741 function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
12742 tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
12743 * ada/utils.c: Likewise.
12744 * cp/decl.c: Likewise.
12745 * f/com.c: Likewise.
12746 * java/class.c: Likewise.
12747
12748 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
12749
12750 * config/h8300/h8300.md: Fix comment typos.
12751
12752 2004-02-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12753
12754 * config/mips/t-iris6gld: Renamed to ...
12755 * config/mips/t-irix-gld: ... this.
12756 * config.gcc (mips-sgi-irix6*): Reflect this
12757 (mips-sgi-irix5*): Use it with GNU ld.
12758
12759 * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
12760 to ...
12761 * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
12762 * config/mips/t-irix-gld: Reflect this.
12763 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
12764
12765 * config/mips/iris5gld.h: New file.
12766 * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
12767 Only use collect2 without gas.
12768
12769 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
12770 Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
12771 (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
12772 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
12773
12774 * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
12775 * config/mips/iris5.h: ... here.
12776
12777 * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
12778 IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
12779 (STARTFILE_SPEC, ENDFILE_SPEC): Define.
12780
12781 * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
12782 using irix_startfile_spec, irix_endfile_spec.
12783
12784 2004-02-16 Gunther Nikl <gni@gecko.de>
12785
12786 * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
12787
12788 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
12789
12790 * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
12791 insns by hand.
12792
12793 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12794
12795 * cfghooks.c (split_edge): Speed up updating of dominators.
12796
12797 2004-02-17 Mark Mitchell <mark@codesourcery.com>
12798
12799 PR c++/11326
12800 * c-common.c (flag_abi_version): Remove.
12801 * c-common.h (flag_abi_version): Likewise.
12802 * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
12803 * c.opt (fabi-version): Remove.
12804 * calls.c (expand_call): Always pass a function type to
12805 struct_value_rtx. Use convert_memory_address.
12806 * common.opt (fabi-version): Add it.
12807 * flags.h (flag_abi_version): Likewise.
12808 (abi_version_at_least): New macro.
12809 * opts.c (common_handle_option): Add OPT_fabi_version.
12810 * toplev.c (flag_abi_version): Define it.
12811 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
12812 New function.
12813 (ia64_output_mi_thunk): Use it.
12814 (ia64_struct_value_rtx): Likewise.
12815
12816 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
12817
12818 * config/h8300/h8300.c (h8300_emit_stack_adjustment):
12819 Don't generate insns by hand.
12820
12821 2004-02-17 Andrew Pinski <pinskia@physics.uc.edu>
12822
12823 PR c++/14178
12824 * doc/invoke.texi (fabi-version): The default is 2 now.
12825
12826 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12827
12828 * loop-iv.c: New file.
12829 * Makefile.in (loop-iv.o): New.
12830 * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
12831 * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
12832 num_loop_branches): New functions.
12833 * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
12834 iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
12835 find_simple_exit, iv_number_of_iterations, iv_analysis_done,
12836 get_simple_loop_desc, free_simple_loop_desc): Declare.
12837 (simple_loop_desc): New inline function.
12838 (struct rtx_iv, struct niter_desc): New.
12839 * cfgloopmanip.c (loopify): Specify semantics more precisely.
12840 * expr.c (force_operand): Handle subregs of expressions created by
12841 loop unroller.
12842 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
12843 parts of the initialization to toplev.c
12844 * loop-unroll.c (loop_exit_at_end_p): New.
12845 (unroll_and_peel_loops): Call iv_analysis_done.
12846 (decide_peel_once_rolling, decide_peel_completely,
12847 decide_unroll_stupid, decide_unroll_constant_iterations,
12848 decide_unroll_runtime_iterations, decide_peel_simple,
12849 peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
12850 unroll_loop_runtime_iterations): Use new simple loop analysis.
12851 * loop-unswitch.c (compare_and_jump_seq): New.
12852 (may_unswitch_on_p): Renamed to ...
12853 (may_unswitch_on): Use new iv analysis.
12854 (reversed_condition): Export.
12855 (unswitch_single_loop, unswitch_loop): Use new iv analysis.
12856 * predict.c (estimate_probability): Use new simple loop analysis.
12857 * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
12858 canon_condition, simplify_using_condition): Declare.
12859 * stor-layout.c (get_mode_bounds): New.
12860 * toplev.c (rest_of_handle_loop2): Some parts of
12861 initialization/finalization moved here from loop-init.c.
12862
12863 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
12864
12865 * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
12866 pointer.
12867 (CALL_USED_REGISTERS): Likewise.
12868 (REG_ALLOC_ORDER): Likewise.
12869 (REG_CLASS) <GENERAL_REGS>: Likewise.
12870
12871 2004-02-16 Geoffrey Keating <geoffk@apple.com>
12872
12873 * doc/md.texi (Insn Canonicalizations): Document left-chaining
12874 in associative operators.
12875 * rtlanal.c (commutative_operand_precedence): Create some new
12876 variables. Prefer a commutative operand on the left, then
12877 binary expressions, then NEG and NOT.
12878
12879 2004-02-16 Matthias Klose <doko@debian.org>
12880
12881 * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
12882 in terms of SHLIB_SOVERSION.
12883 * config/m68k/t-slibgcc-elf-ver: New file.
12884 * config/pa/t-slibgcc-elf-ver: New file.
12885 * config.gcc (m68k-linux, parisc-linux): Use them when not
12886 sjlj exceptions are not configured.
12887
12888 2004-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
12889
12890 * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
12891
12892 2004-02-16 Zack Weinberg <zack@codesourcery.com>
12893
12894 * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
12895
12896 2004-02-16 Joseph S. Myers <jsm@polyomino.org.uk>
12897
12898 * doc/sourcebuild.texi: Mention backends.html.
12899
12900 2004-02-16 Kazu Hirata <kazu@cs.umass.edu>
12901
12902 * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
12903 line-map.c, line-map.h, var-tracking.c: Fix comment
12904 formatting.
12905
12906 2004-02-16 Richard Henderson <rth@redhat.com>
12907
12908 * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
12909
12910 * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
12911
12912 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
12913
12914 * config/h8300/h8300.md: Remove unnecessary parallels from
12915 all define_insn and define_split patterns.
12916
12917 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
12918
12919 * config/h8300/h8300.md: Remove explicit (set_attr "cc"
12920 "clobber").
12921
12922 2004-02-15 Bernardo Innocenti <bernie@develer.com>
12923
12924 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
12925 '%#'.
12926
12927 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
12928
12929 * config/ia64/ia64.c, config/mips/mips.c,
12930 config/mmix/mmix-modes.def: Fix comment typos.
12931
12932 2004-02-15 Roger Sayle <roger@eyesopen.com>
12933
12934 * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
12935 (get_directive_line): Remove unused function prototype.
12936
12937 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
12938
12939 * tree-inline.c (copy_body_r): Do not replace ret_label.
12940
12941 2004-02-14 Jan Hubicka <jh@suse.cz>
12942
12943 * i386.c (x86_four_jump_limit): New variable.
12944 (k8_avoid_jump_misspredicts): Rename to ...
12945 (ix86_avoid_jump_misspredicts): .. this one.
12946 (ix86_pad_returns): Break out from ...
12947 (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
12948 to.
12949 * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
12950
12951 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
12952
12953 * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
12954 PARALLEL is NULL.
12955
12956 2004-02-14 Per Bothner <per@bothner.com>
12957
12958 * fix-header.c (line_table): Move local variable in main to global.
12959 * scan.h (line_table): Use it.
12960 * scan-decls.c (scan_decls): Need to call linemap_lookup on token's
12961 line (recently renamed to src_loc) before calling recognized_function.
12962
12963 2004-02-14 Matt Kraai <kraai@alumni.cmu.edu>
12964
12965 * Makefile.in: Fix comment typos.
12966
12967 2004-02-14 Olivier Hainque <hainque@act-europe.fr>
12968
12969 * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
12970 for start_value when it is directly moved into reg, and factorize
12971 the retrieval of GET_MODE (reg).
12972
12973 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
12974
12975 * config/mips/mips-protos.h (mips_load_got_page): Delete.
12976 (mips_load_got_global): Delete.
12977 (mips_gotoff_page): Declare.
12978 * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
12979 (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
12980 UNSPEC_LOAD_GOT pattern rather than a MEM.
12981 (*load_got[sd]i): New patterns.
12982 * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
12983 (mips_load_got_page, mips_load_got_global): Delete.
12984 (mips_gotoff_page): New function.
12985 (override_options): Don't initialize mips_got_alias_set.
12986
12987 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
12988
12989 * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
12990 (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
12991 (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
12992 (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
12993 (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
12994 * config/mips/mips.c: Fix some overly-long lines.
12995 (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
12996 (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
12997
12998 2004-02-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12999
13000 * configure.ac: Search for as, ld below libexec/gcc.
13001 * configure: Regenerate.
13002
13003 2004-02-14 Ben Elliston <bje@wasabisystems.com>
13004
13005 * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
13006 __builtin_arm_setwcx ().
13007 * config/arm/arm.c (arm_expand_builtin): Generate operands
13008 correctly and reverse their order in call to gen_iwmmxt_tmcr ().
13009
13010 2004-02-14 Ben Elliston <bje@wasabisystems.com>
13011
13012 * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
13013 and "wmuluh" to "wmulsm" and "wmulum", respectively.
13014 * config/arm/arm.h (enum arm_builtins): Rename enumerators to
13015 ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
13016 * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
13017 (_mm_mulhi_pu16): Likewise.
13018
13019 2004-02-13 Zack Weinberg <zack@codesourcery.com>
13020
13021 * xcoffout.c (xcoff_assign_fundamental_type_number): Check
13022 DECL_NAME != 0 before dereferencing.
13023
13024 2004-02-13 Ulrich Weigand <uweigand@de.ibm.com>
13025
13026 * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
13027 (s390_output_addr_const_extra): Declare.
13028 (s390_output_pool_entry): Remove FILE * argument.
13029 * config/s390/s390.c (s390_output_symbolic_const): Remove.
13030 (s390_output_addr_const_extra): New function.
13031 (print_operand_address): Call output_addr_const instead of
13032 s390_output_symbolic_const.
13033 (print_operand): Likewise.
13034 (s390_output_pool_entry): Use assemble_integer for symbolic constants.
13035 Remove FILE * argument.
13036 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
13037 * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
13038 call.
13039
13040 2004-02-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13041
13042 * cfgloopanal.c (mark_irreducible_loops): Rewriten.
13043 (struct edge, struct vertex, struct graph): New.
13044 (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
13045 free_graph): New functions.
13046
13047 2004-02-12 Chris Demetriou <cgd@broadcom.com>
13048
13049 * config/mips/mips.md (casesi_internal, casesi_internal_di):
13050 Use ".set macro" to avoid warnings about multi-instruction
13051 macros, since they're intentional.
13052
13053 2004-02-12 Geoffrey Keating <geoffk@apple.com>
13054
13055 * config/darwin.h: Add include guards. Remove old, now incorrect,
13056 comment about STANDARD_EXEC_PREFIX.
13057
13058 * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
13059 $(GCOV_INSTALL_NAME) to install manpages. Remove generic rule
13060 for installing .1 manpages. Add rules for installing cpp
13061 and gcov manpages under their installed names.
13062
13063 2004-02-12 Alexandre Oliva <aoliva@redhat.com>
13064
13065 * configure.ac (gcc_cv_ld): Don't set to LD if target is not
13066 host, but try LD_FOR_TARGET first.
13067 * configure: Rebuilt.
13068
13069 2004-02-12 Zack Weinberg <zack@codesourcery.com>
13070
13071 * dbxout.c: Move declaration of dbxout_type_decl outside
13072 #ifdef DBX_DEBUGGING_INFO.
13073 * c-parse.in: Don't give the asmdef production a type.
13074
13075 2004-02-12 Zack Weinberg <zack@codesourcery.com>
13076
13077 * debug.h (struct gcc_debug_hooks): Add type_decl field.
13078 (debug_nothing_tree_int): Prototype.
13079 (dwarf_debug_hooks): Delete, unused.
13080 * debug.c (do_nothing_debug_hooks): Update.
13081 (debug_nothing_tree_int): New function.
13082 * langhooks.h (struct lang_hooks_for_decls):
13083 Remove builtin_type_decls field.
13084 * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
13085 (LANG_HOOKS_DECLS): Update.
13086 * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
13087 Use debug_hooks->type_decl.
13088 * dbxout.c (preinit_symbols): New static.
13089 (dbx_debug_hooks, xcoff_debug_hooks): Update.
13090 (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
13091 lang_hooks.decls.builtin_type_decls. Do scan preinit_symbols
13092 for symbols to output.
13093 (dbxout_type_decl): New function.
13094 (dbxout_symbol): If called before dbxout_init has run, queue
13095 the symbol for later. Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
13096 to TYPE_DECLs before emitting them.
13097 * xcoffout.c (assign_type_number): Delete.
13098 (xcoff_type_numbers): New static table.
13099 (xcoff_assign_fundamental_type_number): New function.
13100 * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
13101 DBX_OUTPUT_STANDARD_TYPES. Remove unnecessary #ifdefs.
13102 * sdbout.c: Include varray.h.
13103 (deferred_global_decls): New static.
13104 (sdb_debug_hooks): Update.
13105 (sdbout_global_decl): If we can't emit something right now,
13106 remember it in deferred_global_decls.
13107 (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
13108 (sdbout_init): Initialize deferred_global_decls.
13109 * Makefile.in: Update dependencies of sdbout.o.
13110 * dwarf2out.c (dwarf2out_type_decl): New function.
13111 (dwarf2_debug_hooks): Update.
13112 * vmsdbgout.c (vmsdbg_debug_hooks): Update.
13113 * c-decl.c (getdecls): Just return 0.
13114 (check_for_loop_decls): Don't use getdecls.
13115 (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
13116 * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
13117
13118 2004-02-12 Ulrich Weigand <uweigand@de.ibm.com>
13119
13120 * config/s390/s390.c (s390_sched_reorder2): Remove.
13121 (TARGET_SCHED_REORDER2): Do not redefine.
13122
13123 2004-02-12 Zack Weinberg <zack@codesourcery.com>
13124
13125 * c-parse.in (maybe_type_qual): Delete.
13126 (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
13127 (asm_argument): New grammar rules.
13128 (extdef_1): Use asmdef.
13129 (maybeasm): Move down with other asm rules; use simple_asm_expr.
13130 (xexpr): Move up with other expression rules.
13131 (stmt): Use asm_stmt.
13132
13133 * c-typeck.c (build_asm_expr): New function - body mostly
13134 pulled from build_asm_stmt.
13135 (build_asm_stmt): Just handle tacking on the volatile qualifier.
13136 * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
13137
13138 2004-02-12 Richard Sandiford <rsandifo@redhat.com>
13139
13140 PR bootstrap/13617
13141 * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
13142 (mips_declare_object): Make variadic.
13143 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
13144 mips_output_aligned_decl_common.
13145 * config/mips/mips.c (mips_output_aligned_decl_common): New function.
13146 (mips_declare_object): Make variadic.
13147
13148 2004-02-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13149
13150 * function.c (update_epilogue_consts): Teach about binary operations.
13151
13152 * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
13153 previous MEM_VOLATILE in REF.
13154 * function.c (fixup_var_refs): Save volatile_ok and set to 1.
13155 * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
13156
13157 2004-02-12 Gunther Nikl <gni@gecko.de>
13158
13159 * config.gcc: Restore support for m68k-openbsd.
13160
13161 2004-02-12 Jan Hubicka <jh@suse.cz>
13162
13163 * tree-optimize.c (tree_rest_of_compilation): Do not release
13164 DECL_ARGUMENTS.
13165
13166 2004-02-11 Matt Kraai <kraai@alumni.cmu.edu>
13167
13168 * doc/install.texi: Fix the spelling of "explicitly".
13169
13170 2004-02-11 Eric Christopher <echristo@redhat.com>
13171
13172 * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
13173 duplicate argument structure of cpp_interpret_string.
13174 * cpphash.h: Move prototype...
13175 * cpplib.h: Here.
13176 * cpplib.c: Fix calls to match new function signature.
13177
13178 2004-02-11 Joseph S. Myers <jsm@polyomino.org.uk>
13179
13180 PR c/456
13181 * cppexp.c (num_binary_op): Don't allow comma operators in #if
13182 constant expressions at all outside C99 mode if pedantic.
13183
13184 2004-02-11 Uros Bizjak <uros@kss-loka.si>
13185
13186 * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
13187 (log10_optab, log2_optab): Define corresponding macros.
13188 * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
13189 * genopinit.c (optabs): Implement log10_optab and log2_optab
13190 using log10?f2 and log2?f2 patterns.
13191 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
13192 using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
13193 (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
13194 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
13195
13196 * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
13197 log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
13198 log2, log2f and log2l built-ins as inline x87 intrinsics.
13199
13200 2004-02-11 Richard Henderson <rth@redhat.com>
13201
13202 PR target/1532
13203 * flow.c (insn_dead_p): A clobber of a dead hard register is a
13204 dead insn after reload.
13205
13206 2004-02-11 Ulrich Weigand <uweigand@de.ibm.com>
13207
13208 * tree.h (frame_base_decl): Add GTY marker.
13209 * var-tracking.c (frame_base_decl): Likewise.
13210
13211 2004-02-11 Daniel Berlin <dberlin@dberlin.org>
13212
13213 * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
13214 incorrect, hunk.
13215 (add_location_or_const_value_attribute): Use text_section_label,
13216 not TEXT_SECTION_NAME.
13217
13218 2004-02-11 Per Bothner <per@bothner.com>
13219
13220 Represent column numbers using line-map's source_location.
13221 The "next available source_location" is now managed internally by
13222 line-maps.c rather than by clients.
13223 * line-map.h (struct line_map): New field column_bits.
13224 <from_line>: Rename field to start_location.
13225 (struct line_maps): New fields highest_location and max_column_hint.
13226 (linemap_check_files_exited): New declaration.
13227 (linemap_line_start): New declaration.
13228 (linemap_add): Remove from_line parameter; use highest_location field.
13229 (SOURCE_LINE, LAST_SOURCE_LINE): Modify to use column_bits.
13230 (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION): New macros.
13231 (CURRENT_LINE_MAP): Remove macro.
13232 (linemap_position_for_column): New inline function.
13233 * line-map.c (linemap_init): Clear new fields.
13234 (linemap_check_files_exited): New function, extracted from ...
13235 (linemap_free): Use linemap_check_files_exited.
13236 (linemap_add): Remove from_line parameter. Various updates.
13237 (linemap_line_start): New function.
13238 (linemap_lookeup): Update for new field names.
13239 * cpphash.h (struct cpp_reader) <map>: Field removed. Because
13240 linemap_position_for_column may unpredictably change the current map,
13241 it is cleaner and simpler for us to not cache it in cpp_reader.
13242 (struct cpp_buffer): New sysp field.
13243 Changed warned_cplusplus_comments and from_stage3 to bitfields.
13244 * cppinit.c (cpp_read_min_file): pfile->map no longer exists.
13245 * cpplib.c (do_line, do_linemarker, _cpp_do_file_change): Get
13246 current map using linemap_lookup.
13247 (do_linemarker): Also set buffer's sysp field.
13248 (destringize_and_run): No longer need to decrement current line.
13249 * cppfiles.c (_cpp_stack_file): Set sysp from and in buffer.
13250 (search_path_head, open_file_failed): Use buffer's sysp.
13251 (cpp_make_system_header): Get current map using linemap_lookup.
13252 Also set buffer's sysp flag.
13253 * cppmacro.c (_cpp_builtin_macro_text): Likewise use linemap_lookup.
13254 * cpphash.h (CPP_INCREMENT_LINE): New macro.
13255 (struct cpp_buffer): Moved fields saved_cur, saved_rlimit to ...
13256 (struct cpp_reader): ... and adding saved_line_base field.
13257 * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
13258 Update accordingly. Don't adjust line.
13259 (_cpp_scan_out_logical_line): Use CPP_INCREMENT_LINE.
13260 * cpphash.c (CPP_IN_SYSTEM_HEADER): Replaced macro by ...
13261 (cpp_in_system_header): ... new inline function, using buffer's sysp.
13262 * cpperror.c (_cpp_begin_message): Update to use cpp_in_system_header.
13263 * cpplex.c (_cpp_lex_direct): Likewise.
13264 * cppmacro.c (_cpp_builtin_macro_text): Likewise.
13265 * cppmacro.c (_cpp_create_definition): Use buffer's sysp field.
13266 * cpplib.h (struct cpp_token): Rename line field to src_loc.
13267 Remove col field as it is now subsumed by src_loc.
13268 * cpperror.c: Update various field, parameter, and macro names.
13269 (print_location): If col==0, try SOURCE_COLUMN of line.
13270 (cpp_error): Use cur_token's src_loc field, rather than line+col.
13271 * cpplib.c (do_diagnostic): Token's src_loc fields replaces line+col.
13272 * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
13273 _cpp_skip_block_comment): Use CPP_INCREMENT_LINE.
13274 (_cpp_temp_token): Replace cpp_token's line+col fields by src_loc.
13275 (_cpp_get_fresh_line): Don't need to adjust line for missing newline.
13276 (_cpp_lex_direct): Use linemap_position_for_column.
13277 * c-ppoutput.c (maybe_print_line, print_line): Don't take map
13278 parameter. Instead get it from the line_table global. Adjust callers.
13279 (print): Remove map field. Replace line field to src_line.
13280 (init_pp_output, account_for_newlines, maybe_print_line): Adjust.
13281 (cb_line_change): Use SOURCE_COLUMN. Minor optimizations.
13282 (pp_file_change): Use MAIN_FILE_P since we cannot checked print.map.
13283 Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
13284 * cpptrad.c (copy_comment): Rename variable.
13285 * c-lex.c (map): Remove static variable, for same reason we removed
13286 cpp_reader's map field.
13287 (cb_line_change, cb_def_pragma, cb_define, cb_undef): Hence we need
13288 to call linemap_lookup.
13289 (cb_line_change): Token's line field replaced by src_loc.
13290 (fe_file_change): Use MAINFILE_P and LAST_SOURCE_LINE macros.
13291 Don't save new_map.
13292
13293 * cpphash.h, cpperror.c, cpplib.h: Some renames of fileline to
13294 source_location.
13295
13296 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
13297
13298 * config/rs6000/altivec.md (*movv4si_internal): At least one
13299 operand must be register_operand.
13300 (*movv8hi_internal1): Likewise.
13301 (*movv16qi_internal1): Likewise.
13302 (*movv4sf_internal1): Likewise.
13303
13304 2004-02-10 Aldy Hernandez <aldyh@redhat.com>
13305
13306 * config/rs6000/spe.md ("*movv2si_internal"): Check for register
13307 operand.
13308 (movv4hi_internal): Same.
13309 (movv2sf_internal): Same.
13310 (movv1di_internal): Same.
13311
13312 2004-02-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
13313
13314 * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
13315 TARGET_OLDABI consistently.
13316 * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
13317 mips_va_arg,override_options,compute_frame_size,
13318 mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
13319 ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
13320 and TARGET_OLDABI consistently.
13321 * config/mips/mips.md (exception_receiver): Likewise.
13322 * config/mips/linux64.h: Likewise.
13323
13324 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
13325
13326 * gcc/config/rs6000/rs6000.c (rs6000_override_options)
13327 Set AltiVec ABI and vrsave as default for ppc64 linux.
13328 (init_cumulative_args): Post error, if try to return
13329 value in AltiVec register without enable AltiVec.
13330 (function_arg_advance): Ditto for passing arguments.
13331
13332 2004-02-11 Richard Sandiford <rsandifo@redhat.com>
13333
13334 * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
13335 a label before updating its usage count.
13336
13337 2004-02-10 Matt Kraai <kraai@alumni.cmu.edu>
13338
13339 * doc/install.texi: Remove extra cd.
13340
13341 2004-02-10 Ziemowit Laski <zlaski@apple.com>
13342
13343 * c-common.c (vector_size_helper): Remove; call
13344 reconstruct_complex_type() instead.
13345 * tree.c (reconstruct_complex_type): New function
13346 (formerly vector_size_helper() in c-common.c).
13347 (make_vector): Make externally visible.
13348 * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
13349
13350 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
13351
13352 * config/h8300/h8300-protos.h: Add a prototype for
13353 h8300_regs_ok_for_stm.
13354 * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
13355 * config/h8300/h8300.md (stm_h8300s_2_advanced,
13356 stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
13357 stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
13358 stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
13359 ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
13360 ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
13361 ldm_h8300s_4_normal, ldm_h8300s_4): Use
13362 h8300_regs_ok_for_stm().
13363
13364 2004-02-10 Danny Smith <dannysmith@users.sourceforge.net>
13365
13366 PR c/14088
13367 * real.c (real_from_string): Look for 'X' as well as 'x' in
13368 hexfloat strings.
13369
13370 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
13371
13372 * config/h8300/h8300.md: Remove an incorrect comment about
13373 peephole2. Add comments.
13374
13375 2004-02-10 Josef Zlomek <zlomekj@suse.cz>
13376
13377 PR/14058
13378 * emit-rtl.c (set_decl_incoming_rtl): New.
13379 * tree.h (set_decl_incoming_rtl): New.
13380 * function.c (assign_parms): Use set_decl_incoming_rtl for setting
13381 DECL_INCOMING_RTL.
13382 * ada/misc.c (adjust_decl_rtl): Likewise.
13383
13384 2004-02-10 Per Bothner <per@bothner.com>
13385
13386 * c-opts.c (c_common_post_options): Don't emit working directory
13387 in cpp output if -P was specified.
13388
13389 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
13390
13391 PR c/14092
13392 * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
13393 negate_expr back to the original type.
13394
13395 2004-02-10 Alan Modra <amodra@bigpond.net.au>
13396
13397 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
13398 bump retaddr here.
13399
13400 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
13401
13402 * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
13403 gen_lowpart_SUBREG): Move under the file in which they
13404 are actually declared.
13405
13406 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>
13407
13408 * doc/sourcebuild.texi: Add libada documentation.
13409
13410 * doc/install.texi: Update documentation on Ada build, now
13411 that the GNAT lib and tools are built automatically.
13412
13413 2004-02-10 Richard Sandiford <rsandifo@redhat.com>
13414
13415 * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
13416 && TARGET_IRIX.
13417
13418 2004-02-09 Ziemowit Laski <zlaski@apple.com>
13419
13420 * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
13421 boundaries outside build_component_ref() call (a macro in ObjC++).
13422
13423 2004-02-09 Bob Wilson <bob.wilson@acm.org>
13424
13425 * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
13426 (init_cumulative_args): Likewise.
13427 (a7_overlap_mentioned_p): Delete prototype.
13428 * config/xtensa/xtensa.c (struct machine_function): Replace
13429 incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
13430 Add set_frame_ptr_insn field.
13431 (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
13432 (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
13433 if the operand is an argument in a7. If so, copy a7 to a new pseudo
13434 at the function entry and replace the operand with the pseudo.
13435 (init_cumulative_args): Remove unused arguments. Add new "incoming"
13436 argument and record this flag in CUMULATIVE_ARGS.
13437 (function_arg): Remove result_mode and special-case code to handle
13438 arguments in a7. Instead, set need_a7_copy flag when there is an
13439 incoming argument in a7.
13440 (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
13441 and use the value recorded in cfun->machine->set_frame_ptr_insn.
13442 (xtensa_builtin_saveregs): Check for negative gp_left value. Set
13443 need_a7_copy and vararg_a7 flags. Use move_block_from_reg instead of
13444 special-case code.
13445 (a7_overlap_mentioned_p): Delete.
13446 * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
13447 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
13448 arguments to init_cumulative_args and pass "incoming" flag instead.
13449 (BLOCK_REG_PADDING): Delete.
13450 * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
13451 checks for reload_in_progress and reload_completed. Update calls to
13452 xtensa_copy_incoming_a7.
13453 (ashlsi3): Rename existing insn to ashlsi3_internal. Add expander
13454 to call xtensa_copy_incoming_a7.
13455
13456 2004-02-09 DJ Delorie <dj@redhat.com>
13457
13458 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
13459 longer modify standard_exec_prefix, standard_bindir_prefix, or
13460 standard_startfile_prefix.
13461
13462 2004-02-09 James E Wilson <wilson@specifixinc.com>
13463
13464 PR c++/11295
13465 * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
13466 to expand_expr_real call, and pass in alt_rtl as last argument.
13467
13468 PR libstdc++/5625
13469 * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
13470 * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
13471 * builtins.def (BUILT_IN_EXTEND_POINTER): New.
13472 * except.c (expand_builtin_extend_pointer): New.
13473 * except.h (expand_builtin_extend_pointer): Declare.
13474
13475 2004-02-09 David Edelsohn <edelsohn@gnu.org>
13476
13477 * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
13478 unaligned loads and stores.
13479
13480 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13481
13482 * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
13483 * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
13484
13485 * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
13486 * config/mips/iris5.h: ... here.
13487 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
13488
13489 * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
13490 * config/mips/iris5.h: ... here.
13491
13492 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13493
13494 * configure.ac: Remove default executable files before AC_PROG_CC.
13495 * configure: Regenerate.
13496
13497 2004-02-09 Kazu Hirata <kazu@cs.umass.edu>
13498
13499 PR target/13721
13500 * config/h8300/h8300.c (byte_reg): Call abort() if asked to
13501 print a operand other than a register.
13502
13503 2004-02-09 Roger Sayle <roger@eyesopen.com>
13504
13505 * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
13506 tree code rather than call fold_convert, which doesn't specify a
13507 default floating point to integer conversion.
13508
13509 2004-02-08 Bernardo Innocenti <bernie@develer.com>
13510
13511 * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
13512 code to support SGS assembler. Reformat adjacent code where possible.
13513 * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
13514 definition.
13515 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
13516 for '%#'.
13517 * config/m68k/linux.h, config/m68k/m68k.c,
13518 * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
13519 macros and asm_printf() format strings.
13520 * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
13521 * config/m68k/linux.h: Update copyright.
13522 * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
13523
13524 2004-02-08 Andreas Schwab <schwab@suse.de>
13525 Bernardo Innocenti <bernie@develer.com>
13526
13527 * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
13528 REGISTER_PREFIX.
13529 * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
13530 frame pointer register, overridable by OS targets.
13531 * (M68K_REGNAME): Macro to obtain register name for asm output,
13532 eventually replacing %a6 with M68K_FP_REG_NAME.
13533 * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
13534 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
13535 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
13536 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
13537 * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
13538
13539 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
13540
13541 * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
13542 hook_rtx_tree_int_null.
13543 * targhooks.c (default_struct_value_rtx): Remove.
13544 * targhooks.h: Remove the prototype for
13545 default_struct_value_rtx.
13546 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
13547 config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
13548 config/ip2k/ip2k.c, config/iq2000/iq2000.c,
13549 config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
13550 config/mn10300/mn10300.c, config/pdp11/pdp11.c,
13551 config/rs6000/rs6000.c, config/s390/s390.c,
13552 config/stormy16/stormy16.c, config/v850/v850.c,
13553 config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
13554 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
13555
13556 2004-02-08 Joseph S. Myers <jsm@polyomino.org.uk>
13557
13558 * README.Portability: Change "ISO C89" to "ISO C90".
13559 * c-parse.in (primary, initelt): Likewise.
13560
13561 2004-02-08 Richard Sandiford <rsandifo@redhat.com>
13562
13563 * real.c (encode_ibm_extended): Normalize the input value before
13564 converting it to a double. Handle the case where a normal value
13565 rounds to infinity.
13566
13567 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
13568
13569 * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
13570 warning.
13571 * cse.c (preferrable): Change to preferable. Update all of its
13572 callers.
13573 * genautomata.c (ainsn): Change
13574 first_ainsn_with_given_equialence_num to
13575 first_ainsn_with_given_equivalence_num. Update all of its
13576 references.
13577
13578 2004-02-08 Jan Hubicka <jh@suse.cz>
13579
13580 * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
13581
13582 2004-02-07 David Edelsohn <edelsohn@gnu.org>
13583
13584 * function.c (assign_parms): Fix formatting.
13585
13586 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
13587
13588 * default.h (PROMOTE_PROTOTYPES): Remove.
13589 * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
13590 STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
13591 EXPAND_BUILTIN_SAVEREGS): Poison.
13592 * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
13593 hook_bool_tree_false.
13594 (TARGET_PROMOTE_PROTOTYPES): Likewise.
13595 * target.h: Replace SETUP_INCOMING_VARARGS with
13596 targetm.calls.setup_incoming_varargs().
13597 * targhooks.c (default_promote_function_return): Remove.
13598 (default_promote_prototypes): Likewise.
13599 (default_struct_value_rtx): Always abort().
13600 (default_expand_builtin_saveregs): Always print an error
13601 message.
13602 (default_setup_incoming_varargs): Do nothing.
13603 (default_pretend_outgoing_varargs_named): Don't depend on
13604 SETUP_INCOMING_VARARGS.
13605 * targhooks.h: Remove the prototype for
13606 default_promote_function_return and
13607 default_promote_prototypes.
13608
13609 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
13610
13611 * system.h (SHARED_SECTION_ASM_OP): Poison.
13612 * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
13613 * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
13614
13615 2004-02-07 Zack Weinberg <zack@codesourcery.com>
13616
13617 Bug 13856
13618 * c-decl.c (diagnose_mismatched_decls): Only give special
13619 treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
13620 is also true.
13621 (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
13622 DECL_FUNCTION_CODE when defining a built-in function.
13623 Don't update DECL_ESTIMATED_INSNS.
13624 * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
13625 FUNCTION_DECLs.
13626 * tree.h: Delete DECL_ESTIMATED_INSNS.
13627 * tree-inline.c (struct inline_data): Delete inlined_insns field.
13628 (expand_call_inline, optimize_inline_calls): Don't update
13629 DECL_ESTIMATED_INSNS nor inlined_insns.
13630 * cgraphunit.c (cgraph_analyze_function): Don't update
13631 DECL_ESTIMATED_INSNS.
13632
13633 2004-02-07 Zack Weinberg <zack@codesourcery.com>
13634
13635 * c-common.c (shadow_warning): Delete.
13636 * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
13637 * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
13638 * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
13639 * c-parse.in (free_parser_stacks): Delete.
13640
13641 2004-02-07 Nathanael Nerode <neroden@gcc.gnu.org>
13642
13643 * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
13644 config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
13645 Use the top level mkinstalldirs, not the one in the gcc subdir.
13646 * mkinstalldirs: Remove (from the gcc subdir).
13647
13648 2004-02-07 Roger Sayle <roger@eyesopen.com>
13649
13650 PR middle-end/13696
13651 * fold-const.c (fold_convert): New function to provide type
13652 conversion to the middle-end without using convert.
13653 (negate_expr, associate_trees, size_diffop, omit_one_operand,
13654 operand_equal_for_comparison_p, pedantic_omit_one_operand,
13655 invert_truthvalue, optimize_bit_field_compare, range_binop,
13656 decode_field_reference, make_range, build_range_check, unextend,
13657 fold_truthop, extract_muldiv_1, fold_mathfn_compare,
13658 fold_binary_op_with_conditional_arg, fold_inf_compare,
13659 fold_single_bit_test, fold, multiple_of_p): Replace all calls to
13660 convert with calls to fold_convert.
13661
13662 2004-02-07 Jan Hubicka <jh@suse.cz>
13663
13664 * genrecog.c (find_operand): add extra argument stop.
13665 (validate_pattern): Verify that mach_dup is duplicating operand
13666 defined lexically earlier.
13667
13668 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
13669
13670 * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
13671 * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
13672 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
13673 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
13674 config/ia64/ia64.h, config/ip2k/ip2k.h,
13675 config/iq2000/iq2000.h, config/mips/iris5.h,
13676 config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
13677 config/rs6000/aix51.h, config/rs6000/aix52.h,
13678 config/rs6000/darwin.h, config/rs6000/rs6000.h,
13679 config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
13680 config/sparc/linux.h, config/sparc/linux64.h,
13681 config/sparc/netbsd-elf.h, config/sparc/sparc.h,
13682 config/xtensa/xtensa.h: Remove the definitions of
13683 MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
13684 MAX_WCHAR_TYPE_SIZE.
13685 * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
13686 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
13687
13688 2004-02-07 Stephane Carrez <stcarrez@nerim.fr>
13689
13690 PR bootstrap/13990
13691 * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
13692 gen_rtx_NE.
13693
13694 2004-02-07 Josef Zlomek <zlomekj@suse.cz>
13695
13696 * var-tracking.c (vt_add_function_parameters): Surround checkings by
13697 #ifdef ENABLE_CHECKING and #endif.
13698
13699 2004-02-07 Roger Sayle <roger@eyesopen.com>
13700
13701 * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
13702 either (-A)-B or (-B)-A, if A or B is easily negated respectively.
13703 (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
13704 integer types and floating point with unsafe_math_optimizations.
13705 Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
13706 Optimize A - B as A + (-B), if B is easily negated.
13707
13708 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
13709
13710 * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
13711 config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
13712 config/m32r/linux.h, config/rs6000/ppc64-fp.c,
13713 config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
13714 Update copyright.
13715
13716 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
13717
13718 * c-ppoutput.c, var-tracking.c: Fix comment typos.
13719
13720 2004-02-06 James E Wilson <wilson@specifixinc.com>
13721
13722 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
13723 glibc 2.3 or better.
13724
13725 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
13726
13727 * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
13728 to FLOAT_LIB_COMPARE_RETURNS_BOOL.
13729
13730 2004-02-07 Alan Modra <amodra@bigpond.net.au>
13731
13732 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
13733 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
13734 (SHLIB_MKMAP_OPTS): Delete.
13735 (TARGET_LIBGCC2_CFLAGS): Add -specs.
13736 (bispecs): Add rule.
13737 * config/rs6000/libgcc-ppc64.ver: New file.
13738 * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
13739 (__floatdidf, __floatdisf): Optimize multiply.
13740 (__fixunstfdi): New function.
13741 * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
13742 real and imag parts larger than one register.
13743 (function_arg): Correct type of reg used when fp arg split partially
13744 to stack.
13745 * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
13746 and __MACH__ or __powerpc64__.
13747
13748 2004-02-06 Roger Sayle <roger@eyesopen.com>
13749 Ulrich Weigand <uweigand@de.ibm.com>
13750
13751 * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
13752 of gen_highpart or gen_lowpart when the floating point format is
13753 wider than the result mode.
13754
13755 2004-02-06 Andrew Pinski <pinskia@physics.uc.edu>
13756
13757 * dwarf2out.c (loclabel_num): Move into #ifdef
13758 DWARF2_DEBUGGING_INFO.
13759
13760 2004-02-06 Ziemowit Laski <zlaski@apple.com>
13761
13762 * objc/objc-act.c (build_super_template) the 'class' field of
13763 'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
13764 (get_super_receiver): Likewise.
13765
13766 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
13767
13768 * reload1.c (check_eliminable_occurrences): Optimize the reset
13769 of can_eliminate.
13770 (eliminate_regs_in_insn): Likewise.
13771
13772 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
13773 Josef Zlomek <zlomekj@suse.cz>
13774
13775 * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
13776 at the beginning of function, call dwarf2out_var_location for
13777 NOTE_INSN_VAR_LOCATION note.
13778 (struct var_loc_node, struct var_loc_list_def, loclabel_num,
13779 decl_loc_table): New.
13780 (lookup_decl_loc): New function.
13781 (add_var_loc_to_decl): New function.
13782 (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
13783 only if can_use_fbreg.
13784 (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
13785 functions.
13786 (loc_descriptor): Likewise. Process VAR_LOCATION.
13787 (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
13788 (loc_descriptor_from_tree): Call mem_loc_descriptor with
13789 can_use_fbreg == true.
13790 (add_location_or_const_value_attribute): Added parameter enum
13791 dwarf_attribute attr, generate attribute ATTR. Create the location list.
13792 (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
13793 (gen_formal_parameter_die): Call add_location_or_const_value_attribute
13794 with attr == DW_AT_location.
13795 (gen_subprogram_die): Generate the location list for DW_AT_frame_base
13796 if frame_base_decl is defined and has a location list.
13797 (gen_variable_die): Call add_location_or_const_value_attribute with
13798 attr == DW_AT_location.
13799 (dwarf2out_var_location): New function.
13800 (dwarf2out_begin_function): New function.
13801 (dwarf2out_init): Create decl_loc_table.
13802
13803 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13804
13805 * loop.c (force_movables): Transitively increase the priorities of
13806 all insns forces by an insn, not just the first one.
13807
13808 2004-02-06 Josef Zlomek <zlomekj@suse.cz>
13809 Daniel Berlin <dberlin@dberlin.org>
13810
13811 Josef Zlomek <zlomekj@suse.cz>
13812 * Makefile.in (var-tracking.o): New.
13813 * common.opt (fvar-tracking): New.
13814 * flags.h (flag_var_tracking): New.
13815 * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
13816 * opts.c (common_handle_option): Add OPT_fvar_tracking.
13817 * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
13818 * rtl.c (note_insn_name): Likewise.
13819 * rtl.def (VAR_LOCATION): New.
13820 * rtl.h (NOTE_VAR_LOCATION): New.
13821 (NOTE_VAR_LOCATION_DECL): New.
13822 (NOTE_VAR_LOCATION_LOC): New.
13823 (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
13824 (variable_tracking_main): New exported function.
13825 * timevar.def (TV_VAR_TRACKING): New.
13826 * toplev.c (enum dump_file_index): Added DFI_vartrack.
13827 (dump_file): "vartrack" was added (-dV).
13828 (flag_var_tracking): New.
13829 (f_options): "var-tracking" was added.
13830 (rest_of_handle_variable_tracking): New function.
13831 (rest_of_compilation): Run variable tracking.
13832 (process_options): If user has not specified flag_var_tracking set it
13833 according to optimize, debug_info_level and debug_hooks.
13834 * tree.h (frame_base_decl): New.
13835 * var-tracking.c: New file.
13836 * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
13837 (ia64_override_options): Set flags to run variable tracking in machine
13838 dependent reorg instead of toplev.c.
13839 (ia64_reorg): Run variable tracking if wanted.
13840 * doc/invoke.texi: Mention variable tracking in -dV,
13841 add and -fvar-tracking.
13842 * doc/passes.texi: Added variable tracking pass.
13843
13844 Daniel Berlin <dberlin@dberlin.org>
13845 * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
13846 * dbxout.c (dbx_debug_hooks): Likewise.
13847 (xcoff_debug): Likewise.
13848 * debug.c (do_nothing_debug_hooks): Likewise.
13849 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
13850 * dwarfout.c (dwarf_debug_hooks): Likewise.
13851 * sdbout.c (sdb_debug_hooks): Likewise.
13852 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13853 * final.c (final_scan_insn): Call var_location debug hook for each
13854 NOTE_INSN_VAR_LOCATION.
13855
13856 2004-02-06 Jan Hubicka <jh@suse.cz>
13857
13858 * flow.c (update_life_info): Allocate reg_deaths when called from
13859 scheudler.
13860 (attempt_auto_inc): Update life ranges accordingly.
13861
13862 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13863
13864 PR debug/11816
13865 * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
13866
13867 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
13868
13869 * cfganal.c (flow_call_edges_add): Never split a libcall block.
13870
13871 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
13872
13873 * dwarf2out.c (output_loc_list): Don't use deltas if we have
13874 a separate line info table in use.
13875 Use the correct size for terminators.
13876 (output_die): Use offset, not delta.
13877
13878 2004-02-06 H.J. Lu <hongjiu.lu@intel.com>
13879
13880 * doc/invoke.texi: Remove the pni option from -mfpmath=.
13881
13882 2004-02-06 Jan Hubicka <jh@suse.cz>
13883
13884 * recog.c (split_all_insns): Do not update reg info.
13885 * regrename.c (regrename_optimize): Likewise.
13886 * toplev.c (rest_of_handle_reorder_blocks): Likewise.
13887 * flow.c (struct propagate_block_info): Add insn_num field.
13888 (reg_deaths): New array.
13889 (life_analysis): Free reg_deaths info.
13890 (allocate_reg_life_data): Allocate reg_deaths array.
13891 (propagate_one_insn): Use new array.
13892 (init_propagate_block): Initialize it.
13893 (free_propagate_block_info): Finish compuation of
13894 REG_LIVE_LENGTH
13895 (attempt_auto_inc): Sanity check that REG_INFO is not
13896 computed at same time.
13897 (mark_used_regs): Update new array.
13898
13899 * reg-stack.c (subst_stack_regs): Unshare clobbers before
13900 substitution.
13901
13902 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
13903
13904 * config/s390/s390.md (*extendsiqi2_short_displ): Change to
13905 *extendqisi2_short_displ.
13906
13907 2004-02-06 Alan Modra <amodra@bigpond.net.au>
13908
13909 * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
13910 * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
13911 (emit_library_call_value_1): Likewise pass nargs.
13912 * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
13913 * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
13914 * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
13915 parameter instead of scanning TYPE_ARGS_TYPES to count args.
13916 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
13917 prototype.
13918 * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
13919 (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
13920 (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
13921 * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
13922 INIT_CUMULATIVE_ARGS.
13923 * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
13924 * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
13925 config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
13926 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
13927 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
13928 config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
13929 config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
13930 config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
13931 config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
13932 config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
13933 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
13934 config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
13935
13936 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
13937
13938 * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
13939 possible.
13940
13941 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
13942
13943 * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
13944 note containing (plus (reg) (const_int)), where reg is an
13945 eliminable reg, then perform the register elimination without
13946 depending on eliminate_regs().
13947
13948 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
13949
13950 * config/arc/arc.c (arc_return_in_memory): Check the return
13951 value of int_size_in_bytes against -1. Don't check
13952 TREE_ADDRESSABLE.
13953 * config/avr/avr.c (avr_return_in_memory): Check the return
13954 value of int_size_in_bytes against -1.
13955 * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
13956 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
13957 Likewise.
13958 * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
13959 * config/stormy16/stormy16.c (xstormy16_return_in_memory):
13960 Likewise.
13961
13962 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
13963
13964 * config/frv/frv-protos.h: Remove the prototype for
13965 frv_setup_incoming_varargs.
13966 * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
13967 (frv_setup_incoming_varargs): Make it static.
13968 * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
13969
13970 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
13971
13972 * config/fr30/fr30-protos.h: Remove the prototype for
13973 fr30_setup_incoming_varargs.
13974 Update the prototypes for fr30_num_arg_regs and
13975 fr30_function_arg_partial_nregs.
13976 * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
13977 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
13978 (fr30_setup_incoming_varargs): Make it static.
13979 Add argument second_time. Don't do anything when second_time
13980 is nonzero.
13981 (fr30_num_arg_regs): Change the type of the first argument to
13982 enum machine_mode.
13983 (fr30_function_arg_partial_nregs): Change the type of the
13984 second argument to enum machine_mode.
13985 * config/fr30/fr30.h (STRUCT_VALUE): Remove.
13986 (SETUP_INCOMING_VARARGS): Remove.
13987
13988 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
13989
13990 * config/arc/arc-protos.h: Remove the prototype for
13991 arc_setup_incoming_varargs.
13992 * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
13993 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
13994 (arc_setup_incoming_varargs): Make it static.
13995 (arc_external_libcall): Likewise.
13996 * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
13997 Remove the commented-out definition of
13998 ASM_OUTPUT_EXTERNAL_LIBCALL.
13999
14000 2004-02-05 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
14001
14002 * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
14003 to $$(slibdir) in the installation commands.
14004
14005 2004-02-05 David Edelsohn <edelsohn@gnu.org>
14006
14007 * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
14008 with inner_regno, not regno.
14009 * rtlanal.c (refers_to_regno_p): Same.
14010
14011 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
14012
14013 * config.gcc: Remove i370 support.
14014
14015 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
14016
14017 * doc/install.texi: Update automake and autoconf version
14018 requirements. Note where to find gcj automake version.
14019
14020 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
14021
14022 * Makefile.in (generate-manpages): Move dependencies to ...
14023 (man): here.
14024 * doc/makefile.texi: Document new targets.
14025 * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
14026
14027 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
14028
14029 PR/13485
14030 Makefile.in (srcextra): Add a level of indirection to ...
14031 (gcc.srcextra): ... here.
14032 (po-generated): Delete.
14033 (po/$(PACKAGE).pot: Use srcextra instead of po-generated. Depend on
14034 options.c.
14035 (start.encap): Remove superfluous lang.srcextra dependency.
14036 objc/Make-lang.in (po-generated): Delete.
14037
14038 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
14039
14040 * config/ia64/ia64.c (REG_GP): Remove.
14041
14042 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14043
14044 * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
14045
14046 2004-02-05 Devang Patel <dpatel@apple.com>
14047
14048 * dwarf2out.c (force_type_die): Look up input type itself
14049 instead of root_type() of type.
14050
14051 2004-02-05 Andreas Krebbel <krebbel1@de.ibm.com>
14052
14053 * config/s390/s390.md ("*tmqidi_ext"): New insn.
14054 ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
14055 pre-reload splitters are transformed to post-reload
14056 define_insn_and_split patterns.
14057 ("*tmqisi_ext"): Renamed old "*tmqi_ext".
14058
14059 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
14060
14061 * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
14062 TARGET_PROMOTE_PROTOTYPES.
14063
14064 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14065
14066 PR middle-end/13750
14067 Revert:
14068 2004-01-15 Geoffrey Keating <geoffk@apple.com>
14069 PR pch/13361
14070 * c-typeck.c (constructor_asmspec): Delete.
14071 (struct initializer_stack): Delete field 'asmspec'.
14072 (start_init): Delete saving of asmspec.
14073 (finish_init): Don't update constructor_asmspec.
14074 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
14075 * stmt.c (expand_asm): Duplicate strings from tree.
14076 (expand_asm_operands): Likewise.
14077 * tree.c (tree_size): Update computation of size of STRING_CST.
14078 (make_node): Don't make STRING_CST nodes.
14079 (build_string): Allocate string with tree node.
14080 * tree.def (STRING_CST): Update comment.
14081 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
14082 (tree_string): Place contents of string in tree node.
14083 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
14084 from tree.
14085
14086 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
14087
14088 * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
14089 msgid.
14090
14091 2004-02-05 Dorit Naishlos <dorit@il.ibm.com>
14092
14093 * config/rs6000/altivec.md (*movv4si_internal): At least one
14094 operand must be altivec_register_operand.
14095 (*movv8hi_internal1): Likewise.
14096 (*movv16qi_internal1): Likewise.
14097 (*movv4sf_internal1): Likewise.
14098
14099 2004-02-05 David Edelsohn <edelsohn@gnu.org>
14100
14101 * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
14102 * configure: Regenerate.
14103
14104 2004-02-05 Jonathan Wakely <redi@gcc.gnu.org>
14105
14106 * doc/install.texi: Update description of --gxx-include-dir to
14107 give correct default value.
14108
14109 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
14110
14111 * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
14112 8 with MAC_REG.
14113
14114 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
14115
14116 * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
14117 gen_rtx_PARALLEL.
14118
14119 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
14120
14121 * emit-rtl.c: Update the comment about the file.
14122
14123 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
14124
14125 * sourcebuild.texi (Test Idioms): Update testcase naming
14126 conventions.
14127
14128 2004-02-04 Per Bothner <per@bothner.com>
14129
14130 Partially revert/redo 2003-10-01 change; fix -fworking-directory.
14131 * c-ppoutput.c (pp_dir_change): New function.
14132 * c-common.h (pp_dir_change): New declaration.
14133 * cpplib.h (struct cpp_options): Remove working_directory field.
14134 * cppinit.c (cpp_find_main_file, cpp_push_main_file): Merge back to
14135 (cpp_read_main_file): as before 10-01. Call _cpp_stack_file.
14136 Don't handle -fworking_directory here, but in c_common_post_options.
14137 (read_original_directory): Don't back up when done.
14138 Don't clear no-longer used working_directory flag.
14139 * cpplib.h: Update declarations to match.
14140 * c-lex.c (cb_dir_change): Move to c-opts.c.
14141 (init_c_lex): Don't set dir_change callback here, since we want
14142 to set it even if flag_preprocess_only.
14143 * c-opts.c (cb_dir_change): Function moved from c-lex.c.
14144 (c_common_post_options): Set dir_change callback.
14145 Call pp_dir_change if approporiate.
14146 (finish_options): Don't call cpp_find_main_file here. Hence remove
14147 unneeded parameter and result. Do LC_RENAME for <built-in>.
14148 (c_common_post_options): Call cpp_read_main_file here instead.
14149 (c_common_init): Update accordingly.
14150 (push_command_line_include): Don't cpp_push_main_file.
14151 Do LC_RENAME rather than LC_LEASE to get back to main file.
14152 Compared to pre-10-01 version, inline cpp_rename_to_main_file.
14153 (c_common_parse_file): Call cpp_read_main_file for subsequent main
14154 files, but call finish_options for all files.
14155 * c-opts.c (sanitize_cpp_opts): Don't set cpp_opts->working_directory.
14156 * fix-header.c (read_scan_file): Call cpp_read_main_file instead of
14157 cpp_find_main_file + cpp_push_main_file.
14158 * c-lex.c (fe_file_change): Don't set main_input_filename here.
14159 * opts.c (handle_options): Only set main_input_filename first time.
14160
14161 2004-02-05 Ian Lance Taylor <ian@wasabisystems.com>
14162
14163 * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
14164
14165 2004-02-04 Geoffrey Keating <geoffk@apple.com>
14166
14167 * reload.c (find_equiv_reg): When checking for register overlap,
14168 don't index hard_regno_nregs with a pseudo-reg.
14169
14170 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14171
14172 * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
14173
14174 2004-02-04 David Edelsohn <edelsohn@gnu.org>
14175
14176 * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
14177 against FIRST_PSEUDO_REGISTER.
14178
14179 2004-02-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14180
14181 * Makefile.in: Move target, host overrides after per-language
14182 fragments.
14183
14184 * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
14185 (GNATLIBCFLAGS): Remove -g.
14186
14187 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14188
14189 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
14190 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
14191 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
14192 config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
14193 config/pdp11/pdp11.c, config/rs6000/rs6000.c,
14194 config/sparc/sparc.c, config/vax/vax.c: Revert the
14195 replacements of "FALLTHRU" with "Fall through" done in the
14196 previous patch.
14197
14198 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14199
14200 * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
14201 config/arm/arm.c, config/arm/arm.md,
14202 config/cris/cris-protos.h, config/fr30/fr30.c,
14203 config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
14204 config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
14205 config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
14206 config/ip2k/ip2k.md, config/ip2k/libgcc.S,
14207 config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
14208 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
14209 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
14210 config/ns32k/netbsd.h, config/ns32k/ns32k.c,
14211 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
14212 config/rs6000/darwin-ldouble.c, config/s390/s390.h,
14213 config/s390/s390.md, config/sparc/netbsd-elf.h,
14214 config/sparc/openbsd.h, config/sparc/sparc.c,
14215 config/xtensa/lib2funcs.S: Fix comment formatting.
14216
14217 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14218
14219 * config/alpha/alpha.c, config/arc/arc.c,
14220 config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
14221 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
14222 config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
14223 config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
14224 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
14225 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
14226 config/iq2000/iq2000.c, config/m32r/m32r.c,
14227 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
14228 config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
14229 config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
14230 config/rs6000/rs6000.h, config/sparc/sparc.c,
14231 config/vax/vax.c: Fix comment typos. Follow spelling
14232 conventions.
14233
14234 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14235
14236 * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
14237 caller-save.c, df.h, genconfig.c, global.c, lcm.c,
14238 ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
14239 sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
14240 config/arm/fpa.md, config/arm/iwmmxt.md,
14241 config/arm/netbsd-elf.h, config/arm/netbsd.h,
14242 config/m68hc11/m68hc11.md, config/mips/iris5.h,
14243 config/mn10300/mn10300.md, config/rs6000/altivec.md,
14244 config/sparc/netbsd-elf.h: Update copyright.
14245
14246 2004-02-04 Eric Botcazou <ebotcazou@libertysurf.fr>
14247
14248 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
14249 for all modes whose size is greater than 8 bytes if ARCH32.
14250 (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
14251 by reference if ARCH32.
14252
14253 2004-02-04 Aldy Hernandez <aldyh@redhat.com>
14254
14255 * cgraphunit.c (cgraph_postorder): Fix typo in comment.
14256
14257 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14258
14259 * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
14260 to before adddi3 insn patterns.
14261 ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
14262 "reload_insi"): Move to before addsi3 insn patterns.
14263
14264 2004-02-04 Mark Mitchell <mark@codesourcery.com>
14265
14266 * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
14267 parameter. Use it instead of current_function_is_thunk.
14268 * function.h (struct function): Update documentation for is_thunk.
14269 * tree.h (CALL_FROM_THUNK_P): New macro.
14270 * config/alpha/alpha.c (alpha_sa_mask): Do not check
14271 no_new_pseudos when testing current_function_is_thunk.
14272 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
14273
14274 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14275
14276 * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
14277 TARGET_SETUP_INCOMING_VARARGS.
14278
14279 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14280
14281 * emit-rtl.c (gen_rtx): Remove.
14282 * genattrtab.c: Don't mention gen_rtx in a comment.
14283 * rtl.h: Remove the prototype for gen_rtx.
14284 * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
14285
14286 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14287
14288 * config/arc/arc.h, config/fr30/fr30.h
14289 (SETUP_INCOMING_VARARGS): Remove the target-independent
14290 comments.
14291 * doc/tm.texi: Don't mention deprecated target macros.
14292
14293 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14294
14295 * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
14296 target-independent comment.
14297
14298 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14299
14300 * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
14301 mention deprecated target macros.
14302
14303 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14304
14305 * config.gcc: Remove obsolete ports and configurations.
14306 * config/linux-aout.h, config/netware.h,
14307 config/t-linux-gnulibc1, config/d30v/abi,
14308 config/d30v/d30v-protos.h, config/d30v/d30v.c,
14309 config/d30v/d30v.h, config/d30v/d30v.md,
14310 config/d30v/libgcc1.asm, config/d30v/t-d30v,
14311 config/dsp16xx/dsp16xx-modes.def,
14312 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
14313 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
14314 config/i370/README, config/i370/i370-c.c,
14315 config/i370/i370-protos.h, config/i370/i370.c,
14316 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
14317 config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
14318 config/i386/freebsd-aout.h, config/i386/linux-aout.h,
14319 config/i386/moss.h, config/i386/netware.h,
14320 config/i386/svr3.ifile, config/i386/svr3dbx.h,
14321 config/i386/svr3gas.h, config/i386/svr3z.ifile,
14322 config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
14323 config/i960/i960-c.c, config/i960/i960-coff.h,
14324 config/i960/i960-modes.def, config/i960/i960-protos.h,
14325 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
14326 config/i960/rtems.h, config/i960/t-960bare,
14327 config/m68k/hp310.h, config/m68k/hp320.h,
14328 config/m68k/hp320base.h, config/m68k/m68kv4.h,
14329 config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
14330 Remove.
14331 * doc/extend.texi, doc/install.texi, doc/invoke.texi,
14332 doc/md.texi: Remove mentions of obsolete ports.
14333
14334 2004-02-04 Jan Hubicka <jh@suse.cz>
14335
14336 * alias.c (find_base_term, get_addr): Do not dereference NULL
14337 pointer when all VALUE's locations has been invalidated.
14338 (rtx_equal_for_memref_p): Simplify checking of VALUEs.
14339
14340 2004-02-03 Wolfgang Bangerth <bangerth@dealii.org>
14341
14342 * doc/invoke.texi (x86 options): Fix spelling/wording.
14343
14344 2004-02-03 Richard Sandiford <rsandifo@redhat.com>
14345
14346 * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
14347 put the original string in a comment.
14348 * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
14349 * config/mips/mips.c (mips_output_ascii): Likewise.
14350 * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
14351
14352 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
14353
14354 * system.h (GIV_SORT_CRITERION): Poison.
14355 * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
14356 * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
14357
14358 2004-02-03 Roger Sayle <roger@eyesopen.com>
14359
14360 PR target/9348
14361 * expr.c (expand_expr_real) <MULT_EXPR>: When performing widening
14362 multiplies with a multiplication of the wrong signedness, its the
14363 signedness of the multiplication that we've performed that needs to
14364 be passed to expand_mult_highpart_adjust. Avoid emitting a nop-move
14365 if expand_mult_highpart_adjust places the result in target.
14366
14367 2004-02-03 Richard Henderson <rth@redhat.com>
14368
14369 * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
14370
14371 2004-02-03 J"orn Rennecke <joern.rennecke@superh.com>
14372
14373 * config.gcc (sh[234]l): Use little endian fragments.
14374
14375 2004-02-03 Paul Koning <pkoning@equallogic.com>
14376
14377 * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
14378 * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
14379 * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
14380 encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
14381 floating point format.
14382 (pdp11_f_format, pdp11_d_format): New real_format descriptors for
14383 the above functions.
14384 (output_move_quad): Output float values in correct target format.
14385 (legitimate_const_double_p): New function.
14386 * config/pdp11/pdp11.h: Fix typos.
14387 (FLOAT_WORDS_BIG_ENDIAN): Add definition.
14388 (TARGET_FLOAT_FORMAT): Ditto.
14389 (pdp11_f_format, pdp11_d_format): Add external declarations.
14390 (MAX_REGS_PER_ADDRESS): Corrected.
14391 (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
14392 (PRINT_OPERAND): Output float literals in target format.
14393
14394 2004-02-03 Mark Mitchell <mark@codesourcery.com>
14395
14396 PR c++/13975
14397 * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
14398 TI_PRIVATE.
14399 (access_public_node): Redefine.
14400 (access_protected_node): Likewise.
14401 (access_private_node): Likewise.
14402 * tree.c (build_common_tree_nodes): Create access_public_node,
14403 access_protected_node, and access_private_node.
14404
14405 2004-02-03 Steve Ellcey <sje@cup.hp.com>
14406
14407 * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
14408 (MASK_INLINE_INT_DIV_THR): Ditto.
14409 (MASK_INLINE_SQRT_LAT): Ditto.
14410 (MASK_INLINE_SQRT_THR): Ditto.
14411 (MASK_DWARF2_ASM): Ditto.
14412 (MASK_EARLY_STOP_BITS): Ditto.
14413
14414 2004-02-02 Paul Brook <paul@codesourcery.com>
14415
14416 Merge from csl-arm-branch.
14417
14418 2004-01-30 Paul Brook <paul@codesourcery.com>
14419
14420 * aof.h (REGISTER_NAMES): Add vfp reg names
14421 (ADDITIONAL_REGISTER_NAMES): Ditto.
14422 * aout.h (REGISTER_NAMES): Ditto.
14423 (ADDITIONAL_REGISTER_NAMES): Ditto.
14424 * arm-protos.h: Update/Add Prototypes.
14425 * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
14426 Only allow 0.0 for VFP.
14427 (fp_consts_inited): Rename from fpa_consts_inited. Update users.
14428 (values_fp): Rename from values_fpa. Update Users.
14429 (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
14430 Update users. Only check valid constants for this hardware.
14431 (arm_float_rhs_operand): Rename from fpa_rhs_operand. Update Users.
14432 Only allow consts for FPA.
14433 (arm_float_add_operand): Rename from fpa_add_operand. Update users.
14434 Only allow consts for FPA.
14435 (use_return_insn): Check for saved VFP regs.
14436 (arm_legitimate_address_p): Handle VFP DFmode addressing.
14437 (arm_legitimize_address): Ditto.
14438 (arm_general_register_operand): New function.
14439 (vfp_mem_operand): New function.
14440 (vfp_compare_operand): New function.
14441 (vfp_secondary_reload_class): New function.
14442 (arm_float_compare_operand): New function.
14443 (vfp_print_multi): New function.
14444 (vfp_output_fstmx): New function.
14445 (vfp_emit_fstm): New function.
14446 (arm_output_epilogue): Output VPF reg restore code.
14447 (arm_expand_prologue): Output VFP reg save code.
14448 (arm_print_operand): Add 'P'.
14449 (arm_hard_regno_mode_ok): Return modes for VFP regs.
14450 (arm_regno_class): Return classes for VFP regs.
14451 (arm_compute_initial_elimination_offset): Include space for VFP regs.
14452 (arm_get_frame_size): Ditto.
14453 * arm.h (FIXED_REGISTERS): Add VFP regs.
14454 (CALL_USED_REGISTERS): Ditto.
14455 (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
14456 (FIRST_VFP_REGNUM): Define.
14457 (LAST_VFP_REGNUM): Define.
14458 (IS_VFP_REGNUM): Define.
14459 (FIRST_PSEUDO_REGISTER): Include VFP regs.
14460 (HARD_REGNO_NREGS): Handle VFP regs.
14461 (REG_ALLOC_ORDER): Add VFP regs.
14462 (enum reg_class): Add VFP_REGS.
14463 (REG_CLASS_NAMES): Ditto.
14464 (REG_CLASS_CONTENTS): Ditto.
14465 (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
14466 (REG_CLASS_FROM_LETTER): Add 'w'.
14467 (EXTRA_CONSTRAINT_ARM): Add 'U'.
14468 (EXTRA_MEMORY_CONSTRAINT): Define.
14469 (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
14470 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
14471 (REGISTER_MOVE_COST): Ditto.
14472 (PREDICATE_CODES): Add arm_general_register_operand,
14473 arm_float_compare_operand and vfp_compare_operand.
14474 * arm.md (various): Rename as above.
14475 (divsf3): Enable when TARGET_VFP.
14476 (divdf3): Ditto.
14477 (movdfcc): Ditto.
14478 (sqrtsf2): Ditto.
14479 (sqrtdf2): Ditto.
14480 (arm_movdi): Disable when TARGET_VFP.
14481 (arm_movsi_insn): Ditto.
14482 (movsi): Only split with general regs.
14483 (cmpsf): Use arm_float_compare_operand.
14484 (push_fp_multi): Restrict to TARGET_FPA.
14485 (vfp.md): Include.
14486 * vfp.md: New file.
14487 * fpa.md (various): Rename as above.
14488 * doc/md.texi: Document ARM w and U constraints.
14489
14490 2004-01-15 Paul Brook <paul@codesourcery.com>
14491
14492 * config.gcc: Add with_fpu. Allow with-float=softfp.
14493 * config/arm/arm.c (arm_override_options): Rename *-s to *s.
14494 Break out of loop when we find a float-abi. Fix typo.
14495 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
14496 Set -mfloat-abi=.
14497 * doc/install.texi: Document --with-fpu.
14498
14499 2003-01-14 Paul Brook <paul@codesourcery.com>
14500
14501 * config.gcc (with_arch): Add armv6.
14502 * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
14503 * config/arm/arm.c (arm_overrride_options): Ditto.
14504
14505 2004-01-08 Richard Earnshaw <rearnsha@arm.com>
14506
14507 * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
14508 (FL_ARCH6): Renamed from FL_ARCH6J.
14509 (arm_arch3m): Renamed from arm_fast_multiply.
14510 (arm_arch6): Renamed from arm_arch6j.
14511 * arm.h: Update all uses of above.
14512 * arm-cores.def: Likewise.
14513 * arm.md: Likewise.
14514
14515 * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
14516 not arm6j. Add entry for arch armv6.
14517
14518 2004-01-07 Richard Earnshaw <rearnsha@arm.com>
14519
14520 * arm.c (arm_emit_extendsi): Delete.
14521 * arm-protos.h (arm_emit_extendsi): Delete.
14522 * arm.md (zero_extendhisi2): Also handle zero-extension of
14523 non-subregs.
14524 (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
14525 (thumb_zero_extendhisi2): Only match if not v6.
14526 (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
14527 (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
14528 (thumb_extendqisi2): Likewise.
14529 (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
14530 (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
14531 (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
14532 (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
14533 (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
14534 (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
14535 (arm_zero_extendhisi2addsi): Remove subreg. Add attributes.
14536 (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
14537 (arm_extendqisi2addsi): Likewise.
14538
14539 2003-12-31 Mark Mitchell <mark@codesourcery.com>
14540
14541 Revert this change:
14542 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
14543 + REG addressing modes.
14544
14545 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
14546 + REG addressing modes.
14547
14548 2003-12-30 Mark Mitchell <mark@codesourcery.com>
14549
14550 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
14551 CONSTANT_P_RTX.
14552
14553 2003-30-12 Paul Brook <paul@codesourcery.com>
14554
14555 * longlong.h: protect arm inlines with !defined (__thumb__)
14556
14557 2003-30-12 Paul Brook <paul@codesourcery.com>
14558
14559 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
14560
14561 2003-12-30 Nathan Sidwell <nathan@codesourcery.com>
14562
14563 * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
14564 change.
14565
14566 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
14567
14568 * builtins.c (expand_builtin_apply_args_1): Add pretend args size
14569 to the virtual incoming args pointer for downward stacks.
14570
14571 2003-12-29 Paul Brook <paul@codesourcery.com>
14572
14573 * config/arm/arm-cores.def: Add cost function.
14574 * config/arm/arm.c (arm_*_rtx_costs): New functions.
14575 (arm_rtx_costs): Remove
14576 (struct processors): Add rtx_costs field.
14577 (all_cores, all_architectures): Ditto.
14578 (arm_override_options): Set targetm.rtx_costs.
14579 (thumb_rtx_costs): New function.
14580 (arm_rtx_costs_1): Remove cases handled elsewhere.
14581 * config/arm/arm.h (processor_type): Add COSTS parameter.
14582
14583 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
14584
14585 * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
14586 (arm926ejs.md): Include it.
14587 * config/arm/arm926ejs.md: New pipeline description.
14588
14589 2003-12-24 Paul Brook <paul@codesourcery.com>
14590
14591 * config/arm/arm.c (arm_arch6j): New variable.
14592 (arm_override_options): Set it.
14593 (arm_emit_extendsi): New function.
14594 * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
14595 * config/arm/arm.h (arm_arch6j): Declare.
14596 * config/arm/arm.md: Add sign/zero extend insns.
14597
14598 2003-12-23 Paul Brook <paul@codesourcery.com>
14599
14600 * config/arm/arm.c (all_architectures): Add armv6.
14601 * doc/invoke.texi: Document it.
14602
14603 2003-12-19 Paul Brook <paul@codesourcery.com>
14604
14605 * config/arm/arm.md: Add load1 and load_byte "type" attrs. Modify
14606 insn patterns to match.
14607 * config/arm/arm-generic.md: Ditto.
14608 * config/arm/cirrus.md: Ditto.
14609 * config/arm/fpa.md: Ditto.
14610 * config/amm/iwmmxt.md: Ditto.
14611 * config/arm/arm1026ejs.md: Ditto.
14612 * config/arm/arm1135jfs.md: Ditto. Add insn_reservation and bypasses
14613 for 11_loadb.
14614
14615 2003-12-18 Nathan Sidwell <nathan@codesourcery.com>
14616
14617 * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
14618 * config/arm/arm.c (arm_adjust_cost): Check shift cost for
14619 TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
14620 (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
14621 arm_no_early_mul_dep): Correctly deal with conditional execution,
14622 parallels and single shift operations.
14623 (arm_no_early_alu_shift_value_dep): Define.
14624 * arm.md (attr type): Replace 'normal' with 'alu',
14625 'alu_shift' and 'alu_shift_reg'.
14626 (attr core_cycles): Adjust.
14627 (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
14628 *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
14629 *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
14630 *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
14631 *arith_shiftsi_compare0_scratch, *sub_shiftsi,
14632 *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
14633 *if_shift_move, *if_move_shift, *if_shift_shift): Set type
14634 attribute appropriately.
14635 * config/arm/arm1026ejs.md (alu_op): Adjust.
14636 (alu_shift_op, alu_shift_reg_op): New.
14637 * config/arm/arm1136.md: Add better bypasses for early
14638 registers. Remove load[234] and store[234] bypasses.
14639 (11_alu_op): Adjust.
14640 (11_alu_shift_op, 11_alu_shift_reg_op): New.
14641
14642 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
14643
14644 * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
14645 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
14646 * config/arm/arm.c (arm_no_early_store_addr_dep,
14647 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
14648 * config/arm/arm1026ejs.md: Add load-store bypass.
14649 * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
14650 Add bypasses between instructions.
14651
14652 2003-12-10 Paul Brook <paul@codesourcery.com>
14653
14654 * config/arm/arm.c (arm_fpu_model): New variable.
14655 (arm_fload_abi): New variable.
14656 (target_fpe_name): Rename from target_fp_name.
14657 (target_fpu_name): New variable.
14658 (arm_is_cirrus): Remove.
14659 (fpu_desc): New struct.
14660 (all_fpus): Define.
14661 (pf_model_for_fpu): Define.
14662 (all_loat_abis): Define.
14663 (arm_override_options): Set fp arch flags based on -mfpu=
14664 and -float-abi=.
14665 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
14666 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
14667 (*): Use new TARGET_* flags.
14668 * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
14669 (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
14670 (TARGET_SOFT_FLOAT): Ditto.
14671 (TARGET_SOFT_FLOAT_ABI): New.
14672 (TARGET_MAVERICK): Rename from TARGET_CIRRUS. No longer implies
14673 TARGET_HARD_FLOAT.
14674 (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
14675 (TARGET_OPTIONS): Add -mfpu=.
14676 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
14677 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
14678 (arm_pf_model): Define.
14679 (arm_float_abi_type): Define.
14680 (fputype): Add FPUTYPE_VFP. Change SOFT_FPA->NONE
14681 * config/arm/arm.md: Use new TARGET_* flags.
14682 * config/arm/cirrus.md: Ditto.
14683 * config/arm/fpa.md: Ditto.
14684 * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
14685 * config/arm/semi.h (ASM_SPEC): Ditto.
14686 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
14687 (FPUTYPE_DEFAULT): Set to VFP.
14688 * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
14689
14690 2003-11-22 Phil Edwards <phil@codesourcery.com>
14691
14692 PR target/12476
14693 * config/arm/arm.c (arm_output_mi_thunk): In Thumb mode, use
14694 'bx' instead of 'b' to avoid branch range restrictions. Output
14695 the thunk immediately before the thunked-to function.
14696 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Do not emit
14697 .thumb_func if a thunk is being generated. Emit .code 16 along
14698 with .thumb_func if a thunk is not being generated.
14699
14700 2003-11-15 Nicolas Pitre <nico@cam.org>
14701
14702 * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
14703 arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
14704 * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
14705 (lshrdi3_iwmmxt): Renamed from lshrdi3.
14706 * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
14707
14708 2003-11-12 Steve Woodford <scw@wasabisystems.com>
14709 Ian Lance Taylor <ian@wasabisystems.com>
14710
14711 * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
14712 code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
14713
14714 2003-11-05 Phil Edwards <phil@codesourcery.com>
14715
14716 * config/arm/arm.md (insn): Add new V6 instruction names.
14717 (generic_sched): New attr.
14718 * config/arm/arm-generic.md: Use generic_sched here.
14719 * config/arm/arm1026ejs.md: Do not model fetch/issue/decode
14720 stages of pipeline. Adjust latency counts accordingly.
14721 * config/arm/arm1136jfs.md: New file.
14722
14723 2003-10-28 Mark Mitchell <mark@codesourcery.com>
14724
14725 * config/arm/arm.h (processor_type): New enumeration type.
14726 (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
14727 ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
14728 (CPP_CPU_ARCH_SPEC): Likewise.
14729 * config/arm/arm.c (arm_tune): New variable.
14730 (all_cores): Use cores.def.
14731 (all_architectures): Add representative processor.
14732 (arm_override_options): Restructure way in which tuning
14733 information is deduced.
14734 * arm.md: Update "insn" and "type" attributes throughout.
14735 (insn): New attribute.
14736 (type): Compute "mult" from "insn" attribute. Add load2,
14737 load3, load4 alternatives.
14738 (arm automaton): Move to arm-generic.md.
14739 * config/arm/arm-cores.def: New file.
14740 * config/arm/arm-generic.md: Likewise.
14741 * config/arm/arm1026ejs.md: Likewise.
14742
14743 2004-02-03 Eric Botcazou <ebotcazou@libertysurf.fr>
14744
14745 * doc/invoke.texi (SPARC options): Remove -mflat and
14746 all -mxxx (xxx:chip) options.
14747 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
14748 * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
14749 * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
14750 * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
14751 * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
14752 * config/sparc/sparc.c: Likewise.
14753 (sparc_output_function_prologue): Remove TARGET_FLAT handling.
14754 (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
14755 (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
14756 (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
14757 (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
14758 (sparc_flat_must_save_register_p): Likewise.
14759 (sparc_flat_compute_frame_size): Likewise.
14760 (sparc_flat_save_restore): Likewise.
14761 (sparc_flat_function_prologue): Likewise.
14762 (sparc_flat_function_epilogue): Likewise.
14763 (sparc_flat_epilogue_delay_slots): Likewise.
14764 (sparc_flat_eligible_for_epilogue_delay): Likewise.
14765 (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
14766 * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
14767 (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
14768 (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
14769 (CONDITIONAL_REGISTER_USAGE): Likewise.
14770 (FRAME_POINTER_REQUIRED): Likewise.
14771 (INITIAL_ELIMINATION_OFFSET): Likewise.
14772 (BASE_RETURN_VALUE_REG): Likewise.
14773 (BASE_OUTGOING_VALUE_REG): Likewise.
14774 (BASE_PASSING_ARG_REG): Likewise.
14775 (BASE_INCOMING_ARG_REG): Likewise.
14776 (INCOMING_REGNO): Likewise.
14777 (OUTGOING_REGNO): Likewise.
14778 (LOCAL_REGNO): Likewise.
14779 (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
14780 (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
14781 (EPILOGUE_USES): Likewise.
14782 * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
14783 ("flat" attribute): Delete.
14784 (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
14785 handling.
14786 (call followed by jump define_peephole's): Delete.
14787 (exception_receiver): Likewise.
14788 (builtin_setjmp_receiver): Likewise.
14789 * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
14790
14791 2004-02-03 Paolo Bonzini <bonzini@gnu.org>
14792
14793 PR c/11658
14794 PR c/13994
14795 * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
14796 on langhooks.h.
14797 * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
14798 * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
14799 Include langhooks.h. Replace c_common_truthvalue_conversion
14800 with the truthvalue_conversion language hook throughout.
14801 (expr_no_commas): Call default_conversion before save_expr
14802 for the first term of the production 'x ? : y'.
14803 * c-common.c (c_common_truthvalue_conversion): Remove
14804 obsolete block. Invoke recursively the hook instead
14805 of this function.
14806 * c-convert.c (convert): handle ERROR_MARK_NODE.
14807 * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
14808 returned by the truthvalue_conversion language hook.
14809 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
14810 c_objc_common_truthvalue_conversion.
14811 * c-objc-common.c (c_objc_common_truthvalue_conversion):
14812 New function.
14813 * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
14814 * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
14815 c_objc_common_truthvalue_conversion.
14816
14817 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
14818
14819 * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
14820 of gen_rtx.
14821 (LIBCALL_VALUE): Likewise.
14822 * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
14823 gen_rtx_CC0 instead of gen_rtx.
14824 * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
14825 gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
14826 (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
14827 gen_rtx.
14828 (m68hc11_emit_logical): Likewise.
14829
14830 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
14831
14832 * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
14833 config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
14834 config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
14835 config/m32r/m32r.md, config/m68hc11/m68hc11.c,
14836 config/mips/mips.md, config/mmix/mmix.c,
14837 config/mn10300/mn10300.c, config/mn10300/mn10300.md,
14838 config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
14839 config/rs6000/altivec.md, config/s390/s390.c,
14840 config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
14841 config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
14842 Use const0_rtx instead of GEN_INT (0). Do the same for other
14843 constants that are readily available.
14844
14845 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
14846
14847 * doloop.c, optabs.c, regmove.c, sched-deps.c,
14848 config/i386/i386.c, config/i386/i386.md: Use const0_rtx
14849 instead of GEN_INT (0). Do the same for other constants that
14850 are readily available.
14851
14852 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
14853
14854 * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
14855 gen_rtx.
14856 * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
14857 instead of gen_rtx.
14858 * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
14859 gen_rtx.
14860 * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
14861 gen_rtx_ASHIFT instead of gen_rtx.
14862 (udivmodqi4): Likewise.
14863
14864 2004-02-02 Richard Henderson <rth@redhat.com>
14865
14866 PR target/13789
14867 * expr.c (store_expr): Use force_operand before emit_move_insn.
14868
14869 2004-02-02 Jeff Law <law@redhat.com>
14870 Roger Sayle <roger@eyesopen.com>
14871
14872 * tree.c (commutative_tree_code, associative_tree_code): New
14873 functions.
14874 (iterative_hash_expr): Use commutative_tree_code.
14875 * tree.h (commutative_tree_code, associative_tree_code): Declare.
14876 * fold-const.c (operand_equal_p): Use commutative_tree_code
14877 rather than inlining the commutativity check.
14878 (fold): Likewise.
14879
14880 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
14881
14882 * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
14883 * config/frv/frv-protos.h: Remove the prototype for
14884 frv_function_arg_keep_as_reference.
14885 * config/frv/frv.c (frv_function_arg_keep_as_reference):
14886 Remove.
14887 * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
14888 * config/stormy16/stormy16.h: Remove the commented-out
14889 definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
14890
14891 2004-02-03 Alan Modra <amodra@bigpond.net.au>
14892
14893 PR target/13914
14894 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
14895 for retaddr_column.
14896
14897 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
14898
14899 * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
14900 gen_rtx.
14901
14902 2004-02-02 Eric Christopher <echristo@redhat.com>
14903 Zack Weinberg <zack@codesourcery.com>
14904
14905 * c-opts.c (c_common_handle_option): Add -finput-charset.
14906 * c.opt: Ditto.
14907 * cppcharset.c (one_iso88591_to_utf8): Remove.
14908 (convert_iso88591_utf8): Ditto.
14909 (conversion_tab): Remove 8859-1 converter.
14910 (_cpp_input_to_utf8): Remove.
14911 (_cpp_init_iconv_buffer): Ditto.
14912 (_cpp_close_iconv_buffer): Ditto.
14913 (_cpp_convert_input): New function.
14914 (_cpp_default_encoding): Ditto.
14915 * cpphash.h: Add/remove prototypes for above.
14916 * cppfiles.c (read_file_guts): Use _cpp_convert_input.
14917 * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
14918 for narrow execution and input character sets.
14919 * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
14920 * doc/cppopts.texi: Document -finput-charset.
14921
14922 2004-02-02 David Edelsohn <edelsohn@gnu.org>
14923
14924 * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
14925 against FIRST_PSEUDO_REGISTER.
14926
14927 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
14928
14929 * doc/invoke.texi (SPARC options): Further improve.
14930
14931 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
14932
14933 * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
14934 config/h8300/h8300.c, config/ip2k/ip2k.md,
14935 config/iq2000/iq2000.c, config/mips/mips.c,
14936 config/rs6000/rs6000.c, config/rs6000/rs6000.md,
14937 config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
14938 config/v850/v850.md: Fix indentation.
14939
14940 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
14941
14942 * config/sparc/sparc.c (function_arg_slotno): Align TImode
14943 arguments on a 16-byte boundary in the parameter array if ARCH64.
14944 Split handling of TFmode.
14945
14946 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
14947
14948 * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
14949 Don't test CONSTANT_P (x).
14950 (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
14951 ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
14952 Fix misindentation.
14953
14954 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
14955
14956 * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
14957
14958 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
14959
14960 * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
14961 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
14962 config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
14963 config/iq2000/iq2000.c, config/m32r/m32r.c,
14964 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
14965 config/mn10300/mn10300.c, config/rs6000/rs6000.c,
14966 config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
14967 config/stormy16/stormy16.c, config/v850/v850.md,
14968 config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
14969
14970 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
14971
14972 * config/mcore/mcore.c (block_move_sequence): Replace
14973 gen_rtx_CONST_INT with GEN_INT.
14974
14975 2004-02-02 Jan Hubicka <jh@suse.cz>
14976
14977 * alias.c (record_set): Use hard_regno_nregs.
14978 * bt-load.c (find_btr_reference, note_btr_set): Likewise.
14979 * builtins.c (apply_args_size): Likewise.
14980 * caller-save.c (setup_save_areas, save_call_clobbered_regs,
14981 mark_set_regs, add_stored_regs, mark_referenced_regs,
14982 insert_restore, insert_save, insert_one_insn): Likewise.
14983 * cfgcleanup.c: Include regs.h
14984 (mark_effect, mentions_nonequal_regs): Likewise.
14985 * cfgrtl.c (mark_killed_regs): Likewise
14986 * combine.c (update_table_tick, record_value_for_reg,
14987 record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
14988 reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
14989 reg_bitfield_target_p, distribute_notes): Likewise.
14990 * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
14991 exp_equiv_p, cse_insn): Likewise.
14992 * cselib.c (cselib_lookup): Likewise.
14993 (cselib_invalidate_regno, cselib_record_set): Likewise.
14994 * df.c (df_ref_record): Likewise.
14995 * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
14996 Likewise.
14997 * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
14998 count_or_remove_death_notes_bb): Likewise.
14999 * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
15000 * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
15001 mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
15002 * integrate.c (mark_stores): Likewise.
15003 * jump.c (delete_prior_computation): Likewise.
15004 * lcm.c (reg_dies, reg_becomes_live): Likewise.
15005 * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
15006 * loop.c (LOOP_REGNO_NREGS): Likewise.
15007 * postreload.c (reload_combine, reload_combine_note_store,
15008 reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
15009 * ra-colorize.c (combine, color_usable_p, get_free_reg,
15010 calculate_dont_begin, calculate_dont_begin, colorize_one_web,
15011 try_recolor_web, insert_coalesced_conflicts, check_colors,
15012 break_precolored_alias): Likewise.
15013 * ra-debug.c: Include regs.h
15014 (ra_print_rtx_object): Likewise.
15015 * ra-rewrite (choose_spill_colors): Likewise.
15016 (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
15017 * ra.c (init_ra): Likewise.
15018 * recog.c (reg_fits_class_p, peep2_reg_dead_p,
15019 peep2_find_free_register): Likewise.
15020 * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
15021 * regclass.c (hard_regno_nregs): New array.
15022 (init_reg_modes_once): Initialize it.
15023 (choose_hard_reg_mode): Use it.
15024 (record_reg_classes): Likewise.
15025 * regmove.c (mark_flags_life_zones): Likewise.
15026 * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
15027 scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
15028 copy_value, maybe_mode_change, find_oldest_value_reg,
15029 copyprop_hardreg_forward_1):
15030 * regs.h (hard_regno_nregs): Declare.
15031 * realod.c (reload_inner_reg_of_subreg): Use it.
15032 (push_reload, combine_reloads, find_dummy_reload,
15033 hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
15034 refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
15035 reload_adjust_reg_for_mode): Likewise.
15036 * reload1.c (compute_use_by_pseudos, count_pseudo,
15037 count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
15038 spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
15039 clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
15040 allocate_reload_reg, choose_reload_regs, emit_reload_insns,
15041 delete_output_reload): Likewise.
15042 * resource.c (update_live_status, mark_referenced_resources,
15043 mark_set_resources, mark_target_live_regs): Likewise.
15044 * rtlanal.c: Include regs.h
15045 (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
15046 dead_or_set_regno_p, find_regno_note, find_reg_fusage,
15047 subreg_regno_offset, subreg_offset_representable_p,
15048 hoist_test_store): Likewise.
15049 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
15050 * sched-rgn.c (check_live_1, update_live_1): Likewise.
15051 * stmt.c: Include regs.h
15052 (decl_conflicts_with_clobbers_p): Likewise.
15053 * varasm.c (make_decl_rtl): Likewise.
15054 * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
15055
15056 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
15057
15058 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
15059 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
15060 config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
15061 config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
15062 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
15063 config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
15064 config/iq2000/iq2000.h, config/m32r/m32r.c,
15065 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
15066 config/m68hc11/m68hc11.md, config/m68k/m68k.md,
15067 config/mcore/mcore.c, config/mcore/mcore.h,
15068 config/mcore/mcore.md, config/mips/mips.c,
15069 config/ns32k/ns32k.h, config/ns32k/ns32k.md,
15070 config/rs6000/rs6000.c, config/s390/s390.c,
15071 config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
15072 config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
15073 "gen_rtx (FOO, " with "gen_rtx_FOO (".
15074
15075 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
15076
15077 * config/h8300/h8300.md (two peephole2's): New.
15078
15079 2004-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
15080
15081 * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
15082 (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
15083 (ASM_CPU_SPEC): Likewise
15084 * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
15085 (ASM_CPU_SPEC): Remove -mcpu=v8plus. Handle -mcpu=ultrasparc3.
15086
15087 2004-02-01 Roger Sayle <roger@eyesopen.com>
15088
15089 * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
15090 isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
15091 (expand_builtin): Always call expand_builtin_pow.
15092
15093 2004-02-01 Roger Sayle <roger@eyesopen.com>
15094
15095 * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
15096 BUILT_IN_SIGNBITL): New GCC builtins.
15097 * builtins.c (expand_builtin_signbit): New function to RTL expand
15098 calls to signbit, signbitf and signbitl as inline intrinsics.
15099 (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
15100 (fold_builtin_signbit): New function to perform constant folding
15101 of signbit, signbitf and signbitl.
15102 (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
15103
15104 * doc/extend.texi: Document new signbit{,f,l} builtins.
15105
15106 2004-02-01 Richard Sandiford <rsandifo@redhat.com>
15107
15108 * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
15109
15110 2004-02-01 Chris Demetriou <cgd@broadcom.com>
15111
15112 * config/mips/mips.h (PREDICATE_CODES): Remove entries for
15113 "mips_const_double_ok" and "simple_memory_operand", which were
15114 removed from the MIPS port with the mips-3_4-rewrite branch merge.
15115 * config/mips/mips.c (mips16_lay_out_constants): Update comment
15116 for removal of simple_memory_operand.
15117
15118 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15119
15120 * config/c4x/c4x.md: Use GEN_INT instead of
15121 gen_rtx (CONST_INT, ...).
15122
15123 2004-01-31 Richard Henderson <rth@redhat.com>
15124
15125 * varasm.c (output_constant_pool): Don't zap the pool.
15126
15127 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15128
15129 * genrecog.c (decision_type): Add DT_const_int.
15130 (write_cond) [DT_const_int]: Print a comparison against small
15131 constant.
15132 (write_node): Simplify comparisons against small constants
15133 before printing tests.
15134
15135 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15136
15137 * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
15138 instead of gen_rtx_CONST_INT.
15139
15140 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15141
15142 * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
15143 instead of gen_rtx_CONST_INT.
15144
15145 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15146
15147 * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
15148 hook_bool_CUMULATIVE_ARGS_false.
15149 * targhooks.c (default_strict_argument_naming): Rename to
15150 hook_bool_CUMULATIVE_ARGS_false.
15151 * targhooks.h: Update the prototype for
15152 default_strict_argument_naming.
15153
15154 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15155
15156 * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
15157 * config/sh/sh.h: Likewise.
15158 * config/sh/sh.md: Likewise.
15159
15160 2004-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
15161
15162 * doc/invoke.texi (SPARC options): Restructure and update.
15163
15164 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15165
15166 * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
15167 STRICT_ARGUMENT_NAMING): Poison.
15168 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
15169 hook_bool_tree_false.
15170 * targhooks.c (default_promote_function_args): Remove.
15171 (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
15172 Don't check incoming.
15173 (default_strict_argument_naming): Don't use
15174 STRICT_ARGUMENT_NAMING.
15175 * targhooks.h: Remove the prototype for
15176 default_promote_function_args.
15177
15178 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15179
15180 * config/i386/i386-protos.h: Remove the prototype for
15181 ix86_setup_incoming_varargs.
15182 * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
15183 (ix86_setup_incoming_varargs): Make it static.
15184 * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
15185
15186 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15187
15188 * alloc-pool.c: Fix comment typos.
15189 * builtin-types.def: Likewise.
15190 * builtins.def: Likewise.
15191 * c-pretty-print.c: Likewise.
15192 * df.h: Likewise.
15193 * reload1.c: Likewise.
15194
15195 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15196
15197 * doc/invoke.texi: Follow spelling conventions.
15198 * doc/tm.texi: Likewise.
15199
15200 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15201
15202 * doc/install.texi: Fix typos.
15203 * doc/invoke.texi: Likewise.
15204
15205 2004-01-31 Ulrich Weigand <uweigand@de.ibm.com>
15206
15207 * config/s390/s390.c (s390_decompose_address): Do not treat virtual
15208 registers as pointers.
15209 * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
15210
15211 2004-01-31 Paolo Bonzini <bonzini@gnu.org>
15212
15213 * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
15214 and restore it to gen_lowpart_general on exit.
15215 (gen_lowpart_for_combine): Adjust all callers to go through
15216 gen_lowpart.
15217 * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
15218 and restore it to gen_lowpart_general on exit.
15219 (gen_lowpart_if_possible): Adjust all callers to go through
15220 gen_lowpart.
15221 * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
15222 (gen_lowpart): Declare as pointer to function, initialized to
15223 gen_lowpart_general.
15224 * rtl.h (gen_lowpart): Declare as pointer to function.
15225
15226 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15227
15228 * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
15229 * calls.c: Likewise.
15230 * emit-rtl.c: Likewise.
15231 * function.c: Likewise.
15232 * reload1.c: Likewise.
15233 * config/i386/cygming.h: Likewise.
15234 * config/i386/i386.c: Likewise.
15235 * config/i386/winnt.c: Likewise.
15236
15237 2004-01-30 Dara Hazeghi <dhazeghi@yahoo.com>
15238
15239 PR bootstrap/9249
15240 * doc/install.texi: document --enable-__cxa_atexit option.
15241 * configure.ac: Disable __cxa_atexit if not supported.
15242 * configure: Regenerate.
15243
15244 2004-01-30 Daniel Berlin <dberlin@dberlin.org>
15245
15246 * ggc-zone.c (ggc_free): New function.
15247
15248 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
15249
15250 alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
15251 cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
15252 flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
15253 ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
15254 tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
15255 config/alpha/alpha.c, config/alpha/alpha.h,
15256 config/alpha/alpha.md, config/alpha/unicosmk.h,
15257 config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
15258 config/c4x/c4x-protos.h, config/c4x/c4x.md,
15259 config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
15260 config/frv/frvend.c, config/i386/cygming.h,
15261 config/i386/djgpp.h, config/i386/emmintrin.h,
15262 config/i386/gthr-win32.c, config/i386/i386-interix.h,
15263 config/i386/i386-protos.h, config/i386/openbsd.h,
15264 config/i386/winnt.c, config/i386/xm-mingw32.h,
15265 config/i386/xmmintrin.h, config/ia64/ia64.md,
15266 config/iq2000/iq2000.md, config/m32r/m32r.md,
15267 config/m68k/m68k.md, config/mcore/mcore-elf.h,
15268 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
15269 config/mips/iris5gas.h, config/mips/iris6.h,
15270 config/mips/iris6gas.h, config/mips/linux.h,
15271 config/mips/mips.md, config/mips/netbsd.h,
15272 config/mips/openbsd.h, config/mips/windiss.h,
15273 config/pa/fptr.c, config/rs6000/aix.h,
15274 config/rs6000/altivec.h, config/rs6000/darwin.h,
15275 config/rs6000/xcoff.h, config/s390/s390-protos.h,
15276 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
15277 config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
15278 config/sparc/sol2.h: Update copyright.
15279
15280 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
15281
15282 * Makefile.in (abs_docdir, abs_srcdir): Define.
15283 (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
15284
15285 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
15286
15287 * genconfig.c (main): Have CC0_P check its operand even on a
15288 target without cc0.
15289
15290 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
15291
15292 * config/alpha/alpha.c: Remove mentions of deprecates macros
15293 in comments, remove some target-independent comments about target
15294 macros, and/or add minimal function comments for target hook
15295 implementations.
15296 * config/avr/avr.c: Likewise.
15297 * config/ia64/ia64.h: Likewise.
15298 * config/ip2k/ip2k.c: Likewise.
15299 * config/iq2000/iq2000.c: Likewise.
15300 * config/m32r/m32r.h: Likewise.
15301 * config/m68hc11/m68hc11.c: Likewise.
15302 * config/mcore/mcore.c: Likewise.
15303 * config/mmix/mmix.c: Likewise.
15304 * config/mn10300/mn10300.c: Likewise.
15305 * config/pa/pa.c: Likewise.
15306 * config/pdp11/pdp11.c: Likewise.
15307 * config/rs6000/rs6000.h: Likewise.
15308 * config/sh/sh.c: Likewise.
15309 * config/sh/sh.h: Likewise.
15310 * config/sparc/sparc.c: Likewise.
15311 * config/sparc/sparc.h: Likewise.
15312 * config/stormy16/stormy16.c: Likewise.
15313 * config/xtensa/xtensa.c: Likewise.
15314
15315 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
15316
15317 PR optimization/12147
15318 * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
15319 RELOAD_FOR_OPADDR_ADDR.
15320 (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
15321 might be reused as RELOAD_FOR_OPADDR_ADDR register.
15322
15323 2004-01-30 Jan Hubicka <jh@suse.cz>
15324
15325 * reload.c (get_secondary_mem): Fix updating of
15326 secondary_memlocs_elim_used.
15327
15328 2004-01-30 Richard Henderson <rth@redhat.com>
15329
15330 * varasm.c (struct rtx_const, struct pool_constant): Remove.
15331 (MAX_RTX_HASH_TABLE): Remove.
15332 (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
15333 (first_pool, last_pool, pool_offset): Remove.
15334 (struct rtx_constant_pool): Split out from ...
15335 (struct varasm_status): ... here. Reference one via pointer.
15336 (struct constant_descriptor_rtx): Merge struct pool_constant.
15337 (SYMHASH): Remove.
15338 (decode_rtx_const): Remove.
15339 (const_hash_rtx, compare_constant_rtx): Remove.
15340 (record_constant_rtx): Remove.
15341 (const_desc_rtx_hash, const_desc_rtx_eq): New.
15342 (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
15343 (const_rtx_hash_1, const_rtx_hash): New.
15344 (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
15345 (simplify_subtraction): Use simplify_rtx.
15346 (force_const_mem): Rewrite to use new data structures.
15347 (find_pool_constant): Likewise.
15348 (get_pool_constant, get_pool_constant_mark,
15349 get_pool_constant_for_function, get_pool_mode,
15350 get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
15351 (output_constant_pool_2): Split out from output_constant_pool.
15352 (output_constant_pool_1): Likewise. Use new pool datastructures.
15353 (output_constant_pool): Zap entire pool datastructure.
15354 (mark_constant): Use new pool datastructures.
15355 (mark_constants): Use for_each_rtx.
15356 (mark_constant_pool): Use new pool datastructures.
15357
15358 2004-01-30 Fariborz Jahanian <fjahanian@apple.com>
15359
15360 * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
15361 Copy operands[1] to pseudo for simplify_gen_subreg.
15362
15363 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
15364
15365 * gcse.c (bypass_block): Fix a typo in the previous check-in
15366 to the file.
15367
15368 2004-01-30 Andrew Pinski <pinskia@physics.uc.edu>
15369
15370 * toplev.c: Include alloc-pool.h.
15371 * Makefile.in (toplev.c): Update dependencies.
15372
15373 2004-01-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15374
15375 * combine.c (simplify_shift_const, case XOR): Be careful when
15376 commuting XOR with ASHIFTRT.
15377
15378 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
15379 Eric Botcazou <ebotcazou@libertysurf.fr>
15380
15381 * config/sparc/sparc-protos.h: Remove the prototype for
15382 sparc_builtin_saveregs.
15383 * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
15384 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
15385 (TARGET_PROMOTE_PROTOTYPES): Likewise.
15386 (TARGET_STRUCT_VALUE_RTX): Likewise.
15387 (TARGET_RETURN_IN_MEMORY): Likewise.
15388 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
15389 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
15390 (sparc_builtin_saveregs): Make it static.
15391 (sparc_promote_prototypes): New.
15392 (sparc_struct_value_rtx): Likewise.
15393 (sparc_return_in_memory): Likewise.
15394 * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
15395 (PROMOTE_FUNCTION_RETURN): Likewise.
15396 (RETURN_IN_MEMORY): Likewise.
15397 (STRUCT_VALUE): Likewise.
15398 (STRUCT_VALUE_INCOMING): Likewise.
15399 (EXPAND_BUILTIN_SAVEREGS): Likewise.
15400 (STRICT_ARGUMENT_NAMING): Likewise.
15401 (PROMOTE_PROTOTYPES): Likewise.
15402
15403 * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
15404
15405 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
15406
15407 PR c/12818
15408 * varasm.c (const_hash_1) <STRING_CST>: Use the
15409 address to compute the hash value if flag_writable_strings.
15410 (compare_constant) <STRING_CST>: Compare the addresses
15411 if flag_writable_strings.
15412 (build_constant_desc): Do not copy the expression for a
15413 STRING_CST if flag_writable_strings.
15414
15415 2004-01-30 Jan Hubicka <jh@suse.cz>
15416
15417 * alloc-pool.c: Include hashtab.h
15418 (alloc_pool_descriptor): New structure
15419 (alloc_pool_hash): New global variable.
15420 (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
15421 (create_alloc_pool): Update statistics.
15422 (free_alloc_pool): Likewise.
15423 (pool_alloc): Likewise.
15424 (output_info): New structure
15425 (print_statistics, dump_alloc_pool_statistics): New function.
15426 * alloc-pool.h (alloc_pool_def): Turn name to be constant.
15427 (dump_alloc_pool_statistics): Declare.
15428 * toplev.c (finalize): Dump statistics.
15429
15430 * reload.c (secondary_memlocs_elim_used): New static variable.
15431 (get_secondary_mem): Update it.
15432 (find_reloads): Use it.
15433
15434 2004-01-30 Steven Bosscher <s.bosscher@student.tudelft.nl>
15435
15436 * toplev.c: Fix broken checkin of 2003-12-30, again.
15437
15438 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
15439
15440 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
15441 s390*-*-* targets by specifying a 'nop' insn.
15442 * configure: Regenerate.
15443
15444 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
15445
15446 PR target/11475
15447 * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
15448
15449 2004-01-29 Jakub Jelinek <jakub@redhat.com>
15450
15451 * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
15452 of addr when creating MEM copy.
15453
15454 2004-01-29 Devang Patel <dpatel@apple.com>
15455
15456 * dwarf2out.c (gen_field_die): Do not equate decl number to die.
15457
15458 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
15459
15460 PR inline-asm/6162
15461 * reload.c (find_reloads): Only support one pair of commutative
15462 operands.
15463
15464 2004-01-29 Roger Sayle <roger@eyesopen.com>
15465
15466 PR java/13824
15467 * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
15468 as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
15469 recursion.
15470
15471 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
15472
15473 * config/frv/frv.c: Don't mention deprecated macros in
15474 comments. Remove some target-independent comments about
15475 target macros.
15476 * config/frv/frv.h: Likewise.
15477
15478 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15479
15480 * cfghooks.c (split_block): Set probability and count of the
15481 new edge.
15482
15483 2004-01-29 Josef Zlomek <zlomekj@suse.cz>
15484
15485 * dwarf2out.c (struct die_struct): Added field decl_id.
15486 (decl_die_table): Changed to hash table.
15487 (decl_die_table_allocated): Deleted.
15488 (decl_die_table_in_use): Deleted.
15489 (DECL_DIE_TABLE_INCREMENT): Deleted.
15490 (decl_die_table_hash): New function.
15491 (decl_die_table_eq): New function.
15492 (lookup_decl_die): Lookup in a hash table.
15493 (equate_decl_number_to_die): Insert into a hash table.
15494 (dwarf2out_init): Init hash table decl_die_table.
15495
15496 2004-01-29 Jakub Jelinek <jakub@redhat.com>
15497
15498 PR optimization/13424
15499 * expr.c (store_constructor): Revert 2003-12-03 change.
15500
15501 * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
15502 expected before returning early. Avoid sharing RTL if they
15503 need to be changed.
15504
15505 * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
15506 handling so that memory attributes are preserved. Don't call
15507 ix86_set_move_mem_attrs.
15508 (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
15509 (ix86_expand_clrstr): Rename src argument to
15510 dst. Rework rep_stos and strset handling so that memory attributes
15511 are preserved.
15512 (ix86_expand_strlen): Pass src argument to
15513 ix86_expand_strlensi_unroll_1. Rework strlenqi_1 handling so that
15514 memory attributes are preserved.
15515 (ix86_expand_strlensi_unroll_1): Add src argument. Use
15516 change_address instead of gen_rtx_MEM.
15517 * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
15518 expanders.
15519 (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
15520 strmovqi, strmovqi_rex64): Remove.
15521 (rep_mov*, strmov*): Prefix insn names with *.
15522 (strset, strset_singleop, rep_stos): New expanders.
15523 (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
15524 strsetqi, strsetqi_rex64): Remove.
15525 (rep_stos*, strset*): Prefix insn names with *.
15526 (rep_stosqi_rex64): Likewise. Fix mode of dirflag reg from DImode
15527 to SImode.
15528 (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
15529 are preserved.
15530 (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
15531 Prefix insn names with *.
15532 (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
15533 (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
15534 (strlenqi_1): New expander.
15535 * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
15536
15537 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15538
15539 * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
15540 * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
15541 verify_flow_info): Declaration removed.
15542 * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
15543 (debug_bb, debug_bb_n): Add argument to dump_bb call.
15544 * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
15545 try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
15546 instead of delete_block.
15547 * cfghooks.c: Include timevar.h and toplev.h.
15548 (cfg_hooks): Define here.
15549 (verify_flow_info, dump_bb): Moved from cfg.c.
15550 (redirect_edge_and_branch, redirect_edge_and_branch_force,
15551 split_block, split_block_after_labels, move_block_after,
15552 delete_basic_block, split_edge, create_basic_block,
15553 create_empty_bb, can_merge_blocks_p, merge_blocks,
15554 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
15555 New functions.
15556 * cfghooks.h (struct cfg_hooks): Added fields name,
15557 make_forwarder_block, tidy_fallthru_edge and
15558 move_block_after. Changed type of verify_flow_info, dump_bb,
15559 split_block fields. Renamed cfgh_split_edge and delete_block
15560 fields.
15561 (redirect_edge_and_branch, redirect_edge_and_branch_force,
15562 split_block, delete_block, split_edge, create_basic_block,
15563 can_merge_blocks_p, merge_blocks): Macros removed.
15564 (cfg_hooks): Do not export.
15565 (verify_flow_info, dump_bb, redirect_edge_and_branch,
15566 redirect_edge_and_branch_force, split_block, split_block_after_labels,
15567 move_block_after, delete_basic_block, split_edge, create_basic_block,
15568 create_empty_bb, can_merge_blocks_p, merge_blocks,
15569 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
15570 Declare.
15571 (cfg_layout_rtl_cfg_hooks): Declare.
15572 * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
15573 New functions.
15574 (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
15575 (redirect_edge_with_latch_update): Removed.
15576 (make_forwarder_block): Moved to cfghooks.c, semantics changed.
15577 * cfgloopmanip.c (remove_bbs): Do not update dominators here.
15578 * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
15579 rtl_delete_block, rtl_split_block, rtl_merge_blocks,
15580 tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
15581 cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
15582 cfghooks.c.
15583 (rtl_create_basic_block): Coding style fix.
15584 (rtl_tidy_fallthru_edge, rtl_move_block_after,
15585 rtl_make_forwarder_block): New functions.
15586 (update_cfg_after_block_merging): Removed.
15587 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
15588 * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
15589 to dump_bb.
15590 * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
15591 find_if_case_2): Don't update dominators.
15592 * timevar.def (TV_CFG_VERIFY): New.
15593 * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
15594 * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
15595 * cfgloopmanip.c (split_loop_bb): Don't update dominators.
15596 (remove_bbs): Don't call remove_bbs.
15597 (create_preheader): Use make_forwarder_block.
15598 (mfb_keep_just, mfb_update_loops): New static functions.
15599
15600 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
15601
15602 * config/avr/avr.h: Remove target-independent comments about
15603 target macros.
15604
15605 2004-01-28 Daniel Berlin <dberlin@dberlin.org>
15606
15607 * timevar.c (timevar_print): Mention when checking is enabled.
15608
15609 2004-01-28 Giovanni Bajo <giovannibajo@gcc.gnu.org>
15610
15611 * c-lex.c (c_lex): Rename to...
15612 (c_lex_with_flags): Add new parameter to get CPP flags.
15613 (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
15614 * c-pragma.h (c_lex_with_flags): Declare.
15615
15616 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
15617
15618 * config/mcore/mcore.c (mcore_external_libcall): Add a
15619 comment.
15620 (mcore_return_in_memory): Likewise.
15621
15622 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
15623
15624 * config/mcore/mcore-protos.h: Remove the prototype for
15625 mcore_setup_incoming_varargs.
15626 * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
15627 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
15628 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
15629 (TARGET_PROMOTE_PROTOTYPES): Likewise.
15630 (TARGET_STRUCT_VALUE_RTX): Likewise.
15631 (TARGET_RETURN_IN_MEMORY): Likewise.
15632 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
15633 (mcore_setup_incoming_varargs): Make it static. Receive the
15634 first argument by reference. Add argument second_time.
15635 (mcore_external_libcall): New.
15636 (mcore_return_in_memory): Likewise.
15637 * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
15638 (PROMOTE_FUNCTION_RETURN): Likewise.
15639 (STRUCT_VALUE): Likewise.
15640 (RETURN_IN_MEMORY): Likewise.
15641 (SETUP_INCOMING_VARARGS): Likewise.
15642 (PROMOTE_PROTOTYPES): Likewise.
15643 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
15644
15645 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
15646
15647 * config/m32r/m32r-protos.h: Remove the prototype for
15648 m32r_setup_incoming_varargs.
15649 * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
15650 (TARGET_STRUCT_VALUE_RTX): Likewise.
15651 (TARGET_RETURN_IN_MEMORY): Likewise.
15652 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
15653 (m32r_return_in_memory): New.
15654 (m32r_setup_incoming_varargs): Make it static.
15655 * config/m32r/m32r.h: Remove #undef of
15656 ASM_OUTPUT_EXTERNAL_LIBCALL. Remove the commented-out
15657 definitions of PROMOTE_FUNCTION_ARGS and
15658 PROMOTE_FUNCTION_RETURN.
15659 (PROMOTE_PROTOTYPES): Remove.
15660 (RETURN_IN_MEMORY): Likewise.
15661 (STRUCT_VALUE): Likewise.
15662
15663 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
15664
15665 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
15666 (TARGET_STRUCT_VALUE_RTX): Likewise.
15667 (m68k_struct_value_rtx): Likewise.
15668 * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
15669 STRUCT_VALUE_REGNUM.
15670 (PROMOTE_PROTOTYPES): Remove.
15671 * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
15672 STRUCT_VALUE_REGNUM.
15673 * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
15674 * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
15675
15676 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
15677
15678 * config/stormy16/stormy16.c
15679 (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
15680 TARGET_BUILD_BUILTIN_VA_LIST.
15681
15682 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
15683
15684 * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
15685 (TARGET_STRUCT_VALUE_RTX): Likewise.
15686 (TARGET_RETURN_IN_MEMORY): Likewise.
15687 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
15688 (v850_return_in_memory): Likewise.
15689 (v850_setup_incoming_varargs): Likewise.
15690 * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
15691 (SETUP_INCOMING_VARARGS): Likewise.
15692 (RETURN_IN_MEMORY): Likewise.
15693 (STRUCT_VALUE): Likewise.
15694
15695 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
15696
15697 * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
15698 (fr30_setup_incoming_varargs): Don't use
15699 STRICT_ARGUMENT_NAMING.
15700 * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
15701 (STRICT_ARGUMENT_NAMING): Likewise.
15702
15703 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
15704
15705 * config/frv/frv-protos.h: Remove the prototype for
15706 frv_expand_builtin_saveregs.
15707 * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
15708 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
15709 (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
15710 STRUCT_VALUE_REGNUM.
15711 (frv_expand_builtin_saveregs): Make it static.
15712 (frv_struct_value_rtx): New.
15713 * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
15714
15715 2004-01-29 Jan Hubicka <jh@suse.cz>
15716
15717 PR c++/12850
15718 * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
15719 initial pointers.
15720 * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
15721 for functions that will be only inlined.
15722 (cgraph_mark_function_to_output): Likewise.
15723 (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
15724 do not clear function body.
15725 * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
15726 (tree_rest_of_compilation): Reorganize the logic releasing function
15727 body to use callgraph datastructure.
15728
15729 2004-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15730
15731 * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
15732 to register_operand.
15733
15734 2004-01-28 Zack Weinberg <zack@codesourcery.com>
15735
15736 * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
15737 (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
15738 match_operand expressions so that all match_dups appear
15739 lexically after their corresponding match_operands.
15740
15741 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
15742
15743 * config/h8300/h8300.c (WORD_REG_USED): Use
15744 HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
15745 (compute_saved_regs): Likewise.
15746 (h8300_expand_prologue): Likewise. Allocate locals after
15747 saving registers.
15748 (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
15749 of FRAME_POINTER_REGNUM. Deallocate locals before saving
15750 registers.
15751 (h8300_initial_elimination_offset): Adjust for the new frame
15752 layout, which swaps flips the order of locals and saved
15753 registers.
15754 * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
15755 (HARD_FRAME_POINTER_REGNUM): New.
15756 (ELIMINABLE_REGS): Add an elimination rule from
15757 FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
15758 (REGISTER_NAMES): Add fp.
15759 * config/h8300/h8300.md (FP_REG): Change to 11.
15760 (HFP_REG): New.
15761
15762 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
15763
15764 * genrecog.c (write_node): Remove a useless local variable.
15765
15766 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
15767
15768 * Makefile.in (options.c options.h): Use stamp file s-options to
15769 avoid unnecessary rebuilds.
15770 (options.o): New target listing dependencies.
15771 (gtyp-gen.h): Use stamp file s-gtyp-gen.
15772 (STAGESTUFF): Add s-gtyp-gen.
15773
15774 2004-01-28 Richard Henderson <rth@redhat.com>
15775
15776 * ggc.h (ggc_free): Declare.
15777 * ggc-common.c (ggc_realloc): Use it.
15778 * ggc-page.c: Remove lots of inline markers.
15779 (globals): Add free_object_list.
15780 (ggc_alloc): Tidy.
15781 (ggc_free, validate_free_objects): New.
15782 (poison_pages): Provide default.
15783 (ggc_collect): Call validate_free_objects; emit markers to
15784 the debug file.
15785
15786 2004-01-28 Zack Weinberg <zack@codesourcery.com>
15787 Jim Wilson <wilson@specifixinc.com>
15788
15789 * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
15790 Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
15791 scratch pointer.
15792 (ia64_secondary_reload_class): Delete case GR_REGS.
15793 * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
15794 Do not allocate a scratch register.
15795 (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
15796
15797 2004-01-28 Jan Hubicka <jh@suse.cz>
15798
15799 * gcse.c (bypass_block): Prevent edges to be unified when we are
15800 about to emit compenstation code.
15801
15802 2004-01-28 Nick Clifton <nickc@redhat.com>
15803
15804 * config/arm/arm.c (arm_expand_builtin): Force second argument of
15805 the setcwx insn into a register.
15806
15807 2004-01-28 Richard Sandiford <rsandifo@redhat.com>
15808
15809 * config/fp-bit.c (pack_d): When using paired doubles to implement
15810 a long double, round the high part separately.
15811 (unpack_d): Fix the case in which the high part is a power of two
15812 and the low part is a nonzero value of the opposite sign.
15813
15814 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
15815
15816 * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
15817 (TARGET_STRUCT_VALUE_RTX): Likewise.
15818 (c4x_external_libcall): Likewise.
15819 (c4x_struct_value_rtx): Likewise.
15820 * config/c4x/c4x.h: Remove.
15821 (STRUCT_VALUE_REGNUM): Likewise.
15822 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
15823
15824 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
15825
15826 * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
15827 (TARGET_STRUCT_VALUE_RTX): Likewise.
15828 * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
15829 (STRUCT_VALUE): Likewise.
15830 (PROMOTE_PROTOTYPES): Likewise.
15831
15832 2004-01-27 Roger Sayle <roger@eyesopen.com>
15833
15834 * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
15835 CONST_INT before using INTVAL.
15836
15837 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
15838
15839 * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
15840 * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
15841 frame if !TARGET_BACKCHAIN.
15842 * config/s390/s390.md ("allocate_stack"): Use pattern only if
15843 TARGET_BACKCHAIN.
15844 * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
15845
15846 2004-01-27 Zack Weinberg <zack@codesourcery.com>
15847
15848 * ia64.c (ia64_function_arg): When placing HFAs in integer
15849 registers, do not special case the mode used for complex
15850 types. Do not advance int_regs until the current register
15851 is full.
15852
15853 2004-01-27 Richard Sandiford <rsandifo@redhat.com>
15854
15855 PR target/7297
15856 * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
15857
15858 2004-01-27 David Edelsohn <edelsohn@gnu.org>
15859
15860 * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
15861 slow, unaligned loads and stores while debugging. Fix formatting.
15862
15863 2004-01-27 David Edelsohn <edelsohn@gnu.org>
15864
15865 * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
15866 of computing wmode.
15867 (restore_stack_nonlocal): Same.
15868
15869 2004-01-27 Devang Patel <dpatel@apple.com>
15870
15871 * Makefile.in (dwarf2out.o): Depend on input.h
15872 * dbxout.c (dbx_debug_hooks): Add new empty hook for
15873 imported_module_or_decl.
15874 (xcoff_debug_hooks): Same.
15875 * sdbout.c (sdb_debug_hooks): Same.
15876 * vmsdbgout.c (vmsdbg_debug_hooks): Same.
15877 * debug.c (do_nothing_debug_hooks): Same.
15878 (debug_nothing_tree_tree): New function.
15879 * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
15880 * dwarf2out.c: Include input.h.
15881 (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
15882 (remove_child_TAG): New function.
15883 (dwarf_tag_name): Handle DW_TAG_imported_module.
15884 (gen_subprogram_die): Equate decl number to declaration die. Do not
15885 remove all children dies while reusing declaration die for definition.
15886 Instead, selectively remove only formal parameters.
15887 (gen_variable_die): Equate variable decl to declaration die.
15888 (gen_field_die): Equate field decl to line number.
15889 (force_namespace_die): Replace it with ...
15890 (force_decl_die): ... this.
15891 (force_type_die): New function.
15892 (setup_namespace_context): Replace use of force_namespace_die() with
15893 force_decl_die().
15894 (gen_namespace_die): Same.
15895 (dwarf2out_imported_module_or_decl): New function.
15896
15897 2004-01-27 Bob Wilson <bob.wilson@acm.org>
15898
15899 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
15900 on CQImode and CHImode incoming arguments in register a7.
15901 (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
15902 * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
15903 * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
15904 xtensa_copy_incoming_a7 before reload.
15905
15906 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
15907
15908 * coverage.c (get_coverage_counts): Give a different message
15909 if flag_guess_branch_prob is set.
15910 * predict.c (counts_to_freqs): Return an int.
15911 (estimate_bb_frequencies): If counts_to_freqs returns zero,
15912 calculate estimates.
15913
15914 2004-01-27 Kazu Hirata <kazu@cs.umass.edu>
15915
15916 * config/iq2000/iq2000-protos.h: Remove the prototype for
15917 iq2000_setup_incoming_varargs.
15918 * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
15919 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
15920 (TARGET_PROMOTE_PROTOTYPES): Likewise.
15921 (TARGET_STRUCT_VALUE_RTX): Likewise.
15922 (TARGET_RETURN_IN_MEMORY): Likewise.
15923 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
15924 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
15925 (iq2000_return_in_memory): Likewise.
15926 (iq2000_setup_incoming_varargs): Make it static. Receive the
15927 first argument by reference.
15928 * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
15929 (PROMOTE_FUNCTION_RETURN): Likewise.
15930 (PROMOTE_PROTOTYPES): Likewise.
15931 (RETURN_IN_MEMORY): Likewise.
15932 (STRUCT_VALUE): Likewise.
15933 (SETUP_INCOMING_VARARGS): Likewise.
15934 (STRICT_ARGUMENT_NAMING): Likewise.
15935
15936 2004-01-24 James A. Morrison <ja2morri@uwaterloo.ca>
15937
15938 * fixinc/fixinc.c (test_test): Initialize res.
15939 (start_flexer): Initialize pz_cmd_save.
15940
15941 2004-01-27 Zack Weinberg <zack@codesourcery.com>
15942
15943 * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
15944 SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
15945
15946 2004-01-27 Zack Weinberg <zack@codesourcery.com>
15947
15948 PR 7198
15949 * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
15950 (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
15951 (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
15952 Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
15953 Possibly rename pattern for consistency.
15954 Remove ??? comments suggesting that this be done.
15955 (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
15956 New patterns.
15957 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
15958 (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
15959 (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
15960 (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
15961 Update to match.
15962
15963 2004-01-27 Ian Lance Taylor <ian@wasabisystems.com>
15964
15965 * config/arm/arm.c (output_return_instruction): Only restore IP
15966 into SP if frame_pointer_needed.
15967
15968 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
15969
15970 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
15971 for SCmode and DCmode if ARCH32.
15972 (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
15973 * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
15974 if ARCH32.
15975 (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
15976 if ARCH32.
15977 (BASE_OUTGOING_VALUE_REG): Likewise.
15978
15979 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
15980
15981 PR target/10904
15982 PR target/13058
15983 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
15984 Forbid mode changes from SImode for lower FP regs if ARCH64.
15985
15986 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
15987
15988 * Makefile.in (bt-load.o): Depend on except.h.
15989 * bt-load.c (except.h): #include.
15990 (compute_defs_uses_and_gen): If insn at end of BB can throw
15991 within this function, consider registers used by it unavailable for
15992 btr migration.
15993 (move_btr_def): If insn at end of BB can throw, insert before rather
15994 than after.
15995
15996 * flags.h (flag_btr_bb_exclusive): Declare.
15997 * toplev.c (flag_btr_bb_exclusive): New variable.
15998 (f_options): Add btr-bb-exclusive.
15999 * bt-load.c (augment_live_range): Restore old behaviour if
16000 flag_btr_bb_exclusive is set.
16001 * common.opt: Add entry for -fbtr-bb-exclusive.
16002 * opts.c (common_handle_options): Same.
16003 * doc/invoke.texi: Document -fbtr-bb-exclusive.
16004
16005 * bt-load.c (btrs_live_at_end): New variable.
16006 (compute_defs_uses_and_gen): Compute its pointed-to array.
16007 (clear_btr_from_live_range, add_btr_to_live_range): Update it.
16008 (augment_live_range): When augmenting with a new dominator,
16009 use only its btrs_live_at_end set, but also add in the full set
16010 of the old dominator.
16011 (btr_def_live_range): Use btrs_live_at_end.
16012 (move_btr_def): Set other_btr_uses_before_def, and move new set
16013 to the end of the basic block, if appropriate.
16014 (migrate_btr_defs): Allocate and free btrs_live_at_end.
16015
16016 * bt-load.c (basic_block_freq): Remove outdated comment.
16017
16018 2004-01-27 Alan Modra <amodra@bigpond.net.au>
16019
16020 * config/rs6000/rs6000.h: Correct target_flags free bits comment.
16021 (PREDICATE_CODES): Remove duplicate.
16022 * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
16023 (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
16024 (MASK_PROFILE_KERNEL): Adjust define.
16025
16026 2004-01-27 Jakub Jelinek <jakub@redhat.com>
16027
16028 * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
16029 of long string literals from 32 bytes to sizeof (void *) when !-Os
16030 and to 1 with -Os.
16031
16032 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16033
16034 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
16035 constant addresses in the normal mode.
16036
16037 2004-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16038
16039 * system.h (CHAR_BITFIELD): Delete.
16040 (BOOL_BITFIELD): New.
16041 * c-decl.c (c_scope): Use BOOL_BITFIELD.
16042 * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
16043
16044 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16045
16046 * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16047 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16048 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16049 (TARGET_STRUCT_VALUE_RTX): Likewise.
16050 (TARGET_RETURN_IN_MEMORY): Likewise.
16051 (arc_return_in_memory): Likewise.
16052 * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
16053 (PROMOTE_FUNCTION_RETURN): Likewise.
16054 (RETURN_IN_MEMORY): Likewise.
16055 (STRUCT_VALUE): Likewise.
16056
16057 2004-01-26 Richard Henderson <rth@redhat.com>
16058
16059 * c-parse.in (extension): Use itype.
16060 (SAVE_EXT_FLAGS): Don't allocate a tree.
16061 (RESTORE_EXT_FLAGS): Don't read a tree.
16062
16063 2004-01-26 Jan Hubicka <jh@suse.cz>
16064
16065 * cselib.c (discard_useless_values): Clear out value pointer pointing
16066 to datastructure to be recycled.
16067
16068 2004-01-25 Jan Hubicka <jh@suse.cz>
16069
16070 * genextract.c (main): Do not output the memset when not checking.
16071
16072 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16073
16074 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
16075 switch statement instead of a chain of if statements.
16076
16077 2004-01-26 Jeff Law <law@redhat.com>
16078
16079 * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry. Add
16080 acute accents for Petur Runolfsson's entry.
16081
16082 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16083
16084 * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
16085 (TARGET_RETURN_IN_MEMORY): Likewise.
16086 * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
16087 (RETURN_IN_MEMORY): Likewise.
16088
16089 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
16090
16091 * config/rs6000/rs6000.c (rs6000_emit_move): split slow
16092 unaligned load/store into smaller loads and stores.
16093
16094 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
16095
16096 * function.c (assign_parms): Do not assign
16097 long long argument to memory in prologue if
16098 is it loaded into register.
16099
16100 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
16101
16102 PR middle-end/13779
16103 * expr.c (emit_group_load): split constant
16104 correctly into register components of PARALLEL insn.
16105
16106 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
16107
16108 * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
16109 Use adjust_address_nv directly with appropriate mode.
16110 (restore_stack_nonlocal): Ditto.
16111
16112 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16113
16114 * config/xtensa/xtensa-protos.h: Remove the prototype for
16115 xtensa_builtin_saveregs.
16116 * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16117 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16118 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16119 (TARGET_STRUCT_VALUE_RTX): Likewise.
16120 (TARGET_RETURN_IN_MEMORY): Likewise.
16121 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
16122 (xtensa_builtin_saveregs): Make it static.
16123 (xtensa_return_in_memory): New.
16124 * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
16125 (PROMOTE_FUNCTION_RETURN): Likewise.
16126 (PROMOTE_PROTOTYPES): Likewise.
16127 (STRUCT_VALUE): Likewise.
16128 (RETURN_IN_MEMORY): Likewise.
16129 (EXPAND_BUILTIN_SAVEREGS): Likewise.
16130
16131 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16132
16133 * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
16134 (arm_setup_incoming_varargs): Likewise.
16135 * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
16136
16137 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16138
16139 * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
16140 (cris_setup_incoming_varargs): Likewise.
16141 * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
16142
16143 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16144
16145 * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
16146 (ns32k_struct_value_rtx): Likewise.
16147 * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
16148 NS32K_STRUCT_VALUE_REGNUM.
16149
16150 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16151
16152 * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16153 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16154 (TARGET_STRUCT_VALUE_RTX): Likewise.
16155 (arm_struct_value_rtx): Likewise.
16156 * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
16157 (STRUCT_VALUE): Likewise.
16158 (STRUCT_VALUE_REGNUM): Likewise.
16159 (PROMOTE_PROTOTYPES): Likewise.
16160
16161 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16162
16163 * config/ia64/ia64-protos.h: Remove the prototype for
16164 ia64_setup_incoming_varargs and ia64_return_in_memory.
16165 * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
16166 (TARGET_RETURN_IN_MEMORY): Likewise.
16167 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16168 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
16169 (ia64_setup_incoming_varargs): Adjust the arguments to meet
16170 the requirement of TARGET_SETUP_INCOMING_VARARGS.
16171 (ia64_return_in_memory): Make it static. Change the return
16172 type to bool from int. Add an argument.
16173 (ia64_struct_value_rtx): New.
16174 * config/ia64/ia64.h: Remove commented-out definitions of
16175 PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
16176 PROMOTE_PROTOTYPES.
16177 (RETURN_IN_MEMORY): Remove.
16178 (STRUCT_VALUE_REGNUM): Likewise.
16179 (STRICT_ARGUMENT_NAMING): Likewise.
16180
16181 2004-01-26 Eric Botcazou <ebotcazou@libertysurf.fr>
16182
16183 PR target/13666
16184 * config/sparc/sparc.c (function_arg_union_value): New function.
16185 (function_arg): Use it to deal with unions.
16186 (function_value): Likewise. Define 'regbase' only for ARCH64.
16187 Replace a conditional statement by a simpler one.
16188
16189 2004-01-26 Richard Sandiford <rsandifo@redhat.com>
16190
16191 * config/mips/mips.c (mips16_optimize_gp): Delete.
16192 (mips_reorg): Don't call it.
16193
16194 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16195
16196 * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
16197 (floatunsqihf2): Remove operand 6.
16198 (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
16199 fix patterns.
16200 (ldi_conditional, ldf_conditional): Validate operands.
16201
16202 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16203
16204 * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
16205 (HAVE_GAS_HIDDEN): Undefine as interim measure.
16206
16207 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16208
16209 * config/c4x/c4x.c (c4x_legitimate_address_p): Invalidate direct
16210 memory references if TARGET_EXPOSE_LDP nonzero.
16211
16212 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16213
16214 * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
16215
16216 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16217
16218 * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
16219 invalid operand combinations.
16220
16221 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16222
16223 * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
16224 c4x_legitimate_address_p. Fix post_modify check.
16225
16226 * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
16227 * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
16228
16229 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16230
16231 * config/pa/pa-protos.h: Remove the prototype for
16232 hppa_builtin_saveregs. Add a prototype for
16233 pa_return_in_memory.
16234 * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
16235 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16236 (TARGET_STRUCT_VALUE_RTX): Likewise.
16237 (TARGET_RETURN_IN_MEMORY): Likewise.
16238 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
16239 (pa_struct_value_rtx): Likewise.
16240 (pa_return_in_memory): Likewise.
16241 * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
16242 PA_STRUCT_VALUE_REGNUM.
16243 (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
16244 (EXPAND_BUILTIN_SAVEREGS): Remove.
16245 (PROMOTE_PROTOTYPES): Likewise.
16246 (PROMOTE_FUNCTION_RETURN): Likewise.
16247
16248 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16249
16250 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
16251 (TARGET_STRUCT_VALUE_RTX): Likewise.
16252 (vax_struct_value_rtx): Likewise.
16253 * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
16254 VAX_STRUCT_VALUE_REGNUM.
16255 (PROMOTE_PROTOTYPES): Remove.
16256
16257 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16258
16259 * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Handle symref.
16260
16261 2004-01-25 Chris Demetriou <cgd@broadcom.com>
16262
16263 * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
16264 and MIPS64 have HI/LO interlocks. Update comment.
16265
16266 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16267
16268 * config/stormy16/stormy16-protos.h: Remove the prototype for
16269 xstormy16_setup_incoming_varargs.
16270 * config/stormy16/stormy16.c
16271 (xstormy16_setup_incoming_varargs): Remove.
16272 (xstormy16_return_in_memory): New.
16273 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
16274 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16275 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16276 (TARGET_STRUCT_VALUE_RTX): Likewise.
16277 (TARGET_RETURN_IN_MEMORY): Likewise.
16278 * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
16279 (PROMOTE_FUNCTION_RETURN): Likewise
16280 (PROMOTE_PROTOTYPES): Likewise
16281 (RETURN_IN_MEMORY): Likewise
16282 (STRUCT_VALUE): Likewise
16283 (SETUP_INCOMING_VARARGS): Likewise
16284
16285 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
16286
16287 * config/mips/mips.c (mips_offset_within_object_p): New function.
16288 (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
16289 SYMBOL_CONSTANT_POOL cases. Also use it for SYMBOL_GENERAL if the
16290 ABI has 64-bit pointers and the object file only allows 32-bit symbols.
16291
16292 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16293
16294 * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
16295 (PROMOTE_FUNCTION_RETURN): Likewise.
16296
16297 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16298
16299 * config/mn10300/mn10300-protos.h: Remove the prototype for
16300 mn10300_builtin_saveregs.
16301 * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
16302 (TARGET_STRUCT_VALUE_RTX): Likewise.
16303 (TARGET_RETURN_IN_MEMORY): Likewise.
16304 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
16305 (mn10300_return_in_memory): Likewise.
16306 (mn10300_builtin_saveregs): Make it static.
16307 * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
16308 (RETURN_IN_MEMORY): Likewise.
16309 (STRUCT_VALUE): Likewise.
16310 (EXPAND_BUILTIN_SAVEREGS): Likewise.
16311
16312 2004-01-25 Eric Botcazou <ebotcazou@act-europe.fr>
16313
16314 PR bootstrap/13853
16315 * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
16316
16317 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16318
16319 * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
16320 using ccr.
16321
16322 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16323
16324 * config/i860/i860-protos.h: Remove the prototype for
16325 i860_saveregs.
16326 * config/i860/i860.c (i860_saveregs): Make it static.
16327 (i860_struct_value_rtx): New.
16328 (TARGET_STRUCT_VALUE_RTX): Likewise.
16329 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
16330 * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
16331 I860_STRUCT_VALUE_REGNUM.
16332 (EXPAND_BUILTIN_SAVEREGS): Remove.
16333
16334 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16335
16336 * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
16337 (TARGET_RETURN_IN_MEMORY): Likewise.
16338 (m68hc11_struct_value_rtx): Likewise.
16339 (m68hc11_return_in_memory): Likewise.
16340 * config/m68hc11/m68hc11.h: Remove a commented-out definition
16341 of PROMOTE_PROTOTYPES.
16342 (RETURN_IN_MEMORY): Remove.
16343 (STRUCT_VALUE_REGNUM): Likewise.
16344
16345 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16346
16347 * config/mmix/mmix-protos.h: Remove the prototype for
16348 mmix_setup_incoming_varargs.
16349 * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16350 (TARGET_STRUCT_VALUE_RTX): Likewise.
16351 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16352 (mmix_setup_incoming_varargs): Make it static.
16353 (mmix_struct_value_rtx): New.
16354 * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
16355 Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
16356 (STRUCT_VALUE_REGNUM): Remove.
16357 (SETUP_INCOMING_VARARGS): Likewise.
16358
16359 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16360
16361 * config/mips/mips-protos.h: Remove the prototypes for
16362 mips_setup_incoming_varargs and mips_return_in_memory.
16363 * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16364 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16365 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16366 (TARGET_STRUCT_VALUE_RTX): Likewise.
16367 (TARGET_RETURN_IN_MEMORY): Likewise.
16368 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16369 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
16370 (mips_setup_incoming_varargs): Match the prototype for
16371 TARGET_SETUP_INCOMING_VARARGS.
16372 (mips_return_in_memory): Make it static. Add argument fntype.
16373 (mips_strict_argument_naming): New.
16374 * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
16375 (PROMOTE_FUNCTION_ARGS): Likewise.
16376 (PROMOTE_FUNCTION_RETURN): Likewise.
16377 (STRUCT_VALUE): Likewise.
16378 (RETURN_IN_MEMORY): Likewise.
16379 (SETUP_INCOMING_VARARGS): Likewise.
16380 (STRICT_ARGUMENT_NAMING): Likewise.
16381
16382 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16383
16384 * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
16385 (TARGET_RETURN_IN_MEMORY): Likewise.
16386 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16387 (ip2k_return_in_memory): Likewise.
16388 (ip2k_setup_incoming_varargs): Likewise.
16389 * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
16390 (STRUCT_VALUE): Likewise.
16391 (STRUCT_VALUE_INCOMING): Likewise.
16392 (SETUP_INCOMING_VARARGS): Likewise.
16393
16394 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16395
16396 * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
16397 (TARGET_RETURN_IN_MEMORY): Likewise.
16398 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
16399 (avr_return_in_memory): Remove.
16400 * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
16401 (STRUCT_VALUE): Likewise.
16402 (STRUCT_VALUE_INCOMING): Likewise.
16403 (STRICT_ARGUMENT_NAMING): Likewise.
16404
16405 2004-01-25 Jan Hubicka <jh@suse.cz>
16406
16407 * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
16408
16409 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
16410
16411 * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
16412 (mips_regno_mode_ok_for_base_p): Declare.
16413 * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
16414 (FRAME_POINTER_REGNUM): Renumber to 78.
16415 (FIRST_PSEUDO_REGISTER): Update comment accordingly.
16416 (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
16417 (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
16418 (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
16419 (REG_MODE_OK_FOR_BASE_P): Likewise.
16420 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
16421 entry for 77 to "$arg" and entry for 78 to "$frame".
16422 (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
16423 (mips_reg_mode_ok_for_base_p): Remove.
16424 (mips_regno_mode_ok_for_base_p): New function, derived from old
16425 BASE_REG_P macro. Don't enforce the mips16 stack pointer
16426 restrictions unless we're being strict.
16427 (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
16428
16429 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
16430
16431 * c-common.h: Fix comment typos.
16432 * c-decl.c: Likewise.
16433 * cgraphunit.c: Likewise.
16434 * combine.c: Likewise.
16435 * et-forest.c: Likewise.
16436 * flow.c: Likewise.
16437 * function.c: Likewise.
16438 * ifcvt.c: Likewise.
16439 * integrate.c: Likewise.
16440 * jump.c: Likewise.
16441 * postreload.c: Likewise.
16442 * varray.c: Likewise.
16443
16444 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
16445
16446 * doc/frontends.texi: Update copyright.
16447 * doc/gcov.texi: Likewise.
16448 * doc/gty.texi: Likewise.
16449 * doc/sourcebuild.texi: Likewise.
16450 * doc/standards.texi: Likewise.
16451
16452 2004-01-24 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
16453
16454 PR target/12978
16455 * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
16456 Remove movstrqi_small because it conflicts with movstrqi_large.
16457
16458 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
16459
16460 * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16461 (TARGET_STRUCT_VALUE_RTX): Likewise.
16462 (cris_struct_value_rtx): Likewise.
16463 * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
16464 (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
16465 STRUCT_VALUE_REGNUM.
16466 (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
16467
16468 2004-01-24 Ian Lance Taylor <ian@wasabisystems.com>
16469
16470 PR bootstrap/13848
16471 * cse.c (cse_cc_succs): Change the mode of the source expression
16472 as soon as decide we need a new mode. Don't permit changing modes
16473 if we found a match in a successor block.
16474 (cse_condition_code_reg): Save original mode of source expression
16475 so that we know whether we have to change the mode in other
16476 insns.
16477
16478 2004-01-24 Jan Hubicka <jh@suse.cz>
16479
16480 * emit-rtl.c (change_address, adjust_address_1, offset_address,
16481 widen_memory_access): Return early when there is nothing to change.
16482
16483 2004-01-24 Jakub Jelinek <jakub@redhat.com>
16484
16485 * simplify-rtx.c (simplify_relational_operation): Don't
16486 simplify address == constant into address + -constant == 0.
16487
16488 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
16489
16490 * gcc.c (process_command): Don't internationalize the
16491 Copyright message.
16492 * mips-tfile.c (main): Likewise.
16493
16494 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
16495
16496 * cse.c: (cse_cc_succs) Fix comparison warning.
16497
16498 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
16499
16500 * config/h8300/h8300.md: Remove extraneous USE in expanders.
16501
16502 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
16503
16504 * config/h8300/h8300-protos.h: Provide prototypes for
16505 h8300_legitimate_constant_p and h8300_legitimate_address_p.
16506 * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
16507 (h8300_rtx_ok_for_base_p): Likewise.
16508 (h8300_legitimate_address_p): Likewise.
16509 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
16510 h8300_legitimate_constant_p.
16511 (RTX_OK_FOR_BASE_P): Remove.
16512 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
16513
16514 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
16515
16516 * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
16517 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
16518 (REG_OK_FOR_INDEX_STRICT_P): Likewise.
16519 (REG_OK_FOR_BASE_STRICT_P): Likewise.
16520 (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
16521 (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
16522 (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
16523 (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
16524
16525 2004-01-24 Jan Hubicka <jh@suse.cz>
16526
16527 * cselib.c (remove_useless_values): Do not access discarded values.
16528
16529 2004-01-24 Joseph S. Myers <jsm@polyomino.org.uk>
16530
16531 * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
16532 arrays.
16533
16534 2004-01-23 Kazu Hirata <kazu@cs.umass.edu>
16535
16536 * recog.c: Fix a typo in copyright.
16537
16538 2004-01-23 Andrew Pinski <apinski@apple.com>
16539
16540 * config/rs6000/rs6000.md (call): Fix misappiled patch.
16541 (call_value): Likewise.
16542
16543 2004-01-23 Richard Henderson <rth@redhat.com>
16544
16545 PR opt/12941
16546 * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
16547 (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
16548 if SHIFT_COUNT_TRUNCATED is set.
16549
16550 2004-01-23 Bob Wilson <bob.wilson@acm.org>
16551
16552 * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
16553 separate real and imaginary parts.
16554 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
16555
16556 2004-01-23 Hartmut Penner <hpenner@de.ibm.com>
16557
16558 PR target/13674
16559 * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
16560 loading into GPR.
16561
16562 2004-01-23 Jan Hubicka <jh@suse.cz>
16563
16564 * emit-rtl.c (change_address_1): Do not re-generate the RTX if nothing
16565 change.
16566
16567 * alloc-pool.c (align_four): Kill.
16568 (create_alloc_pool): Align size to eight.
16569 (free_alloc_pool, free_pool): Invalidate deallocated data.
16570
16571 2004-01-23 Ian Lance Taylor <ian@wasabisystems.com>
16572
16573 PR gcc/1532
16574 * cse.c (cse_change_cc_mode): New static function.
16575 (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
16576 (cse_condition_code_reg): New function.
16577 * rtl.h (cse_condition_code_reg): Declare.
16578 * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
16579 * target.h (struct gcc_target): Add fixed_condition_code_regs and
16580 cc_modes_compatible.
16581 * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
16582 (TARGET_CC_MODES_COMPATIBLE): Define.
16583 (TARGET_INITIALIZER): Add new initializers.
16584 * targhooks.c (default_cc_modes_compatible): New function.
16585 * targhooks.c (default_cc_modes_compatible): Declare.
16586 * hooks.c (hook_bool_intp_intp_false): New function.
16587 * hooks.h (hook_bool_intp_intp_false): Declare.
16588 * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
16589 (TARGET_CC_MODES_COMPATIBLE): Define.
16590 (ix86_fixed_condition_code_regs): New static function.
16591 (ix86_cc_modes_compatible): Likewise.
16592 * doc/tm.texi (Condition Code): Document new hooks.
16593
16594 2004-01-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16595
16596 * fixinc/inclhack.def (bad_lval): Renamed to ...
16597 (alpha_bad_lval): ... this.
16598 Removed file list.
16599 Restrict to alpha*-dec-osf*.
16600 * fixinc/fixincl.x: Regenerate.
16601 * fixinc/tests/base/dirent.h: Remove, moving test ...
16602 * fixinc/tests/base/testing.h: ... here, reflecting new name.
16603
16604 2004-01-23 Zack Weinberg <zack@codesourcery.com>
16605
16606 PR c/13814
16607 * c-decl.c (diagnose_mismatched_decls): Also discard a
16608 built-in if we encounter an old-style definition with the
16609 same name.
16610
16611 2004-01-23 Jakub Jelinek <jakub@redhat.com>
16612
16613 * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
16614 set to default{32,64}.
16615
16616 2004-01-21 Jakub Jelinek <jakub@redhat.com>
16617
16618 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
16619 [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
16620
16621 2004-01-23 Eric Botcazou <ebotcazou@act-europe.fr>
16622 Olivier Hainque <hainque@act-europe.fr>
16623
16624 * fold-const.c (fold_binary_op_with_conditional_arg): Only
16625 build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
16626
16627 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
16628
16629 * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
16630 size for minipool references.
16631
16632 2004-01-23 Roger Sayle <roger@eyesopen.com>
16633
16634 * real.c (real_floor, real_ceil): Tweak to allow input and output
16635 arguments to overlap.
16636 (real_round): New function to implement round(3m) semantics.
16637 * real.h (real_round): Prototype here.
16638 * builtins.c (fold_builtin_round): New function to constant fold
16639 round, roundf and roundl.
16640 (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
16641
16642 2004-01-23 Alexandre Oliva <aoliva@redhat.com>
16643
16644 PR optimization/13819
16645 * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
16646 introduced by 2004-01-20's Jan Hubicka's copy_insn change.
16647 (sh_handle_sp_switch_attribute): Remove warning.
16648
16649 2004-01-23 Jan Hubicka <jh@suse.cz>
16650
16651 * i386.c (ix86_emit_restore_regs_using_mov): Deal with large offsets.
16652
16653 2004-01-23 J"orn Rennecke <joern.rennecke@superh.com>
16654
16655 * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
16656 may or may not return non-NIL.
16657 * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
16658 check CANNOT_CHANGE_MODE_CLASS
16659
16660 2004-01-23 Jan Hubicka <jh@suse.cz>
16661
16662 * basic-block.h (PROP_POSTRELOAD): New macro.
16663 (CLEANUP_LOG_LINKS): New.
16664 * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
16665 * toplev.c (rest_of_handle_life): Preserve LOG_LINKS trought cleanup_cfg.
16666
16667 * cselib.c (value_pool): New.
16668 (new_cselib_val): Use pool.
16669 (cselib_init): Initialize value_pool
16670 (cselib_finish): Free pool.
16671
16672 2004-01-23 Eric Botcazou <ebotcazou@libertysurf.fr>
16673
16674 * config/sparc/sparc.c (scan_record_type): New function.
16675 (function_arg_slotno): Use it to determine which kinds of
16676 registers the record can be passed in.
16677
16678 2004-01-22 James A. Mmorrison <ja2morri@uwaterloo.ca>
16679
16680 * config/pa/fptr.c: Fix old-style definition.
16681
16682 2004-01-22 Paolo Bonzini <bonzini@gnu.org>
16683
16684 PR optimization/13724
16685 * cse.c (fold_rtx) <SUBREG>: Fold a SUBREG to zero if it
16686 represents the zero bits produced by a ZERO_EXTEND operation.
16687
16688 2004-01-22 Roger Sayle <roger@eyesopen.com>
16689
16690 PR optimization/13821
16691 * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
16692 correctly calculate the lowpart offset of the contracted subreg.
16693
16694 2004-01-22 Ian Lance Taylor <ian@wasabisystems.com>
16695
16696 * doc/invoke.texi (Optimize Options): Note that --param arguments
16697 are subject to change without notice.
16698
16699 2004-01-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16700
16701 * config.gcc (mips-sgi-irix6*o32): Removed.
16702 * config/mips/iris6-o32-as.h: Likewise.
16703 * config/mips/iris6-o32-gas.h: Likewise.
16704 * config/mips/iris6-o32.h: Likewise.
16705
16706 2004-01-22 Jan Hubicka <jh@suse.cz>
16707
16708 * cfgcleanup.c (first_pass): New static variable.
16709 (try_forward_edges): Add work limiting check for threading.
16710 (try_crossjump_bb): Add work limiting check for crossjumping.
16711 (try_optimize_cfg): Maintain first pass variable.
16712
16713 2004-01-22 Bob Wilson <bob.wilson@acm.org>
16714
16715 * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
16716 handles complex and vector modes.
16717
16718 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
16719
16720 * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
16721 (REG_OK_FOR_BASE_P_STRICT): Likewise.
16722 (STRICT): Likewise.
16723
16724 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
16725
16726 * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
16727 (genrtl_for_stmt): Remove emit_nop calls.
16728
16729 2004-01-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16730
16731 PR target/13713
16732 PR target/13324
16733 * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
16734 movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
16735 clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
16736
16737 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
16738
16739 * config/arm/arm.c: Include "debug.h".
16740 (thumb_pushpop): Take two new arguments. Add some commentary.
16741 Output frame information when pushing.
16742 (thumb_exit, thumb_unexpanded_epilogue): Update calls to
16743 thumb_pushpop.
16744 (thumb_output_function_prologue): Likewise. Accumulate a CFA
16745 offset, and pass it to thumb_pushpop. Output CFI information.
16746 (thumb_expand_prologue): Add some frame-related markers and notes.
16747
16748 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
16749
16750 * config/s390/s390.c (s390_frame_info): Allow large frame sizes
16751 for TARGET_64BIT.
16752 (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
16753 * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
16754
16755 2004-01-22 Roger Sayle <roger@eyesopen.com>
16756 Paolo Bonzini <bonzini@gnu.org>
16757
16758 * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
16759 (subreg_lsb): Change to call new subreg_lsb_1 helper function.
16760 * rtl.h (subreg_lsb_1): Prototype here.
16761 * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
16762 sign extensions.
16763
16764 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
16765
16766 * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
16767 macro need not be defined if jump-tables should contain
16768 relative addresses only when -fPIC or -fPIC is in effect.
16769
16770 2004-01-22 Jan Hubicka <jh@suse.cz>
16771
16772 * alias.c (reg_base_value): Turn into varray.
16773 (reg_base_value_size): Kill.
16774 (old_reg_base_value): New deletable varray.
16775 (alias_invariant_size): New variable.
16776 (REG_BASE_VALUE): Update to use varray.
16777 (find_base_value): Likewise.
16778 (record_set): Likewise.
16779 (record_base_value): Likewise.
16780 (memrefs_conflict_p): Likewise.
16781 (record_set): Likewise
16782 (record_base_value): Likewise.
16783 (memrefs_conflict_p): Use alias_invariant_size.
16784 (init_alias_analysis): Use varray; set alias_invariant_size;
16785 rescale other arrays to be sized by maxreg.
16786 (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
16787
16788 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
16789
16790 * config/sparc/sparc.c (function_arg_slotno): Use
16791 FLOAT_TYPE_P to detect FP fields in structures.
16792 (function_arg_record_value_1): Likewise.
16793 (function_arg_record_value_2): Likewise.
16794
16795 2004-01-22 Jan Hubicka <jh@suse.cz>
16796
16797 * function.c (allocate_struct_function): Do not initialize expr, emit
16798 and varasm.
16799 (prepare_function_start): Do it here.
16800 * c-parse.in (maybe_type_qual): Do not produce line number notes.
16801
16802 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
16803
16804 PR target/13559
16805 * config/sparc/sparc.c (function_arg_record_value_3): Revert
16806 to 'word_mode' once the first slot has been filled.
16807
16808 2004-01-22 Olivier Hainque <hainque@act-europe.fr>
16809
16810 * config/sparc/sparc.c (function_arg_record_value_1): Fix
16811 computation of the number of integer registers required.
16812
16813 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
16814
16815 * config/i386/i386.md: Simplify certain comparisons of
16816 const_int.
16817
16818 2004-01-21 Andrew Pinski <apinski@apple.com>
16819
16820 PR target/13785
16821 * config/rs6000/rs6000.md (call_value): Force operand
16822 1 not operand 0 into a register.
16823
16824 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
16825
16826 * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
16827 unwind-dw2-fde.h: Update copyright.
16828
16829 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16830
16831 * pa-protos.h: Update copyright.
16832 * pa.h: Likewise.
16833 * pa.md: Likewise.
16834
16835 2004-01-21 Caroline Tice <ctice@apple.com>
16836
16837 PR target/12308
16838 * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
16839 flags register.
16840 (fix_truncdfdi2): Likewise.
16841 (fix_truncsfdi2): Likewise.
16842 (*fix_truncdi_1): Likewise.
16843 (fix_truncxfsi2): Likewise.
16844 (fix_truncdfsi2): Likewise.
16845 (fix_truncsfsi2): Likewise.
16846 (*fix_truncsi_1): Likewise.
16847 (fix_truncxfhi2): Likewise.
16848 (fix_truncdfhi2): Likewise.
16849 (fix_truncsfhi2): Likewise.
16850 (*fix_trunchi_1): Likewise.
16851
16852 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
16853
16854 * alias.c, basic-block.h, c-common.c, c-common.h,
16855 c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
16856 calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
16857 combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
16858 cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
16859 defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
16860 expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
16861 genautomata.c, genconditions.c, genemit.c, genflags.c,
16862 gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
16863 ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
16864 langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
16865 line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
16866 ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
16867 rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
16868 target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
16869 unwind.h, varray.c, varray.h: Update copyright.
16870
16871 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
16872
16873 * config/h8300/coff.h: Update copyright.
16874 * config/h8300/elf.h: Likewise.
16875 * config/h8300/h8300-protos.h: Likewise.
16876 * config/h8300/h8300.c: Likewise.
16877 * config/h8300/h8300.h: Likewise.
16878 * config/h8300/h8300.md: Likewise.
16879
16880 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16881
16882 * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
16883 ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
16884 ultrix_unistd): New hacks.
16885 * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
16886 ULTRIX_CONST2_CHECK): Add checks.
16887 * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
16888 * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
16889 * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
16890 * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
16891 * fixinc/tests/base/locale.h: New file.
16892 * fixinc/fixincl.x: Rebuilt.
16893
16894 2004-01-21 Andreas Jaeger <aj@suse.de>
16895 Michael Matz <matz@suse.de>
16896
16897 * doc/extend.texi (Extended Asm): Clarify memory clobber.
16898
16899 2004-01-21 Jakub Jelinek <jakub@redhat.com>
16900
16901 * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
16902 _Jv_RegisterClasses through a function pointer.
16903
16904 2004-01-21 Falk Hueffner <falk@debian.org>
16905
16906 PR target/12898
16907 * config/alpha/alpha.c (alpha_emit_set_const_1): If
16908 no_new_pseudos, use gen_rtx_SET directly for SImode constants
16909 which need multiple instructions to emit.
16910
16911 2004-01-21 Inaoka Kazuhiro <inaoka.kazuhiro@renesas.com>
16912
16913 * config/m32r/m32r.h (CPP_SPEC): Define.
16914
16915 2004-01-21 Zack Weinberg <zack@codesourcery.com>
16916
16917 * c-decl.c (merge_decls): Kill different_binding_level and
16918 different_tu arguments; simplify throughout.
16919 (duplicate_decls): Likewise.
16920 (pushdecl, merge_translation_unit_decls): Update calls to
16921 duplicate_decls.
16922
16923 2004-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16924
16925 * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
16926 $(SYSTEM_H).
16927 (print-rtl1.o): Depend on $(SYSTEM_H).
16928
16929 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
16930
16931 PR bootstrap/12730
16932 * configure.ac: Delete definition and subsitution of docdir.
16933 Add info, man, srcman and srcinfo to target hooks. Create doc/
16934 directory.
16935 * configure: Regenerate.
16936 * Makefile.in: Don't substitute docdir and delete all references
16937 throughout.
16938 (MAKEINFOFLAGS): Define.
16939 (stmp-docobjdir): Delete.
16940 (INFOFILES, MANFILES): Define.
16941 (info): Call lang.info, srcinfo and lang.srcinfo.
16942 (generated-manpages): Call lang.man, srcman and lang.srcman.
16943 (srcinfo, srcman): New rules to copy back files to source directory.
16944 (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
16945 (install-man): Revamp rule.
16946 (clean): Update dvi directory.
16947 (distclean): Delete TAGS from front end directorys.
16948 (maintainer-clean): Delete all document files in source directory.
16949
16950 objc/Make-lang.in (objc.man, objc.info): Dummy entries.
16951 (objc.srcman, objc.srcinfo): Likewise.
16952
16953 2004-01-20 Bruce Korb <bkorb@gnu.org>
16954
16955 * fixinc/inclhack.def(math_exception): bypass only for glibc.
16956 (matherr_decl): rename & relocate as exception_structure.
16957 This fix must precede the math_exception fix.
16958
16959 2004-01-20 Roger Sayle <roger@eyesopen.com>
16960
16961 * fold-const.c (fold_convert): Rename to fold_convert_const.
16962 (fold_convert_const): Change arguments to take a tree_code,
16963 a type and the operand/expression to be converted. Return
16964 NULL_TREE if no simplification is possible. Add support for
16965 FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
16966 (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
16967 Adjust call to fold_convert to match new fold_convert_const.
16968 Avoid modifying the tree passed to fold in-place.
16969
16970 2004-01-21 Alan Modra <amodra@bigpond.net.au>
16971
16972 * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
16973 * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
16974 * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
16975
16976 2004-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16977
16978 * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
16979 * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
16980 Likewise. Handle frames larger than 0x7fffffff on 64-bit ports.
16981 (emit_move_sequence): Check scratch_reg first in various if statements.
16982 Extend source simplification to handle all 64-bit CONST_INTs.
16983 (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
16984 frame size.
16985 (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
16986 frame offset calculations.
16987 * pa.h (NEW_HP_ASSEMBLER): Add comment.
16988 (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
16989 LEGITIMATE_64BIT_CONST_INT_P): Define.
16990 (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P. Treat
16991 any CONST_INT as legitimate during and after reload.
16992 (VAL_32_BITS_P, INT_32_BITS): Define.
16993 (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
16994
16995 2004-01-20 Jan Hubicka <jh@suse.cz>
16996
16997 * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
16998 emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
16999 containing hard regs are shared.
17000 (gen_hard_reg_clobber): New function.
17001 (hard_reg_clobbers): New array.
17002 * genemit.c (gen_exp): Use gen_hard_reg_clobber.
17003 (copy_rtx): Do not copy clobbers containing hard regs.
17004 * rtl.h (gen_hard_reg_clobber): Declare.
17005
17006 2004-01-20 Jan Hubicka <jh@suse.cz>
17007
17008 * varray.c: Include hashtab.h
17009 (varray_descriptor): New structure.
17010 (hash_descriptor, eq_descriptor, varray_descriptor,
17011 print_statistics): New static functions
17012 (varray_init, varray_grow): Update statistics
17013 (dump_varray_statistics): New function.
17014 * varray.h (dump_varray_statistics): Declare.
17015 * toplev.c (finalize): Call it.
17016 * Makefile.in (varray.o): Add dependency.
17017
17018 2004-01-20 Jan Hubicka <jh@suse.cz>
17019
17020 * cselib.c: Include alloc-pool.h
17021 (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
17022 (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
17023 (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
17024 unchain_one_elt_loc_list_pool, unchain_one_value,
17025 new_cselib_val): Simplify using allocpool.
17026 (cselib_init): Initialize allocpools.
17027 (cselib_finish): Finish allocpools.
17028 * Makefile.in (cselib.o): Depend on alloc-pool.h
17029
17030 2004-01-20 Richard Sandiford <rsandifo@redhat.com>
17031
17032 * config/mips/mips.c (mips_load_call_address): Make the call insn
17033 use $gp if it could be calling a lazy binding stub.
17034
17035 2004-01-20 Kazu Hirata <kazu@cs.umass.edu>
17036
17037 * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
17038 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17039 (TARGET_STRUCT_VALUE_RTX): Likewise.
17040 * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
17041 (PROMOTE_FUNCTION_RETURN): Remove.
17042 (STRUCT_VALUE): Remove.
17043
17044 2004-01-20 Denis Chertykov <denisc@overta.ru>
17045
17046 PR bootstrap/13735
17047 * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
17048 register as pointer after reload.
17049
17050 2004-01-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17051
17052 PR optimization/12440
17053 * loop.c: Include ggc.h.
17054 (loop_optimize): Run garbage collector between optimization of loops.
17055 * Makefile.in (loop.o): Add GGC_H dependency.
17056
17057 2004-01-20 Hartmut Penner <hpenner@de.ibm.com>
17058
17059 * gcc/config/rs6000/rs6000.c (function_arg) Handle
17060 vector register special in function without prototype.
17061 (function_arg_advance): Vector parameters get always
17062 GPRs allocated for the linux64 target.
17063
17064 2004-01-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
17065
17066 * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
17067 not TARGET_M32RX_MASK.
17068
17069 2004-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
17070
17071 PR target/13557
17072 * config/sparc/sparc.c (function_arg): Reorder the cases.
17073
17074 2004-01-19 Per Bothner <per@bothner.com>
17075
17076 Move cpp_reader's line_maps field to a shared global.
17077 * cpphash.h (cpp_reader): Rename line_maps field to line_table
17078 and change the type to a pointer rather than a struct.
17079 * cppinit.c (cpp_push_main_field): Adjust accordingly.
17080 * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
17081 Likewise.
17082 * cppfiles.c (validate_pch): Likewise.
17083 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
17084 Likewise.
17085 * cpperror.c (print_location): Likewise.
17086 * cpplib.h (cpp_create_reader): New line_maps pointer parameter.
17087 * cppinit.c (cpp_create_reader): Handle new parameter.
17088 (cpp_destroy): Don't free line_maps - that's no longer our job.
17089 * input.h (line_table): New variable.
17090 * toplev.c (line_table): Declare variable.
17091 (general_init): Initialize line_table.
17092 * c-opts.c (c_common_init_options): Pass line_table to
17093 cpp_create_reader.
17094 * fix-header.c (read_scan_file): New local variable line_table.
17095 Initialize, and pass it to cpp_create_reader.
17096 * Makefile.in (LIBS, LIBDEPS): Add libcpp.a.
17097 (C_AND_OBJC_OBJS, fix-header): Remove redundant libcpp.a.
17098
17099 2004-01-19 Per Bothner <per@bothner.com>
17100
17101 Implement a cache for linemap_lookup.
17102 * line-map.h (struct_line_maps): Add cache field.
17103 * line-map.c (linemap_init): Zero cache field.
17104 (linemap_add): Set cache field to offset of newly allocated map.
17105 (linemap_lookup): Use and set cache field.
17106
17107 2004-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
17108
17109 PR optimization/13567
17110 * cse.c (cse_basic_block): Call cse_insn with a non-null
17111 libcall_insn for the last SET insn of a no-confilict block.
17112
17113 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
17114
17115 * Makefile.in (target_noncanonical, program_transform_name): Use
17116 immediate define instead of deferred.
17117 (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
17118 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
17119 GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
17120 deferred backquote.
17121
17122 2004-01-20 Joseph S. Myers <jsm@polyomino.org.uk>
17123
17124 * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
17125 true unconditionally.
17126 * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
17127 Remove.
17128 (build_unary_op, build_modify_expr): Don't handle extended
17129 lvalues.
17130 (build_component_ref, build_conditional_expr): Call non_lvalue
17131 instead of pedantic_non_lvalue.
17132 (build_c_cast): Don't condition use of non_lvalue on pedantic.
17133 * fold-const.c (fold): Don't check pedantic directly for
17134 COMPOUND_EXPR. Ensure that results for COMPOUND_EXPR are
17135 passed to pedantic_non_lvalue.
17136 * doc/extend.texi: Remove documentation of extended lvalues.
17137
17138 2004-01-19 Roger Sayle <roger@eyesopen.com>
17139
17140 PR optimization/5263
17141 * simplify-rtx.c (associative_constant_p): Delete.
17142 (simplify_associative_operation): Rewrite to linearize terms, and
17143 attempt to simplify new term against both left and right subterms.
17144 (simplify_binary_operation): Call swap_commutative_operands_p on
17145 op0 and op1, not trueop0 and trueop1. Move the initialization of
17146 trueop0 and trueop1 down to where first needed.
17147 (simplify_relational_operation): Likewise.
17148 * rtlanal.c (commutative_operand_precedence): Also order constant
17149 operands using avoid_constant_pool_reference.
17150
17151 2004-01-19 Richard Henderson <rth@redhat.com>
17152
17153 * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
17154 don't check memory mode.
17155 (unaligned_memory_operand): Likewise.
17156 (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
17157 abort for op0 not MEM.
17158
17159 * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
17160 is not a reg, copy to a scratch first.
17161 (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
17162 unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
17163 unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
17164 (reload_inqi, reload_inhi): Fix mode of op0.
17165 (reload_inqi_help, reload_inhi_help, reload_outqi_help,
17166 reload_outhi_help): Likewise. Use define_insn_and_split.
17167
17168 * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
17169 as well as $29 dead.
17170
17171 2004-01-19 Eric Botcazou <ebotcazou@libertysurf.fr>
17172
17173 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New. Emit
17174 "tls_object" for thread-local objects.
17175 * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
17176 "#tls" for thread-local sections.
17177 * configure.ac (thread-local checks): Specify --fatal-warnings in
17178 every binutils-specific checks. For sparc*-*-*, test whether the
17179 OS is Solaris and the tools are native and act accordingly.
17180 * configure: Rebuild.
17181
17182 2004-01-19 Jeff Law <law@redhat.com>
17183
17184 * contrib.texi: Update Paolo Carlini's entry. New entries for
17185 Jerry Quinn and Petur Runolfsson.
17186
17187 2004-01-19 Roger Sayle <roger@eyesopen.com>
17188
17189 * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
17190 size, don't use the larger zero-extending loads.
17191
17192 2004-01-19 Richard Henderson <rth@redhat.com>
17193
17194 * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
17195 * alpha.md (UNSPEC_NT_LDA): Remove.
17196 (UNSPEC_CVTLQ, cvtlq): New.
17197 (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
17198 (extendsidi2_fix): Remove.
17199 (extendsidi2 splitter): Use cvtlq.
17200 (extendsidi2 fp peepholes): Remove.
17201 (cvtql): Use SFmode instead of SImode.
17202 (fix_trunc?fsi): Update to match.
17203 (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
17204 (movsi): Rename from movsi_nofix, remove f alternatives.
17205 (movsi_nt_vms): Similarly.
17206 (movsi_fix, movsi_nt_vms_fix): Remove.
17207 (nt_lda): Remove.
17208 * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
17209
17210 2004-01-19 Jan Hubicka <jh@suse.cz>
17211
17212 * cgraph.c (cgraph_remove_node): Fix removal from linked list.
17213 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
17214 list.
17215 (cgraph_remove_unreachable_nodes): New function
17216 (cgraph_decide_inlining_of_small_function): Fix pasto.
17217 (cgraph_decide_inlining_incrementally): Fix pasto.
17218 (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
17219
17220 2004-01-19 Steven Bosscher <stevenb@suse.de>
17221
17222 * gengtype.c (header_file): Make it static.
17223 (write_types_process_field, write_enum_defn): Minor whitespace fixes.
17224 * gengtype.h (header_file): No longer extern.
17225
17226 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
17227
17228 * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
17229 * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
17230 * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
17231
17232 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
17233
17234 * stmt.c (HAVE_casesi): Define it not already defined.
17235 (HAVE_tablejump): Likewise.
17236 (expand_end_case_type): Resort to the binary tree method if
17237 neither casesi or tablejump is available.
17238
17239 2004-01-18 Daniel Jacobowitz <drow@mvista.com>
17240
17241 * final.c (final_scan_insn): Make non-static again.
17242 * output.h (final_scan_insn): Re-add prototype.
17243 * config/arc/arc.c (arc_output_function_epilogue): Add NULL
17244 to final_scan_insn call.
17245 * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
17246 * config/mips/mips.c (mips_output_conditional_branch): Likewise.
17247 * config/pa/pa.c (output_lbranch, output_call): Likewise.
17248 * config/sh/sh.c (print_slot): Likewise.
17249 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
17250 (output_sibcall, sparc_flat_function_epilogue): Likewise.
17251
17252 2004-01-18 Jan Hubicka <jh@suse.cz>
17253
17254 * basic-block.h (try_redirect_by_replacing_jump): Declare.
17255 * cfgcleanup.c (try_optimize_cfg): Use it.
17256 * cfgrtl.c (try_redirect_by_replacing_jump): Export.
17257 (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
17258 Kill hack.
17259 (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
17260
17261 Revert:
17262 2004-01-16 Geoffrey Keating <geoffk@apple.com>
17263
17264 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
17265 even after reload, just don't remove the actual jump tables.
17266
17267 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
17268
17269 * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
17270
17271 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
17272
17273 * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
17274 the size of a pointer in bytes.
17275
17276 2004-01-18 Roger Sayle <roger@eyesopen.com>
17277
17278 * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
17279 live "next" variable, which could lead to an infinite loop.
17280
17281 2004-01-18 Andrew Pinski <pinskia@physics.uc.edu>
17282
17283 * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
17284 block.
17285
17286 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
17287 Check for NULL in the chain and remove repeated code.
17288
17289 2004-01-18 Jan Hubicka <jh@suse.cz>
17290
17291 * coverage.c (checksum_string): Rename to ...
17292 (coverage_checksum_string): ... this one, Use crc32_string; recognize
17293 names containing random number and zero the number out in order to get
17294 match.
17295
17296 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
17297
17298 * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
17299
17300 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
17301
17302 * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
17303 doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
17304 doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
17305 doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
17306 doc/trouble.texi: Remove trailing whitespace.
17307
17308 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
17309
17310 PR target/7618
17311 * config/mips/mips.c: Include cfglayout.h.
17312 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
17313 (mips_unspec_offset_high): Add temporary register argument.
17314 (mips_load_call_address): New function, split out from...
17315 (mips_expand_call): ...here.
17316 (mips_output_cplocal): New function.
17317 (mips_output_function_prologue, mips_output_function_epilogue): Use it.
17318 (mips_emit_loadgp): New function, split out from...
17319 (mips_expand_prologue): ...here.
17320 (mips_output_mi_thunk): New function.
17321
17322 2004-01-17 Bernardo Innocenti <bernie@develer.com>
17323
17324 * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
17325 mcpu32): Remove redundant checks for implied target predefines.
17326
17327 2004-1-17 Andrew Pinski <pinskia@physics.uc.edu>
17328
17329 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
17330 Return type is unsigned int not int.
17331 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
17332 Likewise.
17333
17334 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
17335
17336 * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
17337 doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
17338 "GNU/Linux" and "Microsoft Windows" terminology.
17339
17340 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
17341
17342 * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
17343 doc/cppopts.texi, doc/extend.texi, doc/install.texi,
17344 doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
17345 doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
17346 @smallexample instead of @example.
17347
17348 2004-01-17 Ziemowit Laski <zlaski@apple.com>
17349
17350 * objc/objc-act.c (build_objc_method_call): Use target
17351 hooks instead of macros to determine if ..._stret
17352 dispatchers should be used (NeXT runtime only).
17353
17354 2004-01-17 Roger Sayle <roger@eyesopen.com>
17355
17356 * builtins.c (expand_builtin_expect_jump): Fix mistake in my
17357 last patch. Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
17358
17359 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
17360
17361 * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
17362 (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
17363 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
17364 macros.
17365 * reload1.c (emit_reload_insns): Use them.
17366 * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
17367 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
17368 for NULL PATTERN.
17369
17370 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
17371
17372 * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
17373 (final_scan_insn): Update to take an additional SEEN argument. Emit
17374 a line note after the prologue. Make static.
17375 (line_note_exists): Remove.
17376 (final): Don't initialize line_note_exists. Update call to
17377 final_scan_insn.
17378 * output.h (final_scan_insn): Remove prologue.
17379 * function.c (set_insn_locators): Update comment.
17380 (thread_prologue_and_epilogue_insns): Add a comment.
17381
17382 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
17383
17384 PR target/10781
17385 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
17386 Prototype.
17387 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
17388 New function.
17389 * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
17390 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
17391 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
17392
17393 2004-01-17 Jan Hubicka <jh@suse.cz>
17394
17395 * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
17396 commit.
17397
17398 * toplev.c (HAVE_conditional_execution): Provide default.
17399 (rest_of_handle_reorder_blocks): For conditional_execution target
17400 update liveness once after all transformations
17401 (rest_of_compilation): Do crossjumping before ce3.
17402
17403 2004-01-17 Geoffrey Keating <geoffk@apple.com>
17404
17405 * alias.c (new_alias_set): Mark last_alias_set for PCH.
17406 (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
17407 for PCH.
17408 (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
17409 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
17410 (get_TOC_alias_set): Mark 'set' for PCH.
17411
17412 2004-01-16 Geoffrey Keating <geoffk@apple.com>
17413
17414 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
17415 even after reload, just don't remove the actual jump tables.
17416
17417 2004-01-17 J. Brobecker <brobecker@gnat.com>
17418
17419 * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
17420 Remove checks for is_ada() and TREE_UNSIGNED.
17421 (subrange_type_die): Emit a byte_size attribute if the subrange
17422 type size is different from the base type size.
17423 (modified_type_die): Replace call to is_ada_subrange_type() by
17424 call to is_subrange_type().
17425
17426 2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
17427
17428 * config/sh/sh.c: Include ggc.h.
17429
17430 2004-01-16 Geoffrey Keating <geoffk@apple.com>
17431
17432 * Makefile.in (MD5_H): New.
17433 (fold-const.o): Depend on md5.h.
17434 (dwarf2out.o): Likewise.
17435 (cppfiles.o): Likewise.
17436 * cppfiles.c: Include md5.h.
17437 (should_stack_file): Check against list read from PCH file.
17438 (struct pchf_data): New.
17439 (pchf): New variable.
17440 (struct pchf_adder_info): New.
17441 (pchf_adder): New.
17442 (pchf_save_compare): New.
17443 (_cpp_save_file_entries): New.
17444 (_cpp_read_file_entries): New.
17445 (struct pchf_compare_data): New.
17446 (pchf_compare): New.
17447 (check_file_against_entries): New.
17448 * cpphash.h (_cpp_save_file_entries): Prototype.
17449 (_cpp_read_file_entries): Prototype.
17450 * cpppch.c (cpp_write_pch_state): Write the list of headers.
17451 (cpp_read_state): Read the list of headers.
17452
17453 2004-01-17 Jan Hubicka <jh@suse.cz>
17454
17455 * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
17456 builtin_expect specially.
17457 * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
17458 (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
17459 * invoke.texi (max-inline-insns-single): Set to 100.
17460 (large-function-insns): Set to 3000.
17461
17462 2004-01-16 Eric Christopher <echristo@redhat.com>
17463 Chandrakala Chavva <cchavva@redhat.com>
17464
17465 * cppcharset.c (one_iso88591_to_utf8): New function.
17466 (convert_iso88591_utf8): Ditto. Use.
17467 (conversion_tab): Use.
17468 (_cpp_input_to_utf8): New function.
17469 (_cpp_init_iconv_buffer): Ditto.
17470 (_cpp_close_iconv_buffer): Ditto.
17471 * cpphash.h: Prototype new functions.
17472 (cpp_buffer): Add input_cset_desc.
17473 * cppinit.c: Add input_charset default.
17474 * cpplib.c (cpp_push_buffer): Support init and
17475 close of iconv.
17476 * cpplib.h (cpp_options): Add input_charset.
17477
17478 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
17479
17480 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
17481 * config/alpha/unicosmk.h: Remove a commented-out definition
17482 of ASM_OUTPUT_SECTION_NAME.
17483 * config/stormy16/stormy16.h: Likewise.
17484
17485 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17486
17487 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
17488 (alpha___extern_prefix_sys_stat): ... this.
17489 Apply to <sys/mount.h>, too.
17490 Tweak to match more variations.
17491 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
17492
17493 * fixinc/inclhack.def (alpha___extern_prefix,
17494 alpha___extern_prefix_standards): New hacks to obey
17495 __PRAGMA_EXTERN_PREFIX.
17496 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
17497 test.
17498 * fixinc/tests/base/standards.h: Likewise.
17499
17500 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
17501 variations.
17502 New testcase.
17503 * fixinc/tests/base/pthread.h: Handle it.
17504
17505 * fixincl/inclhack.def (bad_lval): Sort file list.
17506 Add many missing files up to Tru64 UNIX V5.1B.
17507 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
17508 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
17509 order.
17510
17511 * fixinc/fixincl.x: Regenerate.
17512
17513 2004-01-16 Mark Mitchell <mark@codesourcery.com>
17514
17515 * version.c (version_string): Change to 3.5.0.
17516 * doc/include/gcc-common.texi (version-GCC): Likewise.
17517
17518 2004-01-16 Jan Hubicka <jh@suse.cz>
17519
17520 * i386.md (load_tp_di): Fix pasto.
17521
17522 PR opt/13608
17523 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
17524
17525 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
17526 pp_c_character_constant, pp_c_floating_constant,
17527 pp_c_additive_expression, pp_c_shift_expression,
17528 pp_c_equality_expression, pp_c_and_expression,
17529 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
17530 pp_c_logical_and_expression): Remove inline modifier.
17531 * dwarf2out.c (get_AT): Likewise.
17532 * et-forest.c (et_splay): Likewise.
17533 * ra.h (ra_alloc, ra_calloc): Likewise
17534
17535 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
17536
17537 * config/frv/frv-protos.h: Fix comment formatting.
17538 * config/frv/frv.c: Likewise.
17539 * config/frv/frv.h: Likewise.
17540 * config/frv/frv.md: Likewise.
17541 * config/frv/frvbegin.c: Likewise.
17542 * config/frv/frvend.c: Likewise.
17543
17544 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
17545
17546 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
17547 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
17548 LINKER_DOES_NOT_WORK_WITH_DWARF2.
17549 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
17550
17551 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
17552
17553 PR 11864
17554 * postreload.c (reload_cse_simplify_operands): Don't remove
17555 implicit extension from LOAD_EXTEND_OP.
17556
17557 2004-01-16 Jan Hubicka <jh@suse.cz>
17558
17559 PR opt/11350
17560 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
17561 after reload.
17562 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
17563 rtl_try_redirect_by_replacing_branch): Likewise.
17564
17565 2004-01-15 Geoffrey Keating <geoffk@apple.com>
17566
17567 PR pch/13689
17568 * alias.c (struct alias_set_entry): Mark for GC.
17569 (alias_sets): Make static, mark for GC.
17570 (record_alias_subset): Use GC to allocate alias structures.
17571 * varray.c (element): Make generic varrays GCed.
17572
17573 PR pch/13361
17574 * c-typeck.c (constructor_asmspec): Delete.
17575 (struct initializer_stack): Delete field 'asmspec'.
17576 (start_init): Delete saving of asmspec.
17577 (finish_init): Don't update constructor_asmspec.
17578 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
17579 * stmt.c (expand_asm): Duplicate strings from tree.
17580 (expand_asm_operands): Likewise.
17581 * tree.c (tree_size): Update computation of size of STRING_CST.
17582 (make_node): Don't make STRING_CST nodes.
17583 (build_string): Allocate string with tree node.
17584 * tree.def (STRING_CST): Update comment.
17585 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
17586 (tree_string): Place contents of string in tree node.
17587 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
17588 from tree.
17589
17590 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
17591 altivec operands.
17592
17593 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
17594
17595 * c-common.h: Fix comment formatting.
17596 * c-cppbuiltin.c: Likewise.
17597 * c-pragma.c: Likewise.
17598 * calls.c: Likewise.
17599 * collect2.c: Likewise.
17600 * cppcharset.c: Likewise.
17601 * cpptrad.c: Likewise.
17602 * dbxout.c: Likewise.
17603 * defaults.h: Likewise.
17604 * dwarf2out.c: Likewise.
17605 * fold-const.c: Likewise.
17606 * genautomata.c: Likewise.
17607 * genconditions.c: Likewise.
17608 * genflags.c: Likewise.
17609 * gengtype.c: Likewise.
17610 * integrate.c: Likewise.
17611 * loop.c: Likewise.
17612 * predict.c: Likewise.
17613 * sdbout.c: Likewise.
17614
17615 2004-01-15 Zack Weinberg <zack@codesourcery.com>
17616
17617 * config/ia64/ia64.md (*movti_internal): C output template
17618 extracted to ia64.c.
17619 (*movti_internal_reg): Delete.
17620 (reload_inti, reload_outti): Use the correct mode on operand 2
17621 in the first place, don't fix it up in the output template.
17622 (movtf, reload_ointf, reload_outtf): New expanders.
17623 (*movtf_internal): New define_insn_and_split.
17624 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
17625 make static; do not hand TFmode CONST_DOUBLEs to split_double.
17626 (ia64_split_tmode_move): New function, body mostly pulled
17627 from ia64.md:*movti_internal.
17628 (ia64_function_arg_words): New function, extracted common
17629 logic from ia64_function_arg et seq.
17630 (ia64_function_arg_offset): Likewise. Handle correctly the
17631 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
17632 (ia64_function_arg, ia64_function_arg_partial_nregs)
17633 (ia64_function_arg_advance): Use ia64_function_arg_words and
17634 ia64_function_arg_offset.
17635 (ia64_function_value): TCmode does not go in float regs.
17636 (ia64_secondary_reload_class): Also handle TFmode.
17637 * config/ia64/ia64-protos.h: Remove prototype for
17638 ia64_split_timode; add prototype for ia64_split_tmode_move.
17639
17640 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
17641
17642 * Makefile.in (MAINT): Make it an immediate assignment.
17643
17644 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
17645
17646 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
17647
17648 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
17649
17650 * config/h8300/coff.h: Replace Hitachi with Renesas.
17651 * config/h8300/elf.h: Likewise.
17652 * config/h8300/h8300-protos.h: Likewise.
17653 * config/h8300/h8300.c: Likewise.
17654 * config/h8300/h8300.h: Likewise.
17655 * config/h8300/h8300.md: Likewise.
17656 * config/h8300/lib1funcs.asm: Likewise.
17657
17658 2004-01-15 Andrew Pinski <apinski@apple.com>
17659
17660 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
17661 around it.
17662
17663 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
17664
17665 * config/h8300/h8300.c (h8300_return_in_memory): New.
17666 (TARGET_STRUCT_VALUE_RTX): Likewise.
17667 (TARGET_RETURN_IN_MEMORY): Likewise.
17668 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
17669 (RETURN_IN_MEMORY): Likewise.
17670
17671 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
17672
17673 PR optimization/13375
17674 * gcse.c (handle_avail_expr): Just return if the source is not a
17675 single set.
17676
17677 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
17678 Daniel Jacobowitz <drow@mvista.com>
17679
17680 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
17681 (EQUIV): Define.
17682 (ARM_FUNC_ALIAS): New macro.
17683 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
17684 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
17685
17686 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17687
17688 PR optimization/12372
17689 * calls.c (expand_call): Add call_fusage data for stack arguments in
17690 constant calls.
17691
17692 2004-01-15 Alan Modra <amodra@bigpond.net.au>
17693
17694 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
17695 (rs6000_elf_declare_function_name): Formatting.
17696 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
17697
17698 2004-01-15 Jan Hubicka <jh@suse.cz>
17699
17700 PR bootstrap/13692
17701 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
17702 previous patch.
17703
17704 2004-01-15 Richard Henderson <rth@redhat.com>
17705
17706 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
17707 integer regs of the same call-savedness.
17708
17709 2004-01-15 Andreas Schwab <schwab@suse.de>
17710
17711 PR bootstrap/13562
17712 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
17713 status for NOTB/NOTW/NEGW methods.
17714
17715 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
17716
17717 * doc/invoke.texi: Update dump file names. Fix a typo.
17718
17719 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
17720
17721 * builtins.c (expand_builtin_va_end): Don't use
17722 EXPAND_BUILTIN_VA_END.
17723 * system.h (EXPAND_BUILTIN_VA_END): Poison.
17724 * config/d30v/d30v.h: Remove a commented-out definition of
17725 EXPAND_BUILTIN_VA_END.
17726 * config/stormy16/stormy16.h: Likewise.
17727
17728 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
17729
17730 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
17731 * targhooks.c (default_struct_value_rtx): Don't use
17732 STRUCT_VALUE_INCOMING_REGNUM.
17733
17734 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
17735
17736 PR bootstrap/12744
17737 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
17738 GENINSRC and not parsedir. Define srcextra as a langhook.
17739 * configure: Regenerate.
17740 * Makefile.in: Suppress default .l.c rule. Don't substitute
17741 parsedir and delete all references throughout. Conditionally define
17742 rule for srcextra dependent on GENINSRC.
17743 (stmp-docobjdir): Delete.
17744 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
17745 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
17746 and gengtype-yacc.h back to source directory.
17747 (maintainer-clean): Delete all parse files in source directory.
17748 (distclean): Delete generated files.
17749
17750 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
17751 (objc-parse.c, objc-parse.y): Don't use parsedir.
17752 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
17753 directory if requested.
17754 (po-generated): Don't use parsedir.
17755 (objc.maintainer-clean): Delete above files from source directory.
17756
17757 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
17758
17759 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
17760
17761 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
17762
17763 * doc/tm.texi: Replace RETURN_IN_MEMORY with
17764 TARGET_RETURN_IN_MEMORY.
17765
17766 2004-01-15 Jan Hubicka <jh@suse.cz>
17767
17768 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
17769 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
17770 functions accepting SSE arguments
17771 (function_arg): Warn only when asked to warn.
17772 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
17773
17774 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
17775
17776 * c-parse.in (stmts_and_decls): Make label at end of compound
17777 statement a hard error.
17778
17779 2004-01-14 Jan Hubicka <jh@suse.cz>
17780
17781 * cgraph.c (create_edge): Use local.redefined_extern_inline.
17782 * cgraph.h (cgraph_local_info): Sort fields by size; add
17783 redefined_extern_inline
17784 (cgraph_global_info): Sort fields by size.
17785 (cgraph_node): Likewise.
17786 * cgraphunit.c (cgraph_finalize_function): Se
17787 local.redefined_extern_inline on redefinition.
17788 (cgraph_analyze_function): Use it; fix formating.
17789
17790 2004-01-14 Jan Hubicka <jh@suse.cz>
17791
17792 PR c++/10776
17793 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
17794 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
17795 bitmaps
17796 (cache_size): New variable
17797 (add_dependence): Update use; canonize early memory locations
17798 (sched_analyze_1): Likewise.
17799 (sched_analyze_2): Likewise.
17800 (init_dependency_caches): Initialize bitmaps.
17801 (free_dependency_caches): Free bitmaps
17802
17803 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
17804
17805 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
17806 targetm.calls.strict_argument_naming().
17807 * target.h: Likewise.
17808
17809 2004-01-14 Richard Henderson <rth@redhat.com>
17810
17811 PR debug/13231
17812 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
17813 instructions.
17814
17815 2004-01-14 Richard Henderson <rth@redhat.com>
17816
17817 PR c++/12491
17818 * except.c (struct eh_region): Add u.fixup.resolved.
17819 (resolve_one_fixup_region): Split out from ...
17820 (resolve_fixup_regions): ... here.
17821
17822 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
17823
17824 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
17825
17826 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
17827
17828 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
17829 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
17830 (STRUCT_VALUE): Remove.
17831
17832 2004-01-14 Steven Bosscher <stevenb@suse.de>
17833
17834 * system.h: Poison PROMOTED_MODE
17835 * integrate.c (expand_inline_function): Don't mention the
17836 PROMOTED_MODE.
17837 * loop.c (update_giv_derive): Same.
17838 * tree.h (DECL_RTL): Same.
17839
17840 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
17841
17842 PR target/9365
17843 * sh.c (gen_block_redirect): Add special handling of RETURN.
17844 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
17845 far branch target (i.e. it's a return).
17846
17847 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
17848
17849 * regrename.c (find_oldest_value_reg): Fix a warning.
17850
17851 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
17852
17853 PR bootstrap/12527
17854 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
17855 Move linux-gas.h and linux-elf.h before aout.h.
17856 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
17857 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
17858
17859 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
17860
17861 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
17862 (CONST_INT, VOIDmode, ...).
17863
17864 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
17865
17866 * regrename.c (find_oldest_value_reg): If the replacement uses
17867 multiple hard registers, check that all of them are in CLASS.
17868
17869 2004-01-14 Jan Hubicka <jh@suse.cz>
17870
17871 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
17872 impossible.
17873
17874 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
17875
17876 * Makefile.in: Define MAINT from --enable-maintainer-mode.
17877
17878 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
17879
17880 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
17881 Calculate always vrsave_mask if TARGET_ALTIVEC.
17882 (rs6000_emit_prologue): Emit code for vrsave
17883 only if TARGET_ALTIVEC_VRSAVE.
17884 (rs6000_emit_epilogue): Likewise.
17885
17886 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
17887
17888 * config/sparc/sparc.md (tie_add32): Fix pasto.
17889 (tie_add64): Likewise.
17890
17891 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17892
17893 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
17894
17895 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
17896
17897 * config/iq2000/iq2000-protos.h: Fix comment formatting.
17898 * config/iq2000/iq2000.c: Likewise.
17899 * config/iq2000/iq2000.md: Likewise.
17900
17901 2004-01-14 J. Brobecker <brobecker@gnat.com>
17902
17903 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
17904 (subrange_type_die): Add handle for nameless subrange types.
17905
17906 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
17907
17908 * config/h8300/h8300-protos.h: Replace do_movsi with
17909 h8300_expand_movsi.
17910 * config/h8300/h8300.c (do_movsi): Change to
17911 h8300_expand_movsi.
17912 * config/h8300/h8300.md (movsi): Replace do_movsi with
17913 h8300_expand_movsi.
17914 (movsf): Likewise.
17915
17916 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
17917
17918 * config/h8300/h8300.c (dosize): Change to
17919 h8300_emit_stack_adjustment. Update callers.
17920
17921 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
17922
17923 * config/h8300/h8300.md (movstrictqi): Add an alternative with
17924 the source being post_inc. Tighten the predicate for the
17925 destination to register_operand.
17926 (movstricthi): Likewise.
17927
17928 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
17929
17930 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
17931 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
17932 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
17933
17934 2004-01-14 Jan Hubicka <jh@suse.cz>
17935
17936 Partial fix PR c++/12850
17937 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
17938 at zero nest level.
17939
17940 2004-01-13 Bernardo Innocenti <bernie@develer.com>
17941
17942 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
17943 pseudo-register.
17944
17945 2004-01-13 Devang Patel <dpatel@apple.com
17946
17947 PR debug/7078
17948 * dbxout.c (dbxout_symbol_name): Emit mangled names for
17949 NAMESPACE_DECL memebers.
17950
17951 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
17952
17953 PR c++/12709
17954 * c-common.c (finish_fname_decls): Use the chain only if the
17955 tree is an expr_stmt.
17956
17957 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
17958
17959 * rtl.def: Add comment about new option in automata_option.
17960
17961 * genautomata.c (PROGRESS_OPTION): New macro.
17962 (progress_flag): New global variable.
17963 (gen_automata_option): Process `progress'.
17964 (transform_insn_regexps, check_unit_distributions_to_automata,
17965 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
17966 expand_automata, write_automata): Print about the progress only if
17967 progress_flag. Remove fflush.
17968 (initiate_automaton_gen): Process command line flag `-progress'.
17969
17970 * doc/md.texi: Describe the new option.
17971
17972 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17973
17974 * cfg.c (dump_bb): Dump entry edges.
17975
17976 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
17977
17978 * arm.c (thumb_legitimate_address_p): Only allow constant pool
17979 references from SImode.
17980 * arm.md (thumb_movhi_insn): Don't allow minipool references.
17981
17982 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
17983
17984 * system.h (TEXT_SECTION): Poison.
17985 * varasm.c (text_section): Don't use TEXT_SECTION.
17986 * config/sh/sh.c (sh_file_start): Fix a comment typo.
17987 * doc/tm.texi (TEXT_SECTION): Remove.
17988
17989 2004-01-13 Ben Elliston <bje@wasabisystems.com>
17990
17991 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
17992
17993 2004-01-12 James E Wilson <wilson@specifixinc.com>
17994
17995 * unwind-libunwind.c: Delete.
17996
17997 2004-01-12 Zack Weinberg <zack@codesourcery.com>
17998
17999 PR 13656
18000 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
18001 oldtype is set, set *newtypep or *oldtypep too. Do not set
18002 them at the very end.
18003 (validate_proto_after_old_defn): Restructure for comprehensibility;
18004 make error messages clearer.
18005
18006 2004-01-12 Zack Weinberg <zack@codesourcery.com>
18007
18008 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
18009 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
18010 * varray.c: No need to prototype error.
18011 (varray_check_failed): Wrap long string onto two lines.
18012 (varray_underflow): New function.
18013
18014 2004-01-13 Steven Bosscher <stevenb@suse.de>
18015
18016 PR c++/13376
18017 * function.h (struct function): Kill `name' field.
18018 (current_function_name): Make it an extern function.
18019 * function.c (current_function_name): New function.
18020 * graph.c: Update all uses of current_function_name.
18021 * gcse.c: Likewise.
18022 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
18023 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
18024 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
18025 instead of a strcmp with "main".
18026
18027 2004-01-13 Jan Hubicka <jh@suse.cz>
18028
18029 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
18030
18031 * cgraphunit.c (cgraph_optimize_function): Always do
18032 optimize_inline_calls when there is always_inline callee.
18033 (cgraph_decide_inlining): Fix formating.
18034 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
18035 functions.
18036 (expand_call_inline): Likewise.
18037 * toplev.h (sorry): Fix prototype.
18038
18039 2004-01-12 Roger Sayle <roger@eyesopen.com>
18040
18041 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
18042 conditional jumps that drop through to unconditional jumps or the
18043 end of the sequence.
18044
18045 2004-01-13 Jan Hubicka <jh@suse.cz>
18046
18047 * alias.c (new_alias_set): Construct the alias_set varray.
18048 (init_alias_once): Don't do it here.
18049
18050 2004-01-12 Marc Espie <espie@openbsd.org>
18051
18052 * system.h: handle YYBYACC like YYBISON.
18053
18054 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
18055
18056 PR target/10847
18057 * config.gcc: No longer includes conflicting header sparc/sol2.h when
18058 building on sparc64-*-openbsd*.
18059
18060 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
18061
18062 PR debug/13539
18063 * dbxout.c (dbxout_type): Protected inheritance is not
18064 private but protected.
18065
18066 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
18067
18068 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
18069
18070 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
18071
18072 PR optimization/12508.
18073 * combine.c (try_combine): Remove a dead set in a parallel
18074 even if its destination is a subreg.
18075
18076 Revert:
18077 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
18078 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
18079 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
18080
18081 2004-01-12 Geoffrey Keating <geoffk@apple.com>
18082
18083 * real.c: Update copyright date.
18084 * emit-rtl.c: Likewise.
18085 * rtl.h: Likewise.
18086 * dwarf2out.c: Likewise.
18087 * config/rs6000/darwin-ldouble.c: Likewise.
18088 * config/rs6000/rs6000.md: Likewise.
18089
18090 2004-01-12 David Edelsohn <edelsohn@gnu.org>
18091
18092 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
18093 TFmode to SImode libfuncs.
18094
18095 2004-01-12 Roger Sayle <roger@eyesopen.com>
18096
18097 PR middle-end/11397
18098 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
18099
18100 2004-01-12 Jan Hubicka <jh@suse.cz>
18101
18102 PR opt/12826
18103 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
18104 stored.
18105
18106 PR opt/12863
18107 * cfgcleanup.c (label_is_jump_target_p): Move to...
18108 * rtlanal.c (label_is_jump_target_p): ... here.
18109 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
18110 edges unified with branch edges.
18111
18112 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
18113
18114 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
18115 high word of an integral CONST_DOUBLE.
18116
18117 2004-01-12 Paul Brook <paul@codesourcery.com>
18118
18119 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
18120
18121 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
18122
18123 PR target/13585
18124 * sh-protos.h (check_use_sfunc_addr): Declare.
18125 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
18126 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
18127
18128 2004-01-12 Jan Hubicka <jh@suse.cz>
18129
18130 * alias.c: Invlude varray.h
18131 (alias_sets): Turn into varray.
18132 (get_alias_set_entry): Use VARRAY; mark inline.
18133 (mems_in_disjoint_alias_sets_p): Mark inline.
18134 (record_alias_subset): Use varray.
18135 (init_alias_once): Initialize varray.
18136 (new_alias_set): Grow array.
18137 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
18138
18139 2004-01-12 Jan Hubicka <jh@suse.cz>
18140
18141 Partial fix for PR opt/10776 II
18142 * cselib.c: Include params.h
18143 (cselib_invalidate_mem): Limit amount of nonconflicting memory
18144 locations.
18145 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
18146 * Makefile.in (cselib.o): Depend on params.h
18147
18148 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
18149
18150 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
18151 simplify_unary_operation if the operand has a known mode.
18152
18153 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
18154
18155 PR target/13534
18156 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
18157 predicate to handle 'ld' conform addresses.
18158 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
18159 contraint.
18160 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
18161 are memory contraints.
18162 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
18163 New prototype.
18164 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
18165 Change 'o' to 'Y' constraint.
18166 (*movdf_softfloat64): Ditto.
18167
18168 2004-01-12 Bernardo Innocenti <bernie@develer.com>
18169
18170 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
18171 brace-enclosed syntax in all C output statements.
18172
18173 2004-01-12 David Edelsohn <edelsohn@gnu.org>
18174
18175 PR target/13401
18176 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
18177 Objective-C language type value is 14.
18178
18179 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
18180
18181 PR c/12148
18182 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
18183 `int' in a number of places to make sure we always have a SImode
18184 and not a HImode. Add a 'L' suffix to a number of constants.
18185
18186 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18187
18188 * pa.c: Don't include obstack.h.
18189
18190 * pa.md: Correct constraint in pattern for loading PIC label address.
18191
18192 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
18193
18194 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
18195 before defining.
18196
18197 2004-01-11 Steven Bosscher <stevenb@suse.de>
18198
18199 PR fortran/9972
18200 * toplev.c (rest_of_handle_inline): Also consider functions
18201 for deferral if the language is GNU F77.
18202
18203 2004-01-11 Zack Weinberg <zack@codesourcery.com>
18204
18205 * c-decl.c (diagnose_arglist_conflict): Add missing space to
18206 diagnostic messages.
18207
18208 2004-01-11 Jakub Jelinek <jakub@redhat.com>
18209
18210 PR middle-end/13392
18211 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
18212 to drop through label. Don't fall back to SCC even when conditional
18213 jump has not been found.
18214
18215 2004-01-11 Jan Hubicka <jh@suse.cz>
18216
18217 * invoke.texi: Fix syntax error in previous patch.
18218
18219 Partial fix for PR opt/10776
18220 * Makefile.in (reload.o): Include param.h
18221 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
18222 * reload.c: Include params.h.
18223 (find_equiv_reg): Work limiting check.
18224 * invoke.texi: Document.
18225
18226 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
18227
18228 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
18229 out-of-bounds accesses to string constants. Simplify mips16
18230 case accordingly.
18231
18232 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
18233
18234 PR optimization/13469
18235 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
18236 reload_cse_regs (-fnon-call-exceptions only).
18237
18238 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
18239
18240 * config/mcore/lib1.asm: Fix comment formatting.
18241 * config/mcore/mcore-elf.h: Likewise.
18242 * config/mcore/mcore.c: Likewise.
18243 * config/mcore/mcore.h: Likewise.
18244 * config/mcore/mcore.md: Likewise.
18245
18246 2004-01-10 Zack Weinberg <zack@codesourcery.com>
18247
18248 * c-decl.c (duplicate_decls): Break apart into...
18249 (diagnose_arglist_conflict, validate_proto_after_old_defn)
18250 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
18251 ... these new functions. Restructure for comprehensibility.
18252 Remove various archaic special cases. Always report the
18253 location of the previous declaration when a diagnostic is issued.
18254 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
18255 (match_builtin_function_types): Delete unnecessary forward declaration.
18256
18257 2004-01-10 Zack Weinberg <zack@codesourcery.com>
18258
18259 * genautomata.c (make_automaton, NDFA_to_DFA):
18260 Print progress bars with '.' characters instead of '*'.
18261 (build_automaton): Change notes to match.
18262
18263 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
18264
18265 * config/m32r/m32r.md: Use define_constants for unspec and
18266 unspec_volatile.
18267
18268 2004-01-10 Jan Hubicka <jh@suse.cz>
18269
18270 PR opt/11635
18271 * expr.c (expand_expr_real): More curefully expand union casts.
18272
18273 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
18274
18275 * config/m32r/m32r.md (flush_icache): Use 1 for
18276 unspec_volatile.
18277
18278 2004-01-10 David Edelsohn <edelsohn@gnu.org>
18279 James E Wilson <wilson@specifixinc.com>
18280
18281 PR debug/12860
18282 * dbxout.c (dbxout_symbol): Remove initialization of
18283 current_sym_code, current_sym_value, and current_sym_addr.
18284 (dbxout_symbol_location): Same.
18285 (dbxout_prepare_symbol): Zero current_sym_code,
18286 current_sym_value, and current_sym_addr.
18287
18288 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
18289
18290 * tree.c (get_unwidened): Reorder conditions so that the null pointer
18291 check is done first.
18292
18293 2004-01-09 Eric Christopher <echristo@redhat.com>
18294
18295 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
18296 if we're running mark_constant_function.
18297
18298 2004-01-09 Jeff Bailey <jbailey@nisa.net>
18299
18300 PR target/12561
18301 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
18302
18303 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
18304
18305 PR debug/11231
18306 * dbxout.c (dbxout_type_fields): Return if any item is
18307 error_mark_node or the type is error_mark_node.
18308
18309 2004-01-09 Geoffrey Keating <geoffk@apple.com>
18310
18311 * config/rs6000/darwin-ldouble.c: Add big comment explaining
18312 exactly what is expected as a 'long double'.
18313 (_xlqadd): When a value to be returned is representable as a
18314 'double', just return it directly, do not construct it using a union.
18315 Also, correct final fixup.
18316 (_xlqmul): Likewise.
18317 (_xlqdiv): Likewise.
18318 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
18319
18320 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
18321
18322 2004-01-09 Richard Henderson <rth@redhat.com>
18323
18324 * recog.c (constrain_operands): Validate mem operands.
18325
18326 2004-01-09 James E Wilson <wilson@specifixinc.com>
18327
18328 * gcc.c (init_spec): Remove -lunwind from shared case.
18329 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
18330
18331 2004-01-09 Steve Ellcey <sje@cup.hp.com>
18332
18333 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
18334 * configure: Regenerate
18335
18336 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
18337
18338 PR c/11234
18339 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
18340 between function and object pointers.
18341 (digest_init): When comparing a pointer to function type to the
18342 target type, only apply TREE_TYPE once to the pointer to function
18343 type.
18344 * except.c (for_each_eh_label_1): Treat data as a pointer to a
18345 function pointer rather than casting it to a function pointer.
18346 (for_each_eh_label): Update caller.
18347 * recog.h (struct insn_data): Use a struct or union for output.
18348 * genoutput.c (output_insn_data): Update.
18349 * final.c (get_insn_template): Update.
18350
18351 2004-01-09 Mark Mitchell <mark@codesourcery.com>
18352
18353 * expr.h (expand_expr): Make it a macro, not a function.
18354 (expand_expr_real): New function.
18355 * expr.c (store_expr): Adjust logic for deciding whether or not to
18356 copy the value returned by expand_expr.
18357 (expand_expr): Rename to ...
18358 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
18359 calls to language hooks.
18360 * c-common.h (c_expand_expr): Adjust prototype.
18361 * c-common.c (c_expand_expr): Add alt_rtl parameter.
18362 * langhooks-def.h (lhd_expand_expr): Change prototype.
18363 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
18364 * langhooks.h (lang_hooks): Change type of expand_expr.
18365 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
18366 (last_expr_alt_rtl): Likewise.
18367 (expand_expr_stmt_value): Set last_expr_alt_rtl.
18368 (clear_last_expr): Clear it.
18369 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
18370 (expand_end_bindings): Save and restor last_expr_alt_rtl.
18371 * tree.def (RTL_EXPR): Give it an additional operand.
18372 * tree.h (RTL_EXPR_ALT_RTL): New macro.
18373
18374 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
18375
18376 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
18377 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
18378
18379 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
18380
18381 PR target/13380.
18382 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
18383 or (ne:SI (reg:CC 17) (const_int 0)).
18384 Be specific about modes wherever possible.
18385
18386 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
18387
18388 * config/m32r/m32r.c (m32r_expand_block_move): Call
18389 gen_movestrsi_internal with two more arguments.
18390 (m32r_output_block_move): Adjust operand numbers.
18391 Properly update the source and destination pointers.
18392 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
18393 'r+'. Change the set detinations to match_operand.
18394
18395 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
18396
18397 * final.c (FIRST_INSN_ADDRESS): Remove.
18398 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
18399 * system.h (FIRST_INSN_ADDRESS): Poison.
18400 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
18401 * config/m32r/m32r-protos.h: Remove the prototype for
18402 m32r_first_insn_address.
18403 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
18404 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
18405 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
18406
18407 2004-01-09 J. Brobecker <brobecker@gnat.com>
18408
18409 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
18410 we just created.
18411 (is_ada_subrange_type): DIEs for enumeration subtypes should be
18412 emitted as subrange types too.
18413 (subrange_type_die): Add handling of enumeration subtypes.
18414
18415 2004-01-08 Richard Henderson <rth@redhat.com>
18416
18417 PR opt/12441
18418 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
18419 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
18420 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
18421 (ix86_address_cost): Be prepared for SUBREGed registers.
18422 (legitimate_address_p): Accept SUBREGed registers.
18423
18424 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
18425
18426 * Makefile.in: Rename configure.in to configure.ac
18427 * doc/sourcebuild.texi: Likewise.
18428 * configure: Regenerate.
18429 * config.in: Regenerate.
18430
18431 2004-01-08 Stuart Hastings <stuart@apple.com>
18432
18433 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
18434
18435 2004-01-08 Jan Hubicka <jh@suse.cz>
18436
18437 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
18438
18439 2004-01-08 Geoffrey Keating <geoffk@apple.com>
18440
18441 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
18442 (UNSPEC_FIX_TRUNC_TF): New constant.
18443 (movtf_internal): Make splitter active only when insn is active.
18444 (extenddftf2): Rewrite to properly load zero into low part.
18445 (extenddftf2_internal): New.
18446 (extendsftf2): Rewrite.
18447 (truncdftf2): Correct length.
18448 (floatditf2): Delete.
18449 (fix_trunc_helper): New.
18450 (fix_trunctfdi2): Use fix_trunc_helper.
18451 (fix_trunctfsi2): Likewise.fix_trunc
18452 (fix_trunctfsi2_internal): New.
18453
18454 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
18455 addresses are legitimate on Darwin even when flag_pic.
18456 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
18457 non-offsettable addresses for loads of TFmode constants.
18458
18459 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
18460
18461 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
18462 variables in the appropriate bss section.
18463
18464 2004-01-09 Alan Modra <amodra@bigpond.net.au>
18465
18466 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
18467 target_flags has MASK_POWERPC64 when -m64.
18468 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
18469 to 620, 630, power3, power4 and rs64a entries.
18470 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
18471
18472 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
18473
18474 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
18475 floating-point constants.
18476
18477 2004-01-08 J. Brobecker <brobecker@gnat.com>
18478
18479 * dwarf2out.c (subrange_type_die): Add context_die parameter.
18480 Create the subrange_type DIE using the given context DIE.
18481 (modified_type_die): Update call to subrange_type_die.
18482
18483 2004-01-08 Zack Weinberg <zack@codesourcery.com>
18484
18485 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
18486 Add multiple-include guard.
18487
18488 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
18489
18490 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
18491 all vector constant loadable by vsplt*.
18492 (output_vec_const_move): Likewise.
18493
18494 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
18495
18496 PR c/6024
18497 * c-typeck.c (comptypes): Only treat enumerated types in the same
18498 translation unit as compatible with each other when they are the
18499 same type.
18500 * doc/extend.texi: Update.
18501
18502 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
18503
18504 PR c/12165
18505 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
18506 array type from the array element type.
18507
18508 2004-01-07 Alan Modra <amodra@bigpond.net.au>
18509
18510 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
18511 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
18512 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
18513 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
18514 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
18515
18516 2004-01-06 Eric Christopher <echristo@redhat.com>
18517
18518 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
18519 (DWARF2_DEBUGGING_INFO): Define.
18520 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
18521 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
18522 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
18523 for irix as.
18524 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
18525 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
18526 * config/mips/iris5gas.h: Ditto.
18527 (DBX_DEBUGGING_INFO): Remove.
18528 (DWARF2_DEBUGGING_INFO): Ditto.
18529 (MIPS_DEBUGGING_INFO): Ditto.
18530 (PREFERRED_DEBUGGING_TYPE): Ditto.
18531 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
18532 (PREFERRED_DEBUGGING_TYPE): Ditto.
18533 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
18534 * config/mips/elf64.h: Ditto.
18535
18536 2004-01-06 Jan Hubicka <jh@suse.cz>
18537
18538 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
18539 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
18540
18541 2004-01-06 Geoffrey Keating <geoffk@apple.com>
18542
18543 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
18544 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
18545 * config/rs6000/darwin-ldouble.c: New.
18546
18547 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
18548 for constants.
18549 (constant_subword): Delete.
18550 * rtl.h (constant_subword): Delete prototype.
18551 (immed_double_const): Is not in varasm.c.
18552 * simplify-rtx.c (simplify_immed_subreg): New.
18553 (simplify_subreg): Use simplify_immed_subreg.
18554
18555 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
18556 than trying to generate RTL directly.
18557 (fix_trunctfsi2): Use expand_fix rather than trying to generate
18558 RTL directly.
18559
18560 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
18561
18562 2004-01-06 David Edelsohn <edelsohn@gnu.org>
18563
18564 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
18565 function into a separate macro.
18566 (read_only_data_section): Add void argument.
18567 (private_data_section): Same.
18568 (read_only_private_data_section): Same.
18569 (toc_section): Same.
18570
18571 2004-01-06 Jan Hubicka <jh@suse.cz>
18572
18573 * invoke.texi: Remove typo in last change.
18574
18575 PR target/10301
18576 * config.gcc: Accept opteron and athlon-64 as variants
18577 of k8.
18578 * i386.c (override_options): Likewise.
18579 * invoke.texi (i386 -mtune): Expand documentation.
18580
18581 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
18582
18583 * alias.c: Fix comment typos.
18584 * builtins.c: Likewise.
18585 * cfg.c: Likewise.
18586 * df.c: Likewise.
18587 * dominance.c: Likewise.
18588 * dwarf2out.c: Likewise.
18589 * emit-rtl.c: Likewise.
18590 * expr.c: Likewise.
18591 * final.c: Likewise.
18592 * fold-const.c: Likewise.
18593 * gcse.c: Likewise.
18594 * genattrtab.c: Likewise.
18595 * genrecog.c: Likewise.
18596 * gensupport.c: Likewise.
18597 * ggc-zone.c: Likewise.
18598 * integrate.c: Likewise.
18599 * local-alloc.c: Likewise.
18600 * loop.c: Likewise.
18601 * recog.c: Likewise.
18602 * regmove.c: Likewise.
18603 * reg-stack.c: Likewise.
18604 * reorg.c: Likewise.
18605 * rtlanal.c: Likewise.
18606 * rtl.h: Likewise.
18607 * sched-ebb.c: Likewise.
18608 * simplify-rtx.c: Likewise.
18609 * toplev.c: Likewise.
18610 * varasm.c: Likewise.
18611
18612 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
18613
18614 * doc/install.texi: Fix typos.
18615 * doc/invoke.texi: Likewise.
18616 * doc/md.texi: Likewise.
18617
18618 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
18619
18620 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
18621
18622 2004-01-06 Jan Hubicka <jh@suse.cz>
18623
18624 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
18625 (function_arg_advance): Do not pass aggregates in SSE; deal handling
18626 of MMX_REGPARM.
18627 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
18628 add MMX_REGPARM.
18629 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
18630 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
18631 (MMX_REGPARM_MAX): Similarly for -mmmx.
18632
18633 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
18634
18635 * config/sh/linux.h: Fix comment formatting.
18636 * config/sh/netbsd-elf.h: Likewise.
18637 * config/sh/sh.c: Likewise.
18638 * config/sh/sh.h: Likewise.
18639 * config/sh/vxworks.h: Likewise.
18640
18641 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
18642
18643 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
18644 * toplev.c (output_file_directive): Don't use
18645 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
18646
18647 2004-01-05 Steven Bosscher <s.bosscher@student.tudelft.nl>
18648
18649 * toplev.c: Fix broken checkin of 2003-12-30.
18650
18651 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
18652
18653 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
18654 (USING_MMAP): We don't support non-mmap.
18655 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
18656 large objects.
18657 (struct page_entry): Remove bytes_free.
18658 (struct page_table_chain): Remove.
18659 (struct globals): Remove page_table member.
18660 (loookup_page_table_entry): Function deleted.
18661 (set_page_table_entry): Ditto.
18662 (ggc_allocated_p): No longer need page table lookups.
18663 (ggc_marked_p): Ditto.
18664 (alloc_small_page): Don't care about bytes_free anymore.
18665 (alloc_large_page): Round up size.
18666 (ggc_alloc_zone_1): Mark large objects as such, and calculate
18667 their size the new way.
18668 Remove page table lookups and setting.
18669 (ggc_get_size): Calculate large object size the new way.
18670 (sweep_pages): Redo to account for fact that we no longer have
18671 bytes_free.
18672 (ggc_collect): No longer need to reincrement bytes_free.
18673 (ggc_pch_alloc_object): Handle new large objects properly.
18674 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
18675
18676 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
18677
18678 * doc/invoke.texi: Remove a page break.
18679
18680 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
18681
18682 * config/avr/avr.c (avr_output_function_prologue): Remove an
18683 extra pair of curly braces.
18684
18685 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
18686
18687 * config/mn10300/mn10300.c: Fix comment formatting.
18688 * config/mn10300/mn10300.h: Likewise.
18689
18690 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18691
18692 * tree.h: Update documentation on nothrow_flag.
18693 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
18694 types.
18695
18696 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
18697
18698 * doc/invoke.texi: Remove traces of dead ports.
18699
18700 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
18701
18702 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
18703 option.
18704
18705 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
18706
18707 PR target/12945
18708 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
18709 counter labels.
18710 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
18711 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
18712 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
18713 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
18714 (mips_symbol_insns): Don't trust the local/global classification.
18715 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
18716 (override_options): Make -mabicalls -fno-unit-at-a-time imply
18717 -mno-explicit-relocs.
18718 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
18719 between local and global symbols.
18720
18721 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
18722
18723 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
18724 (mips_preferred_reload_class): Declare.
18725 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
18726 (EXTRA_CONSTRAINT): Update accordingly.
18727 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
18728 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
18729 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
18730 mips_dangerous_for_la25_p.
18731 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
18732 if mips_dangerous_for_la25_p.
18733
18734 2004-01-05 Bernardo Innocenti <bernie@develer.com>
18735
18736 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
18737 warning.
18738
18739 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
18740
18741 * configure.ac: Use AC_PROG_CPP_WERROR.
18742 * configure: Regenerate.
18743
18744 2004-01-04 Zack Weinberg <zack@codesourcery.com>
18745
18746 * .cvsignore: Add autom4te.cache.
18747
18748 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
18749
18750 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
18751 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
18752 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
18753 then architecture options, then ABI options. General rewording.
18754
18755 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
18756
18757 PR c/3414
18758 * doc/extend.texi: Clarify definition of malloc attribute.
18759
18760 2004-01-04 Jan Hubicka <jh@suse.cz>
18761
18762 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
18763 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
18764 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
18765 (cgraph_inline_p): Add extra argument reason.
18766 * cgraphunit.c: Minor formating fixes.
18767 cgraph_first_inlined_callee): New functions.
18768 (record_call_1): Record builtins too.
18769 (cgraph_analyze_function): Update inline_failed messages.
18770 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
18771 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
18772 (cgraph_check_inline_limits): Likewise; Add argument reason.
18773 (cgraph_set_inline_failed): New static function.
18774 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
18775 reasons.
18776 (cgraph_inline_p): Add new argument reason.
18777 * tree-inline.c (expand_call_inline): Update warning.
18778
18779 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
18780
18781 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
18782 with modern equivalents.
18783 * configure: Regenerate.
18784
18785 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
18786 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
18787 * configure: Regenerate.
18788
18789 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
18790
18791 * configure.in: Rename to configure.ac.
18792 * configure.ac: Renamed from configure.in; make minimum necessary
18793 changes for autoconf 2.5x.
18794 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
18795 * configure: Regenerate with autoconf 2.57.
18796
18797 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
18798
18799 * config/mips/linux.h: Fix comment formatting.
18800 * config/mips/mips.c: Likewise.
18801 * config/mips/mips.h: Likewise.
18802 * config/mips/mips.md: Likewise.
18803 * config/mips/netbsd.h: Likewise.
18804 * config/mips/windiss.h: Likewise.
18805
18806 2004-01-02 Richard Henderson <rth@redhat.com>
18807
18808 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
18809 for sse and 387; add suppression for mmx.
18810
18811 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
18812
18813 * loop.c (loop_optimize): Free all loops_info's mems.
18814
18815 * c-typeck.c (finish_init): Free spelling_base before
18816 setting it again.
18817
18818 * cfgloop.c (flow_loops_find): Always free the sbitmap
18819 headers.
18820
18821 * predict.c (estimate_probability): Free bbs after being
18822 done with it.
18823
18824 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
18825
18826 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
18827 const_8bit_operand and call_address_operand.
18828
18829 2004-01-02 Jan Hubicka <jh@suse.cz>
18830
18831 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
18832 when there is nothing to inline but warnings are requested.
18833 (cgraph_decide_inlining): Fix memory leak.
18834
18835 2004-01-02 Jan Hubicka <jh@suse.cz>
18836
18837 * expr.c (store_constructor): Fix pasto in previous patch.
18838
18839 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
18840
18841 * config/i386/cygming.h: Fix comment formatting.
18842 * config/i386/djgpp.h: Likewise.
18843 * config/i386/gthr-win32.c: Likewise.
18844 * config/i386/i386-interix.h: Likewise.
18845 * config/i386/i386.c: Likewise.
18846 * config/i386/i386.h: Likewise.
18847 * config/i386/openbsd.h: Likewise.
18848 * config/i386/winnt.c: Likewise.
18849 * config/i386/xm-mingw32.h: Likewise.
18850
18851 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
18852
18853 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
18854 copyright and last modification dates.
18855
18856 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
18857
18858 * doc/install.texi (Specific): Mention x86_64.
18859
18860 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
18861
18862 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
18863 Call force_operand on plus_constant result.
18864
18865 2004-01-01 Jan Hubicka <jh@suse.cz>
18866
18867 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
18868 * expr.c (store_constructor): Use vec_init pattern.
18869 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
18870 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
18871 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
18872 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
18873 New patterns.
18874 (sse2_unpc?pd): Fix pattern.
18875 (sse2_movlpd): Kill.
18876 (sse2_movsd): Deal with movlpd too.
18877 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
18878 (ix86_expand_vector_init): New.
18879 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
18880 * md.texi (vec_set, vec_extract): Document
18881
18882 2003-12-31 Jan Hubicka <jh@suse.cz>
18883
18884 PR opt/13473
18885 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
18886 ASM input operands
18887
18888 PR opt/12617
18889 * toplev.c (dump_file_index): Reorder ce3 and bbro.
18890 (dump_file): Likewise.
18891 (rest_of_compilation): Likewise.
18892
18893 PR debug/13367
18894 * cgraph.c (cgraph_function_possibly_inlined): Even with
18895 flag_really_no_inline we inline always_inline functions.
18896 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
18897 for non-always_inline functions when there is flag_really_no_inline.
18898 (cgraph_decide_inlining): Limit work done when not inlining.
18899 (cgraph_decide_inlining_incrementally): Likewise.
18900 (cgraph_optimize_function): Check whether something got inlined.
18901 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
18902 extern inline functions when not inlining.
18903
18904 * opts.c (decode_options): Disable crossjumping at -O1
18905 * invoke.texi (-O1): Document change.
18906
18907 See ChangeLog.10 for earlier changes.
This page took 6.906519 seconds and 6 git commands to generate.