]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
gimplify.c (append_to_compound_expr): Deleted.
[gcc.git] / gcc / ChangeLog
1 2004-06-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2
3 * gimplify.c (append_to_compound_expr): Deleted.
4 * tree-gimple.h (append_to_compound_expr): Deleted.
5
6 * fold-const.c (fold_addr_expr_with_type): Look through all
7 valid LHS modifiers to find a base to mark addressable.
8
9 * tree.h (debug_find_tree): Add declaration.
10 * tree-inline.c (debug_find_tree): Remove extern declaration.
11
12 2004-06-24 Eric Christopher <echristo@redhat.com>
13
14 * config/rs6000/rs6000.md: Apply change mistakenly
15 deleted with 2004-06-22 patch.
16
17 2004-06-24 Richard Henderson <rth@redhat.com>
18
19 * c-decl.c (c_in_iteration_stmt, c_in_case_stmt): Remove.
20 (c_break_label, c_cont_label): New.
21 (start_function): Update initializations.
22 (c_push_function_context): Update saves.
23 (c_pop_function_context): Update restores.
24 * c-parse.in: Update expected conflicts.
25 (stmt_count, compstmt_count): Remove. Remove all updates.
26 (if_prefix, simple_if, do_stmt_start): Remove.
27 (lineno_labeled_stmt): Remove.
28 (lineno_labels): New.
29 (c99_block_lineno_labeled_stmt): Use it.
30 (lineno_stmt, lineno_label): Don't clear EXPR_LOCUS before calling
31 annotate_with_locus.
32 (select_or_iter_stmt): Replace by ...
33 (condition, if_statement_1, if_statement_2, if_statement,
34 start_break, start_continue, while_statement, do_statement,
35 for_cond_expr, for_incr_expr, for_statement, switch_statement): New.
36 (stmt): Split out ...
37 (stmt_nocomp): ... this. Use c_finish_bc_stmt, c_finish_goto_label,
38 c_finish_goto_ptr.
39 * c-semantics.c (add_stmt): Don't add line numbers to labels.
40 * c-tree.h: Update prototypes.
41 (struct language_function): Remove x_in_iteration_stmt, x_in_case_stmt;
42 add x_break_label, x_cont_label, x_switch_stack.
43 (c_switch_stack): Declare.
44 * c-typeck.c (c_finish_goto_label, c_finish_goto_ptr): New.
45 (c_finish_return): Return the statement.
46 (c_switch_stack): Rename from switch_stack; export.
47 (if_elt, if_stack, if_stack_space, if_stack_pointer): Remove.
48 (c_begin_if_stmt, c_finish_if_cond, c_finish_then, c_begin_else,
49 c_finish_else): Remove.
50 (c_finish_if_stmt): Rewrite to perform the entire operation.
51 (c_begin_while_stmt, c_finish_while_stmt_cond, c_finish_while_stmt,
52 c_begin_for_stmt, c_finish_for_stmt_init, c_finish_for_stmt_cond,
53 c_finish_for_stmt_incr, c_finish_for_stmt): Remove.
54 (c_finish_loop): New.
55 (c_finish_bc_stmt): New.
56 (c_finish_expr_stmt): Return the statement. Split out...
57 (c_process_expr_stmt): ... this. Don't add locus to error marks.
58 * gimplify.c (gimplify_cond_expr): Accept NULL type statements.
59 * tree-gimple.c (is_gimple_stmt): Likewise.
60 * tree-pretty-print.c (dump_generic_node <COND_EXPR>): Likewise.
61 (print_struct_decl): Delete empty compound statement.
62 * objc/objc-act.c (objc_build_throw_stmt): Return the statement.
63 * objc/objc-act.h: Update decl.
64
65 2004-06-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
66
67 * tree-pretty-print.c (dump_generic_node, case TYPE_DECL):
68 Don't look at TYPE_METHODS unless RECORD_TYPE or UNION_TYPE.
69
70 2004-06-24 Andrew Pinski <apinski@apple.com>
71
72 * objc-act.c (build_objc_method_call): Save the lookup_object
73 so we do not call it twice.
74
75 2004-06-24 Richard Henderson <rth@redhat.com>
76
77 * tree-ssa-dom.c (real_avail_expr_hash): New.
78 (tree_ssa_dominator_optimize): Use it in the htab.
79
80 2004-06-24 Frank Ch. Eigler <fche@redhat.com>
81
82 * tree-mudflap.c (mx_register_decls): Add third (type) argument
83 to synthesized __mf_unregister call.
84
85 2004-06-24 Roger Sayle <roger@eyesopen.com>
86
87 PR middle-end/15239
88 * expmed.c (expand_mult): Remove artificial restriction on the
89 maximum cost of a synthetic multiplication sequence.
90
91 2004-06-24 Eric Christopher <echristo@redhat.com>
92
93 * combine.c (distribute_notes): Don't delete sets to
94 global register variables.
95
96 2004-06-24 Jakub Jelinek <jakub@redhat.com>
97
98 * config/i386/i386.md (ffsdi2, clzdi2): New expanders.
99 (ffs_rex64): New splitter.
100 (ffsdi_1, ctzdi2, bsr_rex64): New instructions.
101
102 2004-06-24 Andrew Pinski <apinski@apple.com>
103
104 * config/darwin7.h (MATH_LIBRARY): Remove.
105 (LIB_SPEC): Define.
106 * config/darwin.h (MATH_LIBRARY): Define always to empty.
107 (LIB_SPEC): Only define if not already defined.
108
109 2004-06-24 Revital Eres <eres@il.ibm.com>
110
111 * loop-iv.c (iv_analyze, simple_set_p): Support for identifying
112 shifts of induction variable.
113 (iv_shift): New function.
114
115 2004-06-24 Richard Henderson <rth@redhat.com>
116
117 * gimplify.c (gimplify_body): Watch for body vanishing.
118
119 2004-06-24 Jeff Law <law@redhat.com>
120
121 * tree-ssa-dom.c (record_dominating_conditions): New function.
122 (dom_opt_finalize_block, get_eq_expr_value): Use it.
123
124 2004-06-24 Richard Sandiford <rsandifo@redhat.com>
125
126 * calls.c (shift_returned_value): Fix handling of non-integer
127 TYPE_MODEs.
128
129 2004-06-24 Ulrich Weigand <uweigand@de.ibm.com>
130
131 * c-decl.c (finish_function): Do not check for DEFAULT_MAIN_RETURN.
132 * system.h (DEFAULT_MAIN_RETURN): Poison.
133 * doc/tm.texi (DEFAULT_MAIN_RETURN): Remove documentation.
134
135 2004-06-24 Ben Elliston <bje@au.ibm.com>
136
137 * doc/cfg.texi (Edges): Fix typo.
138
139 2004-06-24 Paul Brook <paul@codesourcery.com>
140
141 * config/arm/arm.c (arm_output_epilogue): Remove excess checks.
142
143 2004-06-23 Andrew Pinski <apinski@apple.com>
144
145 PR middle-end/15988
146 * fold-const.c (fold_convert): Types which are compatible
147 can be converted with only a NOP_EXPR.
148
149 2004-06-24 Alan Modra <amodra@bigpond.net.au>
150
151 * calls.c (expand_call): Call INIT_CUMULATIVE_ARGS earlier, and
152 pass raw n_named_args to it.
153 * targhooks.c: Formatting.
154 (hook_bool_CUMULATIVE_ARGS_false): Correct comment.
155
156 2004-06-23 Richard Henderson <rth@redhat.com>
157
158 * c-gimplify.c (gimplify_decl_stmt): Push gimplify_one_sizepos inside
159 non-constant size check. Gimplify the type too. Tidy building
160 BUILT_IN_STACK_ALLOC call.
161
162 2004-06-23 Roger Sayle <roger@eyesopen.com>
163
164 * c-common.c (expand_unordered_cmp): Delete.
165 (expand_tree_builtin): Delete.
166 * c-common.h (expand_tree_builtin): Delete function prototype.
167 * c-typeck.c (build_function_call): Don't call expand_tree_builtin.
168
169 2004-06-23 Richard Henderson <rth@redhat.com>
170
171 * gimplify.c (gimplify_compound_lval): Don't set ARRAY_REF or
172 COMPONENT_REF variable fields unless they're non-constant.
173
174 2004-06-23 Robert Millan <robertmh@gnu.org>
175
176 * config.gcc: Merge kfreebsd*-gnu with linux* and add knetbsd*-gnu.
177 * config/i386/linux.h: Allow overriding of LINK_EMULATION,
178 DYNAMIC_LINKER and register names in sc_ structure.
179 * config/kfreebsd-gnu.h: New. kfreebsd-gnu followup for linux.h.
180 * config/i386/kfreebsd-gnu.h: New. Ditto for i386-kfreebsd-gnu.
181 * config/knetbsd-gnu.h: New. Ditto for knetbsd-gnu.
182 * config/i386/knetbsd-gnu.h: New. Ditto for i386-knetbsd-gnu.
183
184 * config/kfreebsdgnu.h: Remove.
185 * config/t-kfreebsd-gnu: Likewise.
186 * config/i386/kfreebsdgnu.h: Likewise.
187
188 2004-06-23 Eric Christopher <echristo@redhat.com>
189
190 * fold-const.c (make_range): Cleanup type checking through function.
191 Remove orig_type. Replace with checks to exp_type and arg0_type.
192 Clarify comment when converting from unsigned to signed.
193
194 2004-06-23 Eric Christopher <echristo@redhat.com>
195
196 * config/mips/mips.c (mips_use_dfa_pipeline_interface): Add R3000.
197 * config/mips/mips.md: Remove R3000 scheduling description.
198 * config/mips/3000.md: New file.
199
200 2004-06-23 Ulrich Weigand <uweigand@de.ibm.com>
201
202 * config/s390/s390-protos.h (s390_emit_compare): Add prototype.
203 (s390_emit_jump): Likewise.
204 * config/s390/s390.c (s390_emit_compare): New function.
205 (s390_emit_jump): Likewise.
206 * config/s390/s390.md ("beq", "bne", "bgt", "bgtu", "blt", "bltu",
207 "bge", "bgeu", "ble", "bleu", "bunordered", "bordered", "buneq",
208 "bungt", "bunlt", "bunge", "bunle", "bltgt"): Use s390_emit_compare
209 and s390_emit_jump.
210 ("cjump"): Remove, replace by ...
211 ("*cjump_64", "*cjump_31"): ... these insns. Improve length default.
212 ("icjump", "*icjump_64", "*icjump_31"): Likewise.
213 ("trap"): Fix type attribute.
214 ("conditional_trap"): Use s390_emit_compare.
215 ("doloop_si"): Remove, replace by ...
216 ("doloop_si64", "doloop_si31"): ... these new insn_and_split.
217 Merge existing splitter into insn_and_split. Improve length default.
218 ("doloop_di"): Merge with existing splitter into insn_and_split.
219 ("doloop"): Adapt.
220 ("jump"): Convert to expander. Use s390_emit_jump.
221 ("*jump_64", "*jump_31"): New insns. Improve length default.
222
223 2004-06-23 Wu Yongwei <adah@sh163.net>
224
225 * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
226 (__gthr_i486_lock_cmp_xchg): New inline assembly function.
227 (__GTHR_W32_InterlockedCompareExchange): New macro to choose a
228 suitable function for interlocked compare-and-exchange.
229 (__gthread_mutex_trylock): Use
230 __GTHR_W32_InterlockedCompareExchange.
231 (__gthread_mutex_init_function, __gthread_mutex_lock,
232 __gthread_mutex_trylock, __gthread_mutex_unlock): Adjust the
233 initial counter value to work correctly under Windows 95.
234 * config/i386/gthr-win32.c: Adjust include order.
235 Define __GTHREAD_I486_INLINE_LOCK_PRIMITIVES before including
236 gthr-win32.h.
237 (__gthr_win32_mutex_init_function, __gthr_win32_mutex_lock,
238 __gthr_win32_mutex_trylock, __gthr_win32_mutex_unlock): Adjust
239 to match inline versions in gthr-win32.h.
240
241 2004-06-23 David Edelsohn <edelsohn@gnu.org>
242
243 * config/rs6000/rs6000.c (rs6000_use_dfa_pipeline_interface): Delete.
244 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Redefine a hook_int_void_1.
245 (insvdi_rshift_rlwimi_p): New function.
246 * config/rs6000/rs6000.md (insvdi_internal2/3): New patterns.
247 (extendsfdf2): Convert to define_insn_and_split.
248 * config/rs6000/rs6000-protos.h (insvdi_rshift_rlwimi_p): Prototype.
249
250 2004-06-23 Andrew Pinski <apinski@apple.com>
251
252 * c-typeck.c (composite_type, <case ARRAY_TYPE>): Abort if we have
253 type qualifiers at all.
254 If both of the type domains are null and the new element type is
255 the same as one of the, return the one which the element type.
256 matches.
257 Do not call qualify_type on the new type.
258
259 2004-06-23 Ulrich Weigand <uweigand@de.ibm.com>
260
261 * config/s390/s390.h (DEFAULT_MAIN_RETURN): Remove.
262
263 2004-06-23 Roger Sayle <roger@eyesopen.com>
264
265 * convert.c (strip_float_extension): Skip both NOP_EXPR and
266 CONVERT_EXPR floating point extensions.
267
268 2004-06-23 Diego Novillo <dnovillo@redhat.com>
269
270 * Makefile.in (tree-vn.o): New.
271 (tree-ssa-pre.o): Don't depend on RTL_H.
272 * tree-dfa.c (find_referenced_vars): Don't call init_tree_ssa.
273 * tree-flow.h (struct var_ann_d): Remove field expr_set.
274 (add_to_value, expressions_equal_p, get_value_handle, vn_compute,
275 vn_lookup_or_add, vn_add, vn_lookup, vn_init, vn_delete): Declare.
276 * tree-optimize.c (execute_init_datastructures): New local function.
277 (pass_init_datastructures): New local variable.
278 (init_tree_optimization_passes): Sequence pass_init_datastructures.
279 * tree-pretty-print.c (MASK_POINTER): Remove.
280 (dump_generic_node): Handle VALUE_HANDLE.
281 * tree-ssa-pre.c: Move all value numbering routines to tree-vn.c.
282 Update callers to use new function names.
283 Use VALUE_HANDLE_ID and VALUE_HANDLE_EXPR_SET instead of
284 variable annotations.
285 * tree-ssa.c (init_tree_ssa): Call vn_init.
286 (delete_tree_ssa): Call vn_delete.
287 * tree-vn.c: New file.
288 * tree.c (tree_size): Handle VALUE_HANDLE.
289 (tree_node_structure): Likewise.
290 (iterative_hash_expr): Likewise.
291 * tree.def (VALUE_HANDLE): New code.
292 * tree.h (struct tree_value_handle): New.
293 (VALUE_HANDLE_ID): Define.
294 (VALUE_HANDLE_EXPR_SET): Define.
295 (enum tree_node_structure_enum): Add TS_VALUE_HANDLE.
296 (union tree_node): Add struct tree_value_handle.
297
298 2004-06-23 Andrew Pinski <apinski@apple.com>
299
300 * c-typeck.c (composite_type):
301 <case POINTER_TYPE>: Build a qualified type of
302 the new type.
303 <case ARRAY_TYPE>: Likewise.
304 <case FUNCTION_TYPE>: Likewise.
305
306 2004-06-23 Pat Haugen <pthaugen@us.ibm.com>
307
308 PR optimization/15633
309 * value-prof.c (divmod_fixed_value_transform): Compute probability
310 of taking optimal path and pass along to gen_ routine.
311 (mod_pow2_value_transform): Same.
312 (mod_subtract_transform): Same.
313 (gen_divmod_fixed_value): Add new probability parameter.
314 Add probability to newly created jump.
315 (gen_mod_pow2): Same.
316 (gen_mod_subtract): Same.
317
318 2004-06-23 Richard Earnshaw <rearnsha@arm.com>
319
320 * PR target/15948
321 * arm.md (bicsi3_cbranch): Add alternative to handle tying operands
322 one and two.
323
324 2004-06-23 Richard Earnshaw <rearnsha@arm.com>
325
326 PR target/15927
327 * arm.h (THUMB_SECONDARY_OUTPUT_RELOAD_CLASS): Don't need a secondary
328 reload if CLASS is BASE_REGS.
329
330 2004-06-23 Richard Sandiford <rsandifo@redhat.com>
331
332 * gengtype-yacc.y (option): Avoid use of non-constant struct
333 initializer.
334
335 2004-06-23 Nathan Sidwell <nathan@codesourcery.com>
336
337 * doc/extend.texi (Function Attributes): Alphabetize.
338
339 2004-06-23 Richard Henderson <rth@redhat.com>
340
341 * c-gimplify.c (gimplify_decl_stmt): Update gimplify_type_sizes call.
342 Use gimplify_and_add.
343 * c-typeck.c (c_finish_if_stmt): Use NULL instead of empty stmt.
344 * gimplify.c (build_and_jump, gimplify_exit_expr,
345 gimplify_init_constructor, gimplify_save_expr, gimple_push_cleanup,
346 gimplify_stmt, gimplify_expr): Likewise.
347 (shortcut_cond_expr): Handle NULL arms of COND_EXPR.
348 (gimplify_statement_list): Remove NULL entries.
349 (gimplify_to_stmt_list): Handle NULL results.
350 (gimplify_type_sizes): Add list_p argument.
351 (gimplify_one_sizepos): Don't use internal pre/post queue.
352 * tree-gimple.h (gimplify_type_sizes): Update.
353
354 2004-06-22 Eric Christopher <echristo@redhat.com>
355
356 * config/rs6000/rs6000.md (*insvsi_internal5/6): New patterns.
357
358 2004-06-22 Pat Haugen <pthaugen@us.ibm.com>
359
360 * cfghooks.c (make_forwarder_block): Decrement count on fallthru edge
361 when redirecting back edges.
362
363 * cfghooks.c (split_block): Call make_single_succ_edge so that edge
364 count/probability are set correctly.
365
366 2004-06-22 Richard Henderson <rth@redhat.com>
367
368 * c-typeck.c (emit_side_effect_warnings): Ignore error marks.
369 (c_finish_stmt_expr): Likewise.
370
371 * config/i386/i386.c (TARGET_STRUCT_VALUE_RTX): New.
372 (ix86_return_in_memory): Move SSE vector return warning ...
373 (ix86_struct_value_rtx): ... here. New.
374
375 2004-06-22 Richard Henderson <rth@redhat.com>
376
377 * tree.def (VTABLE_REF): Remove.
378 (OBJ_TYPE_REF): New.
379 (TRY_CATCH_EXPR, TRY_FINALLY_EXPR): Set type 's'.
380 * expr.c (expand_expr_real_1): Replace VTABLE_REF with OBJ_TYPE_REF.
381 * fold-const.c (non_lvalue): Likewise.
382 * gimplify.c (gimplify_expr): Likewise.
383 (gimplify_call_expr): Use is_gimple_call_addr.
384 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): New.
385 * langhooks.h (fold_obj_type_ref): New.
386 * tree-gimple.c (is_gimple_call_addr): New.
387 * tree-gimple.h (is_gimple_call_addr): Declare.
388 * tree-inline.c (inlinable_function_p): Fix merge error.
389 (estimate_num_insns_1): Replace VTABLE_REF with OBJ_TYPE_REF.
390 * tree-pretty-print.c (dump_generic_node): Likewise.
391 (print_call_name): Handle OBJ_TYPE_REF.
392 * tree-ssa-ccp.c (fold_stmt): Fold OBJ_TYPE_REF.
393 * tree-ssa-operands.c (get_expr_operands): Handle OBJ_TYPE_REF.
394 * tree.h (OBJ_TYPE_REF_EXPR): New.
395 (OBJ_TYPE_REF_OBJECT, OBJ_TYPE_REF_TOKEN): New.
396 * doc/c-tree.texi (VTABLE_REF): Remove.
397 * objc/objc-act.c (build_objc_method_call): Build an OBJ_TYPE_REF.
398
399 2004-06-22 Richard Henderson <rth@redhat.com>
400
401 PR middle-end/16026
402 * function.c (assign_parms): Don't abort for overaligned PARALLEL.
403
404 2004-06-22 Joseph S. Myers <jsm@polyomino.org.uk>
405
406 * Makefile.in (distclean): Don't try to remove empty directories.
407
408 2004-06-22 Richard Sandiford <rsandifo@redhat.com>
409
410 PR target/15869
411 * config/mips/mips.c (mips_avoid_hazards): Call split_all_insns_noflow.
412
413 2004-06-22 Alexandre Oliva <aoliva@redhat.com>
414
415 * config/mn10300/mn10300.md (movdi, movdf): Use high/low for movu
416 operands.
417
418 2004-06-22 Dale Johannesen <dalej@apple.com>
419
420 * config/rs6000/rs6000.c (legitimate_offset_address_p): Make
421 global, rename rs6000_legitimate_offset_address_p.
422 (rs6000_legitimate_address_p): Adjust calls to it.
423 (lmw_operation): Ditto.
424 (stmw_operation): Ditto.
425 * config/rs6000/rs6000-protos.h: Declare it.
426 * config/rs6000/rs6000.md (*movdf_hardfloat32): Use it
427 instead of offsettable_memref_p.
428
429 2004-06-22 Dale Johannesen <dalej@apple.com>
430
431 * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
432 [reg+reg] mode for TFmode memory accesses.
433 (rs6000_eliminate_indexed_memrefs): New.
434 (rs6000_emit_move): Call preceding for TImode and TFmode.
435
436 2004-06-22 Paolo Bonzini <bonzini@gnu.org>
437
438 * tree-cfg.c (pass_warn_function_return): It needs
439 CFG, not SSA.
440
441 2004-06-22 Nathan Sidwell <nathan@codesourcery.com>
442
443 * doc/invoke.texi (Machine Dependent Options): Alphabetize.
444 (Submodel Options): Likewise.
445
446 2004-06-21 Andrew Pinski <apinski@apple.com>
447
448 Radar #: 3701874
449 * c-decl.c (push_file_scope): Return early if we already
450 have a file scope.
451
452 2004-06-21 Geoffrey Keating <geoffk@apple.com>
453
454 * c-opts.c (c_common_handle_option): Handle -fpch-preprocess.
455 * c-common.h (flag_pch_preprocess): Declare.
456 (c_common_pch_pragma): Likewise.
457 * c-common.c (flag_pch_preprocess): New.
458 * c-pch.c (c_common_read_pch): Support -fpreprocess-only.
459 (c_common_pch_pragma): New.
460 * c-ppoutput.c (cb_read_pch): New.
461 (init_pp_output): Support -fpch-preprocess.
462 * c-pragma.c (init_pragma): Support #pragma GNUC pch_preprocess.
463 * c.opt (fpch-preprocess): New.
464 * gcc.c (cpp_options): When save-temps, pass -fpch-preprocess.
465 * doc/cppopts.texi: Document -fpch-preprocess.
466 * doc/invoke.texi (Precompiled Headers): Mention that
467 -fpreprocessed is safe for PCH. Mention that if an option is
468 listed as safe that doesn't mean it does what you expect.
469
470 2004-06-22 Ben Elliston <bje@au.ibm.com>
471
472 * tree-ssa.c (ssa_redirect_edge): Correct leading comment.
473
474 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
475
476 * Makefile.in (gimplify.o): Add cgraph.h.
477 * alias.c (adjust_offset_for_component_ref): Use
478 component_ref_field_offset.
479 * c-decl.c (build_array_declarator): Add news args for ARRAY_REF.
480 * c-gimplify.c (gimplify_expr_stmt): Use alloc_stmt_list.
481 (gimplify_decl_stmt): Call gimplify_type_sizes for type.
482 For decl, call gimplify_one_sizepos and use statement list.
483 (gimplify_compound_literal_expr): New arg PRE_P.
484 Add statement to PRE_P list and return DECL.
485 (c_gimplify_expr, case COMPOUND_LITERAL_EXPR): Add arg to
486 gimplify_compound_literal_expr.
487 * c-tree.h (getdecls): Deleted.
488 * c-typeck.c (build_component_ref): Add operand for COMPONENT_REF.
489 (build_array_ref): Add two operands for ARRAY_REF.
490 (build_unary_op): Set TREE_INVARIANT and TREE_CONSTANT for
491 COMPOUND_LITERAL_EXPR.
492 * coverage.c (tree_coverage_counter_ref): Add new operands
493 for ARRAY_REF.
494 * emit-rtl.c (component_ref_for_mem_expr): Add new operand
495 for COMPONENT_REF.
496 (set_mem_attributes_minus_bitpos): Use array_ref_low_bound
497 and array_ref_element_size.
498 (widen_memory_access):Use component_ref_field_offset.
499 * explow.c (update_nonlocal_goto_save_area): Add two operands
500 for ARRAY_REF.
501 * expr.c (array_ref_element_size, array_ref_low_bound): New functions.
502 (component_ref_field_offset): Likewise.
503 (get_inner_reference): Use them.
504 (expand_expr_real_1, case ARRAY_REF): Use array_ref_low_bound.
505 * fold-const.c (fold, case EQ_EXPR): Properly handle DECL_SIZE.
506 (fold_read_from_constant_string): Use array_ref_low_bound.
507 Verify that result is a character type.
508 (build_fold_indirect_ref): Add two operands for ARRAY_REF.
509 * function.c (expand_function_start): Likewise.
510 * gimple-low.c (expand_var_p): Delete duplicated line.
511 * gimplify.c: Add static decls for local functions.
512 (cgraph.h): Now included.
513 (create_tmp_var): Remove check for ARRAY_TYPE.
514 (copy_if_shared_r): Look at bounds and sizes of types.
515 (build_and_jump): Return alloc_stmt_list instead of build_empty_stmt.
516 (gimplify_exit_expr, shortcut_cond_expr): Likewise.
517 (gimplify_save_expr, gimple_push_cleanup): Likewise.
518 (gimplify_init_constructor): Likewise.
519 WANT_VALUE now bool.
520 If empty list with no result wanted, return GS_UNHANDLED.
521 Add additional operands for ARRAY_REF and COMPONENT_REF.
522 (canonicalize_component_ref): Convert to &array[L].
523 (gimplify_array_ref_to_plus): Use array_ref_element_size and
524 array_ref_lower_bound.
525 (build_addr_expr_with_type, build_addr_expr): New functions.
526 (gimplify_compound_lval): WANT_LVALUE now bool.
527 Major rework to allow handle_component_p and initialize and
528 gimplify new operands for ARRAY_REF, ARRAY_RANGE_REF, and
529 COMPONENT_REF.
530 (gimplify_array_ref): Deleted.
531 (gimplify_self_mod_expr): WANT_VALUE now bool.
532 (gimplify_modify_expr): Gimplify to_p and from_p later.
533 Factor out code into gimplify_modify_expr_rhs and call twice.
534 Move variable-size code earlier and handle PLACEHOLDER_EXPR.
535 (gimplify_modify_expr_rhs, gimplify_variable_sized_compare): New fns.
536 (gimplify_addr_expr, case VIEW_CONVERT_EXPR): New case.
537 (gimplify_expr, case ARRAY_REF): Delete special case.
538 Instead handle like COMPONENT_REF; also do ARRAY_RANGE_REF,
539 IMAGPART, and REALPART the same way.
540 (gimplify_expr, case VIEW_CONVERT_EXPR): New case.
541 (gimplify_expr): Call gimplify_variable_sized_compare if applicable.
542 Call alloc_stmt_list instead of build_empty_stmt.
543 Deal with _REF that's volatile.
544 (gimplify_type_sizes, gimplify_one_sizepos): New functions.
545 (unshare_body, unvisit_body): New functions.
546 (gimplify_body): Call them.
547 * stmt.c (expand_stack_alloc): Don't expand TYPE_MAX_VALUE.
548 * stor-layout.c (get_pending_sizes): Don't change SAVE_EXPR_CONTEXT.
549 * tree-alias-common.c (get_alias_var): Also skip ARRAY_RANGE_REF.
550 * tree-cfg.c (tree_node_can_be_shared): Treat ARRAY_RANGE_REF
551 like ARRAY_REF.
552 (verify_expr, case ADDR_EXPR): Use handled_component_p.
553 * tree-dfa.c (get_virtual_var): Likewise.
554 * tree-dump.c (dequeue_and_dump, case COMPONENT_REF, ARRAY_REF):
555 New cases to dump new operands; likewise for ARRAY_RANGE_REF.
556 * tree-eh.c (tree_could_trap, case ARRAY_RANGE_REF): Like ARRAY_REF.
557 * tree-gimple.c (is_gimple_addr_expr_arg): Add ARRAY_RANGE_REF
558 and INDIRECT_REF.
559 (get_base_address): Use handled_component_p.
560 * tree-gimple.h (gimplify_type_sizes, gimplify_one_sizepos): New.
561 * tree-inline.c (walk_tree): Walk more things for types and decls.
562 * tree-mudflap.c (mf_build_check_statement_for): Add new operands
563 for ARRAY_REF and COMPONENT_REF.
564 (mx_xform_derefs_1): Clean up usage of decl sizes.
565 * tree-nested.c (build_addr): Use handled_component_p.
566 (walk_stmts, case CATCH_EXPR): Add missing "break".
567 (get_static_chain, get_frame_field): Add new operand for COMPONENT_REF.
568 (finalize_nesting_tree_1): Likewise.
569 (convert_nonlocal_reference, case ARRAY_RANGE_REF): Like ARRAY_REF
570 and process additional operands.
571 (convert_local_reference): Likewise.
572 * tree-outof-ssa.c (discover_nonconstant_array_refs_r): Treat
573 ARRAY_RANGE_REF similarly to ARRAY_REF.
574 * tree-pretty-print.c (dump_generic_node, case QUAL_UNION_TYPE): Handle
575 like RECORD_TYPE.
576 (dump_generic_node, case COMPONENT_REF): Print offset operand.
577 (dump_generic_node, case ARRAY_RANGE_REF): Treat like ARRAY_REF
578 and print lower bound and element size for both.
579 (op_prio, case ARRAY_RANGE_REF): Like ARRAY_REF.
580 * tree-sra.c (csc_build_component_ref): Add new operand.
581 (scalarize_call_expr): Use get_base_address.
582 * tree-ssa-ccp.c (widen_bitfield): Clean up size handling.
583 (maybe_fold_offset_to_array_ref): Rework to handle input having an
584 ARRAY_REF, refine handling of lower bound, and add new operands
585 for ARRAY_REF.
586 (maybe_fold_to_component_ref): Add new operand for COMPONENT_REF.
587 (maybe_fold_stmt_indirect): Only fold *&B to B if types match.
588 (maybe_fold_stmt_addition): Only handle constant lower bound.
589 * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
590 Treat ARRAY_REF and ARRAY_RANGE_REF the same; look at extra operands.
591 Look at new offset operand of COMPONENT_REF.
592 * tree-ssa.c (set_is_used): Use handled_component_p.
593 * tree.c (substitute_in_expr, case COMPONENT_REF): Add new operand.
594 (stabilize_reference, case COMPONENT_REF): Likewise.
595 (stabilize_reference, case ARRAY_RANGE_REF, ARRAY_REF): Similarly.
596 (recompute_tree_invariant_for_addr_expr): Completely rework to
597 be more precise. Also set TREE_SIDE_EFFECTS.
598 (build1_stat, case ARRAY_EXPR): Don't handle TREE_SIDE_EFFECTS here.
599 (build2_stat, build3_stat, build4_stat): For references,
600 propagate TREE_THIS_VOLATILE.
601 (get_unwidened): Add new operand for COMPONENT_REF.
602 (get_narrower): Likewise; use host_integerp for DECL_SIZE.
603 * tree.def (COMPONENT_REF): Add new operand.
604 (ARRAY_REF, ARRAY_RANGE_REF): Add two new operands.
605 * tree.h (array_ref_element_size, array_ref_low_bound): New decls.
606 (component_ref_field_offset): Likewise.
607 * config/alpha/alpha.c (alpha_va_start): Add new op for COMPONENT_REF.
608 (alpha_gimplify_va_arg): Likewise.
609 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
610 * config/i860/i860.c (i860_va_start, i860_va_arg): Likewise.
611 * config/iq2000/iq2000.c (iq2000_va_arg): Likewise.
612 * config/mips/mips.c (mips_va_start, mips_va_arg): Likewise.
613 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg):
614 Likewise.
615 * config/s390/s390.c (s390_va_start, s390_gimplify_va_arg): Likewise.
616 * config/sh/sh.c (sh_va_start, sh_va_arg): Likewise.
617 * config/stormy16/stormy16.c (xstormy1_expand_builin_va_start):
618 Likewise.
619 (xstormy16_expand_builtin_va_arg): Likewise.
620 * config/xtensa/xtensa.c (xtensa_va_start, xtensa_va_arg): Likewise.
621 * objc/objc-act.c (generate_static_references): Likewise.
622 (generate_strings, build_method_prototype_list_template): Likewise.
623 (generate_protocol_list): Likewise.
624
625 2004-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
626
627 PR rtl-optimization/14782
628 * pa.c (emit_move_sequence): Use SFmode for 4-byte modes when doing
629 the address checks for secondary reloads for loads from and stores
630 to floating-point registers.
631 * pa.h (EXTRA_CONSTRAINT, case T): Use SFmode for 4-byte modes
632 in the address check. Move work around for ELF32 targets to
633 GO_IF_LEGITIMATE_ADDRESS.
634 (GO_IF_LEGITIMATE_ADDRESS): Require constant offsets to be
635 correctly aligned for DImode loads and stores. Don't allow long
636 SFmode displacements on ELF32.
637
638 2004-06-21 Richard Henderson <rth@redhat.com>
639
640 PR rtl-opt/16114
641 * cse.c (merge_equiv_classes): Also rehash in response to
642 delete_reg_equiv changes.
643 (rehash_using_reg): Don't exclude REGs from rehashing.
644
645 2004-06-21 Richard Henderson <rth@redhat.com>
646
647 * c-common.def (RETURN_STMT): Remove.
648 * c-common.h (RETURN_STMT_EXPR): Remove.
649 (c_expand_return, build_return_stmt): Remove.
650 (c_common_stmt_codes): Remove RETURN_STMT.
651 * c-dump.c (dump_next_stmt): Remove.
652 (c_dump_tree): Remove RETURN_STMT.
653 * c-decl.c (finish_function): Use c_finish_return.
654 * c-parse.in (stmt): Likewise.
655 * c-gimplify.c (gimplify_return_stmt): Remove.
656 (c_gimplify_expr): Remove RETURN_STMT.
657 * c-pretty-print.c (pp_c_statement): Likewise.
658 * c-semantics.c (build_return_stmt): Remove.
659 * c-tree.h (c_finish_return): Declare.
660 * c-typeck.c (c_finish_return): Rename from c_expand_return.
661 Return void. Build RETURN_EXPR directly.
662 * tree-dump.h (dump_next_stmt): Remove.
663
664 2004-06-21 Zack Weinberg <zack@codesourcery.com>
665
666 * c-decl.c (start_function): Don't call make_decl_rtl. Don't
667 look at TREE_ADDRESSABLE of symbol name.
668
669 2004-06-21 Kelley Cook <kcook@gcc.gnu.org>
670
671 PR target/15551
672 * config/i386/i386.md: Change UNSPEC_STACK_PROBE to UNSPECV_STACK_PROBE.
673 (allocate_stack_worker): Make unspec_volatile.
674 (allocate_stack_worker_rex64): Likewise.
675 (allocate_stack_worker_postreload): Likewise.
676 (allocate_stack_worker_rex64_postreload): Likewise.
677
678 2004-06-21 Daniel Berlin <dberlin@dberlin.org>
679
680 Fix PR optimization/15982
681 * tree-ssa-pre.c: Update a few comments and todos to
682 reflect constants change.
683 (get_value_handle): Constants now value number to themselves.
684 (lookup): Constants lookup to themselves.
685 (add_to_value): Adjust to always be on.
686 (set_contains_value): Adjust for constants change.
687 (find_leader): Ditto.
688 (phi_translate): 'r' nodes are never ANTIC right now.
689 (valid_in_set): Ditto.
690 (get_expr_set): New function.
691 (find_or_generate_expression): New function, broken out from
692 insert_aux.
693 (create_expression_by_pieces): Ditto, plus additional
694 machinery to handle complex values.
695 (compute_avail): Remove dead RETURN_EXPR handling.
696
697 2004-06-21 Steven Bosscher <stevenb@suse.de>
698
699 * config/i386/i386.c: Include insn-codes.h
700 * config/i386/i386.h (FLAGS_REG, FPSR_REG, DIRFLAG_REG): Don't
701 define here.
702 * config/i386/i386.md (BP_REG, SP_REG, FLAGS_REG, FPSR_REG,
703 DIRFLAG_REG): New define_constants. Use them everywhere.
704
705 2004-06-21 Kaz Kojima <kkojima@gcc.gnu.org>
706
707 * config/sh/t-linux (MULTILIB_OPTIONS): Remove.
708
709 2004-06-21 J"orn Rennecke <joern.rennecke@superh.com>
710
711 * sh.h (SUPPORT_SH1, SUPPORT_SH2E, SUPPORT_SH4): Conditionanlly define.
712 (SUPPORT_SH4_SINGLE): Likewise.
713 (TARGET_SWITCHES): Break out switches for cpu subtargets:
714 (TARGET_SWITCH_SH1, TARGET_SWITCH_SH2, TARGET_SWITCH_SH2E): Define.
715 (TARGET_SWITCH_SH3, TARGET_SWITCH_SH3E): Likewise.
716 (TARGET_SWITCH_SH4_SINGLE_ONLY, TARGET_SWITCH_SH4_SINGLE): Likewise.
717 (TARGET_SWITCH_SH4_NOFPU, TARGET_SWITCH_SH4): Likewise.
718 (TARGET_SWITCH_SH5_64MEDIA, TARGET_SWITCH_SH5_64MEDIA_NOFPU): Likewise.
719 (TARGET_SWITCHES_SH5_32MEDIA): Likewise.
720 (TARGET_SWITCHES_SH5_32MEDIA_NOFPU): Likewise.
721 (SELECT_SH5_64, SELECT_SH5_64_NOFPU): Rename to:
722 (SELECT_SH5_64MEDIA, SELECT_SH5_64MEDIA_NOFPU)
723 (SELECT_SH5_32, SELECT_SH5_32_NOFPU): Rename to:
724 (SELECT_SH5_32MEDIA, SELECT_SH5_32MEDIA_NOFPU).
725 (SH_MULTILIB_CPU_DEFAULT, MULTILIB_DEFAULTS): Define.
726 (ASM_ISA_SPEC_DEFAULT, ASM_ISA_DEFAULT_SPEC): Likewise.
727 * sh64.h (ASM_SPEC, LINK_DEFAULT_CPU_EMUL): Don't redefine.
728 (TARGET_DEFAULT): Likewise.
729 * config/sh/t-elf: Amend comment.
730 * config/sh/t-1e, config/sh/t-mlib-sh1: New files.
731 * config/sh/t-mlib-sh2, config/sh/t-mlib-sh2e: Likewise.
732 * config/sh/t-mlib-sh3, config/sh/t-mlib-sh3e: Likewise.
733 * config/sh/t-mlib-sh4, config/sh/t-mlib-sh4-nofpu: Likewise.
734 * config/sh/t-mlib-sh4-single: Likewise.
735 * config/sh/t-mlib-sh4-single-only: Likewise.
736 * config/sh/t-mlib-sh5-32media: Likewise.
737 * config/sh/t-mlib-sh5-32media-nofpu: Likewise.
738 * config/sh/t-mlib-sh5-64media: Likewise.
739 * config/sh/t-mlib-sh5-64media-nofpu: Likewise.
740 * config/sh/t-mlib-sh5-compact: Likewise.
741 * config/sh/t-mlib-sh5-compact-nofpu: Likewise.
742 * config/sh/t-sh: (MULTILIB_ENDIAN): Add mb.
743 (MULTILIB_CPUS): Define.
744 (MULTILIB_OPTIONS): Use MULTILIB_CPUS.
745 (MULTILIB_MATCHES): Use some shell code to calculate it.
746 (MULTILIB_EXCEPTIONS): Change to ml/m1.
747 * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Use ASM_ISA_DEFAULT_SPEC.
748 * config/sh/netbsd-elf.h: Update code which sets TARGET_VERSION_CPU.
749 (LINK_DEFAULT_CPU_EMUL): Don't redefine.
750 (NO_PROFILE_COUNTERS): Define to 1.
751 * config/sh/t-netbsd (MULTILIB_OPTIONS): Don't append to.
752 (MULTILIB_DIRNAMES, MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Don't zap.
753 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Don't redefine.
754 (MULTILIB_MATCHES): Don't zap.
755 (MULTILIB_DIRNAMES): Use MULTILIB_RAW_DIRNAMES.
756 * config/sh/t-sh64 (MULTILIB_OPTIONS): Don't redefine.
757 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Don't zap.
758 (MULTILIB_RAW_DIRNAMES): Define.
759 (MULTILIB_DIRNAMES): Use it.
760 * config.gcc: Also set cpu_type / need_64bit_hwint for sh[be]*-*-*.
761 (sh*linux configurations): Merge into:
762 (sh*elf / sh*kaos configurations). Support --with-endian, --with-cpu,
763 --with-multilib-list options. Support sh-superh-elf configuration.
764 (sh*-netbsd*): Use SELECT_SH* macros.
765 (supported_defaults): sh[123456ble]-*-* | sh-*-* support "cpu".
766 Merge sh*-*-netbsd* configurations into sh-elf configurations.
767 * config/sh/t-netbsd-sh5, config/sh/t-be, config/sh/t-le: Delete.
768 * config/sh/t-monolib: Likewise.
769
770 2004-06-21 Paul Brook <paul@codesourcery.com>
771
772 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Soft-float need
773 not imply FPA.
774
775 2004-06-21 Roger Sayle <roger@eyesopen.com>
776
777 * fold-const.c (operand_equal_p): Pass flags in recursive calls for
778 binary and relational operations. Add support for TRUTH_ANDIF_EXPR,
779 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR.
780 * tree.c (commutative_tree_code): Also list UNORDERED_EXPR,
781 ORDERED_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR
782 and TRUTH_XOR_EXPR.
783
784 2004-06-21 Paolo Bonzini <bonzini@gnu.org>
785
786 * rtlanal.c (may_trap_p): Mark LTGT as trapping.
787
788 2004-06-21 Joseph S. Myers <jsm@polyomino.org.uk>
789
790 * tree-alias-common.h (struct tree_alias_ops): Change ip and
791 ip_partial to unsigned int.
792
793 2004-06-21 Richard Henderson <rth@redhat.com>
794
795 * c-common.c (verify_sequence_points): Export.
796 (c_expand_expr_stmt): Move to c-typeck.c.
797 * c-common.h (c_expand_expr_stmt): Remove.
798 (verify_sequence_points): Declare.
799 * c-mudflap.c (mflang_flush_calls): Use c_finish_expr_stmt.
800 * c-parse.in (for_init_stmt, stmt): Likewise.
801 * c-tree.h (c_finish_expr_stmt): Declare.
802 (c_tree_expr_nonnegative_p): Remove.
803 * c-typeck.c (c_tree_expr_nonnegative_p): Remove.
804 (build_conditional_expr, build_binary_op): Use tree_expr_nonnegative_p.
805 (emit_side_effect_warnings): New.
806 (c_finish_expr_stmt): Rename from c_expand_expr_stmt. Use it.
807 (c_finish_stmt_expr): Work without EXPR_STMT. Handle eh regions.
808 Use emit_side_effect_warnings.
809 (push_cleanup): Copy STATEMENT_LIST_STMT_EXPR.
810 * fold-const.c (tree_expr_nonnegative_p): Handle TARGET_EXPR.
811 * gimplify.c (gimplify_modify_expr): Don't discard TARGET_EXPR
812 with void initializer.
813 (gimplify_target_expr): Handle void BIND_EXPR initializer.
814 * tree-inline.c (estimate_num_insns_1): Fix type lookup for
815 INIT_EXPR and MODIFY_EXPR.
816 * objc/objc-act.c (build_module_descriptor): Use add_stmt
817 instead of c_expand_expr_stmt.
818
819 2004-06-21 Paolo Bonzini <bonzini@gnu.org>
820
821 * fold-const.c (fold_cond_expr_with_comparison):
822 New function, extracted from fold.
823 (fold): Extract code to fold A op B ? A : C, use
824 it to fold A op B ? C : A. Really optimize
825 A & N ? N : 0 where N is a power of two. Avoid
826 relying on canonicalization and recursion for
827 foldings of COND_EXPR to happen.
828
829 2004-06-20 David Ayers <d.ayers@inode.at>
830
831 * objc/objc-act.h (get_object_reference): Rename to
832 get_protocol_reference.
833 (super_type): Rename to objc_super_type.
834 (selector_type): Rename to objc_selector_type.
835 (id_type): Rename to objc_id_type.
836 (instance_type): Rename to objc_instance_type.
837 (protocol_type): Rename to objc_protocol_type.
838 (IS_ID): Update reference to id_type.
839 * objc/objc-act.c (get_object_reference): Rename to
840 get_protocol_reference; add documentation; update references to
841 id_type.
842 (lookup_method_in_protocol_list): Rename class_meth to
843 is_class; add documentation.
844 (finish_message_expr): Rename is_class to class_tree.
845 (synth_module_prologue, objc_is_object_ptr, objc_build_exc_ptr,
846 next_sjlj_build_try_catch_finally, objc_begin_catch_clause,
847 build_next_objc_exception_stuff, get_arg_type_list,
848 build_objc_method_call): Update references to id_type.
849 (synth_module_prologue, build_objc_symtab_template,
850 build_selector_reference_decl, build_selector,
851 build_selector_translation_table, build_typed_selector_reference,
852 get_arg_type_list, synth_self_and_ucmd_args, get_arg_type_list,
853 synth_self_and_ucmd_args): Update references to selector_type.
854 (build_private_template, build_ivar_reference): Update references
855 to instance_type.
856 (synth_module_prologue, build_protocol_reference,
857 build_protocol_expr, start_protocol): Update references to
858 protocol_type.
859 (synth_module_prologue, get_arg_type_list, build_objc_method_call):
860 Update references to super_type.
861 * c-parse.in: (typespec_nonreserved_nonattr): Update
862 references to get_object_reference.
863 * objc/objc-tree.def: Add C mode identifier sequence.
864
865 2004-06-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
866
867 * loop-invariant.c: New file.
868 * Makefile.in (loop-invariant.o): New.
869 * cfgloop.h (global_cost_for_size, init_set_costs,
870 move_loop_invariants): Declare.
871 * cfgloopanal.c (seq_cost, init_set_costs, global_cost_for_size): New
872 functions.
873 (avail_regs, res_regs, small_cost, pres_cost, spill_cost): New
874 variables.
875 * common.opt (floop-optimize2, fmove-loop-invariants): New options.
876 * loop-init.c (loop_optimizer_init): Call init_set_costs.
877 * passes.c (rest_of_handle_loop2): Call move_loop_invariants.
878 (rest_of_compilation): Check flag_loop_optimize2.
879 * toplev.c (process_options): Handle flag_loop_optimize2.
880 * doc/invoke.texi (-floop-optimize2, -fmove-loop-invariants): Document.
881 * doc/passes.texi (loop-invariant.c): Document.
882
883 2004-06-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
884
885 * tree-ssa-pre.c (compute_antic): Keep BB_VISITED flag zeroed.
886
887 2004-06-20 Richard Henderson <rth@redhat.com>
888
889 * stmt.c (warn_if_unused_value): Add locus argument.
890 * tree.h (warn_if_unused_value): Update decl.
891 * c-typeck.c (internal_build_compound_expr): Update call.
892 * c-gimplify.c (gimplify_expr_stmt): Likewise.
893
894 2004-06-20 Andrew Pinski <pinskia@physics.uc.edu>
895
896 PR middle-end/16089
897 * builtins.c (entry_of_function): Move to ...
898 * cfgrtl.c (entry_of_function): Here and make non-static.
899 * integrate.c (emit_initial_value_sets): Use entry_of_function.
900 * rtl.h (entry_of_function): Prototype.
901
902 2004-06-20 Roger Sayle <roger@eyesopen.com>
903
904 * config/i386/i386.c (pentium4_cost): Increase "lea" cost from 1 to 3.
905 (ix86_rtx_costs) <ASHIFT, PLUS>: Consider ix86_cost->lea even when
906 TARGET_DECOMPOSE_LEA.
907
908 2004-06-20 Richard Henderson <rth@redhat.com>
909
910 * c-common.h (add_decl_stmt): Move to cp-tree.h.
911 * c-decl.c (finish_decl): Don't use add_decl_stmt.
912 * c-parse.in: Likewise.
913 * c-gimplify.c (gimplify_expr_stmt): Don't build CLEANUP_POINT_EXPR.
914 (gimplify_c_loop, gimplify_return_stmt, gimplify_decl_stmt): Likewise.
915 * c-semantics.c (add_decl_stmt): Move to cp/semantics.c.
916
917 2004-06-20 Richard Henderson <rth@redhat.com>
918
919 * c-common.def (IF_STMT, CLEANUP_STMT): Move to cp-tree.def.
920 * c-common.h (IF_COND, THEN_CLAUSE, ELSE_CLAUSE, CLEANUP_BODY,
921 CLEANUP_EXPR, CLEANUP_DECL): Move to cp-tree.h.
922 (c_common_stmt_codes): Remove IF_STMT, CLEANUP_STMT.
923 * c-dump.c (c_dump_tree): Move IF_STMT, CLEANUP_STMT to cp_dump_tree.
924 * c-pretty-print.c (pp_c_statement): Similarly.
925 * c-gimplify.c (gimplify_cleanup_stmt, gimplify_cleanup_stmts,
926 gimplify_if_stmt): Move to cp-gimplify.c.
927 (c_genericize, c_gimplify_expr): Don't call them.
928 * c-semantics.c (push_cleanup): Move to cp/semantics.c.
929 * c-typeck.c (push_cleanup): New.
930 (c_begin_if_stmt, c_finish_if_cond, c_finish_then, c_finish_else,
931 c_finish_if_stmt): Use COND_EXPR.
932 * tree.h (CLEANUP_EH_ONLY): Update documentation.
933
934 2004-06-20 Zack Weinberg <zack@codesourcery.com>
935
936 * c-common.h (has_c_linkage): New interface.
937 * c-cppbuiltin.c: Include target.h.
938 (c_cpp_builtins): Define __PRAGMA_REDEFINE_EXTNAME and
939 __PRAGMA_EXTERN_PREFIX when appropriate.
940 * c-pragma.c: Include target.h.
941 Document clarified semantics of symbol-renaming #pragmas.
942 (handle_pragma_redefine_extname, handle_pragma_extern_prefix)
943 (maybe_apply_renaming_pragma): Rewrite according to clarified
944 semantics. Always recognize, but do not necessarily execute.
945 (init_pragma): Unconditionally register symbol-renaming pragmas.
946 * system.h: Poison HANDLE_PRAGMA_REDEFINE_EXTNAME
947 and HANDLE_PRAGMA_EXTERN_PREFIX.
948 * target.h (struct gcc_target): Add handle_pragma_redefine_extname
949 and handle_pragma_extern_prefix flags.
950 * target-def.h: Add defaults for TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME
951 and TARGET_HANDLE_PRAGMA_EXTERN_PREFIX.
952 * Makefile.in (c-pragma.o, c-cppbuiltin.o): Update dependencies.
953 * config/sol2.h: Define TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME,
954 not HANDLE_PRAGMA_REDEFINE_EXTNAME.
955 (TARGET_OS_CPP_BUILTINS): No need to define __PRAGMA_REDEFINE_EXTNAME.
956 (TRANSFER_FROM_TRAMPOLINE): Prototype mprotect.
957 * config/alpha/osf.h: Define TARGET_HANDLE_PRAGMA_EXTERN_PREFIX,
958 not HANDLE_PRAGMA_EXTERN_PREFIX.
959 (TARGET_OS_CPP_BUILTINS): No need to define __PRAGMA_EXTERN_PREFIX.
960 * doc/extend.texi (Solaris Pragmas, Tru64 Pragmas): Combine
961 into one section "Symbol-Renaming Pragmas"; clarify; document
962 adjusted semantics.
963
964 * builtins.c (expand_builtin): Do not issue error for a builtin
965 with no special case code and no DECL_ASSEMBLER_NAME; just do the
966 library call.
967 * c-decl.c (builtin_function): Don't call make_decl_rtl.
968 * c-objc-common.c (has_c_linkage): Stub implementation.
969 * cgraphunit.c (cgraph_expand_function)
970 (cgraph_remove_unreachable_nodes): Don't clear DECL_ARGUMENTS.
971
972 2004-06-19 Roger Sayle <roger@eyesopen.com>
973
974 * builtins.c (fold_builtin_unordered_cmp): Take an EXP argument
975 instead of both an ARGLIST and a result TYPE. Handle these C99
976 comparison functions as "polymorphic" builtins. Also handle
977 lowering of BUILT_IN_ISUNORDERED to an UNORDERED_EXPR tree node.
978 (fold_builtin_1): Update calls to fold_builtin_unordered_cmp.
979 Move handling of BUILT_IN_ISUNORDERED from here to there.
980
981 2004-06-19 Richard Henderson <rth@redhat.com>
982
983 * c-common.c, c-common.h (lang_gimplify_stmt): Remove.
984 * c-gimplify.c: Remove unnecessary prototypes.
985 (c_gimplify_stmt): Merge into ...
986 (c_gimplify_expr): ... here. Don't play with prep_stmt.
987 * c-semantics.c (prep_stmt): Remove.
988 * gimplify.c (annotate_one_with_locus): Break out from ...
989 (annotate_all_with_locus): ... here.
990 (gimplify_expr): Add locus to expressions even if pre/post queues
991 are not present.
992
993 2004-06-19 Richard Henderson <rth@redhat.com>
994
995 PR target/15941
996 * function.c (assign_parms): If not padding upward or intentionally
997 forcing upward padding, take offset_rtx into account when determining
998 the alignment for stack_parm.
999
1000 2004-06-19 Richard Henderson <rth@redhat.com>
1001
1002 PR target/15550
1003 * ifcvt.c (noce_try_move): Recognize all generated instructions.
1004
1005 2004-06-19 Jan Hubicka <jh@suse.cz>
1006
1007 * function.c (free_after_compilation): Do not free computed_goto_common*.
1008 * function.h (struct function): Kill computed_goto_common*.
1009 * stmt.c (expand_computed_goto): Do not commonize the computed gotos.
1010 * tree-cfg.c (disband_implicit_edges): Do not forward across the
1011 commonized computed goto.
1012
1013 2004-06-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1014
1015 * doc/invoke.texi: Remove obsolete comment regarding PA 2.0 support
1016 in binutils.
1017
1018 2004-06-19 Andrew Pinski <apinski@apple.com>
1019
1020 PR c++/15721
1021 * toplev.c (wrapup_global_declarations): Do not check
1022 TREE_SYMBOL_REFERENCED of the DECL_ASSEMBLER_NAME but check
1023 cgraph_varpool_node's needed field.
1024
1025 2004-06-19 Jan Hubicka <jh@suse.cz>
1026 Steven Bosscher <stevenb@suse.de>
1027
1028 CFG transparent RTL expansion:
1029 * Makefile.in (cfgexpand.o): New object file.
1030 (builtins.o): Add dependency on basic-block.h
1031 * builtins.c: Include basic-block.h
1032 (entry_of_function): New function.
1033 (expand_builtin_apply_args, expand_builtin_saveargs): Use it.
1034 * cfgexpand.c: New file.
1035 * expr.c (execute_expand, pass_expand): Kill.
1036 * pass.c (rest_of_compilation): Do not build CFG unless called from
1037 coverage code.
1038 * tree-cfg.c (delete_tree_cfg): Rename to..
1039 (delete_tree_cfg_annotations): ... this one; Do not remove the CFG itself.
1040 * tree-flow.h (delete_tree_cfg_annotations): Declare.
1041 (dleete_tree_cfg): Kill.
1042 * tree-optimize.c (execute_rebuild_bind, pass_rebuild_bind): Kill.
1043 (execute_del_cfg): Rename to...
1044 (execute_free_datastructures): This one...
1045 (pass_del_cfg): Rename to...
1046 (pass_free_datastructures): ... this one; Do not kill PROP_cfg.
1047 (init_tree_optimization_passes): Make cfg build and profiling to happen
1048 unconditionally.
1049
1050 2004-06-19 Steven Bosscher <stevenb@suse.de>
1051
1052 * tree-mudflap.c (mf_decl_cache_locals): Skip labels before
1053 inserting the cache variables.
1054
1055 * tree-mudflap.c: Include headers to make basic_block available.
1056 Move functions around such that related functions are near each
1057 other. Add prototypes for all static functions. Add comments
1058 briefly explaining what IR the mudflap1 and mudflap2 work on and
1059 what they do.
1060 (mudflap_function_decls): Rename to execute_mudflap_function_decls.
1061 (mudflap_function_ops): Rename to execute_mudflap_function_ops.
1062 (pass_mudflap_1, pass_mudflap_2): Update.
1063 (mf_decl_cache_locals): Make it work on the CFG instead of the saved
1064 function tree.
1065 (mf_build_check_statement_for): Make it work on the CFG.
1066 (mf_xform_derefs_1): Likewise. Cleanup code style.
1067 (mf_xform_derefs): Likewise.
1068
1069 2004-06-19 Jan Hubicka <jh@suse.cz>
1070
1071 * tree-cfg.c (label_to_block): Invent the label destination for
1072 undefined labels.
1073 (cleanup_dead_labels): Update table in the case label_to_block added
1074 new label.
1075
1076 2004-06-18 Richard Henderson <rth@redhat.com>
1077
1078 PR c++/16036
1079 * gimple-low.c (lower_function_body): Generate return statement for
1080 fall off the end of the function here ...
1081 * tree-cfg.c (make_edges): ... instead of here.
1082 * gimplify.c (gimplify_return_expr): Mark return temp TREE_NO_WARNING.
1083
1084 2004-06-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1085
1086 * tree-ssa.c (raise_value): Removed.
1087 (get_eq_name, check_phi_redundancy): New functions.
1088 (kill_redundant_phi_nodes): Use standard ssa minimalization algorithm.
1089
1090 2004-06-18 Roger Sayle <roger@eyesopen.com>
1091
1092 * fold-const.c (fold) <UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR,
1093 UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR>: Add
1094 constant folding for unordered comparison tree nodes. If both
1095 operands are real constants, call fold_relational_const. If either
1096 operand is a NaN, evaluate the other for side-effects and return a
1097 constant. Optimize (double)float1 CMP (double)float2 into the
1098 equivalent float1 CMP float2.
1099 (nondestructive_fold_binary_to_constant) <UNORDERED_EXPR,
1100 ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR,
1101 LTGT_EXPR>: Call fold_relational_const for constant operands.
1102 (fold_relational_const): Add support for unordered comparison tree
1103 nodes. Don't constant fold "ordered" floating point comparisons
1104 against NaN if when flag_trapping_math is set.
1105
1106 2004-06-19 Jakub Jelinek <jakub@redhat.com>
1107
1108 * fold-const.c (build_range_check): If !in_p and recursive call
1109 fails, exit immediately. If high - low overflows and etype is
1110 a signed type, retry with unsigned etype.
1111 (merge_ranges): If !in0_p and !in1_p, handle even range2 adjacent
1112 to range1 at TYPE_MAX_VALUE and TYPE_MIN_VALUE.
1113
1114 2004-06-18 Richard Henderson <rth@redhat.com>
1115
1116 * c-gimplify.c (gimplify_condition): Remove.
1117 (gimplify_c_loop, gimplify_if_stmt, gimplify_switch_stmt): Don't
1118 call it.
1119
1120 2004-06-18 Richard Henderson <rth@redhat.com>
1121
1122 * tree-eh.c (decide_copy_try_finally): Fix scaling of copy and
1123 switch estimates.
1124
1125 2004-06-18 Andrew Pinski <pinskia@physics.uc.edu>
1126
1127 * config/i386/darwin.h (HOT_TEXT_SECTION_NAME): Define.
1128 (NORMAL_TEXT_SECTION_NAME): Define.
1129 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
1130 (SECTION_FORMAT_STRING): Define.
1131
1132 2004-06-18 Steven Bosscher <stevenb@suse.de>
1133
1134 * config/xtensa/xtensa.c
1135 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
1136 * xtensa.md: Replace the old pipeline description with a DFA model.
1137
1138 2004-06-18 Steven Bosscher <stevenb@suse.de>
1139 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1140
1141 * config/s390/s390.md: Remove the generic pipeline description.
1142 * config/s390/2064.md: Make all insn reservations apply to
1143 the z900, g5 and g6.
1144 * config/s390/s390.c (s390_use_dfa_pipeline_interface): Remove.
1145 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
1146 Define to hook_int_void_1.
1147 (s390_adjust_cost): Cleanup. Don't check address dependency here.
1148 (s390_first_cycle_multipass_dfa_lookahead): Always return 4.
1149
1150 2004-06-18 Daniel Berlin <dberlin@dberlin.org>
1151 Diego Novillo <dnovillo@redhat.com>
1152
1153 * tree-dfa.c (create_var_ann): tree_ann -> tree_ann_t.
1154 (create_stmt_ann): Ditto.
1155 (create_tree_ann): New function.
1156 (create_cst_ann): Remove.
1157 (create_expr_ann): Ditto.
1158
1159 * tree-flow-inline.h (cst_ann): Remove.
1160 (get_cst_ann): Ditto.
1161 (get_expr_ann): Ditto.
1162 (expr_ann): Ditto.
1163 (get_tree_ann): New function.
1164 (tree_ann): Ditto.
1165 (ann_type): tree_ann -> tree_ann_t.
1166 * tree-flow.h (tree_ann_type): CST_ANN, EXPR_ANN removed.
1167 (struct cst_ann_d): Removed.
1168 (struct expr_ann_d): Ditto.
1169 (union tree_ann_d): Removed cst and expr.
1170 (tree_ann): Renamed to tree_ann_t.
1171 * tree-ssa-ccp.c (set_rhs): tree_ann -> tree_ann_t.
1172 * tree-ssa-pre.c (get_value_handle): Rewrite for single common
1173 annotation.
1174 (set_value_handle): Ditto.
1175 (phi_translate): Ditto.
1176 * tree-tailcall.c (adjust_return_value): tree_ann -> tree_ann_t.
1177
1178 2004-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
1179
1180 * config/sh/t-linux64: New file.
1181 * config.gcc: Add it to tmake_file for sh64*-*-linux*.
1182
1183 2004-06-18 Paolo Bonzini <bonzini@gnu.org>
1184
1185 * emit-rtl.c (unshare_all_rtl_1): New name of unshare_all_rtl.
1186 (unshare_all_rtl_again): Call unshare_all_rtl_1.
1187 (unshare_all_rtl): New.
1188 * function.c (instantiate_virtual_regs): Remove parameters.
1189 * function.h (instantiate_virtual_regs): Add prototype.
1190 * rtl.h (unshare_all_rtl): Add prototype.
1191 * tree.h (instantiate_virtual_regs, unshare_all_rtl): Remove
1192 prototype.
1193 * passes.c: Remove assertions on the parameters to
1194 rest_of_handle_* functions. Remove the parameters to
1195 the functions, replacing decl with current_function_decl
1196 and insns with get_insns ().
1197
1198 2004-06-17 Roger Sayle <roger@eyesopen.com>
1199
1200 * fold-const.c (constant_boolean_node): Handle boolean_type_node
1201 directly, return either boolean_true_node or boolean_false_node.
1202
1203 2004-06-18 Kelley Cook <kcook@gcc.gnu.org>
1204
1205 * opts.sh: Delete. Break out generated code to next four files.
1206 * opt-gather.awk: New file.
1207 * optc-gen.awk: New file.
1208 * opth-gen.awk: New file.
1209 * opt-functions.awk: New common file.
1210 * Makefile.in: Update for above.
1211 * configure.ac: Update comment.
1212 * configure: Regenerate.
1213
1214 2004-06-17 Richard Henderson <rth@redhat.com>
1215
1216 * c-common.c (flag_objc_sjlj_exceptions): New.
1217 * c-common.h (flag_objc_sjlj_exceptions): Declare.
1218 * c-opts.c (c_common_handle_option): Set it.
1219 (c_common_post_options): Handle interation of different
1220 objective-c exception and runtime switches.
1221 * c-decl.c (c_eh_initialized_p): New.
1222 (finish_decl): Use it instead of local eh_initialized_p.
1223 * c-parse.in (nested_function, notype_nested_function): Record
1224 the result of compstmt.
1225 (compstmt_or_error): Likewise.
1226 (compstmt): Don't add_stmt the result.
1227 (stmt): Don't return anything. Rewrite objc try and sync rules.
1228 (objc_try_stmt, objc_catch_list): Remove.
1229 (objc_catch_block, objc_finally_block): Remove.
1230 (objc_catch_prefix, objc_catch_clause, objc_opt_catch_list): New.
1231 (objc_try_catch_clause, objc_finally_clause): New.
1232 (objc_try_catch_stmt): Rewrite.
1233 * c-tree.h (c_eh_initialized_p): Declare.
1234 * c-opt (fobjc-sjlj-exceptions): New.
1235 * except.c (output_function_exception_table): Don't call cgraph
1236 on non-decls.
1237 * objc/objc-act.c (UTAG_EXCDATA_VAR, UTAG_CAUGHTEXC_VAR,
1238 UTAG_RETHROWEXC_VAR, UTAG_EVALONCE_VAR, struct val_stack,
1239 catch_count_stack, exc_binding_stack, if_nesting_count,
1240 blk_nesting_count, objc_enter_block, objc_exit_block,
1241 objc_declare_variable, val_stack_push, val_stack_pop,
1242 objc_build_try_enter_fragment, objc_build_extract_expr,
1243 objc_build_try_exit_fragment, objc_build_extract_fragment,
1244 objc_build_try_prologue, objc_build_try_epilogue,
1245 objc_build_catch_stmt, objc_build_catch_epilogue,
1246 objc_build_finally_prologue, objc_build_finally_epilogue,
1247 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
1248 objc_build_synchronized_epilogue): Remove.
1249 (objc_create_temporary_var, struct objc_try_context, cur_try_context,
1250 objc_eh_runtime_type, objc_init_exceptions, objc_build_exc_ptr,
1251 next_sjlj_build_try_exit, next_sjlj_build_enter_and_setjmp,
1252 next_sjlj_build_exc_extract, next_sjlj_build_catch_list,
1253 next_sjlj_build_try_catch_finally, objc_begin_try_stmt,
1254 objc_begin_catch_clause, objc_finish_catch_clause,
1255 objc_build_finally_clause, objc_finish_try_stmt,
1256 objc_build_synchronized): New.
1257 (objc_is_object_id, objc_is_class_id): New.
1258 (objc_comptypes): Use them.
1259 (build_next_objc_exception_stuff): Break NeXT sjlj out from
1260 build_objc_exception_stuff.
1261 (synth_module_prologue): Update to match.
1262 (objc_build_throw_stmt): Use cur_try_context to decide if
1263 we're in a @catch.
1264 * objc/objc-act.h: Update prototypes.
1265 (OCTI_EXCEPTION_BLK_STACK, objc_exception_block_stack): Remove.
1266
1267 2004-06-17 Andrew Pinski <apinski@apple.com>
1268
1269 * c-typeck.c (tagged_types_tu_compatible_p <case UNION_TYPE>):
1270 Use TYPE_FIELDS instead of TYPE_VALUES.
1271
1272 2004-06-17 Jason Merrill <jason@redhat.com>
1273
1274 PR c++/16015
1275 * gimplify.c (gimplify_target_expr): Handle void initializer.
1276 * expr.c (expand_expr_real_1) [TARGET_EXPR]: Likewise.
1277 * doc/c-tree.texi (Expression trees): Update TARGET_EXPR
1278 and AGGR_INIT_EXPR.
1279
1280 2004-06-17 Roger Sayle <roger@eyesopen.com>
1281
1282 * fold-const.c (fold_relational_const): Use constant_boolean_node.
1283
1284 2004-06-17 Jan Hubicka <jh@suse.cz>
1285
1286 PR target/15433
1287 * i386.md (SSE SF cmov 0 splitter): The conditional is VOIDmode; fix
1288 operand numbering in the output template.
1289 (SSE DF cmov 0 splitter): The conditional is VOIDmode.
1290
1291 2004-06-17 Jan Hubicka <jh@suse.cz>
1292
1293 * except.c (can_throw_internal): Recognize RESX expresisons.
1294
1295 2004-06-17 Jan Hubicka <jh@suse.cz>
1296
1297 * cfgbuild.c (make_edges): Do not use label_value_list.
1298 (find_basic_blocks_1): Do not collect label_value_list.
1299 (find_sub_basic_blocks): Update call of make_edges.
1300
1301 2004-06-17 Andrew MacLeod <amacleod@redhat.com>
1302
1303 * tree-cfg.c (tree_make_forwarder_block): Use SET_PHI_RESULT.
1304 * tree-flow-inline.h (get_use_op_ptr): Return a use_operand_p.
1305 (get_use_from_ptr, get_def_from_ptr): New. Return operand pointers.
1306 (get_def_op_ptr): Return a def_operand_p instead of a 'tree *'.
1307 (get_v_may_def_result_ptr): Return a def_operand_p.
1308 (get_v_may_def_op_ptr, get_vuse_op_ptr): Return a use_operand_p.
1309 (get_v_must_def_op_ptr): Return a def_operand_p.
1310 (get_phi_result_ptr): New. Return a pointer to the result of a PHI.
1311 (get_phi_arg_def_ptr): New. Return a pointer to an argument of a PHI.
1312 (phi_element_for_edge): Remove.
1313 * tree-flow.h (propagate_value, replace_exp): Change prototype.
1314 (propagate_tree_value): Add new prototype.
1315 (phi_element_for_edge): Remove prototype.
1316 * tree-into-ssa.c (mark_def_sites): Use new operand types.
1317 (prepare_operand_for_rename): Split into two functions.
1318 (prepare_use_operand_for_rename): Prepare use operands.
1319 (prepare_def_operand_for_rename): Prepare def operands.
1320 (rewrite_stmt): Use new operand types.
1321 (rewrite_operand): Use new operand types, change parameter type.
1322 * tree-outof-ssa.c (replace_variable): Split into two functions.
1323 (replace_use_variable): Rewrite uses.
1324 (replace_def_variable): Rewrite defs.
1325 (rewrite_trees, rewrite_vars_out_of_ssa): Use new operand types.
1326 * tree-phinodes.c (make_phi_node, resize_phi_node): Use new types.
1327 (add_phi_arg, remove_phi_arg_num): Use new operand types.
1328 * tree-ssa-ccp.c (substitute_and_fold): Use new operand types.
1329 (ccp_fold, replace_uses_in): Use new operand types.
1330 * tree-ssa-copy.c (replace_ssa_names): Rename to replace_ssa_names_ann
1331 and no longer set the value, change parameter type.
1332 (replace_exp_1): Use new operand types.
1333 (propagate_value): Change parameter type, use new operand types.
1334 (propagate_tree_value): Propagate_value without SSA operands.
1335 (replace_exp, cprop_operand, cprop_into_stmt): Use new operand types.
1336 (cprop_into_successor_phis): Use new operand types.
1337 * tree-ssa-dom.c (thread_across_edge): Use new operand types.
1338 (eliminate_redundant_computations): Use new operand types.
1339 * tree-ssa-dse.c (fix_phi_uses): Use new operand_types.
1340 (fix_stmt_v_may_defs): Use new operand_types.
1341 * tree-ssa-live.c (create_ssa_var_map): Use new operand_types.
1342 (build_tree_conflict_graph): Use new operand_types.
1343 * tree-ssa-loop.c (duplicate_blocks): Use PHI_ARG_DEF_FROM_EDGE.
1344 * tree-ssa-operands.c (struct freelist_d): Remove.
1345 (check_optype_freelist, add_optype_freelist): Remove.
1346 (allocate_def_optype, allocate_use_optype, allocate_v_may_def_optype,
1347 allocate_vuse_optype, allocate_v_must_def_optype): Call ggc_alloc.
1348 (free_uses, free_defs, free_vuses, free_v_may_defs, free_v_must_defs):
1349 Call ggc_free instead of add_optype_freelist.
1350 (init_ssa_operands, fini_ssa_operands): Remove free list code.
1351 (finalize_ssa_defs, finalize_ssa_uses): Set new use/def operands.
1352 * tree-ssa-operands.h (struct def_optype_d): Change underlying type.
1353 (struct use_optype_d): Change underlying type.
1354 (def_operand_p, use_operand_p): New types for pointers to operands.
1355 (USE_OP, DEF_OP, V_MAY_DEF_RESULT, V_MAY_DEF_OP, VUSE_OP,
1356 V_MUST_DEF_OP): Use new pointer type instead of dereferencing directly.
1357 (USE_FROM_PTR, DEF_FROM_PTR): New macros to "dereference" operand
1358 pointer types.
1359 (SET_USE, SET_DEF): New macros to set operands from their pointer.
1360 (SET_USE_OP, SET_DEF_OP, SET_V_MAY_DEF_RESULT, SET_V_MAY_DEF_OP,
1361 SET_VUSE_OP, SET_V_MUST_DEF_OP): New SET routines for operands.
1362 (PHI_RESULT_PTR, PHI_RESULT, SET_PHI_RESULT): Macros to manage the
1363 PHI result as an operand.
1364 (PHI_ARG_DEF_PTR, PHI_ARG_DEF, SET_PHI_ARG_DEF, PHI_ARG_DEF_FROM_EDGE,
1365 PHI_ARG_DEF_PTR_FROM_EDGE): Macros to manage the PHI arguments.
1366 * tree-ssa-pre.c (eliminate): Call propagate_tree_value.
1367 * tree-tailcall.c (independent_of_stmt_p, propagate_through_phis): Use
1368 PHI_ARG_DEF_FROM_EDGE.
1369 * tree.h (PHI_RESULT): Renamed to PHI_RESULT_TREE.
1370 (PHI_ARG_DEF): Renamed to PHI_ARG_DEF_TREE.
1371
1372 2004-06-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1373
1374 PR tree-optimization/15991
1375 * tree-cfg.c (tree_block_label): Export.
1376 * tree-flow-inline.h (bsi_after_labels): New function.
1377 * tree-flow.h (bsi_after_labels, tree_block_label): Declare.
1378 * tree-ssa.c (propagate_into_addr): New function.
1379 (replace_immediate_uses): Handle propagation of pointer constants.
1380 (raise_value): Do not restrict propagation of pointer constants.
1381 * tree-ssanames.c (duplicate_ssa_name): New function.
1382 * tree.h (duplicate_ssa_name): Declare.
1383
1384 2004-06-17 David Ayers <d.ayers@inode.at>
1385
1386 * c-parse.in: Unify Objective-C token names.
1387
1388 2004-06-17 Zack Weinberg <zack@codesourcery.com>
1389
1390 Bug 14610
1391 * Makefile.in (min-insn-modes.o): Correct dependencies.
1392 * real.c (encode_ieee_extended, decode_ieee_extended): Always
1393 produce/consume 12-byte little-endian Intel format.
1394 (encode_ieee_extended_128, decode_ieee_extended_128): Delete.
1395 (encode_ieee_extended_motorola, decode_ieee_extended_motorola)
1396 (encode_ieee_extended_intel_96, decode_ieee_extended_intel_96)
1397 (encode_ieee_extended_intel_128, decode_ieee_extended_intel_128):
1398 New functions which convert between 12-byte little-endian Intel
1399 format and the desired format.
1400 (ieee_extended_motorola_format, ieee_extended_intel_96_round_53_format)
1401 (ieee_extended_intel_96_format, ieee_extended_intel_128_format):
1402 Update.
1403
1404 2004-06-17 Zack Weinberg <zack@codesourcery.com>
1405
1406 * expmed.c (expand_mult_const): In sanity check, compare only
1407 the bits of val and val_so_far that are significant in the
1408 result mode.
1409
1410 2004-06-17 Daniel Berlin <dberlin@dberlin.org>
1411
1412 * tree-ssa-pre.c: Update comments.
1413 (val_expr_pair_eq): Factor code from here.
1414 (expr_pred_trans_eq): and here.
1415 (expressions_equal_p): To here.
1416 (print_value_set): Print value for expression.
1417 (phi_trans_lookup): Rename some variables.
1418 (lookup): Ditto.
1419 (value_exists_in_set_bitmap): Ditto.
1420 (value_remove_from_set_bitmap): Ditto.
1421 (value_insert_into_set_bitmap): Ditto.
1422
1423 2004-06-17 Ulrich Weigand <uweigand@de.ibm.com>
1424
1425 * config/s390/s390-modes.def (CCL3mode): New machine mode.
1426 * config/s390/s390.c (s390_match_ccmode_set): Support CCL3mode.
1427 (s390_alc_comparison, s390_slb_comparison): Likewise.
1428 (s390_branch_condition_mask): Likewise.
1429 * config/s390/s390.md ("*subdi3_cc2", "*subdi3_cconly2"): New.
1430 ("*subsi3_cc2", "*subsi3_cconly2"): New.
1431
1432 * config/s390/s390.h (PREDICATE_CODE): Accept SIGN_EXTEND and
1433 ZERO_EXTEND for s390_alc_comparison and s390_slb_comparison.
1434 * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
1435 Handle SIGN_EXTEND and ZERO_EXTEND.
1436
1437 * config/s390/s390-protos.h (s390_expand_addcc): New prototype.
1438 * config/s390/s390.c (s390_expand_addcc): New function.
1439 * config/s390/s390.md ("adddicc", "addsicc"): New expanders.
1440 ("*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg"): New insns.
1441 ("sltu", "sgtu", "sleu", "sgeu"): New expanders.
1442
1443 2004-06-17 Ben Elliston <bje@au.ibm.com>
1444
1445 * tree-alias-common.c: Add whitespace.
1446 * tree-inline.c: Correct comment about this file's purpose.
1447 * tree-optimize.c: Likewise.
1448 * tree-tailcall.c: Likewise.
1449
1450 * tree-alias-ander.h: Add standard top-of-file comment.
1451 * tree-alias-common.h: Likewise.
1452 * tree-alias-type.h: Likewise.
1453
1454 2004-06-16 Daniel Berlin <dberlin@dberlin.org>
1455
1456 * tree-ssa-pre.c (compute_avail): Value number uses as well.
1457 Strip useless type conversions.
1458 Casts have to be treated slightly different than normal unaries.
1459
1460 2004-06-16 Richard Henderson <rth@redhat.com>
1461
1462 * c-common.def (COMPOUND_STMT): Remove.
1463 * c-common.c (finish_fname_decls): Don't look through it.
1464 * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
1465 * c-common.h (COMPOUND_BODY): Remove.
1466 (c_common_stmt_codes): Remove COMPOUND_STMT.
1467 * c-dump.c (c_dump_tree): Likewise.
1468 * c-gimplify.c (c_gimplify_stmt): Likewise.
1469 * c-pretty-print.c (pp_c_statement): Likewise.
1470 * tree.h (DECL_SAVED_TREE): Update commentary.
1471 * doc/c-tree.texi (ASM_EXPR): Rename from ASM_STMT.
1472 (CASE_LABEL_EXPR): Rename from CASE_LABEL.
1473 (GOTO_EXPR): Rename from GOTO_STMT.
1474 (GOTO_FAKE_P): Remove.
1475 (COMPOUND_STMT): Remove.
1476 (HANDLER): Update wrt COMPOUND_STMT.
1477 (STMT_EXPR): Likewise.
1478 (LABEL_EXPR): Rename from LABEL_STMT.
1479 (SCOPE_STMT): Remove.
1480 * objc/objc-act.c (objc_build_try_catch_finally_stmt): Don't look
1481 through COMPOUND_STMT.
1482
1483 2004-06-16 Richard Henderson <rth@redhat.com>
1484
1485 * c-common.h (c_begin_if_stmt, c_begin_while_stmt,
1486 c_finish_while_stmt_cond): Remove decls.
1487 * c-parse.in (if_prefix): Don't save c_begin_if_stmt result.
1488 * c-typeck.c (c_begin_if_stmt): Return void.
1489 (c_begin_else): Tidy. Save stmt_count.
1490 * c-tree.h (c_begin_if_stmt): Update decl.
1491
1492 * objc/objc-act.c (objc_build_try_enter_fragment,
1493 objc_build_extract_fragment, objc_build_try_epilogue,
1494 objc_build_catch_stmt, objc_build_catch_epilogue,
1495 objc_build_finally_prologue, objc_build_finally_epilogue): Update
1496 for if builder function changes.
1497
1498 2004-06-16 Ulrich Weigand <uweigand@de.ibm.com>
1499
1500 * config/s390/s390.c (struct machine_function): New member
1501 last_restore_gpr.
1502 (s390_frame_info): Add BASE_USED and RETURN_ADDR_USED parameters.
1503 Do not modify machine->save_return_addr_p or regs_ever_live.
1504 Fill in machine->last_restore_gpr.
1505 (s390_optimize_prolog): Use s390_frame_info to compute registers
1506 to save/restore, remove duplicated code.
1507 (s390_arg_frame_offset): Use s390_frame_info to compute frame
1508 size, remove duplicated code.
1509 (s390_emit_prologue): Adapt s390_frame_info call. Update
1510 machine->save_return_addr_p and regs_ever_live.
1511 (s390_emit_epilogue): Use machine->last_restore_gpr instead of
1512 machine->last_save_gpr.
1513
1514 2004-06-16 Richard Henderson <rth@redhat.com>
1515
1516 * c-parse.in (if_stmt_locus): Remove.
1517 (if_prefix): Increment stmt_count; pass it to c_finish_if_cond.
1518 (select_or_iter_stmt): Move empty if warnings to c-typeck.c.
1519 * c-typeck.c (if_elt): Sort by expected size. Rename locus to
1520 empty_locus. Add stmt_count, saw_else.
1521 (c_begin_if_stmt): Push if_stack here.
1522 (c_finish_if_cond): Rename from c_expand_end_cond. Record stmt_count.
1523 (c_finish_then, c_finish_else): Record empty_locus.
1524 (c_begin_else): Rename from c_expand_start_else. Record stmt_count.
1525 (c_finish_if_stmt): Rename from c_expand_end_cond. Warn for empty
1526 if or else body.
1527 * c-tree.h: Update prototypes.
1528
1529 2004-06-16 Steven Bosscher <stevenb@suse.de>
1530
1531 * tree.h (PHI_CHAIN): New.
1532 * (tree-cfg.c, tree-dfa.c, tree-flow-inline.h, tree-into-ssa.c,
1533 tree-outof-ssa.c, tree-phinodes.c, tree-pretty-print.c,
1534 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-dse.c,
1535 tree-ssa-live.c, tree-ssa-loop.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
1536 tree-ssa.c, tree-tailcall.c): Use PHI_CHAIN instead of TREE_CHAIN
1537 when traversing a list of PHI_NODEs.
1538
1539 2004-06-16 Bernardo Innocenti <bernie@develer.com>
1540
1541 PR target/13292
1542 * config/m68k/m68k.h (TARGET_SWITCHES): Don't remove MASK_68040_ONLY
1543 on -msoft-float.
1544 (TARGET_FLT_EVAL_METHOD): Don't advertise extended precision for
1545 68040 and soft-float.
1546 * config/m68k/m68k.md (truncdfsf2): Explicitly require TARGET_68881
1547 in the TARGET_68040_ONLY case.
1548
1549 2004-06-16 Peter Barada <peter@the-baradas.com>
1550
1551 * config/m68k/m68k.md (movsi_cfv4): New pattern to allow mov3q.
1552 (movsi_cf): Make named, don't match TARGET_CFV4.
1553 (pushexthisi_const): Use mov3q if possible.
1554 (extendhisi2, cvf4_extendhisi2): Split extendhisi2 pattern
1555 to special case mvz.w for ColdFire V4.
1556 (extendqisi2, cvf4_extendqisi2): Split extendhisi2 pattern
1557 to special case mvz.b for ColdFire V4.
1558 (udivmodhi4, divmodhi4): Use mvz to zero extend arg for
1559 divide.
1560 (iorsi3, xorsi3, andsi3): Use bitfield instructions if possible.
1561 * config/m68k/m68k.c(valid_mov3q_const): New function.
1562 (const_method): SWAP is valid for ColdFire.
1563 (MULL_COST, MULW_COST): Fix costs for ColdFire V3/V4.
1564 * config/m68k/m68k-protos.h (valid_mov3q_const): Prototype here.
1565
1566 2004-06-16 Richard Henderson <rth@redhat.com>
1567
1568 * c-common.def (CASE_LABEL): Remove.
1569 * c-common.c (c_add_case_label): Use CASE_LABEL, not CASE_LABEL_DECL.
1570 (match_case_to_enum_1): Likewise.
1571 * c-common.h (c_common_stmt_codes): Remove CASE_LABEL.
1572 * c-dump.c (c_dump_tree): Likewise.
1573 * c-gimplify.c (c_gimplify_stmt): Likewise.
1574 * c-pretty-print.c (pp_c_statement): Likewise.
1575 * c-semantics.c (build_case_label): Use CASE_LABEL_EXPR.
1576 * tree.h (CASE_LOW): Update commentary.
1577
1578 2004-06-16 Richard Henderson <rth@redhat.com>
1579
1580 * c-common.def (ASM_STMT): Remove.
1581 * c-common.h (c_common_stmt_codes): Remove ASM_STMT.
1582 * c-dump.c (c_dump_tree): Likewise.
1583 * c-gimplify.c (c_gimplify_stmt): Likewise.
1584 * c-pretty-print.c (pp_c_statement): Likewise.
1585 * c-typeck.c (build_asm_expr): Use ASM_EXPR.
1586 * tree.h: Fix commentary.
1587
1588 2004-06-16 Richard Henderson <rth@redhat.com>
1589
1590 * c-common.def (GOTO_STMT, LABEL_STMT): Remove.
1591 * c-common.c (c_add_case_label): Use LABEL_EXPR.
1592 * c-common.h (GOTO_FAKE_P, LABEL_STMT_LABEL): Remove.
1593 (c_common_stmt_codes): Remove GOTO_STMT, LABEL_STMT.
1594 * c-dump.c (c_dump_tree): Likewise.
1595 * c-gimplify.c (c_gimplify_stmt): Likewise.
1596 * c-pretty-print.c (pp_c_statement): Likewise.
1597 * c-parse.in (stmt): Use GOTO_EXPR.
1598 (label): Use LABEL_EXPR.
1599 * c-semantics.c (build_stmt): Set TREE_TYPE to void.
1600 * tree-inline.c (copy_body_r): Don't build empty BLOCKs.
1601
1602 2004-06-16 J"orn Rennecke <joern.rennecke@superh.com>
1603
1604 * cfgcleanup.c (try_simplify_condjump): Update test to make
1605 sure we have a conditional branch around am unconditional branch.
1606
1607 2004-06-16 Daniel Berlin <dberlin@dberlin.org>
1608
1609 * tree-cfg.c (pass_split_crit_edge): Give it a name and a dump file.
1610
1611 2004-06-16 Dale Johannesen <dalej@apple.com>
1612
1613 * loop.c (loop_givs_reduce): Avoid miscompilation of
1614 loops entered at bottom.
1615
1616 2004-06-16 J"orn Rennecke <joern.rennecke@superh.com>
1617
1618 * cfglayout.c (fixup_reorder_chain): Handle case where the
1619 destination of E_FALL is EXIT_BLOCK_PTR.
1620
1621 2004-06-16 Vladimir Makarov <vmakarov@redhat.com>
1622
1623 PR target/15653
1624 * config/ia64/ia64.c (ia64_dfa_new_cycle): Do not insert nops
1625 after shifts before asm.
1626
1627 2004-06-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1628
1629 PR tree-optimization/15993
1630 * tree-ssa-dom.c (thread_across_edge): Do not thread edge if its
1631 destination is unchanged.
1632
1633 2004-06-16 Andreas Jaeger <aj@suse.de>
1634
1635 * doc/install.texi (Configuration): Update description for
1636 --enable-version-specific-runtime-libs.
1637
1638 2004-06-16 Paolo Bonzini <bonzini@gnu.org>
1639
1640 * doc/install.texi: boehm-gc now uses automake 1.8.5.
1641
1642 2004-06-16 Paolo Bonzini <bonzini@gnu.org>
1643
1644 * toplev.h (rest_of_compilation): Adjust prototype.
1645
1646 2004-06-16 Paolo Bonzini <bonzini@gnu.org>
1647
1648 * coverage.c: Remove argument to rest_of_compilation.
1649 * expr.c (execute_expand, set_save_expr_context, pass_expand): New.
1650 * passes.c (rest_of_compilation): Remove argument.
1651 (pass_rest_of_compilation): New.
1652 (rest_of_handle_final, rest_of_handle_delay_slots,
1653 rest_of_handle_stack_regs, rest_of_handle_variable_tracking
1654 rest_of_handle_machine_reorg, rest_of_handle_regrename
1655 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_gcse2
1656 rest_of_handle_regmove, rest_of_handle_tracer
1657 rest_of_handle_if_conversion, rest_of_handle_if_after_combine
1658 rest_of_handle_web, rest_of_handle_branch_prob
1659 rest_of_handle_value_profile_transformations, rest_of_handle_cfg
1660 rest_of_handle_addressof, rest_of_handle_jump_bypass
1661 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2):
1662 Check that the two arguments are actually superfluous.
1663 * tree-optimize.c (register_dump_files): Add properties argument.
1664 Track validity of passes. Only initialize dump files for
1665 tree-based passes. Store the full set of provided passes in
1666 the pass.
1667 (init_tree_optimization_passes): Register pass_expand and
1668 pass_rest_of_compilation.
1669 (execute_one_pass): Do not track the presence of required properties
1670 here. Set in_gimple_form. Do not update current_properties.
1671 (current_properties): Remove.
1672 (set_save_expr_context): Remove.
1673 (tree_rest_of_compilation): Do not set in_gimple_form. Do not
1674 expand to RTL here, and do not call rest_of_compilation. Push
1675 GGC context even before gimplification.
1676 * tree-pass.h (PROP_rtl, PROP_trees): New flags.
1677 (pass_expand, pass_rest_of_compilation): Declare.
1678
1679 2004-06-15 Jeff Law <law@redhat.com>
1680
1681 * fold-const.c (swap_tree_comparison): No longer static.
1682 (tree_swap_operands_p): Similarly. Return true if both operands
1683 are SSA_NAMEs and the first operand has a higher version number than
1684 the second operand.
1685 * tree.h (swap_tree_comparison): Prototype.
1686 (tree_swap_operands_p): Prototype.
1687 * tree-ssa-operands.c (get_expr_operands): For commutative
1688 operators and relational comparisons, canonicalize the
1689 order of the operands.
1690
1691 2004-06-15 Richard Henderson <rth@redhat.com>
1692
1693 * c-common.c (lang_gimplify_stmt): Remove next_p argument.
1694 (if_elt, if_stack, if_stack_space, c_expand_start_cond, c_finish_then,
1695 c_expand_end_cond, c_expand_start_else, c_finish_else, c_begin_if_stmt,
1696 c_begin_while_stmt, c_finish_while_stmt_cond): Move to c-typeck.c.
1697 (finish_fname_decls, fname_decl): Use statement_lists.
1698 (c_expand_expr_stmt): Don't set last_expr_type.
1699 (c_type_hash): Fix indentation.
1700 (c_safe_from_p): Don't follow TREE_CHAIN.
1701 (c_tree_chain_matters_p): Remove.
1702 * c-common.def (SCOPE_STMT): Remove.
1703 (CLEANUP_STMT): Redefine to contain its own body.
1704 * c-common.h (struct stmt_tree_s): Remove x_last_stmt,
1705 x_last_expr_type, x_last_expr_filename, x_scope_stmt_stack.
1706 Add x_cur_stmt_list.
1707 (last_tree, last_expr_type, last_expr_filename, RECHAIN_STMTS): Remove.
1708 (cur_stmt_list): New.
1709 (STATEMENT_LIST_STMT_EXPR): New.
1710 (SCOPE_BEGIN_P, SCOPE_END_P, SCOPE_STMT_BLOCK, SCOPE_NULLIFIED_P,
1711 SCOPE_NO_CLEANUPS_P, SCOPE_PARTIAL_P, NEW_FOR_SCOPE_P): Remove.
1712 (CLEANUP_BODY): New.
1713 (CLEANUP_DECL): Move to operand 2.
1714 (c_common_stmt_codes): Remove SCOPE_STMT.
1715 (COMPOUND_STMT_NO_SCOPE, COMPOUND_STMT_BODY_BLOCK): Remove.
1716 * c-decl.c (c_scope_stmt_stack, current_scope_stmt_stack): Remove.
1717 (c_push_function_context, c_pop_function_context): Don't save it.
1718 (finish_decl): Set TREE_USED on the decl for a cleanup.
1719 Use push_cleanup.
1720 (store_parm_decls): Use statement lists.
1721 (finish_function): Remove compstmt rule workaround. Use statement
1722 lists. Call finish_fname_decls after finalizing the body.
1723 (c_begin_compound_stmt): Move to c-typeck.c.
1724 * c-dump.c (c_dump_tree): Remove SCOPE_STMT.
1725 * c-gimplify.c (gimplify_cleanup_stmt, gimplify_cleanup_stmts): New.
1726 (c_genericize): Invoke them.
1727 (c_gimplify_stmt): Don't look through TREE_CHAIN. Kill SCOPE_STMT.
1728 (c_build_bind_expr): Export.
1729 (gimplify_block, gimplify_cleanup): Remove.
1730 (gimplify_condition): Use gimplify_stmt.
1731 (gimplify_for_stmt): Remove FOR_INIT_STMT chaining hack.
1732 (gimplify_if_stmt): Remove recursion hack.
1733 (c_gimplify_expr): Remove STMT_EXPR handling.
1734 (stmt_expr_last_stmt, gimplify_stmt_expr): Remove.
1735 (is_last_stmt_of_scope): Remove.
1736 * c-lang.c (LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P): Remove.
1737 * c-mudflap.c (mflang_flush_calls): Use c_begin_compound_stmt,
1738 c_end_compound_stmt.
1739 * c-objc-common.c (build_cdtor): Likewise.
1740 * c-parse.in (primary): Use c_finish_stmt_expr.
1741 (push_scope, pop_scope): Remove.
1742 (c99_block_start, compstmt_start): Use c_begin_compound_stmt.
1743 (c99_block_end, compstmt): Use c_end_compound_stmt.
1744 (c99_block_lineno_labeled_stmt): Likewise.
1745 (compstmt_primary_start): Use c_begin_stmt_expr.
1746 (simple_if, select_or_iter_stmt): Update calls to stmt builders.
1747 (do_stmt_start): Fill in body directly.
1748 (lineno_stmt): Avoid setting lineno on constants.
1749 * c-pretty-print.c (pp_c_statement): Handle STATEMENT_LIST.
1750 Remove SCOPE_STMT.
1751 * c-semantics.c (begin_stmt_tree): Remove.
1752 (push_stmt_list, re_push_stmt_list, pop_stmt_list): New.
1753 (add_stmt): Use statement lists.
1754 (add_scope_stmt, finish_stmt_tree): Remove.
1755 (push_cleanup): New.
1756 * c-tree.h: Move some decls from c-common.h.
1757 * c-typeck.c (c_tree_expr_nonnegative_p): Simplify for statement lists.
1758 (do_case, c_finish_case): Likewise.
1759 (c_finish_then): Take body for then as argument.
1760 (c_finish_else): Similarly.
1761 (c_begin_for_stmt, c_finish_for_stmt_init, c_finish_for_stmt_cond,
1762 c_finish_for_stmt_incr, c_finish_for_stmt): New.
1763 (c_begin_stmt_expr, c_finish_stmt_expr): New.
1764 (c_begin_compound_stmt): Do scope management.
1765 (c_end_compound_stmt): New.
1766 * fold-const.c (tree_expr_nonnegative_p): Fix BIND_EXPR.
1767 * gimplify.c (voidify_wrapper_expr): Accept temporary argument.
1768 Look through exception handling constructs.
1769 (gimplify_bind_expr): Accept temporary argument.
1770 (gimplify_target_expr): Special case BIND_EXPR bodies.
1771 (gimplify_expr): Handle fallback == fb_none like a statement.
1772 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P): Kill.
1773 * langhooks.c (lhd_tree_inlining_tree_chain_matters_p): Remove.
1774 * langhooks.h (tree_chain_matters_p): Remove.
1775 * stub-objc.c (objc_clear_super_receiver): New.
1776 * tree-gimple.h (voidify_wrapper_expr): Update decl.
1777 (append_to_statement_list, append_to_statement_list_force): Move
1778 to tree-iterator.h.
1779 * tree-inline.c (expand_call_inline): Update call.
1780 (clone_body): Use statement lists.
1781 (walk_tree): Don't check tree_chain_matters_p.
1782 (copy_tree_r): Likewise.
1783 * tree-iterator.c (alloc_stmt_list): Clear lang bits.
1784 (tsi_link_before, tsi_link_after): Set TREE_SIDE_EFFECTS properly.
1785 * tree-iterator.h (append_to_statement_list,
1786 append_to_statement_list_force): Moved from tree-gimple.h.
1787 * tree-pretty-print.c (dump_generic_node): Clean up TARGET_EXPR dump.
1788 * objc/objc-act.c (build_module_descriptor): Use c_begin_compound_stmt.
1789 (objc_enter_block): Likewise.
1790 (objc_exit_block): Use c_end_compound_stmt.
1791 (objc_build_try_enter_fragment): Add #error and comment for
1792 rewriting for OBJCPLUS.
1793 (objc_build_extract_fragment, objc_build_try_epilogue,
1794 objc_build_catch_stmt, objc_build_finally_prologue,
1795 objc_build_finally_epilogue): Update for C statement builders.
1796 * objc/objc-lang.c (LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P):
1797 Remove.
1798
1799 2004-06-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1800
1801 * df.c (df_reg_clobber_gen): Removed.
1802 (df_bb_rd_local_compute, df_insn_refs_record, df_rd_local_compute):
1803 Make more effective for hard regs.
1804 * ra-build.c (livethrough_conflicts_bb): Check contains_call.
1805
1806 2004-06-15 Alexandre Oliva <aoliva@redhat.com>
1807
1808 * c-pragma.h (c_lex_string_translate): Change type to int.
1809 * c-parse.in: Change all assignments of c_lex_string_translate
1810 to true and false to 1 and 0.
1811 * c-lex.c (c_lex_string_translate): Likewise.
1812 (lex_string): Convert string without translation in the -1
1813 case.
1814
1815 2004-06-15 Mark G. Adams <mark.g.adams@sympatico.ca>
1816
1817 * convert.h: Add include guards
1818
1819 2004-06-15 Daniel Berlin <dberlin@dberlin.org>
1820
1821 * tree-flow-inline.h: Document all functions.
1822
1823 2004-06-15 Daniel Berlin <dberlin@dberlin.org>
1824
1825 * tree-flow-inline.h (stmt_ann): Remove use of is_essa_node.
1826 * tree-dfa.c (create_stmt_ann): Ditto.
1827 * tree-pretty-print.c (dump_generic_node): Remove E* node handling.
1828 * tree-inline.c (estimate_num_insns_1): Ditto.
1829 * tree.c (tree_size): Ditto.
1830 (make_node_stat): Ditto.
1831 (tree_node_structure): Ditto.
1832 (ephi_node_elt_check_failed): Remove.
1833 (is_essa_node): Ditto.
1834 * tree.def (EPHI_NODE): Ditto.
1835 (EEXIT_NODE): Ditto.
1836 (EUSE_NODE): Ditto.
1837 (EKILL_NODE): Ditto.
1838 * tree.h (EREF_NODE_CHECK): Remove.
1839 (EPHI_NODE_ELT_CHECK): Ditto.
1840 (struct tree_eref_common): Ditto.
1841 (struct tree_euse_node): Ditto.
1842 (struct ephi_arg_d): Ditto.
1843 (struct tree_ephi_node): Ditto.
1844 (ephi_node_elt_check_failed): Remove prototype.
1845 (is_essa_node): Ditto.
1846 (enum tree_node_structure_enum): Remove TS_E*_NODE.
1847 (union tree_node): Remove E*_NODE uses.
1848
1849 2004-06-15 Jerry Quinn <jlquinn@optonline.net>
1850
1851 * alias.c (record_set, record_base_value, canon_rtx, get_addr,
1852 nonlocal_mentioned_p_1, init_alias_analysis): Use REG_P.
1853 * bt-load.c (find_btr_reference, insn_sets_btr_p, note_btr_set):
1854 Likewise.
1855 * builtins.c (expand_builtin_setjmp, expand_builtin_apply,
1856 expand_builtin_mathfn, expand_builtin_strlen, expand_builtin_memcmp,
1857 expand_builtin_strcmp, expand_builtin_strncmp,
1858 expand_builtin_frame_address): Likewise.
1859 * caller-save.c (mark_set_regs, add_stored_regs, mark_referenced_regs,
1860 insert_one_insn): Likewise.
1861 * calls.c (prepare_call_address, precompute_register_parameters,
1862 precompute_arguments, expand_call, emit_library_call_value_1): Likewise.
1863 * cfganal.c (flow_active_insn_p): Likewise.
1864 * combine.c (set_nonzero_bits_and_sign_copies, can_combine_p,
1865 combinable_i3pat, try_combine, find_split_point, COMBINE_RTX_EQUAL_P,
1866 subst, combine_simplify_rtx, simplify_if_then_else, simplify_set,
1867 make_extraction, recog_for_combine, gen_lowpart_for_combine,
1868 simplify_comparison, record_dead_and_set_regs_1,
1869 record_dead_and_set_regs, record_promoted_value,
1870 check_promoted_subreg, get_last_value_validate, get_last_value,
1871 reg_dead_at_p_1, reg_bitfield_target_p, distribute_notes,
1872 unmentioned_reg_p_1): Likewise.
1873 * conflict.c (mark_reg): Likewise.
1874 * cse.c (HASH, COST, COST_IN, approx_reg_cost_1, notreg_cost,
1875 mention_regs, insert_regs, lookup, lookup_for_remove, insert,
1876 merge_equiv_classes, flush_hash_table, invalidate,
1877 remove_invalid_refs, remove_invalid_subreg_refs, rehash_using_reg,
1878 invalidate_for_call, use_related_value, canon_hash, exp_equiv_p,
1879 cse_rtx_varies_p, canon_reg, find_best_addr, fold_rtx, equiv_constant,
1880 record_jump_cond, cse_insn, addr_affects_sp_p,
1881 invalidate_from_clobbers, cse_process_notes, cse_around_loop,
1882 cse_set_around_loop, count_reg_usage, set_live_p, cse_change_cc_mode,
1883 cse_cc_succs, cse_condition_code_reg): Likewise.
1884 * cselib.c (cselib_reg_set_mode, rtx_equal_for_cselib_p,
1885 cselib_lookup, cselib_invalidate_regno, cselib_invalidate_rtx,
1886 cselib_record_set, cselib_record_sets): Likewise.
1887 * dbxout.c (dbxout_symbol_location, dbxout_parms, dbxout_reg_parms,
1888 dbxout_block): Likewise.
1889 * df.c (df_ref_record, df_def_record_1, df_uses_record): Likewise.
1890 * dojump.c (do_jump): Likewise.
1891 * dwarf2out.c (dwarf2out_frame_debug_expr, is_pseudo_reg,
1892 is_based_loc, rtl_for_decl_location): Likewise.
1893 * emit-rtl.c (set_reg_attrs_for_parm, set_decl_rtl,
1894 set_decl_incoming_rtl, mark_user_reg): Likewise.
1895 * explow.c (copy_all_regs, copy_all_regs, memory_address, force_reg,
1896 copy_to_suggested_reg, allocate_dynamic_stack_space,
1897 probe_stack_range, hard_function_value): Likewise.
1898 * expmed.c (store_bit_field, store_fixed_bit_field,
1899 store_split_bit_field, extract_bit_field, extract_fixed_bit_field,
1900 extract_split_bit_field, expand_divmod, emit_store_flag_force):
1901 Likewise.
1902 * expr.c (convert_move, convert_modes,
1903 block_move_libcall_safe_for_call_parm, emit_group_load, use_reg,
1904 use_group_regs, emit_move_insn, emit_move_insn_1,
1905 compress_float_constant, push_block, emit_single_push_insn,
1906 emit_push_insn, get_subtarget, expand_assignment, store_expr,
1907 store_constructor, store_field, force_operand, safe_from_p,
1908 expand_expr_real_1, expand_increment, do_store_flag, do_tablejump):
1909 Likewise.
1910 * final.c (profile_function, final_scan_insn, alter_subreg,
1911 get_mem_expr_from_op, output_asm_operand_names, output_operand,
1912 only_leaf_regs_used, leaf_renumber_regs_insn): Likewise.
1913 * flow.c (verify_wide_reg_1, mark_regs_live_at_end,
1914 find_regno_partial, propagate_one_insn, init_propagate_block_info,
1915 insn_dead_p, libcall_dead_p, mark_set_1, not_reg_cond,
1916 attempt_auto_inc, find_auto_inc, mark_used_regs,
1917 count_or_remove_death_notes_bb): Likewise.
1918 * function.c (find_temp_slot_from_address, update_temp_slot_address,
1919 preserve_temp_slots, put_var_into_stack, fixup_var_refs_insn,
1920 fixup_var_refs_1, fixup_stack_1, optimize_bit_field, flush_addressof,
1921 put_addressof_into_stack, purge_addressof_1, insns_for_mem_walk,
1922 purge_single_hard_subreg_set, instantiate_decl,
1923 instantiate_virtual_regs_1, aggregate_value_p, assign_parms,
1924 promoted_input_arg, setjmp_vars_warning, setjmp_args_warning,
1925 setjmp_protect, setjmp_protect_args, fix_lexical_addr,
1926 expand_function_start, diddle_return_value, clobber_return_register,
1927 expand_function_end, keep_stack_depressed, handle_epilogue_set,
1928 update_epilogue_consts): Likewise.
1929 * genemit.c (gen_exp, gen_insn): Likewise.
1930 * genrecog.c (make_insn_sequence): Likewise.
1931 * global.c (global_conflicts, expand_preferences, mark_reg_store,
1932 mark_reg_conflicts, set_preference, reg_becomes_live,
1933 build_insn_chain, mark_reg_change): Likewise.
1934 * haifa_sched.c (CONST_BASED_ADDRESS_P, find_set_reg_weight):
1935 Likewise.
1936 * ifcvt.c (noce_try_abs, noce_get_condition, noce_process_if_block):
1937 Likewise.
1938 * integrate.c (copy_rtx_and_substitute, try_constants,
1939 subst_constants, mark_stores, allocate_initial_values): Likewise.
1940 * jump.c (reversed_comparison_code_parts, delete_prior_computation,
1941 delete_computation, rtx_renumbered_equal_p, true_regnum,
1942 reg_or_subregno): Likewise.
1943 * lcm.c (reg_dies, reg_becomes_live): Likewise.
1944 * local-alloc.c (validate_equiv_mem_from_store, validate_equiv_mem,
1945 update_equiv_regs, no_equiv, block_alloc, combine_regs, reg_is_set,
1946 wipe_dead_reg, no_conflict_p): Likewise.
1947 * loop-iv.c (simple_reg_p, simple_set_p, kill_sets,
1948 iv_get_reaching_def, iv_analyze_biv, altered_reg_used, mark_altered,
1949 simple_rhs_p, simplify_using_assignment, implies_p): Likewise.
1950 * loop.c (scan_loop, combine_movables, rtx_equal_for_loop_p,
1951 move_movables, note_set_pseudo_multiple_uses, consec_sets_invariant_p,
1952 find_single_use_in_loop, count_one_set, loop_bivs_init_find,
1953 loop_givs_rescan, check_insn_for_bivs, check_insn_for_givs,
1954 valid_initial_value_p, simplify_giv_expr, consec_sets_giv,
1955 loop_regs_update, check_dbra_loop, maybe_eliminate_biv,
1956 maybe_eliminate_biv_1, record_initial, update_reg_last_use,
1957 canonicalize_condition, loop_regs_scan, load_mems, try_copy_prop,
1958 try_swap_copy_prop): Likewise.
1959 * optabs.c (expand_binop, expand_vector_binop, expand_vector_unop,
1960 expand_abs, emit_no_conflict_block, emit_libcall_block, expand_float):
1961 Likewise.
1962 * postreload.c (reload_cse_simplify, reload_cse_simplify_set,
1963 reload_cse_simplify_operands, reload_combine,
1964 reload_combine_note_store, reload_combine_note_use,
1965 reload_cse_move2add, move2add_note_store): Likewise.
1966 * print-rtl.c (print_rtx): Likewise.
1967 * ra-build.c (copy_insn_p, remember_move, init_one_web_common,
1968 contains_pseudo, handle_asm_insn): Likewise.
1969 * ra-debug.c (ra_print_rtx_object, dump_constraints,
1970 dump_static_insn_cost): Likewise.
1971 * ra-rewrite.c (slots_overlap_p, emit_colors,
1972 remove_suspicious_death_notes): Likewise.
1973 * recog.c (validate_replace_rtx_1, find_single_use_1, find_single_use,
1974 register_operand, scratch_operand, nonmemory_operand,
1975 constrain_operands): Likewise.
1976 * reg-stack (check_asm_stack_operands, remove_regno_note,
1977 emit_swap_insn, swap_rtx_condition, subst_stack_regs_pat,
1978 subst_asm_stack_regs): Likewise.
1979 * regclass.c (scan_one_insn, record_reg_classes, copy_cost,
1980 record_address_regs, reg_scan_mark_refs): Likewise.
1981 * regmove.c (discover_flags_reg, replacement_quality,
1982 copy_src_to_dest, reg_is_remote_constant_p, regmove_optimize,
1983 fixup_match_1): Likewise.
1984 * regrename.c (note_sets, clear_dead_regs, build_def_use, kill_value,
1985 kill_set_value, copyprop_hardreg_forward_1): Likewise.
1986 * reload.c (MATCHES, push_secondary_reload, find_reusable_reload,
1987 reload_inner_reg_of_subreg, can_reload_into, push_reload,
1988 combine_reloads, find_dummy_reload, hard_reg_set_here_p,
1989 operands_match_p, decompose, find_reloads, find_reloads_toplev,
1990 find_reloads_address, subst_indexed_address, find_reloads_address_1,
1991 find_reloads_subreg_address, find_replacement,
1992 refers_to_regno_for_reload_p, reg_overlap_mentioned_for_reload_p,
1993 refers_to_mem_for_reload_p, find_equiv_reg, regno_clobbered_p): Likewise.
1994 * reload1.c (replace_pseudos_in, reload, calculate_needs_all_insns,
1995 find_reg, delete_dead_insn, alter_reg, eliminate_regs,
1996 elimination_effects, eliminate_regs_in_insn, scan_paradoxical_subregs,
1997 forget_old_reloads_1, reload_reg_free_for_value_p, choose_reload_regs,
1998 emit_input_reload_insns, emit_output_reload_insns, do_input_reload,
1999 do_output_reload, emit_reload_insns, gen_reload,
2000 delete_address_reloads_1, inc_for_reload): Likewise.
2001 * reorg.c (update_reg_dead_notes, fix_reg_dead_note,
2002 update_reg_unused_notes, fill_slots_from_thread): Likewise.
2003 * resource.c (update_live_status, mark_referenced_resources,
2004 mark_set_resources, mark_target_live_regs): Likewise.
2005 * rtlanal.c (nonzero_address_p, get_jump_table_offset,
2006 global_reg_mentioned_p_1, reg_mentioned_p, reg_referenced_p,
2007 reg_set_p, set_noop_p, find_last_value, refers_to_regno_p,
2008 note_stores, dead_or_set_p, dead_or_set_regno_p, find_regno_note,
2009 find_reg_fusage, find_regno_fusage, replace_regs, regno_use_in,
2010 parms_set, find_first_parameter_load, keep_with_call_p,
2011 hoist_test_store, hoist_update_store, address_cost, nonzero_bits1,
2012 num_sign_bit_copies1): Likewise.
2013 * rtlhooks.c (gen_lowpart_general): Likewise.
2014 * sched-deps.c (deps_may_trap_p, sched_analyze_1, sched_analyze_insn,
2015 sched_analyze): Likewise.
2016 * sched-rgn.c (check_live_1, update_live_1, sets_likely_spilled_1):
2017 Likewise.
2018 * sdbout.c (sdbout_symbol, sdbout_parms, sdbout_reg_parms): Likewise.
2019 * simplify-rtx.c (simplify_replace_rtx, simplify_unary_operation,
2020 simplify_binary_operation, simplify_const_relational_operation,
2021 simplify_subreg): Likewise.
2022 * stmt.c (decl_conflicts_with_clobbers_p, expand_asm_operands,
2023 expand_end_stmt_expr, expand_return, expand_decl,
2024 expand_anon_union_decl): Likewise.
2025 * unroll.c (precondition_loop_p, calculate_giv_inc, copy_loop_body,
2026 find_splittable_regs, find_splittable_givs, find_common_reg_term,
2027 loop_iterations): Likewise.
2028 * var-tracking.c (variable_union, variable_part_different_p,
2029 variable_different_p, count_uses, add_uses, add_stores,
2030 compute_bb_dataflow, set_variable_part, delete_variable_part,
2031 emit_notes_in_bb, vt_get_decl_and_offset, vt_add_function_parameters):
2032 Likewise.
2033 * varasm.c (assemble_variable): Likewise.
2034
2035 2004-06-15 Chris Demetriou <cgd@broadcom.com>
2036
2037 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove
2038 definition.
2039 * config/mips/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove
2040 #undef and #if 0'd definition.
2041
2042 2004-06-15 J"orn Rennecke <joern.rennecke@superh.com>
2043
2044 * combine.c (distribute_notes): Comment typo fix.
2045
2046 2004-06-15 Roger Sayle <roger@eyesopen.com>
2047
2048 * expmed.c (synth_mult): Mask bits of the multiplier to the
2049 machine mode of the multiplication. Don't consider shifts
2050 by more than (or equal to) the width of the operation's mode.
2051
2052 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
2053
2054 * doc/install.texi: Yet another update for autoconf
2055 and automake versions.
2056
2057 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
2058
2059 * function.h (struct function): Remove cannot_inline field.
2060 (current_function_cannot_inline): Remove.
2061 * passes.c (rest_of_compilation): Reset DECL_DEFER_OUTPUT.
2062 Simplify conditionals to ignore warn_return_type.
2063 * tree-optimize.c (tree_rest_of_compilation): Do not reset
2064 DECL_DEFER_OUTPUT.
2065 * objc/objc-act.c (build_module_descriptor, finish_method_def):
2066 Do not set current_function_cannot_inline.
2067
2068 2004-06-15 J"orn Rennecke <joern.rennecke@superh.com>
2069
2070 * cfglayout.c (fixup_reorder_chain): Handle case where the
2071 destination of E_TAKEN is EXIT_BLOCK_PTR.
2072
2073 2004-06-15 Diego Novillo <dnovillo@redhat.com>
2074
2075 * tree-ssa-copy.c (cprop_into_successor_phis): Fix typo.
2076
2077 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
2078
2079 * fold-const.c (operand_equal_p): Update comment.
2080
2081 2004-06-15 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2082
2083 * config/m32r/m32r.h (RETURN_ADDR_RTX): Define.
2084 (INCOMING_RETURN_ADDR_RTX): Define.
2085 * config/m32r/m32r-protos.h (m32r_return_addr): Added.
2086 * config/m32r/m32r.c (m32r_exppand_prologue): Changed for
2087 __builtin_return_address(0).
2088 (m32r_return_addr): Added for __builtin_return_address(0).
2089 (m32r_reload_lr): Ditto.
2090
2091 * longlong.h: Fix macros for m32r add_ssaaaa and sub_ddmmss.
2092
2093 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
2094
2095 * doc/install.texi (Prerequisites): Update libbanshee,
2096 fastjar, libcpp, libjava/libltdl entries to
2097 automake 1.8.5.
2098
2099 2004-06-15 Eric Botcazou <ebotcazou@act-europe.fr>
2100 Olivier Hainque <hainque@act-europe.fr>
2101
2102 * function.c (fixup_var_refs): Also adjust the start of sequence
2103 after fixing up the insns.
2104
2105 2004-06-15 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2106
2107 * gccbug.in: Update optimization -> tree-optimization/rtl-optimization.
2108
2109 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
2110
2111 * doc/install.texi (Prerequisites): Update libstdc++ entry to
2112 automake 1.8.5.
2113
2114 2004-06-14 Eric Christopher <echristo@redhat.com>
2115
2116 * config/s390/s390.h (TARGET_SWITCHES): Change -mtpf (-mno-tpf)
2117 to -mtpf-trace (-mno-tpf-trace).
2118 * doc/invoke.texi (S/390 and zSeries Options): Add tpf option
2119 documentation.
2120
2121 2004-06-14 Eric Botcazou <ebotcazou@libertysurf.fr>
2122
2123 * real.c: Fix bit count in head comment.
2124
2125 2004-06-14 Jeff Law <law@redhat.com>
2126
2127 * tree-ssa.c (kill_redundant_phi_nodes): More correctly handle
2128 PHIs where the destination or an argument is marked with
2129 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2130
2131 2004-06-14 Jakub Jelinek <jakub@redhat.com>
2132
2133 PR middle-end/15945
2134 * simplify-rtx.c (simplify_binary_operation): Don't optimize out
2135 Inf + -Inf, Inf - Inf, Inf / Inf and 0 * Inf if flag_trapping_math.
2136
2137 2004-06-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2138
2139 * opts.sh (var_args): Fix regexp.
2140
2141 2004-06-14 Jakub Jelinek <jakub@redhat.com>
2142
2143 PR target/15178
2144 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
2145
2146 2004-06-14 Paul Brook <paul@codesourcery.com>
2147
2148 * dwarf2out.c (output_call_frame_info): Support dwarf3 cie entries.
2149
2150 2004-06-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2151
2152 * Makefile.in (FLAGS_H): New.
2153 (flags.h): Replace by FLAGS_H.
2154 * c.opt: Document Var, VarExists, Init and Report attributes.
2155 * common.opt: Fill the values of the attributes.
2156 * diagnostic.c (flag_fatal_errors): Do not define.
2157 * except.c (flag_non_call_exceptions): Do not define.
2158 * flags.h: Include options.h. Remove declarations conflicting with
2159 the automatically defined ones.
2160 * opts.c: Remove automatically defined variables.
2161 (handle_option): Perform default initialization.
2162 (common_handle_option): Do not handle options covered by the
2163 default initialization.
2164 * opts.h (struct cl_option): Add flag_var, has_set_value and set_value
2165 fields.
2166 (CL_REPORT): New.
2167 * opts.sh: Generate variable declarations, handle CL_REPORT.
2168 * toplev.c: Remove automatically defined variables.
2169 (f_options): Removed.
2170 (print_switch_values): Use cl_options instead of f_options.
2171 * toplev.h (version_flag): Declaration removed.
2172
2173 2004-06-14 Ian Lance Taylor <ian@wasabisystems.com>
2174
2175 * config/sparc/sparc.h: Correct comment about availability of
2176 little endian option.
2177
2178 * config.gcc: Remove sparc64-*-aout*.
2179 * config/sparc/sparc.c (sparc_aout_select_rtx_section): Remove.
2180 * config/sparc/sp64-aout.h: Remove.
2181 * config/sparc/aout.h: Remove.
2182
2183 2004-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2184
2185 * config/s390/s390.c: Include "tree-gimple.h".
2186 (s390_gimplify_va_arg): New function.
2187 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2188 (s390_va_arg): Remove.
2189 * config/s390/s390-protos.h (s390_va_arg): Remove.
2190 * config/s390/s390.h (EXPAND_BUILTIN_VA_ARG): Call abort ().
2191
2192 2004-06-14 J"orn Rennecke <joern.rennecke@superh.com>
2193
2194 * basic-block.h (could_fall_through): Declare.
2195 * cfganal.c (can_fallthru): Succeed if the target is EXIT_BLOCK_PTR.
2196 Fail if the source already has a fallthrough edge to the exit
2197 block pointer.
2198 (could_fall_through): New function.
2199 * cfgbuild.c (make_edges): Check if we already have a fallthrough
2200 edge to the exit block pointer.
2201 * cfglayout.c (fixup_fallthru_exit_predecessor): Check that it is
2202 not called before reload has completed.
2203 Handle special case of first block having a fall-through exit edge.
2204 (cfg_layout_finalize): Don't call it before reload or if we have
2205 rtl epilogues.
2206 (fixup_reorder_chain): A fall through to the exit block does not
2207 require the block to come last. Add sanity checks.
2208 * cfgrtl.c (rtl_split_edge): Add special handling of fall through
2209 edges to the exit block.
2210 * function.c (cfglayout.h): #include.
2211 (thread_prologue_and_epilogue_insns): If we have neither return nor
2212 epilogue, but a fall through to the exit block from mid-function,
2213 force a non-fall-through exit.
2214 * Makefile.in (function.o): Depend on CFGLAYOUT_H.
2215
2216 2004-06-14 Alan Modra <amodra@bigpond.net.au>
2217
2218 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Handle -mpowerpc64 and -mcpu
2219 for power5 and rs64a. Correct condition for default. Correct power3,
2220 620, 630, 7400, 7450, G4, 970 and G5 -mcpu entries. Add -many.
2221
2222 2004-06-13 Steven Bosscher <stevenb@suse.de>
2223
2224 * gcse.c (hash_scan_set, hash_scan_insn, mark_set, mark_oprs_set):
2225 Revert previous change, don't use CALL_P.
2226
2227 2004-06-13 Jason Merrill <jason@redhat.com>
2228
2229 * tree.h: Move std_gimplify_va_arg_expr protoype here.
2230 * tree-gimple.h: From here.
2231
2232 2004-06-13 Daniel Berlin <dberlin@dberlin.org>
2233
2234 Fix PR tree-optimization/15979
2235 Fix PR tree-optimization/15981
2236 * tree-ssa-pre.c (insert_aux): Fix faulty logic so that we don't
2237 try to insert values undefined along some path.
2238
2239 2004-06-13 Daniel Berlin <dberlin@dberlin.org>
2240
2241 * tree-ssa-pre.c (add_to_value): is_gimple_min_invariant things
2242 are available everywhere too.
2243
2244 2004-06-13 Andrew Pinski <pinskia@physics.uc.edu>
2245
2246 * fold-const.c (fold_checksum_tree <case 't'>): Only
2247 look at TREE_VALUES if the EXPR is an ENUMERAL_TYPE.
2248 Only look at TYPE_MIN_VALUE and TYPE_MAX_VALUE if
2249 EXPR is an INTEGERAL_TYPE or a scalar float type.
2250
2251 2004-06-13 Diego Novillo <dnovillo@redhat.com>
2252
2253 * tree-sra.c (tree_sra): Update documentation.
2254
2255 2004-06-13 Joseph S. Myers <jsm@polyomino.org.uk>
2256
2257 * c-typeck.c (comptypes, tagged_types_tu_compatible_p,
2258 function_types_compatible_p, type_lists_compatible_p): Remove
2259 flags parameter.
2260 * c-tree.h (comptypes): Likewise.
2261 (COMPARE_STRICT): Remove.
2262 * c-decl.c, c-lang.c, c-parse.in, c-typeck.c, objc/objc-act.c: All
2263 callers changed.
2264
2265 2004-06-13 Eric Christopher <echristo@redhat.com>
2266
2267 * c-decl.c (diagnose_mismatched_decls): Improve error message.
2268 Remove unused code.
2269 * c-typeck.c (comptypes): Add location in standard we're checking.
2270
2271 2004-06-13 Kaz Kojima <kkojima@gcc.gnu.org>
2272
2273 * config/sh/libgcc-std.ver: Add __unorddf2 and __unordsf2 with
2274 version 3.3.4.
2275
2276 2004-06-12 Roger Sayle <roger@eyesopen.com>
2277
2278 * expmed.c (shift_cost, shiftadd_cost, shiftsub_cost): Additionally
2279 index by machine mode.
2280 (init_expmed): Initialize shift_cost, shiftadd_cost and shiftsub_cost
2281 tables inside the loop over machine modes.
2282 (synth_mult, expand_mult_highpart_optab, expand_mult_highpart,
2283 expand_divmod): Index shift*_cost by the appropriate machine mode.
2284
2285 2004-06-12 Eric Christopher <echristo@redhat.com>
2286
2287 * config/s390/s390.h: Rename TARGET_TPF to TARGET_TPF_PROFILING.
2288 * config/s390/s390.md: Ditto.
2289 * config/s390/s390.c: Ditto.
2290 (s390_frame_info): Conditionalize frame and setup info on
2291 TARGET_TPF_PROFILING.
2292 (s390_arg_frame_offset): Ditto.
2293
2294 2004-06-12 Roger Sayle <roger@eyesopen.com>
2295
2296 * fold-const.c (omit_two_operands): New function.
2297 * tree.h (omit_two_operands): Prototype here.
2298 * builtins.c (fold_builtin_unordered_cmp): New function to lower
2299 C99 unordered comparison builtins to the appropriate tree nodes.
2300 (fold_builtin_1): Use fold_builtin_unordered_cmp to lower
2301 BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
2302 BUILT_IN_ISLESSEQUAL and BUILT_IN_ISLESSGREATER. Manually lower
2303 BUILT_IN_ISUNORDERED comparisons to an UNORDERED_EXPR tree node.
2304 (simplify_builtin_memcmp, simplify_builtin_strncmp,
2305 simplify_builtin_strncat, simplify_builtin_strspn): Use the new
2306 omit_two_operands function to build the required COMPOUND_EXPRs.
2307
2308 2004-06-12 Steven Bosscher <stevenb@suse.de>,
2309 Andreas Jaeger <aj@suse.de>
2310
2311 * gcse.c (record_set_info): Use predicates like REG_P.
2312 (mems_conflict_for_gcse_p): Likewise.
2313 (load_killed_in_block_p): Likewise.
2314 (hash_expr_1): Likewise.
2315 (insert_set_in_table): Likewise.
2316 (gcse_constant_p): Likewise.
2317 (hash_scan_set): Likewise.
2318 (hash_scan_insn): Likewise.
2319 (canon_list_insert): Likewise.
2320 (record_last_mem_set_info): Likewise.
2321 (record_last_set_info): Likewise.
2322 (compute_hash_table_work): Likewise.
2323 (mark_set): Likewise.
2324 (mark_clobber): Likewise.
2325 (mark_oprs_set): Likewise.
2326 (compute_transp): Likewise.
2327 (find_avail_set): Likewise.
2328 (cprop_insn): Likewise.
2329 (do_local_cprop): Likewise.
2330 (cprop): Likewise.
2331 (find_implicit_sets): Likewise.
2332 (find_bypass_set): Likewise.
2333 (bypass_conditional_jumps): Likewise.
2334 (insert_insn_end_bb): Likewise.
2335 (pre_insert_copy_insn): Likewise.
2336 (compute_transpout): Likewise.
2337 (next_ls_expr): Likewise.
2338 (invalidate_any_buried_refs): Likewise.
2339 (compute_ld_motion_mems): Likewise.
2340 (reg_set_info): Likewise.
2341 (reg_clear_last_set): Likewise.
2342 (find_moveable_store): Likewise.
2343 (compute_store_table): Likewise.
2344 (find_loads): Likewise.
2345 (store_killed_in_insn): Likewise.
2346 (insert_insn_start_bb): Likewise.
2347 (reg_set_between_after_reload_p): Likewise.
2348 (reg_used_between_after_reload_p): Likewise.
2349 (is_jump_table_basic_block): Likewise.
2350 (gcse_after_reload): Likewise.
2351 (hash_scan_set_after_reload): Likewise.
2352 (compute_hash_table_after_reload): Likewise.
2353
2354 2004-06-12 Steven Bosscher <stevenb@suse.de>
2355
2356 * rtl.h (MEM_P, NONJUMP_INSN_P, CALL_INSN_P): New predicates.
2357 (INSN_P): Don't look at the rtx code class, just explicitly
2358 check for one of the tree RTX_INSN codes.
2359
2360 2004-06-11 Zack Weinberg <zack@codesourcery.com>
2361
2362 * c-typeck.c (default_function_array_conversion): Use
2363 build_pointer_type not TYPE_POINTER_TO.
2364
2365 2004-06-11 Zack Weinberg <zack@codesourcery.com>
2366
2367 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
2368 * configure, config.in: Regenerate.
2369 * system.h: Unconditionally define bool as unsigned char,
2370 BOOL_BITFIELD as unsigned int.
2371 * domwalk.h: Use BOOL_BITFIELD.
2372
2373 2004-06-12 Andreas Jaeger <aj@suse.de>
2374
2375 * libgcc-std.ver: Add __unorddf2 and __unordsf2 with version 3.3.4.
2376 * libgcc-darwin.ver: Likewise.
2377
2378 2004-06-12 Peter Jakubek <peter@laseranimation.com>
2379
2380 * reload.c (find_reloads): Force reload for pseudo registers on big
2381 endian machines.
2382
2383 2004-06-11 Steven Bosscher <stevenb@suse.de>
2384
2385 * tree-ssa-dce.c (mark_control_dependent_edges_necessary):
2386 Don't try to mark anything control dependent on the entry or
2387 exit blocks.
2388
2389 2004-06-11 Daniel Berlin <dberlin@dberlin.org>
2390
2391 Fix Bug 15899
2392 Fix Bug 15460
2393 * tree.h (SSA_NAME_VALUE): New macro.
2394 (struct tree_ssa_name): Add value_handle member.
2395 * tree-ssa-pre.c: Replaced.
2396 * tree-flow.h (tree_ann_type): Add CST_ANN, EXPR_ANN.
2397 (struct cst_ann_d): New.
2398 (struct expr_ann_d): New.
2399 (union tree_ann_d): Add cst_ann, expr_ann.
2400 * tree-dfa.c (create_cst_ann): New function.
2401 (create_expr_ann): Ditto.
2402 * tree-flow-inline.h (cst_ann): New function.
2403 (expr_ann): Ditto.
2404 (get_cst_ann): Ditto.
2405 (get_expr_ann): Ditto..
2406
2407 2004-06-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2408
2409 * pa.c (pa_hpux_init_libfunc): Add support for unord_optab.
2410 * pa/quadlib.c (enum qfcmp_magic): Define magic values for call to
2411 _U_Qfcmp library function.
2412 (_U_Qfltgt, _U_Qfunle, _U_Qfunlt, _U_Qfunge, _U_Qfungt, _U_Qfuneq,
2413 _U_Qfunord, _U_Qford): Add more TFmode builtin compare functions.
2414
2415 * pa.c (legitimize_pic_address): Use UNSPEC_DLTIND14R to identify
2416 unspec used for loading address from DLT.
2417 * pa.md: Define constants for the uses of UNSPEC and UNSPEC_VOLATILE.
2418 Change all users of UNSPEC and UNSPEC_VOLATILE to use new constants.
2419 Don't use short code sequence when loading the address of a nonlocal
2420 label.
2421 (nonlocal_goto): New expander.
2422 (indirect_goto): New jump pattern for nonlocal gotos.
2423 (short_jump): Remove extra whitespace.
2424 (builtin_longjmp): Clobber memory and hard frame pointer. Restore
2425 frame pointer via virtual_stack_vars_rtx when we have a nonlocal goto
2426 pattern.
2427
2428 2004-06-11 Roger Sayle <roger@eyesopen.com>
2429
2430 * expmed.c (synth_mult): Add an additional MODE argument for the
2431 machine mode of the multiplication. Update recursive calls. Use
2432 mode instead of word_mode for determining operation costs.
2433 (choose_mult_variant): Update calls to synth_mult with "mode".
2434
2435 2004-06-11 Richard Henderson <rth@redhat.com>
2436
2437 * tree-ssa-operands.c (get_stmt_operands): Clear makes_aliased_loads
2438 and makes_aliased_stores.
2439
2440 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
2441
2442 * doc/install.text (--enable-shared): Fix typo.
2443
2444 2004-06-11 Richard Henderson <rth@redhat.com>
2445
2446 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Remove post_p
2447 argument. Use internal post for call to gimplify_expr. Tidy
2448 rounded type size computation.
2449 (alpha_gimplify_va_arg): Use get_formal_tmp_var and
2450 get_initialized_tmp_var.
2451
2452 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
2453
2454 * doc/install.texi (--enable-shared): Update libobjc's shared library
2455 status. Remove reference to libf2c.
2456
2457 2004-06-11 Jason Merrill <jason@redhat.com>
2458
2459 * config/i386/i386.h (EXPAND_BUILTIN_VA_ARG): Just abort.
2460 * config/i386/i386.c (ix86_va_arg): Remove.
2461 * config/rs6000/rs6000.h (EXPAND_BUILTIN_VA_ARG): Just abort.
2462 * config/rs6000/rs6000.c (rs6000_va_arg): Remove.
2463 * config/alpha/alpha.h (EXPAND_BUILTIN_VA_ARG): Just abort.
2464 * config/alpha/alpha.c (alpha_va_arg): Remove.
2465 * config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Just abort.
2466 * config/sparc/sparc.c (sparc_va_arg): Remove.
2467
2468 * tree-ssa-operands.c (get_stmt_operands): Use a V_MAY_DEF if the
2469 assignment might throw.
2470 * tree-eh.c (tree_could_throw_p): Support non-call exceptions in
2471 expressions.
2472
2473 2004-06-11 J"orn Rennecke <joern.rennecke@superh.com>
2474
2475 PR 15886:
2476 * sh.h (ALLOCATE_INITIAL_VALUE): Use return_address_pointer_rtx.
2477
2478 2004-06-11 Joseph S. Myers <jsm@polyomino.org.uk>
2479
2480 * doc/install.texi (Prerequisites): Update documentation of
2481 required versions of autoconf and automake. Remove mention of
2482 libf2c.
2483
2484 2004-06-11 Jason Merrill <jason@redhat.com>
2485
2486 * config/sparc/sparc.c (sparc_gimplify_va_arg): New fn.
2487 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2488
2489 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
2490
2491 * typeclass.h: Add GPL plus exception license. Add include
2492 guard.
2493
2494 2004-06-10 Jason Merrill <jason@redhat.com>
2495
2496 * gimplify.c (gimplify_modify_expr): Don't force a temporary
2497 of an aggregate_value_p type.
2498
2499 2004-06-10 Jeff Law <law@redhat.com>
2500
2501 * fold-const.c (fold_inf_compare): Avoid creating non-gimple
2502 code when we are in gimple form.
2503
2504 2004-06-10 Diego Novillo <dnovillo@redhat.com>
2505
2506 * Makefile.in (tree-ssanames.o): Depend on TREE_FLOW_H.
2507 * tree-flow.h (ssa_names, num_ssa_names, ssa_name): Declare.
2508 (highest_ssa_version): Remove.
2509 * tree-outof-ssa.c (new_temp_expr_table): Replace
2510 highest_ssa_version with num_ssa_names.
2511 (dump_replaceable_exprs): Likewise.
2512 (rewrite_vars_out_of_ssa): Likewise.
2513 * tree-ssa-ccp.c (initialize): Likewise
2514 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
2515 * tree-ssa-dce.c (tree_dce_init): Likewise.
2516 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2517 * tree-ssa-live.c (create_ssa_var_map): Likewise.
2518 (dump_var_map): Likewise.
2519 * tree-ssa.c (verify_ssa): Likewise.
2520 (kill_redundant_phi_nodes): Likewise.
2521 Do not build a local array of SSA_NAMEs. Use the ssa_names table.
2522 * tree-ssanames.c: Include tree-flow.h
2523 (ssa_names): New varray.
2524 (init_ssa_names): Initialize ssa_names.
2525 Reserve the first slot of the ssa_names table.
2526 (make_ssa_name): Push the newly created SSA_NAME into ssa_names.
2527 Assign version numbers using num_ssa_names.
2528
2529 2004-06-10 Joseph S. Myers <jsm@polyomino.org.uk>
2530
2531 * doc/sourcebuild.texi (Front End): Add details of more
2532 installation documentation required.
2533
2534 2004-06-10 Brian Booth <bbooth@redhat.com>
2535
2536 * doc/tree-ssa.texi: Remove references to VDEF and add descriptions
2537 of V_MAY_DEF and V_MUST_DEF.
2538 * tree-dfa.c (dfa_stats_d): Add num_v_must_defs and rename
2539 num_vdefs to num_v_may_defs.
2540 (compute_immediate_uses_for_stmt): Rename occurences of vdef
2541 to v_may_def.
2542 (redirect_immediate_uses): Ditto.
2543 (dump_dfa_stats): Ditto. Also added code to dump num_v_must_defs.
2544 (collect_dfa_stats_r): Rename occurences of vdef to v_may_def.
2545 Also add code to sum up the number of v_must_defs.
2546 (vdefs_disappeared_p): Replace with...
2547 (v_may_defs_disappeared_p): This.
2548 (v_must_defs_disappeared_p): New function.
2549 (mark_new_vars_to_rename): Rename occurences of vdef to v_may_def.
2550 Also add code to mark new variables found in V_MUST_DEFs for
2551 renameing.
2552 * tree-flow.h (stmt_ann_d): Add v_must_def_ops and replace
2553 vdef_ops to v_may_def_ops.
2554 (get_vdef_ops): Replace with...
2555 (get_v_may_def_ops): This.
2556 * tree-flow-inline.h (get_vdef_ops): Replace with...
2557 (get_v_may_def_ops): This.
2558 (get_v_must_def_ops): New function.
2559 (get_vdef_result_ptr): Replace with...
2560 (get_v_may_def_result_ptr): This.
2561 (get_vdef_op_ptr): Ditto with...
2562 (get_v_may_def_op_ptr); This.
2563 (get_v_must_def_op_ptr): New function.
2564 * tree-into-ssa.c (mark_def_sites): Rename occurences of vdef
2565 to v_may_def. Also add code to mark statements with
2566 V_MUST_DEFs as definition sites.
2567 (rewrite_stmt): Rename occurences of vdef to v_may_def. Also
2568 add code to register new V_MUST_DEFs made by the statement.
2569 * tree-outof-ssa.c (VIRTUAL_PARTITION): Update comments.
2570 (check_replaceable): Rename occurences of vdef to v_may_def. Also
2571 add check for V_MUST_DEFs.
2572 (find_replaceable_in_bb): Ditto.
2573 * tree-pretty-print.c (dump_vops): Rename occurences of vdef
2574 to v_may_def. Also add code to dump V_MUST_DEFs.
2575 * tree-sra.c (mark_all_vdefs): Replace with...
2576 (mark_all_v_may_defs): This.
2577 (mark_all_v_must_defs): New function.
2578 (create_scalar_copies): Replace call to mark_all_vdefs with
2579 calls to mark_all_v_may_defs and mark_all_v_must_defs.
2580 (scalarize_structures): Rename occurences of vdef to v_may_def.
2581 Also add a check for V_MUST_DEFs.
2582 (scalarize_modify_expr): Rename occurences of vdef to v_may_def.
2583 * tree-ssa-alias.c (global_var): Update comment.
2584 (compute_may_aliases): Ditto.
2585 (compute_points_to_and_addr_escape): Rename occurences of vdef
2586 to v_may_def. Also add code to mark variables in V_MUST_DEF
2587 operands as being written to.
2588 (group_aliases): Update comment.
2589 (maybe_create_global_var): Ditto.
2590 * tree-ssa.c (verify_ssa): Rename occurences of vdef to v_may_def.
2591 Also add a check for V_MUST_DEFs on GIMPLE registers.
2592 (replace_immediate_uses): Rename occurences of vdef to v_may_def.
2593 * tree-ssa-ccp.c (visit_stmt): Rename occurences of vdef
2594 to v_may_def. Also add code to mark all V_MUST_DEF operands
2595 VARYING.
2596 (initialize): Ditto.
2597 (set_rhs): Rename occurences of vdef to v_may_def. Also add
2598 code to update SSA_NAMEs in V_MUST_DEFs.
2599 * tree-ssa-copy.c (cprop_into_stmt): Rename occurences of vdef
2600 to v_may_def.
2601 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Rename
2602 occurences of vdef to v_may_def. Also add code to mark statements
2603 with V_MUST_DEFs as necessary.
2604 (propagate_necessity): Rename occurences of vdef to v_may_def.
2605 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Rename
2606 occurences of vdef to v_may_def. Also add code to mark operands
2607 in V_MUST_DEFs for renaming.
2608 (eliminate_redundant_computations): Rename occurences of vdef
2609 to v_may_def.
2610 (record_equivalences_from_stmt): Rename occurences of vdef
2611 to v_may_def. Also add code to record VUSEs for V_MUST_DEFs.
2612 (optimize_stmt): Remove unnesessary variable vdefs. Update
2613 comment.
2614 (register_definitions_for_stmt): Rename occurences of vdef
2615 to v_may_def. Also add code to register definitions made with
2616 V_MUST_DEFs.
2617 * tree-ssa-dse.c (fix_stmt_vdefs): Replace with...
2618 (fix_stmt_v_may_defs): This.
2619 (fix_phi_uses): Rename occurences of vdef to v_may_def.
2620 (dse_optimize_stmt): Ditto.
2621 * tree-ssa-live.c (create_ssa_var_map): Rename occurences of vdef
2622 to v_may_def. Also add code to mark V_MUST_DEF operands as being
2623 used in virtual operators.
2624 * tree-ssa-loop.c (mark_defs_for_rewrite): Rename occurences of
2625 vdef to v_may_def. Also add code to mark V_MUST_DEF operands for
2626 renaming.
2627 * tree-ssa-operands.c (opf_kill_def): New flag for killing
2628 definitions.
2629 (build_vdefs): Renamed to...
2630 (build_v_may_defs): This.
2631 (build_v_must_defs): New variable.
2632 (voperands_d): Add v_must_def_ops and replace vdef_ops with
2633 v_may_def_ops.
2634 (append_vdef): Replace with...
2635 (append_v_may_def): This.
2636 (append_v_must_def): New function.
2637 (NUM_FREE): Increment for V_MUST_DEF
2638 (optype_freelist): Increment its size for V_MUST_DEF
2639 (allocate_vdef_optype): Replace with...
2640 (allocate_v_may_def_optype): This.
2641 (allocate_v_must_def_optype): New function.
2642 (free_vdefs): Replace with...
2643 (free_v_may_defs): This.
2644 (free_v_must_defs): New function.
2645 (remove_vdefs): Replace with...
2646 (remove_v_may_defs): This.
2647 (remove_v_must_defs): New function.
2648 (init_ssa_operands): Rename occurences of vdef to v_may_def. Also
2649 add code to initialize build_v_must_defs.
2650 (finalize_ssa_vdefs): Replace with...
2651 (finalize_ssa_v_may_defs): This.
2652 (finalize_ssa_vuses): Rename occurences of vdef to v_may_def.
2653 (finalize_ssa_v_must_defs): New function.
2654 (finalize_ssa_stmt_operands): Replace call to finalize_ssa_vdefs
2655 with calls to finalize_ssa_v_may_defs and finalize_ssa_v_must_defs.
2656 (verify_start_operands): Rename occurences of vdef to v_may_def.
2657 Also add check for build_v_must_defs.
2658 (get_stmt_operands): Rename occurences of vdef to v_may_def.
2659 Also add code to handle V_MUST_DEFs and to use opf_kill_def for
2660 killing definitions.
2661 (get_expr_operands): Update comment and use opf_kill_def for
2662 killing definitions.
2663 (add_stmt_operand): Replace code that appends VDEFs with code
2664 that appends V_MUST_DEFs when opf_kill_def is set and V_MAY_DEFs
2665 otherwise.
2666 (add_call_clobber_ops): Update comments.
2667 * tree-ssa-operands.h (vdef_optype_d): Replace with...
2668 (v_may_def_optype_d): This.
2669 (v_must_def_optype_d): New structure.
2670 (VDEF_OPS): Replace with...
2671 (V_MAY_DEF_OPS): This.
2672 (STMT_VDEF_OPS): Same with...
2673 (STMT_V_MAY_DEF_OPS): This.
2674 (NUM_VDEFS): And...
2675 (NUM_V_MAY_DEFS): This.
2676 (VDEF_RESULT_PTR): As well as...
2677 (V_MAY_DEF_RESULT_PTR): This.
2678 (VDEF_RESULT): Same goes for...
2679 (V_MAY_DEF_RESULT): This.
2680 (VDEF_OP_PTR): And...
2681 (V_MAY_DEF_OP_PTR): This.
2682 (VDEF_OP): And...
2683 (V_MAY_DEF_OP): This.
2684 (V_MUST_DEF_OPS): New macro.
2685 (STMT_V_MUST_DEF_OPS): Ditto.
2686 (NUM_V_MUST_DEFS): Ditto.
2687 (V_MUST_DEF_OP_PTR): Ditto.
2688 (V_MUST_DEF_OP): Ditto.
2689 (remove_vdefs): Replace signature with...
2690 (remove_v_may_defs): This.
2691 (remove_v_must_defs): New function signature.
2692 * tree-ssa-pre.c (subst_phis): Replace call to remove_vdefs
2693 with calls to remove_v_may_defs and remove_v_must_defs.
2694 (process_left_occs_and_kills): Rename occurences of vdef to v_may_def.
2695 Also add code that marks left occurences of operands in V_MUST_DEFs.
2696 * tree-tailcall.c (find_tail_calls): Rename occurences of vdef
2697 to v_may_def. Also add check for V_MUST_DEFs.
2698 (eliminate_tail_call):Rename occurences of vdef to v_may_def.
2699
2700 2004-06-10 Vladimir Makarov <vmakarov@redhat.com>
2701
2702 PR target/15653
2703 * haifa-sched.c (schedule_block): Finish cycle after issuing asm
2704 insn.
2705
2706 2004-06-10 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2707
2708 PR web/15263
2709 * doc/install.texi: Remove superfluous linebreak.
2710
2711 2004-06-10 Roger Sayle <roger@eyesopen.com>
2712
2713 * builtins.c (expand_builtin): Fall back to library function call for
2714 conj, conjf, conjl, creal, crealf, creall, cimag, cimagf and cimagl.
2715 (fold_builtin_1): Lower built-ins BUILT_IN_CONJ{,F,L} to CONJ_EXPR,
2716 BUILT_IN_CREAL{,F,L} to REALPART_EXPR, and BUILT_IN_CIMAG{,F,L} to
2717 IMAGPART_EXPR respectively.
2718
2719 2004-06-10 J"orn Rennecke <joern.rennecke@superh.com>
2720
2721 * sh.c (dump_table): New argument start. Changed caller.
2722 (fixup_mova): New function.
2723 (find_barrier): Use it.
2724 (sh_reorg): Likewise. Check for CODE_FOR_casesi_worker_2.
2725 If the label a mova refers to is above the mova itself, change
2726 the mova into a load.
2727 * sh.md (*casesi_worker): Rename to:
2728 (casesi_worker_1).
2729 (casesi_worker_2): New insn.
2730
2731 2004-06-10 Jason Merrill <jason@redhat.com>
2732
2733 * target.h (struct gcc_target): Change gimplify_va_arg_expr
2734 hook signature.
2735 * tree-gimple.h: Adjust.
2736 * config/alpha/alpha.c (alpha_gimplify_va_arg): Adjust.
2737 * config/i386/i386.c (ix86_gimplify_va_arg): Adjust.
2738 Use fold_convert.
2739 * config/ia64/ia64.c (ia64_gimplify_va_arg): Adjust.
2740 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust.
2741 Use COMPLEX_EXPR for complex numbers. Use fold_convert.
2742 * builtins.c (std_gimplify_va_arg_expr): Adjust. Use fold_convert.
2743 (gimplify_va_arg_expr): Return GS_ERROR in error case.
2744 Gimplify valist rather than calling stabilize_va_list.
2745
2746 2004-06-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2747
2748 * Makefile.in (df.o): Remove fibheap dependency.
2749 * df.h: Do not include sbitmap.h.
2750 (struct ref): New field "data".
2751 (DF_REF_DATA): New accessor macro.
2752 (struct df): Field "dom" removed.
2753 (df_analyze_subcfg): New function.
2754 (transfer_function_sbitmap, transfer_function_bitmap): Replaced by ...
2755 (transfer_function): ... new type.
2756 (iterative_dataflow_sbitmap, iterative_dataflow_bitmap): Replaced by ...
2757 (iterative_dataflow): ... new function.
2758 (enum set_representation, struct dataflow): New.
2759 * df.c: Do not include fibheap.h.
2760
2761 (df_reg_def_chain_clean, df_reg_use_chain_clean,
2762 (df_bb_table_realloc, df_analyse_subcfg, free_reg_ref_chain,
2763 prune_to_subcfg, df_bb_modify): New functions.
2764 (df_bitmaps_alloc, df_reg_def_chain_create, df_reg_use_chain_create,
2765 df_refs_update, df_reg_table_realloc, df_ref_create,
2766 df_bb_reg_def_chain_create, df_bb_reg_use_chain_create,
2767 df_bb_rd_local_compute, df_bb_ru_local_compute, df_bb_lr_local_compute,
2768 df_analyse_1, df_insn_modify): Support analysing only a part of the cfg.
2769
2770 (dataflow_set_a_op_b, dataflow_set_copy): New functions.
2771 (df_rd_transfer_function, df_ru_transfer_function,
2772 df_lr_transfer_function): Type of bitmaps changed to void *.
2773 (hybrid_search_bitmap, hybrid_search_sbitmap): Merge into ...
2774 (hybrid_search): ... new function.
2775 (iterative_dataflow_bitmap, iterative_dataflow_sbitmap): Merge into ...
2776 (iterative_dataflow): ... new function. Avoid use of fibheaps for
2777 a worklist. Do not process basic blocks unnecessarily.
2778
2779 2004-06-10 Roger Sayle <roger@eyesopen.com>
2780
2781 * fold-const.c (fold_abs_const): Make extern.
2782 * tree.h (fold_abs_const): Prototype here.
2783 * builtins.c (fold_builtin_fabs): New function to transform
2784 fabs, fabsf and fabsl builtins into ABS_EXPR tree nodes.
2785 (fold_builtin_abs): New function to transform abs, labs, llabs
2786 and imaxabs builtins into ABS_EXPR tree nodes.
2787 (expand_builtin): Fall back to a function call for abs, labs,
2788 llabs and imaxabs builtins that survive constant folding.
2789 (fold_builtin_1): Call fold_builtin_fabs for FABS, FABSF and
2790 FABSL, and fold_builtin_abs for ABS, LABS, LLABS and IMAXABS.
2791
2792 2004-06-10 Jakub Jelinek <jakub@redhat.com>
2793
2794 * config/ia64/unwind-ia64.c (uw_frame_state_for): Don't assume a
2795 leaf function without unwind info at RP 0.
2796
2797 2004-06-10 Jakub Jelinek <jakub@redhat.com>
2798
2799 PR c++/14791
2800 * tree.h (enum tree_index): Add TI_FILEPTR_TYPE.
2801 (fileptr_type_node): Define.
2802 * tree.c (build_common_tree_nodes_2): Initialize
2803 fileptr_type_node to ptr_type_node.
2804 * c-common.c (c_common_nodes_and_builtins): For C++, make
2805 fileptr_type_node a distinct type copy.
2806 * builtin-types.def (BT_FILEPTR, BT_FN_INT_CONST_STRING_FILEPTR,
2807 BT_FN_INT_INT_FILEPTR, BT_FN_INT_FILEPTR_CONST_STRING_VALIST_ARG,
2808 BT_FN_SIZE_CONST_PTR_SIZE_SIZE_FILEPTR,
2809 BT_FN_INT_FILEPTR_CONST_STRING_VAR): Add.
2810 (BT_FN_INT_CONST_STRING_PTR, BT_FN_INT_INT_PTR,
2811 BT_FN_SIZE_CONST_PTR_SIZE_SIZE_PTR, BT_FN_INT_PTR_CONST_STRING_VAR,
2812 BT_FN_INT_PTR_CONST_STRING_VALIST_ARG): Remove.
2813 * builtins.def (BUILT_IN_FPRINTF, BUILT_IN_FPRINTF_UNLOCKED,
2814 BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS,
2815 BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FSCANF, BUILT_IN_FWRITE,
2816 BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): Use
2817 the above *FILEPTR* types instead of *PTR*.
2818
2819 2004-06-09 Daniel Berlin <dberlin@dberlin.org>
2820
2821 * tree-ssa.c (verify_ssa): Verify that vdefs/makes_aliased_stores
2822 match.
2823
2824 2004-06-09 Roger Sayle <roger@eyesopen.com>
2825
2826 * fold-const.c (fold_not_const): New function.
2827 (fold) <ABS_EXPR>: Don't bother testing wins.
2828 (fold) <BIT_NOT_EXPR>: Call fold_not_const.
2829 (nondestructive_fold_unary_to_constant) <BIT_NOT_EXPR>: Likewise.
2830
2831 2004-06-09 Richard Henderson <rth@redhat.com>
2832
2833 PR middle-end/15228
2834 * function.c (assign_parms): Always set_mem_align with the computed
2835 FUNCTION_ARG_BOUNDARY. Don't clear stack_parm if !STRICT_ALIGNMENT.
2836
2837 2004-06-09 Richard Henderson <rth@redhat.com>
2838
2839 PR opt/15108
2840 * tree-tailcall.c (find_tail_calls): Don't check early for
2841 tail_recursion failure.
2842
2843 2004-06-09 Diego Novillo <dnovillo@redhat.com>
2844
2845 Move SSA_NAME annotations into tree_ssa_name.
2846
2847 * tree-dfa.c (create_ssa_name_ann): Remove.
2848 * tree-flow-inline.h (ssa_name_ann, get_ssa_name_ann): Remove.
2849 * tree-flow.h (enum tree_ann_type): Remove SSA_NAME_ANN.
2850 (struct ssa_name_ann_d): Remove.
2851 (union tree_ann_d): Update.
2852 (ssa_name_ann_t): Remove.
2853 * tree-ssa-alias.c: (get_ptr_info): New local function.
2854 Replace references to ssa_name_ann_t with struct ptr_info_def.
2855 * tree-ssa-operands.c (get_expr_operands): Likewise.
2856 * tree.h (SSA_NAME_PTR_INFO): Define.
2857 (struct ptr_info_def): Declare.
2858 (struct tree_ssa_name): Add field 'ptr_info'.
2859
2860 2004-06-09 Danny Smith <dannysmith@users.sourceforge.net>
2861
2862 * config/i386/winnt.c (i386_pe_output_labelref): Correct
2863 misplaced ')'.
2864
2865 2004-06-09 Steven Bosscher <stevenb@suse.de>
2866
2867 * config/i386/k6.md: Rewrite using the DFA model.
2868 * config/i386/i386.c (ix86_adjust_cost): Don't increase the
2869 cost of load-operation insns for the K6.
2870 (ia32_use_dfa_pipeline_interface): Add TARGET_K6.
2871 (ia32_multipass_dfa_lookahead): Likewise.
2872
2873 2004-06-09 Richard Henderson <rth@redhat.com>
2874
2875 * config/alpha/alpha.c (alpha_gimplify_va_arg_1,
2876 alpha_gimplify_va_arg, TARGET_GIMPLIFY_VA_ARG_EXPR): New.
2877
2878 2004-06-09 Richard Henderson <rth@redhat.com>
2879
2880 * expmed.c (emit_store_flag): Cope with FLOAT_STORE_FLAG_VALUE.
2881
2882 2004-06-09 Geoffrey Keating <geoffk@apple.com>
2883
2884 * Makefile.in (CPPLIB_H): Put files in order of inclusion.
2885 (CPP_ID_DATA_H): New.
2886 (gtype-desc.o): Update dependencies.
2887 (GTFILES): Use CPP_ID_DATA_H.
2888
2889 2004-06-09 Mark Mitchell <mark@codesourcery.com>
2890
2891 Revert:
2892 PR c++/15815
2893 2004-06-07 Mark Mitchell <mark@codesourcery.com>
2894 * doc/extend.texi: Deprecate #pragma interface and #pragma
2895 implementation.
2896
2897 2004-06-09 David S. Miller <davem@nuts.davemloft.net>
2898
2899 * config/sparc/sparc.h (MOVE_RATIO): New definition.
2900
2901 2004-06-09 Richard Henderson <rth@redhat.com>
2902
2903 * basic-block.h (struct edge_def): Add goto_locus.
2904 * tree-cfg.c (make_goto_expr_edges): Set it.
2905 (disband_implicit_edges): Use it.
2906 * tree-pretty-print.c (dump_implicit_edges): Print it.
2907
2908 2004-06-08 Anil Paranjpe <anilp1@kpitcummins.com>
2909
2910 * h8300.md (ldm_h8300s_4): Fix condition for expander.
2911
2912 2004-06-08 Jason Merrill <jason@redhat.com>
2913
2914 Gimplify VA_ARG_EXPR into simpler forms.
2915 * target.h: Add gimplify_va_arg_expr hook.
2916 * target-def.h: Add TARGET_GIMPLIFY_VA_ARG_EXPR.
2917 * fold-const.c (build_fold_addr_expr)
2918 (build_fold_addr_expr_with_type): Move from gimplify.c.
2919 * tree.h: Declare them.
2920 * gimplify.c (gimplify_and_add): New fn.
2921 (build_addr_expr, build_addr_expr_with_type): Move to fold-const.c.
2922 (gimplify_array_ref_to_plus, gimplify_modify_expr)
2923 (gimplify_expr): Use build_fold_*.
2924 (copy_if_shared_r): Only mark VA_ARG_EXPR volatile if we
2925 don't know how to gimplify it.
2926 * builtins.c (std_gimplify_va_arg_expr): New fn.
2927 (dummy_object): New static fn.
2928 (gimplify_va_arg_expr): New fn.
2929 (stabilize_va_list): Use build_fold_*.
2930 * tree-gimple.h: Declare new fns.
2931 * config/i386/i386.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2932 (ix86_gimplify_va_arg): New fn.
2933 * config/ia64/ia64.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2934 (ia64_gimplify_va_arg): New fn.
2935 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): New fn.
2936 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2937 * alias.c (get_varargs_alias_set): Just return 0 for now.
2938
2939 * c-objc-common.c (c_tree_printer): Improve handling of %T.
2940
2941 2004-06-09 Andrew Pinski <pinskia@physics.uc.edu>
2942
2943 * tree-complex.c (expand_complex_comparison): Use fold_convert instead
2944 of convert.
2945 * tree-inline.c (setup_one_parameter): Likewise.
2946 * tree-sra.c (csc_build_component_ref): Likewise.
2947 * tree-ssa-ccp.c (ccp_fold): Likewise.
2948 * tree-ssa-copy.c (cprop_operand): Likewise.
2949 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
2950 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
2951
2952 2004-06-09 J"orn Rennecke <joern.rennecke@superh.com>
2953
2954 PR rtl-optimization/15521:
2955 * sched-int.h (in_post_call_group_p): Change type to enum.
2956 * sched-deps.c (sched_analyze_insn):
2957 (sched_analyze): When in_post_call_group_p is post_call_initial,
2958 don't add a dependency, but still set SCHED_GROUP_P and CANT_MOVE,
2959 and also reset in_post_call_group_p to post_call.
2960 (sched_analyze): When the previous basic block ended in a CALL_INSN,
2961 initialize in_post_call_group_p as post_call_initial.
2962 (init_deps): initialize in_post_call_group_p to not_post_call.
2963
2964 2004-06-09 Arnaud Charlet <charlet@act-europe.fr>
2965
2966 PR ada/6637
2967 * doc/install.texi: List ada, libada as options to --enable-shared
2968
2969 2004-06-09 Paolo Bonzini <bonzini@gnu.org>
2970
2971 * aclocal.m4 (gcc_AC_PROG_LN): Remove.
2972 (gcc_AC_CHECK_DECLS): Use AH_TEMPLATE to generate
2973 config.in entries.
2974 * configure.ac: Call ACX_PROG_LN, falling back to $LN_S
2975 if hard links are not available.
2976 * configure: Regenerate.
2977 * config.in: Regenerate.
2978
2979 2004-06-08 Per Bothner <per@bothner.com>
2980
2981 * configure.ac: New --enable-mapped-location sets USE_MAPPED_LOCATION.
2982
2983 2004-06-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2984
2985 * toplev.c (floor_log2_wide): Correct casts for 64-bit hosts.
2986 Correct formatting.
2987
2988 2004-06-08 James E Wilson <wilson@specifixinc.com>
2989
2990 PR target/15790
2991 * config/i386/i386-coff.h (ASM_OUTPUT_ALIGN): Define.
2992
2993 2004-06-08 Andrew Pinski <pinskia@physics.uc.edu>
2994
2995 * fold-const.c (fold_convert): Treat OFFSET_TYPE like
2996 POINTER_TYPE and INTEGER_TYPE.
2997
2998 2004-06-08 Bernardo Innocenti <bernie@develer.com>
2999
3000 * modulo-sched.c: Compile only when INSN_SCHEDULING is
3001 defined.
3002
3003 2004-06-08 Jeff Law <law@redhat.com>
3004
3005 * doc/contrib.texi: Add entries for Stefan Olsson and
3006 Ola Ronnerup.
3007
3008 2004-06-08 DJ Delorie <dj@redhat.com>
3009
3010 * toplev.c (floor_log2_wide): Replace loop with faster bit
3011 operations.
3012 (exact_log2_wide): Define in terms of the above.
3013 * toplev.h (floor_log2): Use _builtin_clz family of builtins if
3014 available.
3015
3016 2004-06-08 Andrew Pinski <pinskia@physics.uc.edu>
3017
3018 * config/rs6000/rs6000.c (print_operand, <case 'z'>):
3019 Make sure that we are in INDIRECT mode when getting the
3020 stub name.
3021
3022 2004-06-08 Anil Paranjpe <anilp1@kpitcummins.com>
3023
3024 * h8300.md (extendqisi2_h8300): Add constraints.
3025 (ldm_h8300s_4_normal): Fix typo.
3026
3027 2004-06-08 Richard Henderson <rth@redhat.com>
3028
3029 * gimple-low.c (struct lower_data): Replace the_return_label and
3030 one_return_stmt with return_statements.
3031 (lower_function_body): Process the entire list of return_statements.
3032 (lower_return_expr): Check source value before unifying return_exprs.
3033 * gimplify.c (gimplify_return_expr): Force the use of a temporary
3034 for !aggregate_value_p.
3035 * tree-gimple.c: Update RETURN_EXPR grammer.
3036
3037 2004-06-08 Vladimir Makarov <vmakarov@redhat.com>
3038
3039 PR target/15598
3040 * config/ia64/ia64.c (bundling): Add missed TYPE_A.
3041
3042 2004-06-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3043
3044 PR rtl-optimization/15717
3045 * config/i386/i386.c (legitimate_constant_p): Do not allow
3046 x - symbol_ref.
3047
3048 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
3049
3050 * gimplify.c (copy_if_shared_r): Revert:
3051 2004-05-21 Richard Henderson <rth@redhat.com>
3052 * gimplify.c [...] Don't mark VA_ARG_EXPRs volatile here.
3053
3054 2004-06-07 Roger Sayle <roger@eyesopen.com>
3055
3056 * expmed.c (add_cost, neg_cost, sdiv_pow2_cheap, smod_pow2_cheap):
3057 Make arrays indexed by machine mode. Rename negate_cost to neg_cost.
3058 (init_expmed): Initialize these cost arrays as appropriate.
3059 (store_bit_field, extract_bit_field): Correct whitespace.
3060 (synth_mult, choose_mult_variant, expand_mult, expand_mult_highpart,
3061 expand_mult_highpart_optab, expand_divmod): Update uses of add_cost,
3062 neg_cost, sdiv_pow2_cheap, smod_pow2_cheap to index with mode,
3063 word_mode or compute_mode as appropriate.
3064
3065 2004-06-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3066
3067 PR target/15783
3068 * config/sparc/sparc.c (function_arg_union_value): Add 'mode'
3069 parameter. Enumerate the registers inside the PARALLEL.
3070 (function_arg): Adjust call to function_arg_union_value.
3071 (function_value): Likewise.
3072
3073 * config/sparc/sparc.c (sparc_function_epilogue): Properly format.
3074
3075 2004-06-07 Roger Sayle <roger@eyesopen.com>
3076
3077 * real.c (real_copysign): New function to implement libm's copysign.
3078 * real.h (real_copysign): Prototype here.
3079 * fold-const.c (tree_expr_nonnegative_p): The result of sqrt, sqrtf
3080 and sqrtl can be negative, as sqrt(-0.0) = -0.0. Correct whitespace.
3081 * builtins.c (fold_builtin_isascii, fold_builtin_toascii,
3082 fold_builtin_isdigit): Add function prototypes.
3083 (fold_builtin_copysign): New function to fold copysign, copysignf
3084 and copysignl. Optimize copysign(x,x) as x. Evaluate copysign of
3085 constant arguments at compile-time using real_copysign. Fold
3086 copysign(X,Y) as fabs(X) if Y is always non-negative.
3087 (fold_builtin_1): Correct minor whitespace/style issues. Call
3088 fold_builtin_copysign for BUILT_IN_COPYSIGN{,F,L}.
3089
3090 2004-06-07 J"orn Rennecke <joern.rennecke@superh.com>
3091
3092 * tree.c (iterative_hash_expr): Use real_hash.
3093
3094 2004-06-07 Joseph S. Myers <jsm@polyomino.org.uk>
3095
3096 PR c/14765
3097 * c-parse.in (compstmt_primary_start): Set last_expr_type to
3098 NULL_TREE.
3099
3100 2004-06-07 Mark Mitchell <mark@codesourcery.com>
3101
3102 PR c++/15815
3103 * doc/extend.texi: Deprecate #pragma interface and #pragma
3104 implementation.
3105
3106 2004-06-07 Alexandre Oliva <aoliva@redhat.com>
3107
3108 PR middle-end/15666
3109 * c-decl.c (finish_decl): Use change_decl_assembler_name for the
3110 builtin decl as well.
3111
3112 2004-06-07 Roger Sayle <roger@eyesopen.com>
3113
3114 PR c/14649
3115 * c-typeck.c (require_constant_value, require_constant_elements):
3116 Move declarations to the top of the file.
3117 (build_function_call): If we require a constant value, fold with
3118 fold_initializer. If the result is a constant, and the function
3119 wasn't called using __builtin_foo, issue a pedantic warning.
3120 (build_unary_op): If we require a constant value, fold tree with
3121 fold_initializer.
3122 (build_binary_op): Use require_constant_value to determine whether
3123 to call fold or fold_initializer.
3124
3125 2004-06-07 Richard Henderson <rth@redhat.com>
3126
3127 * gimple-low.c (struct lower_data): Add the_return_label and
3128 one_return_stmt.
3129 (lower_function_body): Initialize and use them.
3130 (lower_return_expr): New.
3131 (lower_stmt): Call it.
3132 * gimplify.c (gimplify_return_expr): Force the argument to be either
3133 null or a result_decl.
3134 * tree-gimple.c: Update gimple grammer to match.
3135 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Deny
3136 coalescing of result_decls.
3137
3138 2004-06-07 Richard Henderson <rth@redhat.com>
3139
3140 PR rtl-opt/15193
3141 * expmed.c (extract_bit_field): Fix vector_extract return.
3142
3143 * config/i386/i386.md (negv4sf2): New pattern.
3144
3145 2004-06-07 Mark Mitchell <mark@codesourcery.com>
3146
3147 PR c++/15337
3148 * c-common.c (c_sizeof_or_alignof_type): Use more detailed error
3149 message.
3150
3151 2004-06-06 Paolo Bonzini <bonzini@gnu.org>
3152
3153 * config.in: Regenerate.
3154
3155 2004-06-06 Steven Bosscher <stevenb@suse.de>
3156
3157 * tree-cfg.c (tree_verify_flow_info): Make sure that labels in
3158 SWITCH_LABELS are always sorted.
3159
3160 2004-06-06 Steven Bosscher <stevenb@suse.de>
3161
3162 * hooks.c (hook_int_void_1): New generic hook.
3163 * hooks.h (hook_int_void_1): Add prototype.
3164 * config/c4x/c4x.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
3165 Define to hook_int_void_1.
3166 * config/c4x/c4x.md: Replace dummies for the old pipeline model
3167 with dummies for the new one.
3168
3169 2004-06-06 Roger Sayle <roger@eyesopen.com>
3170
3171 * tree.h (lvalue_or_else): Delete function prototype.
3172 * c-typeck.c (lvalue_or_else): Make static. Add static prototype.
3173
3174 2004-06-06 Stephane Carrez <stcarrez@nerim.fr>
3175
3176 PR target/14542
3177 * config/m68hc11/m68hc11.md (move peephole2): Emit a use note to avoid
3178 a live change of a register after peephole replacement.
3179
3180 2004-06-06 Joseph S. Myers <jsm@polyomino.org.uk>
3181
3182 PR c/13519
3183 * c-typeck.c (composite_type, common_pointer_type): New functions.
3184 (common_type): Split parts into composite_type and
3185 common_pointer_type. Ensure that arithmetic operations return
3186 unqualified types without attributes. Don't make composite type
3187 of signed enum and compatible integer be unsigned.
3188 (build_conditional_expr, build_binary_op): Use
3189 common_pointer_type.
3190 * c-decl.c (merge_decls): Use composite_type.
3191 * c-tree.h (composite_type): Declare.
3192
3193 2004-06-06 Stephane Carrez <stcarrez@nerim.fr>
3194
3195 PR target/14457
3196 * config/m68hc11/m68hc11.c (splitable_operand): New predicate.
3197 * config/m68hc11/m68hc11-protos.h (splitable_operand): Declare.
3198 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register it.
3199 (inhibit_libc): Must define.
3200 * config/m68hc11/m68hc11.md ("movhi_const0"): Use splitable_operand.
3201 ("*andhi3_gen", "iorhi3", "*iorhi3_gen"): Likewise.
3202 ("xorhi3"): Likewise.
3203
3204 2004-06-06 Eric Botcazou <ebotcazou@libertysurf.fr>
3205
3206 * cgraphunit.c (cgraph_decide_inlining): Adjust dump lines in
3207 always_inline pass.
3208
3209 2004-06-05 David S. Miller <davem@nuts.davemloft.net>
3210
3211 * config/sparc/linux.h (TARGET_C99_FUNCTIONS): Set.
3212 * config/sparc/linux64.h (TARGET_C99_FUNCTIONS): Likewise.
3213
3214 2004-06-05 Bernardo Innocenti <bernie@develer.com>
3215
3216 * regclass.c (init_reg_sets): Check for missing registers in target
3217 initializer macros FIXED_REGISTERS and CALL_USED_REGISTERS.
3218
3219 2004-06-05 Zack Weinberg <zack@codesourcery.com>
3220
3221 * Makefile.in (MKDEPS_H): New shorthand.
3222 (c-opts.o): Update dependencies.
3223 * c-opts.c: Include mkdeps.h.
3224 (handle_deferred_opts): Use cpp_get_deps and deps_add_target,
3225 not cpp_add_dependency_target.
3226
3227 2004-06-05 Steven Bosscher <stevenb@suse.de>
3228
3229 * config/v850/v850.c (v850_use_dfa_pipeline_interface): New.
3230 * config/v850/v850.md: Convert to DFA scheduler description.
3231
3232 2004-06-05 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
3233
3234 PR fortran/15478
3235 * doc/install.texi: Document GMP as prerequisite. Document
3236 --with-gmp and --with-gmp-dir configure options.
3237 * fortran/gfortran.texi: Remove section "Compiling and testing",
3238 remove TOC reference to it.
3239
3240 2004-06-05 Graham Stott <graham.stott@btinternet.com>
3241
3242 * combine.c(simplify_shift_const): Check shift amount is a
3243 CONST_INT.
3244
3245 2004-06-05 Danny Smith <dannysmith@users.sourceforge.net>
3246
3247 * toplev.c (init_asm_output): Add explicit 'b' to mode when
3248 opening asm_out_file.
3249 * c-pch.c (c_common_write_pch): Remove unnecessary fflush before
3250 reading asm_out_file. Replace fflush after reading asm_out_file
3251 with fseek.
3252 * hosthooks-def.h (HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY): Define
3253 default and add to HOST_HOOKS_INITIALIZER.
3254 * hosthooks.h (gt_pch_alloc_granularity): Declare hook function.
3255 * ggc-common.c (default_gt_pch_alloc_granularity): New function.
3256 (gt_pch_save): Use host_hooks.gt_pch_alloc_granularity
3257 to set mmi.offset padding.
3258 * config.gcc (i[34567]86-*-mingw32*): Set target_gtfiles to
3259 $(srcdir)/config/i386/winnt.c.
3260 (i[34567]86-*-pe | i[34567]86-*-cygwin*): Likewise.
3261 (i[34567]86-*-uwin*): Likewise.
3262 *i[34567]86-*-interix3*): Likewise.
3263 * config.host (i[34567]86-*-mingw32*): Set out_host_hook_obj.
3264 * config/i386/host-mingw32.c: New file.
3265 * config/i386/x-mingw32: Add rule for host-mingw32.o.
3266 * config/i386/winnt.c: (struct extern_list) Tag as GTY.
3267 (extern_head): Likewise.
3268 (struct export_list) Likewise.
3269 (export_head): Likewise.
3270 (i386_pe_record_external_function): Use ggc_alloc.
3271 (i386_pe_record_exported_symbol): Likewise.
3272 Include "gt-winnt.h" at end.
3273 * doc/hostconfig.texi: Document
3274 HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY.
3275
3276 2004-06-04 Bernardo Innocenti <bernie@develer.com>
3277
3278 * config/m68k/m68k.h: Remove comments copied over from tm.texi.
3279 Rename 68000 and 68k to m68k for consistency in comments. Remove
3280 trailing whitespace before EOLs and before TABs.
3281 (MAX_CODE_ALIGN): Remove unused macro.
3282 (CALL_USED_REGISTERS): Reformat and add comments.
3283
3284 2004-06-04 Frank Ch. Eigler <fche@redhat.com>
3285
3286 * gcc.c (MFLIB_SPEC): Remove library references, to require users
3287 to enumerate -lmudflap* and dependencies when linking.
3288
3289 2004-06-04 Paolo Bonzini <bonzini@gnu.org>
3290
3291 PR target/15822
3292 * dojump.c (do_jump): Fix uninitialized variable tcode1.
3293
3294 2004-06-04 Jerry Quinn <jlquinn@optonline.net>
3295
3296 * Makefile.in (insn-conditions.o): Back out removal of reload.h.
3297 * genconditions.c (write_header): Back out removal of reload.h.
3298
3299 2004-06-04 Jan Hubicka <jh@suse.cz>
3300
3301 Re-apply hopefully fixed patch:
3302 * i386.md (UNSPECV_EH_RETURN): Kill.
3303 (eh_return): Use jump_insn.
3304 (eh_return_si, eh_return_di): Change pattern to jump instruction.
3305
3306 2004-06-04 Jeff Law <law@redhat.com>
3307
3308 * cfgrtl.c (try_redirect_by_replacing_jump): Fix return value.
3309
3310 2004-06-04 Steven Bosscher <stevenb@suse.de>
3311
3312 * except.c (for_each_eh_region): New function.
3313 * except.h (for_each_eh_region): Add a prototype for it.
3314 * tree-cfg.c (update_eh_labels): New function, callback for
3315 for_each_eh_region.
3316 (label_for_bb): Make global static, unfortunately.
3317 (cleanup_dead_labels): Also update label references for
3318 exception regions.
3319
3320 2004-06-03 Chris Demetriou <cgd@broadcom.com>
3321
3322 * config/mips/mips.c (struct irix_section_align_entry): Fix
3323 GTY marker.
3324
3325 2004-06-03 Geoffrey Keating <geoffk@apple.com>
3326
3327 * toplev.c (check_global_declarations): Don't ask for
3328 DECL_ASSEMBLER_NAME unless the function really is declared
3329 static and not defined.
3330
3331 2004-06-03 Matt Austern <austern@apple.com>
3332
3333 PR c++/15428
3334 * default.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): New name
3335 for TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, with reversed sense.
3336 * config/darwin.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Likewise.
3337 * doc/tm.texi (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Rewrite
3338 documentation to reflect the new macro name and to clarify its
3339 meaning.
3340
3341 2004-06-03 Steven Bosscher <stevenb@suse.de>
3342
3343 * rtl.def (VAR_LOCATION): Make RTX_EXTRA.
3344
3345 2004-06-03 Andrew Pinski <pinskia@physics.uc.edu>
3346
3347 * config/darwin.c (machopic_indirect_data_reference): Copy
3348 the SYMBOL_REF_DECL from the original RTX for the new
3349 non-lazy pointer RTX.
3350
3351 2004-06-03 Mark G. Adams <mark.g.adams@sympatico.ca>
3352
3353 * tree.h: Remove include of version.h
3354 * c-cppbuiltin.c: Include version.h
3355 * diagnostic.c: Include version.h
3356 * dwarf2out.c: Include version.h
3357 * toplev.c: Include version.h
3358 * vmsdbgout.c: Include version.h
3359 * Makefile.in: Remove dependency on version.h from TREE_H, and
3360 add dependencies to required .o targets
3361
3362 2004-06-03 Jerry Quinn <jlquinn@optonline.net>
3363
3364 * Makefile.in (RA_H, RESOURCE_H, SCHED_INT_H, CFGLAYOUT_H,
3365 CFGLOOP_H, DF_H, DDG_H, TREE_SSA_LIVE_H): New.
3366 (TARGET_H): Add insn-modes.h.
3367 (tree-ssa.o, tree-cfg.o, tree-ssa-loop.o, toplev.o, passes.o,
3368 loop.o, loop-doloop.o, unroll.o, cfgloop.o, cfgloopanal.o,
3369 loop-iv.o, cfgloopmanip.o, loop-init.o, loop-unswitch.o,
3370 loop-unroll.o, ddg.o, modulo-sched.o, predict.o,
3371 cfglayout.o, ifcvt.o): Replace cfgloop.h with CFGLOOP_H.
3372 (toplev.o, passes.o, cfghooks.o, cfgloopmanip.o, loop-init.o,
3373 loop-unswitch.o, loop-unroll.o, ddg.o, modulo-sched.o,
3374 bb-reorder.o, tracer.o, cfglayout.o): Replace cfglayout.h with
3375 CFGLAYOUT_H.
3376 (ra.o, ra-build.o, ra-colorize.o, ra-debug.o, ra-rewrite.o):
3377 Replace ra.h with RA_H.
3378 (resource.o, regrename.o, insn-conditions.o, insn-emit.o,
3379 insn-recog.o): Replace resource.h with RESOURCE_H.
3380 (ddg.o, modulo-sched.o, haifa-sched.o, sched-deps.o, sched-rgn.o,
3381 sched-ebb.o, sched-vis.o, out_object_file): Replace sched-int.h
3382 with SCHED_INT_H.
3383 (web.o, lcm.o, df.o, ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
3384 ra-rewrite.o): Replace df.h with DF_H.
3385 (ddg.o, modulo-sched.o): Replace ddf.h with DDG_H.
3386 (tree-outof-ssa.o, tree-ssa-live.o, tree-ssa-copyrename.o):
3387 Replace tree-ssa-live.h with TREE_SSA_LIVE_H.
3388 (insn-conditions.o): Remove unused reload.h.
3389 * cfglayout.h: Add include guard. Include basic-block.h.
3390 * cfgloop.h: Add include guard. Include basic-block.h, rtl.h.
3391 * ddg.h: Include sbitmap.h, basic-block.h, df.h.
3392 * df.h: Add include guard. Include bitmap.h, sbitmap.h,
3393 basic-block.h.
3394 * genconditions.c: Remove reload.h.
3395 * ra.h: Add include guard. Include bitmap.h, sbitmap.h,
3396 hard-reg-set.h, insn-modes.h.
3397 * resource.h: Add include guard. Include hard-reg-set.h.
3398 * sched-int.h: Add include guard. Include insn-attr.h,
3399 basic-block.h, rtl.h.
3400 * target.h: Add include guard. Include insn-modes.h.
3401 * tree-ssa-live.h: Include partition.h.
3402
3403 2004-06-03 Daniel Berlin <dberlin@dberlin.org>
3404 Kenneth Zadeck <zadeck@naturalbridge.com>
3405
3406 * tree-ssa-ccp.c (varying_ssa_edges): New worklist.
3407 (add_var_to_ssa_edges_worklist): Add value argument.
3408 Update callers.
3409 Use new worklist.
3410 (process_ssa_edge_worklist): New function.
3411 (tree_ssa_ccp): Move worklist processing core to
3412 process_ssa_edge_worklist, and just call that for the two worklists.
3413
3414 2004-06-03 Steven Bosscher <stevenb@suse.de>
3415
3416 * basic-block.c (tail_recursion_label_list): Don't declare.
3417 (CLEANUP_PRE_SIBCALL): Remove. Renumber the other CLEANUP_*
3418 accordingly.
3419 * cfgbuild.c (find_label_refs): Remove.
3420 (find_basic_blocks_1): Don't handle CALL_PLACEHOLDER insns.
3421 * cfgcleanup.c (tail_recursion_label_p): Remove.
3422 (merge_blocks_move): Do not check for tail recursion.
3423 (try_optimize_cfg): Likewise.
3424 (cleanup_cfg): Never handle CLEANUP_PRE_SIBCALL.
3425 * cfgrtl.c (tail_recursion_label_list): Remove.
3426 * except.c (remove_unreachable_regions): Don't handle
3427 CALL_PLACEHOLDER insns.
3428 (convert_from_eh_region_ranges_1, can_throw_internal,
3429 can_throw_external): Likewise.
3430 * function.c (free_after_compilation): Don't clear
3431 x_tail_recursion_label.
3432 (fixup_var_refs_insns): Don't handle CALL_PLACEHOLDER insns.
3433 (identify_blocks_1): Don't recurse for CALL_PLACEHOLDER insns.
3434 (reorder_blocks_1): Likewise.
3435 * function.h (struct function): Remove x_tail_recursion_label
3436 member. Don't define tail_recursion_label.
3437 * jump.c (mark_all_labels): Don't handle CALL_PLACEHOLDER insns.
3438 * print-rtl.c (print_rtx): Likewise.
3439 * rtl.def (CALL_PLACEHOLDER): Remove.
3440 * rtl.h (sibcall_use_t): Remove enum.
3441 (optimize_sibling_and_tail_recursive_calls,
3442 replace_call_placeholder): Remove function prototypes.
3443 * stmt.c (tail_recursion_args): Remove.
3444 (optimize_tail_recursion): Remove.
3445 (expand_return): Don't check for possible tail recursion.
3446 * tree.h (optimize_tail_recursion): Remove prototype.
3447
3448 2004-06-02 Jan Hubicka <jh@suse.cz>
3449
3450 * tree-cfg.c (tree_find_edge_insert_loc): Allow inserting before
3451 return_stmt.
3452
3453 2004-06-02 Jason Merrill <jason@redhat.com>
3454
3455 * Makefile.in (TAGS): Don't mess with c-parse.[ch].
3456 Do include c-parse.in.
3457
3458 2004-06-02 Eric Christopher <echristo@redhat.com>
3459
3460 * c-typeck.c (common_type): Don't lose type qualifiers
3461 when creating new variants.
3462
3463 2004-06-02 Andrew Pinski <pinskia@physics.uc.edu>
3464
3465 PR tree-optimization/14042
3466 PR tree-optimization/14729
3467 PR tree-optimization/14736
3468 * tree-ssa.c (tree_ssa_useless_type_conversion_1):
3469 Check the type which the pointer points to
3470 instead of the pointer types.
3471
3472 2004-06-02 Kazu Hirata <kazu@cs.umass.edu>
3473
3474 PR tree-optimization/15738.
3475 * builtins.c (fold_builtin_strchr): Transform
3476 strrchr (s, '\0') to strchr (s, '\0').
3477
3478 2004-06-02 Steven Bosscher <stevenb@suse.de>
3479
3480 * i386.c (ix86_adjust_cost): Don't increase the cost for
3481 load+operation for PROCESSOR_PENTIUMPRO, it is already
3482 modelled in the DFA description
3483
3484 2004-06-01 Jerry Quinn <jlquinn@optonline.net>
3485
3486 * Makefile.in (EXPR_H): Add insn-config.h, function.h,
3487 $(RTL_H), flags.h, $(TREE_H), $(MACHMODE_H), $(EXPR_H).
3488 (ALIAS_H, EMIT_RTL_H): New.
3489 (cselib.o): Replace EXPR_H with EMIT_RTL_H.
3490 (cfgcleanup.o): Add EMIT_RTL_H.
3491 (alias.o): Replace EXPR_H with EMIT_RTL_H and ALIAS_H.
3492 * alias.c: Replace expr.h with emit-rtl.h and alias.h.
3493 * attribs.c, c-lex.c, c-obj-common.c, c-semantics.c: Remove expr.h.
3494 * cfgcleanup.c, cselib.c: Replace expr.h with emit-rtl.h.
3495 * expr.h: Add include guard. Include function.h, rtl.h, flags.h,
3496 tree.h, machmode.h, insn-config.h, alias.h, emit-rtl.h.
3497 (get_varargs_alias_set, get_frame_alias_set, record_base_value,
3498 record_alias_subset, new_alias_set, can_address_p): Move to alias.h.
3499 (set_mem_alias_set, set_mem_align, set_mem_expr, set_mem_offset,
3500 set_mem_size): Move to emit-rtl.h.
3501 * emit-rtl.h: New.
3502 * alias.h: New.
3503
3504 2004-06-01 Eric Botcazou <ebotcazou@act-europe.fr>
3505
3506 * function.c (walk_fixup_memory_subreg): New parameter 'var'.
3507 Call fixup_memory_subreg only if the MEM is equal to 'var'.
3508 Adjust recursive calls to self.
3509 (fixup_var_refs_insn): Pass 'var' to walk_fixup_memory_subreg.
3510
3511 2004-06-01 Richard Henderson <rth@redhat.com>
3512 Andrew Pinski <pinskia@physics.uc.edu>
3513
3514 * c-parse.in (OFFSETOF, offsetof_member_designator): New.
3515 (primary): Handle offsetof. Add error productions for faux functions.
3516 Move component_ref objc checking to build_component_ref.
3517 (reswords): Add offsetof.
3518 (rid_to_yy): Add offsetof.
3519 * c-tree.h (build_offsetof): Declare.
3520 * c-common.h (objc_is_public): Declare.
3521 * c-typeck.c (build_component_ref): Check objc_is_public.
3522 (build_offsetof): New.
3523 * stub-objc.c (objc_is_public): New.
3524 * objc/objc-act.c, objc/objc-act.h (objc_is_public): Rename
3525 from is_public.
3526 * ginclude/stddef.h (offsetof): Use __builtin_offsetof.
3527 * doc/extend.texi (Offsetof): Move from C++ section to C section
3528 and rewrite for __builtin_offsetof.
3529
3530 2004-06-01 Peter Barada <peter@the-baradas.com>
3531 Peter Jakubek <peter@laseranimation.com>
3532
3533 * config/m68k/m68k.c(m68k_output_mi_thunk): For ColdFire, use %d0 as
3534 a scratch to perform an add to memory.
3535
3536 2004-06-01 Bernardo Innocenti <bernie@develer.com>
3537
3538 PR target/14018
3539 * config/m68k/m68k.c (m68k_align_loops_string, m68k_align_jumps_string,
3540 m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
3541 m68k_align_funcs): Remove.
3542 (override_options): Remove code to handle -malign-* options.
3543 * config/m68k/m68k.h (TARGET_OPTIONS): Remove -malign-* options.
3544 (FUNCTION_BOUNDARY, LOOP_ALIGN, LOOP_ALIGN_AFTER_BARRIER): Remove.
3545 (m68k_align_loops_string, m68k_align_jumps_string,
3546 m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
3547 m68k_align_funcs): Remove definitions.
3548
3549 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
3550
3551 PR target/15626
3552 * doc/install.texi (sparc-sun-solaris2*): Document messages issued
3553 by the Sun linker in conjunction with the Sun assembler.
3554 (sparc-sun-solaris2.7): Update revision info for Sun patch 106950.
3555
3556 2004-06-01 Jeff Law <law@redhat.com>
3557
3558 * stmt.c (expand_decl): Be more selective about calling
3559 mark_reg_pointer.
3560
3561 2004-06-01 Nicola Pero <nicola@brainstorm.co.uk>
3562
3563 PR objc/7993
3564 * objc-act.c (is_private): Do not emit the 'instance variable %s
3565 is declared private' error.
3566 (is_public): Emit the error after calling is_private.
3567 (lookup_objc_ivar): If the instance variable is private, return 0
3568 - the instance variable is invisible here.
3569
3570 2004-06-01 Eric Botcazou <ebotcazou@libertysurf.fr>
3571
3572 * doc/invoke.texi (-static-libgcc): Explicitly mention
3573 non-GNU linkers.
3574
3575 2004-06-01 Bernardo Innocenti <bernie@develer.com>
3576
3577 PR target/12968
3578 * doc/invoke.texi: Document stack alignment side-effect of -mshort.
3579
3580 2004-05-31 Joseph S. Myers <jsm@polyomino.org.uk>
3581
3582 PR c/15749
3583 * c-decl.c (grokdeclarator, finish_struct): Don't pedwarn for
3584 misuses of structures with flexible array members if
3585 in_system_header.
3586
3587 2004-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
3588
3589 PR target/15693
3590 * config/sparc/sparc.c (compare_operand): New predicate.
3591 * config/sparc/sparc.h (PREDICATE_CODES): Add it.
3592 * config/sparc/sparc.md (cmpsi expander): Use it. If the first
3593 operand is a ZERO_EXTRACT and the second operand is not zero,
3594 force the former to a register.
3595 (cmpdi expander): Likewise.
3596
3597 2004-05-31 Geoffrey Keating <geoffk@apple.com>
3598
3599 * gengtype-lex.l: Catch stray GTY markers in the files gengtype
3600 looks at.
3601 * alias.c (alias_invariant_size): Make alias_invariant_size
3602 static, fix GTY marker.
3603
3604 2004-05-31 Kazu Hirata <kazu@cs.umass.edu>
3605
3606 PR tree-optimization/15743.
3607 * builtins.c (fold_builtin_1): Fold index() and rindex().
3608
3609 2004-05-31 Roger Sayle <roger@eyesopen.com>
3610
3611 PR middle-end/15069
3612 * fold-const.c (fold_single_bit_test): Only perform "(X & C) != 0"
3613 into "X < 0" (where C is the signbit) if X's type is a full mode.
3614
3615 2004-05-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3616
3617 * pa.md: Disable the peephole2 patterns that generate indexed
3618 floating-point stores when indexing is disabled.
3619
3620 2004-05-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
3621
3622 * c-pretty-print.c (pp_c_left_bracket): Make a function.
3623 (pp_c_right_bracket): Likewise.
3624 (pp_c_star): Likewise.
3625 (pp_c_ampersand): Define.
3626 * c-pretty-print.h (pp_c_left_bracket): Declare.
3627 (pp_c_right_bracket): Likewise.
3628 (pp_c_star): Likewise.
3629 (pp_c_ampersand): Likewise.
3630
3631 2004-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
3632
3633 * config/sol2.h (__enable_execute_stack): ANSIfy function
3634 definition.
3635
3636 2004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
3637
3638 * c-incpath.c (add_path): Canonicalize paths to use '/' if
3639 HAVE_DOS_BASED_FILESYSTEM.
3640
3641 2004-05-31 Steven Bosscher <stevenb@suse.de>
3642
3643 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
3644 Only look at case labels if the immediate dominator is also
3645 the only predecessor. Don't look for more case labels if the
3646 first seen is a case range.
3647
3648 2004-05-31 Kazu Hirata <kazu@cs.umass.edu>
3649
3650 * builtins.c: Add a prototype for fold_builtin_strchr().
3651
3652 2004-05-31 Paolo Bonzini <bonzini@gnu.org>
3653
3654 Revert this patch:
3655 2004-05-27 Paolo Bonzini <bonzini@gnu.org>
3656
3657 * combine.c (gen_binary): Remove.
3658 (known_cond, simplify_shift_const
3659 find_split_point, combine_simplify_rtx,
3660 simplify_if_then_else, simplify_set,
3661 simplify_logical, expand_field_assignment,
3662 extract_left_shift, force_to_mode,
3663 if_then_else_cond, apply_distributive_law,
3664 simplify_and_const_int, simplify_shift_const,
3665 gen_lowpart_for_combine, simplify_comparison,
3666 reversed_comparison): Replace with
3667 simplify_gen_binary, simplify_gen_relational or
3668 distribute_and_simplify_rtx.
3669 (distribute_and_simplify_rtx): New function.
3670
3671 2004-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3672
3673 * pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands
3674 when generating PIC code.
3675
3676 2004-05-30 Andrew Pinski <pinskia@physics.uc.edu>
3677
3678 * c-decl.c (c_expand_body_1): Remove and fold back into ...
3679 (c_expand_body): here.
3680 (c_expand_decl): Move to ...
3681 * c-common.c (c_expand_decl): Here and remove check for nested
3682 functions.
3683 * c-common.h (c_expand_decl): Add prototype.
3684 * c-tree.h (c_expand_decl): Remove.
3685
3686 2004-05-30 Roger Sayle <roger@eyesopen.com>
3687
3688 * fold-const.c (combine_comparisons, optimize_bit_field_compare,
3689 range_binop, fold_truthop, fold_binary_op_with_conditional_arg,
3690 fold_mathfn_compare, fold_inf_compare, fold,
3691 fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
3692 Use constant_boolean_node where appropriate. Don't bother using
3693 fold_convert on the second argument to omit_one_operand.
3694
3695 2004-05-30 Roger Sayle <roger@eyesopen.com>
3696
3697 * doc/c-tree.texi (Expressions): Document FLOOR_DIV_EXPR,
3698 CEIL_DIV_EXPR, ROUND_DIV_EXPR, FLOOR_MOD_EXPR, CEIL_MOD_EXPR,
3699 ROUND_MOD_EXPR, EXACT_DIV_EXPR. Improve documentation of
3700 TRUNC_DIV_EXPR, TRUNC_MOD_EXPR and comparison operations.
3701 Add missing (but documented) tree nodes to the index.
3702
3703 2004-05-30 Steven Bosscher <stevenb@suse.de>
3704
3705 PR tree-optimization/14819
3706 * builtins.c (fold_builtin_strchr): New.
3707 (fold_builtin_1): Handle BUILT_IN_STRCHR and BUILT_IN_STRRCHR
3708 with fold_builtin_strchr().
3709
3710 2004-05-30 Kazu Hirata <kazu@cs.umass.edu>
3711
3712 * bb-reorder.c, builtins.c, c-common.c, c-gimplify.c,
3713 c-incpath.c, cgraphunit.c, ddg.c, defaults.h, dwarf2out.c,
3714 expmed.c, flags.h, gcc.c, gensupport.c, gimplify.c, global.c,
3715 passes.c, reg-stack.c, target.h, toplev.c, tree-alias-ander.c,
3716 tree-alias-common.c, tree-cfg.c, tree-complex.c, tree-dfa.c,
3717 tree-eh.c, tree-mudflap.c, tree-mudflap.h, tree-outof-ssa.c,
3718 tree-phinodes.c, tree-pretty-print.c, tree-ssa-alias.c,
3719 tree-ssa-ccp.c, tree-ssa-live.c, tree-ssa-live.h,
3720 tree-ssa-pre.c, tree.h, value-prof.h, varasm.c: Fix comment
3721 formatting.
3722
3723 2004-05-30 Steven Bosscher <stevenb@suse.de>
3724
3725 * gimplify.c (sort_case_labels): New. Split out from...
3726 (gimplify_switch_expr): ...here. Use it.
3727 * tree-eh.c (lower_try_finally_switch): Sort the labels of
3728 the SWITCH_EXPR created here before leaving the function.
3729 * tree.c (sort_case_labels): Add prototype.
3730
3731 2004-05-30 Andrew Pinski <pinskia@physics.uc.edu>
3732
3733 * fold-const.c (fold) [case TRUTH_NOT_EXPR]: Make sure the type is
3734 of BOOLEAN_TYPE.
3735
3736 2004-05-30 Kazu Hirata <kazu@cs.umass.edu>
3737
3738 * c-common.c, calls.c, cfgcleanup.c, cgraph.c, cgraphunit.c,
3739 ddg.c, ddg.h, df.c, df.h, except.c, expr.c, flags.h,
3740 fold-const.c, gcc.c, gimplify.c, haifa-sched.c,
3741 modulo-sched.c, tree-inline.c, tree-into-ssa.c, tree-nested.c,
3742 tree-nrv.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-live.c,
3743 tree-ssa-loop.c, tree-ssa-pre.c, tree-tailcall.c, tree.h: Fix
3744 comment typos. Follow spelling conventions.
3745
3746 2004-05-29 Geoffrey Keating <geoffk@apple.com>
3747
3748 * gengtype-yacc.y: Add NESTED_PTR token.
3749 (option): Record `nested_ptr' option.
3750 * gengtype-lex.l: Handle `nested_ptr' keyword.
3751 * gengtype.c (walk_type): Process `nested_ptr' option.
3752 * gengtype.h (struct nested_ptr_data): New.
3753 * doc/gty.texi (GTY Options): Document `nested_ptr' option.
3754 * stringpool.c (struct string_pool_data): Make 'entries' point to
3755 ht_identifier instead of tree.
3756 (gt_pch_save_stringpool): Don't adjust pointers.
3757 (gt_pch_restore_stringpool): Call ht_load.
3758
3759 2004-05-29 Jason Merrill <jason@redhat.com>
3760
3761 * gimplify.c (gimplify_expr): Don't build a statement list
3762 if no gimplification was necessary.
3763
3764 2004-05-29 Joseph S. Myers <jsm@polyomino.org.uk>
3765
3766 * pretty-print.c (pp_base_format_text): Support %< instead of %`
3767 and %> as well as %'.
3768 * c-format.c: Use %< and %>.
3769 (gcc_diag_char_table, gcc_cdiag_char_table,
3770 gcc_cxxdiag_char_table): Update.
3771
3772 2004-05-29 Joseph S. Myers <jsm@polyomino.org.uk>
3773
3774 * c-typeck.c (common_type): Correct comment.
3775
3776 2004-05-29 Peter Barada <peter@the-baradas.com>
3777
3778 * config/m68k/m68k.c (CONST_METHOD): Add MVZ, MVS.
3779 * config/m68k/m68k.c (const_method): Likewise.
3780 * config/m68k/m68k.c (const_int_cost): Likewise.
3781 * config/m68k/m68k.c (const_int_cost): Likewise.
3782 * config/m68k/m68k.c (output_move_const_into_data_reg): Likewise.
3783
3784 2004-05-29 Peter Barada <peter@the-baradas.com>
3785
3786 * config/m68k/m68k.h (EXTRA_CONSTRAINT): add 'U' for register offset
3787 addressing.
3788 * config/m68k/m68k.md: Add 'U,U' alternative to ColdFire variants of
3789 movsi,movhi,movqi insn patterns.
3790
3791 2004-05-28 Andrew Pinski <pinskia@physics.uc.edu>
3792
3793 * c-semantics.c (emit_local_var): Remove code for DECL_INITIAL.
3794
3795 PR target/15720
3796 * config/darwin.c (machopic_indirect_call_target): Copy
3797 the SYMBOL_REF_DECL from the original RTX for the new
3798 stub RTX.
3799
3800 2004-05-28 DJ Delorie <dj@redhat.com>
3801
3802 * stor-layout.c (place_field): Revert erroneous commit.
3803
3804 2004-05-28 Ziemowit Laski <zlaski@apple.com>
3805
3806 * config/rs6000/altivec.h (vec_ctf, vec_vcfsx, vec_vcfux, vec_cts,
3807 vec_ctu, vec_dss, vec_dst, vec_dstst, vec_dststt, vec_dstt, vec_ld,
3808 vec_ldl, vec_lvsl, vec_lvsr, vec_sld, vec_splat, vec_vspltw,
3809 vec_vsplth, vec_vspltb, vec_splat_s8, vec_splat_s16, vec_splat_s32,
3810 vec_splat_u8, vec_splat_u16, vec_splat_u32, vec_st, vec_stl,
3811 vec_ste): Remove type checks for integral parameters and literals
3812 from '..._args_eq' macros.
3813
3814 2004-05-28 Aldy Hernandez <aldyh@redhat.com>
3815
3816 * c-common.c (fname_as_string): Fix xcalloc to xmalloc.
3817
3818 2004-05-28 Aldy Hernandez <aldyh@redhat.com>
3819
3820 * testsuite/g++.dg/charset/function.cc: New.
3821
3822 * testsuite/gcc.dg/charset/function.c: New.
3823
3824 * c-decl.c (c_make_fname_decl): Free return value from
3825 fname_as_string.
3826
3827 * cp/decl.c (cp_make_fname_decl): Free return value from
3828 fname_as_string.
3829
3830 * c-common.c (fname_as_string): Translate if necessary.
3831
3832 2004-05-28 Geoffrey Keating <geoffk@apple.com>
3833
3834 * stringpool.c: Add comments to PCH saving/restoring routines.
3835
3836 2004-05-28 Andrew Pinski <pinskia@physics.uc.edu>
3837
3838 * c-common.c (c_estimate_num_insns_1): Kill.
3839 (c_estimate_num_insns): Kill.
3840 * c-common.h (c_estimate_num_insns): Kill.
3841
3842 * gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING
3843 when checking for _POSIX_THREAD_PRIORITY_SCHEDULING.
3844 Remove comment about not checking for
3845 _POSIX_PRIORITY_SCHEDULING.
3846 * gthr-posix.c: Likewise.
3847
3848 2004-05-28 Paolo Bonzini <bonzini@gnu.org>
3849 Roger Sayle <roger@eyesopen.com>
3850
3851 PR rtl-optimization/15649
3852 Add LTGT_EXPR and improve pretty-printing of unordered
3853 comparisons.
3854 * c-common.c (c_common_truthvalue_conversion):
3855 Handle LTGT_EXPR.
3856 * c-typeck.c (build_binary_op): Likewise.
3857 * dojump.c (do_jump): Likewise.
3858 * expr.c (expand_expr_real_1, do_store_flag): Likewise.
3859 * predict.c (tree_predict_by_opcode): Likewise.
3860 * real.c (real_compare): Likewise.
3861 * tree-cfg.c (verify_expr): Likewise.
3862 * tree-inline.c (estimate_num_insns_1): Likewise.
3863 * tree-pretty-print.c (dump_generic_node): Likewise.
3864 Handle ORDERED_EXPR, UNORDERED_EXPR.
3865 (op_symbol): Print unordered comparisons differently
3866 than ordered ones.
3867 * tree.def (LTGT_EXPR): New '<' tree code.
3868 * doc/c-tree.texi (Expressions): Document floating-point
3869 comparison nodes.
3870
3871 Fold comparisons between floating point values.
3872 * fold-const.c (enum comparison_code): New, from
3873 #define'd constants. Define compcodes for unordered
3874 comparisons and for invalid transformations.
3875 (invert_tree_comparison): Add "honor_nans" parameter.
3876 (fold_truthop): Revamp to work on floating-point types too.
3877 (comparison_to_compcode): Support unordered comparisons.
3878 Use new enum comparison_code.
3879 (compcode_to_comparison): Likewise.
3880 (combine_compcodes): New function.
3881 (invert_truthvalue): Let invert_tree_comparison decide
3882 whether it is valid to fold the comparison. Fold ORDERED
3883 and UNORDERED even if flag_unsafe_math_optimizations is off,
3884 and the remaining even if flag_unsafe_math_optimizations
3885 is off but we are under -fno-trapping-math.
3886 (fold_relational_const): Integer modes do not honor NaNs.
3887
3888 2004-05-28 Paul Brook <paul@codesourcery.com>
3889
3890 * config/arm/arm.c (arm_output_epilogue): Remove redundant code.
3891
3892 2004-05-28 Paul Brook <paul@codesourcery.com>
3893
3894 * config/arm/arm.c (thumb_force_lr_save): New function.
3895 (arm_get_frame_offsets, thumb_unexpanded_epilogue,
3896 thumb_output_function_prologue): Use it.
3897 (thumb_expand_prologue): Set lr_save_eliminated.
3898
3899 2004-05-28 Richard Sandiford <rsandifo@redhat.com>
3900
3901 * config/mips/mips.md (extendsidi2): Tie the source and destination
3902 of the register alternative. Split it into nothing.
3903
3904 2004-05-28 Richard Sandiford <rsandifo@redhat.com>
3905
3906 * rtl.h (skip_consecutive_labels): Declare.
3907 * emit-rtl.c (skip_consecutive_labels): New function.
3908 * reorg.c (relax_delay_slots, dbr_schedule): Use it.
3909 * jump.c (follow_jumps): Say what null return values mean.
3910
3911 2004-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
3912
3913 PR target/13250
3914 * config/sh/sh.md (rotlsi3): Use emit_move_insn.
3915
3916 2004-05-27 Kaz Kojima <kkojima@gcc.gnu.org>
3917
3918 * config/sh/t-linux (SHLIB_MAPFILES): Use sh specific
3919 libgcc-std.ver.
3920 * config/sh/libgcc-std.ver: New file.
3921
3922 2004-05-27 Bryce McKinlay <mckinlay@redhat.com>
3923
3924 * except.c: Revert change of 2004-05-26.
3925 * config/i386/i386.md: Revert change of 2004-05-27.
3926
3927 2004-05-27 Bryce McKinlay <mckinlay@redhat.com>
3928
3929 * configure.ac: Remove --enable-tree-browser option.
3930 Define TREEBROWSER when ac_tree_checking is defined.
3931 * configure: Rebuilt.
3932
3933 2004-05-27 Olivier Hainque <hainque@act-europe.fr>
3934
3935 * expr.c (store_constructor): Restore sanity check on
3936 the size of the type before clearing.
3937
3938 2004-05-27 Jan Hubicka <jh@suse.cz>
3939
3940 * cfgbuild.c (control_flow_insn_p): Notice noreturn call
3941
3942 2004-05-27 Paolo Bonzini <bonzini@gnu.org>
3943
3944 * combine.c (gen_binary): Remove.
3945 (known_cond, simplify_shift_const
3946 find_split_point, combine_simplify_rtx,
3947 simplify_if_then_else, simplify_set,
3948 simplify_logical, expand_field_assignment,
3949 extract_left_shift, force_to_mode,
3950 if_then_else_cond, apply_distributive_law,
3951 simplify_and_const_int, simplify_shift_const,
3952 gen_lowpart_for_combine, simplify_comparison,
3953 reversed_comparison): Replace with
3954 simplify_gen_binary, simplify_gen_relational or
3955 distribute_and_simplify_rtx.
3956 (distribute_and_simplify_rtx): New function.
3957 * simplify-rtx.c (simplify_binary_operation):
3958 Use nonzero_bits to simplify ANDs where we are
3959 turning off bits already known to be off in OP0.
3960
3961 2004-05-27 Alan Modra <amodra@bigpond.net.au>
3962
3963 PR target/14478
3964 * config/rs6000/rs6000.c (reg_or_neg_short_operand): Don't allow zero.
3965
3966 2004-05-27 Josef Zlomek <zlomekj@suse.cz>
3967
3968 PR middle-end/14084
3969 * emit-rtl.c (gen_rtx_REG_offset): Adjust the offset according
3970 to size of decl.
3971
3972 2004-05-26 Aldy Hernandez <aldyh@redhat.com>
3973
3974 PR/14924
3975 * config/rs6000/rs6000.c (spe_expand_stv_builtin): New.
3976
3977 2004-05-26 Roger Sayle <roger@eyesopen.com>
3978
3979 * tree.h: Fix comment typo.
3980
3981 2004-05-27 Steven Bosscher <stevenb@suse.de>
3982
3983 * gimplify.c (compare_case_labels): New function.
3984 (gimplify_switch_expr): Sort case labels, and make sure the
3985 last label in the label vector is the default case.
3986 * tree-cfg.c (group_case_labels): New function.
3987 (build_tree_cfg): Cleanup redundant labels and group case labels
3988 before creating edges.
3989 (cleanup_dead_labels): Handle GOTO_EXPRs.
3990 (find_case_label_for_value): Use a binary search to find the
3991 case label for the given value.
3992 * tree-gimple.c: Mention that labels are sorted, and that the
3993 last label must be the default.
3994
3995 2004-05-27 Jan Hubicka <jh@suse.cz>
3996
3997 * cfgcleanup.c (try_optimize_cfg): Do not merge across jumptables.
3998
3999 2004-05-27 Jan Hubicka <jh@suse.cz>
4000
4001 * i386.md (UNSPECV_EH_RETURN): Kill.
4002 (eh_return): Use jump_insn.
4003 (eh_return_si, eh_return_di): Change pattern to jump instruction.
4004
4005 2004-05-26 Jan Hubicka <jh@suse.cz>
4006
4007 * cfgcleanup.c (try_forward_edges): Do not check loop structure when
4008 not loop optimizing.
4009
4010 2004-05-26 Jan Hubicka <jh@suse.cz>
4011
4012 * except.c (can_throw_internal): Notice RESX instructions.
4013
4014 2004-05-26 Eric Botcazou <ebotcazou@act-europe.fr>
4015
4016 * varasm.c (output_constant) <INTEGER_TYPE>: Pass the minimum
4017 of the two sizes to assemble_integer.
4018
4019 2004-05-25 Paul Brook <paul@codesourcery.com>
4020
4021 * config/arm/arm.c (thumb_exit, thumb_unexpanded_epilogue): Remove
4022 pointless #ifdef.
4023
4024 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
4025
4026 * Makefile.in (top_builddir): Define to .
4027
4028 2004-05-25 Alexandre Oliva <aoliva@redhat.com>
4029
4030 * configure.ac (gcc_cv_ld): Prefer in-tree ld over whatever the
4031 top-level detects, except when in-tree ld is being cross-built.
4032 (gcc_cv_as): Likewise for as. Use AS_FOR_TARGET otherwise, and
4033 then AS only if target is host.
4034 * configure: Rebuilt.
4035
4036 2004-05-25 Vladimir Makarov <vmakarov@redhat.com>
4037
4038 * global.c (global_alloc): Call make_accurate_live_analysis.
4039 (record_one_conflict): Remove dead code.
4040 (mark_reg_clobber): Remove ATTRIBUTE_UNUSED for parameter data.
4041 (bb_info): New structure.
4042 (BB_INFO, BB_INFO_BY_INDEX): New macros.
4043 (allocate_bb_info, free_bb_info, mark_reg_change,
4044 calculate_local_reg_bb_info, set_up_bb_rts_numbers, rpost_cmp,
4045 modify_bb_reg_pav, calculate_reg_pav,
4046 make_accurate_live_analysis): New functions.
4047
4048 2004-05-25 Devang Patel <dpatel@apple.com>
4049
4050 * alias.c (init_alias_analysis): Use ggc_calloc instead of
4051 xrealloc.
4052 (end_alias_analysis): Use ggc_free instead fo free.
4053
4054 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
4055
4056 PR target/15546
4057 * config/ia64/ia64.h (ASM_OUTPUT_FDESC): Mark the DECL
4058 as needed to be outputted.
4059
4060 2004-05-25 Jan Hubicka <jh@suse.cz>
4061
4062 * builtins.def (__builtin_expect): Mark the function as const&nothrow.
4063
4064 2004-05-25 Ayal Zaks <zaks@il.ibm.com>
4065 Mostafa Hagog <mustafa@il.ibm.com>
4066
4067 * Makefile.in (modulo-sched.o, ddg.o): New.
4068 * ddg.h, ddg.c, modulo-sched.c: New files.
4069 * cfglayout.c (duplicate_insn_chain): Remove "static" and push
4070 internals to "dupicate_insn".
4071 (duplicate_insn): New function.
4072 * cfglayout.h (duplicate_insn_chain, duplicate_insn): New
4073 declarations.
4074 * common.opt (fmodulo-sched): New flag.
4075 * df.c (df_bb_regno_last_use_find, df_bb_regno_first_def_find):
4076 Remove static and forward declaration.
4077 (df_find_def, df_reg_used, df_bb_regno_last_def_find): New
4078 functions.
4079 * df.h (df_bb_regno_last_use_find, df_bb_regno_first_def_find,
4080 df_bb_regno_last_def_find, df_find_def, df_reg_used): New
4081 declarations.
4082 * flags.h (flag_modulo_sched): New flag.
4083 * opts.c (common_handle_option): Handle modulo-sched flag.
4084 * params.def (max-sms-loop-number, sms-max-ii-factor,
4085 sms-dfa-history, sms-loop-average-count-threshold): New
4086 parameters.
4087 * params.h (MAX_SMS_LOOP_NUMBER, SMS_MAX_II_FACTOR,
4088 SMS_DFA_HISTORY, SMS_LOOP_AVERAGE_COUNT_THRESHOLD): New
4089 parameters.
4090 * passes.c ("sms", "sms-vcg"): New dumps.
4091 (rest_of_handle_sched): Call sms_schedule.
4092 * rtl.h (sms_schedule): New declaration.
4093 * timevar.def (TV_SMS): New.
4094 * toplev.c (flag_modulo_sched): Initialize.
4095 (f_options): Handle -fmodulo-sched option.
4096 * docs/invoke.texi: Document -fmodulo-sched & -dm options.
4097 * docs/passes.texi: Document new SMS pass.
4098
4099 2004-05-25 Paolo Bonzini <bonzini@gnu.org>
4100
4101 * Makefile.in (OBJS): Add rtlhooks.o.
4102 (rtlanal.o): Depend on function.h.
4103 (cse.o): Depend on rtlhooks-def.h.
4104 (combine.o): Depend on rtlhooks-def.h.
4105 (rtlhooks.o): New rule.
4106 * combine.c: Include rtlhooks-def.h.
4107 (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
4108 num_sign_bit_copies, cached_num_sign_bit_copies,
4109 num_sign_bit_copies1): Move most of the code to rtlanal.c.
4110 (reg_nonzero_bits_for_combine,
4111 reg_num_sign_bit_copies_for_combine): New functions holding
4112 the remnants of the above.
4113 (combine_rtl_hooks): New.
4114 (combine_instructions): Set rtl_hooks instead of gen_lowpart.
4115 * cse.c: Include rtlhooks-def.h.
4116 (cse_rtl_hooks): New.
4117 (cse_main): Set rtl_hooks instead of gen_lowpart.
4118 * emit-rtl.c (gen_lowpart): Remove.
4119 (gen_lowpart_general): Move to rtlhooks.c.
4120 * rtl.h (nonzero_bits, num_sign_bit_copies,
4121 struct rtl_hooks, rtl_hooks, general_rtl_hooks): New.
4122 (gen_lowpart_general): Remove.
4123 (gen_lowpart): Temporarily redefine as a macro.
4124 * rtlanal.c: Include function.h.
4125 (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
4126 num_sign_bit_copies, cached_num_sign_bit_copies,
4127 num_sign_bit_copies1): New, from combine.c.
4128 * rtlhooks.c: New file.
4129 * rtlhooks-def.h: New file.
4130
4131 2004-05-25 Svein E. Seldal <Svein.Seldal@solidas.com>
4132
4133 * config/avr/avr.h (LONG_LONG_TYPE_SIZE): Changed long long type
4134 to support 32-bit -mint8 mode.
4135
4136 * doc/invoke.texi (-mint8): Added documentation for the -mint8
4137 option in the AVR architecture.
4138
4139 2004-05-24 Mike Stump <mrs@apple.com>
4140
4141 * doc/install.texi: Document that dejagnu 1.4.4 is required.
4142
4143 2004-05-24 Joseph S. Myers <jsm@polyomino.org.uk>
4144
4145 * intl.h (open_quote, close_quote): New.
4146 * intl.c (open_quote, close_quote): New.
4147 (gcc_init_libintl): Set them.
4148 * pretty-print.c: Include "intl.h".
4149 (pp_base_format_text): Support 'q' format flag and %` and %'
4150 formats. Use ' instead of ` in comments.
4151 * c-format.c (gcc_diag_flag_specs, gcc_cxxdiag_flag_specs,
4152 gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table,
4153 foramt_types_orig): Describe these new formats.
4154 (decode_format_attr, check_function_format,
4155 check_format_info_main): Use these new formats.
4156 (status_warning): Use ATTRIBUTE_GCC_DIAG.
4157 * toplev.c (ATTRIBUTE_GCC_DIAG): Increase required GCC version to
4158 check these formats to 3.5.
4159
4160 2004-05-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4161
4162 * Makefile.in (CPPLIBS): Renamed to CPPLIB.
4163 (BACKEND): Reflect this.
4164 (LIBDEPS): Move CPPLIB before LIBIBERTY.
4165 (LIBS): Likewise.
4166
4167 2004-05-24 Ulrich Weigand <uweigand@de.ibm.com>
4168
4169 PR tree-optimization/14197
4170 * builtins.c: Include "tree-gimple.h"
4171 (readonly_data_expr): Use get_base_address. Make sure to call
4172 decl_readonly_section only on trees it can handle.
4173 * tree-gimple.c (get_base_address): Accept STRING_CST and
4174 CONSTRUCTOR expressions.
4175 * Makefile.in: Update dependencies.
4176
4177 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
4178
4179 Move libcpp to the toplevel.
4180 * Makefile.in: Remove references to libcpp files,
4181 use CPPLIBS instead of libcpp.a. Define SYMTAB_H
4182 and change hashtable.h to that.
4183 * aclocal.m4 (gcc_AC_HEADER_STDBOOL,
4184 gcc_AC_HEADER_STRING, gcc_AC_C__BOOL): Remove.
4185 * configure.ac (gcc_AC_C__BOOL, HAVE_UCHAR): Remove tests.
4186 * configure: Regenerate.
4187 * config.in: Regenerate.
4188 * c-ppoutput.c: Include ../libcpp/internal.h instead of cpphash.h.
4189 * cppcharset.c: Removed.
4190 * cpperror.c: Removed.
4191 * cppexp.c: Removed.
4192 * cppfiles.c: Removed.
4193 * cpphash.c: Removed.
4194 * cpphash.h: Removed.
4195 * cppinit.c: Removed.
4196 * cpplex.c: Removed.
4197 * cpplib.c: Removed.
4198 * cpplib.h: Removed.
4199 * cppmacro.c: Removed.
4200 * cpppch.c: Removed.
4201 * cpptrad.c: Removed.
4202 * cppucnid.h: Removed.
4203 * cppucnid.pl: Removed.
4204 * cppucnid.tab: Removed.
4205 * hashtable.c: Removed.
4206 * hashtable.h: Removed.
4207 * line-map.c: Removed.
4208 * line-map.h: Removed.
4209 * mkdeps.c: Removed.
4210 * mkdeps.h: Removed.
4211 * stringpool.h: Include symtab.h instead of hashtable.h.
4212 * tree.h: Include symtab.h instead of hashtable.h.
4213 * system.h (O_NONBLOCK, O_NOCTTY): Do not define.
4214
4215 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
4216
4217 * gcc.c (struct prefix_list): Add forward declaration.
4218 (do_spec_path): New function, extracted from...
4219 (do_spec_1) <'D'>: ... here. Drop support for
4220 SPACE_AFTER_L_OPTION.
4221 (do_spec_1) <'I'>: Use do_spec_path.
4222 (process_command): Do not store the 'include' suffix
4223 in include_prefixes.
4224 * system.h: Poison SPACE_AFTER_L_OPTION.
4225
4226 2002-05-23 Roger Sayle <roger@eyesopen.com>
4227
4228 * fold-const.c (non_lvalue): Explicitly list the tree codes that
4229 need to be wrapped by NON_LVALUE_EXPR, instead of those that don't.
4230
4231 2004-05-23 Joseph S. Myers <jsm@polyomino.org.uk>
4232
4233 * doc/gcc.texi, doc/gccint.texi, doc/include/gcc-common.texi:
4234 Update based on printed manual. Enable setting of offsets for
4235 FSFPRINT and move it to gcc-common.texi.
4236 * doc/gcc.texi: Update FSF printing details.
4237 * doc/gccint.texi: Remove FSF printing details.
4238
4239 2004-05-23 Andrew Pinski <pinskia@physics.uc.edu>
4240
4241 * config/rs6000/t-rs6000: Remove the disabling -Werror.
4242
4243 2004-05-22 Roger Sayle <roger@eyesopen.com>
4244
4245 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
4246 expand_builtin_strrchr, expand_builtin_strpbrk,
4247 expand_builtin_mempcpy, expand_builtin_memcmp,
4248 expand_builtin_strcmp, expand_builtin_strncmp,
4249 expand_builtin_strcat, std_expand_builtin_va_start,
4250 std_expand_builtin_va_arg, expand_builtin_va_copy,
4251 expand_builtin_signbit, fold_builtin_cabs,
4252 fold_builtin_logarithm, fold_builtin_mempcpy,
4253 fold_builtin_signbit, fold_builtin_isascii,
4254 fold_builtin_toascii, fold_builtin_isdigit,
4255 fold_builtin_1, build_function_call_expr,
4256 simplify_builtin_strchr, simplify_builtin_strrchr,
4257 simplify_builtin_strpbrk, simplify_builtin_strncpy,
4258 simplify_builtin_memcmp, simplify_builtin_strcmp,
4259 simplify_builtin_strncmp, simplify_builtin_strncat,
4260 simplify_builtin_strspn, simplify_builtin_strcspn,
4261 simplify_builtin_fputs, simplify_builtin_sprintf): Replace calls
4262 to build with calls to build2, build3 or omit_one_operand.
4263
4264 2004-05-22 Richard Sandiford <rsandifo@redhat.com>
4265
4266 * config/mips/mips.c (mips_file_start): Emit a .gcc_compiled_longXX
4267 section when generating EABI code.
4268
4269 2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
4270
4271 PR 15546
4272 * config/i386/i386.c (output_pic_addr_const <case SYMBOL_REF>):
4273 Call mark_decl_referenced on the SYMBOL_REF_DECL.
4274
4275 2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
4276
4277 * c-common.c (c_common_truthvalue_conversion): Handle
4278 UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR,
4279 ORDERED_EXPR, and UNORDERED_EXPR as comparison operators,
4280 i.e. set the type to truthvalue_type_node and return.
4281
4282 2004-05-22 Zack Weinberg <zack@codesourcery.com>
4283
4284 * tree.h (struct tree_decl): Add possibly_inlined bit.
4285 (DECL_POSSIBLY_INLINED): New accessor macro.
4286 * cgraph.h: Remove declaration of cgraph_inline_hash.
4287 * cgraph.c: Remove definition of cgraph_inline_hash.
4288 (hash_node): Revert to hashing DECL_UID.
4289 (eq_node): Take two pointers to cgraph_node structures.
4290 Compare DECL_UIDs.
4291 (cgraph_remove_node): Pass the node directly to htab_find_slot.
4292 (cgraph_varpool_hash_node): Rename hash_varpool_node;
4293 hash on DECL_UID.
4294 (eq_cgraph_varpool_node): Rename eq_varpool_node; take two
4295 pointers to cgraph_varpool_node structures; compare DECL_UIDs.
4296 (cgraph_node): Allocate a temporary node on the stack, fill in
4297 its DECL field, and pass that to htab_find_slot.
4298 (cgraph_varpool_node): Likewise.
4299 (cgraph_function_possibly_inlined_p): If global info is ready,
4300 return the DECL_POSSIBLY_INLINED bit.
4301 * cgraphunit.c (cgraph_mark_inline_edge): Set DECL_POSSIBLY_INLINED
4302 instead of mucking with cgraph_inline_hash.
4303
4304 2004-05-22 Joseph S. Myers <jsm@polyomino.org.uk>
4305
4306 * doc/contrib.texi: Add g77 contributors.
4307
4308 2004-05-22 Richard Sandiford <rsandifo@redhat.com>
4309
4310 * calls.c (initialize_argument_information): Forbid sibcalls if a
4311 callee-copied argument is stored in the current function's frame.
4312
4313 2004-05-22 Eric Christopher <echristo@redhat.com>
4314
4315 * fix-header.c (read_scan_file): Update for add_path change.
4316
4317 2004-05-22 Ben Elliston <bje@au.ibm.com>
4318
4319 * c.opt (Wmissing-include-dirs): New.
4320 * c-opts.c (c_common_handle_option): Pass true for user_supplied_p
4321 to add_path () for -I, but false for OPT_idirafter, OPT_iquote and
4322 OPT_isystem. Handle case OPT_Wmissing_include_dirs.
4323 * c-incpath.h (add_path): Add fourth (bool) argument.
4324 * c-incpath.c (add_env_var_paths): Pass false to add_path ().
4325 (add_standard_paths): Likewise.
4326 (remove_duplicates) [REASON_NOENT]: Warn if -Wmissing-include-dirs
4327 is used and the directory was user-supplied via -I.
4328 (add_path): Set p->user_supplied_p. Remove duplicated code by
4329 using add_cpp_dir_path ().
4330 * cpplib.h (struct cpp_options): Add warn_missing_include_dirs.
4331 (struct cpp_dir): Add user_supplied_p.
4332 * doc/invoke.texi (Warning Options): Document new option.
4333
4334 2004-05-21 Ulrich Weigand <uweigand@de.ibm.com>
4335
4336 * fold-const.c (fold_read_from_constant_string): Convert result to
4337 requested type.
4338
4339 2004-05-21 Richard Henderson <rth@redhat.com>
4340
4341 * gimplify.c (mostly_copy_tree_r): Don't attempt to copy decls.
4342 (copy_if_shared_r): Don't copy decls, types, constants, BINDs.
4343 Don't mark VA_ARG_EXPRs volatile here.
4344 (gimplify_modify_expr): Unshare TYPE_SIZE_UNIT.
4345
4346 2004-05-21 Richard Henderson <rth@redhat.com>
4347
4348 * Makefile.in (tree-dump.o): Depend on tree-iterator.h.
4349 * tree-dump.c (dequeue_and_dump): Dump STATEMENT_LISTs.
4350
4351 2004-05-21 Roger Sayle <roger@eyesopen.com>
4352
4353 * fold-const.c (fold, fold_relational_hi_lo,
4354 nondestructive_fold_binary_to_constant,
4355 fold_read_from_constant_string): Use fold_convert instead of convert.
4356 * builtins.c (simplify_builtin, simplify_builtin_strstr,
4357 simplify_builtin_strchr, simplify_builtin_strrchr,
4358 simplify_builtin_strpbrk): Use fold_convert instead of convert.
4359
4360 2004-05-21 Diego Novillo <dnovillo@redhat.com>
4361
4362 * tree-flow-inline.h (num_immediate_uses): Don't abort if DF
4363 is NULL.
4364
4365 2004-05-21 Jakub Jelinek <jakub@redhat.com>
4366
4367 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): If SPARC_BI_ARCH,
4368 override sparc.h definition.
4369
4370 2004-05-20 Roger Sayle <roger@eyesopen.com>
4371
4372 * tree.c (array_type_nelts, save_expr, substitute_in_expr,
4373 get_unwidened, get_narrower): Replace build with build2.
4374 * fold-const.c (negate_expr, associate_trees, size_binop,
4375 fold_convert, eval_subst, omit_one_operand, invert_truthvalue,
4376 pedantic_omit_one_operand, distribute_bit_expr,
4377 make_bit_field_ref, optimize_bit_field_compare,
4378 decode_field_reference, range_binop, make_range,
4379 build_range_check, fold_range_test, fold_truthop,
4380 optimize_minmax_comparison, extract_muldiv_1,
4381 fold_binary_op_with_conditional_arg, fold_mathfn_compare,
4382 fold_inf_compare, fold_single_bit_test, fold,
4383 fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
4384 Likewise replace build with either build2 or build3.
4385
4386 2004-05-20 Ian Lance Taylor <ian@wasabisystems.com>
4387
4388 * system.h: Poison NO_RECURSIVE_FUNCTION_CSE.
4389 * calls.c (prepare_call_address): Don't test
4390 NO_RECURSIVE_FUNCTION_CSE.
4391 * config/arc/arc.h (NO_RECURSIVE_FUNCTION_CSE): Don't define.
4392 * config/arm/arm.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4393 * config/avr/avr.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4394 * config/frv/frv.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4395 * config/i386/i386.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4396 * config/ip2k/ip2k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4397 * config/iq2000/iq2000.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4398 * config/m32r/m32r.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4399 * config/m68k/m68k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4400 * config/mcore/mcore.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4401 * config/mips/mips.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4402 * config/stormy16/stormy16.h (NO_RECURSIVE_FUNCTION_CSE):
4403 Likewise.
4404 * config/xtensa/xtensa.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
4405 * config/sh/sh.h: Remove NO_RECURSIVE_FUNCTION_CSE comment.
4406 * doc/tm.texi (Costs): Remove documentation for
4407 NO_RECURSIVE_FUNCTION_CSE.
4408
4409 2004-05-20 Paul Brook <paul@codesourcery.com>
4410
4411 * unwind-dw2-fde.c (get_cie_encoding): Handle dwarf3 CIE format.
4412 * unwind-dw2.c (extract_cie_info): Ditto.
4413 (_Unwind_FrameState): Change retaddr_column to word type.
4414
4415 2004-05-20 Roger Sayle <roger@eyesopen.com>
4416
4417 PR middle-end/3074
4418 * fold-const.c (strip_compound_expr): Delete function.
4419 (count_cond): Delete function.
4420 (fold_binary_op_with_conditional_arg): Only perform transformations
4421 "a + (b?c:d) -> b ? a+c : a+d" and "(b?c:d) + a -> b ? c+a : d+a"
4422 when a is constant. This greatly simplifies this routine.
4423
4424 * tree.c (saved_expr_p): Delete function.
4425 * tree.h (saved_expr_p): Delete function prototype.
4426
4427 2004-05-20 Andrew Pinski <pinskia@physics.uc.edu>
4428
4429 * common.opt (ftree-loop-optimize): Remove.
4430
4431 2004-05-20 Daniel Jacobowitz <dan@debian.org>
4432
4433 * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET)
4434 (NM_FOR_TARGET): Use := and $(shell).
4435 (mainversion): Remove unused variable.
4436
4437 2004-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4438
4439 * reorg.c (delete_from_delay_slot): If we have a barrier after the
4440 sequence containing the insn to be deleted, always reemit it.
4441
4442 2004-05-20 Richard Henderson <rth@redhat.com>
4443
4444 PR 15454
4445 * tree-nested.c (get_chain_decl): Create a PARM_DECL by hand.
4446 * function.c (expand_function_start): Expand static_chain_decl by hand.
4447 * gimplify.c (create_tmp_var_name): Export.
4448 * tree-gimple.h (create_tmp_var_name): Declare.
4449
4450 2004-05-20 Andrew Pinski <pinskia@physics.uc.edu>
4451
4452 * rs6000.c (print_operand) <case 'z'>: Call
4453 mark_decl_referenced before assemble_name.
4454
4455 2004-05-20 Zack Weinberg <zack@codesourcery.com>
4456
4457 * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
4458 (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
4459 (cgraph_varpool_node): Hash on the pointer to the decl, not
4460 the DECL_UID. Fixes 64-bit bootstrap failure.
4461
4462 2004-05-20 Richard Earnshaw <rearnsha@arm.com>
4463
4464 * arm.md (ite_ne_zeroextractsi, ite_ne_zeroextractsi_shifted): Ensure
4465 we don't earlyclobber operands used in the second insn.
4466
4467 2004-05-20 Steven Bosscher <stevenb@suse.de>
4468
4469 * tree-mudflap.c: Formatting fixes.
4470
4471 2004-05-20 J"orn Rennecke <joern.rennecke@superh.com>
4472
4473 * Makefile.in (GTFILES): Add $(srcdir)/reload.h.
4474 * gengtype.c (open_base_files): Include reload.h in ifiles.
4475 * reload.h (reg_equiv_memory_loc_varray): Declare.
4476 * reload1.c (reg_equiv_memory_loc_varray): New variable.
4477 (init_reload): Initialize it.
4478 (reload): Instead of freeing reg_equiv_memory_loc, 'grow'
4479 reg_equiv_memory_loc_varray to size 0.
4480 * ra.c (reg_alloc): Allocate reg_equiv_memory_loc by
4481 growing reg_equiv_memory_loc_varray to the desired size.
4482 * passes.c (rest_of_handle_old_regalloc): Likewise.
4483 * reload.c: Amend comment on calling init_reload.
4484
4485 2004-05-20 Nick Clifton <nickc@redhat.com>
4486
4487 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Replace 'tramp'
4488 with 'TRAMP' in the body of the macro definition.
4489
4490 2004-05-19 H.J. Lu <hongjiu.lu@intel.com>
4491
4492 PR target/15383
4493 * config/ia64/ia64.c (ia64_expand_compare): Don't check
4494 TARGET_HPUX for TFmode compare. Abort if op0 is in TFmode and
4495 cmptf_libfunc isn't set.
4496 (ia64_init_libfuncs): Rename TFmode libfuncs using the HPUX
4497 conventions.
4498 (ia64_sysv4_init_libfuncs): New.
4499
4500 * config/ia64/sysv4.h (TARGET_INIT_LIBFUNCS): New. Defined as
4501 ia64_sysv4_init_libfuncs.
4502
4503 2004-05-20 Falk Hueffner <falk@debian.org>
4504
4505 PR other/15526
4506 * libgcc2.c (__mulvsi3): Fix overflow test.
4507
4508 2004-05-19 Andrew Pinski <pinskia@physics.uc.edu>
4509
4510 PR c/14171
4511 * reg-stack.c (nan): Rename to ...
4512 (not_a_num): Here.
4513 (reg_to_stack): Rename nan to not_a_num.
4514 (subst_stack_regs_pat): Likewise.
4515 (convert_regs_entry): Likewise.
4516 (convert_regs_1): Likewise.
4517
4518 * tree-cfg.c (find_case_label_for_value): Replace call to
4519 simple_cst_equal with tree_int_cst_equal.
4520
4521 2004-05-19 Jeff Law <law@redhat.com>
4522
4523 * tree-into-ssa.c (prepare_operand_for_rename): New argument is_use.
4524 If the operand is for a use, then strip away the SSA_NAME, do not
4525 strip away the SSA_NAME for a set. Never call release_ssa_name.
4526 (mark_def_sites): Appropriately pass additional argument to
4527 prepare_operand_for_rename. If a VDEF_RESULT is not an SSA_NAME,
4528 then set the VDEF_RESULT to the VDEF_OP.
4529 (set_def_block): Strip away any SSA_NAME to get to the real
4530 underlying variable.
4531
4532 * tree-ssa-phiopt.c (value_replacement): Handle the case where
4533 the desired edge out of COND_BLOCK reaches OTHER_BLOCK rather than
4534 BB directly.
4535
4536 2004-05-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4537
4538 PR c++/15463
4539 * loop-iv.c (iv_number_of_iterations): Use trunc_int_for_mode on
4540 result of inverse.
4541
4542 PR rtl-optimization/15274
4543 * loop-iv.c (determine_max_iter, shorten_into_mode,
4544 iv_number_of_iterations): Handle constants correctly.
4545 * rtl.h (get_mode_bounds): Declaration changed.
4546 * stor-layout.c (get_mode_bounds): Return a constant suitable for
4547 the target mode.
4548
4549 PR rtl-optimization/14692
4550 * loop-unswitch.c (may_unswitch_on): Try folding the result.
4551 (unswitch_single_loop): Work correctly when may_unswitch_on
4552 returns a folded constant.
4553
4554 * loop-iv.c (implies_p): Handle A < B ==> A + 1 <= B.
4555 * simplify-rtx.c (simplify_const_relational_operation): Optimize
4556 comparisons with mode bounds.
4557
4558 * function.c (struct temp_slot): Add new field prev.
4559 (free_after_compilation, init_temp_slots): Free new fields.
4560 (cut_slot_from_list, insert_slot_to_list,
4561 temp_slots_at_level, max_slot_level, move_slot_to_level,
4562 make_slot_available): New functions.
4563 (assign_stack_temp_for_type, combine_temp_slots,
4564 find_temp_slot_from_address, preserve_temp_slots,
4565 preserve_rtl_expr_result, free_temp_slots,
4566 free_temps_for_rtl_expr, pop_temp_slots): Work with
4567 the new structure of lists.
4568 (mark_all_temps_used): Removed.
4569 * function.h (struct function): Field x_temp_slots
4570 replaced by x_used_temp_slots and x_avail_temp_slots.
4571 (temp_slots): Replaced by ...
4572 (used_temp_slots, avail_temp_slots): New.
4573 * tree.h (mark_all_temps_used): Declaration removed.
4574
4575 * loop-iv.c (mark_single_set, get_biv_step_1, iv_analyze,
4576 simplify_using_assignment): Take the expression out of
4577 the expr_list wrapper.
4578
4579 * loop-iv.c (iv_number_of_iterations): Improve clasification of
4580 infinite loops.
4581
4582 2004-05-19 Roger Sayle <roger@eyesopen.com>
4583
4584 * doc/tm.texi (TARGET_RTX_COSTS): Document that instruction
4585 costs should be based on code size when optimizing for size.
4586
4587 2004-05-19 Paolo Bonzini <bonzini@gnu.org>
4588
4589 * fold-const.c: Remove non-printable character 160.
4590
4591 2004-05-19 Nick Clifton <nickc@redhat.com>
4592
4593 * doc/invoke.texi (ARM Options): Fix typo.
4594 Remove descrption of -mshort-load-bytes and
4595 -mno-short-load-bytes.
4596
4597 * config/ip2k/ip2k.c (ip2k_composite_xexp_not_uses_reg_p): Add
4598 missing parenthesis.
4599 * config/ip2k/ip2k.c (ip2k_unary_operator): Likewise.
4600 * config/ip2k/ip2k.c (ip2k_binary_operator): Likewise.
4601
4602 2004-05-19 Steven Bosscher <stevenb@suse.de>
4603
4604 * expr.c (store_constructor): Build loop start and end by hand
4605 instead of via loop functions from stmt.c.
4606 (expand_expr_real_1): Abort if we see an EXIT_EXPR or a LOOP_EXPR.
4607 Remove the code to expand them.
4608
4609 * stmt.c (loop_stack): Remove this and everything related.
4610 (struct nesting, enum nesting_desc): Update.
4611 (expand_fixup): Likewise.
4612 (expand_loop_start, expand_start_loop_continue_elsewhere,
4613 expand_start_null_loop, expand_loop_continue_here, expand_end_loop,
4614 expand_end_null_loop, expand_continue_loop, expand_exit_loop,
4615 expand_exit_loop_if_false, expand_exit_loop_top_cond,
4616 expand_exit_something): Remove.
4617 * tree.h: Remove prototypes.
4618
4619 2004-05-18 Mike Stump <mrs@apple.com>
4620 Devang Patel <dpatel@apple.com>
4621
4622 * doc/tm.texi (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument to indicate
4623 if this label is for eh.
4624 * config/darwin-protos.h (darwin_emit_unwind_label): Likewise.
4625 * config/darwin.c (darwin_emit_unwind_label): Likewise.
4626 * dwarf2out.c (output_call_frame_info): Likewise.
4627 * output.h (default_emit_unwind_label): Likewise.
4628 * target.h (unwind_label): Likewise.
4629 * varasm.c (default_emit_unwind_label): Likewise.
4630
4631 * config/darwin.h (DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
4632 DEBUG_FRAME_SECTION, DEBUG_INFO_SECTION, DEBUG_ABBREV_SECTION,
4633 DEBUG_ARANGES_SECTION, DEBUG_MACINFO_SECTION, DEBUG_LINE_SECTION,
4634 DEBUG_LOC_SECTION, DEBUG_PUBNAMES_SECTION, DEBUG_STR_SECTION,
4635 DEBUG_RANGES_SECTION): Define.
4636
4637 2004-05-18 Zack Weinberg <zack@codesourcery.com>
4638
4639 * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
4640 (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
4641 (cgraph_varpool_node):
4642 Use DECL_UID for the key, not DECL_ASSEMBLER_NAME.
4643 (cgraph_function_possibly_inlined_p): Use the decl itself for
4644 the key, not DECL_ASSEMBLER_NAME.
4645 (change_decl_assembler_name): No need to muck with the hash tables.
4646 (cgraph_node_for_identifier, cgraph_varpool_node_for_identifier):
4647 Delete.
4648 * cgraphunit.c (cgraph_mark_inline_edge): Use the decl itself
4649 for the key, not DECL_ASSEMBLER_NAME.
4650 * cgraph.h: Remove prototypes of deleted functions.
4651 * varasm.c (mark_referenced): Just set TREE_SYMBOL_REFERENCED.
4652 (mark_decl_referenced): New function.
4653 * tree.h: Prototype mark_decl_referenced.
4654 * final.c (output_addr_const) <case SYMBOL_REF>: Call
4655 mark_decl_referenced before assemble_name.
4656 * c-decl.c (finish_decl): Use mark_decl_referenced.
4657
4658 2004-05-18 Andrew Pinski <pinskia@physics.uc.edu>
4659 Jeff Law <law@redhat.com>
4660
4661 * tree-ssa-phiopt.c (abs_replacement): New function.
4662 (empty_block_p): New function extracted from...
4663 (candidate_bb_for_phi_optimization): Break out empty block test.
4664 (conditional_replacement): Use empty_block_p.
4665 (value_replacement): Similarly.
4666
4667 * Makefile.in (tree-ssa-phiopt.o): Depends on flags.h.
4668 * tree-ssa-phiopt.c: Include flags.h.
4669 (conditional_replacement): Remove argument names from prototype.
4670 Minor formatting and comment fixes.
4671 (tree_ssa_phiopt): If conditional_replacement returns false, then
4672 call value_replacement.
4673 (value_replacement): New function.
4674
4675 2004-05-18 Jeff Law <law@redhat.com>
4676
4677 * tree-ssa-phiopt.c (replace_phi_with_stmt): New function extracted
4678 from conditional_replacement.
4679 (candidate_bb_for_phi_optimization): Similarly.
4680 (conditional_replacement): Use replace_phi_with_stmt and
4681 candidate_bb_for_phi_optimization.
4682
4683 * tree-ssa-phiopt.c: Fix various formatting issues.
4684
4685 2004-05-18 Steven Bosscher <stevenb@suse.de>
4686
4687 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
4688 s390_expand_cmpmem): Do not use expand_start_loop and
4689 expand_end_loop, instead build the loop manually.
4690
4691 2004-05-18 Alan Modra <amodra@bigpond.net.au>
4692
4693 * config/rs6000/rs6000.md (ctrsi_internal3): Delete.
4694 (ctrsi_internal4, ctrdi_internal3, ctrdi_internal4): Delete.
4695
4696 2004-05-17 Jeff Law <law@redhat.com>
4697
4698 * toplev.h (flag_delete_null_pointer_checks): Move from here to...
4699 * flags.h (flag_delete_null_pointer_checks): Here.
4700 * tree-flow.h (cprop_into_successor_phis): Add argument to prototype.
4701 * tree-phinodes.c (resize_phi_node): Initialize PHI_ARG_NONZERO.
4702 (add_phi_arg, remove_phi_arg_num): Similarly.
4703 * tree-ssa-copy.c (cprop_into_successor_phis): Propagate nonzero
4704 property into PHI nodes.
4705 * tree-ssa-dom.c: Remove redundant inclusion of flags.h.
4706 (record_equivalences_from_phis): If all PHI arguments are known to be
4707 nonzero, then the result must be nonzero as well.
4708 (cprop_into_phis): Pass nonzero_vars bitmap to cprop_into_successor_phis.
4709 (record_equivalences_from_stmt): Check flag_delete_null_pointer_checks
4710 appropriately. Walk the USE-DEF chains and propagate nonzero property
4711 as appropriate.
4712 * tree.h (PHI_ARG_NONZERO): Define.
4713 (phi_arg_d): Add nonzero flag.
4714
4715 2004-05-17 Zack Weinberg <zack@codesourcery.com>
4716
4717 * f: Entire directory removed
4718
4719 * c-common.h (CTI_G77_INTEGER_TYPE, CTI_G77_UINTEGER_TYPE)
4720 (CTI_G77_LONGINT_TYPE, CTI_G77_ULONGINT_TYPE)
4721 (g77_integer_type_node, g77_uinteger_type_node)
4722 (g77_longint_type_node, or g77_ulongint_type_node): Delete.
4723 * c-common.c (c_common_nodes_and_builtins): Do not initialize
4724 the above set of variables.
4725
4726 * config/i386/uwin.h: No need to define WIN32_UWIN_TARGET.
4727 * doc/invoke.texi, doc/standards.texi: Remove cross-references
4728 to g77 manual.
4729
4730 2004-05-17 Steven Bosscher <stevenb@suse.de>
4731
4732 PR tree-optimization/15438
4733 * tree-ssa-operands.c (get_expr_operands): Do not treat malloc
4734 attributed functions as pure or const.
4735
4736 2004-05-17 Frank Ch. Eigler <fche@redhat.com>
4737
4738 * tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting
4739 from source code with errors.
4740
4741 2004-05-17 Ranjit Mathew <rmathew@hotmail.com>
4742
4743 Enable tree browser for all front ends.
4744 * Makefile.in (cc1): Moved @TREEBROWSER@ from here...
4745 (BACKEND): ...to here.
4746
4747 2004-05-17 Jan Hubicka <jh@suse.cz>
4748
4749 * i386.c (construct_container): Do not produce BLKmode registers.
4750 (classify_argument): Properly compute alignment of complex types.
4751
4752 2004-05-17 H.J. Lu <hongjiu.lu@intel.com>
4753
4754 PR target/15084
4755 * config/i386/i386.md (*movsi_insv_1_rex64): Changed to DImode
4756 and renamed to movdi_insv_1_rex64.
4757 (insv): Support SImode for 32bit and DImode for 64bit.
4758
4759 2004-05-17 Richard Sandiford <rsandifo@redhat.com>
4760
4761 * config/mips/mips.h (MASK_DEBUG_G, TARGET_DEBUG_G_MODE): Delete.
4762 (TARGET_SWITCHES): Remove debugg.
4763 * config/mips/mips.md (adddi3, ashldi3, ashrdi3, lshrdi3): Only handle
4764 TARGET_64BIT.
4765 (subdi3): Replace the define_expand with a define_insn, the latter
4766 renamed from subdi3_internal_3.
4767 (negdi2): Likewise negdi2_internal_2.
4768 (adddi3_internal_[12], subdi3_internal, ashldi3_internal{,2,3})
4769 (ashrdi3_internal{,2,3}, lshrdi3_internal{,2,3}): Remove patterns
4770 and associated define_splits.
4771 (adddi3_internal): Renamed from adddi3_internal_3.
4772 (ashldi3_internal): Likewise ashldi3_internal4.
4773 (ashrdi3_internal): Likewise ashrdi3_internal4.
4774 (lshrdi3_internal): Likewise lshrdi3_internal4.
4775
4776 2004-05-17 Richard Sandiford <rsandifo@redhat.com>
4777
4778 * optabs.c (expand_unop): Try implementing negation using subtraction
4779 from zero.
4780
4781 2004-05-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4782
4783 * pa.md: Fix typo from last change. Remove DFmode move to and from
4784 SAR register.
4785
4786 2004-05-16 Richard Earnshaw <rearnsha@arm.com>
4787
4788 PR target/10982
4789 * arm.md (ne_zeroextractsi): Convert to insn-and-split.
4790 (ne_zeroextractsi_shifted): New pattern.
4791 (ite_ne_zeroextractsi): New pattern.
4792 (ite_ne_zeroextractsi_shifted): New pattern.
4793
4794 2004-05-15 Steven Bosscher <stevenb@suse.de>
4795
4796 * c-gimplify.c (c_genericize):
4797 Replace calls via (*lang_hooks.foo) with lang_hooks.foo.
4798 * c-parse.in <expr_no_commas>: Likewise.
4799 <if_prefix>: Likewise.
4800 <select_or_iter_stmt>: Likewise.
4801 * expr.c (expand_var, expand_expr_real_1): Likewise.
4802 * expr.h (expand_expr): Make it a static inline function.
4803 Move prototype for expand_expr_real up before this.
4804 * fold-const.c (fold_relational_hi_lo, fold_relational_const):
4805 Likewise.
4806 * gimplify.c (gimple_boolify, gimplify_addr_expr,
4807 gimplify_asm_expr, gimplify_expr): Likewise.
4808 * tree-cfg.c (dump_tree_cfg, dump_cfg_stats, tree_cfg2vcg,
4809 dump_function_to_file): Likewise.
4810 * tree-dfa.c (dump_immediate_uses, dump_dfa_stats): Likewise.
4811 * tree-inline.c (remap_block, save_body, walk_tree): Likewise.
4812 * tree-into-ssa.c (dump_tree_ssa): Likewise.
4813 * tree-mudflap.c (mf_varname_tree, mf_file_function_line_tree):
4814 Likewise.
4815 * tree-optimize.c (execute_one_pass): Likewise.
4816 * tree-pretty-print.c (dump_generic_bb_buff): Likewise.
4817 * tree-ssa-alias.c (dump_alias_stats, dump_alias_info): Likewise.
4818
4819 * objc/objc-act.c (objc_build_try_enter_fragment,
4820 objc_build_try_epilogue, objc_build_catch_stmt,
4821 objc_build_finally_prologue): Replace calls via (*lang_hooks.foo)
4822 with lang_hooks.foo ().
4823
4824 2004-05-15 Roger Sayle <roger@eyesopen.com>
4825
4826 * builtins.c (simplify_builtin_strcpy): Avoid use of chainon, so
4827 that simplify_builtin doesn't destructively modify its argument.
4828
4829 2004-05-15 Richard Earnshaw <reanrsha@arm.com>
4830
4831 * arm/lib1funcs.asm (_lshrdi3, _ashrdi3, _ashldi3): Add ASM
4832 implementations for ARM and Thumb.
4833 * arm/t-arm-elf (LIB1ASMFUNCS): Use them.
4834
4835 2004-05-15 Thomas Quinot <quinot@act-europe.fr>
4836
4837 * prefix.c (update_path): Replace PREFIX with KEY only
4838 when it matches a full directory name in PATH.
4839
4840 2004-05-15 Richard Earnshaw <reanrsha@arm.com>
4841
4842 * arm.h (TARGET_APCS_32): Delete.
4843 (TARGET_MMU_TRAPS): Delete.
4844 (TARGET_CPU_CPP_BUILTINS): Unconditionally define __APCS_32__. Never
4845 define __APCS_26__.
4846 (CPP_SPEC): Remove checking of -mapcs-{26,32}.
4847 (ARM_FLAG_APCS_32, ARM_FLAG_MMU_TRAPS): Delete.
4848 (TARGET_SWITCHES): Remove alignment_traps and apcs-{26,32} switches.
4849 (prog_mode_type): Delete.
4850 (PROMOTE_MODE): Always promote unsigned for HImode.
4851 (SECONDARY_INPUT_RELOAD_CLASS): Simplify.
4852 (MASK_RETURN_ADDR): Simplify.
4853 * arm.c (arm_prgmode): Delete.
4854 (arm_override_options, arm_gen_rotated_half_load): Simplify.
4855 (print_multi_reg, output_return_instruction): Simplify.
4856 (arm_output_epilogue, arm_final_prescan_insn): Simplify.
4857 (arm_return_addr): Simplify.
4858 * arm.md (prog_mode): Delete.
4859 (conds): Simplify.
4860 (zero_extendhisi2, extendhisi2, movhi, movhi_bytes): Simplify.
4861 (rotated_loadsi, movhi_insn_littleend, movhi_insn_bigend): Delete.
4862 (loadhi_si_bigend, loadhi_preinc, loadhi_shiftpreinc): Delete.
4863 (loadhi_shiftpredec): Delete.
4864 (peephole for post-increment on HImode load): Delete.
4865 * arm/crtn.asm: (FUNC_END): Simplify.
4866 * arm/lib1funcs.asm: Remove APCS-26 return macros.
4867 * arm/aof.h, arm/coff.h arm/elf.h arm/linux-elf.h arm/netbsd-elf.h
4868 * arm/netbsd.h arm/pe.h arm/semi.h arm/semiaof.h arm/unknown-elf.h
4869 * arm/vxworks.h arm/wince-pe.h: Tidy TARGET_DEFAULTS and
4870 MULTILIB_DEFAULTS as required.
4871 * arm/t-arm-elf arm/t-linux arm/t-pe arm/t-semi arm/t-wince-pe
4872 * arm/t-xscale-coff arm/t-xscale-elf arm/uclinux-elf: Tidy MULTILIB
4873 variables as required.
4874 * doc/invoke.texi (ARM Options): Remove obsolete flags.
4875
4876 2004-05-15 Alan Modra <amodra@bigpond.net.au>
4877
4878 * config/rs6000/rs6000.c (rs6000_va_arg <ABI_V4>): Don't use
4879 UNITS_PER_WORD to calculate gpr size. Re-instate code to set reg
4880 count to 8 to handle n_reg > 2.
4881
4882 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
4883
4884 * doc/extend.texi: Update WG14 URL.
4885
4886 2004-05-15 Steven Bosscher <stevenb@suse.de>
4887
4888 * basic-block.h (life_analysis, delete_noop_moves):
4889 Update prototypes.
4890 * bt-load.c (branch_target_load_optimize): Don't take the
4891 insns stream as an argument. Update the life_analysis calls.
4892 * combine.c (combine_instructions): Update delete_noop_moves
4893 calls.
4894 * flow.c (notice_stack_pointer_modification): Don't take the
4895 insns stream as an argument. Work on the flow graph.
4896 (life_analysis): Likewise.
4897 (delete_noop_moves): Likewise.
4898 * passes.c (rest_of_handle_stack_regs): Update reg_to_stack call.
4899 (rest_of_handle_life): Update life_analysis call.
4900 (rest_of_compilation): Likewise, and also update
4901 branch_target_load_optimize call.
4902 * ra.c (reg_alloc): Update life_analysis call.
4903 * reg-stack.c (reg_to_stack): Likewise. Also, don't take
4904 the insns stream as an argument.
4905 * regrename.c (copyprop_hardreg_forward): Update delete_noop_moves
4906 call.
4907 * rtl.c (branch_target_load_optimize, reg_to_stack): Update
4908 prototypes.
4909 * value-profile.c (branch_prob): Update life_analysis call.
4910 * web.c (web_main): Work on the CFG, not on the insns stream.
4911
4912 * config/ip2k/ip2k.c (ip2k_reorg): Update life_analysis calls.
4913 * config/m68hc11/m68hc11.c (m68hc11_reorg): Likewise.
4914 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
4915
4916 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
4917
4918 PR c/15444
4919 * c-format.c (avoid_dollar_number): New function.
4920 (check_format_info_main): Call avoid_dollar_number when operand
4921 numbers might occur but has_operand_number == 0.
4922
4923 2004-05-14 Richard Earnshaw <rearnsha@arm.com>
4924
4925 * arm.md (all peephole2 patterns): Use predicates that validate
4926 register classes as appropriate.
4927
4928 2004-05-14 Steven Bosscher <stevenb@suse.de>
4929
4930 PR opt/14472
4931 * tree-tailcall.c (process_assignment): Use STRIP_NOPS to
4932 ignore type conversions that do not inhibit tail calling.
4933 (find_tail_calls): Likewise.
4934
4935 2004-05-14 Jeff Law <law@redhat.com>
4936
4937 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't even
4938 bother marking bypassed virtuals for out-of-ssa. Instead merge
4939 bypassed virtuals into vars_to_rename just before into-ssa pass.
4940
4941 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Reorganize
4942 so that it picks up more opportunities to eliminate ABS expressions
4943 or turn them into negations.
4944
4945 2004-05-14 Steven Bosscher <stevenb@suse.de>
4946
4947 * passes.c (rest_of_handle_null_pointer): Remove.
4948 (rest_of_handle_cse): Don't call rest_of_handle_null_pointer.
4949 (rest_of_compilation): Likewise.
4950 * rtl.h (delete_null_pointer_checks): Remove prototype.
4951 * gcse.c (rd_kill, rd_gen, reaching_defs, rd_out, ae_in, ae_out):
4952 Remove declarations.
4953 (get_bitmap_width, alloc_rd_mem, free_rd_mem, handle_rd_kill_set,
4954 compute_kill_rd, compute_rd, alloc_avail_expr_mem,
4955 free_avail_expr_mem, compute_ae_gen, expr_killed_p, compute_ae_kill,
4956 expr_reaches_here_p, computing_insn, def_reaches_here_p,
4957 can_disregard_other_sets, handle_avail_expr, classic_gcse,
4958 one_classic_gcse_pass, invalidate_nonnull_info,
4959 delete_null_pointer_checks_1, delete_null_pointer_checks,
4960 expr_reached_here_p_work): Remove.
4961 (gcse_main): Do not perform classic GCSE when optimizing for size.
4962 (alloc_pre_mem, free_pre_mem): Don't touch ae_in and ae_out, they
4963 are never used.
4964
4965 2004-05-14 Andrew Pinski <pinskia@physics.uc.edu>
4966
4967 PR optimization/14466
4968 * tree-complex.c (make_temp): Remove.
4969 (gimplify_val): Replace make_temp with make_rename_temp
4970 and add NULL as the second argument.
4971 (expand_complex_div_wide): Likewise.
4972 * tree-dfa.c (make_rename_temp): New function.
4973 * tree-flow.h (make_rename_temp): Declare.
4974 * tree-sra.c (make_temp): Remove.
4975 (lookup_scalar): Replace make_temp with make_rename_temp.
4976 (create_scalar_copies): Likewise.
4977 * tree-ssa-phiopt.c (conditional_replacement): When we
4978 get non gimple create a temporary variable to hold the
4979 casted expression.
4980
4981 2004-05-14 Paul Brook <paul@codesourcery.com>
4982
4983 * stor-layout.c (update_alignment_for_field): Use
4984 targetm.align_anon_bitfield.
4985 * target-def.h (TARGET_ALIGN_ANON_BITFIELD): Define.
4986 (TARGET_INITIALIZER): Use it.
4987 * target.h (struct gcc_target): Add align_anon_bitfield.
4988 * config/arm/arm.c (arm_align_anon_bitfield): New function.
4989 (TARGET_ALIGN_ANON_BITFIELD): Define.
4990 * doc/tm.texi: Document TARGET_ALIGN_ANON_BITFIELD.
4991
4992 2004-05-13 Zack Weinberg <zack@codesourcery.com>
4993
4994 * tree.def (documentation): Remove mention of class 'b'.
4995 (BLOCK): Now in class 'x'.
4996 * c-common.c (verify_tree): Remove case 'b'.
4997 * c-typeck.c (same_translation_unit_p): Change 'b' to 'x'.
4998 * calls.c (calls_function_1): Control cannot get past the switch
4999 when exp is a BLOCK.
5000 * print-tree.c (print_node): Move code for class 'b' to the class
5001 'c'/'x' switch, as case BLOCK.
5002 * tree.c (tree_size, make_node_stat, tree_node_structure): Likewise.
5003 (unsafe_for_reeval, substitute_placeholder_in_expr)
5004 (stabilize_reference_1): Remove case 'b'.
5005 * tree-browser.c (browse_tree): Change all tests for TREE_CODE_CLASS
5006 of something being 'b' to tests for TREE_CODE of something being
5007 BLOCK.
5008 * tree-ssa-operands.c (get_expr_operands): Likewise.
5009
5010 2004-05-13 Diego Novillo <dnovillo@redhat.com>
5011
5012 * tree-gimple.c: Rename from tree-simple.c.
5013 * tree-gimple.h: Rename from tree-simple.h.
5014 * c-gimplify.c: Rename from c-simplify.c
5015 * Makefile.in, c-decl.c, gimple-low.c, gimplify.c,
5016 langhooks.c, tree-alias-ander.c, tree-alias-common.c,
5017 tree-complex.c, tree-dfa.c, tree-flow.h, tree-inline.c,
5018 tree-into-ssa.c, tree-iterator.c, tree-mudflap.c,
5019 tree-nested.c, tree-nomudflap.c, tree-outof-ssa.c, tree-sra.c,
5020 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-copyrename.c,
5021 tree-ssa-dce.c, tree-ssa-live.c, tree-ssa-pre.c, tree-ssa.c:
5022 Update.
5023
5024 2004-05-14 Ranjit Mathew <rmathew@hotmail.com>
5025
5026 * doc/sourcebuild.texi: Mention libbanshee and libmudflap.
5027
5028 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
5029
5030 * tree-ssa.c (delete_tree_ssa): XFREE
5031 bitmaps allocated with BITMAP_XMALLOC.
5032
5033 * tree-ssa-pre.c (execute_pre): Free ephi_use_pool and
5034 idfs_cache at the end of the function.
5035
5036 * tree-ssa-live.c (calculate_live_on_entry): Free saw_def
5037 at the end of the function.
5038
5039 * tree-ssa-dce.c (perform_tree_ssa_dce): Free
5040 el at the end of the function.
5041
5042 * tree-into-ssa.c (insert_phi_nodes_for): XFREE
5043 bitmaps allocated with BITMAP_XMALLOC.
5044
5045 * loop-unswitch.c (unswitch_single_loop): Free bbs at
5046 the end.
5047
5048 * final.c (shorten_branches): Free uid_shuid before
5049 reallocating it.
5050
5051 * bb-reoder.c (connect_traces): Free cold_traces at the end.
5052
5053 2004-05-13 Jeff Law <law@redhat.com>
5054
5055 * tree-ssa-live.c (calculate_live_on_entry): Ignore virtual
5056 variables. Simplify slightly by using USE_OP/DEF_OP instead
5057 of USE_OP_PTR/DEF_OP_PTR and dereferencing the result.
5058
5059 * tree-into-ssa.c (compute_global_livein): Use EXECUTE_IF_SET_IN_BITMAP
5060 rather than iterating through the blocks testing each bit in
5061 livein to initialize the worklist.
5062 (mark_def_sites): Remove useless checks of KILLS for virtual
5063 operands.
5064
5065 * tree-ssa-forwprop.c (record_single_argument_cond_exprs): Accept
5066 new parameters for the statement and variable worklist as well
5067 as a bitmap of interesting SSA_NAMEs. Walk over the statement
5068 worklist recording interesting variables in the variable worklist
5069 and bitmap. Handle casts between integral and boolean types.
5070 (substitute_single_use_vars): Accept new parameters for the statement
5071 and variable worklist. When a substitution is made add a new
5072 entry to the statement worklist. Handle casts between integral
5073 and boolean types.
5074 (tree_ssa_forward_propagate_single_use_vars): Rework to pass
5075 worklists to children. Iterate until the statement worklist
5076 is empty.
5077
5078 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
5079
5080 * tree-outof-ssa.c (rewrite_vars_out_of_ssa): Free map at
5081 the end of the block.
5082
5083 * tree-into-ssa.c (def_blocks_free): XFREE bitmaps allocated
5084 with BITMAP_XMALLOC.
5085
5086 * tree-ssa-alias.c (delete_alias_info): XFREE bitmaps allocated
5087 with BITMAP_XMALLOC.
5088
5089 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
5090 Free nonzero_vars at the end of the function.
5091
5092 * convert.c (convert_to_integer): Make a CONVERT_EXPR when there is a
5093 need to generate code instead of a NOP_EXPR.
5094
5095 2004-05-13 Ian Lance Taylor <ian@wasabisystems.com>
5096
5097 * gcc.c (default_compilers): Fill out initializers for new Fortran
5098 entries.
5099
5100 2004-05-13 Paul Brook <paul@codesourcery.com>
5101
5102 * config/arm/arm.h (PCC_BITFIELD_TYPE_MATTERS): Define.
5103
5104 2004-05-13 Paul Brook <paul@codesourcery.com>
5105
5106 * config/arm/arm.c (arm_default_short_enums): New function.
5107 (TARGET_DEFAULT_SHORT_ENUMS): Define.
5108
5109 2004-05-13 Diego Novillo <dnovillo@redhat.com>
5110
5111 Merge from tree-ssa-20020619-branch.
5112
5113 * Makefile.in (reload1.o-warn): Add.
5114 (tree-alias-ander.o-warn): Add.
5115 (GMPLIBS): Define.
5116 (GMPINC): Define.
5117 (BANSHEELIB): Define.
5118 (BANSHEEINC): Define.
5119 (TREE_DUMP_H): Define.
5120 (TREE_SIMPLE_H): Define.
5121 (TREE_FLOW_H): Define.
5122 (LIBDEPS): Add BANSHEELIB.
5123 (INCLUDES): Add BANSHEEINC and GMPINC.
5124 (C_AND_OBJC_OBJS): Add c-simplify.o, tree-mudflap.o,
5125 c-mudflap.o and c-pretty-print.o.
5126 (C_OBJS): Remove c-pretty-print.o.
5127 (OBJS-common): Remove sibcall.o.
5128 Add tree-cfg.o, tree-dfa.o, tree-eh.o,
5129 tree-ssa.o, tree-optimize.o, tree-simple.o,
5130 tree-alias-type.o, gimplify.o, tree-pretty-print.o,
5131 tree-into-ssa.o, tree-outof-ssa.o, tree-alias-common.o,
5132 tree-ssa-ccp.o, @ANDER@, tree-ssa-dce.o, tree-ssa-copy.o,
5133 tree-nrv.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
5134 tree-ssa-live.o, tree-ssa-operands.o, tree-ssa-alias.o,
5135 tree-ssa-phiopt.o, tree-ssa-forwprop.o, tree-nested.o,
5136 tree-ssa-dse.o, tree-ssa-dom.o, domwalk.o,
5137 tree-tailcall.o, gimple-low.o, tree-iterator.o,
5138 tree-phinodes.o, tree-ssanames.o, tree-sra.o,
5139 tree-complex.o, tree-ssa-loop.o, rtl-profile.o and
5140 tree-profile.o.
5141 (OBJC-archive): Add tree-nomudflap.o.
5142 (cc1): Add dependency on @TREEBROWSER@.
5143 (c-decl.o): Add dependency on TREE_DUMP_H.
5144 (c-dump.o): Likewise.
5145 (c-common.o): Add dependency on tree-iterator.h
5146 (c-pretty-print.o): Add dependency on DIAGNOSTIC_H.
5147 (gtype-desc.o): Add dependency on TREE_FLOW_H.
5148 (tree.o): Add dependency on tree-iterator.h,
5149 BASIC_BLOCK_H and TREE_FLOW_H.
5150 (tree-dump.o): Depend on TREE_DUMP_H instead of tree-dump.h.
5151 (langhooks.o): Add dependency on TREE_SIMPLE_H.
5152 (tree-alias-type.o, tree-alias-ander.o,
5153 tree-alias-common.o, tree-ssa.o, tree-into-ssa.o,
5154 tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o,
5155 tree-ssa-phiopt.o, tree-nrv.o, tree-ssa-copy.o,
5156 tree-ssa-dom.o, tree-ssanames.o, tree-phinodes.o,
5157 domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o,
5158 tree-ssa-pre.o, tree-cfg.o, tree-tailcall.o,
5159 tree-nested.o, tree-iterator.o, tree-dfa.o,
5160 tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o,
5161 tree-ssa-alias.o, tree-optimize.o, c-simplify.o,
5162 gimplify.o, gimple-low.o, tree-browser.o, tree-simple.o,
5163 tree-mudflap.o, c-mudflap.o, tree-nomudflap.o,
5164 tree-pretty-print.o, tree-ssa-dce.o, tree-ssa-ccp.o,
5165 tree-sra.o, tree-complex.o, tree-profile.o,
5166 rtl-profile.o): New rules.
5167 (function.o): Add dependency on basic-block.h
5168 (expr.o): Add dependency on tree-iterator.h.
5169 (sibcall.o): Remove.
5170 (profile.o): Depend on TREE_FLOW_H instead of TREE_H.
5171 (cfg.o): Add dependency on TIMEVAR_H.
5172 (cfghooks.o): Add dependency on TREE_FLOW_H.
5173 (reg-stack.o): Add dependency on basic-block.h.
5174 (GTFILES): Add hwint.h, tree-mudflaph.c, tree-flow.h,
5175 c-objc-common.c, c-common.c, c-parse.in, tree-ssanames.c,
5176 tree-eh.c, tree-phinodes.c, tree-cfg.c, tree-dfa.c,
5177 tree-ssa-ccp.c, tree-iterator.c, gimplify.c,
5178 tree-alias-type.h, tree-alias-common.h,
5179 tree-alias-type.c, tree-alias-common.c,
5180 tree-ssa-operands.h, tree-ssa-operands.c, tree-profile.c,
5181 rtl-profile.c and tree-nested.c.
5182 (gt-tree-alias-common.h, gt-tree-mudflap.h,
5183 gt-tree-ssa-ccp.h, gt-tree-eh.h, gt-tree-ssanames.h,
5184 gt-tree-iterator.h, gt-gimplify.h, gt-tree-phinodes.h,
5185 gt-tree-cfg.h, gt-tree-nested.h): New rules.
5186 (TEXI_GCCINT_FILES): Add cfg.texi and tree-ssa.texi.
5187 * basic-block.h: Include predict.h
5188 (struct edge_def): Add GTY marker.
5189 Change field 'insns' to be a union of tree and rtx.
5190 (EDGE_TRUE_VALUE): Define.
5191 (EDGE_FALSE_VALUE): Define.
5192 (EDGE_EXECUTABLE): Define.
5193 (struct bb_ann_d): Forward declare.
5194 (struct basic_block_def): Add GTY marker.
5195 Remove fields head_tree and end_tree.
5196 Add fields stmt_list, rbi and tree_annotations.
5197 (struct reorder_block_def): Define.
5198 (basic_block_info): Add GTY marker.
5199 (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Change to global
5200 variables instead of macros.
5201 (flow_call_edges_add): Remove declaration.
5202 (make_eh_edge): Remove declaration.
5203 (brief_dump_cfg, find_edge, tree_predicted_by_p,
5204 rtl_predicted_by_p, tree_predict_edge, rtl_predict_edge,
5205 predict_edge_def, rtl_make_eh_edge, find_basic_blocks,
5206 cleanup_cfg, delete_unreachable_blocks, merge_seq_blocks,
5207 alloc_rbi_pool, initialize_bb_rbi, free_rbi_pool): Declare.
5208 (try_redirect_by_replacing_jump): Modfiy return type to
5209 edge instead of bool.
5210 * bb-reorder.c (copy_bb): Call duplicate_block
5211 instead of cfg_layout_duplicate_bb.
5212 (copy_bb_p): Call can_duplicate_block_p instead of
5213 cfg_layout_can_duplicate_bb_p.
5214 * bitmap.c (bitmap_first_set_bit): Abort if word
5215 wasn't found.
5216 (bitmap_last_set_bit): Likewise.
5217 * builtin-types.def (DEF_FUNCTION_TYPE_2): Add
5218 (DEF_FUNCTION_TYPE_3): Add.
5219 * builtins.c (c_strlen): Make extern.
5220 (builtin_save_expr): New.
5221 (expand_builtin_nonlocal_goto): New.
5222 (expand_builtin_constant_p): Remove.
5223 (expand_builtin_mathfn): Call builtin_save_expr instead
5224 of save_expr.
5225 (expand_builtin_mathfn_2): Likewise.
5226 (expand_builtin_strcmp): Likewise.
5227 (expand_builtin_strncmp): Likewise.
5228 (expand_builtin_strcat): Likewise.
5229 (fold_builtin_cabs): Likewise.
5230 (expand_builtin_alloca): Don't trigger if -fmudflap is
5231 given.
5232 (build_string_literal): Set TREE_INVARIANT on new node.
5233 (expand_builtin_profile_fun): New.
5234 (round_trampoline_addr): New.
5235 (expand_builtin_init_trampoline): New.
5236 (expand_builtin_adjust_trampoline): New.
5237 (expand_builtin) <BUILT_IN_NEXT_ARG>: Call simplify_builtin_next_arg.
5238 <BUILT_IN_CONSTANT_P>: Return const0_rtx;
5239 <BUILT_IN_STACK_ALLOC, BUILT_IN_STACK_SAVE,
5240 BUILT_IN_STACK_RESTORE, BUILT_IN_NONLOCAL_GOTO,
5241 BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT,
5242 BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE>:
5243 Handle.
5244 (fold_builtin_expect): New.
5245 (fold_builtin_isascii): Don't return non-constant results
5246 in GIMPLE form.
5247 (fold_builtin_isdigit): Likewise.
5248 (fold_builtin_1): New.
5249 (fold_builtin): Call it.
5250 (build_function_call_expr): Update call to build a new
5251 CALL_EXPR.
5252 (purge_builtin_constant_p): Remove.
5253 (simplify_builtin, simplify_builtin_memcmp,
5254 simplify_builtin_strcmp, simplify_builtin_strncmp,
5255 simplify_builtin_strpbrk, simplify_builtin_strstr,
5256 simplify_builtin_strchr, simplify_builtin_strrchr,
5257 simplify_builtin_strcat, simplify_builtin_strncat,
5258 simplify_builtin_strspn, simplify_builtin_strcspn,
5259 simplify_builtin_next_arg, simplify_builtin_va_start,
5260 simplify_builtin_sprintf): New.
5261 * builtins.def (BUILT_IN_STACK_ALLOC,
5262 BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE,
5263 BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE,
5264 BUILT_IN_NONLOCAL_GOTO, BUILT_IN_PROFILE_FUNC_ENTER,
5265 BUILT_IN_PROFILE_FUNC_EXIT): Define.
5266 * c-common.c: Include tree-iterator.h and hashtab.h.
5267 (lang_statement_code_p): Declare.
5268 (lang_gimplify_stmt): Declare.
5269 (fix_string_type): Set TREE_INVARIANT for value.
5270 (pointer_int_sum): Rely on build to set TREE_CONSTANT.
5271 (c_type_hash): New.
5272 (c_common_get_alias_set): Handle multiple type nodes
5273 referring to "the same" type, currently for C90 only.
5274 (c_add_case_label): Use create_artificial_label.
5275 (finish_label_address_expr): Don't set TREE_CONSTANT on
5276 result.
5277 (c_expand_expr): Don't handle STMT_EXPR.
5278 (handle_alias_attribute): Marke aliased variables to be
5279 TREE_STATIC.
5280 (handle_nonnull_attribute): Initialize arg_num.
5281 (check_function_nonnull): Likewise.
5282 (c_walk_subtrees): New.
5283 (c_estimate_num_insns_1): Don't handle
5284 EXPR_WITH_FILE_LOCATION nor FILE_STMT.
5285 (c_decl_uninit_1): Remove.
5286 (c_decl_uninit): Remove.
5287 (c_warn_unused_result): New.
5288 * c-common.def (ASM_STMT): Change number of operands
5289 to 4.
5290 (FILE_STMT): Remove.
5291 * c-common.h (lang_expand_stmt, lang_expand_decl_stmt):
5292 Remove.
5293 (lang_gimplify_stmt): Add.
5294 (expand_stmt): Remove.
5295 (ASM_CV_QUAL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
5296 ASM_CLOBBERS, STMT_EXPR_WARN_UNUSED_RESULT,
5297 ASM_VOLATILE_P, FILE_STMT_FILENAME_NODE,
5298 FILE_STMT_FILENAME, STMT_LINENO, STMT_LINENO_FOR_FN_P,
5299 ASM_INPUT_P, DECL_C_HARD_REGISTER): Remove.
5300 (genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
5301 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
5302 genrtl_while_stmt, genrtl_do_stmt, genrtl_return_stmt,
5303 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
5304 genrtl_scope_stmt, genrtl_switch_stmt, genrtl_case_label,
5305 genrtl_compound_stmt, genrtl_asm_stmt,
5306 genrtl_cleanup_stmt, c_decl_uninit): Remove.
5307 (c_do_switch_warnings, c_gimplify_expr, c_walk_subtrees,
5308 c_tree_chain_matters_p, c_warn_unused_result,
5309 c_genericize, c_gimplify_stmt, stmt_expr_last_stmt):
5310 Declare.
5311 * c-convert.c (convert): Make convert work when
5312 converting to compatible types across translation unit.
5313 * c-decl.c: Include langhooks.h, tree-mudflap.h,
5314 tree-simple.h, diagnostic.h and tree-dump.h
5315 (merge_decls): Initialize oldtype to NULL.
5316 (finish_decl): Use DECL_HARD_REGISTER instead of
5317 DECL_C_HARD_REGISTER.
5318 (check_bitfield_type_and_width): Check for null
5319 lang_type_specific when check the precision of an enum.
5320 (grokdeclarator): Immediately layout an ARRAY_TYPE used
5321 in a pointer-to-array declarator.
5322 (finish_struct): Clear allocated struct lang_type.
5323 (finish_enum): Set enum_min and enum_max. Set
5324 TYPE_MIN/MAX_VALUE to the limits of the compatible type,
5325 not to the enumerators.
5326 (set_decl_nonlocal): New.
5327 (store_parm_decls): Use it via walk_tree.
5328 (c_finalize): New.
5329 (finish_function): When !targetm.have_ctors_dtors,
5330 record static constructors and destructors here...
5331 (c_expand_body_1): ... not here.
5332 (c_expand_decl): Rename from c_expand_decl_stmt.
5333 Handle all C-specific expansion semantics.
5334 * c-dump.c (dump_stmt): Use EXPR_LOCUS instead of
5335 STMT_LINENO.
5336 * c-format.c (handle_format_arg_attribute): Initialize
5337 format_num.
5338 * c-lang.c: Include tree-inline.h
5339 (LANG_HOOKS_EXPAND_DECL,
5340 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
5341 LANG_HOOKS_TREE_INLINING_WALK_SUBTREES,
5342 LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P,
5343 LANG_HOOKS_GIMPLIFY_EXPR, LANG_HOOKS_TYPES_COMPATIBLE_P): Define.
5344 (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
5345 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): Remove.
5346 (c_types_compatible_p): New.
5347 * c-mudflap.c: New file.
5348 * c-objc-common.c: Include tree-mudflap.h
5349 (start_cdtor, finish_cdtor): Collapse
5350 together into
5351 (build_cdtor): ...here. Update to construct a complete tree
5352 for the function. No need to call push_scope, pop_scope, or
5353 clear_last_expr, or set current_function_cannot_inline.
5354 (c_missing_noreturn_ok_p): Change prototype to return
5355 bool.
5356 (c_objc_common_init): Don't set lang_missing_noreturn_ok_p.
5357 * c-opts.c (c_common_handle_option): Move handling of -fdump- to
5358 opts.c.
5359 (c_common_post_options): Don't ever use rtl inlining.
5360 * c-parse.in: Use EXPR_LOCUS instead of STMT_LINENO.
5361 * c-pragma.c (handle_pragma_redefine_extname): Define
5362 always.
5363 (init_pragma): Activate #pragma redefine_extname for mudflap.
5364 * c-pretty-print.c (pp_c_statement): Remove FILE_STMT.
5365 (pp_c_initializer): Accept any type CONSTRUCTOR.
5366 (pp_c_initializer_list): Fix code expectations for VECTOR_TYPE and
5367 COMPLEX_TYPE.
5368 (decl_name_str): New local function.
5369 (pp_c_direct_declarator): Call it.
5370 (pp_c_primary_expression): Call it.
5371 (pp_c_id_expression): Call it.
5372 (pp_c_statement): Call it.
5373 (print_c_tree): Create new pp object.
5374 * c-pretty-print.h (pp_c_tree_decl_identifier,
5375 print_c_tree): Declare.
5376 * c-semantics.c: Include langhooks.h
5377 (lang_expand_stmt, lang_expand_decl_stmt,
5378 find_reachable_label_1, find_reachable_label,
5379 expand_unreachable_if_stmt, expand_unreachable_stmt,
5380 genrtl_do_stmt_1): Remove.
5381 (begin_stmt_tree): Don't check for changed filename.
5382 Call annotate_with_locus.
5383 (finish_stmt_tree): Don't set line for end of function.
5384 (build_stmt): Don't check type nodes for
5385 side effects.
5386 (build_stmt): Set TREE_SIDE_EFFECTS.
5387 Set EXPR_LOCUS instead of STMT_LINENO.
5388 (lang_expand_stmt, lang_expand_decl_stmt,
5389 expand_cond, genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
5390 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
5391 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_do_stmt,
5392 genrtl_return_stmt, genrtl_for_stmt, genrtl_break_stmt,
5393 genrtl_continue_stmt, genrtl_scope_stmt, genrtl_switch_stmt,
5394 genrtl_case_label, genrtl_compound_stmt, genrtl_asm_stmt,
5395 genrtl_cleanup_stmt, expand_stmt, find_reachable_label,
5396 find_reachable_label_1, expand_unreachable_if_stmt,
5397 expand_unreachable_stmt): Remove.
5398 (prep_stmt): Use EXPR_LOCUS instead of STMT_LINENO.
5399 * c-simplify.c: New file.
5400 * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Define.
5401 (struct lang_type): Add fields enum_min and enum_max.
5402 (c_expand_decl_stmt, c_missing_noreturn_ok_p): Remove.
5403 (c_expand_decl, c_missing_noreturn_ok_p,
5404 c_types_compatible_p): Declare.
5405 * c-typeck.c (tagged_types_tu_compatible_p): Allow for
5406 compiler-generated TYPE_DECLs without a DECL_ORIGINAL_TYPE.
5407 (default_function_array_conversion): Rely on build to
5408 set TREE_CONSTANT.
5409 (parser_build_binary_op, pointer_diff): Likewise.
5410 (build_unary_op, build_binary_op): Likewise.
5411 (build_array_ref):
5412 (build_external_ref): Set TREE_INVARIANT.
5413 (build_c_cast, pop_init_level): Likewise.
5414 (process_init_element): Use ASM_VOLATILE_P.
5415 (build_asm_expr): Adapt to GENERIC/GIMPLE syntax.
5416 (c_finish_case): Call c_do_switch_warnings.
5417 * c.opt (fdump-): Remove.
5418 * calls.c (try_to_integrate): Remove.
5419 (prepare_call_address): Replace fndecl arg with a
5420 precomputed static chain value.
5421 (emit_call_1): New argument for full call expr.
5422 (flags_from_decl_or_type): Call special_function_p.
5423 (initialize_argument_information): Add argument
5424 may_tailcall.
5425 (purge_reg_equiv_notes): New.
5426 (expand_call): Do not try to expand calls inline.
5427 (fixup_tail_calls): New.
5428 * cfg.c: Include timevar.h and ggc.h.
5429 (bb_pool, edge_pool): Remove.
5430 (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Declare.
5431 (entry_exit_blocks): Remove.
5432 (rbi_pool): Declare.
5433 (init_flow): Do not create pools.
5434 Allocate entry/exit block.
5435 (free_edge, alloc_block, expunge_block, unchecked_make_edge): Use GGC.
5436 (alloc_rbi_pool, free_rbi_pool, initialize_bb_rbi): New.
5437 (unlink_block): Clear b->prev_bb and b->next_bb.
5438 (compact_blocks): Clear all slots of BASIC_BLOCK array.
5439 (dump_flow_info): Work on trees too.
5440 (dump_cfg_bb_info): New.
5441 (brief_dump_cfg): New.
5442 * cfganal.c (need_fake_edge_p, flow_call_edges_add): Remove.
5443 (find_edge): New.
5444 * cfgbuild.c (rtl_make_eh_edge): Rename from
5445 make_eh_edge. Update all users.
5446 (find_basic_blocks): Don't call VARRAY_FREE on
5447 basic_block_info.
5448 * cfgcleanup.c (outgoing_edges_match): Initialize newpos1
5449 and newpos2.
5450 (delete_unreachable_blocks): Return changed status.
5451 (merge_seq_blocks): New.
5452 * cfghooks.c: Include tree-flow.h
5453 (tree_register_cfg_hooks, ir_type): New.
5454 (redirect_edge_and_branch): Change return type to edge.
5455 (predict_edge, predicted_by_p, can_duplicate_block_p,
5456 duplicate_block, block_ends_with_call_p,
5457 block_ends_with_condjump_p, flow_call_edges_add): New.
5458 * cfghooks.h (redirect_edge_and_branch): Change return
5459 type to edge.
5460 (predict_edge, predicted_by_p, can_duplicate_block_p,
5461 duplicate_block, block_ends_with_call_p,
5462 block_ends_with_condjump_p, flow_call_edges_add): Declare.
5463 (redirect_edge_and_branch): Change return type to edge.
5464 (struct cfg_hooks): Add fields block_ends_with_call_p,
5465 block_ends_with_condjump_p, flow_call_edges_add,
5466 predict_edge, predicted_by_p, can_duplicate_block_p and
5467 duplicate_block.
5468 (tree_cfg_hooks, ir_type, tree_register_cfg_hooks): Declare.
5469 * cfglayout.c (cfg_layout_pool, cfg_layout_initialize_rbi): Removed.
5470 (fixup_reorder_chain): Use initialize_bb_rbi.
5471 (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Hookized.
5472 (cfg_layout_initialize): Use cfg.c rbi pool manipulation functions.
5473 (can_copy_bbs_p, copy_bbs): Use cfghooks for bb duplication.
5474 (insn_locators_initialize): Use new info about blocks.
5475 * cfglayout.h (typedef struct reorder_block_def): Moved to
5476 basic_block.h.
5477 (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Declaration
5478 removed.
5479 * cfgloop.c: Include tree.h and tree-flow.h.
5480 * cfgloop.h (create_loop_notes): Declare.
5481 * cfgloopmanip.c (create_loop_notes): New.
5482 * cfgrtl.c (cfg_layout_create_basic_block): Use initialize_bb_rbi.
5483 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Fill in can_duplicate_block_p
5484 and duplicate_block fields.
5485 (create_basic_block_structure): Don't look at
5486 RTX_INTEGRATED_P.
5487 (rtl_block_ends_with_call_p): New.
5488 (rtl_block_ends_with_condjump_p): New.
5489 (need_fake_edge_p): Moved from cfganal.c.
5490 (rtl_flow_call_edges_add): Moved from cfganal.c (flow_call_edges_add).
5491 (rtl_cfg_hooks): Add rtl_block_ends_with_call_p,
5492 rtl_block_ends_with_condjump_p, rtl_flow_call_edges_add.
5493 (cfg_layout_rtl_cfg_hooks): Ditto.
5494 * cgraph.c (cgraph_mark_reachable_node): Don't force nested
5495 functions to be reachable.
5496 * cgraphunit.c (decide_is_function_needed):
5497 * cgraphunit.c (decide_is_function_needed): Nested functions of extern
5498 inline functions don't need to be output.
5499 (cgraph_assemble_pending_functions): Don't do anything
5500 special for nested functions.
5501 (cgraph_mark_functions_to_output): Likewise.
5502 (cgraph_finalize_function): Don't zap DECL_STRUCT_FUNCTION.
5503 (cgraph_analyze_function): Use estimate_num_insns.
5504 (cgraph_mark_functions_to_output): Likewise.
5505 (cgraph_estimate_growth, cgraph_clone_inlined_nodes): Likewise.
5506 (cgraph_expand_function): Allow functions to not be
5507 emitted.
5508 (cgraph_remove_unreachable_nodes):
5509 (cgraph_recursive_inlining_p): Simplify.
5510 (lookup_recursive_calls,
5511 cgraph_decide_recursive_inlining): New.
5512 (cgraph_decide_inlining_*): Update calls of
5513 cgraph_mark_inline.
5514 * combine.c (get_pos_from_mask): Always set *plen.
5515 * common.opt (fdump-, fmudflap, fmudflapth, fmudflapir,
5516 ftree-based-profiling, ftree-ccp, ftree-ch,
5517 ftree-combine-temps, ftree-copyrename, ftree-dce,
5518 ftree-dominator-opts, ftree-dse, ftree-loop-optimize,
5519 ftree-points-to, ftree-pre, ftree-sra, ftree-ter,
5520 ftree-lrs): Add.
5521 * config.in (HAVE_LD_PIE, HAVE_BANSHEE, PREFIX_INCLUDE_DIR):
5522 Undefine.
5523 * configure.ac: Add --enable-tree-browser option.
5524 Add --with-libbanshee option.
5525 Add GMPLIBS and GMPINC.
5526 * configure: Regenerate.
5527 * coverage.c (tree_ctr_tables): New.
5528 (coverage_counter_alloc): Use it.
5529 (build_ctr_info_value): Ditto.
5530 (coverage_counter_ref): Ditto. Rename to rtl_coverage_counter_ref.
5531 (tree_coverage_counter_ref): New.
5532 * coverage.h (coverage_counter_ref): Remove declaration.
5533 (rtl_coverage_counter_ref): Declare.
5534 (tree_coverage_counter_ref): Declare.
5535 * cppexp.c (append_digit): Rearrange unsignedp/overflow setting.
5536 (eval_token, num_binary_op, num_part_mul, num_div_op): Likewise.
5537 * cse.c (fold_rtx): Do not handle CONSTANT_P_RTX.
5538 (struct cse_basic_block_data): Rename enum values to not
5539 conflict with profile.h; update all uses.
5540 * dbxout.c (dbxout_symbol_location): Don't mention integrate.c
5541 in comments.
5542 * defaults.h (TRAMPOLINE_ALIGNMENT): Move from function.c.
5543 * diagnostic.h (debug_output_buffer, dump_generic_node,
5544 print_generic_stmt, print_generic_stmt_indented,
5545 print_generic_expr, print_generic_decl,
5546 debug_generic_expr, debug_generic_stmt, debug_c_tree):
5547 Declare.
5548 * dominance.c: Cache immediate dominators.
5549 * domwalk.c: New file.
5550 * domwalk.h: New file.
5551 * dwarf2out.c (is_fortran): Support DW_LANG_Fortran95.
5552 (gen_subprogram_die): Generate a DIE for a named
5553 return value.
5554 (loc_descriptor_from_tree): Treat RESULT_DECL like VAR_DECL.
5555 (add_location_or_const_value_attribute): Likewise.
5556 (add_bound_info): Likewise.
5557 (gen_decl_die): Likewise.
5558 * emit-rtl.c (maybe_set_first_label_num): New.
5559 (copy_most_rtx): Don't copy the integrated flag.
5560 Copy the new return_val flag.
5561 * et-forest.c (MAX_NODES): Define.
5562 (record_path_before_1): Abort if len is greater than
5563 MAX_NODES.
5564 * except.c (gen_eh_region, gen_eh_region_cleanup, gen_eh_region_try,
5565 gen_eh_region_catch, gen_eh_region_allowed,
5566 gen_eh_region_must_not_throw, get_eh_region_number,
5567 get_eh_region_may_contain_throw, get_eh_region_tree_label,
5568 set_eh_region_tree_label, expand_resx_expr): New.
5569 (expand_eh_region_start, expand_start_catch): Use them.
5570 (expand_end_catch): Tidy.
5571 (note_eh_region_may_contain_throw): Take region argument.
5572 (note_current_region_may_contain_throw): New.
5573 (get_exception_filter): Export.
5574 (collect_eh_region_array): Export.
5575 (remove_unreachable_regions): Check ERT_TRY based on reachability
5576 of catches, not reachability of continue_label. Never remove
5577 ERT_MUST_NOT_THROW regions.
5578 (collect_rtl_labels_from_trees): New.
5579 (convert_from_eh_region_ranges): Use it.
5580 (connect_post_landing_pads): Handle dying cleanups.
5581 (struct reachable_info): Add callback data.
5582 (add_reachable_handler): Invoke the callback.
5583 (foreach_reachable_handler): New.
5584 (reachable_handlers): Use it.
5585 (arh_to_landing_pad, arh_to_label): New.
5586 (can_throw_internal_1): Split out from can_throw_internal.
5587 (can_throw_external_1): Similarly.
5588 * except.h: Update.
5589 * explow.c (emit_stack_save): Remove savearea mode check.
5590 (update_nonlocal_goto_save_area): New.
5591 (allocate_dynamic_stack_space): Use it.
5592 (probe_stack_range): Never emit loop notes.
5593 * expmed.c (extract_fixed_bit_field): Always propagate the
5594 target for the shift if it is a REG.
5595 * expr.c: Include tree-iterator.h
5596 (is_zeros_p): Remove.
5597 (categorize_ctor_elements_1, categorize_ctor_elements): New.
5598 (count_type_elements): New.
5599 (mostly_zeros_p): Use them.
5600 (expr_wfl_stack): Remove.
5601 (convert_move): Do nothing if to and from are the same.
5602 (emit_block_move_via_loop): Don't emit LOOP notes.
5603 (emit_move_insn): Don't handle CONSTANT_P_RTX.
5604 (emit_move_insn_1): Don't generate inline warnings.
5605 (expand_vars, expand_var): Split from ...
5606 (expand_expr_1): ... here.
5607 (expand_expr_real, expand_expr_real_1): Use new macros
5608 EXPR_LOCATION and EXPR_HAS_LOCATION.
5609 * expr.h (simplify_builtin_fputs,
5610 simplify_builtin_strcpy, simplify_builtin_strncpy,
5611 expand_var, fixup_tail_calls,
5612 update_nonlocal_goto_save_area): Declare.
5613 (lookup_static_chain, expand_inline_function,
5614 mark_seen_cases): Remove.
5615 (prepare_call_address): Change type of 2nd argument to
5616 rtx.
5617 * final.c (profile_function): Update static chain test.
5618 (final): Don't look at RTX_INTEGRATED_P.
5619 * flags.h (flag_mudflap, flag_mudflap_threads,
5620 flag_mudflap_ignore_reads, flag_tree_pre, flag_tree_ccp,
5621 flag_tree_dce, flag_tree_combine_temps,
5622 flag_tree_live_range_split, flag_tree_dom, flag_tree_ch,
5623 flag_tree_dse, flag_tree_sra, flag_tree_copyrename,
5624 flag_tree_points_to): Declare.
5625 (enum pta_type): Declare.
5626 * flow.c (lang_missing_noreturn_ok_p): Remove.
5627 (check_function_return_warnings): Remove.
5628 (update_life_info): Update comments.
5629 (free_basic_block_vars): Don't call VARRAY_FREE for
5630 basic_block_info.
5631 (regno_uninitialized): Remove.
5632 * fold-const.c (int_const_binop): Make extern.
5633 (non_lvalue): Rely on build to set TREE_CONSTANT.
5634 (operand_equal_p): Replace only_const argument with
5635 flags. Allow pure functions if OEP_PURE_SAME.
5636 (fold): Use OEP_ONLY_CONST.
5637 (invert_truthvalue) <NOP_EXPR> Break if argument is of
5638 boolean type.
5639 (fold_relational_hi_lo,
5640 nondestructive_fold_binary_to_constant,
5641 nondestructive_fold_unary_to_constant,
5642 fold_read_from_constant_string): New.
5643 * function.c (struct function): Remove calls_constant_p.
5644 (current_function_calls_constant_p): Remove.
5645 (inline_function_decl): Remove.
5646 (put_var_into_stack): Don't use it.
5647 (fix_lexical_addr): Likewise.
5648 (inline_function_decl): Remove extern declaration.
5649 (TRAMPOLINE_ALIGNMENT): Move to defaults.h.
5650 (trampolines_created): Move to varasm.c.
5651 (free_after_compilation): Update for removed fields.
5652 (allocate_struct_function): Likewise.
5653 (delete_handlers, lookup_static_chain): Remove.
5654 (fix_lexical_addr): Don't consider non-local variable refs.
5655 (trampoline_address): Remove.
5656 (round_trampoline_addr): Move to builtins.c.
5657 (adjust_trampoline_addr): Remove.
5658 (expand_function_start): Update for changes to static chain
5659 and nonlocal goto handling.
5660 (initial_trampoline): Move to varasm.c.
5661 (expand_function_end): Don't build trampolines or kill
5662 unreferenced nonlocal goto labels.
5663 (free_after_compilation): Don't set it.
5664 (expand_function_end): Likewise.
5665 (setjmp_vars_warning): Rename from
5666 uninitialized_vars_warning, remove uninitialized vars warning.
5667 (uninitialized_vars_warning): Remove old comment
5668 and check for DECL_INITIAL, replace with a check of TREE_NO_WARNING
5669 and do not call the langhook.
5670 (expand_function_start, expand_function_end): Don't do
5671 function instrumentation here.
5672 (clear_block_marks): Rename from reorder_blocks_0, export.
5673 (blocks_nreverse): Export.
5674 (uninitialized_vars_warning): Use DECL_RTL_SET_P to test for presence
5675 of rtl.
5676 (reset_block_changes, record_block_change, finalize_block_changes,
5677 check_block_change, free_block_changes): New functions.
5678 (assign_parms): Setting of current_function_stdarg
5679 moved ...
5680 (allocate_struct_function): ... here.
5681 * function.h (struct function): Remove x_nonlocal_labels,
5682 x_nonlocal_goto_handler_slots, x_nonlocal_goto_stack_level,
5683 x_context_display, x_trampoline_list, needs_context.
5684 Add static_chain_decl, nonlocal_goto_save_area.
5685 (struct function): Remove x_clobber_return_insn.
5686 Add tail_call_emit field, last_label_uid,
5687 unexpanded_var_list, dont_emit_block_notes,
5688 ib_boundaries_block, function_end_locus and saved_tree/saved_args.
5689 (clear_block_marks): Declare.
5690 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Add -fmudflapth support.
5691 (mfwrap_spec, mflib_spec): Declare.
5692 (cpp_unique_options, cc1_options): Ditto.
5693 (default_compilers): Add .F and .f90.
5694 (static_specs): Add mfwrap and mflib.
5695 * gcse.c (want_to_gcse_p, gcse_constant_p): Don't handle
5696 CONSTANT_RTX_P.
5697 (reg_used_on_edge, reg_killed_on_edge, bypass_block):
5698 Update to match insns field in struct edge_def.
5699 * gdbinit.in (pgs, pge): Define.
5700 * genattrtab.c (ATTR_PERMANENT_P): Use the return_val flag
5701 instead of the integrated flag.
5702 * gengtype-lex.l (IWOrD): Add HOST_WIDEST_INT
5703 * gengtype-yacc.y (bitfieldlen): Add empty action.
5704 (struct_fields): Accept unnamed bitfields.
5705 (bitfieldlen): Split from ...
5706 (bitfieldopt): ... here.
5707 * gengtype.c (ifiles): Add tree-alias-type.h and
5708 tree-flow.h.
5709 * genrecog.c (validate_pattern): Do not handle
5710 CONSTANT_P_RTX.
5711 * gimple-low.c: New file.
5712 * gimplify.c: New file.
5713 * haifa-sched.c (priority): Do not handle CONSTANT_P_RTX.
5714 (restore_line_notes): Do not set RTX_INTEGRATED_P.
5715 * ifcvt.c (dead_or_predicable): Initialize local variable
5716 'earliest'.
5717 * input.h (expr_wfl_stack): Remove.
5718 * integrate.c (INTEGRATE_THRESHOLD): Remove.
5719 (setup_initial_hard_reg_value_integration): Likewise.
5720 (initialize_for_inline): Likewise.
5721 (note_modified_parmregs): Likewise.
5722 (integrate_parm_decls): Likewise.
5723 (process_reg_param): Likewise.
5724 (save_parm_insns): Likewise.
5725 (copy_insn_list): Likewise.
5726 (copy_insn_notes): Likewise.
5727 (compare_blocks): Likewise.
5728 (find_block): Likewise.
5729 (inlining): Likewise.
5730 (function_cannot_inline_p): Likewise.
5731 (parmdecl_map): Likewise.
5732 (in_nonparam_insns): Likewise.
5733 (save_for_inline): Likewise.
5734 (FIXED_BASE_PLUS): Likewise.
5735 (expand_inline_function): Likewise.
5736 (copy_rtx_and_substitute): Don't look at map->integrating,
5737 map->inline_target, and inlining, since we are never copying
5738 for integrating.
5739 Don't abort on RTX_INTEGRATED_P.
5740 (old_fun): Remove.
5741 (output_inline_function): Remove.
5742 * integrate.h (struct inline_map): Remove fields integrating,
5743 block_map, leaf_reg_map, inline_target, and local_return_label.
5744 * jump.c (next_nonnote_insn_in_loop, duplicate_loop_exit_test,
5745 copy_loop_headers, never_reached_warning): Removed.
5746 (any_uncondjump_p): Reject nonlocal goto.
5747 * langhooks-def.h (lhd_types_compatible_p,
5748 lhd_expand_decl, lhd_gimplify_expr): Declare.
5749 (LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
5750 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
5751 LANG_HOOKS_FUNCTION_LEAVE_NESTED,
5752 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
5753 LANG_HOOKS_GIMPLIFY_EXPR,
5754 LANG_HOOKS_GIMPLE_BEFORE_INLINING,
5755 LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
5756 LANG_HOOKS_GIMPLIFY_EXPR,
5757 LANG_HOOKS_GIMPLE_BEFORE_INLINING): Define.
5758 (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_START,
5759 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END,
5760 LANG_HOOKS_FUNCTION_LEAVE_NESTED,
5761 LANG_HOOKS_RTL_EXPAND_INITIALIZER,
5762 LANG_HOOKS_DECL_UNINIT,
5763 LANG_HOOKS_RTL_EXPAND_INITIALIZER): Remove.
5764 * langhooks.c: Include tree-simple.h.
5765 (lhd_expand_decl): New.
5766 (lhd_types_compatible_p): New.
5767 (lhd_decl_uninit): Remove.
5768 (lhd_gimplify_expr): New.
5769 * langhooks.h (struct lang_hooks_for_rtl_expansion):
5770 Remove.
5771 (struct lang_hooks_for_functions): Add field
5772 missing_noreturn_ok_p.
5773 (struct lang_hooks): Add field expand_decl,
5774 types_compatible_p, gimplify_expr and
5775 gimple_before_inlining.
5776 Remove fields decl_uninit and rtl_expand
5777 * opts.c (decode_options): Set flag_tree_ccp,
5778 flag_tree_dce, flag_tree_dom, flag_tree_dse,
5779 flag_tree_pre, flag_tree_ter,
5780 flag_tree_live_range_split, flag_tree_sra,
5781 flag_tree_copyrename and flag_tree_ch at -O1 and higher.
5782 (common_handle_option): Handle OPT_fdump_, OPT_fmudflap,
5783 OPT_fmudflapth, OPT_fmudflapir,
5784 OPT_ftree_based_profiling, OPT_ftree_ccp, OPT_ftree_dce,
5785 OPT_ftree_combine_temps, OPT_ftree_ter, OPT_ftree_lrs,
5786 OPT_ftree_dominator_opts, OPT_ftree_copyrename,
5787 OPT_ftree_ch, OPT_ftree_dse, OPT_ftree_sra,
5788 OPT_ftree_points_to_ and OPT_ftree_pre.
5789 * output.h (regno_uninitialized, find_basic_blocks,
5790 cleanup_cfg, delete_unreachable_blocks,
5791 check_function_return_warnings): Remove.
5792 * params.def (PARAM_MAX_INLINE_INSNS_RECURSIVE,
5793 PARAM_MAX_INLINE_INSNS_RECURSIVE_AUTO,
5794 PARAM_MAX_INLINE_RECURSIVE_DEPTH,
5795 PARAM_MAX_INLINE_RECURSIVE_DEPTH_AUTO,
5796 PARAM_GLOBAL_VAR_THRESHOLD, PARAM_MAX_ALIASED_VOPS):
5797 * params.h (GLOBAL_VAR_THRESHOLD, MAX_ALIASED_VOPS):
5798 Define.
5799 * passes.c (rest_of_decl_compilation):
5800 (rest_of_handle_sibling_calls): Remove.
5801 (rest_of_handle_inlining): Remove.
5802 (rest_of_handle_gcse): Do not run
5803 purge_builtin_constant_p.
5804 (rest_of_compilation): Update.
5805 Do not call copy_loop_headers.
5806 Do rtl-based profiling only when
5807 !flag_tree_based_profiling. Register rtl-based profiling
5808 hooks.
5809 * predict.c: Include tree-flow.h, ggc.h, tree-dump.h
5810 (predicted_by_p): Rename to ...
5811 (rtl_predicted_by_p): .. this one; make global
5812 (tree_predicted_by_p): New.
5813 (dump_prediction): Add FILE argument.
5814 (predict_edge): Rename to ...
5815 (rtl_predict_edge): .. this one.
5816 (tree_predict_edge): New.
5817 (combine_predictions_for_insn): Update calls of predict_edge.
5818 (predict_loops): Break out from ...
5819 (estimate_probability): ... here; update comments; move updating
5820 of unknown probabilities from ...
5821 (estimate_bb_frequencies): ... here.
5822 (combine_predictions_for_bb): New.
5823 (tree_predict_by_opcode): New.
5824 (tree_estimate_probability): New.
5825 * predict.def (PRED_TREE_POINTER, PRED_TREE_OPCODE_POSITIVE,
5826 PRED_TREE_OPCODE_NONEQUAL, PRED_TREE_FPOPCODE): New predictors.
5827 * predict.h: Add include guard.
5828 (predict_edge, predict_edge_def): Move prototypes to basic_block.h
5829 * pretty-print.c (pp_write_text_to_stream): Make extern.
5830 * pretty-print.h (pp_write_text_to_stream): Declare.
5831 * print-rtl.c (print_rtx): Don't print the integrated flag.
5832 Print the return_val flag.
5833 * print-tree.c: Use TREE_FILENAME and TREE_LINENO instead
5834 of DECL_SOURCE_FILE and DECL_SOURCE_LINE respectively.
5835 Remove support for EXPR_WITH_FILE_LOCATION nodes.
5836 (print_node): Print TREE_INVARIANT and TREE_VISITED.
5837 * profile.c: Include cfghooks.h, tree-flow.h.
5838 (profile_hooks): New.
5839 (profile_dump_file): New.
5840 (instrument_edges): Use hooks instead of RTL-specific code.
5841 (instrument_values): Ditto.
5842 (get_exec_counts): Ditto.
5843 (compute_branch_probabilities): Ditto.
5844 (compute_value_histograms): Ditto.
5845 (branch_prob): Ditto.
5846 (find_spanning_tree): Ditto.
5847 (end_branch_prob): Ditto.
5848 (gen_edge_profiler): Move to rtl-profile.c (rtl_gen_edge_profiler).
5849 (gen_interval_profiler): Ditto (rtl_gen_interval_profiler).
5850 (gen_pow2_profiler): Ditto (rtl_gen_pow2_profiler).
5851 (gen_one_value_profiler): Ditto (rtl_gen_one_value_profiler).
5852 (tree_register_profile_hooks): New.
5853 (rtl_register_profile_hooks): New.
5854 * ra-rewrite.c (rewrite_program): Clear variable info.
5855 * recog.c (immediate_operand): Do not handle CONSTANT_P_RTX.
5856 * regs.h: Add include guards.
5857 * reload.c (decompose): Clear val using memset.
5858 * rtl.def (CONSTANT_P_RTX): Remove.
5859 * rtl.h (CONSTANT_P): Do not handle CONSTANT_P_RTX.
5860 (copy_loop_headers): Remove.
5861 (struct rtx_def): Replace the integrated flag with the
5862 return_val flag.
5863 (maybe_set_first_label_num): Declare.
5864 (init_branch_prob): Move declaration to value-prof.h.
5865 (end_branch_prob): Ditto.
5866 (branch_prob): Ditto.
5867 (never_reached_warning): Don't declare it.
5868 * rtlanal.c (get_related_value): Initialize get_jump_table_offset
5869 (hoist_insn_to_edge): Update to match field insns in
5870 struct edge_def.
5871 * sbitmap.c (sbitmap_realloc): New.
5872 * sbitmap.h (sbitmap_realloc): Declare.
5873 * sibcall.c: Remove file.
5874 * simplify-rtx.c (simplify_rtx): Do not handle
5875 CONSTANT_P_RTX.
5876 * stmt.c (parse_output_constraint): Don't warn for read-write
5877 memory operand.
5878 (tail_recursion_args): Use types_compatible_p langhook.
5879 (force_label_rtx): Don't look at inline_function_decl.
5880 (label_rtx): Set LABEL_PRESERVE_P appropriately.
5881 (expand_label): Handle DECL_NONLOCAL and FORCED_LABEL.
5882 (declare_nonlocal_label): Remove.
5883 (expand_goto): Don't handle nonlocal gotos.
5884 (expand_nl_handler_label): Remove.
5885 (expand_nl_goto_receivers): Remove.
5886 (expand_end_bindings): Don't expand_nl_goto_receivers. Use
5887 update_nonlocal_goto_save_area.
5888 (expand_expr_stmt_value): Check TREE_NO_WARNING.
5889 (warn_if_unused_value): Likewise.
5890 (expand_start_loop, expand_loop_continue_here,
5891 expand_end_loop): Don't create loop notes.
5892 (all_cases_count, BITARRAY_TEST, BITARRAY_SET,
5893 mark_seen_cases, check_for_full_enumeration_handling): Remove.
5894 (expand_end_case_type): Don't do warn_switch handling.
5895 (pushcase, pushcase_range) Update add_case_node calls.
5896 (add_case_node): Add dont_expand_label argument.
5897 (same_case_target_p): Don't search rtl.
5898 (expand_start_bindings_and_block, expand_end_bindings):
5899 Don't emit block notes when dont_emit_block_notes.
5900 (using_eh_for_cleanups_p): Export.
5901 (expand_return): Allow any typed rhs.
5902 (expand_stack_alloc): New.
5903 (expand_stack_save, expand_stack_restore): New.
5904 (containing_blocks_have_cleanups_or_stack_level): New
5905 function.
5906 (asm_op_is_mem_input): New fn.
5907 (expand_asm_expr): New fn.
5908 (warn_if_unused_value): Check operand 0 of SAVE_EXPR
5909 nodes.
5910 * stor-layout.c (layout_type): Just return if type is
5911 error_mark_node.
5912 (update_alignment_for_field): Export.
5913 (variable_size): We don't care about global_bindings_p if
5914 the frontend doesn't want a list of the expressions.
5915 * system.h: Poison INTEGRATE_THRESHOLD.
5916 * timevar.def (TV_TREE_GIMPLIFY, TV_TREE_EH, TV_TREE_CFG,
5917 TV_TREE_CLEANUP_CFG, TV_TREE_PTA, TV_TREE_MAY_ALIAS,
5918 TV_TREE_INSERT_PHI_NODES, TV_TREE_SSA_REWRITE_BLOCKS,
5919 TV_TREE_SSA_OTHER, TV_TREE_OPS,
5920 TV_TREE_SSA_DOMINATOR_OPTS, TV_TREE_SRA, TV_TREE_CCP,
5921 TV_TREE_SPLIT_EDGES, TV_TREE_PRE, TV_TREE_PHIOPT,
5922 TV_TREE_FORWPROP, TV_TREE_DCE, TV_TREE_CD_DCE,
5923 TV_TREE_DSE, TV_TREE_LOOP, TV_TREE_CH,
5924 TV_TREE_SSA_TO_NORMAL, TV_TREE_SSA_TO_NORMAL,
5925 TV_TREE_NRV, TV_TREE_COPY_RENAME, TV_TREE_SSA_VERIFY,
5926 TV_TREE_STMT_VERIFY, TV_DOM_FRONTIERS,
5927 TV_CONTROL_DEPENDENCES): Define.
5928 * toplev.c: Include tree-alias-common.h
5929 (current_file_decl, flag_mudflap, flag_mudflap_threads,
5930 flag_mudflap_ignore_reads, flag_tree_based_profiling,
5931 flag_tree_gvn, flag_tree_points_to, flag_tree_ccp,
5932 flag_tree_dce, flag_tree_ch, flag_tree_sra,
5933 flag_tree_combine_temps, flag_tree_ter,
5934 flag_tree_live_range_split, flag_tree_dom,
5935 flag_tree_copyrename, flag_tree_dse): Declare.
5936 (f_options): Add tree-based-profiling, tree-gvn,
5937 tree-pre, tree-ccp, tree-dce,
5938 tree-dominator-opts, tree-copyrename, tree-dse,
5939 tree-combine-temps, tree-ter, tree-lrs and tree-ch.
5940 (wrapup_global_declarations): Don't output nested inlined functions.
5941 (general_init): Call init_tree_optimization_passes.
5942 (process_options): Sorry for -ftree-based-profiling plus
5943 -ftest-coverage or -fprofile-values.
5944 * toplev.h (init_tree_optimization_passes,
5945 flag_tree_based_profiling): Declare.
5946 * tracer.c (tail_duplicate): Use cfghooks for bb duplication.
5947 * tree-alias-ander.c: New file.
5948 * tree-alias-ander.h: New file.
5949 * tree-alias-common.c: New file.
5950 * tree-alias-common.h: New file.
5951 * tree-alias-type.c: New file.
5952 * tree-alias-type.h: New file.
5953 * tree-browser.c: New file.
5954 * tree-browser.def: New file.
5955 * tree-cfg.c: New file.
5956 * tree-complex.c: New file.
5957 * tree-dfa.c: New file.
5958 * tree-dump.c (dump_enable_all): New.
5959 (dequeue_and_dump): Do not handle EXPR_WITH_FILE_LOCATION.
5960 (dump_node): Remove const from field suffix and swtch.
5961 (dump_files): Add null entry, .generic, .nested, .vcg,
5962 .xml and a match-all entry.
5963 (extra_dump_files, extra_dump_files_in_use,
5964 extra_dump_files_alloced): Declare
5965 (dump_option_value_info): Add raw, details, stats,
5966 blocks, vops, lineno, uid and all.
5967 (dump_register): New.
5968 (get_dump_file_info): New.
5969 (dump_begin): Call it.
5970 Do nothing for TDI_none.
5971 (dump_begin): Include phase number in dump filename.
5972 (dump_enable_all): New.
5973 (dump_switch_p_1): Split out from dump_switch_p.
5974 (dump_switch_p): Handle extra_dump_files.
5975 Start our scan at TDI_none + 1.
5976 If -fdump-tree-all was given, call dump_enable_all.
5977 * tree-dump.h: Include splay-tree.h.
5978 (dump_function, dump_function_to_file, dump_register):
5979 Declare.
5980 * tree-eh.c: New file.
5981 * tree-flow-inline.h: New file.
5982 * tree-flow.h: New file.
5983 * tree-inline.c: Re-write to handle inlining on GIMPLE.
5984 * tree-inline.h (walk_tree,
5985 walk_tree_without_duplicates): Move to tree.h.
5986 (estimate_num_insns): Declare.
5987 * tree-into-ssa.c: New file.
5988 * tree-iterator.c: New file.
5989 * tree-iterator.h: New file.
5990 * tree-mudflap.c: New file.
5991 * tree-mudflap.h: New file.
5992 * tree-nested.c: New file.
5993 * tree-nomudflap.c: New file.
5994 * tree-nrv.c: New file.
5995 * tree-optimize.c (dump_flags, vars_to_rename,
5996 in_gimple_form, all_passes, pass_gimple,
5997 pass_rebuild_bind, pass_all_optimizations, pass_del_cfg): Declare.
5998 (execute_gimple, execute_rebuild_bind,
5999 gate_all_optimizations, execute_del_cfg,
6000 register_one_dump_file, register_dump_files, dup_pass_1,
6001 init_tree_optimization_passes, execute_todo,
6002 execute_one_pass, execute_pass_list): New.
6003 (clear_decl_rtl): Remove.
6004 (tree_rest_of_compilation): Update to use tree
6005 optimizers.
6006 * tree-outof-ssa.c: New file.
6007 * tree-pass.h: New file.
6008 * tree-phinodes.c: New file.
6009 * tree-pretty-print.c: New file.
6010 * tree-profile.c: New file.
6011 * tree-simple.c: New file.
6012 * tree-simple.h: New file.
6013 * tree-sra.c: New file.
6014 * tree-ssa-alias.c: New file.
6015 * tree-ssa-ccp.c: New file.
6016 * tree-ssa-copy.c: New file.
6017 * tree-ssa-copyrename.c: New file.
6018 * tree-ssa-dce.c: New file.
6019 * tree-ssa-dom.c: New file.
6020 * tree-ssa-dse.c: New file.
6021 * tree-ssa-forwprop.c: New file.
6022 * tree-ssa-live.c: New file.
6023 * tree-ssa-live.h: New file.
6024 * tree-ssa-loop.c: New file.
6025 * tree-ssa-operands.c: New file.
6026 * tree-ssa-operands.h: New file.
6027 * tree-ssa-phiopt.c: New file.
6028 * tree-ssa-pre.c: New file.
6029 * tree-ssa.c: New file.
6030 * tree-ssanames.c: New file.
6031 * tree-tailcall.c: New file.
6032 * tree.c: Include tree-iterator.h, basic-block.h and
6033 tree-flow.h.
6034 (tree_node_kind): Add phi_nodes and ssa names.
6035 (tree_size): Handle PHI_NODE, EPHI_NODE, SSA_NAME,
6036 EUSE_NODE, EKILL_NODE, EEXIT_NODE and STATEMENT_LIST.
6037 (make_node_stat): Handle PHI_NODE and SSA_NAME.
6038 <'c'> Set TREE_INVARIANT.
6039 (copy_node_stat): Abort if trying to copy a
6040 STATEMENT_LIST.
6041 Clear TREE_VISITED.
6042 Clear annotation field.
6043 (build_constructor): Copy TREE_INVARIANT from vals.
6044 Don't clear TREE_CONSTANT.
6045 (expr_first, expr_last, expr_length): Remove.
6046 (staticp): Pass unknown component references to the language.
6047 (save_expr): Check TREE_INVARIANT instead of TREE_CONSTANT.
6048 (skip_simple_arithmetic): Likewise.
6049 (stabilize_reference_1): Likewise.
6050 (tree_node_structure): Handle PHI_NODE, EPHI_NODE,
6051 EUSE_NODE, EKILL_NODE, EEXIT_NODE, SSA_NAME and
6052 STATEMENT_LIST.
6053 (lhd_unsave_expr_now): Remove.
6054 (unsafe_for_reeval): Handle LABEL_EXPR and BIND_EXPR.
6055 (recompute_tree_invarant_for_addr_expr): New.
6056 (build1_stat): Clear EXPR_LOCUS and TREE_BLOCK.
6057 Call recompute_tree_invarant_for_addr_expr.
6058 Set TREE_INVARIANT accordingly.
6059 (build2_stat): Don't handle CALL_EXPR.
6060 (build3_stat): Don't call build2_stat for CALL_EXPRs.
6061 (build_expr_wfl): Remove.
6062 (annotate_with_file_line, annotate_with_locus): New.
6063 (simple_cst_equal): Call simple_cst_list_equal to compare
6064 CONSTRUCTOR_ELTS pointers.
6065 (iterative_hash_expr): Don't hash types associated
6066 with conversions. Instead hash on the signedness of the
6067 toplevel object and the operand of the conversion.
6068 (dump_tree_statistics): Call ssanames_print_statistics
6069 and phinodes_print_statistics.
6070 (ephi_node_elt_check_failed, phi_node_elt_check_failed,
6071 add_var_to_bind_expr, build_empty_stmt, is_essa_node,
6072 needs_to_live_in_memory): New.
6073 (initializer_zerop): Handle VECTOR_CST. Don't check
6074 AGGREGATE_TYPE_P for CONSTRUCTOR.
6075 * tree.def (FILTER_EXPR, CASE_LABEL_EXPR, RESX_EXPR,
6076 SSA_NAME, EUSE_NODE, EKILL_NODE, EPHI_NODE, EEXIT_NODE,
6077 PHI_NODE, CATCH_EXPR, EH_FILTER_EXPR, STATEMENT_LIST): Define.
6078 (GOTO_SUBROUTINE_EXPR): Change type to 's'.
6079 (CALL_EXPR): Add another operand.
6080 (EXPR_WITH_FILE_LOCATION): Remove.
6081 (SWITCH_EXPR): Add another operand.
6082 * tree.h: Update various comments.
6083 (union tree_ann_d): Forward declare.
6084 (struct tree_common): Add fields nowarning_flag,
6085 invariant_flag and visited.
6086 (EREF_NODE_CHECK, EPHI_NODE_ELT_CHECK,
6087 PHI_NODE_ELT_CHECK, EREF_NODE_CHECK, PHI_NODE_ELT_CHECK,
6088 EPHI_NODE_ELT_CHECK, TREE_BLOCK,
6089 STRIP_USELESS_TYPE_CONVERSION, CALL_EXPR_TAILCALL,
6090 TREE_NO_WARNING, FORCED_LABEL, TREE_INVARIANT,
6091 IS_EMPTY_STMT, EXPR_LOCUS, SET_EXPR_LOCUS, EXPR_FILENAME,
6092 EXPR_LINENO, EXPR_LOCATION, EXPR_HAS_LOCATION,
6093 EXIT_EXPR_COND, SWITCH_COND, SWITCH_BODY, SWITCH_LABELS,
6094 CASE_LOW, CASE_HIGH, CASE_LABEL, BIND_EXPR_VARS,
6095 BIND_EXPR_BODY, BIND_EXPR_BLOCK, GOTO_DESTINATION,
6096 ASM_STRING, ASM_OUTPUTS, ASM_INPUTS, ASM_CLOBBERS,
6097 ASM_INPUT_P, ASM_VOLATILE_P, COND_EXPR_COND,
6098 COND_EXPR_THEN, COND_EXPR_ELSE, LABEL_EXPR_LABEL,
6099 CATCH_TYPES, CATCH_BODY, EH_FILTER_TYPES,
6100 EH_FILTER_FAILURE, EH_FILTER_MUST_NOT_THROW,
6101 SSA_NAME_VAR, SSA_NAME_DEF_STMT, SSA_NAME_VERSION,
6102 SSA_NAME_OCCURS_IN_ABNORMAL_PHI, SSA_NAME_IN_FREE_LIST,
6103 PHI_RESULT, PHI_REWRITTEN, PHI_NUM_ARGS,
6104 PHI_ARG_CAPACITY, PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF,
6105 EREF_PROCESSED, EREF_ID, EREF_NAME, EREF_STMT,
6106 EREF_RELOAD, EREF_SAVE, EREF_CLASS, EREF_INJURED,
6107 EREF_TEMP, EUSE_DEF, EUSE_PHIOP, EUSE_INSERTED,
6108 EUSE_LVAL, EPHI_NUM_ARGS, EPHI_ARG_CAPACITY,
6109 EPHI_ARG_ELT, EPHI_ARG_EDGE, EPHI_ARG_PRED, EPHI_ARG_DEF,
6110 EPHI_ARG_INJURED, EPHI_ARG_DELAYED_RENAME,
6111 EPHI_ARG_HAS_REAL_USE, EPHI_ARG_STOPS,
6112 EPHI_ARG_PROCESSED2, EPHI_IDENTITY, EPHI_IDENT_INJURED,
6113 EPHI_REP_OCCUR_KNOWN, EPHI_IDENTICAL_TO, EPHI_DOWNSAFE,
6114 EPHI_CANT_BE_AVAIL, EPHI_DEAD, EPHI_USES, EPHI_STOPS,
6115 TREE_VISITED, SSA_VAR_P, DECL_NUM_STMTS,
6116 DECL_HARD_REGISTER, DECL_PTA_ALIASVAR, LABEL_DECL_UID,
6117 DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL,
6118 STATEMENT_LIST_HEAD, STATEMENT_LIST_TAIL, TDF_RAW,
6119 TDF_DETAILS, TDF_STATS, TDF_BLOCKS, TDF_VOPS, TDF_LINENO,
6120 TDF_UID,): Define.
6121 (TREE_NO_UNUSED_WARNING, EXPR_WFL_EMIT_LINE_NOTE,
6122 EXPR_WFL_NODE, EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME,
6123 EXPR_WFL_LINECOL, EXPR_WFL_LINENO, EXPR_WFL_COLNO,
6124 EXPR_WFL_SET_LINECOL): Remove.
6125 (phi_node_elt_check_failed, ephi_node_elt_check_failed,
6126 make_phi_node, init_phinodes, fini_phinodes,
6127 release_phi_node, phinodes_print_statistics,
6128 init_ssanames, fini_ssanames, make_ssa_name,
6129 release_ssa_name, ssanames_print_statistics,
6130 annotate_with_file_line, build_empty_stmt,
6131 annotate_with_locus, expr_only, categorize_ctor_elements,
6132 count_type_elements, add_var_to_bind_expr, is_essa_node,
6133 expand_stack_alloc, expand_stack_save,
6134 expand_stack_restore, add_case_node, operand_equal_p,
6135 nondestructive_fold_unary_to_constant,
6136 nondestructive_fold_binary_to_constant,
6137 fold_read_from_constant_string, int_const_binop,
6138 strip_float_extensions, simplify_builtin, c_strlen,
6139 recompute_tree_invarant_for_addr_expr,
6140 needs_to_live_in_memory, make_vector,
6141 setjmp_vars_warning, update_alignment_for_field,
6142 expand_asm_expr, asm_op_is_mem_input,
6143 containing_blocks_have_cleanups_or_stack_level,
6144 create_artificial_label, gimplify_function_tree,
6145 get_name, unshare_expr, walk_tree,
6146 walk_tree_without_duplicates, in_gimple_form): Declare.
6147 (struct tree_exp): Add fields locus and block.
6148 (struct tree_ssa_name, struct edge_def, struct
6149 tree_phi_node, struct tree_eref_common, struct
6150 tree_euse_node, struct ephi_arg_d, struct tree_ephi_node,
6151 union alias_var_def, struct tree_statement_list_node,
6152 struct tree_statement_list, enum operand_equal_flag): Declare.
6153 (enum tree_node_structure_enum): Add TS_SSA_NAME,
6154 TS_PHI_NODE, TS_EPHI_NODE, TS_EUSE_NODE, TS_EREF_NODE,
6155 TS_STATEMENT_LIST.
6156 (union tree_node): Add fields ssa_name, phi, eref, ephi,
6157 euse and stmt_list.
6158 (function_cannot_inline_p, uninitialized_vars_warning,
6159 save_for_inline, output_inline_function, all_cases_count,
6160 check_for_full_enumeration_handling,
6161 declare_nonlocal_label): Remove.
6162 (enum tree_dump_index): Add TDI_none, TDI_tu,
6163 TDI_generic, TDI_nested, TDI_vcg, TDI_xml.
6164 * unroll.c (unroll_loop): Don't clear map->inline_target.
6165 * unwind-sjlj.c (uw_install_context): Make a proper static inline
6166 function.
6167 * value-prof.c (value_prof_hooks): New.
6168 (find_values_to_profile): Rename to rtl_find_values_to_profile.
6169 Move rtl-specific bits in from branch_prob.
6170 (value_profile_transformations): Rename to
6171 rtl_value_profile_transformations.
6172 (struct value_prof_hooks): New.
6173 (rtl_value_prof_hooks): New.
6174 (rtl_register_value_prof_hooks): New.
6175 (tree_find_values_to_profile): New stub.
6176 (tree_value_profile_transformations): New stub.
6177 (tree_value_prof_hooks): New stub.
6178 (tree_register_value_prof_hooks): New stub.
6179 (find_values_to_profile): New.
6180 (value_profile_transformations): New.
6181 * value-prof.h: Add multiple inclusion guard.
6182 (struct histogram_value): Change rtx fields to void *.
6183 (rtl_register_value_prof_hooks): New declaration.
6184 (tree_register_value_prof_hooks): New declaration.
6185 (find_values_to_profile): New declaration.
6186 (free_profiled_values): New declaration.
6187 (value_profile_transformations): New declaration.
6188 (struct profile_hooks): New declaration.
6189 (init_branch_prob): Declaration moved from rtl.h.
6190 (branch_prob): Declaration moved from rtl.h.
6191 (end_branch_prob): Declaration mooved from rtl.h.
6192 (tree_register_profile_hooks): New declaration.
6193 (rtl_register_profile_hooks): New declaration.
6194 (tree_profile_hooks): New declaration.
6195 (rtl_profile_hooks): New declaration.
6196 * varasm.c: Include tree-mudflap.h.
6197 (TRAMPOLINE_ALIGNMENT): Remove.
6198 (make_decl_rtl): Call mudflap_enqueue_decl.
6199 (assemble_static_space):
6200 (assemble_trampoline_template): Set and return
6201 TRAMPOLINE_ALIGNMENT.
6202 * varray.c (element): Add GENERIC_PTR_NOGC entry.
6203 Add entry for 'tree *'.
6204 Add entry for struct edge_def *.
6205 (varray_copy): New.
6206 * varray.h (enum varray_data_enum): Add
6207 VARRAY_DATA_GENERIC_NOGC, VARRAY_DATA_EDGE and
6208 VARRAY_DATA_TREE_PTR.
6209 (union varray_data_tag): Corresponding changes.
6210 (VARRAY_GENERIC_PTR_NOGC_INIT, VARRAY_EDGE_INIT,
6211 VARRAY_TREE_PTR_INIT, VARRAY_GENERIC_PTR_NOGC,
6212 VARRAY_EDGE, VARRAY_TREE_PTR,
6213 VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_EDGE,
6214 VARRAY_PUSH_TREE_PTR, VARRAY_TOP_GENERIC_PTR_NOGC,
6215 VARRAY_TOP_EDGE, VARRAY_TOP_TREE_PTR): Define.
6216
6217 * config/*/*: Various updates for changed macros, tree
6218 codes, etc. Check ChangeLog.tree-ssa.
6219
6220 * doc/cfg.texi: New file.
6221 * doc/tree-ssa.texi: New file.
6222 * doc/c-tree.texi: Document new codes.
6223 * doc/gccint.texi: Include new files.
6224 * doc/install.texi: Document new features.
6225 * doc/invoke.texi: Document new switches.
6226 * doc/passes.texi: Document new passes.
6227 * doc/rtl.texi: Update changed RTL codes.
6228 * doc/sourcebuild.texi: Update build instructions.
6229 * doc/standards.texi: Document Fortran changes.
6230 * doc/tm.texi: Update.
6231
6232 2004-05-12 Paolo Bonzini <bonzini@gnu.org>
6233
6234 Replace several arrays with a struct of arrays.
6235 * combine.c (struct reg_stat): New.
6236 (init_reg_last_arrays): Renamed to...
6237 (init_reg_last): ...this. Callers adjusted.
6238 (reg_stat): New.
6239 (combine_instructions): Allocate it and use it.
6240 (reg_last_death, reg_last_set, reg_last_set_value,
6241 reg_last_set_label, reg_last_set_table_tick,
6242 reg_last_set_invalid, reg_nonzero_bits, reg_sign_bit_copies,
6243 reg_last_set_mode, reg_last_set_nonzero_bits,
6244 reg_last_set_sign_bit_copies): Replace throughout
6245 with items of reg_stat.
6246
6247 2004-05-11 Kaz Kojima <kkojima@gcc.gnu.org>
6248
6249 PR optimization/15100
6250 * combine.c (distribute_notes): Don't create a dangling
6251 REG_LIBCALL/REG_RETVAL note.
6252
6253 2004-05-11 Aldy Hernandez <aldyh@redhat.com>
6254
6255 * config/rs6000/spe.md (spe_evneg): Rename to negv2si2.
6256
6257 * config/rs6000/rs6000.c (bdesc_1arg): Change spe_evneg to
6258 negv2si2.
6259
6260 2004-05-11 Aldy Hernandez <aldyh@redhat.com>
6261
6262 * doc/md.texi (Standard Names): Fix typo in vec_init description.
6263
6264 2004-05-11 Geoffrey Keating <geoffk@apple.com>
6265
6266 * doc/gty.texi (GTY Options): Clarify example.
6267
6268 2004-05-11 Fariborz Jahanian <fjahanian@apple.com>
6269
6270 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
6271 Add const qualifier to altivec vector type if one is needed.
6272
6273 2004-05-11 Paul Brook <paul@codesourcery.com>
6274
6275 * flags.h (flag_short_enums): Update comment.
6276 * opts.c (decode_options): Set flag_short_enums to 2.
6277 * toplev.c (flag_short_enums): Update comment.
6278 (process_options): Call default_short_enums target hook.
6279
6280 2004-05-11 Andrew Pinski <pinskia@gcc.gnu.org>
6281
6282 PR target/14063
6283 * config/rs6000/altivec.md (altivec_dssall):
6284 Change to unspec_volatile.
6285 (altivec_dss): Likewise.
6286
6287 2004-05-10 Aldy Hernandez <aldyh@redhat.com>
6288
6289 * config/rs6000/altivec.md ("one_cmplv16qi2"): Change vnot to
6290 vnor.
6291 ("one_cmplv8hi2"): Same.
6292 ("one_cmplv4si2"): Same.
6293
6294 2004-05-10 Kaz Kojima <kkojima@gcc.gnu.org>
6295
6296 PR target/15130
6297 * config/sh/sh-protos.h (sh_expand_epilogue): Change prototype.
6298 * config/sh/sh.c (output_stack_adjust): Take the sibcall epilogue
6299 into account. Compute the correct number of general registers
6300 for the return value. Generate a special push/pop sequence when
6301 failing to get a temporary register for non SHmedia epilogue.
6302 (sh_expand_epilogue): Add an argument to show whether it's for
6303 sibcall or not. Set the 3rd argument of output_stack_adjust to
6304 -1 if needed.
6305 (sh_need_epilogue): Call sh_expand_epilogue with 0.
6306 * config/sh/sh.md (sibcall_epilogue): Call sh_expand_epilogue
6307 with 1.
6308 (epilogue): Call sh_expand_epilogue with 0.
6309
6310 2004-05-10 Andrew Pinski <pinskia@physics.uc.edu>
6311
6312 * gcse.c (eliminate_partially_redundant_loads): Instead of returning early,
6313 goto a cleanup label. After the cleanup, free the allocated memory.
6314
6315 2004-05-10 Ziemowit Laski <zlaski@apple.com>
6316
6317 * config/rs6000/altivec.h (vec_sld): Add overloads for
6318 argument/return types of 'vector bool int', 'vector bool short'
6319 and 'vector bool char'.
6320
6321 2004-05-10 Zack Weinberg <zack@codesourcery.com>
6322
6323 * c-decl.c (store_parm_decls_newstyle): Correct test for a
6324 nested function.
6325
6326 2004-05-10 Richard Sandiford <rsandifo@redhat.com>
6327
6328 * read-rtl.c (read_rtx): Allow 's' and 'T' strings to be omitted,
6329 treating missing ones as "".
6330 * config/mips/mips.md: Remove constraints from match_operands and
6331 match_scratches if they appear in define_expands (except reload*),
6332 define_peephole2s, define_splits or attribute specifications.
6333 * config/mips/7000.md, config/mips/sb1.md: Remove match_operand
6334 constraint strings.
6335
6336 2004-05-10 Alan Modra <amodra@bigpond.net.au>
6337
6338 * config/rs6000/rs6000.c (function_arg_boundary): Always align
6339 AltiVec vectors.
6340 (function_arg_advance): Pass TARGET_32BIT -mabi=no-altivec AltiVec
6341 vectors by refererence. Align the same for TARGET_64BIT to a 16
6342 byte boundary. Remove useless code. Add function comment.
6343 (function_arg): Similarly. Move gpr rs6000_mixed_function_arg
6344 call to where it belongs.
6345 (function_arg_partial_nregs): Return true for all TARGET_32BIT
6346 -mabi=no-altivec AltiVec vectors. Fix debug output.
6347 (rs6000_va_arg): Adjust for AltiVec change.
6348
6349 2004-05-10 Paul Brook <paul@codesourcery.com>
6350
6351 * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
6352 * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
6353 (TARGET_DOUBLEWORD_ALIGN): Use it.
6354 (WCHAR_TYPE): Define.
6355 (WCHAR_SIZE_TYPE): Define.
6356 (SIZE_TYPE): Define.
6357
6358 2004-05-10 Alan Modra <amodra@bigpond.net.au>
6359
6360 * config/rs6000/rs6000.c (function_arg_boundary): Align for ABI_V4
6361 when size is 8 bytes.
6362 (function_arg_advance): Account for stack space used by AltiVec
6363 args when -mabi=altivec. Simplify alignment calculations. For
6364 ABI_V4, pass AltiVec vectors by reference when -mabi=no-altivec.
6365 (function_arg): Similarly.
6366 (function_arg_pass_by_reference): True for ABI_V4 AltiVec when
6367 not AltiVec ABI.
6368 (rs6000_va_arg): Correct fp arg test. Adjust for AltiVec change.
6369 Correct alignment, and align before testing reg count. Remove
6370 TREE_THIS_VOLATILE from reg. Don't emit unused labels.
6371 (rs6000_complex_function_value): Check TARGET_HARD_FLOAT and
6372 TARGET_FPRS here..
6373 (rs6000_function_value): .. not here before call.
6374
6375 2004-05-09 Aldy Hernandez <aldyh@redhat.com>
6376
6377 * config/rs6000/spe.md ("tstsflt_gpr"): Fix typo in unspec.
6378
6379 2004-05-09 Zack Weinberg <zack@codesourcery.com>
6380
6381 PR 15007
6382 * c-decl.c (current_file_decl): Rename to all_translation_units,
6383 adjust comment.
6384 (pop_scope): If popping file_scope, construct a
6385 TRANSLATION_UNIT_DECL and make it the context of all the
6386 symbols in the scope.
6387 (push_file_scope): Don't construct a TRANSLATION_UNIT_DECL here.
6388 (pushdecl): Clarify comment. Do not set DECL_CONTEXT of
6389 anything to current_file_decl.
6390 (pushdecl_top_level): Likewise.
6391 (store_parm_decls_newstyle): Adjust check for nested function.
6392 (c_write_global_declarations): Update for renamed variable.
6393
6394 2004-05-09 Aldy Hernandez <aldyh@redhat.com>
6395
6396 * config/rs6000/rs6000-protos.h
6397 (rs6000_conditional_register_usage): Protoize.
6398
6399 * config/rs6000/rs6000.c (rs6000_conditional_register_usage): New.
6400
6401 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Call
6402 function.
6403
6404 2004-05-08 Roger Sayle <roger@eyesopen.com>
6405
6406 * fold-const.c (fold_div_compare): New function to optimize X/C1 op C2
6407 where op is a comparison operator and C1 and C2 are integer constants
6408 into a range check.
6409 (fold): Call fold_div_compare.
6410
6411 2004-05-08 Eric Botcazou <ebotcazou@libertysurf.fr>
6412
6413 * doc/install.texi (sparc-sun-solaris2*): Document bootstrap
6414 problems with earlier versions of the GNU compiler.
6415
6416 2004-05-07 Aldy Hernandez <aldyh@redhat.com>
6417
6418 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_mode_ok_p):
6419 Declare.
6420
6421 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok_p): New.
6422 (rs6000_hard_regno_mode_ok): New.
6423 (rs6000_init_hard_regno_mode_ok): New.
6424 (rs6000_override_options): Call rs6000_init_hard_regno_mode_ok.
6425
6426 * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Use precomputed
6427 result.
6428
6429 2004-05-07 Ziemowit Laski <zlaski@apple.com>
6430
6431 * config/rs6000/altivec.h (vector, pixel, bool): Do not
6432 define as macros #ifdef __APPLE_ALTIVEC__.
6433
6434 2004-05-07 Fariborz Jahanian <fjahanian@apple.com>
6435
6436 * config/rs6000/rs6000.c (rs6000_mixed_function_arg):
6437 Generate appropriate parallels for vector arguments
6438 passed to vararg functions. (function_arg): make the call
6439 to rs6000_mixed_function_arg for vector args as needed.
6440
6441 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
6442
6443 * config/mips/mips.c (mips_va_arg): Fix calculation of osize for
6444 EABI_FLOAT_VARARGS_P.
6445
6446 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
6447
6448 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY): Remove TARGET_MIPS5500.
6449 * config/mips/mips.c (override_options): Disable branch likely
6450 instructions if TUNE_MIPS5500.
6451
6452 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
6453
6454 * config/mips/mips.c (override_options): Allow the hi and lo registers
6455 to store any integral mode, not just MODE_INTs.
6456
6457 2004-05-07 Paul Brook <paul@codesourcery.com>
6458
6459 * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
6460 * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
6461 (TARGET_DOUBLEWORD_ALIGN): Use it.
6462 (WCHAR_TYPE): Define.
6463 (WCHAR_SIZE_TYPE): Define.
6464 (SIZE_TYPE): Define.
6465
6466 2004-05-07 Uros Bizjak <uros@kss-loka.si>
6467
6468 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Use
6469 testb $4, %ah insn instead of sahf insn if !TARGET_USE_SAHF.
6470
6471 2004-05-07 Andrew Pinski <pinskia@physics.uc.edu>
6472
6473 * loop-doloop.c (doloop_valid_p): Make sure that body
6474 gets freed.
6475
6476 2004-05-07 Eric Botcazou <ebotcazou@act-europe.fr>
6477
6478 * config/sparc/sparc-protos.h (sparc_skip_caller_unimp): New
6479 declaration.
6480 * config/sparc/sparc.c (SKIP_CALLERS_UNIMP_P): Delete.
6481 (sparc_skip_caller_unimp): New global variable.
6482 (sparc_function_epilogue): Set 'sparc_skip_caller_unimp'.
6483 Use it instead of SKIP_CALLERS_UNIMP_P.
6484 * config/sparc/sparc.md (call expander): Add sanity check.
6485 (call_address_struct_value_sp32): Re-sync with expander.
6486 (call_symbolic_struct_value_sp32): Likewise.
6487 (return peepholes): Use 'sparc_skip_caller_unimp' instead
6488 of custom predicate.
6489
6490 2004-05-07 Eric Botcazou <ebotcazou@libertysurf.fr>
6491
6492 PR c++/14962
6493 * c-pragma.c (handle_pragma_redefine_extname): Only change
6494 the assembler name of FUNCTION_DECLs and VAR_DECLs.
6495
6496 2004-05-07 Uros Bizjak <uros@kss-loka.si>
6497
6498 * optabs.h (enum optab_index): Add new OTI_log1p.
6499 (log1p_optab): Define corresponding macro.
6500 * optabs.c (init_optabs): Initialize log1p_optab.
6501 * genopinit.c (optabs): Implement log1p_optab using log1p?f2
6502 patterns.
6503 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG1P{,F,L}
6504 using log1p_optab.
6505 (expand_builtin): Expand BUILT_IN_LOG1P{,F,L} using
6506 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
6507
6508 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2XP1.
6509
6510 * config/i386/i386.c (ix86_emit_i387_log1p): New function.
6511 * config/i386/i386-protos.h (ix86_emit_i387_log1p):
6512 Prototype here.
6513 * config/i386/i386.md (UNSPEC_FYL2XP1): New unspec to represent
6514 x87's fyl2xp1 instruction.
6515 (*fyl2x_xf3): Rename insn definition to fyl2x_xf3.
6516 (fyl2xp1_xf3): New pattern to implement fyl2xp1 x87 instruction.
6517 (log1psf2, log1pdf2, log1pxf2): New expanders to implement log1pf,
6518 log1p and log1pl built-ins as inline x87 intrinsics.
6519
6520 2004-05-07 Loren James Rittle <ljrittle@acm.org>
6521
6522 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Proper redefinition.
6523 * config/arm/freebsd.h: Likewise.
6524 * config/ia64/freebsd.h: Likewise.
6525 * config/sparc/freebsd.h: Likewise.
6526
6527 2004-05-07 Hans-Peter Nilsson <hp@axis.com>
6528
6529 PR optimization/15296
6530 * reorg.c (fill_simple_delay_slots): Use next_real_insn when
6531 getting last consecutive label at a branch.
6532 (relax_delay_slots): Similar, near top of loop.
6533
6534 2004-05-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6535
6536 PR target/15202
6537 * pa.md (movdi, movsi, movhi, movqi): Support move from shift amount
6538 register to general register.
6539
6540 2004-05-07 Alan Modra <amodra@bigpond.net.au>
6541
6542 * config/rs6000/rs6000.h (STACK_BOUNDARY): Use 128 bit for either
6543 TARGET_ALTIVEC or TARGET_ALTIVEC_ABI.
6544 * config/rs6000/sysv4.h (ABI_STACK_BOUNDARY): Likewise.
6545 (STACK_BOUNDARY): Delete.
6546
6547 2004-05-06 Stuart Hastings <stuart@apple.com>
6548
6549 * gcc/doc/invoke.texi: Restore -fgcse-after-reload doc from 1.421,
6550 mistakenly clobbered by 1.423.
6551
6552 2004-05-06 Richard Sandiford <rsandifo@redhat.com>
6553
6554 * doc/invoke.texi: Document -mvr4130-align.
6555 * config/mips/mips.h (MASK_VR4130_ALIGN, TARGET_VR4130_ALIGN)
6556 (TUNE_MIPS4120, TUNE_MIPS4130): New macros.
6557 (TUNE_MACC_CHAINS): Include TUNE_MIPS4120 and TUNE_MIPS4130.
6558 (TARGET_SWITCHES): Add -mvr4130-align and -mno-vr4130-align.
6559 * config/mips/mips.md: Include sched-int.h.
6560 (USEFUL_INSN_P, SEQ_BEGIN, SEQ_END, FOR_EACH_SUBINSN): New macros.
6561 (mips_rtx_costs): Set integer multiplication costs for TUNE_MIPS4130.
6562 (override_options): Enable -mvr4130-align at -O3 and above.
6563 (mips_sim_insn): New variable.
6564 (mips_sim): New structure.
6565 (mips_sim_reset, mips_sim_init, mips_sim_next_cycle, mips_sim_wait_reg)
6566 (mips_sim_wait_regs_2, mips_sim_wait_regs_1, mips_sim_wait_regs)
6567 (mips_sim_wait_units, mips_sim_wait_insn, mips_sim_record_set)
6568 (mips_sim_issue_insn, mips_sim_issue_nop, mips_sim_finish_insn)
6569 (vr4130_avoid_branch_rt_conflict, vr4130_align_insns): New functions.
6570 (mips_reorg): Call vr4130_align_insns.
6571 (vr4130_last_insn): New variable.
6572 (vr4130_true_reg_dependence_p_1, vr4130_true_reg_dependence_p)
6573 (vr4130_swap_insns_p, vr4130_reorder): New functions.
6574 (mips_sched_reorder, mips_variable_issue): Hook in vr4130 code.
6575 (mips_issue_rate): Return 2 for PROCESSOR_R4130.
6576 (mips_use_dfa_pipeline_interface): Return true for the same.
6577 * config/mips/4130.md: New file.
6578 * config/mips/mips.md: Include it. Add a peephole2 to convert
6579 "mult;mflo" into "mtlo;macc".
6580 (*macc, *umul_acc_di, *smul_acc_di): Use $1 rather than $0 as the
6581 target of maccs.
6582 (*msac_using_macc): New pattern.
6583
6584 2004-05-06 Richard Sandiford <rsandifo@redhat.com>
6585
6586 * config/mips/5500.md (ir_vr55_store): Set latency to 0.
6587 (ir_vr55_hilo): Split into...
6588 (ir_vr55_mfhilo, ir_vr55_mthilo): ...these new reservations.
6589 (ir_vr55_imul_si, ir_vr55_imadd): Change latency to 5.
6590 (ir_vr55_imul_di): Change latency to 9. Reserve vr55_mac for 4 cycles.
6591 Add various multiplication bypasses.
6592 * config/mips/mips.c (mips_rtx_costs): Adjust VR5500 costs for integer
6593 multiplication.
6594
6595 2004-05-06 Uros Bizjak <uros@kss-loka.si>
6596
6597 * config/i386/i386.md (*fscalexf4): Correct insn "mode"
6598 attribute to "XF".
6599
6600 2004-05-05 Uros Bizjak <uros@kss-loka.si>
6601
6602 * optabs.h (enum optab_index): Add new OTI_fmod and OTI_drem.
6603 (fmod_optab, drem_optab): Define corresponding macros.
6604 * optabs.c (init_optabs): Initialize fmod_optab and drem_optab.
6605 * genopinit.c (optabs): Implement fmod_optab and drem_optab
6606 using fmod?f3 and drem?f3 patterns.
6607 * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_FMOD{,F,L}
6608 using fmod_optab and BUILT_IN_DREM{,F,L} using drem_optab.
6609 (expand_builtin): Expand BUILT_IN_FMOD{,F,L} and
6610 BUILT_IN_DREM{,F,L} using expand_builtin_mathfn_2 if
6611 flag_unsafe_math_optimizations is set.
6612
6613 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FPREM_F,
6614 UNSPEC_FPREM_U, UNSPEC_FPREM1_F and UNSPEC_FPREM1_U.
6615
6616 * config/i386/i386.c (ix86_emit_fp_unordered_jump): New function.
6617 * config/i386/i386-protos.h (ix86_emit_fp_unordered_jump):
6618 Prototype here.
6619 * config/i386/i386.md (UNSPEC_FPREM_F, UNSPEC_FPREM_U,
6620 UNSPEC_FPREM1_F, UNSPEC_FPREM1_U): New unspecs to represent x87's
6621 fprem and fprem1 instructions.
6622 (*x86_fnstsw_1): Change input parameter to (reg:CCFP 18).
6623 Rename insn definition to x86_fnstsw_1.
6624 (fpremxf4, fprem1xf4): New patterns to implement fprem and fprem1
6625 x87 instructions.
6626 (fmodsf3, fmoddf3, fmodxf3): New expanders to implement fmodf, fmod
6627 and fmodl built-ins as inline x87 intrinsics.
6628 (dremsf3, dremdf3, dremxf3): New expanders to implement dremf, drem
6629 and dreml built-ins as inline x87 intrinsics.
6630
6631 2004-05-05 Roger Sayle <roger@eyesopen.com>
6632
6633 * reload1.c (inherit_piecemeal_p): Mark parameters potentially unused.
6634
6635 2004-05-05 Ian Lance Taylor <ian@wasabisystems.com>
6636
6637 PR driver/9822
6638 * doc/invoke.texi (Spec Files): Remove documentation of %c.
6639
6640 2004-05-05 Chris Demetriou <cgd@broadcom.com>
6641
6642 * config/mips/mips.md: Update the msub define_split for new mflo/mfhi
6643 representation.
6644
6645 2004-05-06 Paul Brook <paul@codesourcery.com>
6646
6647 * config/arm/arm-protots.h (vfp_mem_operand): Rename ...
6648 (arm_coproc_mem_operand): ... To this.
6649 * config/arm/arm.c (arm_legitimate_address_p): Allow ldrd modes.
6650 (arm_legitimate_index_p): Ditto.
6651 (vfp_mem_operand): Rename ...
6652 (arm_coproc_mem_operand): ... To this. Handle writeback modes.
6653 (vfp_secondary_reload_class): Use it.
6654 (output_move_double): Use doubleword load/store instructions.
6655 (arm_hard_regno_mode_ok): Only allow even reg pairs for ldrd.
6656 * config/arm/arm.h (TARGET_LDRD): Define.
6657 (EXTRA_CONSTRAINT_STR_ARM): Add 'Uy'.
6658 * config/gcc/arm/arm.md (arm_movdi): Allow all valid memory operands.
6659 New splitter for invalid doubleword loads.
6660 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Use Uy constraint.
6661 * config/arm/vfp.md (arm_movdi_vfp): Allow all valid memory operands.
6662 * doc/md.texi: Document Uy constraint.
6663
6664 2004-05-05 Jan Hubicka <jh@suse.cz>
6665
6666 PR opt/14980
6667 * cgraphunit.c (cgraph_remove_unreachable_nodes): Deal properly with
6668 inline clones.
6669
6670 2004-05-05 H.J. Lu <hongjiu.lu@intel.com>
6671
6672 PR target/15290
6673 * config/i386/i386.c (ix86_split_to_parts): Use real_to_target
6674 instead of REAL_VALUE_TO_TARGET_LONG_DOUBLE.
6675
6676 2004-05-05 Mike Stump <mrs@apple.com>
6677
6678 * config/darwin-c.c (add_framework): Copy the directory name as it
6679 can be freed later. Also, ensure we always allocate enough room
6680 for the cached framework information.
6681 (find_subframework_header): Keep track of the directory where the
6682 subframework header was found.
6683 (framework_construct_pathname): Speed up by not trying to re-add a
6684 framework.
6685 * cppfiles.c (search_path_exhausted): Arrange for the missing
6686 header callback to be able to set the directory where the header
6687 was found.
6688 (cpp_get_dir): Add.
6689 * cpplib.h (missing_header_cb): Add a parameter.
6690 (cpp_get_dir): Add.
6691
6692 2004-05-03 Mike Stump <mrs@apple.com>
6693
6694 * doc/invoke.texi (Directory Options): Document -iquote.
6695 * doc/cpp.texi: Likewise.
6696 * doc/cppopts.texi: Likewise.
6697 * c-opts.c (c_common_missing_argument): Add -iquote processing.
6698 (c_common_handle_option): Likewise.
6699 * c.opt (iquote): Add.
6700 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -iquote.
6701 * c-incpath.c (merge_include_chains): Update comment to use -iquote.
6702
6703 * c-opts.c (case OPT_I): Deprecate -I- support.
6704 * doc/invoke.texi: Likewise.
6705 * doc/cpp.texi: Likewise.
6706 * doc/cppopts.texi: Likewise.
6707
6708 2004-05-05 Steven Bosscher <stevenb@suse.de>
6709
6710 * basic-block.h (free_basic_block_vars): Update prototype.
6711 * flow.c (free_basic_block_vars): Remove the keep_head_end_p
6712 argument.
6713 (life_analysis): Update call.
6714 * ifcvt.c (if_convert): Likewise.
6715 * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
6716 * passes.c (rest_of_handle_final): Likewise.
6717 (rest_of_compilation): Likewise.
6718 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
6719
6720 * emit-rtl.c (next_real_insn): Use INSN_P.
6721 (prev_real_insn): Likewise.
6722
6723 2004-05-05 Eric Christopher <echristo@redhat.com>
6724
6725 * config/mips/mips.md: Update the madd define_split for new mflo/mfhi
6726 representation.
6727
6728 2004-05-05 Paolo Bonzini <bonzini@gnu.org>
6729
6730 * config/rs6000/rs6000.c (build_opaque_vector_type):
6731 New function.
6732 (rs6000_init_builtins): Use it.
6733
6734 2004-05-04 Bernard Giroud <bgiroud2@free.fr>
6735
6736 * gcc/gcc/vmsdbgout.c (vms_func_node, vms_func_ref): New.
6737 (func_table): Change type from char ** to vms_func_ref.
6738 (write_rtnbeg): Update to reflect func_table change. Use
6739 fde->funcdef_number instead of rtnnum in output.
6740 (write_rtnend, vmxdbgout_begin_function, vmsdbgout_init): Likewise.
6741
6742 2004-05-04 Paolo Bonzini <bonzini@gnu.org>
6743 Richard Henderson <rth@redhat.com>
6744
6745 PR target/14899
6746
6747 * c-common.c (vector_types_convertible_p): New function.
6748 * c-typeck.c (comptypes): Recurse on vector types.
6749 (convert_for_assignment): Use vector_types_convertible_p.
6750 (digest_init): Use vector_types_convertible_p to check
6751 validness of constant vector initializers; otherwise treat
6752 them as scalars.
6753 * tree.c (make_or_reuse_type): New.
6754 (build_common_tree_nodes): Use it.
6755 * cp/call.c (standard_conversion): Likewise.
6756 * cp/typeck.c (comptypes): Recurse on vector types.
6757 (convert_for_assignment): Use vector_types_convertible_p.
6758
6759 2004-05-04 Chris Demetriou <cgd@broadcom.com>
6760
6761 * config/mips/mips.c (override_options): Default to no
6762 generation of branch-likely operations when tuning for
6763 CPUs where they tend to have a negative performance impact
6764 (e.g., SB-1).
6765
6766 2004-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6767
6768 * expr.c (store_constructor_field): Don't call store_constructor
6769 if bitsize is not a multiple of a byte.
6770
6771 2004-05-04 Richard Sandiford <rsandifo@redhat.com>
6772
6773 * reload1.c (inherit_piecemeal_p): New function.
6774 (emit_reload_insns): When reloading a group of hard registers, use
6775 inherit_piecemeal_p to decide whether the values of individual hard
6776 registers can be inherited.
6777
6778 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
6779
6780 * config/ia64/t-ia64 (LIB2ADDEH): Remove gthr-gnat.c.
6781 * config/s390/t-tpf (LIB2ADDEHDEP): Likewise.
6782 * config/t-linux (LIB2ADDEHDEP): Likewise.
6783
6784 2004-05-04 Paul Brook <paul@codesourcery.com>
6785
6786 * config/arm/crti.asm: Push an even number of registers.
6787 * config/arm/crtn.asm: And restore them. Load via sp.
6788
6789 2004-05-04 Paolo Bonzini <bonzini@gnu.org>
6790
6791 * ggc-zone.c (ggc_alloc_zone_1): Add MEM_STAT_DECL parameter.
6792 Collect overhead information.
6793 (ggc_alloc_stat): New name of ggc_alloc. Add MEM_STAT_DECL
6794 parameter and pass it through.
6795 (ggc_alloc_typed_stat): New name of ggc_alloc_typed. Add
6796 MEM_STAT_DECL parameter and pass it through.
6797 (ggc_alloc_zone_stat): New name of ggc_alloc_zone. Add
6798 MEM_STAT_DECL parameter and pass it through.
6799
6800 2004-05-03 Aldy Hernandez <aldyh@redhat.com>
6801
6802 * config/rs6000/rs6000-protos.h: Protoize rs6000_hard_regno_nregs.
6803
6804 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): New.
6805
6806 * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Call
6807 rs6000_hard_regno_nregs.
6808
6809 2004-05-03 Eric Christopher <echristo@redhat.com>
6810
6811 * config/s390/s390.c (s390_emit_prologue): Call unspec tpf
6812 prologue insn instead of setting up call.
6813 (s390_emit_epilogue): Ditto.
6814 * config/s390/s390.md (prologue_tpf, epilogue_tpf): New patterns.
6815 (define_constants): Add numbers for above patterns.
6816
6817 2004-05-03 Eric Christopher <echristo@redhat.com>
6818
6819 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Move body...
6820 * config/s390/s390.c (s390_conditional_register_usage): ...here.
6821 * config/s390/s390-protos.h: Prototype.
6822
6823 2004-05-03 Joe Buck <jbuck@welsh-buck.org>
6824
6825 * cppfiles.c (pchf_adder): Eliminate use of |= in d->have_once_only
6826 assignment.
6827
6828 2004-05-03 Eric Christopher <echristo@redhat.com>
6829
6830 * config/mips/mips.md: Fix branch length attribute definition.
6831
6832 2004-05-03 Aldy Hernandez <aldyh@redhat.com>
6833
6834 * config.gcc: Remove --enable-altivec support.
6835
6836 * config/rs6000/altivec-defs.h: Remove.
6837
6838 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6839
6840 * fixinc/inclhack.def (svr4_profil): Don't apply on IRIX 5/6.
6841 * fixinc/fixincl.x: Regenerate.
6842
6843 2004-05-03 Uros Bizjak <uros@kss-loka.si>
6844
6845 * config/i386/i386.md (*fyl2x_sfxf3, *fyl2x_dfxf3): Remove insn
6846 definition.
6847 (log?f2, log10?f2, log2?f2): Reimplement expanders with
6848 float_truncate insn.
6849 (*fxtractsf3, *fxtractdf3): Remove insn definition.
6850 (logb?f2): Reimplement expanders with float_truncate insn.
6851
6852 2004-05-03 Graham Stott <graham.stott@btinternet.com>
6853
6854 PR 14718
6855 * dwarf2out.c (dwarf2out_imported_module_or_decl): Use
6856 force_type_die for CONST_DECL.
6857
6858 2004-05-03 Eric Botcazou <ebotcazou@libertysurf.fr>
6859 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6860
6861 * config.gcc (sparc64-*-solaris2*, sparcv9-*-solaris2*): Add
6862 tm-dwarf2.h to tm_file.
6863 (sparc-*-solaris2*): Add tm-dwarf2.h to tm_file for Solaris 7+.
6864 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Delete.
6865 (ASM_DEBUG_SPEC): Delete.
6866
6867 2004-05-03 Uros Bizjak <uros@kss-loka.si>
6868
6869 * optabs.h (enum optab_index): Add new OTI_expm1.
6870 (expm1_optab): Define corresponding macro.
6871 * optabs.c (init_optabs): Initialize expm1_optab.
6872 * genopinit.c (optabs): Implement expm1_optab using expm1?f2
6873 patterns.
6874 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXPM1{,F,L}
6875 using expm1_optab.
6876 (expand_builtin): Expand BUILT_IN_EXPM1{,F,L} using
6877 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
6878
6879 * config/i386/i386.md (expm1df2, expm1sf2, expm1xf2): New expanders
6880 to implement expm1, expm1f and expm1l built-ins as inline x87
6881 intrinsics.
6882
6883 2004-05-02 Alexandre Oliva <aoliva@redhat.com>
6884
6885 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
6886 * config/frv/frv.md (*return_true, *return_false): New patterns.
6887
6888 2004-05-02 Kazu Hirata <kazu@cs.umass.edu>
6889
6890 * rtl.h (PHI_NODE_P): Remove.
6891
6892 2004-05-02 Eric Botcazou <ebotcazou@act-europe.fr>
6893
6894 PR middle-end/14988
6895 * function.c (assign_stack_local_1): Use BITS_PER_UNIT alignment
6896 when passed -2 as 'align'.
6897 (put_var_into_stack): Use 'bool' as the type for the three local
6898 predicates. Adjust calls to put_reg_into_stack.
6899 When passed a CONCAT, instruct put_reg_into_stack to use
6900 a consecutive stack slot for the second part.
6901 (put_reg_into_stack): Remove 'promoted_mode' parameter, add
6902 'consecutive_p' parameter. Turn the three predicates into 'bool'
6903 parameters. Retrieve the register mode from 'reg'.
6904 When consecutive_p is true, instruct assign_stack_local_1 to use
6905 BITS_PER_UNIT alignment.
6906 (put_addressof_into_stack): Use 'bool' as the type for the two
6907 local predicates. Adjust call to put_reg_into_stack.
6908
6909 2004-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6910
6911 * fold-const.c (fold_convert_const, fold): Add missing
6912 FIX_ROUND_EXPR case.
6913
6914 2004-05-02 Alexandre Oliva <aoliva@redhat.com>
6915
6916 * configure.ac (FLEX, BISON): Only use tools from the build tree
6917 if build equals host.
6918 * configure: Rebuilt.
6919
6920 * config/frv/frv-protos.h (frv_expand_epilogue,
6921 frv_expand_fdpic_call): Add bool argument.
6922 * config/frv/frv.c (frv_function_ok_for_sibcall): New.
6923 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to it.
6924 (frv_expand_epilogue): Use new argument to decide whether to emit
6925 return instruction or copy the return address to LR.
6926 (frv_expand_fdpic_call): Inline PLT entry when emitting direct
6927 sibcalls.
6928 (sibcall_operand): New.
6929 * config/frv/frv.h (PREDICATE_CODES): call_operand doesn't match
6930 PLUS nor LABEL_REF. Add sibcall_operand.
6931 * config/frv/frv.md (call, call_value): Pass false to
6932 frv_expand_fdpic_call.
6933 (call_fdpicdi, call_value_fdpicdi): Insert %i0 in calll.
6934 (sibcall, sibcall_internal, sibcall_fdpicdi, sibcall_value,
6935 sibcall_value_internal, sibcall_value_fdpicdi): New.
6936 (return_unsigned_true, return_unsigned_false): New.
6937 (epilogue): Adjust call to frv_expand_epilogue.
6938 (sibcall_epilogue): New.
6939
6940 * config/frv/frv.h (ASM_SPEC): Pass -mno-fdpic as -mnopic.
6941 (CPP_SPEC, CPP_SIMPLE_SPEC): Undefine __FRV_ACC__ and __FRV_FPR__
6942 before redefining them.
6943
6944 2004-05-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6945
6946 * builtins.c (fold_fixed_mathfn): New function.
6947 (fold_builtin_lround, fold_builtin): Use it.
6948
6949 2004-05-01 Jakub Jelinek <jakub@redhat.com>
6950
6951 * config/sparc/linux64.h (TARGET_DEFAULT): Make 64-bit by default
6952 also for TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc3.
6953
6954 2004-05-01 Kazu Hirata <kazu@cs.umass.edu>
6955
6956 * config/cris/cris.h: Revert my "fix comment typos" patch.
6957
6958 2004-05-01 Richard Sandiford <rsandifo@redhat.com>
6959
6960 * config/mips/mips.h (TUNE_MACC_CHAINS): Fix comment.
6961
6962 2004-05-01 Falk Hueffner <falk@debian.org>
6963
6964 * config/alpha/alpha.md (builtin_insbl, builtin_inswl,
6965 builtin_insll): Disallow 0 as first input operand.
6966
6967 2004-05-01 Falk Hueffner <falk@debian.org>
6968
6969 * config/alpha/alpha.c (alpha_rtx_costs): Fix shiftadd costs.
6970
6971 2004-05-01 Ulrich Weigand <uweigand@de.ibm.com>
6972
6973 PR middle-end/15054
6974 * expr.c (expand_expr_real): Do not call preserve_temp_slots
6975 on a TARGET_EXPR temp.
6976 * function.c (assign_stack_temp_for_type): Set 'keep' flag for
6977 TARGET_EXPR temp slots.
6978
6979 2004-05-01 Paolo Bonzini <bonzini@gnu.org>
6980
6981 * simplify-rtx.c (simplify_ternary_operation): When
6982 converting an IF_THEN_ELSE to a relational op, return
6983 correct mode.
6984
6985 2004-04-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6986
6987 * builtins.c (fold_builtin_round): Fix comment typo.
6988 (fold_builtin_lround): New function.
6989 (fold_builtin): Use it.
6990
6991 2004-04-20 Andrew Pinski <pinskia@physics.uc.edu>
6992
6993 PR target/11608
6994 * config/sh/elf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Update and make it
6995 more like the one in config/dbxelf.h.
6996
6997 2004-04-30 Zack Weinberg <zack@codesourcery.com>
6998
6999 * tree.h (SET_ARRAY_OR_VECTOR_CHECK): Rename to SET_OR_ARRAY_CHECK
7000 and adjust definition accordingly.
7001 (TYPE_DOMAIN): Allow only SET_TYPE and ARRAY_TYPE.
7002 (TYPE_DEBUG_REPRESENTATION_TYPE): Allow only VECTOR_TYPE.
7003 * expr.c (store_constructor): Do not access TYPE_DOMAIN of a
7004 VECTOR_TYPE.
7005
7006 2004-04-30 Jason Merrill <jason@redhat.com>
7007
7008 PR c++/14587
7009 * config/i386/winnt.c (associated_type): Look for attributes on
7010 the TYPE_MAIN_VARIANT of *this.
7011 * attribs.c (decl_attributes): If ATTR_FLAG_TYPE_IN_PLACE, also
7012 apply the attributes to the variants.
7013
7014 2004-04-30 Paul Brook <paul@codesourcery.com>
7015
7016 * config.gcc: Simplify arm --with-{cpu,tune} test.
7017 * config/arm/arm-cores.def: Document whitespace restrictions.
7018
7019 2004-04-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7020
7021 PR other/1963
7022 * config/alpha/osf.h (SWITCHES_NEED_SPACES): Define.
7023
7024 2004-04-30 Brian Ford <ford@vss.fsi.com>
7025 DJ Delorie <dj@redhat.com>
7026
7027 * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
7028 (DWARF2_DEBUGGING_INFO): Define to enable.
7029 (DBX_REGISTER_NUMBER): Define to use the svr4 register map for
7030 DWARF2.
7031 * configure.ac (Target-specific assembler checks)
7032 <i[34567]86-*-[cygwin*|pe|mingw32*]>: New test for .secrel32
7033 relocs.
7034 * configure: Regenerate.
7035 * config.in: Likewise.
7036
7037 * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
7038 (ASM_OUPUT_DWARF_OFFSET): Define.
7039
7040 2004-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
7041
7042 * config/s390/s390-protos.h (s390_emit_epilogue): Parameter added.
7043 (s390_emit_call): New function prototype added.
7044 (s390_tls_get_offset): Function removed.
7045 * config/s390/s390.c (s390_function_ok_for_sibcall,
7046 s390_call_saved_register_used_p): New functions.
7047 (TARGET_FUNCTION_OK_FOR_SIBCALL): Definition of target macro added.
7048 (s390_tls_get_offset): Function merged into s390_emit_tls_call_insn.
7049 (s390_emit_tls_call_insn): New function.
7050 (legitimize_tls_address): Call s390_emit_tls_call_insn instead of
7051 emit_call_insn.
7052 (s390_emit_prologue): Use s390_emit_call instead of emit_call_insn.
7053 (s390_emit_epilogue): Like s390_emit_prologue. Parameter for sibcalls
7054 added.
7055 * config/s390/s390.h (SIBCALL_REGNUM): New macro representing the
7056 register number used to hold the target address for sibcalls.
7057 * config/s390/s390.md ("sibcall", "sibcall_value", "sibcall_epilogue"):
7058 New expanders.
7059 ("*sibcall_br", "*sibcall_brc", "*sibcall_brcl", "*sibcall_value_br",
7060 "*sibcall_value_brc", "*sibcall_value_brcl"): New insns.
7061 ("call_exp", "call_value_exp", "call_value_tls", "call_value_tls_exp"):
7062 Expanders removed.
7063 ("call", "call_value"): Call s390_emit_call to emit the call patterns.
7064 ("*bras", "*brasl", "*bras_r", "*brasl_r", "*bras_tls", "*brasl_tls",
7065 "*basr", "*basr_r", "*basr_tls"): Added constraint: !SIBLING_CALL_P.
7066 ("epilogue"): Changed the call to s390_emit_epilogue to use the
7067 new parameter.
7068
7069 2004-04-30 Kazu Hirata <kazu@cs.umass.edu>
7070
7071 * bb-reorder.c, c-opts.c, cfglayout.c, cgraph.c, cgraphunit.c,
7072 cppfiles.c, fold-const.c, ggc-zone.c, loop-doloop.c, optabs.c,
7073 reg-stack.c, varasm.c, config/alpha/ev4.md,
7074 config/alpha/ev5.md, config/alpha/ev6.md, config/arm/arm.c,
7075 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.c,
7076 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
7077 config/frv/frv.h, config/frv/frv.md, config/h8300/h8300.c,
7078 config/i386/i386.c, config/i386/i386.md, config/i386/winnt.c,
7079 config/ia64/itanium2.md, config/ip2k/ip2k.c,
7080 config/mips/mips.c, config/mips/mips.h, config/mips/sr71k.md,
7081 config/pa/pa.c, config/s390/s390.c, config/sh/sh.c: Fix
7082 comment typos.
7083
7084 2004-04-30 Paul Brook <paul@codesourcery.com>
7085
7086 * config.gcc: Default ep9312 to hard-float.
7087 * config/arm/arm-cores.def: Add ARCH field.
7088 * config/arm/arm.c (FL_FOR_ARCH*): Define.
7089 (arm_arch_cirrus): New variable.
7090 (all_cores): Set and use arch.
7091 (all_architectures): Ditto.
7092 (arm_arch_name): New variable.
7093 (arm_override_options): Set it. Use [SUB]TARGET_CPU_DEFAULT.
7094 Set and use arm_arch_cirrus.
7095 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set arch defines.
7096 (enum processor_type): Update ARM_CORE define.
7097 (enum target_cpus): Add. Replaces TARGET_CPU_* defines.
7098 (CPP_SPEC): Remove %(cpp_cpu_arch).
7099 (CPP_ARCH_DEFAULT_SPEC): Remove.
7100 (CPP_CPU_ARCH_SPEC): Remove.
7101 (EXTRA_SPECS): Don't use CPP_*ARCH*_SPEC.
7102 (FPUTYPE_DEFAULT): Don't define here.
7103
7104 2004-04-30 J"orn Rennecke <joern.rennecke@superh.com>
7105
7106 * flow.c (propagate_one_insn): Call mark_set_regs for stack pointer
7107 updates too.
7108
7109 2004-04-30 Paul Brook <paul@codesourcery.com>
7110
7111 * arm.c (arm_needs_doubleword_align): Use mode alignment.
7112
7113 2004-04-30 Paolo Bonzini <bonzini@gnu.org>
7114
7115 * config/altivec/altivec.h [__cplusplus] (vec_subsubs): Rename to
7116 vec_sububs.
7117 [__cplusplus] (vec_subsuhs): Rename to vec_subuhs, without
7118 duplicates.
7119
7120 2004-04-30 Uros Bizjak <uros@kss-loka.si>
7121
7122 * config/i386/i386.md (atansf2, atandf2, atanxf2): Move near
7123 atan2?f3 expanders.
7124
7125 2004-04-29 Nick Clifton <nickc@redhat.com>
7126
7127 Bug 14093
7128 * config/sh/sh-protos.h (sh_promote_prototypes): Declare.
7129 * config/sh/sh.c (sh_promote_prototypes): Remove declaration.
7130 Delete static from definition.
7131 * config/sh/sh.h (FUNCTION_VALUE): Add sh_promote_prototypes call.
7132
7133 2004-04-30 Uros Bizjak <uros@kss-loka.si>
7134
7135 * reg-stack.c (subst_stack_regs_pat): <UNSPEC_SIN, UNSPEC_COS,
7136 UNSPEC_FRNDINT, UNSPEC_F2XM1>: abort() if src1 dies.
7137 <UNSPEC_SINCOS_COS, UNSPEC_TAN_ONE, UNSPEC_XTRACT_FRACT>: Same.
7138 <UNSPEC_SINCOS_SIN, UNSPEC_TAN_TAN, UNSPEC_XTRACT_EXP>: Same.
7139
7140 2004-04-29 Richard Guenther <richard.guenther@uni-tuebingen.de>
7141
7142 * commom.opt (Wfatal-errors): Add it.
7143 * diagnostic.c (flag_fatal_errors): Define it.
7144 (diagnostic_action_after_output): Check for flag_fatal_errors.
7145 * flags.h (flag_fatal_errors): Declare it.
7146 * opts.c (common_handle_option): Add OPT_Wfatal_errors.
7147 * doc/invoke.texi (Warning Options): Document -Wfatal-errors.
7148
7149 2004-04-30 Josef Zlomek <zlomekj@suse.cz>
7150
7151 * gcse.c (remove_reachable_equiv_notes): Delete notes also in
7152 blocks which have kill flag set.
7153
7154 2004-04-29 Ben Elliston <bje@au.ibm.com>
7155
7156 * configure.ac (--with-as): Abort if user-supplied assembler
7157 cannot be executed.
7158 (--with-ld): Likewise for the linker.
7159 * configure: Regenerate.
7160
7161 2004-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7162
7163 * convert.c (convert_to_integer): Ensure `long_integer_type_node'
7164 isn't NULL before using it.
7165
7166 2004-04-29 Richard Sandiford <rsandifo@redhat.com>
7167
7168 PR target/15189
7169 * config/mips/mips.md (load_df_low): Use default length.
7170 (load_df_high, store_df_high): Likewise.
7171
7172 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
7173
7174 * config/mips/mips.md, config/mips/sb1.md,
7175 config/rs6000/rs6000.c: Fix comment typos.
7176
7177 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
7178
7179 * builtins.c, cgraph.c, cgraphunit.c, final.c, fold-const.c:
7180 Fix comment typos.
7181
7182 2004-04-29 Douglas B Rupp <rupp@gnat.com>
7183
7184 * gcc.c (DELETE_IF_ORDINARY): New macro default definition.
7185 (delete_if_ordinary): Use above macro.
7186 * config/alpha/xm-vms.h (DELETE_IF_ORDINARY): New macro VMS definition.
7187 Update copyright.
7188 * doc/hostconfig.texi (DELETE_IF_ORDINARY): Document new macro.
7189
7190 2004-04-29 Richard Earnshaw <rearnsha@arm.com>
7191
7192 * c-decl.c (get_parm_info): Use the correct tag keywords when
7193 warning about type declarations in prototypes.
7194
7195 2004-04-29 Paul Brook <paul@codesourcery.com>
7196
7197 * config.gcc: Pull list of cores from arm-cores.def.
7198
7199 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
7200
7201 * combine.c (combine_simplify_rtx): Adjust call to use
7202 simplify_relational_operation. Do not use SELECT_CC_MODE
7203 when a comparison already has a MODE_CC mode.
7204
7205 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
7206
7207 (simplify_set): simplify_relational_operation may now
7208 return another relational expression.
7209 * cse.c (fold_rtx): simplify_relational_operation now
7210 takes of computing the comparison mode.
7211 * dojump.c (compare_from_rtx): Use simplify_relational_operation,
7212 remove dead code.
7213 (do_compare_rtx_and_jump): Likewise.
7214 * integrate.c (subst_constants): simplify_relational_operation
7215 may now return another relational expression.
7216 * simplify-rtx.c (simplify_gen_relational): Move most code to
7217 the new simplify_relational_operation and
7218 simplify_relational_operation_1 functions.
7219 (simplify_relational_operation): Rewritten.
7220 (simplify_relational_operation_1): New function.
7221 (simplify_ternary_operation): simplify_relational_operation
7222 may now return another relational expression.
7223 (simplify_rtx): Remove unnecessary temp variable.
7224
7225 2004-04-29 Uros Bizjak <uros@kss-loka.si>
7226
7227 * reg-stack.c (swap_to_top): New function.
7228 (subst_stack_regs_pat): UNSPEC_FPATAN, UNSPEC_FYL2X: Use
7229 swap_to_top().
7230 (subst_stack_regs_pat): UNSPEC_FSCALE: Remove.
7231 (subst_stack_regs_pat): Handle UNSPEC_FSCALE_FRACT and
7232 UNSPEC_FSCALE_EXP.
7233
7234 * config/i386/i386.md (UNSPEC_FSCALE): Remove.
7235 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): Remove insn pattern.
7236 (UNSPEC_FSCALE_FRACT, UNSPEC_FSCALE_EXP): New unspecs to represent
7237 x87's fscale insn.
7238 (*fscalexf4: Define new insn pattern to implement x87 fscale insn.
7239 (exp?f2, exp10?f2, exp2?f2): Use *fscalexf4 and float_truncate
7240 patterns.
7241
7242 2004-04-28 Serge Belyshev <1319@bot.ru>
7243
7244 PR 14944
7245 * coverage.c (read_counts_file): Fix usage of warning () call.
7246 * pretty-print.c (pp_base_format_text): Fix typo in the comment.
7247
7248 2004-04-28 Ben Elliston <bje@au.ibm.com>
7249
7250 * doc/invoke.texi (Objective-C Dialect Options): Don't prefix
7251 options with "-" in the option index.
7252 (SPARC Options): Likewise.
7253 (M32R/D Options): Likewise.
7254
7255 2004-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7256
7257 * convert.c (convert_to_integer): Convert (long)round -> lround,
7258 etc.
7259
7260 2004-04-28 Andrew Pinski <pinskia@physics.uc.edu>
7261
7262 * config/rs6000/rs6000.c (registers_ok_for_quad_peep):
7263 Return false if we do not have fp register.
7264 (addrs_ok_for_quad_peep): Rename to ...
7265 (mems_ok_for_quad_peep): this.
7266 Add check for volatile memory.
7267 * config/rs6000/rs6000-protos.h (addrs_ok_for_quad_peep):
7268 Rename to ...
7269 (mems_ok_for_quad_peep): this.
7270 * config/rs6000/rs6000.md: Change peephole's for lfq/stq
7271 to peephole2's.
7272 (lfq_power2): New instruction.
7273 (stfq_power2): Likewise.
7274
7275 2004-04-28 Jan Hubicka <jh@suse.cz>
7276
7277 PR c/15004
7278 * function.c (do_warn_unused_parameter): Break out form ...
7279 (expand_function_end): ... here; warn only when not using cgraphunit.
7280 * function.h (do_warn_unused_parameter): Declare.
7281 * cgraphunit.c: Include function.h.
7282 (cgraph_finalize_function): Do unused parameter warning.
7283 * Makefile.in (cgraphunit.o): Depend on function.h
7284
7285 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
7286
7287 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Don't condition
7288 calling install-info on $(DESTDIR)$(infodir)/dir already being
7289 present.
7290
7291 2004-04-28 Paul Brook <paul@codesourcery.com>
7292
7293 * dwarf2out.c (mem_loc_descriptor): Handle shifts.
7294
7295 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7296
7297 * gcse.c (find_moveable_store): Do not accept store insns with
7298 REG_EH_REGION note.
7299
7300 2004-04-28 Paul Brook <paul@codesourcery.com>
7301
7302 * calls.c (precompute_arguments): Remove PROMOTE_FOR_CALL_ONLY.
7303 * function.c (assign_temp): Ditto.
7304 * system.h (PROMOTE_FOR_CALL_ONLY): Poison.
7305
7306 2004-04-28 Paul Brook <paul@codesourcery.com>
7307
7308 * config/arm/lib1funcs.asm: Recognize armv5tej and armv6.
7309
7310 2004-04-28 Josef Zlomek <zlomekj@suse.cz>
7311
7312 * var-tracking.c (variable_different_p): Add a parameter
7313 compare_current_location, compare current location of variable parts
7314 if it is true.
7315 (dataflow_set_different_1): Pass compare_current_location == false.
7316 (dataflow_set_different_2): Pass compare_current_location == false.
7317 (emit_notes_for_differences_1): Pass compare_current_location == true.
7318
7319 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
7320
7321 * config/s390/s390.md ("casesi"): Mark jump table access as
7322 non-trapping and unchanging.
7323
7324 2004-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7325
7326 PR debug/14829
7327 * dwarf2out.c (reg_number): Rename to dbx_reg_number. Adjust all
7328 callers.
7329 (multiple_reg_loc_descriptor, reg_loc_descriptor): Use gcc register
7330 number for indexing hard_regno_nregs array.
7331
7332 2004-04-27 Geoffrey Keating <geoffk@apple.com>
7333
7334 * config/darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
7335 * config/darwin-crt2.c: Only have contents on __ppc__.
7336
7337 2004-04-27 Bob Wilson <bob.wilson@acm.org>
7338
7339 * config/xtensa/xtensa.c (call_insn_operand): Check
7340 SYMBOL_REF_EXTERNAL_P in addition to SYMBOL_REF_LOCAL_P.
7341 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND): Likewise.
7342 * config/xtensa/xtensa.md (call, call_value): Likewise.
7343
7344 2004-04-27 Wu Yongwei <adah@sh163.net>
7345
7346 * gthr-win32.h (__gthread_mutex_t): Change typedef to new structure.
7347 (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
7348 (__gthread_mutex_init_function): Replace CreateMutex with
7349 initialization of custom mutex using CreateSemaphore.
7350 (__gthread_mutex_lock): Use InterlockedIncrement.
7351 (__gthread_mutex_trylock): Use InterlockedCompareExchange.
7352 (__gthread_mutex_unlock): Use InterlockedDecrement and
7353 ReleaseSemaphore to unlock
7354 * config/i386/gthr-win32.c (__gthread_mutex_init_function,
7355 __gthread_mutex_lock, __gthread_mutex_trylock,
7356 __gthread_mutex_unlock): Adjust to match inline versions in
7357 gthr-win32.h.
7358
7359 2004-04-27 Paul Brook <paul@codesourcery.com>
7360
7361 * config/arm/arm.c (arm_promote_prototypes): New function.
7362 (TARGET_PROMOTE_PROTOTYPES): Use it.
7363
7364 2004-04-27 Paul Brook <paul@codesourcery.com>
7365
7366 * config/arm/arm.c (arm_expand_epilogue): Count blocks of 4 regs.
7367
7368 2004-04-26 Bernard Giroud <bgiroud@free.fr>
7369
7370 * config/alpha.c (alpha_end_function): For OpenVMS gas,
7371 correctly output .pdesc directive before .end.
7372
7373 2004-04-26 James E Wilson <wilson@specifixinc.com>
7374
7375 Bug 14927
7376 * config/ia64/ia64.md (movxf): New local op0. Handle case where
7377 operands[0] is a SUBREG. Handle case where operands[1] is a GR reg.
7378
7379 2004-04-26 Zack Weinberg <zack@codesourcery.com>
7380
7381 * config/ia64/hpux.h: Predefine __STDCPP__ when compiling C++.
7382 * config/pa/pa-hpux10.h: Likewise.
7383 * config/pa/pa-hpux11.h: Likewise.
7384
7385 2004-04-26 Geoffrey Keating <geoffk@apple.com>
7386
7387 * doc/invoke.texi (Overall Options): Document default for -o
7388 for PCH files.
7389
7390 2004-04-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7391
7392 * builtins.c (expand_builtin_update_setjmp_buf): New function.
7393 (expand_builtin, case BUILT_IN_UPDATE_SETJMP_BUF): New case.
7394 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): New code.
7395
7396 2004-04-26 Paul Brook <paul@codesourcery.com>
7397
7398 * config/arm/arm.c (arm_legitimate_index_p): Correct iwmmxt offsets.
7399
7400 2004-04-26 Paul Brook <paul@codesourcery.com>
7401
7402 * config/arm/arm.c (arm_legitimate_index_p): Correct maverick offsets.
7403
7404 2004-04-25 Roger Sayle <roger@eyesopen.com>
7405
7406 * fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to
7407 fold (build1 (NEGATE_EXPR, ...)). Optimize X / -1 as -X and
7408 X % -1 as 0.
7409
7410 2004-04-26 Hans-Peter Nilsson <hp@bitrange.com>
7411
7412 PR bootstrap/15141
7413 * except.c (connect_post_landing_pads): Delete insns after the
7414 barrier when generating a unwind_resume_libfunc call.
7415
7416 2004-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7417
7418 PR/c++ 15119
7419 * tree.c (substitute_placeholder_in_expr, case 4): New case,
7420 for TARGET_EXPR.
7421
7422 2004-04-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7423
7424 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
7425 __gcov_execv, __gcov_execvp, __gcov_execve): Do not declare when
7426 inhibit_libc is defined.
7427
7428 2004-04-25 Richard Sandiford <rsandifo@redhat.com>
7429
7430 * config/mips/mips-protos.h (mips_linked_macc_p): Declare.
7431 * config/mips/mips.h (TUNE_MACC_CHAINS): New macro.
7432 * config/mips/mips.c (TARGET_SCHED_REORDER): Define.
7433 (TARGET_SCHED_VARIABLE_ISSUE): Define.
7434 (mips_adjust_cost): Move later in file, next to other sched hooks.
7435 (mips_macc_chains_last_hilo): New variable.
7436 (mips_linked_madd_p, mips_macc_chains_record, mips_macc_chains_reorder)
7437 (mips_promote_ready, mips_sched_reorder, mips_variable_issue): New.
7438 * config/mips/mips.md (may_clobber_hilo): New attribute.
7439
7440 2004-04-24 Roger Sayle <roger@eyesopen.com>
7441 Bruce Korb <bkorb@gnu.org>
7442
7443 * fixinc/inclhack.def (aix_syswait_2): New fix.
7444 * fixinc/fixincl.x: Regenerate.
7445 * fixinc/tests/base/sys/wait.h: Update for new test.
7446
7447 2004-04-24 Alan Modra <amodra@bigpond.net.au>
7448
7449 PR target/14960
7450 * config/rs6000/rs6000.c (rs6000_stack_info): Rename total_raw_size
7451 to non_fixed_size, and leave out fixed_size from the sum.
7452 (generate_set_vrsave): Correct clobbers.
7453 (rs6000_emit_epilogue): Test TARGET_ALTIVEC with TARGET_ALTIVEC_SAVE.
7454 (rs6000_function_value): Test TARGET_ALTIVEC and TARGET_ALTIVEC_ABI.
7455 (rs6000_libcall_value): Likewise.
7456 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Likewise.
7457 (FUNCTION_ARG_REGNO_P): Likewise.
7458
7459 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
7460
7461 * expmed.c (expand_mult_highpart_adjust): Do not assume OP1
7462 is a CONST_INT.
7463 (expand_mult_highpart_optab): Call expand_mult_highpart_adjust
7464 with NARROW_OP1 instead of OP1.
7465
7466 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
7467
7468 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __s390__
7469 and __s390x__ hosts.
7470
7471 2004-03-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7472
7473 * Makefile.in (LIBGCOV): Add _gcov_fork, _gcov_execl, _gcov_execlp,
7474 _gcov_execle, _gcov_execv, _gcov_execvp, _gcov_execve.
7475 * builtin-types.def (BT_PID, BT_PTR_CONST_STRING, BT_FN_PID,
7476 BT_FN_INT_CONST_STRING_PTR_CONST_STRING,
7477 BT_FN_INT_CONST_STRING_PTR_CONST_STRING_PTR_CONST_STRING): New.
7478 * builtins.c (expand_builtin_fork_or_exec): New.
7479 (expand_builtin): Call it.
7480 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP,BUILT_IN_EXECLE,
7481 BUILT_IN_EXECV, BUILT_IN_EXECVP, BUILT_IN_EXECVE, BUILT_IN_FORK): New.
7482 * c-common.c (PID_TYPE): New macro.
7483 (c_common_nodes_and_builtins): Initialize pid_type_node.
7484 * calls.c (special_function_p): Do not handle fork and exec.
7485 (expand_call): Do not handle ECF_FORK_OR_EXEC.
7486 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
7487 __gcov_execv, __gcov_execvp, __gcov_execve): Declare.
7488 * libgcov.c (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
7489 __gcov_execv, __gcov_execvp, __gcov_execve): New.
7490 * tree.h (enum tree_index): Add TI_PID_TYPE.
7491 (pid_type_node): New macro.
7492 (ECF_FORK_OR_EXEC): Removed.
7493
7494 2004-04-23 Eric Botcazou <ebotcazou@libertysurf.fr>
7495
7496 PR optimization/13985
7497 * cfgloopmanip.c (fix_loop_placements): New prototype.
7498 Call fix_bb_placements on the preheader of loops that have
7499 been reparented.
7500 (remove_path): Adjust call to fix_loop_placements.
7501
7502 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
7503
7504 * config/darwin7.h: New file.
7505 * config.gcc (*-*-darwin*): Add darwin7.h if the
7506 version is greater than 6.
7507 * config/darwin.h (TARGET_C99_FUNCTIONS): Define.
7508 (MATH_LIBRARY): Wrap in ifdefs.
7509
7510 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
7511
7512 * config/arm/arm.c (arm_output_epilogue): Reverse the order of
7513 loading iWMMXt registers with a frame pointer. Use post-increment
7514 without a frame pointer.
7515 (arm_expand_prologue): Reverse the order of saving iWMMXt registers.
7516
7517 2004-04-23 Paolo Bonzini <bonzini@gnu.org>
7518
7519 * doc/invoke.texi (Optimize Options): Refer to "unit-at-a-time
7520 mode" rather than "-funit-at-a-time" since -O2 enables it
7521 without requiring -f* options. Refer to -fprofile-generate and
7522 -fprofile-use correctly. Move -funit-at-a-time among options
7523 enabled by -O. Add information about unit-at-a-time caveats.
7524
7525 2004-04-22 Per Bothner <per@bothner.com>
7526
7527 * line-map.h (struct line_maps): New field highest_line.
7528 (linemap_position_for_column): Make non-inline function.
7529 (LINEMAP_POSITION_FOR_COLUMN): New macro.
7530 * line-map.c (linemap_init): Clear highest_line field.
7531 (linemap_add): Set highest_line field.
7532 (linemap_line_start): Minor optimization - use highest_line field.
7533 Reduce maximum column hint to 10000. Update highest_line field.
7534 (linemap_position_for_column): Moved from line-map.h. Optimize a bit.
7535 * cpphash.h (struct cpp_reader): Remove line field - instead use
7536 line_table->highest_line.
7537 (saved_line): Remove unused field.
7538 (CPP_INCREMENT_FILE): Don't do linemap_lookup - just use newest map.
7539 Use line_table's highest_line field instead of cpp_reader's line.
7540 * cpplib.c (start_directive): Likewise use highest_line field.
7541 (do_line, do_linemarker): Likewise just use newest map.
7542 (_cpp_do_file_change): Don't need to set cpp_reader's line field.
7543 * cpperror.c (cpp_error): Likewise use highest_line field.
7544 * cppfiles.c (open_file_failed: Likewise.
7545 (cpp_make_system_header): Likewise use newest map and highest_line.
7546 * cppinit.c (cpp_create_reader): Don't initialize removed field.
7547 * cpplex.c (_cpp_process_line_notes, _cpp_skip_block_comment,
7548 skip_line_comment, skip_whitespace, _cpp_get_fresh_line,
7549 _cpp_lex_direct): Likewise use highest_line.
7550 (_cpp_lex_direct): Use new LINEMAP_POSITION_FOR_COLUMN macro.
7551 * cppmacro.c (_cpp_builtin_macro_text): Likewise use highest_line,
7552 and use newest map.
7553 * cpppch.c (cpp_read_state): Don't save+restore cpp_reader's line.
7554 * cpptrad.c (_cpp_overlay_buffer): Don't save cpp_reader's line.
7555 (copy_comment, _cpp_scan_out_logical_line): Likewise use highest_line.
7556
7557 2004-04-23 Alan Modra <amodra@bigpond.net.au>
7558
7559 PR bootstrap/14992
7560 * gcc.c (init_gcc_specs): Test USE_LD_AS_NEEDED, not HAVE_LD_AS_NEEDED.
7561 * config/linux.h (USE_LD_AS_NEEDED): Define.
7562 * gcc/config/alpha/linux.h (USE_LD_AS_NEEDED): Define.
7563 * gcc/config/arm/linux-elf.h (USE_LD_AS_NEEDED): Define.
7564 * gcc/config/rs6000/linux.h (USE_LD_AS_NEEDED): Define.
7565 * gcc/config/rs6000/linux64.h (USE_LD_AS_NEEDED): Define.
7566 * gcc/config/sh/linux.h (USE_LD_AS_NEEDED): Define.
7567 * gcc/config/sparc/linux.h (USE_LD_AS_NEEDED): Define.
7568 * gcc/config/sparc/linux64.h (USE_LD_AS_NEEDED): Define.
7569
7570 2004-04-22 Per Bothner <per@bothner.com>
7571
7572 * cppinit.c (cpp_read_main_file): Return NULL rather than false.
7573 Fixes PR preprocessor/15067.
7574
7575 2004-04-23 Andreas Schwab <schwab@suse.de>
7576
7577 * config/ia64/ia64intrin.h: Add intermediate cast to void * to
7578 avoid aliasing warning.
7579
7580 2004-04-22 Jan Hubicka <jh@suse.cz>
7581 Mostafa Hagog <mustafa@il.ibm.com>
7582
7583 * cfgloopmanip.c (scale_bbs_frequencies): Use RDIV macro
7584 * cfgloopanal.c (expected_loop_iterations): Change the return value
7585
7586 2004-04-22 Jakub Jelinek <jakub@redhat.com>
7587
7588 * cselib.h (struct elt_loc_list): Remove canon_loc field.
7589 * cselib.c (new_elt_loc_list): Remove canon_loc initialization.
7590 (cselib_invalidate_mem): Remove all canon_loc and canon_x
7591 traces.
7592
7593 2004-04-22 Josef Zlomek <zlomekj@suse.cz>
7594
7595 Revert
7596 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
7597
7598 * var-tracking.c (variable_part_different_p): Variable parts
7599 differ when the most recent locations differ.
7600
7601 2004-04-22 Richard Sandiford <rsandifo@redhat.com>
7602
7603 * doc/invoke.texi: Remove the MIPS -membedded-pic option.
7604 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): Delete.
7605 (embedded_pic_offset): Delete.
7606 * config/mips/mips.h (MASK_EMBEDDED_PIC): Delete. Shuffle other
7607 MASK_* constants.
7608 (TARGET_EMBEDDED_PIC): Delete.
7609 (TARGET_SWITCHES): Remove -m{no-,}embedded-pic.
7610 (ASM_SPEC): Remove -membedded-pic.
7611 (ASM_OUTPUT_ADDR_DIFF_ELT): Remove embedded-pic handling.
7612 (ASM_OUTPUT_CASE_LABEL): Likewise.
7613 * config/mips/vxworks.h (ASM_SPEC): Remove -membedded-pic.
7614 * config/mips/windiss.h (ASM_SPEC): Likewise.
7615 * config/mips/mips.c (struct machine_function): Remove
7616 embedded_pic_fnaddr_rtx.
7617 (TARGET_ENCODE_SECTION_INFO): Remove override.
7618 (embedded_pic_fnaddr_reg, embedded_pic_offset): Delete.
7619 (override_options): Remove -membedded-pic handling.
7620 (print_operand): Remove handling of '%S'.
7621 (mips_select_section: Remove -membedded-pic handling.
7622 (mips_encode_section_info): Delete.
7623 (mips_output_conditional_branch): Remove mention of -membedded-pic.
7624 * config/mips/mips.md (define_attr length, movsi, movdi, jump): Remove
7625 -membedded-pic handling.
7626 (casesi, casesi_internal, casesi_internal_di, get_fnaddr): Delete.
7627
7628 2004-04-22 Alan Modra <amodra@bigpond.net.au>
7629
7630 * var-tracking.c (frame_base_decl): Remove useless GTY.
7631
7632 2004-04-21 Aldy Hernandez <aldyh@redhat.com>
7633
7634 * config/rs6000/rs6000.c (rs6000_override_options): Error when
7635 user wants altivec and e500 instructions.
7636
7637 2004-04-21 H.J. Lu <hongjiu.lu@intel.com>
7638
7639 PR target/14813
7640 * config/ia64/crtend.asm: Move pointer to __do_global_ctors_aux
7641 in .init_array section to ...
7642 * config/ia64/crtbegin.asm: Here.
7643
7644 * config/ia64/crtend.asm: Mark __do_global_ctors_aux global
7645 and hidden if HAVE_INITFINI_ARRAY is defined.
7646
7647 2004-04-21 James E Wilson <wilson@specifixinc.com>
7648
7649 * config/mips/mips-protos.h (fp_register_operand, lo_operand): Declare.
7650 * config/mips/mips.c (mips_multipass_dfa_lookahead): Declare.
7651 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): New.
7652 (fp_register_operand, lo_operand): New.
7653 (mips_rtx_costs): Add TUNE_SB1 support.
7654 (mips_issue_rate): Add comment. Add PROCESSOR_SB1 support.
7655 (mips_use_dfa_pipeline_interface): Add PROCESSOR_SB1 support.
7656 (mips_multipass_dfa_lookahead): New.
7657 * config/mips/mips.h (MASK_FP_EXCEPTIONS, TARGET_FP_EXCEPTIONS,
7658 TUNE_SB1): New.
7659 (TARGET_SWITCHES): Add -mfp-exceptions support.
7660 (TARGET_FP_EXCEPTIONS_DEFAULT): New.
7661 (BRANCH_COST): Fix whitespace.
7662 * config/mips/mips.md: Include sb1.md.
7663 * config/mips/sb1.md: New file.
7664 * doc/invoke.texi: Document -mfp-exceptions.
7665
7666 * Makefile.in (fixinc.sh): Don't set or export WARN_CFLAGS. Fix
7667 comment.
7668 * fixinc/Makefile.in (FL_LIST): Don't mention WARN_CFLAGS.
7669 (fixincl.o-warn): Delete.
7670
7671 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
7672
7673 * config/rs6000/rs6000 (print_operand) ['z']:
7674 Change ifdef of TARGET_MACHO to if TARGET_MACHO.
7675
7676 2004-04-21 Daniel Jacobowitz <drow@mvista.com>
7677
7678 * config.gcc: Support --with-arch=iwmmxt for ARM.
7679
7680 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7681
7682 * expmed.c (expand_mult_highpart_optab): Use narrower version of OP1
7683 in two more places; remove unneeded force_reg
7684
7685 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
7686
7687 * config/rs6000/rs6000.c (symbol_ref_operand): Remove hack
7688 for TARGET_MACHO.
7689 (print_operand): For TARGET_MACHO check to see if we need a stub
7690 and output one if we need it.
7691
7692 PR debug/15033
7693 * dwarf2out.c (rtl_for_decl_location): Check for NULL
7694 rtl.
7695
7696 2004-04-20 James E Wilson <wilson@specifixinc.com>
7697
7698 * config/ia64/ia64.md (call_value_nogp): Add constraints for op0.
7699 (vall_value_gp): Likewise.
7700
7701 2004-04-20 DJ Delorie <dj@redhat.com>
7702
7703 * dwarf2out.c (rtl_for_decl_location): Adjust rtl for byte
7704 variables stored in word registers, then in memory.
7705
7706 2004-04-20 Eric Christopher <echristo@redhat.com>
7707
7708 * cp/parser.c (cp_parser_declaration): Move translate
7709 up before tokens are lexed.
7710
7711 2004-04-20 Uros Bizjak <uros@kss-loka.si>
7712
7713 * optabs.h (enum optab_index): Add new OTI_asin and OTI_acos.
7714 (asin_optab, acos_optab): Define corresponding macros.
7715 * optabs.c (init_optabs): Initialize asin_optab and acos_optab.
7716 * genopinit.c (optabs): Implement asin_optab and acos_optab
7717 using asin?f2 and acos?f2 patterns.
7718 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_ASIN{,F,L}
7719 using asin_optab, and BUILT_IN_ACOS{,F,L} using acos_optab.
7720 (expand_builtin): Expand BUILT_IN_ASIN{,F,L} and BUILT_IN_ACOS{,F,L}
7721 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
7722
7723 * config/i386/i386.md (asindf2, asinsf2, asinxf2, acosdf2,
7724 acossf2, acosxf2): New expanders to implement asin, asinf, asinl,
7725 acos, acosf and acosl built-ins as inline x87 intrinsics.
7726
7727 2004-04-20 Paul Brook <paul@codesourcery.com>
7728
7729 * config/arm/arm.c (arm_legitimate_address_p): Use rtx_equal_p.
7730
7731 2004-04-20 Paul Brook <paul@codesourcery.com>
7732
7733 * config/arm/arm.c (arm_expand_prologue): Fix size calculation.
7734
7735 2004-04-20 Paolo Bonzini <bonzini@gnu.org>
7736
7737 Revert part of 2004-04-17 change that moved -frename-registers
7738 to -O1. -frename-registers is buggy.
7739
7740 * toplev.c (flag_rename_registers): Initialize to 0.
7741 * doc/invoke.texi (Optimize options): Move -frename-registers
7742 to "Not triggered by any -O level" section. Adjust commentary
7743 accordingly.
7744
7745 2004-04-20 Anil Paranjpe <anilp1@kpitcummins.com>
7746
7747 * toplev.c (compile_file): Move targetm.asm_out.file_end call to end.
7748
7749 2004-04-20 Richard Sandiford <rsandifo@redhat.com>
7750
7751 * config/mips/mips.c (mips_legitimize_move): Generate special patterns
7752 for mflo and mfhi instructions.
7753 (mips_output_move): Remove mflo and mfhi handling.
7754 * config/mips/mips.md (UNSPEC_MFHILO): New unspec.
7755 (*mulsidi3_64bit): Update for new mfhi/mflo representation.
7756 Likewise various define_peephole2s.
7757 (*movdi_32bit, *movdi_64bit, *movsi_internal): Merge x<-J and x<-d
7758 alternatives.
7759 (*movdi_64bit, *movdi_64bit_mips16, *mov[shq]i_internal)
7760 (*mov[shq]i_mips16): Remove mflo and mfhi alternatives.
7761 (mfhilo_di, mfhilo_si): New patterns.
7762
7763 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
7764
7765 * function.c (assign_parms): Force
7766 MEM_EXPR (DECL_INCOMING_RTL (parm)) == parm.
7767
7768 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
7769
7770 * var-tracking.c (variable_part_different_p): Variable parts differ
7771 when the most recent locations differ.
7772
7773 2004-04-19 James E Wilson <wilson@specifixinc.com>
7774
7775 * rtl.h (reg_set_last): Delete declaration.
7776 * rtlanal.c (reg_set_last): Delete.
7777
7778 2004-04-19 Roger Sayle <roger@eyesopen.com>
7779
7780 * fold-const.c (fold_convert): Make function extern/public.
7781 * tree.h (fold_convert): Prototype here.
7782 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
7783 expand_builtin_strrchr, expand_builtin_strpbrk,
7784 expand_builtin_mempcpy, expand_builtin_bcopy,
7785 expand_builtin_bzero, expand_builtin_memcmp,
7786 expand_builtin_strcmp, expand_builtin_strncmp,
7787 stabilize_va_list, expand_builtin_sprintf,
7788 fold_trunc_transparent_mathfn, fold_builtin_logarithm,
7789 fold_builtin_exponent, fold_builtin_mempcpy,
7790 fold_builtin_strcpy, fold_builtin_strcmp, fold_builtin_strncmp,
7791 fold_builtin_signbit, fold_builtin_isdigit, fold_builtin): Prefer
7792 fold_convert to "convert" or "fold (build1 (NOP_EXPR, ...))".
7793
7794 2004-04-19 Aldy Hernandez <aldyh@redhat.com>
7795
7796 * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): New constant.
7797 (move_from_CR_gt_bit): New.
7798 (cceq_ior_compare): Name previously unnamed pattern. Disable for
7799 E500.
7800 (cceq_rev_compare): Name previously unnamed pattern. Allow for
7801 E500.
7802
7803 * config/rs6000/spe.md (cmpsfeq_gpr): Rewrite as unspec.
7804 (tstsfeq_gpr): Same.
7805 (cmpsfgt_gpr): Same.
7806 (tstsfgt_gpr): Same.
7807 (cmpsflt_gpr): Same.
7808 (tstsflt_gpr): Same.
7809 (e500_cceq_ior_compare): New.
7810 (e500_flip_gt_bit): New.
7811
7812 * config/rs6000/rs6000.c (ccr_bit): Remove E500 specific code.
7813 (print_operand): Add 'c' and 'D'.
7814 (rs6000_generate_compare): Rewrite to generate correct rtl.
7815 (rs6000_emit_sCOND): Handle E500.
7816 (output_cbranch): Adjust for changes in rs6000_generate_compare.
7817 (output_e500_flip_gt_bit): New.
7818
7819 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit):
7820 Protoize.
7821
7822 2004-04-19 Eric Christopher <echristo@redhat.com>
7823
7824 * config/mips/mips.h (DWARF2_ADDR_SIZE): New.
7825
7826 2004-04-19 David Edelsohn <edelsohn@gnu.org>
7827
7828 * doc/install.texi (*-ibm-aix*): Add AIX 5.1 assembler and archiver
7829 fix information.
7830
7831 2004-04-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7832
7833 * doc/install.texi (Specific, mips-sgi-irix5): Fix IRIX 5.3 IDO
7834 download URL.
7835
7836 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
7837
7838 * stor-layout.c (layout_decl): Check DECL_PACKED before calling
7839 ADJUST_FIELD_ALIGN. Check maximum_field_alignment after.
7840
7841 2004-04-19 Andrew PInski <pinskia@physics.uc.edu>
7842
7843 * builtins.c (fold_builtin_cabs): Remove fndecl parameter.
7844 (fold_builtin): Update caller to match.
7845
7846 PR bootstrap/15009
7847 * bb-reorder.c (fix_up_fall_thru_edges): Init cond_jump.
7848
7849 PR bootstrap/14999
7850 * builtins.c (fold_builtin_cabs): Mark fndecl as unused.
7851
7852 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7853
7854 * varasm.c (compare_constant, case VIEW_CONVERT_EXPR): Add case.
7855
7856 * expmed.c (expand_mult_highpart_adjust): Make OP1 valid for MODE.
7857 (expand_mult_highpart_optab): Likewise.
7858 (expand_mult_highpart): Make OP1 valid for WIDER_MODE, not MODE.
7859
7860 2004-04-19 Paul Brook <paul@codesourcery.com>
7861
7862 * config/arm/arm.md (fixuns_truncsfsi2, fixuns_truncdfsi2,
7863 floatunssisf2, floatunssidf2): New patterns.
7864
7865 2004-04-18 Mark Mitchell <mark@codesourcery.com>
7866
7867 PR other/14918
7868 * doc/invoke.texi (-fprofile-generate): Document requirement to
7869 use -fprofile-generate when linking.
7870
7871 * doc/extend.texi (Strong Using): Warn users against using this
7872 feature.
7873
7874 2004-04-18 Richard Sandiford <rsandifo@redhat.com>
7875
7876 * config/mips/mips-protos.h (m16_usym8_4, m16_usym5_4): Delete.
7877 * config/mips/mips.h (mips_entry, mips_string_length): Delete.
7878 (CONSTANT_POOL_BEFORE_FUNCTION, ASM_OUTPUT_POOL_EPILOGUE): Undefine.
7879 * config/mips/mips.c (struct mips16_constant): Renamed from struct
7880 constant. Propogate change throughout file.
7881 (struct machine_function): Remove insns_len.
7882 (mips_string_length, mips16_strings, string_constants): Delete.
7883 (mips_classify_symbol): Return SYMBOL_CONSTANT_POOL for LABEL_REFs
7884 when generating mips16 code. Remove special mips16 treatment of
7885 string constants.
7886 (mips_symbolic_constant_p): Allow mips16 constant pool accesses
7887 to have the form LABEL+CONSTANT.
7888 (mips_symbolic_address_p): Fix comment.
7889 (m16_usym8_4, m16_usym5_4): Delete.
7890 (mips_output_function_epilogue): Remove mips16 string handling.
7891 (mips_output_mi_thunk): Call mips16_lay_out_constants.
7892 (mips_select_section, mips_encode_section_info): Remove mips16
7893 string handling.
7894 (struct mips16_constant_pool): New.
7895 (add_constant): Take a mips16_constant_pool structure. Keep pool
7896 sorted into order of ascending mode size. Keep track of the highest
7897 possible start address, taking padding and the masking of the base PC
7898 value into account.
7899 (dump_constants_1): New function, split out from dump_constants.
7900 Handle vector constants. Use gen_consttable_{int,float} rather than
7901 separate functions for each mode.
7902 (dump_constants): Simplify. Use GET_MODE_ALIGNMENT. Use gen_align
7903 rather than separate functions for each alignment.
7904 (mips_find_symbol): Delete.
7905 (mips16_insn_length): New function, split out from
7906 mips16_lay_out_constants.
7907 (mips16_rewrite_pool_refs): New function.
7908 (mips16_lay_out_constants): Rework. Remove string handling.
7909 Always create an inline constant pool.
7910 * config/mips/mips.md (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT)
7911 (UNSPEC_ALIGN): New constants.
7912 (UNSPEC_CONSTTABLE_[QHSD]I, UNSPEC_CONSTTABLE_[SD]F): Delete.
7913 (UNSPEC_ALIGN_[248]): Delete.
7914 (consttable_int, consttable_float, align): New patterns.
7915 (consttable_[qhsd]i, consttable_[sd]f, align_[248]): Delete.
7916
7917 2004-04-17 Aldy Hernandez <aldyh@redhat.com>
7918
7919 * config/rs6000/altivec.h (vec_any_numeric): Correct typo in
7920 __unn_args_eq.
7921
7922 2004-04-17 Alan Modra <amodra@bigpond.net.au>
7923
7924 PR target/14715
7925 * config/rs6000/rs6000.c (rs6000_stack_info): Make parm_size agree
7926 with STARTING_FRAME_OFFSET.
7927
7928 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
7929
7930 * config/mips/mips.h (PREDICATE_CODES): Add macc_msac_operand.
7931 * config/mips/mips.c (macc_msac_operand): New function.
7932 * config/mips/mips.md (*msac): Move after *macc.
7933 (*msac2): New. Generalize macc-related peepholes so that they apply
7934 to msac too.
7935
7936 2004-04-17 Paolo Bonzini <bonzini@gnu.org>
7937
7938 * opts.c (decode_options): Do not enable flag_rename_registers
7939 and flag_web at -O3.
7940 * toplev.c (flag_rename_registers): Initialize
7941 flag_rename_registers and flag_web to
7942 AUTODETECT_FLAG_VAR_TRACKING.
7943 (default_debug_hooks): New global.
7944 (process_options): Initialize default_debug_hooks. Warn if
7945 -fvar-tracking specified but not supported by the current
7946 debug format. Do not run var tracking at -O0 or if not
7947 supported by the current debug format, even if
7948 -fvar-tracking was given. If -fno-rename-registers
7949 is not specified, always run register renaming if var
7950 tracking is supported by the default debugging information
7951 format for the target, and we are at -O1 or higher; similarly
7952 for -fweb, but only at -O2 or higher.
7953 * doc/invoke.texi (Optimize Options): Document this.
7954
7955 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
7956
7957 * configure.ac (gcc_cv_ld_as_needed): Use AC_CACHE_CHECK.
7958 * configure: Regenerate.
7959
7960 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
7961
7962 * gcc.c (used_arg): Check whether an option has been removed.
7963
7964 2004-04-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7965
7966 * config.gcc (i[34567]86-*-solaris2*): Default to DWARF-2
7967 debugging on Solaris 7 and up.
7968
7969 2004-04-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7970
7971 * doc/install.texi (Specific, mips-sgi-irix5): Reflect working
7972 IRIX 5 port.
7973 Remove -save-temps workaround, handled automatically.
7974 Require GNU binutils 2.15 for debugging.
7975 Remove SGI make warnings since GNU make is now required.
7976 (Specific, mips-sgi-irix6): Some markup fixes.
7977 Describe MIPSpro C problems and workarounds.
7978 Mention working O32 ABI support.
7979 Recommend GNU as 2.15 for O32 with debugging.
7980 Remove description of fixed structure pass/return bug.
7981
7982 2004-04-16 DJ Delorie <dj@redhat.com>
7983
7984 * sdbout.c (sdbout_one_type): Use TYPE_VALUES for enums, not
7985 TYPE_FIELDS.
7986 (sdbout_finish): Don't free deferred_global_decls; it's GC'd.
7987
7988 2004-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7989
7990 * pa.md: Remove unnecessary declarations for asm_out_file.
7991
7992 * pa64-regs.h (DBX_REGISTER_NUMBER): Simplify and correct mapping of
7993 SAR register. Fix comment.
7994 (ADDITIONAL_REGISTER_NAMES): Correct register number of SAR register
7995 (%cr11).
7996
7997 * pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld.
7998
7999 2004-04-16 Nick Clifton <nickc@redhat.com>
8000
8001 * config/arm/arm.c (arm_override_options): Revert previous patch.
8002 * config/arm/t-xscale-elf: Disable iwmmxt multilibs until they can
8003 be safely built.
8004
8005 2004-04-16 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8006
8007 * config/m32r/m32r.h (BIG_ENDIAN_BIT): Deleted to fix endian
8008 bug.
8009 (TARGET_LITTLE_ENDIAN, TARGET_BIG_ENDIAN,
8010 TARGET_DEFAULT): Changed. Ditto.
8011 (LITTLE_ENDIAN_BIT, TARGET_CPU_DEFAULT,
8012 TARGET_ENDIAN_DEFAULT): Added. Ditto.
8013 * config/m32r/little.h (TARGET_LITTLE_ENDIAN): Deleted.
8014 (TARGET_ENDIAN_DEFAULT): Added.
8015
8016 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8017
8018 * builtins.def (BUILT_IN_ISDIGIT, BUILT_IN_ISXDIGIT): Mark with
8019 ATTR_CONST_NOTHROW_LIST.
8020
8021 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8022
8023 PR/middle-end 14915
8024 * builtins.c (expand_builtin_signbit): Test BYTES_BIG_ENDIAN, not
8025 BITS_BIG_ENDIAN.
8026
8027 2004-04-15 Pat Haugen <pthaugen@us.ibm.com>
8028
8029 * ra-debug.c (ra_print_rtx): Add break's to case legs.
8030
8031 2004-04-14 James E Wilson <wilson@specifixinc.com>
8032
8033 * Makefile.in (fixinc.sh): Set WARN_CFLAGS to empty string.
8034
8035 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
8036
8037 * libada-mk.in: New file.
8038 * configure.ac: Create libada-mk from libada-mk.in.
8039 * configure: Regenerate.
8040
8041 2004-04-14 Uros Bizjak <uros@kss-loka.si>
8042
8043 * optabs.h (enum optab_index): Add new OTI_logb and OTI_ilogb.
8044 (logb_optab, ilogb_optab): Define corresponding macros.
8045 * optabs.c (init_optabs): Initialize logb_optab and ilogb_optab.
8046 * genopinit.c (optabs): Implement logb_optab and ilogb_optab
8047 using logb?f2 and ilogb?i2 patterns.
8048 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOGB{,F,L}
8049 using logb_optab, and BUILT_IN_ILOGB{,F,L} using ilogb_optab.
8050 (expand_builtin): Expand BUILT_IN_LOGB{,F,L} and BUILT_IN_ILOGB{,F,L}
8051 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
8052
8053 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_XTRACT_FRACT
8054 and UNSPEC_XTRACT_EXP.
8055
8056 * config/i386/i386.md (*fxtractdf3, *fxtractsf3, *fxtractxf3): New
8057 patterns to implement fxtract x87 instruction.
8058 (logbdf2, logbsf2, logbxf2, ilogbsi2): New expanders to implement
8059 logb, logbf, logbl, ilogb, ilogbf and ilogbl built-ins as inline x87
8060 intrinsics.
8061 (UNSPEC_XTRACT_FRACT, UNSPEC_XTRACT_EXP): New unspecs to represent
8062 x87's fxtract insn.
8063
8064 2004-04-14 Eric Christopher <echristo@redhat.com>
8065
8066 * config/mips/t-elf: Enable multilibs by default.
8067
8068 2004-04-14 Andreas Tobler <a.tobler@schweiz.ch>
8069
8070 * bb-reorder.c (fix_crossing_conditional_branches): Adjust the
8071 previous fix to check HAVE_return at runtime too.
8072
8073 2004-04-14 Nick Clifton <nickc@redhat.com>
8074
8075 * config/arm/arm.c (arm_override_options): If the user has not
8076 specified an ABI, then default to AAPCS for the iWMMXt processor.
8077 * config/arm/t-xscale-elf: Remove redundant multilib specifications.
8078 * config/arm/t-xscale-coff: Likewise.
8079
8080 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8081
8082 * builtins.c (fold_builtin_isdigit): New.
8083 (fold_builtin): Handle BUILT_IN_ISDIGIT.
8084 * defaults.h: Add TARGET_DIGIT0 and sort.
8085 * doc/tm.texi: Add TARGET_BS and TARGET_DIGIT0.
8086
8087 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8088
8089 * builtins.c (fold_builtin_cabs, fold_builtin): Use
8090 `mathfn_built_in' to determine the new builtin.
8091 * fold-const.c (fold): Likewise.
8092
8093 2004-04-14 Richard Sandiford <rsandifo@redhat.com>
8094
8095 * doc/invoke.texi: Rename MIPS's -mfix-vr4122-bugs to -mfix-vr4120.
8096 * config/mips/mips.h (MASK_FIX_VR4120): Renamed from MASK_FIX_VR4122.
8097 (TARGET_FIX_VR4120): Likewise TARGET_FIX_VR4122.
8098 (TARGET_SWITCHES): Replace -mfix-vr4122-bugs with -mfix-vr4120.
8099 (ASM_SPEC): Update accordingly.
8100 * config/mips/mips.c: Update after above renaming.
8101 * config/mips/mips.md, config/mips/t-vr, config/mips/vr.h: Likewise.
8102 * config/mips/vr4120-div.S: Renamed from vr4122-div.S.
8103
8104 2004-04-13 James E Wilson <wilson@specifixinc.com>
8105
8106 * c-opt.c (c_common_post_options): If this_input_filename is NULL,
8107 increment errorcount and return false instead of true.
8108
8109 2004-04-13 Uros Bizjak <uros@kss-loka.si>:
8110
8111 * optabs.c (expand_twoval_unop): Reorder function arguments.
8112 * builtins.c (expand_builtin_mathfn_3): Update calls to
8113 expand_twoval_unop.
8114
8115 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_TAN_ONE
8116 and UNSPEC_TAN_TAN. Add missing comment.
8117
8118 * config/i386/i386.md (*tandf3_1, *tansf3_1, *tanxf3_1): New
8119 patterns to implement fptan x87 instruction.
8120 (tandf2, tansf2, tanxf2): New expanders to implement tan, tanf
8121 and tanl built-ins as inline x87 intrinsics. Define corresponding
8122 peephole2 optimizers for 'fptan; fstp %st(0); fld1' sequence.
8123 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): New unspecs to represent
8124 x87's fptan insn.
8125
8126 2004-03-13 Richard Henderson <rth@redhat.com>
8127
8128 * bb-reorder.c (fix_crossing_unconditional_branches): Use Pmode
8129 for LABEL_REFs.
8130
8131 * defaults.h (HOT_TEXT_SECTION_NAME): Add leading dot.
8132 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Likewise.
8133 * doc/invoke.texi: Update to match.
8134
8135 * varasm.c (unlikely_text_section): Use assemble_align instead of
8136 ASM_OUTPUT_ALIGN. Use it in the correct place with an approximately
8137 correct alignment argument.
8138
8139 2004-04-13 Ulrich Weigand <uweigand@de.ibm.com>
8140
8141 * reload1.c (emit_reload_insns): Set reg_has_output_reload to one
8142 after setting reg_last_reload_reg for optional output reloads.
8143
8144 2004-04-12 Fariborz Jahanian <fjahanian@apple.com>
8145
8146 * config/rs6000/altivec.h (vec_mergeh, vec_mergel):
8147 Definition of these two macros are corrected by adding
8148 matchine right paren.
8149
8150 2004-04-12 Jonathan Larmour <jifl@eCosCentric.com>
8151
8152 * fix-header.c: kill(), putenv() and tzset() are POSIX not ANSI.
8153
8154 2004-04-12 Roger Sayle <roger@eyesopen.com>
8155
8156 * config/i386/i386.c (output_387_reg_move): New function.
8157 * config/i386/i386-protos.h (output_387_reg_move): Prototype here.
8158 * config/i386/i386.md (*movsf_1, *movsf1_nointerunit,
8159 *movdf_nointeger, *movdf_integer, *movxf_nointeger, *movxf_integer,
8160 *extendsfdf2_1, *extendsfxf2_1, *extenddfxf2_1, truncdfsf2_noop,
8161 truncxfsf2_noop, truncxfdf2_noop): Call output_387_reg_move.
8162
8163 2004-04-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8164
8165 * c-decl.c (finish_decl): Make a decl_stmt for a variable-sized
8166 TYPE_DECL.
8167 * c-semantics.c (genrtl_decl_stmt): Handle TYPE_DECL.
8168 * stmt.c (expand_decl): Remove redundant expansion of TYPE_DOMAIN.
8169 * stor-layout.c (variable_size): Don't check for MINUS_EXPR.
8170 Use skip_simple_arithmetic to find SAVE_EXPR.
8171 (force_type_save_exprs, force_type_save_exprs_1): New functions.
8172 * tree-inline.c (remap_type, case POINTER_TYPE, case REFERENCE_TYPE):
8173 Properly chain multiple pointers.
8174 (copy_tree_r): Copy a TYPE_DECL.
8175 * tree.c (variably_modified_type_p): Add some missing tests and
8176 make some other minor changes.
8177 * tree.h (force_type_save_exprs): New declaration.
8178
8179 2004-04-12 Roger Sayle <roger@eyesopen.com>
8180
8181 * simplify-rtx.c (simplify_binary_operation) <UDIV, DIV, UMOD, MOD>:
8182 Remove fall throughs. Convert 0/x and 0%x into x&0 when x has
8183 side-effects. Don't convert x/1.0 into x if we honor signaling NaNs.
8184 Convert x/-1.0 into -x if we don't honor signaling NaNs. Convert
8185 x/-1 into -x. Optimize x%1 into x&0 if x has side-effects. Optimize
8186 x%-1 into 0 (or x&0 if x has side-effects).
8187
8188 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
8189
8190 * config/rs6000/rs6000.md: Document why a pattern is not
8191 available.
8192
8193 * config/rs6000/rs6000.c (rs6000_emit_cmove): Disable comparisons
8194 of floats on the E500.
8195 (branch_positive_comparison_operator): Do not allow NE even on the
8196 E500.
8197
8198 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
8199
8200 * config/rs6000/rs6000.c (rs6000_assemble_integer): Change
8201 in_text_unlikely_section to in_unlikely_text_section.
8202
8203 2004-04-11 Roger Sayle <roger@eyesopen.com>
8204
8205 * fold-const.c (fold_binary_op_with_conditional_arg): Tweak
8206 calling convention to allow a NULL_TREE to be returned. Factor
8207 sanity checks from callers, return NULL_TREE when appropriate.
8208 (fold): Handle COMPOUND_EXPR operands of binary expressions
8209 before COND_EXPR operands. Use reorder_operands_p(a,b) to check
8210 whether a op (b,c) can be rewritten as (b, a op c). Simplify
8211 calls to fold_binary_op_with_conditional_arg.
8212
8213 2004-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8214
8215 * config/mips/iris5.h (current_section_flags): Add
8216 in_unlikely_executed_text and default case.
8217
8218 2004-04-11 Andreas Tobler <a.tobler@schweiz.ch>
8219
8220 * bb-reorder.c (fix_crossing_conditional_branches): Fix bootstrap
8221 failure on solaris. Place ifdef HAVE_return around gen_ret call.
8222 * cfgrtl.c (force_nonfallthru_and_redirect): Remove ifdef
8223 HAVE_return and place it around the place where it is needed.
8224
8225 2004-04-11 Andrew Pinski <pinskia@physics.uc.edu>
8226
8227 * varasm.c (text_section): Use TEXT_SECTION_ASM_OP and
8228 ASM_OUTPUT_ALIGN instead of SECTION_FORMAT_STRING
8229 and NORMAL_TEXT_SECTION_NAME.
8230 (unlikely_text_section): Check targetm.have_named_sections
8231 instead of TARGET_ASM_NAMED_SECTION and use TEXT_SECTION_ASM_OP
8232 instead of SECTION_FORMAT_STRING.
8233 * config/mips/iris5.h (current_section_name): Add
8234 in_unlikely_executed_text case and move the abort into the switch.
8235 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME): Remove.
8236 (NORMAL_TEXT_SECTION_NAME): Remove.
8237 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
8238 (SECTION_FORMAT_STRING): Remove.
8239 * defaults.h (SECTION_FORMAT_STRING): Remove.
8240 * tm.texi (NORMAL_TEXT_SECTION_NAME): Remove.
8241 (SECTION_FORMAT_STRING): Remove.
8242
8243 2004-04-10 Joseph S. Myers <jsm@polyomino.org.uk>
8244
8245 * c-typeck.c (common_type): Prefer long long to long when same
8246 precision.
8247
8248 2004-04-09 Zack Weinberg <zack@codesourcery.com>
8249
8250 PR 14887
8251 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Look only at
8252 mode argument.
8253 * config/ia64/ia64.c (ia64_hpux_file_end): Check
8254 TREE_SYMBOL_REFERENCED on DECL_ASSEMBLER_NAME, not DECL_NAME.
8255
8256 2004-04-09 Roger Sayle <roger@eyesopen.com>
8257
8258 * simplify-rtx.c (mode_signbit_p): New function to check whether
8259 an RTX is an immediate constant that represents the most significant
8260 bit of a given machine mode.
8261 (simplify_unary_operation) <NOT>: Optimize ~(X+C) as X ^ ~C, where
8262 C is the sign bit.
8263 (simplify_binary_operation) <PLUS>: Optimize (X^C1) + C2 as X^(C1^C2)
8264 when C2 is the sign bit.
8265 (simplify_binary_operation) <XOR>: Canonicalize X^C as X+C when C
8266 is the sign bit. Optimize (X+C1) ^ C2 as X^(C1^C2) when C1 is the
8267 sign bit.
8268
8269 2004-04-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8270
8271 * builtins.c (mathfn_built_in): Check TYPE_MAIN_VARIANT, not
8272 TYPE_MODE.
8273
8274 2004-04-09 Andrew Pinski <pinskia@physics.uc.edu>
8275
8276 * c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead
8277 of TREE_READONLY for types.
8278
8279 2004-04-09 Caroline Tice <ctice@apple.com>
8280
8281 * basic-block.h (struct edge_def): Add new field, crossing_edge.
8282 (struct basic_block_def): Add new field, partition.
8283 (UNPARTITIONED, HOT_PARTITION, COLD_PARTITION): New constant macro
8284 definitions.
8285 (partition_hot_cold_basic_blocks): Add extern function
8286 declaration.
8287 * bb-reorder.c (function.h, obstack.h, expr.h, regs.h): Add four new
8288 include statements.
8289 (N_ROUNDS): Increase the maximum number of rounds by 1.
8290 (branch_threshold): Add array value for new round.
8291 (exec_threshold): Add array value for new round.
8292 (push_to_next_round_p): New function.
8293 (add_unlikely_executed_notes): New function.
8294 (find_rarely_executed_basic_blocks_and_crossing_edges): New function.
8295 (mark_bb_for_unlikely_executed_section): New function.
8296 (add_labels_and_missing_jumps): New function.
8297 (add_reg_crossing_jump_notes): New function.
8298 (fix_up_fall_thru_edges): New function.
8299 (find_jump_block): New function.
8300 (fix_crossing_conditional_branches): New function.
8301 (fix_crossing_unconditional_branches): New function.
8302 (fix_edges_for_rarely_executed_code): New function.
8303 (partition_hot_cold_basic_blocks): New function.
8304 (find_traces): Add an extra round for partitioning hot/cold
8305 basic blocks.
8306 (find_traces_1_round): Add a parameter. Modify to push all cold blocks,
8307 and only cold blocks, into the last (extra) round of collecting traces.
8308 (better_edge_p): Add a parameter. Modify to favor non-crossing edges
8309 over crossing edges.
8310 (bb_to_key): Add code to correctly identify cold blocks when
8311 doing partitioning.
8312 (connect_traces): Modify to connect all the non-cold traces first, then
8313 go back and connect up all the cold traces.
8314 (reorder_basic_blocks): Add call to add_unlikely_executed_notes.
8315 * cfg.c (entry_exit_blocks): Add initialization for partition field in
8316 entry and exit blocks.
8317 * cfgbuild.c (make_edges): Update current_function_has_computed_jump
8318 if we are doing hot/cold partitioning.
8319 * cfgcleanup.c (cfglayout.h): Add new include statement.
8320 (try_simplify_condjump): Modify to not attempt on blocks with jumps
8321 that cross section boundaries.
8322 (try_forward_edges): Likewise.
8323 (merge_blocks_move_predecessor_nojumps): Likewise.
8324 (merge_blocks_move_successor_nojumps): Likewise.
8325 (merge_blocks_move): Likewise.
8326 (try_crossjump_to_edge): Modify to not attempt after we have done
8327 the block partitioning.
8328 (try_crossjump_bb): Modify to not attempt on blocks with jumps that
8329 cross section boundaries.
8330 (try_optimize_cfg): Likewise.
8331 * cfghooks.c (tidy_fallthru_edges): Modify to not remove indirect
8332 jumps that cross section boundaries.
8333 * cfglayout.c (flags.h): Add new include statement.
8334 (update_unlikely_executed_notes): New function.
8335 (fixup_reorder_chain): Add code so when a new jumping basic block is
8336 added, it's UNLIKELY_EXECUTED_CODE and REG_CROSSING_JUMP notes are
8337 updated appropriately.
8338 (duplicate_insn_chain): Add code to duplicate the new NOTE insn
8339 introduced by this optimization.
8340 * cfglayout.h (scan_ahead_for_unlikely_executed_note): Add new
8341 extern function declaration.
8342 * cfgrtl.c (can_delete_note_p): Add NOTE_INSN_UNLIKELY_EXECUTED_CODE to
8343 list of notes that can be deleted.
8344 (create_basic_block_structure): Add initialization for partition field.
8345 (rtl_can_merge_blocks): Modify to test blocks for jumps that cross
8346 section boundaries.
8347 (try_redirect_by_replacing_jump): Modify to not attempt on jumps that
8348 cross section boundaries.
8349 (commit_one_edge_insertion): Add code so newly created basic block
8350 ends up in correct (hot or cold) section. Modify to disallow
8351 insertions before NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
8352 (rtl_verify_flow_info_1): Add code to verify that no fall_thru edge
8353 crosses section boundaries.
8354 (cfg_layout_can_merge_blocks_p): Modify to test blocks for jumps that
8355 cross section boundaries.
8356 (force_nonfallthru_and_redirect): Modify to make sure new basic block
8357 ends up in correct section, with correct notes attached.
8358 * common.opt (freorder-blocks-and-partition): Add new flag for this
8359 optimization.
8360 * dbxout.c (dbx_function_end): Add code to make sure scope labels at
8361 the end of functions are written into the correct (hot or cold)
8362 section.
8363 (dbx_source_file): Add code so writing debug file information
8364 doesn't incorrectly change sections.
8365 * defaults.h (NORMAL_TEXT_SECTION_NAME): New constant macro, for use
8366 in partitioning hot/cold basic blocks into separate sections.
8367 (SECTION_FORMAT_STRING): New constant macro, for linux/i386 hot/cold
8368 section partitioning.
8369 (HAS_LONG_COND_BRANCH): New constant macro, indicating whether or not
8370 conditional branches can span all of memory.
8371 (HAS_LONG_UNCOND_BRANCH): New constant macro, indicationg whether or not
8372 unconditional branches can span all of memory.
8373 * final.c (scan_ahead_for_unlikely_executed_note): New function.
8374 (final_scan_insn): Add code to check for NOTE instruction indicating
8375 whether basic block belongs in hot or cold section, and to make sure
8376 the current basic block is being written to the appropriate section.
8377 Also added code to ensure that jump table basic blocks end up in the
8378 correct section.
8379 * flags.h (flag_reorder_blocks_and_partition): New flag.
8380 * ifcvt.c (find_if_case_1): Modify to not attempt if conversion if
8381 one of the branches has a jump that crosses between sections.
8382 (find_if_case_2): Likewise.
8383 (ifcvt): Modify to not attempt to mark loop exit edges after
8384 hot/cold partitioning has occurred.
8385 * opts.c (decode_options): Code to handle new flag,
8386 flag_reorder_blocks_and_partition; also to turn it off if
8387 flag_exceptions is on.
8388 (common_handle_option): Code to handle new flag,
8389 flag_reorder_blocks_and_partition.
8390 * output.h (unlikely_text_section): New extern function declaration.
8391 (in_unlikely_text_section): New extern function declaration.
8392 * passes.c (rest_of_handle_stack_regs): Add
8393 flag_reorder_blocks_and_partition as an 'or' condition for calling
8394 reorder_basic_blocks.
8395 (rest_of_handle_reorder_blocks): Add flag_reorder_blocks_and_partition
8396 as an 'or' condition for calling reorder_basic_blocks.
8397 (rest_of_compilation): Add call to partition_hot_cold_basic_blocks.
8398 * print-rtl.c (print_rtx): Add code for handling new note,
8399 NOTE_INSN_UNLIKELY_EXECUTED_CODE
8400 * rtl.c (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note insn (see below).
8401 (REG_CROSSING_JUMP): New kind of reg_note, to mark jumps that
8402 cross between section boundaries.
8403 * rtl.h (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note instruction,
8404 indicating the basic block containing it belongs in the cold section.
8405 (REG_CROSSING_JUMP): New type of reg_note, to mark jumps that cross
8406 between hot and cold sections.
8407 * toplev.c (flag_reorder_blocks_and_partition): Add code to
8408 initialize this flag, and to tie it to the command-line option
8409 freorder-blocks-and-partition.
8410 * varasm.c (cfglayout.h): Add new include statement.
8411 (unlikely_section_label_printed): New global variable, used for
8412 determining when to output section name labels for cold sections.
8413 (in_section): Add in_unlikely_executed_text to enum data structure.
8414 (text_section): Modify code to use SECTION_FORMAT_STRING and
8415 NORMAL_TEXT_SECTION_NAME macros.
8416 (unlikely_text_section): New function.
8417 (in_unlikely_text_section): New function.
8418 (function_section): Add code to make sure beginning of function is
8419 written into correct section (hot or cold).
8420 (assemble_start_function): Add code to make sure stuff is written to
8421 the correct section.
8422 (assemble_zeros): Add in_unlikely_text_section as an 'or' condition
8423 to an if statement that was checking 'in_text_section'.
8424 (assemble_variable): Add 'in_unlikely_text_section' as an 'or'
8425 condition to an if statement that was checking 'in_text_section'.
8426 (default_section_type_flags_1): Add check: if in cold section
8427 flags = SECTION_CODE.
8428 * config/darwin.c (darwin_asm_named_section): Modify to use
8429 SECTION_FORMAT_STRING if we are partitioning hot/cold blocks.
8430 * config/i386/i386.h (HAS_LONG_COND_BRANCH): Defined this macro
8431 specifically for the i386.
8432 (HAS_LONG_UNCOND_BRANCH): Defined this macro specifically for the i386.
8433 * config/rs6000/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Change
8434 text string to something more informative.
8435 (NORMAL_TEXT_SECTION_NAME): Add new definition.
8436 (SECTION_FORMAT_STRING): Add new definition.
8437 * config/rs6000/rs6000.c (rs6000_assemble_integer): Add
8438 '!in_unlikely_text_section' as an 'and' condition to an if statement
8439 that was already checking '!in_text_section'.
8440 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME,NORMAL_TEXT_SECTION_NAME,
8441 UNLIKELY_EXECUTED_TEXT_SECTION_NAME,SECTION_FORMAT_STRING): Make
8442 sure these are properly defined for linux on ppc.
8443 * doc/invoke.texi (freorder-blocks-and-partition): Add documentation
8444 for this new flag.
8445 * doc/rtl.texi (REG_CROSSING_JUMP): Add documentation for new
8446 reg_note.
8447 * doc/tm.texi (NORMAL_TEXT_SECTION_NAME, SECTION_FORMAT_STRING,
8448 HAS_LONG_COND_BRANCH, HAS_LONG_UNCOND_BRANCH): Add documentation for
8449 these new macros.
8450
8451 2004-04-08 Roger Sayle <roger@eyesopen.com>
8452
8453 * function.c (gen_mem_addressof): When changing the RTX from a REG
8454 to a MEM, clear MEM_VOLATILE_P which was formerly REG_USERVAR_P.
8455
8456 2004-04-08 Roger Sayle <roger@eyesopen.com>
8457
8458 PR target/14888
8459 * config/i386/i386.md (truncdfsf2_noop, truncxfsf2_noop,
8460 truncxfdf2_noop): Provide dummy "fmov" implementations.
8461
8462 2004-04-08 Ian Lance Taylor <ian@wasabisystems.com>
8463
8464 * gcc.c (default_compilers): Add missing initializers.
8465
8466 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
8467 Return 1 if file was successfully mapped.
8468
8469 2004-04-08 Geoffrey Keating <geoffk@apple.com>
8470
8471 PR pch/13419
8472 PR pch/14137
8473 Radar #: 3315288
8474 * doc/invoke.texi (Precompiled Headers): Suggest -o
8475 to put an output file in a particular place. Be more detailed
8476 about which options affect PCH validity and which options
8477 might not work.
8478 * c-pch.c (pch_matching): New.
8479 (MATCH_SIZE): New.
8480 (struct c_pch_validity): New field 'match'.
8481 (pch_init): Handle pch_matching.
8482 (c_common_valid_pch): Check pch_matching.
8483
8484 * explow.c: Fix typo defining default of PROMOTE_FUNCTION_MODE.
8485
8486 2004-04-08 Mark Mitchell <mark@codesourcery.com>
8487
8488 * doc/invoke.texi (Precompiled Headers): Warn about known
8489 problems.
8490
8491 2004-04-08 Danny Smith <dannysmith@users.sourceforge.net>
8492
8493 PR c++/14808
8494 * defaults.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): New macro. Default
8495 to 1 if ASM_OUTPUT_DEF is defined.
8496 * doc/tm.texi (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document.
8497 * config/i386/cygming.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): Define.
8498 Set to non-zero iff not a one_only decl.
8499
8500 2004-04-08 Paul Brook <paul@codesourcery.com>
8501
8502 * arm.h (CLASS_LIKELY_SPILLED_P): Define.
8503
8504 2004-04-08 Paul Brook <paul@codesourcery.com>
8505
8506 * explow.c (promote_mode): Use PROMOTE_FUNCTION_MODE instead of
8507 PROMOTE_FOR_CALL_ONLY.
8508 * config/arm/arm-protos.h (arm_function_value): Declare.
8509 * config/arm/arm.h (TARGET_PROMOTE_FUNCTION_ARGS): Define.
8510 (TARGET_PROMOTE_PROTOTYPES): Return false.
8511 (arm_function_value): New function.
8512 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Define.
8513 (FUNCTION_VALUE): Call arm_function_value.
8514 * config/cris/cris.h (PROMOTE_MODE): Rename ...
8515 (PROMOTE_FUNCTION_MODE): ... to this.
8516 (PROMOTE_FOR_CALL_ONLY): Remove.
8517 * config/mmix/mmix.h: Likewise.
8518 * config/s390/s390.h: Likewise.
8519 * config/sparc/sparc.h: Likewise.
8520 * config/sparc/sparc.c: Update comments about PROMOTE_MODE.
8521 * doc/tm.texi (PROMOTE_FUNCTION_MODE): Document.
8522 (TARGET_PROMOTE_FUNCTION_MODE, TARGET_PROMOTE_FUNCTION_RETURN): Update.
8523 (PROMOTE_FOR_CALL_ONLY): Remove.
8524
8525 2004-04-08 Joel Sherrill <joel@oarcorp.com>
8526
8527 PR ada/14538
8528 * ada/5rosinte.adb: Remove fake mprotect() body.
8529 * ada/5rosinte.ads: Add SA_SIGINFO.
8530 * ada/5rtpopsp.adb: Rewrite to use new interface.
8531 * ada/init.c: Reorder so the simple single OS conditional __rtems__
8532 is tested before more complex ones which mix UNIX and embedded
8533 systems in the conditional.
8534
8535 2004-04-08 Joel Sherrill <joel@oarcorp.com>
8536
8537 PR ada/14665
8538 * ada/osint.adb (Find_Program_Name): Rework to properly handle
8539 filenames which end in .exe or have versioning suffixes like VMS.
8540
8541 2004-04-08 Andrew Pinski <pinskia@physics.uc.edu>
8542
8543 PR target/10129
8544 * config/darwin.c (darwin_encode_section_info): When the decl has
8545 a DECL_INITIAL, it is only defined also when it is not a common.
8546
8547 2004-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8548
8549 * builtins.c (fold_builtin_isascii, fold_builtin_toascii): New.
8550 (fold_builtin): Handle BUILT_IN_ISASCII and BUILT_IN_TOASCII.
8551
8552 2004-04-07 H.J. Lu <hongjiu.lu@intel.com>
8553
8554 * config/ia64/ia64.c (ia64_encode_section_info): Don't prod
8555 global register variables.
8556
8557 2004-04-07 Joseph S. Myers <jsm@polyomino.org.uk>
8558
8559 * fixinc/inclhack.def (rpc_xdr_lvalue_cast_a,
8560 rpc_xdr_lvalue_cast_b): New fixes.
8561 * fixinc/fixincl.x: Regenerate.
8562 * fixinc/tests/base/rpc/xdr.h: Add new tests.
8563
8564 2004-04-07 David Edelsohn <edelsohn@gnu.org>
8565
8566 * config/rs6000/rs6000.c (processor_target_table): Add MASK_MFCRF
8567 to power4 and power5 entries.
8568
8569 2004-04-06 Geoffrey Keating <geoffk@apple.com>
8570
8571 * c-common.h (pending_lang_change): Mark for PCH.
8572
8573 2004-04-07 Caroline Tice <ctice@apple.com>
8574
8575 * gcc.c (main): Move 'break' in main loops (on an error)
8576 to wait until error processing has occurred.
8577
8578 2004-04-06 Nathanael Nerode <neroden@gcc.gnu.org>
8579
8580 * config.gcc: Stop changing enable_threads midstream.
8581 Replace uses of enable_threads_flag with enable_threads.
8582 * configure.ac: Replace uses of enable_threads_flag with
8583 enable_threads. Improve autoconf quotation in one place.
8584 * configure: Regenerate.
8585
8586 2004-04-06 Uros Bizjak <uros@kss-loka.si>
8587
8588 * builtins.c: Implement support for sincos function.
8589 (expand_builtin_mathfn): Remove BUILT_IN_SIN{,F,L} and
8590 BUILT_IN_COS{,F,L}.
8591 (expand_builtin_mathfn_3): New function.
8592 (expand_builtin): Expand BUILT_IN_SIN{,F,L} and
8593 BUILT_IN_COS{,F,L} using expand_builtin_mathfn_3 if
8594 flag_unsafe_math_optimization is set.
8595
8596 * optabs.h (enum optab_index): Add new OTI_sincos.
8597 (sincos_optab): Define corresponding macro.
8598
8599 * optabs.c (init_optabs): Initialize sincos_optab.
8600 (expand_twoval_unop): New function.
8601
8602 * genopinit.c (optabs): Implement sincos_optab using sincos?f3
8603 patterns.
8604
8605 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_SINCOS_COS
8606 and UNSPEC_SINCOS_SIN.
8607
8608 * config/i386/i386.md (sincosdf3, sincossf3, *sincosextendsfdf3,
8609 sincosxf3): New patterns to implement sincos, sincosf and sincosl
8610 built-ins as inline x87 intrinsics. Define splits for
8611 sindf2, sinsf2, *sinextendsfdf2, sinxf2, cosdf2,
8612 cossf2, *cosextendsfdf2 and cosxf2 patterns from corresponding
8613 sincos patterns.
8614 (sindf2, sinsf2, sinxf2): Rename to *sindf2, *sinsf2, *sinxf2.
8615 (cosdf2, cossf2, cosxf2): Rename to *cosdf2, *cossf2, *cosxf2.
8616
8617 (UNSPEC_SINCOS_SIN, UNSPEC_SINCOS_COS): New unspecs to represent
8618 x87's fsincos insn.
8619
8620 2004-04-06 Devang Patel <dpatel@apple.com>
8621
8622 PR 14467
8623 * config/darwin.h (LINK_COMMAND_SPEC): Use c++filt instead of c++filt3.
8624
8625 2004-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8626
8627 * doc/install.texi: Update HP-UX 11 installation procedure.
8628
8629 2004-04-06 Paul Brook <paul@codesourcery.com>
8630
8631 * doc/sourcebuild.texi: Remove obsolete contraint on testcases.
8632
8633 2004-04-05 Kaz Kojima <kkojima@gcc.gnu.org>
8634
8635 * config/sh/sh.c (prepare_move_operands): Use emit_call_insn
8636 when the TLS address is generated by a function call.
8637 * config/sh/sh.md (tls_global_dynamic): Use a call expression.
8638 (tls_local_dynamic): Likewise.
8639
8640 2004-04-05 Andrew Pinski <pinskia@physics.uc.edu>
8641
8642 * tree.c (reconstruct_complex_type): Use TYPE_READONLY
8643 and TYPE_VOLATILE.
8644
8645 2004-04-05 Caroline Tice <ctice@apple.com>
8646
8647 * gcc.c (combine_flag): New global variable, for new driver option.
8648 (struct compiler): Add two new fields, to be used when
8649 combining multiple input files in a single pass (IMA).
8650 (default_compilers): Add values for the new fields to all
8651 compiler entries. Modify the "@c" compiler entry for doing IMA
8652 properly with "-save-temps" and the "combine" flag.
8653 (option_map): Add new driver option, "--combine", to tell driver
8654 to pass multiple input files to compiler at one time.
8655 (have_o_argbuf_index): New global variable.
8656 (store_arg): Modify to assign value to have_o_argbuf_index.
8657 (struct infile): Add three new fields, to help with IMA.
8658 (display_help): Add help for new "combine" option.
8659 (process_command): Remove local variable have_o; add code to check
8660 for new "combine" option; remove assignment to combine_inputs.
8661 (do_spec_1): Modify to deal with IMA better.
8662 (main): Make variable 'lang_n_infiles' local to entire function
8663 rather than to a single block. Use flag combine_flag to
8664 determine whether to do IMA or not; Modify loop initializing
8665 infiles to deal properly with linker files.
8666 Add code for doing preprocessing in presence of
8667 IMA with "-save-temps" flag. Modify "main" loop to handle
8668 multiple input files, in multiple languages, with or without
8669 preprocessing, gracefully.
8670 * toplev.c (set_src_pwd): Modify to not complain if attempting to
8671 re-set it to same directory it's previously been set to (avoid
8672 irritating, meaningless warning messages when doing IMA with
8673 save-temps).
8674 * doc/invoke.texi: Add "-combine" to list of Overall Options;
8675 remove documentation about IMA that is no longer accurate; Add
8676 documentation explaining what "-combine" does.
8677 * ada/lang-specs.h: Add initialization values for new fields in
8678 "struct compiler".
8679 * cp/lang-specs.h: Likewise.
8680 * f/lang-specs.h: Likewise.
8681 * java/lang-specs.h: Likewise.
8682 * objc/lang-specs.h: Likewise.
8683 * treelang/lang-specs.h: Likewise.
8684
8685 2004-04-05 David Edelsohn
8686
8687 * config/rs6000/rs6000.c (VTABLE_NAME_P): Add _ZTI to special
8688 symbol handling.
8689
8690 2004-04-05 Jakub Jelinek <jakub@redhat.com>
8691 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8692
8693 PR optimization/13424 (hppa), bootstrap/14462, c/14828
8694 * pa.md: Use replace_equiv_address to retain the attributes of the
8695 memory operands used in the split and peephole2 patterns for optimizing
8696 the pre-reload movstrsi, movstrdi, clrstrsi and clrstrdi patterns.
8697
8698 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8699
8700 * c-decl.c (build_compound_literal): Use TYPE_READONLY.
8701 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
8702 * objc/objc-act.c (adorn_decl, gen_declspecs): Likewise.
8703 * c-typeck.c (decl_constant_value): Don't access DECL_INITIAL of a
8704 PARM_DECL.
8705 * calls.c (flags_from_decl_or_type): Use TYPE_READONLY and do so only
8706 for a type.
8707 * print-tree.c (print_node): Properly handle side-effects, readonly,
8708 and constant flags.
8709 * tree.c (build1_stat, build_expr_wfl): Only look at TREE_SIDE_EFFECTS
8710 and TREE_CONSTANT if not a type.
8711 * tree.h (IS_NON_TYPE_CODE_CLASS): New macro.
8712 (IS_EXPR_CODE_CLASS): Write 'E', not 'e'.
8713 (NON_TYPE_CHECK): New macro.
8714 (TREE_SIDE_EFFECT, TREE_READONLY, TREE_CONSTANT: Add check.
8715
8716 2004-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
8717
8718 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Set
8719 to DWARF2_DEBUG unconditionally.
8720 (ASM_DEBUG_SPEC): Set the default to --gdwarf2 unconditionally.
8721
8722 2004-04-04 Ian Lance Taylor <ian@wasabisystems.com>
8723 Nathanael Nerode <neroden@gcc.gnu.org>
8724
8725 PR target/14548
8726 * config.host: Set the shell variable host_can_use_collect2.
8727 Set it to yes by default, and to no for alpha*-dec-*vms*,
8728 i[34567]86-*-mingw32*, and powerpc-*-beos*.
8729 * configure.ac: Set and substitute the shell variable collect2.
8730 Give an error if use_collect2 is yes and host_can_use_collect2 is
8731 no.
8732 * Makefile.in (COLLECT2): Rename from USE_COLLECT2. Change all
8733 uses. Initialize to @collect2@.
8734 (STAGESTUFF): Remove $(USE_COLLECT2).
8735 * config/alpha/x-vms (USE_COLLECT2): Don't set.
8736 * config/i386/t-mingw32 (USE_COLLECT2): Likewise.
8737 * config/rs6000/t-beos (USE_COLLECT2): Likewise.
8738 * config/pa/t-pa64: Remove commented out USE_COLLECT2.
8739 * configure: Regenerate.
8740
8741 2004-04-04 Roger Sayle <roger@eyesopen.com>
8742
8743 * simplify-rtx.c (simplify_binary_operation): Constant fold
8744 DIV, MOD, UDIV and UMOD using div_and_round_double.
8745
8746 2004-04-04 Mark Mitchell <mark@codesourcery.com>
8747
8748 PR c++/14804
8749 * varasm.c (initializer_constant_valid_p): Allow NOP_EXPRs to
8750 RECORD_TYPEs.
8751
8752 2004-04-04 Mark Mitchell <mark@codesourcery.com>
8753
8754 * doc/invoke.texi (-mabi=o64): Create link to O64 ABI
8755 documentation.
8756
8757 2004-04-04 Roger Sayle <roger@eyesopen.com>
8758
8759 * cse.c (cse_insn): Correct usage of simplify_replace_rtx when
8760 updating the REG_EQUAL note on an insn's libcall_insn.
8761
8762 2004-04-04 Roger Sayle <roger@eyesopen.com>
8763
8764 * df.h: Tidy up whitespace in the definitions of the DF_ flags.
8765
8766 2004-04-03 Roger Sayle <roger@eyesopen.com>
8767
8768 * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
8769 with reorder_operands_p.
8770
8771 2004-04-03 Jan Hubicka <jh@suse.cz>
8772
8773 * md.texi (vec_set, vec_extract, vec_init): Document.
8774
8775 2004-04-02 Gabor Loki <loki@inf.u-szeged.hu>
8776
8777 * opts.c (decode_options): Do function inlining with very small
8778 max-inline-insns-* parameters when optimizing for size.
8779
8780 2004-04-02 Vladimir Makarov <vmakarov@redhat.com>
8781
8782 * config/i386/i386.h (TARGET_NOCONA): New macro.
8783 (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
8784 (processor_type): Add PROCESSOR_NOCONA.
8785
8786 * config/i386/i386.md (cpu): Add nocona to the attribute values.
8787
8788 * config/i386/i386.c (nocona_cost): New variable.
8789 (m_NOCONA): New macro.
8790 (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
8791 x86_branch_hints, x86_use_sahf, x86_single_stringop,
8792 x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
8793 x86_integer_DFmode_moves, x86_partial_reg_dependency,
8794 x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
8795 x86_decompose_lea, x86_arch_always_fancy_math_387,
8796 x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
8797 x86_ext_80387_constants, x86_four_jump_limit):
8798 (override_options): Add nocona_cost to processor_target_table.
8799 Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
8800 (incdec_operand): Prevent inc/dec generation for Nocona too.
8801 (ix86_issue_rate): Add PROCESSOR_NOCONA.
8802
8803 2004-04-01 Andrew Pinski <pinskia@physics.uc.edu>
8804
8805 * rtlanal.c (find_reg_note): Manually
8806 unswitch the loop.
8807
8808 2004-04-01 Mark Mitchell <mark@codesourcery.com>
8809
8810 * genemit.c (gen_split): Change prototype of generated code.
8811 * genrecog.c (write_action): Adjust prototype for and calls to
8812 gen_split_*.
8813 * gensupport.c (struct queue_elem): Add split field.
8814 (queue_pattern): Return a value. Clear the split field.
8815 (process_rtx): Maintain an association between an insn and the
8816 split generated from it for a define_insn_and_split.
8817 (process_one_cond_exec): Generate a new split for a
8818 define_insn_and_split.
8819 * config/arm/arm-protos.h (arm_split_constant): Add insn
8820 parameter.
8821 (emit_constant_insn): New function.
8822 (arm_gen_constant): Use it.
8823 * config/arm/arm.md: Adjust calls to arm_split_constant.
8824
8825 2004-04-02 Jan Hubicka <jh@suse.cz>
8826
8827 * cgraph.c: Add overall comment.
8828 (cgraph_inline_hash): New global variable.
8829 (cgraph_create_node): Break out from ...
8830 (cgraph_node): ... here.
8831 (cgraph_edge): New function.
8832 (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
8833 (cgraph_remove_edge): Accept edge, intead of source and destination.
8834 (cgraph_redirect_edge_callee): New.
8835 (cgraph_remove_node): Update all new datastructures.
8836 (cgraph_record_call, cgraph_remove_call): Kill.
8837 (dump_cgraph_node): Break out from ... ; dump new datastructures.
8838 (dump_cgraph): ... here.
8839 (cgraph_function_possibly_inlined_p): Use new hashtable.
8840 (cgraph_clone_edge, cgraph_clone_node): New.
8841 * cgraph.h: Include hashtab.h
8842 (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
8843 fields, add inlined_to pointer.
8844 (cgraph_node): Add pointer to next_clone.
8845 (cgraph_remove_edge, cgraph_create_edge): Update prototype.
8846 (cgraph_remove_call, cgraph_record_call): Kill.
8847 (cgraph_inline_hash): Declare.
8848 (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
8849 cgraph_redirect_edge_callee): Declare.
8850 (cgraph_create_edges, cgraph_inline_p): Update prorotype.
8851 (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
8852 cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
8853 * cgraphunit.c: Add overall comment.
8854 (cgraph_optimize_function): Kill.
8855 (cgraph_assemble_pending_functions): Do not assemble inline clones.
8856 (cgraph_finalize_function): Update call of cgraph_remove_node
8857 (record_call_1): Record call sites.
8858 (cgraph_create_edges): Accept node instead of decl argument.
8859 (error_found): New static variable.
8860 (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
8861 (cgraph_analyze_function): Update for new datastructures.
8862 (cgraph_finalize_compilation_unit): Plug memory leak.
8863 (cgraph_optimize_function): Kill.
8864 (cgraph_expand_function): Do not use cgraph_optimize_function.
8865 (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
8866 cgraph_inlined_callees): Kill.
8867 (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
8868 clones.
8869 (estimate_growth): Simplify.
8870 (cgraph_clone_inlined_nodes): New function.
8871 (cgraph_mark_inline_edge): Re-implement.
8872 (cgraph_mark_inline): Likewise.
8873 (cgraph_check_inline_limits): Simplify.
8874 (cgraph_recursive_inlining_p): New.
8875 (update_callee_keys): Break out from ...
8876 (cgraph_decide_inlining_of_small_functions): ... here; simplify.
8877 (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
8878 Likewise.
8879 (cgraph_expand_all_functions): Remove inline clones from the ordered
8880 list.
8881 (cgraph_preserve_function_body_p): New predicate.
8882 (cgraph_optimize): Verify cgraph.
8883 * function.h (struct function): Add fields saved_tree/saved_args.
8884 * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
8885 * toplev.c (rest_of_compilation): Do not free cfun.
8886 * tree-inline.c: Include function.h
8887 (struct inline_data): Add saving_p field; replace decl/current_decl by
8888 node/current_node.
8889 (insert_decl_map): New function.
8890 (copy_body_r): Handle saving; update cgraph datastructure.
8891 (copy_body): Handle recursive inlining.
8892 (initialize_inlined_parameters): Likewise.
8893 (expand_call_inline): Propagate node attributes; update cgraph.
8894 (optimize_inline_calls): Verify that datastructure still match.
8895 (save_body): New function.
8896 * tree-inline.h (save_body): New.
8897 * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
8898 * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
8899 * langhooks.c (lang_hooks): Add update_decl_after_saving.
8900
8901 2004-04-01 Serge Belyshev <1319@bot.ru>
8902
8903 PR target/14702
8904 * config/i386/i386.md: fix source operand constraints in
8905 mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
8906
8907 2004-04-01 Waldek Hebisch <hebisch@math.uni.wroc.pl>
8908
8909 * fold-const.c (folda): Preserve types of comparisons.
8910
8911 2004-04-01 Richard Henderson <rth@redhat.com>
8912
8913 * toplev.c (backend_init): Move init_optimization_passes call ...
8914 (lang_dependent_init): ... here.
8915
8916 2004-04-01 Alan Modra <amodra@bigpond.net.au>
8917 Jakub Jelinek <jakub@redhat.com>
8918
8919 * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
8920 -lgcc --as-needed -lgcc_s --no-as-needed by default.
8921 * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
8922 * configure: Rebuilt.
8923 * config.in: Rebuilt.
8924 * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
8925 (stage2-start, stage3-start, stage4-start): Likewise.
8926 (stageprofile-start, stagefeedback-start): Likewise.
8927
8928 2004-04-01 Jakub Jelinek <jakub@redhat.com>
8929
8930 * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
8931 * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
8932 * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
8933 * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
8934 (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
8935 * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
8936 with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
8937 * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
8938 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
8939 * config/sparc/t-linux: Removed.
8940
8941 2004-04-01 Jakub Jelinek <jakub@redhat.com>
8942
8943 PR c++/14755
8944 * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
8945 "bitfld++ == const" to "++bitfld == const + incr" transformations.
8946
8947 2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8948
8949 * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
8950 * stor-layout.c (layout_decl): Likewise.
8951 * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
8952 * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
8953 * print-tree.c (print_node): Handle various used of unsigned_flag.
8954 * tree.def (BIT_FIELD_REF): Update comment.
8955 * tree.h (TREE_UNSIGNED): Deleted.
8956 (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
8957
8958 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8959
8960 * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
8961 Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
8962 * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
8963 * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
8964 * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
8965 * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
8966 * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
8967 * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
8968 * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
8969 * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
8970 REAL_TYPE, not INTEGER_TYPE.
8971 (layout_type, case VECTOR_TYPE): Simplify code.
8972 * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
8973 * tree.h: Update comments.
8974 (STRIP_NOPS): Use TYPE_UNSIGNED.
8975 (TYPE_UNSIGNED): New macro.
8976 (TYPE_TRAP_SIGNED): Remove now redundant check.
8977 (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
8978
8979 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8980
8981 * function.c (put_var_into_stack): Properly set orig_reg for indirect.
8982
8983 2004-03-31 Andrew Pinski <pinskia@physics.uc.edu>
8984
8985 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
8986 Add darwin-fpsave.asm, darwin-vecsave.asm,
8987 and darwin-world.asm.
8988 (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
8989 as the asm files contain altivec instructions.
8990 * config/rs6000/darwin-fpsave.asm: New file.
8991 * config/rs6000/darwin-vecsave.asm: New file.
8992 * config/rs6000/darwin-world.asm: New file.
8993
8994 2004-03-31 Zack Weinberg <zack@codesourcery.com>
8995
8996 * gengtype-yacc.y (option, stringseq): Add missing
8997 terminating semicolon.
8998
8999 2004-03-30 David Edelsohn <edelsohn@gnu.org>
9000
9001 * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
9002 tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
9003 tls_dtprel_ha_32, tls_dtprel_ha_64,
9004 tls_dtprel_lo_32, tls_dtprel_lo_64,
9005 tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
9006 tls_tprel_ha_32, tls_tprel_ha_64,
9007 tls_tprel_lo_32, tls_tprel_lo_64,
9008 tls_got_tprel_32, tls_got_tprel_64,
9009 tls_tls_32, tls_tls_64): Replace register_operand with
9010 gpc_reg_operand.
9011
9012 2004-03-30 Mostafa Hagog <mustafa@il.ibm.com>
9013
9014 * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
9015 *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
9016 *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
9017 *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
9018 *ctrdi_internal6): Replace register_operand with
9019 nonimmediate_operand.
9020
9021 2004-03-29 Fariborz Jahanian <fjahanian@apple.com>
9022
9023 * fold-const.c (fold): Reassociate multiply expression
9024 with an adjacent non-multiply expression to use
9025 architecture's multiply-add instruction.
9026
9027 2004-03-30 Zack Weinberg <zack@codesourcery.com>
9028
9029 * gengtype.c (create_option): New function.
9030 * gengtype.h: Prototype it.
9031 * gengtype-yacc.y (stringseq): New rule.
9032 (option): Use create_option. Add new bare ID production. Use
9033 stringseq, not STRING directly.
9034
9035 * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
9036 * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
9037 * varray.h, config/alpha/alpha.c:
9038 Use new shorter form of GTY markers.
9039
9040 * doc/gty.texi: Rewrite.
9041
9042 2004-03-30 Andrew Pinski <pinskia@physics.uc.edu>
9043
9044 * config/darwin.c (machopic_function_base_name):
9045 Remove current_name and getting the name of the
9046 current function.
9047
9048 2004-03-30 Nick Clifton <nickc@redhat.com>
9049
9050 * config/arm/arm.md (thumb_jump): Reduce the backward branch
9051 range, and increase the forward branch range, to allow for
9052 the fact that the PC will be off by 4.
9053
9054 2004-03-30 Alan Modra <amodra@bigpond.net.au>
9055
9056 * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
9057
9058 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
9059
9060 * config/rs6000/rs6000.c (output_vec_const_move):
9061 Find all cases of EASY_VECTOR_15_ADD_SELF.
9062 (easy_vector_constant_add_self): Accept
9063 all vector constant loadable by vsplt* and vadd*.
9064 (easy_vector_same): Use easy_vector_splat_const.
9065 (easy_vector_const): Use easy_vector_splat_const.
9066 (easy_vector_splat_const): New function.
9067 (gen_easy_vector_constant_add_self): New function.
9068
9069 * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
9070 New prototype.
9071
9072 * config/rs6000/altivec.md (movv4si splitter): Change to
9073 emit move insn with halfed vector constant.
9074 (*movv8hi splitter): Likewise.
9075 (*movv16qi splitter): Likewise.
9076
9077 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
9078
9079 PR 11591
9080 * config/rs6000/rs6000.c (rs6000_legitimate_address):
9081 Allow any offset to argument pointer in no-strict case.
9082
9083 2004-03-30 Jan Hubicka <jh@suse.cz>
9084
9085 * toplev.c (backend_init): Add missing call to inint_optimization_passes.
9086 * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
9087 dump file in non-unit-at-a-time mode.
9088
9089 2004-03-29 Hans-Peter Nilsson <hp@axis.com>
9090
9091 * config/cris/cris.h: Correct #ifdef to test for
9092 HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
9093 HAVE_AS_MUL_BUG_ABORT_OPTION.
9094
9095 2004-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9096
9097 * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
9098 the address inside the old RTL.
9099
9100 2004-03-28 Zack Weinberg <zack@codesourcery.com>
9101
9102 * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
9103 (struct c_binding, struct c_scope): Add chain_next
9104 attributes to GTY markers.
9105 (struct lang_identifier, struct lang_tree_node): Define
9106 here...
9107 * c-tree.h: ... not here. No longer need to declare struct
9108 c_binding either. Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
9109 * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
9110 to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
9111
9112 PR 14734, 11944
9113 * c-decl.c (get_parm_info): If error_mark_node is encountered
9114 in the bindings chain, unbind and discard it; don't abort.
9115
9116 2004-03-28 Olga Golovonevsky <olga@il.ibm.com>
9117 Dorit Naishlos <dorit@il.ibm.com>
9118
9119 * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
9120 one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
9121
9122 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
9123
9124 * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
9125
9126 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
9127 (m68hc11_attribute_table): New attribute "page0" to mark a global
9128 variable as being allocated from within page0 section.
9129 (m68hc11_encode_label): New function.
9130 (m68hc11_strip_name_encoding): New function.
9131 (m68hc11_page0_symbol_p): New function.
9132 (m68hc11_indirect_p): Accept global variables marked in page0.
9133 (m68hc11_encode_section_info): Lookup "page0" attribute.
9134
9135 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
9136 represents access to page0 variables.
9137
9138 * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
9139 ("*logicalsi3_silshl16_zext"): Likewise.
9140 ("*ashldi3_const32"): Likewise.
9141 (peephole2 ashift): Likewise.
9142
9143 2004-03-28 Joseph S. Myers <jsm@polyomino.org.uk>
9144
9145 * c-tree.h (C_DECL_REGISTER): New.
9146 * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
9147 finish_decl, grokdeclarator, get_parm_info), c-typeck.c
9148 (build_array_ref, c_mark_addressable): Set and use it.
9149 * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
9150 Allow structures with volatile fields to be declared register.
9151 Don't check TREE_ADDRESSABLE before warning about taking address
9152 of register.
9153 * c-decl.c (finish_decl): Don't allow structures with volatile
9154 fields to be placed in named register.
9155 * doc/trouble.texi: Remove reference to structures with volatile
9156 fields in registers.
9157
9158 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
9159
9160 * function.c (thread_prologue_and_epilogue): Move
9161 NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
9162 before the epilogue.
9163
9164 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
9165
9166 * expr.c (store_constructor): Use gen_int_mode to correctly
9167 sign-extend CONST_INT value.
9168
9169 2004-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9170
9171 * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
9172 * builtins.def (DEF_C94_BUILTIN): New. Add wctype builtins.
9173 * doc/extend.texi: Likewise.
9174
9175 2004-03-26 Diego Novillo <dnovillo@redhat.com>
9176
9177 * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
9178 with TYPE_ORIG_SIZE_TYPE.
9179
9180 2004-03-25 Aldy Hernandez <aldyh@redhat.com>
9181
9182 PR 14219
9183 * c-typeck.c (build_binary_op): Do not allow comparisons of
9184 vectors.
9185
9186 2004-03-26 James A. Morrison <ja2morri@uwaterloo.ca>
9187
9188 * config.gcc: Remove sparc-tti-*.
9189 * config/sparc/pbd.h: Delete.
9190
9191 * config/sparc/sol2.h: Remove note about Sun OS 4.x.
9192 * config/sparc/aout.h: Likewise.
9193
9194 * config/sparc/sparc.h: Remove if 0'd code.
9195 * config/sparc/sparc.md (call): Remove if 0'd code.
9196 (call_value): Likewise.
9197 (nonlocal_goto): Likewise.
9198 (unimp_insn): Delete.
9199
9200 2004-03-25 Roger Sayle <roger@eyesopen.com>
9201
9202 * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
9203 BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
9204
9205 2004-03-25 Richard Henderson <rth@redhat.com>
9206
9207 PR 11527
9208 * c-typeck.c (pop_init_level): Emit pending init elements earlier
9209 rather than later.
9210
9211 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9212
9213 * builtins.c (fold_builtin): Fix error in last change.
9214
9215 2004-03-25 Richard Sandiford <rsandifo@redhat.com>
9216
9217 * config/mips/mips.h: Formatting fix.
9218
9219 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9220
9221 * builtins.def: Add ctype builtins.
9222 * doc/extend.texi: Likewise.
9223
9224 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9225
9226 * builtins.c (fold_builtin): Add new builtin optimizations for
9227 sqrt and/or cbrt.
9228 * fold-const.c (fold): Likewise.
9229
9230 2004-03-25 David Edelsohn <edelsohn@gnu.org>
9231
9232 * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
9233 (rs6000_sched_groups): New variable.
9234 (processor_target_table): Add power5.
9235 (rs6000_override_options): Set rs6000_sched_insert_nops,
9236 rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
9237 from rs6000_sched_groups.
9238 (output_cbranch): Use rs6000_always_hint.
9239 (rs6000_variable_issue): Use rs6000_sched_groups.
9240 (rs6000_adjust_cost): Add CPU_POWER5.
9241 (is_microcoded_insn): Use rs6000_sched_groups.
9242 (is_dispatch_slot_restricted): Use rs6000_sched_groups.
9243 Return 2 for POWER5 cracked instructions.
9244 (is_cracked_insn): Use rs6000_sched_groups.
9245 (is_branch_slot_insn): Use rs6000_sched_groups.
9246 (rs6000_issue_rate): Add CPU_POWER5.
9247 (rs6000_sched_finish): Use rs6000_sched_groups.
9248 (rs6000_rtx_costs): Add PROCESSOR_POWER5.
9249 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
9250 (DEFAULT_SCHED_COSTLY_DEP): Delete.
9251 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
9252 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
9253 * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
9254 * config/rs6000/power5.md: New file.
9255 * doc/invoke.texi: Add power5 option.
9256
9257 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
9258
9259 * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
9260 config/arm/arm.c, objc/objc-act.c: Fix comment typos.
9261 * doc/invoke.texi: Fix a typo.
9262
9263 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
9264
9265 PR optimization/9707.
9266 * stmt.c (emit_case_nodes): Emit equality comparisons instead
9267 of recursing if both children are single-valued cases with no
9268 children.
9269
9270 2004-03-25 Paul Brook <paul@codesourcery.com>
9271
9272 * config/arm/arm.c (vfp_print_multi): Remove.
9273 (arm_output_fldmx): New function.
9274 (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
9275 (arm_expand_prologue): Update to match.
9276 (arm_get_vfp_saved_size): New Function.
9277 (arm_get_frame_offsets): Use it.
9278 (arm_output_epilogue): Use new functions.
9279
9280 2004-03-24 Richard Henderson <rth@redhat.com>
9281
9282 * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
9283 (reg_known_value, reg_known_value_size): Likewise; make static.
9284 (reg_known_equiv_p): Make static.
9285 (clear_reg_alias_info): Update for new indexing.
9286 (get_reg_known_value, set_reg_known_value): New.
9287 (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
9288 (canon_rtx): Use them.
9289 (init_alias_analysis): Likewise. Allocate reg_known_value with gc.
9290 Don't play queer offsetting games with reg_known_value and
9291 reg_known_equiv_p.
9292 (end_alias_analysis): Free reg_known_value with gc.
9293 * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
9294 * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
9295 (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
9296 functions instead.
9297
9298 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
9299
9300 * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
9301 config/i386/mmintrin.h: Update copyright.
9302
9303 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
9304
9305 * configure.ac: Add --enable-werror-always (for top level bootstrap
9306 support).
9307 * configure: Regenerate.
9308
9309 2004-03-24 Ziemowit Laski <zlaski@apple.com>
9310
9311 * objc/objc-act.c (objc_comptypes): Treat comparisons
9312 between 'Class' and '<class> *' as explicitly invalid.
9313
9314 2004-03-24 David Edelsohn <edelsohn@gnu.org>
9315
9316 * doc/invoke.texi (-frename-registers): Add enabled at -O3.
9317 (-fprofile-values): Add enabled with profile-{generate,use}.
9318 (-fvpt): Same.
9319 (-ftracer): Add enabled with profile-use.
9320 (-funit-at-a-time): Add enabled at -O2,-O3.
9321 (-funroll-loops): Add enabled with profile-use.
9322 (-funswitch-loops): Add enabled with profile-use. Remove duplicates.
9323 (max-gcse-passes): Mention default.
9324 (max-cse-path-length): Mention default.
9325
9326 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
9327
9328 * Makefile.in (STRICT2_WARN): Reorder.
9329 * configure.ac: Check for -Wold-style-definition, and use it
9330 in strict1_warn if it's available.
9331 * configure: Regnerate.
9332
9333 2004-03-24 Paul Brook <paul@nowt.org>
9334
9335 * config.gcc <arm>: Add --with-abi=
9336 * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
9337 thumb_far_jump_used): Remove prototypes.
9338 (arm_needs_doubleword_align): Add prototype.
9339 (thumb_compute_initial_elimination_offset): Ditto.
9340 * config/arm/arm.c (arm_get_frame_offsets): New function.
9341 (use_return_insn, output_return_instruction, arm_output_epilogue,
9342 arm_output_function_epilogue, arm_compute_initial_elimination_offset,
9343 arm_expand_prologue, thumb_expand_epilogue): Use it.
9344 (arm_abi, target_abi_name, all_arm_abis): New variables.
9345 (arm_override_options): Set them. Set structure padding for AAPCS.
9346 (arm_return_in_memory): Update ABI check.
9347 (arm_init_cumulative_args): Initialize can_split.
9348 (arm_needs_doubleword_align): New function.
9349 (arm_function_arg): Don't split args after pushing to stack. Handle
9350 doubleword/even reg alignment.
9351 (arm_va_arg): Handle all doubleword aligned args.
9352 (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
9353 on ABI, not CPU.
9354 (arm_compute_save_reg0_reg12_mask): Fix comment.
9355 (thumb_get_frame_size, thumb_get_frame_size): Remove.
9356 (thumb_jump_far_used_p): Remove superfluous argument. Return save
9357 value for alignment.
9358 (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
9359 to match.
9360 (thumb_compute_initial_elimination_offset): New function.
9361 (thumb_expand_prologue): Use arm_get_frame_offsets. Remove
9362 unneccessary rounding.
9363 * config/arm/arm.h (target_abi_name): Declare.
9364 (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
9365 arm_abi_type, ARM_DEFAULT_ABI): Define.
9366 (ARM_FLAG_ATPCS): Remove.
9367 (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
9368 (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
9369 (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
9370 TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
9371 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
9372 Contitionalize on ABI, not CPU.
9373 (struct arm_stack_offsets): Define.
9374 (struct machine_function): Add stack_offsets. Remove frame_size.
9375 (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
9376 pushed.
9377 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
9378 doubleword alignment.
9379 (THUMB_INITIAL_ELIMINATION_OFFSET,
9380 ARM_INITIAL_ELIMINATION_OFFSET): Remove.
9381 (INITIAL_ELIMINATION_OFFSET): Call functions directly.
9382 * config/arm/arm.md (align_8): Enable for all targets.
9383 * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
9384 (ARM_DEFAULT_ABI): Define.
9385 * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
9386 -mstructure-size-boundary.
9387
9388 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
9389
9390 * configure.ac: Check for -Wno-variadic-macros; don't use
9391 -pedantic (in stage 1 or a simple 'make all') unless it's available,
9392 and if it's available, use it. Also, clean up check for
9393 -Wno-long-long.
9394 * configure: Regenerate.
9395
9396 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
9397
9398 * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
9399 * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
9400 (MULTILIB_DEFAULTS): Use it.
9401 (MIPS_CPU_STRING_DEFAULT): Remove.
9402 (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
9403 (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120. Make
9404 EABI64 -mlong32 the default ABI. Enforce the default architecture.
9405 * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
9406 march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
9407 (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
9408 (MULTILIB_EXCEPTIONS): Change choice of multilibs. Update comments
9409 accordingly.
9410
9411 2004-03-24 DJ Delorie <dj@redhat.com>
9412 Richard Sandiford <rsandifo@redhat.com>
9413
9414 * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
9415 (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
9416 (ASM_SPEC): Pass down -mfix-vr4122-bugs.
9417 * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
9418 in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
9419 (mips_init_libfuncs): Use special functions for divsi3 and modsi3
9420 if TARGET_FIX_VR4122.
9421 * config/mips/mips.md (define_attr length): Account for nops inserted
9422 after macc and dmult when using -mfix-vr4122-bugs.
9423 (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
9424 * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
9425 LIB2FUNCS_EXTRA. Add config/mips/vr4122-div.S.
9426 * config/mips/vr4122-div.S: New file.
9427 * doc/invoke.texi: Document -mfix-vr4122-bugs.
9428
9429 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
9430
9431 * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
9432 (TARGET_MIPS4130): New macro.
9433 (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
9434 * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
9435 (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
9436 with PROCESSOR_R4130.
9437 * config/mips/mips.md (define_attr cpu): Add r4130.
9438 * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
9439
9440 2004-03-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
9441 Richard Sandiford <rsandifo@redhat.com>
9442
9443 * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
9444
9445 2004-03-24 Alexandre Oliva <aoliva@redhat.com>
9446
9447 PR preprocessor/14438
9448 * cpplib.c (do_pragma): Remove line_change call after pragma
9449 handler.
9450
9451 2004-03-23 Ian Lance Taylor <ian@wasabisystems.com>
9452
9453 * doc/extend.texi (ARM Built-in Functions): Replace with correct
9454 declarations.
9455
9456 2004-03-23 Roger Sayle <roger@eyesopen.com>
9457
9458 * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
9459 if flag_unsafe_math_optimizations.
9460 * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
9461 and TARGET_80387 expand using truncdfsf2_noop pattern.
9462 (truncxfsf2): Likewise using truncxfsf2_noop.
9463 (truncxfdf2): Likewise using truncxfdf2_noop.
9464 (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
9465
9466 2004-03-23 Ziemowit Laski <zlaski@apple.com>
9467
9468 * hooks.c (hook_constcharptr_tree_null): New hook.
9469 * hooks.h (hook_constcharptr_tree_null): New prototype.
9470 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
9471 * target.h (mangle_fundamental_type): New target hook.
9472 * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
9473 target hook at rs6000_mangle_fundamental_type.
9474 (rs6000_mangle_fundamental_type): New function.
9475 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
9476
9477 2004-03-23 Zack Weinberg <zack@codesourcery.com>
9478
9479 PR 12267, 12391, 12560, 13129, 14114, 14133
9480 * c-tree.h: Forward declare struct c_binding. Declare
9481 c_override_bindings_to_false. Update prototypes.
9482 (struct lang_identifier): Update comments. Change fields to be
9483 struct c_binding *.
9484 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
9485 (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
9486 (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
9487 (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
9488 * c-common.h: Update prototypes.
9489 * c-decl.c (struct c_scope): Update commentary. Remove names,
9490 names_last, parms, parms_last, tags, and shadowed fields. Add
9491 bindings and depth fields.
9492 (scope_freelist): Move to more appropriate location.
9493 (c_print_identifier): Update for changes to struct lang_identifier.
9494 (objc_mark_locals_volatile): Update for new bindings structures.
9495 (global_bindings_p): Honor c_override_global_bindings_to_false.
9496 (pushlevel): Rename to push_scope; take no arguments; use the
9497 scope_freelist; initialize scope->depth and check for overflow.
9498 (poplevel): Rename to pop_scope; totally rewritten for new bindings
9499 structures.
9500 (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
9501 C_DECL_INVISIBLE, for certain decisions. Adjust some diagnostics.
9502 Improve some commentary. Adjust handling of forward parm decls.
9503 (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
9504 Preserve C_DECL_IN_EXTERNAL_SCOPE.
9505 (warn_if_shadowing): Correct indentation. Improve diagnostics.
9506 (pushdecl): Remove unnecessary assertion. Short-circuit anonymous
9507 decls. Rewrite for new bindings structures. Improve commentary.
9508 Eliminate the copy_node call.
9509 (implicit_decl_warning): Use the "diag" idiom (as seen in
9510 locate_old_decl) to reduce code duplication; call locate_old_decl
9511 if appropriate. Relocate to remove need for forward declaration.
9512 (implicitly_declare): Adjust for new bindings structures. Kludge
9513 around Objective-C not-really-builtin functions.
9514 (undeclared_variable): Improve diagnostics. If current_function_decl
9515 is nonnull but current_function_scope is null, use current_scope.
9516 Use bind.
9517 (lookup_tag): Adjust for new bindings structures. Kludge around
9518 Objective-C's tag declarations that wind up in the external scope.
9519 (lookup_name): Adjust for new bindings structures. Kludge around
9520 c-common.c's pseudo-typedefs that wind up in the external scope.
9521 (lookup_name_current_level): Rename lookup_name_in_scope; take a
9522 second argument indicating the scope to examine; rewrite for
9523 new bindings structures.
9524 (c_init_decl_processing): Adjust for renamed functions. Do not
9525 initialize current_file_decl, first_builtin_decl, last_builtin_decl.
9526 First scope pushed is the external scope, not the global scope.
9527 (builtin_function): Use bind, not pushdecl. Adjust other bits
9528 for new data structures. Keep track of builtins that should be
9529 made visible automatically.
9530 (start_decl): Adjust diagnostics. Remove unnecessary call to
9531 expand_decl.
9532 (grokparms): Return 0 if arg_types is error_mark_node.
9533 (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
9534 reversed sense. Rewrite for new bindings structures. Do not
9535 leave any decls in the scope, to prevent pop_scope from doing
9536 contradictory things with them.
9537 (finish_struct, finish_enum): Remove redundant diagnostics.
9538 (build_enumerator): Don't cascade diagnostics for error_mark_node.
9539 Mark location where -pedantic changes the meaning of the program.
9540 (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
9541 parameter decls into the function's scope structure using bind.
9542 Warn here about function definitions in the wrong style.
9543 Adjust diagnostics.
9544 (store_parm_decls): Correct the determination of whether a
9545 function was defined with a prototype.
9546 (c_write_global_declarations): Operate on all file decls and on
9547 the external scope. Split body of the loop to...
9548 (c_write_global_declarations_1): ... this new function, to avoid
9549 code duplication.
9550 (truly_local_externals, first_builtin_decl, last_builtin_decl)
9551 (make_scope, pop_scope, in_parm_level_p, set_block)
9552 (any_external_decl, record_external_decl, bind_label, getdecls)
9553 (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
9554 (c_reset_state): Delete.
9555 (visible_builtins, c_override_global_bindings_to_false)
9556 (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
9557 (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
9558 (external_scope, binding_freelist, bind, free_binding_and_advance)
9559 (push_file_scope, pop_file_scope): New.
9560 (pushtag, pushdecl_top_level, lookup_label, declare_label)
9561 (define_label, c_make_fname_decl, finish_decl)
9562 (mark_forward_parm_decls, build_compound_literal)
9563 (grokdeclarator, start_function, check_for_loop_decls)
9564 (identifier_global_value, record_builtin_type): Minor adjustments
9565 for new bindings structures. Improve diagnostics and commentary.
9566 * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
9567 pushlevel/poplevel respectively.
9568 (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
9569 * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
9570 Warn about YYDEBUG not being defined only if -dy. Remove no-longer-
9571 correct loop over multiple translation units; call fatal_error if
9572 requested to compile more than one file at once. (This disables
9573 IMA temporarily - an up-front error being preferable to a crash.)
9574 * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
9575 (all actions): Adjust calls to pushlevel/poplevel.
9576 (parsing_iso_function_signature): Delete.
9577 (extdef_1): Fold into extdef.
9578 (old_style_parm_decls_1): Fold into old_style_parm_decls. Don't
9579 warn here about function definitions in the wrong style.
9580 (after_tyle_declarator, parm_declarator_starttypename)
9581 (parm_declarator_nostarttypename, notype_declarator): Remove
9582 commented-out productions.
9583 (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
9584 an empty TREE_LIST node. Adjust calls to get_parm_info.
9585 (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
9586 to suppress -Wold-style-definition after this error.
9587 (c_parse_file): Don't clear the binding stack or call
9588 finish_fname_decls here. Correct comment.
9589 * c-typeck.c (same_translation_unit_p): Export.
9590 (common_type): Use c_override_global_bindings_to_false, not
9591 pushlevel/poplevel/declare_parm_level.
9592 * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
9593 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
9594 and LANG_HOOKS_GETDECLS with do-nothing stubs.
9595 * objc/objc-lang.c: Likewise.
9596 * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
9597 get_parm_info.
9598 (OBJC_VOID_AT_END): Delete; replace all uses
9599 with void_list_node.
9600 (generate_forward_declaration_to_string_table): Delete.
9601 * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
9602
9603 * coverage.c (create_coverage): Don't pushdecl anything.
9604 * langhooks.c (lhd_clear_binding_stack): Call
9605 lang_hooks.decls.poplevel, not poplevel.
9606 * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
9607 circular list rather than going into an infinite loop.
9608
9609 2004-03-23 Olivier Hainque <hainque@act-europe.fr>
9610
9611 * optabs.c (expand_binop): When synthesizing double word rotates
9612 from single word shifts, use a new register target if the provided
9613 target is not a REG already.
9614
9615 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9616
9617 * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
9618 * c-common.c (handle_mode_attribute): Add extra arg to
9619 build_pointer_type_for_mode and build_reference_type_for_mode.
9620 * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
9621 for INTEGER_CST.
9622 * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
9623 Chain pointers via TYPE_NEXT_PTR_TO.
9624 (build_reference_type_for_mode): Similarly.
9625 (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
9626 and build_reference_type_for_mode.
9627 (tree_check4_failed): New function.
9628 * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
9629 (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
9630 (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
9631 Add check.
9632
9633 2004-03-23 Roger Sayle <roger@eyesopen.com>
9634
9635 * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
9636 A is nonnegative or B is nonnegative. Similarly A|B is nonnegative
9637 when both A and B are nonnegative.
9638 (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
9639 nonzero.
9640
9641 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
9642
9643 * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
9644 VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
9645
9646 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
9647
9648 PR optimization/14669
9649 * fold-const.c (fold): Only unwiden integer comparisons for equality
9650 and inequality operators, or when the signedness doesn't change.
9651
9652 2004-03-23 Jakub Jelinek <jakub@redhat.com>
9653
9654 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
9655 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
9656 * config/sparc/t-linux: New file.
9657
9658 2004-03-23 Richard Sandiford <rsandifo@redhat.com>
9659
9660 * gcse.c (can_assign_to_reg_p): New function, split out from...
9661 (want_to_gcse_p): ...here.
9662 (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
9663 the rhs of a store.
9664
9665 2004-03-22 Diego Novillo <dnovillo@redhat.com>
9666
9667 * c-typeck.c (same_translation_unit_p): Fix pasto.
9668
9669 2004-03-22 David Edelsohn <edelsohn@gnu.org>
9670
9671 * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
9672 (PARAM_MAX_SCHED_REGION_INSNS): New.
9673 * sched-rgn.c: Include params.h
9674 (MAX_RGN_BLOCKS): Delete.
9675 (MAX_RGN_INSNS): Delete.
9676 (too_large): Return bool. Convert to PARAM_VALUE.
9677 * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
9678 * doc/invoke.texi (param): Document max-sched-region-blocks and
9679 max-sched-region-insns.
9680
9681 2004-03-22 Joel Brobecker <brobecker@gnat.com>
9682
9683 * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
9684 for base types.
9685
9686 2004-03-22 Joel Brobecker <brobecker@gnat.com>
9687
9688 * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
9689 change.
9690
9691 2004-03-22 Jakub Jelinek <jakub@redhat.com>
9692
9693 PR c/14069
9694 * c-decl.c (finish_struct): Change type of incorrect flexible array
9695 field into error_mark_node.
9696
9697 2004-03-22 Andrew Pinski <pinskia@physics.uc.edu>
9698
9699 PR target/14580
9700 * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
9701 who are not local for Darwin PIC.
9702
9703 2004-03-22 Ulrich Weigand <uweigand@de.ibm.com>
9704
9705 * regrename.c (regrename_optimize): Set regs_ever_live for all
9706 registers introduced as replacement.
9707
9708 2004-03-22 Eric Botcazou <ebotcazou@libertysurf.fr>
9709
9710 PR middle-end/14470
9711 * expr.c (mark_queue): New function.
9712 (emit_insns_enqueued_after_mark): New function replacing
9713 emit_queue. Clear the body of emitted queued insns.
9714 (emit_queue): Call emit_insns_enqueued_after_mark.
9715 (store_expr): Mark the increment queue on entry. Emit
9716 only the incrementations queued when expanding the source.
9717
9718 2004-03-22 Nathanael Nerode <neroden@gcc.gnu.org>
9719
9720 * configure.ac: Allow --disable-coverage-flags (for the future benefit
9721 of top level bootstrap, and consistency). Reindent.
9722 * configure: Regenerate.
9723
9724 2004-03-21 Kazu Hirata <kazu@cs.umass.edu>
9725
9726 * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
9727 ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
9728 unnecessary casts.
9729
9730 2004-03-22 Danny Smith <dannysmith@users.sourceforge.net>
9731
9732 PR target/14291
9733 * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
9734 __MINGW32__.
9735
9736 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
9737
9738 * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
9739 to nonimmediate_operand.
9740 ("*doloop_di"): Likewise.
9741
9742 2004-03-21 Alexandre Oliva <aoliva@redhat.com>
9743
9744 * real.h (struct real_value): Use the same type for all
9745 bitfields. Rename exp to uexp.
9746 (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
9747 Adjust all uses of exp...
9748 * builtins.c: ... here, ...
9749 * emit-rtl.c: ... here, and ...
9750 * real.c: ... and here.
9751
9752 2004-03-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
9753
9754 * pretty-print.c (pp_base_maybe_space): New function.
9755 * pretty-print.h (pp_base_maybe_space): Declare.
9756 (pp_maybe_space): New macro.
9757
9758 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
9759
9760 * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
9761
9762 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
9763
9764 * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
9765 of using register multiplication cost.
9766 (expand_mult): Adapt choose_mult_variant call.
9767 (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
9768 of MODE; pass appropriate cost bound. Adjust result when
9769 performing signed multiplication by a negative constant.
9770 Don't use intermediate modes larger than word_mode.
9771
9772 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9773
9774 * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
9775 * emit-rtl.c (component_ref_for_mem_expr): Likewise.
9776 (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
9777 * explow.c (expr_size): Likewise.
9778 * expr.h (placeholder_list, find_placeholder): Deleted.
9779 * expr.c (store_constructor): Likewise.
9780 (get_inner_reference): Likewise. Also don't call find_placeholder.
9781 (placeholder_list, find_placeholder): Deleted.
9782 (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
9783 (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
9784 (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
9785 * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
9786 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
9787 Likewise.
9788 * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
9789 (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
9790 * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
9791 (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
9792 Clean up by using first_rtl_op.
9793 (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
9794 (substitute_placeholder_in_expr): New function.
9795 * tree.def (WITH_RECORD_EXPR): Deleted.
9796 * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
9797 (substitute_placeholder_in_expr): New.
9798
9799 2004-03-21 Andrew Pinski <pinskia@gcc.gnu.org>
9800
9801 * dojump.c (prefer_and_bit_test): Fix which part of
9802 the and_test is replaced.
9803
9804 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
9805
9806 * frontends.texi: Add missing line.
9807
9808 2004-03-21 Zack Weinberg <zack@codesourcery.com>
9809 Chris Devers <cdevers@pobox.com>
9810 Joseph S. Myers <jsm@polyomino.org.uk>
9811
9812 * doc/frontends.texi: Rewrite.
9813 * doc/gcc.texi: Update last modification date.
9814
9815 2004-03-21 Josef Zlomek <zlomekj@suse.cz>
9816
9817 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
9818 message before redirecting the edge.
9819
9820 2004-03-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9821
9822 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
9823 flag.
9824 * explow.c (force_not_mem): Set REG_POINTER flag according to
9825 MEM_POINTER one.
9826 * rtl.h (MEM_POINTER): New macro.
9827 (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
9828 for MEM_POINTER.
9829
9830 2004-03-20 Roger Sayle <roger@eyesopen.com>
9831
9832 PR target/13889
9833 * cse.c (fold_rtx): Avoid substituting constants into unary
9834 conversion operations.
9835
9836 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9837
9838 * fold-const.c (fold): Replace "expr" with "t".
9839
9840 2004-03-20 Ian Lance Taylor <ian@wasabisystems.com>
9841
9842 PR c/12373
9843 * c-typeck.c (tagged_types_tu_compatible_p): Don't use
9844 DECL_ORIGINAL_TYPE if there isn't one.
9845
9846 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9847
9848 * fold-const.c (fold): Replace "final_type" with "type".
9849 Remove variable "final_type".
9850
9851 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9852
9853 * fold-const.c (fold): Constify "type".
9854 Replace "TREE_TYPE (t)" with "type".
9855
9856 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9857
9858 * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
9859 dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
9860 via (*targetm.foo) () with targetm.foo ().
9861
9862 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
9863
9864 PR other/14630
9865 * doc/install.texi: Add info directory category and entry.
9866
9867 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9868
9869 * fold-const.c (fold): Replace "t" with "tem" where it is used
9870 as a temporary variable. Remove "orig_t" and all of its uses.
9871
9872 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9873
9874 * fold-const.c (fold): Remove variable "invert".
9875 Move the handling of relational expressions that can be folded
9876 to a constant ...
9877 (fold_relational_const): ... here.
9878 (tree_expr_nonzero_p): New.
9879
9880 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
9881
9882 PR c/14635
9883 * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
9884 DEF_GCC_BUILTIN.
9885
9886 2004-03-20 Richard Sandiford <rsandifo@redhat.com>
9887
9888 * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
9889 (GTFILES): Add $(srcdir)/dojump.h.
9890 (gt-dojump.h): New dependency.
9891 * dojump.c (and_reg, and_test, shift_test): New static variables.
9892 (prefer_and_bit_test): New function.
9893 (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
9894
9895 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9896
9897 * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
9898 expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
9899 reorg.c, tree.h: Fix comment typos.
9900
9901 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
9902
9903 * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
9904 c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
9905 cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
9906 haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
9907 sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
9908 vmsdbgout.c: Replace calls via (*targetm.foo) () with
9909 targetm.foo ().
9910
9911 2004-03-19 Ziemowit Laski <zlaski@apple.com>
9912
9913 * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
9914 vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
9915 always_inline attribute.
9916 * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
9917 Treat expansion as completed even if literal argument is
9918 invalid (so that other expansions are not tried in vain).
9919
9920 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
9921
9922 * loop-doloop.c (add_test): Replace GEN_INT (0) with
9923 const0_rtx.
9924
9925 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
9926
9927 * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
9928 ...
9929 (fold_abs_const): ... here.
9930
9931 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9932
9933 * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
9934
9935 2004-03-19 Denis Chertykov <denisc@overta.ru>
9936
9937 PR target/11520
9938 * config/avr/avr.md ("call_insn"): Handle explicit integer
9939 specially.
9940 (call_value_insn): Likewise.
9941
9942 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9943
9944 * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
9945
9946 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
9947
9948 * fold-const.c (negate_expr): Move the handling of constants
9949 ...
9950 (fold_negate_const): ... here.
9951
9952 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9953
9954 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
9955 * langhooks.h (struct lang_hooks_for_types): New field hash_types.
9956 * tree.c (debug_no_type_hash): Deleted.
9957 (type_hash_canon): Abort if passed a variant.
9958 Check lang_hooks.types.hash_types.
9959 (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
9960 (build_array_type): Remove unnecessary allocation of pointer type.
9961 (build_complex_type): Properly qualify resulting type.
9962
9963 2004-03-19 Paolo Bonzini <bonzini@gnu.org>
9964
9965 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
9966
9967 2004-03-19 Richard Sandiford <rsandifo@redhat.com>
9968
9969 * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
9970 (expand_mult): ...here.
9971 (extract_high_half): New, split out from expand_mult_highpart.
9972 (expand_highpart_optab): Likewise. Don't clobber target prematurely.
9973 (expand_highpart): Evaluate the cost of a shift/add sequence,
9974 then see if any of the specialized optabs are cheaper.
9975
9976 2004-03-18 Ian Lance Taylor <ian@wasabisystems.com>
9977
9978 * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
9979
9980 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9981
9982 * convert.c (convert_to_real): Add more math builtins.
9983
9984 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9985
9986 * convert.c (convert_to_real): Reformat using switch stmt.
9987
9988 2004-03-18 Mark Mitchell <mark@codesourcery.com>
9989
9990 * c-common.c (pointer_int_sum): Do not complain about using
9991 pointers to pointers-to-members.
9992
9993 2004-03-18 Kazu Hirata <kazu@cs.umass.edu>
9994
9995 * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
9996 have moved to the target hooks structure".
9997
9998 2004-03-18 James E Wilson <wilson@specifixinc.com>
9999
10000 * config/mips/mips.md (type): Split move into arith and fmove. Split
10001 hilo into mthilo and mfhilo. Add trap. Delete icmp. Fix all uses.
10002 * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
10003 Likewise.
10004 * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
10005 Likewise.
10006 * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
10007 rm7_fp_quick): Likewise.
10008 * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
10009 rm9k_fquick): Likewise.
10010 * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
10011 Likewise.
10012 (ir_sr70_icmp): Delete.
10013
10014 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10015
10016 * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
10017 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
10018 (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
10019 (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
10020 (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
10021 Protect with proper check.
10022 (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
10023 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
10024 * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
10025 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
10026 * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
10027 * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
10028 not TYPE_FIELDS.
10029 * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
10030
10031 2004-03-18 Mostafa Hagog <mustafa@il.ibm.com>
10032
10033 * gcse.c (eliminate_partially_redundant_loads): Reject change if
10034 dest is set between beginning and current insn.
10035
10036 2004-03-18 Mark Mitchell <mark@codesourcery.com>
10037
10038 * c-decl.c (grokdeclarator): Do not complain about redeclaring
10039 visible "static" identifiers "extern" in a local scope.
10040 * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
10041 post-increments/decrements.
10042
10043 2004-03-18 Bob Wilson <bob.wilson@acm.org>
10044
10045 * config/xtensa/xtensa.c (current_function_arg_words): Delete.
10046 (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
10047 (xtensa_va_start): Remove assignment to current_function_arg_words.
10048
10049 2004-03-18 Richard Sandiford <rsandifo@redhat.com>
10050
10051 * alias.c (record_set): Detect the case where a register is assigned
10052 a new value that has the same base term as the old one.
10053
10054 2004-03-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10055
10056 * doloop.c: Removed.
10057 * loop-doloop.c: New file.
10058 * Makefile.in (doloop.o): Remove.
10059 (loop-doloop.o): New.
10060 * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
10061 * cfgloopanal.c (get_loop_level): New function.
10062 * loop-iv.c (iv_number_of_iterations): Handle case when loop
10063 is leaved immediatelly.
10064 * loop.c (strength_reduce): Do not call doloop optimization.
10065 * loop.h (LOOP_BCT): Removed.
10066 * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
10067 (rest_of_handle_loop2): Call doloop_optimize_loops.
10068 (rest_of_compilation): Test for optimizations moved to
10069 rest_of_handle_loop2.
10070
10071 2004-03-17 Fariborz Jahanian <fjahanian@apple.com>
10072
10073 * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
10074 for mixed mode.
10075 (rs6000_emit_prologue): Ditto.
10076 (rs6000_emit_epilogue): Ditto.
10077 * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
10078 macro for mixed mode.
10079
10080 2004-03-18 Jan Hubicka <jh@suse.cz>
10081
10082 * predict.c (propagate_freq): Compute correctly frequency of
10083 EXIT_BLOCK.
10084
10085 2004-03-17 Eric Christopher <echristo@redhat.com>
10086
10087 * builtins.c (apply_args_size): Use reg_raw_mode.
10088 (apply_result_size): Ditto.
10089
10090 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
10091
10092 PR target/14620
10093 * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
10094
10095 2004-03-17 Jakub Jelinek <jakub@redhat.com>
10096
10097 * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
10098 32-bit builds when defaulting to 32-bit.
10099
10100 2004-03-17 Jan Hubicka <jh@suse.cz>
10101
10102 * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
10103 array.
10104
10105 2004-03-17 James E Wilson <wilson@specifixinc.com>
10106
10107 * config/mips/mips.md (zero_extendsidi2): Add length attribute.
10108 (hazard_nop): Change type to nop.
10109 (type): Split arith into arith, shift, slt, clz. Delete darith.
10110 Fix all uses. Change arith to multi if more than one insn emitted.
10111 * config/mips/5400.md (ir_vr54_arith): Likewise.
10112 * config/mips/5500.md (ir_vr55_arith): Likewise.
10113 * config/mips/7000.md (rm7_int_other): Likewise.
10114 * config/mips/9000.md (rm9k_int): Likewise.
10115 * config/mips/sr71k.md (ir_sr70_arith): Likewise.
10116
10117 2004-03-17 Joel Brobecker <brobecker@gnat.com>
10118
10119 * dwarf2out.c (subrange_type_die): Define new variable "subtype"
10120 to hold the subtype tree instead of recomputing it several times.
10121
10122 2004-03-17 Kazu Hirata <kazu@cs.umass.edu>
10123
10124 * config/mn10300/mn10300.c (notice_update_cc): Don't handle
10125 CC_INVERT.
10126 * config/mn10300/mn10300.md (cc): Remove "invert".
10127
10128 2004-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10129
10130 * builtins.c (integer_valued_real_p): Add builtin rint.
10131 (fold_builtin): Likewise.
10132 * convert.c (convert_to_real): Likewise.
10133
10134 * convert.c (convert_to_real): Fix typos in `long double'
10135 builtins.
10136
10137 2004-03-16 Mark Mitchell <mark@codesourcery.com>
10138
10139 PR c++/14481
10140 * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
10141 generated COMPOUND_EXPRs.
10142
10143 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
10144
10145 * config/h8300/t-rtems (h8300-*-rtems*): New.
10146
10147 2004-03-16 Eric Christopher <echristo@redhat.com>
10148
10149 * doc/cppopts.texi(fwide-exec-charset): Fix typo.
10150
10151 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
10152
10153 * config/i386/i386-protos.h: Add a prototype for
10154 ix86_reverse_condition.
10155 * config/i386/i386.c (ix86_reverse_condition): New.
10156 * config/i386/i386.h (REVERSE_CONDITION): Use
10157 ix86_reverse_condition.
10158 * config/i386/i386.md: Use ix86_reverse_condition instead of
10159 REVERSE_CONDITION.
10160
10161 2004-03-16 J. Brobecker <brobecker@gnat.com>
10162
10163 * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
10164
10165 2004-03-16 Nathanael Nerode <neroden@gcc.gnu.org>
10166
10167 PR bootstrap/12974
10168 * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
10169
10170 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
10171
10172 * c-common.c (c_common_type_for_mode): Build vector types on
10173 demand.
10174 (handle_mode_attribute): Deprecate using the mode attribute
10175 to create vector types. Fix indentation.
10176 (vector_type_node_list): Remove.
10177 (handle_vector_size_attribute): Create vector types on demand.
10178 Strip a NON_LVALUE_EXPR from the attribute if there is one.
10179 * c-typeck.c (comptypes): Make vector types compatible if they
10180 have the same underlying mode.
10181 (convert_for_assignment): Use comptypes to convert between
10182 vector types.
10183 * tree.c (build_common_tree_nodes_2): Do not create vector types.
10184 * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
10185 vector types.
10186 * tree.h: Remove vector types.
10187 * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
10188 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
10189 (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
10190 V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
10191 * doc/extend.texi (Vector Types): Document how to use the
10192 vector_size attribute to create vectors, rather than mode.
10193
10194 * config/arm/mmintrin.h: Use vector_size attribute, not mode.
10195 * config/i386/emmintrin.h: Likewise.
10196 * config/i386/mmintrin.h: Likewise.
10197 * config/i386/xmmintrin.h: Likewise.
10198 * config/sh/ushmedia.h: Likewise.
10199
10200 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
10201
10202 * config/freebsd-spec.h, config/arc/arc-protos.h,
10203 config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
10204 config/arm/linux-gas.h, config/arm/semi.h,
10205 config/cris/cris-protos.h, config/i386/xm-djgpp.h,
10206 config/ia64/freebsd.h, config/mips/7000.md,
10207 config/mips/9000.md, config/ns32k/ns32k-protos.h,
10208 config/sparc/pbd.h: Update copyright.
10209
10210 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
10211
10212 PR target/14577
10213 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff.
10214
10215 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
10216
10217 * combine.c (combine_simplify_rtx): Remove the "last"
10218 parameter and its documentation. Adjust recursive calls.
10219 (simplify_logical): Always perform the only simplification
10220 controlled by "last", if the simplified expression is
10221 actually different.
10222 (try_combine): Do not pass the "last" parameter to
10223 combine_simplify_rtx.
10224
10225 2004-03-16 Richard Sandiford <rsandifo@redhat.com>
10226
10227 PR target/14599
10228 * config/mips/mips.md (UNSPEC_GP): New constant.
10229 * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
10230 an UNSPEC instead of (reg $gp).
10231 (mips16_gp_pseudo_reg): Change accordingly.
10232 (print_operand): Print $gp directly when handling CONST_GP_P.
10233
10234 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
10235
10236 * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
10237 * longlong.h: Make code 68060 clean when compiling for m68060.
10238
10239 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
10240
10241 * config/m68k/m68k.md: Fix constraints for bitfield instructions.
10242 * doc/md.texi: Clarify description of "i" constraint.
10243
10244 2004-03-15 James E Wilson <wilson@specifixinc.com>
10245
10246 * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
10247 Split store into store, fpstore, fpidxstore. Fix all uses.
10248 * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
10249 Likewise.
10250 * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
10251 * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
10252 * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
10253 * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
10254 ir_sr70_fstore): Likewise.
10255
10256 2004-03-15 Richard Henderson <rth@redhat.com>
10257
10258 PR middle-end/14535
10259 * except.c (collect_one_action_chain): Record action for cleanup
10260 outer of exception spec.
10261
10262 2004-03-15 Ian Lance Taylor <ian@wasabisystems.com>
10263
10264 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
10265 Fix the check for abort and only do the mmap if we can.
10266
10267 2004-03-15 Eric Botcazou <ebotcazou@act-europe.fr>
10268
10269 * config/sparc/sparc.h: Rework comments about the code model
10270 in 64-bit environment and the mode 'Pmode'.
10271 * doc/invoke.texi (SPARC options): Rework description of the
10272 different code models supported in 64-bit environment.
10273
10274 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
10275
10276 * defaults.h (REVERSIBLE_CC_MODE): Define.
10277 * jump.c (reversed_comparison_code_parts): Don't check if
10278 REVERSIBLE_CC_MODE is defined.
10279
10280 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
10281
10282 * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
10283 et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
10284 hosthooks.h, params.h, ra-colorize.c, web.c,
10285 config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
10286 config/avr/avr-protos.h, config/avr/avr.md,
10287 config/fr30/fr30-protos.h, config/fr30/fr30.md,
10288 config/h8300/fixunssfsi.c, config/i386/darwin.h,
10289 config/i386/freebsd.h, config/i386/freebsd64.h,
10290 config/ia64/hpux.h, config/ia64/unwind-ia64.c,
10291 config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
10292 config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
10293 config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
10294 config/pa/pa64-regs.h, config/rs6000/aix41.h,
10295 config/rs6000/aix43.h, config/rs6000/host-darwin.c,
10296 config/sparc/aout.h, config/sparc/freebsd.h,
10297 config/sparc/litecoff.h, config/vax/vax-protos.h,
10298 doc/hostconfig.texi, doc/include/gcc-common.texi: Update
10299 copyright.
10300
10301 2004-03-15 Paul Brook <paul@codesourcery.com>
10302
10303 * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
10304
10305 2004-03-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
10306
10307 * c-pretty-print.c (pp_c_semicolon): Fix formatting.
10308 (pp_c_cv_qualifier): Document.
10309 (pp_c_space_for_pointer_operator): Likewise.
10310 (pp_c_integer_constant): Likewise.
10311 (pp_c_identifier): Likewise.
10312 (pp_c_init_declarator): Don't print function body.
10313
10314 2004-03-14 Joseph S. Myers <jsm@polyomino.org.uk>
10315
10316 * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
10317 doc/install.texi, doc/invoke.texi, doc/makefile.texi,
10318 doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
10319 "gcc", "g++" and "g77" or mark up with appropriate markup. Adjust
10320 wording and grammar.
10321
10322 2004-03-14 Roger Sayle <roger@eyesopen.com>
10323
10324 * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
10325 with lang_hooks.foo ().
10326 * builtins.c (expand_builtin_va_arg): Likewise.
10327 * c-common.c (fname_as_string, c_common_truthvalue_conversion,
10328 c_common_type_for_mode, c_common_nodes_and_builtins,
10329 handle_mode_attribute, handle_vector_size_attribute): Likewise.
10330 * c-convert.c (convert): Likewise.
10331 * c-format.c (check_format_types): Likewise.
10332 * c-objc-common.c (c_tree_printer): Likewise.
10333 * c-typeck.c (build_unary_op, build_conditional_expr,
10334 build_binary_op): Likewise.
10335 * calls.c (try_to_integrate, expand_call,
10336 emit_library_call_value_1): Likewise.
10337 * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
10338 Likewise.
10339 * cgraphunit.c (record_call_1, cgraph_analyze_function,
10340 cgraph_expand_function): Likewise.
10341 * convert.c (convert_to_pointer, convert_to_integer): Likewise.
10342 * coverage.c (build_fn_info_type, build_ctr_info_type,
10343 build_gcov_info, create_coverage): Likewise.
10344 * dbxout.c (dbxout_init): Likewise.
10345 * diagnostic.c (diagnostic_report_current_function): Likewise.
10346 * dojump.c (do_jump): Likewise.
10347 * dwarf2out.c (dwarf2_name): Likewise.
10348 * except.c (init_eh): Likewise.
10349 * explow.c (expr_size, int_expr_size): Likewise.
10350 * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
10351 Likewise.
10352 * expr.c (store_expr, store_constructor, safe_from_p,
10353 expand_expr_real, do_store_flag, try_casesi): Likewise.
10354 * function.c (push_function_context_to, pop_function_context_from,
10355 free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
10356 put_var_into_stack, allocate_struct_function, current_function_name):
10357 Likewise.
10358 * integrate.c (copy_decl_for_inlining, expand_inline_function):
10359 Likewise.
10360 * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
10361 lhd_print_error_function): Likewise.
10362 * opts.c (handle_option, decode_options): Likewise.
10363 * passes.c (open_dump_file): Likewise.
10364 * print-tree.c (print_node): Likewise.
10365 * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
10366 expand_decl_cleanup, emit_case_nodes): Likewise.
10367 * stor-layout.c (variable_size): Likewise.
10368 * toplev.c (announce_function, wrapup_global_declarations,
10369 check_global_declarations, compile_file, default_tree_printer,
10370 process_options, lang_dependent_init, finalize): Likewise.
10371 * tree-dump.c (dequeue_and_dump): Likewise.
10372 * tree-inline.c (remap_decl, remap_block, copy_body_r,
10373 initialize_inlined_parameters, declare_return_variable,
10374 inlinable_function_p, expand_call_inline, optimize_inline_calls,
10375 walk_tree, copy_tree_r): Likewise.
10376 * tree-optimize.c (tree_rest_of_compilation): Likewise.
10377 * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
10378 unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
10379 variably_modified_type_p, dump_tree_statistics): Likewise.
10380 * varasm.c (assemble_variable, compare_constant, copy_constant,
10381 force_const_mem, compute_reloc_for_constant, output_constant,
10382 output_addressed_constants, initializer_constant_valid_p): Likewise.
10383
10384 2004-03-14 Kelley Cook <kcook@gcc.gnu.org>
10385
10386 * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
10387
10388 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
10389
10390 * doc/install.texi: Reflect autoconf and automake version for
10391 libffi. Update autoconf version to 2.59.
10392
10393 2004-03-13 Roger Sayle <roger@eyesopen.com>
10394
10395 * fold-const.c (negate_expr, operand_equal_for_comparison_p,
10396 optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
10397 make_range, build_range_check, fold_range_test, unextend,
10398 constant_boolean_node, fold_binary_op_with_conditional_arg,
10399 fold_truthop, fold_mathfn_compare, fold_inf_compare,
10400 fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
10401 with lang_hooks.foo ().
10402
10403 2004-03-14 Richard Earnshaw <rearnsha@arm.com>
10404
10405 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
10406
10407 2004-03-13 Dara Hazeghi <dhazeghi@yahoo.com>
10408
10409 * doc/install.texi: Note status of -fnew-ra.
10410
10411 2004-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
10412
10413 PR middle-end/14470
10414 * expr.c (store_expr): Call emit_queue before generating the move
10415 from the temporary to the original target. Protect the temporary
10416 from emit_queue.
10417
10418 2004-03-13 Jakub Jelinek <jakub@redhat.com>
10419
10420 PR target/14533
10421 * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
10422 other than UNSPEC_GOTOFF.
10423
10424 2004-03-13 Richard Earnshaw <rearnsha@arm.com>
10425
10426 * arm.c (arm_legitimate_address_p): New argument, OUTER. Pass through
10427 to arm_legitimate_index_p. Update all callers with SET as default
10428 value.
10429 (arm_legitimate_index_p): New argument, OUTER. Restrict the index
10430 range if OUTER is a sign-extend operation on QImode. Correctly
10431 reject shift operations on sign-extended QImode addresses.
10432 (bad_signed_byte_operand): Delete.
10433 (arm_extendqisi_mem_op): New function.
10434 * arm.h (EXTRA_CONSTRAINT_ARM): Delete. Replace with...
10435 (EXTRA_CONSTRAINT_STR_ARM): ... this. Handle extended address
10436 constraints.
10437 (CONSTRAINT_LEN): New.
10438 (EXTRA_CONSTRAINT): Delete. Replace with...
10439 (EXTRA_CONSTRAINT_STR): ... this.
10440 (PREDICATE_CODES): Remove bad_signed_byte_operand.
10441 * arm.md (extendqihi_insn): Use new constraint Uq. Rework. Length
10442 is now always default.
10443 (define_splits for bad sign-extend loads): Delete.
10444 (arm_extendqisi, arm_extendqisi_v5): Likewise.
10445 * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
10446 Rework 'U' constraint to 'Uv'.
10447 * arm-protos.h: Remove bad_signed_byte_operand. Add
10448 arm_extendqisi_mem_op.
10449 * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
10450 Add Uq constraint.
10451
10452 2004-03-13 Alan Modra <amodra@bigpond.net.au>
10453
10454 * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
10455 with targetm version.
10456
10457 PR target/14567
10458 * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
10459 (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
10460 * config/rs6000/rs6000.c (rs6000_arg_size): New function.
10461 Update all users of RS6000_ARG_SIZE.
10462 (function_arg_advance): Count fregno using mode size.
10463 (function_arg): Handle long double split over regs and memory.
10464 (function_arg_partial_nregs): Likewise.
10465 (rs6000_va_arg): Repackage complex args.
10466
10467 2004-03-13 Dean Ferreyra <dferreyra@igc.org>
10468
10469 PR target/14047
10470 * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
10471 (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
10472 * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
10473
10474 2004-03-12 Jakub Jelinek <jakub@redhat.com>
10475
10476 * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
10477 prototype.
10478 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
10479 * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
10480
10481 2004-03-12 Andrew Pinski <apinski@apple.com>
10482
10483 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
10484 Use ret instead of result. Use addr instead of base.
10485
10486 2004-03-12 David Edelsohn <edelsohn@gnu.org>
10487
10488 * doc/install.texi (*-ibm-aix*): Document assembler and achiver
10489 fixes required by libstdc++ and update installation instructions
10490 for libstdc++.a.
10491
10492 2004-03-12 Danny Smith <dannysmith@users.sourceforge.net>
10493
10494 * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
10495 leading '@' on fastcall symbols before stripping suffix.
10496
10497 2004-03-12 Roger Sayle <roger@eyesopen.com>
10498
10499 * combine.c (unmentioned_reg_p): New function to check whether an
10500 expression is a "specialization" of another, i.e. that there are
10501 no registers or memory references mentioned in the first that don't
10502 appear in the second.
10503 (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
10504 (combine_instructions): Also try combining instructions using the
10505 REG_EQUAL note from a preceding log-linked instruction.
10506
10507 2004-03-12 Roger Sayle <roger@eyesopen.com>
10508
10509 * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
10510
10511 2004-03-12 Matt Austern <austern@apple.com>
10512
10513 * target.h (struct gcc_target): New target hook, unwind_label.
10514 * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
10515 * output.h (default_emit_unwind_label): New function.
10516 * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
10517 (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
10518 (TARGET_SUPPORTS_HIDDEN): New target macro.
10519 * dwarf2out.c (struct dw_fde_struct): Add field for function decl
10520 that corresponds to this FDE.
10521 (FRAME_BEGIN_LABEL): Allow target to override default label.
10522 (output_call_frame_info): If FDEs are linknonce, then use extra
10523 indirection for FDE encoding, output a label for each FDE, and
10524 output an empty label for each function without an FDE.
10525 (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
10526 * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
10527 decls with DECL_ONE_ONLY set, if that macro is defined.
10528 (make_decl_one_only): Don't use DECL_COMMON if we're compiling
10529 for a SUPPORTS_ONE_ONLY target.
10530 * config/darwin-protos.h (darwin_unique_section): Declare.
10531 (darwin_asm_named_section): Likewise.
10532 (darwin_section_type_flags): Likewise.
10533 (darwin_non_lazy_pcrel): Likewise.
10534 (darwin_emit_unwind_label): Likewise.
10535 (darwin_make_decl_one_only): Likewise.
10536 * config/darwin.c (machopic_finish): Get rid of tweak that
10537 eliminate stubs for symbols that are defined.
10538 (darwin_encode_section_info): Don't treat weak functions as defined.
10539 (darwin_make_decl_one_only): Define.
10540 (darwin_asm_named_section): Likewise.
10541 (darwin_section_type_flags): Likewise.
10542 (darwin_unique_section): Likewise.
10543 (darwin_emit_unwind_label): Likewise.
10544 (darwin_non_lazy_pcrel): Likewise.
10545 (darwin_asm_output_dwarf_delta): Difference between two labels is
10546 local only if both labels are local.
10547 * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
10548 (ASM_MAKE_LABEL_LINKONCE): Likewise.
10549 (TARGET_SUPPORTS_HIDDEN): Likewise.
10550 (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
10551 (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
10552 (FRAME_BEGIN_LABEL): Likewise.
10553 (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
10554 (ASM_DECLARE_FUNCTION_NAME): Likewise.
10555 (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
10556 (TARGET_ASM_UNIQUE_SECTION): Define.
10557 (EH_FRAME_SECTION_NAME): Define.
10558 (EH_FRAME_SECTION_ATTR): Likewise.
10559 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
10560 (TARGET_ASM_NAMED_SECTION): Likewise.
10561 (TARGET_SECTION_TYPE_FLAGS): Likewise.
10562 * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
10563 TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
10564 TARGET_ASM_EMIT_UNWIND_LABEL.
10565
10566 2004-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10567
10568 * builtins.c (expand_builtin_mathfn): Add pow10* to the
10569 existing exp10* case.
10570 (expand_builtin): Likewise.
10571
10572 2004-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
10573
10574 * doc/tm.texi (registers) <Values in Registers>: Add
10575 entry for REGMODE_NATURAL_SIZE.
10576
10577 2004-03-12 Richard Henderson <rth@redhat.com>
10578
10579 PR target/14547
10580 * target.h (struct gcc_target): Move calls substructure before
10581 booleans. Add split_complex_arg.
10582 * function.c (assign_parms, split_complex_args): Use it.
10583 * calls.c (expand_call): Likewise.
10584 (split_complex_values): Likewise. Check for splittable types
10585 before allocating memory.
10586 (split_complex_types): Likewise.
10587 * system.h (SPLIT_COMPLEX_ARGS): Poison.
10588 * expr.h (SPLIT_COMPLEX_ARGS): Remove.
10589 * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
10590 * config/alpha/alpha.c (alpha_split_complex_arg): New.
10591 (TARGET_SPLIT_COMPLEX_ARG): New.
10592 * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
10593 * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
10594 (rs6000_override_options): Zap it for non-AIX.
10595 (rs6000_function_value): Use targetm.calls.split_complex_arg.
10596 * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
10597 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
10598 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
10599 * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
10600 SPLIT_COMPLEX_ARGS entry.
10601
10602 2004-03-11 Richard Henderson <rth@redhat.com>
10603
10604 * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
10605 (alpha_lookup_xfloating_lib_func): Use them, return rtx.
10606 (alpha_emit_xfloating_arith): Update to match.
10607 (alpha_emit_xfloating_compare): Likewise.
10608 (alpha_emit_xfloating_cvt): Likewise.
10609 (alpha_emit_xfloating_libcall): Take already built symbol,
10610 mark call const.
10611 * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
10612 op1 in a register.
10613
10614 2004-03-11 Richard Henderson <rth@redhat.com>
10615
10616 PR target/14539
10617 * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
10618
10619 * simplify-rtx.c (simplify_relational_operation): Fix typo.
10620
10621 2004-03-11 Richard Henderson <rth@redhat.com>
10622
10623 PR middle-end/14477
10624 * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
10625
10626 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
10627
10628 PR target/14262
10629 * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
10630 defined, pass small BLKmode values in registers in the low-order part.
10631
10632 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
10633
10634 * combine.c (if_then_else_cond): Check for NULL return value of
10635 simplify_gen_subreg.
10636
10637 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
10638
10639 PR target/14496
10640 * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
10641 TARGET_SINGLE_FLOAT.
10642
10643 2004-03-11 Steve Ellcey <sje@cup.hp.com>
10644
10645 * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
10646 * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
10647 * config/ia64/ia64.c (ia64_init_libfuncs): New.
10648 (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
10649
10650 2004-03-11 Roger Sayle <roger@eyesopen.com>
10651
10652 * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
10653 -((int)X>>C) where C is an integer constant one bit less than the
10654 size of X into (unsigned)X>>C. Similarly for unsigned->signed.
10655 (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
10656
10657 * simplify-rtx.c (simplify_unary_operation): Also implement the
10658 above transformations at the RTL level.
10659
10660 2004-03-11 Alan Modra <amodra@bigpond.net.au>
10661
10662 * real.c (encode_ibm_extended): Do round low word.
10663
10664 2004-03-11 Ben Elliston <bje@wasabisystems.com>
10665
10666 * config/arm/arm.md (is_xscale): Comment this attribute and move
10667 it a bit further up in the file, closer to related attributes.
10668
10669 2004-03-11 Eric Botcazou <ebotcazou@libertysurf.fr>
10670
10671 * config/host-solaris.c (sol_gt_pch_use_address): Add
10672 missing terminating marker to comment.
10673
10674 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
10675
10676 * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
10677 (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
10678 (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
10679 (*movsf_mips16, *movdf_mips16): Name unnamed patterns. Use
10680 move_operand as source predicate in all cases.
10681 (*movdi_32bit): Renamed from movdi_internal. Remove 'F' constraint.
10682 Test reg_or_0_operand. Use move_operand as source predicate.
10683 (*movdi_64bit): Renamed from movdi_internal2. Test reg_or_0_operand.
10684 (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
10685 (*movsi_internal): Renamed from movsi_internal. Test reg_or_0_operand.
10686 (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
10687 (*movhi_internal): Renamed from movhi_internal. Test reg_or_0_operand.
10688 Use move_operand as source predicate. Remove 'K' constraint.
10689 (*movqi_internal): Likewise movqi_internal.
10690 (*movsf_hardfloat): Renamed from movsf_internal1. Test
10691 reg_or_0_operand. Use move_operand as source predicate.
10692 (*movsf_softfloat): Likewise movsf_internal2.
10693 (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
10694 (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
10695 (*movdf_softfloat): Likewise movdf_internal2.
10696 * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
10697 for DImode if !TARGET_64BIT.
10698 (mips_legitimize_move): Simplify accordingly.
10699
10700 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
10701
10702 PR/14362
10703 * var-tracking.c (struct variable_def): Added field refcount.
10704 (variable_htab_free): Decrease the refcount and delete variable
10705 only if there are no more references.
10706 (unshare_variable): New function.
10707 (vars_copy_1): Increase refcount instead of copying the variable.
10708 (variable_union): Share the variables where possible, unshare
10709 the variables if needed.
10710 (variable_different_p): Return false if var1 and var2 are
10711 the same structure.
10712 (variable_was_changed): Init the refcount of new variable.
10713 (set_frame_base_location): Unshare variable if needed.
10714 (set_variable_part): Init the refcount of new variable.
10715 Unshare the variables if needed.
10716 (delete_variable_part): Unshare the variables if needed.
10717 (emit_notes_for_differences_1): Init the refcount of new variable.
10718 (vt_add_function_parameters): Do not add function parameters to
10719 IN set of ENTRY_BLOCK_PTR because it is unused anyway.
10720 (vt_initialize): Do not add frame_base_decl to IN set of
10721 ENTRY_BLOCK_PTR because it is unused anyway.
10722
10723 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
10724
10725 * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
10726 (vars_copy): Likewise.
10727 (variable_union): Likewise.
10728 (set_variable_part): Likewise.
10729 (delete_variable_part): Likewise.
10730
10731 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
10732
10733 * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
10734 ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
10735 config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
10736 config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
10737 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
10738 config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
10739 config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
10740 config/pdp11/pdp11.h, config/rs6000/rs6000.c,
10741 config/stormy16/stormy16.c: Fix comment typos and formatting.
10742
10743 2004-03-11 Nathanael Nerode <neroden@gcc.gnu.org>
10744
10745 * configure: Regenerate, since I forgot to while committing Paolo's
10746 changes.
10747
10748 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
10749
10750 PR ada/14131
10751 Move language detection to the top level.
10752 * configure.ac: Remove code to detect languages,
10753 it now lives exclusively in the top level.
10754 * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
10755 top level, renamed to ACX_PROG_GNAT.
10756
10757 2004-03-10 Richard Henderson <rth@redhat.com>
10758
10759 * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
10760 extra arguments.
10761 * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
10762 and host_xmake_file fragments.
10763 * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
10764 (gt_pch_restore): Similarly for gt_pch_use_address.
10765 (default_gt_pch_get_address): New.
10766 (mmap_gt_pch_get_address): Split out of gt_pch_save.
10767 (default_gt_pch_use_address): Split out of gt_pch_restore.
10768 (mmap_gt_pch_use_address): Likewise.
10769 * hooks.c (hook_voidp_size_t_null): Remove.
10770 (hook_bool_voidp_size_t_false): Remove.
10771 * hooks.h: Likewise.
10772 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
10773 default_ or mmap_ definitions.
10774 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
10775 * hosthooks.h (struct host_hooks): Update gt_pch_get_address
10776 and gt_pch_use_address.
10777 * config/host-linux.c, config/host-solaris.c: New files.
10778 * config/x-linux, config/x-solaris: New files.
10779 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
10780 Update for changed definition.
10781 (darwin_rs6000_gt_pch_use_address): Likewise.
10782 * doc/hostconfig.texi: Update docs.
10783
10784 2004-03-10 Richard Henderson <rth@redhat.com>
10785
10786 PR c/14517
10787 * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
10788 except for pedantic c90 mode.
10789
10790 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
10791
10792 * configure.ac: Bump AC_PREREQ to 2.59.
10793 * configure: Regenerate.
10794
10795 2004-03-10 Uros Bizjak <uros@kss-loka.si>
10796
10797 * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
10798 (exp10_optab, exp2_optab): Define corresponding macros.
10799 * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
10800 * genopinit.c (optabs): Implement exp10_optab and exp2_optab
10801 using exp10?f2 and exp2?f2 patterns.
10802 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
10803 using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
10804 (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
10805 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
10806
10807 * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
10808 exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
10809 exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
10810
10811 2004-03-10 Anthony Green <green@redhat.com>
10812
10813 * doc/invoke.texi (ARM Options): Fix -mpfu typo.
10814
10815 2004-03-10 David Edelsohn <edelsohn@gnu.org>
10816
10817 * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
10818 (TARGET_OS_AIX_CPP_BUILTINS): this. Conditionally define
10819 __LONGDOUBLE128.
10820 * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
10821 TARGET_OS_AIX_CPP_BUILTINS.
10822 * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
10823 * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
10824 * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
10825 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
10826 previous change.
10827
10828 2004-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10829
10830 * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
10831
10832 2004-03-10 David Edelsohn <edelsohn@gnu.org>
10833
10834 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
10835 __LONGDOUBLE128 on AIX.
10836
10837 2004-03-10 Andrew Haley <aph@redhat.com>
10838
10839 PR optimization/14381
10840 * function.c (expand_function_end): Emit a blockage insn before
10841 the epilogue when -fnon-call-exceptions is used.
10842
10843 * except.c (expand_start_all_catch): Make comment more accurate.
10844
10845 2004-03-08 Joel Sherrill <joel@oarcorp.com>
10846
10847 PR target/14480
10848 * config/rs6000/t-rtems: Add missing file on branch.
10849
10850 2004-03-10 Ulrich Weigand <uweigand@de.ibm.com>
10851
10852 * dbxout.c (dbxout_symbol_location): Do not output references
10853 to optimized-out constant pool symbols.
10854
10855 2004-03-10 Andreas Schwab <schwab@suse.de>
10856
10857 * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
10858 twon34_r.
10859
10860 2004-03-09 James E Wilson <wilson@specifixinc.com>
10861
10862 * alias.c (alias_sets_might_conflict_p): New.
10863 * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
10864 * common.opt (Wstrict-aliasing=): New.
10865 * flags.h (warn_strict_aliasing): Change type to int.
10866 * opts.c (warn_strict_aliasing): Change type to int.
10867 (common_handle_option): Handle OPT_Wstrict_aliasing_.
10868 * tree.h (alias_sets_might_conflict_p): Declare it.
10869 * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
10870
10871 2004-03-10 Roman Zippel <zippel@linux-m68k.org>
10872
10873 PR bootstrap/12371
10874 * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
10875 (CALL_USED_REGISTERS): Likewise.
10876 (REG_CLASS_CONTENTS): Likewise.
10877 (REG_ALLOC_ORDER): New.
10878 (REGNO_REG_CLASS): Use regno_reg_class.
10879 * config/m68k/m68k.c: Add regno_reg_class array.
10880
10881 2004-03-09 Steve Ellcey <sje@cup.hp.com>
10882
10883 * config/ia64/ia64.md (divsi3): Fix algorithm.
10884 (udivsi3): Ditto.
10885 (setf_exp_xf): Remove '*' from name.
10886 * testsuite/gcc.dg/20040309-1.c: New test.
10887
10888 2004-03-09 Ian Lance Taylor <ian@wasabisystems.com>
10889
10890 * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
10891 * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
10892 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
10893 * config/sparc/sparc.c (sparc_aout_select_section): Remove.
10894 (sparc_aout_select_rtx_section): Don't check
10895 SUNOS4_SHARED_LIBRARIES.
10896 * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
10897
10898 2004-03-10 Hans-Peter Nilsson <hp@axis.com>
10899
10900 PR other/14474
10901 * doc/md.texi (Pattern Ordering, Dependent Patterns)
10902 (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
10903 INTERNALS".
10904
10905 2004-03-09 Zack Weinberg <zack@codesourcery.com>
10906
10907 * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
10908 (LIBGCC_SPEC): Update to match.
10909
10910 2004-03-09 Zack Weinberg <zack@codesourcery.com>
10911
10912 * c-decl.c (last_function_parms, last_function_parm_tags)
10913 (last_function_parm_others, current_function_parms)
10914 (current_function_parm_tags, current_function_parm_others):
10915 Delete.
10916 (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
10917 New macros.
10918 (grokdeclarator): For function definitions, save the arg-info
10919 block from the declarator in DECL_ARGUMENTS.
10920 (grokparms): Do not write to last_function_parm*. Use ARG_INFO_*
10921 macros to operate on arg-info block. Can assume ARG_INFO_PARMS
10922 contains only PARM_DECLs. Improve diagnostics.
10923 (get_parm_info): Use ARG_INFO_* macros. Improve comments and
10924 diagnostics. Disable some expensive checks if not ENABLE_CHECKING.
10925 (store_parm_decls_newstyle): Take the function to operate on,
10926 and an arg-info block, as arguments; don't get anything from
10927 current_function_* globals.
10928 (store_parm_decls_oldstyle): Likewise.
10929 (store_parm_decls): Pass fndecl and its arg-info block down to
10930 store_parm_decls_newstyle/oldstyle. Send functions with empty
10931 argument lists through store_parm_decls_newstyle to reduce
10932 overhead.
10933 (pushdecl): Comment on the problems with the call to copy_node.
10934 Clear DECL_ARGUMENTS of the old node after copying it, if it
10935 is an arg-info block instead of a chain of decls.
10936 (start_function): Do not manipulate current_function_parm* or
10937 last_function_parm*.
10938
10939 2004-03-09 Roger Sayle <roger@eyesopen.com>
10940 Andrew Pinski <pinskia@physics.uc.edu>
10941
10942 * ifcvt.c (noce_try_sign_mask): New function to transform
10943 "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
10944 (noce_process_if_block): Call noce_try_sign_mask.
10945
10946 2004-03-09 Andrew Pinski <apinski@apple.com>
10947
10948 * c-typeck.c (tagged_types_tu_compatible_p):
10949 Fix typo.
10950
10951 2004-03-09 Roger Sayle <roger@eyesopen.com>
10952
10953 * simplify-rtx.c (simplify_const_relational_operation): New function
10954 renamed from simplify_relational_operation.
10955 (simplify_relational_operation): Change prototype to accept an
10956 additional mode argument. Call simplify_const_relational_operation.
10957 (simplify_gen_relational): Update simplify_relational_operation call.
10958 (simplify_ternary_operation): Update simplify_relational_operation
10959 subroutine call to use simplify_const_relational_operation instead.
10960
10961 * rtl.h (simplify_const_relational_operation): Prototype here.
10962 (simplify_relational_operation): Add addtional mode argument.
10963
10964 * combine.c (combine_simplify_rtx): Update calls to
10965 simplify_relational_operation.
10966 (simplify_set): Likewise.
10967 (gen_binary): Likewise.
10968 * cse.c (fold_rtx): Likewise.
10969 * dojump.c (compare_from_rtx): Likewise.
10970 (do_compare_rtx_and_jump): Likewise.
10971 * integrate.c (subst_constants): Likewise.
10972 * unroll.c (simplify_cmp_and_jump_insns): Likewise.
10973
10974 2004-03-09 Kazu Hirata <kazu@cs.umass.edu>
10975
10976 * config/m32r/m32r.md: Remove all define_peephole's.
10977
10978 2004-03-09 Alan Modra <amodra@bigpond.net.au>
10979
10980 * config/rs6000/rs6000.md: Remove trailing whitespace.
10981
10982 2004-03-08 Eric Christopher <echristo@redhat.com>
10983
10984 * Makefile.in (site.exp): Add libiconv variable definition.
10985
10986 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
10987
10988 * configure: Regenerate for config/accross.m4 correction.
10989
10990 2004-03-08 Joel Sherrill <joel@oarcorp.com>
10991
10992 PR target/14480
10993 * config/rs6000/t-rtems: Add missing file on branch.
10994
10995 2004-03-08 Roger Sayle <roger@eyesopen.com>
10996
10997 PR middle-end/14289
10998 * c-typeck.c (c_mark_addressable): A register variable should
10999 be considered global if its not automatic, i.e. TREE_PUBLIC,
11000 TREE_STATIC or DECL_EXTERNAL.
11001 * function.c (put_var_into_stack): Call abort when placing a
11002 hard register into the stack, if x_parm_reg_stack_loc is NULL.
11003
11004 2004-03-08 Ulrich Weigand <uweigand@de.ibm.com>
11005
11006 * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
11007 ("*extendqisi2_short_displ"): Likewise.
11008
11009 2004-03-08 Kazu Hirata <kazu@cs.umass.edu>
11010
11011 * config/pdp11/pdp11.c (comparison_operator_index): Remove.
11012 (comp_operator): Likewise.
11013 * config/pdp11/pdp11-protos.h: Remove corresponding
11014 prototypes.
11015
11016 2004-03-08 Eric Botcazou <ebotcazou@act-europe.fr>
11017
11018 * expr.c (highest_pow2_factor_for_type): Rename into
11019 highest_pow2_factor_for_target. Use DECL_ALIGN instead of
11020 TYPE_ALIGN when the target is a COMPONENT_REF.
11021 (expand_assignment): Ajust call to highest_pow2_factor_for_type.
11022
11023 2004-03-08 Alan Modra <amodra@bigpond.net.au>
11024
11025 * config/rs6000/rs6000.c: Formatting fix.
11026 (legitimate_offset_address_p): Correct offset range check.
11027
11028 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
11029 -msoft-float by -mcpu. Consolidate similar code for MASK_MULTIPLE
11030 and MASK_STRING.
11031
11032 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
11033
11034 * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
11035 for little endian.
11036 ("ashrdi3_no_power"): Disable for little endian.
11037 (ashrdi3): Same.
11038
11039 2004-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11040
11041 * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
11042 builtins.
11043
11044 2004-03-08 Hans-Peter Nilsson <hp@axis.com>
11045
11046 PR target/14471
11047 * configure.ac (Target-specific assembler checks) <cris-*-*>: New
11048 case, checking for -no-mul-bug-abort option.
11049 * configure, config.in: Regenerate.
11050 * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
11051 and -mno-mul-bug-workaround.
11052 * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
11053 ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
11054 ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
11055 Ditto. Make attribute "slottable" dependent on TARGET_MUL_BUG.
11056 * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
11057 sure mulu.d is not last on cache-line.
11058 * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
11059 into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
11060 (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
11061 (TARGET_SWITCHES): New options -mmul-bug-workaround and
11062 -mno-mul-bug-workaround.
11063 (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
11064 (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
11065 * config/cris/cris.c (cris_operand_extend_operator): Clarify
11066 relation to MULT in head comment.
11067 (cris_op_str): Abort for MULT.
11068 (cris_print_operand) <case '!'>: New case.
11069
11070 2004-03-08 Alan Modra <amodra@bigpond.net.au>
11071
11072 PR debug/11983
11073 * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
11074 dw_val_class_vec. Replace use throughout file.
11075 (dw_float_const): Delete.
11076 (dw_vec_const): New.
11077 (dw_val_struct_union): Rename val_float to val_vec. Replace use
11078 throughout file.
11079 (add_AT_vec): Rename from add_AT_float. Add elt_size param.
11080 (same_dw_val_p): Adjust vec comparison. Use memcmp.
11081 (size_of_die): Adjust dw_val_class_vec sizing.
11082 (output_die): Output dw_val_class_vec.
11083 (insert_int, extract_int, insert_float): New functions.
11084 (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
11085 Handle CONST_VECTOR.
11086 (add_location_or_const_value_attribute): Handle CONST_VECTOR.
11087
11088 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
11089
11090 * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
11091 AltiVec abi cannot co-exist.
11092
11093 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
11094
11095 2004-03-07 Jan Hubicka <jh@suse.cz>
11096
11097 * except.c (emit_to_new_bb_before): Break fallthru edges.
11098
11099 2004-03-07 Stephane Carrez <stcarrez@nerim.fr>
11100
11101 * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
11102 ("*lshrsi3"): Also accept an immediate for 68HC12.
11103 ("*ashrsi3_const"): Likewise.
11104 ("*ashrsi3"): Likewise.
11105 ("*ashlsi3_const"): Likewise.
11106 ("*ashlsi3"): Likewise.
11107 ("cmphi_1_hc12"): Compare two hard register by pushing them and
11108 comparing with a pop; don't use a split for that.
11109 ("cmphi split"): Disable compare split for 68HC12.
11110
11111 * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
11112 the status operands if they have side effects.
11113
11114 2004-03-07 Kazu Hirata <kazu@cs.umass.edu>
11115
11116 * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
11117 definition.
11118 * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
11119 config/h8300/h8300.h, config/ia64/ia64.h,
11120 config/mcore/mcore.h, config/mmix/mmix.h,
11121 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
11122 config/stormy16/stormy16.h, config/v850/v850.h,
11123 config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
11124 * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
11125 definition.
11126
11127 2004-03-07 Roger Sayle <roger@eyesopen.com>
11128
11129 * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
11130 <XOR_EXPR>: Fold x ^ x as zero.
11131 <AND_EXPR>: Fold x & x as x.
11132
11133 2004-03-07 Roger Sayle <roger@eyesopen.com>
11134
11135 * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
11136 "foo++ == const" into "++foo == const+incr".
11137
11138 2004-03-07 Richard Sandiford <rsandifo@redhat.com>
11139
11140 * config/mips/mips.c (mips_in_small_data_p): Return false if
11141 TARGET_ABICALLS.
11142
11143 2004-03-06 Stephane Carrez <stcarrez@nerim.fr>
11144
11145 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
11146 the stack register.
11147 (expand_prologue): Don't make an interrupt or a trap handler a far
11148 symbol.
11149 (m68hc11_initial_elimination_offset): Likewise.
11150
11151 2004-03-06 Richard Henderson <rth@redhat.com>
11152
11153 * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
11154
11155 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
11156
11157 * config/ns32k/ns32k-protos.h: Add a prototype for
11158 ns32k_notice_update_cc.
11159 * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
11160 * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
11161 ns32k_notice_update_cc.
11162
11163 2004-03-06 Ulrich Weigand <uweigand@de.ibm.com>
11164
11165 * config/s390/s390.md ("load_multiple", "*load_multiple_di",
11166 "*load_multiple_si"): Allow only if reload_completed.
11167 ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
11168 Likewise.
11169
11170 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
11171
11172 * config/vax/vax-protos.h: Add a prototype for
11173 vax_notice_update_cc.
11174 * config/vax/vax.c (vax_notice_update_cc): New.
11175 * config/vax/vax.h (NOTICE_UPDATE_CC): Call
11176 vax_notice_update_cc.
11177
11178 2004-03-06 David Edelsohn <edelsohn@gnu.org>
11179
11180 * collect2.c (main): Only export initfunc and finifunc if
11181 LD_INIT_SWITCH not defined.
11182 (scan_prog_file): Only export constructors and destructors if
11183 LD_INIT_SWITCH not defined. Only export symbols not found in
11184 shared objects.
11185
11186 2004-03-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11187
11188 * pa.md (icacheflush): Reorder operands to make match_scratch operand
11189 last.
11190 * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
11191 from calls to gen_icacheflush.
11192
11193 2004-03-06 Richard Henderson <rth@redhat.com>
11194
11195 * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
11196 (TARGET_LONG_DOUBLE_128): New.
11197 (TARGET_SWITCHES): Add long-double-{128,64}.
11198 (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
11199 (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
11200 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
11201 (WIDEST_HARDWARE_FP_SIZE): New.
11202 (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
11203 * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
11204 if TARGET_VAX_FLOAT.
11205 * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
11206 (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
11207
11208 2004-03-06 Richard Henderson <rth@redhat.com>
11209
11210 * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
11211 botched rtx class conversion.
11212
11213 2004-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11214
11215 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
11216 BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
11217
11218 * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
11219 macros.
11220 * fold-const.c (fold_mathfn_compare, fold): Likewise.
11221
11222 2004-03-06 Eric Botcazou <ebotcazou@libertysurf.fr>
11223
11224 PR target/14343
11225 * config/i386/i386.md (movv2di_internal): Conditionalize on
11226 TARGET_SSE, not TARGET_SSE2.
11227
11228 2004-03-05 Chris Demetriou <cgd@broadcom.com>
11229
11230 * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
11231 duplicated line.
11232
11233 2004-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11234
11235 * builtins.c: Consistently use logN not log* in comments.
11236
11237 2004-03-05 Andreas Krebbel <krebbel1@de.ibm.com>
11238
11239 * rtl.h (mem_expr_equal_p): Function prototype added.
11240 * cfgcleanup.c (merge_memattrs): New function.
11241 (flow_find_cross_jump): Call merge_memattrs for matching insns.
11242 * emit-rtl.c (mem_expr_equal_p): New function.
11243
11244 2004-03-05 Ziemowit Laski <zlaski@apple.com>
11245
11246 * objc/objc-act.c (synth_module_prologue): Const-qualify
11247 objc_selector type if using the GNU runtime; fix generated
11248 signatures for objc_msg_lookup and objc_msg_lookup_super
11249 to match what GNU ObjC headers provide; reformat and clean up.
11250 (synth_self_and_ucmd_args): Use previously constructed (and
11251 hence possibly const-qualified) objc_selector type.
11252
11253 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
11254
11255 * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
11256
11257 2004-03-05 Jason Merrill <jason@redhat.com>
11258
11259 * tree.h (TYPE_HASH): Use TYPE_UID.
11260 (TREE_HASH): New macro with old definition of TYPE_HASH.
11261 * tree.c (build_type_attribute_variant): Use iterative_hash_object.
11262 (build_array_type, build_function_type): Likewise.
11263 (build_method_type_directly): Likewise.
11264 (build_offset_type, build_complex_type): Likewise.
11265 (type_hash_list, attribute_hash_list): Likewise. Now static.
11266 * except.c: s/TYPE_HASH/TREE_HASH/.
11267
11268 2004-03-05 Bob Wilson <bob.wilson@acm.org>
11269
11270 * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
11271 (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32). Adjust
11272 __va_ndx by 2 words when referencing an argument on the stack.
11273 (xtensa_va_arg): Handle 16-byte aligned args. Adjust __va_ndx by 2
11274 words when an arg on the stack is first seen.
11275
11276 2004-03-05 Paul Brook <paul@codesourcery.com>
11277
11278 * arm.h (ARM_FLAG_VFP): Remove.
11279 (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
11280 * netbsd-elf.h (ARM_FLAG_VFP): Remove.
11281
11282 2004-03-05 Paul Brook <paul@codesourcery.com>
11283
11284 * function.c (assign_parms): Include pretend alignment offset.
11285
11286 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11287
11288 * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
11289 FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
11290
11291 2004-03-05 Ian Lance Taylor <ian@wasabisystems.com>
11292
11293 * configure.ac: When passing --enable-languages to subdir
11294 configure when host != build, make sure we don't pass an empty
11295 value.
11296 * configure: Regenerate.
11297
11298 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
11299
11300 PR 13577
11301 * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
11302 options.
11303
11304 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
11305
11306 * simplify-rtx.c (simplify_relational_operation): If
11307 flag_wrapv is set, do not move terms between the two
11308 side of a relational operator.
11309
11310 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
11311
11312 * rtlanal.c: Include target.h and output.h
11313 (rtx_cost, address_cost, default_address_cost): Move from...
11314 * cse.c (rtx_cost, address_cost, default_address_cost):
11315 ... this file.
11316 * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
11317 * Makefile.in: Adjust dependencies.
11318
11319 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
11320
11321 * cse.c (cse_end_of_basic_block): Make static.
11322 * local-alloc.c (function_invariant_p): Move to
11323 reload1.c.
11324 * loop.c (libcall_other_reg, record_excess_regs):
11325 Make static.
11326 * reload1.c (function_invariant_p): Moved here
11327 from local-alloc.c, made static.
11328 * rtl.h (cse_end_of_basic_block, function_invariant_p,
11329 libcall_other_reg, record_excess_regs): Remove
11330 declarations.
11331
11332 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
11333
11334 * config/m32r/m32r.c (signed_comparison_operator): Add a
11335 missing parenthesis.
11336
11337 2004-03-04 Ian Lance Taylor <ian@wasabisystems.com>
11338
11339 * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
11340 going to call mmap again. Read the file into the right place.
11341 Give a fatal error if we have to relocate.
11342
11343 2004-03-04 Bob Wilson <bob.wilson@acm.org>
11344
11345 * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
11346 (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
11347
11348 2004-03-05 Hans-Peter Nilsson <hp@axis.com>
11349
11350 PR other/14354
11351 * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
11352 round the same. When rounding, clear bits that would cause a
11353 second rounding in pack_d.
11354 (_fpmul_parts): Ditto. Remove #if 0:d code.
11355
11356 2004-03-04 Ziemowit Laski <zlaski@apple.com>
11357
11358 PR c++/14425, c++/14426
11359 * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
11360 vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
11361 Change C++ definitions to accept a 'const int' argument;
11362 the prototypes already do.
11363 * config/rs6000/rs6000.c (rs6000_common_init_builtins):
11364 Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
11365 v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
11366 v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
11367 v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
11368 v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
11369 end in ..._int; change them to accept an int instead of a char
11370 as the last parameter.
11371
11372 2004-03-04 Phil Edwards <phil@codesourcery.com>
11373
11374 * genmultilib: Change '=' to '-' when translating option names
11375 to directory names.
11376
11377 2004-03-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11378
11379 * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
11380 stack slot for temp used for result of BLKmode but in integral mode.
11381
11382 2004-03-04 Jan Hubicka <jh@suse.cz>
11383
11384 * reload.c (find_reloads): Reorganize if seqeunce to switch.
11385
11386 * cfgrtl.c (rtl_redirect_edge_and_branch): Set the source BB as dirty.
11387 (cfglayout_redirect_edge_and_branch): Set the source BB as dirty.
11388
11389 2004-03-04 Steve Ellcey <sje@cup.hp.com>
11390
11391 * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
11392 * testsuite/gcc.dg/20040303-1.c: New test.
11393
11394 2004-03-04 Steven Bosscher <stevenb@suse.de>
11395
11396 * ppro.md: Rewrite as a DFA pipeline description.
11397 * i386.md: Remove all uses of the ppro_uops attribute.
11398 * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
11399 ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
11400 ix86_sched_reorder, ix86_variable_issue,
11401 struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
11402 TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
11403 (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
11404 (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
11405 * athlon.md (athlon_ssecmp_load): Fix comment
11406
11407 2004-03-04 Stuart Hastings <stuart@apple.com>
11408
11409 * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
11410
11411 2004-03-04 Stuart Hastings <stuart@apple.com>
11412
11413 * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
11414 686, tell Darwin assembler to allow prefetch insns, non-empty def
11415 of SUBTARGET_OPTION_TRANSLATE_TABLE.
11416
11417 2004-03-04 DJ Delorie <dj@redhat.com>
11418
11419 PR optimization/14282
11420 * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
11421 between a call and the assignment of its return value.
11422
11423 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
11424
11425 * config/h8300/h8300.c: Put a comment for every function.
11426
11427 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
11428
11429 * config/h8300/h8300.md: Add comments about peephole2's.
11430
11431 2004-03-04 Steven Bosscher <stevenb@suse.de>
11432
11433 * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
11434
11435 2004-03-04 Jan Hubicka <jh@suse.cz>
11436
11437 * cfgcleanup.c (thread_jump): Update call of cselib_init.
11438 * cselib.c (cselib_record_memory): New static variable.
11439 (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
11440 Give up on memories when asked for.
11441 (cselib_init): Accept new argument.
11442 * cselib.h (cselib_init): Update prototype.
11443 * gcse.c (local_cprop_pass): Update call of cselib_init.
11444 * loop.c (load_mems): Update call of cselib_init.
11445 * postreload.c (reload_cse_regs_1): Update call of cselib_init.
11446 * sched-deps.c (sched_analyze): Update call of cselib_init.
11447
11448 2004-03-04 David Edelsohn <edelsohn@gnu.org>
11449 GP <gp@qnx.com>
11450
11451 * config/rs6000/rs6000.c (output_function_profiler): Append @plt
11452 when compiling PIC.
11453
11454 2004-03-04 Josef Zlomek <zlomekj@suse.cz>
11455
11456 PR/14362
11457 * var-tracking.c (track_expr_p): Do not track variables which
11458 should be ignored for debugging purposes.
11459
11460 2004-03-04 Alan Modra <amodra@bigpond.net.au>
11461
11462 * real.c (encode_ibm_extended): Don't bother rounding low double.
11463 * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
11464 when fmt->pnan < fmt->p.
11465
11466 2004-03-04 Eric Christopher <echristo@redhat.com>
11467
11468 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
11469 only range of valid arg registers and fixed_regs.
11470
11471 2004-03-04 Alan Modra <amodra@bigpond.net.au>
11472
11473 PR target/14406
11474 * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
11475 (abstf2, abstf2_internal): New define_expand.
11476
11477 2004-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
11478
11479 PR optimization/14235
11480 * expr.c (convert_move): Copy the source to a new pseudo
11481 when converting from a sub-word source to a larger-than-word
11482 register which conflicts with the source.
11483
11484 2004-03-03 Zack Weinberg <zack@codesourcery.com>
11485
11486 PR 13728
11487 * c-decl.c (diagnose_mismatched_decls): Issue an error for two
11488 parameters with the same name, unless one is a forward decl.
11489 Do not issue a redundant-redeclaration warning for forward
11490 decls of parameters.
11491
11492 2004-03-04 David Edelsohn <edelsohn@gnu.org>
11493
11494 * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
11495 configuration.
11496
11497 2004-03-03 Ian Lance Taylor <ian@wasabisystems.com>
11498
11499 * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
11500
11501 2004-03-04 Alan Modra <amodra@bigpond.net.au>
11502
11503 * target-def.h (TARGET_OPTF): Delete.
11504 * c-opts.c (TARGET_OPTF): Define.
11505
11506 2004-03-04 Jan Hubicka <jh@suse.cz>
11507
11508 * cselib.c (cselib_finish): Fix another miss-application of my previous
11509 patch.
11510
11511 2004-03-03 Mike Stump <mrs@apple.com>
11512
11513 Add framework support for darwin.
11514
11515 * c-incpath.c: Include target.h and machmode.h.
11516 (add_path): Use a consistent style for cpp_dir. Initialize
11517 p->construct to 0.
11518 (add_cpp_dir_path): New.
11519 (register_include_chains): Add use of extra_includes callback.
11520 (hook_void_int): Add.
11521 (target_c_incpath): Add.
11522 * c-incpath.h (add_cpp_dir_path): New.
11523 (target_c_incpath_s): Add.
11524 (target_c_incpath): Add.
11525 (C_INCPATH_INIT): Add.
11526 * c-opts.c (c_common_missing_argument,
11527 c_common_handle_option): Add -F argument processing.
11528 * c.opt: Add -F argument processing.
11529 * gcc.c (trad_capable_cpp): Add -F argument processing.
11530 * cppfiles.c (find_file_in_dir): Update to use construct
11531 callback.
11532 (search_path_exhausted, cpp_get_path, cpp_get_buffer,
11533 cpp_get_prev): New.
11534 (_cpp_find_file): Use search_path_exhausted.
11535 (make_cpp_dir): Initialize construct to 0.
11536 * cpplib.h (missing_header_cb
11537 cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
11538 (cpp_callbacks): Add missing_header
11539 (cpp_dir): Add construct.
11540 * target-def.h: (TARGET_OPTF): New.
11541 * hooks.c (hook_void_int, hook_void_charptr): Add.
11542 * hooks.h (hook_void_int, hook_void_charptr): Add.
11543 * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
11544 $(MACHMODE_H) dependencies.
11545 * doc/invoke.texi (Darwin Options): Document -F.
11546 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
11547 (TARGET_OPTF): Add.
11548 * fix-header.c (target_c_incpath): Add.
11549
11550 * config/darwin-c.c: Add c-incpath.h include.
11551 (using_frameworks, find_subframework_file,
11552 find_subframework_header, add_system_framework_path,
11553 frameworks_in_use, num_frameworks, max_frameworks,
11554 add_framework, find_framework, struct framework_header,
11555 framework_header_dirs, framework_construct_pathname,
11556 find_subframework_file, add_system_framework_path,
11557 add_framework_path, framework_defaults,
11558 darwin_register_frameworks, find_subframework_header): Add.
11559 * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
11560 (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
11561 (CPP_SPEC): Add __APPLE_CC__ support.
11562 * t-darwin (darwin-c.o): Add c-incpath.h dependency.
11563
11564 2004-03-04 Jan Hubicka <jh@suse.cz>
11565
11566 * cselib.c (cselib_finish): Fix miss-application of my previous
11567 patch.
11568
11569 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
11570
11571 * hooks.c (hook_tree_tree_identity): New.
11572 * hooks.h: Add a prototype for hook_tree_tree_identity.
11573 * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
11574 instead of MD_ASM_CLOBBERS.
11575 * system.h (MD_ASM_CLOBBERS): Poison.
11576 * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
11577 (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
11578 * target.h (gcc_target): Add md_asm_clobbers.
11579 * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
11580 (ix86_md_asm_clobbers): New.
11581 * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
11582 * doc/tm.texi (MD_ASM_CLOBBERS): Change to
11583 TARGET_MD_ASM_CLOBBERS.
11584
11585 2004-03-03 Stuart Hastings <stuart@apple.com>
11586
11587 * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
11588
11589 2004-03-03 Eric Botcazou <ebotcazou@libertysurf.fr>
11590
11591 * config/sparc/sparc.c (noov_compare64_op): Fix typo.
11592
11593 * config/sparc/sparc.h (ASM_FLOAT): Delete.
11594 (ASM_DOUBLE): Likewise.
11595 (ASM_LONGDOUBLE): Likewise.
11596 * config/sparc/pbd.h (ASM_INT_OP): Delete.
11597
11598 2004-03-03 Richard Henderson <rth@redhat.com>
11599
11600 PR opt/13862
11601 * cselib.c (cselib_record_sets): Don't record multiple sets in
11602 asm insns.
11603
11604 2004-03-03 Mostafa Hagog <mustafa@il.ibm.com>
11605
11606 * common.opt: Add description of the new -fgcse-after-reload flag.
11607
11608 * flags.h (flag_gcse_after_reload): Declaration of global variable.
11609
11610 * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
11611 reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
11612 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
11613 get_bb_avail_insn, hash_scan_set_after_reload,
11614 compute_hash_table_after_reload, eliminate_partially_redundant_loads,
11615 gcse_after_reload, get_bb_avail_insn): New functions to implement
11616 gcse-after-reload.
11617 (gcse_after_reload_main): New function, the main entry point to
11618 gcse-after-reload.
11619
11620 * rtl.h (gcse_after_reload_main): Declaration of the new function.
11621
11622 * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
11623
11624 * toplev.c (flag_gcse_after_reload): Initialization.
11625
11626 * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
11627
11628 * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
11629 PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
11630 the gcse after reload optimization.
11631
11632 * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
11633 GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
11634 parameters.
11635
11636 * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
11637
11638 2004-03-03 Nicolas Pitre <nico@cam.org>
11639
11640 * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
11641 small negative values.
11642
11643 2004-03-03 Jan Hubicka <jh@suse.cz>
11644
11645 * cselib.c (hash_table): Remove GTY marker.
11646 (reg_values): Turn into array.
11647 (used_regs): Likewise.
11648 (n_used_regs): New static variable.
11649 (reg_values_old): Kill.
11650 (clear_table): Update uses of arrays.
11651 (cselib_lookup): Likewise.
11652 (cselib_record_set): Likewise.
11653 (cselib_init): Likewise.
11654 (cselib_finish): Likewise.
11655 (cselib_udpate_varray_sizes): Kill.
11656 * cselib.h (cselib_update_varray_sizes): Kill.
11657
11658 2004-03-03 Paul Brook <paul@codesourcery.com>
11659
11660 * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
11661
11662 2004-03-03 Jan Hubicka <jh@suse.cz>
11663
11664 * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
11665 Rename from ...; make statistics transparent.
11666 (ggc_alloc_cleared, ggc_realloc_stat): ... these.
11667 (loc_descriptor): New structure.
11668 (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
11669 add_statistics):
11670 New static function.
11671 (ggc_record_overhead, dump_statistics): New global function.
11672 * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
11673 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
11674 from ...; accept locations
11675 (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
11676 ggc_realloc, ggc_alloc_typed): ... this one.
11677 from ...; accept locations
11678 * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
11679 ggc_alloc_stat): Rename from ... ; pass locations
11680 * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
11681 ... this one.
11682 (ggc_alloc_stat): Record overehead.
11683 * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
11684 ggc_realloc, ggc_alloc_typed): Turn to macros
11685 (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
11686 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
11687 (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
11688 * langhooks.h (lhd_make_node): Declare.
11689 (LANG_HOOKS_MAKE_TYPE): Default to new function,
11690 * langhooks.c (lhd_make_node): New.
11691 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
11692 locations.
11693 (rtx_alloc, swallow_copy_rtx): ... this one.
11694 * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
11695 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
11696 * toplpev.c (finalize): Dump stats.
11697 * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
11698 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
11699 Rename from ... ; pass locators.
11700 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
11701 build?, build_decl): Declare.
11702 * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
11703 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
11704 Declare.
11705 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
11706 build?, build_decl): New macros.
11707 * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
11708 * statistics.h: New file.
11709
11710 2004-03-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
11711 Richard Sandiford <rsandifo@redhat.com>
11712
11713 * config/mips/mips.h (MASK_FIX_SB1): Bump.
11714 (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
11715 (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
11716 * config/mips/mips.c (mips_output_division): Fill the branch delay
11717 slot with a nop if TARGET_FIX_R4000. Extend R4000 workarounds to
11718 TARGET_FIX_R4400.
11719 (mips_output_division): Adjust accordingly.
11720 (override_options): Make -march=r4400 imply -mfix-r4400 by default.
11721 * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
11722
11723 2004-03-03 Paolo Bonzini <bonzini@gnu.org>
11724
11725 * alias.c (rtx_equal_for_memref_p): Use predicates
11726 to test rtx classes and new rtx class codes, possibly
11727 splitting conditionals that tested against '<' and 'o'.
11728 * caller-save.c (save_call_clobbered_regs): Likewise.
11729 * combine.c (contains_muldiv, find_split_point, subst,
11730 combine_simplify_rtx, simplify_if_then_else,
11731 simplify_set, simplify_logical, expand_compound_operation,
11732 make_compound_operation, if_then_else_cond, known_cond,
11733 apply_distributive_law, cached_nonzero_bits,
11734 cached_num_sign_bit_copies, simplify_shift_const,
11735 gen_binary, simplify_comparison, update_table_tick,
11736 record_value_for_reg, get_lsat_value_validate): Likewise.
11737 * cse.c (mention_regs, find_best_addr, find_comparison_args,
11738 fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
11739 Likewise.
11740 * emit-rtl.c (copy_insn_1): Likewise.
11741 * expr.c (force_operand): Likewise.
11742 * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
11743 * flow.c (notice_stack_pointer_modification_1,
11744 invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
11745 and_reg_cond, elim_reg_cond): Likewise.
11746 * function.c (update_epilogue_consts): Likewise.
11747 * genattrtab.c (attr_rtx_1): Likewise.
11748 * genopinit.c (gen_insn): Likewise.
11749 * integrate.c (subst_constants): Likewise.
11750 * jump.c (reversed_comparison_code_parts,
11751 reversed_comparison_code, delete_related_insns,
11752 rtx_renumbered_equal_p): Likewise.
11753 * local-alloc.c (block_alloc): Likewise.
11754 * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
11755 canonicalize_condition): Likewise.
11756 * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
11757 Likewise.
11758 * optabs.c (add_equal_node, expand_binop): Likewise.
11759 * predict.c (estimate_probability): Likewise.
11760 * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
11761 * recog.c (validate_replace_rtx_1, comparison_operator,
11762 offsettable_address_p, constrain_operands): Likewise.
11763 * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
11764 Likewise.
11765 * regclass.c (scan_one_insn): Likewise.
11766 * regmove.c (stable_and_no_regs_but_for_p): Likewise.
11767 * regrename.c (kill_autoinc_value): Likewise.
11768 * reload.c (find_reusable_reload, find_reloads,
11769 reg_overlap_mentioned_for_reload_p): Likewise.
11770 * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
11771 * rtl.c (copy_rtx): Likewise.
11772 * rtl.h (CONSTANT_P, INSN_P): Likewise.
11773 * rtlanal.c (commutative_operand_precedence): Likewise.
11774 * sched-deps.c (conditions_mutex_p): Likewise.
11775 * sched-rgn.c (is_cfg_nonregular): Likewise.
11776 * simplify-rtx.c (simplify_gen_binary,
11777 simplify_gen_relational, simplify_replace_rtx,
11778 simplify_unary_operation, simplify_binary_operation,
11779 simplify_ternary_operation, simplify_rtx): Likewise.
11780 * unroll.c (reg_dead_after_loop): Likewise.
11781 * config/alpha/alpha.c (alpha_swapped_comparison_operator,
11782 print_operand): Likewise.
11783 * config/arc/arc.c (proper_comparison_operator): Likewise.
11784 * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
11785 Likewise.
11786 * config/avr/avr.c (_reg_unused_after): Likewise.
11787 * config/frv/frv.c (frv_ifcvt_modify_tests,
11788 frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
11789 * config/i386/i386.c (ix86_comparison_operator,
11790 ix86_carry_flag_operator, fcmov_comparison_operator,
11791 arith_or_logical_operator, print_operand,
11792 ix86_expand_binary_operator, ix86_binary_operator_ok):
11793 Likewise.
11794 * config/i386/i386.md: Likewise.
11795 * config/ia64/ia64.c (not_postinc_memory_operand,
11796 ia64_print_operand, update_set_flags, errata_emit_nops):
11797 Likewise.
11798 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
11799 CONSTRAINT_OK_FOR_S): Likewise.
11800 * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
11801 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
11802 ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
11803 ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
11804 Likewise.
11805 * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
11806 eqne_comparison_operator, signed_comparison_operator):
11807 Likewise.
11808 * config/mips/mips.c (cmp_op, symbolic_expression_p):
11809 Likewise.
11810 * config/mmix/mmix (mmix_foldable_comparison_operator,
11811 mmix_comparison_operator): Likewise.
11812 * config/pa/pa.c (hppa_legitimize_address): Likewise.
11813 * config/rs6000/rs6000.c (stmw_operation,
11814 branch_comparison_operator, trap_comparison_operator,
11815 ccr_bit): Likewise.
11816 * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
11817 * config/s390/s390.c (s390_alc_comparison,
11818 s390_slb_comparison):L Likewise.
11819 * config/sh/sh.c (gen_block_redirect, reg_unused_after):
11820 Likewise.
11821 * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
11822 noov_compare_op, noov_compare64_op, v9_regcmp_op,
11823 emit_hard_tfmode_operation, reg_unused_after)
11824 * doc/md.texi, doc/rtl.texi: Likewise.
11825
11826 * ra-debug.c: Add 2004 to list of copyright years.
11827 * unroll.c: Likewise.
11828
11829 * combine.c (simplify_logical): Remove dummy test,
11830 (apply_distributive_law): Fix typo in comment.
11831 GET_CODE (x) == AND so x is a commutative binary op.
11832 * jump.c (delete_related_insns): simplify loop
11833 condition, move testing of RTX codes inside the loop.
11834 (rtx_renumbered_equal_p): do not use RTX_CODE.
11835 * rtl.c (rtx_class): Declare as enum rtx_class.
11836 * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
11837 Move to RTX_COMM_COMPARE class.
11838 (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
11839 Move to RTX_CONST_OBJ class.
11840 * rtl.h (enum rtx_class): New declaration,
11841 (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
11842 RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
11843 RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
11844 RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
11845 RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
11846 ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
11847 SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
11848 OBJECT_P): New macros.
11849 * config/sparc/sparc.c (noov_compare_op): Remove register
11850 from parameter.
11851
11852 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
11853
11854 * target.h: Remove texi jargons in comments.
11855
11856 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11857
11858 * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
11859 threshold to 0x4f.
11860
11861 Revert:
11862 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
11863 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
11864 as well.
11865 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
11866 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
11867
11868 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11869
11870 * doc/md.texi (cbranchmode4): New.
11871
11872 2004-03-02 Eric Christopher <echristo@redhat.com>
11873
11874 * config/mips/mips16.S: Change fixsfsi and fixdfsi to
11875 fix_trunc.
11876 * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
11877 * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
11878 * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
11879 * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
11880
11881 2004-03-02 Richard Henderson <rth@redhat.com>
11882
11883 PR middle-end/11767
11884 * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
11885 * optabs.c (prepare_cmp_insn): Force trapping memories to registers
11886 before the compare, if flag_non_call_exceptions.
11887
11888 2004-03-02 Richard Henderson <rth@redhat.com>
11889
11890 PR middle-end/14327
11891 * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
11892 emitting the label, not after.
11893
11894 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11895
11896 * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
11897 (m68hc11_mov_addr_mode): Likewise.
11898 (m68hc11_override_options): Initialize them based on target.
11899 (register_indirect_p): Allow a MEM for indirect addressing modes and
11900 use flags to control what is allowed.
11901 (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
11902 supported addressing modes.
11903 (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
11904 (go_if_legitimate_address_internal): Likewise.
11905 (m68hc11_indirect_p): Likewise and check the mode.
11906 (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
11907
11908 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11909
11910 * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
11911 (expand_builtin_setjmp_setup): Use
11912 targetm.builtin_setjmp_frame_value instead of
11913 BUILTIN_SETJMP_FRAME_VALUE.
11914 * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
11915 * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
11916 (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
11917 * target.h (gcc_target): Add builtin_setjmp_frame_value.
11918 * targhooks.c (default_builtin_setjmp_frame_value): New.
11919 * targhooks.h: Add a prototype for
11920 default_builtin_setjmp_frame_value.
11921 * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
11922 TARGET_BUILTIN_SETJMP_FRAME_VALUE.
11923
11924 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11925
11926 * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
11927 sequences of moves.
11928 (add peepholes): New peepholes to optimize sequences adding small
11929 constants.
11930 (bset peepholes): New peepholes to transform an OR in a bset form
11931 (bclr peepholes): Likewise for bclr form.
11932 (cmp peepholes): New peepholes to avoid register copies when comparing.
11933
11934 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11935
11936 * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
11937 to separate push from moves.
11938 ("*pushdf_internal"): Likewise.
11939 ("*pushsf_internal"): Likewise.
11940 ("*pushsi_internal"): Likewise.
11941 ("movdi_internal"): Use define_insn_and_split; non push operand.
11942 ("movdf_internal"): Likewise.
11943 ("movsf_internal"): Likewise.
11944 ("movsi_internal"): Likewise.
11945 ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
11946 ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
11947 ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
11948
11949 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11950
11951 * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
11952 ("cmphi_z_used", "cmpqi_z_used"): Likewise.
11953 ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
11954 ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
11955 ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
11956 ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
11957 ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
11958 ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
11959 ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
11960 ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
11961 ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
11962
11963 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11964
11965 * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
11966 (SOFT_XY_REGNUM): Define.
11967 (cmp split): Use the above instead of hard coded numbers.
11968 (8-bit op split): No need to check the mode; allow Q_REG.
11969 (ashift split): Adjust the first operand if it uses the SP and we
11970 are pushing the shifted value.
11971 (plus shift split): Fix when a source is in register D+X.
11972 ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
11973
11974 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11975
11976 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
11977 comparing with Z register.
11978
11979 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11980
11981 * cfgloop.h (struct loop_desc): Removed.
11982 (struct loop): Fields simple, desc and has_desc removed.
11983 (simple_loop_p, count_loop_iterations): Declaration removed.
11984 * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
11985 (unmark_altered, blocks_invariant_registers, unmark_altered_insn
11986 blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
11987 invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
11988 simple_loop_exit_p, variable_initial_value, variable_initial_values,
11989 simple_condition_p, simple_increment, count_strange_loop_iterations,
11990 inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
11991 Removed.
11992 * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
11993
11994 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11995
11996 * genattrtab.c: Don't handle MATCH_INSN.
11997 * genrecog.c: Likewise.
11998 * gensupport.c: Likewise.
11999 * rtl.def (match_insn): Remove.
12000 * doc/md.texi (match_insn, match_insn2): Remove.
12001
12002 2004-03-02 Mark Mitchell <mark@codesourcery.com>
12003
12004 * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
12005 macro results in memory allocation.
12006
12007 2004-03-02 David O'Brien <obrien@FreeBSD.org>
12008
12009 * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
12010 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
12011 %(fbsd_dynamic_linker),
12012 (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
12013 config/i386/freebsd.h
12014 * config/arm/freebsd.h: Ditto.
12015 * config/i386/freebsd.h: Ditto.
12016 * config/i386/freebsd64.h: Ditto.
12017 * config/ia64/freebsd.h: Ditto.
12018 * config/rs6000/sysv4.h: Ditto.
12019 * config/sparc/freebsd.h: Ditto.
12020
12021 2004-03-02 Loren James Rittle <ljrittle@acm.org>
12022
12023 * gcc/doc/install.texi (*-*-freebsd*): Update target information.
12024
12025 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
12026
12027 * rtl.def (define_combine): Remove.
12028
12029 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
12030
12031 * config/h8300/h8300.md: Tweak formatting.
12032
12033 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
12034
12035 * config/h8300/h8300.md (*cmphi_h8300): Rename to
12036 *cmphi_h8300_znvc.
12037 (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
12038
12039 2004-03-01 Mark Mitchell <mark@codesourcery.com>
12040
12041 PR bootstrap/14356
12042 * gcc.c (process_command): Remove const-qualification from argv.
12043 (main): Likewise.
12044
12045 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
12046
12047 * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
12048 pushqi1_h8300hs_advanced. Adjust its caller.
12049 (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
12050 Adjust its caller.
12051
12052 2004-03-02 Nicolas Roche <roche@act-europe.fr>
12053
12054 * Makefile.in (install-libgcc, install-multilib): Pass
12055 mkinstalldirs var to libgcc.mk.
12056
12057 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
12058
12059 * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
12060 * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
12061
12062 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
12063
12064 * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
12065 * config/h8300/h8300.md: Split several peephole2's, each into
12066 two.
12067
12068 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12069
12070 * dominance.c (recount_dominator): Handle postdominators.
12071
12072 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
12073
12074 * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
12075 (NUM_SYMBOL_TYPES): Likewise.
12076 (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
12077 (mips_unspec_address): Declare.
12078 (mips_gotoff_page, mips_gotoff_global): Delete.
12079 * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
12080 * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
12081 (mips_symbolic_constant_p, mips_symbolic_address_p)
12082 (mips_symbol_insns): Handle new symbol types.
12083 (general_symbolic_operand): New predicate.
12084 (mips_unspec_address): Make extern.
12085 (mips_gotoff_page, mips_gotoff_global): Delete.
12086 (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
12087 Handle new symbol types.
12088 * config/mips/mips.md (*lea_high64, *lea64): New patterns.
12089 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
12090 mips_unspec_address directly.
12091 * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
12092 the documentation of -mexplicit-relocs.
12093
12094 2004-03-01 Jeff Law <law@redhat.com>
12095
12096 * fold-const.c (fold): An equality comparison of a non-weak object
12097 against zero has a known result. Similarly an equality comparison
12098 of the address of two non-weak, unaliased symbols has a known result.
12099
12100 * ggc-page.c (struct page_entry): New field PREV.
12101 (ggc_alloc): Update PREV field appropriately.
12102 (sweep_pages): Likewise.
12103 (ggc_free): Likewise. Use PREV field rather than loop to
12104 improve ggc_free performance.
12105
12106 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
12107
12108 * config/mips/mips.c (mips_output_division): Use the division
12109 instruction to fill the delay slot of a zero check.
12110 (mips_idiv_insns): Adjust accordingly.
12111
12112 2004-03-01 Nathanael Nerode <neroden@gcc.gnu.org>
12113
12114 * config.gcc: Create a default tmake_file for linux, and use
12115 it in all but two linux clauses. Comment those two.
12116
12117 2004-03-01 Paolo Bonzini <bonzini@gnu.org>
12118
12119 * combine.c (try_combine): Do not refer to is_replaced.
12120 (gen_lowpart_for_combine): Perverse subregs now have a
12121 more politically correct name.
12122 * cse.c (cse_insn): Likewise.
12123 * jump.c: Fix bogus reference to delete_insn.
12124
12125 2004-02-29 Mark Mitchell <mark@codesourcery.com>
12126
12127 PR debug/14328
12128 * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
12129 constants as signed values.
12130
12131 PR middle-end/13448
12132 * c-tree.h (readonly_warning): Rename to ...
12133 (readonly_error): ... this.
12134 * c-typeck.c (build_unary_op): Adjust accordingly.
12135 (readonly_warning): Rename to ...
12136 (readonly_error): ... this and issue errors, not warnings.
12137 (build_modify_expr): Call readonly_error, not readonly_warning.
12138 (c_expand_asm_operands): Likewise.
12139 * tree-inline.c (optimize_inline_calls): Do not inline functions
12140 after errors have occurred.
12141
12142 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
12143
12144 * configure.ac: Rearrange some threading code for clarity;
12145 add section comment.
12146 * configure: Regenerate.
12147
12148 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
12149
12150 * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
12151 typos.
12152 * doc/cppopts.texi: Fix a typo.
12153
12154 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
12155
12156 * config/i386/i386.md: Fix formatting.
12157
12158 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
12159
12160 * configure.ac: Add some comments delineating sections of code.
12161
12162 * doc/install.texi: Note that libada uses autoconf 2.57 also.
12163
12164 * doc/install.texi: Fix idiot typo in previous commit.
12165
12166 * doc/install.texi: Update for conversion of intl to autoconf 2.57.
12167
12168 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
12169
12170 * config/h8300/h8300.md: Add comments about peephole2's.
12171
12172 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
12173
12174 * config/h8300/h8300.md: Tweak operand numbers of some
12175 peephole2's.
12176
12177 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
12178
12179 * config/h8300/h8300.md: Tweak comments about peephole2's.
12180
12181 2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl>
12182
12183 PR middle-end/14203
12184 * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
12185 instead of testing whether DECL_RTL is not NULL.
12186
12187 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
12188
12189 * config/sh/sh.c: Fix formatting.
12190
12191 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
12192
12193 * config/sh/sh.c: Convert to ISO-C.
12194
12195 2004-02-28 Andrew Pinski <pinskia@physics.uc.edu>
12196
12197 * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
12198 my previous patch.
12199
12200 * config/darwin.h (machopic_finish): Output stub even if the
12201 symbol is already defined.
12202
12203 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12204
12205 * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
12206
12207 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
12208
12209 * genattr.c (main): Don't define
12210 TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
12211 * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
12212 (DFA_PIPELINE_INTERFACE): Likewise.
12213 * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
12214 (DFA_PIPELINE_INTERFACE): Likewise.
12215
12216 2004-02-28 Richard Sandiford <rsandifo@redhat.com>
12217
12218 * config/mips/mips.md (tstsi, tstdi): Delete.
12219
12220 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12221
12222 * config/mips/mips.c (override_options): Remove an obsolete
12223 duplicate definition of the "e" constraint.
12224 * config/mips/mips.h: Update a comment accordingly.
12225
12226 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12227
12228 * config/mips/mips.md: Complete the unfinished R4000
12229 multiply/shift errata workaround. Improve documentation.
12230 (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
12231 has a hilo hazard.
12232 (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
12233 (muldi3, muldi3_internal): Likewise.
12234 (muldi3_internal2): Remove, replacing with...
12235 (muldi3_mult3, muldi3_r4000): ...these new patterns.
12236 (mulsidi3): Take the errata into account.
12237 (mulsidi3_32bit): Remove, replacing with...
12238 (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
12239 (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
12240 (umulsidi3): Take the errata into account.
12241 (umulsidi3_32bit): Remove, replacing with..
12242 (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
12243 (umulsi3_highpart, umulsi3_highpart_internal): Disable if
12244 TARGET_FIX_R4000.
12245 (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
12246 (smuldi3_highpart, umuldi3_highpart): Likewise.
12247 * doc/invoke.texi: Document the errata workaround.
12248
12249 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12250
12251 * config/mips/mips-protos.h (mips_idiv_insns): Declare.
12252 * config/mips/mips.h (MASK_FIX_SB1): Bump.
12253 (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
12254 (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
12255 * config/mips/mips.c (mips_idiv_insns): New function.
12256 (override_options): Make -march=r4000 imply -mfix-r4000 by default.
12257 (mips_output_division): Add a workaround for the R4000 divide/shift
12258 errata.
12259 * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
12260 the length of an "idiv" instruction.
12261 * doc/invoke.texi: Document the new switches.
12262
12263 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
12264
12265 * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
12266 TARGET_SCHED_IS_COSTLY_DEPENDENCE.
12267
12268 2004-02-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12269
12270 PR optimization/14229
12271 * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
12272
12273 2004-02-28 Eric Botcazou <ebotcazou@act-europe.fr>
12274
12275 * fold-const.c (fold): Strip NOPs that change the signedness
12276 for RSHIFT too. Expand comment.
12277
12278 2004-02-27 Ian Lance Taylor <ian@wasabisystems.com>
12279
12280 PR optimization/7871
12281 * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
12282 from or to call insns.
12283
12284 2004-02-27 Eric Botcazou <ebotcazou@libertysurf.fr>
12285
12286 PR optimization/7871
12287 * flow.c (propagate_one_insn): Interpret calls as setting global
12288 registers, not merely clobbering them.
12289
12290 2004-02-27 Dale Johannesen <dalej@apple.com>
12291
12292 * config/darwin.c (machopic_output_possible_stub_label): Remove.
12293 config/darwin-protos.h: Ditto.
12294 config/darwin.h: Remove call to it.
12295 * combine.c (distribute_notes): Do not place a REG_DEAD note
12296 when value is both set and used.
12297
12298 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
12299
12300 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
12301 as well.
12302 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
12303 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
12304
12305 2004-02-27 Andrew Pinski <apinski@apple.com>
12306
12307 * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
12308 Speedup common case of the type values being in the same order.
12309
12310 2004-02-27 Steve Ellcey <sje@cup.hp.com>
12311
12312 * config/ia64/ia64.h (no-inline-float-divide): New option.
12313 * config/ia64/ia64.h (no-inline-int-divide): New option.
12314 * config/ia64/ia64.h (no-inline-sqrt): New option.
12315 (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
12316 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
12317 * config/ia64/ia64.c (ia64_override_options): Modify error
12318 checking for inlined division/sqrt.
12319
12320 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
12321
12322 * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
12323 ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
12324 value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
12325 config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
12326 copyright.
12327
12328 2004-02-27 Paul Brook <paul@codesourcery.com>
12329
12330 * function.c (assign_parms): Don't count pretend args for alignment.
12331
12332 2004-02-27 Richard Henderson <rth@redhat.com>
12333
12334 * passes.c: New file.
12335 * Makefile.in (OBJS-common): Add it.
12336 * diagnostic.c (rtl_dump_and_exit): Move decl ...
12337 * flags.h (rtl_dump_and_exit): ... here.
12338 * output.h (size_directive_output, last_assemble_variable_decl):
12339 Move from toplev.c.
12340 * rtl.h (reg_alloc): Move from toplev.c.
12341 * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
12342 struct dump_file_info, enum dump_file_index, dump_file_tbl,
12343 open_dump_file, close_dump_file, rest_of_decl_compilation,
12344 rest_of_type_compilation, rest_of_handle_final,
12345 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
12346 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
12347 rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
12348 rest_of_handle_regrename, rest_of_handle_reorder_blocks,
12349 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
12350 rest_of_handle_tracer, rest_of_handle_if_conversion,
12351 rest_of_handle_if_after_combine, rest_of_handle_web,
12352 rest_of_handle_branch_prob,
12353 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
12354 rest_of_handle_addressof, rest_of_handle_sibling_calls,
12355 rest_of_handle_jump_bypass, rest_of_handle_inlining,
12356 rest_of_handle_null_pointer, rest_of_handle_combine,
12357 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
12358 rest_of_handle_gcse, rest_of_handle_loop_optimize,
12359 rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
12360 (decode_d_option): Use enable_rtl_dump_file.
12361 (compile_file, finalize, do_compile): Move profile+combine+graph
12362 cleanup to finish_optimization_passes.
12363 * toplev.h (init_optimization_passes, finish_optimization_passes,
12364 enable_rtl_dump_file): Declare.
12365
12366 2004-02-27 Eric Botcazou <ebotcazou@act-europe.fr>
12367 Roger Sayle <roger@eyesopen.com>
12368
12369 * fold-const.c (fold): Revert 2004-02-25 change. Use the original
12370 operands to build a tree with swapped operands.
12371 * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
12372 'unsignedp' predicate to specify the signedness.
12373
12374 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
12375
12376 * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
12377 expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
12378 params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
12379 comment typos and formatting. Follow spelling conventions.
12380
12381 2004-02-26 Aldy Hernandez <aldyh@redhat.com>
12382
12383 * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
12384 fix_truncsfsi2.
12385
12386 * config/rs6000/spe.md: Delete spe_efsctuiz.
12387 Add spe_fixuns_truncsfsi2.
12388 Add spe_fix_truncsfsi2.
12389
12390 2004-02-26 Eric Christopher <echristo@redhat.com>
12391
12392 * c-lex.c (c_lex_string_translate): New variable.
12393 (lex_string): Use to determine string translation.
12394 * c-pragma.h: Prototype.
12395 * c-parse.in (start_string_translation): New. Set above.
12396 (stop_string_translation): Ditto.
12397 (attribute, attribute_list, asm_def, asm_stmt,
12398 asm_operand): Use above functions.
12399 * cp/parser.c (cp_parser_declaration): Translate strings
12400 unless token is RID_EXTERN. Set c_lex_string_translate
12401 for recursive use.
12402 (cp_parser_asm_definition): Only translate argument strings
12403 to asms.
12404 (cp_parser_asm_operand_list): Ditto.
12405 (cp_parser_attribute_list): Do not translate attribute strings.
12406
12407 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12408
12409 * stmt.c (expand_start_case_dummy): Remove.
12410 * tree.h: Remove the corresponding prototype.
12411
12412 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12413
12414 * builtins.c (apply_args_register_offset): Remove.
12415 * tree.h: Remove the corresponding prototype.
12416
12417 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12418
12419 * stor-layout.c (is_pending_size): Remove.
12420 * tree.h: Remove the corresponding prototype.
12421
12422 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12423
12424 * recog.c (validate_replace_src): Remove.
12425 * recog.h: Remove the corresponding prototype.
12426
12427 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12428
12429 * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
12430 MAYBE_REG_PARM_STACK_SPACE.
12431 * function.c: Likewise.
12432 * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
12433 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
12434 * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
12435 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
12436
12437 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12438
12439 * c-decl.c (c_expand_deferred_function): Remove.
12440 * c-tree.h: Remove the corresponding prototype.
12441
12442 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
12443
12444 * postreload.c (reload_cse_move2add): Generate just a PLUS
12445 instead of an entire SET.
12446
12447 2004-02-26 Jan Hubicka <jh@suse.cz>
12448
12449 * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
12450 /pentium4m.
12451 * i386.c (override_options): Add support for new CPUs.
12452 * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
12453 (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
12454 constants.
12455 * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
12456
12457 2004-02-26 Bob Wilson <bob.wilson@acm.org>
12458
12459 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
12460
12461 2004-02-26 Eric Botcazou <ebotcazou@act-europe.fr>
12462
12463 * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
12464 (sparc_emit_fixunsdi): New prototype.
12465 * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
12466 (sparc_emit_fixunsdi): New function.
12467 * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
12468 operand 1. Pass SFmode to sparc_emit_floatunsdi.
12469 (floatunsdidf2): Use 'general_operand' for operand 1. Pass DFmode
12470 to sparc_emit_floatunsdi.
12471 (fixuns_truncsfdi2): New expander.
12472 (fixuns_truncdfdi2): Likewise.
12473
12474 2004-02-26 Alan Modra <amodra@bigpond.net.au>
12475
12476 * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
12477 unless HAVE_cc0.
12478
12479 2004-02-25 Richard Henderson <rth@redhat.com>
12480
12481 * explow.c (force_reg): Call mark_reg_pointer as appropriate.
12482 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
12483 use (op0-op1) == 0 if op0 is a pointer.
12484 * config/alpha/alpha.md (cmpdi): Use some_operand.
12485 (three comparison combine splits): Remove.
12486
12487 2004-02-25 Richard Henderson <rth@redhat.com>
12488
12489 PR c/12794
12490 * c-common.c (handle_alias_attribute): Reject the attribute if
12491 current_function_decl is set.
12492
12493 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
12494
12495 * config.gcc: Add comment describing extra_gcc_objs.
12496 i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
12497 * configure.ac (extra_gcc_objs): New substitution variable.
12498 (host_extra_gcc_objs): Don't substitute.
12499 * configure: Regenerate.
12500 * Makefile.in: Use extra_gcc_objs.
12501
12502 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
12503
12504 * doc/contrib.texi: Add an entry for myself.
12505
12506 2004-02-25 Jan Hubicka <jh@suse.cz>
12507
12508 * basic-block.h (make_eh_edge, break_superblocks): Declare.
12509 * cfgbuild.c (make_eh_edge): Make global.
12510 * cfglayout.c (break_superblocks): Likewise; fix memory leak.
12511 * except.c (build_post_landing_pads, connect_post_landing_pads,
12512 dw2_build_landing_pads, sjlj_emit_function_enter,
12513 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
12514 sjlj_build_landing_pads): Update CFG.
12515 (emit_to_new_bb_before): New function.
12516 (finish_eh_generation): Do not rebuild the CFG.
12517
12518 2004-02-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12519
12520 * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
12521 target_cpu_default defines.
12522 * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
12523 * pa.h (TARGET_DEFAULT): Likewise.
12524
12525 2004-02-25 Eric Botcazou <ebotcazou@act-europe.fr>
12526
12527 * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
12528 comparisons with regard to signedness.
12529
12530 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
12531
12532 * arm.c (thumb_legitimize_address): New function.
12533 * arm-protos.h: Prototype it.
12534 * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
12535 (LEGITIMIZE_ADDRESS): Use it.
12536
12537 2004-02-25 J"orn Rennecke <joern.rennecke@superh.com>
12538
12539 * reload1.c (reload): Only spill eliminable register with multiple
12540 adjacent elimination alternatives if all alternatives fail.
12541
12542 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
12543
12544 * arm.c (arm_legitimate_index_p): For QImode the range of an offset
12545 is -4095...+4095 inclusive.
12546
12547 2004-02-25 Eric Botcazou <ebotcazou@libertysurf.fr>
12548
12549 * doc/install.texi (sparc-sun-solaris2* specific notes): Document
12550 the bootstrap failure with Sun CC 5.4 and 5.5.
12551
12552 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
12553
12554 * cse.c (cse_change_cc_mode_insns): Stop at any instruction
12555 which modifies NEWREG.
12556 (cse_condition_code_reg): Update the mode of CC_REG in
12557 CC_SRC_INSN on our own.
12558
12559 2004-02-24 Michael Matz <matz@suse.de>
12560
12561 * config/i386/i386.c (ix86_comp_type_attributes): Check for
12562 regparm attributes.
12563
12564 2004-02-24 Richard Henderson <rth@redhat.com>
12565
12566 * toplev.c (dump_file_tbl): Rename from dump_file.
12567 * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
12568 cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
12569 config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
12570 config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
12571 loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
12572 ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
12573 toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
12574 s/rtl_dump_file/dump_file/g.
12575
12576 2004-02-24 Aldy Hernandez <aldyh@redhat.com>
12577
12578 * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
12579 (spe_fixuns_truncsfsi2): Delete.
12580
12581 * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
12582 (fixuns_truncsfsi2): Delete.
12583
12584 2004-02-24 Josef Zlomek <zlomekj@suse.cz>
12585
12586 PR/14240
12587 * rtlanal.c (replace_label): Fix replacing labels in constant pool.
12588
12589 2004-02-24 Geoffrey Keating <geoffk@apple.com>
12590
12591 * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
12592
12593 2004-02-24 Jason Merrill <jason@redhat.com>
12594
12595 * tree.c (check_qualified_type): New fn.
12596 (get_qualified_type): Use it. If type already has the desired
12597 quals, just return it.
12598 * tree.h: Declare it.
12599
12600 2004-02-24 Sanjiv Kumar Gupta <sanjivg@noida.hcltech.com>
12601
12602 * target-def.h (TARGET_SCHED_INIT_GLOBAL,
12603 TARGET_SCHED_FINISH_GLOBAL): New macros.
12604
12605 * target.h (md_init_global, md_finish_global): Function
12606 declarations corresponding to new target macros.
12607
12608 * haifa-sched.c (sched_init, sched_finish): Allow target to
12609 call the new schedular hooks.
12610
12611 * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
12612 call to update_life_info.
12613
12614 * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
12615 flag_schedule_insns for SH4.
12616
12617 * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
12618 find_set_regmode_weight, find_insn_regmode_weight,
12619 find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
12620 sh_variable_issue, high_pressure, ready_reorder,
12621 rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
12622 functions used to throttle the insn movement in first
12623 scheduling pass for SH.
12624
12625 * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
12626 TARGET_SCHED_FINISH_GLOBAL.
12627
12628 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
12629
12630 Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
12631 2004-02-05 Alexandre Oliva <aoliva@redhat.com>
12632 * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
12633 symbols in sections named by the user.
12634 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
12635 * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
12636 2004-01-27 Alexandre Oliva <aoliva@redhat.com>
12637 * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
12638 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
12639 the above.
12640 2004-01-20 Alexandre Oliva <aoliva@redhat.com>
12641 * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
12642 one more pseudo to further improve code generation.
12643 2004-01-19 Alexandre Oliva <aoliva@redhat.com>
12644 * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
12645 inside UNSPEC.
12646 2004-01-16 Alexandre Oliva <aoliva@redhat.com>
12647 * config/frv/frv.c (frv_legitimate_address_p): Added
12648 allow_double_reg_p argument. Adjust all callers. Use it to
12649 decide whether to enable double-register indirect addressing.
12650 (frv_funcdesc_alias_set): Remove.
12651 (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
12652 register. Emit movdi_ldd.
12653 (ldd_address_operand): New.
12654 * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
12655 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12656 (PREDICATE_CODES): Add ldd_address_operand.
12657 * config/frv/frv.md (movdi_ldd): New.
12658 (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
12659 intermediate computations if possible.
12660 (symGOTOFF2reg_i): Fix harmless typo.
12661 2003-12-18 Alexandre Oliva <aoliva@redhat.com>
12662 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
12663 relocated p_vaddr to vaddr type.
12664 * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
12665 * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
12666 (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
12667 MEM, or use a funcdesc alias set. Use regular move instead of
12668 ldd.
12669 (dbl_memory_one_insn_operand): Recognize function descriptors by
12670 type or by alias set, and don't split them.
12671 * config/frv/frv.md (call, call_value): Never use call_internal
12672 for fdpic.
12673 (call_internal, call_value_internal): Never match for FDPIC.
12674 (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
12675 call_value_fdpicsi): Require FDPIC.
12676 (ldd): Removed.
12677 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
12678 * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
12679 * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
12680 (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
12681 FDPIC. Compute data base address.
12682 * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
12683 before the other self-specs are processed.
12684 * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
12685 Build with -fPIC.
12686 2003-12-15 Alexandre Oliva <aoliva@redhat.com>
12687 * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
12688 inhibit_libc is defined.
12689 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
12690 * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
12691 __FRV_FDPIC__.
12692 (__RELOC_POINTER): Define.
12693 (_Unwind_IteratePhdrCallback): Use it.
12694 * config/frv/frv.h (Twrite): Define.
12695 (TRANSFER_FROM_TRAMPOLINE): Use it.
12696 * config/frv/linux.h (INVOKE__main): Undefine.
12697 (Twrite): Override.
12698 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
12699 * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
12700 (-mlibrary-pic): Emphasize that this option generates EABI code.
12701 (-mcpu): Add fr550.
12702 (-mpack): Remove.
12703 2003-11-30 Alexandre Oliva <aoliva@redhat.com>
12704 * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
12705 and CONSTs in FDPIC mode.
12706 * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
12707 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
12708 * config/frv/frv.c (move_source_operand): Don't accept symbolic
12709 constants.
12710 * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
12711 rather than 'i' constraint for the 2-instruction alternative.
12712 (*movsi_2word): New, incorporating existing int_2word_operand splitter.
12713 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
12714 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
12715 EXTRA_CONSTRAINT_FOR_Y.
12716 (EXTRA_CONSTRAINT): Remove handling of 'Y'.
12717 * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
12718 (addsi3): Change 'Y' constraint to 'Q'.
12719 2003-11-27 Richard Sandiford <rsandifo@redhat.com>
12720 * reload.c (CONST_POOL_OK_P): New macro.
12721 (find_reloads): Use it to decide whether a constant can be forced
12722 into memory.
12723 * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
12724 constant satisfies got12_operand.
12725 (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
12726 (frv_legitimate_address_p): Check for valid unspec offsets using
12727 got12_operand rather than frv_legitimate_fdpic_operand_p.
12728 (frv_legitimate_fdpic_operand_p): Delete.
12729 (frv_emit_movsi): Abort if we try to use the FDPIC register during
12730 or after reload.
12731 (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
12732 TARGET_FDPIC.
12733 * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
12734 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
12735 * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
12736 (frv_fdpic_fptr_operand): Don't declare here.
12737 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
12738 rather than fdpic_got12_operand.
12739 (PREDICATE_CODES): Remove symbolic_operand entry. Add entries for
12740 got12_operand and const_unspec_operand.
12741 * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
12742 (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
12743 (symbolic_operand): Remove.
12744 (const_unspec_operand): New predicate.
12745 * config/frv/frv.md (*movsi_got): Use got12_operand.
12746 (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
12747 2003-11-18 Richard Sandiford <rsandifo@redhat.com>
12748 * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
12749 * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
12750 * config/frv/frv.c (frv_unspec): New structure.
12751 (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
12752 (frv_print_operand_memory_reference): Use frv_const_unspec_p to
12753 validate CONST indices. Use frv_output_const_unspec to print them.
12754 (frv_print_operand): Update call to unspec_got_name. Use
12755 frv_output_const_unspec to print constant unspecs.
12756 (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
12757 Reject UNSPECs otherwise.
12758 (unspec_got_name): Take the relocation number as argument, not an
12759 rtx containing it.
12760 (frv_output_addr_const_extra): Remove, replacing with...
12761 (frv_output_const_unspec): ...this new function.
12762 (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
12763 (gpr_or_int12_operand): Use fdpic_got12_operand.
12764 (dbl_memory_one_insn_operand): Likewise.
12765 (fdpic_got12_operand): Use frv_const_unspec_p.
12766 (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
12767 are already legitimate. Use frv_small_data_reloc_p when deciding
12768 whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
12769 2003-11-18 Alexandre Oliva <aoliva@redhat.com>
12770 * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
12771 * config/frv/libgcc-frv.ver: ... frv-specific symbols. New file.
12772 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
12773 label, for real this time.
12774 * config/frv/frv.c (frv_local_funcdesc_p): Update to new
12775 representation of visibility.
12776 (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
12777 such.
12778 2003-11-17 Richard Sandiford <rsandifo@redhat.com>
12779 * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
12780 (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
12781 * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
12782 it was explicitly disabled.
12783 (frv_stack_info): There is no need to save the link register in every
12784 frame unless TARGET_LINKED_FP is true.
12785 (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
12786 frame pointer if the stack pointer might change value.
12787 (frv_return_addr_rtx): Check and process "count" argument.
12788 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
12789 * config/frv/frv-protos.h (frv_legitimize_address): Remove.
12790 (frv_find_base_term): Declare.
12791 * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
12792 (FIND_BASE_TERM): Define.
12793 (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
12794 small_data_register_operand, small_data_symbolic_operand. Add
12795 symbolic_operand.
12796 * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
12797 (frv_print_operand_memory_reference, output_move_single): Remove
12798 special handling for unlegitimized sdata addresses.
12799 (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
12800 and symbolic addresses.
12801 (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
12802 (frv_find_base_term): New function.
12803 (int_2word_operand): Check specifically for symbolic address constants.
12804 (pic_register_operand, pic_symbolic_operand): Delete.
12805 (small_data_register_operand, small_data_symbolic_operand): Delete.
12806 (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
12807 Allow UNSPEC_GOT constants if !TARGET_FDPIC.
12808 (move_source_operand): Only accept CONSTs if they're a two-insn
12809 symbolic constant.
12810 (fdpic_got12_operand): Don't require TARGET_FDPIC.
12811 (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
12812 using gen_symGOTOFF2reg*.
12813 (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
12814 (frv_rtx_costs): Give all MEM addresses a cost of 0. Give MEMs
12815 themselves a cost of 3 insns.
12816 * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
12817 Change predicate to symbolic_operand.
12818 (*movsi_high_got, *movsi_lo_sum_got): Likewise.
12819 (*movsi_lda_sdata): Delete.
12820 (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
12821 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
12822 * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
12823 frv-*-*linux*.
12824 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
12825 label.
12826 * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
12827 -multilib-library-pic.
12828 (LINK_SPEC): Add -z text for -mfdpic.
12829 * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
12830 * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
12831 * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
12832 Override.
12833 (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
12834 FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
12835 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
12836 crtstuff-generated files.
12837 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
12838 * config.gcc: Add frv-*-*linux*.
12839 * config/frv/linux.h, config/frv/t-linux: New.
12840 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
12841 * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
12842 when -mfdpic even if a linker script is explicitly listed.
12843 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
12844 * config/frv/frv.c (frv_override_options): Clear asm_out
12845 unaligned_op for SImode on FDPIC.
12846 (frv_emit_movsi): Use compute_reloc_for_constant to compute the
12847 argument passed to decl_readonly_section.
12848 (frv_assemble_integer): Revert 2003-09-30's change, but make the
12849 whole block run with FDPIC even with -fno-PIC.
12850 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
12851 * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
12852 symbol or label plus offset to memory.
12853 (frv_emit_movsi): Emit GPREL only if -mgprel-ro. Emit 32-bit
12854 GOTOFF and GPREL for LABEL_REF.
12855 * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
12856 -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
12857 (MASK_GPREL_RO, TARGET_GPREL_RO): New.
12858 (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
12859 * doc/invoke.texi: Document them.
12860 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
12861 * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
12862 (frv_splittable_got_operand): Removed.
12863 * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
12864 LO_SUM. Add comments.
12865 (frv_override_options): Moved enabling of FDPIC to
12866 DRIVER_SELF_SPECS. Don't enable MASK_DWORD.
12867 (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
12868 (frv_legitimize_fdpic_address): Don't duplicate logic in
12869 frv_emit_movsi.
12870 (frv_gen_GPsym2reg): New.
12871 (unspec_got_name): Added gprel.
12872 (frv_expand_fdpic_call): Add support for inlining PLTs.
12873 (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
12874 (gpr_or_int12_operand): Added GPREL12.
12875 (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
12876 (small_data_symbolic_operand): Fail if FDPIC.
12877 (fdpic_splittable_got_operand): Removed.
12878 (fdpic_got12_operand): Added GPREL12.
12879 (frv_emit_movsi): Reorganize to avoid duplication. Emit GPREL
12880 when appropriate. Fix sdata GOTOFF.
12881 (frv_legitimate_constant_p): Require legitimate PIC operand for
12882 FDPIC with pic, but only a legitimate fdpic operand for non-pic.
12883 (frv_assemble_integer): Move FDPIC funcdesc handling out of
12884 flag_pic case.
12885 (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
12886 frv_assemble_integer fails.
12887 * config/frv/frv.h (DRIVER_SELF_SPECS): New.
12888 (SUBTARGET_DRIVER_SELF_SPECS): New.
12889 (ASM_SPEC): Don't pass -mno-fdpic.
12890 (LINK_SPEC): Pass -melf32frvfd for FDPIC.
12891 (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
12892 (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
12893 -multilib-library-pic.
12894 (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
12895 condexec_si_media_operator, condexec_sf_add_operator and
12896 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
12897 and condexec_sf_unary_operator.
12898 * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
12899 New.
12900 (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
12901 movsi_internal. Give them internal names. movsi_got has type
12902 int.
12903 (fdpic got splitters): Remove.
12904 (symGPREL2reg, symGPREL2reg_hilo): New.
12905 * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
12906 to -mlibrary-pic. Map -multilib-library-pic to it.
12907 * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
12908 Document.
12909 2003-09-28 Alexandre Oliva <aoliva@redhat.com>
12910 * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
12911 (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
12912 (frv_cannot_force_const_mem): New function.
12913 (const_small_data_p, plus_small_data_p): Update comments on sdata
12914 on FDPIC.
12915 (frv_override_options): Set flag_pie for FDPIC too.
12916 (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
12917 call-saved registers on FDPIC.
12918 (frv_stack_info): Don't preserve the PIC register on FDPIC, and
12919 don't force LR to be preserved.
12920 (frv_expand_prologue): Likewise.
12921 (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
12922 (frv_frame_pointer_required): Don't force it just because the
12923 FDPIC register is used.
12924 (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
12925 operand only if !condexec_p.
12926 (frv_legitimize_address): Return the FDPIC-legitimized address.
12927 Don't match small data here on FDPIC.
12928 (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
12929 symbols. Use TRUE/FALSE instead of 1/0.
12930 (frv_local_funcdesc_p): New.
12931 (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
12932 immediates when possible.
12933 (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
12934 (dbl_memory_one_insn_operand): Accept addresses that add a REG and
12935 an UNSPEC_GOT.
12936 (frv_emit_movsi): Handle FDPIC before small data. Use GOTOFF and
12937 12-bit immediates when possible.
12938 (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
12939 are not legitimate pic operands.
12940 (frv_in_small_data_p): Re-enable for FDPIC.
12941 * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
12942 (FRV_GLOBAL_P): Removed.
12943 * config/frv/frv.md: Add modes to CONSTs.
12944 (movsi_got): New.
12945 (movsi_lo_sum_got): Use separate matches instead of match_dup.
12946 (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
12947 (fdpic splittable operations): Match on flag_pic != 1.
12948 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
12949 * config/frv/frv.c (frv_asm_out_constructor,
12950 frv_asm_out_destructor): Pass to frv_assemble_integer the size in
12951 bytes, not bits.
12952 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
12953 * config/frv/frv.c (frv_assemble_integer): Reject complex
12954 expressions referencing function SYMBOL_REFs.
12955 * config/frv/frv.c (frv_function_symbol_referenced_p): New.
12956 (move_source_operand): Reject CONSTs that reference function
12957 SYMBOL_REFs on FDPIC.
12958 (frv_emit_movsi): If we get such a CONST, break it up.
12959 * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
12960 (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
12961 * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
12962 MEM.
12963 (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
12964 (frv_trampoline_size): Increase for FDPIC.
12965 * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
12966 (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
12967 * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
12968 Disable use of GOTOFF for now.
12969 (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
12970 Disable use of small data in FDPIC for now.
12971 (frv_asm_output_mi_thunk): Implement for FDPIC.
12972 * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
12973 * config/frv/frv.c (frv_asm_out_constructor): Use
12974 frv_assemble_integer for FDPIC pointers.
12975 (frv_asm_out_destructor): Likewise.
12976 * config/frv/frv.md (ldd): Fix order of operands. Use
12977 address_operand for input.
12978 2003-09-18 DJ Delorie <dj@redhat.com>
12979 * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
12980 (unspec_got_name): Correct typo.
12981 (frv_emit_movsi): Pre-expand splittable GOTs.
12982 (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
12983 * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
12984 (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
12985 * config/frv/t-frv: Add -mfdpic multilibs.
12986 * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
12987 (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
12988 * config/frv/frv.c (frv_override_options): -mfdpic assumes
12989 flag_pic, default to 32-bit pics, require DWORD ops.
12990 (frv_override_options): Add W and Z constraints.
12991 (frv_expand_prologue): No pic prologue for -mfdpic.
12992 (frv_asm_output_mi_thunk): Support -mfdpic (soon).
12993 (frv_print_operand_memory_reference): Handle GOT constants.
12994 (frv_legitimate_address_p): Allow GOT constants.
12995 (frv_legitimize_address): Handle GOT addresses too.
12996 (frv_legitimate_fdpic_operand_p): New.
12997 (frv_legitimize_fdpic_address): New.
12998 (unspec_got_name): New.
12999 (frv_output_addr_const_extra): New.
13000 (frv_expand_fdpic_call): New.
13001 (frv_fdpic_fptr_operand): New.
13002 (gpr_or_int12_operand): Handle GOT operands.
13003 (int_2word_operand): Handle GOT operands.
13004 (fdpic_operand): New.
13005 (fdpic_splittable_got_operand): New.
13006 (fdpic_got12_operand): New.
13007 (frv_emit_movsi): Handle GOT operands.
13008 (frv_assemble_integer): -mfdpic doesn't use rofixups.
13009 (frv_print_operand): Support 'g' code for GOT operands.
13010 * config/frv/frv-protos.h: Add prototypes as needed.
13011 * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
13012 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
13013 R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
13014 R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
13015 R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
13016 R_FRV_GOTOFFLO): New.
13017 (movsi_high_got, movsi_lo_sum_got): New.
13018 (*movsi_pic): Don't use this splitter for -mfdpic.
13019 (addsi3): Allow GOT references also.
13020 (call, call_value): Handle -mfdpic separately.
13021 (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
13022 call_value_fdpicsi): New.
13023 (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
13024 symGOTOFF2reg_i): New.
13025 * config/frv/frv.h (MASK_FDPIC): New.
13026 (TARGET_FDPIC): New.
13027 (TARGET_SWITCHES): Add -mfdpic.
13028 (FDPIC_FPTR_REGNO): New.
13029 (FDPIC_REGNO): New.
13030 (OUR_FDPIC_REG): New.
13031 (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
13032 FDPIC_CALL_REGS.
13033 (REG_CLASS_NAMES): Likewise.
13034 (REG_CLASS_CONTENTS): Likewise.
13035 (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
13036 (EXTRA_CONSTRAINT): Add it here.
13037 (FRV_GLOBAL_P): New.
13038 (OUTPUT_ADDR_CONST_EXTRA): New.
13039
13040 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
13041
13042 * config/sparc/sparc.h: Remove commented-out definitions of
13043 TARGET_EDOM and GEN_ERRNO_RTX.
13044
13045 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
13046
13047 * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
13048 df_analyse with df_analyze.
13049
13050 2004-02-24 Alan Modra <amodra@bigpond.net.au>
13051
13052 * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
13053 beginning of block.
13054
13055 2004-02-23 James E Wilson <wilson@specifixinc.com>
13056
13057 * calls.c (precompute_arguments): Update comment.
13058
13059 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
13060
13061 * et-forest.c: Replace et_occurences with et_occurrences.
13062
13063 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
13064
13065 * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
13066 with iv_analyze.
13067
13068 2004-02-23 Kelley Cook <kcook@gcc.gnu.org>
13069
13070 * config/i386/i386.c: Rename pni to sse3.
13071 * config/i386/i386.h: Likewise.
13072 * config/i386/i386.md: Likewise.
13073 * config/i386/pmmintrin.h: Likewise.
13074 * doc/extend.texi: Likewise.
13075 * doc/invoke.texi: Likewise.
13076
13077 2004-02-23 Zack Weinberg <zack@codesourcery.com>
13078 Kazu Hirata <kazu@cs.umass.edu>
13079
13080 Remove -fwritable-strings.
13081 * c-common.c (fix_string_type): Don't check
13082 flag_writable_strings.
13083 (fix_string_type): Likewise.
13084 * c-opts.c (set_std_c89): Don't initialize
13085 flag_writable_strings.
13086 (set_std_c99): Likewise.
13087 * common.opt (fwritable-strings): Remove.
13088 * flags.h: Remove the external declaration of
13089 flag_writable_strings.
13090 * opts.c (common_handle_option) <OPT_fwritable_strings>:
13091 Remove.
13092 * toplev.c (flag_writable_strings): Remove.
13093 (f_options): Remove an entry for writable-strings.
13094 * varasm.c (const_hash_1) <STRING_CST>: Don't check
13095 flag_writable_strings.
13096 (compare_constant) <STRING_CST>: Likewise.
13097 (build_constant_desc): Likewise.
13098 * config/darwin.c (machopic_select_section): Likewise.
13099 * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
13100 * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
13101 * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
13102 * config/mips/mips.c (mips_select_section): Likewise.
13103 (mips_encode_section_info): Likewise.
13104 * config/pa/pa.c (pa_select_section): Likewise.
13105 * config/pa/pa.h (TEXT_SPACE_P): Likewise.
13106 * config/v850/v850.c (v850_select_section): Likewise.
13107 * doc/invoke.texi (-fwritable-strings): Remove.
13108 (-fno-const-strings): Don't mention -fwritable-strings.
13109 * doc/trouble.texi: Don't mention -fwritable-strings.
13110
13111 2004-02-23 Nathanael Nerode <neroden@gcc.gnu.org>
13112
13113 * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
13114
13115 2004-02-23 Dale Johannesen <dalej@apple.com>
13116
13117 * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
13118 (movdf_hardfloat64): Ditto.
13119 (movdf_softfloat64): Ditto.
13120
13121 2004-02-23 Fariborz Jahanian <fjahanian@apple.com>
13122 * config/rs6000/rs6000.c (function_arg): call to
13123 rs6000_mixed_function_arg for DFmode moved to allow
13124 normal DFmode incoming register assignment.
13125
13126 2004-02-23 Dale Johannesen <dalej@apple.com>
13127
13128 * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
13129 (movdf_hardfloat64): Ditto.
13130
13131 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
13132
13133 * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
13134 config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
13135 copyright.
13136
13137 2004-02-23 Andrew Pinski <pinskia@physics.uc.edu>
13138
13139 PR c/14156
13140 * c-typeck.c (c_expand_return): Change check for VAR_DECL
13141 to use DECL_P instead.
13142
13143 * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
13144 * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
13145
13146 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
13147
13148 * Makefile.in (opts.o): Depend on target.h.
13149 * opts.c (decode_options): Use targetm.default_short_enums
13150 instead of DEFAULT_SHORT_ENUMS.
13151 * system.h (DEFAULT_SHORT_ENUMS): Poison.
13152 * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
13153 (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
13154 * target.h (gcc_target): Add default_short_enums.
13155 * config/cris/cris.h: Remove a comment about
13156 DEFAULT_SHORT_ENUMS.
13157 * config/ip2k/ip2k.h: Likewise.
13158 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
13159 TARGET_DEFAULT_SHORT_ENUMS. Update the description.
13160
13161 2004-02-23 Eric Botcazou <ebotcazou@libertysurf.fr>
13162 Falk Hueffner <falk@debian.org>
13163
13164 PR c/14188
13165 * builtins.c (expand_builtin_va_arg): Emit an informative message
13166 if a trap is generated.
13167 * c-typeck.c (build_function_call): Likewise.
13168
13169 2004-02-22 Jakub Jelinek <jakub@redhat.com>
13170
13171 * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
13172 fopen.
13173 * libgcov.c: Include sys/stat.h.
13174 * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
13175 * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
13176 * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
13177 * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
13178
13179 2004-02-22 Kazu Hirata <kazu@cs.umass.edu>
13180
13181 * reorg.c: Remove comments about dead ports.
13182
13183 2004-02-22 Christopher Faylor <cgf@redhat.com>
13184
13185 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
13186 extra host object file when targetting cygwin rather than generic
13187 object files.
13188
13189 2004-02-22 Josef Zlomek <zlomekj@suse.cz>
13190
13191 Merge from tree-ssa:
13192 2003-11-20 Richard Henderson <rth@redhat.com>
13193
13194 * tree-inline.c (insert_decl_map): New.
13195 (remap_decl, remap_type, remap_block, copy_body_r,
13196 initialize_inlined_parameters, declare_return_variable,
13197 remap_save_expr): Use it.
13198
13199 * function.c (copy_body_r): Add mapping from id->ret_label to
13200 id->ret_label. Revert test for ret_label.
13201
13202 2004-02-22 Jakub Jelinek <jakub@redhat.com>
13203
13204 * genoutput.c (process_template): Strip trailing whitespace in @
13205 templates and issue a warning if there was any.
13206
13207 2004-02-21 Christopher Faylor <cgf@redhat.com>
13208
13209 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
13210 object file when targetting cygwin.
13211 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
13212 overridden by top-level Makefile.
13213
13214 2004-02-21 Roger Sayle <roger@eyesopen.com>
13215
13216 * config/i386/i386.c (standard_80387_constant_p): Also prefer
13217 the x87's load constant instructions when optimizing for size.
13218
13219 2004-02-21 Kazu Hirata <kazu@cs.umass.edu>
13220
13221 * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
13222 * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
13223 * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
13224 * fold-const.c: Likewise.
13225 * simplify-rtx.c: Likewise.
13226
13227 2004-02-21 Alan Modra <amodra@bigpond.net.au>
13228
13229 * combine.c (can_combine_p): Don't ignore SETs marked with
13230 REG_EH_REGION notes.
13231 (try_combine): When attemting to fix unrecognized insns, don't
13232 split a PARALLEL that contains the original i2.
13233
13234 2004-02-21 Ziemowit Laski <zlaski@apple.com>
13235
13236 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
13237 SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
13238 * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
13239 * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
13240 (vector, pixel, bool): #define to __vector, __pixel and __bool.
13241 (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
13242 portion of header.
13243 (__altivec_link_error_invalid_argument): Remove prototype; will use
13244 __builtin_altivec_compiletime_error("vec_*") instead.
13245 (vec_*): Fix/complete set of available operation overloads given the
13246 existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
13247 cv-correctness of pointer arguments; in C, always check for correct
13248 argument types before macro expansion.
13249 * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
13250 defining Darwin/PowerPC-specific '-f[no-]altivec' and
13251 '-W[no-]altivec-long-deprecated' switches.
13252 * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
13253 '__vector', '__pixel' and '__bool' macros using
13254 '__attribute__((altivec(...)))' types.
13255 * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
13256 bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
13257 bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
13258 New type nodes.
13259 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
13260 handling '-W[no-]altivec-long-deprecated'.
13261 (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
13262 (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
13263 altivec_expand_dst_builtin): Remove casts from integer literals.
13264 (altivec_expand_builtin): Likewise; handle expansion of new
13265 '__builtin_altivec_compiletime_error' function.
13266 (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
13267 types, and make them distinct from other vector types; register
13268 '__builtin_altivec_compiletime_error' function.
13269 (print_operand): For 'P', print a full target register name instead of
13270 merely its number.
13271 (rs6000_attribute_table): Add "altivec" attribute.
13272 (rs6000_handle_altivec_attribute): New function.
13273 * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
13274 '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
13275 maps to).
13276 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
13277 declare.
13278 (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
13279
13280 2004-02-20 James E Wilson <wilson@specifixinc.com>
13281
13282 * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
13283 check.
13284 (shift_mix4left+2): Delete redundant pattern.
13285
13286 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
13287
13288 * alias.c (OUTGOING_REGNO): Don't define the default.
13289 * builtins.c (OUTGOING_REGNO): Likewise.
13290 (INCOMING_REGNO): Likewise.
13291 (apply_args_register_offset): Always use OUTGOING_REGNO.
13292 * combine.c (OUTGOING_REGNO): Likewise.
13293 * sibcall.c (OUTGOING_REGNO): Likewise.
13294 * defaults.h (INCOMING_REGNO): Provide the default.
13295 (OUTGOING_REGNO): Likewise.
13296
13297 2004-02-21 Jan Hubicka <jh@suse.cz>
13298
13299 * params.def (max-peeled-insns, max-completely-peeled-insns,
13300 max-once-peeled-insns): Set to 400.
13301
13302 2004-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13303
13304 PR c++/12007
13305 * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
13306 are set for parameters before outputing debugging information.
13307
13308 2004-02-20 Falk Hueffner <falk@debian.org>
13309
13310 PR target/14201
13311 * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
13312 numbers.
13313
13314 2004-02-20 Per Bothner <per@bothner.com>
13315
13316 * input.h: Don't #include line-map.h. It may cause link problems
13317 with undefined linemap_line_start when line-map.h is included but
13318 line-map.o is not linked, as currently happens with gengtype on
13319 compilers that don't support inline.
13320 * toplev.c: So we do have to explicitly #include line-map.h here.
13321
13322 2004-02-20 Richard Henderson <rth@redhat.com>
13323
13324 * doc/invoke.texi: Add -Wvariadic-macros.
13325
13326 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
13327
13328 * haifa-sched.c (sched_emit_insn): Remove.
13329 * sched-int.h: Remove the corresponding prototype.
13330
13331 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
13332
13333 Revert:
13334 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13335 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
13336 * system.h (DEFAULT_SHORT_ENUMS): Poison.
13337 * config/cris/cris.h: Remove a comment about
13338 DEFAULT_SHORT_ENUMS.
13339 * config/ip2k/ip2k.h: Likewise.
13340 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
13341
13342 2004-02-20 Mohan Embar <gnustuff@thisiscool.com>
13343 Tom Tromey <tromey@redhat.com>
13344
13345 * doc/install.texi: Moved --disable-libgcj and
13346 --with-system-zlib documentation to new section for
13347 Java-specific options.
13348 Added explicit Cross-Compiler-Specific Options subheading.
13349 Added section for Java-specific options.
13350
13351 2004-02-20 Matt Kraai <kraai@alumni.cmu.edu>
13352
13353 * doc/install.texi (Building the Ada compiler): Remove
13354 example.
13355
13356 2004-02-20 James E Wilson <wilson@specifixinc.com>
13357
13358 * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
13359
13360 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
13361
13362 * gcc.c (process_command): Allow translation of the copyright
13363 symbol but not the rest of the copyright message.
13364 * gcov.c (print_version): Likewise. Allow translation of the
13365 message about warranty.
13366
13367 2004-02-20 Hans-Peter Nilsson <hp@axis.com>
13368
13369 * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
13370 predicate.
13371 ("*andsi_clear"): Tweak constraints to not match postincrement.
13372 Adjust the predicate to exclude a volatile memory reference.
13373 ("*andhi_clear"): Ditto. Rename from "*andhi_clear_signed".
13374 ("*andhi_clear_unsigned"): Remove, non-matching pattern.
13375
13376 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
13377
13378 * move-if-change: Remove.
13379 * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
13380 (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
13381 (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
13382 (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
13383 (s-gtyp-gen, s-iov): Use the top level move-if-change.
13384 * objc/Make-lang.in (objc/objc-parse.y): Likewise.
13385
13386 2004-02-19 James E Wilson <wilson@specifixinc.com>
13387
13388 * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
13389 for operand2. Add condition that requires register_operand operand2
13390 before reload.
13391
13392 2004-02-19 Richard Sandiford <rsandifo@redhat.com>
13393 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
13394
13395 * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
13396 * config/mips/mips.md: Expand comment above unaligned loads and stores.
13397
13398 2004-02-19 Richard Henderson <rth@redhat.com>
13399
13400 * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
13401 * tree.c (build0, build1, build2, build3, build4): Split out from...
13402 (build): ... here. Call them.
13403 * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
13404
13405 * convert.c (convert_to_integer): Remove extra build argument.
13406 * tree-inline.c (expand_call_inline): Likewise.
13407
13408 2004-02-19 Richard Henderson <rth@redhat.com>
13409
13410 * c-opts.c (warn_variadic_macros): New.
13411 (c_common_handle_option): Set it.
13412 (sanitize_cpp_opts): Copy it to cpp_opts.
13413 * c.opt (Wvariadic-macros): New.
13414 * cpplib.h (struct cpp_options): Add warn_variadic_macros.
13415 * cppinit.c (cpp_create_reader): Initialize it.
13416 * cppmacro.c (parse_params): Check it.
13417
13418 2004-02-19 David Daney <ddaney@avtrex.com>
13419
13420 PR preprocessor/14198
13421 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
13422 builtin_assert ("machine=mips")
13423
13424 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13425
13426 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
13427 * system.h (DEFAULT_SHORT_ENUMS): Poison.
13428 * config/cris/cris.h: Remove a comment about
13429 DEFAULT_SHORT_ENUMS.
13430 * config/ip2k/ip2k.h: Likewise.
13431 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
13432
13433 2004-02-19 Zack Weinberg <zack@codesourcery.com>
13434
13435 * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
13436 when passing single SFmode quantities in general registers,
13437 put them in the high half.
13438
13439 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
13440
13441 * doc/md.texi (Standard Names): Document additional dependency on
13442 fix pattern.
13443
13444 * optabs.c (ftruncify): Remove.
13445 (expand_fix): Manually inline ftruncify above.
13446 (can_fix_p): Add FIXME note.
13447
13448 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
13449
13450 * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
13451 spe_fixuns_truncsfsi2.
13452
13453 * config/rs6000/rs6000.md (fixunssfsi2): Rename to
13454 fixuns_truncsfsi2.
13455
13456 2004-02-19 Steve Ellcey <sje@cup.hp.com>
13457
13458 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
13459 * testsuite/gcc.dg/20040219-1.c: New test.
13460
13461 2004-02-19 Ulrich Weigand <uweigand@de.ibm.com>
13462
13463 * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
13464 "*subsf3_cconly"): Subtraction is not commutative.
13465
13466 2004-02-19 Zack Weinberg <zack@codesourcery.com>
13467
13468 * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
13469 (sdbout_symbol): If called before sdbout_init, queue DECL for
13470 later and return.
13471 (sdbout_init): Set sdbout_initialized true, process decls
13472 queued earlier by sdbout_symbol.
13473 (sdbout_finish): Use size_t for index variable.
13474
13475 2004-02-19 Jeff Law <law@redhat.com>
13476
13477 * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
13478 for unordered comparison codes.
13479
13480 2004-02-19 Ian Lance Taylor <ian@wasabisystems.com>
13481
13482 * reload1.c (reload): Correct comment.
13483 (scan_paradoxical_subregs): Remove #if 0 and old comment.
13484 * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
13485 register variables are not used by reload.
13486
13487 2004-02-19 Hans-Peter Nilsson <hp@axis.com>
13488
13489 PR target/14209
13490 * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
13491 constraints to not match postincrement. Adjust the predicate to
13492 exclude a volatile memory reference.
13493
13494 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13495
13496 * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
13497
13498 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13499
13500 * hooks.c (hook_void_tree_int): Remove.
13501 (hook_void_constcharptr): Likewise.
13502 (hook_int_void_0): Likewise.
13503 * hooks.h: Remove the prototypes for the above three
13504 functions.
13505 * targhooks.c (hook_bool_machine_mode_true): Remove.
13506 * targhooks.h: Remove the prototype for
13507 hook_bool_machine_mode_true.
13508
13509 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13510
13511 * emit-rtl.c (subreg_realpart_p): Remove.
13512 (reorder_insns_with_line_notes): Likewise.
13513 (end_full_sequence): Likewise.
13514 * rtl.h: Remove the prototype for the above functions.
13515
13516 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13517
13518 * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
13519 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
13520 config/iq2000/iq2000.h, config/m32r/m32r.h,
13521 config/pdp11/pdp11.h, config/sparc/sparc.h,
13522 config/xtensa/xtensa.h: Remove commented-out or useless
13523 definitions of CASE_VECTOR_PC_RELATIVE.
13524
13525 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
13526
13527 * loop.c (all_sets_invariant_p): Remove.
13528
13529 2004-02-19 Eric Botcazou <ebotcazou@libertysurf.fr>
13530
13531 PR target/12916
13532 * config/sparc/sparc.h (NPARM_REGS): Delete.
13533 (BASE_RETURN_VALUE_REG): Likewise.
13534 (BASE_OUTGOING_VALUE_REG): Likewise.
13535 (BASE_PASSING_ARG_REG): Likewise.
13536 (BASE_INCOMING_ARG_REG): Likewise.
13537 * config/sparc/sparc.c (sparc_strict_argument_naming): Test
13538 TARGET_ARCH64, not TARGET_V9.
13539 (function_arg_slotno): Dispatch based on the mode class.
13540 Handle vector modes like floating-point modes.
13541 (function_arg_record_value_1): Handle vector types like
13542 floating-point types.
13543 (function_arg_record_value_2): Likewise.
13544 Calculate regno after mode transformation.
13545 (function_arg): Handle vector modes like floating-point modes.
13546 (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
13547 If ARCH64, do not recheck alignment.
13548 (function_arg_pass_by_reference): Reorder the conditions.
13549 (sparc_return_in_memory): Move after function_arg_padding.
13550 Implement calling conventions for vector modes.
13551 (sparc_struct_value_rtx): Move after sparc_return_in_memory.
13552 (function_value): Move scope of 'regbase'.
13553 Implement calling conventions for vector modes.
13554 (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
13555 and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
13556 (sparc_va_arg): Use function_arg_pass_by_reference to test whether
13557 the argument is passed by reference.
13558 (sparc_type_code): Handle vector types.
13559
13560 2004-02-19 Alan Modra <amodra@bigpond.net.au>
13561
13562 * function.c (assign_parms): When building decl_rtl for
13563 SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
13564
13565 2004-02-19 Olivier Hainque <hainque@act-europe.fr>
13566
13567 * expr.c (is_aligning_offset): Check if we are aligning the
13568 expressions's address over BIGGEST_ALIGNMENT in bytes, not
13569 in bits.
13570
13571 2004-02-18 Matt Austern <austern@apple.com>
13572
13573 * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
13574 LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
13575 (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
13576 defined. Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
13577 spec string.
13578 * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
13579
13580 2004-02-18 Zack Weinberg <zack@codesourcery.com>
13581
13582 * dwarf2out.c (loclabel_num): Move outside #ifdef
13583 DWARF2_DEBUGGING_INFO and mark with GTY(()).
13584 * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
13585 Mark with GTY(()).
13586 (ia64_hpux_add_extern_decl): Save the decl, not the name string.
13587 Allocate memory with ggc_alloc. No need to copy anything.
13588 (ia64_hpux_file_end): Update to match.
13589
13590 2004-02-18 Jakub Jelinek <jakub@redhat.com>
13591
13592 * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
13593 by default.
13594
13595 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
13596
13597 * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
13598 ("divmodtisi3"): Likewise.
13599 ("udivmoddi4", "udivmodtidi3"): Likewise.
13600 ("divmodsi4", "divmoddisi3"): Likewise.
13601 ("udivmodsi4", "udivmoddisi3"): Likewise.
13602 ("udivsi3", "umodsi3"): Likewise.
13603
13604 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
13605
13606 * config/s390/s390.c (s390_mainpool_start): Delete the main pool
13607 placeholder insn when chunkifying the pool.
13608
13609 2004-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13610
13611 * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
13612 generating PIC code.
13613
13614 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13615
13616 * config/h8300/h8300-protos.h: Add a prototype for
13617 h8300_expand_branch.
13618 * config/h8300/h8300.c (h8300_expand_branch): New.
13619 * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
13620 bgtu, beq, bne): Call h8300_expand_branch().
13621
13622 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13623
13624 * config/h8300/h8300-protos.h: Add prototypes for
13625 h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
13626 * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
13627 (h8300_hard_regno_mode_ok): Likewise.
13628 * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
13629 h8300_hard_regno_nregs().
13630 (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
13631
13632 2004-02-18 Per Bothner <per@bothner.com>
13633
13634 * cpphash.h (struct cpp_buffer): Restore return_at_eof field. This
13635 partly reverts my 2003-10-01 change, because we're back to logically
13636 including <command line> inside the main line.
13637 * cpplex.c (_cpp_get_fresh_line): Check return_at_eof field.
13638 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof of current buffer.
13639 Fixes PR preprocessor/14103.
13640
13641 * cppfiles.c (_cpp_stack_include): When appropriate decrement
13642 line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
13643 (cpp_push_include): Don't need to increment pfile's line field.
13644 * line-map.h (LAST_SOURCE_LINE_LOCATION): Only decrement by 1.
13645
13646 * c-ppoutput.c (print struct): New first_time field.
13647 (init_pp_output): Set print.first_time.
13648 (pp_file_change): Use print.first_time, rather than MAIN_FILE_P,
13649 which is set also for (say) <command line>. Clear print.first_time.
13650
13651 * cppfiles.c (struct _cpp_file): Comment and type for pch field
13652 does not match the code, so fix both.
13653 (should_stack_file): Inline include_pch_p function.
13654 (include_pch_p): Remove pointless function.
13655
13656 * cpphash.h (struct cpp_buffer): Remove unused search_cached field.
13657
13658 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13659
13660 * config/h8300/h8300.md (four define_peephole2's): Use
13661 h8300_regs_ok_for_stm().
13662
13663 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13664
13665 * config/h8300/h8300-protos.h: Update the prototype for
13666 expand_a_rotate().
13667 * config/h8300/h8300.c (expand_a_rotate): Remove the first
13668 argument.
13669 * config/h8300/h8300.md: Update all callers.
13670
13671 2004-02-18 Jan Hubicka <jh@suse.cz>
13672
13673 * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
13674 floats.
13675 (simplify_binary_operation): Deal with logicals on floats.
13676
13677 * i386.md (SSE fabs splitters): Emit new patterns.
13678 (SSE cmov splitters): Likewise.
13679 (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
13680 (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
13681 subregs.
13682 (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
13683 (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
13684
13685 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13686
13687 * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
13688 by hand.
13689 (output_a_rotate): Tweak a comment.
13690 * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
13691 (*rotlhi3_1): Change to rotlhi3_1.
13692 (*rotlsi3_1): Change to rotlsi3_1.
13693
13694 2004-02-18 Richard Earnshaw <rearnsha@arm.com>
13695
13696 PR target/13866
13697 * arm.c (load_multiple_operation): Don't insist that the source reg
13698 of a post-increment component is the same as the destination.
13699 (store_multiple_operation): Likewise.
13700
13701 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13702
13703 * config/h8300/h8300.md: Move movsf patterns into one section
13704 of the file.
13705
13706 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13707
13708 * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
13709 loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
13710 xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
13711 config/mips/linux64.h, config/pa/pa-64.h,
13712 config/rs6000/aix51.h, config/rs6000/aix52.h,
13713 config/rs6000/spe.md, config/sparc/linux.h,
13714 config/sparc/linux64.h: Update copyright.
13715
13716 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13717
13718 * config/h8300/h8300.md: Move push patterns into one
13719 section of the file.
13720
13721 2004-02-18 Mark Mitchell <mark@codesourcery.com>
13722
13723 PR c++/11326
13724 * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
13725 fntype.
13726
13727 2004-02-18 Paul Brook <paul@codesourcery.com>
13728
13729 * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
13730
13731 2004-02-18 Paul Brook <paul@codesourcery.com>
13732
13733 PR debug/12934
13734 * dwarf2out.c (loc_descriptor_from_tree): Handle
13735 EXPR_WITH_FILE_LOCATION.
13736
13737 2004-02-18 Jakub Jelinek <jakub@redhat.com>
13738
13739 * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
13740 testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
13741 trailing whitespace from instructions.
13742
13743 2004-02-17 Geoffrey Keating <geoffk@apple.com>
13744
13745 * configure.ac: When generating auto-build.h, pass
13746 --enable-languages to the sub-configure.
13747 Put quotes around ${program_transform_name} when generating
13748 name of as, ld, nm, objdump.
13749 * configure: Regenerate.
13750
13751 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
13752
13753 * Makefile.in (s-check, s-config, s-conditions, s-flags)
13754 (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
13755 (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
13756 (s-preds, s-iov): Do not depend on move-if-change.
13757
13758 2004-02-17 James E Wilson <wilson@specifixinc.com>
13759
13760 * caller-save.c (insert_restore): Pass mem through copy_rtx.
13761 (insert_save): Likewise.
13762
13763 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13764
13765 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
13766 warning.
13767
13768 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13769
13770 * config/h8300/h8300.md (*one_complsi2_h8300): Change to
13771 *one_cmplsi2_h8300.
13772 (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
13773
13774 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13775
13776 * config/h8300/h8300-protos.h: Update the prototype of
13777 fix_bit_operand().
13778 * config/h8300/h8300.c (fix_bit_operand): Remove the second
13779 argument "what".
13780 * config/h8300/h8300.md: Update all callers.
13781
13782 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13783
13784 * config/h8300/h8300.c (fix_bit_operand): Change the name of
13785 the last argument to "code" from "type".
13786
13787 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13788
13789 * config/h8300/h8300.c: Remove an extern declaration of
13790 rtx_equal_function_value_matters.
13791
13792 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13793
13794 * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
13795 by hand.
13796 * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
13797 (*iorqi3_1): Change to iorqi3_1.
13798 (*xorqi3_1): Change to xorqi3_1.
13799
13800 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13801
13802 * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
13803 typos.
13804
13805 2004-02-17 Jan Hubicka <jh@suse.cz>
13806
13807 * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
13808
13809 2004-02-18 Alan Modra <amodra@bigpond.net.au>
13810
13811 PR optimization/14119
13812 * combine.c (try_combine): When attemting to fix unrecognized insns,
13813 don't delete SETs marked with REG_EH_REGION notes.
13814
13815 2004-02-17 Ulrich Weigand <uweigand@de.ibm.com>
13816
13817 * combine.c (simplify_if_then_else): Do not replace
13818 (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
13819 modes differ.
13820
13821 2004-02017 Steven Bosscher <stevenb@suse.de>
13822
13823 * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
13824 function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
13825 tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
13826 * ada/utils.c: Likewise.
13827 * cp/decl.c: Likewise.
13828 * f/com.c: Likewise.
13829 * java/class.c: Likewise.
13830
13831 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13832
13833 * config/h8300/h8300.md: Fix comment typos.
13834
13835 2004-02-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13836
13837 * config/mips/t-iris6gld: Renamed to ...
13838 * config/mips/t-irix-gld: ... this.
13839 * config.gcc (mips-sgi-irix6*): Reflect this
13840 (mips-sgi-irix5*): Use it with GNU ld.
13841
13842 * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
13843 to ...
13844 * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
13845 * config/mips/t-irix-gld: Reflect this.
13846 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
13847
13848 * config/mips/iris5gld.h: New file.
13849 * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
13850 Only use collect2 without gas.
13851
13852 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
13853 Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
13854 (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
13855 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
13856
13857 * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
13858 * config/mips/iris5.h: ... here.
13859
13860 * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
13861 IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
13862 (STARTFILE_SPEC, ENDFILE_SPEC): Define.
13863
13864 * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
13865 using irix_startfile_spec, irix_endfile_spec.
13866
13867 2004-02-16 Gunther Nikl <gni@gecko.de>
13868
13869 * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
13870
13871 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13872
13873 * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
13874 insns by hand.
13875
13876 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13877
13878 * cfghooks.c (split_edge): Speed up updating of dominators.
13879
13880 2004-02-17 Mark Mitchell <mark@codesourcery.com>
13881
13882 PR c++/11326
13883 * c-common.c (flag_abi_version): Remove.
13884 * c-common.h (flag_abi_version): Likewise.
13885 * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
13886 * c.opt (fabi-version): Remove.
13887 * calls.c (expand_call): Always pass a function type to
13888 struct_value_rtx. Use convert_memory_address.
13889 * common.opt (fabi-version): Add it.
13890 * flags.h (flag_abi_version): Likewise.
13891 (abi_version_at_least): New macro.
13892 * opts.c (common_handle_option): Add OPT_fabi_version.
13893 * toplev.c (flag_abi_version): Define it.
13894 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
13895 New function.
13896 (ia64_output_mi_thunk): Use it.
13897 (ia64_struct_value_rtx): Likewise.
13898
13899 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13900
13901 * config/h8300/h8300.c (h8300_emit_stack_adjustment):
13902 Don't generate insns by hand.
13903
13904 2004-02-17 Andrew Pinski <pinskia@physics.uc.edu>
13905
13906 PR c++/14178
13907 * doc/invoke.texi (fabi-version): The default is 2 now.
13908
13909 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13910
13911 * loop-iv.c: New file.
13912 * Makefile.in (loop-iv.o): New.
13913 * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
13914 * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
13915 num_loop_branches): New functions.
13916 * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
13917 iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
13918 find_simple_exit, iv_number_of_iterations, iv_analysis_done,
13919 get_simple_loop_desc, free_simple_loop_desc): Declare.
13920 (simple_loop_desc): New inline function.
13921 (struct rtx_iv, struct niter_desc): New.
13922 * cfgloopmanip.c (loopify): Specify semantics more precisely.
13923 * expr.c (force_operand): Handle subregs of expressions created by
13924 loop unroller.
13925 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
13926 parts of the initialization to toplev.c
13927 * loop-unroll.c (loop_exit_at_end_p): New.
13928 (unroll_and_peel_loops): Call iv_analysis_done.
13929 (decide_peel_once_rolling, decide_peel_completely,
13930 decide_unroll_stupid, decide_unroll_constant_iterations,
13931 decide_unroll_runtime_iterations, decide_peel_simple,
13932 peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
13933 unroll_loop_runtime_iterations): Use new simple loop analysis.
13934 * loop-unswitch.c (compare_and_jump_seq): New.
13935 (may_unswitch_on_p): Renamed to ...
13936 (may_unswitch_on): Use new iv analysis.
13937 (reversed_condition): Export.
13938 (unswitch_single_loop, unswitch_loop): Use new iv analysis.
13939 * predict.c (estimate_probability): Use new simple loop analysis.
13940 * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
13941 canon_condition, simplify_using_condition): Declare.
13942 * stor-layout.c (get_mode_bounds): New.
13943 * toplev.c (rest_of_handle_loop2): Some parts of
13944 initialization/finalization moved here from loop-init.c.
13945
13946 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13947
13948 * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
13949 pointer.
13950 (CALL_USED_REGISTERS): Likewise.
13951 (REG_ALLOC_ORDER): Likewise.
13952 (REG_CLASS) <GENERAL_REGS>: Likewise.
13953
13954 2004-02-16 Geoffrey Keating <geoffk@apple.com>
13955
13956 * doc/md.texi (Insn Canonicalizations): Document left-chaining
13957 in associative operators.
13958 * rtlanal.c (commutative_operand_precedence): Create some new
13959 variables. Prefer a commutative operand on the left, then
13960 binary expressions, then NEG and NOT.
13961
13962 2004-02-16 Matthias Klose <doko@debian.org>
13963
13964 * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
13965 in terms of SHLIB_SOVERSION.
13966 * config/m68k/t-slibgcc-elf-ver: New file.
13967 * config/pa/t-slibgcc-elf-ver: New file.
13968 * config.gcc (m68k-linux, parisc-linux): Use them when not
13969 sjlj exceptions are not configured.
13970
13971 2004-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
13972
13973 * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
13974
13975 2004-02-16 Zack Weinberg <zack@codesourcery.com>
13976
13977 * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
13978
13979 2004-02-16 Joseph S. Myers <jsm@polyomino.org.uk>
13980
13981 * doc/sourcebuild.texi: Mention backends.html.
13982
13983 2004-02-16 Kazu Hirata <kazu@cs.umass.edu>
13984
13985 * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
13986 line-map.c, line-map.h, var-tracking.c: Fix comment
13987 formatting.
13988
13989 2004-02-16 Richard Henderson <rth@redhat.com>
13990
13991 * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
13992
13993 * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
13994
13995 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
13996
13997 * config/h8300/h8300.md: Remove unnecessary parallels from
13998 all define_insn and define_split patterns.
13999
14000 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
14001
14002 * config/h8300/h8300.md: Remove explicit (set_attr "cc"
14003 "clobber").
14004
14005 2004-02-15 Bernardo Innocenti <bernie@develer.com>
14006
14007 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
14008 '%#'.
14009
14010 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
14011
14012 * config/ia64/ia64.c, config/mips/mips.c,
14013 config/mmix/mmix-modes.def: Fix comment typos.
14014
14015 2004-02-15 Roger Sayle <roger@eyesopen.com>
14016
14017 * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
14018 (get_directive_line): Remove unused function prototype.
14019
14020 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
14021
14022 * tree-inline.c (copy_body_r): Do not replace ret_label.
14023
14024 2004-02-14 Jan Hubicka <jh@suse.cz>
14025
14026 * i386.c (x86_four_jump_limit): New variable.
14027 (k8_avoid_jump_misspredicts): Rename to ...
14028 (ix86_avoid_jump_misspredicts): .. this one.
14029 (ix86_pad_returns): Break out from ...
14030 (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
14031 to.
14032 * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
14033
14034 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
14035
14036 * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
14037 PARALLEL is NULL.
14038
14039 2004-02-14 Per Bothner <per@bothner.com>
14040
14041 * fix-header.c (line_table): Move local variable in main to global.
14042 * scan.h (line_table): Use it.
14043 * scan-decls.c (scan_decls): Need to call linemap_lookup on token's
14044 line (recently renamed to src_loc) before calling recognized_function.
14045
14046 2004-02-14 Matt Kraai <kraai@alumni.cmu.edu>
14047
14048 * Makefile.in: Fix comment typos.
14049
14050 2004-02-14 Olivier Hainque <hainque@act-europe.fr>
14051
14052 * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
14053 for start_value when it is directly moved into reg, and factorize
14054 the retrieval of GET_MODE (reg).
14055
14056 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
14057
14058 * config/mips/mips-protos.h (mips_load_got_page): Delete.
14059 (mips_load_got_global): Delete.
14060 (mips_gotoff_page): Declare.
14061 * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
14062 (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
14063 UNSPEC_LOAD_GOT pattern rather than a MEM.
14064 (*load_got[sd]i): New patterns.
14065 * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
14066 (mips_load_got_page, mips_load_got_global): Delete.
14067 (mips_gotoff_page): New function.
14068 (override_options): Don't initialize mips_got_alias_set.
14069
14070 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
14071
14072 * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
14073 (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
14074 (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
14075 (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
14076 (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
14077 * config/mips/mips.c: Fix some overly-long lines.
14078 (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
14079 (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
14080
14081 2004-02-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14082
14083 * configure.ac: Search for as, ld below libexec/gcc.
14084 * configure: Regenerate.
14085
14086 2004-02-14 Ben Elliston <bje@wasabisystems.com>
14087
14088 * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
14089 __builtin_arm_setwcx ().
14090 * config/arm/arm.c (arm_expand_builtin): Generate operands
14091 correctly and reverse their order in call to gen_iwmmxt_tmcr ().
14092
14093 2004-02-14 Ben Elliston <bje@wasabisystems.com>
14094
14095 * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
14096 and "wmuluh" to "wmulsm" and "wmulum", respectively.
14097 * config/arm/arm.h (enum arm_builtins): Rename enumerators to
14098 ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
14099 * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
14100 (_mm_mulhi_pu16): Likewise.
14101
14102 2004-02-13 Zack Weinberg <zack@codesourcery.com>
14103
14104 * xcoffout.c (xcoff_assign_fundamental_type_number): Check
14105 DECL_NAME != 0 before dereferencing.
14106
14107 2004-02-13 Ulrich Weigand <uweigand@de.ibm.com>
14108
14109 * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
14110 (s390_output_addr_const_extra): Declare.
14111 (s390_output_pool_entry): Remove FILE * argument.
14112 * config/s390/s390.c (s390_output_symbolic_const): Remove.
14113 (s390_output_addr_const_extra): New function.
14114 (print_operand_address): Call output_addr_const instead of
14115 s390_output_symbolic_const.
14116 (print_operand): Likewise.
14117 (s390_output_pool_entry): Use assemble_integer for symbolic constants.
14118 Remove FILE * argument.
14119 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
14120 * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
14121 call.
14122
14123 2004-02-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14124
14125 * cfgloopanal.c (mark_irreducible_loops): Rewriten.
14126 (struct edge, struct vertex, struct graph): New.
14127 (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
14128 free_graph): New functions.
14129
14130 2004-02-12 Chris Demetriou <cgd@broadcom.com>
14131
14132 * config/mips/mips.md (casesi_internal, casesi_internal_di):
14133 Use ".set macro" to avoid warnings about multi-instruction
14134 macros, since they're intentional.
14135
14136 2004-02-12 Geoffrey Keating <geoffk@apple.com>
14137
14138 * config/darwin.h: Add include guards. Remove old, now incorrect,
14139 comment about STANDARD_EXEC_PREFIX.
14140
14141 * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
14142 $(GCOV_INSTALL_NAME) to install manpages. Remove generic rule
14143 for installing .1 manpages. Add rules for installing cpp
14144 and gcov manpages under their installed names.
14145
14146 2004-02-12 Alexandre Oliva <aoliva@redhat.com>
14147
14148 * configure.ac (gcc_cv_ld): Don't set to LD if target is not
14149 host, but try LD_FOR_TARGET first.
14150 * configure: Rebuilt.
14151
14152 2004-02-12 Zack Weinberg <zack@codesourcery.com>
14153
14154 * dbxout.c: Move declaration of dbxout_type_decl outside
14155 #ifdef DBX_DEBUGGING_INFO.
14156 * c-parse.in: Don't give the asmdef production a type.
14157
14158 2004-02-12 Zack Weinberg <zack@codesourcery.com>
14159
14160 * debug.h (struct gcc_debug_hooks): Add type_decl field.
14161 (debug_nothing_tree_int): Prototype.
14162 (dwarf_debug_hooks): Delete, unused.
14163 * debug.c (do_nothing_debug_hooks): Update.
14164 (debug_nothing_tree_int): New function.
14165 * langhooks.h (struct lang_hooks_for_decls):
14166 Remove builtin_type_decls field.
14167 * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
14168 (LANG_HOOKS_DECLS): Update.
14169 * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
14170 Use debug_hooks->type_decl.
14171 * dbxout.c (preinit_symbols): New static.
14172 (dbx_debug_hooks, xcoff_debug_hooks): Update.
14173 (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
14174 lang_hooks.decls.builtin_type_decls. Do scan preinit_symbols
14175 for symbols to output.
14176 (dbxout_type_decl): New function.
14177 (dbxout_symbol): If called before dbxout_init has run, queue
14178 the symbol for later. Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
14179 to TYPE_DECLs before emitting them.
14180 * xcoffout.c (assign_type_number): Delete.
14181 (xcoff_type_numbers): New static table.
14182 (xcoff_assign_fundamental_type_number): New function.
14183 * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
14184 DBX_OUTPUT_STANDARD_TYPES. Remove unnecessary #ifdefs.
14185 * sdbout.c: Include varray.h.
14186 (deferred_global_decls): New static.
14187 (sdb_debug_hooks): Update.
14188 (sdbout_global_decl): If we can't emit something right now,
14189 remember it in deferred_global_decls.
14190 (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
14191 (sdbout_init): Initialize deferred_global_decls.
14192 * Makefile.in: Update dependencies of sdbout.o.
14193 * dwarf2out.c (dwarf2out_type_decl): New function.
14194 (dwarf2_debug_hooks): Update.
14195 * vmsdbgout.c (vmsdbg_debug_hooks): Update.
14196 * c-decl.c (getdecls): Just return 0.
14197 (check_for_loop_decls): Don't use getdecls.
14198 (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
14199 * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
14200
14201 2004-02-12 Ulrich Weigand <uweigand@de.ibm.com>
14202
14203 * config/s390/s390.c (s390_sched_reorder2): Remove.
14204 (TARGET_SCHED_REORDER2): Do not redefine.
14205
14206 2004-02-12 Zack Weinberg <zack@codesourcery.com>
14207
14208 * c-parse.in (maybe_type_qual): Delete.
14209 (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
14210 (asm_argument): New grammar rules.
14211 (extdef_1): Use asmdef.
14212 (maybeasm): Move down with other asm rules; use simple_asm_expr.
14213 (xexpr): Move up with other expression rules.
14214 (stmt): Use asm_stmt.
14215
14216 * c-typeck.c (build_asm_expr): New function - body mostly
14217 pulled from build_asm_stmt.
14218 (build_asm_stmt): Just handle tacking on the volatile qualifier.
14219 * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
14220
14221 2004-02-12 Richard Sandiford <rsandifo@redhat.com>
14222
14223 PR bootstrap/13617
14224 * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
14225 (mips_declare_object): Make variadic.
14226 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
14227 mips_output_aligned_decl_common.
14228 * config/mips/mips.c (mips_output_aligned_decl_common): New function.
14229 (mips_declare_object): Make variadic.
14230
14231 2004-02-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14232
14233 * function.c (update_epilogue_consts): Teach about binary operations.
14234
14235 * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
14236 previous MEM_VOLATILE in REF.
14237 * function.c (fixup_var_refs): Save volatile_ok and set to 1.
14238 * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
14239
14240 2004-02-12 Gunther Nikl <gni@gecko.de>
14241
14242 * config.gcc: Restore support for m68k-openbsd.
14243
14244 2004-02-12 Jan Hubicka <jh@suse.cz>
14245
14246 * tree-optimize.c (tree_rest_of_compilation): Do not release
14247 DECL_ARGUMENTS.
14248
14249 2004-02-11 Matt Kraai <kraai@alumni.cmu.edu>
14250
14251 * doc/install.texi: Fix the spelling of "explicitly".
14252
14253 2004-02-11 Eric Christopher <echristo@redhat.com>
14254
14255 * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
14256 duplicate argument structure of cpp_interpret_string.
14257 * cpphash.h: Move prototype...
14258 * cpplib.h: Here.
14259 * cpplib.c: Fix calls to match new function signature.
14260
14261 2004-02-11 Joseph S. Myers <jsm@polyomino.org.uk>
14262
14263 PR c/456
14264 * cppexp.c (num_binary_op): Don't allow comma operators in #if
14265 constant expressions at all outside C99 mode if pedantic.
14266
14267 2004-02-11 Uros Bizjak <uros@kss-loka.si>
14268
14269 * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
14270 (log10_optab, log2_optab): Define corresponding macros.
14271 * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
14272 * genopinit.c (optabs): Implement log10_optab and log2_optab
14273 using log10?f2 and log2?f2 patterns.
14274 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
14275 using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
14276 (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
14277 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
14278
14279 * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
14280 log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
14281 log2, log2f and log2l built-ins as inline x87 intrinsics.
14282
14283 2004-02-11 Richard Henderson <rth@redhat.com>
14284
14285 PR target/1532
14286 * flow.c (insn_dead_p): A clobber of a dead hard register is a
14287 dead insn after reload.
14288
14289 2004-02-11 Ulrich Weigand <uweigand@de.ibm.com>
14290
14291 * tree.h (frame_base_decl): Add GTY marker.
14292 * var-tracking.c (frame_base_decl): Likewise.
14293
14294 2004-02-11 Daniel Berlin <dberlin@dberlin.org>
14295
14296 * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
14297 incorrect, hunk.
14298 (add_location_or_const_value_attribute): Use text_section_label,
14299 not TEXT_SECTION_NAME.
14300
14301 2004-02-11 Per Bothner <per@bothner.com>
14302
14303 Represent column numbers using line-map's source_location.
14304 The "next available source_location" is now managed internally by
14305 line-maps.c rather than by clients.
14306 * line-map.h (struct line_map): New field column_bits.
14307 <from_line>: Rename field to start_location.
14308 (struct line_maps): New fields highest_location and max_column_hint.
14309 (linemap_check_files_exited): New declaration.
14310 (linemap_line_start): New declaration.
14311 (linemap_add): Remove from_line parameter; use highest_location field.
14312 (SOURCE_LINE, LAST_SOURCE_LINE): Modify to use column_bits.
14313 (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION): New macros.
14314 (CURRENT_LINE_MAP): Remove macro.
14315 (linemap_position_for_column): New inline function.
14316 * line-map.c (linemap_init): Clear new fields.
14317 (linemap_check_files_exited): New function, extracted from ...
14318 (linemap_free): Use linemap_check_files_exited.
14319 (linemap_add): Remove from_line parameter. Various updates.
14320 (linemap_line_start): New function.
14321 (linemap_lookeup): Update for new field names.
14322 * cpphash.h (struct cpp_reader) <map>: Field removed. Because
14323 linemap_position_for_column may unpredictably change the current map,
14324 it is cleaner and simpler for us to not cache it in cpp_reader.
14325 (struct cpp_buffer): New sysp field.
14326 Changed warned_cplusplus_comments and from_stage3 to bitfields.
14327 * cppinit.c (cpp_read_min_file): pfile->map no longer exists.
14328 * cpplib.c (do_line, do_linemarker, _cpp_do_file_change): Get
14329 current map using linemap_lookup.
14330 (do_linemarker): Also set buffer's sysp field.
14331 (destringize_and_run): No longer need to decrement current line.
14332 * cppfiles.c (_cpp_stack_file): Set sysp from and in buffer.
14333 (search_path_head, open_file_failed): Use buffer's sysp.
14334 (cpp_make_system_header): Get current map using linemap_lookup.
14335 Also set buffer's sysp flag.
14336 * cppmacro.c (_cpp_builtin_macro_text): Likewise use linemap_lookup.
14337 * cpphash.h (CPP_INCREMENT_LINE): New macro.
14338 (struct cpp_buffer): Moved fields saved_cur, saved_rlimit to ...
14339 (struct cpp_reader): ... and adding saved_line_base field.
14340 * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
14341 Update accordingly. Don't adjust line.
14342 (_cpp_scan_out_logical_line): Use CPP_INCREMENT_LINE.
14343 * cpphash.c (CPP_IN_SYSTEM_HEADER): Replaced macro by ...
14344 (cpp_in_system_header): ... new inline function, using buffer's sysp.
14345 * cpperror.c (_cpp_begin_message): Update to use cpp_in_system_header.
14346 * cpplex.c (_cpp_lex_direct): Likewise.
14347 * cppmacro.c (_cpp_builtin_macro_text): Likewise.
14348 * cppmacro.c (_cpp_create_definition): Use buffer's sysp field.
14349 * cpplib.h (struct cpp_token): Rename line field to src_loc.
14350 Remove col field as it is now subsumed by src_loc.
14351 * cpperror.c: Update various field, parameter, and macro names.
14352 (print_location): If col==0, try SOURCE_COLUMN of line.
14353 (cpp_error): Use cur_token's src_loc field, rather than line+col.
14354 * cpplib.c (do_diagnostic): Token's src_loc fields replaces line+col.
14355 * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
14356 _cpp_skip_block_comment): Use CPP_INCREMENT_LINE.
14357 (_cpp_temp_token): Replace cpp_token's line+col fields by src_loc.
14358 (_cpp_get_fresh_line): Don't need to adjust line for missing newline.
14359 (_cpp_lex_direct): Use linemap_position_for_column.
14360 * c-ppoutput.c (maybe_print_line, print_line): Don't take map
14361 parameter. Instead get it from the line_table global. Adjust callers.
14362 (print): Remove map field. Replace line field to src_line.
14363 (init_pp_output, account_for_newlines, maybe_print_line): Adjust.
14364 (cb_line_change): Use SOURCE_COLUMN. Minor optimizations.
14365 (pp_file_change): Use MAIN_FILE_P since we cannot checked print.map.
14366 Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
14367 * cpptrad.c (copy_comment): Rename variable.
14368 * c-lex.c (map): Remove static variable, for same reason we removed
14369 cpp_reader's map field.
14370 (cb_line_change, cb_def_pragma, cb_define, cb_undef): Hence we need
14371 to call linemap_lookup.
14372 (cb_line_change): Token's line field replaced by src_loc.
14373 (fe_file_change): Use MAINFILE_P and LAST_SOURCE_LINE macros.
14374 Don't save new_map.
14375
14376 * cpphash.h, cpperror.c, cpplib.h: Some renames of fileline to
14377 source_location.
14378
14379 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
14380
14381 * config/rs6000/altivec.md (*movv4si_internal): At least one
14382 operand must be register_operand.
14383 (*movv8hi_internal1): Likewise.
14384 (*movv16qi_internal1): Likewise.
14385 (*movv4sf_internal1): Likewise.
14386
14387 2004-02-10 Aldy Hernandez <aldyh@redhat.com>
14388
14389 * config/rs6000/spe.md ("*movv2si_internal"): Check for register
14390 operand.
14391 (movv4hi_internal): Same.
14392 (movv2sf_internal): Same.
14393 (movv1di_internal): Same.
14394
14395 2004-02-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
14396
14397 * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
14398 TARGET_OLDABI consistently.
14399 * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
14400 mips_va_arg,override_options,compute_frame_size,
14401 mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
14402 ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
14403 and TARGET_OLDABI consistently.
14404 * config/mips/mips.md (exception_receiver): Likewise.
14405 * config/mips/linux64.h: Likewise.
14406
14407 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
14408
14409 * gcc/config/rs6000/rs6000.c (rs6000_override_options)
14410 Set AltiVec ABI and vrsave as default for ppc64 linux.
14411 (init_cumulative_args): Post error, if try to return
14412 value in AltiVec register without enable AltiVec.
14413 (function_arg_advance): Ditto for passing arguments.
14414
14415 2004-02-11 Richard Sandiford <rsandifo@redhat.com>
14416
14417 * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
14418 a label before updating its usage count.
14419
14420 2004-02-10 Matt Kraai <kraai@alumni.cmu.edu>
14421
14422 * doc/install.texi: Remove extra cd.
14423
14424 2004-02-10 Ziemowit Laski <zlaski@apple.com>
14425
14426 * c-common.c (vector_size_helper): Remove; call
14427 reconstruct_complex_type() instead.
14428 * tree.c (reconstruct_complex_type): New function
14429 (formerly vector_size_helper() in c-common.c).
14430 (make_vector): Make externally visible.
14431 * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
14432
14433 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
14434
14435 * config/h8300/h8300-protos.h: Add a prototype for
14436 h8300_regs_ok_for_stm.
14437 * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
14438 * config/h8300/h8300.md (stm_h8300s_2_advanced,
14439 stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
14440 stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
14441 stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
14442 ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
14443 ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
14444 ldm_h8300s_4_normal, ldm_h8300s_4): Use
14445 h8300_regs_ok_for_stm().
14446
14447 2004-02-10 Danny Smith <dannysmith@users.sourceforge.net>
14448
14449 PR c/14088
14450 * real.c (real_from_string): Look for 'X' as well as 'x' in
14451 hexfloat strings.
14452
14453 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
14454
14455 * config/h8300/h8300.md: Remove an incorrect comment about
14456 peephole2. Add comments.
14457
14458 2004-02-10 Josef Zlomek <zlomekj@suse.cz>
14459
14460 PR/14058
14461 * emit-rtl.c (set_decl_incoming_rtl): New.
14462 * tree.h (set_decl_incoming_rtl): New.
14463 * function.c (assign_parms): Use set_decl_incoming_rtl for setting
14464 DECL_INCOMING_RTL.
14465 * ada/misc.c (adjust_decl_rtl): Likewise.
14466
14467 2004-02-10 Per Bothner <per@bothner.com>
14468
14469 * c-opts.c (c_common_post_options): Don't emit working directory
14470 in cpp output if -P was specified.
14471
14472 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
14473
14474 PR c/14092
14475 * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
14476 negate_expr back to the original type.
14477
14478 2004-02-10 Alan Modra <amodra@bigpond.net.au>
14479
14480 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
14481 bump retaddr here.
14482
14483 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
14484
14485 * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
14486 gen_lowpart_SUBREG): Move under the file in which they
14487 are actually declared.
14488
14489 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>
14490
14491 * doc/sourcebuild.texi: Add libada documentation.
14492
14493 * doc/install.texi: Update documentation on Ada build, now
14494 that the GNAT lib and tools are built automatically.
14495
14496 2004-02-10 Richard Sandiford <rsandifo@redhat.com>
14497
14498 * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
14499 && TARGET_IRIX.
14500
14501 2004-02-09 Ziemowit Laski <zlaski@apple.com>
14502
14503 * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
14504 boundaries outside build_component_ref() call (a macro in ObjC++).
14505
14506 2004-02-09 Bob Wilson <bob.wilson@acm.org>
14507
14508 * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
14509 (init_cumulative_args): Likewise.
14510 (a7_overlap_mentioned_p): Delete prototype.
14511 * config/xtensa/xtensa.c (struct machine_function): Replace
14512 incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
14513 Add set_frame_ptr_insn field.
14514 (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
14515 (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
14516 if the operand is an argument in a7. If so, copy a7 to a new pseudo
14517 at the function entry and replace the operand with the pseudo.
14518 (init_cumulative_args): Remove unused arguments. Add new "incoming"
14519 argument and record this flag in CUMULATIVE_ARGS.
14520 (function_arg): Remove result_mode and special-case code to handle
14521 arguments in a7. Instead, set need_a7_copy flag when there is an
14522 incoming argument in a7.
14523 (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
14524 and use the value recorded in cfun->machine->set_frame_ptr_insn.
14525 (xtensa_builtin_saveregs): Check for negative gp_left value. Set
14526 need_a7_copy and vararg_a7 flags. Use move_block_from_reg instead of
14527 special-case code.
14528 (a7_overlap_mentioned_p): Delete.
14529 * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
14530 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
14531 arguments to init_cumulative_args and pass "incoming" flag instead.
14532 (BLOCK_REG_PADDING): Delete.
14533 * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
14534 checks for reload_in_progress and reload_completed. Update calls to
14535 xtensa_copy_incoming_a7.
14536 (ashlsi3): Rename existing insn to ashlsi3_internal. Add expander
14537 to call xtensa_copy_incoming_a7.
14538
14539 2004-02-09 DJ Delorie <dj@redhat.com>
14540
14541 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
14542 longer modify standard_exec_prefix, standard_bindir_prefix, or
14543 standard_startfile_prefix.
14544
14545 2004-02-09 James E Wilson <wilson@specifixinc.com>
14546
14547 PR c++/11295
14548 * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
14549 to expand_expr_real call, and pass in alt_rtl as last argument.
14550
14551 PR libstdc++/5625
14552 * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
14553 * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
14554 * builtins.def (BUILT_IN_EXTEND_POINTER): New.
14555 * except.c (expand_builtin_extend_pointer): New.
14556 * except.h (expand_builtin_extend_pointer): Declare.
14557
14558 2004-02-09 David Edelsohn <edelsohn@gnu.org>
14559
14560 * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
14561 unaligned loads and stores.
14562
14563 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14564
14565 * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
14566 * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
14567
14568 * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
14569 * config/mips/iris5.h: ... here.
14570 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
14571
14572 * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
14573 * config/mips/iris5.h: ... here.
14574
14575 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14576
14577 * configure.ac: Remove default executable files before AC_PROG_CC.
14578 * configure: Regenerate.
14579
14580 2004-02-09 Kazu Hirata <kazu@cs.umass.edu>
14581
14582 PR target/13721
14583 * config/h8300/h8300.c (byte_reg): Call abort() if asked to
14584 print a operand other than a register.
14585
14586 2004-02-09 Roger Sayle <roger@eyesopen.com>
14587
14588 * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
14589 tree code rather than call fold_convert, which doesn't specify a
14590 default floating point to integer conversion.
14591
14592 2004-02-08 Bernardo Innocenti <bernie@develer.com>
14593
14594 * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
14595 code to support SGS assembler. Reformat adjacent code where possible.
14596 * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
14597 definition.
14598 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
14599 for '%#'.
14600 * config/m68k/linux.h, config/m68k/m68k.c,
14601 * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
14602 macros and asm_printf() format strings.
14603 * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
14604 * config/m68k/linux.h: Update copyright.
14605 * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
14606
14607 2004-02-08 Andreas Schwab <schwab@suse.de>
14608 Bernardo Innocenti <bernie@develer.com>
14609
14610 * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
14611 REGISTER_PREFIX.
14612 * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
14613 frame pointer register, overridable by OS targets.
14614 * (M68K_REGNAME): Macro to obtain register name for asm output,
14615 eventually replacing %a6 with M68K_FP_REG_NAME.
14616 * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
14617 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
14618 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
14619 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
14620 * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
14621
14622 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
14623
14624 * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
14625 hook_rtx_tree_int_null.
14626 * targhooks.c (default_struct_value_rtx): Remove.
14627 * targhooks.h: Remove the prototype for
14628 default_struct_value_rtx.
14629 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
14630 config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
14631 config/ip2k/ip2k.c, config/iq2000/iq2000.c,
14632 config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
14633 config/mn10300/mn10300.c, config/pdp11/pdp11.c,
14634 config/rs6000/rs6000.c, config/s390/s390.c,
14635 config/stormy16/stormy16.c, config/v850/v850.c,
14636 config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
14637 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
14638
14639 2004-02-08 Joseph S. Myers <jsm@polyomino.org.uk>
14640
14641 * README.Portability: Change "ISO C89" to "ISO C90".
14642 * c-parse.in (primary, initelt): Likewise.
14643
14644 2004-02-08 Richard Sandiford <rsandifo@redhat.com>
14645
14646 * real.c (encode_ibm_extended): Normalize the input value before
14647 converting it to a double. Handle the case where a normal value
14648 rounds to infinity.
14649
14650 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
14651
14652 * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
14653 warning.
14654 * cse.c (preferrable): Change to preferable. Update all of its
14655 callers.
14656 * genautomata.c (ainsn): Change
14657 first_ainsn_with_given_equialence_num to
14658 first_ainsn_with_given_equivalence_num. Update all of its
14659 references.
14660
14661 2004-02-08 Jan Hubicka <jh@suse.cz>
14662
14663 * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
14664
14665 2004-02-07 David Edelsohn <edelsohn@gnu.org>
14666
14667 * function.c (assign_parms): Fix formatting.
14668
14669 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14670
14671 * default.h (PROMOTE_PROTOTYPES): Remove.
14672 * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
14673 STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
14674 EXPAND_BUILTIN_SAVEREGS): Poison.
14675 * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
14676 hook_bool_tree_false.
14677 (TARGET_PROMOTE_PROTOTYPES): Likewise.
14678 * target.h: Replace SETUP_INCOMING_VARARGS with
14679 targetm.calls.setup_incoming_varargs().
14680 * targhooks.c (default_promote_function_return): Remove.
14681 (default_promote_prototypes): Likewise.
14682 (default_struct_value_rtx): Always abort().
14683 (default_expand_builtin_saveregs): Always print an error
14684 message.
14685 (default_setup_incoming_varargs): Do nothing.
14686 (default_pretend_outgoing_varargs_named): Don't depend on
14687 SETUP_INCOMING_VARARGS.
14688 * targhooks.h: Remove the prototype for
14689 default_promote_function_return and
14690 default_promote_prototypes.
14691
14692 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14693
14694 * system.h (SHARED_SECTION_ASM_OP): Poison.
14695 * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
14696 * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
14697
14698 2004-02-07 Zack Weinberg <zack@codesourcery.com>
14699
14700 Bug 13856
14701 * c-decl.c (diagnose_mismatched_decls): Only give special
14702 treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
14703 is also true.
14704 (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
14705 DECL_FUNCTION_CODE when defining a built-in function.
14706 Don't update DECL_ESTIMATED_INSNS.
14707 * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
14708 FUNCTION_DECLs.
14709 * tree.h: Delete DECL_ESTIMATED_INSNS.
14710 * tree-inline.c (struct inline_data): Delete inlined_insns field.
14711 (expand_call_inline, optimize_inline_calls): Don't update
14712 DECL_ESTIMATED_INSNS nor inlined_insns.
14713 * cgraphunit.c (cgraph_analyze_function): Don't update
14714 DECL_ESTIMATED_INSNS.
14715
14716 2004-02-07 Zack Weinberg <zack@codesourcery.com>
14717
14718 * c-common.c (shadow_warning): Delete.
14719 * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
14720 * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
14721 * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
14722 * c-parse.in (free_parser_stacks): Delete.
14723
14724 2004-02-07 Nathanael Nerode <neroden@gcc.gnu.org>
14725
14726 * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
14727 config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
14728 Use the top level mkinstalldirs, not the one in the gcc subdir.
14729 * mkinstalldirs: Remove (from the gcc subdir).
14730
14731 2004-02-07 Roger Sayle <roger@eyesopen.com>
14732
14733 PR middle-end/13696
14734 * fold-const.c (fold_convert): New function to provide type
14735 conversion to the middle-end without using convert.
14736 (negate_expr, associate_trees, size_diffop, omit_one_operand,
14737 operand_equal_for_comparison_p, pedantic_omit_one_operand,
14738 invert_truthvalue, optimize_bit_field_compare, range_binop,
14739 decode_field_reference, make_range, build_range_check, unextend,
14740 fold_truthop, extract_muldiv_1, fold_mathfn_compare,
14741 fold_binary_op_with_conditional_arg, fold_inf_compare,
14742 fold_single_bit_test, fold, multiple_of_p): Replace all calls to
14743 convert with calls to fold_convert.
14744
14745 2004-02-07 Jan Hubicka <jh@suse.cz>
14746
14747 * genrecog.c (find_operand): add extra argument stop.
14748 (validate_pattern): Verify that mach_dup is duplicating operand
14749 defined lexically earlier.
14750
14751 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14752
14753 * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
14754 * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
14755 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
14756 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
14757 config/ia64/ia64.h, config/ip2k/ip2k.h,
14758 config/iq2000/iq2000.h, config/mips/iris5.h,
14759 config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
14760 config/rs6000/aix51.h, config/rs6000/aix52.h,
14761 config/rs6000/darwin.h, config/rs6000/rs6000.h,
14762 config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
14763 config/sparc/linux.h, config/sparc/linux64.h,
14764 config/sparc/netbsd-elf.h, config/sparc/sparc.h,
14765 config/xtensa/xtensa.h: Remove the definitions of
14766 MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
14767 MAX_WCHAR_TYPE_SIZE.
14768 * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
14769 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
14770
14771 2004-02-07 Stephane Carrez <stcarrez@nerim.fr>
14772
14773 PR bootstrap/13990
14774 * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
14775 gen_rtx_NE.
14776
14777 2004-02-07 Josef Zlomek <zlomekj@suse.cz>
14778
14779 * var-tracking.c (vt_add_function_parameters): Surround checkings by
14780 #ifdef ENABLE_CHECKING and #endif.
14781
14782 2004-02-07 Roger Sayle <roger@eyesopen.com>
14783
14784 * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
14785 either (-A)-B or (-B)-A, if A or B is easily negated respectively.
14786 (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
14787 integer types and floating point with unsafe_math_optimizations.
14788 Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
14789 Optimize A - B as A + (-B), if B is easily negated.
14790
14791 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14792
14793 * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
14794 config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
14795 config/m32r/linux.h, config/rs6000/ppc64-fp.c,
14796 config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
14797 Update copyright.
14798
14799 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14800
14801 * c-ppoutput.c, var-tracking.c: Fix comment typos.
14802
14803 2004-02-06 James E Wilson <wilson@specifixinc.com>
14804
14805 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
14806 glibc 2.3 or better.
14807
14808 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14809
14810 * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
14811 to FLOAT_LIB_COMPARE_RETURNS_BOOL.
14812
14813 2004-02-07 Alan Modra <amodra@bigpond.net.au>
14814
14815 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
14816 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
14817 (SHLIB_MKMAP_OPTS): Delete.
14818 (TARGET_LIBGCC2_CFLAGS): Add -specs.
14819 (bispecs): Add rule.
14820 * config/rs6000/libgcc-ppc64.ver: New file.
14821 * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
14822 (__floatdidf, __floatdisf): Optimize multiply.
14823 (__fixunstfdi): New function.
14824 * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
14825 real and imag parts larger than one register.
14826 (function_arg): Correct type of reg used when fp arg split partially
14827 to stack.
14828 * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
14829 and __MACH__ or __powerpc64__.
14830
14831 2004-02-06 Roger Sayle <roger@eyesopen.com>
14832 Ulrich Weigand <uweigand@de.ibm.com>
14833
14834 * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
14835 of gen_highpart or gen_lowpart when the floating point format is
14836 wider than the result mode.
14837
14838 2004-02-06 Andrew Pinski <pinskia@physics.uc.edu>
14839
14840 * dwarf2out.c (loclabel_num): Move into #ifdef
14841 DWARF2_DEBUGGING_INFO.
14842
14843 2004-02-06 Ziemowit Laski <zlaski@apple.com>
14844
14845 * objc/objc-act.c (build_super_template) the 'class' field of
14846 'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
14847 (get_super_receiver): Likewise.
14848
14849 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14850
14851 * reload1.c (check_eliminable_occurrences): Optimize the reset
14852 of can_eliminate.
14853 (eliminate_regs_in_insn): Likewise.
14854
14855 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
14856 Josef Zlomek <zlomekj@suse.cz>
14857
14858 * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
14859 at the beginning of function, call dwarf2out_var_location for
14860 NOTE_INSN_VAR_LOCATION note.
14861 (struct var_loc_node, struct var_loc_list_def, loclabel_num,
14862 decl_loc_table): New.
14863 (lookup_decl_loc): New function.
14864 (add_var_loc_to_decl): New function.
14865 (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
14866 only if can_use_fbreg.
14867 (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
14868 functions.
14869 (loc_descriptor): Likewise. Process VAR_LOCATION.
14870 (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
14871 (loc_descriptor_from_tree): Call mem_loc_descriptor with
14872 can_use_fbreg == true.
14873 (add_location_or_const_value_attribute): Added parameter enum
14874 dwarf_attribute attr, generate attribute ATTR. Create the location list.
14875 (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
14876 (gen_formal_parameter_die): Call add_location_or_const_value_attribute
14877 with attr == DW_AT_location.
14878 (gen_subprogram_die): Generate the location list for DW_AT_frame_base
14879 if frame_base_decl is defined and has a location list.
14880 (gen_variable_die): Call add_location_or_const_value_attribute with
14881 attr == DW_AT_location.
14882 (dwarf2out_var_location): New function.
14883 (dwarf2out_begin_function): New function.
14884 (dwarf2out_init): Create decl_loc_table.
14885
14886 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
14887
14888 * loop.c (force_movables): Transitively increase the priorities of
14889 all insns forces by an insn, not just the first one.
14890
14891 2004-02-06 Josef Zlomek <zlomekj@suse.cz>
14892 Daniel Berlin <dberlin@dberlin.org>
14893
14894 Josef Zlomek <zlomekj@suse.cz>
14895 * Makefile.in (var-tracking.o): New.
14896 * common.opt (fvar-tracking): New.
14897 * flags.h (flag_var_tracking): New.
14898 * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
14899 * opts.c (common_handle_option): Add OPT_fvar_tracking.
14900 * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
14901 * rtl.c (note_insn_name): Likewise.
14902 * rtl.def (VAR_LOCATION): New.
14903 * rtl.h (NOTE_VAR_LOCATION): New.
14904 (NOTE_VAR_LOCATION_DECL): New.
14905 (NOTE_VAR_LOCATION_LOC): New.
14906 (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
14907 (variable_tracking_main): New exported function.
14908 * timevar.def (TV_VAR_TRACKING): New.
14909 * toplev.c (enum dump_file_index): Added DFI_vartrack.
14910 (dump_file): "vartrack" was added (-dV).
14911 (flag_var_tracking): New.
14912 (f_options): "var-tracking" was added.
14913 (rest_of_handle_variable_tracking): New function.
14914 (rest_of_compilation): Run variable tracking.
14915 (process_options): If user has not specified flag_var_tracking set it
14916 according to optimize, debug_info_level and debug_hooks.
14917 * tree.h (frame_base_decl): New.
14918 * var-tracking.c: New file.
14919 * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
14920 (ia64_override_options): Set flags to run variable tracking in machine
14921 dependent reorg instead of toplev.c.
14922 (ia64_reorg): Run variable tracking if wanted.
14923 * doc/invoke.texi: Mention variable tracking in -dV,
14924 add and -fvar-tracking.
14925 * doc/passes.texi: Added variable tracking pass.
14926
14927 Daniel Berlin <dberlin@dberlin.org>
14928 * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
14929 * dbxout.c (dbx_debug_hooks): Likewise.
14930 (xcoff_debug): Likewise.
14931 * debug.c (do_nothing_debug_hooks): Likewise.
14932 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
14933 * dwarfout.c (dwarf_debug_hooks): Likewise.
14934 * sdbout.c (sdb_debug_hooks): Likewise.
14935 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14936 * final.c (final_scan_insn): Call var_location debug hook for each
14937 NOTE_INSN_VAR_LOCATION.
14938
14939 2004-02-06 Jan Hubicka <jh@suse.cz>
14940
14941 * flow.c (update_life_info): Allocate reg_deaths when called from
14942 scheudler.
14943 (attempt_auto_inc): Update life ranges accordingly.
14944
14945 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
14946
14947 PR debug/11816
14948 * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
14949
14950 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
14951
14952 * cfganal.c (flow_call_edges_add): Never split a libcall block.
14953
14954 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
14955
14956 * dwarf2out.c (output_loc_list): Don't use deltas if we have
14957 a separate line info table in use.
14958 Use the correct size for terminators.
14959 (output_die): Use offset, not delta.
14960
14961 2004-02-06 H.J. Lu <hongjiu.lu@intel.com>
14962
14963 * doc/invoke.texi: Remove the pni option from -mfpmath=.
14964
14965 2004-02-06 Jan Hubicka <jh@suse.cz>
14966
14967 * recog.c (split_all_insns): Do not update reg info.
14968 * regrename.c (regrename_optimize): Likewise.
14969 * toplev.c (rest_of_handle_reorder_blocks): Likewise.
14970 * flow.c (struct propagate_block_info): Add insn_num field.
14971 (reg_deaths): New array.
14972 (life_analysis): Free reg_deaths info.
14973 (allocate_reg_life_data): Allocate reg_deaths array.
14974 (propagate_one_insn): Use new array.
14975 (init_propagate_block): Initialize it.
14976 (free_propagate_block_info): Finish compuation of
14977 REG_LIVE_LENGTH
14978 (attempt_auto_inc): Sanity check that REG_INFO is not
14979 computed at same time.
14980 (mark_used_regs): Update new array.
14981
14982 * reg-stack.c (subst_stack_regs): Unshare clobbers before
14983 substitution.
14984
14985 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14986
14987 * config/s390/s390.md (*extendsiqi2_short_displ): Change to
14988 *extendqisi2_short_displ.
14989
14990 2004-02-06 Alan Modra <amodra@bigpond.net.au>
14991
14992 * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
14993 * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
14994 (emit_library_call_value_1): Likewise pass nargs.
14995 * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
14996 * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
14997 * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
14998 parameter instead of scanning TYPE_ARGS_TYPES to count args.
14999 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
15000 prototype.
15001 * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
15002 (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
15003 (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
15004 * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
15005 INIT_CUMULATIVE_ARGS.
15006 * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
15007 * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
15008 config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
15009 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
15010 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
15011 config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
15012 config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
15013 config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
15014 config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
15015 config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
15016 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
15017 config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
15018
15019 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
15020
15021 * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
15022 possible.
15023
15024 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
15025
15026 * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
15027 note containing (plus (reg) (const_int)), where reg is an
15028 eliminable reg, then perform the register elimination without
15029 depending on eliminate_regs().
15030
15031 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
15032
15033 * config/arc/arc.c (arc_return_in_memory): Check the return
15034 value of int_size_in_bytes against -1. Don't check
15035 TREE_ADDRESSABLE.
15036 * config/avr/avr.c (avr_return_in_memory): Check the return
15037 value of int_size_in_bytes against -1.
15038 * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
15039 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
15040 Likewise.
15041 * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
15042 * config/stormy16/stormy16.c (xstormy16_return_in_memory):
15043 Likewise.
15044
15045 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
15046
15047 * config/frv/frv-protos.h: Remove the prototype for
15048 frv_setup_incoming_varargs.
15049 * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
15050 (frv_setup_incoming_varargs): Make it static.
15051 * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
15052
15053 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
15054
15055 * config/fr30/fr30-protos.h: Remove the prototype for
15056 fr30_setup_incoming_varargs.
15057 Update the prototypes for fr30_num_arg_regs and
15058 fr30_function_arg_partial_nregs.
15059 * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
15060 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
15061 (fr30_setup_incoming_varargs): Make it static.
15062 Add argument second_time. Don't do anything when second_time
15063 is nonzero.
15064 (fr30_num_arg_regs): Change the type of the first argument to
15065 enum machine_mode.
15066 (fr30_function_arg_partial_nregs): Change the type of the
15067 second argument to enum machine_mode.
15068 * config/fr30/fr30.h (STRUCT_VALUE): Remove.
15069 (SETUP_INCOMING_VARARGS): Remove.
15070
15071 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
15072
15073 * config/arc/arc-protos.h: Remove the prototype for
15074 arc_setup_incoming_varargs.
15075 * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
15076 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
15077 (arc_setup_incoming_varargs): Make it static.
15078 (arc_external_libcall): Likewise.
15079 * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
15080 Remove the commented-out definition of
15081 ASM_OUTPUT_EXTERNAL_LIBCALL.
15082
15083 2004-02-05 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
15084
15085 * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
15086 to $$(slibdir) in the installation commands.
15087
15088 2004-02-05 David Edelsohn <edelsohn@gnu.org>
15089
15090 * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
15091 with inner_regno, not regno.
15092 * rtlanal.c (refers_to_regno_p): Same.
15093
15094 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
15095
15096 * config.gcc: Remove i370 support.
15097
15098 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
15099
15100 * doc/install.texi: Update automake and autoconf version
15101 requirements. Note where to find gcj automake version.
15102
15103 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
15104
15105 * Makefile.in (generate-manpages): Move dependencies to ...
15106 (man): here.
15107 * doc/makefile.texi: Document new targets.
15108 * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
15109
15110 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
15111
15112 PR/13485
15113 Makefile.in (srcextra): Add a level of indirection to ...
15114 (gcc.srcextra): ... here.
15115 (po-generated): Delete.
15116 (po/$(PACKAGE).pot: Use srcextra instead of po-generated. Depend on
15117 options.c.
15118 (start.encap): Remove superfluous lang.srcextra dependency.
15119 objc/Make-lang.in (po-generated): Delete.
15120
15121 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
15122
15123 * config/ia64/ia64.c (REG_GP): Remove.
15124
15125 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15126
15127 * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
15128
15129 2004-02-05 Devang Patel <dpatel@apple.com>
15130
15131 * dwarf2out.c (force_type_die): Look up input type itself
15132 instead of root_type() of type.
15133
15134 2004-02-05 Andreas Krebbel <krebbel1@de.ibm.com>
15135
15136 * config/s390/s390.md ("*tmqidi_ext"): New insn.
15137 ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
15138 pre-reload splitters are transformed to post-reload
15139 define_insn_and_split patterns.
15140 ("*tmqisi_ext"): Renamed old "*tmqi_ext".
15141
15142 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
15143
15144 * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
15145 TARGET_PROMOTE_PROTOTYPES.
15146
15147 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15148
15149 PR middle-end/13750
15150 Revert:
15151 2004-01-15 Geoffrey Keating <geoffk@apple.com>
15152 PR pch/13361
15153 * c-typeck.c (constructor_asmspec): Delete.
15154 (struct initializer_stack): Delete field 'asmspec'.
15155 (start_init): Delete saving of asmspec.
15156 (finish_init): Don't update constructor_asmspec.
15157 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
15158 * stmt.c (expand_asm): Duplicate strings from tree.
15159 (expand_asm_operands): Likewise.
15160 * tree.c (tree_size): Update computation of size of STRING_CST.
15161 (make_node): Don't make STRING_CST nodes.
15162 (build_string): Allocate string with tree node.
15163 * tree.def (STRING_CST): Update comment.
15164 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
15165 (tree_string): Place contents of string in tree node.
15166 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
15167 from tree.
15168
15169 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
15170
15171 * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
15172 msgid.
15173
15174 2004-02-05 Dorit Naishlos <dorit@il.ibm.com>
15175
15176 * config/rs6000/altivec.md (*movv4si_internal): At least one
15177 operand must be altivec_register_operand.
15178 (*movv8hi_internal1): Likewise.
15179 (*movv16qi_internal1): Likewise.
15180 (*movv4sf_internal1): Likewise.
15181
15182 2004-02-05 David Edelsohn <edelsohn@gnu.org>
15183
15184 * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
15185 * configure: Regenerate.
15186
15187 2004-02-05 Jonathan Wakely <redi@gcc.gnu.org>
15188
15189 * doc/install.texi: Update description of --gxx-include-dir to
15190 give correct default value.
15191
15192 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
15193
15194 * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
15195 8 with MAC_REG.
15196
15197 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
15198
15199 * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
15200 gen_rtx_PARALLEL.
15201
15202 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
15203
15204 * emit-rtl.c: Update the comment about the file.
15205
15206 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
15207
15208 * sourcebuild.texi (Test Idioms): Update testcase naming
15209 conventions.
15210
15211 2004-02-04 Per Bothner <per@bothner.com>
15212
15213 Partially revert/redo 2003-10-01 change; fix -fworking-directory.
15214 * c-ppoutput.c (pp_dir_change): New function.
15215 * c-common.h (pp_dir_change): New declaration.
15216 * cpplib.h (struct cpp_options): Remove working_directory field.
15217 * cppinit.c (cpp_find_main_file, cpp_push_main_file): Merge back to
15218 (cpp_read_main_file): as before 10-01. Call _cpp_stack_file.
15219 Don't handle -fworking_directory here, but in c_common_post_options.
15220 (read_original_directory): Don't back up when done.
15221 Don't clear no-longer used working_directory flag.
15222 * cpplib.h: Update declarations to match.
15223 * c-lex.c (cb_dir_change): Move to c-opts.c.
15224 (init_c_lex): Don't set dir_change callback here, since we want
15225 to set it even if flag_preprocess_only.
15226 * c-opts.c (cb_dir_change): Function moved from c-lex.c.
15227 (c_common_post_options): Set dir_change callback.
15228 Call pp_dir_change if approporiate.
15229 (finish_options): Don't call cpp_find_main_file here. Hence remove
15230 unneeded parameter and result. Do LC_RENAME for <built-in>.
15231 (c_common_post_options): Call cpp_read_main_file here instead.
15232 (c_common_init): Update accordingly.
15233 (push_command_line_include): Don't cpp_push_main_file.
15234 Do LC_RENAME rather than LC_LEASE to get back to main file.
15235 Compared to pre-10-01 version, inline cpp_rename_to_main_file.
15236 (c_common_parse_file): Call cpp_read_main_file for subsequent main
15237 files, but call finish_options for all files.
15238 * c-opts.c (sanitize_cpp_opts): Don't set cpp_opts->working_directory.
15239 * fix-header.c (read_scan_file): Call cpp_read_main_file instead of
15240 cpp_find_main_file + cpp_push_main_file.
15241 * c-lex.c (fe_file_change): Don't set main_input_filename here.
15242 * opts.c (handle_options): Only set main_input_filename first time.
15243
15244 2004-02-05 Ian Lance Taylor <ian@wasabisystems.com>
15245
15246 * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
15247
15248 2004-02-04 Geoffrey Keating <geoffk@apple.com>
15249
15250 * reload.c (find_equiv_reg): When checking for register overlap,
15251 don't index hard_regno_nregs with a pseudo-reg.
15252
15253 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15254
15255 * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
15256
15257 2004-02-04 David Edelsohn <edelsohn@gnu.org>
15258
15259 * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
15260 against FIRST_PSEUDO_REGISTER.
15261
15262 2004-02-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15263
15264 * Makefile.in: Move target, host overrides after per-language
15265 fragments.
15266
15267 * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
15268 (GNATLIBCFLAGS): Remove -g.
15269
15270 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15271
15272 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
15273 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
15274 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
15275 config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
15276 config/pdp11/pdp11.c, config/rs6000/rs6000.c,
15277 config/sparc/sparc.c, config/vax/vax.c: Revert the
15278 replacements of "FALLTHRU" with "Fall through" done in the
15279 previous patch.
15280
15281 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15282
15283 * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
15284 config/arm/arm.c, config/arm/arm.md,
15285 config/cris/cris-protos.h, config/fr30/fr30.c,
15286 config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
15287 config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
15288 config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
15289 config/ip2k/ip2k.md, config/ip2k/libgcc.S,
15290 config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
15291 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
15292 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
15293 config/ns32k/netbsd.h, config/ns32k/ns32k.c,
15294 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
15295 config/rs6000/darwin-ldouble.c, config/s390/s390.h,
15296 config/s390/s390.md, config/sparc/netbsd-elf.h,
15297 config/sparc/openbsd.h, config/sparc/sparc.c,
15298 config/xtensa/lib2funcs.S: Fix comment formatting.
15299
15300 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15301
15302 * config/alpha/alpha.c, config/arc/arc.c,
15303 config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
15304 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
15305 config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
15306 config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
15307 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
15308 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
15309 config/iq2000/iq2000.c, config/m32r/m32r.c,
15310 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
15311 config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
15312 config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
15313 config/rs6000/rs6000.h, config/sparc/sparc.c,
15314 config/vax/vax.c: Fix comment typos. Follow spelling
15315 conventions.
15316
15317 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15318
15319 * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
15320 caller-save.c, df.h, genconfig.c, global.c, lcm.c,
15321 ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
15322 sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
15323 config/arm/fpa.md, config/arm/iwmmxt.md,
15324 config/arm/netbsd-elf.h, config/arm/netbsd.h,
15325 config/m68hc11/m68hc11.md, config/mips/iris5.h,
15326 config/mn10300/mn10300.md, config/rs6000/altivec.md,
15327 config/sparc/netbsd-elf.h: Update copyright.
15328
15329 2004-02-04 Eric Botcazou <ebotcazou@libertysurf.fr>
15330
15331 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
15332 for all modes whose size is greater than 8 bytes if ARCH32.
15333 (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
15334 by reference if ARCH32.
15335
15336 2004-02-04 Aldy Hernandez <aldyh@redhat.com>
15337
15338 * cgraphunit.c (cgraph_postorder): Fix typo in comment.
15339
15340 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
15341
15342 * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
15343 to before adddi3 insn patterns.
15344 ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
15345 "reload_insi"): Move to before addsi3 insn patterns.
15346
15347 2004-02-04 Mark Mitchell <mark@codesourcery.com>
15348
15349 * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
15350 parameter. Use it instead of current_function_is_thunk.
15351 * function.h (struct function): Update documentation for is_thunk.
15352 * tree.h (CALL_FROM_THUNK_P): New macro.
15353 * config/alpha/alpha.c (alpha_sa_mask): Do not check
15354 no_new_pseudos when testing current_function_is_thunk.
15355 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
15356
15357 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15358
15359 * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
15360 TARGET_SETUP_INCOMING_VARARGS.
15361
15362 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15363
15364 * emit-rtl.c (gen_rtx): Remove.
15365 * genattrtab.c: Don't mention gen_rtx in a comment.
15366 * rtl.h: Remove the prototype for gen_rtx.
15367 * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
15368
15369 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15370
15371 * config/arc/arc.h, config/fr30/fr30.h
15372 (SETUP_INCOMING_VARARGS): Remove the target-independent
15373 comments.
15374 * doc/tm.texi: Don't mention deprecated target macros.
15375
15376 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15377
15378 * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
15379 target-independent comment.
15380
15381 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15382
15383 * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
15384 mention deprecated target macros.
15385
15386 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
15387
15388 * config.gcc: Remove obsolete ports and configurations.
15389 * config/linux-aout.h, config/netware.h,
15390 config/t-linux-gnulibc1, config/d30v/abi,
15391 config/d30v/d30v-protos.h, config/d30v/d30v.c,
15392 config/d30v/d30v.h, config/d30v/d30v.md,
15393 config/d30v/libgcc1.asm, config/d30v/t-d30v,
15394 config/dsp16xx/dsp16xx-modes.def,
15395 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
15396 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
15397 config/i370/README, config/i370/i370-c.c,
15398 config/i370/i370-protos.h, config/i370/i370.c,
15399 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
15400 config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
15401 config/i386/freebsd-aout.h, config/i386/linux-aout.h,
15402 config/i386/moss.h, config/i386/netware.h,
15403 config/i386/svr3.ifile, config/i386/svr3dbx.h,
15404 config/i386/svr3gas.h, config/i386/svr3z.ifile,
15405 config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
15406 config/i960/i960-c.c, config/i960/i960-coff.h,
15407 config/i960/i960-modes.def, config/i960/i960-protos.h,
15408 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
15409 config/i960/rtems.h, config/i960/t-960bare,
15410 config/m68k/hp310.h, config/m68k/hp320.h,
15411 config/m68k/hp320base.h, config/m68k/m68kv4.h,
15412 config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
15413 Remove.
15414 * doc/extend.texi, doc/install.texi, doc/invoke.texi,
15415 doc/md.texi: Remove mentions of obsolete ports.
15416
15417 2004-02-04 Jan Hubicka <jh@suse.cz>
15418
15419 * alias.c (find_base_term, get_addr): Do not dereference NULL
15420 pointer when all VALUE's locations has been invalidated.
15421 (rtx_equal_for_memref_p): Simplify checking of VALUEs.
15422
15423 2004-02-03 Wolfgang Bangerth <bangerth@dealii.org>
15424
15425 * doc/invoke.texi (x86 options): Fix spelling/wording.
15426
15427 2004-02-03 Richard Sandiford <rsandifo@redhat.com>
15428
15429 * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
15430 put the original string in a comment.
15431 * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
15432 * config/mips/mips.c (mips_output_ascii): Likewise.
15433 * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
15434
15435 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
15436
15437 * system.h (GIV_SORT_CRITERION): Poison.
15438 * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
15439 * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
15440
15441 2004-02-03 Roger Sayle <roger@eyesopen.com>
15442
15443 PR target/9348
15444 * expr.c (expand_expr_real) <MULT_EXPR>: When performing widening
15445 multiplies with a multiplication of the wrong signedness, its the
15446 signedness of the multiplication that we've performed that needs to
15447 be passed to expand_mult_highpart_adjust. Avoid emitting a nop-move
15448 if expand_mult_highpart_adjust places the result in target.
15449
15450 2004-02-03 Richard Henderson <rth@redhat.com>
15451
15452 * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
15453
15454 2004-02-03 J"orn Rennecke <joern.rennecke@superh.com>
15455
15456 * config.gcc (sh[234]l): Use little endian fragments.
15457
15458 2004-02-03 Paul Koning <pkoning@equallogic.com>
15459
15460 * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
15461 * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
15462 * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
15463 encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
15464 floating point format.
15465 (pdp11_f_format, pdp11_d_format): New real_format descriptors for
15466 the above functions.
15467 (output_move_quad): Output float values in correct target format.
15468 (legitimate_const_double_p): New function.
15469 * config/pdp11/pdp11.h: Fix typos.
15470 (FLOAT_WORDS_BIG_ENDIAN): Add definition.
15471 (TARGET_FLOAT_FORMAT): Ditto.
15472 (pdp11_f_format, pdp11_d_format): Add external declarations.
15473 (MAX_REGS_PER_ADDRESS): Corrected.
15474 (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
15475 (PRINT_OPERAND): Output float literals in target format.
15476
15477 2004-02-03 Mark Mitchell <mark@codesourcery.com>
15478
15479 PR c++/13975
15480 * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
15481 TI_PRIVATE.
15482 (access_public_node): Redefine.
15483 (access_protected_node): Likewise.
15484 (access_private_node): Likewise.
15485 * tree.c (build_common_tree_nodes): Create access_public_node,
15486 access_protected_node, and access_private_node.
15487
15488 2004-02-03 Steve Ellcey <sje@cup.hp.com>
15489
15490 * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
15491 (MASK_INLINE_INT_DIV_THR): Ditto.
15492 (MASK_INLINE_SQRT_LAT): Ditto.
15493 (MASK_INLINE_SQRT_THR): Ditto.
15494 (MASK_DWARF2_ASM): Ditto.
15495 (MASK_EARLY_STOP_BITS): Ditto.
15496
15497 2004-02-02 Paul Brook <paul@codesourcery.com>
15498
15499 Merge from csl-arm-branch.
15500
15501 2004-01-30 Paul Brook <paul@codesourcery.com>
15502
15503 * aof.h (REGISTER_NAMES): Add vfp reg names
15504 (ADDITIONAL_REGISTER_NAMES): Ditto.
15505 * aout.h (REGISTER_NAMES): Ditto.
15506 (ADDITIONAL_REGISTER_NAMES): Ditto.
15507 * arm-protos.h: Update/Add Prototypes.
15508 * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
15509 Only allow 0.0 for VFP.
15510 (fp_consts_inited): Rename from fpa_consts_inited. Update users.
15511 (values_fp): Rename from values_fpa. Update Users.
15512 (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
15513 Update users. Only check valid constants for this hardware.
15514 (arm_float_rhs_operand): Rename from fpa_rhs_operand. Update Users.
15515 Only allow consts for FPA.
15516 (arm_float_add_operand): Rename from fpa_add_operand. Update users.
15517 Only allow consts for FPA.
15518 (use_return_insn): Check for saved VFP regs.
15519 (arm_legitimate_address_p): Handle VFP DFmode addressing.
15520 (arm_legitimize_address): Ditto.
15521 (arm_general_register_operand): New function.
15522 (vfp_mem_operand): New function.
15523 (vfp_compare_operand): New function.
15524 (vfp_secondary_reload_class): New function.
15525 (arm_float_compare_operand): New function.
15526 (vfp_print_multi): New function.
15527 (vfp_output_fstmx): New function.
15528 (vfp_emit_fstm): New function.
15529 (arm_output_epilogue): Output VPF reg restore code.
15530 (arm_expand_prologue): Output VFP reg save code.
15531 (arm_print_operand): Add 'P'.
15532 (arm_hard_regno_mode_ok): Return modes for VFP regs.
15533 (arm_regno_class): Return classes for VFP regs.
15534 (arm_compute_initial_elimination_offset): Include space for VFP regs.
15535 (arm_get_frame_size): Ditto.
15536 * arm.h (FIXED_REGISTERS): Add VFP regs.
15537 (CALL_USED_REGISTERS): Ditto.
15538 (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
15539 (FIRST_VFP_REGNUM): Define.
15540 (LAST_VFP_REGNUM): Define.
15541 (IS_VFP_REGNUM): Define.
15542 (FIRST_PSEUDO_REGISTER): Include VFP regs.
15543 (HARD_REGNO_NREGS): Handle VFP regs.
15544 (REG_ALLOC_ORDER): Add VFP regs.
15545 (enum reg_class): Add VFP_REGS.
15546 (REG_CLASS_NAMES): Ditto.
15547 (REG_CLASS_CONTENTS): Ditto.
15548 (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
15549 (REG_CLASS_FROM_LETTER): Add 'w'.
15550 (EXTRA_CONSTRAINT_ARM): Add 'U'.
15551 (EXTRA_MEMORY_CONSTRAINT): Define.
15552 (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
15553 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
15554 (REGISTER_MOVE_COST): Ditto.
15555 (PREDICATE_CODES): Add arm_general_register_operand,
15556 arm_float_compare_operand and vfp_compare_operand.
15557 * arm.md (various): Rename as above.
15558 (divsf3): Enable when TARGET_VFP.
15559 (divdf3): Ditto.
15560 (movdfcc): Ditto.
15561 (sqrtsf2): Ditto.
15562 (sqrtdf2): Ditto.
15563 (arm_movdi): Disable when TARGET_VFP.
15564 (arm_movsi_insn): Ditto.
15565 (movsi): Only split with general regs.
15566 (cmpsf): Use arm_float_compare_operand.
15567 (push_fp_multi): Restrict to TARGET_FPA.
15568 (vfp.md): Include.
15569 * vfp.md: New file.
15570 * fpa.md (various): Rename as above.
15571 * doc/md.texi: Document ARM w and U constraints.
15572
15573 2004-01-15 Paul Brook <paul@codesourcery.com>
15574
15575 * config.gcc: Add with_fpu. Allow with-float=softfp.
15576 * config/arm/arm.c (arm_override_options): Rename *-s to *s.
15577 Break out of loop when we find a float-abi. Fix typo.
15578 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
15579 Set -mfloat-abi=.
15580 * doc/install.texi: Document --with-fpu.
15581
15582 2003-01-14 Paul Brook <paul@codesourcery.com>
15583
15584 * config.gcc (with_arch): Add armv6.
15585 * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
15586 * config/arm/arm.c (arm_overrride_options): Ditto.
15587
15588 2004-01-08 Richard Earnshaw <rearnsha@arm.com>
15589
15590 * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
15591 (FL_ARCH6): Renamed from FL_ARCH6J.
15592 (arm_arch3m): Renamed from arm_fast_multiply.
15593 (arm_arch6): Renamed from arm_arch6j.
15594 * arm.h: Update all uses of above.
15595 * arm-cores.def: Likewise.
15596 * arm.md: Likewise.
15597
15598 * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
15599 not arm6j. Add entry for arch armv6.
15600
15601 2004-01-07 Richard Earnshaw <rearnsha@arm.com>
15602
15603 * arm.c (arm_emit_extendsi): Delete.
15604 * arm-protos.h (arm_emit_extendsi): Delete.
15605 * arm.md (zero_extendhisi2): Also handle zero-extension of
15606 non-subregs.
15607 (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
15608 (thumb_zero_extendhisi2): Only match if not v6.
15609 (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
15610 (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
15611 (thumb_extendqisi2): Likewise.
15612 (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
15613 (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
15614 (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
15615 (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
15616 (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
15617 (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
15618 (arm_zero_extendhisi2addsi): Remove subreg. Add attributes.
15619 (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
15620 (arm_extendqisi2addsi): Likewise.
15621
15622 2003-12-31 Mark Mitchell <mark@codesourcery.com>
15623
15624 Revert this change:
15625 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
15626 + REG addressing modes.
15627
15628 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
15629 + REG addressing modes.
15630
15631 2003-12-30 Mark Mitchell <mark@codesourcery.com>
15632
15633 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
15634 CONSTANT_P_RTX.
15635
15636 2003-30-12 Paul Brook <paul@codesourcery.com>
15637
15638 * longlong.h: protect arm inlines with !defined (__thumb__)
15639
15640 2003-30-12 Paul Brook <paul@codesourcery.com>
15641
15642 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
15643
15644 2003-12-30 Nathan Sidwell <nathan@codesourcery.com>
15645
15646 * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
15647 change.
15648
15649 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
15650
15651 * builtins.c (expand_builtin_apply_args_1): Add pretend args size
15652 to the virtual incoming args pointer for downward stacks.
15653
15654 2003-12-29 Paul Brook <paul@codesourcery.com>
15655
15656 * config/arm/arm-cores.def: Add cost function.
15657 * config/arm/arm.c (arm_*_rtx_costs): New functions.
15658 (arm_rtx_costs): Remove
15659 (struct processors): Add rtx_costs field.
15660 (all_cores, all_architectures): Ditto.
15661 (arm_override_options): Set targetm.rtx_costs.
15662 (thumb_rtx_costs): New function.
15663 (arm_rtx_costs_1): Remove cases handled elsewhere.
15664 * config/arm/arm.h (processor_type): Add COSTS parameter.
15665
15666 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
15667
15668 * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
15669 (arm926ejs.md): Include it.
15670 * config/arm/arm926ejs.md: New pipeline description.
15671
15672 2003-12-24 Paul Brook <paul@codesourcery.com>
15673
15674 * config/arm/arm.c (arm_arch6j): New variable.
15675 (arm_override_options): Set it.
15676 (arm_emit_extendsi): New function.
15677 * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
15678 * config/arm/arm.h (arm_arch6j): Declare.
15679 * config/arm/arm.md: Add sign/zero extend insns.
15680
15681 2003-12-23 Paul Brook <paul@codesourcery.com>
15682
15683 * config/arm/arm.c (all_architectures): Add armv6.
15684 * doc/invoke.texi: Document it.
15685
15686 2003-12-19 Paul Brook <paul@codesourcery.com>
15687
15688 * config/arm/arm.md: Add load1 and load_byte "type" attrs. Modify
15689 insn patterns to match.
15690 * config/arm/arm-generic.md: Ditto.
15691 * config/arm/cirrus.md: Ditto.
15692 * config/arm/fpa.md: Ditto.
15693 * config/amm/iwmmxt.md: Ditto.
15694 * config/arm/arm1026ejs.md: Ditto.
15695 * config/arm/arm1135jfs.md: Ditto. Add insn_reservation and bypasses
15696 for 11_loadb.
15697
15698 2003-12-18 Nathan Sidwell <nathan@codesourcery.com>
15699
15700 * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
15701 * config/arm/arm.c (arm_adjust_cost): Check shift cost for
15702 TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
15703 (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
15704 arm_no_early_mul_dep): Correctly deal with conditional execution,
15705 parallels and single shift operations.
15706 (arm_no_early_alu_shift_value_dep): Define.
15707 * arm.md (attr type): Replace 'normal' with 'alu',
15708 'alu_shift' and 'alu_shift_reg'.
15709 (attr core_cycles): Adjust.
15710 (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
15711 *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
15712 *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
15713 *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
15714 *arith_shiftsi_compare0_scratch, *sub_shiftsi,
15715 *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
15716 *if_shift_move, *if_move_shift, *if_shift_shift): Set type
15717 attribute appropriately.
15718 * config/arm/arm1026ejs.md (alu_op): Adjust.
15719 (alu_shift_op, alu_shift_reg_op): New.
15720 * config/arm/arm1136.md: Add better bypasses for early
15721 registers. Remove load[234] and store[234] bypasses.
15722 (11_alu_op): Adjust.
15723 (11_alu_shift_op, 11_alu_shift_reg_op): New.
15724
15725 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
15726
15727 * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
15728 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
15729 * config/arm/arm.c (arm_no_early_store_addr_dep,
15730 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
15731 * config/arm/arm1026ejs.md: Add load-store bypass.
15732 * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
15733 Add bypasses between instructions.
15734
15735 2003-12-10 Paul Brook <paul@codesourcery.com>
15736
15737 * config/arm/arm.c (arm_fpu_model): New variable.
15738 (arm_fload_abi): New variable.
15739 (target_fpe_name): Rename from target_fp_name.
15740 (target_fpu_name): New variable.
15741 (arm_is_cirrus): Remove.
15742 (fpu_desc): New struct.
15743 (all_fpus): Define.
15744 (pf_model_for_fpu): Define.
15745 (all_loat_abis): Define.
15746 (arm_override_options): Set fp arch flags based on -mfpu=
15747 and -float-abi=.
15748 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
15749 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
15750 (*): Use new TARGET_* flags.
15751 * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
15752 (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
15753 (TARGET_SOFT_FLOAT): Ditto.
15754 (TARGET_SOFT_FLOAT_ABI): New.
15755 (TARGET_MAVERICK): Rename from TARGET_CIRRUS. No longer implies
15756 TARGET_HARD_FLOAT.
15757 (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
15758 (TARGET_OPTIONS): Add -mfpu=.
15759 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
15760 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
15761 (arm_pf_model): Define.
15762 (arm_float_abi_type): Define.
15763 (fputype): Add FPUTYPE_VFP. Change SOFT_FPA->NONE
15764 * config/arm/arm.md: Use new TARGET_* flags.
15765 * config/arm/cirrus.md: Ditto.
15766 * config/arm/fpa.md: Ditto.
15767 * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
15768 * config/arm/semi.h (ASM_SPEC): Ditto.
15769 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
15770 (FPUTYPE_DEFAULT): Set to VFP.
15771 * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
15772
15773 2003-11-22 Phil Edwards <phil@codesourcery.com>
15774
15775 PR target/12476
15776 * config/arm/arm.c (arm_output_mi_thunk): In Thumb mode, use
15777 'bx' instead of 'b' to avoid branch range restrictions. Output
15778 the thunk immediately before the thunked-to function.
15779 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Do not emit
15780 .thumb_func if a thunk is being generated. Emit .code 16 along
15781 with .thumb_func if a thunk is not being generated.
15782
15783 2003-11-15 Nicolas Pitre <nico@cam.org>
15784
15785 * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
15786 arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
15787 * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
15788 (lshrdi3_iwmmxt): Renamed from lshrdi3.
15789 * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
15790
15791 2003-11-12 Steve Woodford <scw@wasabisystems.com>
15792 Ian Lance Taylor <ian@wasabisystems.com>
15793
15794 * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
15795 code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
15796
15797 2003-11-05 Phil Edwards <phil@codesourcery.com>
15798
15799 * config/arm/arm.md (insn): Add new V6 instruction names.
15800 (generic_sched): New attr.
15801 * config/arm/arm-generic.md: Use generic_sched here.
15802 * config/arm/arm1026ejs.md: Do not model fetch/issue/decode
15803 stages of pipeline. Adjust latency counts accordingly.
15804 * config/arm/arm1136jfs.md: New file.
15805
15806 2003-10-28 Mark Mitchell <mark@codesourcery.com>
15807
15808 * config/arm/arm.h (processor_type): New enumeration type.
15809 (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
15810 ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
15811 (CPP_CPU_ARCH_SPEC): Likewise.
15812 * config/arm/arm.c (arm_tune): New variable.
15813 (all_cores): Use cores.def.
15814 (all_architectures): Add representative processor.
15815 (arm_override_options): Restructure way in which tuning
15816 information is deduced.
15817 * arm.md: Update "insn" and "type" attributes throughout.
15818 (insn): New attribute.
15819 (type): Compute "mult" from "insn" attribute. Add load2,
15820 load3, load4 alternatives.
15821 (arm automaton): Move to arm-generic.md.
15822 * config/arm/arm-cores.def: New file.
15823 * config/arm/arm-generic.md: Likewise.
15824 * config/arm/arm1026ejs.md: Likewise.
15825
15826 2004-02-03 Eric Botcazou <ebotcazou@libertysurf.fr>
15827
15828 * doc/invoke.texi (SPARC options): Remove -mflat and
15829 all -mxxx (xxx:chip) options.
15830 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
15831 * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
15832 * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
15833 * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
15834 * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
15835 * config/sparc/sparc.c: Likewise.
15836 (sparc_output_function_prologue): Remove TARGET_FLAT handling.
15837 (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
15838 (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
15839 (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
15840 (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
15841 (sparc_flat_must_save_register_p): Likewise.
15842 (sparc_flat_compute_frame_size): Likewise.
15843 (sparc_flat_save_restore): Likewise.
15844 (sparc_flat_function_prologue): Likewise.
15845 (sparc_flat_function_epilogue): Likewise.
15846 (sparc_flat_epilogue_delay_slots): Likewise.
15847 (sparc_flat_eligible_for_epilogue_delay): Likewise.
15848 (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
15849 * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
15850 (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
15851 (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
15852 (CONDITIONAL_REGISTER_USAGE): Likewise.
15853 (FRAME_POINTER_REQUIRED): Likewise.
15854 (INITIAL_ELIMINATION_OFFSET): Likewise.
15855 (BASE_RETURN_VALUE_REG): Likewise.
15856 (BASE_OUTGOING_VALUE_REG): Likewise.
15857 (BASE_PASSING_ARG_REG): Likewise.
15858 (BASE_INCOMING_ARG_REG): Likewise.
15859 (INCOMING_REGNO): Likewise.
15860 (OUTGOING_REGNO): Likewise.
15861 (LOCAL_REGNO): Likewise.
15862 (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
15863 (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
15864 (EPILOGUE_USES): Likewise.
15865 * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
15866 ("flat" attribute): Delete.
15867 (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
15868 handling.
15869 (call followed by jump define_peephole's): Delete.
15870 (exception_receiver): Likewise.
15871 (builtin_setjmp_receiver): Likewise.
15872 * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
15873
15874 2004-02-03 Paolo Bonzini <bonzini@gnu.org>
15875
15876 PR c/11658
15877 PR c/13994
15878 * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
15879 on langhooks.h.
15880 * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
15881 * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
15882 Include langhooks.h. Replace c_common_truthvalue_conversion
15883 with the truthvalue_conversion language hook throughout.
15884 (expr_no_commas): Call default_conversion before save_expr
15885 for the first term of the production 'x ? : y'.
15886 * c-common.c (c_common_truthvalue_conversion): Remove
15887 obsolete block. Invoke recursively the hook instead
15888 of this function.
15889 * c-convert.c (convert): handle ERROR_MARK_NODE.
15890 * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
15891 returned by the truthvalue_conversion language hook.
15892 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
15893 c_objc_common_truthvalue_conversion.
15894 * c-objc-common.c (c_objc_common_truthvalue_conversion):
15895 New function.
15896 * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
15897 * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
15898 c_objc_common_truthvalue_conversion.
15899
15900 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
15901
15902 * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
15903 of gen_rtx.
15904 (LIBCALL_VALUE): Likewise.
15905 * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
15906 gen_rtx_CC0 instead of gen_rtx.
15907 * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
15908 gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
15909 (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
15910 gen_rtx.
15911 (m68hc11_emit_logical): Likewise.
15912
15913 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
15914
15915 * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
15916 config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
15917 config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
15918 config/m32r/m32r.md, config/m68hc11/m68hc11.c,
15919 config/mips/mips.md, config/mmix/mmix.c,
15920 config/mn10300/mn10300.c, config/mn10300/mn10300.md,
15921 config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
15922 config/rs6000/altivec.md, config/s390/s390.c,
15923 config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
15924 config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
15925 Use const0_rtx instead of GEN_INT (0). Do the same for other
15926 constants that are readily available.
15927
15928 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
15929
15930 * doloop.c, optabs.c, regmove.c, sched-deps.c,
15931 config/i386/i386.c, config/i386/i386.md: Use const0_rtx
15932 instead of GEN_INT (0). Do the same for other constants that
15933 are readily available.
15934
15935 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
15936
15937 * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
15938 gen_rtx.
15939 * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
15940 instead of gen_rtx.
15941 * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
15942 gen_rtx.
15943 * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
15944 gen_rtx_ASHIFT instead of gen_rtx.
15945 (udivmodqi4): Likewise.
15946
15947 2004-02-02 Richard Henderson <rth@redhat.com>
15948
15949 PR target/13789
15950 * expr.c (store_expr): Use force_operand before emit_move_insn.
15951
15952 2004-02-02 Jeff Law <law@redhat.com>
15953 Roger Sayle <roger@eyesopen.com>
15954
15955 * tree.c (commutative_tree_code, associative_tree_code): New
15956 functions.
15957 (iterative_hash_expr): Use commutative_tree_code.
15958 * tree.h (commutative_tree_code, associative_tree_code): Declare.
15959 * fold-const.c (operand_equal_p): Use commutative_tree_code
15960 rather than inlining the commutativity check.
15961 (fold): Likewise.
15962
15963 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
15964
15965 * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
15966 * config/frv/frv-protos.h: Remove the prototype for
15967 frv_function_arg_keep_as_reference.
15968 * config/frv/frv.c (frv_function_arg_keep_as_reference):
15969 Remove.
15970 * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
15971 * config/stormy16/stormy16.h: Remove the commented-out
15972 definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
15973
15974 2004-02-03 Alan Modra <amodra@bigpond.net.au>
15975
15976 PR target/13914
15977 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
15978 for retaddr_column.
15979
15980 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
15981
15982 * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
15983 gen_rtx.
15984
15985 2004-02-02 Eric Christopher <echristo@redhat.com>
15986 Zack Weinberg <zack@codesourcery.com>
15987
15988 * c-opts.c (c_common_handle_option): Add -finput-charset.
15989 * c.opt: Ditto.
15990 * cppcharset.c (one_iso88591_to_utf8): Remove.
15991 (convert_iso88591_utf8): Ditto.
15992 (conversion_tab): Remove 8859-1 converter.
15993 (_cpp_input_to_utf8): Remove.
15994 (_cpp_init_iconv_buffer): Ditto.
15995 (_cpp_close_iconv_buffer): Ditto.
15996 (_cpp_convert_input): New function.
15997 (_cpp_default_encoding): Ditto.
15998 * cpphash.h: Add/remove prototypes for above.
15999 * cppfiles.c (read_file_guts): Use _cpp_convert_input.
16000 * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
16001 for narrow execution and input character sets.
16002 * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
16003 * doc/cppopts.texi: Document -finput-charset.
16004
16005 2004-02-02 David Edelsohn <edelsohn@gnu.org>
16006
16007 * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
16008 against FIRST_PSEUDO_REGISTER.
16009
16010 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
16011
16012 * doc/invoke.texi (SPARC options): Further improve.
16013
16014 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
16015
16016 * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
16017 config/h8300/h8300.c, config/ip2k/ip2k.md,
16018 config/iq2000/iq2000.c, config/mips/mips.c,
16019 config/rs6000/rs6000.c, config/rs6000/rs6000.md,
16020 config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
16021 config/v850/v850.md: Fix indentation.
16022
16023 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
16024
16025 * config/sparc/sparc.c (function_arg_slotno): Align TImode
16026 arguments on a 16-byte boundary in the parameter array if ARCH64.
16027 Split handling of TFmode.
16028
16029 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
16030
16031 * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
16032 Don't test CONSTANT_P (x).
16033 (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
16034 ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
16035 Fix misindentation.
16036
16037 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
16038
16039 * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
16040
16041 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
16042
16043 * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
16044 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
16045 config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
16046 config/iq2000/iq2000.c, config/m32r/m32r.c,
16047 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
16048 config/mn10300/mn10300.c, config/rs6000/rs6000.c,
16049 config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
16050 config/stormy16/stormy16.c, config/v850/v850.md,
16051 config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
16052
16053 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
16054
16055 * config/mcore/mcore.c (block_move_sequence): Replace
16056 gen_rtx_CONST_INT with GEN_INT.
16057
16058 2004-02-02 Jan Hubicka <jh@suse.cz>
16059
16060 * alias.c (record_set): Use hard_regno_nregs.
16061 * bt-load.c (find_btr_reference, note_btr_set): Likewise.
16062 * builtins.c (apply_args_size): Likewise.
16063 * caller-save.c (setup_save_areas, save_call_clobbered_regs,
16064 mark_set_regs, add_stored_regs, mark_referenced_regs,
16065 insert_restore, insert_save, insert_one_insn): Likewise.
16066 * cfgcleanup.c: Include regs.h
16067 (mark_effect, mentions_nonequal_regs): Likewise.
16068 * cfgrtl.c (mark_killed_regs): Likewise
16069 * combine.c (update_table_tick, record_value_for_reg,
16070 record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
16071 reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
16072 reg_bitfield_target_p, distribute_notes): Likewise.
16073 * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
16074 exp_equiv_p, cse_insn): Likewise.
16075 * cselib.c (cselib_lookup): Likewise.
16076 (cselib_invalidate_regno, cselib_record_set): Likewise.
16077 * df.c (df_ref_record): Likewise.
16078 * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
16079 Likewise.
16080 * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
16081 count_or_remove_death_notes_bb): Likewise.
16082 * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
16083 * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
16084 mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
16085 * integrate.c (mark_stores): Likewise.
16086 * jump.c (delete_prior_computation): Likewise.
16087 * lcm.c (reg_dies, reg_becomes_live): Likewise.
16088 * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
16089 * loop.c (LOOP_REGNO_NREGS): Likewise.
16090 * postreload.c (reload_combine, reload_combine_note_store,
16091 reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
16092 * ra-colorize.c (combine, color_usable_p, get_free_reg,
16093 calculate_dont_begin, calculate_dont_begin, colorize_one_web,
16094 try_recolor_web, insert_coalesced_conflicts, check_colors,
16095 break_precolored_alias): Likewise.
16096 * ra-debug.c: Include regs.h
16097 (ra_print_rtx_object): Likewise.
16098 * ra-rewrite (choose_spill_colors): Likewise.
16099 (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
16100 * ra.c (init_ra): Likewise.
16101 * recog.c (reg_fits_class_p, peep2_reg_dead_p,
16102 peep2_find_free_register): Likewise.
16103 * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
16104 * regclass.c (hard_regno_nregs): New array.
16105 (init_reg_modes_once): Initialize it.
16106 (choose_hard_reg_mode): Use it.
16107 (record_reg_classes): Likewise.
16108 * regmove.c (mark_flags_life_zones): Likewise.
16109 * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
16110 scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
16111 copy_value, maybe_mode_change, find_oldest_value_reg,
16112 copyprop_hardreg_forward_1):
16113 * regs.h (hard_regno_nregs): Declare.
16114 * realod.c (reload_inner_reg_of_subreg): Use it.
16115 (push_reload, combine_reloads, find_dummy_reload,
16116 hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
16117 refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
16118 reload_adjust_reg_for_mode): Likewise.
16119 * reload1.c (compute_use_by_pseudos, count_pseudo,
16120 count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
16121 spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
16122 clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
16123 allocate_reload_reg, choose_reload_regs, emit_reload_insns,
16124 delete_output_reload): Likewise.
16125 * resource.c (update_live_status, mark_referenced_resources,
16126 mark_set_resources, mark_target_live_regs): Likewise.
16127 * rtlanal.c: Include regs.h
16128 (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
16129 dead_or_set_regno_p, find_regno_note, find_reg_fusage,
16130 subreg_regno_offset, subreg_offset_representable_p,
16131 hoist_test_store): Likewise.
16132 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
16133 * sched-rgn.c (check_live_1, update_live_1): Likewise.
16134 * stmt.c: Include regs.h
16135 (decl_conflicts_with_clobbers_p): Likewise.
16136 * varasm.c (make_decl_rtl): Likewise.
16137 * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
16138
16139 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
16140
16141 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
16142 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
16143 config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
16144 config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
16145 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
16146 config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
16147 config/iq2000/iq2000.h, config/m32r/m32r.c,
16148 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
16149 config/m68hc11/m68hc11.md, config/m68k/m68k.md,
16150 config/mcore/mcore.c, config/mcore/mcore.h,
16151 config/mcore/mcore.md, config/mips/mips.c,
16152 config/ns32k/ns32k.h, config/ns32k/ns32k.md,
16153 config/rs6000/rs6000.c, config/s390/s390.c,
16154 config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
16155 config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
16156 "gen_rtx (FOO, " with "gen_rtx_FOO (".
16157
16158 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
16159
16160 * config/h8300/h8300.md (two peephole2's): New.
16161
16162 2004-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
16163
16164 * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
16165 (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
16166 (ASM_CPU_SPEC): Likewise
16167 * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
16168 (ASM_CPU_SPEC): Remove -mcpu=v8plus. Handle -mcpu=ultrasparc3.
16169
16170 2004-02-01 Roger Sayle <roger@eyesopen.com>
16171
16172 * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
16173 isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
16174 (expand_builtin): Always call expand_builtin_pow.
16175
16176 2004-02-01 Roger Sayle <roger@eyesopen.com>
16177
16178 * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
16179 BUILT_IN_SIGNBITL): New GCC builtins.
16180 * builtins.c (expand_builtin_signbit): New function to RTL expand
16181 calls to signbit, signbitf and signbitl as inline intrinsics.
16182 (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
16183 (fold_builtin_signbit): New function to perform constant folding
16184 of signbit, signbitf and signbitl.
16185 (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
16186
16187 * doc/extend.texi: Document new signbit{,f,l} builtins.
16188
16189 2004-02-01 Richard Sandiford <rsandifo@redhat.com>
16190
16191 * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
16192
16193 2004-02-01 Chris Demetriou <cgd@broadcom.com>
16194
16195 * config/mips/mips.h (PREDICATE_CODES): Remove entries for
16196 "mips_const_double_ok" and "simple_memory_operand", which were
16197 removed from the MIPS port with the mips-3_4-rewrite branch merge.
16198 * config/mips/mips.c (mips16_lay_out_constants): Update comment
16199 for removal of simple_memory_operand.
16200
16201 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16202
16203 * config/c4x/c4x.md: Use GEN_INT instead of
16204 gen_rtx (CONST_INT, ...).
16205
16206 2004-01-31 Richard Henderson <rth@redhat.com>
16207
16208 * varasm.c (output_constant_pool): Don't zap the pool.
16209
16210 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16211
16212 * genrecog.c (decision_type): Add DT_const_int.
16213 (write_cond) [DT_const_int]: Print a comparison against small
16214 constant.
16215 (write_node): Simplify comparisons against small constants
16216 before printing tests.
16217
16218 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16219
16220 * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
16221 instead of gen_rtx_CONST_INT.
16222
16223 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16224
16225 * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
16226 instead of gen_rtx_CONST_INT.
16227
16228 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16229
16230 * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
16231 hook_bool_CUMULATIVE_ARGS_false.
16232 * targhooks.c (default_strict_argument_naming): Rename to
16233 hook_bool_CUMULATIVE_ARGS_false.
16234 * targhooks.h: Update the prototype for
16235 default_strict_argument_naming.
16236
16237 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16238
16239 * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
16240 * config/sh/sh.h: Likewise.
16241 * config/sh/sh.md: Likewise.
16242
16243 2004-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
16244
16245 * doc/invoke.texi (SPARC options): Restructure and update.
16246
16247 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16248
16249 * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
16250 STRICT_ARGUMENT_NAMING): Poison.
16251 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
16252 hook_bool_tree_false.
16253 * targhooks.c (default_promote_function_args): Remove.
16254 (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
16255 Don't check incoming.
16256 (default_strict_argument_naming): Don't use
16257 STRICT_ARGUMENT_NAMING.
16258 * targhooks.h: Remove the prototype for
16259 default_promote_function_args.
16260
16261 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16262
16263 * config/i386/i386-protos.h: Remove the prototype for
16264 ix86_setup_incoming_varargs.
16265 * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
16266 (ix86_setup_incoming_varargs): Make it static.
16267 * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
16268
16269 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16270
16271 * alloc-pool.c: Fix comment typos.
16272 * builtin-types.def: Likewise.
16273 * builtins.def: Likewise.
16274 * c-pretty-print.c: Likewise.
16275 * df.h: Likewise.
16276 * reload1.c: Likewise.
16277
16278 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16279
16280 * doc/invoke.texi: Follow spelling conventions.
16281 * doc/tm.texi: Likewise.
16282
16283 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16284
16285 * doc/install.texi: Fix typos.
16286 * doc/invoke.texi: Likewise.
16287
16288 2004-01-31 Ulrich Weigand <uweigand@de.ibm.com>
16289
16290 * config/s390/s390.c (s390_decompose_address): Do not treat virtual
16291 registers as pointers.
16292 * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
16293
16294 2004-01-31 Paolo Bonzini <bonzini@gnu.org>
16295
16296 * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
16297 and restore it to gen_lowpart_general on exit.
16298 (gen_lowpart_for_combine): Adjust all callers to go through
16299 gen_lowpart.
16300 * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
16301 and restore it to gen_lowpart_general on exit.
16302 (gen_lowpart_if_possible): Adjust all callers to go through
16303 gen_lowpart.
16304 * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
16305 (gen_lowpart): Declare as pointer to function, initialized to
16306 gen_lowpart_general.
16307 * rtl.h (gen_lowpart): Declare as pointer to function.
16308
16309 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
16310
16311 * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
16312 * calls.c: Likewise.
16313 * emit-rtl.c: Likewise.
16314 * function.c: Likewise.
16315 * reload1.c: Likewise.
16316 * config/i386/cygming.h: Likewise.
16317 * config/i386/i386.c: Likewise.
16318 * config/i386/winnt.c: Likewise.
16319
16320 2004-01-30 Dara Hazeghi <dhazeghi@yahoo.com>
16321
16322 PR bootstrap/9249
16323 * doc/install.texi: document --enable-__cxa_atexit option.
16324 * configure.ac: Disable __cxa_atexit if not supported.
16325 * configure: Regenerate.
16326
16327 2004-01-30 Daniel Berlin <dberlin@dberlin.org>
16328
16329 * ggc-zone.c (ggc_free): New function.
16330
16331 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
16332
16333 alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
16334 cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
16335 flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
16336 ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
16337 tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
16338 config/alpha/alpha.c, config/alpha/alpha.h,
16339 config/alpha/alpha.md, config/alpha/unicosmk.h,
16340 config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
16341 config/c4x/c4x-protos.h, config/c4x/c4x.md,
16342 config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
16343 config/frv/frvend.c, config/i386/cygming.h,
16344 config/i386/djgpp.h, config/i386/emmintrin.h,
16345 config/i386/gthr-win32.c, config/i386/i386-interix.h,
16346 config/i386/i386-protos.h, config/i386/openbsd.h,
16347 config/i386/winnt.c, config/i386/xm-mingw32.h,
16348 config/i386/xmmintrin.h, config/ia64/ia64.md,
16349 config/iq2000/iq2000.md, config/m32r/m32r.md,
16350 config/m68k/m68k.md, config/mcore/mcore-elf.h,
16351 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
16352 config/mips/iris5gas.h, config/mips/iris6.h,
16353 config/mips/iris6gas.h, config/mips/linux.h,
16354 config/mips/mips.md, config/mips/netbsd.h,
16355 config/mips/openbsd.h, config/mips/windiss.h,
16356 config/pa/fptr.c, config/rs6000/aix.h,
16357 config/rs6000/altivec.h, config/rs6000/darwin.h,
16358 config/rs6000/xcoff.h, config/s390/s390-protos.h,
16359 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
16360 config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
16361 config/sparc/sol2.h: Update copyright.
16362
16363 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
16364
16365 * Makefile.in (abs_docdir, abs_srcdir): Define.
16366 (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
16367
16368 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
16369
16370 * genconfig.c (main): Have CC0_P check its operand even on a
16371 target without cc0.
16372
16373 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
16374
16375 * config/alpha/alpha.c: Remove mentions of deprecates macros
16376 in comments, remove some target-independent comments about target
16377 macros, and/or add minimal function comments for target hook
16378 implementations.
16379 * config/avr/avr.c: Likewise.
16380 * config/ia64/ia64.h: Likewise.
16381 * config/ip2k/ip2k.c: Likewise.
16382 * config/iq2000/iq2000.c: Likewise.
16383 * config/m32r/m32r.h: Likewise.
16384 * config/m68hc11/m68hc11.c: Likewise.
16385 * config/mcore/mcore.c: Likewise.
16386 * config/mmix/mmix.c: Likewise.
16387 * config/mn10300/mn10300.c: Likewise.
16388 * config/pa/pa.c: Likewise.
16389 * config/pdp11/pdp11.c: Likewise.
16390 * config/rs6000/rs6000.h: Likewise.
16391 * config/sh/sh.c: Likewise.
16392 * config/sh/sh.h: Likewise.
16393 * config/sparc/sparc.c: Likewise.
16394 * config/sparc/sparc.h: Likewise.
16395 * config/stormy16/stormy16.c: Likewise.
16396 * config/xtensa/xtensa.c: Likewise.
16397
16398 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
16399
16400 PR optimization/12147
16401 * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
16402 RELOAD_FOR_OPADDR_ADDR.
16403 (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
16404 might be reused as RELOAD_FOR_OPADDR_ADDR register.
16405
16406 2004-01-30 Jan Hubicka <jh@suse.cz>
16407
16408 * reload.c (get_secondary_mem): Fix updating of
16409 secondary_memlocs_elim_used.
16410
16411 2004-01-30 Richard Henderson <rth@redhat.com>
16412
16413 * varasm.c (struct rtx_const, struct pool_constant): Remove.
16414 (MAX_RTX_HASH_TABLE): Remove.
16415 (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
16416 (first_pool, last_pool, pool_offset): Remove.
16417 (struct rtx_constant_pool): Split out from ...
16418 (struct varasm_status): ... here. Reference one via pointer.
16419 (struct constant_descriptor_rtx): Merge struct pool_constant.
16420 (SYMHASH): Remove.
16421 (decode_rtx_const): Remove.
16422 (const_hash_rtx, compare_constant_rtx): Remove.
16423 (record_constant_rtx): Remove.
16424 (const_desc_rtx_hash, const_desc_rtx_eq): New.
16425 (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
16426 (const_rtx_hash_1, const_rtx_hash): New.
16427 (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
16428 (simplify_subtraction): Use simplify_rtx.
16429 (force_const_mem): Rewrite to use new data structures.
16430 (find_pool_constant): Likewise.
16431 (get_pool_constant, get_pool_constant_mark,
16432 get_pool_constant_for_function, get_pool_mode,
16433 get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
16434 (output_constant_pool_2): Split out from output_constant_pool.
16435 (output_constant_pool_1): Likewise. Use new pool datastructures.
16436 (output_constant_pool): Zap entire pool datastructure.
16437 (mark_constant): Use new pool datastructures.
16438 (mark_constants): Use for_each_rtx.
16439 (mark_constant_pool): Use new pool datastructures.
16440
16441 2004-01-30 Fariborz Jahanian <fjahanian@apple.com>
16442
16443 * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
16444 Copy operands[1] to pseudo for simplify_gen_subreg.
16445
16446 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
16447
16448 * gcse.c (bypass_block): Fix a typo in the previous check-in
16449 to the file.
16450
16451 2004-01-30 Andrew Pinski <pinskia@physics.uc.edu>
16452
16453 * toplev.c: Include alloc-pool.h.
16454 * Makefile.in (toplev.c): Update dependencies.
16455
16456 2004-01-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16457
16458 * combine.c (simplify_shift_const, case XOR): Be careful when
16459 commuting XOR with ASHIFTRT.
16460
16461 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
16462 Eric Botcazou <ebotcazou@libertysurf.fr>
16463
16464 * config/sparc/sparc-protos.h: Remove the prototype for
16465 sparc_builtin_saveregs.
16466 * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16467 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16468 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16469 (TARGET_STRUCT_VALUE_RTX): Likewise.
16470 (TARGET_RETURN_IN_MEMORY): Likewise.
16471 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
16472 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
16473 (sparc_builtin_saveregs): Make it static.
16474 (sparc_promote_prototypes): New.
16475 (sparc_struct_value_rtx): Likewise.
16476 (sparc_return_in_memory): Likewise.
16477 * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
16478 (PROMOTE_FUNCTION_RETURN): Likewise.
16479 (RETURN_IN_MEMORY): Likewise.
16480 (STRUCT_VALUE): Likewise.
16481 (STRUCT_VALUE_INCOMING): Likewise.
16482 (EXPAND_BUILTIN_SAVEREGS): Likewise.
16483 (STRICT_ARGUMENT_NAMING): Likewise.
16484 (PROMOTE_PROTOTYPES): Likewise.
16485
16486 * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
16487
16488 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
16489
16490 PR c/12818
16491 * varasm.c (const_hash_1) <STRING_CST>: Use the
16492 address to compute the hash value if flag_writable_strings.
16493 (compare_constant) <STRING_CST>: Compare the addresses
16494 if flag_writable_strings.
16495 (build_constant_desc): Do not copy the expression for a
16496 STRING_CST if flag_writable_strings.
16497
16498 2004-01-30 Jan Hubicka <jh@suse.cz>
16499
16500 * alloc-pool.c: Include hashtab.h
16501 (alloc_pool_descriptor): New structure
16502 (alloc_pool_hash): New global variable.
16503 (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
16504 (create_alloc_pool): Update statistics.
16505 (free_alloc_pool): Likewise.
16506 (pool_alloc): Likewise.
16507 (output_info): New structure
16508 (print_statistics, dump_alloc_pool_statistics): New function.
16509 * alloc-pool.h (alloc_pool_def): Turn name to be constant.
16510 (dump_alloc_pool_statistics): Declare.
16511 * toplev.c (finalize): Dump statistics.
16512
16513 * reload.c (secondary_memlocs_elim_used): New static variable.
16514 (get_secondary_mem): Update it.
16515 (find_reloads): Use it.
16516
16517 2004-01-30 Steven Bosscher <s.bosscher@student.tudelft.nl>
16518
16519 * toplev.c: Fix broken checkin of 2003-12-30, again.
16520
16521 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
16522
16523 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
16524 s390*-*-* targets by specifying a 'nop' insn.
16525 * configure: Regenerate.
16526
16527 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
16528
16529 PR target/11475
16530 * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
16531
16532 2004-01-29 Jakub Jelinek <jakub@redhat.com>
16533
16534 * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
16535 of addr when creating MEM copy.
16536
16537 2004-01-29 Devang Patel <dpatel@apple.com>
16538
16539 * dwarf2out.c (gen_field_die): Do not equate decl number to die.
16540
16541 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
16542
16543 PR inline-asm/6162
16544 * reload.c (find_reloads): Only support one pair of commutative
16545 operands.
16546
16547 2004-01-29 Roger Sayle <roger@eyesopen.com>
16548
16549 PR java/13824
16550 * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
16551 as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
16552 recursion.
16553
16554 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
16555
16556 * config/frv/frv.c: Don't mention deprecated macros in
16557 comments. Remove some target-independent comments about
16558 target macros.
16559 * config/frv/frv.h: Likewise.
16560
16561 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16562
16563 * cfghooks.c (split_block): Set probability and count of the
16564 new edge.
16565
16566 2004-01-29 Josef Zlomek <zlomekj@suse.cz>
16567
16568 * dwarf2out.c (struct die_struct): Added field decl_id.
16569 (decl_die_table): Changed to hash table.
16570 (decl_die_table_allocated): Deleted.
16571 (decl_die_table_in_use): Deleted.
16572 (DECL_DIE_TABLE_INCREMENT): Deleted.
16573 (decl_die_table_hash): New function.
16574 (decl_die_table_eq): New function.
16575 (lookup_decl_die): Lookup in a hash table.
16576 (equate_decl_number_to_die): Insert into a hash table.
16577 (dwarf2out_init): Init hash table decl_die_table.
16578
16579 2004-01-29 Jakub Jelinek <jakub@redhat.com>
16580
16581 PR optimization/13424
16582 * expr.c (store_constructor): Revert 2003-12-03 change.
16583
16584 * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
16585 expected before returning early. Avoid sharing RTL if they
16586 need to be changed.
16587
16588 * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
16589 handling so that memory attributes are preserved. Don't call
16590 ix86_set_move_mem_attrs.
16591 (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
16592 (ix86_expand_clrstr): Rename src argument to
16593 dst. Rework rep_stos and strset handling so that memory attributes
16594 are preserved.
16595 (ix86_expand_strlen): Pass src argument to
16596 ix86_expand_strlensi_unroll_1. Rework strlenqi_1 handling so that
16597 memory attributes are preserved.
16598 (ix86_expand_strlensi_unroll_1): Add src argument. Use
16599 change_address instead of gen_rtx_MEM.
16600 * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
16601 expanders.
16602 (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
16603 strmovqi, strmovqi_rex64): Remove.
16604 (rep_mov*, strmov*): Prefix insn names with *.
16605 (strset, strset_singleop, rep_stos): New expanders.
16606 (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
16607 strsetqi, strsetqi_rex64): Remove.
16608 (rep_stos*, strset*): Prefix insn names with *.
16609 (rep_stosqi_rex64): Likewise. Fix mode of dirflag reg from DImode
16610 to SImode.
16611 (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
16612 are preserved.
16613 (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
16614 Prefix insn names with *.
16615 (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
16616 (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
16617 (strlenqi_1): New expander.
16618 * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
16619
16620 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16621
16622 * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
16623 * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
16624 verify_flow_info): Declaration removed.
16625 * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
16626 (debug_bb, debug_bb_n): Add argument to dump_bb call.
16627 * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
16628 try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
16629 instead of delete_block.
16630 * cfghooks.c: Include timevar.h and toplev.h.
16631 (cfg_hooks): Define here.
16632 (verify_flow_info, dump_bb): Moved from cfg.c.
16633 (redirect_edge_and_branch, redirect_edge_and_branch_force,
16634 split_block, split_block_after_labels, move_block_after,
16635 delete_basic_block, split_edge, create_basic_block,
16636 create_empty_bb, can_merge_blocks_p, merge_blocks,
16637 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
16638 New functions.
16639 * cfghooks.h (struct cfg_hooks): Added fields name,
16640 make_forwarder_block, tidy_fallthru_edge and
16641 move_block_after. Changed type of verify_flow_info, dump_bb,
16642 split_block fields. Renamed cfgh_split_edge and delete_block
16643 fields.
16644 (redirect_edge_and_branch, redirect_edge_and_branch_force,
16645 split_block, delete_block, split_edge, create_basic_block,
16646 can_merge_blocks_p, merge_blocks): Macros removed.
16647 (cfg_hooks): Do not export.
16648 (verify_flow_info, dump_bb, redirect_edge_and_branch,
16649 redirect_edge_and_branch_force, split_block, split_block_after_labels,
16650 move_block_after, delete_basic_block, split_edge, create_basic_block,
16651 create_empty_bb, can_merge_blocks_p, merge_blocks,
16652 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
16653 Declare.
16654 (cfg_layout_rtl_cfg_hooks): Declare.
16655 * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
16656 New functions.
16657 (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
16658 (redirect_edge_with_latch_update): Removed.
16659 (make_forwarder_block): Moved to cfghooks.c, semantics changed.
16660 * cfgloopmanip.c (remove_bbs): Do not update dominators here.
16661 * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
16662 rtl_delete_block, rtl_split_block, rtl_merge_blocks,
16663 tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
16664 cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
16665 cfghooks.c.
16666 (rtl_create_basic_block): Coding style fix.
16667 (rtl_tidy_fallthru_edge, rtl_move_block_after,
16668 rtl_make_forwarder_block): New functions.
16669 (update_cfg_after_block_merging): Removed.
16670 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
16671 * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
16672 to dump_bb.
16673 * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
16674 find_if_case_2): Don't update dominators.
16675 * timevar.def (TV_CFG_VERIFY): New.
16676 * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
16677 * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
16678 * cfgloopmanip.c (split_loop_bb): Don't update dominators.
16679 (remove_bbs): Don't call remove_bbs.
16680 (create_preheader): Use make_forwarder_block.
16681 (mfb_keep_just, mfb_update_loops): New static functions.
16682
16683 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
16684
16685 * config/avr/avr.h: Remove target-independent comments about
16686 target macros.
16687
16688 2004-01-28 Daniel Berlin <dberlin@dberlin.org>
16689
16690 * timevar.c (timevar_print): Mention when checking is enabled.
16691
16692 2004-01-28 Giovanni Bajo <giovannibajo@gcc.gnu.org>
16693
16694 * c-lex.c (c_lex): Rename to...
16695 (c_lex_with_flags): Add new parameter to get CPP flags.
16696 (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
16697 * c-pragma.h (c_lex_with_flags): Declare.
16698
16699 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16700
16701 * config/mcore/mcore.c (mcore_external_libcall): Add a
16702 comment.
16703 (mcore_return_in_memory): Likewise.
16704
16705 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16706
16707 * config/mcore/mcore-protos.h: Remove the prototype for
16708 mcore_setup_incoming_varargs.
16709 * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
16710 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
16711 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16712 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16713 (TARGET_STRUCT_VALUE_RTX): Likewise.
16714 (TARGET_RETURN_IN_MEMORY): Likewise.
16715 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16716 (mcore_setup_incoming_varargs): Make it static. Receive the
16717 first argument by reference. Add argument second_time.
16718 (mcore_external_libcall): New.
16719 (mcore_return_in_memory): Likewise.
16720 * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
16721 (PROMOTE_FUNCTION_RETURN): Likewise.
16722 (STRUCT_VALUE): Likewise.
16723 (RETURN_IN_MEMORY): Likewise.
16724 (SETUP_INCOMING_VARARGS): Likewise.
16725 (PROMOTE_PROTOTYPES): Likewise.
16726 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
16727
16728 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16729
16730 * config/m32r/m32r-protos.h: Remove the prototype for
16731 m32r_setup_incoming_varargs.
16732 * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
16733 (TARGET_STRUCT_VALUE_RTX): Likewise.
16734 (TARGET_RETURN_IN_MEMORY): Likewise.
16735 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16736 (m32r_return_in_memory): New.
16737 (m32r_setup_incoming_varargs): Make it static.
16738 * config/m32r/m32r.h: Remove #undef of
16739 ASM_OUTPUT_EXTERNAL_LIBCALL. Remove the commented-out
16740 definitions of PROMOTE_FUNCTION_ARGS and
16741 PROMOTE_FUNCTION_RETURN.
16742 (PROMOTE_PROTOTYPES): Remove.
16743 (RETURN_IN_MEMORY): Likewise.
16744 (STRUCT_VALUE): Likewise.
16745
16746 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16747
16748 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
16749 (TARGET_STRUCT_VALUE_RTX): Likewise.
16750 (m68k_struct_value_rtx): Likewise.
16751 * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
16752 STRUCT_VALUE_REGNUM.
16753 (PROMOTE_PROTOTYPES): Remove.
16754 * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
16755 STRUCT_VALUE_REGNUM.
16756 * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
16757 * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
16758
16759 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16760
16761 * config/stormy16/stormy16.c
16762 (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
16763 TARGET_BUILD_BUILTIN_VA_LIST.
16764
16765 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16766
16767 * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
16768 (TARGET_STRUCT_VALUE_RTX): Likewise.
16769 (TARGET_RETURN_IN_MEMORY): Likewise.
16770 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16771 (v850_return_in_memory): Likewise.
16772 (v850_setup_incoming_varargs): Likewise.
16773 * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
16774 (SETUP_INCOMING_VARARGS): Likewise.
16775 (RETURN_IN_MEMORY): Likewise.
16776 (STRUCT_VALUE): Likewise.
16777
16778 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16779
16780 * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
16781 (fr30_setup_incoming_varargs): Don't use
16782 STRICT_ARGUMENT_NAMING.
16783 * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
16784 (STRICT_ARGUMENT_NAMING): Likewise.
16785
16786 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16787
16788 * config/frv/frv-protos.h: Remove the prototype for
16789 frv_expand_builtin_saveregs.
16790 * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
16791 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
16792 (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
16793 STRUCT_VALUE_REGNUM.
16794 (frv_expand_builtin_saveregs): Make it static.
16795 (frv_struct_value_rtx): New.
16796 * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
16797
16798 2004-01-29 Jan Hubicka <jh@suse.cz>
16799
16800 PR c++/12850
16801 * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
16802 initial pointers.
16803 * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
16804 for functions that will be only inlined.
16805 (cgraph_mark_function_to_output): Likewise.
16806 (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
16807 do not clear function body.
16808 * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
16809 (tree_rest_of_compilation): Reorganize the logic releasing function
16810 body to use callgraph datastructure.
16811
16812 2004-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16813
16814 * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
16815 to register_operand.
16816
16817 2004-01-28 Zack Weinberg <zack@codesourcery.com>
16818
16819 * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
16820 (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
16821 match_operand expressions so that all match_dups appear
16822 lexically after their corresponding match_operands.
16823
16824 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16825
16826 * config/h8300/h8300.c (WORD_REG_USED): Use
16827 HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
16828 (compute_saved_regs): Likewise.
16829 (h8300_expand_prologue): Likewise. Allocate locals after
16830 saving registers.
16831 (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
16832 of FRAME_POINTER_REGNUM. Deallocate locals before saving
16833 registers.
16834 (h8300_initial_elimination_offset): Adjust for the new frame
16835 layout, which swaps flips the order of locals and saved
16836 registers.
16837 * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
16838 (HARD_FRAME_POINTER_REGNUM): New.
16839 (ELIMINABLE_REGS): Add an elimination rule from
16840 FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
16841 (REGISTER_NAMES): Add fp.
16842 * config/h8300/h8300.md (FP_REG): Change to 11.
16843 (HFP_REG): New.
16844
16845 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16846
16847 * genrecog.c (write_node): Remove a useless local variable.
16848
16849 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
16850
16851 * Makefile.in (options.c options.h): Use stamp file s-options to
16852 avoid unnecessary rebuilds.
16853 (options.o): New target listing dependencies.
16854 (gtyp-gen.h): Use stamp file s-gtyp-gen.
16855 (STAGESTUFF): Add s-gtyp-gen.
16856
16857 2004-01-28 Richard Henderson <rth@redhat.com>
16858
16859 * ggc.h (ggc_free): Declare.
16860 * ggc-common.c (ggc_realloc): Use it.
16861 * ggc-page.c: Remove lots of inline markers.
16862 (globals): Add free_object_list.
16863 (ggc_alloc): Tidy.
16864 (ggc_free, validate_free_objects): New.
16865 (poison_pages): Provide default.
16866 (ggc_collect): Call validate_free_objects; emit markers to
16867 the debug file.
16868
16869 2004-01-28 Zack Weinberg <zack@codesourcery.com>
16870 Jim Wilson <wilson@specifixinc.com>
16871
16872 * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
16873 Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
16874 scratch pointer.
16875 (ia64_secondary_reload_class): Delete case GR_REGS.
16876 * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
16877 Do not allocate a scratch register.
16878 (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
16879
16880 2004-01-28 Jan Hubicka <jh@suse.cz>
16881
16882 * gcse.c (bypass_block): Prevent edges to be unified when we are
16883 about to emit compenstation code.
16884
16885 2004-01-28 Nick Clifton <nickc@redhat.com>
16886
16887 * config/arm/arm.c (arm_expand_builtin): Force second argument of
16888 the setcwx insn into a register.
16889
16890 2004-01-28 Richard Sandiford <rsandifo@redhat.com>
16891
16892 * config/fp-bit.c (pack_d): When using paired doubles to implement
16893 a long double, round the high part separately.
16894 (unpack_d): Fix the case in which the high part is a power of two
16895 and the low part is a nonzero value of the opposite sign.
16896
16897 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16898
16899 * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
16900 (TARGET_STRUCT_VALUE_RTX): Likewise.
16901 (c4x_external_libcall): Likewise.
16902 (c4x_struct_value_rtx): Likewise.
16903 * config/c4x/c4x.h: Remove.
16904 (STRUCT_VALUE_REGNUM): Likewise.
16905 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
16906
16907 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16908
16909 * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
16910 (TARGET_STRUCT_VALUE_RTX): Likewise.
16911 * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
16912 (STRUCT_VALUE): Likewise.
16913 (PROMOTE_PROTOTYPES): Likewise.
16914
16915 2004-01-27 Roger Sayle <roger@eyesopen.com>
16916
16917 * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
16918 CONST_INT before using INTVAL.
16919
16920 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
16921
16922 * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
16923 * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
16924 frame if !TARGET_BACKCHAIN.
16925 * config/s390/s390.md ("allocate_stack"): Use pattern only if
16926 TARGET_BACKCHAIN.
16927 * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
16928
16929 2004-01-27 Zack Weinberg <zack@codesourcery.com>
16930
16931 * ia64.c (ia64_function_arg): When placing HFAs in integer
16932 registers, do not special case the mode used for complex
16933 types. Do not advance int_regs until the current register
16934 is full.
16935
16936 2004-01-27 Richard Sandiford <rsandifo@redhat.com>
16937
16938 PR target/7297
16939 * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
16940
16941 2004-01-27 David Edelsohn <edelsohn@gnu.org>
16942
16943 * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
16944 slow, unaligned loads and stores while debugging. Fix formatting.
16945
16946 2004-01-27 David Edelsohn <edelsohn@gnu.org>
16947
16948 * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
16949 of computing wmode.
16950 (restore_stack_nonlocal): Same.
16951
16952 2004-01-27 Devang Patel <dpatel@apple.com>
16953
16954 * Makefile.in (dwarf2out.o): Depend on input.h
16955 * dbxout.c (dbx_debug_hooks): Add new empty hook for
16956 imported_module_or_decl.
16957 (xcoff_debug_hooks): Same.
16958 * sdbout.c (sdb_debug_hooks): Same.
16959 * vmsdbgout.c (vmsdbg_debug_hooks): Same.
16960 * debug.c (do_nothing_debug_hooks): Same.
16961 (debug_nothing_tree_tree): New function.
16962 * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
16963 * dwarf2out.c: Include input.h.
16964 (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
16965 (remove_child_TAG): New function.
16966 (dwarf_tag_name): Handle DW_TAG_imported_module.
16967 (gen_subprogram_die): Equate decl number to declaration die. Do not
16968 remove all children dies while reusing declaration die for definition.
16969 Instead, selectively remove only formal parameters.
16970 (gen_variable_die): Equate variable decl to declaration die.
16971 (gen_field_die): Equate field decl to line number.
16972 (force_namespace_die): Replace it with ...
16973 (force_decl_die): ... this.
16974 (force_type_die): New function.
16975 (setup_namespace_context): Replace use of force_namespace_die() with
16976 force_decl_die().
16977 (gen_namespace_die): Same.
16978 (dwarf2out_imported_module_or_decl): New function.
16979
16980 2004-01-27 Bob Wilson <bob.wilson@acm.org>
16981
16982 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
16983 on CQImode and CHImode incoming arguments in register a7.
16984 (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
16985 * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
16986 * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
16987 xtensa_copy_incoming_a7 before reload.
16988
16989 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
16990
16991 * coverage.c (get_coverage_counts): Give a different message
16992 if flag_guess_branch_prob is set.
16993 * predict.c (counts_to_freqs): Return an int.
16994 (estimate_bb_frequencies): If counts_to_freqs returns zero,
16995 calculate estimates.
16996
16997 2004-01-27 Kazu Hirata <kazu@cs.umass.edu>
16998
16999 * config/iq2000/iq2000-protos.h: Remove the prototype for
17000 iq2000_setup_incoming_varargs.
17001 * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17002 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17003 (TARGET_PROMOTE_PROTOTYPES): Likewise.
17004 (TARGET_STRUCT_VALUE_RTX): Likewise.
17005 (TARGET_RETURN_IN_MEMORY): Likewise.
17006 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17007 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
17008 (iq2000_return_in_memory): Likewise.
17009 (iq2000_setup_incoming_varargs): Make it static. Receive the
17010 first argument by reference.
17011 * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
17012 (PROMOTE_FUNCTION_RETURN): Likewise.
17013 (PROMOTE_PROTOTYPES): Likewise.
17014 (RETURN_IN_MEMORY): Likewise.
17015 (STRUCT_VALUE): Likewise.
17016 (SETUP_INCOMING_VARARGS): Likewise.
17017 (STRICT_ARGUMENT_NAMING): Likewise.
17018
17019 2004-01-24 James A. Morrison <ja2morri@uwaterloo.ca>
17020
17021 * fixinc/fixinc.c (test_test): Initialize res.
17022 (start_flexer): Initialize pz_cmd_save.
17023
17024 2004-01-27 Zack Weinberg <zack@codesourcery.com>
17025
17026 * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
17027 SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
17028
17029 2004-01-27 Zack Weinberg <zack@codesourcery.com>
17030
17031 PR 7198
17032 * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
17033 (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
17034 (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
17035 Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
17036 Possibly rename pattern for consistency.
17037 Remove ??? comments suggesting that this be done.
17038 (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
17039 New patterns.
17040 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
17041 (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
17042 (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
17043 (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
17044 Update to match.
17045
17046 2004-01-27 Ian Lance Taylor <ian@wasabisystems.com>
17047
17048 * config/arm/arm.c (output_return_instruction): Only restore IP
17049 into SP if frame_pointer_needed.
17050
17051 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
17052
17053 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
17054 for SCmode and DCmode if ARCH32.
17055 (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
17056 * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
17057 if ARCH32.
17058 (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
17059 if ARCH32.
17060 (BASE_OUTGOING_VALUE_REG): Likewise.
17061
17062 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
17063
17064 PR target/10904
17065 PR target/13058
17066 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
17067 Forbid mode changes from SImode for lower FP regs if ARCH64.
17068
17069 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
17070
17071 * Makefile.in (bt-load.o): Depend on except.h.
17072 * bt-load.c (except.h): #include.
17073 (compute_defs_uses_and_gen): If insn at end of BB can throw
17074 within this function, consider registers used by it unavailable for
17075 btr migration.
17076 (move_btr_def): If insn at end of BB can throw, insert before rather
17077 than after.
17078
17079 * flags.h (flag_btr_bb_exclusive): Declare.
17080 * toplev.c (flag_btr_bb_exclusive): New variable.
17081 (f_options): Add btr-bb-exclusive.
17082 * bt-load.c (augment_live_range): Restore old behaviour if
17083 flag_btr_bb_exclusive is set.
17084 * common.opt: Add entry for -fbtr-bb-exclusive.
17085 * opts.c (common_handle_options): Same.
17086 * doc/invoke.texi: Document -fbtr-bb-exclusive.
17087
17088 * bt-load.c (btrs_live_at_end): New variable.
17089 (compute_defs_uses_and_gen): Compute its pointed-to array.
17090 (clear_btr_from_live_range, add_btr_to_live_range): Update it.
17091 (augment_live_range): When augmenting with a new dominator,
17092 use only its btrs_live_at_end set, but also add in the full set
17093 of the old dominator.
17094 (btr_def_live_range): Use btrs_live_at_end.
17095 (move_btr_def): Set other_btr_uses_before_def, and move new set
17096 to the end of the basic block, if appropriate.
17097 (migrate_btr_defs): Allocate and free btrs_live_at_end.
17098
17099 * bt-load.c (basic_block_freq): Remove outdated comment.
17100
17101 2004-01-27 Alan Modra <amodra@bigpond.net.au>
17102
17103 * config/rs6000/rs6000.h: Correct target_flags free bits comment.
17104 (PREDICATE_CODES): Remove duplicate.
17105 * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
17106 (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
17107 (MASK_PROFILE_KERNEL): Adjust define.
17108
17109 2004-01-27 Jakub Jelinek <jakub@redhat.com>
17110
17111 * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
17112 of long string literals from 32 bytes to sizeof (void *) when !-Os
17113 and to 1 with -Os.
17114
17115 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17116
17117 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
17118 constant addresses in the normal mode.
17119
17120 2004-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17121
17122 * system.h (CHAR_BITFIELD): Delete.
17123 (BOOL_BITFIELD): New.
17124 * c-decl.c (c_scope): Use BOOL_BITFIELD.
17125 * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
17126
17127 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17128
17129 * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17130 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17131 (TARGET_PROMOTE_PROTOTYPES): Likewise.
17132 (TARGET_STRUCT_VALUE_RTX): Likewise.
17133 (TARGET_RETURN_IN_MEMORY): Likewise.
17134 (arc_return_in_memory): Likewise.
17135 * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
17136 (PROMOTE_FUNCTION_RETURN): Likewise.
17137 (RETURN_IN_MEMORY): Likewise.
17138 (STRUCT_VALUE): Likewise.
17139
17140 2004-01-26 Richard Henderson <rth@redhat.com>
17141
17142 * c-parse.in (extension): Use itype.
17143 (SAVE_EXT_FLAGS): Don't allocate a tree.
17144 (RESTORE_EXT_FLAGS): Don't read a tree.
17145
17146 2004-01-26 Jan Hubicka <jh@suse.cz>
17147
17148 * cselib.c (discard_useless_values): Clear out value pointer pointing
17149 to datastructure to be recycled.
17150
17151 2004-01-25 Jan Hubicka <jh@suse.cz>
17152
17153 * genextract.c (main): Do not output the memset when not checking.
17154
17155 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17156
17157 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
17158 switch statement instead of a chain of if statements.
17159
17160 2004-01-26 Jeff Law <law@redhat.com>
17161
17162 * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry. Add
17163 acute accents for Petur Runolfsson's entry.
17164
17165 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17166
17167 * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
17168 (TARGET_RETURN_IN_MEMORY): Likewise.
17169 * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
17170 (RETURN_IN_MEMORY): Likewise.
17171
17172 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
17173
17174 * config/rs6000/rs6000.c (rs6000_emit_move): split slow
17175 unaligned load/store into smaller loads and stores.
17176
17177 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
17178
17179 * function.c (assign_parms): Do not assign
17180 long long argument to memory in prologue if
17181 is it loaded into register.
17182
17183 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
17184
17185 PR middle-end/13779
17186 * expr.c (emit_group_load): split constant
17187 correctly into register components of PARALLEL insn.
17188
17189 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
17190
17191 * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
17192 Use adjust_address_nv directly with appropriate mode.
17193 (restore_stack_nonlocal): Ditto.
17194
17195 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17196
17197 * config/xtensa/xtensa-protos.h: Remove the prototype for
17198 xtensa_builtin_saveregs.
17199 * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17200 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17201 (TARGET_PROMOTE_PROTOTYPES): Likewise.
17202 (TARGET_STRUCT_VALUE_RTX): Likewise.
17203 (TARGET_RETURN_IN_MEMORY): Likewise.
17204 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
17205 (xtensa_builtin_saveregs): Make it static.
17206 (xtensa_return_in_memory): New.
17207 * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
17208 (PROMOTE_FUNCTION_RETURN): Likewise.
17209 (PROMOTE_PROTOTYPES): Likewise.
17210 (STRUCT_VALUE): Likewise.
17211 (RETURN_IN_MEMORY): Likewise.
17212 (EXPAND_BUILTIN_SAVEREGS): Likewise.
17213
17214 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17215
17216 * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
17217 (arm_setup_incoming_varargs): Likewise.
17218 * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
17219
17220 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17221
17222 * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
17223 (cris_setup_incoming_varargs): Likewise.
17224 * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
17225
17226 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17227
17228 * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
17229 (ns32k_struct_value_rtx): Likewise.
17230 * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
17231 NS32K_STRUCT_VALUE_REGNUM.
17232
17233 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17234
17235 * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17236 (TARGET_PROMOTE_PROTOTYPES): Likewise.
17237 (TARGET_STRUCT_VALUE_RTX): Likewise.
17238 (arm_struct_value_rtx): Likewise.
17239 * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
17240 (STRUCT_VALUE): Likewise.
17241 (STRUCT_VALUE_REGNUM): Likewise.
17242 (PROMOTE_PROTOTYPES): Likewise.
17243
17244 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
17245
17246 * config/ia64/ia64-protos.h: Remove the prototype for
17247 ia64_setup_incoming_varargs and ia64_return_in_memory.
17248 * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
17249 (TARGET_RETURN_IN_MEMORY): Likewise.
17250 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17251 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
17252 (ia64_setup_incoming_varargs): Adjust the arguments to meet
17253 the requirement of TARGET_SETUP_INCOMING_VARARGS.
17254 (ia64_return_in_memory): Make it static. Change the return
17255 type to bool from int. Add an argument.
17256 (ia64_struct_value_rtx): New.
17257 * config/ia64/ia64.h: Remove commented-out definitions of
17258 PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
17259 PROMOTE_PROTOTYPES.
17260 (RETURN_IN_MEMORY): Remove.
17261 (STRUCT_VALUE_REGNUM): Likewise.
17262 (STRICT_ARGUMENT_NAMING): Likewise.
17263
17264 2004-01-26 Eric Botcazou <ebotcazou@libertysurf.fr>
17265
17266 PR target/13666
17267 * config/sparc/sparc.c (function_arg_union_value): New function.
17268 (function_arg): Use it to deal with unions.
17269 (function_value): Likewise. Define 'regbase' only for ARCH64.
17270 Replace a conditional statement by a simpler one.
17271
17272 2004-01-26 Richard Sandiford <rsandifo@redhat.com>
17273
17274 * config/mips/mips.c (mips16_optimize_gp): Delete.
17275 (mips_reorg): Don't call it.
17276
17277 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17278
17279 * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
17280 (floatunsqihf2): Remove operand 6.
17281 (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
17282 fix patterns.
17283 (ldi_conditional, ldf_conditional): Validate operands.
17284
17285 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17286
17287 * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
17288 (HAVE_GAS_HIDDEN): Undefine as interim measure.
17289
17290 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17291
17292 * config/c4x/c4x.c (c4x_legitimate_address_p): Invalidate direct
17293 memory references if TARGET_EXPOSE_LDP nonzero.
17294
17295 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17296
17297 * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
17298
17299 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17300
17301 * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
17302 invalid operand combinations.
17303
17304 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17305
17306 * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
17307 c4x_legitimate_address_p. Fix post_modify check.
17308
17309 * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
17310 * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
17311
17312 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17313
17314 * config/pa/pa-protos.h: Remove the prototype for
17315 hppa_builtin_saveregs. Add a prototype for
17316 pa_return_in_memory.
17317 * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
17318 (TARGET_PROMOTE_PROTOTYPES): Likewise.
17319 (TARGET_STRUCT_VALUE_RTX): Likewise.
17320 (TARGET_RETURN_IN_MEMORY): Likewise.
17321 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
17322 (pa_struct_value_rtx): Likewise.
17323 (pa_return_in_memory): Likewise.
17324 * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
17325 PA_STRUCT_VALUE_REGNUM.
17326 (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
17327 (EXPAND_BUILTIN_SAVEREGS): Remove.
17328 (PROMOTE_PROTOTYPES): Likewise.
17329 (PROMOTE_FUNCTION_RETURN): Likewise.
17330
17331 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17332
17333 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
17334 (TARGET_STRUCT_VALUE_RTX): Likewise.
17335 (vax_struct_value_rtx): Likewise.
17336 * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
17337 VAX_STRUCT_VALUE_REGNUM.
17338 (PROMOTE_PROTOTYPES): Remove.
17339
17340 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
17341
17342 * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Handle symref.
17343
17344 2004-01-25 Chris Demetriou <cgd@broadcom.com>
17345
17346 * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
17347 and MIPS64 have HI/LO interlocks. Update comment.
17348
17349 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17350
17351 * config/stormy16/stormy16-protos.h: Remove the prototype for
17352 xstormy16_setup_incoming_varargs.
17353 * config/stormy16/stormy16.c
17354 (xstormy16_setup_incoming_varargs): Remove.
17355 (xstormy16_return_in_memory): New.
17356 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
17357 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17358 (TARGET_PROMOTE_PROTOTYPES): Likewise.
17359 (TARGET_STRUCT_VALUE_RTX): Likewise.
17360 (TARGET_RETURN_IN_MEMORY): Likewise.
17361 * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
17362 (PROMOTE_FUNCTION_RETURN): Likewise
17363 (PROMOTE_PROTOTYPES): Likewise
17364 (RETURN_IN_MEMORY): Likewise
17365 (STRUCT_VALUE): Likewise
17366 (SETUP_INCOMING_VARARGS): Likewise
17367
17368 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
17369
17370 * config/mips/mips.c (mips_offset_within_object_p): New function.
17371 (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
17372 SYMBOL_CONSTANT_POOL cases. Also use it for SYMBOL_GENERAL if the
17373 ABI has 64-bit pointers and the object file only allows 32-bit symbols.
17374
17375 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17376
17377 * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
17378 (PROMOTE_FUNCTION_RETURN): Likewise.
17379
17380 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17381
17382 * config/mn10300/mn10300-protos.h: Remove the prototype for
17383 mn10300_builtin_saveregs.
17384 * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
17385 (TARGET_STRUCT_VALUE_RTX): Likewise.
17386 (TARGET_RETURN_IN_MEMORY): Likewise.
17387 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
17388 (mn10300_return_in_memory): Likewise.
17389 (mn10300_builtin_saveregs): Make it static.
17390 * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
17391 (RETURN_IN_MEMORY): Likewise.
17392 (STRUCT_VALUE): Likewise.
17393 (EXPAND_BUILTIN_SAVEREGS): Likewise.
17394
17395 2004-01-25 Eric Botcazou <ebotcazou@act-europe.fr>
17396
17397 PR bootstrap/13853
17398 * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
17399
17400 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17401
17402 * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
17403 using ccr.
17404
17405 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17406
17407 * config/i860/i860-protos.h: Remove the prototype for
17408 i860_saveregs.
17409 * config/i860/i860.c (i860_saveregs): Make it static.
17410 (i860_struct_value_rtx): New.
17411 (TARGET_STRUCT_VALUE_RTX): Likewise.
17412 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
17413 * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
17414 I860_STRUCT_VALUE_REGNUM.
17415 (EXPAND_BUILTIN_SAVEREGS): Remove.
17416
17417 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17418
17419 * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
17420 (TARGET_RETURN_IN_MEMORY): Likewise.
17421 (m68hc11_struct_value_rtx): Likewise.
17422 (m68hc11_return_in_memory): Likewise.
17423 * config/m68hc11/m68hc11.h: Remove a commented-out definition
17424 of PROMOTE_PROTOTYPES.
17425 (RETURN_IN_MEMORY): Remove.
17426 (STRUCT_VALUE_REGNUM): Likewise.
17427
17428 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17429
17430 * config/mmix/mmix-protos.h: Remove the prototype for
17431 mmix_setup_incoming_varargs.
17432 * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17433 (TARGET_STRUCT_VALUE_RTX): Likewise.
17434 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17435 (mmix_setup_incoming_varargs): Make it static.
17436 (mmix_struct_value_rtx): New.
17437 * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
17438 Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
17439 (STRUCT_VALUE_REGNUM): Remove.
17440 (SETUP_INCOMING_VARARGS): Likewise.
17441
17442 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17443
17444 * config/mips/mips-protos.h: Remove the prototypes for
17445 mips_setup_incoming_varargs and mips_return_in_memory.
17446 * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17447 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17448 (TARGET_PROMOTE_PROTOTYPES): Likewise.
17449 (TARGET_STRUCT_VALUE_RTX): Likewise.
17450 (TARGET_RETURN_IN_MEMORY): Likewise.
17451 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17452 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
17453 (mips_setup_incoming_varargs): Match the prototype for
17454 TARGET_SETUP_INCOMING_VARARGS.
17455 (mips_return_in_memory): Make it static. Add argument fntype.
17456 (mips_strict_argument_naming): New.
17457 * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
17458 (PROMOTE_FUNCTION_ARGS): Likewise.
17459 (PROMOTE_FUNCTION_RETURN): Likewise.
17460 (STRUCT_VALUE): Likewise.
17461 (RETURN_IN_MEMORY): Likewise.
17462 (SETUP_INCOMING_VARARGS): Likewise.
17463 (STRICT_ARGUMENT_NAMING): Likewise.
17464
17465 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17466
17467 * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
17468 (TARGET_RETURN_IN_MEMORY): Likewise.
17469 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
17470 (ip2k_return_in_memory): Likewise.
17471 (ip2k_setup_incoming_varargs): Likewise.
17472 * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
17473 (STRUCT_VALUE): Likewise.
17474 (STRUCT_VALUE_INCOMING): Likewise.
17475 (SETUP_INCOMING_VARARGS): Likewise.
17476
17477 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
17478
17479 * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
17480 (TARGET_RETURN_IN_MEMORY): Likewise.
17481 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
17482 (avr_return_in_memory): Remove.
17483 * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
17484 (STRUCT_VALUE): Likewise.
17485 (STRUCT_VALUE_INCOMING): Likewise.
17486 (STRICT_ARGUMENT_NAMING): Likewise.
17487
17488 2004-01-25 Jan Hubicka <jh@suse.cz>
17489
17490 * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
17491
17492 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
17493
17494 * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
17495 (mips_regno_mode_ok_for_base_p): Declare.
17496 * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
17497 (FRAME_POINTER_REGNUM): Renumber to 78.
17498 (FIRST_PSEUDO_REGISTER): Update comment accordingly.
17499 (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
17500 (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
17501 (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
17502 (REG_MODE_OK_FOR_BASE_P): Likewise.
17503 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
17504 entry for 77 to "$arg" and entry for 78 to "$frame".
17505 (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
17506 (mips_reg_mode_ok_for_base_p): Remove.
17507 (mips_regno_mode_ok_for_base_p): New function, derived from old
17508 BASE_REG_P macro. Don't enforce the mips16 stack pointer
17509 restrictions unless we're being strict.
17510 (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
17511
17512 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17513
17514 * c-common.h: Fix comment typos.
17515 * c-decl.c: Likewise.
17516 * cgraphunit.c: Likewise.
17517 * combine.c: Likewise.
17518 * et-forest.c: Likewise.
17519 * flow.c: Likewise.
17520 * function.c: Likewise.
17521 * ifcvt.c: Likewise.
17522 * integrate.c: Likewise.
17523 * jump.c: Likewise.
17524 * postreload.c: Likewise.
17525 * varray.c: Likewise.
17526
17527 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17528
17529 * doc/frontends.texi: Update copyright.
17530 * doc/gcov.texi: Likewise.
17531 * doc/gty.texi: Likewise.
17532 * doc/sourcebuild.texi: Likewise.
17533 * doc/standards.texi: Likewise.
17534
17535 2004-01-24 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
17536
17537 PR target/12978
17538 * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
17539 Remove movstrqi_small because it conflicts with movstrqi_large.
17540
17541 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17542
17543 * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
17544 (TARGET_STRUCT_VALUE_RTX): Likewise.
17545 (cris_struct_value_rtx): Likewise.
17546 * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
17547 (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
17548 STRUCT_VALUE_REGNUM.
17549 (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
17550
17551 2004-01-24 Ian Lance Taylor <ian@wasabisystems.com>
17552
17553 PR bootstrap/13848
17554 * cse.c (cse_cc_succs): Change the mode of the source expression
17555 as soon as decide we need a new mode. Don't permit changing modes
17556 if we found a match in a successor block.
17557 (cse_condition_code_reg): Save original mode of source expression
17558 so that we know whether we have to change the mode in other
17559 insns.
17560
17561 2004-01-24 Jan Hubicka <jh@suse.cz>
17562
17563 * emit-rtl.c (change_address, adjust_address_1, offset_address,
17564 widen_memory_access): Return early when there is nothing to change.
17565
17566 2004-01-24 Jakub Jelinek <jakub@redhat.com>
17567
17568 * simplify-rtx.c (simplify_relational_operation): Don't
17569 simplify address == constant into address + -constant == 0.
17570
17571 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17572
17573 * gcc.c (process_command): Don't internationalize the
17574 Copyright message.
17575 * mips-tfile.c (main): Likewise.
17576
17577 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
17578
17579 * cse.c: (cse_cc_succs) Fix comparison warning.
17580
17581 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17582
17583 * config/h8300/h8300.md: Remove extraneous USE in expanders.
17584
17585 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17586
17587 * config/h8300/h8300-protos.h: Provide prototypes for
17588 h8300_legitimate_constant_p and h8300_legitimate_address_p.
17589 * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
17590 (h8300_rtx_ok_for_base_p): Likewise.
17591 (h8300_legitimate_address_p): Likewise.
17592 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
17593 h8300_legitimate_constant_p.
17594 (RTX_OK_FOR_BASE_P): Remove.
17595 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
17596
17597 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
17598
17599 * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
17600 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
17601 (REG_OK_FOR_INDEX_STRICT_P): Likewise.
17602 (REG_OK_FOR_BASE_STRICT_P): Likewise.
17603 (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
17604 (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
17605 (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
17606 (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
17607
17608 2004-01-24 Jan Hubicka <jh@suse.cz>
17609
17610 * cselib.c (remove_useless_values): Do not access discarded values.
17611
17612 2004-01-24 Joseph S. Myers <jsm@polyomino.org.uk>
17613
17614 * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
17615 arrays.
17616
17617 2004-01-23 Kazu Hirata <kazu@cs.umass.edu>
17618
17619 * recog.c: Fix a typo in copyright.
17620
17621 2004-01-23 Andrew Pinski <apinski@apple.com>
17622
17623 * config/rs6000/rs6000.md (call): Fix misappiled patch.
17624 (call_value): Likewise.
17625
17626 2004-01-23 Richard Henderson <rth@redhat.com>
17627
17628 PR opt/12941
17629 * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
17630 (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
17631 if SHIFT_COUNT_TRUNCATED is set.
17632
17633 2004-01-23 Bob Wilson <bob.wilson@acm.org>
17634
17635 * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
17636 separate real and imaginary parts.
17637 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
17638
17639 2004-01-23 Hartmut Penner <hpenner@de.ibm.com>
17640
17641 PR target/13674
17642 * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
17643 loading into GPR.
17644
17645 2004-01-23 Jan Hubicka <jh@suse.cz>
17646
17647 * emit-rtl.c (change_address_1): Do not re-generate the RTX if nothing
17648 change.
17649
17650 * alloc-pool.c (align_four): Kill.
17651 (create_alloc_pool): Align size to eight.
17652 (free_alloc_pool, free_pool): Invalidate deallocated data.
17653
17654 2004-01-23 Ian Lance Taylor <ian@wasabisystems.com>
17655
17656 PR gcc/1532
17657 * cse.c (cse_change_cc_mode): New static function.
17658 (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
17659 (cse_condition_code_reg): New function.
17660 * rtl.h (cse_condition_code_reg): Declare.
17661 * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
17662 * target.h (struct gcc_target): Add fixed_condition_code_regs and
17663 cc_modes_compatible.
17664 * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
17665 (TARGET_CC_MODES_COMPATIBLE): Define.
17666 (TARGET_INITIALIZER): Add new initializers.
17667 * targhooks.c (default_cc_modes_compatible): New function.
17668 * targhooks.c (default_cc_modes_compatible): Declare.
17669 * hooks.c (hook_bool_intp_intp_false): New function.
17670 * hooks.h (hook_bool_intp_intp_false): Declare.
17671 * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
17672 (TARGET_CC_MODES_COMPATIBLE): Define.
17673 (ix86_fixed_condition_code_regs): New static function.
17674 (ix86_cc_modes_compatible): Likewise.
17675 * doc/tm.texi (Condition Code): Document new hooks.
17676
17677 2004-01-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17678
17679 * fixinc/inclhack.def (bad_lval): Renamed to ...
17680 (alpha_bad_lval): ... this.
17681 Removed file list.
17682 Restrict to alpha*-dec-osf*.
17683 * fixinc/fixincl.x: Regenerate.
17684 * fixinc/tests/base/dirent.h: Remove, moving test ...
17685 * fixinc/tests/base/testing.h: ... here, reflecting new name.
17686
17687 2004-01-23 Zack Weinberg <zack@codesourcery.com>
17688
17689 PR c/13814
17690 * c-decl.c (diagnose_mismatched_decls): Also discard a
17691 built-in if we encounter an old-style definition with the
17692 same name.
17693
17694 2004-01-23 Jakub Jelinek <jakub@redhat.com>
17695
17696 * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
17697 set to default{32,64}.
17698
17699 2004-01-21 Jakub Jelinek <jakub@redhat.com>
17700
17701 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
17702 [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
17703
17704 2004-01-23 Eric Botcazou <ebotcazou@act-europe.fr>
17705 Olivier Hainque <hainque@act-europe.fr>
17706
17707 * fold-const.c (fold_binary_op_with_conditional_arg): Only
17708 build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
17709
17710 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
17711
17712 * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
17713 size for minipool references.
17714
17715 2004-01-23 Roger Sayle <roger@eyesopen.com>
17716
17717 * real.c (real_floor, real_ceil): Tweak to allow input and output
17718 arguments to overlap.
17719 (real_round): New function to implement round(3m) semantics.
17720 * real.h (real_round): Prototype here.
17721 * builtins.c (fold_builtin_round): New function to constant fold
17722 round, roundf and roundl.
17723 (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
17724
17725 2004-01-23 Alexandre Oliva <aoliva@redhat.com>
17726
17727 PR optimization/13819
17728 * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
17729 introduced by 2004-01-20's Jan Hubicka's copy_insn change.
17730 (sh_handle_sp_switch_attribute): Remove warning.
17731
17732 2004-01-23 Jan Hubicka <jh@suse.cz>
17733
17734 * i386.c (ix86_emit_restore_regs_using_mov): Deal with large offsets.
17735
17736 2004-01-23 J"orn Rennecke <joern.rennecke@superh.com>
17737
17738 * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
17739 may or may not return non-NIL.
17740 * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
17741 check CANNOT_CHANGE_MODE_CLASS
17742
17743 2004-01-23 Jan Hubicka <jh@suse.cz>
17744
17745 * basic-block.h (PROP_POSTRELOAD): New macro.
17746 (CLEANUP_LOG_LINKS): New.
17747 * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
17748 * toplev.c (rest_of_handle_life): Preserve LOG_LINKS trought cleanup_cfg.
17749
17750 * cselib.c (value_pool): New.
17751 (new_cselib_val): Use pool.
17752 (cselib_init): Initialize value_pool
17753 (cselib_finish): Free pool.
17754
17755 2004-01-23 Eric Botcazou <ebotcazou@libertysurf.fr>
17756
17757 * config/sparc/sparc.c (scan_record_type): New function.
17758 (function_arg_slotno): Use it to determine which kinds of
17759 registers the record can be passed in.
17760
17761 2004-01-22 James A. Mmorrison <ja2morri@uwaterloo.ca>
17762
17763 * config/pa/fptr.c: Fix old-style definition.
17764
17765 2004-01-22 Paolo Bonzini <bonzini@gnu.org>
17766
17767 PR optimization/13724
17768 * cse.c (fold_rtx) <SUBREG>: Fold a SUBREG to zero if it
17769 represents the zero bits produced by a ZERO_EXTEND operation.
17770
17771 2004-01-22 Roger Sayle <roger@eyesopen.com>
17772
17773 PR optimization/13821
17774 * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
17775 correctly calculate the lowpart offset of the contracted subreg.
17776
17777 2004-01-22 Ian Lance Taylor <ian@wasabisystems.com>
17778
17779 * doc/invoke.texi (Optimize Options): Note that --param arguments
17780 are subject to change without notice.
17781
17782 2004-01-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17783
17784 * config.gcc (mips-sgi-irix6*o32): Removed.
17785 * config/mips/iris6-o32-as.h: Likewise.
17786 * config/mips/iris6-o32-gas.h: Likewise.
17787 * config/mips/iris6-o32.h: Likewise.
17788
17789 2004-01-22 Jan Hubicka <jh@suse.cz>
17790
17791 * cfgcleanup.c (first_pass): New static variable.
17792 (try_forward_edges): Add work limiting check for threading.
17793 (try_crossjump_bb): Add work limiting check for crossjumping.
17794 (try_optimize_cfg): Maintain first pass variable.
17795
17796 2004-01-22 Bob Wilson <bob.wilson@acm.org>
17797
17798 * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
17799 handles complex and vector modes.
17800
17801 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
17802
17803 * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
17804 (REG_OK_FOR_BASE_P_STRICT): Likewise.
17805 (STRICT): Likewise.
17806
17807 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
17808
17809 * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
17810 (genrtl_for_stmt): Remove emit_nop calls.
17811
17812 2004-01-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17813
17814 PR target/13713
17815 PR target/13324
17816 * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
17817 movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
17818 clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
17819
17820 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
17821
17822 * config/arm/arm.c: Include "debug.h".
17823 (thumb_pushpop): Take two new arguments. Add some commentary.
17824 Output frame information when pushing.
17825 (thumb_exit, thumb_unexpanded_epilogue): Update calls to
17826 thumb_pushpop.
17827 (thumb_output_function_prologue): Likewise. Accumulate a CFA
17828 offset, and pass it to thumb_pushpop. Output CFI information.
17829 (thumb_expand_prologue): Add some frame-related markers and notes.
17830
17831 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
17832
17833 * config/s390/s390.c (s390_frame_info): Allow large frame sizes
17834 for TARGET_64BIT.
17835 (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
17836 * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
17837
17838 2004-01-22 Roger Sayle <roger@eyesopen.com>
17839 Paolo Bonzini <bonzini@gnu.org>
17840
17841 * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
17842 (subreg_lsb): Change to call new subreg_lsb_1 helper function.
17843 * rtl.h (subreg_lsb_1): Prototype here.
17844 * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
17845 sign extensions.
17846
17847 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
17848
17849 * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
17850 macro need not be defined if jump-tables should contain
17851 relative addresses only when -fPIC or -fPIC is in effect.
17852
17853 2004-01-22 Jan Hubicka <jh@suse.cz>
17854
17855 * alias.c (reg_base_value): Turn into varray.
17856 (reg_base_value_size): Kill.
17857 (old_reg_base_value): New deletable varray.
17858 (alias_invariant_size): New variable.
17859 (REG_BASE_VALUE): Update to use varray.
17860 (find_base_value): Likewise.
17861 (record_set): Likewise.
17862 (record_base_value): Likewise.
17863 (memrefs_conflict_p): Likewise.
17864 (record_set): Likewise
17865 (record_base_value): Likewise.
17866 (memrefs_conflict_p): Use alias_invariant_size.
17867 (init_alias_analysis): Use varray; set alias_invariant_size;
17868 rescale other arrays to be sized by maxreg.
17869 (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
17870
17871 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
17872
17873 * config/sparc/sparc.c (function_arg_slotno): Use
17874 FLOAT_TYPE_P to detect FP fields in structures.
17875 (function_arg_record_value_1): Likewise.
17876 (function_arg_record_value_2): Likewise.
17877
17878 2004-01-22 Jan Hubicka <jh@suse.cz>
17879
17880 * function.c (allocate_struct_function): Do not initialize expr, emit
17881 and varasm.
17882 (prepare_function_start): Do it here.
17883 * c-parse.in (maybe_type_qual): Do not produce line number notes.
17884
17885 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
17886
17887 PR target/13559
17888 * config/sparc/sparc.c (function_arg_record_value_3): Revert
17889 to 'word_mode' once the first slot has been filled.
17890
17891 2004-01-22 Olivier Hainque <hainque@act-europe.fr>
17892
17893 * config/sparc/sparc.c (function_arg_record_value_1): Fix
17894 computation of the number of integer registers required.
17895
17896 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
17897
17898 * config/i386/i386.md: Simplify certain comparisons of
17899 const_int.
17900
17901 2004-01-21 Andrew Pinski <apinski@apple.com>
17902
17903 PR target/13785
17904 * config/rs6000/rs6000.md (call_value): Force operand
17905 1 not operand 0 into a register.
17906
17907 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
17908
17909 * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
17910 unwind-dw2-fde.h: Update copyright.
17911
17912 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17913
17914 * pa-protos.h: Update copyright.
17915 * pa.h: Likewise.
17916 * pa.md: Likewise.
17917
17918 2004-01-21 Caroline Tice <ctice@apple.com>
17919
17920 PR target/12308
17921 * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
17922 flags register.
17923 (fix_truncdfdi2): Likewise.
17924 (fix_truncsfdi2): Likewise.
17925 (*fix_truncdi_1): Likewise.
17926 (fix_truncxfsi2): Likewise.
17927 (fix_truncdfsi2): Likewise.
17928 (fix_truncsfsi2): Likewise.
17929 (*fix_truncsi_1): Likewise.
17930 (fix_truncxfhi2): Likewise.
17931 (fix_truncdfhi2): Likewise.
17932 (fix_truncsfhi2): Likewise.
17933 (*fix_trunchi_1): Likewise.
17934
17935 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
17936
17937 * alias.c, basic-block.h, c-common.c, c-common.h,
17938 c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
17939 calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
17940 combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
17941 cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
17942 defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
17943 expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
17944 genautomata.c, genconditions.c, genemit.c, genflags.c,
17945 gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
17946 ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
17947 langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
17948 line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
17949 ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
17950 rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
17951 target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
17952 unwind.h, varray.c, varray.h: Update copyright.
17953
17954 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
17955
17956 * config/h8300/coff.h: Update copyright.
17957 * config/h8300/elf.h: Likewise.
17958 * config/h8300/h8300-protos.h: Likewise.
17959 * config/h8300/h8300.c: Likewise.
17960 * config/h8300/h8300.h: Likewise.
17961 * config/h8300/h8300.md: Likewise.
17962
17963 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17964
17965 * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
17966 ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
17967 ultrix_unistd): New hacks.
17968 * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
17969 ULTRIX_CONST2_CHECK): Add checks.
17970 * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
17971 * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
17972 * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
17973 * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
17974 * fixinc/tests/base/locale.h: New file.
17975 * fixinc/fixincl.x: Rebuilt.
17976
17977 2004-01-21 Andreas Jaeger <aj@suse.de>
17978 Michael Matz <matz@suse.de>
17979
17980 * doc/extend.texi (Extended Asm): Clarify memory clobber.
17981
17982 2004-01-21 Jakub Jelinek <jakub@redhat.com>
17983
17984 * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
17985 _Jv_RegisterClasses through a function pointer.
17986
17987 2004-01-21 Falk Hueffner <falk@debian.org>
17988
17989 PR target/12898
17990 * config/alpha/alpha.c (alpha_emit_set_const_1): If
17991 no_new_pseudos, use gen_rtx_SET directly for SImode constants
17992 which need multiple instructions to emit.
17993
17994 2004-01-21 Inaoka Kazuhiro <inaoka.kazuhiro@renesas.com>
17995
17996 * config/m32r/m32r.h (CPP_SPEC): Define.
17997
17998 2004-01-21 Zack Weinberg <zack@codesourcery.com>
17999
18000 * c-decl.c (merge_decls): Kill different_binding_level and
18001 different_tu arguments; simplify throughout.
18002 (duplicate_decls): Likewise.
18003 (pushdecl, merge_translation_unit_decls): Update calls to
18004 duplicate_decls.
18005
18006 2004-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18007
18008 * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
18009 $(SYSTEM_H).
18010 (print-rtl1.o): Depend on $(SYSTEM_H).
18011
18012 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
18013
18014 PR bootstrap/12730
18015 * configure.ac: Delete definition and subsitution of docdir.
18016 Add info, man, srcman and srcinfo to target hooks. Create doc/
18017 directory.
18018 * configure: Regenerate.
18019 * Makefile.in: Don't substitute docdir and delete all references
18020 throughout.
18021 (MAKEINFOFLAGS): Define.
18022 (stmp-docobjdir): Delete.
18023 (INFOFILES, MANFILES): Define.
18024 (info): Call lang.info, srcinfo and lang.srcinfo.
18025 (generated-manpages): Call lang.man, srcman and lang.srcman.
18026 (srcinfo, srcman): New rules to copy back files to source directory.
18027 (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
18028 (install-man): Revamp rule.
18029 (clean): Update dvi directory.
18030 (distclean): Delete TAGS from front end directorys.
18031 (maintainer-clean): Delete all document files in source directory.
18032
18033 objc/Make-lang.in (objc.man, objc.info): Dummy entries.
18034 (objc.srcman, objc.srcinfo): Likewise.
18035
18036 2004-01-20 Bruce Korb <bkorb@gnu.org>
18037
18038 * fixinc/inclhack.def(math_exception): bypass only for glibc.
18039 (matherr_decl): rename & relocate as exception_structure.
18040 This fix must precede the math_exception fix.
18041
18042 2004-01-20 Roger Sayle <roger@eyesopen.com>
18043
18044 * fold-const.c (fold_convert): Rename to fold_convert_const.
18045 (fold_convert_const): Change arguments to take a tree_code,
18046 a type and the operand/expression to be converted. Return
18047 NULL_TREE if no simplification is possible. Add support for
18048 FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
18049 (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
18050 Adjust call to fold_convert to match new fold_convert_const.
18051 Avoid modifying the tree passed to fold in-place.
18052
18053 2004-01-21 Alan Modra <amodra@bigpond.net.au>
18054
18055 * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
18056 * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
18057 * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
18058
18059 2004-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18060
18061 * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
18062 * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
18063 Likewise. Handle frames larger than 0x7fffffff on 64-bit ports.
18064 (emit_move_sequence): Check scratch_reg first in various if statements.
18065 Extend source simplification to handle all 64-bit CONST_INTs.
18066 (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
18067 frame size.
18068 (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
18069 frame offset calculations.
18070 * pa.h (NEW_HP_ASSEMBLER): Add comment.
18071 (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
18072 LEGITIMATE_64BIT_CONST_INT_P): Define.
18073 (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P. Treat
18074 any CONST_INT as legitimate during and after reload.
18075 (VAL_32_BITS_P, INT_32_BITS): Define.
18076 (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
18077
18078 2004-01-20 Jan Hubicka <jh@suse.cz>
18079
18080 * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
18081 emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
18082 containing hard regs are shared.
18083 (gen_hard_reg_clobber): New function.
18084 (hard_reg_clobbers): New array.
18085 * genemit.c (gen_exp): Use gen_hard_reg_clobber.
18086 (copy_rtx): Do not copy clobbers containing hard regs.
18087 * rtl.h (gen_hard_reg_clobber): Declare.
18088
18089 2004-01-20 Jan Hubicka <jh@suse.cz>
18090
18091 * varray.c: Include hashtab.h
18092 (varray_descriptor): New structure.
18093 (hash_descriptor, eq_descriptor, varray_descriptor,
18094 print_statistics): New static functions
18095 (varray_init, varray_grow): Update statistics
18096 (dump_varray_statistics): New function.
18097 * varray.h (dump_varray_statistics): Declare.
18098 * toplev.c (finalize): Call it.
18099 * Makefile.in (varray.o): Add dependency.
18100
18101 2004-01-20 Jan Hubicka <jh@suse.cz>
18102
18103 * cselib.c: Include alloc-pool.h
18104 (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
18105 (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
18106 (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
18107 unchain_one_elt_loc_list_pool, unchain_one_value,
18108 new_cselib_val): Simplify using allocpool.
18109 (cselib_init): Initialize allocpools.
18110 (cselib_finish): Finish allocpools.
18111 * Makefile.in (cselib.o): Depend on alloc-pool.h
18112
18113 2004-01-20 Richard Sandiford <rsandifo@redhat.com>
18114
18115 * config/mips/mips.c (mips_load_call_address): Make the call insn
18116 use $gp if it could be calling a lazy binding stub.
18117
18118 2004-01-20 Kazu Hirata <kazu@cs.umass.edu>
18119
18120 * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
18121 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
18122 (TARGET_STRUCT_VALUE_RTX): Likewise.
18123 * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
18124 (PROMOTE_FUNCTION_RETURN): Remove.
18125 (STRUCT_VALUE): Remove.
18126
18127 2004-01-20 Denis Chertykov <denisc@overta.ru>
18128
18129 PR bootstrap/13735
18130 * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
18131 register as pointer after reload.
18132
18133 2004-01-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18134
18135 PR optimization/12440
18136 * loop.c: Include ggc.h.
18137 (loop_optimize): Run garbage collector between optimization of loops.
18138 * Makefile.in (loop.o): Add GGC_H dependency.
18139
18140 2004-01-20 Hartmut Penner <hpenner@de.ibm.com>
18141
18142 * gcc/config/rs6000/rs6000.c (function_arg) Handle
18143 vector register special in function without prototype.
18144 (function_arg_advance): Vector parameters get always
18145 GPRs allocated for the linux64 target.
18146
18147 2004-01-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
18148
18149 * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
18150 not TARGET_M32RX_MASK.
18151
18152 2004-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
18153
18154 PR target/13557
18155 * config/sparc/sparc.c (function_arg): Reorder the cases.
18156
18157 2004-01-19 Per Bothner <per@bothner.com>
18158
18159 Move cpp_reader's line_maps field to a shared global.
18160 * cpphash.h (cpp_reader): Rename line_maps field to line_table
18161 and change the type to a pointer rather than a struct.
18162 * cppinit.c (cpp_push_main_field): Adjust accordingly.
18163 * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
18164 Likewise.
18165 * cppfiles.c (validate_pch): Likewise.
18166 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
18167 Likewise.
18168 * cpperror.c (print_location): Likewise.
18169 * cpplib.h (cpp_create_reader): New line_maps pointer parameter.
18170 * cppinit.c (cpp_create_reader): Handle new parameter.
18171 (cpp_destroy): Don't free line_maps - that's no longer our job.
18172 * input.h (line_table): New variable.
18173 * toplev.c (line_table): Declare variable.
18174 (general_init): Initialize line_table.
18175 * c-opts.c (c_common_init_options): Pass line_table to
18176 cpp_create_reader.
18177 * fix-header.c (read_scan_file): New local variable line_table.
18178 Initialize, and pass it to cpp_create_reader.
18179 * Makefile.in (LIBS, LIBDEPS): Add libcpp.a.
18180 (C_AND_OBJC_OBJS, fix-header): Remove redundant libcpp.a.
18181
18182 2004-01-19 Per Bothner <per@bothner.com>
18183
18184 Implement a cache for linemap_lookup.
18185 * line-map.h (struct_line_maps): Add cache field.
18186 * line-map.c (linemap_init): Zero cache field.
18187 (linemap_add): Set cache field to offset of newly allocated map.
18188 (linemap_lookup): Use and set cache field.
18189
18190 2004-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
18191
18192 PR optimization/13567
18193 * cse.c (cse_basic_block): Call cse_insn with a non-null
18194 libcall_insn for the last SET insn of a no-confilict block.
18195
18196 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
18197
18198 * Makefile.in (target_noncanonical, program_transform_name): Use
18199 immediate define instead of deferred.
18200 (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
18201 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
18202 GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
18203 deferred backquote.
18204
18205 2004-01-20 Joseph S. Myers <jsm@polyomino.org.uk>
18206
18207 * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
18208 true unconditionally.
18209 * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
18210 Remove.
18211 (build_unary_op, build_modify_expr): Don't handle extended
18212 lvalues.
18213 (build_component_ref, build_conditional_expr): Call non_lvalue
18214 instead of pedantic_non_lvalue.
18215 (build_c_cast): Don't condition use of non_lvalue on pedantic.
18216 * fold-const.c (fold): Don't check pedantic directly for
18217 COMPOUND_EXPR. Ensure that results for COMPOUND_EXPR are
18218 passed to pedantic_non_lvalue.
18219 * doc/extend.texi: Remove documentation of extended lvalues.
18220
18221 2004-01-19 Roger Sayle <roger@eyesopen.com>
18222
18223 PR optimization/5263
18224 * simplify-rtx.c (associative_constant_p): Delete.
18225 (simplify_associative_operation): Rewrite to linearize terms, and
18226 attempt to simplify new term against both left and right subterms.
18227 (simplify_binary_operation): Call swap_commutative_operands_p on
18228 op0 and op1, not trueop0 and trueop1. Move the initialization of
18229 trueop0 and trueop1 down to where first needed.
18230 (simplify_relational_operation): Likewise.
18231 * rtlanal.c (commutative_operand_precedence): Also order constant
18232 operands using avoid_constant_pool_reference.
18233
18234 2004-01-19 Richard Henderson <rth@redhat.com>
18235
18236 * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
18237 don't check memory mode.
18238 (unaligned_memory_operand): Likewise.
18239 (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
18240 abort for op0 not MEM.
18241
18242 * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
18243 is not a reg, copy to a scratch first.
18244 (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
18245 unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
18246 unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
18247 (reload_inqi, reload_inhi): Fix mode of op0.
18248 (reload_inqi_help, reload_inhi_help, reload_outqi_help,
18249 reload_outhi_help): Likewise. Use define_insn_and_split.
18250
18251 * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
18252 as well as $29 dead.
18253
18254 2004-01-19 Eric Botcazou <ebotcazou@libertysurf.fr>
18255
18256 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New. Emit
18257 "tls_object" for thread-local objects.
18258 * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
18259 "#tls" for thread-local sections.
18260 * configure.ac (thread-local checks): Specify --fatal-warnings in
18261 every binutils-specific checks. For sparc*-*-*, test whether the
18262 OS is Solaris and the tools are native and act accordingly.
18263 * configure: Rebuild.
18264
18265 2004-01-19 Jeff Law <law@redhat.com>
18266
18267 * contrib.texi: Update Paolo Carlini's entry. New entries for
18268 Jerry Quinn and Petur Runolfsson.
18269
18270 2004-01-19 Roger Sayle <roger@eyesopen.com>
18271
18272 * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
18273 size, don't use the larger zero-extending loads.
18274
18275 2004-01-19 Richard Henderson <rth@redhat.com>
18276
18277 * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
18278 * alpha.md (UNSPEC_NT_LDA): Remove.
18279 (UNSPEC_CVTLQ, cvtlq): New.
18280 (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
18281 (extendsidi2_fix): Remove.
18282 (extendsidi2 splitter): Use cvtlq.
18283 (extendsidi2 fp peepholes): Remove.
18284 (cvtql): Use SFmode instead of SImode.
18285 (fix_trunc?fsi): Update to match.
18286 (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
18287 (movsi): Rename from movsi_nofix, remove f alternatives.
18288 (movsi_nt_vms): Similarly.
18289 (movsi_fix, movsi_nt_vms_fix): Remove.
18290 (nt_lda): Remove.
18291 * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
18292
18293 2004-01-19 Jan Hubicka <jh@suse.cz>
18294
18295 * cgraph.c (cgraph_remove_node): Fix removal from linked list.
18296 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
18297 list.
18298 (cgraph_remove_unreachable_nodes): New function
18299 (cgraph_decide_inlining_of_small_function): Fix pasto.
18300 (cgraph_decide_inlining_incrementally): Fix pasto.
18301 (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
18302
18303 2004-01-19 Steven Bosscher <stevenb@suse.de>
18304
18305 * gengtype.c (header_file): Make it static.
18306 (write_types_process_field, write_enum_defn): Minor whitespace fixes.
18307 * gengtype.h (header_file): No longer extern.
18308
18309 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
18310
18311 * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
18312 * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
18313 * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
18314
18315 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
18316
18317 * stmt.c (HAVE_casesi): Define it not already defined.
18318 (HAVE_tablejump): Likewise.
18319 (expand_end_case_type): Resort to the binary tree method if
18320 neither casesi or tablejump is available.
18321
18322 2004-01-18 Daniel Jacobowitz <drow@mvista.com>
18323
18324 * final.c (final_scan_insn): Make non-static again.
18325 * output.h (final_scan_insn): Re-add prototype.
18326 * config/arc/arc.c (arc_output_function_epilogue): Add NULL
18327 to final_scan_insn call.
18328 * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
18329 * config/mips/mips.c (mips_output_conditional_branch): Likewise.
18330 * config/pa/pa.c (output_lbranch, output_call): Likewise.
18331 * config/sh/sh.c (print_slot): Likewise.
18332 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
18333 (output_sibcall, sparc_flat_function_epilogue): Likewise.
18334
18335 2004-01-18 Jan Hubicka <jh@suse.cz>
18336
18337 * basic-block.h (try_redirect_by_replacing_jump): Declare.
18338 * cfgcleanup.c (try_optimize_cfg): Use it.
18339 * cfgrtl.c (try_redirect_by_replacing_jump): Export.
18340 (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
18341 Kill hack.
18342 (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
18343
18344 Revert:
18345 2004-01-16 Geoffrey Keating <geoffk@apple.com>
18346
18347 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
18348 even after reload, just don't remove the actual jump tables.
18349
18350 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
18351
18352 * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
18353
18354 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
18355
18356 * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
18357 the size of a pointer in bytes.
18358
18359 2004-01-18 Roger Sayle <roger@eyesopen.com>
18360
18361 * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
18362 live "next" variable, which could lead to an infinite loop.
18363
18364 2004-01-18 Andrew Pinski <pinskia@physics.uc.edu>
18365
18366 * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
18367 block.
18368
18369 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
18370 Check for NULL in the chain and remove repeated code.
18371
18372 2004-01-18 Jan Hubicka <jh@suse.cz>
18373
18374 * coverage.c (checksum_string): Rename to ...
18375 (coverage_checksum_string): ... this one, Use crc32_string; recognize
18376 names containing random number and zero the number out in order to get
18377 match.
18378
18379 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
18380
18381 * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
18382
18383 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
18384
18385 * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
18386 doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
18387 doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
18388 doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
18389 doc/trouble.texi: Remove trailing whitespace.
18390
18391 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
18392
18393 PR target/7618
18394 * config/mips/mips.c: Include cfglayout.h.
18395 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
18396 (mips_unspec_offset_high): Add temporary register argument.
18397 (mips_load_call_address): New function, split out from...
18398 (mips_expand_call): ...here.
18399 (mips_output_cplocal): New function.
18400 (mips_output_function_prologue, mips_output_function_epilogue): Use it.
18401 (mips_emit_loadgp): New function, split out from...
18402 (mips_expand_prologue): ...here.
18403 (mips_output_mi_thunk): New function.
18404
18405 2004-01-17 Bernardo Innocenti <bernie@develer.com>
18406
18407 * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
18408 mcpu32): Remove redundant checks for implied target predefines.
18409
18410 2004-1-17 Andrew Pinski <pinskia@physics.uc.edu>
18411
18412 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
18413 Return type is unsigned int not int.
18414 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
18415 Likewise.
18416
18417 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
18418
18419 * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
18420 doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
18421 "GNU/Linux" and "Microsoft Windows" terminology.
18422
18423 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
18424
18425 * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
18426 doc/cppopts.texi, doc/extend.texi, doc/install.texi,
18427 doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
18428 doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
18429 @smallexample instead of @example.
18430
18431 2004-01-17 Ziemowit Laski <zlaski@apple.com>
18432
18433 * objc/objc-act.c (build_objc_method_call): Use target
18434 hooks instead of macros to determine if ..._stret
18435 dispatchers should be used (NeXT runtime only).
18436
18437 2004-01-17 Roger Sayle <roger@eyesopen.com>
18438
18439 * builtins.c (expand_builtin_expect_jump): Fix mistake in my
18440 last patch. Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
18441
18442 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
18443
18444 * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
18445 (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
18446 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
18447 macros.
18448 * reload1.c (emit_reload_insns): Use them.
18449 * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
18450 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
18451 for NULL PATTERN.
18452
18453 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
18454
18455 * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
18456 (final_scan_insn): Update to take an additional SEEN argument. Emit
18457 a line note after the prologue. Make static.
18458 (line_note_exists): Remove.
18459 (final): Don't initialize line_note_exists. Update call to
18460 final_scan_insn.
18461 * output.h (final_scan_insn): Remove prologue.
18462 * function.c (set_insn_locators): Update comment.
18463 (thread_prologue_and_epilogue_insns): Add a comment.
18464
18465 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
18466
18467 PR target/10781
18468 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
18469 Prototype.
18470 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
18471 New function.
18472 * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
18473 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
18474 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
18475
18476 2004-01-17 Jan Hubicka <jh@suse.cz>
18477
18478 * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
18479 commit.
18480
18481 * toplev.c (HAVE_conditional_execution): Provide default.
18482 (rest_of_handle_reorder_blocks): For conditional_execution target
18483 update liveness once after all transformations
18484 (rest_of_compilation): Do crossjumping before ce3.
18485
18486 2004-01-17 Geoffrey Keating <geoffk@apple.com>
18487
18488 * alias.c (new_alias_set): Mark last_alias_set for PCH.
18489 (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
18490 for PCH.
18491 (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
18492 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
18493 (get_TOC_alias_set): Mark 'set' for PCH.
18494
18495 2004-01-16 Geoffrey Keating <geoffk@apple.com>
18496
18497 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
18498 even after reload, just don't remove the actual jump tables.
18499
18500 2004-01-17 J. Brobecker <brobecker@gnat.com>
18501
18502 * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
18503 Remove checks for is_ada() and TREE_UNSIGNED.
18504 (subrange_type_die): Emit a byte_size attribute if the subrange
18505 type size is different from the base type size.
18506 (modified_type_die): Replace call to is_ada_subrange_type() by
18507 call to is_subrange_type().
18508
18509 2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
18510
18511 * config/sh/sh.c: Include ggc.h.
18512
18513 2004-01-16 Geoffrey Keating <geoffk@apple.com>
18514
18515 * Makefile.in (MD5_H): New.
18516 (fold-const.o): Depend on md5.h.
18517 (dwarf2out.o): Likewise.
18518 (cppfiles.o): Likewise.
18519 * cppfiles.c: Include md5.h.
18520 (should_stack_file): Check against list read from PCH file.
18521 (struct pchf_data): New.
18522 (pchf): New variable.
18523 (struct pchf_adder_info): New.
18524 (pchf_adder): New.
18525 (pchf_save_compare): New.
18526 (_cpp_save_file_entries): New.
18527 (_cpp_read_file_entries): New.
18528 (struct pchf_compare_data): New.
18529 (pchf_compare): New.
18530 (check_file_against_entries): New.
18531 * cpphash.h (_cpp_save_file_entries): Prototype.
18532 (_cpp_read_file_entries): Prototype.
18533 * cpppch.c (cpp_write_pch_state): Write the list of headers.
18534 (cpp_read_state): Read the list of headers.
18535
18536 2004-01-17 Jan Hubicka <jh@suse.cz>
18537
18538 * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
18539 builtin_expect specially.
18540 * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
18541 (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
18542 * invoke.texi (max-inline-insns-single): Set to 100.
18543 (large-function-insns): Set to 3000.
18544
18545 2004-01-16 Eric Christopher <echristo@redhat.com>
18546 Chandrakala Chavva <cchavva@redhat.com>
18547
18548 * cppcharset.c (one_iso88591_to_utf8): New function.
18549 (convert_iso88591_utf8): Ditto. Use.
18550 (conversion_tab): Use.
18551 (_cpp_input_to_utf8): New function.
18552 (_cpp_init_iconv_buffer): Ditto.
18553 (_cpp_close_iconv_buffer): Ditto.
18554 * cpphash.h: Prototype new functions.
18555 (cpp_buffer): Add input_cset_desc.
18556 * cppinit.c: Add input_charset default.
18557 * cpplib.c (cpp_push_buffer): Support init and
18558 close of iconv.
18559 * cpplib.h (cpp_options): Add input_charset.
18560
18561 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
18562
18563 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
18564 * config/alpha/unicosmk.h: Remove a commented-out definition
18565 of ASM_OUTPUT_SECTION_NAME.
18566 * config/stormy16/stormy16.h: Likewise.
18567
18568 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18569
18570 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
18571 (alpha___extern_prefix_sys_stat): ... this.
18572 Apply to <sys/mount.h>, too.
18573 Tweak to match more variations.
18574 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
18575
18576 * fixinc/inclhack.def (alpha___extern_prefix,
18577 alpha___extern_prefix_standards): New hacks to obey
18578 __PRAGMA_EXTERN_PREFIX.
18579 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
18580 test.
18581 * fixinc/tests/base/standards.h: Likewise.
18582
18583 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
18584 variations.
18585 New testcase.
18586 * fixinc/tests/base/pthread.h: Handle it.
18587
18588 * fixincl/inclhack.def (bad_lval): Sort file list.
18589 Add many missing files up to Tru64 UNIX V5.1B.
18590 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
18591 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
18592 order.
18593
18594 * fixinc/fixincl.x: Regenerate.
18595
18596 2004-01-16 Mark Mitchell <mark@codesourcery.com>
18597
18598 * version.c (version_string): Change to 3.5.0.
18599 * doc/include/gcc-common.texi (version-GCC): Likewise.
18600
18601 2004-01-16 Jan Hubicka <jh@suse.cz>
18602
18603 * i386.md (load_tp_di): Fix pasto.
18604
18605 PR opt/13608
18606 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
18607
18608 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
18609 pp_c_character_constant, pp_c_floating_constant,
18610 pp_c_additive_expression, pp_c_shift_expression,
18611 pp_c_equality_expression, pp_c_and_expression,
18612 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
18613 pp_c_logical_and_expression): Remove inline modifier.
18614 * dwarf2out.c (get_AT): Likewise.
18615 * et-forest.c (et_splay): Likewise.
18616 * ra.h (ra_alloc, ra_calloc): Likewise
18617
18618 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
18619
18620 * config/frv/frv-protos.h: Fix comment formatting.
18621 * config/frv/frv.c: Likewise.
18622 * config/frv/frv.h: Likewise.
18623 * config/frv/frv.md: Likewise.
18624 * config/frv/frvbegin.c: Likewise.
18625 * config/frv/frvend.c: Likewise.
18626
18627 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
18628
18629 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
18630 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
18631 LINKER_DOES_NOT_WORK_WITH_DWARF2.
18632 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
18633
18634 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
18635
18636 PR 11864
18637 * postreload.c (reload_cse_simplify_operands): Don't remove
18638 implicit extension from LOAD_EXTEND_OP.
18639
18640 2004-01-16 Jan Hubicka <jh@suse.cz>
18641
18642 PR opt/11350
18643 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
18644 after reload.
18645 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
18646 rtl_try_redirect_by_replacing_branch): Likewise.
18647
18648 2004-01-15 Geoffrey Keating <geoffk@apple.com>
18649
18650 PR pch/13689
18651 * alias.c (struct alias_set_entry): Mark for GC.
18652 (alias_sets): Make static, mark for GC.
18653 (record_alias_subset): Use GC to allocate alias structures.
18654 * varray.c (element): Make generic varrays GCed.
18655
18656 PR pch/13361
18657 * c-typeck.c (constructor_asmspec): Delete.
18658 (struct initializer_stack): Delete field 'asmspec'.
18659 (start_init): Delete saving of asmspec.
18660 (finish_init): Don't update constructor_asmspec.
18661 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
18662 * stmt.c (expand_asm): Duplicate strings from tree.
18663 (expand_asm_operands): Likewise.
18664 * tree.c (tree_size): Update computation of size of STRING_CST.
18665 (make_node): Don't make STRING_CST nodes.
18666 (build_string): Allocate string with tree node.
18667 * tree.def (STRING_CST): Update comment.
18668 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
18669 (tree_string): Place contents of string in tree node.
18670 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
18671 from tree.
18672
18673 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
18674 altivec operands.
18675
18676 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18677
18678 * c-common.h: Fix comment formatting.
18679 * c-cppbuiltin.c: Likewise.
18680 * c-pragma.c: Likewise.
18681 * calls.c: Likewise.
18682 * collect2.c: Likewise.
18683 * cppcharset.c: Likewise.
18684 * cpptrad.c: Likewise.
18685 * dbxout.c: Likewise.
18686 * defaults.h: Likewise.
18687 * dwarf2out.c: Likewise.
18688 * fold-const.c: Likewise.
18689 * genautomata.c: Likewise.
18690 * genconditions.c: Likewise.
18691 * genflags.c: Likewise.
18692 * gengtype.c: Likewise.
18693 * integrate.c: Likewise.
18694 * loop.c: Likewise.
18695 * predict.c: Likewise.
18696 * sdbout.c: Likewise.
18697
18698 2004-01-15 Zack Weinberg <zack@codesourcery.com>
18699
18700 * config/ia64/ia64.md (*movti_internal): C output template
18701 extracted to ia64.c.
18702 (*movti_internal_reg): Delete.
18703 (reload_inti, reload_outti): Use the correct mode on operand 2
18704 in the first place, don't fix it up in the output template.
18705 (movtf, reload_ointf, reload_outtf): New expanders.
18706 (*movtf_internal): New define_insn_and_split.
18707 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
18708 make static; do not hand TFmode CONST_DOUBLEs to split_double.
18709 (ia64_split_tmode_move): New function, body mostly pulled
18710 from ia64.md:*movti_internal.
18711 (ia64_function_arg_words): New function, extracted common
18712 logic from ia64_function_arg et seq.
18713 (ia64_function_arg_offset): Likewise. Handle correctly the
18714 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
18715 (ia64_function_arg, ia64_function_arg_partial_nregs)
18716 (ia64_function_arg_advance): Use ia64_function_arg_words and
18717 ia64_function_arg_offset.
18718 (ia64_function_value): TCmode does not go in float regs.
18719 (ia64_secondary_reload_class): Also handle TFmode.
18720 * config/ia64/ia64-protos.h: Remove prototype for
18721 ia64_split_timode; add prototype for ia64_split_tmode_move.
18722
18723 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
18724
18725 * Makefile.in (MAINT): Make it an immediate assignment.
18726
18727 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18728
18729 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
18730
18731 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18732
18733 * config/h8300/coff.h: Replace Hitachi with Renesas.
18734 * config/h8300/elf.h: Likewise.
18735 * config/h8300/h8300-protos.h: Likewise.
18736 * config/h8300/h8300.c: Likewise.
18737 * config/h8300/h8300.h: Likewise.
18738 * config/h8300/h8300.md: Likewise.
18739 * config/h8300/lib1funcs.asm: Likewise.
18740
18741 2004-01-15 Andrew Pinski <apinski@apple.com>
18742
18743 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
18744 around it.
18745
18746 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18747
18748 * config/h8300/h8300.c (h8300_return_in_memory): New.
18749 (TARGET_STRUCT_VALUE_RTX): Likewise.
18750 (TARGET_RETURN_IN_MEMORY): Likewise.
18751 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
18752 (RETURN_IN_MEMORY): Likewise.
18753
18754 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
18755
18756 PR optimization/13375
18757 * gcse.c (handle_avail_expr): Just return if the source is not a
18758 single set.
18759
18760 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
18761 Daniel Jacobowitz <drow@mvista.com>
18762
18763 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
18764 (EQUIV): Define.
18765 (ARM_FUNC_ALIAS): New macro.
18766 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
18767 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
18768
18769 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18770
18771 PR optimization/12372
18772 * calls.c (expand_call): Add call_fusage data for stack arguments in
18773 constant calls.
18774
18775 2004-01-15 Alan Modra <amodra@bigpond.net.au>
18776
18777 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
18778 (rs6000_elf_declare_function_name): Formatting.
18779 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
18780
18781 2004-01-15 Jan Hubicka <jh@suse.cz>
18782
18783 PR bootstrap/13692
18784 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
18785 previous patch.
18786
18787 2004-01-15 Richard Henderson <rth@redhat.com>
18788
18789 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
18790 integer regs of the same call-savedness.
18791
18792 2004-01-15 Andreas Schwab <schwab@suse.de>
18793
18794 PR bootstrap/13562
18795 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
18796 status for NOTB/NOTW/NEGW methods.
18797
18798 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18799
18800 * doc/invoke.texi: Update dump file names. Fix a typo.
18801
18802 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18803
18804 * builtins.c (expand_builtin_va_end): Don't use
18805 EXPAND_BUILTIN_VA_END.
18806 * system.h (EXPAND_BUILTIN_VA_END): Poison.
18807 * config/d30v/d30v.h: Remove a commented-out definition of
18808 EXPAND_BUILTIN_VA_END.
18809 * config/stormy16/stormy16.h: Likewise.
18810
18811 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18812
18813 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
18814 * targhooks.c (default_struct_value_rtx): Don't use
18815 STRUCT_VALUE_INCOMING_REGNUM.
18816
18817 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
18818
18819 PR bootstrap/12744
18820 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
18821 GENINSRC and not parsedir. Define srcextra as a langhook.
18822 * configure: Regenerate.
18823 * Makefile.in: Suppress default .l.c rule. Don't substitute
18824 parsedir and delete all references throughout. Conditionally define
18825 rule for srcextra dependent on GENINSRC.
18826 (stmp-docobjdir): Delete.
18827 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
18828 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
18829 and gengtype-yacc.h back to source directory.
18830 (maintainer-clean): Delete all parse files in source directory.
18831 (distclean): Delete generated files.
18832
18833 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
18834 (objc-parse.c, objc-parse.y): Don't use parsedir.
18835 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
18836 directory if requested.
18837 (po-generated): Don't use parsedir.
18838 (objc.maintainer-clean): Delete above files from source directory.
18839
18840 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18841
18842 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
18843
18844 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18845
18846 * doc/tm.texi: Replace RETURN_IN_MEMORY with
18847 TARGET_RETURN_IN_MEMORY.
18848
18849 2004-01-15 Jan Hubicka <jh@suse.cz>
18850
18851 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
18852 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
18853 functions accepting SSE arguments
18854 (function_arg): Warn only when asked to warn.
18855 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
18856
18857 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
18858
18859 * c-parse.in (stmts_and_decls): Make label at end of compound
18860 statement a hard error.
18861
18862 2004-01-14 Jan Hubicka <jh@suse.cz>
18863
18864 * cgraph.c (create_edge): Use local.redefined_extern_inline.
18865 * cgraph.h (cgraph_local_info): Sort fields by size; add
18866 redefined_extern_inline
18867 (cgraph_global_info): Sort fields by size.
18868 (cgraph_node): Likewise.
18869 * cgraphunit.c (cgraph_finalize_function): Se
18870 local.redefined_extern_inline on redefinition.
18871 (cgraph_analyze_function): Use it; fix formating.
18872
18873 2004-01-14 Jan Hubicka <jh@suse.cz>
18874
18875 PR c++/10776
18876 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
18877 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
18878 bitmaps
18879 (cache_size): New variable
18880 (add_dependence): Update use; canonize early memory locations
18881 (sched_analyze_1): Likewise.
18882 (sched_analyze_2): Likewise.
18883 (init_dependency_caches): Initialize bitmaps.
18884 (free_dependency_caches): Free bitmaps
18885
18886 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18887
18888 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
18889 targetm.calls.strict_argument_naming().
18890 * target.h: Likewise.
18891
18892 2004-01-14 Richard Henderson <rth@redhat.com>
18893
18894 PR debug/13231
18895 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
18896 instructions.
18897
18898 2004-01-14 Richard Henderson <rth@redhat.com>
18899
18900 PR c++/12491
18901 * except.c (struct eh_region): Add u.fixup.resolved.
18902 (resolve_one_fixup_region): Split out from ...
18903 (resolve_fixup_regions): ... here.
18904
18905 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18906
18907 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
18908
18909 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18910
18911 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
18912 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
18913 (STRUCT_VALUE): Remove.
18914
18915 2004-01-14 Steven Bosscher <stevenb@suse.de>
18916
18917 * system.h: Poison PROMOTED_MODE
18918 * integrate.c (expand_inline_function): Don't mention the
18919 PROMOTED_MODE.
18920 * loop.c (update_giv_derive): Same.
18921 * tree.h (DECL_RTL): Same.
18922
18923 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
18924
18925 PR target/9365
18926 * sh.c (gen_block_redirect): Add special handling of RETURN.
18927 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
18928 far branch target (i.e. it's a return).
18929
18930 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18931
18932 * regrename.c (find_oldest_value_reg): Fix a warning.
18933
18934 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
18935
18936 PR bootstrap/12527
18937 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
18938 Move linux-gas.h and linux-elf.h before aout.h.
18939 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
18940 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
18941
18942 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18943
18944 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
18945 (CONST_INT, VOIDmode, ...).
18946
18947 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
18948
18949 * regrename.c (find_oldest_value_reg): If the replacement uses
18950 multiple hard registers, check that all of them are in CLASS.
18951
18952 2004-01-14 Jan Hubicka <jh@suse.cz>
18953
18954 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
18955 impossible.
18956
18957 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
18958
18959 * Makefile.in: Define MAINT from --enable-maintainer-mode.
18960
18961 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
18962
18963 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
18964 Calculate always vrsave_mask if TARGET_ALTIVEC.
18965 (rs6000_emit_prologue): Emit code for vrsave
18966 only if TARGET_ALTIVEC_VRSAVE.
18967 (rs6000_emit_epilogue): Likewise.
18968
18969 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
18970
18971 * config/sparc/sparc.md (tie_add32): Fix pasto.
18972 (tie_add64): Likewise.
18973
18974 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18975
18976 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
18977
18978 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18979
18980 * config/iq2000/iq2000-protos.h: Fix comment formatting.
18981 * config/iq2000/iq2000.c: Likewise.
18982 * config/iq2000/iq2000.md: Likewise.
18983
18984 2004-01-14 J. Brobecker <brobecker@gnat.com>
18985
18986 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
18987 (subrange_type_die): Add handle for nameless subrange types.
18988
18989 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18990
18991 * config/h8300/h8300-protos.h: Replace do_movsi with
18992 h8300_expand_movsi.
18993 * config/h8300/h8300.c (do_movsi): Change to
18994 h8300_expand_movsi.
18995 * config/h8300/h8300.md (movsi): Replace do_movsi with
18996 h8300_expand_movsi.
18997 (movsf): Likewise.
18998
18999 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
19000
19001 * config/h8300/h8300.c (dosize): Change to
19002 h8300_emit_stack_adjustment. Update callers.
19003
19004 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
19005
19006 * config/h8300/h8300.md (movstrictqi): Add an alternative with
19007 the source being post_inc. Tighten the predicate for the
19008 destination to register_operand.
19009 (movstricthi): Likewise.
19010
19011 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
19012
19013 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
19014 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
19015 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
19016
19017 2004-01-14 Jan Hubicka <jh@suse.cz>
19018
19019 Partial fix PR c++/12850
19020 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
19021 at zero nest level.
19022
19023 2004-01-13 Bernardo Innocenti <bernie@develer.com>
19024
19025 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
19026 pseudo-register.
19027
19028 2004-01-13 Devang Patel <dpatel@apple.com
19029
19030 PR debug/7078
19031 * dbxout.c (dbxout_symbol_name): Emit mangled names for
19032 NAMESPACE_DECL memebers.
19033
19034 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
19035
19036 PR c++/12709
19037 * c-common.c (finish_fname_decls): Use the chain only if the
19038 tree is an expr_stmt.
19039
19040 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
19041
19042 * rtl.def: Add comment about new option in automata_option.
19043
19044 * genautomata.c (PROGRESS_OPTION): New macro.
19045 (progress_flag): New global variable.
19046 (gen_automata_option): Process `progress'.
19047 (transform_insn_regexps, check_unit_distributions_to_automata,
19048 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
19049 expand_automata, write_automata): Print about the progress only if
19050 progress_flag. Remove fflush.
19051 (initiate_automaton_gen): Process command line flag `-progress'.
19052
19053 * doc/md.texi: Describe the new option.
19054
19055 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19056
19057 * cfg.c (dump_bb): Dump entry edges.
19058
19059 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
19060
19061 * arm.c (thumb_legitimate_address_p): Only allow constant pool
19062 references from SImode.
19063 * arm.md (thumb_movhi_insn): Don't allow minipool references.
19064
19065 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
19066
19067 * system.h (TEXT_SECTION): Poison.
19068 * varasm.c (text_section): Don't use TEXT_SECTION.
19069 * config/sh/sh.c (sh_file_start): Fix a comment typo.
19070 * doc/tm.texi (TEXT_SECTION): Remove.
19071
19072 2004-01-13 Ben Elliston <bje@wasabisystems.com>
19073
19074 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
19075
19076 2004-01-12 James E Wilson <wilson@specifixinc.com>
19077
19078 * unwind-libunwind.c: Delete.
19079
19080 2004-01-12 Zack Weinberg <zack@codesourcery.com>
19081
19082 PR 13656
19083 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
19084 oldtype is set, set *newtypep or *oldtypep too. Do not set
19085 them at the very end.
19086 (validate_proto_after_old_defn): Restructure for comprehensibility;
19087 make error messages clearer.
19088
19089 2004-01-12 Zack Weinberg <zack@codesourcery.com>
19090
19091 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
19092 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
19093 * varray.c: No need to prototype error.
19094 (varray_check_failed): Wrap long string onto two lines.
19095 (varray_underflow): New function.
19096
19097 2004-01-13 Steven Bosscher <stevenb@suse.de>
19098
19099 PR c++/13376
19100 * function.h (struct function): Kill `name' field.
19101 (current_function_name): Make it an extern function.
19102 * function.c (current_function_name): New function.
19103 * graph.c: Update all uses of current_function_name.
19104 * gcse.c: Likewise.
19105 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
19106 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
19107 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
19108 instead of a strcmp with "main".
19109
19110 2004-01-13 Jan Hubicka <jh@suse.cz>
19111
19112 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
19113
19114 * cgraphunit.c (cgraph_optimize_function): Always do
19115 optimize_inline_calls when there is always_inline callee.
19116 (cgraph_decide_inlining): Fix formating.
19117 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
19118 functions.
19119 (expand_call_inline): Likewise.
19120 * toplev.h (sorry): Fix prototype.
19121
19122 2004-01-12 Roger Sayle <roger@eyesopen.com>
19123
19124 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
19125 conditional jumps that drop through to unconditional jumps or the
19126 end of the sequence.
19127
19128 2004-01-13 Jan Hubicka <jh@suse.cz>
19129
19130 * alias.c (new_alias_set): Construct the alias_set varray.
19131 (init_alias_once): Don't do it here.
19132
19133 2004-01-12 Marc Espie <espie@openbsd.org>
19134
19135 * system.h: handle YYBYACC like YYBISON.
19136
19137 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
19138
19139 PR target/10847
19140 * config.gcc: No longer includes conflicting header sparc/sol2.h when
19141 building on sparc64-*-openbsd*.
19142
19143 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
19144
19145 PR debug/13539
19146 * dbxout.c (dbxout_type): Protected inheritance is not
19147 private but protected.
19148
19149 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
19150
19151 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
19152
19153 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
19154
19155 PR optimization/12508.
19156 * combine.c (try_combine): Remove a dead set in a parallel
19157 even if its destination is a subreg.
19158
19159 Revert:
19160 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
19161 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
19162 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
19163
19164 2004-01-12 Geoffrey Keating <geoffk@apple.com>
19165
19166 * real.c: Update copyright date.
19167 * emit-rtl.c: Likewise.
19168 * rtl.h: Likewise.
19169 * dwarf2out.c: Likewise.
19170 * config/rs6000/darwin-ldouble.c: Likewise.
19171 * config/rs6000/rs6000.md: Likewise.
19172
19173 2004-01-12 David Edelsohn <edelsohn@gnu.org>
19174
19175 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
19176 TFmode to SImode libfuncs.
19177
19178 2004-01-12 Roger Sayle <roger@eyesopen.com>
19179
19180 PR middle-end/11397
19181 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
19182
19183 2004-01-12 Jan Hubicka <jh@suse.cz>
19184
19185 PR opt/12826
19186 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
19187 stored.
19188
19189 PR opt/12863
19190 * cfgcleanup.c (label_is_jump_target_p): Move to...
19191 * rtlanal.c (label_is_jump_target_p): ... here.
19192 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
19193 edges unified with branch edges.
19194
19195 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
19196
19197 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
19198 high word of an integral CONST_DOUBLE.
19199
19200 2004-01-12 Paul Brook <paul@codesourcery.com>
19201
19202 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
19203
19204 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
19205
19206 PR target/13585
19207 * sh-protos.h (check_use_sfunc_addr): Declare.
19208 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
19209 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
19210
19211 2004-01-12 Jan Hubicka <jh@suse.cz>
19212
19213 * alias.c: Invlude varray.h
19214 (alias_sets): Turn into varray.
19215 (get_alias_set_entry): Use VARRAY; mark inline.
19216 (mems_in_disjoint_alias_sets_p): Mark inline.
19217 (record_alias_subset): Use varray.
19218 (init_alias_once): Initialize varray.
19219 (new_alias_set): Grow array.
19220 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
19221
19222 2004-01-12 Jan Hubicka <jh@suse.cz>
19223
19224 Partial fix for PR opt/10776 II
19225 * cselib.c: Include params.h
19226 (cselib_invalidate_mem): Limit amount of nonconflicting memory
19227 locations.
19228 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
19229 * Makefile.in (cselib.o): Depend on params.h
19230
19231 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
19232
19233 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
19234 simplify_unary_operation if the operand has a known mode.
19235
19236 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
19237
19238 PR target/13534
19239 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
19240 predicate to handle 'ld' conform addresses.
19241 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
19242 contraint.
19243 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
19244 are memory contraints.
19245 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
19246 New prototype.
19247 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
19248 Change 'o' to 'Y' constraint.
19249 (*movdf_softfloat64): Ditto.
19250
19251 2004-01-12 Bernardo Innocenti <bernie@develer.com>
19252
19253 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
19254 brace-enclosed syntax in all C output statements.
19255
19256 2004-01-12 David Edelsohn <edelsohn@gnu.org>
19257
19258 PR target/13401
19259 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
19260 Objective-C language type value is 14.
19261
19262 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
19263
19264 PR c/12148
19265 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
19266 `int' in a number of places to make sure we always have a SImode
19267 and not a HImode. Add a 'L' suffix to a number of constants.
19268
19269 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19270
19271 * pa.c: Don't include obstack.h.
19272
19273 * pa.md: Correct constraint in pattern for loading PIC label address.
19274
19275 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
19276
19277 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
19278 before defining.
19279
19280 2004-01-11 Steven Bosscher <stevenb@suse.de>
19281
19282 PR fortran/9972
19283 * toplev.c (rest_of_handle_inline): Also consider functions
19284 for deferral if the language is GNU F77.
19285
19286 2004-01-11 Zack Weinberg <zack@codesourcery.com>
19287
19288 * c-decl.c (diagnose_arglist_conflict): Add missing space to
19289 diagnostic messages.
19290
19291 2004-01-11 Jakub Jelinek <jakub@redhat.com>
19292
19293 PR middle-end/13392
19294 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
19295 to drop through label. Don't fall back to SCC even when conditional
19296 jump has not been found.
19297
19298 2004-01-11 Jan Hubicka <jh@suse.cz>
19299
19300 * invoke.texi: Fix syntax error in previous patch.
19301
19302 Partial fix for PR opt/10776
19303 * Makefile.in (reload.o): Include param.h
19304 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
19305 * reload.c: Include params.h.
19306 (find_equiv_reg): Work limiting check.
19307 * invoke.texi: Document.
19308
19309 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
19310
19311 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
19312 out-of-bounds accesses to string constants. Simplify mips16
19313 case accordingly.
19314
19315 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
19316
19317 PR optimization/13469
19318 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
19319 reload_cse_regs (-fnon-call-exceptions only).
19320
19321 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
19322
19323 * config/mcore/lib1.asm: Fix comment formatting.
19324 * config/mcore/mcore-elf.h: Likewise.
19325 * config/mcore/mcore.c: Likewise.
19326 * config/mcore/mcore.h: Likewise.
19327 * config/mcore/mcore.md: Likewise.
19328
19329 2004-01-10 Zack Weinberg <zack@codesourcery.com>
19330
19331 * c-decl.c (duplicate_decls): Break apart into...
19332 (diagnose_arglist_conflict, validate_proto_after_old_defn)
19333 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
19334 ... these new functions. Restructure for comprehensibility.
19335 Remove various archaic special cases. Always report the
19336 location of the previous declaration when a diagnostic is issued.
19337 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
19338 (match_builtin_function_types): Delete unnecessary forward declaration.
19339
19340 2004-01-10 Zack Weinberg <zack@codesourcery.com>
19341
19342 * genautomata.c (make_automaton, NDFA_to_DFA):
19343 Print progress bars with '.' characters instead of '*'.
19344 (build_automaton): Change notes to match.
19345
19346 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
19347
19348 * config/m32r/m32r.md: Use define_constants for unspec and
19349 unspec_volatile.
19350
19351 2004-01-10 Jan Hubicka <jh@suse.cz>
19352
19353 PR opt/11635
19354 * expr.c (expand_expr_real): More curefully expand union casts.
19355
19356 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
19357
19358 * config/m32r/m32r.md (flush_icache): Use 1 for
19359 unspec_volatile.
19360
19361 2004-01-10 David Edelsohn <edelsohn@gnu.org>
19362 James E Wilson <wilson@specifixinc.com>
19363
19364 PR debug/12860
19365 * dbxout.c (dbxout_symbol): Remove initialization of
19366 current_sym_code, current_sym_value, and current_sym_addr.
19367 (dbxout_symbol_location): Same.
19368 (dbxout_prepare_symbol): Zero current_sym_code,
19369 current_sym_value, and current_sym_addr.
19370
19371 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
19372
19373 * tree.c (get_unwidened): Reorder conditions so that the null pointer
19374 check is done first.
19375
19376 2004-01-09 Eric Christopher <echristo@redhat.com>
19377
19378 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
19379 if we're running mark_constant_function.
19380
19381 2004-01-09 Jeff Bailey <jbailey@nisa.net>
19382
19383 PR target/12561
19384 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
19385
19386 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
19387
19388 PR debug/11231
19389 * dbxout.c (dbxout_type_fields): Return if any item is
19390 error_mark_node or the type is error_mark_node.
19391
19392 2004-01-09 Geoffrey Keating <geoffk@apple.com>
19393
19394 * config/rs6000/darwin-ldouble.c: Add big comment explaining
19395 exactly what is expected as a 'long double'.
19396 (_xlqadd): When a value to be returned is representable as a
19397 'double', just return it directly, do not construct it using a union.
19398 Also, correct final fixup.
19399 (_xlqmul): Likewise.
19400 (_xlqdiv): Likewise.
19401 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
19402
19403 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
19404
19405 2004-01-09 Richard Henderson <rth@redhat.com>
19406
19407 * recog.c (constrain_operands): Validate mem operands.
19408
19409 2004-01-09 James E Wilson <wilson@specifixinc.com>
19410
19411 * gcc.c (init_spec): Remove -lunwind from shared case.
19412 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
19413
19414 2004-01-09 Steve Ellcey <sje@cup.hp.com>
19415
19416 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
19417 * configure: Regenerate
19418
19419 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
19420
19421 PR c/11234
19422 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
19423 between function and object pointers.
19424 (digest_init): When comparing a pointer to function type to the
19425 target type, only apply TREE_TYPE once to the pointer to function
19426 type.
19427 * except.c (for_each_eh_label_1): Treat data as a pointer to a
19428 function pointer rather than casting it to a function pointer.
19429 (for_each_eh_label): Update caller.
19430 * recog.h (struct insn_data): Use a struct or union for output.
19431 * genoutput.c (output_insn_data): Update.
19432 * final.c (get_insn_template): Update.
19433
19434 2004-01-09 Mark Mitchell <mark@codesourcery.com>
19435
19436 * expr.h (expand_expr): Make it a macro, not a function.
19437 (expand_expr_real): New function.
19438 * expr.c (store_expr): Adjust logic for deciding whether or not to
19439 copy the value returned by expand_expr.
19440 (expand_expr): Rename to ...
19441 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
19442 calls to language hooks.
19443 * c-common.h (c_expand_expr): Adjust prototype.
19444 * c-common.c (c_expand_expr): Add alt_rtl parameter.
19445 * langhooks-def.h (lhd_expand_expr): Change prototype.
19446 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
19447 * langhooks.h (lang_hooks): Change type of expand_expr.
19448 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
19449 (last_expr_alt_rtl): Likewise.
19450 (expand_expr_stmt_value): Set last_expr_alt_rtl.
19451 (clear_last_expr): Clear it.
19452 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
19453 (expand_end_bindings): Save and restor last_expr_alt_rtl.
19454 * tree.def (RTL_EXPR): Give it an additional operand.
19455 * tree.h (RTL_EXPR_ALT_RTL): New macro.
19456
19457 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
19458
19459 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
19460 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
19461
19462 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
19463
19464 PR target/13380.
19465 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
19466 or (ne:SI (reg:CC 17) (const_int 0)).
19467 Be specific about modes wherever possible.
19468
19469 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
19470
19471 * config/m32r/m32r.c (m32r_expand_block_move): Call
19472 gen_movestrsi_internal with two more arguments.
19473 (m32r_output_block_move): Adjust operand numbers.
19474 Properly update the source and destination pointers.
19475 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
19476 'r+'. Change the set detinations to match_operand.
19477
19478 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
19479
19480 * final.c (FIRST_INSN_ADDRESS): Remove.
19481 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
19482 * system.h (FIRST_INSN_ADDRESS): Poison.
19483 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
19484 * config/m32r/m32r-protos.h: Remove the prototype for
19485 m32r_first_insn_address.
19486 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
19487 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
19488 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
19489
19490 2004-01-09 J. Brobecker <brobecker@gnat.com>
19491
19492 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
19493 we just created.
19494 (is_ada_subrange_type): DIEs for enumeration subtypes should be
19495 emitted as subrange types too.
19496 (subrange_type_die): Add handling of enumeration subtypes.
19497
19498 2004-01-08 Richard Henderson <rth@redhat.com>
19499
19500 PR opt/12441
19501 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
19502 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
19503 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
19504 (ix86_address_cost): Be prepared for SUBREGed registers.
19505 (legitimate_address_p): Accept SUBREGed registers.
19506
19507 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
19508
19509 * Makefile.in: Rename configure.in to configure.ac
19510 * doc/sourcebuild.texi: Likewise.
19511 * configure: Regenerate.
19512 * config.in: Regenerate.
19513
19514 2004-01-08 Stuart Hastings <stuart@apple.com>
19515
19516 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
19517
19518 2004-01-08 Jan Hubicka <jh@suse.cz>
19519
19520 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
19521
19522 2004-01-08 Geoffrey Keating <geoffk@apple.com>
19523
19524 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
19525 (UNSPEC_FIX_TRUNC_TF): New constant.
19526 (movtf_internal): Make splitter active only when insn is active.
19527 (extenddftf2): Rewrite to properly load zero into low part.
19528 (extenddftf2_internal): New.
19529 (extendsftf2): Rewrite.
19530 (truncdftf2): Correct length.
19531 (floatditf2): Delete.
19532 (fix_trunc_helper): New.
19533 (fix_trunctfdi2): Use fix_trunc_helper.
19534 (fix_trunctfsi2): Likewise.fix_trunc
19535 (fix_trunctfsi2_internal): New.
19536
19537 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
19538 addresses are legitimate on Darwin even when flag_pic.
19539 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
19540 non-offsettable addresses for loads of TFmode constants.
19541
19542 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
19543
19544 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
19545 variables in the appropriate bss section.
19546
19547 2004-01-09 Alan Modra <amodra@bigpond.net.au>
19548
19549 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
19550 target_flags has MASK_POWERPC64 when -m64.
19551 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
19552 to 620, 630, power3, power4 and rs64a entries.
19553 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
19554
19555 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
19556
19557 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
19558 floating-point constants.
19559
19560 2004-01-08 J. Brobecker <brobecker@gnat.com>
19561
19562 * dwarf2out.c (subrange_type_die): Add context_die parameter.
19563 Create the subrange_type DIE using the given context DIE.
19564 (modified_type_die): Update call to subrange_type_die.
19565
19566 2004-01-08 Zack Weinberg <zack@codesourcery.com>
19567
19568 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
19569 Add multiple-include guard.
19570
19571 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
19572
19573 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
19574 all vector constant loadable by vsplt*.
19575 (output_vec_const_move): Likewise.
19576
19577 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
19578
19579 PR c/6024
19580 * c-typeck.c (comptypes): Only treat enumerated types in the same
19581 translation unit as compatible with each other when they are the
19582 same type.
19583 * doc/extend.texi: Update.
19584
19585 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
19586
19587 PR c/12165
19588 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
19589 array type from the array element type.
19590
19591 2004-01-07 Alan Modra <amodra@bigpond.net.au>
19592
19593 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
19594 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
19595 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
19596 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
19597 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
19598
19599 2004-01-06 Eric Christopher <echristo@redhat.com>
19600
19601 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
19602 (DWARF2_DEBUGGING_INFO): Define.
19603 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
19604 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
19605 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
19606 for irix as.
19607 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
19608 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
19609 * config/mips/iris5gas.h: Ditto.
19610 (DBX_DEBUGGING_INFO): Remove.
19611 (DWARF2_DEBUGGING_INFO): Ditto.
19612 (MIPS_DEBUGGING_INFO): Ditto.
19613 (PREFERRED_DEBUGGING_TYPE): Ditto.
19614 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
19615 (PREFERRED_DEBUGGING_TYPE): Ditto.
19616 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
19617 * config/mips/elf64.h: Ditto.
19618
19619 2004-01-06 Jan Hubicka <jh@suse.cz>
19620
19621 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
19622 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
19623
19624 2004-01-06 Geoffrey Keating <geoffk@apple.com>
19625
19626 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
19627 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
19628 * config/rs6000/darwin-ldouble.c: New.
19629
19630 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
19631 for constants.
19632 (constant_subword): Delete.
19633 * rtl.h (constant_subword): Delete prototype.
19634 (immed_double_const): Is not in varasm.c.
19635 * simplify-rtx.c (simplify_immed_subreg): New.
19636 (simplify_subreg): Use simplify_immed_subreg.
19637
19638 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
19639 than trying to generate RTL directly.
19640 (fix_trunctfsi2): Use expand_fix rather than trying to generate
19641 RTL directly.
19642
19643 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
19644
19645 2004-01-06 David Edelsohn <edelsohn@gnu.org>
19646
19647 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
19648 function into a separate macro.
19649 (read_only_data_section): Add void argument.
19650 (private_data_section): Same.
19651 (read_only_private_data_section): Same.
19652 (toc_section): Same.
19653
19654 2004-01-06 Jan Hubicka <jh@suse.cz>
19655
19656 * invoke.texi: Remove typo in last change.
19657
19658 PR target/10301
19659 * config.gcc: Accept opteron and athlon-64 as variants
19660 of k8.
19661 * i386.c (override_options): Likewise.
19662 * invoke.texi (i386 -mtune): Expand documentation.
19663
19664 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
19665
19666 * alias.c: Fix comment typos.
19667 * builtins.c: Likewise.
19668 * cfg.c: Likewise.
19669 * df.c: Likewise.
19670 * dominance.c: Likewise.
19671 * dwarf2out.c: Likewise.
19672 * emit-rtl.c: Likewise.
19673 * expr.c: Likewise.
19674 * final.c: Likewise.
19675 * fold-const.c: Likewise.
19676 * gcse.c: Likewise.
19677 * genattrtab.c: Likewise.
19678 * genrecog.c: Likewise.
19679 * gensupport.c: Likewise.
19680 * ggc-zone.c: Likewise.
19681 * integrate.c: Likewise.
19682 * local-alloc.c: Likewise.
19683 * loop.c: Likewise.
19684 * recog.c: Likewise.
19685 * regmove.c: Likewise.
19686 * reg-stack.c: Likewise.
19687 * reorg.c: Likewise.
19688 * rtlanal.c: Likewise.
19689 * rtl.h: Likewise.
19690 * sched-ebb.c: Likewise.
19691 * simplify-rtx.c: Likewise.
19692 * toplev.c: Likewise.
19693 * varasm.c: Likewise.
19694
19695 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
19696
19697 * doc/install.texi: Fix typos.
19698 * doc/invoke.texi: Likewise.
19699 * doc/md.texi: Likewise.
19700
19701 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
19702
19703 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
19704
19705 2004-01-06 Jan Hubicka <jh@suse.cz>
19706
19707 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
19708 (function_arg_advance): Do not pass aggregates in SSE; deal handling
19709 of MMX_REGPARM.
19710 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
19711 add MMX_REGPARM.
19712 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
19713 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
19714 (MMX_REGPARM_MAX): Similarly for -mmmx.
19715
19716 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19717
19718 * config/sh/linux.h: Fix comment formatting.
19719 * config/sh/netbsd-elf.h: Likewise.
19720 * config/sh/sh.c: Likewise.
19721 * config/sh/sh.h: Likewise.
19722 * config/sh/vxworks.h: Likewise.
19723
19724 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19725
19726 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
19727 * toplev.c (output_file_directive): Don't use
19728 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
19729
19730 2004-01-05 Steven Bosscher <s.bosscher@student.tudelft.nl>
19731
19732 * toplev.c: Fix broken checkin of 2003-12-30.
19733
19734 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
19735
19736 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
19737 (USING_MMAP): We don't support non-mmap.
19738 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
19739 large objects.
19740 (struct page_entry): Remove bytes_free.
19741 (struct page_table_chain): Remove.
19742 (struct globals): Remove page_table member.
19743 (loookup_page_table_entry): Function deleted.
19744 (set_page_table_entry): Ditto.
19745 (ggc_allocated_p): No longer need page table lookups.
19746 (ggc_marked_p): Ditto.
19747 (alloc_small_page): Don't care about bytes_free anymore.
19748 (alloc_large_page): Round up size.
19749 (ggc_alloc_zone_1): Mark large objects as such, and calculate
19750 their size the new way.
19751 Remove page table lookups and setting.
19752 (ggc_get_size): Calculate large object size the new way.
19753 (sweep_pages): Redo to account for fact that we no longer have
19754 bytes_free.
19755 (ggc_collect): No longer need to reincrement bytes_free.
19756 (ggc_pch_alloc_object): Handle new large objects properly.
19757 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
19758
19759 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19760
19761 * doc/invoke.texi: Remove a page break.
19762
19763 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19764
19765 * config/avr/avr.c (avr_output_function_prologue): Remove an
19766 extra pair of curly braces.
19767
19768 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19769
19770 * config/mn10300/mn10300.c: Fix comment formatting.
19771 * config/mn10300/mn10300.h: Likewise.
19772
19773 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19774
19775 * tree.h: Update documentation on nothrow_flag.
19776 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
19777 types.
19778
19779 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19780
19781 * doc/invoke.texi: Remove traces of dead ports.
19782
19783 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
19784
19785 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
19786 option.
19787
19788 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
19789
19790 PR target/12945
19791 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
19792 counter labels.
19793 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
19794 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
19795 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
19796 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
19797 (mips_symbol_insns): Don't trust the local/global classification.
19798 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
19799 (override_options): Make -mabicalls -fno-unit-at-a-time imply
19800 -mno-explicit-relocs.
19801 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
19802 between local and global symbols.
19803
19804 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
19805
19806 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
19807 (mips_preferred_reload_class): Declare.
19808 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
19809 (EXTRA_CONSTRAINT): Update accordingly.
19810 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
19811 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
19812 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
19813 mips_dangerous_for_la25_p.
19814 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
19815 if mips_dangerous_for_la25_p.
19816
19817 2004-01-05 Bernardo Innocenti <bernie@develer.com>
19818
19819 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
19820 warning.
19821
19822 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
19823
19824 * configure.ac: Use AC_PROG_CPP_WERROR.
19825 * configure: Regenerate.
19826
19827 2004-01-04 Zack Weinberg <zack@codesourcery.com>
19828
19829 * .cvsignore: Add autom4te.cache.
19830
19831 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
19832
19833 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
19834 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
19835 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
19836 then architecture options, then ABI options. General rewording.
19837
19838 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
19839
19840 PR c/3414
19841 * doc/extend.texi: Clarify definition of malloc attribute.
19842
19843 2004-01-04 Jan Hubicka <jh@suse.cz>
19844
19845 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
19846 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
19847 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
19848 (cgraph_inline_p): Add extra argument reason.
19849 * cgraphunit.c: Minor formating fixes.
19850 cgraph_first_inlined_callee): New functions.
19851 (record_call_1): Record builtins too.
19852 (cgraph_analyze_function): Update inline_failed messages.
19853 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
19854 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
19855 (cgraph_check_inline_limits): Likewise; Add argument reason.
19856 (cgraph_set_inline_failed): New static function.
19857 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
19858 reasons.
19859 (cgraph_inline_p): Add new argument reason.
19860 * tree-inline.c (expand_call_inline): Update warning.
19861
19862 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
19863
19864 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
19865 with modern equivalents.
19866 * configure: Regenerate.
19867
19868 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
19869 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
19870 * configure: Regenerate.
19871
19872 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
19873
19874 * configure.in: Rename to configure.ac.
19875 * configure.ac: Renamed from configure.in; make minimum necessary
19876 changes for autoconf 2.5x.
19877 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
19878 * configure: Regenerate with autoconf 2.57.
19879
19880 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
19881
19882 * config/mips/linux.h: Fix comment formatting.
19883 * config/mips/mips.c: Likewise.
19884 * config/mips/mips.h: Likewise.
19885 * config/mips/mips.md: Likewise.
19886 * config/mips/netbsd.h: Likewise.
19887 * config/mips/windiss.h: Likewise.
19888
19889 2004-01-02 Richard Henderson <rth@redhat.com>
19890
19891 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
19892 for sse and 387; add suppression for mmx.
19893
19894 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
19895
19896 * loop.c (loop_optimize): Free all loops_info's mems.
19897
19898 * c-typeck.c (finish_init): Free spelling_base before
19899 setting it again.
19900
19901 * cfgloop.c (flow_loops_find): Always free the sbitmap
19902 headers.
19903
19904 * predict.c (estimate_probability): Free bbs after being
19905 done with it.
19906
19907 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
19908
19909 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
19910 const_8bit_operand and call_address_operand.
19911
19912 2004-01-02 Jan Hubicka <jh@suse.cz>
19913
19914 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
19915 when there is nothing to inline but warnings are requested.
19916 (cgraph_decide_inlining): Fix memory leak.
19917
19918 2004-01-02 Jan Hubicka <jh@suse.cz>
19919
19920 * expr.c (store_constructor): Fix pasto in previous patch.
19921
19922 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
19923
19924 * config/i386/cygming.h: Fix comment formatting.
19925 * config/i386/djgpp.h: Likewise.
19926 * config/i386/gthr-win32.c: Likewise.
19927 * config/i386/i386-interix.h: Likewise.
19928 * config/i386/i386.c: Likewise.
19929 * config/i386/i386.h: Likewise.
19930 * config/i386/openbsd.h: Likewise.
19931 * config/i386/winnt.c: Likewise.
19932 * config/i386/xm-mingw32.h: Likewise.
19933
19934 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
19935
19936 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
19937 copyright and last modification dates.
19938
19939 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
19940
19941 * doc/install.texi (Specific): Mention x86_64.
19942
19943 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
19944
19945 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
19946 Call force_operand on plus_constant result.
19947
19948 2004-01-01 Jan Hubicka <jh@suse.cz>
19949
19950 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
19951 * expr.c (store_constructor): Use vec_init pattern.
19952 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
19953 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
19954 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
19955 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
19956 New patterns.
19957 (sse2_unpc?pd): Fix pattern.
19958 (sse2_movlpd): Kill.
19959 (sse2_movsd): Deal with movlpd too.
19960 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
19961 (ix86_expand_vector_init): New.
19962 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
19963 * md.texi (vec_set, vec_extract): Document
19964
19965 2003-12-31 Jan Hubicka <jh@suse.cz>
19966
19967 PR opt/13473
19968 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
19969 ASM input operands
19970
19971 PR opt/12617
19972 * toplev.c (dump_file_index): Reorder ce3 and bbro.
19973 (dump_file): Likewise.
19974 (rest_of_compilation): Likewise.
19975
19976 PR debug/13367
19977 * cgraph.c (cgraph_function_possibly_inlined): Even with
19978 flag_really_no_inline we inline always_inline functions.
19979 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
19980 for non-always_inline functions when there is flag_really_no_inline.
19981 (cgraph_decide_inlining): Limit work done when not inlining.
19982 (cgraph_decide_inlining_incrementally): Likewise.
19983 (cgraph_optimize_function): Check whether something got inlined.
19984 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
19985 extern inline functions when not inlining.
19986
19987 * opts.c (decode_options): Disable crossjumping at -O1
19988 * invoke.texi (-O1): Document change.
19989
19990 See ChangeLog.10 for earlier changes.
This page took 0.91975 seconds and 5 git commands to generate.