]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
re PR rtl-optimization/14782 (produces an unaligned data access at -O2)
[gcc.git] / gcc / ChangeLog
1 2004-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2
3 PR rtl-optimization/14782
4 * pa.c (emit_move_sequence): Use SFmode for 4-byte modes when doing
5 the address checks for secondary reloads for loads from and stores
6 to floating-point registers.
7 * pa.h (EXTRA_CONSTRAINT, case T): Use SFmode for 4-byte modes
8 in the address check. Move work around for ELF32 targets to
9 GO_IF_LEGITIMATE_ADDRESS.
10 (GO_IF_LEGITIMATE_ADDRESS): Require constant offsets to be
11 correctly aligned for DImode loads and stores. Don't allow long
12 SFmode displacements on ELF32.
13
14 2004-06-21 Richard Henderson <rth@redhat.com>
15
16 PR rtl-opt/16114
17 * cse.c (merge_equiv_classes): Also rehash in response to
18 delete_reg_equiv changes.
19 (rehash_using_reg): Don't exclude REGs from rehashing.
20
21 2004-06-21 Richard Henderson <rth@redhat.com>
22
23 * c-common.def (RETURN_STMT): Remove.
24 * c-common.h (RETURN_STMT_EXPR): Remove.
25 (c_expand_return, build_return_stmt): Remove.
26 (c_common_stmt_codes): Remove RETURN_STMT.
27 * c-dump.c (dump_next_stmt): Remove.
28 (c_dump_tree): Remove RETURN_STMT.
29 * c-decl.c (finish_function): Use c_finish_return.
30 * c-parse.in (stmt): Likewise.
31 * c-gimplify.c (gimplify_return_stmt): Remove.
32 (c_gimplify_expr): Remove RETURN_STMT.
33 * c-pretty-print.c (pp_c_statement): Likewise.
34 * c-semantics.c (build_return_stmt): Remove.
35 * c-tree.h (c_finish_return): Declare.
36 * c-typeck.c (c_finish_return): Rename from c_expand_return.
37 Return void. Build RETURN_EXPR directly.
38 * tree-dump.h (dump_next_stmt): Remove.
39
40 2004-06-21 Zack Weinberg <zack@codesourcery.com>
41
42 * c-decl.c (start_function): Don't call make_decl_rtl. Don't
43 look at TREE_ADDRESSABLE of symbol name.
44
45 2004-06-21 Kelley Cook <kcook@gcc.gnu.org>
46
47 PR target/15551
48 * config/i386/i386.md: Change UNSPEC_STACK_PROBE to UNSPECV_STACK_PROBE.
49 (allocate_stack_worker): Make unspec_volatile.
50 (allocate_stack_worker_rex64): Likewise.
51 (allocate_stack_worker_postreload): Likewise.
52 (allocate_stack_worker_rex64_postreload): Likewise.
53
54 2004-06-21 Daniel Berlin <dberlin@dberlin.org>
55
56 Fix PR optimization/15982
57 * tree-ssa-pre.c: Update a few comments and todos to
58 reflect constants change.
59 (get_value_handle): Constants now value number to themselves.
60 (lookup): Constants lookup to themselves.
61 (add_to_value): Adjust to always be on.
62 (set_contains_value): Adjust for constants change.
63 (find_leader): Ditto.
64 (phi_translate): 'r' nodes are never ANTIC right now.
65 (valid_in_set): Ditto.
66 (get_expr_set): New function.
67 (find_or_generate_expression): New function, broken out from
68 insert_aux.
69 (create_expression_by_pieces): Ditto, plus additional
70 machinery to handle complex values.
71 (compute_avail): Remove dead RETURN_EXPR handling.
72
73 2004-06-21 Steven Bosscher <stevenb@suse.de>
74
75 * config/i386/i386.c: Include insn-codes.h
76 * config/i386/i386.h (FLAGS_REG, FPSR_REG, DIRFLAG_REG): Don't
77 define here.
78 * config/i386/i386.md (BP_REG, SP_REG, FLAGS_REG, FPSR_REG,
79 DIRFLAG_REG): New define_constants. Use them everywhere.
80
81 2004-06-21 Kaz Kojima <kkojima@gcc.gnu.org>
82
83 * config/sh/t-linux (MULTILIB_OPTIONS): Remove.
84
85 2004-06-21 J"orn Rennecke <joern.rennecke@superh.com>
86
87 * sh.h (SUPPORT_SH1, SUPPORT_SH2E, SUPPORT_SH4): Conditionanlly define.
88 (SUPPORT_SH4_SINGLE): Likewise.
89 (TARGET_SWITCHES): Break out switches for cpu subtargets:
90 (TARGET_SWITCH_SH1, TARGET_SWITCH_SH2, TARGET_SWITCH_SH2E): Define.
91 (TARGET_SWITCH_SH3, TARGET_SWITCH_SH3E): Likewise.
92 (TARGET_SWITCH_SH4_SINGLE_ONLY, TARGET_SWITCH_SH4_SINGLE): Likewise.
93 (TARGET_SWITCH_SH4_NOFPU, TARGET_SWITCH_SH4): Likewise.
94 (TARGET_SWITCH_SH5_64MEDIA, TARGET_SWITCH_SH5_64MEDIA_NOFPU): Likewise.
95 (TARGET_SWITCHES_SH5_32MEDIA): Likewise.
96 (TARGET_SWITCHES_SH5_32MEDIA_NOFPU): Likewise.
97 (SELECT_SH5_64, SELECT_SH5_64_NOFPU): Rename to:
98 (SELECT_SH5_64MEDIA, SELECT_SH5_64MEDIA_NOFPU)
99 (SELECT_SH5_32, SELECT_SH5_32_NOFPU): Rename to:
100 (SELECT_SH5_32MEDIA, SELECT_SH5_32MEDIA_NOFPU).
101 (SH_MULTILIB_CPU_DEFAULT, MULTILIB_DEFAULTS): Define.
102 (ASM_ISA_SPEC_DEFAULT, ASM_ISA_DEFAULT_SPEC): Likewise.
103 * sh64.h (ASM_SPEC, LINK_DEFAULT_CPU_EMUL): Don't redefine.
104 (TARGET_DEFAULT): Likewise.
105 * config/sh/t-elf: Amend comment.
106 * config/sh/t-1e, config/sh/t-mlib-sh1: New files.
107 * config/sh/t-mlib-sh2, config/sh/t-mlib-sh2e: Likewise.
108 * config/sh/t-mlib-sh3, config/sh/t-mlib-sh3e: Likewise.
109 * config/sh/t-mlib-sh4, config/sh/t-mlib-sh4-nofpu: Likewise.
110 * config/sh/t-mlib-sh4-single: Likewise.
111 * config/sh/t-mlib-sh4-single-only: Likewise.
112 * config/sh/t-mlib-sh5-32media: Likewise.
113 * config/sh/t-mlib-sh5-32media-nofpu: Likewise.
114 * config/sh/t-mlib-sh5-64media: Likewise.
115 * config/sh/t-mlib-sh5-64media-nofpu: Likewise.
116 * config/sh/t-mlib-sh5-compact: Likewise.
117 * config/sh/t-mlib-sh5-compact-nofpu: Likewise.
118 * config/sh/t-sh: (MULTILIB_ENDIAN): Add mb.
119 (MULTILIB_CPUS): Define.
120 (MULTILIB_OPTIONS): Use MULTILIB_CPUS.
121 (MULTILIB_MATCHES): Use some shell code to calculate it.
122 (MULTILIB_EXCEPTIONS): Change to ml/m1.
123 * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Use ASM_ISA_DEFAULT_SPEC.
124 * config/sh/netbsd-elf.h: Update code which sets TARGET_VERSION_CPU.
125 (LINK_DEFAULT_CPU_EMUL): Don't redefine.
126 (NO_PROFILE_COUNTERS): Define to 1.
127 * config/sh/t-netbsd (MULTILIB_OPTIONS): Don't append to.
128 (MULTILIB_DIRNAMES, MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Don't zap.
129 * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Don't redefine.
130 (MULTILIB_MATCHES): Don't zap.
131 (MULTILIB_DIRNAMES): Use MULTILIB_RAW_DIRNAMES.
132 * config/sh/t-sh64 (MULTILIB_OPTIONS): Don't redefine.
133 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Don't zap.
134 (MULTILIB_RAW_DIRNAMES): Define.
135 (MULTILIB_DIRNAMES): Use it.
136 * config.gcc: Also set cpu_type / need_64bit_hwint for sh[be]*-*-*.
137 (sh*linux configurations): Merge into:
138 (sh*elf / sh*kaos configurations). Support --with-endian, --with-cpu,
139 --with-multilib-list options. Support sh-superh-elf configuration.
140 (sh*-netbsd*): Use SELECT_SH* macros.
141 (supported_defaults): sh[123456ble]-*-* | sh-*-* support "cpu".
142 Merge sh*-*-netbsd* configurations into sh-elf configurations.
143 * config/sh/t-netbsd-sh5, config/sh/t-be, config/sh/t-le: Delete.
144 * config/sh/t-monolib: Likewise.
145
146 2004-06-21 Paul Brook <paul@codesourcery.com>
147
148 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Soft-float need
149 not imply FPA.
150
151 2004-06-21 Roger Sayle <roger@eyesopen.com>
152
153 * fold-const.c (operand_equal_p): Pass flags in recursive calls for
154 binary and relational operations. Add support for TRUTH_ANDIF_EXPR,
155 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR.
156 * tree.c (commutative_tree_code): Also list UNORDERED_EXPR,
157 ORDERED_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR
158 and TRUTH_XOR_EXPR.
159
160 2004-06-21 Paolo Bonzini <bonzini@gnu.org>
161
162 * rtlanal.c (may_trap_p): Mark LTGT as trapping.
163
164 2004-06-21 Joseph S. Myers <jsm@polyomino.org.uk>
165
166 * tree-alias-common.h (struct tree_alias_ops): Change ip and
167 ip_partial to unsigned int.
168
169 2004-06-21 Richard Henderson <rth@redhat.com>
170
171 * c-common.c (verify_sequence_points): Export.
172 (c_expand_expr_stmt): Move to c-typeck.c.
173 * c-common.h (c_expand_expr_stmt): Remove.
174 (verify_sequence_points): Declare.
175 * c-mudflap.c (mflang_flush_calls): Use c_finish_expr_stmt.
176 * c-parse.in (for_init_stmt, stmt): Likewise.
177 * c-tree.h (c_finish_expr_stmt): Declare.
178 (c_tree_expr_nonnegative_p): Remove.
179 * c-typeck.c (c_tree_expr_nonnegative_p): Remove.
180 (build_conditional_expr, build_binary_op): Use tree_expr_nonnegative_p.
181 (emit_side_effect_warnings): New.
182 (c_finish_expr_stmt): Rename from c_expand_expr_stmt. Use it.
183 (c_finish_stmt_expr): Work without EXPR_STMT. Handle eh regions.
184 Use emit_side_effect_warnings.
185 (push_cleanup): Copy STATEMENT_LIST_STMT_EXPR.
186 * fold-const.c (tree_expr_nonnegative_p): Handle TARGET_EXPR.
187 * gimplify.c (gimplify_modify_expr): Don't discard TARGET_EXPR
188 with void initializer.
189 (gimplify_target_expr): Handle void BIND_EXPR initializer.
190 * tree-inline.c (estimate_num_insns_1): Fix type lookup for
191 INIT_EXPR and MODIFY_EXPR.
192 * objc/objc-act.c (build_module_descriptor): Use add_stmt
193 instead of c_expand_expr_stmt.
194
195 2004-06-21 Paolo Bonzini <bonzini@gnu.org>
196
197 * fold-const.c (fold_cond_expr_with_comparison):
198 New function, extracted from fold.
199 (fold): Extract code to fold A op B ? A : C, use
200 it to fold A op B ? C : A. Really optimize
201 A & N ? N : 0 where N is a power of two. Avoid
202 relying on canonicalization and recursion for
203 foldings of COND_EXPR to happen.
204
205 2004-06-20 David Ayers <d.ayers@inode.at>
206
207 * objc/objc-act.h (get_object_reference): Rename to
208 get_protocol_reference.
209 (super_type): Rename to objc_super_type.
210 (selector_type): Rename to objc_selector_type.
211 (id_type): Rename to objc_id_type.
212 (instance_type): Rename to objc_instance_type.
213 (protocol_type): Rename to objc_protocol_type.
214 (IS_ID): Update reference to id_type.
215 * objc/objc-act.c (get_object_reference): Rename to
216 get_protocol_reference; add documentation; update references to
217 id_type.
218 (lookup_method_in_protocol_list): Rename class_meth to
219 is_class; add documentation.
220 (finish_message_expr): Rename is_class to class_tree.
221 (synth_module_prologue, objc_is_object_ptr, objc_build_exc_ptr,
222 next_sjlj_build_try_catch_finally, objc_begin_catch_clause,
223 build_next_objc_exception_stuff, get_arg_type_list,
224 build_objc_method_call): Update references to id_type.
225 (synth_module_prologue, build_objc_symtab_template,
226 build_selector_reference_decl, build_selector,
227 build_selector_translation_table, build_typed_selector_reference,
228 get_arg_type_list, synth_self_and_ucmd_args, get_arg_type_list,
229 synth_self_and_ucmd_args): Update references to selector_type.
230 (build_private_template, build_ivar_reference): Update references
231 to instance_type.
232 (synth_module_prologue, build_protocol_reference,
233 build_protocol_expr, start_protocol): Update references to
234 protocol_type.
235 (synth_module_prologue, get_arg_type_list, build_objc_method_call):
236 Update references to super_type.
237 * c-parse.in: (typespec_nonreserved_nonattr): Update
238 references to get_object_reference.
239 * objc/objc-tree.def: Add C mode identifier sequence.
240
241 2004-06-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
242
243 * loop-invariant.c: New file.
244 * Makefile.in (loop-invariant.o): New.
245 * cfgloop.h (global_cost_for_size, init_set_costs,
246 move_loop_invariants): Declare.
247 * cfgloopanal.c (seq_cost, init_set_costs, global_cost_for_size): New
248 functions.
249 (avail_regs, res_regs, small_cost, pres_cost, spill_cost): New
250 variables.
251 * common.opt (floop-optimize2, fmove-loop-invariants): New options.
252 * loop-init.c (loop_optimizer_init): Call init_set_costs.
253 * passes.c (rest_of_handle_loop2): Call move_loop_invariants.
254 (rest_of_compilation): Check flag_loop_optimize2.
255 * toplev.c (process_options): Handle flag_loop_optimize2.
256 * doc/invoke.texi (-floop-optimize2, -fmove-loop-invariants): Document.
257 * doc/passes.texi (loop-invariant.c): Document.
258
259 2004-06-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
260
261 * tree-ssa-pre.c (compute_antic): Keep BB_VISITED flag zeroed.
262
263 2004-06-20 Richard Henderson <rth@redhat.com>
264
265 * stmt.c (warn_if_unused_value): Add locus argument.
266 * tree.h (warn_if_unused_value): Update decl.
267 * c-typeck.c (internal_build_compound_expr): Update call.
268 * c-gimplify.c (gimplify_expr_stmt): Likewise.
269
270 2004-06-20 Andrew Pinski <pinskia@physics.uc.edu>
271
272 PR middle-end/16089
273 * builtins.c (entry_of_function): Move to ...
274 * cfgrtl.c (entry_of_function): Here and make non-static.
275 * integrate.c (emit_initial_value_sets): Use entry_of_function.
276 * rtl.h (entry_of_function): Prototype.
277
278 2004-06-20 Roger Sayle <roger@eyesopen.com>
279
280 * config/i386/i386.c (pentium4_cost): Increase "lea" cost from 1 to 3.
281 (ix86_rtx_costs) <ASHIFT, PLUS>: Consider ix86_cost->lea even when
282 TARGET_DECOMPOSE_LEA.
283
284 2004-06-20 Richard Henderson <rth@redhat.com>
285
286 * c-common.h (add_decl_stmt): Move to cp-tree.h.
287 * c-decl.c (finish_decl): Don't use add_decl_stmt.
288 * c-parse.in: Likewise.
289 * c-gimplify.c (gimplify_expr_stmt): Don't build CLEANUP_POINT_EXPR.
290 (gimplify_c_loop, gimplify_return_stmt, gimplify_decl_stmt): Likewise.
291 * c-semantics.c (add_decl_stmt): Move to cp/semantics.c.
292
293 2004-06-20 Richard Henderson <rth@redhat.com>
294
295 * c-common.def (IF_STMT, CLEANUP_STMT): Move to cp-tree.def.
296 * c-common.h (IF_COND, THEN_CLAUSE, ELSE_CLAUSE, CLEANUP_BODY,
297 CLEANUP_EXPR, CLEANUP_DECL): Move to cp-tree.h.
298 (c_common_stmt_codes): Remove IF_STMT, CLEANUP_STMT.
299 * c-dump.c (c_dump_tree): Move IF_STMT, CLEANUP_STMT to cp_dump_tree.
300 * c-pretty-print.c (pp_c_statement): Similarly.
301 * c-gimplify.c (gimplify_cleanup_stmt, gimplify_cleanup_stmts,
302 gimplify_if_stmt): Move to cp-gimplify.c.
303 (c_genericize, c_gimplify_expr): Don't call them.
304 * c-semantics.c (push_cleanup): Move to cp/semantics.c.
305 * c-typeck.c (push_cleanup): New.
306 (c_begin_if_stmt, c_finish_if_cond, c_finish_then, c_finish_else,
307 c_finish_if_stmt): Use COND_EXPR.
308 * tree.h (CLEANUP_EH_ONLY): Update documentation.
309
310 2004-06-20 Zack Weinberg <zack@codesourcery.com>
311
312 * c-common.h (has_c_linkage): New interface.
313 * c-cppbuiltin.c: Include target.h.
314 (c_cpp_builtins): Define __PRAGMA_REDEFINE_EXTNAME and
315 __PRAGMA_EXTERN_PREFIX when appropriate.
316 * c-pragma.c: Include target.h.
317 Document clarified semantics of symbol-renaming #pragmas.
318 (handle_pragma_redefine_extname, handle_pragma_extern_prefix)
319 (maybe_apply_renaming_pragma): Rewrite according to clarified
320 semantics. Always recognize, but do not necessarily execute.
321 (init_pragma): Unconditionally register symbol-renaming pragmas.
322 * system.h: Poison HANDLE_PRAGMA_REDEFINE_EXTNAME
323 and HANDLE_PRAGMA_EXTERN_PREFIX.
324 * target.h (struct gcc_target): Add handle_pragma_redefine_extname
325 and handle_pragma_extern_prefix flags.
326 * target-def.h: Add defaults for TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME
327 and TARGET_HANDLE_PRAGMA_EXTERN_PREFIX.
328 * Makefile.in (c-pragma.o, c-cppbuiltin.o): Update dependencies.
329 * config/sol2.h: Define TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME,
330 not HANDLE_PRAGMA_REDEFINE_EXTNAME.
331 (TARGET_OS_CPP_BUILTINS): No need to define __PRAGMA_REDEFINE_EXTNAME.
332 (TRANSFER_FROM_TRAMPOLINE): Prototype mprotect.
333 * config/alpha/osf.h: Define TARGET_HANDLE_PRAGMA_EXTERN_PREFIX,
334 not HANDLE_PRAGMA_EXTERN_PREFIX.
335 (TARGET_OS_CPP_BUILTINS): No need to define __PRAGMA_EXTERN_PREFIX.
336 * doc/extend.texi (Solaris Pragmas, Tru64 Pragmas): Combine
337 into one section "Symbol-Renaming Pragmas"; clarify; document
338 adjusted semantics.
339
340 * builtins.c (expand_builtin): Do not issue error for a builtin
341 with no special case code and no DECL_ASSEMBLER_NAME; just do the
342 library call.
343 * c-decl.c (builtin_function): Don't call make_decl_rtl.
344 * c-objc-common.c (has_c_linkage): Stub implementation.
345 * cgraphunit.c (cgraph_expand_function)
346 (cgraph_remove_unreachable_nodes): Don't clear DECL_ARGUMENTS.
347
348 2004-06-19 Roger Sayle <roger@eyesopen.com>
349
350 * builtins.c (fold_builtin_unordered_cmp): Take an EXP argument
351 instead of both an ARGLIST and a result TYPE. Handle these C99
352 comparison functions as "polymorphic" builtins. Also handle
353 lowering of BUILT_IN_ISUNORDERED to an UNORDERED_EXPR tree node.
354 (fold_builtin_1): Update calls to fold_builtin_unordered_cmp.
355 Move handling of BUILT_IN_ISUNORDERED from here to there.
356
357 2004-06-19 Richard Henderson <rth@redhat.com>
358
359 * c-common.c, c-common.h (lang_gimplify_stmt): Remove.
360 * c-gimplify.c: Remove unnecessary prototypes.
361 (c_gimplify_stmt): Merge into ...
362 (c_gimplify_expr): ... here. Don't play with prep_stmt.
363 * c-semantics.c (prep_stmt): Remove.
364 * gimplify.c (annotate_one_with_locus): Break out from ...
365 (annotate_all_with_locus): ... here.
366 (gimplify_expr): Add locus to expressions even if pre/post queues
367 are not present.
368
369 2004-06-19 Richard Henderson <rth@redhat.com>
370
371 PR target/15941
372 * function.c (assign_parms): If not padding upward or intentionally
373 forcing upward padding, take offset_rtx into account when determining
374 the alignment for stack_parm.
375
376 2004-06-19 Richard Henderson <rth@redhat.com>
377
378 PR target/15550
379 * ifcvt.c (noce_try_move): Recognize all generated instructions.
380
381 2004-06-19 Jan Hubicka <jh@suse.cz>
382
383 * function.c (free_after_compilation): Do not free computed_goto_common*.
384 * function.h (struct function): Kill computed_goto_common*.
385 * stmt.c (expand_computed_goto): Do not commonize the computed gotos.
386 * tree-cfg.c (disband_implicit_edges): Do not forward across the
387 commonized computed goto.
388
389 2004-06-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
390
391 * doc/invoke.texi: Remove obsolete comment regarding PA 2.0 support
392 in binutils.
393
394 2004-06-19 Andrew Pinski <apinski@apple.com>
395
396 PR c++/15721
397 * toplev.c (wrapup_global_declarations): Do not check
398 TREE_SYMBOL_REFERENCED of the DECL_ASSEMBLER_NAME but check
399 cgraph_varpool_node's needed field.
400
401 2004-06-19 Jan Hubicka <jh@suse.cz>
402 Steven Bosscher <stevenb@suse.de>
403
404 CFG transparent RTL expansion:
405 * Makefile.in (cfgexpand.o): New object file.
406 (builtins.o): Add dependency on basic-block.h
407 * builtins.c: Include basic-block.h
408 (entry_of_function): New function.
409 (expand_builtin_apply_args, expand_builtin_saveargs): Use it.
410 * cfgexpand.c: New file.
411 * expr.c (execute_expand, pass_expand): Kill.
412 * pass.c (rest_of_compilation): Do not build CFG unless called from
413 coverage code.
414 * tree-cfg.c (delete_tree_cfg): Rename to..
415 (delete_tree_cfg_annotations): ... this one; Do not remove the CFG itself.
416 * tree-flow.h (delete_tree_cfg_annotations): Declare.
417 (dleete_tree_cfg): Kill.
418 * tree-optimize.c (execute_rebuild_bind, pass_rebuild_bind): Kill.
419 (execute_del_cfg): Rename to...
420 (execute_free_datastructures): This one...
421 (pass_del_cfg): Rename to...
422 (pass_free_datastructures): ... this one; Do not kill PROP_cfg.
423 (init_tree_optimization_passes): Make cfg build and profiling to happen
424 unconditionally.
425
426 2004-06-19 Steven Bosscher <stevenb@suse.de>
427
428 * tree-mudflap.c (mf_decl_cache_locals): Skip labels before
429 inserting the cache variables.
430
431 * tree-mudflap.c: Include headers to make basic_block available.
432 Move functions around such that related functions are near each
433 other. Add prototypes for all static functions. Add comments
434 briefly explaining what IR the mudflap1 and mudflap2 work on and
435 what they do.
436 (mudflap_function_decls): Rename to execute_mudflap_function_decls.
437 (mudflap_function_ops): Rename to execute_mudflap_function_ops.
438 (pass_mudflap_1, pass_mudflap_2): Update.
439 (mf_decl_cache_locals): Make it work on the CFG instead of the saved
440 function tree.
441 (mf_build_check_statement_for): Make it work on the CFG.
442 (mf_xform_derefs_1): Likewise. Cleanup code style.
443 (mf_xform_derefs): Likewise.
444
445 2004-06-19 Jan Hubicka <jh@suse.cz>
446
447 * tree-cfg.c (label_to_block): Invent the label destination for
448 undefined labels.
449 (cleanup_dead_labels): Update table in the case label_to_block added
450 new label.
451
452 2004-06-18 Richard Henderson <rth@redhat.com>
453
454 PR c++/16036
455 * gimple-low.c (lower_function_body): Generate return statement for
456 fall off the end of the function here ...
457 * tree-cfg.c (make_edges): ... instead of here.
458 * gimplify.c (gimplify_return_expr): Mark return temp TREE_NO_WARNING.
459
460 2004-06-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
461
462 * tree-ssa.c (raise_value): Removed.
463 (get_eq_name, check_phi_redundancy): New functions.
464 (kill_redundant_phi_nodes): Use standard ssa minimalization algorithm.
465
466 2004-06-18 Roger Sayle <roger@eyesopen.com>
467
468 * fold-const.c (fold) <UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR,
469 UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR>: Add
470 constant folding for unordered comparison tree nodes. If both
471 operands are real constants, call fold_relational_const. If either
472 operand is a NaN, evaluate the other for side-effects and return a
473 constant. Optimize (double)float1 CMP (double)float2 into the
474 equivalent float1 CMP float2.
475 (nondestructive_fold_binary_to_constant) <UNORDERED_EXPR,
476 ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR,
477 LTGT_EXPR>: Call fold_relational_const for constant operands.
478 (fold_relational_const): Add support for unordered comparison tree
479 nodes. Don't constant fold "ordered" floating point comparisons
480 against NaN if when flag_trapping_math is set.
481
482 2004-06-19 Jakub Jelinek <jakub@redhat.com>
483
484 * fold-const.c (build_range_check): If !in_p and recursive call
485 fails, exit immediately. If high - low overflows and etype is
486 a signed type, retry with unsigned etype.
487 (merge_ranges): If !in0_p and !in1_p, handle even range2 adjacent
488 to range1 at TYPE_MAX_VALUE and TYPE_MIN_VALUE.
489
490 2004-06-18 Richard Henderson <rth@redhat.com>
491
492 * c-gimplify.c (gimplify_condition): Remove.
493 (gimplify_c_loop, gimplify_if_stmt, gimplify_switch_stmt): Don't
494 call it.
495
496 2004-06-18 Richard Henderson <rth@redhat.com>
497
498 * tree-eh.c (decide_copy_try_finally): Fix scaling of copy and
499 switch estimates.
500
501 2004-06-18 Andrew Pinski <pinskia@physics.uc.edu>
502
503 * config/i386/darwin.h (HOT_TEXT_SECTION_NAME): Define.
504 (NORMAL_TEXT_SECTION_NAME): Define.
505 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
506 (SECTION_FORMAT_STRING): Define.
507
508 2004-06-18 Steven Bosscher <stevenb@suse.de>
509
510 * config/xtensa/xtensa.c
511 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
512 * xtensa.md: Replace the old pipeline description with a DFA model.
513
514 2004-06-18 Steven Bosscher <stevenb@suse.de>
515 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
516
517 * config/s390/s390.md: Remove the generic pipeline description.
518 * config/s390/2064.md: Make all insn reservations apply to
519 the z900, g5 and g6.
520 * config/s390/s390.c (s390_use_dfa_pipeline_interface): Remove.
521 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
522 Define to hook_int_void_1.
523 (s390_adjust_cost): Cleanup. Don't check address dependency here.
524 (s390_first_cycle_multipass_dfa_lookahead): Always return 4.
525
526 2004-06-18 Daniel Berlin <dberlin@dberlin.org>
527 Diego Novillo <dnovillo@redhat.com>
528
529 * tree-dfa.c (create_var_ann): tree_ann -> tree_ann_t.
530 (create_stmt_ann): Ditto.
531 (create_tree_ann): New function.
532 (create_cst_ann): Remove.
533 (create_expr_ann): Ditto.
534
535 * tree-flow-inline.h (cst_ann): Remove.
536 (get_cst_ann): Ditto.
537 (get_expr_ann): Ditto.
538 (expr_ann): Ditto.
539 (get_tree_ann): New function.
540 (tree_ann): Ditto.
541 (ann_type): tree_ann -> tree_ann_t.
542 * tree-flow.h (tree_ann_type): CST_ANN, EXPR_ANN removed.
543 (struct cst_ann_d): Removed.
544 (struct expr_ann_d): Ditto.
545 (union tree_ann_d): Removed cst and expr.
546 (tree_ann): Renamed to tree_ann_t.
547 * tree-ssa-ccp.c (set_rhs): tree_ann -> tree_ann_t.
548 * tree-ssa-pre.c (get_value_handle): Rewrite for single common
549 annotation.
550 (set_value_handle): Ditto.
551 (phi_translate): Ditto.
552 * tree-tailcall.c (adjust_return_value): tree_ann -> tree_ann_t.
553
554 2004-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
555
556 * config/sh/t-linux64: New file.
557 * config.gcc: Add it to tmake_file for sh64*-*-linux*.
558
559 2004-06-18 Paolo Bonzini <bonzini@gnu.org>
560
561 * emit-rtl.c (unshare_all_rtl_1): New name of unshare_all_rtl.
562 (unshare_all_rtl_again): Call unshare_all_rtl_1.
563 (unshare_all_rtl): New.
564 * function.c (instantiate_virtual_regs): Remove parameters.
565 * function.h (instantiate_virtual_regs): Add prototype.
566 * rtl.h (unshare_all_rtl): Add prototype.
567 * tree.h (instantiate_virtual_regs, unshare_all_rtl): Remove
568 prototype.
569 * passes.c: Remove assertions on the parameters to
570 rest_of_handle_* functions. Remove the parameters to
571 the functions, replacing decl with current_function_decl
572 and insns with get_insns ().
573
574 2004-06-17 Roger Sayle <roger@eyesopen.com>
575
576 * fold-const.c (constant_boolean_node): Handle boolean_type_node
577 directly, return either boolean_true_node or boolean_false_node.
578
579 2004-06-18 Kelley Cook <kcook@gcc.gnu.org>
580
581 * opts.sh: Delete. Break out generated code to next four files.
582 * opt-gather.awk: New file.
583 * optc-gen.awk: New file.
584 * opth-gen.awk: New file.
585 * opt-functions.awk: New common file.
586 * Makefile.in: Update for above.
587 * configure.ac: Update comment.
588 * configure: Regenerate.
589
590 2004-06-17 Richard Henderson <rth@redhat.com>
591
592 * c-common.c (flag_objc_sjlj_exceptions): New.
593 * c-common.h (flag_objc_sjlj_exceptions): Declare.
594 * c-opts.c (c_common_handle_option): Set it.
595 (c_common_post_options): Handle interation of different
596 objective-c exception and runtime switches.
597 * c-decl.c (c_eh_initialized_p): New.
598 (finish_decl): Use it instead of local eh_initialized_p.
599 * c-parse.in (nested_function, notype_nested_function): Record
600 the result of compstmt.
601 (compstmt_or_error): Likewise.
602 (compstmt): Don't add_stmt the result.
603 (stmt): Don't return anything. Rewrite objc try and sync rules.
604 (objc_try_stmt, objc_catch_list): Remove.
605 (objc_catch_block, objc_finally_block): Remove.
606 (objc_catch_prefix, objc_catch_clause, objc_opt_catch_list): New.
607 (objc_try_catch_clause, objc_finally_clause): New.
608 (objc_try_catch_stmt): Rewrite.
609 * c-tree.h (c_eh_initialized_p): Declare.
610 * c-opt (fobjc-sjlj-exceptions): New.
611 * except.c (output_function_exception_table): Don't call cgraph
612 on non-decls.
613 * objc/objc-act.c (UTAG_EXCDATA_VAR, UTAG_CAUGHTEXC_VAR,
614 UTAG_RETHROWEXC_VAR, UTAG_EVALONCE_VAR, struct val_stack,
615 catch_count_stack, exc_binding_stack, if_nesting_count,
616 blk_nesting_count, objc_enter_block, objc_exit_block,
617 objc_declare_variable, val_stack_push, val_stack_pop,
618 objc_build_try_enter_fragment, objc_build_extract_expr,
619 objc_build_try_exit_fragment, objc_build_extract_fragment,
620 objc_build_try_prologue, objc_build_try_epilogue,
621 objc_build_catch_stmt, objc_build_catch_epilogue,
622 objc_build_finally_prologue, objc_build_finally_epilogue,
623 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
624 objc_build_synchronized_epilogue): Remove.
625 (objc_create_temporary_var, struct objc_try_context, cur_try_context,
626 objc_eh_runtime_type, objc_init_exceptions, objc_build_exc_ptr,
627 next_sjlj_build_try_exit, next_sjlj_build_enter_and_setjmp,
628 next_sjlj_build_exc_extract, next_sjlj_build_catch_list,
629 next_sjlj_build_try_catch_finally, objc_begin_try_stmt,
630 objc_begin_catch_clause, objc_finish_catch_clause,
631 objc_build_finally_clause, objc_finish_try_stmt,
632 objc_build_synchronized): New.
633 (objc_is_object_id, objc_is_class_id): New.
634 (objc_comptypes): Use them.
635 (build_next_objc_exception_stuff): Break NeXT sjlj out from
636 build_objc_exception_stuff.
637 (synth_module_prologue): Update to match.
638 (objc_build_throw_stmt): Use cur_try_context to decide if
639 we're in a @catch.
640 * objc/objc-act.h: Update prototypes.
641 (OCTI_EXCEPTION_BLK_STACK, objc_exception_block_stack): Remove.
642
643 2004-06-17 Andrew Pinski <apinski@apple.com>
644
645 * c-typeck.c (tagged_types_tu_compatible_p <case UNION_TYPE>):
646 Use TYPE_FIELDS instead of TYPE_VALUES.
647
648 2004-06-17 Jason Merrill <jason@redhat.com>
649
650 PR c++/16015
651 * gimplify.c (gimplify_target_expr): Handle void initializer.
652 * expr.c (expand_expr_real_1) [TARGET_EXPR]: Likewise.
653 * doc/c-tree.texi (Expression trees): Update TARGET_EXPR
654 and AGGR_INIT_EXPR.
655
656 2004-06-17 Roger Sayle <roger@eyesopen.com>
657
658 * fold-const.c (fold_relational_const): Use constant_boolean_node.
659
660 2004-06-17 Jan Hubicka <jh@suse.cz>
661
662 PR target/15433
663 * i386.md (SSE SF cmov 0 splitter): The conditional is VOIDmode; fix
664 operand numbering in the output template.
665 (SSE DF cmov 0 splitter): The conditional is VOIDmode.
666
667 2004-06-17 Jan Hubicka <jh@suse.cz>
668
669 * except.c (can_throw_internal): Recognize RESX expresisons.
670
671 2004-06-17 Jan Hubicka <jh@suse.cz>
672
673 * cfgbuild.c (make_edges): Do not use label_value_list.
674 (find_basic_blocks_1): Do not collect label_value_list.
675 (find_sub_basic_blocks): Update call of make_edges.
676
677 2004-06-17 Andrew MacLeod <amacleod@redhat.com>
678
679 * tree-cfg.c (tree_make_forwarder_block): Use SET_PHI_RESULT.
680 * tree-flow-inline.h (get_use_op_ptr): Return a use_operand_p.
681 (get_use_from_ptr, get_def_from_ptr): New. Return operand pointers.
682 (get_def_op_ptr): Return a def_operand_p instead of a 'tree *'.
683 (get_v_may_def_result_ptr): Return a def_operand_p.
684 (get_v_may_def_op_ptr, get_vuse_op_ptr): Return a use_operand_p.
685 (get_v_must_def_op_ptr): Return a def_operand_p.
686 (get_phi_result_ptr): New. Return a pointer to the result of a PHI.
687 (get_phi_arg_def_ptr): New. Return a pointer to an argument of a PHI.
688 (phi_element_for_edge): Remove.
689 * tree-flow.h (propagate_value, replace_exp): Change prototype.
690 (propagate_tree_value): Add new prototype.
691 (phi_element_for_edge): Remove prototype.
692 * tree-into-ssa.c (mark_def_sites): Use new operand types.
693 (prepare_operand_for_rename): Split into two functions.
694 (prepare_use_operand_for_rename): Prepare use operands.
695 (prepare_def_operand_for_rename): Prepare def operands.
696 (rewrite_stmt): Use new operand types.
697 (rewrite_operand): Use new operand types, change parameter type.
698 * tree-outof-ssa.c (replace_variable): Split into two functions.
699 (replace_use_variable): Rewrite uses.
700 (replace_def_variable): Rewrite defs.
701 (rewrite_trees, rewrite_vars_out_of_ssa): Use new operand types.
702 * tree-phinodes.c (make_phi_node, resize_phi_node): Use new types.
703 (add_phi_arg, remove_phi_arg_num): Use new operand types.
704 * tree-ssa-ccp.c (substitute_and_fold): Use new operand types.
705 (ccp_fold, replace_uses_in): Use new operand types.
706 * tree-ssa-copy.c (replace_ssa_names): Rename to replace_ssa_names_ann
707 and no longer set the value, change parameter type.
708 (replace_exp_1): Use new operand types.
709 (propagate_value): Change parameter type, use new operand types.
710 (propagate_tree_value): Propagate_value without SSA operands.
711 (replace_exp, cprop_operand, cprop_into_stmt): Use new operand types.
712 (cprop_into_successor_phis): Use new operand types.
713 * tree-ssa-dom.c (thread_across_edge): Use new operand types.
714 (eliminate_redundant_computations): Use new operand types.
715 * tree-ssa-dse.c (fix_phi_uses): Use new operand_types.
716 (fix_stmt_v_may_defs): Use new operand_types.
717 * tree-ssa-live.c (create_ssa_var_map): Use new operand_types.
718 (build_tree_conflict_graph): Use new operand_types.
719 * tree-ssa-loop.c (duplicate_blocks): Use PHI_ARG_DEF_FROM_EDGE.
720 * tree-ssa-operands.c (struct freelist_d): Remove.
721 (check_optype_freelist, add_optype_freelist): Remove.
722 (allocate_def_optype, allocate_use_optype, allocate_v_may_def_optype,
723 allocate_vuse_optype, allocate_v_must_def_optype): Call ggc_alloc.
724 (free_uses, free_defs, free_vuses, free_v_may_defs, free_v_must_defs):
725 Call ggc_free instead of add_optype_freelist.
726 (init_ssa_operands, fini_ssa_operands): Remove free list code.
727 (finalize_ssa_defs, finalize_ssa_uses): Set new use/def operands.
728 * tree-ssa-operands.h (struct def_optype_d): Change underlying type.
729 (struct use_optype_d): Change underlying type.
730 (def_operand_p, use_operand_p): New types for pointers to operands.
731 (USE_OP, DEF_OP, V_MAY_DEF_RESULT, V_MAY_DEF_OP, VUSE_OP,
732 V_MUST_DEF_OP): Use new pointer type instead of dereferencing directly.
733 (USE_FROM_PTR, DEF_FROM_PTR): New macros to "dereference" operand
734 pointer types.
735 (SET_USE, SET_DEF): New macros to set operands from their pointer.
736 (SET_USE_OP, SET_DEF_OP, SET_V_MAY_DEF_RESULT, SET_V_MAY_DEF_OP,
737 SET_VUSE_OP, SET_V_MUST_DEF_OP): New SET routines for operands.
738 (PHI_RESULT_PTR, PHI_RESULT, SET_PHI_RESULT): Macros to manage the
739 PHI result as an operand.
740 (PHI_ARG_DEF_PTR, PHI_ARG_DEF, SET_PHI_ARG_DEF, PHI_ARG_DEF_FROM_EDGE,
741 PHI_ARG_DEF_PTR_FROM_EDGE): Macros to manage the PHI arguments.
742 * tree-ssa-pre.c (eliminate): Call propagate_tree_value.
743 * tree-tailcall.c (independent_of_stmt_p, propagate_through_phis): Use
744 PHI_ARG_DEF_FROM_EDGE.
745 * tree.h (PHI_RESULT): Renamed to PHI_RESULT_TREE.
746 (PHI_ARG_DEF): Renamed to PHI_ARG_DEF_TREE.
747
748 2004-06-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
749
750 PR tree-optimization/15991
751 * tree-cfg.c (tree_block_label): Export.
752 * tree-flow-inline.h (bsi_after_labels): New function.
753 * tree-flow.h (bsi_after_labels, tree_block_label): Declare.
754 * tree-ssa.c (propagate_into_addr): New function.
755 (replace_immediate_uses): Handle propagation of pointer constants.
756 (raise_value): Do not restrict propagation of pointer constants.
757 * tree-ssanames.c (duplicate_ssa_name): New function.
758 * tree.h (duplicate_ssa_name): Declare.
759
760 2004-06-17 David Ayers <d.ayers@inode.at>
761
762 * c-parse.in: Unify Objective-C token names.
763
764 2004-06-17 Zack Weinberg <zack@codesourcery.com>
765
766 Bug 14610
767 * Makefile.in (min-insn-modes.o): Correct dependencies.
768 * real.c (encode_ieee_extended, decode_ieee_extended): Always
769 produce/consume 12-byte little-endian Intel format.
770 (encode_ieee_extended_128, decode_ieee_extended_128): Delete.
771 (encode_ieee_extended_motorola, decode_ieee_extended_motorola)
772 (encode_ieee_extended_intel_96, decode_ieee_extended_intel_96)
773 (encode_ieee_extended_intel_128, decode_ieee_extended_intel_128):
774 New functions which convert between 12-byte little-endian Intel
775 format and the desired format.
776 (ieee_extended_motorola_format, ieee_extended_intel_96_round_53_format)
777 (ieee_extended_intel_96_format, ieee_extended_intel_128_format):
778 Update.
779
780 2004-06-17 Zack Weinberg <zack@codesourcery.com>
781
782 * expmed.c (expand_mult_const): In sanity check, compare only
783 the bits of val and val_so_far that are significant in the
784 result mode.
785
786 2004-06-17 Daniel Berlin <dberlin@dberlin.org>
787
788 * tree-ssa-pre.c: Update comments.
789 (val_expr_pair_eq): Factor code from here.
790 (expr_pred_trans_eq): and here.
791 (expressions_equal_p): To here.
792 (print_value_set): Print value for expression.
793 (phi_trans_lookup): Rename some variables.
794 (lookup): Ditto.
795 (value_exists_in_set_bitmap): Ditto.
796 (value_remove_from_set_bitmap): Ditto.
797 (value_insert_into_set_bitmap): Ditto.
798
799 2004-06-17 Ulrich Weigand <uweigand@de.ibm.com>
800
801 * config/s390/s390-modes.def (CCL3mode): New machine mode.
802 * config/s390/s390.c (s390_match_ccmode_set): Support CCL3mode.
803 (s390_alc_comparison, s390_slb_comparison): Likewise.
804 (s390_branch_condition_mask): Likewise.
805 * config/s390/s390.md ("*subdi3_cc2", "*subdi3_cconly2"): New.
806 ("*subsi3_cc2", "*subsi3_cconly2"): New.
807
808 * config/s390/s390.h (PREDICATE_CODE): Accept SIGN_EXTEND and
809 ZERO_EXTEND for s390_alc_comparison and s390_slb_comparison.
810 * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
811 Handle SIGN_EXTEND and ZERO_EXTEND.
812
813 * config/s390/s390-protos.h (s390_expand_addcc): New prototype.
814 * config/s390/s390.c (s390_expand_addcc): New function.
815 * config/s390/s390.md ("adddicc", "addsicc"): New expanders.
816 ("*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg"): New insns.
817 ("sltu", "sgtu", "sleu", "sgeu"): New expanders.
818
819 2004-06-17 Ben Elliston <bje@au.ibm.com>
820
821 * tree-alias-common.c: Add whitespace.
822 * tree-inline.c: Correct comment about this file's purpose.
823 * tree-optimize.c: Likewise.
824 * tree-tailcall.c: Likewise.
825
826 * tree-alias-ander.h: Add standard top-of-file comment.
827 * tree-alias-common.h: Likewise.
828 * tree-alias-type.h: Likewise.
829
830 2004-06-16 Daniel Berlin <dberlin@dberlin.org>
831
832 * tree-ssa-pre.c (compute_avail): Value number uses as well.
833 Strip useless type conversions.
834 Casts have to be treated slightly different than normal unaries.
835
836 2004-06-16 Richard Henderson <rth@redhat.com>
837
838 * c-common.def (COMPOUND_STMT): Remove.
839 * c-common.c (finish_fname_decls): Don't look through it.
840 * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
841 * c-common.h (COMPOUND_BODY): Remove.
842 (c_common_stmt_codes): Remove COMPOUND_STMT.
843 * c-dump.c (c_dump_tree): Likewise.
844 * c-gimplify.c (c_gimplify_stmt): Likewise.
845 * c-pretty-print.c (pp_c_statement): Likewise.
846 * tree.h (DECL_SAVED_TREE): Update commentary.
847 * doc/c-tree.texi (ASM_EXPR): Rename from ASM_STMT.
848 (CASE_LABEL_EXPR): Rename from CASE_LABEL.
849 (GOTO_EXPR): Rename from GOTO_STMT.
850 (GOTO_FAKE_P): Remove.
851 (COMPOUND_STMT): Remove.
852 (HANDLER): Update wrt COMPOUND_STMT.
853 (STMT_EXPR): Likewise.
854 (LABEL_EXPR): Rename from LABEL_STMT.
855 (SCOPE_STMT): Remove.
856 * objc/objc-act.c (objc_build_try_catch_finally_stmt): Don't look
857 through COMPOUND_STMT.
858
859 2004-06-16 Richard Henderson <rth@redhat.com>
860
861 * c-common.h (c_begin_if_stmt, c_begin_while_stmt,
862 c_finish_while_stmt_cond): Remove decls.
863 * c-parse.in (if_prefix): Don't save c_begin_if_stmt result.
864 * c-typeck.c (c_begin_if_stmt): Return void.
865 (c_begin_else): Tidy. Save stmt_count.
866 * c-tree.h (c_begin_if_stmt): Update decl.
867
868 * objc/objc-act.c (objc_build_try_enter_fragment,
869 objc_build_extract_fragment, objc_build_try_epilogue,
870 objc_build_catch_stmt, objc_build_catch_epilogue,
871 objc_build_finally_prologue, objc_build_finally_epilogue): Update
872 for if builder function changes.
873
874 2004-06-16 Ulrich Weigand <uweigand@de.ibm.com>
875
876 * config/s390/s390.c (struct machine_function): New member
877 last_restore_gpr.
878 (s390_frame_info): Add BASE_USED and RETURN_ADDR_USED parameters.
879 Do not modify machine->save_return_addr_p or regs_ever_live.
880 Fill in machine->last_restore_gpr.
881 (s390_optimize_prolog): Use s390_frame_info to compute registers
882 to save/restore, remove duplicated code.
883 (s390_arg_frame_offset): Use s390_frame_info to compute frame
884 size, remove duplicated code.
885 (s390_emit_prologue): Adapt s390_frame_info call. Update
886 machine->save_return_addr_p and regs_ever_live.
887 (s390_emit_epilogue): Use machine->last_restore_gpr instead of
888 machine->last_save_gpr.
889
890 2004-06-16 Richard Henderson <rth@redhat.com>
891
892 * c-parse.in (if_stmt_locus): Remove.
893 (if_prefix): Increment stmt_count; pass it to c_finish_if_cond.
894 (select_or_iter_stmt): Move empty if warnings to c-typeck.c.
895 * c-typeck.c (if_elt): Sort by expected size. Rename locus to
896 empty_locus. Add stmt_count, saw_else.
897 (c_begin_if_stmt): Push if_stack here.
898 (c_finish_if_cond): Rename from c_expand_end_cond. Record stmt_count.
899 (c_finish_then, c_finish_else): Record empty_locus.
900 (c_begin_else): Rename from c_expand_start_else. Record stmt_count.
901 (c_finish_if_stmt): Rename from c_expand_end_cond. Warn for empty
902 if or else body.
903 * c-tree.h: Update prototypes.
904
905 2004-06-16 Steven Bosscher <stevenb@suse.de>
906
907 * tree.h (PHI_CHAIN): New.
908 * (tree-cfg.c, tree-dfa.c, tree-flow-inline.h, tree-into-ssa.c,
909 tree-outof-ssa.c, tree-phinodes.c, tree-pretty-print.c,
910 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-dse.c,
911 tree-ssa-live.c, tree-ssa-loop.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
912 tree-ssa.c, tree-tailcall.c): Use PHI_CHAIN instead of TREE_CHAIN
913 when traversing a list of PHI_NODEs.
914
915 2004-06-16 Bernardo Innocenti <bernie@develer.com>
916
917 PR target/13292
918 * config/m68k/m68k.h (TARGET_SWITCHES): Don't remove MASK_68040_ONLY
919 on -msoft-float.
920 (TARGET_FLT_EVAL_METHOD): Don't advertise extended precision for
921 68040 and soft-float.
922 * config/m68k/m68k.md (truncdfsf2): Explicitly require TARGET_68881
923 in the TARGET_68040_ONLY case.
924
925 2004-06-16 Peter Barada <peter@the-baradas.com>
926
927 * config/m68k/m68k.md (movsi_cfv4): New pattern to allow mov3q.
928 (movsi_cf): Make named, don't match TARGET_CFV4.
929 (pushexthisi_const): Use mov3q if possible.
930 (extendhisi2, cvf4_extendhisi2): Split extendhisi2 pattern
931 to special case mvz.w for ColdFire V4.
932 (extendqisi2, cvf4_extendqisi2): Split extendhisi2 pattern
933 to special case mvz.b for ColdFire V4.
934 (udivmodhi4, divmodhi4): Use mvz to zero extend arg for
935 divide.
936 (iorsi3, xorsi3, andsi3): Use bitfield instructions if possible.
937 * config/m68k/m68k.c(valid_mov3q_const): New function.
938 (const_method): SWAP is valid for ColdFire.
939 (MULL_COST, MULW_COST): Fix costs for ColdFire V3/V4.
940 * config/m68k/m68k-protos.h (valid_mov3q_const): Prototype here.
941
942 2004-06-16 Richard Henderson <rth@redhat.com>
943
944 * c-common.def (CASE_LABEL): Remove.
945 * c-common.c (c_add_case_label): Use CASE_LABEL, not CASE_LABEL_DECL.
946 (match_case_to_enum_1): Likewise.
947 * c-common.h (c_common_stmt_codes): Remove CASE_LABEL.
948 * c-dump.c (c_dump_tree): Likewise.
949 * c-gimplify.c (c_gimplify_stmt): Likewise.
950 * c-pretty-print.c (pp_c_statement): Likewise.
951 * c-semantics.c (build_case_label): Use CASE_LABEL_EXPR.
952 * tree.h (CASE_LOW): Update commentary.
953
954 2004-06-16 Richard Henderson <rth@redhat.com>
955
956 * c-common.def (ASM_STMT): Remove.
957 * c-common.h (c_common_stmt_codes): Remove ASM_STMT.
958 * c-dump.c (c_dump_tree): Likewise.
959 * c-gimplify.c (c_gimplify_stmt): Likewise.
960 * c-pretty-print.c (pp_c_statement): Likewise.
961 * c-typeck.c (build_asm_expr): Use ASM_EXPR.
962 * tree.h: Fix commentary.
963
964 2004-06-16 Richard Henderson <rth@redhat.com>
965
966 * c-common.def (GOTO_STMT, LABEL_STMT): Remove.
967 * c-common.c (c_add_case_label): Use LABEL_EXPR.
968 * c-common.h (GOTO_FAKE_P, LABEL_STMT_LABEL): Remove.
969 (c_common_stmt_codes): Remove GOTO_STMT, LABEL_STMT.
970 * c-dump.c (c_dump_tree): Likewise.
971 * c-gimplify.c (c_gimplify_stmt): Likewise.
972 * c-pretty-print.c (pp_c_statement): Likewise.
973 * c-parse.in (stmt): Use GOTO_EXPR.
974 (label): Use LABEL_EXPR.
975 * c-semantics.c (build_stmt): Set TREE_TYPE to void.
976 * tree-inline.c (copy_body_r): Don't build empty BLOCKs.
977
978 2004-06-16 J"orn Rennecke <joern.rennecke@superh.com>
979
980 * cfgcleanup.c (try_simplify_condjump): Update test to make
981 sure we have a conditional branch around am unconditional branch.
982
983 2004-06-16 Daniel Berlin <dberlin@dberlin.org>
984
985 * tree-cfg.c (pass_split_crit_edge): Give it a name and a dump file.
986
987 2004-06-16 Dale Johannesen <dalej@apple.com>
988
989 * loop.c (loop_givs_reduce): Avoid miscompilation of
990 loops entered at bottom.
991
992 2004-06-16 J"orn Rennecke <joern.rennecke@superh.com>
993
994 * cfglayout.c (fixup_reorder_chain): Handle case where the
995 destination of E_FALL is EXIT_BLOCK_PTR.
996
997 2004-06-16 Vladimir Makarov <vmakarov@redhat.com>
998
999 PR target/15653
1000 * config/ia64/ia64.c (ia64_dfa_new_cycle): Do not insert nops
1001 after shifts before asm.
1002
1003 2004-06-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1004
1005 PR tree-optimization/15993
1006 * tree-ssa-dom.c (thread_across_edge): Do not thread edge if its
1007 destination is unchanged.
1008
1009 2004-06-16 Andreas Jaeger <aj@suse.de>
1010
1011 * doc/install.texi (Configuration): Update description for
1012 --enable-version-specific-runtime-libs.
1013
1014 2004-06-16 Paolo Bonzini <bonzini@gnu.org>
1015
1016 * doc/install.texi: boehm-gc now uses automake 1.8.5.
1017
1018 2004-06-16 Paolo Bonzini <bonzini@gnu.org>
1019
1020 * toplev.h (rest_of_compilation): Adjust prototype.
1021
1022 2004-06-16 Paolo Bonzini <bonzini@gnu.org>
1023
1024 * coverage.c: Remove argument to rest_of_compilation.
1025 * expr.c (execute_expand, set_save_expr_context, pass_expand): New.
1026 * passes.c (rest_of_compilation): Remove argument.
1027 (pass_rest_of_compilation): New.
1028 (rest_of_handle_final, rest_of_handle_delay_slots,
1029 rest_of_handle_stack_regs, rest_of_handle_variable_tracking
1030 rest_of_handle_machine_reorg, rest_of_handle_regrename
1031 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_gcse2
1032 rest_of_handle_regmove, rest_of_handle_tracer
1033 rest_of_handle_if_conversion, rest_of_handle_if_after_combine
1034 rest_of_handle_web, rest_of_handle_branch_prob
1035 rest_of_handle_value_profile_transformations, rest_of_handle_cfg
1036 rest_of_handle_addressof, rest_of_handle_jump_bypass
1037 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2):
1038 Check that the two arguments are actually superfluous.
1039 * tree-optimize.c (register_dump_files): Add properties argument.
1040 Track validity of passes. Only initialize dump files for
1041 tree-based passes. Store the full set of provided passes in
1042 the pass.
1043 (init_tree_optimization_passes): Register pass_expand and
1044 pass_rest_of_compilation.
1045 (execute_one_pass): Do not track the presence of required properties
1046 here. Set in_gimple_form. Do not update current_properties.
1047 (current_properties): Remove.
1048 (set_save_expr_context): Remove.
1049 (tree_rest_of_compilation): Do not set in_gimple_form. Do not
1050 expand to RTL here, and do not call rest_of_compilation. Push
1051 GGC context even before gimplification.
1052 * tree-pass.h (PROP_rtl, PROP_trees): New flags.
1053 (pass_expand, pass_rest_of_compilation): Declare.
1054
1055 2004-06-15 Jeff Law <law@redhat.com>
1056
1057 * fold-const.c (swap_tree_comparison): No longer static.
1058 (tree_swap_operands_p): Similarly. Return true if both operands
1059 are SSA_NAMEs and the first operand has a higher version number than
1060 the second operand.
1061 * tree.h (swap_tree_comparison): Prototype.
1062 (tree_swap_operands_p): Prototype.
1063 * tree-ssa-operands.c (get_expr_operands): For commutative
1064 operators and relational comparisons, canonicalize the
1065 order of the operands.
1066
1067 2004-06-15 Richard Henderson <rth@redhat.com>
1068
1069 * c-common.c (lang_gimplify_stmt): Remove next_p argument.
1070 (if_elt, if_stack, if_stack_space, c_expand_start_cond, c_finish_then,
1071 c_expand_end_cond, c_expand_start_else, c_finish_else, c_begin_if_stmt,
1072 c_begin_while_stmt, c_finish_while_stmt_cond): Move to c-typeck.c.
1073 (finish_fname_decls, fname_decl): Use statement_lists.
1074 (c_expand_expr_stmt): Don't set last_expr_type.
1075 (c_type_hash): Fix indentation.
1076 (c_safe_from_p): Don't follow TREE_CHAIN.
1077 (c_tree_chain_matters_p): Remove.
1078 * c-common.def (SCOPE_STMT): Remove.
1079 (CLEANUP_STMT): Redefine to contain its own body.
1080 * c-common.h (struct stmt_tree_s): Remove x_last_stmt,
1081 x_last_expr_type, x_last_expr_filename, x_scope_stmt_stack.
1082 Add x_cur_stmt_list.
1083 (last_tree, last_expr_type, last_expr_filename, RECHAIN_STMTS): Remove.
1084 (cur_stmt_list): New.
1085 (STATEMENT_LIST_STMT_EXPR): New.
1086 (SCOPE_BEGIN_P, SCOPE_END_P, SCOPE_STMT_BLOCK, SCOPE_NULLIFIED_P,
1087 SCOPE_NO_CLEANUPS_P, SCOPE_PARTIAL_P, NEW_FOR_SCOPE_P): Remove.
1088 (CLEANUP_BODY): New.
1089 (CLEANUP_DECL): Move to operand 2.
1090 (c_common_stmt_codes): Remove SCOPE_STMT.
1091 (COMPOUND_STMT_NO_SCOPE, COMPOUND_STMT_BODY_BLOCK): Remove.
1092 * c-decl.c (c_scope_stmt_stack, current_scope_stmt_stack): Remove.
1093 (c_push_function_context, c_pop_function_context): Don't save it.
1094 (finish_decl): Set TREE_USED on the decl for a cleanup.
1095 Use push_cleanup.
1096 (store_parm_decls): Use statement lists.
1097 (finish_function): Remove compstmt rule workaround. Use statement
1098 lists. Call finish_fname_decls after finalizing the body.
1099 (c_begin_compound_stmt): Move to c-typeck.c.
1100 * c-dump.c (c_dump_tree): Remove SCOPE_STMT.
1101 * c-gimplify.c (gimplify_cleanup_stmt, gimplify_cleanup_stmts): New.
1102 (c_genericize): Invoke them.
1103 (c_gimplify_stmt): Don't look through TREE_CHAIN. Kill SCOPE_STMT.
1104 (c_build_bind_expr): Export.
1105 (gimplify_block, gimplify_cleanup): Remove.
1106 (gimplify_condition): Use gimplify_stmt.
1107 (gimplify_for_stmt): Remove FOR_INIT_STMT chaining hack.
1108 (gimplify_if_stmt): Remove recursion hack.
1109 (c_gimplify_expr): Remove STMT_EXPR handling.
1110 (stmt_expr_last_stmt, gimplify_stmt_expr): Remove.
1111 (is_last_stmt_of_scope): Remove.
1112 * c-lang.c (LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P): Remove.
1113 * c-mudflap.c (mflang_flush_calls): Use c_begin_compound_stmt,
1114 c_end_compound_stmt.
1115 * c-objc-common.c (build_cdtor): Likewise.
1116 * c-parse.in (primary): Use c_finish_stmt_expr.
1117 (push_scope, pop_scope): Remove.
1118 (c99_block_start, compstmt_start): Use c_begin_compound_stmt.
1119 (c99_block_end, compstmt): Use c_end_compound_stmt.
1120 (c99_block_lineno_labeled_stmt): Likewise.
1121 (compstmt_primary_start): Use c_begin_stmt_expr.
1122 (simple_if, select_or_iter_stmt): Update calls to stmt builders.
1123 (do_stmt_start): Fill in body directly.
1124 (lineno_stmt): Avoid setting lineno on constants.
1125 * c-pretty-print.c (pp_c_statement): Handle STATEMENT_LIST.
1126 Remove SCOPE_STMT.
1127 * c-semantics.c (begin_stmt_tree): Remove.
1128 (push_stmt_list, re_push_stmt_list, pop_stmt_list): New.
1129 (add_stmt): Use statement lists.
1130 (add_scope_stmt, finish_stmt_tree): Remove.
1131 (push_cleanup): New.
1132 * c-tree.h: Move some decls from c-common.h.
1133 * c-typeck.c (c_tree_expr_nonnegative_p): Simplify for statement lists.
1134 (do_case, c_finish_case): Likewise.
1135 (c_finish_then): Take body for then as argument.
1136 (c_finish_else): Similarly.
1137 (c_begin_for_stmt, c_finish_for_stmt_init, c_finish_for_stmt_cond,
1138 c_finish_for_stmt_incr, c_finish_for_stmt): New.
1139 (c_begin_stmt_expr, c_finish_stmt_expr): New.
1140 (c_begin_compound_stmt): Do scope management.
1141 (c_end_compound_stmt): New.
1142 * fold-const.c (tree_expr_nonnegative_p): Fix BIND_EXPR.
1143 * gimplify.c (voidify_wrapper_expr): Accept temporary argument.
1144 Look through exception handling constructs.
1145 (gimplify_bind_expr): Accept temporary argument.
1146 (gimplify_target_expr): Special case BIND_EXPR bodies.
1147 (gimplify_expr): Handle fallback == fb_none like a statement.
1148 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P): Kill.
1149 * langhooks.c (lhd_tree_inlining_tree_chain_matters_p): Remove.
1150 * langhooks.h (tree_chain_matters_p): Remove.
1151 * stub-objc.c (objc_clear_super_receiver): New.
1152 * tree-gimple.h (voidify_wrapper_expr): Update decl.
1153 (append_to_statement_list, append_to_statement_list_force): Move
1154 to tree-iterator.h.
1155 * tree-inline.c (expand_call_inline): Update call.
1156 (clone_body): Use statement lists.
1157 (walk_tree): Don't check tree_chain_matters_p.
1158 (copy_tree_r): Likewise.
1159 * tree-iterator.c (alloc_stmt_list): Clear lang bits.
1160 (tsi_link_before, tsi_link_after): Set TREE_SIDE_EFFECTS properly.
1161 * tree-iterator.h (append_to_statement_list,
1162 append_to_statement_list_force): Moved from tree-gimple.h.
1163 * tree-pretty-print.c (dump_generic_node): Clean up TARGET_EXPR dump.
1164 * objc/objc-act.c (build_module_descriptor): Use c_begin_compound_stmt.
1165 (objc_enter_block): Likewise.
1166 (objc_exit_block): Use c_end_compound_stmt.
1167 (objc_build_try_enter_fragment): Add #error and comment for
1168 rewriting for OBJCPLUS.
1169 (objc_build_extract_fragment, objc_build_try_epilogue,
1170 objc_build_catch_stmt, objc_build_finally_prologue,
1171 objc_build_finally_epilogue): Update for C statement builders.
1172 * objc/objc-lang.c (LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P):
1173 Remove.
1174
1175 2004-06-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1176
1177 * df.c (df_reg_clobber_gen): Removed.
1178 (df_bb_rd_local_compute, df_insn_refs_record, df_rd_local_compute):
1179 Make more effective for hard regs.
1180 * ra-build.c (livethrough_conflicts_bb): Check contains_call.
1181
1182 2004-06-15 Alexandre Oliva <aoliva@redhat.com>
1183
1184 * c-pragma.h (c_lex_string_translate): Change type to int.
1185 * c-parse.in: Change all assignments of c_lex_string_translate
1186 to true and false to 1 and 0.
1187 * c-lex.c (c_lex_string_translate): Likewise.
1188 (lex_string): Convert string without translation in the -1
1189 case.
1190
1191 2004-06-15 Mark G. Adams <mark.g.adams@sympatico.ca>
1192
1193 * convert.h: Add include guards
1194
1195 2004-06-15 Daniel Berlin <dberlin@dberlin.org>
1196
1197 * tree-flow-inline.h: Document all functions.
1198
1199 2004-06-15 Daniel Berlin <dberlin@dberlin.org>
1200
1201 * tree-flow-inline.h (stmt_ann): Remove use of is_essa_node.
1202 * tree-dfa.c (create_stmt_ann): Ditto.
1203 * tree-pretty-print.c (dump_generic_node): Remove E* node handling.
1204 * tree-inline.c (estimate_num_insns_1): Ditto.
1205 * tree.c (tree_size): Ditto.
1206 (make_node_stat): Ditto.
1207 (tree_node_structure): Ditto.
1208 (ephi_node_elt_check_failed): Remove.
1209 (is_essa_node): Ditto.
1210 * tree.def (EPHI_NODE): Ditto.
1211 (EEXIT_NODE): Ditto.
1212 (EUSE_NODE): Ditto.
1213 (EKILL_NODE): Ditto.
1214 * tree.h (EREF_NODE_CHECK): Remove.
1215 (EPHI_NODE_ELT_CHECK): Ditto.
1216 (struct tree_eref_common): Ditto.
1217 (struct tree_euse_node): Ditto.
1218 (struct ephi_arg_d): Ditto.
1219 (struct tree_ephi_node): Ditto.
1220 (ephi_node_elt_check_failed): Remove prototype.
1221 (is_essa_node): Ditto.
1222 (enum tree_node_structure_enum): Remove TS_E*_NODE.
1223 (union tree_node): Remove E*_NODE uses.
1224
1225 2004-06-15 Jerry Quinn <jlquinn@optonline.net>
1226
1227 * alias.c (record_set, record_base_value, canon_rtx, get_addr,
1228 nonlocal_mentioned_p_1, init_alias_analysis): Use REG_P.
1229 * bt-load.c (find_btr_reference, insn_sets_btr_p, note_btr_set):
1230 Likewise.
1231 * builtins.c (expand_builtin_setjmp, expand_builtin_apply,
1232 expand_builtin_mathfn, expand_builtin_strlen, expand_builtin_memcmp,
1233 expand_builtin_strcmp, expand_builtin_strncmp,
1234 expand_builtin_frame_address): Likewise.
1235 * caller-save.c (mark_set_regs, add_stored_regs, mark_referenced_regs,
1236 insert_one_insn): Likewise.
1237 * calls.c (prepare_call_address, precompute_register_parameters,
1238 precompute_arguments, expand_call, emit_library_call_value_1): Likewise.
1239 * cfganal.c (flow_active_insn_p): Likewise.
1240 * combine.c (set_nonzero_bits_and_sign_copies, can_combine_p,
1241 combinable_i3pat, try_combine, find_split_point, COMBINE_RTX_EQUAL_P,
1242 subst, combine_simplify_rtx, simplify_if_then_else, simplify_set,
1243 make_extraction, recog_for_combine, gen_lowpart_for_combine,
1244 simplify_comparison, record_dead_and_set_regs_1,
1245 record_dead_and_set_regs, record_promoted_value,
1246 check_promoted_subreg, get_last_value_validate, get_last_value,
1247 reg_dead_at_p_1, reg_bitfield_target_p, distribute_notes,
1248 unmentioned_reg_p_1): Likewise.
1249 * conflict.c (mark_reg): Likewise.
1250 * cse.c (HASH, COST, COST_IN, approx_reg_cost_1, notreg_cost,
1251 mention_regs, insert_regs, lookup, lookup_for_remove, insert,
1252 merge_equiv_classes, flush_hash_table, invalidate,
1253 remove_invalid_refs, remove_invalid_subreg_refs, rehash_using_reg,
1254 invalidate_for_call, use_related_value, canon_hash, exp_equiv_p,
1255 cse_rtx_varies_p, canon_reg, find_best_addr, fold_rtx, equiv_constant,
1256 record_jump_cond, cse_insn, addr_affects_sp_p,
1257 invalidate_from_clobbers, cse_process_notes, cse_around_loop,
1258 cse_set_around_loop, count_reg_usage, set_live_p, cse_change_cc_mode,
1259 cse_cc_succs, cse_condition_code_reg): Likewise.
1260 * cselib.c (cselib_reg_set_mode, rtx_equal_for_cselib_p,
1261 cselib_lookup, cselib_invalidate_regno, cselib_invalidate_rtx,
1262 cselib_record_set, cselib_record_sets): Likewise.
1263 * dbxout.c (dbxout_symbol_location, dbxout_parms, dbxout_reg_parms,
1264 dbxout_block): Likewise.
1265 * df.c (df_ref_record, df_def_record_1, df_uses_record): Likewise.
1266 * dojump.c (do_jump): Likewise.
1267 * dwarf2out.c (dwarf2out_frame_debug_expr, is_pseudo_reg,
1268 is_based_loc, rtl_for_decl_location): Likewise.
1269 * emit-rtl.c (set_reg_attrs_for_parm, set_decl_rtl,
1270 set_decl_incoming_rtl, mark_user_reg): Likewise.
1271 * explow.c (copy_all_regs, copy_all_regs, memory_address, force_reg,
1272 copy_to_suggested_reg, allocate_dynamic_stack_space,
1273 probe_stack_range, hard_function_value): Likewise.
1274 * expmed.c (store_bit_field, store_fixed_bit_field,
1275 store_split_bit_field, extract_bit_field, extract_fixed_bit_field,
1276 extract_split_bit_field, expand_divmod, emit_store_flag_force):
1277 Likewise.
1278 * expr.c (convert_move, convert_modes,
1279 block_move_libcall_safe_for_call_parm, emit_group_load, use_reg,
1280 use_group_regs, emit_move_insn, emit_move_insn_1,
1281 compress_float_constant, push_block, emit_single_push_insn,
1282 emit_push_insn, get_subtarget, expand_assignment, store_expr,
1283 store_constructor, store_field, force_operand, safe_from_p,
1284 expand_expr_real_1, expand_increment, do_store_flag, do_tablejump):
1285 Likewise.
1286 * final.c (profile_function, final_scan_insn, alter_subreg,
1287 get_mem_expr_from_op, output_asm_operand_names, output_operand,
1288 only_leaf_regs_used, leaf_renumber_regs_insn): Likewise.
1289 * flow.c (verify_wide_reg_1, mark_regs_live_at_end,
1290 find_regno_partial, propagate_one_insn, init_propagate_block_info,
1291 insn_dead_p, libcall_dead_p, mark_set_1, not_reg_cond,
1292 attempt_auto_inc, find_auto_inc, mark_used_regs,
1293 count_or_remove_death_notes_bb): Likewise.
1294 * function.c (find_temp_slot_from_address, update_temp_slot_address,
1295 preserve_temp_slots, put_var_into_stack, fixup_var_refs_insn,
1296 fixup_var_refs_1, fixup_stack_1, optimize_bit_field, flush_addressof,
1297 put_addressof_into_stack, purge_addressof_1, insns_for_mem_walk,
1298 purge_single_hard_subreg_set, instantiate_decl,
1299 instantiate_virtual_regs_1, aggregate_value_p, assign_parms,
1300 promoted_input_arg, setjmp_vars_warning, setjmp_args_warning,
1301 setjmp_protect, setjmp_protect_args, fix_lexical_addr,
1302 expand_function_start, diddle_return_value, clobber_return_register,
1303 expand_function_end, keep_stack_depressed, handle_epilogue_set,
1304 update_epilogue_consts): Likewise.
1305 * genemit.c (gen_exp, gen_insn): Likewise.
1306 * genrecog.c (make_insn_sequence): Likewise.
1307 * global.c (global_conflicts, expand_preferences, mark_reg_store,
1308 mark_reg_conflicts, set_preference, reg_becomes_live,
1309 build_insn_chain, mark_reg_change): Likewise.
1310 * haifa_sched.c (CONST_BASED_ADDRESS_P, find_set_reg_weight):
1311 Likewise.
1312 * ifcvt.c (noce_try_abs, noce_get_condition, noce_process_if_block):
1313 Likewise.
1314 * integrate.c (copy_rtx_and_substitute, try_constants,
1315 subst_constants, mark_stores, allocate_initial_values): Likewise.
1316 * jump.c (reversed_comparison_code_parts, delete_prior_computation,
1317 delete_computation, rtx_renumbered_equal_p, true_regnum,
1318 reg_or_subregno): Likewise.
1319 * lcm.c (reg_dies, reg_becomes_live): Likewise.
1320 * local-alloc.c (validate_equiv_mem_from_store, validate_equiv_mem,
1321 update_equiv_regs, no_equiv, block_alloc, combine_regs, reg_is_set,
1322 wipe_dead_reg, no_conflict_p): Likewise.
1323 * loop-iv.c (simple_reg_p, simple_set_p, kill_sets,
1324 iv_get_reaching_def, iv_analyze_biv, altered_reg_used, mark_altered,
1325 simple_rhs_p, simplify_using_assignment, implies_p): Likewise.
1326 * loop.c (scan_loop, combine_movables, rtx_equal_for_loop_p,
1327 move_movables, note_set_pseudo_multiple_uses, consec_sets_invariant_p,
1328 find_single_use_in_loop, count_one_set, loop_bivs_init_find,
1329 loop_givs_rescan, check_insn_for_bivs, check_insn_for_givs,
1330 valid_initial_value_p, simplify_giv_expr, consec_sets_giv,
1331 loop_regs_update, check_dbra_loop, maybe_eliminate_biv,
1332 maybe_eliminate_biv_1, record_initial, update_reg_last_use,
1333 canonicalize_condition, loop_regs_scan, load_mems, try_copy_prop,
1334 try_swap_copy_prop): Likewise.
1335 * optabs.c (expand_binop, expand_vector_binop, expand_vector_unop,
1336 expand_abs, emit_no_conflict_block, emit_libcall_block, expand_float):
1337 Likewise.
1338 * postreload.c (reload_cse_simplify, reload_cse_simplify_set,
1339 reload_cse_simplify_operands, reload_combine,
1340 reload_combine_note_store, reload_combine_note_use,
1341 reload_cse_move2add, move2add_note_store): Likewise.
1342 * print-rtl.c (print_rtx): Likewise.
1343 * ra-build.c (copy_insn_p, remember_move, init_one_web_common,
1344 contains_pseudo, handle_asm_insn): Likewise.
1345 * ra-debug.c (ra_print_rtx_object, dump_constraints,
1346 dump_static_insn_cost): Likewise.
1347 * ra-rewrite.c (slots_overlap_p, emit_colors,
1348 remove_suspicious_death_notes): Likewise.
1349 * recog.c (validate_replace_rtx_1, find_single_use_1, find_single_use,
1350 register_operand, scratch_operand, nonmemory_operand,
1351 constrain_operands): Likewise.
1352 * reg-stack (check_asm_stack_operands, remove_regno_note,
1353 emit_swap_insn, swap_rtx_condition, subst_stack_regs_pat,
1354 subst_asm_stack_regs): Likewise.
1355 * regclass.c (scan_one_insn, record_reg_classes, copy_cost,
1356 record_address_regs, reg_scan_mark_refs): Likewise.
1357 * regmove.c (discover_flags_reg, replacement_quality,
1358 copy_src_to_dest, reg_is_remote_constant_p, regmove_optimize,
1359 fixup_match_1): Likewise.
1360 * regrename.c (note_sets, clear_dead_regs, build_def_use, kill_value,
1361 kill_set_value, copyprop_hardreg_forward_1): Likewise.
1362 * reload.c (MATCHES, push_secondary_reload, find_reusable_reload,
1363 reload_inner_reg_of_subreg, can_reload_into, push_reload,
1364 combine_reloads, find_dummy_reload, hard_reg_set_here_p,
1365 operands_match_p, decompose, find_reloads, find_reloads_toplev,
1366 find_reloads_address, subst_indexed_address, find_reloads_address_1,
1367 find_reloads_subreg_address, find_replacement,
1368 refers_to_regno_for_reload_p, reg_overlap_mentioned_for_reload_p,
1369 refers_to_mem_for_reload_p, find_equiv_reg, regno_clobbered_p): Likewise.
1370 * reload1.c (replace_pseudos_in, reload, calculate_needs_all_insns,
1371 find_reg, delete_dead_insn, alter_reg, eliminate_regs,
1372 elimination_effects, eliminate_regs_in_insn, scan_paradoxical_subregs,
1373 forget_old_reloads_1, reload_reg_free_for_value_p, choose_reload_regs,
1374 emit_input_reload_insns, emit_output_reload_insns, do_input_reload,
1375 do_output_reload, emit_reload_insns, gen_reload,
1376 delete_address_reloads_1, inc_for_reload): Likewise.
1377 * reorg.c (update_reg_dead_notes, fix_reg_dead_note,
1378 update_reg_unused_notes, fill_slots_from_thread): Likewise.
1379 * resource.c (update_live_status, mark_referenced_resources,
1380 mark_set_resources, mark_target_live_regs): Likewise.
1381 * rtlanal.c (nonzero_address_p, get_jump_table_offset,
1382 global_reg_mentioned_p_1, reg_mentioned_p, reg_referenced_p,
1383 reg_set_p, set_noop_p, find_last_value, refers_to_regno_p,
1384 note_stores, dead_or_set_p, dead_or_set_regno_p, find_regno_note,
1385 find_reg_fusage, find_regno_fusage, replace_regs, regno_use_in,
1386 parms_set, find_first_parameter_load, keep_with_call_p,
1387 hoist_test_store, hoist_update_store, address_cost, nonzero_bits1,
1388 num_sign_bit_copies1): Likewise.
1389 * rtlhooks.c (gen_lowpart_general): Likewise.
1390 * sched-deps.c (deps_may_trap_p, sched_analyze_1, sched_analyze_insn,
1391 sched_analyze): Likewise.
1392 * sched-rgn.c (check_live_1, update_live_1, sets_likely_spilled_1):
1393 Likewise.
1394 * sdbout.c (sdbout_symbol, sdbout_parms, sdbout_reg_parms): Likewise.
1395 * simplify-rtx.c (simplify_replace_rtx, simplify_unary_operation,
1396 simplify_binary_operation, simplify_const_relational_operation,
1397 simplify_subreg): Likewise.
1398 * stmt.c (decl_conflicts_with_clobbers_p, expand_asm_operands,
1399 expand_end_stmt_expr, expand_return, expand_decl,
1400 expand_anon_union_decl): Likewise.
1401 * unroll.c (precondition_loop_p, calculate_giv_inc, copy_loop_body,
1402 find_splittable_regs, find_splittable_givs, find_common_reg_term,
1403 loop_iterations): Likewise.
1404 * var-tracking.c (variable_union, variable_part_different_p,
1405 variable_different_p, count_uses, add_uses, add_stores,
1406 compute_bb_dataflow, set_variable_part, delete_variable_part,
1407 emit_notes_in_bb, vt_get_decl_and_offset, vt_add_function_parameters):
1408 Likewise.
1409 * varasm.c (assemble_variable): Likewise.
1410
1411 2004-06-15 Chris Demetriou <cgd@broadcom.com>
1412
1413 * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove
1414 definition.
1415 * config/mips/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove
1416 #undef and #if 0'd definition.
1417
1418 2004-06-15 J"orn Rennecke <joern.rennecke@superh.com>
1419
1420 * combine.c (distribute_notes): Comment typo fix.
1421
1422 2004-06-15 Roger Sayle <roger@eyesopen.com>
1423
1424 * expmed.c (synth_mult): Mask bits of the multiplier to the
1425 machine mode of the multiplication. Don't consider shifts
1426 by more than (or equal to) the width of the operation's mode.
1427
1428 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1429
1430 * doc/install.texi: Yet another update for autoconf
1431 and automake versions.
1432
1433 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1434
1435 * function.h (struct function): Remove cannot_inline field.
1436 (current_function_cannot_inline): Remove.
1437 * passes.c (rest_of_compilation): Reset DECL_DEFER_OUTPUT.
1438 Simplify conditionals to ignore warn_return_type.
1439 * tree-optimize.c (tree_rest_of_compilation): Do not reset
1440 DECL_DEFER_OUTPUT.
1441 * objc/objc-act.c (build_module_descriptor, finish_method_def):
1442 Do not set current_function_cannot_inline.
1443
1444 2004-06-15 J"orn Rennecke <joern.rennecke@superh.com>
1445
1446 * cfglayout.c (fixup_reorder_chain): Handle case where the
1447 destination of E_TAKEN is EXIT_BLOCK_PTR.
1448
1449 2004-06-15 Diego Novillo <dnovillo@redhat.com>
1450
1451 * tree-ssa-copy.c (cprop_into_successor_phis): Fix typo.
1452
1453 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1454
1455 * fold-const.c (operand_equal_p): Update comment.
1456
1457 2004-06-15 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1458
1459 * config/m32r/m32r.h (RETURN_ADDR_RTX): Define.
1460 (INCOMING_RETURN_ADDR_RTX): Define.
1461 * config/m32r/m32r-protos.h (m32r_return_addr): Added.
1462 * config/m32r/m32r.c (m32r_exppand_prologue): Changed for
1463 __builtin_return_address(0).
1464 (m32r_return_addr): Added for __builtin_return_address(0).
1465 (m32r_reload_lr): Ditto.
1466
1467 * longlong.h: Fix macros for m32r add_ssaaaa and sub_ddmmss.
1468
1469 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1470
1471 * doc/install.texi (Prerequisites): Update libbanshee,
1472 fastjar, libcpp, libjava/libltdl entries to
1473 automake 1.8.5.
1474
1475 2004-06-15 Eric Botcazou <ebotcazou@act-europe.fr>
1476 Olivier Hainque <hainque@act-europe.fr>
1477
1478 * function.c (fixup_var_refs): Also adjust the start of sequence
1479 after fixing up the insns.
1480
1481 2004-06-15 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1482
1483 * gccbug.in: Update optimization -> tree-optimization/rtl-optimization.
1484
1485 2004-06-14 Benjamin Kosnik <bkoz@redhat.com>
1486
1487 * doc/install.texi (Prerequisites): Update libstdc++ entry to
1488 automake 1.8.5.
1489
1490 2004-06-14 Eric Christopher <echristo@redhat.com>
1491
1492 * config/s390/s390.h (TARGET_SWITCHES): Change -mtpf (-mno-tpf)
1493 to -mtpf-trace (-mno-tpf-trace).
1494 * doc/invoke.texi (S/390 and zSeries Options): Add tpf option
1495 documentation.
1496
1497 2004-06-14 Eric Botcazou <ebotcazou@libertysurf.fr>
1498
1499 * real.c: Fix bit count in head comment.
1500
1501 2004-06-14 Jeff Law <law@redhat.com>
1502
1503 * tree-ssa.c (kill_redundant_phi_nodes): More correctly handle
1504 PHIs where the destination or an argument is marked with
1505 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1506
1507 2004-06-14 Jakub Jelinek <jakub@redhat.com>
1508
1509 PR middle-end/15945
1510 * simplify-rtx.c (simplify_binary_operation): Don't optimize out
1511 Inf + -Inf, Inf - Inf, Inf / Inf and 0 * Inf if flag_trapping_math.
1512
1513 2004-06-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1514
1515 * opts.sh (var_args): Fix regexp.
1516
1517 2004-06-14 Jakub Jelinek <jakub@redhat.com>
1518
1519 PR target/15178
1520 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
1521
1522 2004-06-14 Paul Brook <paul@codesourcery.com>
1523
1524 * dwarf2out.c (output_call_frame_info): Support dwarf3 cie entries.
1525
1526 2004-06-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1527
1528 * Makefile.in (FLAGS_H): New.
1529 (flags.h): Replace by FLAGS_H.
1530 * c.opt: Document Var, VarExists, Init and Report attributes.
1531 * common.opt: Fill the values of the attributes.
1532 * diagnostic.c (flag_fatal_errors): Do not define.
1533 * except.c (flag_non_call_exceptions): Do not define.
1534 * flags.h: Include options.h. Remove declarations conflicting with
1535 the automatically defined ones.
1536 * opts.c: Remove automatically defined variables.
1537 (handle_option): Perform default initialization.
1538 (common_handle_option): Do not handle options covered by the
1539 default initialization.
1540 * opts.h (struct cl_option): Add flag_var, has_set_value and set_value
1541 fields.
1542 (CL_REPORT): New.
1543 * opts.sh: Generate variable declarations, handle CL_REPORT.
1544 * toplev.c: Remove automatically defined variables.
1545 (f_options): Removed.
1546 (print_switch_values): Use cl_options instead of f_options.
1547 * toplev.h (version_flag): Declaration removed.
1548
1549 2004-06-14 Ian Lance Taylor <ian@wasabisystems.com>
1550
1551 * config/sparc/sparc.h: Correct comment about availability of
1552 little endian option.
1553
1554 * config.gcc: Remove sparc64-*-aout*.
1555 * config/sparc/sparc.c (sparc_aout_select_rtx_section): Remove.
1556 * config/sparc/sp64-aout.h: Remove.
1557 * config/sparc/aout.h: Remove.
1558
1559 2004-06-14 Ulrich Weigand <uweigand@de.ibm.com>
1560
1561 * config/s390/s390.c: Include "tree-gimple.h".
1562 (s390_gimplify_va_arg): New function.
1563 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
1564 (s390_va_arg): Remove.
1565 * config/s390/s390-protos.h (s390_va_arg): Remove.
1566 * config/s390/s390.h (EXPAND_BUILTIN_VA_ARG): Call abort ().
1567
1568 2004-06-14 J"orn Rennecke <joern.rennecke@superh.com>
1569
1570 * basic-block.h (could_fall_through): Declare.
1571 * cfganal.c (can_fallthru): Succeed if the target is EXIT_BLOCK_PTR.
1572 Fail if the source already has a fallthrough edge to the exit
1573 block pointer.
1574 (could_fall_through): New function.
1575 * cfgbuild.c (make_edges): Check if we already have a fallthrough
1576 edge to the exit block pointer.
1577 * cfglayout.c (fixup_fallthru_exit_predecessor): Check that it is
1578 not called before reload has completed.
1579 Handle special case of first block having a fall-through exit edge.
1580 (cfg_layout_finalize): Don't call it before reload or if we have
1581 rtl epilogues.
1582 (fixup_reorder_chain): A fall through to the exit block does not
1583 require the block to come last. Add sanity checks.
1584 * cfgrtl.c (rtl_split_edge): Add special handling of fall through
1585 edges to the exit block.
1586 * function.c (cfglayout.h): #include.
1587 (thread_prologue_and_epilogue_insns): If we have neither return nor
1588 epilogue, but a fall through to the exit block from mid-function,
1589 force a non-fall-through exit.
1590 * Makefile.in (function.o): Depend on CFGLAYOUT_H.
1591
1592 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1593
1594 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Handle -mpowerpc64 and -mcpu
1595 for power5 and rs64a. Correct condition for default. Correct power3,
1596 620, 630, 7400, 7450, G4, 970 and G5 -mcpu entries. Add -many.
1597
1598 2004-06-13 Steven Bosscher <stevenb@suse.de>
1599
1600 * gcse.c (hash_scan_set, hash_scan_insn, mark_set, mark_oprs_set):
1601 Revert previous change, don't use CALL_P.
1602
1603 2004-06-13 Jason Merrill <jason@redhat.com>
1604
1605 * tree.h: Move std_gimplify_va_arg_expr protoype here.
1606 * tree-gimple.h: From here.
1607
1608 2004-06-13 Daniel Berlin <dberlin@dberlin.org>
1609
1610 Fix PR tree-optimization/15979
1611 Fix PR tree-optimization/15981
1612 * tree-ssa-pre.c (insert_aux): Fix faulty logic so that we don't
1613 try to insert values undefined along some path.
1614
1615 2004-06-13 Daniel Berlin <dberlin@dberlin.org>
1616
1617 * tree-ssa-pre.c (add_to_value): is_gimple_min_invariant things
1618 are available everywhere too.
1619
1620 2004-06-13 Andrew Pinski <pinskia@physics.uc.edu>
1621
1622 * fold-const.c (fold_checksum_tree <case 't'>): Only
1623 look at TREE_VALUES if the EXPR is an ENUMERAL_TYPE.
1624 Only look at TYPE_MIN_VALUE and TYPE_MAX_VALUE if
1625 EXPR is an INTEGERAL_TYPE or a scalar float type.
1626
1627 2004-06-13 Diego Novillo <dnovillo@redhat.com>
1628
1629 * tree-sra.c (tree_sra): Update documentation.
1630
1631 2004-06-13 Joseph S. Myers <jsm@polyomino.org.uk>
1632
1633 * c-typeck.c (comptypes, tagged_types_tu_compatible_p,
1634 function_types_compatible_p, type_lists_compatible_p): Remove
1635 flags parameter.
1636 * c-tree.h (comptypes): Likewise.
1637 (COMPARE_STRICT): Remove.
1638 * c-decl.c, c-lang.c, c-parse.in, c-typeck.c, objc/objc-act.c: All
1639 callers changed.
1640
1641 2004-06-13 Eric Christopher <echristo@redhat.com>
1642
1643 * c-decl.c (diagnose_mismatched_decls): Improve error message.
1644 Remove unused code.
1645 * c-typeck.c (comptypes): Add location in standard we're checking.
1646
1647 2004-06-13 Kaz Kojima <kkojima@gcc.gnu.org>
1648
1649 * config/sh/libgcc-std.ver: Add __unorddf2 and __unordsf2 with
1650 version 3.3.4.
1651
1652 2004-06-12 Roger Sayle <roger@eyesopen.com>
1653
1654 * expmed.c (shift_cost, shiftadd_cost, shiftsub_cost): Additionally
1655 index by machine mode.
1656 (init_expmed): Initialize shift_cost, shiftadd_cost and shiftsub_cost
1657 tables inside the loop over machine modes.
1658 (synth_mult, expand_mult_highpart_optab, expand_mult_highpart,
1659 expand_divmod): Index shift*_cost by the appropriate machine mode.
1660
1661 2004-06-12 Eric Christopher <echristo@redhat.com>
1662
1663 * config/s390/s390.h: Rename TARGET_TPF to TARGET_TPF_PROFILING.
1664 * config/s390/s390.md: Ditto.
1665 * config/s390/s390.c: Ditto.
1666 (s390_frame_info): Conditionalize frame and setup info on
1667 TARGET_TPF_PROFILING.
1668 (s390_arg_frame_offset): Ditto.
1669
1670 2004-06-12 Roger Sayle <roger@eyesopen.com>
1671
1672 * fold-const.c (omit_two_operands): New function.
1673 * tree.h (omit_two_operands): Prototype here.
1674 * builtins.c (fold_builtin_unordered_cmp): New function to lower
1675 C99 unordered comparison builtins to the appropriate tree nodes.
1676 (fold_builtin_1): Use fold_builtin_unordered_cmp to lower
1677 BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
1678 BUILT_IN_ISLESSEQUAL and BUILT_IN_ISLESSGREATER. Manually lower
1679 BUILT_IN_ISUNORDERED comparisons to an UNORDERED_EXPR tree node.
1680 (simplify_builtin_memcmp, simplify_builtin_strncmp,
1681 simplify_builtin_strncat, simplify_builtin_strspn): Use the new
1682 omit_two_operands function to build the required COMPOUND_EXPRs.
1683
1684 2004-06-12 Steven Bosscher <stevenb@suse.de>,
1685 Andreas Jaeger <aj@suse.de>
1686
1687 * gcse.c (record_set_info): Use predicates like REG_P.
1688 (mems_conflict_for_gcse_p): Likewise.
1689 (load_killed_in_block_p): Likewise.
1690 (hash_expr_1): Likewise.
1691 (insert_set_in_table): Likewise.
1692 (gcse_constant_p): Likewise.
1693 (hash_scan_set): Likewise.
1694 (hash_scan_insn): Likewise.
1695 (canon_list_insert): Likewise.
1696 (record_last_mem_set_info): Likewise.
1697 (record_last_set_info): Likewise.
1698 (compute_hash_table_work): Likewise.
1699 (mark_set): Likewise.
1700 (mark_clobber): Likewise.
1701 (mark_oprs_set): Likewise.
1702 (compute_transp): Likewise.
1703 (find_avail_set): Likewise.
1704 (cprop_insn): Likewise.
1705 (do_local_cprop): Likewise.
1706 (cprop): Likewise.
1707 (find_implicit_sets): Likewise.
1708 (find_bypass_set): Likewise.
1709 (bypass_conditional_jumps): Likewise.
1710 (insert_insn_end_bb): Likewise.
1711 (pre_insert_copy_insn): Likewise.
1712 (compute_transpout): Likewise.
1713 (next_ls_expr): Likewise.
1714 (invalidate_any_buried_refs): Likewise.
1715 (compute_ld_motion_mems): Likewise.
1716 (reg_set_info): Likewise.
1717 (reg_clear_last_set): Likewise.
1718 (find_moveable_store): Likewise.
1719 (compute_store_table): Likewise.
1720 (find_loads): Likewise.
1721 (store_killed_in_insn): Likewise.
1722 (insert_insn_start_bb): Likewise.
1723 (reg_set_between_after_reload_p): Likewise.
1724 (reg_used_between_after_reload_p): Likewise.
1725 (is_jump_table_basic_block): Likewise.
1726 (gcse_after_reload): Likewise.
1727 (hash_scan_set_after_reload): Likewise.
1728 (compute_hash_table_after_reload): Likewise.
1729
1730 2004-06-12 Steven Bosscher <stevenb@suse.de>
1731
1732 * rtl.h (MEM_P, NONJUMP_INSN_P, CALL_INSN_P): New predicates.
1733 (INSN_P): Don't look at the rtx code class, just explicitly
1734 check for one of the tree RTX_INSN codes.
1735
1736 2004-06-11 Zack Weinberg <zack@codesourcery.com>
1737
1738 * c-typeck.c (default_function_array_conversion): Use
1739 build_pointer_type not TYPE_POINTER_TO.
1740
1741 2004-06-11 Zack Weinberg <zack@codesourcery.com>
1742
1743 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
1744 * configure, config.in: Regenerate.
1745 * system.h: Unconditionally define bool as unsigned char,
1746 BOOL_BITFIELD as unsigned int.
1747 * domwalk.h: Use BOOL_BITFIELD.
1748
1749 2004-06-12 Andreas Jaeger <aj@suse.de>
1750
1751 * libgcc-std.ver: Add __unorddf2 and __unordsf2 with version 3.3.4.
1752 * libgcc-darwin.ver: Likewise.
1753
1754 2004-06-12 Peter Jakubek <peter@laseranimation.com>
1755
1756 * reload.c (find_reloads): Force reload for pseudo registers on big
1757 endian machines.
1758
1759 2004-06-11 Steven Bosscher <stevenb@suse.de>
1760
1761 * tree-ssa-dce.c (mark_control_dependent_edges_necessary):
1762 Don't try to mark anything control dependent on the entry or
1763 exit blocks.
1764
1765 2004-06-11 Daniel Berlin <dberlin@dberlin.org>
1766
1767 Fix Bug 15899
1768 Fix Bug 15460
1769 * tree.h (SSA_NAME_VALUE): New macro.
1770 (struct tree_ssa_name): Add value_handle member.
1771 * tree-ssa-pre.c: Replaced.
1772 * tree-flow.h (tree_ann_type): Add CST_ANN, EXPR_ANN.
1773 (struct cst_ann_d): New.
1774 (struct expr_ann_d): New.
1775 (union tree_ann_d): Add cst_ann, expr_ann.
1776 * tree-dfa.c (create_cst_ann): New function.
1777 (create_expr_ann): Ditto.
1778 * tree-flow-inline.h (cst_ann): New function.
1779 (expr_ann): Ditto.
1780 (get_cst_ann): Ditto.
1781 (get_expr_ann): Ditto..
1782
1783 2004-06-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1784
1785 * pa.c (pa_hpux_init_libfunc): Add support for unord_optab.
1786 * pa/quadlib.c (enum qfcmp_magic): Define magic values for call to
1787 _U_Qfcmp library function.
1788 (_U_Qfltgt, _U_Qfunle, _U_Qfunlt, _U_Qfunge, _U_Qfungt, _U_Qfuneq,
1789 _U_Qfunord, _U_Qford): Add more TFmode builtin compare functions.
1790
1791 * pa.c (legitimize_pic_address): Use UNSPEC_DLTIND14R to identify
1792 unspec used for loading address from DLT.
1793 * pa.md: Define constants for the uses of UNSPEC and UNSPEC_VOLATILE.
1794 Change all users of UNSPEC and UNSPEC_VOLATILE to use new constants.
1795 Don't use short code sequence when loading the address of a nonlocal
1796 label.
1797 (nonlocal_goto): New expander.
1798 (indirect_goto): New jump pattern for nonlocal gotos.
1799 (short_jump): Remove extra whitespace.
1800 (builtin_longjmp): Clobber memory and hard frame pointer. Restore
1801 frame pointer via virtual_stack_vars_rtx when we have a nonlocal goto
1802 pattern.
1803
1804 2004-06-11 Roger Sayle <roger@eyesopen.com>
1805
1806 * expmed.c (synth_mult): Add an additional MODE argument for the
1807 machine mode of the multiplication. Update recursive calls. Use
1808 mode instead of word_mode for determining operation costs.
1809 (choose_mult_variant): Update calls to synth_mult with "mode".
1810
1811 2004-06-11 Richard Henderson <rth@redhat.com>
1812
1813 * tree-ssa-operands.c (get_stmt_operands): Clear makes_aliased_loads
1814 and makes_aliased_stores.
1815
1816 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
1817
1818 * doc/install.text (--enable-shared): Fix typo.
1819
1820 2004-06-11 Richard Henderson <rth@redhat.com>
1821
1822 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Remove post_p
1823 argument. Use internal post for call to gimplify_expr. Tidy
1824 rounded type size computation.
1825 (alpha_gimplify_va_arg): Use get_formal_tmp_var and
1826 get_initialized_tmp_var.
1827
1828 2004-06-11 Andrew Pinski <pinskia@physics.uc.edu>
1829
1830 * doc/install.texi (--enable-shared): Update libobjc's shared library
1831 status. Remove reference to libf2c.
1832
1833 2004-06-11 Jason Merrill <jason@redhat.com>
1834
1835 * config/i386/i386.h (EXPAND_BUILTIN_VA_ARG): Just abort.
1836 * config/i386/i386.c (ix86_va_arg): Remove.
1837 * config/rs6000/rs6000.h (EXPAND_BUILTIN_VA_ARG): Just abort.
1838 * config/rs6000/rs6000.c (rs6000_va_arg): Remove.
1839 * config/alpha/alpha.h (EXPAND_BUILTIN_VA_ARG): Just abort.
1840 * config/alpha/alpha.c (alpha_va_arg): Remove.
1841 * config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Just abort.
1842 * config/sparc/sparc.c (sparc_va_arg): Remove.
1843
1844 * tree-ssa-operands.c (get_stmt_operands): Use a V_MAY_DEF if the
1845 assignment might throw.
1846 * tree-eh.c (tree_could_throw_p): Support non-call exceptions in
1847 expressions.
1848
1849 2004-06-11 J"orn Rennecke <joern.rennecke@superh.com>
1850
1851 PR 15886:
1852 * sh.h (ALLOCATE_INITIAL_VALUE): Use return_address_pointer_rtx.
1853
1854 2004-06-11 Joseph S. Myers <jsm@polyomino.org.uk>
1855
1856 * doc/install.texi (Prerequisites): Update documentation of
1857 required versions of autoconf and automake. Remove mention of
1858 libf2c.
1859
1860 2004-06-11 Jason Merrill <jason@redhat.com>
1861
1862 * config/sparc/sparc.c (sparc_gimplify_va_arg): New fn.
1863 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
1864
1865 2004-06-11 Jerry Quinn <jlquinn@optonline.net>
1866
1867 * typeclass.h: Add GPL plus exception license. Add include
1868 guard.
1869
1870 2004-06-10 Jason Merrill <jason@redhat.com>
1871
1872 * gimplify.c (gimplify_modify_expr): Don't force a temporary
1873 of an aggregate_value_p type.
1874
1875 2004-06-10 Jeff Law <law@redhat.com>
1876
1877 * fold-const.c (fold_inf_compare): Avoid creating non-gimple
1878 code when we are in gimple form.
1879
1880 2004-06-10 Diego Novillo <dnovillo@redhat.com>
1881
1882 * Makefile.in (tree-ssanames.o): Depend on TREE_FLOW_H.
1883 * tree-flow.h (ssa_names, num_ssa_names, ssa_name): Declare.
1884 (highest_ssa_version): Remove.
1885 * tree-outof-ssa.c (new_temp_expr_table): Replace
1886 highest_ssa_version with num_ssa_names.
1887 (dump_replaceable_exprs): Likewise.
1888 (rewrite_vars_out_of_ssa): Likewise.
1889 * tree-ssa-ccp.c (initialize): Likewise
1890 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
1891 * tree-ssa-dce.c (tree_dce_init): Likewise.
1892 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
1893 * tree-ssa-live.c (create_ssa_var_map): Likewise.
1894 (dump_var_map): Likewise.
1895 * tree-ssa.c (verify_ssa): Likewise.
1896 (kill_redundant_phi_nodes): Likewise.
1897 Do not build a local array of SSA_NAMEs. Use the ssa_names table.
1898 * tree-ssanames.c: Include tree-flow.h
1899 (ssa_names): New varray.
1900 (init_ssa_names): Initialize ssa_names.
1901 Reserve the first slot of the ssa_names table.
1902 (make_ssa_name): Push the newly created SSA_NAME into ssa_names.
1903 Assign version numbers using num_ssa_names.
1904
1905 2004-06-10 Joseph S. Myers <jsm@polyomino.org.uk>
1906
1907 * doc/sourcebuild.texi (Front End): Add details of more
1908 installation documentation required.
1909
1910 2004-06-10 Brian Booth <bbooth@redhat.com>
1911
1912 * doc/tree-ssa.texi: Remove references to VDEF and add descriptions
1913 of V_MAY_DEF and V_MUST_DEF.
1914 * tree-dfa.c (dfa_stats_d): Add num_v_must_defs and rename
1915 num_vdefs to num_v_may_defs.
1916 (compute_immediate_uses_for_stmt): Rename occurences of vdef
1917 to v_may_def.
1918 (redirect_immediate_uses): Ditto.
1919 (dump_dfa_stats): Ditto. Also added code to dump num_v_must_defs.
1920 (collect_dfa_stats_r): Rename occurences of vdef to v_may_def.
1921 Also add code to sum up the number of v_must_defs.
1922 (vdefs_disappeared_p): Replace with...
1923 (v_may_defs_disappeared_p): This.
1924 (v_must_defs_disappeared_p): New function.
1925 (mark_new_vars_to_rename): Rename occurences of vdef to v_may_def.
1926 Also add code to mark new variables found in V_MUST_DEFs for
1927 renameing.
1928 * tree-flow.h (stmt_ann_d): Add v_must_def_ops and replace
1929 vdef_ops to v_may_def_ops.
1930 (get_vdef_ops): Replace with...
1931 (get_v_may_def_ops): This.
1932 * tree-flow-inline.h (get_vdef_ops): Replace with...
1933 (get_v_may_def_ops): This.
1934 (get_v_must_def_ops): New function.
1935 (get_vdef_result_ptr): Replace with...
1936 (get_v_may_def_result_ptr): This.
1937 (get_vdef_op_ptr): Ditto with...
1938 (get_v_may_def_op_ptr); This.
1939 (get_v_must_def_op_ptr): New function.
1940 * tree-into-ssa.c (mark_def_sites): Rename occurences of vdef
1941 to v_may_def. Also add code to mark statements with
1942 V_MUST_DEFs as definition sites.
1943 (rewrite_stmt): Rename occurences of vdef to v_may_def. Also
1944 add code to register new V_MUST_DEFs made by the statement.
1945 * tree-outof-ssa.c (VIRTUAL_PARTITION): Update comments.
1946 (check_replaceable): Rename occurences of vdef to v_may_def. Also
1947 add check for V_MUST_DEFs.
1948 (find_replaceable_in_bb): Ditto.
1949 * tree-pretty-print.c (dump_vops): Rename occurences of vdef
1950 to v_may_def. Also add code to dump V_MUST_DEFs.
1951 * tree-sra.c (mark_all_vdefs): Replace with...
1952 (mark_all_v_may_defs): This.
1953 (mark_all_v_must_defs): New function.
1954 (create_scalar_copies): Replace call to mark_all_vdefs with
1955 calls to mark_all_v_may_defs and mark_all_v_must_defs.
1956 (scalarize_structures): Rename occurences of vdef to v_may_def.
1957 Also add a check for V_MUST_DEFs.
1958 (scalarize_modify_expr): Rename occurences of vdef to v_may_def.
1959 * tree-ssa-alias.c (global_var): Update comment.
1960 (compute_may_aliases): Ditto.
1961 (compute_points_to_and_addr_escape): Rename occurences of vdef
1962 to v_may_def. Also add code to mark variables in V_MUST_DEF
1963 operands as being written to.
1964 (group_aliases): Update comment.
1965 (maybe_create_global_var): Ditto.
1966 * tree-ssa.c (verify_ssa): Rename occurences of vdef to v_may_def.
1967 Also add a check for V_MUST_DEFs on GIMPLE registers.
1968 (replace_immediate_uses): Rename occurences of vdef to v_may_def.
1969 * tree-ssa-ccp.c (visit_stmt): Rename occurences of vdef
1970 to v_may_def. Also add code to mark all V_MUST_DEF operands
1971 VARYING.
1972 (initialize): Ditto.
1973 (set_rhs): Rename occurences of vdef to v_may_def. Also add
1974 code to update SSA_NAMEs in V_MUST_DEFs.
1975 * tree-ssa-copy.c (cprop_into_stmt): Rename occurences of vdef
1976 to v_may_def.
1977 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Rename
1978 occurences of vdef to v_may_def. Also add code to mark statements
1979 with V_MUST_DEFs as necessary.
1980 (propagate_necessity): Rename occurences of vdef to v_may_def.
1981 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Rename
1982 occurences of vdef to v_may_def. Also add code to mark operands
1983 in V_MUST_DEFs for renaming.
1984 (eliminate_redundant_computations): Rename occurences of vdef
1985 to v_may_def.
1986 (record_equivalences_from_stmt): Rename occurences of vdef
1987 to v_may_def. Also add code to record VUSEs for V_MUST_DEFs.
1988 (optimize_stmt): Remove unnesessary variable vdefs. Update
1989 comment.
1990 (register_definitions_for_stmt): Rename occurences of vdef
1991 to v_may_def. Also add code to register definitions made with
1992 V_MUST_DEFs.
1993 * tree-ssa-dse.c (fix_stmt_vdefs): Replace with...
1994 (fix_stmt_v_may_defs): This.
1995 (fix_phi_uses): Rename occurences of vdef to v_may_def.
1996 (dse_optimize_stmt): Ditto.
1997 * tree-ssa-live.c (create_ssa_var_map): Rename occurences of vdef
1998 to v_may_def. Also add code to mark V_MUST_DEF operands as being
1999 used in virtual operators.
2000 * tree-ssa-loop.c (mark_defs_for_rewrite): Rename occurences of
2001 vdef to v_may_def. Also add code to mark V_MUST_DEF operands for
2002 renaming.
2003 * tree-ssa-operands.c (opf_kill_def): New flag for killing
2004 definitions.
2005 (build_vdefs): Renamed to...
2006 (build_v_may_defs): This.
2007 (build_v_must_defs): New variable.
2008 (voperands_d): Add v_must_def_ops and replace vdef_ops with
2009 v_may_def_ops.
2010 (append_vdef): Replace with...
2011 (append_v_may_def): This.
2012 (append_v_must_def): New function.
2013 (NUM_FREE): Increment for V_MUST_DEF
2014 (optype_freelist): Increment its size for V_MUST_DEF
2015 (allocate_vdef_optype): Replace with...
2016 (allocate_v_may_def_optype): This.
2017 (allocate_v_must_def_optype): New function.
2018 (free_vdefs): Replace with...
2019 (free_v_may_defs): This.
2020 (free_v_must_defs): New function.
2021 (remove_vdefs): Replace with...
2022 (remove_v_may_defs): This.
2023 (remove_v_must_defs): New function.
2024 (init_ssa_operands): Rename occurences of vdef to v_may_def. Also
2025 add code to initialize build_v_must_defs.
2026 (finalize_ssa_vdefs): Replace with...
2027 (finalize_ssa_v_may_defs): This.
2028 (finalize_ssa_vuses): Rename occurences of vdef to v_may_def.
2029 (finalize_ssa_v_must_defs): New function.
2030 (finalize_ssa_stmt_operands): Replace call to finalize_ssa_vdefs
2031 with calls to finalize_ssa_v_may_defs and finalize_ssa_v_must_defs.
2032 (verify_start_operands): Rename occurences of vdef to v_may_def.
2033 Also add check for build_v_must_defs.
2034 (get_stmt_operands): Rename occurences of vdef to v_may_def.
2035 Also add code to handle V_MUST_DEFs and to use opf_kill_def for
2036 killing definitions.
2037 (get_expr_operands): Update comment and use opf_kill_def for
2038 killing definitions.
2039 (add_stmt_operand): Replace code that appends VDEFs with code
2040 that appends V_MUST_DEFs when opf_kill_def is set and V_MAY_DEFs
2041 otherwise.
2042 (add_call_clobber_ops): Update comments.
2043 * tree-ssa-operands.h (vdef_optype_d): Replace with...
2044 (v_may_def_optype_d): This.
2045 (v_must_def_optype_d): New structure.
2046 (VDEF_OPS): Replace with...
2047 (V_MAY_DEF_OPS): This.
2048 (STMT_VDEF_OPS): Same with...
2049 (STMT_V_MAY_DEF_OPS): This.
2050 (NUM_VDEFS): And...
2051 (NUM_V_MAY_DEFS): This.
2052 (VDEF_RESULT_PTR): As well as...
2053 (V_MAY_DEF_RESULT_PTR): This.
2054 (VDEF_RESULT): Same goes for...
2055 (V_MAY_DEF_RESULT): This.
2056 (VDEF_OP_PTR): And...
2057 (V_MAY_DEF_OP_PTR): This.
2058 (VDEF_OP): And...
2059 (V_MAY_DEF_OP): This.
2060 (V_MUST_DEF_OPS): New macro.
2061 (STMT_V_MUST_DEF_OPS): Ditto.
2062 (NUM_V_MUST_DEFS): Ditto.
2063 (V_MUST_DEF_OP_PTR): Ditto.
2064 (V_MUST_DEF_OP): Ditto.
2065 (remove_vdefs): Replace signature with...
2066 (remove_v_may_defs): This.
2067 (remove_v_must_defs): New function signature.
2068 * tree-ssa-pre.c (subst_phis): Replace call to remove_vdefs
2069 with calls to remove_v_may_defs and remove_v_must_defs.
2070 (process_left_occs_and_kills): Rename occurences of vdef to v_may_def.
2071 Also add code that marks left occurences of operands in V_MUST_DEFs.
2072 * tree-tailcall.c (find_tail_calls): Rename occurences of vdef
2073 to v_may_def. Also add check for V_MUST_DEFs.
2074 (eliminate_tail_call):Rename occurences of vdef to v_may_def.
2075
2076 2004-06-10 Vladimir Makarov <vmakarov@redhat.com>
2077
2078 PR target/15653
2079 * haifa-sched.c (schedule_block): Finish cycle after issuing asm
2080 insn.
2081
2082 2004-06-10 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2083
2084 PR web/15263
2085 * doc/install.texi: Remove superfluous linebreak.
2086
2087 2004-06-10 Roger Sayle <roger@eyesopen.com>
2088
2089 * builtins.c (expand_builtin): Fall back to library function call for
2090 conj, conjf, conjl, creal, crealf, creall, cimag, cimagf and cimagl.
2091 (fold_builtin_1): Lower built-ins BUILT_IN_CONJ{,F,L} to CONJ_EXPR,
2092 BUILT_IN_CREAL{,F,L} to REALPART_EXPR, and BUILT_IN_CIMAG{,F,L} to
2093 IMAGPART_EXPR respectively.
2094
2095 2004-06-10 J"orn Rennecke <joern.rennecke@superh.com>
2096
2097 * sh.c (dump_table): New argument start. Changed caller.
2098 (fixup_mova): New function.
2099 (find_barrier): Use it.
2100 (sh_reorg): Likewise. Check for CODE_FOR_casesi_worker_2.
2101 If the label a mova refers to is above the mova itself, change
2102 the mova into a load.
2103 * sh.md (*casesi_worker): Rename to:
2104 (casesi_worker_1).
2105 (casesi_worker_2): New insn.
2106
2107 2004-06-10 Jason Merrill <jason@redhat.com>
2108
2109 * target.h (struct gcc_target): Change gimplify_va_arg_expr
2110 hook signature.
2111 * tree-gimple.h: Adjust.
2112 * config/alpha/alpha.c (alpha_gimplify_va_arg): Adjust.
2113 * config/i386/i386.c (ix86_gimplify_va_arg): Adjust.
2114 Use fold_convert.
2115 * config/ia64/ia64.c (ia64_gimplify_va_arg): Adjust.
2116 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust.
2117 Use COMPLEX_EXPR for complex numbers. Use fold_convert.
2118 * builtins.c (std_gimplify_va_arg_expr): Adjust. Use fold_convert.
2119 (gimplify_va_arg_expr): Return GS_ERROR in error case.
2120 Gimplify valist rather than calling stabilize_va_list.
2121
2122 2004-06-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2123
2124 * Makefile.in (df.o): Remove fibheap dependency.
2125 * df.h: Do not include sbitmap.h.
2126 (struct ref): New field "data".
2127 (DF_REF_DATA): New accessor macro.
2128 (struct df): Field "dom" removed.
2129 (df_analyze_subcfg): New function.
2130 (transfer_function_sbitmap, transfer_function_bitmap): Replaced by ...
2131 (transfer_function): ... new type.
2132 (iterative_dataflow_sbitmap, iterative_dataflow_bitmap): Replaced by ...
2133 (iterative_dataflow): ... new function.
2134 (enum set_representation, struct dataflow): New.
2135 * df.c: Do not include fibheap.h.
2136
2137 (df_reg_def_chain_clean, df_reg_use_chain_clean,
2138 (df_bb_table_realloc, df_analyse_subcfg, free_reg_ref_chain,
2139 prune_to_subcfg, df_bb_modify): New functions.
2140 (df_bitmaps_alloc, df_reg_def_chain_create, df_reg_use_chain_create,
2141 df_refs_update, df_reg_table_realloc, df_ref_create,
2142 df_bb_reg_def_chain_create, df_bb_reg_use_chain_create,
2143 df_bb_rd_local_compute, df_bb_ru_local_compute, df_bb_lr_local_compute,
2144 df_analyse_1, df_insn_modify): Support analysing only a part of the cfg.
2145
2146 (dataflow_set_a_op_b, dataflow_set_copy): New functions.
2147 (df_rd_transfer_function, df_ru_transfer_function,
2148 df_lr_transfer_function): Type of bitmaps changed to void *.
2149 (hybrid_search_bitmap, hybrid_search_sbitmap): Merge into ...
2150 (hybrid_search): ... new function.
2151 (iterative_dataflow_bitmap, iterative_dataflow_sbitmap): Merge into ...
2152 (iterative_dataflow): ... new function. Avoid use of fibheaps for
2153 a worklist. Do not process basic blocks unnecessarily.
2154
2155 2004-06-10 Roger Sayle <roger@eyesopen.com>
2156
2157 * fold-const.c (fold_abs_const): Make extern.
2158 * tree.h (fold_abs_const): Prototype here.
2159 * builtins.c (fold_builtin_fabs): New function to transform
2160 fabs, fabsf and fabsl builtins into ABS_EXPR tree nodes.
2161 (fold_builtin_abs): New function to transform abs, labs, llabs
2162 and imaxabs builtins into ABS_EXPR tree nodes.
2163 (expand_builtin): Fall back to a function call for abs, labs,
2164 llabs and imaxabs builtins that survive constant folding.
2165 (fold_builtin_1): Call fold_builtin_fabs for FABS, FABSF and
2166 FABSL, and fold_builtin_abs for ABS, LABS, LLABS and IMAXABS.
2167
2168 2004-06-10 Jakub Jelinek <jakub@redhat.com>
2169
2170 * config/ia64/unwind-ia64.c (uw_frame_state_for): Don't assume a
2171 leaf function without unwind info at RP 0.
2172
2173 2004-06-10 Jakub Jelinek <jakub@redhat.com>
2174
2175 PR c++/14791
2176 * tree.h (enum tree_index): Add TI_FILEPTR_TYPE.
2177 (fileptr_type_node): Define.
2178 * tree.c (build_common_tree_nodes_2): Initialize
2179 fileptr_type_node to ptr_type_node.
2180 * c-common.c (c_common_nodes_and_builtins): For C++, make
2181 fileptr_type_node a distinct type copy.
2182 * builtin-types.def (BT_FILEPTR, BT_FN_INT_CONST_STRING_FILEPTR,
2183 BT_FN_INT_INT_FILEPTR, BT_FN_INT_FILEPTR_CONST_STRING_VALIST_ARG,
2184 BT_FN_SIZE_CONST_PTR_SIZE_SIZE_FILEPTR,
2185 BT_FN_INT_FILEPTR_CONST_STRING_VAR): Add.
2186 (BT_FN_INT_CONST_STRING_PTR, BT_FN_INT_INT_PTR,
2187 BT_FN_SIZE_CONST_PTR_SIZE_SIZE_PTR, BT_FN_INT_PTR_CONST_STRING_VAR,
2188 BT_FN_INT_PTR_CONST_STRING_VALIST_ARG): Remove.
2189 * builtins.def (BUILT_IN_FPRINTF, BUILT_IN_FPRINTF_UNLOCKED,
2190 BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS,
2191 BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FSCANF, BUILT_IN_FWRITE,
2192 BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): Use
2193 the above *FILEPTR* types instead of *PTR*.
2194
2195 2004-06-09 Daniel Berlin <dberlin@dberlin.org>
2196
2197 * tree-ssa.c (verify_ssa): Verify that vdefs/makes_aliased_stores
2198 match.
2199
2200 2004-06-09 Roger Sayle <roger@eyesopen.com>
2201
2202 * fold-const.c (fold_not_const): New function.
2203 (fold) <ABS_EXPR>: Don't bother testing wins.
2204 (fold) <BIT_NOT_EXPR>: Call fold_not_const.
2205 (nondestructive_fold_unary_to_constant) <BIT_NOT_EXPR>: Likewise.
2206
2207 2004-06-09 Richard Henderson <rth@redhat.com>
2208
2209 PR middle-end/15228
2210 * function.c (assign_parms): Always set_mem_align with the computed
2211 FUNCTION_ARG_BOUNDARY. Don't clear stack_parm if !STRICT_ALIGNMENT.
2212
2213 2004-06-09 Richard Henderson <rth@redhat.com>
2214
2215 PR opt/15108
2216 * tree-tailcall.c (find_tail_calls): Don't check early for
2217 tail_recursion failure.
2218
2219 2004-06-09 Diego Novillo <dnovillo@redhat.com>
2220
2221 Move SSA_NAME annotations into tree_ssa_name.
2222
2223 * tree-dfa.c (create_ssa_name_ann): Remove.
2224 * tree-flow-inline.h (ssa_name_ann, get_ssa_name_ann): Remove.
2225 * tree-flow.h (enum tree_ann_type): Remove SSA_NAME_ANN.
2226 (struct ssa_name_ann_d): Remove.
2227 (union tree_ann_d): Update.
2228 (ssa_name_ann_t): Remove.
2229 * tree-ssa-alias.c: (get_ptr_info): New local function.
2230 Replace references to ssa_name_ann_t with struct ptr_info_def.
2231 * tree-ssa-operands.c (get_expr_operands): Likewise.
2232 * tree.h (SSA_NAME_PTR_INFO): Define.
2233 (struct ptr_info_def): Declare.
2234 (struct tree_ssa_name): Add field 'ptr_info'.
2235
2236 2004-06-09 Danny Smith <dannysmith@users.sourceforge.net>
2237
2238 * config/i386/winnt.c (i386_pe_output_labelref): Correct
2239 misplaced ')'.
2240
2241 2004-06-09 Steven Bosscher <stevenb@suse.de>
2242
2243 * config/i386/k6.md: Rewrite using the DFA model.
2244 * config/i386/i386.c (ix86_adjust_cost): Don't increase the
2245 cost of load-operation insns for the K6.
2246 (ia32_use_dfa_pipeline_interface): Add TARGET_K6.
2247 (ia32_multipass_dfa_lookahead): Likewise.
2248
2249 2004-06-09 Richard Henderson <rth@redhat.com>
2250
2251 * config/alpha/alpha.c (alpha_gimplify_va_arg_1,
2252 alpha_gimplify_va_arg, TARGET_GIMPLIFY_VA_ARG_EXPR): New.
2253
2254 2004-06-09 Richard Henderson <rth@redhat.com>
2255
2256 * expmed.c (emit_store_flag): Cope with FLOAT_STORE_FLAG_VALUE.
2257
2258 2004-06-09 Geoffrey Keating <geoffk@apple.com>
2259
2260 * Makefile.in (CPPLIB_H): Put files in order of inclusion.
2261 (CPP_ID_DATA_H): New.
2262 (gtype-desc.o): Update dependencies.
2263 (GTFILES): Use CPP_ID_DATA_H.
2264
2265 2004-06-09 Mark Mitchell <mark@codesourcery.com>
2266
2267 Revert:
2268 PR c++/15815
2269 2004-06-07 Mark Mitchell <mark@codesourcery.com>
2270 * doc/extend.texi: Deprecate #pragma interface and #pragma
2271 implementation.
2272
2273 2004-06-09 David S. Miller <davem@nuts.davemloft.net>
2274
2275 * config/sparc/sparc.h (MOVE_RATIO): New definition.
2276
2277 2004-06-09 Richard Henderson <rth@redhat.com>
2278
2279 * basic-block.h (struct edge_def): Add goto_locus.
2280 * tree-cfg.c (make_goto_expr_edges): Set it.
2281 (disband_implicit_edges): Use it.
2282 * tree-pretty-print.c (dump_implicit_edges): Print it.
2283
2284 2004-06-08 Anil Paranjpe <anilp1@kpitcummins.com>
2285
2286 * h8300.md (ldm_h8300s_4): Fix condition for expander.
2287
2288 2004-06-08 Jason Merrill <jason@redhat.com>
2289
2290 Gimplify VA_ARG_EXPR into simpler forms.
2291 * target.h: Add gimplify_va_arg_expr hook.
2292 * target-def.h: Add TARGET_GIMPLIFY_VA_ARG_EXPR.
2293 * fold-const.c (build_fold_addr_expr)
2294 (build_fold_addr_expr_with_type): Move from gimplify.c.
2295 * tree.h: Declare them.
2296 * gimplify.c (gimplify_and_add): New fn.
2297 (build_addr_expr, build_addr_expr_with_type): Move to fold-const.c.
2298 (gimplify_array_ref_to_plus, gimplify_modify_expr)
2299 (gimplify_expr): Use build_fold_*.
2300 (copy_if_shared_r): Only mark VA_ARG_EXPR volatile if we
2301 don't know how to gimplify it.
2302 * builtins.c (std_gimplify_va_arg_expr): New fn.
2303 (dummy_object): New static fn.
2304 (gimplify_va_arg_expr): New fn.
2305 (stabilize_va_list): Use build_fold_*.
2306 * tree-gimple.h: Declare new fns.
2307 * config/i386/i386.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2308 (ix86_gimplify_va_arg): New fn.
2309 * config/ia64/ia64.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2310 (ia64_gimplify_va_arg): New fn.
2311 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): New fn.
2312 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2313 * alias.c (get_varargs_alias_set): Just return 0 for now.
2314
2315 * c-objc-common.c (c_tree_printer): Improve handling of %T.
2316
2317 2004-06-09 Andrew Pinski <pinskia@physics.uc.edu>
2318
2319 * tree-complex.c (expand_complex_comparison): Use fold_convert instead
2320 of convert.
2321 * tree-inline.c (setup_one_parameter): Likewise.
2322 * tree-sra.c (csc_build_component_ref): Likewise.
2323 * tree-ssa-ccp.c (ccp_fold): Likewise.
2324 * tree-ssa-copy.c (cprop_operand): Likewise.
2325 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
2326 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
2327
2328 2004-06-09 J"orn Rennecke <joern.rennecke@superh.com>
2329
2330 PR rtl-optimization/15521:
2331 * sched-int.h (in_post_call_group_p): Change type to enum.
2332 * sched-deps.c (sched_analyze_insn):
2333 (sched_analyze): When in_post_call_group_p is post_call_initial,
2334 don't add a dependency, but still set SCHED_GROUP_P and CANT_MOVE,
2335 and also reset in_post_call_group_p to post_call.
2336 (sched_analyze): When the previous basic block ended in a CALL_INSN,
2337 initialize in_post_call_group_p as post_call_initial.
2338 (init_deps): initialize in_post_call_group_p to not_post_call.
2339
2340 2004-06-09 Arnaud Charlet <charlet@act-europe.fr>
2341
2342 PR ada/6637
2343 * doc/install.texi: List ada, libada as options to --enable-shared
2344
2345 2004-06-09 Paolo Bonzini <bonzini@gnu.org>
2346
2347 * aclocal.m4 (gcc_AC_PROG_LN): Remove.
2348 (gcc_AC_CHECK_DECLS): Use AH_TEMPLATE to generate
2349 config.in entries.
2350 * configure.ac: Call ACX_PROG_LN, falling back to $LN_S
2351 if hard links are not available.
2352 * configure: Regenerate.
2353 * config.in: Regenerate.
2354
2355 2004-06-08 Per Bothner <per@bothner.com>
2356
2357 * configure.ac: New --enable-mapped-location sets USE_MAPPED_LOCATION.
2358
2359 2004-06-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2360
2361 * toplev.c (floor_log2_wide): Correct casts for 64-bit hosts.
2362 Correct formatting.
2363
2364 2004-06-08 James E Wilson <wilson@specifixinc.com>
2365
2366 PR target/15790
2367 * config/i386/i386-coff.h (ASM_OUTPUT_ALIGN): Define.
2368
2369 2004-06-08 Andrew Pinski <pinskia@physics.uc.edu>
2370
2371 * fold-const.c (fold_convert): Treat OFFSET_TYPE like
2372 POINTER_TYPE and INTEGER_TYPE.
2373
2374 2004-06-08 Bernardo Innocenti <bernie@develer.com>
2375
2376 * modulo-sched.c: Compile only when INSN_SCHEDULING is
2377 defined.
2378
2379 2004-06-08 Jeff Law <law@redhat.com>
2380
2381 * doc/contrib.texi: Add entries for Stefan Olsson and
2382 Ola Ronnerup.
2383
2384 2004-06-08 DJ Delorie <dj@redhat.com>
2385
2386 * toplev.c (floor_log2_wide): Replace loop with faster bit
2387 operations.
2388 (exact_log2_wide): Define in terms of the above.
2389 * toplev.h (floor_log2): Use _builtin_clz family of builtins if
2390 available.
2391
2392 2004-06-08 Andrew Pinski <pinskia@physics.uc.edu>
2393
2394 * config/rs6000/rs6000.c (print_operand, <case 'z'>):
2395 Make sure that we are in INDIRECT mode when getting the
2396 stub name.
2397
2398 2004-06-08 Anil Paranjpe <anilp1@kpitcummins.com>
2399
2400 * h8300.md (extendqisi2_h8300): Add constraints.
2401 (ldm_h8300s_4_normal): Fix typo.
2402
2403 2004-06-08 Richard Henderson <rth@redhat.com>
2404
2405 * gimple-low.c (struct lower_data): Replace the_return_label and
2406 one_return_stmt with return_statements.
2407 (lower_function_body): Process the entire list of return_statements.
2408 (lower_return_expr): Check source value before unifying return_exprs.
2409 * gimplify.c (gimplify_return_expr): Force the use of a temporary
2410 for !aggregate_value_p.
2411 * tree-gimple.c: Update RETURN_EXPR grammer.
2412
2413 2004-06-08 Vladimir Makarov <vmakarov@redhat.com>
2414
2415 PR target/15598
2416 * config/ia64/ia64.c (bundling): Add missed TYPE_A.
2417
2418 2004-06-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2419
2420 PR rtl-optimization/15717
2421 * config/i386/i386.c (legitimate_constant_p): Do not allow
2422 x - symbol_ref.
2423
2424 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
2425
2426 * gimplify.c (copy_if_shared_r): Revert:
2427 2004-05-21 Richard Henderson <rth@redhat.com>
2428 * gimplify.c [...] Don't mark VA_ARG_EXPRs volatile here.
2429
2430 2004-06-07 Roger Sayle <roger@eyesopen.com>
2431
2432 * expmed.c (add_cost, neg_cost, sdiv_pow2_cheap, smod_pow2_cheap):
2433 Make arrays indexed by machine mode. Rename negate_cost to neg_cost.
2434 (init_expmed): Initialize these cost arrays as appropriate.
2435 (store_bit_field, extract_bit_field): Correct whitespace.
2436 (synth_mult, choose_mult_variant, expand_mult, expand_mult_highpart,
2437 expand_mult_highpart_optab, expand_divmod): Update uses of add_cost,
2438 neg_cost, sdiv_pow2_cheap, smod_pow2_cheap to index with mode,
2439 word_mode or compute_mode as appropriate.
2440
2441 2004-06-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2442
2443 PR target/15783
2444 * config/sparc/sparc.c (function_arg_union_value): Add 'mode'
2445 parameter. Enumerate the registers inside the PARALLEL.
2446 (function_arg): Adjust call to function_arg_union_value.
2447 (function_value): Likewise.
2448
2449 * config/sparc/sparc.c (sparc_function_epilogue): Properly format.
2450
2451 2004-06-07 Roger Sayle <roger@eyesopen.com>
2452
2453 * real.c (real_copysign): New function to implement libm's copysign.
2454 * real.h (real_copysign): Prototype here.
2455 * fold-const.c (tree_expr_nonnegative_p): The result of sqrt, sqrtf
2456 and sqrtl can be negative, as sqrt(-0.0) = -0.0. Correct whitespace.
2457 * builtins.c (fold_builtin_isascii, fold_builtin_toascii,
2458 fold_builtin_isdigit): Add function prototypes.
2459 (fold_builtin_copysign): New function to fold copysign, copysignf
2460 and copysignl. Optimize copysign(x,x) as x. Evaluate copysign of
2461 constant arguments at compile-time using real_copysign. Fold
2462 copysign(X,Y) as fabs(X) if Y is always non-negative.
2463 (fold_builtin_1): Correct minor whitespace/style issues. Call
2464 fold_builtin_copysign for BUILT_IN_COPYSIGN{,F,L}.
2465
2466 2004-06-07 J"orn Rennecke <joern.rennecke@superh.com>
2467
2468 * tree.c (iterative_hash_expr): Use real_hash.
2469
2470 2004-06-07 Joseph S. Myers <jsm@polyomino.org.uk>
2471
2472 PR c/14765
2473 * c-parse.in (compstmt_primary_start): Set last_expr_type to
2474 NULL_TREE.
2475
2476 2004-06-07 Mark Mitchell <mark@codesourcery.com>
2477
2478 PR c++/15815
2479 * doc/extend.texi: Deprecate #pragma interface and #pragma
2480 implementation.
2481
2482 2004-06-07 Alexandre Oliva <aoliva@redhat.com>
2483
2484 PR middle-end/15666
2485 * c-decl.c (finish_decl): Use change_decl_assembler_name for the
2486 builtin decl as well.
2487
2488 2004-06-07 Roger Sayle <roger@eyesopen.com>
2489
2490 PR c/14649
2491 * c-typeck.c (require_constant_value, require_constant_elements):
2492 Move declarations to the top of the file.
2493 (build_function_call): If we require a constant value, fold with
2494 fold_initializer. If the result is a constant, and the function
2495 wasn't called using __builtin_foo, issue a pedantic warning.
2496 (build_unary_op): If we require a constant value, fold tree with
2497 fold_initializer.
2498 (build_binary_op): Use require_constant_value to determine whether
2499 to call fold or fold_initializer.
2500
2501 2004-06-07 Richard Henderson <rth@redhat.com>
2502
2503 * gimple-low.c (struct lower_data): Add the_return_label and
2504 one_return_stmt.
2505 (lower_function_body): Initialize and use them.
2506 (lower_return_expr): New.
2507 (lower_stmt): Call it.
2508 * gimplify.c (gimplify_return_expr): Force the argument to be either
2509 null or a result_decl.
2510 * tree-gimple.c: Update gimple grammer to match.
2511 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Deny
2512 coalescing of result_decls.
2513
2514 2004-06-07 Richard Henderson <rth@redhat.com>
2515
2516 PR rtl-opt/15193
2517 * expmed.c (extract_bit_field): Fix vector_extract return.
2518
2519 * config/i386/i386.md (negv4sf2): New pattern.
2520
2521 2004-06-07 Mark Mitchell <mark@codesourcery.com>
2522
2523 PR c++/15337
2524 * c-common.c (c_sizeof_or_alignof_type): Use more detailed error
2525 message.
2526
2527 2004-06-06 Paolo Bonzini <bonzini@gnu.org>
2528
2529 * config.in: Regenerate.
2530
2531 2004-06-06 Steven Bosscher <stevenb@suse.de>
2532
2533 * tree-cfg.c (tree_verify_flow_info): Make sure that labels in
2534 SWITCH_LABELS are always sorted.
2535
2536 2004-06-06 Steven Bosscher <stevenb@suse.de>
2537
2538 * hooks.c (hook_int_void_1): New generic hook.
2539 * hooks.h (hook_int_void_1): Add prototype.
2540 * config/c4x/c4x.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
2541 Define to hook_int_void_1.
2542 * config/c4x/c4x.md: Replace dummies for the old pipeline model
2543 with dummies for the new one.
2544
2545 2004-06-06 Roger Sayle <roger@eyesopen.com>
2546
2547 * tree.h (lvalue_or_else): Delete function prototype.
2548 * c-typeck.c (lvalue_or_else): Make static. Add static prototype.
2549
2550 2004-06-06 Stephane Carrez <stcarrez@nerim.fr>
2551
2552 PR target/14542
2553 * config/m68hc11/m68hc11.md (move peephole2): Emit a use note to avoid
2554 a live change of a register after peephole replacement.
2555
2556 2004-06-06 Joseph S. Myers <jsm@polyomino.org.uk>
2557
2558 PR c/13519
2559 * c-typeck.c (composite_type, common_pointer_type): New functions.
2560 (common_type): Split parts into composite_type and
2561 common_pointer_type. Ensure that arithmetic operations return
2562 unqualified types without attributes. Don't make composite type
2563 of signed enum and compatible integer be unsigned.
2564 (build_conditional_expr, build_binary_op): Use
2565 common_pointer_type.
2566 * c-decl.c (merge_decls): Use composite_type.
2567 * c-tree.h (composite_type): Declare.
2568
2569 2004-06-06 Stephane Carrez <stcarrez@nerim.fr>
2570
2571 PR target/14457
2572 * config/m68hc11/m68hc11.c (splitable_operand): New predicate.
2573 * config/m68hc11/m68hc11-protos.h (splitable_operand): Declare.
2574 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register it.
2575 (inhibit_libc): Must define.
2576 * config/m68hc11/m68hc11.md ("movhi_const0"): Use splitable_operand.
2577 ("*andhi3_gen", "iorhi3", "*iorhi3_gen"): Likewise.
2578 ("xorhi3"): Likewise.
2579
2580 2004-06-06 Eric Botcazou <ebotcazou@libertysurf.fr>
2581
2582 * cgraphunit.c (cgraph_decide_inlining): Adjust dump lines in
2583 always_inline pass.
2584
2585 2004-06-05 David S. Miller <davem@nuts.davemloft.net>
2586
2587 * config/sparc/linux.h (TARGET_C99_FUNCTIONS): Set.
2588 * config/sparc/linux64.h (TARGET_C99_FUNCTIONS): Likewise.
2589
2590 2004-06-05 Bernardo Innocenti <bernie@develer.com>
2591
2592 * regclass.c (init_reg_sets): Check for missing registers in target
2593 initializer macros FIXED_REGISTERS and CALL_USED_REGISTERS.
2594
2595 2004-06-05 Zack Weinberg <zack@codesourcery.com>
2596
2597 * Makefile.in (MKDEPS_H): New shorthand.
2598 (c-opts.o): Update dependencies.
2599 * c-opts.c: Include mkdeps.h.
2600 (handle_deferred_opts): Use cpp_get_deps and deps_add_target,
2601 not cpp_add_dependency_target.
2602
2603 2004-06-05 Steven Bosscher <stevenb@suse.de>
2604
2605 * config/v850/v850.c (v850_use_dfa_pipeline_interface): New.
2606 * config/v850/v850.md: Convert to DFA scheduler description.
2607
2608 2004-06-05 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
2609
2610 PR fortran/15478
2611 * doc/install.texi: Document GMP as prerequisite. Document
2612 --with-gmp and --with-gmp-dir configure options.
2613 * fortran/gfortran.texi: Remove section "Compiling and testing",
2614 remove TOC reference to it.
2615
2616 2004-06-05 Graham Stott <graham.stott@btinternet.com>
2617
2618 * combine.c(simplify_shift_const): Check shift amount is a
2619 CONST_INT.
2620
2621 2004-06-05 Danny Smith <dannysmith@users.sourceforge.net>
2622
2623 * toplev.c (init_asm_output): Add explicit 'b' to mode when
2624 opening asm_out_file.
2625 * c-pch.c (c_common_write_pch): Remove unnecessary fflush before
2626 reading asm_out_file. Replace fflush after reading asm_out_file
2627 with fseek.
2628 * hosthooks-def.h (HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY): Define
2629 default and add to HOST_HOOKS_INITIALIZER.
2630 * hosthooks.h (gt_pch_alloc_granularity): Declare hook function.
2631 * ggc-common.c (default_gt_pch_alloc_granularity): New function.
2632 (gt_pch_save): Use host_hooks.gt_pch_alloc_granularity
2633 to set mmi.offset padding.
2634 * config.gcc (i[34567]86-*-mingw32*): Set target_gtfiles to
2635 $(srcdir)/config/i386/winnt.c.
2636 (i[34567]86-*-pe | i[34567]86-*-cygwin*): Likewise.
2637 (i[34567]86-*-uwin*): Likewise.
2638 *i[34567]86-*-interix3*): Likewise.
2639 * config.host (i[34567]86-*-mingw32*): Set out_host_hook_obj.
2640 * config/i386/host-mingw32.c: New file.
2641 * config/i386/x-mingw32: Add rule for host-mingw32.o.
2642 * config/i386/winnt.c: (struct extern_list) Tag as GTY.
2643 (extern_head): Likewise.
2644 (struct export_list) Likewise.
2645 (export_head): Likewise.
2646 (i386_pe_record_external_function): Use ggc_alloc.
2647 (i386_pe_record_exported_symbol): Likewise.
2648 Include "gt-winnt.h" at end.
2649 * doc/hostconfig.texi: Document
2650 HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY.
2651
2652 2004-06-04 Bernardo Innocenti <bernie@develer.com>
2653
2654 * config/m68k/m68k.h: Remove comments copied over from tm.texi.
2655 Rename 68000 and 68k to m68k for consistency in comments. Remove
2656 trailing whitespace before EOLs and before TABs.
2657 (MAX_CODE_ALIGN): Remove unused macro.
2658 (CALL_USED_REGISTERS): Reformat and add comments.
2659
2660 2004-06-04 Frank Ch. Eigler <fche@redhat.com>
2661
2662 * gcc.c (MFLIB_SPEC): Remove library references, to require users
2663 to enumerate -lmudflap* and dependencies when linking.
2664
2665 2004-06-04 Paolo Bonzini <bonzini@gnu.org>
2666
2667 PR target/15822
2668 * dojump.c (do_jump): Fix uninitialized variable tcode1.
2669
2670 2004-06-04 Jerry Quinn <jlquinn@optonline.net>
2671
2672 * Makefile.in (insn-conditions.o): Back out removal of reload.h.
2673 * genconditions.c (write_header): Back out removal of reload.h.
2674
2675 2004-06-04 Jan Hubicka <jh@suse.cz>
2676
2677 Re-apply hopefully fixed patch:
2678 * i386.md (UNSPECV_EH_RETURN): Kill.
2679 (eh_return): Use jump_insn.
2680 (eh_return_si, eh_return_di): Change pattern to jump instruction.
2681
2682 2004-06-04 Jeff Law <law@redhat.com>
2683
2684 * cfgrtl.c (try_redirect_by_replacing_jump): Fix return value.
2685
2686 2004-06-04 Steven Bosscher <stevenb@suse.de>
2687
2688 * except.c (for_each_eh_region): New function.
2689 * except.h (for_each_eh_region): Add a prototype for it.
2690 * tree-cfg.c (update_eh_labels): New function, callback for
2691 for_each_eh_region.
2692 (label_for_bb): Make global static, unfortunately.
2693 (cleanup_dead_labels): Also update label references for
2694 exception regions.
2695
2696 2004-06-03 Chris Demetriou <cgd@broadcom.com>
2697
2698 * config/mips/mips.c (struct irix_section_align_entry): Fix
2699 GTY marker.
2700
2701 2004-06-03 Geoffrey Keating <geoffk@apple.com>
2702
2703 * toplev.c (check_global_declarations): Don't ask for
2704 DECL_ASSEMBLER_NAME unless the function really is declared
2705 static and not defined.
2706
2707 2004-06-03 Matt Austern <austern@apple.com>
2708
2709 PR c++/15428
2710 * default.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): New name
2711 for TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, with reversed sense.
2712 * config/darwin.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Likewise.
2713 * doc/tm.texi (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): Rewrite
2714 documentation to reflect the new macro name and to clarify its
2715 meaning.
2716
2717 2004-06-03 Steven Bosscher <stevenb@suse.de>
2718
2719 * rtl.def (VAR_LOCATION): Make RTX_EXTRA.
2720
2721 2004-06-03 Andrew Pinski <pinskia@physics.uc.edu>
2722
2723 * config/darwin.c (machopic_indirect_data_reference): Copy
2724 the SYMBOL_REF_DECL from the original RTX for the new
2725 non-lazy pointer RTX.
2726
2727 2004-06-03 Mark G. Adams <mark.g.adams@sympatico.ca>
2728
2729 * tree.h: Remove include of version.h
2730 * c-cppbuiltin.c: Include version.h
2731 * diagnostic.c: Include version.h
2732 * dwarf2out.c: Include version.h
2733 * toplev.c: Include version.h
2734 * vmsdbgout.c: Include version.h
2735 * Makefile.in: Remove dependency on version.h from TREE_H, and
2736 add dependencies to required .o targets
2737
2738 2004-06-03 Jerry Quinn <jlquinn@optonline.net>
2739
2740 * Makefile.in (RA_H, RESOURCE_H, SCHED_INT_H, CFGLAYOUT_H,
2741 CFGLOOP_H, DF_H, DDG_H, TREE_SSA_LIVE_H): New.
2742 (TARGET_H): Add insn-modes.h.
2743 (tree-ssa.o, tree-cfg.o, tree-ssa-loop.o, toplev.o, passes.o,
2744 loop.o, loop-doloop.o, unroll.o, cfgloop.o, cfgloopanal.o,
2745 loop-iv.o, cfgloopmanip.o, loop-init.o, loop-unswitch.o,
2746 loop-unroll.o, ddg.o, modulo-sched.o, predict.o,
2747 cfglayout.o, ifcvt.o): Replace cfgloop.h with CFGLOOP_H.
2748 (toplev.o, passes.o, cfghooks.o, cfgloopmanip.o, loop-init.o,
2749 loop-unswitch.o, loop-unroll.o, ddg.o, modulo-sched.o,
2750 bb-reorder.o, tracer.o, cfglayout.o): Replace cfglayout.h with
2751 CFGLAYOUT_H.
2752 (ra.o, ra-build.o, ra-colorize.o, ra-debug.o, ra-rewrite.o):
2753 Replace ra.h with RA_H.
2754 (resource.o, regrename.o, insn-conditions.o, insn-emit.o,
2755 insn-recog.o): Replace resource.h with RESOURCE_H.
2756 (ddg.o, modulo-sched.o, haifa-sched.o, sched-deps.o, sched-rgn.o,
2757 sched-ebb.o, sched-vis.o, out_object_file): Replace sched-int.h
2758 with SCHED_INT_H.
2759 (web.o, lcm.o, df.o, ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
2760 ra-rewrite.o): Replace df.h with DF_H.
2761 (ddg.o, modulo-sched.o): Replace ddf.h with DDG_H.
2762 (tree-outof-ssa.o, tree-ssa-live.o, tree-ssa-copyrename.o):
2763 Replace tree-ssa-live.h with TREE_SSA_LIVE_H.
2764 (insn-conditions.o): Remove unused reload.h.
2765 * cfglayout.h: Add include guard. Include basic-block.h.
2766 * cfgloop.h: Add include guard. Include basic-block.h, rtl.h.
2767 * ddg.h: Include sbitmap.h, basic-block.h, df.h.
2768 * df.h: Add include guard. Include bitmap.h, sbitmap.h,
2769 basic-block.h.
2770 * genconditions.c: Remove reload.h.
2771 * ra.h: Add include guard. Include bitmap.h, sbitmap.h,
2772 hard-reg-set.h, insn-modes.h.
2773 * resource.h: Add include guard. Include hard-reg-set.h.
2774 * sched-int.h: Add include guard. Include insn-attr.h,
2775 basic-block.h, rtl.h.
2776 * target.h: Add include guard. Include insn-modes.h.
2777 * tree-ssa-live.h: Include partition.h.
2778
2779 2004-06-03 Daniel Berlin <dberlin@dberlin.org>
2780 Kenneth Zadeck <zadeck@naturalbridge.com>
2781
2782 * tree-ssa-ccp.c (varying_ssa_edges): New worklist.
2783 (add_var_to_ssa_edges_worklist): Add value argument.
2784 Update callers.
2785 Use new worklist.
2786 (process_ssa_edge_worklist): New function.
2787 (tree_ssa_ccp): Move worklist processing core to
2788 process_ssa_edge_worklist, and just call that for the two worklists.
2789
2790 2004-06-03 Steven Bosscher <stevenb@suse.de>
2791
2792 * basic-block.c (tail_recursion_label_list): Don't declare.
2793 (CLEANUP_PRE_SIBCALL): Remove. Renumber the other CLEANUP_*
2794 accordingly.
2795 * cfgbuild.c (find_label_refs): Remove.
2796 (find_basic_blocks_1): Don't handle CALL_PLACEHOLDER insns.
2797 * cfgcleanup.c (tail_recursion_label_p): Remove.
2798 (merge_blocks_move): Do not check for tail recursion.
2799 (try_optimize_cfg): Likewise.
2800 (cleanup_cfg): Never handle CLEANUP_PRE_SIBCALL.
2801 * cfgrtl.c (tail_recursion_label_list): Remove.
2802 * except.c (remove_unreachable_regions): Don't handle
2803 CALL_PLACEHOLDER insns.
2804 (convert_from_eh_region_ranges_1, can_throw_internal,
2805 can_throw_external): Likewise.
2806 * function.c (free_after_compilation): Don't clear
2807 x_tail_recursion_label.
2808 (fixup_var_refs_insns): Don't handle CALL_PLACEHOLDER insns.
2809 (identify_blocks_1): Don't recurse for CALL_PLACEHOLDER insns.
2810 (reorder_blocks_1): Likewise.
2811 * function.h (struct function): Remove x_tail_recursion_label
2812 member. Don't define tail_recursion_label.
2813 * jump.c (mark_all_labels): Don't handle CALL_PLACEHOLDER insns.
2814 * print-rtl.c (print_rtx): Likewise.
2815 * rtl.def (CALL_PLACEHOLDER): Remove.
2816 * rtl.h (sibcall_use_t): Remove enum.
2817 (optimize_sibling_and_tail_recursive_calls,
2818 replace_call_placeholder): Remove function prototypes.
2819 * stmt.c (tail_recursion_args): Remove.
2820 (optimize_tail_recursion): Remove.
2821 (expand_return): Don't check for possible tail recursion.
2822 * tree.h (optimize_tail_recursion): Remove prototype.
2823
2824 2004-06-02 Jan Hubicka <jh@suse.cz>
2825
2826 * tree-cfg.c (tree_find_edge_insert_loc): Allow inserting before
2827 return_stmt.
2828
2829 2004-06-02 Jason Merrill <jason@redhat.com>
2830
2831 * Makefile.in (TAGS): Don't mess with c-parse.[ch].
2832 Do include c-parse.in.
2833
2834 2004-06-02 Eric Christopher <echristo@redhat.com>
2835
2836 * c-typeck.c (common_type): Don't lose type qualifiers
2837 when creating new variants.
2838
2839 2004-06-02 Andrew Pinski <pinskia@physics.uc.edu>
2840
2841 PR tree-optimization/14042
2842 PR tree-optimization/14729
2843 PR tree-optimization/14736
2844 * tree-ssa.c (tree_ssa_useless_type_conversion_1):
2845 Check the type which the pointer points to
2846 instead of the pointer types.
2847
2848 2004-06-02 Kazu Hirata <kazu@cs.umass.edu>
2849
2850 PR tree-optimization/15738.
2851 * builtins.c (fold_builtin_strchr): Transform
2852 strrchr (s, '\0') to strchr (s, '\0').
2853
2854 2004-06-02 Steven Bosscher <stevenb@suse.de>
2855
2856 * i386.c (ix86_adjust_cost): Don't increase the cost for
2857 load+operation for PROCESSOR_PENTIUMPRO, it is already
2858 modelled in the DFA description
2859
2860 2004-06-01 Jerry Quinn <jlquinn@optonline.net>
2861
2862 * Makefile.in (EXPR_H): Add insn-config.h, function.h,
2863 $(RTL_H), flags.h, $(TREE_H), $(MACHMODE_H), $(EXPR_H).
2864 (ALIAS_H, EMIT_RTL_H): New.
2865 (cselib.o): Replace EXPR_H with EMIT_RTL_H.
2866 (cfgcleanup.o): Add EMIT_RTL_H.
2867 (alias.o): Replace EXPR_H with EMIT_RTL_H and ALIAS_H.
2868 * alias.c: Replace expr.h with emit-rtl.h and alias.h.
2869 * attribs.c, c-lex.c, c-obj-common.c, c-semantics.c: Remove expr.h.
2870 * cfgcleanup.c, cselib.c: Replace expr.h with emit-rtl.h.
2871 * expr.h: Add include guard. Include function.h, rtl.h, flags.h,
2872 tree.h, machmode.h, insn-config.h, alias.h, emit-rtl.h.
2873 (get_varargs_alias_set, get_frame_alias_set, record_base_value,
2874 record_alias_subset, new_alias_set, can_address_p): Move to alias.h.
2875 (set_mem_alias_set, set_mem_align, set_mem_expr, set_mem_offset,
2876 set_mem_size): Move to emit-rtl.h.
2877 * emit-rtl.h: New.
2878 * alias.h: New.
2879
2880 2004-06-01 Eric Botcazou <ebotcazou@act-europe.fr>
2881
2882 * function.c (walk_fixup_memory_subreg): New parameter 'var'.
2883 Call fixup_memory_subreg only if the MEM is equal to 'var'.
2884 Adjust recursive calls to self.
2885 (fixup_var_refs_insn): Pass 'var' to walk_fixup_memory_subreg.
2886
2887 2004-06-01 Richard Henderson <rth@redhat.com>
2888 Andrew Pinski <pinskia@physics.uc.edu>
2889
2890 * c-parse.in (OFFSETOF, offsetof_member_designator): New.
2891 (primary): Handle offsetof. Add error productions for faux functions.
2892 Move component_ref objc checking to build_component_ref.
2893 (reswords): Add offsetof.
2894 (rid_to_yy): Add offsetof.
2895 * c-tree.h (build_offsetof): Declare.
2896 * c-common.h (objc_is_public): Declare.
2897 * c-typeck.c (build_component_ref): Check objc_is_public.
2898 (build_offsetof): New.
2899 * stub-objc.c (objc_is_public): New.
2900 * objc/objc-act.c, objc/objc-act.h (objc_is_public): Rename
2901 from is_public.
2902 * ginclude/stddef.h (offsetof): Use __builtin_offsetof.
2903 * doc/extend.texi (Offsetof): Move from C++ section to C section
2904 and rewrite for __builtin_offsetof.
2905
2906 2004-06-01 Peter Barada <peter@the-baradas.com>
2907 Peter Jakubek <peter@laseranimation.com>
2908
2909 * config/m68k/m68k.c(m68k_output_mi_thunk): For ColdFire, use %d0 as
2910 a scratch to perform an add to memory.
2911
2912 2004-06-01 Bernardo Innocenti <bernie@develer.com>
2913
2914 PR target/14018
2915 * config/m68k/m68k.c (m68k_align_loops_string, m68k_align_jumps_string,
2916 m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
2917 m68k_align_funcs): Remove.
2918 (override_options): Remove code to handle -malign-* options.
2919 * config/m68k/m68k.h (TARGET_OPTIONS): Remove -malign-* options.
2920 (FUNCTION_BOUNDARY, LOOP_ALIGN, LOOP_ALIGN_AFTER_BARRIER): Remove.
2921 (m68k_align_loops_string, m68k_align_jumps_string,
2922 m68k_align_funcs_string, m68k_align_loops, m68k_align_jumps,
2923 m68k_align_funcs): Remove definitions.
2924
2925 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
2926
2927 PR target/15626
2928 * doc/install.texi (sparc-sun-solaris2*): Document messages issued
2929 by the Sun linker in conjunction with the Sun assembler.
2930 (sparc-sun-solaris2.7): Update revision info for Sun patch 106950.
2931
2932 2004-06-01 Jeff Law <law@redhat.com>
2933
2934 * stmt.c (expand_decl): Be more selective about calling
2935 mark_reg_pointer.
2936
2937 2004-06-01 Nicola Pero <nicola@brainstorm.co.uk>
2938
2939 PR objc/7993
2940 * objc-act.c (is_private): Do not emit the 'instance variable %s
2941 is declared private' error.
2942 (is_public): Emit the error after calling is_private.
2943 (lookup_objc_ivar): If the instance variable is private, return 0
2944 - the instance variable is invisible here.
2945
2946 2004-06-01 Eric Botcazou <ebotcazou@libertysurf.fr>
2947
2948 * doc/invoke.texi (-static-libgcc): Explicitly mention
2949 non-GNU linkers.
2950
2951 2004-06-01 Bernardo Innocenti <bernie@develer.com>
2952
2953 PR target/12968
2954 * doc/invoke.texi: Document stack alignment side-effect of -mshort.
2955
2956 2004-05-31 Joseph S. Myers <jsm@polyomino.org.uk>
2957
2958 PR c/15749
2959 * c-decl.c (grokdeclarator, finish_struct): Don't pedwarn for
2960 misuses of structures with flexible array members if
2961 in_system_header.
2962
2963 2004-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
2964
2965 PR target/15693
2966 * config/sparc/sparc.c (compare_operand): New predicate.
2967 * config/sparc/sparc.h (PREDICATE_CODES): Add it.
2968 * config/sparc/sparc.md (cmpsi expander): Use it. If the first
2969 operand is a ZERO_EXTRACT and the second operand is not zero,
2970 force the former to a register.
2971 (cmpdi expander): Likewise.
2972
2973 2004-05-31 Geoffrey Keating <geoffk@apple.com>
2974
2975 * gengtype-lex.l: Catch stray GTY markers in the files gengtype
2976 looks at.
2977 * alias.c (alias_invariant_size): Make alias_invariant_size
2978 static, fix GTY marker.
2979
2980 2004-05-31 Kazu Hirata <kazu@cs.umass.edu>
2981
2982 PR tree-optimization/15743.
2983 * builtins.c (fold_builtin_1): Fold index() and rindex().
2984
2985 2004-05-31 Roger Sayle <roger@eyesopen.com>
2986
2987 PR middle-end/15069
2988 * fold-const.c (fold_single_bit_test): Only perform "(X & C) != 0"
2989 into "X < 0" (where C is the signbit) if X's type is a full mode.
2990
2991 2004-05-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2992
2993 * pa.md: Disable the peephole2 patterns that generate indexed
2994 floating-point stores when indexing is disabled.
2995
2996 2004-05-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
2997
2998 * c-pretty-print.c (pp_c_left_bracket): Make a function.
2999 (pp_c_right_bracket): Likewise.
3000 (pp_c_star): Likewise.
3001 (pp_c_ampersand): Define.
3002 * c-pretty-print.h (pp_c_left_bracket): Declare.
3003 (pp_c_right_bracket): Likewise.
3004 (pp_c_star): Likewise.
3005 (pp_c_ampersand): Likewise.
3006
3007 2004-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
3008
3009 * config/sol2.h (__enable_execute_stack): ANSIfy function
3010 definition.
3011
3012 2004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
3013
3014 * c-incpath.c (add_path): Canonicalize paths to use '/' if
3015 HAVE_DOS_BASED_FILESYSTEM.
3016
3017 2004-05-31 Steven Bosscher <stevenb@suse.de>
3018
3019 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
3020 Only look at case labels if the immediate dominator is also
3021 the only predecessor. Don't look for more case labels if the
3022 first seen is a case range.
3023
3024 2004-05-31 Kazu Hirata <kazu@cs.umass.edu>
3025
3026 * builtins.c: Add a prototype for fold_builtin_strchr().
3027
3028 2004-05-31 Paolo Bonzini <bonzini@gnu.org>
3029
3030 Revert this patch:
3031 2004-05-27 Paolo Bonzini <bonzini@gnu.org>
3032
3033 * combine.c (gen_binary): Remove.
3034 (known_cond, simplify_shift_const
3035 find_split_point, combine_simplify_rtx,
3036 simplify_if_then_else, simplify_set,
3037 simplify_logical, expand_field_assignment,
3038 extract_left_shift, force_to_mode,
3039 if_then_else_cond, apply_distributive_law,
3040 simplify_and_const_int, simplify_shift_const,
3041 gen_lowpart_for_combine, simplify_comparison,
3042 reversed_comparison): Replace with
3043 simplify_gen_binary, simplify_gen_relational or
3044 distribute_and_simplify_rtx.
3045 (distribute_and_simplify_rtx): New function.
3046
3047 2004-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3048
3049 * pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands
3050 when generating PIC code.
3051
3052 2004-05-30 Andrew Pinski <pinskia@physics.uc.edu>
3053
3054 * c-decl.c (c_expand_body_1): Remove and fold back into ...
3055 (c_expand_body): here.
3056 (c_expand_decl): Move to ...
3057 * c-common.c (c_expand_decl): Here and remove check for nested
3058 functions.
3059 * c-common.h (c_expand_decl): Add prototype.
3060 * c-tree.h (c_expand_decl): Remove.
3061
3062 2004-05-30 Roger Sayle <roger@eyesopen.com>
3063
3064 * fold-const.c (combine_comparisons, optimize_bit_field_compare,
3065 range_binop, fold_truthop, fold_binary_op_with_conditional_arg,
3066 fold_mathfn_compare, fold_inf_compare, fold,
3067 fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
3068 Use constant_boolean_node where appropriate. Don't bother using
3069 fold_convert on the second argument to omit_one_operand.
3070
3071 2004-05-30 Roger Sayle <roger@eyesopen.com>
3072
3073 * doc/c-tree.texi (Expressions): Document FLOOR_DIV_EXPR,
3074 CEIL_DIV_EXPR, ROUND_DIV_EXPR, FLOOR_MOD_EXPR, CEIL_MOD_EXPR,
3075 ROUND_MOD_EXPR, EXACT_DIV_EXPR. Improve documentation of
3076 TRUNC_DIV_EXPR, TRUNC_MOD_EXPR and comparison operations.
3077 Add missing (but documented) tree nodes to the index.
3078
3079 2004-05-30 Steven Bosscher <stevenb@suse.de>
3080
3081 PR tree-optimization/14819
3082 * builtins.c (fold_builtin_strchr): New.
3083 (fold_builtin_1): Handle BUILT_IN_STRCHR and BUILT_IN_STRRCHR
3084 with fold_builtin_strchr().
3085
3086 2004-05-30 Kazu Hirata <kazu@cs.umass.edu>
3087
3088 * bb-reorder.c, builtins.c, c-common.c, c-gimplify.c,
3089 c-incpath.c, cgraphunit.c, ddg.c, defaults.h, dwarf2out.c,
3090 expmed.c, flags.h, gcc.c, gensupport.c, gimplify.c, global.c,
3091 passes.c, reg-stack.c, target.h, toplev.c, tree-alias-ander.c,
3092 tree-alias-common.c, tree-cfg.c, tree-complex.c, tree-dfa.c,
3093 tree-eh.c, tree-mudflap.c, tree-mudflap.h, tree-outof-ssa.c,
3094 tree-phinodes.c, tree-pretty-print.c, tree-ssa-alias.c,
3095 tree-ssa-ccp.c, tree-ssa-live.c, tree-ssa-live.h,
3096 tree-ssa-pre.c, tree.h, value-prof.h, varasm.c: Fix comment
3097 formatting.
3098
3099 2004-05-30 Steven Bosscher <stevenb@suse.de>
3100
3101 * gimplify.c (sort_case_labels): New. Split out from...
3102 (gimplify_switch_expr): ...here. Use it.
3103 * tree-eh.c (lower_try_finally_switch): Sort the labels of
3104 the SWITCH_EXPR created here before leaving the function.
3105 * tree.c (sort_case_labels): Add prototype.
3106
3107 2004-05-30 Andrew Pinski <pinskia@physics.uc.edu>
3108
3109 * fold-const.c (fold) [case TRUTH_NOT_EXPR]: Make sure the type is
3110 of BOOLEAN_TYPE.
3111
3112 2004-05-30 Kazu Hirata <kazu@cs.umass.edu>
3113
3114 * c-common.c, calls.c, cfgcleanup.c, cgraph.c, cgraphunit.c,
3115 ddg.c, ddg.h, df.c, df.h, except.c, expr.c, flags.h,
3116 fold-const.c, gcc.c, gimplify.c, haifa-sched.c,
3117 modulo-sched.c, tree-inline.c, tree-into-ssa.c, tree-nested.c,
3118 tree-nrv.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-live.c,
3119 tree-ssa-loop.c, tree-ssa-pre.c, tree-tailcall.c, tree.h: Fix
3120 comment typos. Follow spelling conventions.
3121
3122 2004-05-29 Geoffrey Keating <geoffk@apple.com>
3123
3124 * gengtype-yacc.y: Add NESTED_PTR token.
3125 (option): Record `nested_ptr' option.
3126 * gengtype-lex.l: Handle `nested_ptr' keyword.
3127 * gengtype.c (walk_type): Process `nested_ptr' option.
3128 * gengtype.h (struct nested_ptr_data): New.
3129 * doc/gty.texi (GTY Options): Document `nested_ptr' option.
3130 * stringpool.c (struct string_pool_data): Make 'entries' point to
3131 ht_identifier instead of tree.
3132 (gt_pch_save_stringpool): Don't adjust pointers.
3133 (gt_pch_restore_stringpool): Call ht_load.
3134
3135 2004-05-29 Jason Merrill <jason@redhat.com>
3136
3137 * gimplify.c (gimplify_expr): Don't build a statement list
3138 if no gimplification was necessary.
3139
3140 2004-05-29 Joseph S. Myers <jsm@polyomino.org.uk>
3141
3142 * pretty-print.c (pp_base_format_text): Support %< instead of %`
3143 and %> as well as %'.
3144 * c-format.c: Use %< and %>.
3145 (gcc_diag_char_table, gcc_cdiag_char_table,
3146 gcc_cxxdiag_char_table): Update.
3147
3148 2004-05-29 Joseph S. Myers <jsm@polyomino.org.uk>
3149
3150 * c-typeck.c (common_type): Correct comment.
3151
3152 2004-05-29 Peter Barada <peter@the-baradas.com>
3153
3154 * config/m68k/m68k.c (CONST_METHOD): Add MVZ, MVS.
3155 * config/m68k/m68k.c (const_method): Likewise.
3156 * config/m68k/m68k.c (const_int_cost): Likewise.
3157 * config/m68k/m68k.c (const_int_cost): Likewise.
3158 * config/m68k/m68k.c (output_move_const_into_data_reg): Likewise.
3159
3160 2004-05-29 Peter Barada <peter@the-baradas.com>
3161
3162 * config/m68k/m68k.h (EXTRA_CONSTRAINT): add 'U' for register offset
3163 addressing.
3164 * config/m68k/m68k.md: Add 'U,U' alternative to ColdFire variants of
3165 movsi,movhi,movqi insn patterns.
3166
3167 2004-05-28 Andrew Pinski <pinskia@physics.uc.edu>
3168
3169 * c-semantics.c (emit_local_var): Remove code for DECL_INITIAL.
3170
3171 PR target/15720
3172 * config/darwin.c (machopic_indirect_call_target): Copy
3173 the SYMBOL_REF_DECL from the original RTX for the new
3174 stub RTX.
3175
3176 2004-05-28 DJ Delorie <dj@redhat.com>
3177
3178 * stor-layout.c (place_field): Revert erroneous commit.
3179
3180 2004-05-28 Ziemowit Laski <zlaski@apple.com>
3181
3182 * config/rs6000/altivec.h (vec_ctf, vec_vcfsx, vec_vcfux, vec_cts,
3183 vec_ctu, vec_dss, vec_dst, vec_dstst, vec_dststt, vec_dstt, vec_ld,
3184 vec_ldl, vec_lvsl, vec_lvsr, vec_sld, vec_splat, vec_vspltw,
3185 vec_vsplth, vec_vspltb, vec_splat_s8, vec_splat_s16, vec_splat_s32,
3186 vec_splat_u8, vec_splat_u16, vec_splat_u32, vec_st, vec_stl,
3187 vec_ste): Remove type checks for integral parameters and literals
3188 from '..._args_eq' macros.
3189
3190 2004-05-28 Aldy Hernandez <aldyh@redhat.com>
3191
3192 * c-common.c (fname_as_string): Fix xcalloc to xmalloc.
3193
3194 2004-05-28 Aldy Hernandez <aldyh@redhat.com>
3195
3196 * testsuite/g++.dg/charset/function.cc: New.
3197
3198 * testsuite/gcc.dg/charset/function.c: New.
3199
3200 * c-decl.c (c_make_fname_decl): Free return value from
3201 fname_as_string.
3202
3203 * cp/decl.c (cp_make_fname_decl): Free return value from
3204 fname_as_string.
3205
3206 * c-common.c (fname_as_string): Translate if necessary.
3207
3208 2004-05-28 Geoffrey Keating <geoffk@apple.com>
3209
3210 * stringpool.c: Add comments to PCH saving/restoring routines.
3211
3212 2004-05-28 Andrew Pinski <pinskia@physics.uc.edu>
3213
3214 * c-common.c (c_estimate_num_insns_1): Kill.
3215 (c_estimate_num_insns): Kill.
3216 * c-common.h (c_estimate_num_insns): Kill.
3217
3218 * gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING
3219 when checking for _POSIX_THREAD_PRIORITY_SCHEDULING.
3220 Remove comment about not checking for
3221 _POSIX_PRIORITY_SCHEDULING.
3222 * gthr-posix.c: Likewise.
3223
3224 2004-05-28 Paolo Bonzini <bonzini@gnu.org>
3225 Roger Sayle <roger@eyesopen.com>
3226
3227 PR rtl-optimization/15649
3228 Add LTGT_EXPR and improve pretty-printing of unordered
3229 comparisons.
3230 * c-common.c (c_common_truthvalue_conversion):
3231 Handle LTGT_EXPR.
3232 * c-typeck.c (build_binary_op): Likewise.
3233 * dojump.c (do_jump): Likewise.
3234 * expr.c (expand_expr_real_1, do_store_flag): Likewise.
3235 * predict.c (tree_predict_by_opcode): Likewise.
3236 * real.c (real_compare): Likewise.
3237 * tree-cfg.c (verify_expr): Likewise.
3238 * tree-inline.c (estimate_num_insns_1): Likewise.
3239 * tree-pretty-print.c (dump_generic_node): Likewise.
3240 Handle ORDERED_EXPR, UNORDERED_EXPR.
3241 (op_symbol): Print unordered comparisons differently
3242 than ordered ones.
3243 * tree.def (LTGT_EXPR): New '<' tree code.
3244 * doc/c-tree.texi (Expressions): Document floating-point
3245 comparison nodes.
3246
3247 Fold comparisons between floating point values.
3248 * fold-const.c (enum comparison_code): New, from
3249 #define'd constants. Define compcodes for unordered
3250 comparisons and for invalid transformations.
3251 (invert_tree_comparison): Add "honor_nans" parameter.
3252 (fold_truthop): Revamp to work on floating-point types too.
3253 (comparison_to_compcode): Support unordered comparisons.
3254 Use new enum comparison_code.
3255 (compcode_to_comparison): Likewise.
3256 (combine_compcodes): New function.
3257 (invert_truthvalue): Let invert_tree_comparison decide
3258 whether it is valid to fold the comparison. Fold ORDERED
3259 and UNORDERED even if flag_unsafe_math_optimizations is off,
3260 and the remaining even if flag_unsafe_math_optimizations
3261 is off but we are under -fno-trapping-math.
3262 (fold_relational_const): Integer modes do not honor NaNs.
3263
3264 2004-05-28 Paul Brook <paul@codesourcery.com>
3265
3266 * config/arm/arm.c (arm_output_epilogue): Remove redundant code.
3267
3268 2004-05-28 Paul Brook <paul@codesourcery.com>
3269
3270 * config/arm/arm.c (thumb_force_lr_save): New function.
3271 (arm_get_frame_offsets, thumb_unexpanded_epilogue,
3272 thumb_output_function_prologue): Use it.
3273 (thumb_expand_prologue): Set lr_save_eliminated.
3274
3275 2004-05-28 Richard Sandiford <rsandifo@redhat.com>
3276
3277 * config/mips/mips.md (extendsidi2): Tie the source and destination
3278 of the register alternative. Split it into nothing.
3279
3280 2004-05-28 Richard Sandiford <rsandifo@redhat.com>
3281
3282 * rtl.h (skip_consecutive_labels): Declare.
3283 * emit-rtl.c (skip_consecutive_labels): New function.
3284 * reorg.c (relax_delay_slots, dbr_schedule): Use it.
3285 * jump.c (follow_jumps): Say what null return values mean.
3286
3287 2004-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
3288
3289 PR target/13250
3290 * config/sh/sh.md (rotlsi3): Use emit_move_insn.
3291
3292 2004-05-27 Kaz Kojima <kkojima@gcc.gnu.org>
3293
3294 * config/sh/t-linux (SHLIB_MAPFILES): Use sh specific
3295 libgcc-std.ver.
3296 * config/sh/libgcc-std.ver: New file.
3297
3298 2004-05-27 Bryce McKinlay <mckinlay@redhat.com>
3299
3300 * except.c: Revert change of 2004-05-26.
3301 * config/i386/i386.md: Revert change of 2004-05-27.
3302
3303 2004-05-27 Bryce McKinlay <mckinlay@redhat.com>
3304
3305 * configure.ac: Remove --enable-tree-browser option.
3306 Define TREEBROWSER when ac_tree_checking is defined.
3307 * configure: Rebuilt.
3308
3309 2004-05-27 Olivier Hainque <hainque@act-europe.fr>
3310
3311 * expr.c (store_constructor): Restore sanity check on
3312 the size of the type before clearing.
3313
3314 2004-05-27 Jan Hubicka <jh@suse.cz>
3315
3316 * cfgbuild.c (control_flow_insn_p): Notice noreturn call
3317
3318 2004-05-27 Paolo Bonzini <bonzini@gnu.org>
3319
3320 * combine.c (gen_binary): Remove.
3321 (known_cond, simplify_shift_const
3322 find_split_point, combine_simplify_rtx,
3323 simplify_if_then_else, simplify_set,
3324 simplify_logical, expand_field_assignment,
3325 extract_left_shift, force_to_mode,
3326 if_then_else_cond, apply_distributive_law,
3327 simplify_and_const_int, simplify_shift_const,
3328 gen_lowpart_for_combine, simplify_comparison,
3329 reversed_comparison): Replace with
3330 simplify_gen_binary, simplify_gen_relational or
3331 distribute_and_simplify_rtx.
3332 (distribute_and_simplify_rtx): New function.
3333 * simplify-rtx.c (simplify_binary_operation):
3334 Use nonzero_bits to simplify ANDs where we are
3335 turning off bits already known to be off in OP0.
3336
3337 2004-05-27 Alan Modra <amodra@bigpond.net.au>
3338
3339 PR target/14478
3340 * config/rs6000/rs6000.c (reg_or_neg_short_operand): Don't allow zero.
3341
3342 2004-05-27 Josef Zlomek <zlomekj@suse.cz>
3343
3344 PR middle-end/14084
3345 * emit-rtl.c (gen_rtx_REG_offset): Adjust the offset according
3346 to size of decl.
3347
3348 2004-05-26 Aldy Hernandez <aldyh@redhat.com>
3349
3350 PR/14924
3351 * config/rs6000/rs6000.c (spe_expand_stv_builtin): New.
3352
3353 2004-05-26 Roger Sayle <roger@eyesopen.com>
3354
3355 * tree.h: Fix comment typo.
3356
3357 2004-05-27 Steven Bosscher <stevenb@suse.de>
3358
3359 * gimplify.c (compare_case_labels): New function.
3360 (gimplify_switch_expr): Sort case labels, and make sure the
3361 last label in the label vector is the default case.
3362 * tree-cfg.c (group_case_labels): New function.
3363 (build_tree_cfg): Cleanup redundant labels and group case labels
3364 before creating edges.
3365 (cleanup_dead_labels): Handle GOTO_EXPRs.
3366 (find_case_label_for_value): Use a binary search to find the
3367 case label for the given value.
3368 * tree-gimple.c: Mention that labels are sorted, and that the
3369 last label must be the default.
3370
3371 2004-05-27 Jan Hubicka <jh@suse.cz>
3372
3373 * cfgcleanup.c (try_optimize_cfg): Do not merge across jumptables.
3374
3375 2004-05-27 Jan Hubicka <jh@suse.cz>
3376
3377 * i386.md (UNSPECV_EH_RETURN): Kill.
3378 (eh_return): Use jump_insn.
3379 (eh_return_si, eh_return_di): Change pattern to jump instruction.
3380
3381 2004-05-26 Jan Hubicka <jh@suse.cz>
3382
3383 * cfgcleanup.c (try_forward_edges): Do not check loop structure when
3384 not loop optimizing.
3385
3386 2004-05-26 Jan Hubicka <jh@suse.cz>
3387
3388 * except.c (can_throw_internal): Notice RESX instructions.
3389
3390 2004-05-26 Eric Botcazou <ebotcazou@act-europe.fr>
3391
3392 * varasm.c (output_constant) <INTEGER_TYPE>: Pass the minimum
3393 of the two sizes to assemble_integer.
3394
3395 2004-05-25 Paul Brook <paul@codesourcery.com>
3396
3397 * config/arm/arm.c (thumb_exit, thumb_unexpanded_epilogue): Remove
3398 pointless #ifdef.
3399
3400 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
3401
3402 * Makefile.in (top_builddir): Define to .
3403
3404 2004-05-25 Alexandre Oliva <aoliva@redhat.com>
3405
3406 * configure.ac (gcc_cv_ld): Prefer in-tree ld over whatever the
3407 top-level detects, except when in-tree ld is being cross-built.
3408 (gcc_cv_as): Likewise for as. Use AS_FOR_TARGET otherwise, and
3409 then AS only if target is host.
3410 * configure: Rebuilt.
3411
3412 2004-05-25 Vladimir Makarov <vmakarov@redhat.com>
3413
3414 * global.c (global_alloc): Call make_accurate_live_analysis.
3415 (record_one_conflict): Remove dead code.
3416 (mark_reg_clobber): Remove ATTRIBUTE_UNUSED for parameter data.
3417 (bb_info): New structure.
3418 (BB_INFO, BB_INFO_BY_INDEX): New macros.
3419 (allocate_bb_info, free_bb_info, mark_reg_change,
3420 calculate_local_reg_bb_info, set_up_bb_rts_numbers, rpost_cmp,
3421 modify_bb_reg_pav, calculate_reg_pav,
3422 make_accurate_live_analysis): New functions.
3423
3424 2004-05-25 Devang Patel <dpatel@apple.com>
3425
3426 * alias.c (init_alias_analysis): Use ggc_calloc instead of
3427 xrealloc.
3428 (end_alias_analysis): Use ggc_free instead fo free.
3429
3430 2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
3431
3432 PR target/15546
3433 * config/ia64/ia64.h (ASM_OUTPUT_FDESC): Mark the DECL
3434 as needed to be outputted.
3435
3436 2004-05-25 Jan Hubicka <jh@suse.cz>
3437
3438 * builtins.def (__builtin_expect): Mark the function as const&nothrow.
3439
3440 2004-05-25 Ayal Zaks <zaks@il.ibm.com>
3441 Mostafa Hagog <mustafa@il.ibm.com>
3442
3443 * Makefile.in (modulo-sched.o, ddg.o): New.
3444 * ddg.h, ddg.c, modulo-sched.c: New files.
3445 * cfglayout.c (duplicate_insn_chain): Remove "static" and push
3446 internals to "dupicate_insn".
3447 (duplicate_insn): New function.
3448 * cfglayout.h (duplicate_insn_chain, duplicate_insn): New
3449 declarations.
3450 * common.opt (fmodulo-sched): New flag.
3451 * df.c (df_bb_regno_last_use_find, df_bb_regno_first_def_find):
3452 Remove static and forward declaration.
3453 (df_find_def, df_reg_used, df_bb_regno_last_def_find): New
3454 functions.
3455 * df.h (df_bb_regno_last_use_find, df_bb_regno_first_def_find,
3456 df_bb_regno_last_def_find, df_find_def, df_reg_used): New
3457 declarations.
3458 * flags.h (flag_modulo_sched): New flag.
3459 * opts.c (common_handle_option): Handle modulo-sched flag.
3460 * params.def (max-sms-loop-number, sms-max-ii-factor,
3461 sms-dfa-history, sms-loop-average-count-threshold): New
3462 parameters.
3463 * params.h (MAX_SMS_LOOP_NUMBER, SMS_MAX_II_FACTOR,
3464 SMS_DFA_HISTORY, SMS_LOOP_AVERAGE_COUNT_THRESHOLD): New
3465 parameters.
3466 * passes.c ("sms", "sms-vcg"): New dumps.
3467 (rest_of_handle_sched): Call sms_schedule.
3468 * rtl.h (sms_schedule): New declaration.
3469 * timevar.def (TV_SMS): New.
3470 * toplev.c (flag_modulo_sched): Initialize.
3471 (f_options): Handle -fmodulo-sched option.
3472 * docs/invoke.texi: Document -fmodulo-sched & -dm options.
3473 * docs/passes.texi: Document new SMS pass.
3474
3475 2004-05-25 Paolo Bonzini <bonzini@gnu.org>
3476
3477 * Makefile.in (OBJS): Add rtlhooks.o.
3478 (rtlanal.o): Depend on function.h.
3479 (cse.o): Depend on rtlhooks-def.h.
3480 (combine.o): Depend on rtlhooks-def.h.
3481 (rtlhooks.o): New rule.
3482 * combine.c: Include rtlhooks-def.h.
3483 (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
3484 num_sign_bit_copies, cached_num_sign_bit_copies,
3485 num_sign_bit_copies1): Move most of the code to rtlanal.c.
3486 (reg_nonzero_bits_for_combine,
3487 reg_num_sign_bit_copies_for_combine): New functions holding
3488 the remnants of the above.
3489 (combine_rtl_hooks): New.
3490 (combine_instructions): Set rtl_hooks instead of gen_lowpart.
3491 * cse.c: Include rtlhooks-def.h.
3492 (cse_rtl_hooks): New.
3493 (cse_main): Set rtl_hooks instead of gen_lowpart.
3494 * emit-rtl.c (gen_lowpart): Remove.
3495 (gen_lowpart_general): Move to rtlhooks.c.
3496 * rtl.h (nonzero_bits, num_sign_bit_copies,
3497 struct rtl_hooks, rtl_hooks, general_rtl_hooks): New.
3498 (gen_lowpart_general): Remove.
3499 (gen_lowpart): Temporarily redefine as a macro.
3500 * rtlanal.c: Include function.h.
3501 (nonzero_bits, cached_nonzero_bits, nonzero_bits1,
3502 num_sign_bit_copies, cached_num_sign_bit_copies,
3503 num_sign_bit_copies1): New, from combine.c.
3504 * rtlhooks.c: New file.
3505 * rtlhooks-def.h: New file.
3506
3507 2004-05-25 Svein E. Seldal <Svein.Seldal@solidas.com>
3508
3509 * config/avr/avr.h (LONG_LONG_TYPE_SIZE): Changed long long type
3510 to support 32-bit -mint8 mode.
3511
3512 * doc/invoke.texi (-mint8): Added documentation for the -mint8
3513 option in the AVR architecture.
3514
3515 2004-05-24 Mike Stump <mrs@apple.com>
3516
3517 * doc/install.texi: Document that dejagnu 1.4.4 is required.
3518
3519 2004-05-24 Joseph S. Myers <jsm@polyomino.org.uk>
3520
3521 * intl.h (open_quote, close_quote): New.
3522 * intl.c (open_quote, close_quote): New.
3523 (gcc_init_libintl): Set them.
3524 * pretty-print.c: Include "intl.h".
3525 (pp_base_format_text): Support 'q' format flag and %` and %'
3526 formats. Use ' instead of ` in comments.
3527 * c-format.c (gcc_diag_flag_specs, gcc_cxxdiag_flag_specs,
3528 gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table,
3529 foramt_types_orig): Describe these new formats.
3530 (decode_format_attr, check_function_format,
3531 check_format_info_main): Use these new formats.
3532 (status_warning): Use ATTRIBUTE_GCC_DIAG.
3533 * toplev.c (ATTRIBUTE_GCC_DIAG): Increase required GCC version to
3534 check these formats to 3.5.
3535
3536 2004-05-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3537
3538 * Makefile.in (CPPLIBS): Renamed to CPPLIB.
3539 (BACKEND): Reflect this.
3540 (LIBDEPS): Move CPPLIB before LIBIBERTY.
3541 (LIBS): Likewise.
3542
3543 2004-05-24 Ulrich Weigand <uweigand@de.ibm.com>
3544
3545 PR tree-optimization/14197
3546 * builtins.c: Include "tree-gimple.h"
3547 (readonly_data_expr): Use get_base_address. Make sure to call
3548 decl_readonly_section only on trees it can handle.
3549 * tree-gimple.c (get_base_address): Accept STRING_CST and
3550 CONSTRUCTOR expressions.
3551 * Makefile.in: Update dependencies.
3552
3553 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
3554
3555 Move libcpp to the toplevel.
3556 * Makefile.in: Remove references to libcpp files,
3557 use CPPLIBS instead of libcpp.a. Define SYMTAB_H
3558 and change hashtable.h to that.
3559 * aclocal.m4 (gcc_AC_HEADER_STDBOOL,
3560 gcc_AC_HEADER_STRING, gcc_AC_C__BOOL): Remove.
3561 * configure.ac (gcc_AC_C__BOOL, HAVE_UCHAR): Remove tests.
3562 * configure: Regenerate.
3563 * config.in: Regenerate.
3564 * c-ppoutput.c: Include ../libcpp/internal.h instead of cpphash.h.
3565 * cppcharset.c: Removed.
3566 * cpperror.c: Removed.
3567 * cppexp.c: Removed.
3568 * cppfiles.c: Removed.
3569 * cpphash.c: Removed.
3570 * cpphash.h: Removed.
3571 * cppinit.c: Removed.
3572 * cpplex.c: Removed.
3573 * cpplib.c: Removed.
3574 * cpplib.h: Removed.
3575 * cppmacro.c: Removed.
3576 * cpppch.c: Removed.
3577 * cpptrad.c: Removed.
3578 * cppucnid.h: Removed.
3579 * cppucnid.pl: Removed.
3580 * cppucnid.tab: Removed.
3581 * hashtable.c: Removed.
3582 * hashtable.h: Removed.
3583 * line-map.c: Removed.
3584 * line-map.h: Removed.
3585 * mkdeps.c: Removed.
3586 * mkdeps.h: Removed.
3587 * stringpool.h: Include symtab.h instead of hashtable.h.
3588 * tree.h: Include symtab.h instead of hashtable.h.
3589 * system.h (O_NONBLOCK, O_NOCTTY): Do not define.
3590
3591 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
3592
3593 * gcc.c (struct prefix_list): Add forward declaration.
3594 (do_spec_path): New function, extracted from...
3595 (do_spec_1) <'D'>: ... here. Drop support for
3596 SPACE_AFTER_L_OPTION.
3597 (do_spec_1) <'I'>: Use do_spec_path.
3598 (process_command): Do not store the 'include' suffix
3599 in include_prefixes.
3600 * system.h: Poison SPACE_AFTER_L_OPTION.
3601
3602 2002-05-23 Roger Sayle <roger@eyesopen.com>
3603
3604 * fold-const.c (non_lvalue): Explicitly list the tree codes that
3605 need to be wrapped by NON_LVALUE_EXPR, instead of those that don't.
3606
3607 2004-05-23 Joseph S. Myers <jsm@polyomino.org.uk>
3608
3609 * doc/gcc.texi, doc/gccint.texi, doc/include/gcc-common.texi:
3610 Update based on printed manual. Enable setting of offsets for
3611 FSFPRINT and move it to gcc-common.texi.
3612 * doc/gcc.texi: Update FSF printing details.
3613 * doc/gccint.texi: Remove FSF printing details.
3614
3615 2004-05-23 Andrew Pinski <pinskia@physics.uc.edu>
3616
3617 * config/rs6000/t-rs6000: Remove the disabling -Werror.
3618
3619 2004-05-22 Roger Sayle <roger@eyesopen.com>
3620
3621 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
3622 expand_builtin_strrchr, expand_builtin_strpbrk,
3623 expand_builtin_mempcpy, expand_builtin_memcmp,
3624 expand_builtin_strcmp, expand_builtin_strncmp,
3625 expand_builtin_strcat, std_expand_builtin_va_start,
3626 std_expand_builtin_va_arg, expand_builtin_va_copy,
3627 expand_builtin_signbit, fold_builtin_cabs,
3628 fold_builtin_logarithm, fold_builtin_mempcpy,
3629 fold_builtin_signbit, fold_builtin_isascii,
3630 fold_builtin_toascii, fold_builtin_isdigit,
3631 fold_builtin_1, build_function_call_expr,
3632 simplify_builtin_strchr, simplify_builtin_strrchr,
3633 simplify_builtin_strpbrk, simplify_builtin_strncpy,
3634 simplify_builtin_memcmp, simplify_builtin_strcmp,
3635 simplify_builtin_strncmp, simplify_builtin_strncat,
3636 simplify_builtin_strspn, simplify_builtin_strcspn,
3637 simplify_builtin_fputs, simplify_builtin_sprintf): Replace calls
3638 to build with calls to build2, build3 or omit_one_operand.
3639
3640 2004-05-22 Richard Sandiford <rsandifo@redhat.com>
3641
3642 * config/mips/mips.c (mips_file_start): Emit a .gcc_compiled_longXX
3643 section when generating EABI code.
3644
3645 2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
3646
3647 PR 15546
3648 * config/i386/i386.c (output_pic_addr_const <case SYMBOL_REF>):
3649 Call mark_decl_referenced on the SYMBOL_REF_DECL.
3650
3651 2004-05-22 Andrew Pinski <pinskia@physics.uc.edu>
3652
3653 * c-common.c (c_common_truthvalue_conversion): Handle
3654 UNEQ_EXPR, UNLE_EXPR, UNGE_EXPR, UNLT_EXPR, UNGT_EXPR,
3655 ORDERED_EXPR, and UNORDERED_EXPR as comparison operators,
3656 i.e. set the type to truthvalue_type_node and return.
3657
3658 2004-05-22 Zack Weinberg <zack@codesourcery.com>
3659
3660 * tree.h (struct tree_decl): Add possibly_inlined bit.
3661 (DECL_POSSIBLY_INLINED): New accessor macro.
3662 * cgraph.h: Remove declaration of cgraph_inline_hash.
3663 * cgraph.c: Remove definition of cgraph_inline_hash.
3664 (hash_node): Revert to hashing DECL_UID.
3665 (eq_node): Take two pointers to cgraph_node structures.
3666 Compare DECL_UIDs.
3667 (cgraph_remove_node): Pass the node directly to htab_find_slot.
3668 (cgraph_varpool_hash_node): Rename hash_varpool_node;
3669 hash on DECL_UID.
3670 (eq_cgraph_varpool_node): Rename eq_varpool_node; take two
3671 pointers to cgraph_varpool_node structures; compare DECL_UIDs.
3672 (cgraph_node): Allocate a temporary node on the stack, fill in
3673 its DECL field, and pass that to htab_find_slot.
3674 (cgraph_varpool_node): Likewise.
3675 (cgraph_function_possibly_inlined_p): If global info is ready,
3676 return the DECL_POSSIBLY_INLINED bit.
3677 * cgraphunit.c (cgraph_mark_inline_edge): Set DECL_POSSIBLY_INLINED
3678 instead of mucking with cgraph_inline_hash.
3679
3680 2004-05-22 Joseph S. Myers <jsm@polyomino.org.uk>
3681
3682 * doc/contrib.texi: Add g77 contributors.
3683
3684 2004-05-22 Richard Sandiford <rsandifo@redhat.com>
3685
3686 * calls.c (initialize_argument_information): Forbid sibcalls if a
3687 callee-copied argument is stored in the current function's frame.
3688
3689 2004-05-22 Eric Christopher <echristo@redhat.com>
3690
3691 * fix-header.c (read_scan_file): Update for add_path change.
3692
3693 2004-05-22 Ben Elliston <bje@au.ibm.com>
3694
3695 * c.opt (Wmissing-include-dirs): New.
3696 * c-opts.c (c_common_handle_option): Pass true for user_supplied_p
3697 to add_path () for -I, but false for OPT_idirafter, OPT_iquote and
3698 OPT_isystem. Handle case OPT_Wmissing_include_dirs.
3699 * c-incpath.h (add_path): Add fourth (bool) argument.
3700 * c-incpath.c (add_env_var_paths): Pass false to add_path ().
3701 (add_standard_paths): Likewise.
3702 (remove_duplicates) [REASON_NOENT]: Warn if -Wmissing-include-dirs
3703 is used and the directory was user-supplied via -I.
3704 (add_path): Set p->user_supplied_p. Remove duplicated code by
3705 using add_cpp_dir_path ().
3706 * cpplib.h (struct cpp_options): Add warn_missing_include_dirs.
3707 (struct cpp_dir): Add user_supplied_p.
3708 * doc/invoke.texi (Warning Options): Document new option.
3709
3710 2004-05-21 Ulrich Weigand <uweigand@de.ibm.com>
3711
3712 * fold-const.c (fold_read_from_constant_string): Convert result to
3713 requested type.
3714
3715 2004-05-21 Richard Henderson <rth@redhat.com>
3716
3717 * gimplify.c (mostly_copy_tree_r): Don't attempt to copy decls.
3718 (copy_if_shared_r): Don't copy decls, types, constants, BINDs.
3719 Don't mark VA_ARG_EXPRs volatile here.
3720 (gimplify_modify_expr): Unshare TYPE_SIZE_UNIT.
3721
3722 2004-05-21 Richard Henderson <rth@redhat.com>
3723
3724 * Makefile.in (tree-dump.o): Depend on tree-iterator.h.
3725 * tree-dump.c (dequeue_and_dump): Dump STATEMENT_LISTs.
3726
3727 2004-05-21 Roger Sayle <roger@eyesopen.com>
3728
3729 * fold-const.c (fold, fold_relational_hi_lo,
3730 nondestructive_fold_binary_to_constant,
3731 fold_read_from_constant_string): Use fold_convert instead of convert.
3732 * builtins.c (simplify_builtin, simplify_builtin_strstr,
3733 simplify_builtin_strchr, simplify_builtin_strrchr,
3734 simplify_builtin_strpbrk): Use fold_convert instead of convert.
3735
3736 2004-05-21 Diego Novillo <dnovillo@redhat.com>
3737
3738 * tree-flow-inline.h (num_immediate_uses): Don't abort if DF
3739 is NULL.
3740
3741 2004-05-21 Jakub Jelinek <jakub@redhat.com>
3742
3743 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): If SPARC_BI_ARCH,
3744 override sparc.h definition.
3745
3746 2004-05-20 Roger Sayle <roger@eyesopen.com>
3747
3748 * tree.c (array_type_nelts, save_expr, substitute_in_expr,
3749 get_unwidened, get_narrower): Replace build with build2.
3750 * fold-const.c (negate_expr, associate_trees, size_binop,
3751 fold_convert, eval_subst, omit_one_operand, invert_truthvalue,
3752 pedantic_omit_one_operand, distribute_bit_expr,
3753 make_bit_field_ref, optimize_bit_field_compare,
3754 decode_field_reference, range_binop, make_range,
3755 build_range_check, fold_range_test, fold_truthop,
3756 optimize_minmax_comparison, extract_muldiv_1,
3757 fold_binary_op_with_conditional_arg, fold_mathfn_compare,
3758 fold_inf_compare, fold_single_bit_test, fold,
3759 fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
3760 Likewise replace build with either build2 or build3.
3761
3762 2004-05-20 Ian Lance Taylor <ian@wasabisystems.com>
3763
3764 * system.h: Poison NO_RECURSIVE_FUNCTION_CSE.
3765 * calls.c (prepare_call_address): Don't test
3766 NO_RECURSIVE_FUNCTION_CSE.
3767 * config/arc/arc.h (NO_RECURSIVE_FUNCTION_CSE): Don't define.
3768 * config/arm/arm.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3769 * config/avr/avr.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3770 * config/frv/frv.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3771 * config/i386/i386.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3772 * config/ip2k/ip2k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3773 * config/iq2000/iq2000.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3774 * config/m32r/m32r.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3775 * config/m68k/m68k.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3776 * config/mcore/mcore.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3777 * config/mips/mips.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3778 * config/stormy16/stormy16.h (NO_RECURSIVE_FUNCTION_CSE):
3779 Likewise.
3780 * config/xtensa/xtensa.h (NO_RECURSIVE_FUNCTION_CSE): Likewise.
3781 * config/sh/sh.h: Remove NO_RECURSIVE_FUNCTION_CSE comment.
3782 * doc/tm.texi (Costs): Remove documentation for
3783 NO_RECURSIVE_FUNCTION_CSE.
3784
3785 2004-05-20 Paul Brook <paul@codesourcery.com>
3786
3787 * unwind-dw2-fde.c (get_cie_encoding): Handle dwarf3 CIE format.
3788 * unwind-dw2.c (extract_cie_info): Ditto.
3789 (_Unwind_FrameState): Change retaddr_column to word type.
3790
3791 2004-05-20 Roger Sayle <roger@eyesopen.com>
3792
3793 PR middle-end/3074
3794 * fold-const.c (strip_compound_expr): Delete function.
3795 (count_cond): Delete function.
3796 (fold_binary_op_with_conditional_arg): Only perform transformations
3797 "a + (b?c:d) -> b ? a+c : a+d" and "(b?c:d) + a -> b ? c+a : d+a"
3798 when a is constant. This greatly simplifies this routine.
3799
3800 * tree.c (saved_expr_p): Delete function.
3801 * tree.h (saved_expr_p): Delete function prototype.
3802
3803 2004-05-20 Andrew Pinski <pinskia@physics.uc.edu>
3804
3805 * common.opt (ftree-loop-optimize): Remove.
3806
3807 2004-05-20 Daniel Jacobowitz <dan@debian.org>
3808
3809 * Makefile.in (AR_FOR_TARGET, RANLIB_FOR_TARGET)
3810 (NM_FOR_TARGET): Use := and $(shell).
3811 (mainversion): Remove unused variable.
3812
3813 2004-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3814
3815 * reorg.c (delete_from_delay_slot): If we have a barrier after the
3816 sequence containing the insn to be deleted, always reemit it.
3817
3818 2004-05-20 Richard Henderson <rth@redhat.com>
3819
3820 PR 15454
3821 * tree-nested.c (get_chain_decl): Create a PARM_DECL by hand.
3822 * function.c (expand_function_start): Expand static_chain_decl by hand.
3823 * gimplify.c (create_tmp_var_name): Export.
3824 * tree-gimple.h (create_tmp_var_name): Declare.
3825
3826 2004-05-20 Andrew Pinski <pinskia@physics.uc.edu>
3827
3828 * rs6000.c (print_operand) <case 'z'>: Call
3829 mark_decl_referenced before assemble_name.
3830
3831 2004-05-20 Zack Weinberg <zack@codesourcery.com>
3832
3833 * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
3834 (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
3835 (cgraph_varpool_node): Hash on the pointer to the decl, not
3836 the DECL_UID. Fixes 64-bit bootstrap failure.
3837
3838 2004-05-20 Richard Earnshaw <rearnsha@arm.com>
3839
3840 * arm.md (ite_ne_zeroextractsi, ite_ne_zeroextractsi_shifted): Ensure
3841 we don't earlyclobber operands used in the second insn.
3842
3843 2004-05-20 Steven Bosscher <stevenb@suse.de>
3844
3845 * tree-mudflap.c: Formatting fixes.
3846
3847 2004-05-20 J"orn Rennecke <joern.rennecke@superh.com>
3848
3849 * Makefile.in (GTFILES): Add $(srcdir)/reload.h.
3850 * gengtype.c (open_base_files): Include reload.h in ifiles.
3851 * reload.h (reg_equiv_memory_loc_varray): Declare.
3852 * reload1.c (reg_equiv_memory_loc_varray): New variable.
3853 (init_reload): Initialize it.
3854 (reload): Instead of freeing reg_equiv_memory_loc, 'grow'
3855 reg_equiv_memory_loc_varray to size 0.
3856 * ra.c (reg_alloc): Allocate reg_equiv_memory_loc by
3857 growing reg_equiv_memory_loc_varray to the desired size.
3858 * passes.c (rest_of_handle_old_regalloc): Likewise.
3859 * reload.c: Amend comment on calling init_reload.
3860
3861 2004-05-20 Nick Clifton <nickc@redhat.com>
3862
3863 * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Replace 'tramp'
3864 with 'TRAMP' in the body of the macro definition.
3865
3866 2004-05-19 H.J. Lu <hongjiu.lu@intel.com>
3867
3868 PR target/15383
3869 * config/ia64/ia64.c (ia64_expand_compare): Don't check
3870 TARGET_HPUX for TFmode compare. Abort if op0 is in TFmode and
3871 cmptf_libfunc isn't set.
3872 (ia64_init_libfuncs): Rename TFmode libfuncs using the HPUX
3873 conventions.
3874 (ia64_sysv4_init_libfuncs): New.
3875
3876 * config/ia64/sysv4.h (TARGET_INIT_LIBFUNCS): New. Defined as
3877 ia64_sysv4_init_libfuncs.
3878
3879 2004-05-20 Falk Hueffner <falk@debian.org>
3880
3881 PR other/15526
3882 * libgcc2.c (__mulvsi3): Fix overflow test.
3883
3884 2004-05-19 Andrew Pinski <pinskia@physics.uc.edu>
3885
3886 PR c/14171
3887 * reg-stack.c (nan): Rename to ...
3888 (not_a_num): Here.
3889 (reg_to_stack): Rename nan to not_a_num.
3890 (subst_stack_regs_pat): Likewise.
3891 (convert_regs_entry): Likewise.
3892 (convert_regs_1): Likewise.
3893
3894 * tree-cfg.c (find_case_label_for_value): Replace call to
3895 simple_cst_equal with tree_int_cst_equal.
3896
3897 2004-05-19 Jeff Law <law@redhat.com>
3898
3899 * tree-into-ssa.c (prepare_operand_for_rename): New argument is_use.
3900 If the operand is for a use, then strip away the SSA_NAME, do not
3901 strip away the SSA_NAME for a set. Never call release_ssa_name.
3902 (mark_def_sites): Appropriately pass additional argument to
3903 prepare_operand_for_rename. If a VDEF_RESULT is not an SSA_NAME,
3904 then set the VDEF_RESULT to the VDEF_OP.
3905 (set_def_block): Strip away any SSA_NAME to get to the real
3906 underlying variable.
3907
3908 * tree-ssa-phiopt.c (value_replacement): Handle the case where
3909 the desired edge out of COND_BLOCK reaches OTHER_BLOCK rather than
3910 BB directly.
3911
3912 2004-05-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3913
3914 PR c++/15463
3915 * loop-iv.c (iv_number_of_iterations): Use trunc_int_for_mode on
3916 result of inverse.
3917
3918 PR rtl-optimization/15274
3919 * loop-iv.c (determine_max_iter, shorten_into_mode,
3920 iv_number_of_iterations): Handle constants correctly.
3921 * rtl.h (get_mode_bounds): Declaration changed.
3922 * stor-layout.c (get_mode_bounds): Return a constant suitable for
3923 the target mode.
3924
3925 PR rtl-optimization/14692
3926 * loop-unswitch.c (may_unswitch_on): Try folding the result.
3927 (unswitch_single_loop): Work correctly when may_unswitch_on
3928 returns a folded constant.
3929
3930 * loop-iv.c (implies_p): Handle A < B ==> A + 1 <= B.
3931 * simplify-rtx.c (simplify_const_relational_operation): Optimize
3932 comparisons with mode bounds.
3933
3934 * function.c (struct temp_slot): Add new field prev.
3935 (free_after_compilation, init_temp_slots): Free new fields.
3936 (cut_slot_from_list, insert_slot_to_list,
3937 temp_slots_at_level, max_slot_level, move_slot_to_level,
3938 make_slot_available): New functions.
3939 (assign_stack_temp_for_type, combine_temp_slots,
3940 find_temp_slot_from_address, preserve_temp_slots,
3941 preserve_rtl_expr_result, free_temp_slots,
3942 free_temps_for_rtl_expr, pop_temp_slots): Work with
3943 the new structure of lists.
3944 (mark_all_temps_used): Removed.
3945 * function.h (struct function): Field x_temp_slots
3946 replaced by x_used_temp_slots and x_avail_temp_slots.
3947 (temp_slots): Replaced by ...
3948 (used_temp_slots, avail_temp_slots): New.
3949 * tree.h (mark_all_temps_used): Declaration removed.
3950
3951 * loop-iv.c (mark_single_set, get_biv_step_1, iv_analyze,
3952 simplify_using_assignment): Take the expression out of
3953 the expr_list wrapper.
3954
3955 * loop-iv.c (iv_number_of_iterations): Improve clasification of
3956 infinite loops.
3957
3958 2004-05-19 Roger Sayle <roger@eyesopen.com>
3959
3960 * doc/tm.texi (TARGET_RTX_COSTS): Document that instruction
3961 costs should be based on code size when optimizing for size.
3962
3963 2004-05-19 Paolo Bonzini <bonzini@gnu.org>
3964
3965 * fold-const.c: Remove non-printable character 160.
3966
3967 2004-05-19 Nick Clifton <nickc@redhat.com>
3968
3969 * doc/invoke.texi (ARM Options): Fix typo.
3970 Remove descrption of -mshort-load-bytes and
3971 -mno-short-load-bytes.
3972
3973 * config/ip2k/ip2k.c (ip2k_composite_xexp_not_uses_reg_p): Add
3974 missing parenthesis.
3975 * config/ip2k/ip2k.c (ip2k_unary_operator): Likewise.
3976 * config/ip2k/ip2k.c (ip2k_binary_operator): Likewise.
3977
3978 2004-05-19 Steven Bosscher <stevenb@suse.de>
3979
3980 * expr.c (store_constructor): Build loop start and end by hand
3981 instead of via loop functions from stmt.c.
3982 (expand_expr_real_1): Abort if we see an EXIT_EXPR or a LOOP_EXPR.
3983 Remove the code to expand them.
3984
3985 * stmt.c (loop_stack): Remove this and everything related.
3986 (struct nesting, enum nesting_desc): Update.
3987 (expand_fixup): Likewise.
3988 (expand_loop_start, expand_start_loop_continue_elsewhere,
3989 expand_start_null_loop, expand_loop_continue_here, expand_end_loop,
3990 expand_end_null_loop, expand_continue_loop, expand_exit_loop,
3991 expand_exit_loop_if_false, expand_exit_loop_top_cond,
3992 expand_exit_something): Remove.
3993 * tree.h: Remove prototypes.
3994
3995 2004-05-18 Mike Stump <mrs@apple.com>
3996 Devang Patel <dpatel@apple.com>
3997
3998 * doc/tm.texi (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument to indicate
3999 if this label is for eh.
4000 * config/darwin-protos.h (darwin_emit_unwind_label): Likewise.
4001 * config/darwin.c (darwin_emit_unwind_label): Likewise.
4002 * dwarf2out.c (output_call_frame_info): Likewise.
4003 * output.h (default_emit_unwind_label): Likewise.
4004 * target.h (unwind_label): Likewise.
4005 * varasm.c (default_emit_unwind_label): Likewise.
4006
4007 * config/darwin.h (DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
4008 DEBUG_FRAME_SECTION, DEBUG_INFO_SECTION, DEBUG_ABBREV_SECTION,
4009 DEBUG_ARANGES_SECTION, DEBUG_MACINFO_SECTION, DEBUG_LINE_SECTION,
4010 DEBUG_LOC_SECTION, DEBUG_PUBNAMES_SECTION, DEBUG_STR_SECTION,
4011 DEBUG_RANGES_SECTION): Define.
4012
4013 2004-05-18 Zack Weinberg <zack@codesourcery.com>
4014
4015 * cgraph.c (hash_node, eq_node, cgraph_node, cgraph_remove_node)
4016 (cgraph_varpool_hash_node, eq_cgraph_varpool_node)
4017 (cgraph_varpool_node):
4018 Use DECL_UID for the key, not DECL_ASSEMBLER_NAME.
4019 (cgraph_function_possibly_inlined_p): Use the decl itself for
4020 the key, not DECL_ASSEMBLER_NAME.
4021 (change_decl_assembler_name): No need to muck with the hash tables.
4022 (cgraph_node_for_identifier, cgraph_varpool_node_for_identifier):
4023 Delete.
4024 * cgraphunit.c (cgraph_mark_inline_edge): Use the decl itself
4025 for the key, not DECL_ASSEMBLER_NAME.
4026 * cgraph.h: Remove prototypes of deleted functions.
4027 * varasm.c (mark_referenced): Just set TREE_SYMBOL_REFERENCED.
4028 (mark_decl_referenced): New function.
4029 * tree.h: Prototype mark_decl_referenced.
4030 * final.c (output_addr_const) <case SYMBOL_REF>: Call
4031 mark_decl_referenced before assemble_name.
4032 * c-decl.c (finish_decl): Use mark_decl_referenced.
4033
4034 2004-05-18 Andrew Pinski <pinskia@physics.uc.edu>
4035 Jeff Law <law@redhat.com>
4036
4037 * tree-ssa-phiopt.c (abs_replacement): New function.
4038 (empty_block_p): New function extracted from...
4039 (candidate_bb_for_phi_optimization): Break out empty block test.
4040 (conditional_replacement): Use empty_block_p.
4041 (value_replacement): Similarly.
4042
4043 * Makefile.in (tree-ssa-phiopt.o): Depends on flags.h.
4044 * tree-ssa-phiopt.c: Include flags.h.
4045 (conditional_replacement): Remove argument names from prototype.
4046 Minor formatting and comment fixes.
4047 (tree_ssa_phiopt): If conditional_replacement returns false, then
4048 call value_replacement.
4049 (value_replacement): New function.
4050
4051 2004-05-18 Jeff Law <law@redhat.com>
4052
4053 * tree-ssa-phiopt.c (replace_phi_with_stmt): New function extracted
4054 from conditional_replacement.
4055 (candidate_bb_for_phi_optimization): Similarly.
4056 (conditional_replacement): Use replace_phi_with_stmt and
4057 candidate_bb_for_phi_optimization.
4058
4059 * tree-ssa-phiopt.c: Fix various formatting issues.
4060
4061 2004-05-18 Steven Bosscher <stevenb@suse.de>
4062
4063 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
4064 s390_expand_cmpmem): Do not use expand_start_loop and
4065 expand_end_loop, instead build the loop manually.
4066
4067 2004-05-18 Alan Modra <amodra@bigpond.net.au>
4068
4069 * config/rs6000/rs6000.md (ctrsi_internal3): Delete.
4070 (ctrsi_internal4, ctrdi_internal3, ctrdi_internal4): Delete.
4071
4072 2004-05-17 Jeff Law <law@redhat.com>
4073
4074 * toplev.h (flag_delete_null_pointer_checks): Move from here to...
4075 * flags.h (flag_delete_null_pointer_checks): Here.
4076 * tree-flow.h (cprop_into_successor_phis): Add argument to prototype.
4077 * tree-phinodes.c (resize_phi_node): Initialize PHI_ARG_NONZERO.
4078 (add_phi_arg, remove_phi_arg_num): Similarly.
4079 * tree-ssa-copy.c (cprop_into_successor_phis): Propagate nonzero
4080 property into PHI nodes.
4081 * tree-ssa-dom.c: Remove redundant inclusion of flags.h.
4082 (record_equivalences_from_phis): If all PHI arguments are known to be
4083 nonzero, then the result must be nonzero as well.
4084 (cprop_into_phis): Pass nonzero_vars bitmap to cprop_into_successor_phis.
4085 (record_equivalences_from_stmt): Check flag_delete_null_pointer_checks
4086 appropriately. Walk the USE-DEF chains and propagate nonzero property
4087 as appropriate.
4088 * tree.h (PHI_ARG_NONZERO): Define.
4089 (phi_arg_d): Add nonzero flag.
4090
4091 2004-05-17 Zack Weinberg <zack@codesourcery.com>
4092
4093 * f: Entire directory removed
4094
4095 * c-common.h (CTI_G77_INTEGER_TYPE, CTI_G77_UINTEGER_TYPE)
4096 (CTI_G77_LONGINT_TYPE, CTI_G77_ULONGINT_TYPE)
4097 (g77_integer_type_node, g77_uinteger_type_node)
4098 (g77_longint_type_node, or g77_ulongint_type_node): Delete.
4099 * c-common.c (c_common_nodes_and_builtins): Do not initialize
4100 the above set of variables.
4101
4102 * config/i386/uwin.h: No need to define WIN32_UWIN_TARGET.
4103 * doc/invoke.texi, doc/standards.texi: Remove cross-references
4104 to g77 manual.
4105
4106 2004-05-17 Steven Bosscher <stevenb@suse.de>
4107
4108 PR tree-optimization/15438
4109 * tree-ssa-operands.c (get_expr_operands): Do not treat malloc
4110 attributed functions as pure or const.
4111
4112 2004-05-17 Frank Ch. Eigler <fche@redhat.com>
4113
4114 * tree-mudflap.c (mx_register_decls): Tolerate decl trees resulting
4115 from source code with errors.
4116
4117 2004-05-17 Ranjit Mathew <rmathew@hotmail.com>
4118
4119 Enable tree browser for all front ends.
4120 * Makefile.in (cc1): Moved @TREEBROWSER@ from here...
4121 (BACKEND): ...to here.
4122
4123 2004-05-17 Jan Hubicka <jh@suse.cz>
4124
4125 * i386.c (construct_container): Do not produce BLKmode registers.
4126 (classify_argument): Properly compute alignment of complex types.
4127
4128 2004-05-17 H.J. Lu <hongjiu.lu@intel.com>
4129
4130 PR target/15084
4131 * config/i386/i386.md (*movsi_insv_1_rex64): Changed to DImode
4132 and renamed to movdi_insv_1_rex64.
4133 (insv): Support SImode for 32bit and DImode for 64bit.
4134
4135 2004-05-17 Richard Sandiford <rsandifo@redhat.com>
4136
4137 * config/mips/mips.h (MASK_DEBUG_G, TARGET_DEBUG_G_MODE): Delete.
4138 (TARGET_SWITCHES): Remove debugg.
4139 * config/mips/mips.md (adddi3, ashldi3, ashrdi3, lshrdi3): Only handle
4140 TARGET_64BIT.
4141 (subdi3): Replace the define_expand with a define_insn, the latter
4142 renamed from subdi3_internal_3.
4143 (negdi2): Likewise negdi2_internal_2.
4144 (adddi3_internal_[12], subdi3_internal, ashldi3_internal{,2,3})
4145 (ashrdi3_internal{,2,3}, lshrdi3_internal{,2,3}): Remove patterns
4146 and associated define_splits.
4147 (adddi3_internal): Renamed from adddi3_internal_3.
4148 (ashldi3_internal): Likewise ashldi3_internal4.
4149 (ashrdi3_internal): Likewise ashrdi3_internal4.
4150 (lshrdi3_internal): Likewise lshrdi3_internal4.
4151
4152 2004-05-17 Richard Sandiford <rsandifo@redhat.com>
4153
4154 * optabs.c (expand_unop): Try implementing negation using subtraction
4155 from zero.
4156
4157 2004-05-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4158
4159 * pa.md: Fix typo from last change. Remove DFmode move to and from
4160 SAR register.
4161
4162 2004-05-16 Richard Earnshaw <rearnsha@arm.com>
4163
4164 PR target/10982
4165 * arm.md (ne_zeroextractsi): Convert to insn-and-split.
4166 (ne_zeroextractsi_shifted): New pattern.
4167 (ite_ne_zeroextractsi): New pattern.
4168 (ite_ne_zeroextractsi_shifted): New pattern.
4169
4170 2004-05-15 Steven Bosscher <stevenb@suse.de>
4171
4172 * c-gimplify.c (c_genericize):
4173 Replace calls via (*lang_hooks.foo) with lang_hooks.foo.
4174 * c-parse.in <expr_no_commas>: Likewise.
4175 <if_prefix>: Likewise.
4176 <select_or_iter_stmt>: Likewise.
4177 * expr.c (expand_var, expand_expr_real_1): Likewise.
4178 * expr.h (expand_expr): Make it a static inline function.
4179 Move prototype for expand_expr_real up before this.
4180 * fold-const.c (fold_relational_hi_lo, fold_relational_const):
4181 Likewise.
4182 * gimplify.c (gimple_boolify, gimplify_addr_expr,
4183 gimplify_asm_expr, gimplify_expr): Likewise.
4184 * tree-cfg.c (dump_tree_cfg, dump_cfg_stats, tree_cfg2vcg,
4185 dump_function_to_file): Likewise.
4186 * tree-dfa.c (dump_immediate_uses, dump_dfa_stats): Likewise.
4187 * tree-inline.c (remap_block, save_body, walk_tree): Likewise.
4188 * tree-into-ssa.c (dump_tree_ssa): Likewise.
4189 * tree-mudflap.c (mf_varname_tree, mf_file_function_line_tree):
4190 Likewise.
4191 * tree-optimize.c (execute_one_pass): Likewise.
4192 * tree-pretty-print.c (dump_generic_bb_buff): Likewise.
4193 * tree-ssa-alias.c (dump_alias_stats, dump_alias_info): Likewise.
4194
4195 * objc/objc-act.c (objc_build_try_enter_fragment,
4196 objc_build_try_epilogue, objc_build_catch_stmt,
4197 objc_build_finally_prologue): Replace calls via (*lang_hooks.foo)
4198 with lang_hooks.foo ().
4199
4200 2004-05-15 Roger Sayle <roger@eyesopen.com>
4201
4202 * builtins.c (simplify_builtin_strcpy): Avoid use of chainon, so
4203 that simplify_builtin doesn't destructively modify its argument.
4204
4205 2004-05-15 Richard Earnshaw <reanrsha@arm.com>
4206
4207 * arm/lib1funcs.asm (_lshrdi3, _ashrdi3, _ashldi3): Add ASM
4208 implementations for ARM and Thumb.
4209 * arm/t-arm-elf (LIB1ASMFUNCS): Use them.
4210
4211 2004-05-15 Thomas Quinot <quinot@act-europe.fr>
4212
4213 * prefix.c (update_path): Replace PREFIX with KEY only
4214 when it matches a full directory name in PATH.
4215
4216 2004-05-15 Richard Earnshaw <reanrsha@arm.com>
4217
4218 * arm.h (TARGET_APCS_32): Delete.
4219 (TARGET_MMU_TRAPS): Delete.
4220 (TARGET_CPU_CPP_BUILTINS): Unconditionally define __APCS_32__. Never
4221 define __APCS_26__.
4222 (CPP_SPEC): Remove checking of -mapcs-{26,32}.
4223 (ARM_FLAG_APCS_32, ARM_FLAG_MMU_TRAPS): Delete.
4224 (TARGET_SWITCHES): Remove alignment_traps and apcs-{26,32} switches.
4225 (prog_mode_type): Delete.
4226 (PROMOTE_MODE): Always promote unsigned for HImode.
4227 (SECONDARY_INPUT_RELOAD_CLASS): Simplify.
4228 (MASK_RETURN_ADDR): Simplify.
4229 * arm.c (arm_prgmode): Delete.
4230 (arm_override_options, arm_gen_rotated_half_load): Simplify.
4231 (print_multi_reg, output_return_instruction): Simplify.
4232 (arm_output_epilogue, arm_final_prescan_insn): Simplify.
4233 (arm_return_addr): Simplify.
4234 * arm.md (prog_mode): Delete.
4235 (conds): Simplify.
4236 (zero_extendhisi2, extendhisi2, movhi, movhi_bytes): Simplify.
4237 (rotated_loadsi, movhi_insn_littleend, movhi_insn_bigend): Delete.
4238 (loadhi_si_bigend, loadhi_preinc, loadhi_shiftpreinc): Delete.
4239 (loadhi_shiftpredec): Delete.
4240 (peephole for post-increment on HImode load): Delete.
4241 * arm/crtn.asm: (FUNC_END): Simplify.
4242 * arm/lib1funcs.asm: Remove APCS-26 return macros.
4243 * arm/aof.h, arm/coff.h arm/elf.h arm/linux-elf.h arm/netbsd-elf.h
4244 * arm/netbsd.h arm/pe.h arm/semi.h arm/semiaof.h arm/unknown-elf.h
4245 * arm/vxworks.h arm/wince-pe.h: Tidy TARGET_DEFAULTS and
4246 MULTILIB_DEFAULTS as required.
4247 * arm/t-arm-elf arm/t-linux arm/t-pe arm/t-semi arm/t-wince-pe
4248 * arm/t-xscale-coff arm/t-xscale-elf arm/uclinux-elf: Tidy MULTILIB
4249 variables as required.
4250 * doc/invoke.texi (ARM Options): Remove obsolete flags.
4251
4252 2004-05-15 Alan Modra <amodra@bigpond.net.au>
4253
4254 * config/rs6000/rs6000.c (rs6000_va_arg <ABI_V4>): Don't use
4255 UNITS_PER_WORD to calculate gpr size. Re-instate code to set reg
4256 count to 8 to handle n_reg > 2.
4257
4258 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
4259
4260 * doc/extend.texi: Update WG14 URL.
4261
4262 2004-05-15 Steven Bosscher <stevenb@suse.de>
4263
4264 * basic-block.h (life_analysis, delete_noop_moves):
4265 Update prototypes.
4266 * bt-load.c (branch_target_load_optimize): Don't take the
4267 insns stream as an argument. Update the life_analysis calls.
4268 * combine.c (combine_instructions): Update delete_noop_moves
4269 calls.
4270 * flow.c (notice_stack_pointer_modification): Don't take the
4271 insns stream as an argument. Work on the flow graph.
4272 (life_analysis): Likewise.
4273 (delete_noop_moves): Likewise.
4274 * passes.c (rest_of_handle_stack_regs): Update reg_to_stack call.
4275 (rest_of_handle_life): Update life_analysis call.
4276 (rest_of_compilation): Likewise, and also update
4277 branch_target_load_optimize call.
4278 * ra.c (reg_alloc): Update life_analysis call.
4279 * reg-stack.c (reg_to_stack): Likewise. Also, don't take
4280 the insns stream as an argument.
4281 * regrename.c (copyprop_hardreg_forward): Update delete_noop_moves
4282 call.
4283 * rtl.c (branch_target_load_optimize, reg_to_stack): Update
4284 prototypes.
4285 * value-profile.c (branch_prob): Update life_analysis call.
4286 * web.c (web_main): Work on the CFG, not on the insns stream.
4287
4288 * config/ip2k/ip2k.c (ip2k_reorg): Update life_analysis calls.
4289 * config/m68hc11/m68hc11.c (m68hc11_reorg): Likewise.
4290 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
4291
4292 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
4293
4294 PR c/15444
4295 * c-format.c (avoid_dollar_number): New function.
4296 (check_format_info_main): Call avoid_dollar_number when operand
4297 numbers might occur but has_operand_number == 0.
4298
4299 2004-05-14 Richard Earnshaw <rearnsha@arm.com>
4300
4301 * arm.md (all peephole2 patterns): Use predicates that validate
4302 register classes as appropriate.
4303
4304 2004-05-14 Steven Bosscher <stevenb@suse.de>
4305
4306 PR opt/14472
4307 * tree-tailcall.c (process_assignment): Use STRIP_NOPS to
4308 ignore type conversions that do not inhibit tail calling.
4309 (find_tail_calls): Likewise.
4310
4311 2004-05-14 Jeff Law <law@redhat.com>
4312
4313 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't even
4314 bother marking bypassed virtuals for out-of-ssa. Instead merge
4315 bypassed virtuals into vars_to_rename just before into-ssa pass.
4316
4317 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Reorganize
4318 so that it picks up more opportunities to eliminate ABS expressions
4319 or turn them into negations.
4320
4321 2004-05-14 Steven Bosscher <stevenb@suse.de>
4322
4323 * passes.c (rest_of_handle_null_pointer): Remove.
4324 (rest_of_handle_cse): Don't call rest_of_handle_null_pointer.
4325 (rest_of_compilation): Likewise.
4326 * rtl.h (delete_null_pointer_checks): Remove prototype.
4327 * gcse.c (rd_kill, rd_gen, reaching_defs, rd_out, ae_in, ae_out):
4328 Remove declarations.
4329 (get_bitmap_width, alloc_rd_mem, free_rd_mem, handle_rd_kill_set,
4330 compute_kill_rd, compute_rd, alloc_avail_expr_mem,
4331 free_avail_expr_mem, compute_ae_gen, expr_killed_p, compute_ae_kill,
4332 expr_reaches_here_p, computing_insn, def_reaches_here_p,
4333 can_disregard_other_sets, handle_avail_expr, classic_gcse,
4334 one_classic_gcse_pass, invalidate_nonnull_info,
4335 delete_null_pointer_checks_1, delete_null_pointer_checks,
4336 expr_reached_here_p_work): Remove.
4337 (gcse_main): Do not perform classic GCSE when optimizing for size.
4338 (alloc_pre_mem, free_pre_mem): Don't touch ae_in and ae_out, they
4339 are never used.
4340
4341 2004-05-14 Andrew Pinski <pinskia@physics.uc.edu>
4342
4343 PR optimization/14466
4344 * tree-complex.c (make_temp): Remove.
4345 (gimplify_val): Replace make_temp with make_rename_temp
4346 and add NULL as the second argument.
4347 (expand_complex_div_wide): Likewise.
4348 * tree-dfa.c (make_rename_temp): New function.
4349 * tree-flow.h (make_rename_temp): Declare.
4350 * tree-sra.c (make_temp): Remove.
4351 (lookup_scalar): Replace make_temp with make_rename_temp.
4352 (create_scalar_copies): Likewise.
4353 * tree-ssa-phiopt.c (conditional_replacement): When we
4354 get non gimple create a temporary variable to hold the
4355 casted expression.
4356
4357 2004-05-14 Paul Brook <paul@codesourcery.com>
4358
4359 * stor-layout.c (update_alignment_for_field): Use
4360 targetm.align_anon_bitfield.
4361 * target-def.h (TARGET_ALIGN_ANON_BITFIELD): Define.
4362 (TARGET_INITIALIZER): Use it.
4363 * target.h (struct gcc_target): Add align_anon_bitfield.
4364 * config/arm/arm.c (arm_align_anon_bitfield): New function.
4365 (TARGET_ALIGN_ANON_BITFIELD): Define.
4366 * doc/tm.texi: Document TARGET_ALIGN_ANON_BITFIELD.
4367
4368 2004-05-13 Zack Weinberg <zack@codesourcery.com>
4369
4370 * tree.def (documentation): Remove mention of class 'b'.
4371 (BLOCK): Now in class 'x'.
4372 * c-common.c (verify_tree): Remove case 'b'.
4373 * c-typeck.c (same_translation_unit_p): Change 'b' to 'x'.
4374 * calls.c (calls_function_1): Control cannot get past the switch
4375 when exp is a BLOCK.
4376 * print-tree.c (print_node): Move code for class 'b' to the class
4377 'c'/'x' switch, as case BLOCK.
4378 * tree.c (tree_size, make_node_stat, tree_node_structure): Likewise.
4379 (unsafe_for_reeval, substitute_placeholder_in_expr)
4380 (stabilize_reference_1): Remove case 'b'.
4381 * tree-browser.c (browse_tree): Change all tests for TREE_CODE_CLASS
4382 of something being 'b' to tests for TREE_CODE of something being
4383 BLOCK.
4384 * tree-ssa-operands.c (get_expr_operands): Likewise.
4385
4386 2004-05-13 Diego Novillo <dnovillo@redhat.com>
4387
4388 * tree-gimple.c: Rename from tree-simple.c.
4389 * tree-gimple.h: Rename from tree-simple.h.
4390 * c-gimplify.c: Rename from c-simplify.c
4391 * Makefile.in, c-decl.c, gimple-low.c, gimplify.c,
4392 langhooks.c, tree-alias-ander.c, tree-alias-common.c,
4393 tree-complex.c, tree-dfa.c, tree-flow.h, tree-inline.c,
4394 tree-into-ssa.c, tree-iterator.c, tree-mudflap.c,
4395 tree-nested.c, tree-nomudflap.c, tree-outof-ssa.c, tree-sra.c,
4396 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-copyrename.c,
4397 tree-ssa-dce.c, tree-ssa-live.c, tree-ssa-pre.c, tree-ssa.c:
4398 Update.
4399
4400 2004-05-14 Ranjit Mathew <rmathew@hotmail.com>
4401
4402 * doc/sourcebuild.texi: Mention libbanshee and libmudflap.
4403
4404 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
4405
4406 * tree-ssa.c (delete_tree_ssa): XFREE
4407 bitmaps allocated with BITMAP_XMALLOC.
4408
4409 * tree-ssa-pre.c (execute_pre): Free ephi_use_pool and
4410 idfs_cache at the end of the function.
4411
4412 * tree-ssa-live.c (calculate_live_on_entry): Free saw_def
4413 at the end of the function.
4414
4415 * tree-ssa-dce.c (perform_tree_ssa_dce): Free
4416 el at the end of the function.
4417
4418 * tree-into-ssa.c (insert_phi_nodes_for): XFREE
4419 bitmaps allocated with BITMAP_XMALLOC.
4420
4421 * loop-unswitch.c (unswitch_single_loop): Free bbs at
4422 the end.
4423
4424 * final.c (shorten_branches): Free uid_shuid before
4425 reallocating it.
4426
4427 * bb-reoder.c (connect_traces): Free cold_traces at the end.
4428
4429 2004-05-13 Jeff Law <law@redhat.com>
4430
4431 * tree-ssa-live.c (calculate_live_on_entry): Ignore virtual
4432 variables. Simplify slightly by using USE_OP/DEF_OP instead
4433 of USE_OP_PTR/DEF_OP_PTR and dereferencing the result.
4434
4435 * tree-into-ssa.c (compute_global_livein): Use EXECUTE_IF_SET_IN_BITMAP
4436 rather than iterating through the blocks testing each bit in
4437 livein to initialize the worklist.
4438 (mark_def_sites): Remove useless checks of KILLS for virtual
4439 operands.
4440
4441 * tree-ssa-forwprop.c (record_single_argument_cond_exprs): Accept
4442 new parameters for the statement and variable worklist as well
4443 as a bitmap of interesting SSA_NAMEs. Walk over the statement
4444 worklist recording interesting variables in the variable worklist
4445 and bitmap. Handle casts between integral and boolean types.
4446 (substitute_single_use_vars): Accept new parameters for the statement
4447 and variable worklist. When a substitution is made add a new
4448 entry to the statement worklist. Handle casts between integral
4449 and boolean types.
4450 (tree_ssa_forward_propagate_single_use_vars): Rework to pass
4451 worklists to children. Iterate until the statement worklist
4452 is empty.
4453
4454 2004-05-13 Andrew Pinski <pinskia@physics.uc.edu>
4455
4456 * tree-outof-ssa.c (rewrite_vars_out_of_ssa): Free map at
4457 the end of the block.
4458
4459 * tree-into-ssa.c (def_blocks_free): XFREE bitmaps allocated
4460 with BITMAP_XMALLOC.
4461
4462 * tree-ssa-alias.c (delete_alias_info): XFREE bitmaps allocated
4463 with BITMAP_XMALLOC.
4464
4465 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
4466 Free nonzero_vars at the end of the function.
4467
4468 * convert.c (convert_to_integer): Make a CONVERT_EXPR when there is a
4469 need to generate code instead of a NOP_EXPR.
4470
4471 2004-05-13 Ian Lance Taylor <ian@wasabisystems.com>
4472
4473 * gcc.c (default_compilers): Fill out initializers for new Fortran
4474 entries.
4475
4476 2004-05-13 Paul Brook <paul@codesourcery.com>
4477
4478 * config/arm/arm.h (PCC_BITFIELD_TYPE_MATTERS): Define.
4479
4480 2004-05-13 Paul Brook <paul@codesourcery.com>
4481
4482 * config/arm/arm.c (arm_default_short_enums): New function.
4483 (TARGET_DEFAULT_SHORT_ENUMS): Define.
4484
4485 2004-05-13 Diego Novillo <dnovillo@redhat.com>
4486
4487 Merge from tree-ssa-20020619-branch.
4488
4489 * Makefile.in (reload1.o-warn): Add.
4490 (tree-alias-ander.o-warn): Add.
4491 (GMPLIBS): Define.
4492 (GMPINC): Define.
4493 (BANSHEELIB): Define.
4494 (BANSHEEINC): Define.
4495 (TREE_DUMP_H): Define.
4496 (TREE_SIMPLE_H): Define.
4497 (TREE_FLOW_H): Define.
4498 (LIBDEPS): Add BANSHEELIB.
4499 (INCLUDES): Add BANSHEEINC and GMPINC.
4500 (C_AND_OBJC_OBJS): Add c-simplify.o, tree-mudflap.o,
4501 c-mudflap.o and c-pretty-print.o.
4502 (C_OBJS): Remove c-pretty-print.o.
4503 (OBJS-common): Remove sibcall.o.
4504 Add tree-cfg.o, tree-dfa.o, tree-eh.o,
4505 tree-ssa.o, tree-optimize.o, tree-simple.o,
4506 tree-alias-type.o, gimplify.o, tree-pretty-print.o,
4507 tree-into-ssa.o, tree-outof-ssa.o, tree-alias-common.o,
4508 tree-ssa-ccp.o, @ANDER@, tree-ssa-dce.o, tree-ssa-copy.o,
4509 tree-nrv.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
4510 tree-ssa-live.o, tree-ssa-operands.o, tree-ssa-alias.o,
4511 tree-ssa-phiopt.o, tree-ssa-forwprop.o, tree-nested.o,
4512 tree-ssa-dse.o, tree-ssa-dom.o, domwalk.o,
4513 tree-tailcall.o, gimple-low.o, tree-iterator.o,
4514 tree-phinodes.o, tree-ssanames.o, tree-sra.o,
4515 tree-complex.o, tree-ssa-loop.o, rtl-profile.o and
4516 tree-profile.o.
4517 (OBJC-archive): Add tree-nomudflap.o.
4518 (cc1): Add dependency on @TREEBROWSER@.
4519 (c-decl.o): Add dependency on TREE_DUMP_H.
4520 (c-dump.o): Likewise.
4521 (c-common.o): Add dependency on tree-iterator.h
4522 (c-pretty-print.o): Add dependency on DIAGNOSTIC_H.
4523 (gtype-desc.o): Add dependency on TREE_FLOW_H.
4524 (tree.o): Add dependency on tree-iterator.h,
4525 BASIC_BLOCK_H and TREE_FLOW_H.
4526 (tree-dump.o): Depend on TREE_DUMP_H instead of tree-dump.h.
4527 (langhooks.o): Add dependency on TREE_SIMPLE_H.
4528 (tree-alias-type.o, tree-alias-ander.o,
4529 tree-alias-common.o, tree-ssa.o, tree-into-ssa.o,
4530 tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o,
4531 tree-ssa-phiopt.o, tree-nrv.o, tree-ssa-copy.o,
4532 tree-ssa-dom.o, tree-ssanames.o, tree-phinodes.o,
4533 domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o,
4534 tree-ssa-pre.o, tree-cfg.o, tree-tailcall.o,
4535 tree-nested.o, tree-iterator.o, tree-dfa.o,
4536 tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o,
4537 tree-ssa-alias.o, tree-optimize.o, c-simplify.o,
4538 gimplify.o, gimple-low.o, tree-browser.o, tree-simple.o,
4539 tree-mudflap.o, c-mudflap.o, tree-nomudflap.o,
4540 tree-pretty-print.o, tree-ssa-dce.o, tree-ssa-ccp.o,
4541 tree-sra.o, tree-complex.o, tree-profile.o,
4542 rtl-profile.o): New rules.
4543 (function.o): Add dependency on basic-block.h
4544 (expr.o): Add dependency on tree-iterator.h.
4545 (sibcall.o): Remove.
4546 (profile.o): Depend on TREE_FLOW_H instead of TREE_H.
4547 (cfg.o): Add dependency on TIMEVAR_H.
4548 (cfghooks.o): Add dependency on TREE_FLOW_H.
4549 (reg-stack.o): Add dependency on basic-block.h.
4550 (GTFILES): Add hwint.h, tree-mudflaph.c, tree-flow.h,
4551 c-objc-common.c, c-common.c, c-parse.in, tree-ssanames.c,
4552 tree-eh.c, tree-phinodes.c, tree-cfg.c, tree-dfa.c,
4553 tree-ssa-ccp.c, tree-iterator.c, gimplify.c,
4554 tree-alias-type.h, tree-alias-common.h,
4555 tree-alias-type.c, tree-alias-common.c,
4556 tree-ssa-operands.h, tree-ssa-operands.c, tree-profile.c,
4557 rtl-profile.c and tree-nested.c.
4558 (gt-tree-alias-common.h, gt-tree-mudflap.h,
4559 gt-tree-ssa-ccp.h, gt-tree-eh.h, gt-tree-ssanames.h,
4560 gt-tree-iterator.h, gt-gimplify.h, gt-tree-phinodes.h,
4561 gt-tree-cfg.h, gt-tree-nested.h): New rules.
4562 (TEXI_GCCINT_FILES): Add cfg.texi and tree-ssa.texi.
4563 * basic-block.h: Include predict.h
4564 (struct edge_def): Add GTY marker.
4565 Change field 'insns' to be a union of tree and rtx.
4566 (EDGE_TRUE_VALUE): Define.
4567 (EDGE_FALSE_VALUE): Define.
4568 (EDGE_EXECUTABLE): Define.
4569 (struct bb_ann_d): Forward declare.
4570 (struct basic_block_def): Add GTY marker.
4571 Remove fields head_tree and end_tree.
4572 Add fields stmt_list, rbi and tree_annotations.
4573 (struct reorder_block_def): Define.
4574 (basic_block_info): Add GTY marker.
4575 (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Change to global
4576 variables instead of macros.
4577 (flow_call_edges_add): Remove declaration.
4578 (make_eh_edge): Remove declaration.
4579 (brief_dump_cfg, find_edge, tree_predicted_by_p,
4580 rtl_predicted_by_p, tree_predict_edge, rtl_predict_edge,
4581 predict_edge_def, rtl_make_eh_edge, find_basic_blocks,
4582 cleanup_cfg, delete_unreachable_blocks, merge_seq_blocks,
4583 alloc_rbi_pool, initialize_bb_rbi, free_rbi_pool): Declare.
4584 (try_redirect_by_replacing_jump): Modfiy return type to
4585 edge instead of bool.
4586 * bb-reorder.c (copy_bb): Call duplicate_block
4587 instead of cfg_layout_duplicate_bb.
4588 (copy_bb_p): Call can_duplicate_block_p instead of
4589 cfg_layout_can_duplicate_bb_p.
4590 * bitmap.c (bitmap_first_set_bit): Abort if word
4591 wasn't found.
4592 (bitmap_last_set_bit): Likewise.
4593 * builtin-types.def (DEF_FUNCTION_TYPE_2): Add
4594 (DEF_FUNCTION_TYPE_3): Add.
4595 * builtins.c (c_strlen): Make extern.
4596 (builtin_save_expr): New.
4597 (expand_builtin_nonlocal_goto): New.
4598 (expand_builtin_constant_p): Remove.
4599 (expand_builtin_mathfn): Call builtin_save_expr instead
4600 of save_expr.
4601 (expand_builtin_mathfn_2): Likewise.
4602 (expand_builtin_strcmp): Likewise.
4603 (expand_builtin_strncmp): Likewise.
4604 (expand_builtin_strcat): Likewise.
4605 (fold_builtin_cabs): Likewise.
4606 (expand_builtin_alloca): Don't trigger if -fmudflap is
4607 given.
4608 (build_string_literal): Set TREE_INVARIANT on new node.
4609 (expand_builtin_profile_fun): New.
4610 (round_trampoline_addr): New.
4611 (expand_builtin_init_trampoline): New.
4612 (expand_builtin_adjust_trampoline): New.
4613 (expand_builtin) <BUILT_IN_NEXT_ARG>: Call simplify_builtin_next_arg.
4614 <BUILT_IN_CONSTANT_P>: Return const0_rtx;
4615 <BUILT_IN_STACK_ALLOC, BUILT_IN_STACK_SAVE,
4616 BUILT_IN_STACK_RESTORE, BUILT_IN_NONLOCAL_GOTO,
4617 BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT,
4618 BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE>:
4619 Handle.
4620 (fold_builtin_expect): New.
4621 (fold_builtin_isascii): Don't return non-constant results
4622 in GIMPLE form.
4623 (fold_builtin_isdigit): Likewise.
4624 (fold_builtin_1): New.
4625 (fold_builtin): Call it.
4626 (build_function_call_expr): Update call to build a new
4627 CALL_EXPR.
4628 (purge_builtin_constant_p): Remove.
4629 (simplify_builtin, simplify_builtin_memcmp,
4630 simplify_builtin_strcmp, simplify_builtin_strncmp,
4631 simplify_builtin_strpbrk, simplify_builtin_strstr,
4632 simplify_builtin_strchr, simplify_builtin_strrchr,
4633 simplify_builtin_strcat, simplify_builtin_strncat,
4634 simplify_builtin_strspn, simplify_builtin_strcspn,
4635 simplify_builtin_next_arg, simplify_builtin_va_start,
4636 simplify_builtin_sprintf): New.
4637 * builtins.def (BUILT_IN_STACK_ALLOC,
4638 BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE,
4639 BUILT_IN_INIT_TRAMPOLINE, BUILT_IN_ADJUST_TRAMPOLINE,
4640 BUILT_IN_NONLOCAL_GOTO, BUILT_IN_PROFILE_FUNC_ENTER,
4641 BUILT_IN_PROFILE_FUNC_EXIT): Define.
4642 * c-common.c: Include tree-iterator.h and hashtab.h.
4643 (lang_statement_code_p): Declare.
4644 (lang_gimplify_stmt): Declare.
4645 (fix_string_type): Set TREE_INVARIANT for value.
4646 (pointer_int_sum): Rely on build to set TREE_CONSTANT.
4647 (c_type_hash): New.
4648 (c_common_get_alias_set): Handle multiple type nodes
4649 referring to "the same" type, currently for C90 only.
4650 (c_add_case_label): Use create_artificial_label.
4651 (finish_label_address_expr): Don't set TREE_CONSTANT on
4652 result.
4653 (c_expand_expr): Don't handle STMT_EXPR.
4654 (handle_alias_attribute): Marke aliased variables to be
4655 TREE_STATIC.
4656 (handle_nonnull_attribute): Initialize arg_num.
4657 (check_function_nonnull): Likewise.
4658 (c_walk_subtrees): New.
4659 (c_estimate_num_insns_1): Don't handle
4660 EXPR_WITH_FILE_LOCATION nor FILE_STMT.
4661 (c_decl_uninit_1): Remove.
4662 (c_decl_uninit): Remove.
4663 (c_warn_unused_result): New.
4664 * c-common.def (ASM_STMT): Change number of operands
4665 to 4.
4666 (FILE_STMT): Remove.
4667 * c-common.h (lang_expand_stmt, lang_expand_decl_stmt):
4668 Remove.
4669 (lang_gimplify_stmt): Add.
4670 (expand_stmt): Remove.
4671 (ASM_CV_QUAL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
4672 ASM_CLOBBERS, STMT_EXPR_WARN_UNUSED_RESULT,
4673 ASM_VOLATILE_P, FILE_STMT_FILENAME_NODE,
4674 FILE_STMT_FILENAME, STMT_LINENO, STMT_LINENO_FOR_FN_P,
4675 ASM_INPUT_P, DECL_C_HARD_REGISTER): Remove.
4676 (genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
4677 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
4678 genrtl_while_stmt, genrtl_do_stmt, genrtl_return_stmt,
4679 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
4680 genrtl_scope_stmt, genrtl_switch_stmt, genrtl_case_label,
4681 genrtl_compound_stmt, genrtl_asm_stmt,
4682 genrtl_cleanup_stmt, c_decl_uninit): Remove.
4683 (c_do_switch_warnings, c_gimplify_expr, c_walk_subtrees,
4684 c_tree_chain_matters_p, c_warn_unused_result,
4685 c_genericize, c_gimplify_stmt, stmt_expr_last_stmt):
4686 Declare.
4687 * c-convert.c (convert): Make convert work when
4688 converting to compatible types across translation unit.
4689 * c-decl.c: Include langhooks.h, tree-mudflap.h,
4690 tree-simple.h, diagnostic.h and tree-dump.h
4691 (merge_decls): Initialize oldtype to NULL.
4692 (finish_decl): Use DECL_HARD_REGISTER instead of
4693 DECL_C_HARD_REGISTER.
4694 (check_bitfield_type_and_width): Check for null
4695 lang_type_specific when check the precision of an enum.
4696 (grokdeclarator): Immediately layout an ARRAY_TYPE used
4697 in a pointer-to-array declarator.
4698 (finish_struct): Clear allocated struct lang_type.
4699 (finish_enum): Set enum_min and enum_max. Set
4700 TYPE_MIN/MAX_VALUE to the limits of the compatible type,
4701 not to the enumerators.
4702 (set_decl_nonlocal): New.
4703 (store_parm_decls): Use it via walk_tree.
4704 (c_finalize): New.
4705 (finish_function): When !targetm.have_ctors_dtors,
4706 record static constructors and destructors here...
4707 (c_expand_body_1): ... not here.
4708 (c_expand_decl): Rename from c_expand_decl_stmt.
4709 Handle all C-specific expansion semantics.
4710 * c-dump.c (dump_stmt): Use EXPR_LOCUS instead of
4711 STMT_LINENO.
4712 * c-format.c (handle_format_arg_attribute): Initialize
4713 format_num.
4714 * c-lang.c: Include tree-inline.h
4715 (LANG_HOOKS_EXPAND_DECL,
4716 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
4717 LANG_HOOKS_TREE_INLINING_WALK_SUBTREES,
4718 LANG_HOOKS_TREE_INLINING_TREE_CHAIN_MATTERS_P,
4719 LANG_HOOKS_GIMPLIFY_EXPR, LANG_HOOKS_TYPES_COMPATIBLE_P): Define.
4720 (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
4721 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): Remove.
4722 (c_types_compatible_p): New.
4723 * c-mudflap.c: New file.
4724 * c-objc-common.c: Include tree-mudflap.h
4725 (start_cdtor, finish_cdtor): Collapse
4726 together into
4727 (build_cdtor): ...here. Update to construct a complete tree
4728 for the function. No need to call push_scope, pop_scope, or
4729 clear_last_expr, or set current_function_cannot_inline.
4730 (c_missing_noreturn_ok_p): Change prototype to return
4731 bool.
4732 (c_objc_common_init): Don't set lang_missing_noreturn_ok_p.
4733 * c-opts.c (c_common_handle_option): Move handling of -fdump- to
4734 opts.c.
4735 (c_common_post_options): Don't ever use rtl inlining.
4736 * c-parse.in: Use EXPR_LOCUS instead of STMT_LINENO.
4737 * c-pragma.c (handle_pragma_redefine_extname): Define
4738 always.
4739 (init_pragma): Activate #pragma redefine_extname for mudflap.
4740 * c-pretty-print.c (pp_c_statement): Remove FILE_STMT.
4741 (pp_c_initializer): Accept any type CONSTRUCTOR.
4742 (pp_c_initializer_list): Fix code expectations for VECTOR_TYPE and
4743 COMPLEX_TYPE.
4744 (decl_name_str): New local function.
4745 (pp_c_direct_declarator): Call it.
4746 (pp_c_primary_expression): Call it.
4747 (pp_c_id_expression): Call it.
4748 (pp_c_statement): Call it.
4749 (print_c_tree): Create new pp object.
4750 * c-pretty-print.h (pp_c_tree_decl_identifier,
4751 print_c_tree): Declare.
4752 * c-semantics.c: Include langhooks.h
4753 (lang_expand_stmt, lang_expand_decl_stmt,
4754 find_reachable_label_1, find_reachable_label,
4755 expand_unreachable_if_stmt, expand_unreachable_stmt,
4756 genrtl_do_stmt_1): Remove.
4757 (begin_stmt_tree): Don't check for changed filename.
4758 Call annotate_with_locus.
4759 (finish_stmt_tree): Don't set line for end of function.
4760 (build_stmt): Don't check type nodes for
4761 side effects.
4762 (build_stmt): Set TREE_SIDE_EFFECTS.
4763 Set EXPR_LOCUS instead of STMT_LINENO.
4764 (lang_expand_stmt, lang_expand_decl_stmt,
4765 expand_cond, genrtl_do_pushlevel, genrtl_goto_stmt, genrtl_expr_stmt,
4766 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
4767 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_do_stmt,
4768 genrtl_return_stmt, genrtl_for_stmt, genrtl_break_stmt,
4769 genrtl_continue_stmt, genrtl_scope_stmt, genrtl_switch_stmt,
4770 genrtl_case_label, genrtl_compound_stmt, genrtl_asm_stmt,
4771 genrtl_cleanup_stmt, expand_stmt, find_reachable_label,
4772 find_reachable_label_1, expand_unreachable_if_stmt,
4773 expand_unreachable_stmt): Remove.
4774 (prep_stmt): Use EXPR_LOCUS instead of STMT_LINENO.
4775 * c-simplify.c: New file.
4776 * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Define.
4777 (struct lang_type): Add fields enum_min and enum_max.
4778 (c_expand_decl_stmt, c_missing_noreturn_ok_p): Remove.
4779 (c_expand_decl, c_missing_noreturn_ok_p,
4780 c_types_compatible_p): Declare.
4781 * c-typeck.c (tagged_types_tu_compatible_p): Allow for
4782 compiler-generated TYPE_DECLs without a DECL_ORIGINAL_TYPE.
4783 (default_function_array_conversion): Rely on build to
4784 set TREE_CONSTANT.
4785 (parser_build_binary_op, pointer_diff): Likewise.
4786 (build_unary_op, build_binary_op): Likewise.
4787 (build_array_ref):
4788 (build_external_ref): Set TREE_INVARIANT.
4789 (build_c_cast, pop_init_level): Likewise.
4790 (process_init_element): Use ASM_VOLATILE_P.
4791 (build_asm_expr): Adapt to GENERIC/GIMPLE syntax.
4792 (c_finish_case): Call c_do_switch_warnings.
4793 * c.opt (fdump-): Remove.
4794 * calls.c (try_to_integrate): Remove.
4795 (prepare_call_address): Replace fndecl arg with a
4796 precomputed static chain value.
4797 (emit_call_1): New argument for full call expr.
4798 (flags_from_decl_or_type): Call special_function_p.
4799 (initialize_argument_information): Add argument
4800 may_tailcall.
4801 (purge_reg_equiv_notes): New.
4802 (expand_call): Do not try to expand calls inline.
4803 (fixup_tail_calls): New.
4804 * cfg.c: Include timevar.h and ggc.h.
4805 (bb_pool, edge_pool): Remove.
4806 (ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Declare.
4807 (entry_exit_blocks): Remove.
4808 (rbi_pool): Declare.
4809 (init_flow): Do not create pools.
4810 Allocate entry/exit block.
4811 (free_edge, alloc_block, expunge_block, unchecked_make_edge): Use GGC.
4812 (alloc_rbi_pool, free_rbi_pool, initialize_bb_rbi): New.
4813 (unlink_block): Clear b->prev_bb and b->next_bb.
4814 (compact_blocks): Clear all slots of BASIC_BLOCK array.
4815 (dump_flow_info): Work on trees too.
4816 (dump_cfg_bb_info): New.
4817 (brief_dump_cfg): New.
4818 * cfganal.c (need_fake_edge_p, flow_call_edges_add): Remove.
4819 (find_edge): New.
4820 * cfgbuild.c (rtl_make_eh_edge): Rename from
4821 make_eh_edge. Update all users.
4822 (find_basic_blocks): Don't call VARRAY_FREE on
4823 basic_block_info.
4824 * cfgcleanup.c (outgoing_edges_match): Initialize newpos1
4825 and newpos2.
4826 (delete_unreachable_blocks): Return changed status.
4827 (merge_seq_blocks): New.
4828 * cfghooks.c: Include tree-flow.h
4829 (tree_register_cfg_hooks, ir_type): New.
4830 (redirect_edge_and_branch): Change return type to edge.
4831 (predict_edge, predicted_by_p, can_duplicate_block_p,
4832 duplicate_block, block_ends_with_call_p,
4833 block_ends_with_condjump_p, flow_call_edges_add): New.
4834 * cfghooks.h (redirect_edge_and_branch): Change return
4835 type to edge.
4836 (predict_edge, predicted_by_p, can_duplicate_block_p,
4837 duplicate_block, block_ends_with_call_p,
4838 block_ends_with_condjump_p, flow_call_edges_add): Declare.
4839 (redirect_edge_and_branch): Change return type to edge.
4840 (struct cfg_hooks): Add fields block_ends_with_call_p,
4841 block_ends_with_condjump_p, flow_call_edges_add,
4842 predict_edge, predicted_by_p, can_duplicate_block_p and
4843 duplicate_block.
4844 (tree_cfg_hooks, ir_type, tree_register_cfg_hooks): Declare.
4845 * cfglayout.c (cfg_layout_pool, cfg_layout_initialize_rbi): Removed.
4846 (fixup_reorder_chain): Use initialize_bb_rbi.
4847 (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Hookized.
4848 (cfg_layout_initialize): Use cfg.c rbi pool manipulation functions.
4849 (can_copy_bbs_p, copy_bbs): Use cfghooks for bb duplication.
4850 (insn_locators_initialize): Use new info about blocks.
4851 * cfglayout.h (typedef struct reorder_block_def): Moved to
4852 basic_block.h.
4853 (cfg_layout_can_duplicate_bb_p, cfg_layout_duplicate_bb): Declaration
4854 removed.
4855 * cfgloop.c: Include tree.h and tree-flow.h.
4856 * cfgloop.h (create_loop_notes): Declare.
4857 * cfgloopmanip.c (create_loop_notes): New.
4858 * cfgrtl.c (cfg_layout_create_basic_block): Use initialize_bb_rbi.
4859 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Fill in can_duplicate_block_p
4860 and duplicate_block fields.
4861 (create_basic_block_structure): Don't look at
4862 RTX_INTEGRATED_P.
4863 (rtl_block_ends_with_call_p): New.
4864 (rtl_block_ends_with_condjump_p): New.
4865 (need_fake_edge_p): Moved from cfganal.c.
4866 (rtl_flow_call_edges_add): Moved from cfganal.c (flow_call_edges_add).
4867 (rtl_cfg_hooks): Add rtl_block_ends_with_call_p,
4868 rtl_block_ends_with_condjump_p, rtl_flow_call_edges_add.
4869 (cfg_layout_rtl_cfg_hooks): Ditto.
4870 * cgraph.c (cgraph_mark_reachable_node): Don't force nested
4871 functions to be reachable.
4872 * cgraphunit.c (decide_is_function_needed):
4873 * cgraphunit.c (decide_is_function_needed): Nested functions of extern
4874 inline functions don't need to be output.
4875 (cgraph_assemble_pending_functions): Don't do anything
4876 special for nested functions.
4877 (cgraph_mark_functions_to_output): Likewise.
4878 (cgraph_finalize_function): Don't zap DECL_STRUCT_FUNCTION.
4879 (cgraph_analyze_function): Use estimate_num_insns.
4880 (cgraph_mark_functions_to_output): Likewise.
4881 (cgraph_estimate_growth, cgraph_clone_inlined_nodes): Likewise.
4882 (cgraph_expand_function): Allow functions to not be
4883 emitted.
4884 (cgraph_remove_unreachable_nodes):
4885 (cgraph_recursive_inlining_p): Simplify.
4886 (lookup_recursive_calls,
4887 cgraph_decide_recursive_inlining): New.
4888 (cgraph_decide_inlining_*): Update calls of
4889 cgraph_mark_inline.
4890 * combine.c (get_pos_from_mask): Always set *plen.
4891 * common.opt (fdump-, fmudflap, fmudflapth, fmudflapir,
4892 ftree-based-profiling, ftree-ccp, ftree-ch,
4893 ftree-combine-temps, ftree-copyrename, ftree-dce,
4894 ftree-dominator-opts, ftree-dse, ftree-loop-optimize,
4895 ftree-points-to, ftree-pre, ftree-sra, ftree-ter,
4896 ftree-lrs): Add.
4897 * config.in (HAVE_LD_PIE, HAVE_BANSHEE, PREFIX_INCLUDE_DIR):
4898 Undefine.
4899 * configure.ac: Add --enable-tree-browser option.
4900 Add --with-libbanshee option.
4901 Add GMPLIBS and GMPINC.
4902 * configure: Regenerate.
4903 * coverage.c (tree_ctr_tables): New.
4904 (coverage_counter_alloc): Use it.
4905 (build_ctr_info_value): Ditto.
4906 (coverage_counter_ref): Ditto. Rename to rtl_coverage_counter_ref.
4907 (tree_coverage_counter_ref): New.
4908 * coverage.h (coverage_counter_ref): Remove declaration.
4909 (rtl_coverage_counter_ref): Declare.
4910 (tree_coverage_counter_ref): Declare.
4911 * cppexp.c (append_digit): Rearrange unsignedp/overflow setting.
4912 (eval_token, num_binary_op, num_part_mul, num_div_op): Likewise.
4913 * cse.c (fold_rtx): Do not handle CONSTANT_P_RTX.
4914 (struct cse_basic_block_data): Rename enum values to not
4915 conflict with profile.h; update all uses.
4916 * dbxout.c (dbxout_symbol_location): Don't mention integrate.c
4917 in comments.
4918 * defaults.h (TRAMPOLINE_ALIGNMENT): Move from function.c.
4919 * diagnostic.h (debug_output_buffer, dump_generic_node,
4920 print_generic_stmt, print_generic_stmt_indented,
4921 print_generic_expr, print_generic_decl,
4922 debug_generic_expr, debug_generic_stmt, debug_c_tree):
4923 Declare.
4924 * dominance.c: Cache immediate dominators.
4925 * domwalk.c: New file.
4926 * domwalk.h: New file.
4927 * dwarf2out.c (is_fortran): Support DW_LANG_Fortran95.
4928 (gen_subprogram_die): Generate a DIE for a named
4929 return value.
4930 (loc_descriptor_from_tree): Treat RESULT_DECL like VAR_DECL.
4931 (add_location_or_const_value_attribute): Likewise.
4932 (add_bound_info): Likewise.
4933 (gen_decl_die): Likewise.
4934 * emit-rtl.c (maybe_set_first_label_num): New.
4935 (copy_most_rtx): Don't copy the integrated flag.
4936 Copy the new return_val flag.
4937 * et-forest.c (MAX_NODES): Define.
4938 (record_path_before_1): Abort if len is greater than
4939 MAX_NODES.
4940 * except.c (gen_eh_region, gen_eh_region_cleanup, gen_eh_region_try,
4941 gen_eh_region_catch, gen_eh_region_allowed,
4942 gen_eh_region_must_not_throw, get_eh_region_number,
4943 get_eh_region_may_contain_throw, get_eh_region_tree_label,
4944 set_eh_region_tree_label, expand_resx_expr): New.
4945 (expand_eh_region_start, expand_start_catch): Use them.
4946 (expand_end_catch): Tidy.
4947 (note_eh_region_may_contain_throw): Take region argument.
4948 (note_current_region_may_contain_throw): New.
4949 (get_exception_filter): Export.
4950 (collect_eh_region_array): Export.
4951 (remove_unreachable_regions): Check ERT_TRY based on reachability
4952 of catches, not reachability of continue_label. Never remove
4953 ERT_MUST_NOT_THROW regions.
4954 (collect_rtl_labels_from_trees): New.
4955 (convert_from_eh_region_ranges): Use it.
4956 (connect_post_landing_pads): Handle dying cleanups.
4957 (struct reachable_info): Add callback data.
4958 (add_reachable_handler): Invoke the callback.
4959 (foreach_reachable_handler): New.
4960 (reachable_handlers): Use it.
4961 (arh_to_landing_pad, arh_to_label): New.
4962 (can_throw_internal_1): Split out from can_throw_internal.
4963 (can_throw_external_1): Similarly.
4964 * except.h: Update.
4965 * explow.c (emit_stack_save): Remove savearea mode check.
4966 (update_nonlocal_goto_save_area): New.
4967 (allocate_dynamic_stack_space): Use it.
4968 (probe_stack_range): Never emit loop notes.
4969 * expmed.c (extract_fixed_bit_field): Always propagate the
4970 target for the shift if it is a REG.
4971 * expr.c: Include tree-iterator.h
4972 (is_zeros_p): Remove.
4973 (categorize_ctor_elements_1, categorize_ctor_elements): New.
4974 (count_type_elements): New.
4975 (mostly_zeros_p): Use them.
4976 (expr_wfl_stack): Remove.
4977 (convert_move): Do nothing if to and from are the same.
4978 (emit_block_move_via_loop): Don't emit LOOP notes.
4979 (emit_move_insn): Don't handle CONSTANT_P_RTX.
4980 (emit_move_insn_1): Don't generate inline warnings.
4981 (expand_vars, expand_var): Split from ...
4982 (expand_expr_1): ... here.
4983 (expand_expr_real, expand_expr_real_1): Use new macros
4984 EXPR_LOCATION and EXPR_HAS_LOCATION.
4985 * expr.h (simplify_builtin_fputs,
4986 simplify_builtin_strcpy, simplify_builtin_strncpy,
4987 expand_var, fixup_tail_calls,
4988 update_nonlocal_goto_save_area): Declare.
4989 (lookup_static_chain, expand_inline_function,
4990 mark_seen_cases): Remove.
4991 (prepare_call_address): Change type of 2nd argument to
4992 rtx.
4993 * final.c (profile_function): Update static chain test.
4994 (final): Don't look at RTX_INTEGRATED_P.
4995 * flags.h (flag_mudflap, flag_mudflap_threads,
4996 flag_mudflap_ignore_reads, flag_tree_pre, flag_tree_ccp,
4997 flag_tree_dce, flag_tree_combine_temps,
4998 flag_tree_live_range_split, flag_tree_dom, flag_tree_ch,
4999 flag_tree_dse, flag_tree_sra, flag_tree_copyrename,
5000 flag_tree_points_to): Declare.
5001 (enum pta_type): Declare.
5002 * flow.c (lang_missing_noreturn_ok_p): Remove.
5003 (check_function_return_warnings): Remove.
5004 (update_life_info): Update comments.
5005 (free_basic_block_vars): Don't call VARRAY_FREE for
5006 basic_block_info.
5007 (regno_uninitialized): Remove.
5008 * fold-const.c (int_const_binop): Make extern.
5009 (non_lvalue): Rely on build to set TREE_CONSTANT.
5010 (operand_equal_p): Replace only_const argument with
5011 flags. Allow pure functions if OEP_PURE_SAME.
5012 (fold): Use OEP_ONLY_CONST.
5013 (invert_truthvalue) <NOP_EXPR> Break if argument is of
5014 boolean type.
5015 (fold_relational_hi_lo,
5016 nondestructive_fold_binary_to_constant,
5017 nondestructive_fold_unary_to_constant,
5018 fold_read_from_constant_string): New.
5019 * function.c (struct function): Remove calls_constant_p.
5020 (current_function_calls_constant_p): Remove.
5021 (inline_function_decl): Remove.
5022 (put_var_into_stack): Don't use it.
5023 (fix_lexical_addr): Likewise.
5024 (inline_function_decl): Remove extern declaration.
5025 (TRAMPOLINE_ALIGNMENT): Move to defaults.h.
5026 (trampolines_created): Move to varasm.c.
5027 (free_after_compilation): Update for removed fields.
5028 (allocate_struct_function): Likewise.
5029 (delete_handlers, lookup_static_chain): Remove.
5030 (fix_lexical_addr): Don't consider non-local variable refs.
5031 (trampoline_address): Remove.
5032 (round_trampoline_addr): Move to builtins.c.
5033 (adjust_trampoline_addr): Remove.
5034 (expand_function_start): Update for changes to static chain
5035 and nonlocal goto handling.
5036 (initial_trampoline): Move to varasm.c.
5037 (expand_function_end): Don't build trampolines or kill
5038 unreferenced nonlocal goto labels.
5039 (free_after_compilation): Don't set it.
5040 (expand_function_end): Likewise.
5041 (setjmp_vars_warning): Rename from
5042 uninitialized_vars_warning, remove uninitialized vars warning.
5043 (uninitialized_vars_warning): Remove old comment
5044 and check for DECL_INITIAL, replace with a check of TREE_NO_WARNING
5045 and do not call the langhook.
5046 (expand_function_start, expand_function_end): Don't do
5047 function instrumentation here.
5048 (clear_block_marks): Rename from reorder_blocks_0, export.
5049 (blocks_nreverse): Export.
5050 (uninitialized_vars_warning): Use DECL_RTL_SET_P to test for presence
5051 of rtl.
5052 (reset_block_changes, record_block_change, finalize_block_changes,
5053 check_block_change, free_block_changes): New functions.
5054 (assign_parms): Setting of current_function_stdarg
5055 moved ...
5056 (allocate_struct_function): ... here.
5057 * function.h (struct function): Remove x_nonlocal_labels,
5058 x_nonlocal_goto_handler_slots, x_nonlocal_goto_stack_level,
5059 x_context_display, x_trampoline_list, needs_context.
5060 Add static_chain_decl, nonlocal_goto_save_area.
5061 (struct function): Remove x_clobber_return_insn.
5062 Add tail_call_emit field, last_label_uid,
5063 unexpanded_var_list, dont_emit_block_notes,
5064 ib_boundaries_block, function_end_locus and saved_tree/saved_args.
5065 (clear_block_marks): Declare.
5066 * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Add -fmudflapth support.
5067 (mfwrap_spec, mflib_spec): Declare.
5068 (cpp_unique_options, cc1_options): Ditto.
5069 (default_compilers): Add .F and .f90.
5070 (static_specs): Add mfwrap and mflib.
5071 * gcse.c (want_to_gcse_p, gcse_constant_p): Don't handle
5072 CONSTANT_RTX_P.
5073 (reg_used_on_edge, reg_killed_on_edge, bypass_block):
5074 Update to match insns field in struct edge_def.
5075 * gdbinit.in (pgs, pge): Define.
5076 * genattrtab.c (ATTR_PERMANENT_P): Use the return_val flag
5077 instead of the integrated flag.
5078 * gengtype-lex.l (IWOrD): Add HOST_WIDEST_INT
5079 * gengtype-yacc.y (bitfieldlen): Add empty action.
5080 (struct_fields): Accept unnamed bitfields.
5081 (bitfieldlen): Split from ...
5082 (bitfieldopt): ... here.
5083 * gengtype.c (ifiles): Add tree-alias-type.h and
5084 tree-flow.h.
5085 * genrecog.c (validate_pattern): Do not handle
5086 CONSTANT_P_RTX.
5087 * gimple-low.c: New file.
5088 * gimplify.c: New file.
5089 * haifa-sched.c (priority): Do not handle CONSTANT_P_RTX.
5090 (restore_line_notes): Do not set RTX_INTEGRATED_P.
5091 * ifcvt.c (dead_or_predicable): Initialize local variable
5092 'earliest'.
5093 * input.h (expr_wfl_stack): Remove.
5094 * integrate.c (INTEGRATE_THRESHOLD): Remove.
5095 (setup_initial_hard_reg_value_integration): Likewise.
5096 (initialize_for_inline): Likewise.
5097 (note_modified_parmregs): Likewise.
5098 (integrate_parm_decls): Likewise.
5099 (process_reg_param): Likewise.
5100 (save_parm_insns): Likewise.
5101 (copy_insn_list): Likewise.
5102 (copy_insn_notes): Likewise.
5103 (compare_blocks): Likewise.
5104 (find_block): Likewise.
5105 (inlining): Likewise.
5106 (function_cannot_inline_p): Likewise.
5107 (parmdecl_map): Likewise.
5108 (in_nonparam_insns): Likewise.
5109 (save_for_inline): Likewise.
5110 (FIXED_BASE_PLUS): Likewise.
5111 (expand_inline_function): Likewise.
5112 (copy_rtx_and_substitute): Don't look at map->integrating,
5113 map->inline_target, and inlining, since we are never copying
5114 for integrating.
5115 Don't abort on RTX_INTEGRATED_P.
5116 (old_fun): Remove.
5117 (output_inline_function): Remove.
5118 * integrate.h (struct inline_map): Remove fields integrating,
5119 block_map, leaf_reg_map, inline_target, and local_return_label.
5120 * jump.c (next_nonnote_insn_in_loop, duplicate_loop_exit_test,
5121 copy_loop_headers, never_reached_warning): Removed.
5122 (any_uncondjump_p): Reject nonlocal goto.
5123 * langhooks-def.h (lhd_types_compatible_p,
5124 lhd_expand_decl, lhd_gimplify_expr): Declare.
5125 (LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
5126 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
5127 LANG_HOOKS_FUNCTION_LEAVE_NESTED,
5128 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
5129 LANG_HOOKS_GIMPLIFY_EXPR,
5130 LANG_HOOKS_GIMPLE_BEFORE_INLINING,
5131 LANG_HOOKS_EXPAND_DECL, LANG_HOOKS_TYPES_COMPATIBLE_P,
5132 LANG_HOOKS_GIMPLIFY_EXPR,
5133 LANG_HOOKS_GIMPLE_BEFORE_INLINING): Define.
5134 (LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_START,
5135 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END,
5136 LANG_HOOKS_FUNCTION_LEAVE_NESTED,
5137 LANG_HOOKS_RTL_EXPAND_INITIALIZER,
5138 LANG_HOOKS_DECL_UNINIT,
5139 LANG_HOOKS_RTL_EXPAND_INITIALIZER): Remove.
5140 * langhooks.c: Include tree-simple.h.
5141 (lhd_expand_decl): New.
5142 (lhd_types_compatible_p): New.
5143 (lhd_decl_uninit): Remove.
5144 (lhd_gimplify_expr): New.
5145 * langhooks.h (struct lang_hooks_for_rtl_expansion):
5146 Remove.
5147 (struct lang_hooks_for_functions): Add field
5148 missing_noreturn_ok_p.
5149 (struct lang_hooks): Add field expand_decl,
5150 types_compatible_p, gimplify_expr and
5151 gimple_before_inlining.
5152 Remove fields decl_uninit and rtl_expand
5153 * opts.c (decode_options): Set flag_tree_ccp,
5154 flag_tree_dce, flag_tree_dom, flag_tree_dse,
5155 flag_tree_pre, flag_tree_ter,
5156 flag_tree_live_range_split, flag_tree_sra,
5157 flag_tree_copyrename and flag_tree_ch at -O1 and higher.
5158 (common_handle_option): Handle OPT_fdump_, OPT_fmudflap,
5159 OPT_fmudflapth, OPT_fmudflapir,
5160 OPT_ftree_based_profiling, OPT_ftree_ccp, OPT_ftree_dce,
5161 OPT_ftree_combine_temps, OPT_ftree_ter, OPT_ftree_lrs,
5162 OPT_ftree_dominator_opts, OPT_ftree_copyrename,
5163 OPT_ftree_ch, OPT_ftree_dse, OPT_ftree_sra,
5164 OPT_ftree_points_to_ and OPT_ftree_pre.
5165 * output.h (regno_uninitialized, find_basic_blocks,
5166 cleanup_cfg, delete_unreachable_blocks,
5167 check_function_return_warnings): Remove.
5168 * params.def (PARAM_MAX_INLINE_INSNS_RECURSIVE,
5169 PARAM_MAX_INLINE_INSNS_RECURSIVE_AUTO,
5170 PARAM_MAX_INLINE_RECURSIVE_DEPTH,
5171 PARAM_MAX_INLINE_RECURSIVE_DEPTH_AUTO,
5172 PARAM_GLOBAL_VAR_THRESHOLD, PARAM_MAX_ALIASED_VOPS):
5173 * params.h (GLOBAL_VAR_THRESHOLD, MAX_ALIASED_VOPS):
5174 Define.
5175 * passes.c (rest_of_decl_compilation):
5176 (rest_of_handle_sibling_calls): Remove.
5177 (rest_of_handle_inlining): Remove.
5178 (rest_of_handle_gcse): Do not run
5179 purge_builtin_constant_p.
5180 (rest_of_compilation): Update.
5181 Do not call copy_loop_headers.
5182 Do rtl-based profiling only when
5183 !flag_tree_based_profiling. Register rtl-based profiling
5184 hooks.
5185 * predict.c: Include tree-flow.h, ggc.h, tree-dump.h
5186 (predicted_by_p): Rename to ...
5187 (rtl_predicted_by_p): .. this one; make global
5188 (tree_predicted_by_p): New.
5189 (dump_prediction): Add FILE argument.
5190 (predict_edge): Rename to ...
5191 (rtl_predict_edge): .. this one.
5192 (tree_predict_edge): New.
5193 (combine_predictions_for_insn): Update calls of predict_edge.
5194 (predict_loops): Break out from ...
5195 (estimate_probability): ... here; update comments; move updating
5196 of unknown probabilities from ...
5197 (estimate_bb_frequencies): ... here.
5198 (combine_predictions_for_bb): New.
5199 (tree_predict_by_opcode): New.
5200 (tree_estimate_probability): New.
5201 * predict.def (PRED_TREE_POINTER, PRED_TREE_OPCODE_POSITIVE,
5202 PRED_TREE_OPCODE_NONEQUAL, PRED_TREE_FPOPCODE): New predictors.
5203 * predict.h: Add include guard.
5204 (predict_edge, predict_edge_def): Move prototypes to basic_block.h
5205 * pretty-print.c (pp_write_text_to_stream): Make extern.
5206 * pretty-print.h (pp_write_text_to_stream): Declare.
5207 * print-rtl.c (print_rtx): Don't print the integrated flag.
5208 Print the return_val flag.
5209 * print-tree.c: Use TREE_FILENAME and TREE_LINENO instead
5210 of DECL_SOURCE_FILE and DECL_SOURCE_LINE respectively.
5211 Remove support for EXPR_WITH_FILE_LOCATION nodes.
5212 (print_node): Print TREE_INVARIANT and TREE_VISITED.
5213 * profile.c: Include cfghooks.h, tree-flow.h.
5214 (profile_hooks): New.
5215 (profile_dump_file): New.
5216 (instrument_edges): Use hooks instead of RTL-specific code.
5217 (instrument_values): Ditto.
5218 (get_exec_counts): Ditto.
5219 (compute_branch_probabilities): Ditto.
5220 (compute_value_histograms): Ditto.
5221 (branch_prob): Ditto.
5222 (find_spanning_tree): Ditto.
5223 (end_branch_prob): Ditto.
5224 (gen_edge_profiler): Move to rtl-profile.c (rtl_gen_edge_profiler).
5225 (gen_interval_profiler): Ditto (rtl_gen_interval_profiler).
5226 (gen_pow2_profiler): Ditto (rtl_gen_pow2_profiler).
5227 (gen_one_value_profiler): Ditto (rtl_gen_one_value_profiler).
5228 (tree_register_profile_hooks): New.
5229 (rtl_register_profile_hooks): New.
5230 * ra-rewrite.c (rewrite_program): Clear variable info.
5231 * recog.c (immediate_operand): Do not handle CONSTANT_P_RTX.
5232 * regs.h: Add include guards.
5233 * reload.c (decompose): Clear val using memset.
5234 * rtl.def (CONSTANT_P_RTX): Remove.
5235 * rtl.h (CONSTANT_P): Do not handle CONSTANT_P_RTX.
5236 (copy_loop_headers): Remove.
5237 (struct rtx_def): Replace the integrated flag with the
5238 return_val flag.
5239 (maybe_set_first_label_num): Declare.
5240 (init_branch_prob): Move declaration to value-prof.h.
5241 (end_branch_prob): Ditto.
5242 (branch_prob): Ditto.
5243 (never_reached_warning): Don't declare it.
5244 * rtlanal.c (get_related_value): Initialize get_jump_table_offset
5245 (hoist_insn_to_edge): Update to match field insns in
5246 struct edge_def.
5247 * sbitmap.c (sbitmap_realloc): New.
5248 * sbitmap.h (sbitmap_realloc): Declare.
5249 * sibcall.c: Remove file.
5250 * simplify-rtx.c (simplify_rtx): Do not handle
5251 CONSTANT_P_RTX.
5252 * stmt.c (parse_output_constraint): Don't warn for read-write
5253 memory operand.
5254 (tail_recursion_args): Use types_compatible_p langhook.
5255 (force_label_rtx): Don't look at inline_function_decl.
5256 (label_rtx): Set LABEL_PRESERVE_P appropriately.
5257 (expand_label): Handle DECL_NONLOCAL and FORCED_LABEL.
5258 (declare_nonlocal_label): Remove.
5259 (expand_goto): Don't handle nonlocal gotos.
5260 (expand_nl_handler_label): Remove.
5261 (expand_nl_goto_receivers): Remove.
5262 (expand_end_bindings): Don't expand_nl_goto_receivers. Use
5263 update_nonlocal_goto_save_area.
5264 (expand_expr_stmt_value): Check TREE_NO_WARNING.
5265 (warn_if_unused_value): Likewise.
5266 (expand_start_loop, expand_loop_continue_here,
5267 expand_end_loop): Don't create loop notes.
5268 (all_cases_count, BITARRAY_TEST, BITARRAY_SET,
5269 mark_seen_cases, check_for_full_enumeration_handling): Remove.
5270 (expand_end_case_type): Don't do warn_switch handling.
5271 (pushcase, pushcase_range) Update add_case_node calls.
5272 (add_case_node): Add dont_expand_label argument.
5273 (same_case_target_p): Don't search rtl.
5274 (expand_start_bindings_and_block, expand_end_bindings):
5275 Don't emit block notes when dont_emit_block_notes.
5276 (using_eh_for_cleanups_p): Export.
5277 (expand_return): Allow any typed rhs.
5278 (expand_stack_alloc): New.
5279 (expand_stack_save, expand_stack_restore): New.
5280 (containing_blocks_have_cleanups_or_stack_level): New
5281 function.
5282 (asm_op_is_mem_input): New fn.
5283 (expand_asm_expr): New fn.
5284 (warn_if_unused_value): Check operand 0 of SAVE_EXPR
5285 nodes.
5286 * stor-layout.c (layout_type): Just return if type is
5287 error_mark_node.
5288 (update_alignment_for_field): Export.
5289 (variable_size): We don't care about global_bindings_p if
5290 the frontend doesn't want a list of the expressions.
5291 * system.h: Poison INTEGRATE_THRESHOLD.
5292 * timevar.def (TV_TREE_GIMPLIFY, TV_TREE_EH, TV_TREE_CFG,
5293 TV_TREE_CLEANUP_CFG, TV_TREE_PTA, TV_TREE_MAY_ALIAS,
5294 TV_TREE_INSERT_PHI_NODES, TV_TREE_SSA_REWRITE_BLOCKS,
5295 TV_TREE_SSA_OTHER, TV_TREE_OPS,
5296 TV_TREE_SSA_DOMINATOR_OPTS, TV_TREE_SRA, TV_TREE_CCP,
5297 TV_TREE_SPLIT_EDGES, TV_TREE_PRE, TV_TREE_PHIOPT,
5298 TV_TREE_FORWPROP, TV_TREE_DCE, TV_TREE_CD_DCE,
5299 TV_TREE_DSE, TV_TREE_LOOP, TV_TREE_CH,
5300 TV_TREE_SSA_TO_NORMAL, TV_TREE_SSA_TO_NORMAL,
5301 TV_TREE_NRV, TV_TREE_COPY_RENAME, TV_TREE_SSA_VERIFY,
5302 TV_TREE_STMT_VERIFY, TV_DOM_FRONTIERS,
5303 TV_CONTROL_DEPENDENCES): Define.
5304 * toplev.c: Include tree-alias-common.h
5305 (current_file_decl, flag_mudflap, flag_mudflap_threads,
5306 flag_mudflap_ignore_reads, flag_tree_based_profiling,
5307 flag_tree_gvn, flag_tree_points_to, flag_tree_ccp,
5308 flag_tree_dce, flag_tree_ch, flag_tree_sra,
5309 flag_tree_combine_temps, flag_tree_ter,
5310 flag_tree_live_range_split, flag_tree_dom,
5311 flag_tree_copyrename, flag_tree_dse): Declare.
5312 (f_options): Add tree-based-profiling, tree-gvn,
5313 tree-pre, tree-ccp, tree-dce,
5314 tree-dominator-opts, tree-copyrename, tree-dse,
5315 tree-combine-temps, tree-ter, tree-lrs and tree-ch.
5316 (wrapup_global_declarations): Don't output nested inlined functions.
5317 (general_init): Call init_tree_optimization_passes.
5318 (process_options): Sorry for -ftree-based-profiling plus
5319 -ftest-coverage or -fprofile-values.
5320 * toplev.h (init_tree_optimization_passes,
5321 flag_tree_based_profiling): Declare.
5322 * tracer.c (tail_duplicate): Use cfghooks for bb duplication.
5323 * tree-alias-ander.c: New file.
5324 * tree-alias-ander.h: New file.
5325 * tree-alias-common.c: New file.
5326 * tree-alias-common.h: New file.
5327 * tree-alias-type.c: New file.
5328 * tree-alias-type.h: New file.
5329 * tree-browser.c: New file.
5330 * tree-browser.def: New file.
5331 * tree-cfg.c: New file.
5332 * tree-complex.c: New file.
5333 * tree-dfa.c: New file.
5334 * tree-dump.c (dump_enable_all): New.
5335 (dequeue_and_dump): Do not handle EXPR_WITH_FILE_LOCATION.
5336 (dump_node): Remove const from field suffix and swtch.
5337 (dump_files): Add null entry, .generic, .nested, .vcg,
5338 .xml and a match-all entry.
5339 (extra_dump_files, extra_dump_files_in_use,
5340 extra_dump_files_alloced): Declare
5341 (dump_option_value_info): Add raw, details, stats,
5342 blocks, vops, lineno, uid and all.
5343 (dump_register): New.
5344 (get_dump_file_info): New.
5345 (dump_begin): Call it.
5346 Do nothing for TDI_none.
5347 (dump_begin): Include phase number in dump filename.
5348 (dump_enable_all): New.
5349 (dump_switch_p_1): Split out from dump_switch_p.
5350 (dump_switch_p): Handle extra_dump_files.
5351 Start our scan at TDI_none + 1.
5352 If -fdump-tree-all was given, call dump_enable_all.
5353 * tree-dump.h: Include splay-tree.h.
5354 (dump_function, dump_function_to_file, dump_register):
5355 Declare.
5356 * tree-eh.c: New file.
5357 * tree-flow-inline.h: New file.
5358 * tree-flow.h: New file.
5359 * tree-inline.c: Re-write to handle inlining on GIMPLE.
5360 * tree-inline.h (walk_tree,
5361 walk_tree_without_duplicates): Move to tree.h.
5362 (estimate_num_insns): Declare.
5363 * tree-into-ssa.c: New file.
5364 * tree-iterator.c: New file.
5365 * tree-iterator.h: New file.
5366 * tree-mudflap.c: New file.
5367 * tree-mudflap.h: New file.
5368 * tree-nested.c: New file.
5369 * tree-nomudflap.c: New file.
5370 * tree-nrv.c: New file.
5371 * tree-optimize.c (dump_flags, vars_to_rename,
5372 in_gimple_form, all_passes, pass_gimple,
5373 pass_rebuild_bind, pass_all_optimizations, pass_del_cfg): Declare.
5374 (execute_gimple, execute_rebuild_bind,
5375 gate_all_optimizations, execute_del_cfg,
5376 register_one_dump_file, register_dump_files, dup_pass_1,
5377 init_tree_optimization_passes, execute_todo,
5378 execute_one_pass, execute_pass_list): New.
5379 (clear_decl_rtl): Remove.
5380 (tree_rest_of_compilation): Update to use tree
5381 optimizers.
5382 * tree-outof-ssa.c: New file.
5383 * tree-pass.h: New file.
5384 * tree-phinodes.c: New file.
5385 * tree-pretty-print.c: New file.
5386 * tree-profile.c: New file.
5387 * tree-simple.c: New file.
5388 * tree-simple.h: New file.
5389 * tree-sra.c: New file.
5390 * tree-ssa-alias.c: New file.
5391 * tree-ssa-ccp.c: New file.
5392 * tree-ssa-copy.c: New file.
5393 * tree-ssa-copyrename.c: New file.
5394 * tree-ssa-dce.c: New file.
5395 * tree-ssa-dom.c: New file.
5396 * tree-ssa-dse.c: New file.
5397 * tree-ssa-forwprop.c: New file.
5398 * tree-ssa-live.c: New file.
5399 * tree-ssa-live.h: New file.
5400 * tree-ssa-loop.c: New file.
5401 * tree-ssa-operands.c: New file.
5402 * tree-ssa-operands.h: New file.
5403 * tree-ssa-phiopt.c: New file.
5404 * tree-ssa-pre.c: New file.
5405 * tree-ssa.c: New file.
5406 * tree-ssanames.c: New file.
5407 * tree-tailcall.c: New file.
5408 * tree.c: Include tree-iterator.h, basic-block.h and
5409 tree-flow.h.
5410 (tree_node_kind): Add phi_nodes and ssa names.
5411 (tree_size): Handle PHI_NODE, EPHI_NODE, SSA_NAME,
5412 EUSE_NODE, EKILL_NODE, EEXIT_NODE and STATEMENT_LIST.
5413 (make_node_stat): Handle PHI_NODE and SSA_NAME.
5414 <'c'> Set TREE_INVARIANT.
5415 (copy_node_stat): Abort if trying to copy a
5416 STATEMENT_LIST.
5417 Clear TREE_VISITED.
5418 Clear annotation field.
5419 (build_constructor): Copy TREE_INVARIANT from vals.
5420 Don't clear TREE_CONSTANT.
5421 (expr_first, expr_last, expr_length): Remove.
5422 (staticp): Pass unknown component references to the language.
5423 (save_expr): Check TREE_INVARIANT instead of TREE_CONSTANT.
5424 (skip_simple_arithmetic): Likewise.
5425 (stabilize_reference_1): Likewise.
5426 (tree_node_structure): Handle PHI_NODE, EPHI_NODE,
5427 EUSE_NODE, EKILL_NODE, EEXIT_NODE, SSA_NAME and
5428 STATEMENT_LIST.
5429 (lhd_unsave_expr_now): Remove.
5430 (unsafe_for_reeval): Handle LABEL_EXPR and BIND_EXPR.
5431 (recompute_tree_invarant_for_addr_expr): New.
5432 (build1_stat): Clear EXPR_LOCUS and TREE_BLOCK.
5433 Call recompute_tree_invarant_for_addr_expr.
5434 Set TREE_INVARIANT accordingly.
5435 (build2_stat): Don't handle CALL_EXPR.
5436 (build3_stat): Don't call build2_stat for CALL_EXPRs.
5437 (build_expr_wfl): Remove.
5438 (annotate_with_file_line, annotate_with_locus): New.
5439 (simple_cst_equal): Call simple_cst_list_equal to compare
5440 CONSTRUCTOR_ELTS pointers.
5441 (iterative_hash_expr): Don't hash types associated
5442 with conversions. Instead hash on the signedness of the
5443 toplevel object and the operand of the conversion.
5444 (dump_tree_statistics): Call ssanames_print_statistics
5445 and phinodes_print_statistics.
5446 (ephi_node_elt_check_failed, phi_node_elt_check_failed,
5447 add_var_to_bind_expr, build_empty_stmt, is_essa_node,
5448 needs_to_live_in_memory): New.
5449 (initializer_zerop): Handle VECTOR_CST. Don't check
5450 AGGREGATE_TYPE_P for CONSTRUCTOR.
5451 * tree.def (FILTER_EXPR, CASE_LABEL_EXPR, RESX_EXPR,
5452 SSA_NAME, EUSE_NODE, EKILL_NODE, EPHI_NODE, EEXIT_NODE,
5453 PHI_NODE, CATCH_EXPR, EH_FILTER_EXPR, STATEMENT_LIST): Define.
5454 (GOTO_SUBROUTINE_EXPR): Change type to 's'.
5455 (CALL_EXPR): Add another operand.
5456 (EXPR_WITH_FILE_LOCATION): Remove.
5457 (SWITCH_EXPR): Add another operand.
5458 * tree.h: Update various comments.
5459 (union tree_ann_d): Forward declare.
5460 (struct tree_common): Add fields nowarning_flag,
5461 invariant_flag and visited.
5462 (EREF_NODE_CHECK, EPHI_NODE_ELT_CHECK,
5463 PHI_NODE_ELT_CHECK, EREF_NODE_CHECK, PHI_NODE_ELT_CHECK,
5464 EPHI_NODE_ELT_CHECK, TREE_BLOCK,
5465 STRIP_USELESS_TYPE_CONVERSION, CALL_EXPR_TAILCALL,
5466 TREE_NO_WARNING, FORCED_LABEL, TREE_INVARIANT,
5467 IS_EMPTY_STMT, EXPR_LOCUS, SET_EXPR_LOCUS, EXPR_FILENAME,
5468 EXPR_LINENO, EXPR_LOCATION, EXPR_HAS_LOCATION,
5469 EXIT_EXPR_COND, SWITCH_COND, SWITCH_BODY, SWITCH_LABELS,
5470 CASE_LOW, CASE_HIGH, CASE_LABEL, BIND_EXPR_VARS,
5471 BIND_EXPR_BODY, BIND_EXPR_BLOCK, GOTO_DESTINATION,
5472 ASM_STRING, ASM_OUTPUTS, ASM_INPUTS, ASM_CLOBBERS,
5473 ASM_INPUT_P, ASM_VOLATILE_P, COND_EXPR_COND,
5474 COND_EXPR_THEN, COND_EXPR_ELSE, LABEL_EXPR_LABEL,
5475 CATCH_TYPES, CATCH_BODY, EH_FILTER_TYPES,
5476 EH_FILTER_FAILURE, EH_FILTER_MUST_NOT_THROW,
5477 SSA_NAME_VAR, SSA_NAME_DEF_STMT, SSA_NAME_VERSION,
5478 SSA_NAME_OCCURS_IN_ABNORMAL_PHI, SSA_NAME_IN_FREE_LIST,
5479 PHI_RESULT, PHI_REWRITTEN, PHI_NUM_ARGS,
5480 PHI_ARG_CAPACITY, PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF,
5481 EREF_PROCESSED, EREF_ID, EREF_NAME, EREF_STMT,
5482 EREF_RELOAD, EREF_SAVE, EREF_CLASS, EREF_INJURED,
5483 EREF_TEMP, EUSE_DEF, EUSE_PHIOP, EUSE_INSERTED,
5484 EUSE_LVAL, EPHI_NUM_ARGS, EPHI_ARG_CAPACITY,
5485 EPHI_ARG_ELT, EPHI_ARG_EDGE, EPHI_ARG_PRED, EPHI_ARG_DEF,
5486 EPHI_ARG_INJURED, EPHI_ARG_DELAYED_RENAME,
5487 EPHI_ARG_HAS_REAL_USE, EPHI_ARG_STOPS,
5488 EPHI_ARG_PROCESSED2, EPHI_IDENTITY, EPHI_IDENT_INJURED,
5489 EPHI_REP_OCCUR_KNOWN, EPHI_IDENTICAL_TO, EPHI_DOWNSAFE,
5490 EPHI_CANT_BE_AVAIL, EPHI_DEAD, EPHI_USES, EPHI_STOPS,
5491 TREE_VISITED, SSA_VAR_P, DECL_NUM_STMTS,
5492 DECL_HARD_REGISTER, DECL_PTA_ALIASVAR, LABEL_DECL_UID,
5493 DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL,
5494 STATEMENT_LIST_HEAD, STATEMENT_LIST_TAIL, TDF_RAW,
5495 TDF_DETAILS, TDF_STATS, TDF_BLOCKS, TDF_VOPS, TDF_LINENO,
5496 TDF_UID,): Define.
5497 (TREE_NO_UNUSED_WARNING, EXPR_WFL_EMIT_LINE_NOTE,
5498 EXPR_WFL_NODE, EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME,
5499 EXPR_WFL_LINECOL, EXPR_WFL_LINENO, EXPR_WFL_COLNO,
5500 EXPR_WFL_SET_LINECOL): Remove.
5501 (phi_node_elt_check_failed, ephi_node_elt_check_failed,
5502 make_phi_node, init_phinodes, fini_phinodes,
5503 release_phi_node, phinodes_print_statistics,
5504 init_ssanames, fini_ssanames, make_ssa_name,
5505 release_ssa_name, ssanames_print_statistics,
5506 annotate_with_file_line, build_empty_stmt,
5507 annotate_with_locus, expr_only, categorize_ctor_elements,
5508 count_type_elements, add_var_to_bind_expr, is_essa_node,
5509 expand_stack_alloc, expand_stack_save,
5510 expand_stack_restore, add_case_node, operand_equal_p,
5511 nondestructive_fold_unary_to_constant,
5512 nondestructive_fold_binary_to_constant,
5513 fold_read_from_constant_string, int_const_binop,
5514 strip_float_extensions, simplify_builtin, c_strlen,
5515 recompute_tree_invarant_for_addr_expr,
5516 needs_to_live_in_memory, make_vector,
5517 setjmp_vars_warning, update_alignment_for_field,
5518 expand_asm_expr, asm_op_is_mem_input,
5519 containing_blocks_have_cleanups_or_stack_level,
5520 create_artificial_label, gimplify_function_tree,
5521 get_name, unshare_expr, walk_tree,
5522 walk_tree_without_duplicates, in_gimple_form): Declare.
5523 (struct tree_exp): Add fields locus and block.
5524 (struct tree_ssa_name, struct edge_def, struct
5525 tree_phi_node, struct tree_eref_common, struct
5526 tree_euse_node, struct ephi_arg_d, struct tree_ephi_node,
5527 union alias_var_def, struct tree_statement_list_node,
5528 struct tree_statement_list, enum operand_equal_flag): Declare.
5529 (enum tree_node_structure_enum): Add TS_SSA_NAME,
5530 TS_PHI_NODE, TS_EPHI_NODE, TS_EUSE_NODE, TS_EREF_NODE,
5531 TS_STATEMENT_LIST.
5532 (union tree_node): Add fields ssa_name, phi, eref, ephi,
5533 euse and stmt_list.
5534 (function_cannot_inline_p, uninitialized_vars_warning,
5535 save_for_inline, output_inline_function, all_cases_count,
5536 check_for_full_enumeration_handling,
5537 declare_nonlocal_label): Remove.
5538 (enum tree_dump_index): Add TDI_none, TDI_tu,
5539 TDI_generic, TDI_nested, TDI_vcg, TDI_xml.
5540 * unroll.c (unroll_loop): Don't clear map->inline_target.
5541 * unwind-sjlj.c (uw_install_context): Make a proper static inline
5542 function.
5543 * value-prof.c (value_prof_hooks): New.
5544 (find_values_to_profile): Rename to rtl_find_values_to_profile.
5545 Move rtl-specific bits in from branch_prob.
5546 (value_profile_transformations): Rename to
5547 rtl_value_profile_transformations.
5548 (struct value_prof_hooks): New.
5549 (rtl_value_prof_hooks): New.
5550 (rtl_register_value_prof_hooks): New.
5551 (tree_find_values_to_profile): New stub.
5552 (tree_value_profile_transformations): New stub.
5553 (tree_value_prof_hooks): New stub.
5554 (tree_register_value_prof_hooks): New stub.
5555 (find_values_to_profile): New.
5556 (value_profile_transformations): New.
5557 * value-prof.h: Add multiple inclusion guard.
5558 (struct histogram_value): Change rtx fields to void *.
5559 (rtl_register_value_prof_hooks): New declaration.
5560 (tree_register_value_prof_hooks): New declaration.
5561 (find_values_to_profile): New declaration.
5562 (free_profiled_values): New declaration.
5563 (value_profile_transformations): New declaration.
5564 (struct profile_hooks): New declaration.
5565 (init_branch_prob): Declaration moved from rtl.h.
5566 (branch_prob): Declaration moved from rtl.h.
5567 (end_branch_prob): Declaration mooved from rtl.h.
5568 (tree_register_profile_hooks): New declaration.
5569 (rtl_register_profile_hooks): New declaration.
5570 (tree_profile_hooks): New declaration.
5571 (rtl_profile_hooks): New declaration.
5572 * varasm.c: Include tree-mudflap.h.
5573 (TRAMPOLINE_ALIGNMENT): Remove.
5574 (make_decl_rtl): Call mudflap_enqueue_decl.
5575 (assemble_static_space):
5576 (assemble_trampoline_template): Set and return
5577 TRAMPOLINE_ALIGNMENT.
5578 * varray.c (element): Add GENERIC_PTR_NOGC entry.
5579 Add entry for 'tree *'.
5580 Add entry for struct edge_def *.
5581 (varray_copy): New.
5582 * varray.h (enum varray_data_enum): Add
5583 VARRAY_DATA_GENERIC_NOGC, VARRAY_DATA_EDGE and
5584 VARRAY_DATA_TREE_PTR.
5585 (union varray_data_tag): Corresponding changes.
5586 (VARRAY_GENERIC_PTR_NOGC_INIT, VARRAY_EDGE_INIT,
5587 VARRAY_TREE_PTR_INIT, VARRAY_GENERIC_PTR_NOGC,
5588 VARRAY_EDGE, VARRAY_TREE_PTR,
5589 VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_EDGE,
5590 VARRAY_PUSH_TREE_PTR, VARRAY_TOP_GENERIC_PTR_NOGC,
5591 VARRAY_TOP_EDGE, VARRAY_TOP_TREE_PTR): Define.
5592
5593 * config/*/*: Various updates for changed macros, tree
5594 codes, etc. Check ChangeLog.tree-ssa.
5595
5596 * doc/cfg.texi: New file.
5597 * doc/tree-ssa.texi: New file.
5598 * doc/c-tree.texi: Document new codes.
5599 * doc/gccint.texi: Include new files.
5600 * doc/install.texi: Document new features.
5601 * doc/invoke.texi: Document new switches.
5602 * doc/passes.texi: Document new passes.
5603 * doc/rtl.texi: Update changed RTL codes.
5604 * doc/sourcebuild.texi: Update build instructions.
5605 * doc/standards.texi: Document Fortran changes.
5606 * doc/tm.texi: Update.
5607
5608 2004-05-12 Paolo Bonzini <bonzini@gnu.org>
5609
5610 Replace several arrays with a struct of arrays.
5611 * combine.c (struct reg_stat): New.
5612 (init_reg_last_arrays): Renamed to...
5613 (init_reg_last): ...this. Callers adjusted.
5614 (reg_stat): New.
5615 (combine_instructions): Allocate it and use it.
5616 (reg_last_death, reg_last_set, reg_last_set_value,
5617 reg_last_set_label, reg_last_set_table_tick,
5618 reg_last_set_invalid, reg_nonzero_bits, reg_sign_bit_copies,
5619 reg_last_set_mode, reg_last_set_nonzero_bits,
5620 reg_last_set_sign_bit_copies): Replace throughout
5621 with items of reg_stat.
5622
5623 2004-05-11 Kaz Kojima <kkojima@gcc.gnu.org>
5624
5625 PR optimization/15100
5626 * combine.c (distribute_notes): Don't create a dangling
5627 REG_LIBCALL/REG_RETVAL note.
5628
5629 2004-05-11 Aldy Hernandez <aldyh@redhat.com>
5630
5631 * config/rs6000/spe.md (spe_evneg): Rename to negv2si2.
5632
5633 * config/rs6000/rs6000.c (bdesc_1arg): Change spe_evneg to
5634 negv2si2.
5635
5636 2004-05-11 Aldy Hernandez <aldyh@redhat.com>
5637
5638 * doc/md.texi (Standard Names): Fix typo in vec_init description.
5639
5640 2004-05-11 Geoffrey Keating <geoffk@apple.com>
5641
5642 * doc/gty.texi (GTY Options): Clarify example.
5643
5644 2004-05-11 Fariborz Jahanian <fjahanian@apple.com>
5645
5646 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
5647 Add const qualifier to altivec vector type if one is needed.
5648
5649 2004-05-11 Paul Brook <paul@codesourcery.com>
5650
5651 * flags.h (flag_short_enums): Update comment.
5652 * opts.c (decode_options): Set flag_short_enums to 2.
5653 * toplev.c (flag_short_enums): Update comment.
5654 (process_options): Call default_short_enums target hook.
5655
5656 2004-05-11 Andrew Pinski <pinskia@gcc.gnu.org>
5657
5658 PR target/14063
5659 * config/rs6000/altivec.md (altivec_dssall):
5660 Change to unspec_volatile.
5661 (altivec_dss): Likewise.
5662
5663 2004-05-10 Aldy Hernandez <aldyh@redhat.com>
5664
5665 * config/rs6000/altivec.md ("one_cmplv16qi2"): Change vnot to
5666 vnor.
5667 ("one_cmplv8hi2"): Same.
5668 ("one_cmplv4si2"): Same.
5669
5670 2004-05-10 Kaz Kojima <kkojima@gcc.gnu.org>
5671
5672 PR target/15130
5673 * config/sh/sh-protos.h (sh_expand_epilogue): Change prototype.
5674 * config/sh/sh.c (output_stack_adjust): Take the sibcall epilogue
5675 into account. Compute the correct number of general registers
5676 for the return value. Generate a special push/pop sequence when
5677 failing to get a temporary register for non SHmedia epilogue.
5678 (sh_expand_epilogue): Add an argument to show whether it's for
5679 sibcall or not. Set the 3rd argument of output_stack_adjust to
5680 -1 if needed.
5681 (sh_need_epilogue): Call sh_expand_epilogue with 0.
5682 * config/sh/sh.md (sibcall_epilogue): Call sh_expand_epilogue
5683 with 1.
5684 (epilogue): Call sh_expand_epilogue with 0.
5685
5686 2004-05-10 Andrew Pinski <pinskia@physics.uc.edu>
5687
5688 * gcse.c (eliminate_partially_redundant_loads): Instead of returning early,
5689 goto a cleanup label. After the cleanup, free the allocated memory.
5690
5691 2004-05-10 Ziemowit Laski <zlaski@apple.com>
5692
5693 * config/rs6000/altivec.h (vec_sld): Add overloads for
5694 argument/return types of 'vector bool int', 'vector bool short'
5695 and 'vector bool char'.
5696
5697 2004-05-10 Zack Weinberg <zack@codesourcery.com>
5698
5699 * c-decl.c (store_parm_decls_newstyle): Correct test for a
5700 nested function.
5701
5702 2004-05-10 Richard Sandiford <rsandifo@redhat.com>
5703
5704 * read-rtl.c (read_rtx): Allow 's' and 'T' strings to be omitted,
5705 treating missing ones as "".
5706 * config/mips/mips.md: Remove constraints from match_operands and
5707 match_scratches if they appear in define_expands (except reload*),
5708 define_peephole2s, define_splits or attribute specifications.
5709 * config/mips/7000.md, config/mips/sb1.md: Remove match_operand
5710 constraint strings.
5711
5712 2004-05-10 Alan Modra <amodra@bigpond.net.au>
5713
5714 * config/rs6000/rs6000.c (function_arg_boundary): Always align
5715 AltiVec vectors.
5716 (function_arg_advance): Pass TARGET_32BIT -mabi=no-altivec AltiVec
5717 vectors by refererence. Align the same for TARGET_64BIT to a 16
5718 byte boundary. Remove useless code. Add function comment.
5719 (function_arg): Similarly. Move gpr rs6000_mixed_function_arg
5720 call to where it belongs.
5721 (function_arg_partial_nregs): Return true for all TARGET_32BIT
5722 -mabi=no-altivec AltiVec vectors. Fix debug output.
5723 (rs6000_va_arg): Adjust for AltiVec change.
5724
5725 2004-05-10 Paul Brook <paul@codesourcery.com>
5726
5727 * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
5728 * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
5729 (TARGET_DOUBLEWORD_ALIGN): Use it.
5730 (WCHAR_TYPE): Define.
5731 (WCHAR_SIZE_TYPE): Define.
5732 (SIZE_TYPE): Define.
5733
5734 2004-05-10 Alan Modra <amodra@bigpond.net.au>
5735
5736 * config/rs6000/rs6000.c (function_arg_boundary): Align for ABI_V4
5737 when size is 8 bytes.
5738 (function_arg_advance): Account for stack space used by AltiVec
5739 args when -mabi=altivec. Simplify alignment calculations. For
5740 ABI_V4, pass AltiVec vectors by reference when -mabi=no-altivec.
5741 (function_arg): Similarly.
5742 (function_arg_pass_by_reference): True for ABI_V4 AltiVec when
5743 not AltiVec ABI.
5744 (rs6000_va_arg): Correct fp arg test. Adjust for AltiVec change.
5745 Correct alignment, and align before testing reg count. Remove
5746 TREE_THIS_VOLATILE from reg. Don't emit unused labels.
5747 (rs6000_complex_function_value): Check TARGET_HARD_FLOAT and
5748 TARGET_FPRS here..
5749 (rs6000_function_value): .. not here before call.
5750
5751 2004-05-09 Aldy Hernandez <aldyh@redhat.com>
5752
5753 * config/rs6000/spe.md ("tstsflt_gpr"): Fix typo in unspec.
5754
5755 2004-05-09 Zack Weinberg <zack@codesourcery.com>
5756
5757 PR 15007
5758 * c-decl.c (current_file_decl): Rename to all_translation_units,
5759 adjust comment.
5760 (pop_scope): If popping file_scope, construct a
5761 TRANSLATION_UNIT_DECL and make it the context of all the
5762 symbols in the scope.
5763 (push_file_scope): Don't construct a TRANSLATION_UNIT_DECL here.
5764 (pushdecl): Clarify comment. Do not set DECL_CONTEXT of
5765 anything to current_file_decl.
5766 (pushdecl_top_level): Likewise.
5767 (store_parm_decls_newstyle): Adjust check for nested function.
5768 (c_write_global_declarations): Update for renamed variable.
5769
5770 2004-05-09 Aldy Hernandez <aldyh@redhat.com>
5771
5772 * config/rs6000/rs6000-protos.h
5773 (rs6000_conditional_register_usage): Protoize.
5774
5775 * config/rs6000/rs6000.c (rs6000_conditional_register_usage): New.
5776
5777 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Call
5778 function.
5779
5780 2004-05-08 Roger Sayle <roger@eyesopen.com>
5781
5782 * fold-const.c (fold_div_compare): New function to optimize X/C1 op C2
5783 where op is a comparison operator and C1 and C2 are integer constants
5784 into a range check.
5785 (fold): Call fold_div_compare.
5786
5787 2004-05-08 Eric Botcazou <ebotcazou@libertysurf.fr>
5788
5789 * doc/install.texi (sparc-sun-solaris2*): Document bootstrap
5790 problems with earlier versions of the GNU compiler.
5791
5792 2004-05-07 Aldy Hernandez <aldyh@redhat.com>
5793
5794 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_mode_ok_p):
5795 Declare.
5796
5797 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok_p): New.
5798 (rs6000_hard_regno_mode_ok): New.
5799 (rs6000_init_hard_regno_mode_ok): New.
5800 (rs6000_override_options): Call rs6000_init_hard_regno_mode_ok.
5801
5802 * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Use precomputed
5803 result.
5804
5805 2004-05-07 Ziemowit Laski <zlaski@apple.com>
5806
5807 * config/rs6000/altivec.h (vector, pixel, bool): Do not
5808 define as macros #ifdef __APPLE_ALTIVEC__.
5809
5810 2004-05-07 Fariborz Jahanian <fjahanian@apple.com>
5811
5812 * config/rs6000/rs6000.c (rs6000_mixed_function_arg):
5813 Generate appropriate parallels for vector arguments
5814 passed to vararg functions. (function_arg): make the call
5815 to rs6000_mixed_function_arg for vector args as needed.
5816
5817 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
5818
5819 * config/mips/mips.c (mips_va_arg): Fix calculation of osize for
5820 EABI_FLOAT_VARARGS_P.
5821
5822 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
5823
5824 * config/mips/mips.h (ISA_HAS_BRANCHLIKELY): Remove TARGET_MIPS5500.
5825 * config/mips/mips.c (override_options): Disable branch likely
5826 instructions if TUNE_MIPS5500.
5827
5828 2004-05-07 Richard Sandiford <rsandifo@redhat.com>
5829
5830 * config/mips/mips.c (override_options): Allow the hi and lo registers
5831 to store any integral mode, not just MODE_INTs.
5832
5833 2004-05-07 Paul Brook <paul@codesourcery.com>
5834
5835 * config/arm/arm.c (arm_promote_prototypes): Use TARGET_AAPCS_BASED.
5836 * config/arm/arm.h (TARGET_AAPCS_BASED): Define.
5837 (TARGET_DOUBLEWORD_ALIGN): Use it.
5838 (WCHAR_TYPE): Define.
5839 (WCHAR_SIZE_TYPE): Define.
5840 (SIZE_TYPE): Define.
5841
5842 2004-05-07 Uros Bizjak <uros@kss-loka.si>
5843
5844 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Use
5845 testb $4, %ah insn instead of sahf insn if !TARGET_USE_SAHF.
5846
5847 2004-05-07 Andrew Pinski <pinskia@physics.uc.edu>
5848
5849 * loop-doloop.c (doloop_valid_p): Make sure that body
5850 gets freed.
5851
5852 2004-05-07 Eric Botcazou <ebotcazou@act-europe.fr>
5853
5854 * config/sparc/sparc-protos.h (sparc_skip_caller_unimp): New
5855 declaration.
5856 * config/sparc/sparc.c (SKIP_CALLERS_UNIMP_P): Delete.
5857 (sparc_skip_caller_unimp): New global variable.
5858 (sparc_function_epilogue): Set 'sparc_skip_caller_unimp'.
5859 Use it instead of SKIP_CALLERS_UNIMP_P.
5860 * config/sparc/sparc.md (call expander): Add sanity check.
5861 (call_address_struct_value_sp32): Re-sync with expander.
5862 (call_symbolic_struct_value_sp32): Likewise.
5863 (return peepholes): Use 'sparc_skip_caller_unimp' instead
5864 of custom predicate.
5865
5866 2004-05-07 Eric Botcazou <ebotcazou@libertysurf.fr>
5867
5868 PR c++/14962
5869 * c-pragma.c (handle_pragma_redefine_extname): Only change
5870 the assembler name of FUNCTION_DECLs and VAR_DECLs.
5871
5872 2004-05-07 Uros Bizjak <uros@kss-loka.si>
5873
5874 * optabs.h (enum optab_index): Add new OTI_log1p.
5875 (log1p_optab): Define corresponding macro.
5876 * optabs.c (init_optabs): Initialize log1p_optab.
5877 * genopinit.c (optabs): Implement log1p_optab using log1p?f2
5878 patterns.
5879 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG1P{,F,L}
5880 using log1p_optab.
5881 (expand_builtin): Expand BUILT_IN_LOG1P{,F,L} using
5882 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
5883
5884 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2XP1.
5885
5886 * config/i386/i386.c (ix86_emit_i387_log1p): New function.
5887 * config/i386/i386-protos.h (ix86_emit_i387_log1p):
5888 Prototype here.
5889 * config/i386/i386.md (UNSPEC_FYL2XP1): New unspec to represent
5890 x87's fyl2xp1 instruction.
5891 (*fyl2x_xf3): Rename insn definition to fyl2x_xf3.
5892 (fyl2xp1_xf3): New pattern to implement fyl2xp1 x87 instruction.
5893 (log1psf2, log1pdf2, log1pxf2): New expanders to implement log1pf,
5894 log1p and log1pl built-ins as inline x87 intrinsics.
5895
5896 2004-05-07 Loren James Rittle <ljrittle@acm.org>
5897
5898 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Proper redefinition.
5899 * config/arm/freebsd.h: Likewise.
5900 * config/ia64/freebsd.h: Likewise.
5901 * config/sparc/freebsd.h: Likewise.
5902
5903 2004-05-07 Hans-Peter Nilsson <hp@axis.com>
5904
5905 PR optimization/15296
5906 * reorg.c (fill_simple_delay_slots): Use next_real_insn when
5907 getting last consecutive label at a branch.
5908 (relax_delay_slots): Similar, near top of loop.
5909
5910 2004-05-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5911
5912 PR target/15202
5913 * pa.md (movdi, movsi, movhi, movqi): Support move from shift amount
5914 register to general register.
5915
5916 2004-05-07 Alan Modra <amodra@bigpond.net.au>
5917
5918 * config/rs6000/rs6000.h (STACK_BOUNDARY): Use 128 bit for either
5919 TARGET_ALTIVEC or TARGET_ALTIVEC_ABI.
5920 * config/rs6000/sysv4.h (ABI_STACK_BOUNDARY): Likewise.
5921 (STACK_BOUNDARY): Delete.
5922
5923 2004-05-06 Stuart Hastings <stuart@apple.com>
5924
5925 * gcc/doc/invoke.texi: Restore -fgcse-after-reload doc from 1.421,
5926 mistakenly clobbered by 1.423.
5927
5928 2004-05-06 Richard Sandiford <rsandifo@redhat.com>
5929
5930 * doc/invoke.texi: Document -mvr4130-align.
5931 * config/mips/mips.h (MASK_VR4130_ALIGN, TARGET_VR4130_ALIGN)
5932 (TUNE_MIPS4120, TUNE_MIPS4130): New macros.
5933 (TUNE_MACC_CHAINS): Include TUNE_MIPS4120 and TUNE_MIPS4130.
5934 (TARGET_SWITCHES): Add -mvr4130-align and -mno-vr4130-align.
5935 * config/mips/mips.md: Include sched-int.h.
5936 (USEFUL_INSN_P, SEQ_BEGIN, SEQ_END, FOR_EACH_SUBINSN): New macros.
5937 (mips_rtx_costs): Set integer multiplication costs for TUNE_MIPS4130.
5938 (override_options): Enable -mvr4130-align at -O3 and above.
5939 (mips_sim_insn): New variable.
5940 (mips_sim): New structure.
5941 (mips_sim_reset, mips_sim_init, mips_sim_next_cycle, mips_sim_wait_reg)
5942 (mips_sim_wait_regs_2, mips_sim_wait_regs_1, mips_sim_wait_regs)
5943 (mips_sim_wait_units, mips_sim_wait_insn, mips_sim_record_set)
5944 (mips_sim_issue_insn, mips_sim_issue_nop, mips_sim_finish_insn)
5945 (vr4130_avoid_branch_rt_conflict, vr4130_align_insns): New functions.
5946 (mips_reorg): Call vr4130_align_insns.
5947 (vr4130_last_insn): New variable.
5948 (vr4130_true_reg_dependence_p_1, vr4130_true_reg_dependence_p)
5949 (vr4130_swap_insns_p, vr4130_reorder): New functions.
5950 (mips_sched_reorder, mips_variable_issue): Hook in vr4130 code.
5951 (mips_issue_rate): Return 2 for PROCESSOR_R4130.
5952 (mips_use_dfa_pipeline_interface): Return true for the same.
5953 * config/mips/4130.md: New file.
5954 * config/mips/mips.md: Include it. Add a peephole2 to convert
5955 "mult;mflo" into "mtlo;macc".
5956 (*macc, *umul_acc_di, *smul_acc_di): Use $1 rather than $0 as the
5957 target of maccs.
5958 (*msac_using_macc): New pattern.
5959
5960 2004-05-06 Richard Sandiford <rsandifo@redhat.com>
5961
5962 * config/mips/5500.md (ir_vr55_store): Set latency to 0.
5963 (ir_vr55_hilo): Split into...
5964 (ir_vr55_mfhilo, ir_vr55_mthilo): ...these new reservations.
5965 (ir_vr55_imul_si, ir_vr55_imadd): Change latency to 5.
5966 (ir_vr55_imul_di): Change latency to 9. Reserve vr55_mac for 4 cycles.
5967 Add various multiplication bypasses.
5968 * config/mips/mips.c (mips_rtx_costs): Adjust VR5500 costs for integer
5969 multiplication.
5970
5971 2004-05-06 Uros Bizjak <uros@kss-loka.si>
5972
5973 * config/i386/i386.md (*fscalexf4): Correct insn "mode"
5974 attribute to "XF".
5975
5976 2004-05-05 Uros Bizjak <uros@kss-loka.si>
5977
5978 * optabs.h (enum optab_index): Add new OTI_fmod and OTI_drem.
5979 (fmod_optab, drem_optab): Define corresponding macros.
5980 * optabs.c (init_optabs): Initialize fmod_optab and drem_optab.
5981 * genopinit.c (optabs): Implement fmod_optab and drem_optab
5982 using fmod?f3 and drem?f3 patterns.
5983 * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_FMOD{,F,L}
5984 using fmod_optab and BUILT_IN_DREM{,F,L} using drem_optab.
5985 (expand_builtin): Expand BUILT_IN_FMOD{,F,L} and
5986 BUILT_IN_DREM{,F,L} using expand_builtin_mathfn_2 if
5987 flag_unsafe_math_optimizations is set.
5988
5989 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FPREM_F,
5990 UNSPEC_FPREM_U, UNSPEC_FPREM1_F and UNSPEC_FPREM1_U.
5991
5992 * config/i386/i386.c (ix86_emit_fp_unordered_jump): New function.
5993 * config/i386/i386-protos.h (ix86_emit_fp_unordered_jump):
5994 Prototype here.
5995 * config/i386/i386.md (UNSPEC_FPREM_F, UNSPEC_FPREM_U,
5996 UNSPEC_FPREM1_F, UNSPEC_FPREM1_U): New unspecs to represent x87's
5997 fprem and fprem1 instructions.
5998 (*x86_fnstsw_1): Change input parameter to (reg:CCFP 18).
5999 Rename insn definition to x86_fnstsw_1.
6000 (fpremxf4, fprem1xf4): New patterns to implement fprem and fprem1
6001 x87 instructions.
6002 (fmodsf3, fmoddf3, fmodxf3): New expanders to implement fmodf, fmod
6003 and fmodl built-ins as inline x87 intrinsics.
6004 (dremsf3, dremdf3, dremxf3): New expanders to implement dremf, drem
6005 and dreml built-ins as inline x87 intrinsics.
6006
6007 2004-05-05 Roger Sayle <roger@eyesopen.com>
6008
6009 * reload1.c (inherit_piecemeal_p): Mark parameters potentially unused.
6010
6011 2004-05-05 Ian Lance Taylor <ian@wasabisystems.com>
6012
6013 PR driver/9822
6014 * doc/invoke.texi (Spec Files): Remove documentation of %c.
6015
6016 2004-05-05 Chris Demetriou <cgd@broadcom.com>
6017
6018 * config/mips/mips.md: Update the msub define_split for new mflo/mfhi
6019 representation.
6020
6021 2004-05-06 Paul Brook <paul@codesourcery.com>
6022
6023 * config/arm/arm-protots.h (vfp_mem_operand): Rename ...
6024 (arm_coproc_mem_operand): ... To this.
6025 * config/arm/arm.c (arm_legitimate_address_p): Allow ldrd modes.
6026 (arm_legitimate_index_p): Ditto.
6027 (vfp_mem_operand): Rename ...
6028 (arm_coproc_mem_operand): ... To this. Handle writeback modes.
6029 (vfp_secondary_reload_class): Use it.
6030 (output_move_double): Use doubleword load/store instructions.
6031 (arm_hard_regno_mode_ok): Only allow even reg pairs for ldrd.
6032 * config/arm/arm.h (TARGET_LDRD): Define.
6033 (EXTRA_CONSTRAINT_STR_ARM): Add 'Uy'.
6034 * config/gcc/arm/arm.md (arm_movdi): Allow all valid memory operands.
6035 New splitter for invalid doubleword loads.
6036 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Use Uy constraint.
6037 * config/arm/vfp.md (arm_movdi_vfp): Allow all valid memory operands.
6038 * doc/md.texi: Document Uy constraint.
6039
6040 2004-05-05 Jan Hubicka <jh@suse.cz>
6041
6042 PR opt/14980
6043 * cgraphunit.c (cgraph_remove_unreachable_nodes): Deal properly with
6044 inline clones.
6045
6046 2004-05-05 H.J. Lu <hongjiu.lu@intel.com>
6047
6048 PR target/15290
6049 * config/i386/i386.c (ix86_split_to_parts): Use real_to_target
6050 instead of REAL_VALUE_TO_TARGET_LONG_DOUBLE.
6051
6052 2004-05-05 Mike Stump <mrs@apple.com>
6053
6054 * config/darwin-c.c (add_framework): Copy the directory name as it
6055 can be freed later. Also, ensure we always allocate enough room
6056 for the cached framework information.
6057 (find_subframework_header): Keep track of the directory where the
6058 subframework header was found.
6059 (framework_construct_pathname): Speed up by not trying to re-add a
6060 framework.
6061 * cppfiles.c (search_path_exhausted): Arrange for the missing
6062 header callback to be able to set the directory where the header
6063 was found.
6064 (cpp_get_dir): Add.
6065 * cpplib.h (missing_header_cb): Add a parameter.
6066 (cpp_get_dir): Add.
6067
6068 2004-05-03 Mike Stump <mrs@apple.com>
6069
6070 * doc/invoke.texi (Directory Options): Document -iquote.
6071 * doc/cpp.texi: Likewise.
6072 * doc/cppopts.texi: Likewise.
6073 * c-opts.c (c_common_missing_argument): Add -iquote processing.
6074 (c_common_handle_option): Likewise.
6075 * c.opt (iquote): Add.
6076 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -iquote.
6077 * c-incpath.c (merge_include_chains): Update comment to use -iquote.
6078
6079 * c-opts.c (case OPT_I): Deprecate -I- support.
6080 * doc/invoke.texi: Likewise.
6081 * doc/cpp.texi: Likewise.
6082 * doc/cppopts.texi: Likewise.
6083
6084 2004-05-05 Steven Bosscher <stevenb@suse.de>
6085
6086 * basic-block.h (free_basic_block_vars): Update prototype.
6087 * flow.c (free_basic_block_vars): Remove the keep_head_end_p
6088 argument.
6089 (life_analysis): Update call.
6090 * ifcvt.c (if_convert): Likewise.
6091 * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
6092 * passes.c (rest_of_handle_final): Likewise.
6093 (rest_of_compilation): Likewise.
6094 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
6095
6096 * emit-rtl.c (next_real_insn): Use INSN_P.
6097 (prev_real_insn): Likewise.
6098
6099 2004-05-05 Eric Christopher <echristo@redhat.com>
6100
6101 * config/mips/mips.md: Update the madd define_split for new mflo/mfhi
6102 representation.
6103
6104 2004-05-05 Paolo Bonzini <bonzini@gnu.org>
6105
6106 * config/rs6000/rs6000.c (build_opaque_vector_type):
6107 New function.
6108 (rs6000_init_builtins): Use it.
6109
6110 2004-05-04 Bernard Giroud <bgiroud2@free.fr>
6111
6112 * gcc/gcc/vmsdbgout.c (vms_func_node, vms_func_ref): New.
6113 (func_table): Change type from char ** to vms_func_ref.
6114 (write_rtnbeg): Update to reflect func_table change. Use
6115 fde->funcdef_number instead of rtnnum in output.
6116 (write_rtnend, vmxdbgout_begin_function, vmsdbgout_init): Likewise.
6117
6118 2004-05-04 Paolo Bonzini <bonzini@gnu.org>
6119 Richard Henderson <rth@redhat.com>
6120
6121 PR target/14899
6122
6123 * c-common.c (vector_types_convertible_p): New function.
6124 * c-typeck.c (comptypes): Recurse on vector types.
6125 (convert_for_assignment): Use vector_types_convertible_p.
6126 (digest_init): Use vector_types_convertible_p to check
6127 validness of constant vector initializers; otherwise treat
6128 them as scalars.
6129 * tree.c (make_or_reuse_type): New.
6130 (build_common_tree_nodes): Use it.
6131 * cp/call.c (standard_conversion): Likewise.
6132 * cp/typeck.c (comptypes): Recurse on vector types.
6133 (convert_for_assignment): Use vector_types_convertible_p.
6134
6135 2004-05-04 Chris Demetriou <cgd@broadcom.com>
6136
6137 * config/mips/mips.c (override_options): Default to no
6138 generation of branch-likely operations when tuning for
6139 CPUs where they tend to have a negative performance impact
6140 (e.g., SB-1).
6141
6142 2004-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6143
6144 * expr.c (store_constructor_field): Don't call store_constructor
6145 if bitsize is not a multiple of a byte.
6146
6147 2004-05-04 Richard Sandiford <rsandifo@redhat.com>
6148
6149 * reload1.c (inherit_piecemeal_p): New function.
6150 (emit_reload_insns): When reloading a group of hard registers, use
6151 inherit_piecemeal_p to decide whether the values of individual hard
6152 registers can be inherited.
6153
6154 2004-05-04 H.J. Lu <hongjiu.lu@intel.com>
6155
6156 * config/ia64/t-ia64 (LIB2ADDEH): Remove gthr-gnat.c.
6157 * config/s390/t-tpf (LIB2ADDEHDEP): Likewise.
6158 * config/t-linux (LIB2ADDEHDEP): Likewise.
6159
6160 2004-05-04 Paul Brook <paul@codesourcery.com>
6161
6162 * config/arm/crti.asm: Push an even number of registers.
6163 * config/arm/crtn.asm: And restore them. Load via sp.
6164
6165 2004-05-04 Paolo Bonzini <bonzini@gnu.org>
6166
6167 * ggc-zone.c (ggc_alloc_zone_1): Add MEM_STAT_DECL parameter.
6168 Collect overhead information.
6169 (ggc_alloc_stat): New name of ggc_alloc. Add MEM_STAT_DECL
6170 parameter and pass it through.
6171 (ggc_alloc_typed_stat): New name of ggc_alloc_typed. Add
6172 MEM_STAT_DECL parameter and pass it through.
6173 (ggc_alloc_zone_stat): New name of ggc_alloc_zone. Add
6174 MEM_STAT_DECL parameter and pass it through.
6175
6176 2004-05-03 Aldy Hernandez <aldyh@redhat.com>
6177
6178 * config/rs6000/rs6000-protos.h: Protoize rs6000_hard_regno_nregs.
6179
6180 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): New.
6181
6182 * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Call
6183 rs6000_hard_regno_nregs.
6184
6185 2004-05-03 Eric Christopher <echristo@redhat.com>
6186
6187 * config/s390/s390.c (s390_emit_prologue): Call unspec tpf
6188 prologue insn instead of setting up call.
6189 (s390_emit_epilogue): Ditto.
6190 * config/s390/s390.md (prologue_tpf, epilogue_tpf): New patterns.
6191 (define_constants): Add numbers for above patterns.
6192
6193 2004-05-03 Eric Christopher <echristo@redhat.com>
6194
6195 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Move body...
6196 * config/s390/s390.c (s390_conditional_register_usage): ...here.
6197 * config/s390/s390-protos.h: Prototype.
6198
6199 2004-05-03 Joe Buck <jbuck@welsh-buck.org>
6200
6201 * cppfiles.c (pchf_adder): Eliminate use of |= in d->have_once_only
6202 assignment.
6203
6204 2004-05-03 Eric Christopher <echristo@redhat.com>
6205
6206 * config/mips/mips.md: Fix branch length attribute definition.
6207
6208 2004-05-03 Aldy Hernandez <aldyh@redhat.com>
6209
6210 * config.gcc: Remove --enable-altivec support.
6211
6212 * config/rs6000/altivec-defs.h: Remove.
6213
6214 2004-05-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6215
6216 * fixinc/inclhack.def (svr4_profil): Don't apply on IRIX 5/6.
6217 * fixinc/fixincl.x: Regenerate.
6218
6219 2004-05-03 Uros Bizjak <uros@kss-loka.si>
6220
6221 * config/i386/i386.md (*fyl2x_sfxf3, *fyl2x_dfxf3): Remove insn
6222 definition.
6223 (log?f2, log10?f2, log2?f2): Reimplement expanders with
6224 float_truncate insn.
6225 (*fxtractsf3, *fxtractdf3): Remove insn definition.
6226 (logb?f2): Reimplement expanders with float_truncate insn.
6227
6228 2004-05-03 Graham Stott <graham.stott@btinternet.com>
6229
6230 PR 14718
6231 * dwarf2out.c (dwarf2out_imported_module_or_decl): Use
6232 force_type_die for CONST_DECL.
6233
6234 2004-05-03 Eric Botcazou <ebotcazou@libertysurf.fr>
6235 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6236
6237 * config.gcc (sparc64-*-solaris2*, sparcv9-*-solaris2*): Add
6238 tm-dwarf2.h to tm_file.
6239 (sparc-*-solaris2*): Add tm-dwarf2.h to tm_file for Solaris 7+.
6240 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Delete.
6241 (ASM_DEBUG_SPEC): Delete.
6242
6243 2004-05-03 Uros Bizjak <uros@kss-loka.si>
6244
6245 * optabs.h (enum optab_index): Add new OTI_expm1.
6246 (expm1_optab): Define corresponding macro.
6247 * optabs.c (init_optabs): Initialize expm1_optab.
6248 * genopinit.c (optabs): Implement expm1_optab using expm1?f2
6249 patterns.
6250 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXPM1{,F,L}
6251 using expm1_optab.
6252 (expand_builtin): Expand BUILT_IN_EXPM1{,F,L} using
6253 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
6254
6255 * config/i386/i386.md (expm1df2, expm1sf2, expm1xf2): New expanders
6256 to implement expm1, expm1f and expm1l built-ins as inline x87
6257 intrinsics.
6258
6259 2004-05-02 Alexandre Oliva <aoliva@redhat.com>
6260
6261 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
6262 * config/frv/frv.md (*return_true, *return_false): New patterns.
6263
6264 2004-05-02 Kazu Hirata <kazu@cs.umass.edu>
6265
6266 * rtl.h (PHI_NODE_P): Remove.
6267
6268 2004-05-02 Eric Botcazou <ebotcazou@act-europe.fr>
6269
6270 PR middle-end/14988
6271 * function.c (assign_stack_local_1): Use BITS_PER_UNIT alignment
6272 when passed -2 as 'align'.
6273 (put_var_into_stack): Use 'bool' as the type for the three local
6274 predicates. Adjust calls to put_reg_into_stack.
6275 When passed a CONCAT, instruct put_reg_into_stack to use
6276 a consecutive stack slot for the second part.
6277 (put_reg_into_stack): Remove 'promoted_mode' parameter, add
6278 'consecutive_p' parameter. Turn the three predicates into 'bool'
6279 parameters. Retrieve the register mode from 'reg'.
6280 When consecutive_p is true, instruct assign_stack_local_1 to use
6281 BITS_PER_UNIT alignment.
6282 (put_addressof_into_stack): Use 'bool' as the type for the two
6283 local predicates. Adjust call to put_reg_into_stack.
6284
6285 2004-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6286
6287 * fold-const.c (fold_convert_const, fold): Add missing
6288 FIX_ROUND_EXPR case.
6289
6290 2004-05-02 Alexandre Oliva <aoliva@redhat.com>
6291
6292 * configure.ac (FLEX, BISON): Only use tools from the build tree
6293 if build equals host.
6294 * configure: Rebuilt.
6295
6296 * config/frv/frv-protos.h (frv_expand_epilogue,
6297 frv_expand_fdpic_call): Add bool argument.
6298 * config/frv/frv.c (frv_function_ok_for_sibcall): New.
6299 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to it.
6300 (frv_expand_epilogue): Use new argument to decide whether to emit
6301 return instruction or copy the return address to LR.
6302 (frv_expand_fdpic_call): Inline PLT entry when emitting direct
6303 sibcalls.
6304 (sibcall_operand): New.
6305 * config/frv/frv.h (PREDICATE_CODES): call_operand doesn't match
6306 PLUS nor LABEL_REF. Add sibcall_operand.
6307 * config/frv/frv.md (call, call_value): Pass false to
6308 frv_expand_fdpic_call.
6309 (call_fdpicdi, call_value_fdpicdi): Insert %i0 in calll.
6310 (sibcall, sibcall_internal, sibcall_fdpicdi, sibcall_value,
6311 sibcall_value_internal, sibcall_value_fdpicdi): New.
6312 (return_unsigned_true, return_unsigned_false): New.
6313 (epilogue): Adjust call to frv_expand_epilogue.
6314 (sibcall_epilogue): New.
6315
6316 * config/frv/frv.h (ASM_SPEC): Pass -mno-fdpic as -mnopic.
6317 (CPP_SPEC, CPP_SIMPLE_SPEC): Undefine __FRV_ACC__ and __FRV_FPR__
6318 before redefining them.
6319
6320 2004-05-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6321
6322 * builtins.c (fold_fixed_mathfn): New function.
6323 (fold_builtin_lround, fold_builtin): Use it.
6324
6325 2004-05-01 Jakub Jelinek <jakub@redhat.com>
6326
6327 * config/sparc/linux64.h (TARGET_DEFAULT): Make 64-bit by default
6328 also for TARGET_CPU_DEFAULT == TARGET_CPU_ultrasparc3.
6329
6330 2004-05-01 Kazu Hirata <kazu@cs.umass.edu>
6331
6332 * config/cris/cris.h: Revert my "fix comment typos" patch.
6333
6334 2004-05-01 Richard Sandiford <rsandifo@redhat.com>
6335
6336 * config/mips/mips.h (TUNE_MACC_CHAINS): Fix comment.
6337
6338 2004-05-01 Falk Hueffner <falk@debian.org>
6339
6340 * config/alpha/alpha.md (builtin_insbl, builtin_inswl,
6341 builtin_insll): Disallow 0 as first input operand.
6342
6343 2004-05-01 Falk Hueffner <falk@debian.org>
6344
6345 * config/alpha/alpha.c (alpha_rtx_costs): Fix shiftadd costs.
6346
6347 2004-05-01 Ulrich Weigand <uweigand@de.ibm.com>
6348
6349 PR middle-end/15054
6350 * expr.c (expand_expr_real): Do not call preserve_temp_slots
6351 on a TARGET_EXPR temp.
6352 * function.c (assign_stack_temp_for_type): Set 'keep' flag for
6353 TARGET_EXPR temp slots.
6354
6355 2004-05-01 Paolo Bonzini <bonzini@gnu.org>
6356
6357 * simplify-rtx.c (simplify_ternary_operation): When
6358 converting an IF_THEN_ELSE to a relational op, return
6359 correct mode.
6360
6361 2004-04-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6362
6363 * builtins.c (fold_builtin_round): Fix comment typo.
6364 (fold_builtin_lround): New function.
6365 (fold_builtin): Use it.
6366
6367 2004-04-20 Andrew Pinski <pinskia@physics.uc.edu>
6368
6369 PR target/11608
6370 * config/sh/elf.h (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Update and make it
6371 more like the one in config/dbxelf.h.
6372
6373 2004-04-30 Zack Weinberg <zack@codesourcery.com>
6374
6375 * tree.h (SET_ARRAY_OR_VECTOR_CHECK): Rename to SET_OR_ARRAY_CHECK
6376 and adjust definition accordingly.
6377 (TYPE_DOMAIN): Allow only SET_TYPE and ARRAY_TYPE.
6378 (TYPE_DEBUG_REPRESENTATION_TYPE): Allow only VECTOR_TYPE.
6379 * expr.c (store_constructor): Do not access TYPE_DOMAIN of a
6380 VECTOR_TYPE.
6381
6382 2004-04-30 Jason Merrill <jason@redhat.com>
6383
6384 PR c++/14587
6385 * config/i386/winnt.c (associated_type): Look for attributes on
6386 the TYPE_MAIN_VARIANT of *this.
6387 * attribs.c (decl_attributes): If ATTR_FLAG_TYPE_IN_PLACE, also
6388 apply the attributes to the variants.
6389
6390 2004-04-30 Paul Brook <paul@codesourcery.com>
6391
6392 * config.gcc: Simplify arm --with-{cpu,tune} test.
6393 * config/arm/arm-cores.def: Document whitespace restrictions.
6394
6395 2004-04-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6396
6397 PR other/1963
6398 * config/alpha/osf.h (SWITCHES_NEED_SPACES): Define.
6399
6400 2004-04-30 Brian Ford <ford@vss.fsi.com>
6401 DJ Delorie <dj@redhat.com>
6402
6403 * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
6404 (DWARF2_DEBUGGING_INFO): Define to enable.
6405 (DBX_REGISTER_NUMBER): Define to use the svr4 register map for
6406 DWARF2.
6407 * configure.ac (Target-specific assembler checks)
6408 <i[34567]86-*-[cygwin*|pe|mingw32*]>: New test for .secrel32
6409 relocs.
6410 * configure: Regenerate.
6411 * config.in: Likewise.
6412
6413 * config/i386/cygming.h [HAVE_GAS_PE_SECREL32_RELOC]
6414 (ASM_OUPUT_DWARF_OFFSET): Define.
6415
6416 2004-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
6417
6418 * config/s390/s390-protos.h (s390_emit_epilogue): Parameter added.
6419 (s390_emit_call): New function prototype added.
6420 (s390_tls_get_offset): Function removed.
6421 * config/s390/s390.c (s390_function_ok_for_sibcall,
6422 s390_call_saved_register_used_p): New functions.
6423 (TARGET_FUNCTION_OK_FOR_SIBCALL): Definition of target macro added.
6424 (s390_tls_get_offset): Function merged into s390_emit_tls_call_insn.
6425 (s390_emit_tls_call_insn): New function.
6426 (legitimize_tls_address): Call s390_emit_tls_call_insn instead of
6427 emit_call_insn.
6428 (s390_emit_prologue): Use s390_emit_call instead of emit_call_insn.
6429 (s390_emit_epilogue): Like s390_emit_prologue. Parameter for sibcalls
6430 added.
6431 * config/s390/s390.h (SIBCALL_REGNUM): New macro representing the
6432 register number used to hold the target address for sibcalls.
6433 * config/s390/s390.md ("sibcall", "sibcall_value", "sibcall_epilogue"):
6434 New expanders.
6435 ("*sibcall_br", "*sibcall_brc", "*sibcall_brcl", "*sibcall_value_br",
6436 "*sibcall_value_brc", "*sibcall_value_brcl"): New insns.
6437 ("call_exp", "call_value_exp", "call_value_tls", "call_value_tls_exp"):
6438 Expanders removed.
6439 ("call", "call_value"): Call s390_emit_call to emit the call patterns.
6440 ("*bras", "*brasl", "*bras_r", "*brasl_r", "*bras_tls", "*brasl_tls",
6441 "*basr", "*basr_r", "*basr_tls"): Added constraint: !SIBLING_CALL_P.
6442 ("epilogue"): Changed the call to s390_emit_epilogue to use the
6443 new parameter.
6444
6445 2004-04-30 Kazu Hirata <kazu@cs.umass.edu>
6446
6447 * bb-reorder.c, c-opts.c, cfglayout.c, cgraph.c, cgraphunit.c,
6448 cppfiles.c, fold-const.c, ggc-zone.c, loop-doloop.c, optabs.c,
6449 reg-stack.c, varasm.c, config/alpha/ev4.md,
6450 config/alpha/ev5.md, config/alpha/ev6.md, config/arm/arm.c,
6451 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.c,
6452 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
6453 config/frv/frv.h, config/frv/frv.md, config/h8300/h8300.c,
6454 config/i386/i386.c, config/i386/i386.md, config/i386/winnt.c,
6455 config/ia64/itanium2.md, config/ip2k/ip2k.c,
6456 config/mips/mips.c, config/mips/mips.h, config/mips/sr71k.md,
6457 config/pa/pa.c, config/s390/s390.c, config/sh/sh.c: Fix
6458 comment typos.
6459
6460 2004-04-30 Paul Brook <paul@codesourcery.com>
6461
6462 * config.gcc: Default ep9312 to hard-float.
6463 * config/arm/arm-cores.def: Add ARCH field.
6464 * config/arm/arm.c (FL_FOR_ARCH*): Define.
6465 (arm_arch_cirrus): New variable.
6466 (all_cores): Set and use arch.
6467 (all_architectures): Ditto.
6468 (arm_arch_name): New variable.
6469 (arm_override_options): Set it. Use [SUB]TARGET_CPU_DEFAULT.
6470 Set and use arm_arch_cirrus.
6471 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set arch defines.
6472 (enum processor_type): Update ARM_CORE define.
6473 (enum target_cpus): Add. Replaces TARGET_CPU_* defines.
6474 (CPP_SPEC): Remove %(cpp_cpu_arch).
6475 (CPP_ARCH_DEFAULT_SPEC): Remove.
6476 (CPP_CPU_ARCH_SPEC): Remove.
6477 (EXTRA_SPECS): Don't use CPP_*ARCH*_SPEC.
6478 (FPUTYPE_DEFAULT): Don't define here.
6479
6480 2004-04-30 J"orn Rennecke <joern.rennecke@superh.com>
6481
6482 * flow.c (propagate_one_insn): Call mark_set_regs for stack pointer
6483 updates too.
6484
6485 2004-04-30 Paul Brook <paul@codesourcery.com>
6486
6487 * arm.c (arm_needs_doubleword_align): Use mode alignment.
6488
6489 2004-04-30 Paolo Bonzini <bonzini@gnu.org>
6490
6491 * config/altivec/altivec.h [__cplusplus] (vec_subsubs): Rename to
6492 vec_sububs.
6493 [__cplusplus] (vec_subsuhs): Rename to vec_subuhs, without
6494 duplicates.
6495
6496 2004-04-30 Uros Bizjak <uros@kss-loka.si>
6497
6498 * config/i386/i386.md (atansf2, atandf2, atanxf2): Move near
6499 atan2?f3 expanders.
6500
6501 2004-04-29 Nick Clifton <nickc@redhat.com>
6502
6503 Bug 14093
6504 * config/sh/sh-protos.h (sh_promote_prototypes): Declare.
6505 * config/sh/sh.c (sh_promote_prototypes): Remove declaration.
6506 Delete static from definition.
6507 * config/sh/sh.h (FUNCTION_VALUE): Add sh_promote_prototypes call.
6508
6509 2004-04-30 Uros Bizjak <uros@kss-loka.si>
6510
6511 * reg-stack.c (subst_stack_regs_pat): <UNSPEC_SIN, UNSPEC_COS,
6512 UNSPEC_FRNDINT, UNSPEC_F2XM1>: abort() if src1 dies.
6513 <UNSPEC_SINCOS_COS, UNSPEC_TAN_ONE, UNSPEC_XTRACT_FRACT>: Same.
6514 <UNSPEC_SINCOS_SIN, UNSPEC_TAN_TAN, UNSPEC_XTRACT_EXP>: Same.
6515
6516 2004-04-29 Richard Guenther <richard.guenther@uni-tuebingen.de>
6517
6518 * commom.opt (Wfatal-errors): Add it.
6519 * diagnostic.c (flag_fatal_errors): Define it.
6520 (diagnostic_action_after_output): Check for flag_fatal_errors.
6521 * flags.h (flag_fatal_errors): Declare it.
6522 * opts.c (common_handle_option): Add OPT_Wfatal_errors.
6523 * doc/invoke.texi (Warning Options): Document -Wfatal-errors.
6524
6525 2004-04-30 Josef Zlomek <zlomekj@suse.cz>
6526
6527 * gcse.c (remove_reachable_equiv_notes): Delete notes also in
6528 blocks which have kill flag set.
6529
6530 2004-04-29 Ben Elliston <bje@au.ibm.com>
6531
6532 * configure.ac (--with-as): Abort if user-supplied assembler
6533 cannot be executed.
6534 (--with-ld): Likewise for the linker.
6535 * configure: Regenerate.
6536
6537 2004-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6538
6539 * convert.c (convert_to_integer): Ensure `long_integer_type_node'
6540 isn't NULL before using it.
6541
6542 2004-04-29 Richard Sandiford <rsandifo@redhat.com>
6543
6544 PR target/15189
6545 * config/mips/mips.md (load_df_low): Use default length.
6546 (load_df_high, store_df_high): Likewise.
6547
6548 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
6549
6550 * config/mips/mips.md, config/mips/sb1.md,
6551 config/rs6000/rs6000.c: Fix comment typos.
6552
6553 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
6554
6555 * builtins.c, cgraph.c, cgraphunit.c, final.c, fold-const.c:
6556 Fix comment typos.
6557
6558 2004-04-29 Douglas B Rupp <rupp@gnat.com>
6559
6560 * gcc.c (DELETE_IF_ORDINARY): New macro default definition.
6561 (delete_if_ordinary): Use above macro.
6562 * config/alpha/xm-vms.h (DELETE_IF_ORDINARY): New macro VMS definition.
6563 Update copyright.
6564 * doc/hostconfig.texi (DELETE_IF_ORDINARY): Document new macro.
6565
6566 2004-04-29 Richard Earnshaw <rearnsha@arm.com>
6567
6568 * c-decl.c (get_parm_info): Use the correct tag keywords when
6569 warning about type declarations in prototypes.
6570
6571 2004-04-29 Paul Brook <paul@codesourcery.com>
6572
6573 * config.gcc: Pull list of cores from arm-cores.def.
6574
6575 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
6576
6577 * combine.c (combine_simplify_rtx): Adjust call to use
6578 simplify_relational_operation. Do not use SELECT_CC_MODE
6579 when a comparison already has a MODE_CC mode.
6580
6581 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
6582
6583 (simplify_set): simplify_relational_operation may now
6584 return another relational expression.
6585 * cse.c (fold_rtx): simplify_relational_operation now
6586 takes of computing the comparison mode.
6587 * dojump.c (compare_from_rtx): Use simplify_relational_operation,
6588 remove dead code.
6589 (do_compare_rtx_and_jump): Likewise.
6590 * integrate.c (subst_constants): simplify_relational_operation
6591 may now return another relational expression.
6592 * simplify-rtx.c (simplify_gen_relational): Move most code to
6593 the new simplify_relational_operation and
6594 simplify_relational_operation_1 functions.
6595 (simplify_relational_operation): Rewritten.
6596 (simplify_relational_operation_1): New function.
6597 (simplify_ternary_operation): simplify_relational_operation
6598 may now return another relational expression.
6599 (simplify_rtx): Remove unnecessary temp variable.
6600
6601 2004-04-29 Uros Bizjak <uros@kss-loka.si>
6602
6603 * reg-stack.c (swap_to_top): New function.
6604 (subst_stack_regs_pat): UNSPEC_FPATAN, UNSPEC_FYL2X: Use
6605 swap_to_top().
6606 (subst_stack_regs_pat): UNSPEC_FSCALE: Remove.
6607 (subst_stack_regs_pat): Handle UNSPEC_FSCALE_FRACT and
6608 UNSPEC_FSCALE_EXP.
6609
6610 * config/i386/i386.md (UNSPEC_FSCALE): Remove.
6611 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): Remove insn pattern.
6612 (UNSPEC_FSCALE_FRACT, UNSPEC_FSCALE_EXP): New unspecs to represent
6613 x87's fscale insn.
6614 (*fscalexf4: Define new insn pattern to implement x87 fscale insn.
6615 (exp?f2, exp10?f2, exp2?f2): Use *fscalexf4 and float_truncate
6616 patterns.
6617
6618 2004-04-28 Serge Belyshev <1319@bot.ru>
6619
6620 PR 14944
6621 * coverage.c (read_counts_file): Fix usage of warning () call.
6622 * pretty-print.c (pp_base_format_text): Fix typo in the comment.
6623
6624 2004-04-28 Ben Elliston <bje@au.ibm.com>
6625
6626 * doc/invoke.texi (Objective-C Dialect Options): Don't prefix
6627 options with "-" in the option index.
6628 (SPARC Options): Likewise.
6629 (M32R/D Options): Likewise.
6630
6631 2004-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6632
6633 * convert.c (convert_to_integer): Convert (long)round -> lround,
6634 etc.
6635
6636 2004-04-28 Andrew Pinski <pinskia@physics.uc.edu>
6637
6638 * config/rs6000/rs6000.c (registers_ok_for_quad_peep):
6639 Return false if we do not have fp register.
6640 (addrs_ok_for_quad_peep): Rename to ...
6641 (mems_ok_for_quad_peep): this.
6642 Add check for volatile memory.
6643 * config/rs6000/rs6000-protos.h (addrs_ok_for_quad_peep):
6644 Rename to ...
6645 (mems_ok_for_quad_peep): this.
6646 * config/rs6000/rs6000.md: Change peephole's for lfq/stq
6647 to peephole2's.
6648 (lfq_power2): New instruction.
6649 (stfq_power2): Likewise.
6650
6651 2004-04-28 Jan Hubicka <jh@suse.cz>
6652
6653 PR c/15004
6654 * function.c (do_warn_unused_parameter): Break out form ...
6655 (expand_function_end): ... here; warn only when not using cgraphunit.
6656 * function.h (do_warn_unused_parameter): Declare.
6657 * cgraphunit.c: Include function.h.
6658 (cgraph_finalize_function): Do unused parameter warning.
6659 * Makefile.in (cgraphunit.o): Depend on function.h
6660
6661 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
6662
6663 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Don't condition
6664 calling install-info on $(DESTDIR)$(infodir)/dir already being
6665 present.
6666
6667 2004-04-28 Paul Brook <paul@codesourcery.com>
6668
6669 * dwarf2out.c (mem_loc_descriptor): Handle shifts.
6670
6671 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
6672
6673 * gcse.c (find_moveable_store): Do not accept store insns with
6674 REG_EH_REGION note.
6675
6676 2004-04-28 Paul Brook <paul@codesourcery.com>
6677
6678 * calls.c (precompute_arguments): Remove PROMOTE_FOR_CALL_ONLY.
6679 * function.c (assign_temp): Ditto.
6680 * system.h (PROMOTE_FOR_CALL_ONLY): Poison.
6681
6682 2004-04-28 Paul Brook <paul@codesourcery.com>
6683
6684 * config/arm/lib1funcs.asm: Recognize armv5tej and armv6.
6685
6686 2004-04-28 Josef Zlomek <zlomekj@suse.cz>
6687
6688 * var-tracking.c (variable_different_p): Add a parameter
6689 compare_current_location, compare current location of variable parts
6690 if it is true.
6691 (dataflow_set_different_1): Pass compare_current_location == false.
6692 (dataflow_set_different_2): Pass compare_current_location == false.
6693 (emit_notes_for_differences_1): Pass compare_current_location == true.
6694
6695 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
6696
6697 * config/s390/s390.md ("casesi"): Mark jump table access as
6698 non-trapping and unchanging.
6699
6700 2004-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6701
6702 PR debug/14829
6703 * dwarf2out.c (reg_number): Rename to dbx_reg_number. Adjust all
6704 callers.
6705 (multiple_reg_loc_descriptor, reg_loc_descriptor): Use gcc register
6706 number for indexing hard_regno_nregs array.
6707
6708 2004-04-27 Geoffrey Keating <geoffk@apple.com>
6709
6710 * config/darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
6711 * config/darwin-crt2.c: Only have contents on __ppc__.
6712
6713 2004-04-27 Bob Wilson <bob.wilson@acm.org>
6714
6715 * config/xtensa/xtensa.c (call_insn_operand): Check
6716 SYMBOL_REF_EXTERNAL_P in addition to SYMBOL_REF_LOCAL_P.
6717 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND): Likewise.
6718 * config/xtensa/xtensa.md (call, call_value): Likewise.
6719
6720 2004-04-27 Wu Yongwei <adah@sh163.net>
6721
6722 * gthr-win32.h (__gthread_mutex_t): Change typedef to new structure.
6723 (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
6724 (__gthread_mutex_init_function): Replace CreateMutex with
6725 initialization of custom mutex using CreateSemaphore.
6726 (__gthread_mutex_lock): Use InterlockedIncrement.
6727 (__gthread_mutex_trylock): Use InterlockedCompareExchange.
6728 (__gthread_mutex_unlock): Use InterlockedDecrement and
6729 ReleaseSemaphore to unlock
6730 * config/i386/gthr-win32.c (__gthread_mutex_init_function,
6731 __gthread_mutex_lock, __gthread_mutex_trylock,
6732 __gthread_mutex_unlock): Adjust to match inline versions in
6733 gthr-win32.h.
6734
6735 2004-04-27 Paul Brook <paul@codesourcery.com>
6736
6737 * config/arm/arm.c (arm_promote_prototypes): New function.
6738 (TARGET_PROMOTE_PROTOTYPES): Use it.
6739
6740 2004-04-27 Paul Brook <paul@codesourcery.com>
6741
6742 * config/arm/arm.c (arm_expand_epilogue): Count blocks of 4 regs.
6743
6744 2004-04-26 Bernard Giroud <bgiroud@free.fr>
6745
6746 * config/alpha.c (alpha_end_function): For OpenVMS gas,
6747 correctly output .pdesc directive before .end.
6748
6749 2004-04-26 James E Wilson <wilson@specifixinc.com>
6750
6751 Bug 14927
6752 * config/ia64/ia64.md (movxf): New local op0. Handle case where
6753 operands[0] is a SUBREG. Handle case where operands[1] is a GR reg.
6754
6755 2004-04-26 Zack Weinberg <zack@codesourcery.com>
6756
6757 * config/ia64/hpux.h: Predefine __STDCPP__ when compiling C++.
6758 * config/pa/pa-hpux10.h: Likewise.
6759 * config/pa/pa-hpux11.h: Likewise.
6760
6761 2004-04-26 Geoffrey Keating <geoffk@apple.com>
6762
6763 * doc/invoke.texi (Overall Options): Document default for -o
6764 for PCH files.
6765
6766 2004-04-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6767
6768 * builtins.c (expand_builtin_update_setjmp_buf): New function.
6769 (expand_builtin, case BUILT_IN_UPDATE_SETJMP_BUF): New case.
6770 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): New code.
6771
6772 2004-04-26 Paul Brook <paul@codesourcery.com>
6773
6774 * config/arm/arm.c (arm_legitimate_index_p): Correct iwmmxt offsets.
6775
6776 2004-04-26 Paul Brook <paul@codesourcery.com>
6777
6778 * config/arm/arm.c (arm_legitimate_index_p): Correct maverick offsets.
6779
6780 2004-04-25 Roger Sayle <roger@eyesopen.com>
6781
6782 * fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to
6783 fold (build1 (NEGATE_EXPR, ...)). Optimize X / -1 as -X and
6784 X % -1 as 0.
6785
6786 2004-04-26 Hans-Peter Nilsson <hp@bitrange.com>
6787
6788 PR bootstrap/15141
6789 * except.c (connect_post_landing_pads): Delete insns after the
6790 barrier when generating a unwind_resume_libfunc call.
6791
6792 2004-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6793
6794 PR/c++ 15119
6795 * tree.c (substitute_placeholder_in_expr, case 4): New case,
6796 for TARGET_EXPR.
6797
6798 2004-04-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6799
6800 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
6801 __gcov_execv, __gcov_execvp, __gcov_execve): Do not declare when
6802 inhibit_libc is defined.
6803
6804 2004-04-25 Richard Sandiford <rsandifo@redhat.com>
6805
6806 * config/mips/mips-protos.h (mips_linked_macc_p): Declare.
6807 * config/mips/mips.h (TUNE_MACC_CHAINS): New macro.
6808 * config/mips/mips.c (TARGET_SCHED_REORDER): Define.
6809 (TARGET_SCHED_VARIABLE_ISSUE): Define.
6810 (mips_adjust_cost): Move later in file, next to other sched hooks.
6811 (mips_macc_chains_last_hilo): New variable.
6812 (mips_linked_madd_p, mips_macc_chains_record, mips_macc_chains_reorder)
6813 (mips_promote_ready, mips_sched_reorder, mips_variable_issue): New.
6814 * config/mips/mips.md (may_clobber_hilo): New attribute.
6815
6816 2004-04-24 Roger Sayle <roger@eyesopen.com>
6817 Bruce Korb <bkorb@gnu.org>
6818
6819 * fixinc/inclhack.def (aix_syswait_2): New fix.
6820 * fixinc/fixincl.x: Regenerate.
6821 * fixinc/tests/base/sys/wait.h: Update for new test.
6822
6823 2004-04-24 Alan Modra <amodra@bigpond.net.au>
6824
6825 PR target/14960
6826 * config/rs6000/rs6000.c (rs6000_stack_info): Rename total_raw_size
6827 to non_fixed_size, and leave out fixed_size from the sum.
6828 (generate_set_vrsave): Correct clobbers.
6829 (rs6000_emit_epilogue): Test TARGET_ALTIVEC with TARGET_ALTIVEC_SAVE.
6830 (rs6000_function_value): Test TARGET_ALTIVEC and TARGET_ALTIVEC_ABI.
6831 (rs6000_libcall_value): Likewise.
6832 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Likewise.
6833 (FUNCTION_ARG_REGNO_P): Likewise.
6834
6835 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
6836
6837 * expmed.c (expand_mult_highpart_adjust): Do not assume OP1
6838 is a CONST_INT.
6839 (expand_mult_highpart_optab): Call expand_mult_highpart_adjust
6840 with NARROW_OP1 instead of OP1.
6841
6842 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
6843
6844 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __s390__
6845 and __s390x__ hosts.
6846
6847 2004-03-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6848
6849 * Makefile.in (LIBGCOV): Add _gcov_fork, _gcov_execl, _gcov_execlp,
6850 _gcov_execle, _gcov_execv, _gcov_execvp, _gcov_execve.
6851 * builtin-types.def (BT_PID, BT_PTR_CONST_STRING, BT_FN_PID,
6852 BT_FN_INT_CONST_STRING_PTR_CONST_STRING,
6853 BT_FN_INT_CONST_STRING_PTR_CONST_STRING_PTR_CONST_STRING): New.
6854 * builtins.c (expand_builtin_fork_or_exec): New.
6855 (expand_builtin): Call it.
6856 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP,BUILT_IN_EXECLE,
6857 BUILT_IN_EXECV, BUILT_IN_EXECVP, BUILT_IN_EXECVE, BUILT_IN_FORK): New.
6858 * c-common.c (PID_TYPE): New macro.
6859 (c_common_nodes_and_builtins): Initialize pid_type_node.
6860 * calls.c (special_function_p): Do not handle fork and exec.
6861 (expand_call): Do not handle ECF_FORK_OR_EXEC.
6862 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
6863 __gcov_execv, __gcov_execvp, __gcov_execve): Declare.
6864 * libgcov.c (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
6865 __gcov_execv, __gcov_execvp, __gcov_execve): New.
6866 * tree.h (enum tree_index): Add TI_PID_TYPE.
6867 (pid_type_node): New macro.
6868 (ECF_FORK_OR_EXEC): Removed.
6869
6870 2004-04-23 Eric Botcazou <ebotcazou@libertysurf.fr>
6871
6872 PR optimization/13985
6873 * cfgloopmanip.c (fix_loop_placements): New prototype.
6874 Call fix_bb_placements on the preheader of loops that have
6875 been reparented.
6876 (remove_path): Adjust call to fix_loop_placements.
6877
6878 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
6879
6880 * config/darwin7.h: New file.
6881 * config.gcc (*-*-darwin*): Add darwin7.h if the
6882 version is greater than 6.
6883 * config/darwin.h (TARGET_C99_FUNCTIONS): Define.
6884 (MATH_LIBRARY): Wrap in ifdefs.
6885
6886 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
6887
6888 * config/arm/arm.c (arm_output_epilogue): Reverse the order of
6889 loading iWMMXt registers with a frame pointer. Use post-increment
6890 without a frame pointer.
6891 (arm_expand_prologue): Reverse the order of saving iWMMXt registers.
6892
6893 2004-04-23 Paolo Bonzini <bonzini@gnu.org>
6894
6895 * doc/invoke.texi (Optimize Options): Refer to "unit-at-a-time
6896 mode" rather than "-funit-at-a-time" since -O2 enables it
6897 without requiring -f* options. Refer to -fprofile-generate and
6898 -fprofile-use correctly. Move -funit-at-a-time among options
6899 enabled by -O. Add information about unit-at-a-time caveats.
6900
6901 2004-04-22 Per Bothner <per@bothner.com>
6902
6903 * line-map.h (struct line_maps): New field highest_line.
6904 (linemap_position_for_column): Make non-inline function.
6905 (LINEMAP_POSITION_FOR_COLUMN): New macro.
6906 * line-map.c (linemap_init): Clear highest_line field.
6907 (linemap_add): Set highest_line field.
6908 (linemap_line_start): Minor optimization - use highest_line field.
6909 Reduce maximum column hint to 10000. Update highest_line field.
6910 (linemap_position_for_column): Moved from line-map.h. Optimize a bit.
6911 * cpphash.h (struct cpp_reader): Remove line field - instead use
6912 line_table->highest_line.
6913 (saved_line): Remove unused field.
6914 (CPP_INCREMENT_FILE): Don't do linemap_lookup - just use newest map.
6915 Use line_table's highest_line field instead of cpp_reader's line.
6916 * cpplib.c (start_directive): Likewise use highest_line field.
6917 (do_line, do_linemarker): Likewise just use newest map.
6918 (_cpp_do_file_change): Don't need to set cpp_reader's line field.
6919 * cpperror.c (cpp_error): Likewise use highest_line field.
6920 * cppfiles.c (open_file_failed: Likewise.
6921 (cpp_make_system_header): Likewise use newest map and highest_line.
6922 * cppinit.c (cpp_create_reader): Don't initialize removed field.
6923 * cpplex.c (_cpp_process_line_notes, _cpp_skip_block_comment,
6924 skip_line_comment, skip_whitespace, _cpp_get_fresh_line,
6925 _cpp_lex_direct): Likewise use highest_line.
6926 (_cpp_lex_direct): Use new LINEMAP_POSITION_FOR_COLUMN macro.
6927 * cppmacro.c (_cpp_builtin_macro_text): Likewise use highest_line,
6928 and use newest map.
6929 * cpppch.c (cpp_read_state): Don't save+restore cpp_reader's line.
6930 * cpptrad.c (_cpp_overlay_buffer): Don't save cpp_reader's line.
6931 (copy_comment, _cpp_scan_out_logical_line): Likewise use highest_line.
6932
6933 2004-04-23 Alan Modra <amodra@bigpond.net.au>
6934
6935 PR bootstrap/14992
6936 * gcc.c (init_gcc_specs): Test USE_LD_AS_NEEDED, not HAVE_LD_AS_NEEDED.
6937 * config/linux.h (USE_LD_AS_NEEDED): Define.
6938 * gcc/config/alpha/linux.h (USE_LD_AS_NEEDED): Define.
6939 * gcc/config/arm/linux-elf.h (USE_LD_AS_NEEDED): Define.
6940 * gcc/config/rs6000/linux.h (USE_LD_AS_NEEDED): Define.
6941 * gcc/config/rs6000/linux64.h (USE_LD_AS_NEEDED): Define.
6942 * gcc/config/sh/linux.h (USE_LD_AS_NEEDED): Define.
6943 * gcc/config/sparc/linux.h (USE_LD_AS_NEEDED): Define.
6944 * gcc/config/sparc/linux64.h (USE_LD_AS_NEEDED): Define.
6945
6946 2004-04-22 Per Bothner <per@bothner.com>
6947
6948 * cppinit.c (cpp_read_main_file): Return NULL rather than false.
6949 Fixes PR preprocessor/15067.
6950
6951 2004-04-23 Andreas Schwab <schwab@suse.de>
6952
6953 * config/ia64/ia64intrin.h: Add intermediate cast to void * to
6954 avoid aliasing warning.
6955
6956 2004-04-22 Jan Hubicka <jh@suse.cz>
6957 Mostafa Hagog <mustafa@il.ibm.com>
6958
6959 * cfgloopmanip.c (scale_bbs_frequencies): Use RDIV macro
6960 * cfgloopanal.c (expected_loop_iterations): Change the return value
6961
6962 2004-04-22 Jakub Jelinek <jakub@redhat.com>
6963
6964 * cselib.h (struct elt_loc_list): Remove canon_loc field.
6965 * cselib.c (new_elt_loc_list): Remove canon_loc initialization.
6966 (cselib_invalidate_mem): Remove all canon_loc and canon_x
6967 traces.
6968
6969 2004-04-22 Josef Zlomek <zlomekj@suse.cz>
6970
6971 Revert
6972 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
6973
6974 * var-tracking.c (variable_part_different_p): Variable parts
6975 differ when the most recent locations differ.
6976
6977 2004-04-22 Richard Sandiford <rsandifo@redhat.com>
6978
6979 * doc/invoke.texi: Remove the MIPS -membedded-pic option.
6980 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): Delete.
6981 (embedded_pic_offset): Delete.
6982 * config/mips/mips.h (MASK_EMBEDDED_PIC): Delete. Shuffle other
6983 MASK_* constants.
6984 (TARGET_EMBEDDED_PIC): Delete.
6985 (TARGET_SWITCHES): Remove -m{no-,}embedded-pic.
6986 (ASM_SPEC): Remove -membedded-pic.
6987 (ASM_OUTPUT_ADDR_DIFF_ELT): Remove embedded-pic handling.
6988 (ASM_OUTPUT_CASE_LABEL): Likewise.
6989 * config/mips/vxworks.h (ASM_SPEC): Remove -membedded-pic.
6990 * config/mips/windiss.h (ASM_SPEC): Likewise.
6991 * config/mips/mips.c (struct machine_function): Remove
6992 embedded_pic_fnaddr_rtx.
6993 (TARGET_ENCODE_SECTION_INFO): Remove override.
6994 (embedded_pic_fnaddr_reg, embedded_pic_offset): Delete.
6995 (override_options): Remove -membedded-pic handling.
6996 (print_operand): Remove handling of '%S'.
6997 (mips_select_section: Remove -membedded-pic handling.
6998 (mips_encode_section_info): Delete.
6999 (mips_output_conditional_branch): Remove mention of -membedded-pic.
7000 * config/mips/mips.md (define_attr length, movsi, movdi, jump): Remove
7001 -membedded-pic handling.
7002 (casesi, casesi_internal, casesi_internal_di, get_fnaddr): Delete.
7003
7004 2004-04-22 Alan Modra <amodra@bigpond.net.au>
7005
7006 * var-tracking.c (frame_base_decl): Remove useless GTY.
7007
7008 2004-04-21 Aldy Hernandez <aldyh@redhat.com>
7009
7010 * config/rs6000/rs6000.c (rs6000_override_options): Error when
7011 user wants altivec and e500 instructions.
7012
7013 2004-04-21 H.J. Lu <hongjiu.lu@intel.com>
7014
7015 PR target/14813
7016 * config/ia64/crtend.asm: Move pointer to __do_global_ctors_aux
7017 in .init_array section to ...
7018 * config/ia64/crtbegin.asm: Here.
7019
7020 * config/ia64/crtend.asm: Mark __do_global_ctors_aux global
7021 and hidden if HAVE_INITFINI_ARRAY is defined.
7022
7023 2004-04-21 James E Wilson <wilson@specifixinc.com>
7024
7025 * config/mips/mips-protos.h (fp_register_operand, lo_operand): Declare.
7026 * config/mips/mips.c (mips_multipass_dfa_lookahead): Declare.
7027 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): New.
7028 (fp_register_operand, lo_operand): New.
7029 (mips_rtx_costs): Add TUNE_SB1 support.
7030 (mips_issue_rate): Add comment. Add PROCESSOR_SB1 support.
7031 (mips_use_dfa_pipeline_interface): Add PROCESSOR_SB1 support.
7032 (mips_multipass_dfa_lookahead): New.
7033 * config/mips/mips.h (MASK_FP_EXCEPTIONS, TARGET_FP_EXCEPTIONS,
7034 TUNE_SB1): New.
7035 (TARGET_SWITCHES): Add -mfp-exceptions support.
7036 (TARGET_FP_EXCEPTIONS_DEFAULT): New.
7037 (BRANCH_COST): Fix whitespace.
7038 * config/mips/mips.md: Include sb1.md.
7039 * config/mips/sb1.md: New file.
7040 * doc/invoke.texi: Document -mfp-exceptions.
7041
7042 * Makefile.in (fixinc.sh): Don't set or export WARN_CFLAGS. Fix
7043 comment.
7044 * fixinc/Makefile.in (FL_LIST): Don't mention WARN_CFLAGS.
7045 (fixincl.o-warn): Delete.
7046
7047 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
7048
7049 * config/rs6000/rs6000 (print_operand) ['z']:
7050 Change ifdef of TARGET_MACHO to if TARGET_MACHO.
7051
7052 2004-04-21 Daniel Jacobowitz <drow@mvista.com>
7053
7054 * config.gcc: Support --with-arch=iwmmxt for ARM.
7055
7056 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7057
7058 * expmed.c (expand_mult_highpart_optab): Use narrower version of OP1
7059 in two more places; remove unneeded force_reg
7060
7061 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
7062
7063 * config/rs6000/rs6000.c (symbol_ref_operand): Remove hack
7064 for TARGET_MACHO.
7065 (print_operand): For TARGET_MACHO check to see if we need a stub
7066 and output one if we need it.
7067
7068 PR debug/15033
7069 * dwarf2out.c (rtl_for_decl_location): Check for NULL
7070 rtl.
7071
7072 2004-04-20 James E Wilson <wilson@specifixinc.com>
7073
7074 * config/ia64/ia64.md (call_value_nogp): Add constraints for op0.
7075 (vall_value_gp): Likewise.
7076
7077 2004-04-20 DJ Delorie <dj@redhat.com>
7078
7079 * dwarf2out.c (rtl_for_decl_location): Adjust rtl for byte
7080 variables stored in word registers, then in memory.
7081
7082 2004-04-20 Eric Christopher <echristo@redhat.com>
7083
7084 * cp/parser.c (cp_parser_declaration): Move translate
7085 up before tokens are lexed.
7086
7087 2004-04-20 Uros Bizjak <uros@kss-loka.si>
7088
7089 * optabs.h (enum optab_index): Add new OTI_asin and OTI_acos.
7090 (asin_optab, acos_optab): Define corresponding macros.
7091 * optabs.c (init_optabs): Initialize asin_optab and acos_optab.
7092 * genopinit.c (optabs): Implement asin_optab and acos_optab
7093 using asin?f2 and acos?f2 patterns.
7094 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_ASIN{,F,L}
7095 using asin_optab, and BUILT_IN_ACOS{,F,L} using acos_optab.
7096 (expand_builtin): Expand BUILT_IN_ASIN{,F,L} and BUILT_IN_ACOS{,F,L}
7097 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
7098
7099 * config/i386/i386.md (asindf2, asinsf2, asinxf2, acosdf2,
7100 acossf2, acosxf2): New expanders to implement asin, asinf, asinl,
7101 acos, acosf and acosl built-ins as inline x87 intrinsics.
7102
7103 2004-04-20 Paul Brook <paul@codesourcery.com>
7104
7105 * config/arm/arm.c (arm_legitimate_address_p): Use rtx_equal_p.
7106
7107 2004-04-20 Paul Brook <paul@codesourcery.com>
7108
7109 * config/arm/arm.c (arm_expand_prologue): Fix size calculation.
7110
7111 2004-04-20 Paolo Bonzini <bonzini@gnu.org>
7112
7113 Revert part of 2004-04-17 change that moved -frename-registers
7114 to -O1. -frename-registers is buggy.
7115
7116 * toplev.c (flag_rename_registers): Initialize to 0.
7117 * doc/invoke.texi (Optimize options): Move -frename-registers
7118 to "Not triggered by any -O level" section. Adjust commentary
7119 accordingly.
7120
7121 2004-04-20 Anil Paranjpe <anilp1@kpitcummins.com>
7122
7123 * toplev.c (compile_file): Move targetm.asm_out.file_end call to end.
7124
7125 2004-04-20 Richard Sandiford <rsandifo@redhat.com>
7126
7127 * config/mips/mips.c (mips_legitimize_move): Generate special patterns
7128 for mflo and mfhi instructions.
7129 (mips_output_move): Remove mflo and mfhi handling.
7130 * config/mips/mips.md (UNSPEC_MFHILO): New unspec.
7131 (*mulsidi3_64bit): Update for new mfhi/mflo representation.
7132 Likewise various define_peephole2s.
7133 (*movdi_32bit, *movdi_64bit, *movsi_internal): Merge x<-J and x<-d
7134 alternatives.
7135 (*movdi_64bit, *movdi_64bit_mips16, *mov[shq]i_internal)
7136 (*mov[shq]i_mips16): Remove mflo and mfhi alternatives.
7137 (mfhilo_di, mfhilo_si): New patterns.
7138
7139 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
7140
7141 * function.c (assign_parms): Force
7142 MEM_EXPR (DECL_INCOMING_RTL (parm)) == parm.
7143
7144 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
7145
7146 * var-tracking.c (variable_part_different_p): Variable parts differ
7147 when the most recent locations differ.
7148
7149 2004-04-19 James E Wilson <wilson@specifixinc.com>
7150
7151 * rtl.h (reg_set_last): Delete declaration.
7152 * rtlanal.c (reg_set_last): Delete.
7153
7154 2004-04-19 Roger Sayle <roger@eyesopen.com>
7155
7156 * fold-const.c (fold_convert): Make function extern/public.
7157 * tree.h (fold_convert): Prototype here.
7158 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
7159 expand_builtin_strrchr, expand_builtin_strpbrk,
7160 expand_builtin_mempcpy, expand_builtin_bcopy,
7161 expand_builtin_bzero, expand_builtin_memcmp,
7162 expand_builtin_strcmp, expand_builtin_strncmp,
7163 stabilize_va_list, expand_builtin_sprintf,
7164 fold_trunc_transparent_mathfn, fold_builtin_logarithm,
7165 fold_builtin_exponent, fold_builtin_mempcpy,
7166 fold_builtin_strcpy, fold_builtin_strcmp, fold_builtin_strncmp,
7167 fold_builtin_signbit, fold_builtin_isdigit, fold_builtin): Prefer
7168 fold_convert to "convert" or "fold (build1 (NOP_EXPR, ...))".
7169
7170 2004-04-19 Aldy Hernandez <aldyh@redhat.com>
7171
7172 * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): New constant.
7173 (move_from_CR_gt_bit): New.
7174 (cceq_ior_compare): Name previously unnamed pattern. Disable for
7175 E500.
7176 (cceq_rev_compare): Name previously unnamed pattern. Allow for
7177 E500.
7178
7179 * config/rs6000/spe.md (cmpsfeq_gpr): Rewrite as unspec.
7180 (tstsfeq_gpr): Same.
7181 (cmpsfgt_gpr): Same.
7182 (tstsfgt_gpr): Same.
7183 (cmpsflt_gpr): Same.
7184 (tstsflt_gpr): Same.
7185 (e500_cceq_ior_compare): New.
7186 (e500_flip_gt_bit): New.
7187
7188 * config/rs6000/rs6000.c (ccr_bit): Remove E500 specific code.
7189 (print_operand): Add 'c' and 'D'.
7190 (rs6000_generate_compare): Rewrite to generate correct rtl.
7191 (rs6000_emit_sCOND): Handle E500.
7192 (output_cbranch): Adjust for changes in rs6000_generate_compare.
7193 (output_e500_flip_gt_bit): New.
7194
7195 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit):
7196 Protoize.
7197
7198 2004-04-19 Eric Christopher <echristo@redhat.com>
7199
7200 * config/mips/mips.h (DWARF2_ADDR_SIZE): New.
7201
7202 2004-04-19 David Edelsohn <edelsohn@gnu.org>
7203
7204 * doc/install.texi (*-ibm-aix*): Add AIX 5.1 assembler and archiver
7205 fix information.
7206
7207 2004-04-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7208
7209 * doc/install.texi (Specific, mips-sgi-irix5): Fix IRIX 5.3 IDO
7210 download URL.
7211
7212 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
7213
7214 * stor-layout.c (layout_decl): Check DECL_PACKED before calling
7215 ADJUST_FIELD_ALIGN. Check maximum_field_alignment after.
7216
7217 2004-04-19 Andrew PInski <pinskia@physics.uc.edu>
7218
7219 * builtins.c (fold_builtin_cabs): Remove fndecl parameter.
7220 (fold_builtin): Update caller to match.
7221
7222 PR bootstrap/15009
7223 * bb-reorder.c (fix_up_fall_thru_edges): Init cond_jump.
7224
7225 PR bootstrap/14999
7226 * builtins.c (fold_builtin_cabs): Mark fndecl as unused.
7227
7228 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7229
7230 * varasm.c (compare_constant, case VIEW_CONVERT_EXPR): Add case.
7231
7232 * expmed.c (expand_mult_highpart_adjust): Make OP1 valid for MODE.
7233 (expand_mult_highpart_optab): Likewise.
7234 (expand_mult_highpart): Make OP1 valid for WIDER_MODE, not MODE.
7235
7236 2004-04-19 Paul Brook <paul@codesourcery.com>
7237
7238 * config/arm/arm.md (fixuns_truncsfsi2, fixuns_truncdfsi2,
7239 floatunssisf2, floatunssidf2): New patterns.
7240
7241 2004-04-18 Mark Mitchell <mark@codesourcery.com>
7242
7243 PR other/14918
7244 * doc/invoke.texi (-fprofile-generate): Document requirement to
7245 use -fprofile-generate when linking.
7246
7247 * doc/extend.texi (Strong Using): Warn users against using this
7248 feature.
7249
7250 2004-04-18 Richard Sandiford <rsandifo@redhat.com>
7251
7252 * config/mips/mips-protos.h (m16_usym8_4, m16_usym5_4): Delete.
7253 * config/mips/mips.h (mips_entry, mips_string_length): Delete.
7254 (CONSTANT_POOL_BEFORE_FUNCTION, ASM_OUTPUT_POOL_EPILOGUE): Undefine.
7255 * config/mips/mips.c (struct mips16_constant): Renamed from struct
7256 constant. Propogate change throughout file.
7257 (struct machine_function): Remove insns_len.
7258 (mips_string_length, mips16_strings, string_constants): Delete.
7259 (mips_classify_symbol): Return SYMBOL_CONSTANT_POOL for LABEL_REFs
7260 when generating mips16 code. Remove special mips16 treatment of
7261 string constants.
7262 (mips_symbolic_constant_p): Allow mips16 constant pool accesses
7263 to have the form LABEL+CONSTANT.
7264 (mips_symbolic_address_p): Fix comment.
7265 (m16_usym8_4, m16_usym5_4): Delete.
7266 (mips_output_function_epilogue): Remove mips16 string handling.
7267 (mips_output_mi_thunk): Call mips16_lay_out_constants.
7268 (mips_select_section, mips_encode_section_info): Remove mips16
7269 string handling.
7270 (struct mips16_constant_pool): New.
7271 (add_constant): Take a mips16_constant_pool structure. Keep pool
7272 sorted into order of ascending mode size. Keep track of the highest
7273 possible start address, taking padding and the masking of the base PC
7274 value into account.
7275 (dump_constants_1): New function, split out from dump_constants.
7276 Handle vector constants. Use gen_consttable_{int,float} rather than
7277 separate functions for each mode.
7278 (dump_constants): Simplify. Use GET_MODE_ALIGNMENT. Use gen_align
7279 rather than separate functions for each alignment.
7280 (mips_find_symbol): Delete.
7281 (mips16_insn_length): New function, split out from
7282 mips16_lay_out_constants.
7283 (mips16_rewrite_pool_refs): New function.
7284 (mips16_lay_out_constants): Rework. Remove string handling.
7285 Always create an inline constant pool.
7286 * config/mips/mips.md (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT)
7287 (UNSPEC_ALIGN): New constants.
7288 (UNSPEC_CONSTTABLE_[QHSD]I, UNSPEC_CONSTTABLE_[SD]F): Delete.
7289 (UNSPEC_ALIGN_[248]): Delete.
7290 (consttable_int, consttable_float, align): New patterns.
7291 (consttable_[qhsd]i, consttable_[sd]f, align_[248]): Delete.
7292
7293 2004-04-17 Aldy Hernandez <aldyh@redhat.com>
7294
7295 * config/rs6000/altivec.h (vec_any_numeric): Correct typo in
7296 __unn_args_eq.
7297
7298 2004-04-17 Alan Modra <amodra@bigpond.net.au>
7299
7300 PR target/14715
7301 * config/rs6000/rs6000.c (rs6000_stack_info): Make parm_size agree
7302 with STARTING_FRAME_OFFSET.
7303
7304 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
7305
7306 * config/mips/mips.h (PREDICATE_CODES): Add macc_msac_operand.
7307 * config/mips/mips.c (macc_msac_operand): New function.
7308 * config/mips/mips.md (*msac): Move after *macc.
7309 (*msac2): New. Generalize macc-related peepholes so that they apply
7310 to msac too.
7311
7312 2004-04-17 Paolo Bonzini <bonzini@gnu.org>
7313
7314 * opts.c (decode_options): Do not enable flag_rename_registers
7315 and flag_web at -O3.
7316 * toplev.c (flag_rename_registers): Initialize
7317 flag_rename_registers and flag_web to
7318 AUTODETECT_FLAG_VAR_TRACKING.
7319 (default_debug_hooks): New global.
7320 (process_options): Initialize default_debug_hooks. Warn if
7321 -fvar-tracking specified but not supported by the current
7322 debug format. Do not run var tracking at -O0 or if not
7323 supported by the current debug format, even if
7324 -fvar-tracking was given. If -fno-rename-registers
7325 is not specified, always run register renaming if var
7326 tracking is supported by the default debugging information
7327 format for the target, and we are at -O1 or higher; similarly
7328 for -fweb, but only at -O2 or higher.
7329 * doc/invoke.texi (Optimize Options): Document this.
7330
7331 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
7332
7333 * configure.ac (gcc_cv_ld_as_needed): Use AC_CACHE_CHECK.
7334 * configure: Regenerate.
7335
7336 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
7337
7338 * gcc.c (used_arg): Check whether an option has been removed.
7339
7340 2004-04-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7341
7342 * config.gcc (i[34567]86-*-solaris2*): Default to DWARF-2
7343 debugging on Solaris 7 and up.
7344
7345 2004-04-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7346
7347 * doc/install.texi (Specific, mips-sgi-irix5): Reflect working
7348 IRIX 5 port.
7349 Remove -save-temps workaround, handled automatically.
7350 Require GNU binutils 2.15 for debugging.
7351 Remove SGI make warnings since GNU make is now required.
7352 (Specific, mips-sgi-irix6): Some markup fixes.
7353 Describe MIPSpro C problems and workarounds.
7354 Mention working O32 ABI support.
7355 Recommend GNU as 2.15 for O32 with debugging.
7356 Remove description of fixed structure pass/return bug.
7357
7358 2004-04-16 DJ Delorie <dj@redhat.com>
7359
7360 * sdbout.c (sdbout_one_type): Use TYPE_VALUES for enums, not
7361 TYPE_FIELDS.
7362 (sdbout_finish): Don't free deferred_global_decls; it's GC'd.
7363
7364 2004-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7365
7366 * pa.md: Remove unnecessary declarations for asm_out_file.
7367
7368 * pa64-regs.h (DBX_REGISTER_NUMBER): Simplify and correct mapping of
7369 SAR register. Fix comment.
7370 (ADDITIONAL_REGISTER_NAMES): Correct register number of SAR register
7371 (%cr11).
7372
7373 * pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld.
7374
7375 2004-04-16 Nick Clifton <nickc@redhat.com>
7376
7377 * config/arm/arm.c (arm_override_options): Revert previous patch.
7378 * config/arm/t-xscale-elf: Disable iwmmxt multilibs until they can
7379 be safely built.
7380
7381 2004-04-16 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7382
7383 * config/m32r/m32r.h (BIG_ENDIAN_BIT): Deleted to fix endian
7384 bug.
7385 (TARGET_LITTLE_ENDIAN, TARGET_BIG_ENDIAN,
7386 TARGET_DEFAULT): Changed. Ditto.
7387 (LITTLE_ENDIAN_BIT, TARGET_CPU_DEFAULT,
7388 TARGET_ENDIAN_DEFAULT): Added. Ditto.
7389 * config/m32r/little.h (TARGET_LITTLE_ENDIAN): Deleted.
7390 (TARGET_ENDIAN_DEFAULT): Added.
7391
7392 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7393
7394 * builtins.def (BUILT_IN_ISDIGIT, BUILT_IN_ISXDIGIT): Mark with
7395 ATTR_CONST_NOTHROW_LIST.
7396
7397 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7398
7399 PR/middle-end 14915
7400 * builtins.c (expand_builtin_signbit): Test BYTES_BIG_ENDIAN, not
7401 BITS_BIG_ENDIAN.
7402
7403 2004-04-15 Pat Haugen <pthaugen@us.ibm.com>
7404
7405 * ra-debug.c (ra_print_rtx): Add break's to case legs.
7406
7407 2004-04-14 James E Wilson <wilson@specifixinc.com>
7408
7409 * Makefile.in (fixinc.sh): Set WARN_CFLAGS to empty string.
7410
7411 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
7412
7413 * libada-mk.in: New file.
7414 * configure.ac: Create libada-mk from libada-mk.in.
7415 * configure: Regenerate.
7416
7417 2004-04-14 Uros Bizjak <uros@kss-loka.si>
7418
7419 * optabs.h (enum optab_index): Add new OTI_logb and OTI_ilogb.
7420 (logb_optab, ilogb_optab): Define corresponding macros.
7421 * optabs.c (init_optabs): Initialize logb_optab and ilogb_optab.
7422 * genopinit.c (optabs): Implement logb_optab and ilogb_optab
7423 using logb?f2 and ilogb?i2 patterns.
7424 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOGB{,F,L}
7425 using logb_optab, and BUILT_IN_ILOGB{,F,L} using ilogb_optab.
7426 (expand_builtin): Expand BUILT_IN_LOGB{,F,L} and BUILT_IN_ILOGB{,F,L}
7427 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
7428
7429 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_XTRACT_FRACT
7430 and UNSPEC_XTRACT_EXP.
7431
7432 * config/i386/i386.md (*fxtractdf3, *fxtractsf3, *fxtractxf3): New
7433 patterns to implement fxtract x87 instruction.
7434 (logbdf2, logbsf2, logbxf2, ilogbsi2): New expanders to implement
7435 logb, logbf, logbl, ilogb, ilogbf and ilogbl built-ins as inline x87
7436 intrinsics.
7437 (UNSPEC_XTRACT_FRACT, UNSPEC_XTRACT_EXP): New unspecs to represent
7438 x87's fxtract insn.
7439
7440 2004-04-14 Eric Christopher <echristo@redhat.com>
7441
7442 * config/mips/t-elf: Enable multilibs by default.
7443
7444 2004-04-14 Andreas Tobler <a.tobler@schweiz.ch>
7445
7446 * bb-reorder.c (fix_crossing_conditional_branches): Adjust the
7447 previous fix to check HAVE_return at runtime too.
7448
7449 2004-04-14 Nick Clifton <nickc@redhat.com>
7450
7451 * config/arm/arm.c (arm_override_options): If the user has not
7452 specified an ABI, then default to AAPCS for the iWMMXt processor.
7453 * config/arm/t-xscale-elf: Remove redundant multilib specifications.
7454 * config/arm/t-xscale-coff: Likewise.
7455
7456 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7457
7458 * builtins.c (fold_builtin_isdigit): New.
7459 (fold_builtin): Handle BUILT_IN_ISDIGIT.
7460 * defaults.h: Add TARGET_DIGIT0 and sort.
7461 * doc/tm.texi: Add TARGET_BS and TARGET_DIGIT0.
7462
7463 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7464
7465 * builtins.c (fold_builtin_cabs, fold_builtin): Use
7466 `mathfn_built_in' to determine the new builtin.
7467 * fold-const.c (fold): Likewise.
7468
7469 2004-04-14 Richard Sandiford <rsandifo@redhat.com>
7470
7471 * doc/invoke.texi: Rename MIPS's -mfix-vr4122-bugs to -mfix-vr4120.
7472 * config/mips/mips.h (MASK_FIX_VR4120): Renamed from MASK_FIX_VR4122.
7473 (TARGET_FIX_VR4120): Likewise TARGET_FIX_VR4122.
7474 (TARGET_SWITCHES): Replace -mfix-vr4122-bugs with -mfix-vr4120.
7475 (ASM_SPEC): Update accordingly.
7476 * config/mips/mips.c: Update after above renaming.
7477 * config/mips/mips.md, config/mips/t-vr, config/mips/vr.h: Likewise.
7478 * config/mips/vr4120-div.S: Renamed from vr4122-div.S.
7479
7480 2004-04-13 James E Wilson <wilson@specifixinc.com>
7481
7482 * c-opt.c (c_common_post_options): If this_input_filename is NULL,
7483 increment errorcount and return false instead of true.
7484
7485 2004-04-13 Uros Bizjak <uros@kss-loka.si>:
7486
7487 * optabs.c (expand_twoval_unop): Reorder function arguments.
7488 * builtins.c (expand_builtin_mathfn_3): Update calls to
7489 expand_twoval_unop.
7490
7491 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_TAN_ONE
7492 and UNSPEC_TAN_TAN. Add missing comment.
7493
7494 * config/i386/i386.md (*tandf3_1, *tansf3_1, *tanxf3_1): New
7495 patterns to implement fptan x87 instruction.
7496 (tandf2, tansf2, tanxf2): New expanders to implement tan, tanf
7497 and tanl built-ins as inline x87 intrinsics. Define corresponding
7498 peephole2 optimizers for 'fptan; fstp %st(0); fld1' sequence.
7499 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): New unspecs to represent
7500 x87's fptan insn.
7501
7502 2004-03-13 Richard Henderson <rth@redhat.com>
7503
7504 * bb-reorder.c (fix_crossing_unconditional_branches): Use Pmode
7505 for LABEL_REFs.
7506
7507 * defaults.h (HOT_TEXT_SECTION_NAME): Add leading dot.
7508 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Likewise.
7509 * doc/invoke.texi: Update to match.
7510
7511 * varasm.c (unlikely_text_section): Use assemble_align instead of
7512 ASM_OUTPUT_ALIGN. Use it in the correct place with an approximately
7513 correct alignment argument.
7514
7515 2004-04-13 Ulrich Weigand <uweigand@de.ibm.com>
7516
7517 * reload1.c (emit_reload_insns): Set reg_has_output_reload to one
7518 after setting reg_last_reload_reg for optional output reloads.
7519
7520 2004-04-12 Fariborz Jahanian <fjahanian@apple.com>
7521
7522 * config/rs6000/altivec.h (vec_mergeh, vec_mergel):
7523 Definition of these two macros are corrected by adding
7524 matchine right paren.
7525
7526 2004-04-12 Jonathan Larmour <jifl@eCosCentric.com>
7527
7528 * fix-header.c: kill(), putenv() and tzset() are POSIX not ANSI.
7529
7530 2004-04-12 Roger Sayle <roger@eyesopen.com>
7531
7532 * config/i386/i386.c (output_387_reg_move): New function.
7533 * config/i386/i386-protos.h (output_387_reg_move): Prototype here.
7534 * config/i386/i386.md (*movsf_1, *movsf1_nointerunit,
7535 *movdf_nointeger, *movdf_integer, *movxf_nointeger, *movxf_integer,
7536 *extendsfdf2_1, *extendsfxf2_1, *extenddfxf2_1, truncdfsf2_noop,
7537 truncxfsf2_noop, truncxfdf2_noop): Call output_387_reg_move.
7538
7539 2004-04-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7540
7541 * c-decl.c (finish_decl): Make a decl_stmt for a variable-sized
7542 TYPE_DECL.
7543 * c-semantics.c (genrtl_decl_stmt): Handle TYPE_DECL.
7544 * stmt.c (expand_decl): Remove redundant expansion of TYPE_DOMAIN.
7545 * stor-layout.c (variable_size): Don't check for MINUS_EXPR.
7546 Use skip_simple_arithmetic to find SAVE_EXPR.
7547 (force_type_save_exprs, force_type_save_exprs_1): New functions.
7548 * tree-inline.c (remap_type, case POINTER_TYPE, case REFERENCE_TYPE):
7549 Properly chain multiple pointers.
7550 (copy_tree_r): Copy a TYPE_DECL.
7551 * tree.c (variably_modified_type_p): Add some missing tests and
7552 make some other minor changes.
7553 * tree.h (force_type_save_exprs): New declaration.
7554
7555 2004-04-12 Roger Sayle <roger@eyesopen.com>
7556
7557 * simplify-rtx.c (simplify_binary_operation) <UDIV, DIV, UMOD, MOD>:
7558 Remove fall throughs. Convert 0/x and 0%x into x&0 when x has
7559 side-effects. Don't convert x/1.0 into x if we honor signaling NaNs.
7560 Convert x/-1.0 into -x if we don't honor signaling NaNs. Convert
7561 x/-1 into -x. Optimize x%1 into x&0 if x has side-effects. Optimize
7562 x%-1 into 0 (or x&0 if x has side-effects).
7563
7564 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
7565
7566 * config/rs6000/rs6000.md: Document why a pattern is not
7567 available.
7568
7569 * config/rs6000/rs6000.c (rs6000_emit_cmove): Disable comparisons
7570 of floats on the E500.
7571 (branch_positive_comparison_operator): Do not allow NE even on the
7572 E500.
7573
7574 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
7575
7576 * config/rs6000/rs6000.c (rs6000_assemble_integer): Change
7577 in_text_unlikely_section to in_unlikely_text_section.
7578
7579 2004-04-11 Roger Sayle <roger@eyesopen.com>
7580
7581 * fold-const.c (fold_binary_op_with_conditional_arg): Tweak
7582 calling convention to allow a NULL_TREE to be returned. Factor
7583 sanity checks from callers, return NULL_TREE when appropriate.
7584 (fold): Handle COMPOUND_EXPR operands of binary expressions
7585 before COND_EXPR operands. Use reorder_operands_p(a,b) to check
7586 whether a op (b,c) can be rewritten as (b, a op c). Simplify
7587 calls to fold_binary_op_with_conditional_arg.
7588
7589 2004-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7590
7591 * config/mips/iris5.h (current_section_flags): Add
7592 in_unlikely_executed_text and default case.
7593
7594 2004-04-11 Andreas Tobler <a.tobler@schweiz.ch>
7595
7596 * bb-reorder.c (fix_crossing_conditional_branches): Fix bootstrap
7597 failure on solaris. Place ifdef HAVE_return around gen_ret call.
7598 * cfgrtl.c (force_nonfallthru_and_redirect): Remove ifdef
7599 HAVE_return and place it around the place where it is needed.
7600
7601 2004-04-11 Andrew Pinski <pinskia@physics.uc.edu>
7602
7603 * varasm.c (text_section): Use TEXT_SECTION_ASM_OP and
7604 ASM_OUTPUT_ALIGN instead of SECTION_FORMAT_STRING
7605 and NORMAL_TEXT_SECTION_NAME.
7606 (unlikely_text_section): Check targetm.have_named_sections
7607 instead of TARGET_ASM_NAMED_SECTION and use TEXT_SECTION_ASM_OP
7608 instead of SECTION_FORMAT_STRING.
7609 * config/mips/iris5.h (current_section_name): Add
7610 in_unlikely_executed_text case and move the abort into the switch.
7611 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME): Remove.
7612 (NORMAL_TEXT_SECTION_NAME): Remove.
7613 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
7614 (SECTION_FORMAT_STRING): Remove.
7615 * defaults.h (SECTION_FORMAT_STRING): Remove.
7616 * tm.texi (NORMAL_TEXT_SECTION_NAME): Remove.
7617 (SECTION_FORMAT_STRING): Remove.
7618
7619 2004-04-10 Joseph S. Myers <jsm@polyomino.org.uk>
7620
7621 * c-typeck.c (common_type): Prefer long long to long when same
7622 precision.
7623
7624 2004-04-09 Zack Weinberg <zack@codesourcery.com>
7625
7626 PR 14887
7627 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Look only at
7628 mode argument.
7629 * config/ia64/ia64.c (ia64_hpux_file_end): Check
7630 TREE_SYMBOL_REFERENCED on DECL_ASSEMBLER_NAME, not DECL_NAME.
7631
7632 2004-04-09 Roger Sayle <roger@eyesopen.com>
7633
7634 * simplify-rtx.c (mode_signbit_p): New function to check whether
7635 an RTX is an immediate constant that represents the most significant
7636 bit of a given machine mode.
7637 (simplify_unary_operation) <NOT>: Optimize ~(X+C) as X ^ ~C, where
7638 C is the sign bit.
7639 (simplify_binary_operation) <PLUS>: Optimize (X^C1) + C2 as X^(C1^C2)
7640 when C2 is the sign bit.
7641 (simplify_binary_operation) <XOR>: Canonicalize X^C as X+C when C
7642 is the sign bit. Optimize (X+C1) ^ C2 as X^(C1^C2) when C1 is the
7643 sign bit.
7644
7645 2004-04-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7646
7647 * builtins.c (mathfn_built_in): Check TYPE_MAIN_VARIANT, not
7648 TYPE_MODE.
7649
7650 2004-04-09 Andrew Pinski <pinskia@physics.uc.edu>
7651
7652 * c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead
7653 of TREE_READONLY for types.
7654
7655 2004-04-09 Caroline Tice <ctice@apple.com>
7656
7657 * basic-block.h (struct edge_def): Add new field, crossing_edge.
7658 (struct basic_block_def): Add new field, partition.
7659 (UNPARTITIONED, HOT_PARTITION, COLD_PARTITION): New constant macro
7660 definitions.
7661 (partition_hot_cold_basic_blocks): Add extern function
7662 declaration.
7663 * bb-reorder.c (function.h, obstack.h, expr.h, regs.h): Add four new
7664 include statements.
7665 (N_ROUNDS): Increase the maximum number of rounds by 1.
7666 (branch_threshold): Add array value for new round.
7667 (exec_threshold): Add array value for new round.
7668 (push_to_next_round_p): New function.
7669 (add_unlikely_executed_notes): New function.
7670 (find_rarely_executed_basic_blocks_and_crossing_edges): New function.
7671 (mark_bb_for_unlikely_executed_section): New function.
7672 (add_labels_and_missing_jumps): New function.
7673 (add_reg_crossing_jump_notes): New function.
7674 (fix_up_fall_thru_edges): New function.
7675 (find_jump_block): New function.
7676 (fix_crossing_conditional_branches): New function.
7677 (fix_crossing_unconditional_branches): New function.
7678 (fix_edges_for_rarely_executed_code): New function.
7679 (partition_hot_cold_basic_blocks): New function.
7680 (find_traces): Add an extra round for partitioning hot/cold
7681 basic blocks.
7682 (find_traces_1_round): Add a parameter. Modify to push all cold blocks,
7683 and only cold blocks, into the last (extra) round of collecting traces.
7684 (better_edge_p): Add a parameter. Modify to favor non-crossing edges
7685 over crossing edges.
7686 (bb_to_key): Add code to correctly identify cold blocks when
7687 doing partitioning.
7688 (connect_traces): Modify to connect all the non-cold traces first, then
7689 go back and connect up all the cold traces.
7690 (reorder_basic_blocks): Add call to add_unlikely_executed_notes.
7691 * cfg.c (entry_exit_blocks): Add initialization for partition field in
7692 entry and exit blocks.
7693 * cfgbuild.c (make_edges): Update current_function_has_computed_jump
7694 if we are doing hot/cold partitioning.
7695 * cfgcleanup.c (cfglayout.h): Add new include statement.
7696 (try_simplify_condjump): Modify to not attempt on blocks with jumps
7697 that cross section boundaries.
7698 (try_forward_edges): Likewise.
7699 (merge_blocks_move_predecessor_nojumps): Likewise.
7700 (merge_blocks_move_successor_nojumps): Likewise.
7701 (merge_blocks_move): Likewise.
7702 (try_crossjump_to_edge): Modify to not attempt after we have done
7703 the block partitioning.
7704 (try_crossjump_bb): Modify to not attempt on blocks with jumps that
7705 cross section boundaries.
7706 (try_optimize_cfg): Likewise.
7707 * cfghooks.c (tidy_fallthru_edges): Modify to not remove indirect
7708 jumps that cross section boundaries.
7709 * cfglayout.c (flags.h): Add new include statement.
7710 (update_unlikely_executed_notes): New function.
7711 (fixup_reorder_chain): Add code so when a new jumping basic block is
7712 added, it's UNLIKELY_EXECUTED_CODE and REG_CROSSING_JUMP notes are
7713 updated appropriately.
7714 (duplicate_insn_chain): Add code to duplicate the new NOTE insn
7715 introduced by this optimization.
7716 * cfglayout.h (scan_ahead_for_unlikely_executed_note): Add new
7717 extern function declaration.
7718 * cfgrtl.c (can_delete_note_p): Add NOTE_INSN_UNLIKELY_EXECUTED_CODE to
7719 list of notes that can be deleted.
7720 (create_basic_block_structure): Add initialization for partition field.
7721 (rtl_can_merge_blocks): Modify to test blocks for jumps that cross
7722 section boundaries.
7723 (try_redirect_by_replacing_jump): Modify to not attempt on jumps that
7724 cross section boundaries.
7725 (commit_one_edge_insertion): Add code so newly created basic block
7726 ends up in correct (hot or cold) section. Modify to disallow
7727 insertions before NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
7728 (rtl_verify_flow_info_1): Add code to verify that no fall_thru edge
7729 crosses section boundaries.
7730 (cfg_layout_can_merge_blocks_p): Modify to test blocks for jumps that
7731 cross section boundaries.
7732 (force_nonfallthru_and_redirect): Modify to make sure new basic block
7733 ends up in correct section, with correct notes attached.
7734 * common.opt (freorder-blocks-and-partition): Add new flag for this
7735 optimization.
7736 * dbxout.c (dbx_function_end): Add code to make sure scope labels at
7737 the end of functions are written into the correct (hot or cold)
7738 section.
7739 (dbx_source_file): Add code so writing debug file information
7740 doesn't incorrectly change sections.
7741 * defaults.h (NORMAL_TEXT_SECTION_NAME): New constant macro, for use
7742 in partitioning hot/cold basic blocks into separate sections.
7743 (SECTION_FORMAT_STRING): New constant macro, for linux/i386 hot/cold
7744 section partitioning.
7745 (HAS_LONG_COND_BRANCH): New constant macro, indicating whether or not
7746 conditional branches can span all of memory.
7747 (HAS_LONG_UNCOND_BRANCH): New constant macro, indicationg whether or not
7748 unconditional branches can span all of memory.
7749 * final.c (scan_ahead_for_unlikely_executed_note): New function.
7750 (final_scan_insn): Add code to check for NOTE instruction indicating
7751 whether basic block belongs in hot or cold section, and to make sure
7752 the current basic block is being written to the appropriate section.
7753 Also added code to ensure that jump table basic blocks end up in the
7754 correct section.
7755 * flags.h (flag_reorder_blocks_and_partition): New flag.
7756 * ifcvt.c (find_if_case_1): Modify to not attempt if conversion if
7757 one of the branches has a jump that crosses between sections.
7758 (find_if_case_2): Likewise.
7759 (ifcvt): Modify to not attempt to mark loop exit edges after
7760 hot/cold partitioning has occurred.
7761 * opts.c (decode_options): Code to handle new flag,
7762 flag_reorder_blocks_and_partition; also to turn it off if
7763 flag_exceptions is on.
7764 (common_handle_option): Code to handle new flag,
7765 flag_reorder_blocks_and_partition.
7766 * output.h (unlikely_text_section): New extern function declaration.
7767 (in_unlikely_text_section): New extern function declaration.
7768 * passes.c (rest_of_handle_stack_regs): Add
7769 flag_reorder_blocks_and_partition as an 'or' condition for calling
7770 reorder_basic_blocks.
7771 (rest_of_handle_reorder_blocks): Add flag_reorder_blocks_and_partition
7772 as an 'or' condition for calling reorder_basic_blocks.
7773 (rest_of_compilation): Add call to partition_hot_cold_basic_blocks.
7774 * print-rtl.c (print_rtx): Add code for handling new note,
7775 NOTE_INSN_UNLIKELY_EXECUTED_CODE
7776 * rtl.c (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note insn (see below).
7777 (REG_CROSSING_JUMP): New kind of reg_note, to mark jumps that
7778 cross between section boundaries.
7779 * rtl.h (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note instruction,
7780 indicating the basic block containing it belongs in the cold section.
7781 (REG_CROSSING_JUMP): New type of reg_note, to mark jumps that cross
7782 between hot and cold sections.
7783 * toplev.c (flag_reorder_blocks_and_partition): Add code to
7784 initialize this flag, and to tie it to the command-line option
7785 freorder-blocks-and-partition.
7786 * varasm.c (cfglayout.h): Add new include statement.
7787 (unlikely_section_label_printed): New global variable, used for
7788 determining when to output section name labels for cold sections.
7789 (in_section): Add in_unlikely_executed_text to enum data structure.
7790 (text_section): Modify code to use SECTION_FORMAT_STRING and
7791 NORMAL_TEXT_SECTION_NAME macros.
7792 (unlikely_text_section): New function.
7793 (in_unlikely_text_section): New function.
7794 (function_section): Add code to make sure beginning of function is
7795 written into correct section (hot or cold).
7796 (assemble_start_function): Add code to make sure stuff is written to
7797 the correct section.
7798 (assemble_zeros): Add in_unlikely_text_section as an 'or' condition
7799 to an if statement that was checking 'in_text_section'.
7800 (assemble_variable): Add 'in_unlikely_text_section' as an 'or'
7801 condition to an if statement that was checking 'in_text_section'.
7802 (default_section_type_flags_1): Add check: if in cold section
7803 flags = SECTION_CODE.
7804 * config/darwin.c (darwin_asm_named_section): Modify to use
7805 SECTION_FORMAT_STRING if we are partitioning hot/cold blocks.
7806 * config/i386/i386.h (HAS_LONG_COND_BRANCH): Defined this macro
7807 specifically for the i386.
7808 (HAS_LONG_UNCOND_BRANCH): Defined this macro specifically for the i386.
7809 * config/rs6000/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Change
7810 text string to something more informative.
7811 (NORMAL_TEXT_SECTION_NAME): Add new definition.
7812 (SECTION_FORMAT_STRING): Add new definition.
7813 * config/rs6000/rs6000.c (rs6000_assemble_integer): Add
7814 '!in_unlikely_text_section' as an 'and' condition to an if statement
7815 that was already checking '!in_text_section'.
7816 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME,NORMAL_TEXT_SECTION_NAME,
7817 UNLIKELY_EXECUTED_TEXT_SECTION_NAME,SECTION_FORMAT_STRING): Make
7818 sure these are properly defined for linux on ppc.
7819 * doc/invoke.texi (freorder-blocks-and-partition): Add documentation
7820 for this new flag.
7821 * doc/rtl.texi (REG_CROSSING_JUMP): Add documentation for new
7822 reg_note.
7823 * doc/tm.texi (NORMAL_TEXT_SECTION_NAME, SECTION_FORMAT_STRING,
7824 HAS_LONG_COND_BRANCH, HAS_LONG_UNCOND_BRANCH): Add documentation for
7825 these new macros.
7826
7827 2004-04-08 Roger Sayle <roger@eyesopen.com>
7828
7829 * function.c (gen_mem_addressof): When changing the RTX from a REG
7830 to a MEM, clear MEM_VOLATILE_P which was formerly REG_USERVAR_P.
7831
7832 2004-04-08 Roger Sayle <roger@eyesopen.com>
7833
7834 PR target/14888
7835 * config/i386/i386.md (truncdfsf2_noop, truncxfsf2_noop,
7836 truncxfdf2_noop): Provide dummy "fmov" implementations.
7837
7838 2004-04-08 Ian Lance Taylor <ian@wasabisystems.com>
7839
7840 * gcc.c (default_compilers): Add missing initializers.
7841
7842 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
7843 Return 1 if file was successfully mapped.
7844
7845 2004-04-08 Geoffrey Keating <geoffk@apple.com>
7846
7847 PR pch/13419
7848 PR pch/14137
7849 Radar #: 3315288
7850 * doc/invoke.texi (Precompiled Headers): Suggest -o
7851 to put an output file in a particular place. Be more detailed
7852 about which options affect PCH validity and which options
7853 might not work.
7854 * c-pch.c (pch_matching): New.
7855 (MATCH_SIZE): New.
7856 (struct c_pch_validity): New field 'match'.
7857 (pch_init): Handle pch_matching.
7858 (c_common_valid_pch): Check pch_matching.
7859
7860 * explow.c: Fix typo defining default of PROMOTE_FUNCTION_MODE.
7861
7862 2004-04-08 Mark Mitchell <mark@codesourcery.com>
7863
7864 * doc/invoke.texi (Precompiled Headers): Warn about known
7865 problems.
7866
7867 2004-04-08 Danny Smith <dannysmith@users.sourceforge.net>
7868
7869 PR c++/14808
7870 * defaults.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): New macro. Default
7871 to 1 if ASM_OUTPUT_DEF is defined.
7872 * doc/tm.texi (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document.
7873 * config/i386/cygming.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): Define.
7874 Set to non-zero iff not a one_only decl.
7875
7876 2004-04-08 Paul Brook <paul@codesourcery.com>
7877
7878 * arm.h (CLASS_LIKELY_SPILLED_P): Define.
7879
7880 2004-04-08 Paul Brook <paul@codesourcery.com>
7881
7882 * explow.c (promote_mode): Use PROMOTE_FUNCTION_MODE instead of
7883 PROMOTE_FOR_CALL_ONLY.
7884 * config/arm/arm-protos.h (arm_function_value): Declare.
7885 * config/arm/arm.h (TARGET_PROMOTE_FUNCTION_ARGS): Define.
7886 (TARGET_PROMOTE_PROTOTYPES): Return false.
7887 (arm_function_value): New function.
7888 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Define.
7889 (FUNCTION_VALUE): Call arm_function_value.
7890 * config/cris/cris.h (PROMOTE_MODE): Rename ...
7891 (PROMOTE_FUNCTION_MODE): ... to this.
7892 (PROMOTE_FOR_CALL_ONLY): Remove.
7893 * config/mmix/mmix.h: Likewise.
7894 * config/s390/s390.h: Likewise.
7895 * config/sparc/sparc.h: Likewise.
7896 * config/sparc/sparc.c: Update comments about PROMOTE_MODE.
7897 * doc/tm.texi (PROMOTE_FUNCTION_MODE): Document.
7898 (TARGET_PROMOTE_FUNCTION_MODE, TARGET_PROMOTE_FUNCTION_RETURN): Update.
7899 (PROMOTE_FOR_CALL_ONLY): Remove.
7900
7901 2004-04-08 Joel Sherrill <joel@oarcorp.com>
7902
7903 PR ada/14538
7904 * ada/5rosinte.adb: Remove fake mprotect() body.
7905 * ada/5rosinte.ads: Add SA_SIGINFO.
7906 * ada/5rtpopsp.adb: Rewrite to use new interface.
7907 * ada/init.c: Reorder so the simple single OS conditional __rtems__
7908 is tested before more complex ones which mix UNIX and embedded
7909 systems in the conditional.
7910
7911 2004-04-08 Joel Sherrill <joel@oarcorp.com>
7912
7913 PR ada/14665
7914 * ada/osint.adb (Find_Program_Name): Rework to properly handle
7915 filenames which end in .exe or have versioning suffixes like VMS.
7916
7917 2004-04-08 Andrew Pinski <pinskia@physics.uc.edu>
7918
7919 PR target/10129
7920 * config/darwin.c (darwin_encode_section_info): When the decl has
7921 a DECL_INITIAL, it is only defined also when it is not a common.
7922
7923 2004-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7924
7925 * builtins.c (fold_builtin_isascii, fold_builtin_toascii): New.
7926 (fold_builtin): Handle BUILT_IN_ISASCII and BUILT_IN_TOASCII.
7927
7928 2004-04-07 H.J. Lu <hongjiu.lu@intel.com>
7929
7930 * config/ia64/ia64.c (ia64_encode_section_info): Don't prod
7931 global register variables.
7932
7933 2004-04-07 Joseph S. Myers <jsm@polyomino.org.uk>
7934
7935 * fixinc/inclhack.def (rpc_xdr_lvalue_cast_a,
7936 rpc_xdr_lvalue_cast_b): New fixes.
7937 * fixinc/fixincl.x: Regenerate.
7938 * fixinc/tests/base/rpc/xdr.h: Add new tests.
7939
7940 2004-04-07 David Edelsohn <edelsohn@gnu.org>
7941
7942 * config/rs6000/rs6000.c (processor_target_table): Add MASK_MFCRF
7943 to power4 and power5 entries.
7944
7945 2004-04-06 Geoffrey Keating <geoffk@apple.com>
7946
7947 * c-common.h (pending_lang_change): Mark for PCH.
7948
7949 2004-04-07 Caroline Tice <ctice@apple.com>
7950
7951 * gcc.c (main): Move 'break' in main loops (on an error)
7952 to wait until error processing has occurred.
7953
7954 2004-04-06 Nathanael Nerode <neroden@gcc.gnu.org>
7955
7956 * config.gcc: Stop changing enable_threads midstream.
7957 Replace uses of enable_threads_flag with enable_threads.
7958 * configure.ac: Replace uses of enable_threads_flag with
7959 enable_threads. Improve autoconf quotation in one place.
7960 * configure: Regenerate.
7961
7962 2004-04-06 Uros Bizjak <uros@kss-loka.si>
7963
7964 * builtins.c: Implement support for sincos function.
7965 (expand_builtin_mathfn): Remove BUILT_IN_SIN{,F,L} and
7966 BUILT_IN_COS{,F,L}.
7967 (expand_builtin_mathfn_3): New function.
7968 (expand_builtin): Expand BUILT_IN_SIN{,F,L} and
7969 BUILT_IN_COS{,F,L} using expand_builtin_mathfn_3 if
7970 flag_unsafe_math_optimization is set.
7971
7972 * optabs.h (enum optab_index): Add new OTI_sincos.
7973 (sincos_optab): Define corresponding macro.
7974
7975 * optabs.c (init_optabs): Initialize sincos_optab.
7976 (expand_twoval_unop): New function.
7977
7978 * genopinit.c (optabs): Implement sincos_optab using sincos?f3
7979 patterns.
7980
7981 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_SINCOS_COS
7982 and UNSPEC_SINCOS_SIN.
7983
7984 * config/i386/i386.md (sincosdf3, sincossf3, *sincosextendsfdf3,
7985 sincosxf3): New patterns to implement sincos, sincosf and sincosl
7986 built-ins as inline x87 intrinsics. Define splits for
7987 sindf2, sinsf2, *sinextendsfdf2, sinxf2, cosdf2,
7988 cossf2, *cosextendsfdf2 and cosxf2 patterns from corresponding
7989 sincos patterns.
7990 (sindf2, sinsf2, sinxf2): Rename to *sindf2, *sinsf2, *sinxf2.
7991 (cosdf2, cossf2, cosxf2): Rename to *cosdf2, *cossf2, *cosxf2.
7992
7993 (UNSPEC_SINCOS_SIN, UNSPEC_SINCOS_COS): New unspecs to represent
7994 x87's fsincos insn.
7995
7996 2004-04-06 Devang Patel <dpatel@apple.com>
7997
7998 PR 14467
7999 * config/darwin.h (LINK_COMMAND_SPEC): Use c++filt instead of c++filt3.
8000
8001 2004-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8002
8003 * doc/install.texi: Update HP-UX 11 installation procedure.
8004
8005 2004-04-06 Paul Brook <paul@codesourcery.com>
8006
8007 * doc/sourcebuild.texi: Remove obsolete contraint on testcases.
8008
8009 2004-04-05 Kaz Kojima <kkojima@gcc.gnu.org>
8010
8011 * config/sh/sh.c (prepare_move_operands): Use emit_call_insn
8012 when the TLS address is generated by a function call.
8013 * config/sh/sh.md (tls_global_dynamic): Use a call expression.
8014 (tls_local_dynamic): Likewise.
8015
8016 2004-04-05 Andrew Pinski <pinskia@physics.uc.edu>
8017
8018 * tree.c (reconstruct_complex_type): Use TYPE_READONLY
8019 and TYPE_VOLATILE.
8020
8021 2004-04-05 Caroline Tice <ctice@apple.com>
8022
8023 * gcc.c (combine_flag): New global variable, for new driver option.
8024 (struct compiler): Add two new fields, to be used when
8025 combining multiple input files in a single pass (IMA).
8026 (default_compilers): Add values for the new fields to all
8027 compiler entries. Modify the "@c" compiler entry for doing IMA
8028 properly with "-save-temps" and the "combine" flag.
8029 (option_map): Add new driver option, "--combine", to tell driver
8030 to pass multiple input files to compiler at one time.
8031 (have_o_argbuf_index): New global variable.
8032 (store_arg): Modify to assign value to have_o_argbuf_index.
8033 (struct infile): Add three new fields, to help with IMA.
8034 (display_help): Add help for new "combine" option.
8035 (process_command): Remove local variable have_o; add code to check
8036 for new "combine" option; remove assignment to combine_inputs.
8037 (do_spec_1): Modify to deal with IMA better.
8038 (main): Make variable 'lang_n_infiles' local to entire function
8039 rather than to a single block. Use flag combine_flag to
8040 determine whether to do IMA or not; Modify loop initializing
8041 infiles to deal properly with linker files.
8042 Add code for doing preprocessing in presence of
8043 IMA with "-save-temps" flag. Modify "main" loop to handle
8044 multiple input files, in multiple languages, with or without
8045 preprocessing, gracefully.
8046 * toplev.c (set_src_pwd): Modify to not complain if attempting to
8047 re-set it to same directory it's previously been set to (avoid
8048 irritating, meaningless warning messages when doing IMA with
8049 save-temps).
8050 * doc/invoke.texi: Add "-combine" to list of Overall Options;
8051 remove documentation about IMA that is no longer accurate; Add
8052 documentation explaining what "-combine" does.
8053 * ada/lang-specs.h: Add initialization values for new fields in
8054 "struct compiler".
8055 * cp/lang-specs.h: Likewise.
8056 * f/lang-specs.h: Likewise.
8057 * java/lang-specs.h: Likewise.
8058 * objc/lang-specs.h: Likewise.
8059 * treelang/lang-specs.h: Likewise.
8060
8061 2004-04-05 David Edelsohn
8062
8063 * config/rs6000/rs6000.c (VTABLE_NAME_P): Add _ZTI to special
8064 symbol handling.
8065
8066 2004-04-05 Jakub Jelinek <jakub@redhat.com>
8067 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8068
8069 PR optimization/13424 (hppa), bootstrap/14462, c/14828
8070 * pa.md: Use replace_equiv_address to retain the attributes of the
8071 memory operands used in the split and peephole2 patterns for optimizing
8072 the pre-reload movstrsi, movstrdi, clrstrsi and clrstrdi patterns.
8073
8074 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8075
8076 * c-decl.c (build_compound_literal): Use TYPE_READONLY.
8077 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
8078 * objc/objc-act.c (adorn_decl, gen_declspecs): Likewise.
8079 * c-typeck.c (decl_constant_value): Don't access DECL_INITIAL of a
8080 PARM_DECL.
8081 * calls.c (flags_from_decl_or_type): Use TYPE_READONLY and do so only
8082 for a type.
8083 * print-tree.c (print_node): Properly handle side-effects, readonly,
8084 and constant flags.
8085 * tree.c (build1_stat, build_expr_wfl): Only look at TREE_SIDE_EFFECTS
8086 and TREE_CONSTANT if not a type.
8087 * tree.h (IS_NON_TYPE_CODE_CLASS): New macro.
8088 (IS_EXPR_CODE_CLASS): Write 'E', not 'e'.
8089 (NON_TYPE_CHECK): New macro.
8090 (TREE_SIDE_EFFECT, TREE_READONLY, TREE_CONSTANT: Add check.
8091
8092 2004-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
8093
8094 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Set
8095 to DWARF2_DEBUG unconditionally.
8096 (ASM_DEBUG_SPEC): Set the default to --gdwarf2 unconditionally.
8097
8098 2004-04-04 Ian Lance Taylor <ian@wasabisystems.com>
8099 Nathanael Nerode <neroden@gcc.gnu.org>
8100
8101 PR target/14548
8102 * config.host: Set the shell variable host_can_use_collect2.
8103 Set it to yes by default, and to no for alpha*-dec-*vms*,
8104 i[34567]86-*-mingw32*, and powerpc-*-beos*.
8105 * configure.ac: Set and substitute the shell variable collect2.
8106 Give an error if use_collect2 is yes and host_can_use_collect2 is
8107 no.
8108 * Makefile.in (COLLECT2): Rename from USE_COLLECT2. Change all
8109 uses. Initialize to @collect2@.
8110 (STAGESTUFF): Remove $(USE_COLLECT2).
8111 * config/alpha/x-vms (USE_COLLECT2): Don't set.
8112 * config/i386/t-mingw32 (USE_COLLECT2): Likewise.
8113 * config/rs6000/t-beos (USE_COLLECT2): Likewise.
8114 * config/pa/t-pa64: Remove commented out USE_COLLECT2.
8115 * configure: Regenerate.
8116
8117 2004-04-04 Roger Sayle <roger@eyesopen.com>
8118
8119 * simplify-rtx.c (simplify_binary_operation): Constant fold
8120 DIV, MOD, UDIV and UMOD using div_and_round_double.
8121
8122 2004-04-04 Mark Mitchell <mark@codesourcery.com>
8123
8124 PR c++/14804
8125 * varasm.c (initializer_constant_valid_p): Allow NOP_EXPRs to
8126 RECORD_TYPEs.
8127
8128 2004-04-04 Mark Mitchell <mark@codesourcery.com>
8129
8130 * doc/invoke.texi (-mabi=o64): Create link to O64 ABI
8131 documentation.
8132
8133 2004-04-04 Roger Sayle <roger@eyesopen.com>
8134
8135 * cse.c (cse_insn): Correct usage of simplify_replace_rtx when
8136 updating the REG_EQUAL note on an insn's libcall_insn.
8137
8138 2004-04-04 Roger Sayle <roger@eyesopen.com>
8139
8140 * df.h: Tidy up whitespace in the definitions of the DF_ flags.
8141
8142 2004-04-03 Roger Sayle <roger@eyesopen.com>
8143
8144 * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
8145 with reorder_operands_p.
8146
8147 2004-04-03 Jan Hubicka <jh@suse.cz>
8148
8149 * md.texi (vec_set, vec_extract, vec_init): Document.
8150
8151 2004-04-02 Gabor Loki <loki@inf.u-szeged.hu>
8152
8153 * opts.c (decode_options): Do function inlining with very small
8154 max-inline-insns-* parameters when optimizing for size.
8155
8156 2004-04-02 Vladimir Makarov <vmakarov@redhat.com>
8157
8158 * config/i386/i386.h (TARGET_NOCONA): New macro.
8159 (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
8160 (processor_type): Add PROCESSOR_NOCONA.
8161
8162 * config/i386/i386.md (cpu): Add nocona to the attribute values.
8163
8164 * config/i386/i386.c (nocona_cost): New variable.
8165 (m_NOCONA): New macro.
8166 (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
8167 x86_branch_hints, x86_use_sahf, x86_single_stringop,
8168 x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
8169 x86_integer_DFmode_moves, x86_partial_reg_dependency,
8170 x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
8171 x86_decompose_lea, x86_arch_always_fancy_math_387,
8172 x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
8173 x86_ext_80387_constants, x86_four_jump_limit):
8174 (override_options): Add nocona_cost to processor_target_table.
8175 Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
8176 (incdec_operand): Prevent inc/dec generation for Nocona too.
8177 (ix86_issue_rate): Add PROCESSOR_NOCONA.
8178
8179 2004-04-01 Andrew Pinski <pinskia@physics.uc.edu>
8180
8181 * rtlanal.c (find_reg_note): Manually
8182 unswitch the loop.
8183
8184 2004-04-01 Mark Mitchell <mark@codesourcery.com>
8185
8186 * genemit.c (gen_split): Change prototype of generated code.
8187 * genrecog.c (write_action): Adjust prototype for and calls to
8188 gen_split_*.
8189 * gensupport.c (struct queue_elem): Add split field.
8190 (queue_pattern): Return a value. Clear the split field.
8191 (process_rtx): Maintain an association between an insn and the
8192 split generated from it for a define_insn_and_split.
8193 (process_one_cond_exec): Generate a new split for a
8194 define_insn_and_split.
8195 * config/arm/arm-protos.h (arm_split_constant): Add insn
8196 parameter.
8197 (emit_constant_insn): New function.
8198 (arm_gen_constant): Use it.
8199 * config/arm/arm.md: Adjust calls to arm_split_constant.
8200
8201 2004-04-02 Jan Hubicka <jh@suse.cz>
8202
8203 * cgraph.c: Add overall comment.
8204 (cgraph_inline_hash): New global variable.
8205 (cgraph_create_node): Break out from ...
8206 (cgraph_node): ... here.
8207 (cgraph_edge): New function.
8208 (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
8209 (cgraph_remove_edge): Accept edge, intead of source and destination.
8210 (cgraph_redirect_edge_callee): New.
8211 (cgraph_remove_node): Update all new datastructures.
8212 (cgraph_record_call, cgraph_remove_call): Kill.
8213 (dump_cgraph_node): Break out from ... ; dump new datastructures.
8214 (dump_cgraph): ... here.
8215 (cgraph_function_possibly_inlined_p): Use new hashtable.
8216 (cgraph_clone_edge, cgraph_clone_node): New.
8217 * cgraph.h: Include hashtab.h
8218 (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
8219 fields, add inlined_to pointer.
8220 (cgraph_node): Add pointer to next_clone.
8221 (cgraph_remove_edge, cgraph_create_edge): Update prototype.
8222 (cgraph_remove_call, cgraph_record_call): Kill.
8223 (cgraph_inline_hash): Declare.
8224 (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
8225 cgraph_redirect_edge_callee): Declare.
8226 (cgraph_create_edges, cgraph_inline_p): Update prorotype.
8227 (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
8228 cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
8229 * cgraphunit.c: Add overall comment.
8230 (cgraph_optimize_function): Kill.
8231 (cgraph_assemble_pending_functions): Do not assemble inline clones.
8232 (cgraph_finalize_function): Update call of cgraph_remove_node
8233 (record_call_1): Record call sites.
8234 (cgraph_create_edges): Accept node instead of decl argument.
8235 (error_found): New static variable.
8236 (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
8237 (cgraph_analyze_function): Update for new datastructures.
8238 (cgraph_finalize_compilation_unit): Plug memory leak.
8239 (cgraph_optimize_function): Kill.
8240 (cgraph_expand_function): Do not use cgraph_optimize_function.
8241 (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
8242 cgraph_inlined_callees): Kill.
8243 (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
8244 clones.
8245 (estimate_growth): Simplify.
8246 (cgraph_clone_inlined_nodes): New function.
8247 (cgraph_mark_inline_edge): Re-implement.
8248 (cgraph_mark_inline): Likewise.
8249 (cgraph_check_inline_limits): Simplify.
8250 (cgraph_recursive_inlining_p): New.
8251 (update_callee_keys): Break out from ...
8252 (cgraph_decide_inlining_of_small_functions): ... here; simplify.
8253 (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
8254 Likewise.
8255 (cgraph_expand_all_functions): Remove inline clones from the ordered
8256 list.
8257 (cgraph_preserve_function_body_p): New predicate.
8258 (cgraph_optimize): Verify cgraph.
8259 * function.h (struct function): Add fields saved_tree/saved_args.
8260 * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
8261 * toplev.c (rest_of_compilation): Do not free cfun.
8262 * tree-inline.c: Include function.h
8263 (struct inline_data): Add saving_p field; replace decl/current_decl by
8264 node/current_node.
8265 (insert_decl_map): New function.
8266 (copy_body_r): Handle saving; update cgraph datastructure.
8267 (copy_body): Handle recursive inlining.
8268 (initialize_inlined_parameters): Likewise.
8269 (expand_call_inline): Propagate node attributes; update cgraph.
8270 (optimize_inline_calls): Verify that datastructure still match.
8271 (save_body): New function.
8272 * tree-inline.h (save_body): New.
8273 * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
8274 * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
8275 * langhooks.c (lang_hooks): Add update_decl_after_saving.
8276
8277 2004-04-01 Serge Belyshev <1319@bot.ru>
8278
8279 PR target/14702
8280 * config/i386/i386.md: fix source operand constraints in
8281 mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
8282
8283 2004-04-01 Waldek Hebisch <hebisch@math.uni.wroc.pl>
8284
8285 * fold-const.c (folda): Preserve types of comparisons.
8286
8287 2004-04-01 Richard Henderson <rth@redhat.com>
8288
8289 * toplev.c (backend_init): Move init_optimization_passes call ...
8290 (lang_dependent_init): ... here.
8291
8292 2004-04-01 Alan Modra <amodra@bigpond.net.au>
8293 Jakub Jelinek <jakub@redhat.com>
8294
8295 * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
8296 -lgcc --as-needed -lgcc_s --no-as-needed by default.
8297 * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
8298 * configure: Rebuilt.
8299 * config.in: Rebuilt.
8300 * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
8301 (stage2-start, stage3-start, stage4-start): Likewise.
8302 (stageprofile-start, stagefeedback-start): Likewise.
8303
8304 2004-04-01 Jakub Jelinek <jakub@redhat.com>
8305
8306 * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
8307 * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
8308 * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
8309 * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
8310 (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
8311 * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
8312 with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
8313 * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
8314 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
8315 * config/sparc/t-linux: Removed.
8316
8317 2004-04-01 Jakub Jelinek <jakub@redhat.com>
8318
8319 PR c++/14755
8320 * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
8321 "bitfld++ == const" to "++bitfld == const + incr" transformations.
8322
8323 2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8324
8325 * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
8326 * stor-layout.c (layout_decl): Likewise.
8327 * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
8328 * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
8329 * print-tree.c (print_node): Handle various used of unsigned_flag.
8330 * tree.def (BIT_FIELD_REF): Update comment.
8331 * tree.h (TREE_UNSIGNED): Deleted.
8332 (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
8333
8334 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8335
8336 * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
8337 Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
8338 * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
8339 * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
8340 * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
8341 * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
8342 * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
8343 * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
8344 * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
8345 * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
8346 REAL_TYPE, not INTEGER_TYPE.
8347 (layout_type, case VECTOR_TYPE): Simplify code.
8348 * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
8349 * tree.h: Update comments.
8350 (STRIP_NOPS): Use TYPE_UNSIGNED.
8351 (TYPE_UNSIGNED): New macro.
8352 (TYPE_TRAP_SIGNED): Remove now redundant check.
8353 (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
8354
8355 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8356
8357 * function.c (put_var_into_stack): Properly set orig_reg for indirect.
8358
8359 2004-03-31 Andrew Pinski <pinskia@physics.uc.edu>
8360
8361 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
8362 Add darwin-fpsave.asm, darwin-vecsave.asm,
8363 and darwin-world.asm.
8364 (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
8365 as the asm files contain altivec instructions.
8366 * config/rs6000/darwin-fpsave.asm: New file.
8367 * config/rs6000/darwin-vecsave.asm: New file.
8368 * config/rs6000/darwin-world.asm: New file.
8369
8370 2004-03-31 Zack Weinberg <zack@codesourcery.com>
8371
8372 * gengtype-yacc.y (option, stringseq): Add missing
8373 terminating semicolon.
8374
8375 2004-03-30 David Edelsohn <edelsohn@gnu.org>
8376
8377 * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
8378 tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
8379 tls_dtprel_ha_32, tls_dtprel_ha_64,
8380 tls_dtprel_lo_32, tls_dtprel_lo_64,
8381 tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
8382 tls_tprel_ha_32, tls_tprel_ha_64,
8383 tls_tprel_lo_32, tls_tprel_lo_64,
8384 tls_got_tprel_32, tls_got_tprel_64,
8385 tls_tls_32, tls_tls_64): Replace register_operand with
8386 gpc_reg_operand.
8387
8388 2004-03-30 Mostafa Hagog <mustafa@il.ibm.com>
8389
8390 * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
8391 *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
8392 *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
8393 *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
8394 *ctrdi_internal6): Replace register_operand with
8395 nonimmediate_operand.
8396
8397 2004-03-29 Fariborz Jahanian <fjahanian@apple.com>
8398
8399 * fold-const.c (fold): Reassociate multiply expression
8400 with an adjacent non-multiply expression to use
8401 architecture's multiply-add instruction.
8402
8403 2004-03-30 Zack Weinberg <zack@codesourcery.com>
8404
8405 * gengtype.c (create_option): New function.
8406 * gengtype.h: Prototype it.
8407 * gengtype-yacc.y (stringseq): New rule.
8408 (option): Use create_option. Add new bare ID production. Use
8409 stringseq, not STRING directly.
8410
8411 * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
8412 * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
8413 * varray.h, config/alpha/alpha.c:
8414 Use new shorter form of GTY markers.
8415
8416 * doc/gty.texi: Rewrite.
8417
8418 2004-03-30 Andrew Pinski <pinskia@physics.uc.edu>
8419
8420 * config/darwin.c (machopic_function_base_name):
8421 Remove current_name and getting the name of the
8422 current function.
8423
8424 2004-03-30 Nick Clifton <nickc@redhat.com>
8425
8426 * config/arm/arm.md (thumb_jump): Reduce the backward branch
8427 range, and increase the forward branch range, to allow for
8428 the fact that the PC will be off by 4.
8429
8430 2004-03-30 Alan Modra <amodra@bigpond.net.au>
8431
8432 * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
8433
8434 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
8435
8436 * config/rs6000/rs6000.c (output_vec_const_move):
8437 Find all cases of EASY_VECTOR_15_ADD_SELF.
8438 (easy_vector_constant_add_self): Accept
8439 all vector constant loadable by vsplt* and vadd*.
8440 (easy_vector_same): Use easy_vector_splat_const.
8441 (easy_vector_const): Use easy_vector_splat_const.
8442 (easy_vector_splat_const): New function.
8443 (gen_easy_vector_constant_add_self): New function.
8444
8445 * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
8446 New prototype.
8447
8448 * config/rs6000/altivec.md (movv4si splitter): Change to
8449 emit move insn with halfed vector constant.
8450 (*movv8hi splitter): Likewise.
8451 (*movv16qi splitter): Likewise.
8452
8453 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
8454
8455 PR 11591
8456 * config/rs6000/rs6000.c (rs6000_legitimate_address):
8457 Allow any offset to argument pointer in no-strict case.
8458
8459 2004-03-30 Jan Hubicka <jh@suse.cz>
8460
8461 * toplev.c (backend_init): Add missing call to inint_optimization_passes.
8462 * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
8463 dump file in non-unit-at-a-time mode.
8464
8465 2004-03-29 Hans-Peter Nilsson <hp@axis.com>
8466
8467 * config/cris/cris.h: Correct #ifdef to test for
8468 HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
8469 HAVE_AS_MUL_BUG_ABORT_OPTION.
8470
8471 2004-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8472
8473 * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
8474 the address inside the old RTL.
8475
8476 2004-03-28 Zack Weinberg <zack@codesourcery.com>
8477
8478 * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
8479 (struct c_binding, struct c_scope): Add chain_next
8480 attributes to GTY markers.
8481 (struct lang_identifier, struct lang_tree_node): Define
8482 here...
8483 * c-tree.h: ... not here. No longer need to declare struct
8484 c_binding either. Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
8485 * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
8486 to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
8487
8488 PR 14734, 11944
8489 * c-decl.c (get_parm_info): If error_mark_node is encountered
8490 in the bindings chain, unbind and discard it; don't abort.
8491
8492 2004-03-28 Olga Golovonevsky <olga@il.ibm.com>
8493 Dorit Naishlos <dorit@il.ibm.com>
8494
8495 * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
8496 one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
8497
8498 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
8499
8500 * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
8501
8502 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
8503 (m68hc11_attribute_table): New attribute "page0" to mark a global
8504 variable as being allocated from within page0 section.
8505 (m68hc11_encode_label): New function.
8506 (m68hc11_strip_name_encoding): New function.
8507 (m68hc11_page0_symbol_p): New function.
8508 (m68hc11_indirect_p): Accept global variables marked in page0.
8509 (m68hc11_encode_section_info): Lookup "page0" attribute.
8510
8511 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
8512 represents access to page0 variables.
8513
8514 * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
8515 ("*logicalsi3_silshl16_zext"): Likewise.
8516 ("*ashldi3_const32"): Likewise.
8517 (peephole2 ashift): Likewise.
8518
8519 2004-03-28 Joseph S. Myers <jsm@polyomino.org.uk>
8520
8521 * c-tree.h (C_DECL_REGISTER): New.
8522 * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
8523 finish_decl, grokdeclarator, get_parm_info), c-typeck.c
8524 (build_array_ref, c_mark_addressable): Set and use it.
8525 * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
8526 Allow structures with volatile fields to be declared register.
8527 Don't check TREE_ADDRESSABLE before warning about taking address
8528 of register.
8529 * c-decl.c (finish_decl): Don't allow structures with volatile
8530 fields to be placed in named register.
8531 * doc/trouble.texi: Remove reference to structures with volatile
8532 fields in registers.
8533
8534 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8535
8536 * function.c (thread_prologue_and_epilogue): Move
8537 NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
8538 before the epilogue.
8539
8540 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
8541
8542 * expr.c (store_constructor): Use gen_int_mode to correctly
8543 sign-extend CONST_INT value.
8544
8545 2004-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8546
8547 * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
8548 * builtins.def (DEF_C94_BUILTIN): New. Add wctype builtins.
8549 * doc/extend.texi: Likewise.
8550
8551 2004-03-26 Diego Novillo <dnovillo@redhat.com>
8552
8553 * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
8554 with TYPE_ORIG_SIZE_TYPE.
8555
8556 2004-03-25 Aldy Hernandez <aldyh@redhat.com>
8557
8558 PR 14219
8559 * c-typeck.c (build_binary_op): Do not allow comparisons of
8560 vectors.
8561
8562 2004-03-26 James A. Morrison <ja2morri@uwaterloo.ca>
8563
8564 * config.gcc: Remove sparc-tti-*.
8565 * config/sparc/pbd.h: Delete.
8566
8567 * config/sparc/sol2.h: Remove note about Sun OS 4.x.
8568 * config/sparc/aout.h: Likewise.
8569
8570 * config/sparc/sparc.h: Remove if 0'd code.
8571 * config/sparc/sparc.md (call): Remove if 0'd code.
8572 (call_value): Likewise.
8573 (nonlocal_goto): Likewise.
8574 (unimp_insn): Delete.
8575
8576 2004-03-25 Roger Sayle <roger@eyesopen.com>
8577
8578 * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
8579 BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
8580
8581 2004-03-25 Richard Henderson <rth@redhat.com>
8582
8583 PR 11527
8584 * c-typeck.c (pop_init_level): Emit pending init elements earlier
8585 rather than later.
8586
8587 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8588
8589 * builtins.c (fold_builtin): Fix error in last change.
8590
8591 2004-03-25 Richard Sandiford <rsandifo@redhat.com>
8592
8593 * config/mips/mips.h: Formatting fix.
8594
8595 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8596
8597 * builtins.def: Add ctype builtins.
8598 * doc/extend.texi: Likewise.
8599
8600 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8601
8602 * builtins.c (fold_builtin): Add new builtin optimizations for
8603 sqrt and/or cbrt.
8604 * fold-const.c (fold): Likewise.
8605
8606 2004-03-25 David Edelsohn <edelsohn@gnu.org>
8607
8608 * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
8609 (rs6000_sched_groups): New variable.
8610 (processor_target_table): Add power5.
8611 (rs6000_override_options): Set rs6000_sched_insert_nops,
8612 rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
8613 from rs6000_sched_groups.
8614 (output_cbranch): Use rs6000_always_hint.
8615 (rs6000_variable_issue): Use rs6000_sched_groups.
8616 (rs6000_adjust_cost): Add CPU_POWER5.
8617 (is_microcoded_insn): Use rs6000_sched_groups.
8618 (is_dispatch_slot_restricted): Use rs6000_sched_groups.
8619 Return 2 for POWER5 cracked instructions.
8620 (is_cracked_insn): Use rs6000_sched_groups.
8621 (is_branch_slot_insn): Use rs6000_sched_groups.
8622 (rs6000_issue_rate): Add CPU_POWER5.
8623 (rs6000_sched_finish): Use rs6000_sched_groups.
8624 (rs6000_rtx_costs): Add PROCESSOR_POWER5.
8625 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
8626 (DEFAULT_SCHED_COSTLY_DEP): Delete.
8627 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
8628 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
8629 * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
8630 * config/rs6000/power5.md: New file.
8631 * doc/invoke.texi: Add power5 option.
8632
8633 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
8634
8635 * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
8636 config/arm/arm.c, objc/objc-act.c: Fix comment typos.
8637 * doc/invoke.texi: Fix a typo.
8638
8639 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
8640
8641 PR optimization/9707.
8642 * stmt.c (emit_case_nodes): Emit equality comparisons instead
8643 of recursing if both children are single-valued cases with no
8644 children.
8645
8646 2004-03-25 Paul Brook <paul@codesourcery.com>
8647
8648 * config/arm/arm.c (vfp_print_multi): Remove.
8649 (arm_output_fldmx): New function.
8650 (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
8651 (arm_expand_prologue): Update to match.
8652 (arm_get_vfp_saved_size): New Function.
8653 (arm_get_frame_offsets): Use it.
8654 (arm_output_epilogue): Use new functions.
8655
8656 2004-03-24 Richard Henderson <rth@redhat.com>
8657
8658 * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
8659 (reg_known_value, reg_known_value_size): Likewise; make static.
8660 (reg_known_equiv_p): Make static.
8661 (clear_reg_alias_info): Update for new indexing.
8662 (get_reg_known_value, set_reg_known_value): New.
8663 (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
8664 (canon_rtx): Use them.
8665 (init_alias_analysis): Likewise. Allocate reg_known_value with gc.
8666 Don't play queer offsetting games with reg_known_value and
8667 reg_known_equiv_p.
8668 (end_alias_analysis): Free reg_known_value with gc.
8669 * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
8670 * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
8671 (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
8672 functions instead.
8673
8674 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
8675
8676 * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
8677 config/i386/mmintrin.h: Update copyright.
8678
8679 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
8680
8681 * configure.ac: Add --enable-werror-always (for top level bootstrap
8682 support).
8683 * configure: Regenerate.
8684
8685 2004-03-24 Ziemowit Laski <zlaski@apple.com>
8686
8687 * objc/objc-act.c (objc_comptypes): Treat comparisons
8688 between 'Class' and '<class> *' as explicitly invalid.
8689
8690 2004-03-24 David Edelsohn <edelsohn@gnu.org>
8691
8692 * doc/invoke.texi (-frename-registers): Add enabled at -O3.
8693 (-fprofile-values): Add enabled with profile-{generate,use}.
8694 (-fvpt): Same.
8695 (-ftracer): Add enabled with profile-use.
8696 (-funit-at-a-time): Add enabled at -O2,-O3.
8697 (-funroll-loops): Add enabled with profile-use.
8698 (-funswitch-loops): Add enabled with profile-use. Remove duplicates.
8699 (max-gcse-passes): Mention default.
8700 (max-cse-path-length): Mention default.
8701
8702 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
8703
8704 * Makefile.in (STRICT2_WARN): Reorder.
8705 * configure.ac: Check for -Wold-style-definition, and use it
8706 in strict1_warn if it's available.
8707 * configure: Regnerate.
8708
8709 2004-03-24 Paul Brook <paul@nowt.org>
8710
8711 * config.gcc <arm>: Add --with-abi=
8712 * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
8713 thumb_far_jump_used): Remove prototypes.
8714 (arm_needs_doubleword_align): Add prototype.
8715 (thumb_compute_initial_elimination_offset): Ditto.
8716 * config/arm/arm.c (arm_get_frame_offsets): New function.
8717 (use_return_insn, output_return_instruction, arm_output_epilogue,
8718 arm_output_function_epilogue, arm_compute_initial_elimination_offset,
8719 arm_expand_prologue, thumb_expand_epilogue): Use it.
8720 (arm_abi, target_abi_name, all_arm_abis): New variables.
8721 (arm_override_options): Set them. Set structure padding for AAPCS.
8722 (arm_return_in_memory): Update ABI check.
8723 (arm_init_cumulative_args): Initialize can_split.
8724 (arm_needs_doubleword_align): New function.
8725 (arm_function_arg): Don't split args after pushing to stack. Handle
8726 doubleword/even reg alignment.
8727 (arm_va_arg): Handle all doubleword aligned args.
8728 (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
8729 on ABI, not CPU.
8730 (arm_compute_save_reg0_reg12_mask): Fix comment.
8731 (thumb_get_frame_size, thumb_get_frame_size): Remove.
8732 (thumb_jump_far_used_p): Remove superfluous argument. Return save
8733 value for alignment.
8734 (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
8735 to match.
8736 (thumb_compute_initial_elimination_offset): New function.
8737 (thumb_expand_prologue): Use arm_get_frame_offsets. Remove
8738 unneccessary rounding.
8739 * config/arm/arm.h (target_abi_name): Declare.
8740 (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
8741 arm_abi_type, ARM_DEFAULT_ABI): Define.
8742 (ARM_FLAG_ATPCS): Remove.
8743 (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
8744 (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
8745 (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
8746 TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
8747 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
8748 Contitionalize on ABI, not CPU.
8749 (struct arm_stack_offsets): Define.
8750 (struct machine_function): Add stack_offsets. Remove frame_size.
8751 (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
8752 pushed.
8753 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
8754 doubleword alignment.
8755 (THUMB_INITIAL_ELIMINATION_OFFSET,
8756 ARM_INITIAL_ELIMINATION_OFFSET): Remove.
8757 (INITIAL_ELIMINATION_OFFSET): Call functions directly.
8758 * config/arm/arm.md (align_8): Enable for all targets.
8759 * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
8760 (ARM_DEFAULT_ABI): Define.
8761 * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
8762 -mstructure-size-boundary.
8763
8764 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
8765
8766 * configure.ac: Check for -Wno-variadic-macros; don't use
8767 -pedantic (in stage 1 or a simple 'make all') unless it's available,
8768 and if it's available, use it. Also, clean up check for
8769 -Wno-long-long.
8770 * configure: Regenerate.
8771
8772 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
8773
8774 * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
8775 * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
8776 (MULTILIB_DEFAULTS): Use it.
8777 (MIPS_CPU_STRING_DEFAULT): Remove.
8778 (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
8779 (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120. Make
8780 EABI64 -mlong32 the default ABI. Enforce the default architecture.
8781 * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
8782 march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
8783 (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
8784 (MULTILIB_EXCEPTIONS): Change choice of multilibs. Update comments
8785 accordingly.
8786
8787 2004-03-24 DJ Delorie <dj@redhat.com>
8788 Richard Sandiford <rsandifo@redhat.com>
8789
8790 * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
8791 (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
8792 (ASM_SPEC): Pass down -mfix-vr4122-bugs.
8793 * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
8794 in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
8795 (mips_init_libfuncs): Use special functions for divsi3 and modsi3
8796 if TARGET_FIX_VR4122.
8797 * config/mips/mips.md (define_attr length): Account for nops inserted
8798 after macc and dmult when using -mfix-vr4122-bugs.
8799 (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
8800 * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
8801 LIB2FUNCS_EXTRA. Add config/mips/vr4122-div.S.
8802 * config/mips/vr4122-div.S: New file.
8803 * doc/invoke.texi: Document -mfix-vr4122-bugs.
8804
8805 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
8806
8807 * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
8808 (TARGET_MIPS4130): New macro.
8809 (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
8810 * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
8811 (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
8812 with PROCESSOR_R4130.
8813 * config/mips/mips.md (define_attr cpu): Add r4130.
8814 * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
8815
8816 2004-03-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8817 Richard Sandiford <rsandifo@redhat.com>
8818
8819 * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
8820
8821 2004-03-24 Alexandre Oliva <aoliva@redhat.com>
8822
8823 PR preprocessor/14438
8824 * cpplib.c (do_pragma): Remove line_change call after pragma
8825 handler.
8826
8827 2004-03-23 Ian Lance Taylor <ian@wasabisystems.com>
8828
8829 * doc/extend.texi (ARM Built-in Functions): Replace with correct
8830 declarations.
8831
8832 2004-03-23 Roger Sayle <roger@eyesopen.com>
8833
8834 * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
8835 if flag_unsafe_math_optimizations.
8836 * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
8837 and TARGET_80387 expand using truncdfsf2_noop pattern.
8838 (truncxfsf2): Likewise using truncxfsf2_noop.
8839 (truncxfdf2): Likewise using truncxfdf2_noop.
8840 (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
8841
8842 2004-03-23 Ziemowit Laski <zlaski@apple.com>
8843
8844 * hooks.c (hook_constcharptr_tree_null): New hook.
8845 * hooks.h (hook_constcharptr_tree_null): New prototype.
8846 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
8847 * target.h (mangle_fundamental_type): New target hook.
8848 * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
8849 target hook at rs6000_mangle_fundamental_type.
8850 (rs6000_mangle_fundamental_type): New function.
8851 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
8852
8853 2004-03-23 Zack Weinberg <zack@codesourcery.com>
8854
8855 PR 12267, 12391, 12560, 13129, 14114, 14133
8856 * c-tree.h: Forward declare struct c_binding. Declare
8857 c_override_bindings_to_false. Update prototypes.
8858 (struct lang_identifier): Update comments. Change fields to be
8859 struct c_binding *.
8860 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
8861 (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
8862 (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
8863 (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
8864 * c-common.h: Update prototypes.
8865 * c-decl.c (struct c_scope): Update commentary. Remove names,
8866 names_last, parms, parms_last, tags, and shadowed fields. Add
8867 bindings and depth fields.
8868 (scope_freelist): Move to more appropriate location.
8869 (c_print_identifier): Update for changes to struct lang_identifier.
8870 (objc_mark_locals_volatile): Update for new bindings structures.
8871 (global_bindings_p): Honor c_override_global_bindings_to_false.
8872 (pushlevel): Rename to push_scope; take no arguments; use the
8873 scope_freelist; initialize scope->depth and check for overflow.
8874 (poplevel): Rename to pop_scope; totally rewritten for new bindings
8875 structures.
8876 (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
8877 C_DECL_INVISIBLE, for certain decisions. Adjust some diagnostics.
8878 Improve some commentary. Adjust handling of forward parm decls.
8879 (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
8880 Preserve C_DECL_IN_EXTERNAL_SCOPE.
8881 (warn_if_shadowing): Correct indentation. Improve diagnostics.
8882 (pushdecl): Remove unnecessary assertion. Short-circuit anonymous
8883 decls. Rewrite for new bindings structures. Improve commentary.
8884 Eliminate the copy_node call.
8885 (implicit_decl_warning): Use the "diag" idiom (as seen in
8886 locate_old_decl) to reduce code duplication; call locate_old_decl
8887 if appropriate. Relocate to remove need for forward declaration.
8888 (implicitly_declare): Adjust for new bindings structures. Kludge
8889 around Objective-C not-really-builtin functions.
8890 (undeclared_variable): Improve diagnostics. If current_function_decl
8891 is nonnull but current_function_scope is null, use current_scope.
8892 Use bind.
8893 (lookup_tag): Adjust for new bindings structures. Kludge around
8894 Objective-C's tag declarations that wind up in the external scope.
8895 (lookup_name): Adjust for new bindings structures. Kludge around
8896 c-common.c's pseudo-typedefs that wind up in the external scope.
8897 (lookup_name_current_level): Rename lookup_name_in_scope; take a
8898 second argument indicating the scope to examine; rewrite for
8899 new bindings structures.
8900 (c_init_decl_processing): Adjust for renamed functions. Do not
8901 initialize current_file_decl, first_builtin_decl, last_builtin_decl.
8902 First scope pushed is the external scope, not the global scope.
8903 (builtin_function): Use bind, not pushdecl. Adjust other bits
8904 for new data structures. Keep track of builtins that should be
8905 made visible automatically.
8906 (start_decl): Adjust diagnostics. Remove unnecessary call to
8907 expand_decl.
8908 (grokparms): Return 0 if arg_types is error_mark_node.
8909 (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
8910 reversed sense. Rewrite for new bindings structures. Do not
8911 leave any decls in the scope, to prevent pop_scope from doing
8912 contradictory things with them.
8913 (finish_struct, finish_enum): Remove redundant diagnostics.
8914 (build_enumerator): Don't cascade diagnostics for error_mark_node.
8915 Mark location where -pedantic changes the meaning of the program.
8916 (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
8917 parameter decls into the function's scope structure using bind.
8918 Warn here about function definitions in the wrong style.
8919 Adjust diagnostics.
8920 (store_parm_decls): Correct the determination of whether a
8921 function was defined with a prototype.
8922 (c_write_global_declarations): Operate on all file decls and on
8923 the external scope. Split body of the loop to...
8924 (c_write_global_declarations_1): ... this new function, to avoid
8925 code duplication.
8926 (truly_local_externals, first_builtin_decl, last_builtin_decl)
8927 (make_scope, pop_scope, in_parm_level_p, set_block)
8928 (any_external_decl, record_external_decl, bind_label, getdecls)
8929 (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
8930 (c_reset_state): Delete.
8931 (visible_builtins, c_override_global_bindings_to_false)
8932 (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
8933 (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
8934 (external_scope, binding_freelist, bind, free_binding_and_advance)
8935 (push_file_scope, pop_file_scope): New.
8936 (pushtag, pushdecl_top_level, lookup_label, declare_label)
8937 (define_label, c_make_fname_decl, finish_decl)
8938 (mark_forward_parm_decls, build_compound_literal)
8939 (grokdeclarator, start_function, check_for_loop_decls)
8940 (identifier_global_value, record_builtin_type): Minor adjustments
8941 for new bindings structures. Improve diagnostics and commentary.
8942 * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
8943 pushlevel/poplevel respectively.
8944 (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
8945 * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
8946 Warn about YYDEBUG not being defined only if -dy. Remove no-longer-
8947 correct loop over multiple translation units; call fatal_error if
8948 requested to compile more than one file at once. (This disables
8949 IMA temporarily - an up-front error being preferable to a crash.)
8950 * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
8951 (all actions): Adjust calls to pushlevel/poplevel.
8952 (parsing_iso_function_signature): Delete.
8953 (extdef_1): Fold into extdef.
8954 (old_style_parm_decls_1): Fold into old_style_parm_decls. Don't
8955 warn here about function definitions in the wrong style.
8956 (after_tyle_declarator, parm_declarator_starttypename)
8957 (parm_declarator_nostarttypename, notype_declarator): Remove
8958 commented-out productions.
8959 (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
8960 an empty TREE_LIST node. Adjust calls to get_parm_info.
8961 (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
8962 to suppress -Wold-style-definition after this error.
8963 (c_parse_file): Don't clear the binding stack or call
8964 finish_fname_decls here. Correct comment.
8965 * c-typeck.c (same_translation_unit_p): Export.
8966 (common_type): Use c_override_global_bindings_to_false, not
8967 pushlevel/poplevel/declare_parm_level.
8968 * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
8969 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
8970 and LANG_HOOKS_GETDECLS with do-nothing stubs.
8971 * objc/objc-lang.c: Likewise.
8972 * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
8973 get_parm_info.
8974 (OBJC_VOID_AT_END): Delete; replace all uses
8975 with void_list_node.
8976 (generate_forward_declaration_to_string_table): Delete.
8977 * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
8978
8979 * coverage.c (create_coverage): Don't pushdecl anything.
8980 * langhooks.c (lhd_clear_binding_stack): Call
8981 lang_hooks.decls.poplevel, not poplevel.
8982 * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
8983 circular list rather than going into an infinite loop.
8984
8985 2004-03-23 Olivier Hainque <hainque@act-europe.fr>
8986
8987 * optabs.c (expand_binop): When synthesizing double word rotates
8988 from single word shifts, use a new register target if the provided
8989 target is not a REG already.
8990
8991 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8992
8993 * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
8994 * c-common.c (handle_mode_attribute): Add extra arg to
8995 build_pointer_type_for_mode and build_reference_type_for_mode.
8996 * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
8997 for INTEGER_CST.
8998 * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
8999 Chain pointers via TYPE_NEXT_PTR_TO.
9000 (build_reference_type_for_mode): Similarly.
9001 (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
9002 and build_reference_type_for_mode.
9003 (tree_check4_failed): New function.
9004 * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
9005 (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
9006 (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
9007 Add check.
9008
9009 2004-03-23 Roger Sayle <roger@eyesopen.com>
9010
9011 * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
9012 A is nonnegative or B is nonnegative. Similarly A|B is nonnegative
9013 when both A and B are nonnegative.
9014 (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
9015 nonzero.
9016
9017 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
9018
9019 * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
9020 VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
9021
9022 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
9023
9024 PR optimization/14669
9025 * fold-const.c (fold): Only unwiden integer comparisons for equality
9026 and inequality operators, or when the signedness doesn't change.
9027
9028 2004-03-23 Jakub Jelinek <jakub@redhat.com>
9029
9030 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
9031 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
9032 * config/sparc/t-linux: New file.
9033
9034 2004-03-23 Richard Sandiford <rsandifo@redhat.com>
9035
9036 * gcse.c (can_assign_to_reg_p): New function, split out from...
9037 (want_to_gcse_p): ...here.
9038 (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
9039 the rhs of a store.
9040
9041 2004-03-22 Diego Novillo <dnovillo@redhat.com>
9042
9043 * c-typeck.c (same_translation_unit_p): Fix pasto.
9044
9045 2004-03-22 David Edelsohn <edelsohn@gnu.org>
9046
9047 * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
9048 (PARAM_MAX_SCHED_REGION_INSNS): New.
9049 * sched-rgn.c: Include params.h
9050 (MAX_RGN_BLOCKS): Delete.
9051 (MAX_RGN_INSNS): Delete.
9052 (too_large): Return bool. Convert to PARAM_VALUE.
9053 * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
9054 * doc/invoke.texi (param): Document max-sched-region-blocks and
9055 max-sched-region-insns.
9056
9057 2004-03-22 Joel Brobecker <brobecker@gnat.com>
9058
9059 * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
9060 for base types.
9061
9062 2004-03-22 Joel Brobecker <brobecker@gnat.com>
9063
9064 * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
9065 change.
9066
9067 2004-03-22 Jakub Jelinek <jakub@redhat.com>
9068
9069 PR c/14069
9070 * c-decl.c (finish_struct): Change type of incorrect flexible array
9071 field into error_mark_node.
9072
9073 2004-03-22 Andrew Pinski <pinskia@physics.uc.edu>
9074
9075 PR target/14580
9076 * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
9077 who are not local for Darwin PIC.
9078
9079 2004-03-22 Ulrich Weigand <uweigand@de.ibm.com>
9080
9081 * regrename.c (regrename_optimize): Set regs_ever_live for all
9082 registers introduced as replacement.
9083
9084 2004-03-22 Eric Botcazou <ebotcazou@libertysurf.fr>
9085
9086 PR middle-end/14470
9087 * expr.c (mark_queue): New function.
9088 (emit_insns_enqueued_after_mark): New function replacing
9089 emit_queue. Clear the body of emitted queued insns.
9090 (emit_queue): Call emit_insns_enqueued_after_mark.
9091 (store_expr): Mark the increment queue on entry. Emit
9092 only the incrementations queued when expanding the source.
9093
9094 2004-03-22 Nathanael Nerode <neroden@gcc.gnu.org>
9095
9096 * configure.ac: Allow --disable-coverage-flags (for the future benefit
9097 of top level bootstrap, and consistency). Reindent.
9098 * configure: Regenerate.
9099
9100 2004-03-21 Kazu Hirata <kazu@cs.umass.edu>
9101
9102 * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
9103 ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
9104 unnecessary casts.
9105
9106 2004-03-22 Danny Smith <dannysmith@users.sourceforge.net>
9107
9108 PR target/14291
9109 * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
9110 __MINGW32__.
9111
9112 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
9113
9114 * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
9115 to nonimmediate_operand.
9116 ("*doloop_di"): Likewise.
9117
9118 2004-03-21 Alexandre Oliva <aoliva@redhat.com>
9119
9120 * real.h (struct real_value): Use the same type for all
9121 bitfields. Rename exp to uexp.
9122 (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
9123 Adjust all uses of exp...
9124 * builtins.c: ... here, ...
9125 * emit-rtl.c: ... here, and ...
9126 * real.c: ... and here.
9127
9128 2004-03-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
9129
9130 * pretty-print.c (pp_base_maybe_space): New function.
9131 * pretty-print.h (pp_base_maybe_space): Declare.
9132 (pp_maybe_space): New macro.
9133
9134 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
9135
9136 * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
9137
9138 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
9139
9140 * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
9141 of using register multiplication cost.
9142 (expand_mult): Adapt choose_mult_variant call.
9143 (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
9144 of MODE; pass appropriate cost bound. Adjust result when
9145 performing signed multiplication by a negative constant.
9146 Don't use intermediate modes larger than word_mode.
9147
9148 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9149
9150 * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
9151 * emit-rtl.c (component_ref_for_mem_expr): Likewise.
9152 (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
9153 * explow.c (expr_size): Likewise.
9154 * expr.h (placeholder_list, find_placeholder): Deleted.
9155 * expr.c (store_constructor): Likewise.
9156 (get_inner_reference): Likewise. Also don't call find_placeholder.
9157 (placeholder_list, find_placeholder): Deleted.
9158 (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
9159 (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
9160 (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
9161 * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
9162 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
9163 Likewise.
9164 * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
9165 (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
9166 * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
9167 (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
9168 Clean up by using first_rtl_op.
9169 (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
9170 (substitute_placeholder_in_expr): New function.
9171 * tree.def (WITH_RECORD_EXPR): Deleted.
9172 * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
9173 (substitute_placeholder_in_expr): New.
9174
9175 2004-03-21 Andrew Pinski <pinskia@gcc.gnu.org>
9176
9177 * dojump.c (prefer_and_bit_test): Fix which part of
9178 the and_test is replaced.
9179
9180 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
9181
9182 * frontends.texi: Add missing line.
9183
9184 2004-03-21 Zack Weinberg <zack@codesourcery.com>
9185 Chris Devers <cdevers@pobox.com>
9186 Joseph S. Myers <jsm@polyomino.org.uk>
9187
9188 * doc/frontends.texi: Rewrite.
9189 * doc/gcc.texi: Update last modification date.
9190
9191 2004-03-21 Josef Zlomek <zlomekj@suse.cz>
9192
9193 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
9194 message before redirecting the edge.
9195
9196 2004-03-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9197
9198 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
9199 flag.
9200 * explow.c (force_not_mem): Set REG_POINTER flag according to
9201 MEM_POINTER one.
9202 * rtl.h (MEM_POINTER): New macro.
9203 (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
9204 for MEM_POINTER.
9205
9206 2004-03-20 Roger Sayle <roger@eyesopen.com>
9207
9208 PR target/13889
9209 * cse.c (fold_rtx): Avoid substituting constants into unary
9210 conversion operations.
9211
9212 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9213
9214 * fold-const.c (fold): Replace "expr" with "t".
9215
9216 2004-03-20 Ian Lance Taylor <ian@wasabisystems.com>
9217
9218 PR c/12373
9219 * c-typeck.c (tagged_types_tu_compatible_p): Don't use
9220 DECL_ORIGINAL_TYPE if there isn't one.
9221
9222 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9223
9224 * fold-const.c (fold): Replace "final_type" with "type".
9225 Remove variable "final_type".
9226
9227 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9228
9229 * fold-const.c (fold): Constify "type".
9230 Replace "TREE_TYPE (t)" with "type".
9231
9232 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9233
9234 * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
9235 dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
9236 via (*targetm.foo) () with targetm.foo ().
9237
9238 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
9239
9240 PR other/14630
9241 * doc/install.texi: Add info directory category and entry.
9242
9243 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9244
9245 * fold-const.c (fold): Replace "t" with "tem" where it is used
9246 as a temporary variable. Remove "orig_t" and all of its uses.
9247
9248 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9249
9250 * fold-const.c (fold): Remove variable "invert".
9251 Move the handling of relational expressions that can be folded
9252 to a constant ...
9253 (fold_relational_const): ... here.
9254 (tree_expr_nonzero_p): New.
9255
9256 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
9257
9258 PR c/14635
9259 * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
9260 DEF_GCC_BUILTIN.
9261
9262 2004-03-20 Richard Sandiford <rsandifo@redhat.com>
9263
9264 * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
9265 (GTFILES): Add $(srcdir)/dojump.h.
9266 (gt-dojump.h): New dependency.
9267 * dojump.c (and_reg, and_test, shift_test): New static variables.
9268 (prefer_and_bit_test): New function.
9269 (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
9270
9271 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
9272
9273 * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
9274 expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
9275 reorg.c, tree.h: Fix comment typos.
9276
9277 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
9278
9279 * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
9280 c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
9281 cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
9282 haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
9283 sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
9284 vmsdbgout.c: Replace calls via (*targetm.foo) () with
9285 targetm.foo ().
9286
9287 2004-03-19 Ziemowit Laski <zlaski@apple.com>
9288
9289 * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
9290 vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
9291 always_inline attribute.
9292 * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
9293 Treat expansion as completed even if literal argument is
9294 invalid (so that other expansions are not tried in vain).
9295
9296 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
9297
9298 * loop-doloop.c (add_test): Replace GEN_INT (0) with
9299 const0_rtx.
9300
9301 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
9302
9303 * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
9304 ...
9305 (fold_abs_const): ... here.
9306
9307 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9308
9309 * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
9310
9311 2004-03-19 Denis Chertykov <denisc@overta.ru>
9312
9313 PR target/11520
9314 * config/avr/avr.md ("call_insn"): Handle explicit integer
9315 specially.
9316 (call_value_insn): Likewise.
9317
9318 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9319
9320 * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
9321
9322 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
9323
9324 * fold-const.c (negate_expr): Move the handling of constants
9325 ...
9326 (fold_negate_const): ... here.
9327
9328 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9329
9330 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
9331 * langhooks.h (struct lang_hooks_for_types): New field hash_types.
9332 * tree.c (debug_no_type_hash): Deleted.
9333 (type_hash_canon): Abort if passed a variant.
9334 Check lang_hooks.types.hash_types.
9335 (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
9336 (build_array_type): Remove unnecessary allocation of pointer type.
9337 (build_complex_type): Properly qualify resulting type.
9338
9339 2004-03-19 Paolo Bonzini <bonzini@gnu.org>
9340
9341 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
9342
9343 2004-03-19 Richard Sandiford <rsandifo@redhat.com>
9344
9345 * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
9346 (expand_mult): ...here.
9347 (extract_high_half): New, split out from expand_mult_highpart.
9348 (expand_highpart_optab): Likewise. Don't clobber target prematurely.
9349 (expand_highpart): Evaluate the cost of a shift/add sequence,
9350 then see if any of the specialized optabs are cheaper.
9351
9352 2004-03-18 Ian Lance Taylor <ian@wasabisystems.com>
9353
9354 * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
9355
9356 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9357
9358 * convert.c (convert_to_real): Add more math builtins.
9359
9360 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9361
9362 * convert.c (convert_to_real): Reformat using switch stmt.
9363
9364 2004-03-18 Mark Mitchell <mark@codesourcery.com>
9365
9366 * c-common.c (pointer_int_sum): Do not complain about using
9367 pointers to pointers-to-members.
9368
9369 2004-03-18 Kazu Hirata <kazu@cs.umass.edu>
9370
9371 * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
9372 have moved to the target hooks structure".
9373
9374 2004-03-18 James E Wilson <wilson@specifixinc.com>
9375
9376 * config/mips/mips.md (type): Split move into arith and fmove. Split
9377 hilo into mthilo and mfhilo. Add trap. Delete icmp. Fix all uses.
9378 * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
9379 Likewise.
9380 * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
9381 Likewise.
9382 * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
9383 rm7_fp_quick): Likewise.
9384 * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
9385 rm9k_fquick): Likewise.
9386 * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
9387 Likewise.
9388 (ir_sr70_icmp): Delete.
9389
9390 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9391
9392 * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
9393 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
9394 (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
9395 (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
9396 (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
9397 Protect with proper check.
9398 (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
9399 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
9400 * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
9401 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
9402 * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
9403 * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
9404 not TYPE_FIELDS.
9405 * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
9406
9407 2004-03-18 Mostafa Hagog <mustafa@il.ibm.com>
9408
9409 * gcse.c (eliminate_partially_redundant_loads): Reject change if
9410 dest is set between beginning and current insn.
9411
9412 2004-03-18 Mark Mitchell <mark@codesourcery.com>
9413
9414 * c-decl.c (grokdeclarator): Do not complain about redeclaring
9415 visible "static" identifiers "extern" in a local scope.
9416 * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
9417 post-increments/decrements.
9418
9419 2004-03-18 Bob Wilson <bob.wilson@acm.org>
9420
9421 * config/xtensa/xtensa.c (current_function_arg_words): Delete.
9422 (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
9423 (xtensa_va_start): Remove assignment to current_function_arg_words.
9424
9425 2004-03-18 Richard Sandiford <rsandifo@redhat.com>
9426
9427 * alias.c (record_set): Detect the case where a register is assigned
9428 a new value that has the same base term as the old one.
9429
9430 2004-03-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9431
9432 * doloop.c: Removed.
9433 * loop-doloop.c: New file.
9434 * Makefile.in (doloop.o): Remove.
9435 (loop-doloop.o): New.
9436 * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
9437 * cfgloopanal.c (get_loop_level): New function.
9438 * loop-iv.c (iv_number_of_iterations): Handle case when loop
9439 is leaved immediatelly.
9440 * loop.c (strength_reduce): Do not call doloop optimization.
9441 * loop.h (LOOP_BCT): Removed.
9442 * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
9443 (rest_of_handle_loop2): Call doloop_optimize_loops.
9444 (rest_of_compilation): Test for optimizations moved to
9445 rest_of_handle_loop2.
9446
9447 2004-03-17 Fariborz Jahanian <fjahanian@apple.com>
9448
9449 * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
9450 for mixed mode.
9451 (rs6000_emit_prologue): Ditto.
9452 (rs6000_emit_epilogue): Ditto.
9453 * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
9454 macro for mixed mode.
9455
9456 2004-03-18 Jan Hubicka <jh@suse.cz>
9457
9458 * predict.c (propagate_freq): Compute correctly frequency of
9459 EXIT_BLOCK.
9460
9461 2004-03-17 Eric Christopher <echristo@redhat.com>
9462
9463 * builtins.c (apply_args_size): Use reg_raw_mode.
9464 (apply_result_size): Ditto.
9465
9466 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9467
9468 PR target/14620
9469 * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
9470
9471 2004-03-17 Jakub Jelinek <jakub@redhat.com>
9472
9473 * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
9474 32-bit builds when defaulting to 32-bit.
9475
9476 2004-03-17 Jan Hubicka <jh@suse.cz>
9477
9478 * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
9479 array.
9480
9481 2004-03-17 James E Wilson <wilson@specifixinc.com>
9482
9483 * config/mips/mips.md (zero_extendsidi2): Add length attribute.
9484 (hazard_nop): Change type to nop.
9485 (type): Split arith into arith, shift, slt, clz. Delete darith.
9486 Fix all uses. Change arith to multi if more than one insn emitted.
9487 * config/mips/5400.md (ir_vr54_arith): Likewise.
9488 * config/mips/5500.md (ir_vr55_arith): Likewise.
9489 * config/mips/7000.md (rm7_int_other): Likewise.
9490 * config/mips/9000.md (rm9k_int): Likewise.
9491 * config/mips/sr71k.md (ir_sr70_arith): Likewise.
9492
9493 2004-03-17 Joel Brobecker <brobecker@gnat.com>
9494
9495 * dwarf2out.c (subrange_type_die): Define new variable "subtype"
9496 to hold the subtype tree instead of recomputing it several times.
9497
9498 2004-03-17 Kazu Hirata <kazu@cs.umass.edu>
9499
9500 * config/mn10300/mn10300.c (notice_update_cc): Don't handle
9501 CC_INVERT.
9502 * config/mn10300/mn10300.md (cc): Remove "invert".
9503
9504 2004-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9505
9506 * builtins.c (integer_valued_real_p): Add builtin rint.
9507 (fold_builtin): Likewise.
9508 * convert.c (convert_to_real): Likewise.
9509
9510 * convert.c (convert_to_real): Fix typos in `long double'
9511 builtins.
9512
9513 2004-03-16 Mark Mitchell <mark@codesourcery.com>
9514
9515 PR c++/14481
9516 * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
9517 generated COMPOUND_EXPRs.
9518
9519 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9520
9521 * config/h8300/t-rtems (h8300-*-rtems*): New.
9522
9523 2004-03-16 Eric Christopher <echristo@redhat.com>
9524
9525 * doc/cppopts.texi(fwide-exec-charset): Fix typo.
9526
9527 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
9528
9529 * config/i386/i386-protos.h: Add a prototype for
9530 ix86_reverse_condition.
9531 * config/i386/i386.c (ix86_reverse_condition): New.
9532 * config/i386/i386.h (REVERSE_CONDITION): Use
9533 ix86_reverse_condition.
9534 * config/i386/i386.md: Use ix86_reverse_condition instead of
9535 REVERSE_CONDITION.
9536
9537 2004-03-16 J. Brobecker <brobecker@gnat.com>
9538
9539 * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
9540
9541 2004-03-16 Nathanael Nerode <neroden@gcc.gnu.org>
9542
9543 PR bootstrap/12974
9544 * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
9545
9546 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
9547
9548 * c-common.c (c_common_type_for_mode): Build vector types on
9549 demand.
9550 (handle_mode_attribute): Deprecate using the mode attribute
9551 to create vector types. Fix indentation.
9552 (vector_type_node_list): Remove.
9553 (handle_vector_size_attribute): Create vector types on demand.
9554 Strip a NON_LVALUE_EXPR from the attribute if there is one.
9555 * c-typeck.c (comptypes): Make vector types compatible if they
9556 have the same underlying mode.
9557 (convert_for_assignment): Use comptypes to convert between
9558 vector types.
9559 * tree.c (build_common_tree_nodes_2): Do not create vector types.
9560 * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
9561 vector types.
9562 * tree.h: Remove vector types.
9563 * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
9564 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
9565 (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
9566 V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
9567 * doc/extend.texi (Vector Types): Document how to use the
9568 vector_size attribute to create vectors, rather than mode.
9569
9570 * config/arm/mmintrin.h: Use vector_size attribute, not mode.
9571 * config/i386/emmintrin.h: Likewise.
9572 * config/i386/mmintrin.h: Likewise.
9573 * config/i386/xmmintrin.h: Likewise.
9574 * config/sh/ushmedia.h: Likewise.
9575
9576 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
9577
9578 * config/freebsd-spec.h, config/arc/arc-protos.h,
9579 config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
9580 config/arm/linux-gas.h, config/arm/semi.h,
9581 config/cris/cris-protos.h, config/i386/xm-djgpp.h,
9582 config/ia64/freebsd.h, config/mips/7000.md,
9583 config/mips/9000.md, config/ns32k/ns32k-protos.h,
9584 config/sparc/pbd.h: Update copyright.
9585
9586 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9587
9588 PR target/14577
9589 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff.
9590
9591 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
9592
9593 * combine.c (combine_simplify_rtx): Remove the "last"
9594 parameter and its documentation. Adjust recursive calls.
9595 (simplify_logical): Always perform the only simplification
9596 controlled by "last", if the simplified expression is
9597 actually different.
9598 (try_combine): Do not pass the "last" parameter to
9599 combine_simplify_rtx.
9600
9601 2004-03-16 Richard Sandiford <rsandifo@redhat.com>
9602
9603 PR target/14599
9604 * config/mips/mips.md (UNSPEC_GP): New constant.
9605 * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
9606 an UNSPEC instead of (reg $gp).
9607 (mips16_gp_pseudo_reg): Change accordingly.
9608 (print_operand): Print $gp directly when handling CONST_GP_P.
9609
9610 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
9611
9612 * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
9613 * longlong.h: Make code 68060 clean when compiling for m68060.
9614
9615 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
9616
9617 * config/m68k/m68k.md: Fix constraints for bitfield instructions.
9618 * doc/md.texi: Clarify description of "i" constraint.
9619
9620 2004-03-15 James E Wilson <wilson@specifixinc.com>
9621
9622 * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
9623 Split store into store, fpstore, fpidxstore. Fix all uses.
9624 * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
9625 Likewise.
9626 * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
9627 * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
9628 * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
9629 * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
9630 ir_sr70_fstore): Likewise.
9631
9632 2004-03-15 Richard Henderson <rth@redhat.com>
9633
9634 PR middle-end/14535
9635 * except.c (collect_one_action_chain): Record action for cleanup
9636 outer of exception spec.
9637
9638 2004-03-15 Ian Lance Taylor <ian@wasabisystems.com>
9639
9640 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
9641 Fix the check for abort and only do the mmap if we can.
9642
9643 2004-03-15 Eric Botcazou <ebotcazou@act-europe.fr>
9644
9645 * config/sparc/sparc.h: Rework comments about the code model
9646 in 64-bit environment and the mode 'Pmode'.
9647 * doc/invoke.texi (SPARC options): Rework description of the
9648 different code models supported in 64-bit environment.
9649
9650 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
9651
9652 * defaults.h (REVERSIBLE_CC_MODE): Define.
9653 * jump.c (reversed_comparison_code_parts): Don't check if
9654 REVERSIBLE_CC_MODE is defined.
9655
9656 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
9657
9658 * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
9659 et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
9660 hosthooks.h, params.h, ra-colorize.c, web.c,
9661 config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
9662 config/avr/avr-protos.h, config/avr/avr.md,
9663 config/fr30/fr30-protos.h, config/fr30/fr30.md,
9664 config/h8300/fixunssfsi.c, config/i386/darwin.h,
9665 config/i386/freebsd.h, config/i386/freebsd64.h,
9666 config/ia64/hpux.h, config/ia64/unwind-ia64.c,
9667 config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
9668 config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
9669 config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
9670 config/pa/pa64-regs.h, config/rs6000/aix41.h,
9671 config/rs6000/aix43.h, config/rs6000/host-darwin.c,
9672 config/sparc/aout.h, config/sparc/freebsd.h,
9673 config/sparc/litecoff.h, config/vax/vax-protos.h,
9674 doc/hostconfig.texi, doc/include/gcc-common.texi: Update
9675 copyright.
9676
9677 2004-03-15 Paul Brook <paul@codesourcery.com>
9678
9679 * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
9680
9681 2004-03-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
9682
9683 * c-pretty-print.c (pp_c_semicolon): Fix formatting.
9684 (pp_c_cv_qualifier): Document.
9685 (pp_c_space_for_pointer_operator): Likewise.
9686 (pp_c_integer_constant): Likewise.
9687 (pp_c_identifier): Likewise.
9688 (pp_c_init_declarator): Don't print function body.
9689
9690 2004-03-14 Joseph S. Myers <jsm@polyomino.org.uk>
9691
9692 * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
9693 doc/install.texi, doc/invoke.texi, doc/makefile.texi,
9694 doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
9695 "gcc", "g++" and "g77" or mark up with appropriate markup. Adjust
9696 wording and grammar.
9697
9698 2004-03-14 Roger Sayle <roger@eyesopen.com>
9699
9700 * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
9701 with lang_hooks.foo ().
9702 * builtins.c (expand_builtin_va_arg): Likewise.
9703 * c-common.c (fname_as_string, c_common_truthvalue_conversion,
9704 c_common_type_for_mode, c_common_nodes_and_builtins,
9705 handle_mode_attribute, handle_vector_size_attribute): Likewise.
9706 * c-convert.c (convert): Likewise.
9707 * c-format.c (check_format_types): Likewise.
9708 * c-objc-common.c (c_tree_printer): Likewise.
9709 * c-typeck.c (build_unary_op, build_conditional_expr,
9710 build_binary_op): Likewise.
9711 * calls.c (try_to_integrate, expand_call,
9712 emit_library_call_value_1): Likewise.
9713 * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
9714 Likewise.
9715 * cgraphunit.c (record_call_1, cgraph_analyze_function,
9716 cgraph_expand_function): Likewise.
9717 * convert.c (convert_to_pointer, convert_to_integer): Likewise.
9718 * coverage.c (build_fn_info_type, build_ctr_info_type,
9719 build_gcov_info, create_coverage): Likewise.
9720 * dbxout.c (dbxout_init): Likewise.
9721 * diagnostic.c (diagnostic_report_current_function): Likewise.
9722 * dojump.c (do_jump): Likewise.
9723 * dwarf2out.c (dwarf2_name): Likewise.
9724 * except.c (init_eh): Likewise.
9725 * explow.c (expr_size, int_expr_size): Likewise.
9726 * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
9727 Likewise.
9728 * expr.c (store_expr, store_constructor, safe_from_p,
9729 expand_expr_real, do_store_flag, try_casesi): Likewise.
9730 * function.c (push_function_context_to, pop_function_context_from,
9731 free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
9732 put_var_into_stack, allocate_struct_function, current_function_name):
9733 Likewise.
9734 * integrate.c (copy_decl_for_inlining, expand_inline_function):
9735 Likewise.
9736 * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
9737 lhd_print_error_function): Likewise.
9738 * opts.c (handle_option, decode_options): Likewise.
9739 * passes.c (open_dump_file): Likewise.
9740 * print-tree.c (print_node): Likewise.
9741 * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
9742 expand_decl_cleanup, emit_case_nodes): Likewise.
9743 * stor-layout.c (variable_size): Likewise.
9744 * toplev.c (announce_function, wrapup_global_declarations,
9745 check_global_declarations, compile_file, default_tree_printer,
9746 process_options, lang_dependent_init, finalize): Likewise.
9747 * tree-dump.c (dequeue_and_dump): Likewise.
9748 * tree-inline.c (remap_decl, remap_block, copy_body_r,
9749 initialize_inlined_parameters, declare_return_variable,
9750 inlinable_function_p, expand_call_inline, optimize_inline_calls,
9751 walk_tree, copy_tree_r): Likewise.
9752 * tree-optimize.c (tree_rest_of_compilation): Likewise.
9753 * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
9754 unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
9755 variably_modified_type_p, dump_tree_statistics): Likewise.
9756 * varasm.c (assemble_variable, compare_constant, copy_constant,
9757 force_const_mem, compute_reloc_for_constant, output_constant,
9758 output_addressed_constants, initializer_constant_valid_p): Likewise.
9759
9760 2004-03-14 Kelley Cook <kcook@gcc.gnu.org>
9761
9762 * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
9763
9764 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
9765
9766 * doc/install.texi: Reflect autoconf and automake version for
9767 libffi. Update autoconf version to 2.59.
9768
9769 2004-03-13 Roger Sayle <roger@eyesopen.com>
9770
9771 * fold-const.c (negate_expr, operand_equal_for_comparison_p,
9772 optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
9773 make_range, build_range_check, fold_range_test, unextend,
9774 constant_boolean_node, fold_binary_op_with_conditional_arg,
9775 fold_truthop, fold_mathfn_compare, fold_inf_compare,
9776 fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
9777 with lang_hooks.foo ().
9778
9779 2004-03-14 Richard Earnshaw <rearnsha@arm.com>
9780
9781 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
9782
9783 2004-03-13 Dara Hazeghi <dhazeghi@yahoo.com>
9784
9785 * doc/install.texi: Note status of -fnew-ra.
9786
9787 2004-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
9788
9789 PR middle-end/14470
9790 * expr.c (store_expr): Call emit_queue before generating the move
9791 from the temporary to the original target. Protect the temporary
9792 from emit_queue.
9793
9794 2004-03-13 Jakub Jelinek <jakub@redhat.com>
9795
9796 PR target/14533
9797 * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
9798 other than UNSPEC_GOTOFF.
9799
9800 2004-03-13 Richard Earnshaw <rearnsha@arm.com>
9801
9802 * arm.c (arm_legitimate_address_p): New argument, OUTER. Pass through
9803 to arm_legitimate_index_p. Update all callers with SET as default
9804 value.
9805 (arm_legitimate_index_p): New argument, OUTER. Restrict the index
9806 range if OUTER is a sign-extend operation on QImode. Correctly
9807 reject shift operations on sign-extended QImode addresses.
9808 (bad_signed_byte_operand): Delete.
9809 (arm_extendqisi_mem_op): New function.
9810 * arm.h (EXTRA_CONSTRAINT_ARM): Delete. Replace with...
9811 (EXTRA_CONSTRAINT_STR_ARM): ... this. Handle extended address
9812 constraints.
9813 (CONSTRAINT_LEN): New.
9814 (EXTRA_CONSTRAINT): Delete. Replace with...
9815 (EXTRA_CONSTRAINT_STR): ... this.
9816 (PREDICATE_CODES): Remove bad_signed_byte_operand.
9817 * arm.md (extendqihi_insn): Use new constraint Uq. Rework. Length
9818 is now always default.
9819 (define_splits for bad sign-extend loads): Delete.
9820 (arm_extendqisi, arm_extendqisi_v5): Likewise.
9821 * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
9822 Rework 'U' constraint to 'Uv'.
9823 * arm-protos.h: Remove bad_signed_byte_operand. Add
9824 arm_extendqisi_mem_op.
9825 * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
9826 Add Uq constraint.
9827
9828 2004-03-13 Alan Modra <amodra@bigpond.net.au>
9829
9830 * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
9831 with targetm version.
9832
9833 PR target/14567
9834 * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
9835 (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
9836 * config/rs6000/rs6000.c (rs6000_arg_size): New function.
9837 Update all users of RS6000_ARG_SIZE.
9838 (function_arg_advance): Count fregno using mode size.
9839 (function_arg): Handle long double split over regs and memory.
9840 (function_arg_partial_nregs): Likewise.
9841 (rs6000_va_arg): Repackage complex args.
9842
9843 2004-03-13 Dean Ferreyra <dferreyra@igc.org>
9844
9845 PR target/14047
9846 * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
9847 (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
9848 * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
9849
9850 2004-03-12 Jakub Jelinek <jakub@redhat.com>
9851
9852 * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
9853 prototype.
9854 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
9855 * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
9856
9857 2004-03-12 Andrew Pinski <apinski@apple.com>
9858
9859 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
9860 Use ret instead of result. Use addr instead of base.
9861
9862 2004-03-12 David Edelsohn <edelsohn@gnu.org>
9863
9864 * doc/install.texi (*-ibm-aix*): Document assembler and achiver
9865 fixes required by libstdc++ and update installation instructions
9866 for libstdc++.a.
9867
9868 2004-03-12 Danny Smith <dannysmith@users.sourceforge.net>
9869
9870 * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
9871 leading '@' on fastcall symbols before stripping suffix.
9872
9873 2004-03-12 Roger Sayle <roger@eyesopen.com>
9874
9875 * combine.c (unmentioned_reg_p): New function to check whether an
9876 expression is a "specialization" of another, i.e. that there are
9877 no registers or memory references mentioned in the first that don't
9878 appear in the second.
9879 (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
9880 (combine_instructions): Also try combining instructions using the
9881 REG_EQUAL note from a preceding log-linked instruction.
9882
9883 2004-03-12 Roger Sayle <roger@eyesopen.com>
9884
9885 * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
9886
9887 2004-03-12 Matt Austern <austern@apple.com>
9888
9889 * target.h (struct gcc_target): New target hook, unwind_label.
9890 * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
9891 * output.h (default_emit_unwind_label): New function.
9892 * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
9893 (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
9894 (TARGET_SUPPORTS_HIDDEN): New target macro.
9895 * dwarf2out.c (struct dw_fde_struct): Add field for function decl
9896 that corresponds to this FDE.
9897 (FRAME_BEGIN_LABEL): Allow target to override default label.
9898 (output_call_frame_info): If FDEs are linknonce, then use extra
9899 indirection for FDE encoding, output a label for each FDE, and
9900 output an empty label for each function without an FDE.
9901 (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
9902 * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
9903 decls with DECL_ONE_ONLY set, if that macro is defined.
9904 (make_decl_one_only): Don't use DECL_COMMON if we're compiling
9905 for a SUPPORTS_ONE_ONLY target.
9906 * config/darwin-protos.h (darwin_unique_section): Declare.
9907 (darwin_asm_named_section): Likewise.
9908 (darwin_section_type_flags): Likewise.
9909 (darwin_non_lazy_pcrel): Likewise.
9910 (darwin_emit_unwind_label): Likewise.
9911 (darwin_make_decl_one_only): Likewise.
9912 * config/darwin.c (machopic_finish): Get rid of tweak that
9913 eliminate stubs for symbols that are defined.
9914 (darwin_encode_section_info): Don't treat weak functions as defined.
9915 (darwin_make_decl_one_only): Define.
9916 (darwin_asm_named_section): Likewise.
9917 (darwin_section_type_flags): Likewise.
9918 (darwin_unique_section): Likewise.
9919 (darwin_emit_unwind_label): Likewise.
9920 (darwin_non_lazy_pcrel): Likewise.
9921 (darwin_asm_output_dwarf_delta): Difference between two labels is
9922 local only if both labels are local.
9923 * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
9924 (ASM_MAKE_LABEL_LINKONCE): Likewise.
9925 (TARGET_SUPPORTS_HIDDEN): Likewise.
9926 (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
9927 (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
9928 (FRAME_BEGIN_LABEL): Likewise.
9929 (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
9930 (ASM_DECLARE_FUNCTION_NAME): Likewise.
9931 (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
9932 (TARGET_ASM_UNIQUE_SECTION): Define.
9933 (EH_FRAME_SECTION_NAME): Define.
9934 (EH_FRAME_SECTION_ATTR): Likewise.
9935 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
9936 (TARGET_ASM_NAMED_SECTION): Likewise.
9937 (TARGET_SECTION_TYPE_FLAGS): Likewise.
9938 * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
9939 TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
9940 TARGET_ASM_EMIT_UNWIND_LABEL.
9941
9942 2004-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9943
9944 * builtins.c (expand_builtin_mathfn): Add pow10* to the
9945 existing exp10* case.
9946 (expand_builtin): Likewise.
9947
9948 2004-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
9949
9950 * doc/tm.texi (registers) <Values in Registers>: Add
9951 entry for REGMODE_NATURAL_SIZE.
9952
9953 2004-03-12 Richard Henderson <rth@redhat.com>
9954
9955 PR target/14547
9956 * target.h (struct gcc_target): Move calls substructure before
9957 booleans. Add split_complex_arg.
9958 * function.c (assign_parms, split_complex_args): Use it.
9959 * calls.c (expand_call): Likewise.
9960 (split_complex_values): Likewise. Check for splittable types
9961 before allocating memory.
9962 (split_complex_types): Likewise.
9963 * system.h (SPLIT_COMPLEX_ARGS): Poison.
9964 * expr.h (SPLIT_COMPLEX_ARGS): Remove.
9965 * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
9966 * config/alpha/alpha.c (alpha_split_complex_arg): New.
9967 (TARGET_SPLIT_COMPLEX_ARG): New.
9968 * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
9969 * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
9970 (rs6000_override_options): Zap it for non-AIX.
9971 (rs6000_function_value): Use targetm.calls.split_complex_arg.
9972 * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
9973 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
9974 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
9975 * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
9976 SPLIT_COMPLEX_ARGS entry.
9977
9978 2004-03-11 Richard Henderson <rth@redhat.com>
9979
9980 * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
9981 (alpha_lookup_xfloating_lib_func): Use them, return rtx.
9982 (alpha_emit_xfloating_arith): Update to match.
9983 (alpha_emit_xfloating_compare): Likewise.
9984 (alpha_emit_xfloating_cvt): Likewise.
9985 (alpha_emit_xfloating_libcall): Take already built symbol,
9986 mark call const.
9987 * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
9988 op1 in a register.
9989
9990 2004-03-11 Richard Henderson <rth@redhat.com>
9991
9992 PR target/14539
9993 * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
9994
9995 * simplify-rtx.c (simplify_relational_operation): Fix typo.
9996
9997 2004-03-11 Richard Henderson <rth@redhat.com>
9998
9999 PR middle-end/14477
10000 * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
10001
10002 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
10003
10004 PR target/14262
10005 * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
10006 defined, pass small BLKmode values in registers in the low-order part.
10007
10008 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
10009
10010 * combine.c (if_then_else_cond): Check for NULL return value of
10011 simplify_gen_subreg.
10012
10013 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
10014
10015 PR target/14496
10016 * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
10017 TARGET_SINGLE_FLOAT.
10018
10019 2004-03-11 Steve Ellcey <sje@cup.hp.com>
10020
10021 * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
10022 * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
10023 * config/ia64/ia64.c (ia64_init_libfuncs): New.
10024 (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
10025
10026 2004-03-11 Roger Sayle <roger@eyesopen.com>
10027
10028 * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
10029 -((int)X>>C) where C is an integer constant one bit less than the
10030 size of X into (unsigned)X>>C. Similarly for unsigned->signed.
10031 (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
10032
10033 * simplify-rtx.c (simplify_unary_operation): Also implement the
10034 above transformations at the RTL level.
10035
10036 2004-03-11 Alan Modra <amodra@bigpond.net.au>
10037
10038 * real.c (encode_ibm_extended): Do round low word.
10039
10040 2004-03-11 Ben Elliston <bje@wasabisystems.com>
10041
10042 * config/arm/arm.md (is_xscale): Comment this attribute and move
10043 it a bit further up in the file, closer to related attributes.
10044
10045 2004-03-11 Eric Botcazou <ebotcazou@libertysurf.fr>
10046
10047 * config/host-solaris.c (sol_gt_pch_use_address): Add
10048 missing terminating marker to comment.
10049
10050 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
10051
10052 * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
10053 (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
10054 (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
10055 (*movsf_mips16, *movdf_mips16): Name unnamed patterns. Use
10056 move_operand as source predicate in all cases.
10057 (*movdi_32bit): Renamed from movdi_internal. Remove 'F' constraint.
10058 Test reg_or_0_operand. Use move_operand as source predicate.
10059 (*movdi_64bit): Renamed from movdi_internal2. Test reg_or_0_operand.
10060 (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
10061 (*movsi_internal): Renamed from movsi_internal. Test reg_or_0_operand.
10062 (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
10063 (*movhi_internal): Renamed from movhi_internal. Test reg_or_0_operand.
10064 Use move_operand as source predicate. Remove 'K' constraint.
10065 (*movqi_internal): Likewise movqi_internal.
10066 (*movsf_hardfloat): Renamed from movsf_internal1. Test
10067 reg_or_0_operand. Use move_operand as source predicate.
10068 (*movsf_softfloat): Likewise movsf_internal2.
10069 (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
10070 (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
10071 (*movdf_softfloat): Likewise movdf_internal2.
10072 * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
10073 for DImode if !TARGET_64BIT.
10074 (mips_legitimize_move): Simplify accordingly.
10075
10076 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
10077
10078 PR/14362
10079 * var-tracking.c (struct variable_def): Added field refcount.
10080 (variable_htab_free): Decrease the refcount and delete variable
10081 only if there are no more references.
10082 (unshare_variable): New function.
10083 (vars_copy_1): Increase refcount instead of copying the variable.
10084 (variable_union): Share the variables where possible, unshare
10085 the variables if needed.
10086 (variable_different_p): Return false if var1 and var2 are
10087 the same structure.
10088 (variable_was_changed): Init the refcount of new variable.
10089 (set_frame_base_location): Unshare variable if needed.
10090 (set_variable_part): Init the refcount of new variable.
10091 Unshare the variables if needed.
10092 (delete_variable_part): Unshare the variables if needed.
10093 (emit_notes_for_differences_1): Init the refcount of new variable.
10094 (vt_add_function_parameters): Do not add function parameters to
10095 IN set of ENTRY_BLOCK_PTR because it is unused anyway.
10096 (vt_initialize): Do not add frame_base_decl to IN set of
10097 ENTRY_BLOCK_PTR because it is unused anyway.
10098
10099 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
10100
10101 * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
10102 (vars_copy): Likewise.
10103 (variable_union): Likewise.
10104 (set_variable_part): Likewise.
10105 (delete_variable_part): Likewise.
10106
10107 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
10108
10109 * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
10110 ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
10111 config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
10112 config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
10113 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
10114 config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
10115 config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
10116 config/pdp11/pdp11.h, config/rs6000/rs6000.c,
10117 config/stormy16/stormy16.c: Fix comment typos and formatting.
10118
10119 2004-03-11 Nathanael Nerode <neroden@gcc.gnu.org>
10120
10121 * configure: Regenerate, since I forgot to while committing Paolo's
10122 changes.
10123
10124 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
10125
10126 PR ada/14131
10127 Move language detection to the top level.
10128 * configure.ac: Remove code to detect languages,
10129 it now lives exclusively in the top level.
10130 * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
10131 top level, renamed to ACX_PROG_GNAT.
10132
10133 2004-03-10 Richard Henderson <rth@redhat.com>
10134
10135 * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
10136 extra arguments.
10137 * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
10138 and host_xmake_file fragments.
10139 * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
10140 (gt_pch_restore): Similarly for gt_pch_use_address.
10141 (default_gt_pch_get_address): New.
10142 (mmap_gt_pch_get_address): Split out of gt_pch_save.
10143 (default_gt_pch_use_address): Split out of gt_pch_restore.
10144 (mmap_gt_pch_use_address): Likewise.
10145 * hooks.c (hook_voidp_size_t_null): Remove.
10146 (hook_bool_voidp_size_t_false): Remove.
10147 * hooks.h: Likewise.
10148 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
10149 default_ or mmap_ definitions.
10150 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
10151 * hosthooks.h (struct host_hooks): Update gt_pch_get_address
10152 and gt_pch_use_address.
10153 * config/host-linux.c, config/host-solaris.c: New files.
10154 * config/x-linux, config/x-solaris: New files.
10155 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
10156 Update for changed definition.
10157 (darwin_rs6000_gt_pch_use_address): Likewise.
10158 * doc/hostconfig.texi: Update docs.
10159
10160 2004-03-10 Richard Henderson <rth@redhat.com>
10161
10162 PR c/14517
10163 * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
10164 except for pedantic c90 mode.
10165
10166 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
10167
10168 * configure.ac: Bump AC_PREREQ to 2.59.
10169 * configure: Regenerate.
10170
10171 2004-03-10 Uros Bizjak <uros@kss-loka.si>
10172
10173 * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
10174 (exp10_optab, exp2_optab): Define corresponding macros.
10175 * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
10176 * genopinit.c (optabs): Implement exp10_optab and exp2_optab
10177 using exp10?f2 and exp2?f2 patterns.
10178 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
10179 using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
10180 (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
10181 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
10182
10183 * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
10184 exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
10185 exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
10186
10187 2004-03-10 Anthony Green <green@redhat.com>
10188
10189 * doc/invoke.texi (ARM Options): Fix -mpfu typo.
10190
10191 2004-03-10 David Edelsohn <edelsohn@gnu.org>
10192
10193 * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
10194 (TARGET_OS_AIX_CPP_BUILTINS): this. Conditionally define
10195 __LONGDOUBLE128.
10196 * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
10197 TARGET_OS_AIX_CPP_BUILTINS.
10198 * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
10199 * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
10200 * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
10201 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
10202 previous change.
10203
10204 2004-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10205
10206 * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
10207
10208 2004-03-10 David Edelsohn <edelsohn@gnu.org>
10209
10210 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
10211 __LONGDOUBLE128 on AIX.
10212
10213 2004-03-10 Andrew Haley <aph@redhat.com>
10214
10215 PR optimization/14381
10216 * function.c (expand_function_end): Emit a blockage insn before
10217 the epilogue when -fnon-call-exceptions is used.
10218
10219 * except.c (expand_start_all_catch): Make comment more accurate.
10220
10221 2004-03-08 Joel Sherrill <joel@oarcorp.com>
10222
10223 PR target/14480
10224 * config/rs6000/t-rtems: Add missing file on branch.
10225
10226 2004-03-10 Ulrich Weigand <uweigand@de.ibm.com>
10227
10228 * dbxout.c (dbxout_symbol_location): Do not output references
10229 to optimized-out constant pool symbols.
10230
10231 2004-03-10 Andreas Schwab <schwab@suse.de>
10232
10233 * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
10234 twon34_r.
10235
10236 2004-03-09 James E Wilson <wilson@specifixinc.com>
10237
10238 * alias.c (alias_sets_might_conflict_p): New.
10239 * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
10240 * common.opt (Wstrict-aliasing=): New.
10241 * flags.h (warn_strict_aliasing): Change type to int.
10242 * opts.c (warn_strict_aliasing): Change type to int.
10243 (common_handle_option): Handle OPT_Wstrict_aliasing_.
10244 * tree.h (alias_sets_might_conflict_p): Declare it.
10245 * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
10246
10247 2004-03-10 Roman Zippel <zippel@linux-m68k.org>
10248
10249 PR bootstrap/12371
10250 * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
10251 (CALL_USED_REGISTERS): Likewise.
10252 (REG_CLASS_CONTENTS): Likewise.
10253 (REG_ALLOC_ORDER): New.
10254 (REGNO_REG_CLASS): Use regno_reg_class.
10255 * config/m68k/m68k.c: Add regno_reg_class array.
10256
10257 2004-03-09 Steve Ellcey <sje@cup.hp.com>
10258
10259 * config/ia64/ia64.md (divsi3): Fix algorithm.
10260 (udivsi3): Ditto.
10261 (setf_exp_xf): Remove '*' from name.
10262 * testsuite/gcc.dg/20040309-1.c: New test.
10263
10264 2004-03-09 Ian Lance Taylor <ian@wasabisystems.com>
10265
10266 * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
10267 * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
10268 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
10269 * config/sparc/sparc.c (sparc_aout_select_section): Remove.
10270 (sparc_aout_select_rtx_section): Don't check
10271 SUNOS4_SHARED_LIBRARIES.
10272 * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
10273
10274 2004-03-10 Hans-Peter Nilsson <hp@axis.com>
10275
10276 PR other/14474
10277 * doc/md.texi (Pattern Ordering, Dependent Patterns)
10278 (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
10279 INTERNALS".
10280
10281 2004-03-09 Zack Weinberg <zack@codesourcery.com>
10282
10283 * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
10284 (LIBGCC_SPEC): Update to match.
10285
10286 2004-03-09 Zack Weinberg <zack@codesourcery.com>
10287
10288 * c-decl.c (last_function_parms, last_function_parm_tags)
10289 (last_function_parm_others, current_function_parms)
10290 (current_function_parm_tags, current_function_parm_others):
10291 Delete.
10292 (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
10293 New macros.
10294 (grokdeclarator): For function definitions, save the arg-info
10295 block from the declarator in DECL_ARGUMENTS.
10296 (grokparms): Do not write to last_function_parm*. Use ARG_INFO_*
10297 macros to operate on arg-info block. Can assume ARG_INFO_PARMS
10298 contains only PARM_DECLs. Improve diagnostics.
10299 (get_parm_info): Use ARG_INFO_* macros. Improve comments and
10300 diagnostics. Disable some expensive checks if not ENABLE_CHECKING.
10301 (store_parm_decls_newstyle): Take the function to operate on,
10302 and an arg-info block, as arguments; don't get anything from
10303 current_function_* globals.
10304 (store_parm_decls_oldstyle): Likewise.
10305 (store_parm_decls): Pass fndecl and its arg-info block down to
10306 store_parm_decls_newstyle/oldstyle. Send functions with empty
10307 argument lists through store_parm_decls_newstyle to reduce
10308 overhead.
10309 (pushdecl): Comment on the problems with the call to copy_node.
10310 Clear DECL_ARGUMENTS of the old node after copying it, if it
10311 is an arg-info block instead of a chain of decls.
10312 (start_function): Do not manipulate current_function_parm* or
10313 last_function_parm*.
10314
10315 2004-03-09 Roger Sayle <roger@eyesopen.com>
10316 Andrew Pinski <pinskia@physics.uc.edu>
10317
10318 * ifcvt.c (noce_try_sign_mask): New function to transform
10319 "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
10320 (noce_process_if_block): Call noce_try_sign_mask.
10321
10322 2004-03-09 Andrew Pinski <apinski@apple.com>
10323
10324 * c-typeck.c (tagged_types_tu_compatible_p):
10325 Fix typo.
10326
10327 2004-03-09 Roger Sayle <roger@eyesopen.com>
10328
10329 * simplify-rtx.c (simplify_const_relational_operation): New function
10330 renamed from simplify_relational_operation.
10331 (simplify_relational_operation): Change prototype to accept an
10332 additional mode argument. Call simplify_const_relational_operation.
10333 (simplify_gen_relational): Update simplify_relational_operation call.
10334 (simplify_ternary_operation): Update simplify_relational_operation
10335 subroutine call to use simplify_const_relational_operation instead.
10336
10337 * rtl.h (simplify_const_relational_operation): Prototype here.
10338 (simplify_relational_operation): Add addtional mode argument.
10339
10340 * combine.c (combine_simplify_rtx): Update calls to
10341 simplify_relational_operation.
10342 (simplify_set): Likewise.
10343 (gen_binary): Likewise.
10344 * cse.c (fold_rtx): Likewise.
10345 * dojump.c (compare_from_rtx): Likewise.
10346 (do_compare_rtx_and_jump): Likewise.
10347 * integrate.c (subst_constants): Likewise.
10348 * unroll.c (simplify_cmp_and_jump_insns): Likewise.
10349
10350 2004-03-09 Kazu Hirata <kazu@cs.umass.edu>
10351
10352 * config/m32r/m32r.md: Remove all define_peephole's.
10353
10354 2004-03-09 Alan Modra <amodra@bigpond.net.au>
10355
10356 * config/rs6000/rs6000.md: Remove trailing whitespace.
10357
10358 2004-03-08 Eric Christopher <echristo@redhat.com>
10359
10360 * Makefile.in (site.exp): Add libiconv variable definition.
10361
10362 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
10363
10364 * configure: Regenerate for config/accross.m4 correction.
10365
10366 2004-03-08 Joel Sherrill <joel@oarcorp.com>
10367
10368 PR target/14480
10369 * config/rs6000/t-rtems: Add missing file on branch.
10370
10371 2004-03-08 Roger Sayle <roger@eyesopen.com>
10372
10373 PR middle-end/14289
10374 * c-typeck.c (c_mark_addressable): A register variable should
10375 be considered global if its not automatic, i.e. TREE_PUBLIC,
10376 TREE_STATIC or DECL_EXTERNAL.
10377 * function.c (put_var_into_stack): Call abort when placing a
10378 hard register into the stack, if x_parm_reg_stack_loc is NULL.
10379
10380 2004-03-08 Ulrich Weigand <uweigand@de.ibm.com>
10381
10382 * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
10383 ("*extendqisi2_short_displ"): Likewise.
10384
10385 2004-03-08 Kazu Hirata <kazu@cs.umass.edu>
10386
10387 * config/pdp11/pdp11.c (comparison_operator_index): Remove.
10388 (comp_operator): Likewise.
10389 * config/pdp11/pdp11-protos.h: Remove corresponding
10390 prototypes.
10391
10392 2004-03-08 Eric Botcazou <ebotcazou@act-europe.fr>
10393
10394 * expr.c (highest_pow2_factor_for_type): Rename into
10395 highest_pow2_factor_for_target. Use DECL_ALIGN instead of
10396 TYPE_ALIGN when the target is a COMPONENT_REF.
10397 (expand_assignment): Ajust call to highest_pow2_factor_for_type.
10398
10399 2004-03-08 Alan Modra <amodra@bigpond.net.au>
10400
10401 * config/rs6000/rs6000.c: Formatting fix.
10402 (legitimate_offset_address_p): Correct offset range check.
10403
10404 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
10405 -msoft-float by -mcpu. Consolidate similar code for MASK_MULTIPLE
10406 and MASK_STRING.
10407
10408 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
10409
10410 * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
10411 for little endian.
10412 ("ashrdi3_no_power"): Disable for little endian.
10413 (ashrdi3): Same.
10414
10415 2004-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10416
10417 * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
10418 builtins.
10419
10420 2004-03-08 Hans-Peter Nilsson <hp@axis.com>
10421
10422 PR target/14471
10423 * configure.ac (Target-specific assembler checks) <cris-*-*>: New
10424 case, checking for -no-mul-bug-abort option.
10425 * configure, config.in: Regenerate.
10426 * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
10427 and -mno-mul-bug-workaround.
10428 * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
10429 ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
10430 ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
10431 Ditto. Make attribute "slottable" dependent on TARGET_MUL_BUG.
10432 * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
10433 sure mulu.d is not last on cache-line.
10434 * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
10435 into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
10436 (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
10437 (TARGET_SWITCHES): New options -mmul-bug-workaround and
10438 -mno-mul-bug-workaround.
10439 (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
10440 (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
10441 * config/cris/cris.c (cris_operand_extend_operator): Clarify
10442 relation to MULT in head comment.
10443 (cris_op_str): Abort for MULT.
10444 (cris_print_operand) <case '!'>: New case.
10445
10446 2004-03-08 Alan Modra <amodra@bigpond.net.au>
10447
10448 PR debug/11983
10449 * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
10450 dw_val_class_vec. Replace use throughout file.
10451 (dw_float_const): Delete.
10452 (dw_vec_const): New.
10453 (dw_val_struct_union): Rename val_float to val_vec. Replace use
10454 throughout file.
10455 (add_AT_vec): Rename from add_AT_float. Add elt_size param.
10456 (same_dw_val_p): Adjust vec comparison. Use memcmp.
10457 (size_of_die): Adjust dw_val_class_vec sizing.
10458 (output_die): Output dw_val_class_vec.
10459 (insert_int, extract_int, insert_float): New functions.
10460 (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
10461 Handle CONST_VECTOR.
10462 (add_location_or_const_value_attribute): Handle CONST_VECTOR.
10463
10464 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
10465
10466 * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
10467 AltiVec abi cannot co-exist.
10468
10469 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
10470
10471 2004-03-07 Jan Hubicka <jh@suse.cz>
10472
10473 * except.c (emit_to_new_bb_before): Break fallthru edges.
10474
10475 2004-03-07 Stephane Carrez <stcarrez@nerim.fr>
10476
10477 * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
10478 ("*lshrsi3"): Also accept an immediate for 68HC12.
10479 ("*ashrsi3_const"): Likewise.
10480 ("*ashrsi3"): Likewise.
10481 ("*ashlsi3_const"): Likewise.
10482 ("*ashlsi3"): Likewise.
10483 ("cmphi_1_hc12"): Compare two hard register by pushing them and
10484 comparing with a pop; don't use a split for that.
10485 ("cmphi split"): Disable compare split for 68HC12.
10486
10487 * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
10488 the status operands if they have side effects.
10489
10490 2004-03-07 Kazu Hirata <kazu@cs.umass.edu>
10491
10492 * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
10493 definition.
10494 * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
10495 config/h8300/h8300.h, config/ia64/ia64.h,
10496 config/mcore/mcore.h, config/mmix/mmix.h,
10497 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
10498 config/stormy16/stormy16.h, config/v850/v850.h,
10499 config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
10500 * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
10501 definition.
10502
10503 2004-03-07 Roger Sayle <roger@eyesopen.com>
10504
10505 * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
10506 <XOR_EXPR>: Fold x ^ x as zero.
10507 <AND_EXPR>: Fold x & x as x.
10508
10509 2004-03-07 Roger Sayle <roger@eyesopen.com>
10510
10511 * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
10512 "foo++ == const" into "++foo == const+incr".
10513
10514 2004-03-07 Richard Sandiford <rsandifo@redhat.com>
10515
10516 * config/mips/mips.c (mips_in_small_data_p): Return false if
10517 TARGET_ABICALLS.
10518
10519 2004-03-06 Stephane Carrez <stcarrez@nerim.fr>
10520
10521 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
10522 the stack register.
10523 (expand_prologue): Don't make an interrupt or a trap handler a far
10524 symbol.
10525 (m68hc11_initial_elimination_offset): Likewise.
10526
10527 2004-03-06 Richard Henderson <rth@redhat.com>
10528
10529 * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
10530
10531 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
10532
10533 * config/ns32k/ns32k-protos.h: Add a prototype for
10534 ns32k_notice_update_cc.
10535 * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
10536 * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
10537 ns32k_notice_update_cc.
10538
10539 2004-03-06 Ulrich Weigand <uweigand@de.ibm.com>
10540
10541 * config/s390/s390.md ("load_multiple", "*load_multiple_di",
10542 "*load_multiple_si"): Allow only if reload_completed.
10543 ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
10544 Likewise.
10545
10546 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
10547
10548 * config/vax/vax-protos.h: Add a prototype for
10549 vax_notice_update_cc.
10550 * config/vax/vax.c (vax_notice_update_cc): New.
10551 * config/vax/vax.h (NOTICE_UPDATE_CC): Call
10552 vax_notice_update_cc.
10553
10554 2004-03-06 David Edelsohn <edelsohn@gnu.org>
10555
10556 * collect2.c (main): Only export initfunc and finifunc if
10557 LD_INIT_SWITCH not defined.
10558 (scan_prog_file): Only export constructors and destructors if
10559 LD_INIT_SWITCH not defined. Only export symbols not found in
10560 shared objects.
10561
10562 2004-03-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10563
10564 * pa.md (icacheflush): Reorder operands to make match_scratch operand
10565 last.
10566 * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
10567 from calls to gen_icacheflush.
10568
10569 2004-03-06 Richard Henderson <rth@redhat.com>
10570
10571 * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
10572 (TARGET_LONG_DOUBLE_128): New.
10573 (TARGET_SWITCHES): Add long-double-{128,64}.
10574 (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
10575 (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
10576 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
10577 (WIDEST_HARDWARE_FP_SIZE): New.
10578 (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
10579 * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
10580 if TARGET_VAX_FLOAT.
10581 * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
10582 (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
10583
10584 2004-03-06 Richard Henderson <rth@redhat.com>
10585
10586 * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
10587 botched rtx class conversion.
10588
10589 2004-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10590
10591 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
10592 BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
10593
10594 * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
10595 macros.
10596 * fold-const.c (fold_mathfn_compare, fold): Likewise.
10597
10598 2004-03-06 Eric Botcazou <ebotcazou@libertysurf.fr>
10599
10600 PR target/14343
10601 * config/i386/i386.md (movv2di_internal): Conditionalize on
10602 TARGET_SSE, not TARGET_SSE2.
10603
10604 2004-03-05 Chris Demetriou <cgd@broadcom.com>
10605
10606 * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
10607 duplicated line.
10608
10609 2004-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10610
10611 * builtins.c: Consistently use logN not log* in comments.
10612
10613 2004-03-05 Andreas Krebbel <krebbel1@de.ibm.com>
10614
10615 * rtl.h (mem_expr_equal_p): Function prototype added.
10616 * cfgcleanup.c (merge_memattrs): New function.
10617 (flow_find_cross_jump): Call merge_memattrs for matching insns.
10618 * emit-rtl.c (mem_expr_equal_p): New function.
10619
10620 2004-03-05 Ziemowit Laski <zlaski@apple.com>
10621
10622 * objc/objc-act.c (synth_module_prologue): Const-qualify
10623 objc_selector type if using the GNU runtime; fix generated
10624 signatures for objc_msg_lookup and objc_msg_lookup_super
10625 to match what GNU ObjC headers provide; reformat and clean up.
10626 (synth_self_and_ucmd_args): Use previously constructed (and
10627 hence possibly const-qualified) objc_selector type.
10628
10629 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
10630
10631 * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
10632
10633 2004-03-05 Jason Merrill <jason@redhat.com>
10634
10635 * tree.h (TYPE_HASH): Use TYPE_UID.
10636 (TREE_HASH): New macro with old definition of TYPE_HASH.
10637 * tree.c (build_type_attribute_variant): Use iterative_hash_object.
10638 (build_array_type, build_function_type): Likewise.
10639 (build_method_type_directly): Likewise.
10640 (build_offset_type, build_complex_type): Likewise.
10641 (type_hash_list, attribute_hash_list): Likewise. Now static.
10642 * except.c: s/TYPE_HASH/TREE_HASH/.
10643
10644 2004-03-05 Bob Wilson <bob.wilson@acm.org>
10645
10646 * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
10647 (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32). Adjust
10648 __va_ndx by 2 words when referencing an argument on the stack.
10649 (xtensa_va_arg): Handle 16-byte aligned args. Adjust __va_ndx by 2
10650 words when an arg on the stack is first seen.
10651
10652 2004-03-05 Paul Brook <paul@codesourcery.com>
10653
10654 * arm.h (ARM_FLAG_VFP): Remove.
10655 (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
10656 * netbsd-elf.h (ARM_FLAG_VFP): Remove.
10657
10658 2004-03-05 Paul Brook <paul@codesourcery.com>
10659
10660 * function.c (assign_parms): Include pretend alignment offset.
10661
10662 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10663
10664 * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
10665 FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
10666
10667 2004-03-05 Ian Lance Taylor <ian@wasabisystems.com>
10668
10669 * configure.ac: When passing --enable-languages to subdir
10670 configure when host != build, make sure we don't pass an empty
10671 value.
10672 * configure: Regenerate.
10673
10674 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
10675
10676 PR 13577
10677 * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
10678 options.
10679
10680 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
10681
10682 * simplify-rtx.c (simplify_relational_operation): If
10683 flag_wrapv is set, do not move terms between the two
10684 side of a relational operator.
10685
10686 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
10687
10688 * rtlanal.c: Include target.h and output.h
10689 (rtx_cost, address_cost, default_address_cost): Move from...
10690 * cse.c (rtx_cost, address_cost, default_address_cost):
10691 ... this file.
10692 * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
10693 * Makefile.in: Adjust dependencies.
10694
10695 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
10696
10697 * cse.c (cse_end_of_basic_block): Make static.
10698 * local-alloc.c (function_invariant_p): Move to
10699 reload1.c.
10700 * loop.c (libcall_other_reg, record_excess_regs):
10701 Make static.
10702 * reload1.c (function_invariant_p): Moved here
10703 from local-alloc.c, made static.
10704 * rtl.h (cse_end_of_basic_block, function_invariant_p,
10705 libcall_other_reg, record_excess_regs): Remove
10706 declarations.
10707
10708 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
10709
10710 * config/m32r/m32r.c (signed_comparison_operator): Add a
10711 missing parenthesis.
10712
10713 2004-03-04 Ian Lance Taylor <ian@wasabisystems.com>
10714
10715 * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
10716 going to call mmap again. Read the file into the right place.
10717 Give a fatal error if we have to relocate.
10718
10719 2004-03-04 Bob Wilson <bob.wilson@acm.org>
10720
10721 * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
10722 (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
10723
10724 2004-03-05 Hans-Peter Nilsson <hp@axis.com>
10725
10726 PR other/14354
10727 * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
10728 round the same. When rounding, clear bits that would cause a
10729 second rounding in pack_d.
10730 (_fpmul_parts): Ditto. Remove #if 0:d code.
10731
10732 2004-03-04 Ziemowit Laski <zlaski@apple.com>
10733
10734 PR c++/14425, c++/14426
10735 * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
10736 vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
10737 Change C++ definitions to accept a 'const int' argument;
10738 the prototypes already do.
10739 * config/rs6000/rs6000.c (rs6000_common_init_builtins):
10740 Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
10741 v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
10742 v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
10743 v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
10744 v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
10745 end in ..._int; change them to accept an int instead of a char
10746 as the last parameter.
10747
10748 2004-03-04 Phil Edwards <phil@codesourcery.com>
10749
10750 * genmultilib: Change '=' to '-' when translating option names
10751 to directory names.
10752
10753 2004-03-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10754
10755 * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
10756 stack slot for temp used for result of BLKmode but in integral mode.
10757
10758 2004-03-04 Jan Hubicka <jh@suse.cz>
10759
10760 * reload.c (find_reloads): Reorganize if seqeunce to switch.
10761
10762 * cfgrtl.c (rtl_redirect_edge_and_branch): Set the source BB as dirty.
10763 (cfglayout_redirect_edge_and_branch): Set the source BB as dirty.
10764
10765 2004-03-04 Steve Ellcey <sje@cup.hp.com>
10766
10767 * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
10768 * testsuite/gcc.dg/20040303-1.c: New test.
10769
10770 2004-03-04 Steven Bosscher <stevenb@suse.de>
10771
10772 * ppro.md: Rewrite as a DFA pipeline description.
10773 * i386.md: Remove all uses of the ppro_uops attribute.
10774 * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
10775 ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
10776 ix86_sched_reorder, ix86_variable_issue,
10777 struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
10778 TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
10779 (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
10780 (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
10781 * athlon.md (athlon_ssecmp_load): Fix comment
10782
10783 2004-03-04 Stuart Hastings <stuart@apple.com>
10784
10785 * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
10786
10787 2004-03-04 Stuart Hastings <stuart@apple.com>
10788
10789 * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
10790 686, tell Darwin assembler to allow prefetch insns, non-empty def
10791 of SUBTARGET_OPTION_TRANSLATE_TABLE.
10792
10793 2004-03-04 DJ Delorie <dj@redhat.com>
10794
10795 PR optimization/14282
10796 * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
10797 between a call and the assignment of its return value.
10798
10799 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
10800
10801 * config/h8300/h8300.c: Put a comment for every function.
10802
10803 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
10804
10805 * config/h8300/h8300.md: Add comments about peephole2's.
10806
10807 2004-03-04 Steven Bosscher <stevenb@suse.de>
10808
10809 * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
10810
10811 2004-03-04 Jan Hubicka <jh@suse.cz>
10812
10813 * cfgcleanup.c (thread_jump): Update call of cselib_init.
10814 * cselib.c (cselib_record_memory): New static variable.
10815 (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
10816 Give up on memories when asked for.
10817 (cselib_init): Accept new argument.
10818 * cselib.h (cselib_init): Update prototype.
10819 * gcse.c (local_cprop_pass): Update call of cselib_init.
10820 * loop.c (load_mems): Update call of cselib_init.
10821 * postreload.c (reload_cse_regs_1): Update call of cselib_init.
10822 * sched-deps.c (sched_analyze): Update call of cselib_init.
10823
10824 2004-03-04 David Edelsohn <edelsohn@gnu.org>
10825 GP <gp@qnx.com>
10826
10827 * config/rs6000/rs6000.c (output_function_profiler): Append @plt
10828 when compiling PIC.
10829
10830 2004-03-04 Josef Zlomek <zlomekj@suse.cz>
10831
10832 PR/14362
10833 * var-tracking.c (track_expr_p): Do not track variables which
10834 should be ignored for debugging purposes.
10835
10836 2004-03-04 Alan Modra <amodra@bigpond.net.au>
10837
10838 * real.c (encode_ibm_extended): Don't bother rounding low double.
10839 * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
10840 when fmt->pnan < fmt->p.
10841
10842 2004-03-04 Eric Christopher <echristo@redhat.com>
10843
10844 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
10845 only range of valid arg registers and fixed_regs.
10846
10847 2004-03-04 Alan Modra <amodra@bigpond.net.au>
10848
10849 PR target/14406
10850 * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
10851 (abstf2, abstf2_internal): New define_expand.
10852
10853 2004-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
10854
10855 PR optimization/14235
10856 * expr.c (convert_move): Copy the source to a new pseudo
10857 when converting from a sub-word source to a larger-than-word
10858 register which conflicts with the source.
10859
10860 2004-03-03 Zack Weinberg <zack@codesourcery.com>
10861
10862 PR 13728
10863 * c-decl.c (diagnose_mismatched_decls): Issue an error for two
10864 parameters with the same name, unless one is a forward decl.
10865 Do not issue a redundant-redeclaration warning for forward
10866 decls of parameters.
10867
10868 2004-03-04 David Edelsohn <edelsohn@gnu.org>
10869
10870 * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
10871 configuration.
10872
10873 2004-03-03 Ian Lance Taylor <ian@wasabisystems.com>
10874
10875 * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
10876
10877 2004-03-04 Alan Modra <amodra@bigpond.net.au>
10878
10879 * target-def.h (TARGET_OPTF): Delete.
10880 * c-opts.c (TARGET_OPTF): Define.
10881
10882 2004-03-04 Jan Hubicka <jh@suse.cz>
10883
10884 * cselib.c (cselib_finish): Fix another miss-application of my previous
10885 patch.
10886
10887 2004-03-03 Mike Stump <mrs@apple.com>
10888
10889 Add framework support for darwin.
10890
10891 * c-incpath.c: Include target.h and machmode.h.
10892 (add_path): Use a consistent style for cpp_dir. Initialize
10893 p->construct to 0.
10894 (add_cpp_dir_path): New.
10895 (register_include_chains): Add use of extra_includes callback.
10896 (hook_void_int): Add.
10897 (target_c_incpath): Add.
10898 * c-incpath.h (add_cpp_dir_path): New.
10899 (target_c_incpath_s): Add.
10900 (target_c_incpath): Add.
10901 (C_INCPATH_INIT): Add.
10902 * c-opts.c (c_common_missing_argument,
10903 c_common_handle_option): Add -F argument processing.
10904 * c.opt: Add -F argument processing.
10905 * gcc.c (trad_capable_cpp): Add -F argument processing.
10906 * cppfiles.c (find_file_in_dir): Update to use construct
10907 callback.
10908 (search_path_exhausted, cpp_get_path, cpp_get_buffer,
10909 cpp_get_prev): New.
10910 (_cpp_find_file): Use search_path_exhausted.
10911 (make_cpp_dir): Initialize construct to 0.
10912 * cpplib.h (missing_header_cb
10913 cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
10914 (cpp_callbacks): Add missing_header
10915 (cpp_dir): Add construct.
10916 * target-def.h: (TARGET_OPTF): New.
10917 * hooks.c (hook_void_int, hook_void_charptr): Add.
10918 * hooks.h (hook_void_int, hook_void_charptr): Add.
10919 * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
10920 $(MACHMODE_H) dependencies.
10921 * doc/invoke.texi (Darwin Options): Document -F.
10922 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
10923 (TARGET_OPTF): Add.
10924 * fix-header.c (target_c_incpath): Add.
10925
10926 * config/darwin-c.c: Add c-incpath.h include.
10927 (using_frameworks, find_subframework_file,
10928 find_subframework_header, add_system_framework_path,
10929 frameworks_in_use, num_frameworks, max_frameworks,
10930 add_framework, find_framework, struct framework_header,
10931 framework_header_dirs, framework_construct_pathname,
10932 find_subframework_file, add_system_framework_path,
10933 add_framework_path, framework_defaults,
10934 darwin_register_frameworks, find_subframework_header): Add.
10935 * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
10936 (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
10937 (CPP_SPEC): Add __APPLE_CC__ support.
10938 * t-darwin (darwin-c.o): Add c-incpath.h dependency.
10939
10940 2004-03-04 Jan Hubicka <jh@suse.cz>
10941
10942 * cselib.c (cselib_finish): Fix miss-application of my previous
10943 patch.
10944
10945 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
10946
10947 * hooks.c (hook_tree_tree_identity): New.
10948 * hooks.h: Add a prototype for hook_tree_tree_identity.
10949 * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
10950 instead of MD_ASM_CLOBBERS.
10951 * system.h (MD_ASM_CLOBBERS): Poison.
10952 * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
10953 (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
10954 * target.h (gcc_target): Add md_asm_clobbers.
10955 * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
10956 (ix86_md_asm_clobbers): New.
10957 * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
10958 * doc/tm.texi (MD_ASM_CLOBBERS): Change to
10959 TARGET_MD_ASM_CLOBBERS.
10960
10961 2004-03-03 Stuart Hastings <stuart@apple.com>
10962
10963 * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
10964
10965 2004-03-03 Eric Botcazou <ebotcazou@libertysurf.fr>
10966
10967 * config/sparc/sparc.c (noov_compare64_op): Fix typo.
10968
10969 * config/sparc/sparc.h (ASM_FLOAT): Delete.
10970 (ASM_DOUBLE): Likewise.
10971 (ASM_LONGDOUBLE): Likewise.
10972 * config/sparc/pbd.h (ASM_INT_OP): Delete.
10973
10974 2004-03-03 Richard Henderson <rth@redhat.com>
10975
10976 PR opt/13862
10977 * cselib.c (cselib_record_sets): Don't record multiple sets in
10978 asm insns.
10979
10980 2004-03-03 Mostafa Hagog <mustafa@il.ibm.com>
10981
10982 * common.opt: Add description of the new -fgcse-after-reload flag.
10983
10984 * flags.h (flag_gcse_after_reload): Declaration of global variable.
10985
10986 * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
10987 reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
10988 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
10989 get_bb_avail_insn, hash_scan_set_after_reload,
10990 compute_hash_table_after_reload, eliminate_partially_redundant_loads,
10991 gcse_after_reload, get_bb_avail_insn): New functions to implement
10992 gcse-after-reload.
10993 (gcse_after_reload_main): New function, the main entry point to
10994 gcse-after-reload.
10995
10996 * rtl.h (gcse_after_reload_main): Declaration of the new function.
10997
10998 * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
10999
11000 * toplev.c (flag_gcse_after_reload): Initialization.
11001
11002 * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
11003
11004 * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
11005 PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
11006 the gcse after reload optimization.
11007
11008 * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
11009 GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
11010 parameters.
11011
11012 * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
11013
11014 2004-03-03 Nicolas Pitre <nico@cam.org>
11015
11016 * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
11017 small negative values.
11018
11019 2004-03-03 Jan Hubicka <jh@suse.cz>
11020
11021 * cselib.c (hash_table): Remove GTY marker.
11022 (reg_values): Turn into array.
11023 (used_regs): Likewise.
11024 (n_used_regs): New static variable.
11025 (reg_values_old): Kill.
11026 (clear_table): Update uses of arrays.
11027 (cselib_lookup): Likewise.
11028 (cselib_record_set): Likewise.
11029 (cselib_init): Likewise.
11030 (cselib_finish): Likewise.
11031 (cselib_udpate_varray_sizes): Kill.
11032 * cselib.h (cselib_update_varray_sizes): Kill.
11033
11034 2004-03-03 Paul Brook <paul@codesourcery.com>
11035
11036 * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
11037
11038 2004-03-03 Jan Hubicka <jh@suse.cz>
11039
11040 * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
11041 Rename from ...; make statistics transparent.
11042 (ggc_alloc_cleared, ggc_realloc_stat): ... these.
11043 (loc_descriptor): New structure.
11044 (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
11045 add_statistics):
11046 New static function.
11047 (ggc_record_overhead, dump_statistics): New global function.
11048 * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
11049 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
11050 from ...; accept locations
11051 (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
11052 ggc_realloc, ggc_alloc_typed): ... this one.
11053 from ...; accept locations
11054 * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
11055 ggc_alloc_stat): Rename from ... ; pass locations
11056 * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
11057 ... this one.
11058 (ggc_alloc_stat): Record overehead.
11059 * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
11060 ggc_realloc, ggc_alloc_typed): Turn to macros
11061 (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
11062 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
11063 (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
11064 * langhooks.h (lhd_make_node): Declare.
11065 (LANG_HOOKS_MAKE_TYPE): Default to new function,
11066 * langhooks.c (lhd_make_node): New.
11067 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
11068 locations.
11069 (rtx_alloc, swallow_copy_rtx): ... this one.
11070 * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
11071 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
11072 * toplpev.c (finalize): Dump stats.
11073 * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
11074 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
11075 Rename from ... ; pass locators.
11076 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
11077 build?, build_decl): Declare.
11078 * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
11079 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
11080 Declare.
11081 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
11082 build?, build_decl): New macros.
11083 * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
11084 * statistics.h: New file.
11085
11086 2004-03-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
11087 Richard Sandiford <rsandifo@redhat.com>
11088
11089 * config/mips/mips.h (MASK_FIX_SB1): Bump.
11090 (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
11091 (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
11092 * config/mips/mips.c (mips_output_division): Fill the branch delay
11093 slot with a nop if TARGET_FIX_R4000. Extend R4000 workarounds to
11094 TARGET_FIX_R4400.
11095 (mips_output_division): Adjust accordingly.
11096 (override_options): Make -march=r4400 imply -mfix-r4400 by default.
11097 * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
11098
11099 2004-03-03 Paolo Bonzini <bonzini@gnu.org>
11100
11101 * alias.c (rtx_equal_for_memref_p): Use predicates
11102 to test rtx classes and new rtx class codes, possibly
11103 splitting conditionals that tested against '<' and 'o'.
11104 * caller-save.c (save_call_clobbered_regs): Likewise.
11105 * combine.c (contains_muldiv, find_split_point, subst,
11106 combine_simplify_rtx, simplify_if_then_else,
11107 simplify_set, simplify_logical, expand_compound_operation,
11108 make_compound_operation, if_then_else_cond, known_cond,
11109 apply_distributive_law, cached_nonzero_bits,
11110 cached_num_sign_bit_copies, simplify_shift_const,
11111 gen_binary, simplify_comparison, update_table_tick,
11112 record_value_for_reg, get_lsat_value_validate): Likewise.
11113 * cse.c (mention_regs, find_best_addr, find_comparison_args,
11114 fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
11115 Likewise.
11116 * emit-rtl.c (copy_insn_1): Likewise.
11117 * expr.c (force_operand): Likewise.
11118 * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
11119 * flow.c (notice_stack_pointer_modification_1,
11120 invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
11121 and_reg_cond, elim_reg_cond): Likewise.
11122 * function.c (update_epilogue_consts): Likewise.
11123 * genattrtab.c (attr_rtx_1): Likewise.
11124 * genopinit.c (gen_insn): Likewise.
11125 * integrate.c (subst_constants): Likewise.
11126 * jump.c (reversed_comparison_code_parts,
11127 reversed_comparison_code, delete_related_insns,
11128 rtx_renumbered_equal_p): Likewise.
11129 * local-alloc.c (block_alloc): Likewise.
11130 * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
11131 canonicalize_condition): Likewise.
11132 * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
11133 Likewise.
11134 * optabs.c (add_equal_node, expand_binop): Likewise.
11135 * predict.c (estimate_probability): Likewise.
11136 * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
11137 * recog.c (validate_replace_rtx_1, comparison_operator,
11138 offsettable_address_p, constrain_operands): Likewise.
11139 * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
11140 Likewise.
11141 * regclass.c (scan_one_insn): Likewise.
11142 * regmove.c (stable_and_no_regs_but_for_p): Likewise.
11143 * regrename.c (kill_autoinc_value): Likewise.
11144 * reload.c (find_reusable_reload, find_reloads,
11145 reg_overlap_mentioned_for_reload_p): Likewise.
11146 * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
11147 * rtl.c (copy_rtx): Likewise.
11148 * rtl.h (CONSTANT_P, INSN_P): Likewise.
11149 * rtlanal.c (commutative_operand_precedence): Likewise.
11150 * sched-deps.c (conditions_mutex_p): Likewise.
11151 * sched-rgn.c (is_cfg_nonregular): Likewise.
11152 * simplify-rtx.c (simplify_gen_binary,
11153 simplify_gen_relational, simplify_replace_rtx,
11154 simplify_unary_operation, simplify_binary_operation,
11155 simplify_ternary_operation, simplify_rtx): Likewise.
11156 * unroll.c (reg_dead_after_loop): Likewise.
11157 * config/alpha/alpha.c (alpha_swapped_comparison_operator,
11158 print_operand): Likewise.
11159 * config/arc/arc.c (proper_comparison_operator): Likewise.
11160 * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
11161 Likewise.
11162 * config/avr/avr.c (_reg_unused_after): Likewise.
11163 * config/frv/frv.c (frv_ifcvt_modify_tests,
11164 frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
11165 * config/i386/i386.c (ix86_comparison_operator,
11166 ix86_carry_flag_operator, fcmov_comparison_operator,
11167 arith_or_logical_operator, print_operand,
11168 ix86_expand_binary_operator, ix86_binary_operator_ok):
11169 Likewise.
11170 * config/i386/i386.md: Likewise.
11171 * config/ia64/ia64.c (not_postinc_memory_operand,
11172 ia64_print_operand, update_set_flags, errata_emit_nops):
11173 Likewise.
11174 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
11175 CONSTRAINT_OK_FOR_S): Likewise.
11176 * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
11177 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
11178 ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
11179 ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
11180 Likewise.
11181 * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
11182 eqne_comparison_operator, signed_comparison_operator):
11183 Likewise.
11184 * config/mips/mips.c (cmp_op, symbolic_expression_p):
11185 Likewise.
11186 * config/mmix/mmix (mmix_foldable_comparison_operator,
11187 mmix_comparison_operator): Likewise.
11188 * config/pa/pa.c (hppa_legitimize_address): Likewise.
11189 * config/rs6000/rs6000.c (stmw_operation,
11190 branch_comparison_operator, trap_comparison_operator,
11191 ccr_bit): Likewise.
11192 * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
11193 * config/s390/s390.c (s390_alc_comparison,
11194 s390_slb_comparison):L Likewise.
11195 * config/sh/sh.c (gen_block_redirect, reg_unused_after):
11196 Likewise.
11197 * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
11198 noov_compare_op, noov_compare64_op, v9_regcmp_op,
11199 emit_hard_tfmode_operation, reg_unused_after)
11200 * doc/md.texi, doc/rtl.texi: Likewise.
11201
11202 * ra-debug.c: Add 2004 to list of copyright years.
11203 * unroll.c: Likewise.
11204
11205 * combine.c (simplify_logical): Remove dummy test,
11206 (apply_distributive_law): Fix typo in comment.
11207 GET_CODE (x) == AND so x is a commutative binary op.
11208 * jump.c (delete_related_insns): simplify loop
11209 condition, move testing of RTX codes inside the loop.
11210 (rtx_renumbered_equal_p): do not use RTX_CODE.
11211 * rtl.c (rtx_class): Declare as enum rtx_class.
11212 * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
11213 Move to RTX_COMM_COMPARE class.
11214 (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
11215 Move to RTX_CONST_OBJ class.
11216 * rtl.h (enum rtx_class): New declaration,
11217 (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
11218 RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
11219 RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
11220 RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
11221 RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
11222 ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
11223 SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
11224 OBJECT_P): New macros.
11225 * config/sparc/sparc.c (noov_compare_op): Remove register
11226 from parameter.
11227
11228 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
11229
11230 * target.h: Remove texi jargons in comments.
11231
11232 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11233
11234 * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
11235 threshold to 0x4f.
11236
11237 Revert:
11238 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
11239 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
11240 as well.
11241 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
11242 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
11243
11244 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11245
11246 * doc/md.texi (cbranchmode4): New.
11247
11248 2004-03-02 Eric Christopher <echristo@redhat.com>
11249
11250 * config/mips/mips16.S: Change fixsfsi and fixdfsi to
11251 fix_trunc.
11252 * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
11253 * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
11254 * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
11255 * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
11256
11257 2004-03-02 Richard Henderson <rth@redhat.com>
11258
11259 PR middle-end/11767
11260 * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
11261 * optabs.c (prepare_cmp_insn): Force trapping memories to registers
11262 before the compare, if flag_non_call_exceptions.
11263
11264 2004-03-02 Richard Henderson <rth@redhat.com>
11265
11266 PR middle-end/14327
11267 * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
11268 emitting the label, not after.
11269
11270 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11271
11272 * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
11273 (m68hc11_mov_addr_mode): Likewise.
11274 (m68hc11_override_options): Initialize them based on target.
11275 (register_indirect_p): Allow a MEM for indirect addressing modes and
11276 use flags to control what is allowed.
11277 (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
11278 supported addressing modes.
11279 (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
11280 (go_if_legitimate_address_internal): Likewise.
11281 (m68hc11_indirect_p): Likewise and check the mode.
11282 (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
11283
11284 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11285
11286 * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
11287 (expand_builtin_setjmp_setup): Use
11288 targetm.builtin_setjmp_frame_value instead of
11289 BUILTIN_SETJMP_FRAME_VALUE.
11290 * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
11291 * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
11292 (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
11293 * target.h (gcc_target): Add builtin_setjmp_frame_value.
11294 * targhooks.c (default_builtin_setjmp_frame_value): New.
11295 * targhooks.h: Add a prototype for
11296 default_builtin_setjmp_frame_value.
11297 * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
11298 TARGET_BUILTIN_SETJMP_FRAME_VALUE.
11299
11300 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11301
11302 * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
11303 sequences of moves.
11304 (add peepholes): New peepholes to optimize sequences adding small
11305 constants.
11306 (bset peepholes): New peepholes to transform an OR in a bset form
11307 (bclr peepholes): Likewise for bclr form.
11308 (cmp peepholes): New peepholes to avoid register copies when comparing.
11309
11310 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11311
11312 * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
11313 to separate push from moves.
11314 ("*pushdf_internal"): Likewise.
11315 ("*pushsf_internal"): Likewise.
11316 ("*pushsi_internal"): Likewise.
11317 ("movdi_internal"): Use define_insn_and_split; non push operand.
11318 ("movdf_internal"): Likewise.
11319 ("movsf_internal"): Likewise.
11320 ("movsi_internal"): Likewise.
11321 ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
11322 ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
11323 ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
11324
11325 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11326
11327 * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
11328 ("cmphi_z_used", "cmpqi_z_used"): Likewise.
11329 ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
11330 ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
11331 ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
11332 ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
11333 ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
11334 ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
11335 ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
11336 ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
11337 ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
11338
11339 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11340
11341 * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
11342 (SOFT_XY_REGNUM): Define.
11343 (cmp split): Use the above instead of hard coded numbers.
11344 (8-bit op split): No need to check the mode; allow Q_REG.
11345 (ashift split): Adjust the first operand if it uses the SP and we
11346 are pushing the shifted value.
11347 (plus shift split): Fix when a source is in register D+X.
11348 ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
11349
11350 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
11351
11352 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
11353 comparing with Z register.
11354
11355 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11356
11357 * cfgloop.h (struct loop_desc): Removed.
11358 (struct loop): Fields simple, desc and has_desc removed.
11359 (simple_loop_p, count_loop_iterations): Declaration removed.
11360 * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
11361 (unmark_altered, blocks_invariant_registers, unmark_altered_insn
11362 blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
11363 invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
11364 simple_loop_exit_p, variable_initial_value, variable_initial_values,
11365 simple_condition_p, simple_increment, count_strange_loop_iterations,
11366 inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
11367 Removed.
11368 * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
11369
11370 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11371
11372 * genattrtab.c: Don't handle MATCH_INSN.
11373 * genrecog.c: Likewise.
11374 * gensupport.c: Likewise.
11375 * rtl.def (match_insn): Remove.
11376 * doc/md.texi (match_insn, match_insn2): Remove.
11377
11378 2004-03-02 Mark Mitchell <mark@codesourcery.com>
11379
11380 * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
11381 macro results in memory allocation.
11382
11383 2004-03-02 David O'Brien <obrien@FreeBSD.org>
11384
11385 * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
11386 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
11387 %(fbsd_dynamic_linker),
11388 (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
11389 config/i386/freebsd.h
11390 * config/arm/freebsd.h: Ditto.
11391 * config/i386/freebsd.h: Ditto.
11392 * config/i386/freebsd64.h: Ditto.
11393 * config/ia64/freebsd.h: Ditto.
11394 * config/rs6000/sysv4.h: Ditto.
11395 * config/sparc/freebsd.h: Ditto.
11396
11397 2004-03-02 Loren James Rittle <ljrittle@acm.org>
11398
11399 * gcc/doc/install.texi (*-*-freebsd*): Update target information.
11400
11401 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11402
11403 * rtl.def (define_combine): Remove.
11404
11405 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11406
11407 * config/h8300/h8300.md: Tweak formatting.
11408
11409 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11410
11411 * config/h8300/h8300.md (*cmphi_h8300): Rename to
11412 *cmphi_h8300_znvc.
11413 (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
11414
11415 2004-03-01 Mark Mitchell <mark@codesourcery.com>
11416
11417 PR bootstrap/14356
11418 * gcc.c (process_command): Remove const-qualification from argv.
11419 (main): Likewise.
11420
11421 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
11422
11423 * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
11424 pushqi1_h8300hs_advanced. Adjust its caller.
11425 (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
11426 Adjust its caller.
11427
11428 2004-03-02 Nicolas Roche <roche@act-europe.fr>
11429
11430 * Makefile.in (install-libgcc, install-multilib): Pass
11431 mkinstalldirs var to libgcc.mk.
11432
11433 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
11434
11435 * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
11436 * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
11437
11438 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
11439
11440 * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
11441 * config/h8300/h8300.md: Split several peephole2's, each into
11442 two.
11443
11444 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11445
11446 * dominance.c (recount_dominator): Handle postdominators.
11447
11448 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
11449
11450 * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
11451 (NUM_SYMBOL_TYPES): Likewise.
11452 (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
11453 (mips_unspec_address): Declare.
11454 (mips_gotoff_page, mips_gotoff_global): Delete.
11455 * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
11456 * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
11457 (mips_symbolic_constant_p, mips_symbolic_address_p)
11458 (mips_symbol_insns): Handle new symbol types.
11459 (general_symbolic_operand): New predicate.
11460 (mips_unspec_address): Make extern.
11461 (mips_gotoff_page, mips_gotoff_global): Delete.
11462 (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
11463 Handle new symbol types.
11464 * config/mips/mips.md (*lea_high64, *lea64): New patterns.
11465 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
11466 mips_unspec_address directly.
11467 * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
11468 the documentation of -mexplicit-relocs.
11469
11470 2004-03-01 Jeff Law <law@redhat.com>
11471
11472 * fold-const.c (fold): An equality comparison of a non-weak object
11473 against zero has a known result. Similarly an equality comparison
11474 of the address of two non-weak, unaliased symbols has a known result.
11475
11476 * ggc-page.c (struct page_entry): New field PREV.
11477 (ggc_alloc): Update PREV field appropriately.
11478 (sweep_pages): Likewise.
11479 (ggc_free): Likewise. Use PREV field rather than loop to
11480 improve ggc_free performance.
11481
11482 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
11483
11484 * config/mips/mips.c (mips_output_division): Use the division
11485 instruction to fill the delay slot of a zero check.
11486 (mips_idiv_insns): Adjust accordingly.
11487
11488 2004-03-01 Nathanael Nerode <neroden@gcc.gnu.org>
11489
11490 * config.gcc: Create a default tmake_file for linux, and use
11491 it in all but two linux clauses. Comment those two.
11492
11493 2004-03-01 Paolo Bonzini <bonzini@gnu.org>
11494
11495 * combine.c (try_combine): Do not refer to is_replaced.
11496 (gen_lowpart_for_combine): Perverse subregs now have a
11497 more politically correct name.
11498 * cse.c (cse_insn): Likewise.
11499 * jump.c: Fix bogus reference to delete_insn.
11500
11501 2004-02-29 Mark Mitchell <mark@codesourcery.com>
11502
11503 PR debug/14328
11504 * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
11505 constants as signed values.
11506
11507 PR middle-end/13448
11508 * c-tree.h (readonly_warning): Rename to ...
11509 (readonly_error): ... this.
11510 * c-typeck.c (build_unary_op): Adjust accordingly.
11511 (readonly_warning): Rename to ...
11512 (readonly_error): ... this and issue errors, not warnings.
11513 (build_modify_expr): Call readonly_error, not readonly_warning.
11514 (c_expand_asm_operands): Likewise.
11515 * tree-inline.c (optimize_inline_calls): Do not inline functions
11516 after errors have occurred.
11517
11518 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
11519
11520 * configure.ac: Rearrange some threading code for clarity;
11521 add section comment.
11522 * configure: Regenerate.
11523
11524 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
11525
11526 * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
11527 typos.
11528 * doc/cppopts.texi: Fix a typo.
11529
11530 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
11531
11532 * config/i386/i386.md: Fix formatting.
11533
11534 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
11535
11536 * configure.ac: Add some comments delineating sections of code.
11537
11538 * doc/install.texi: Note that libada uses autoconf 2.57 also.
11539
11540 * doc/install.texi: Fix idiot typo in previous commit.
11541
11542 * doc/install.texi: Update for conversion of intl to autoconf 2.57.
11543
11544 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
11545
11546 * config/h8300/h8300.md: Add comments about peephole2's.
11547
11548 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
11549
11550 * config/h8300/h8300.md: Tweak operand numbers of some
11551 peephole2's.
11552
11553 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
11554
11555 * config/h8300/h8300.md: Tweak comments about peephole2's.
11556
11557 2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl>
11558
11559 PR middle-end/14203
11560 * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
11561 instead of testing whether DECL_RTL is not NULL.
11562
11563 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
11564
11565 * config/sh/sh.c: Fix formatting.
11566
11567 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
11568
11569 * config/sh/sh.c: Convert to ISO-C.
11570
11571 2004-02-28 Andrew Pinski <pinskia@physics.uc.edu>
11572
11573 * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
11574 my previous patch.
11575
11576 * config/darwin.h (machopic_finish): Output stub even if the
11577 symbol is already defined.
11578
11579 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11580
11581 * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
11582
11583 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
11584
11585 * genattr.c (main): Don't define
11586 TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
11587 * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
11588 (DFA_PIPELINE_INTERFACE): Likewise.
11589 * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
11590 (DFA_PIPELINE_INTERFACE): Likewise.
11591
11592 2004-02-28 Richard Sandiford <rsandifo@redhat.com>
11593
11594 * config/mips/mips.md (tstsi, tstdi): Delete.
11595
11596 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
11597
11598 * config/mips/mips.c (override_options): Remove an obsolete
11599 duplicate definition of the "e" constraint.
11600 * config/mips/mips.h: Update a comment accordingly.
11601
11602 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
11603
11604 * config/mips/mips.md: Complete the unfinished R4000
11605 multiply/shift errata workaround. Improve documentation.
11606 (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
11607 has a hilo hazard.
11608 (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
11609 (muldi3, muldi3_internal): Likewise.
11610 (muldi3_internal2): Remove, replacing with...
11611 (muldi3_mult3, muldi3_r4000): ...these new patterns.
11612 (mulsidi3): Take the errata into account.
11613 (mulsidi3_32bit): Remove, replacing with...
11614 (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
11615 (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
11616 (umulsidi3): Take the errata into account.
11617 (umulsidi3_32bit): Remove, replacing with..
11618 (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
11619 (umulsi3_highpart, umulsi3_highpart_internal): Disable if
11620 TARGET_FIX_R4000.
11621 (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
11622 (smuldi3_highpart, umuldi3_highpart): Likewise.
11623 * doc/invoke.texi: Document the errata workaround.
11624
11625 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
11626
11627 * config/mips/mips-protos.h (mips_idiv_insns): Declare.
11628 * config/mips/mips.h (MASK_FIX_SB1): Bump.
11629 (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
11630 (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
11631 * config/mips/mips.c (mips_idiv_insns): New function.
11632 (override_options): Make -march=r4000 imply -mfix-r4000 by default.
11633 (mips_output_division): Add a workaround for the R4000 divide/shift
11634 errata.
11635 * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
11636 the length of an "idiv" instruction.
11637 * doc/invoke.texi: Document the new switches.
11638
11639 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
11640
11641 * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
11642 TARGET_SCHED_IS_COSTLY_DEPENDENCE.
11643
11644 2004-02-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11645
11646 PR optimization/14229
11647 * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
11648
11649 2004-02-28 Eric Botcazou <ebotcazou@act-europe.fr>
11650
11651 * fold-const.c (fold): Strip NOPs that change the signedness
11652 for RSHIFT too. Expand comment.
11653
11654 2004-02-27 Ian Lance Taylor <ian@wasabisystems.com>
11655
11656 PR optimization/7871
11657 * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
11658 from or to call insns.
11659
11660 2004-02-27 Eric Botcazou <ebotcazou@libertysurf.fr>
11661
11662 PR optimization/7871
11663 * flow.c (propagate_one_insn): Interpret calls as setting global
11664 registers, not merely clobbering them.
11665
11666 2004-02-27 Dale Johannesen <dalej@apple.com>
11667
11668 * config/darwin.c (machopic_output_possible_stub_label): Remove.
11669 config/darwin-protos.h: Ditto.
11670 config/darwin.h: Remove call to it.
11671 * combine.c (distribute_notes): Do not place a REG_DEAD note
11672 when value is both set and used.
11673
11674 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
11675
11676 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
11677 as well.
11678 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
11679 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
11680
11681 2004-02-27 Andrew Pinski <apinski@apple.com>
11682
11683 * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
11684 Speedup common case of the type values being in the same order.
11685
11686 2004-02-27 Steve Ellcey <sje@cup.hp.com>
11687
11688 * config/ia64/ia64.h (no-inline-float-divide): New option.
11689 * config/ia64/ia64.h (no-inline-int-divide): New option.
11690 * config/ia64/ia64.h (no-inline-sqrt): New option.
11691 (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
11692 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
11693 * config/ia64/ia64.c (ia64_override_options): Modify error
11694 checking for inlined division/sqrt.
11695
11696 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
11697
11698 * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
11699 ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
11700 value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
11701 config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
11702 copyright.
11703
11704 2004-02-27 Paul Brook <paul@codesourcery.com>
11705
11706 * function.c (assign_parms): Don't count pretend args for alignment.
11707
11708 2004-02-27 Richard Henderson <rth@redhat.com>
11709
11710 * passes.c: New file.
11711 * Makefile.in (OBJS-common): Add it.
11712 * diagnostic.c (rtl_dump_and_exit): Move decl ...
11713 * flags.h (rtl_dump_and_exit): ... here.
11714 * output.h (size_directive_output, last_assemble_variable_decl):
11715 Move from toplev.c.
11716 * rtl.h (reg_alloc): Move from toplev.c.
11717 * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
11718 struct dump_file_info, enum dump_file_index, dump_file_tbl,
11719 open_dump_file, close_dump_file, rest_of_decl_compilation,
11720 rest_of_type_compilation, rest_of_handle_final,
11721 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
11722 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
11723 rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
11724 rest_of_handle_regrename, rest_of_handle_reorder_blocks,
11725 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
11726 rest_of_handle_tracer, rest_of_handle_if_conversion,
11727 rest_of_handle_if_after_combine, rest_of_handle_web,
11728 rest_of_handle_branch_prob,
11729 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
11730 rest_of_handle_addressof, rest_of_handle_sibling_calls,
11731 rest_of_handle_jump_bypass, rest_of_handle_inlining,
11732 rest_of_handle_null_pointer, rest_of_handle_combine,
11733 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
11734 rest_of_handle_gcse, rest_of_handle_loop_optimize,
11735 rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
11736 (decode_d_option): Use enable_rtl_dump_file.
11737 (compile_file, finalize, do_compile): Move profile+combine+graph
11738 cleanup to finish_optimization_passes.
11739 * toplev.h (init_optimization_passes, finish_optimization_passes,
11740 enable_rtl_dump_file): Declare.
11741
11742 2004-02-27 Eric Botcazou <ebotcazou@act-europe.fr>
11743 Roger Sayle <roger@eyesopen.com>
11744
11745 * fold-const.c (fold): Revert 2004-02-25 change. Use the original
11746 operands to build a tree with swapped operands.
11747 * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
11748 'unsignedp' predicate to specify the signedness.
11749
11750 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
11751
11752 * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
11753 expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
11754 params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
11755 comment typos and formatting. Follow spelling conventions.
11756
11757 2004-02-26 Aldy Hernandez <aldyh@redhat.com>
11758
11759 * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
11760 fix_truncsfsi2.
11761
11762 * config/rs6000/spe.md: Delete spe_efsctuiz.
11763 Add spe_fixuns_truncsfsi2.
11764 Add spe_fix_truncsfsi2.
11765
11766 2004-02-26 Eric Christopher <echristo@redhat.com>
11767
11768 * c-lex.c (c_lex_string_translate): New variable.
11769 (lex_string): Use to determine string translation.
11770 * c-pragma.h: Prototype.
11771 * c-parse.in (start_string_translation): New. Set above.
11772 (stop_string_translation): Ditto.
11773 (attribute, attribute_list, asm_def, asm_stmt,
11774 asm_operand): Use above functions.
11775 * cp/parser.c (cp_parser_declaration): Translate strings
11776 unless token is RID_EXTERN. Set c_lex_string_translate
11777 for recursive use.
11778 (cp_parser_asm_definition): Only translate argument strings
11779 to asms.
11780 (cp_parser_asm_operand_list): Ditto.
11781 (cp_parser_attribute_list): Do not translate attribute strings.
11782
11783 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
11784
11785 * stmt.c (expand_start_case_dummy): Remove.
11786 * tree.h: Remove the corresponding prototype.
11787
11788 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
11789
11790 * builtins.c (apply_args_register_offset): Remove.
11791 * tree.h: Remove the corresponding prototype.
11792
11793 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
11794
11795 * stor-layout.c (is_pending_size): Remove.
11796 * tree.h: Remove the corresponding prototype.
11797
11798 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
11799
11800 * recog.c (validate_replace_src): Remove.
11801 * recog.h: Remove the corresponding prototype.
11802
11803 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
11804
11805 * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
11806 MAYBE_REG_PARM_STACK_SPACE.
11807 * function.c: Likewise.
11808 * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
11809 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
11810 * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
11811 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
11812
11813 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
11814
11815 * c-decl.c (c_expand_deferred_function): Remove.
11816 * c-tree.h: Remove the corresponding prototype.
11817
11818 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
11819
11820 * postreload.c (reload_cse_move2add): Generate just a PLUS
11821 instead of an entire SET.
11822
11823 2004-02-26 Jan Hubicka <jh@suse.cz>
11824
11825 * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
11826 /pentium4m.
11827 * i386.c (override_options): Add support for new CPUs.
11828 * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
11829 (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
11830 constants.
11831 * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
11832
11833 2004-02-26 Bob Wilson <bob.wilson@acm.org>
11834
11835 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
11836
11837 2004-02-26 Eric Botcazou <ebotcazou@act-europe.fr>
11838
11839 * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
11840 (sparc_emit_fixunsdi): New prototype.
11841 * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
11842 (sparc_emit_fixunsdi): New function.
11843 * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
11844 operand 1. Pass SFmode to sparc_emit_floatunsdi.
11845 (floatunsdidf2): Use 'general_operand' for operand 1. Pass DFmode
11846 to sparc_emit_floatunsdi.
11847 (fixuns_truncsfdi2): New expander.
11848 (fixuns_truncdfdi2): Likewise.
11849
11850 2004-02-26 Alan Modra <amodra@bigpond.net.au>
11851
11852 * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
11853 unless HAVE_cc0.
11854
11855 2004-02-25 Richard Henderson <rth@redhat.com>
11856
11857 * explow.c (force_reg): Call mark_reg_pointer as appropriate.
11858 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
11859 use (op0-op1) == 0 if op0 is a pointer.
11860 * config/alpha/alpha.md (cmpdi): Use some_operand.
11861 (three comparison combine splits): Remove.
11862
11863 2004-02-25 Richard Henderson <rth@redhat.com>
11864
11865 PR c/12794
11866 * c-common.c (handle_alias_attribute): Reject the attribute if
11867 current_function_decl is set.
11868
11869 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
11870
11871 * config.gcc: Add comment describing extra_gcc_objs.
11872 i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
11873 * configure.ac (extra_gcc_objs): New substitution variable.
11874 (host_extra_gcc_objs): Don't substitute.
11875 * configure: Regenerate.
11876 * Makefile.in: Use extra_gcc_objs.
11877
11878 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
11879
11880 * doc/contrib.texi: Add an entry for myself.
11881
11882 2004-02-25 Jan Hubicka <jh@suse.cz>
11883
11884 * basic-block.h (make_eh_edge, break_superblocks): Declare.
11885 * cfgbuild.c (make_eh_edge): Make global.
11886 * cfglayout.c (break_superblocks): Likewise; fix memory leak.
11887 * except.c (build_post_landing_pads, connect_post_landing_pads,
11888 dw2_build_landing_pads, sjlj_emit_function_enter,
11889 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
11890 sjlj_build_landing_pads): Update CFG.
11891 (emit_to_new_bb_before): New function.
11892 (finish_eh_generation): Do not rebuild the CFG.
11893
11894 2004-02-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11895
11896 * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
11897 target_cpu_default defines.
11898 * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
11899 * pa.h (TARGET_DEFAULT): Likewise.
11900
11901 2004-02-25 Eric Botcazou <ebotcazou@act-europe.fr>
11902
11903 * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
11904 comparisons with regard to signedness.
11905
11906 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
11907
11908 * arm.c (thumb_legitimize_address): New function.
11909 * arm-protos.h: Prototype it.
11910 * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
11911 (LEGITIMIZE_ADDRESS): Use it.
11912
11913 2004-02-25 J"orn Rennecke <joern.rennecke@superh.com>
11914
11915 * reload1.c (reload): Only spill eliminable register with multiple
11916 adjacent elimination alternatives if all alternatives fail.
11917
11918 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
11919
11920 * arm.c (arm_legitimate_index_p): For QImode the range of an offset
11921 is -4095...+4095 inclusive.
11922
11923 2004-02-25 Eric Botcazou <ebotcazou@libertysurf.fr>
11924
11925 * doc/install.texi (sparc-sun-solaris2* specific notes): Document
11926 the bootstrap failure with Sun CC 5.4 and 5.5.
11927
11928 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
11929
11930 * cse.c (cse_change_cc_mode_insns): Stop at any instruction
11931 which modifies NEWREG.
11932 (cse_condition_code_reg): Update the mode of CC_REG in
11933 CC_SRC_INSN on our own.
11934
11935 2004-02-24 Michael Matz <matz@suse.de>
11936
11937 * config/i386/i386.c (ix86_comp_type_attributes): Check for
11938 regparm attributes.
11939
11940 2004-02-24 Richard Henderson <rth@redhat.com>
11941
11942 * toplev.c (dump_file_tbl): Rename from dump_file.
11943 * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
11944 cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
11945 config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
11946 config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
11947 loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
11948 ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
11949 toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
11950 s/rtl_dump_file/dump_file/g.
11951
11952 2004-02-24 Aldy Hernandez <aldyh@redhat.com>
11953
11954 * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
11955 (spe_fixuns_truncsfsi2): Delete.
11956
11957 * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
11958 (fixuns_truncsfsi2): Delete.
11959
11960 2004-02-24 Josef Zlomek <zlomekj@suse.cz>
11961
11962 PR/14240
11963 * rtlanal.c (replace_label): Fix replacing labels in constant pool.
11964
11965 2004-02-24 Geoffrey Keating <geoffk@apple.com>
11966
11967 * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
11968
11969 2004-02-24 Jason Merrill <jason@redhat.com>
11970
11971 * tree.c (check_qualified_type): New fn.
11972 (get_qualified_type): Use it. If type already has the desired
11973 quals, just return it.
11974 * tree.h: Declare it.
11975
11976 2004-02-24 Sanjiv Kumar Gupta <sanjivg@noida.hcltech.com>
11977
11978 * target-def.h (TARGET_SCHED_INIT_GLOBAL,
11979 TARGET_SCHED_FINISH_GLOBAL): New macros.
11980
11981 * target.h (md_init_global, md_finish_global): Function
11982 declarations corresponding to new target macros.
11983
11984 * haifa-sched.c (sched_init, sched_finish): Allow target to
11985 call the new schedular hooks.
11986
11987 * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
11988 call to update_life_info.
11989
11990 * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
11991 flag_schedule_insns for SH4.
11992
11993 * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
11994 find_set_regmode_weight, find_insn_regmode_weight,
11995 find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
11996 sh_variable_issue, high_pressure, ready_reorder,
11997 rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
11998 functions used to throttle the insn movement in first
11999 scheduling pass for SH.
12000
12001 * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
12002 TARGET_SCHED_FINISH_GLOBAL.
12003
12004 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
12005
12006 Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
12007 2004-02-05 Alexandre Oliva <aoliva@redhat.com>
12008 * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
12009 symbols in sections named by the user.
12010 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
12011 * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
12012 2004-01-27 Alexandre Oliva <aoliva@redhat.com>
12013 * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
12014 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
12015 the above.
12016 2004-01-20 Alexandre Oliva <aoliva@redhat.com>
12017 * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
12018 one more pseudo to further improve code generation.
12019 2004-01-19 Alexandre Oliva <aoliva@redhat.com>
12020 * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
12021 inside UNSPEC.
12022 2004-01-16 Alexandre Oliva <aoliva@redhat.com>
12023 * config/frv/frv.c (frv_legitimate_address_p): Added
12024 allow_double_reg_p argument. Adjust all callers. Use it to
12025 decide whether to enable double-register indirect addressing.
12026 (frv_funcdesc_alias_set): Remove.
12027 (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
12028 register. Emit movdi_ldd.
12029 (ldd_address_operand): New.
12030 * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
12031 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12032 (PREDICATE_CODES): Add ldd_address_operand.
12033 * config/frv/frv.md (movdi_ldd): New.
12034 (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
12035 intermediate computations if possible.
12036 (symGOTOFF2reg_i): Fix harmless typo.
12037 2003-12-18 Alexandre Oliva <aoliva@redhat.com>
12038 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
12039 relocated p_vaddr to vaddr type.
12040 * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
12041 * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
12042 (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
12043 MEM, or use a funcdesc alias set. Use regular move instead of
12044 ldd.
12045 (dbl_memory_one_insn_operand): Recognize function descriptors by
12046 type or by alias set, and don't split them.
12047 * config/frv/frv.md (call, call_value): Never use call_internal
12048 for fdpic.
12049 (call_internal, call_value_internal): Never match for FDPIC.
12050 (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
12051 call_value_fdpicsi): Require FDPIC.
12052 (ldd): Removed.
12053 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
12054 * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
12055 * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
12056 (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
12057 FDPIC. Compute data base address.
12058 * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
12059 before the other self-specs are processed.
12060 * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
12061 Build with -fPIC.
12062 2003-12-15 Alexandre Oliva <aoliva@redhat.com>
12063 * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
12064 inhibit_libc is defined.
12065 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
12066 * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
12067 __FRV_FDPIC__.
12068 (__RELOC_POINTER): Define.
12069 (_Unwind_IteratePhdrCallback): Use it.
12070 * config/frv/frv.h (Twrite): Define.
12071 (TRANSFER_FROM_TRAMPOLINE): Use it.
12072 * config/frv/linux.h (INVOKE__main): Undefine.
12073 (Twrite): Override.
12074 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
12075 * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
12076 (-mlibrary-pic): Emphasize that this option generates EABI code.
12077 (-mcpu): Add fr550.
12078 (-mpack): Remove.
12079 2003-11-30 Alexandre Oliva <aoliva@redhat.com>
12080 * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
12081 and CONSTs in FDPIC mode.
12082 * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
12083 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
12084 * config/frv/frv.c (move_source_operand): Don't accept symbolic
12085 constants.
12086 * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
12087 rather than 'i' constraint for the 2-instruction alternative.
12088 (*movsi_2word): New, incorporating existing int_2word_operand splitter.
12089 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
12090 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
12091 EXTRA_CONSTRAINT_FOR_Y.
12092 (EXTRA_CONSTRAINT): Remove handling of 'Y'.
12093 * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
12094 (addsi3): Change 'Y' constraint to 'Q'.
12095 2003-11-27 Richard Sandiford <rsandifo@redhat.com>
12096 * reload.c (CONST_POOL_OK_P): New macro.
12097 (find_reloads): Use it to decide whether a constant can be forced
12098 into memory.
12099 * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
12100 constant satisfies got12_operand.
12101 (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
12102 (frv_legitimate_address_p): Check for valid unspec offsets using
12103 got12_operand rather than frv_legitimate_fdpic_operand_p.
12104 (frv_legitimate_fdpic_operand_p): Delete.
12105 (frv_emit_movsi): Abort if we try to use the FDPIC register during
12106 or after reload.
12107 (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
12108 TARGET_FDPIC.
12109 * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
12110 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
12111 * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
12112 (frv_fdpic_fptr_operand): Don't declare here.
12113 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
12114 rather than fdpic_got12_operand.
12115 (PREDICATE_CODES): Remove symbolic_operand entry. Add entries for
12116 got12_operand and const_unspec_operand.
12117 * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
12118 (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
12119 (symbolic_operand): Remove.
12120 (const_unspec_operand): New predicate.
12121 * config/frv/frv.md (*movsi_got): Use got12_operand.
12122 (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
12123 2003-11-18 Richard Sandiford <rsandifo@redhat.com>
12124 * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
12125 * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
12126 * config/frv/frv.c (frv_unspec): New structure.
12127 (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
12128 (frv_print_operand_memory_reference): Use frv_const_unspec_p to
12129 validate CONST indices. Use frv_output_const_unspec to print them.
12130 (frv_print_operand): Update call to unspec_got_name. Use
12131 frv_output_const_unspec to print constant unspecs.
12132 (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
12133 Reject UNSPECs otherwise.
12134 (unspec_got_name): Take the relocation number as argument, not an
12135 rtx containing it.
12136 (frv_output_addr_const_extra): Remove, replacing with...
12137 (frv_output_const_unspec): ...this new function.
12138 (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
12139 (gpr_or_int12_operand): Use fdpic_got12_operand.
12140 (dbl_memory_one_insn_operand): Likewise.
12141 (fdpic_got12_operand): Use frv_const_unspec_p.
12142 (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
12143 are already legitimate. Use frv_small_data_reloc_p when deciding
12144 whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
12145 2003-11-18 Alexandre Oliva <aoliva@redhat.com>
12146 * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
12147 * config/frv/libgcc-frv.ver: ... frv-specific symbols. New file.
12148 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
12149 label, for real this time.
12150 * config/frv/frv.c (frv_local_funcdesc_p): Update to new
12151 representation of visibility.
12152 (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
12153 such.
12154 2003-11-17 Richard Sandiford <rsandifo@redhat.com>
12155 * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
12156 (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
12157 * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
12158 it was explicitly disabled.
12159 (frv_stack_info): There is no need to save the link register in every
12160 frame unless TARGET_LINKED_FP is true.
12161 (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
12162 frame pointer if the stack pointer might change value.
12163 (frv_return_addr_rtx): Check and process "count" argument.
12164 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
12165 * config/frv/frv-protos.h (frv_legitimize_address): Remove.
12166 (frv_find_base_term): Declare.
12167 * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
12168 (FIND_BASE_TERM): Define.
12169 (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
12170 small_data_register_operand, small_data_symbolic_operand. Add
12171 symbolic_operand.
12172 * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
12173 (frv_print_operand_memory_reference, output_move_single): Remove
12174 special handling for unlegitimized sdata addresses.
12175 (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
12176 and symbolic addresses.
12177 (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
12178 (frv_find_base_term): New function.
12179 (int_2word_operand): Check specifically for symbolic address constants.
12180 (pic_register_operand, pic_symbolic_operand): Delete.
12181 (small_data_register_operand, small_data_symbolic_operand): Delete.
12182 (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
12183 Allow UNSPEC_GOT constants if !TARGET_FDPIC.
12184 (move_source_operand): Only accept CONSTs if they're a two-insn
12185 symbolic constant.
12186 (fdpic_got12_operand): Don't require TARGET_FDPIC.
12187 (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
12188 using gen_symGOTOFF2reg*.
12189 (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
12190 (frv_rtx_costs): Give all MEM addresses a cost of 0. Give MEMs
12191 themselves a cost of 3 insns.
12192 * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
12193 Change predicate to symbolic_operand.
12194 (*movsi_high_got, *movsi_lo_sum_got): Likewise.
12195 (*movsi_lda_sdata): Delete.
12196 (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
12197 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
12198 * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
12199 frv-*-*linux*.
12200 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
12201 label.
12202 * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
12203 -multilib-library-pic.
12204 (LINK_SPEC): Add -z text for -mfdpic.
12205 * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
12206 * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
12207 * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
12208 Override.
12209 (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
12210 FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
12211 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
12212 crtstuff-generated files.
12213 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
12214 * config.gcc: Add frv-*-*linux*.
12215 * config/frv/linux.h, config/frv/t-linux: New.
12216 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
12217 * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
12218 when -mfdpic even if a linker script is explicitly listed.
12219 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
12220 * config/frv/frv.c (frv_override_options): Clear asm_out
12221 unaligned_op for SImode on FDPIC.
12222 (frv_emit_movsi): Use compute_reloc_for_constant to compute the
12223 argument passed to decl_readonly_section.
12224 (frv_assemble_integer): Revert 2003-09-30's change, but make the
12225 whole block run with FDPIC even with -fno-PIC.
12226 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
12227 * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
12228 symbol or label plus offset to memory.
12229 (frv_emit_movsi): Emit GPREL only if -mgprel-ro. Emit 32-bit
12230 GOTOFF and GPREL for LABEL_REF.
12231 * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
12232 -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
12233 (MASK_GPREL_RO, TARGET_GPREL_RO): New.
12234 (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
12235 * doc/invoke.texi: Document them.
12236 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
12237 * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
12238 (frv_splittable_got_operand): Removed.
12239 * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
12240 LO_SUM. Add comments.
12241 (frv_override_options): Moved enabling of FDPIC to
12242 DRIVER_SELF_SPECS. Don't enable MASK_DWORD.
12243 (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
12244 (frv_legitimize_fdpic_address): Don't duplicate logic in
12245 frv_emit_movsi.
12246 (frv_gen_GPsym2reg): New.
12247 (unspec_got_name): Added gprel.
12248 (frv_expand_fdpic_call): Add support for inlining PLTs.
12249 (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
12250 (gpr_or_int12_operand): Added GPREL12.
12251 (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
12252 (small_data_symbolic_operand): Fail if FDPIC.
12253 (fdpic_splittable_got_operand): Removed.
12254 (fdpic_got12_operand): Added GPREL12.
12255 (frv_emit_movsi): Reorganize to avoid duplication. Emit GPREL
12256 when appropriate. Fix sdata GOTOFF.
12257 (frv_legitimate_constant_p): Require legitimate PIC operand for
12258 FDPIC with pic, but only a legitimate fdpic operand for non-pic.
12259 (frv_assemble_integer): Move FDPIC funcdesc handling out of
12260 flag_pic case.
12261 (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
12262 frv_assemble_integer fails.
12263 * config/frv/frv.h (DRIVER_SELF_SPECS): New.
12264 (SUBTARGET_DRIVER_SELF_SPECS): New.
12265 (ASM_SPEC): Don't pass -mno-fdpic.
12266 (LINK_SPEC): Pass -melf32frvfd for FDPIC.
12267 (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
12268 (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
12269 -multilib-library-pic.
12270 (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
12271 condexec_si_media_operator, condexec_sf_add_operator and
12272 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
12273 and condexec_sf_unary_operator.
12274 * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
12275 New.
12276 (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
12277 movsi_internal. Give them internal names. movsi_got has type
12278 int.
12279 (fdpic got splitters): Remove.
12280 (symGPREL2reg, symGPREL2reg_hilo): New.
12281 * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
12282 to -mlibrary-pic. Map -multilib-library-pic to it.
12283 * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
12284 Document.
12285 2003-09-28 Alexandre Oliva <aoliva@redhat.com>
12286 * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
12287 (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
12288 (frv_cannot_force_const_mem): New function.
12289 (const_small_data_p, plus_small_data_p): Update comments on sdata
12290 on FDPIC.
12291 (frv_override_options): Set flag_pie for FDPIC too.
12292 (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
12293 call-saved registers on FDPIC.
12294 (frv_stack_info): Don't preserve the PIC register on FDPIC, and
12295 don't force LR to be preserved.
12296 (frv_expand_prologue): Likewise.
12297 (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
12298 (frv_frame_pointer_required): Don't force it just because the
12299 FDPIC register is used.
12300 (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
12301 operand only if !condexec_p.
12302 (frv_legitimize_address): Return the FDPIC-legitimized address.
12303 Don't match small data here on FDPIC.
12304 (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
12305 symbols. Use TRUE/FALSE instead of 1/0.
12306 (frv_local_funcdesc_p): New.
12307 (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
12308 immediates when possible.
12309 (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
12310 (dbl_memory_one_insn_operand): Accept addresses that add a REG and
12311 an UNSPEC_GOT.
12312 (frv_emit_movsi): Handle FDPIC before small data. Use GOTOFF and
12313 12-bit immediates when possible.
12314 (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
12315 are not legitimate pic operands.
12316 (frv_in_small_data_p): Re-enable for FDPIC.
12317 * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
12318 (FRV_GLOBAL_P): Removed.
12319 * config/frv/frv.md: Add modes to CONSTs.
12320 (movsi_got): New.
12321 (movsi_lo_sum_got): Use separate matches instead of match_dup.
12322 (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
12323 (fdpic splittable operations): Match on flag_pic != 1.
12324 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
12325 * config/frv/frv.c (frv_asm_out_constructor,
12326 frv_asm_out_destructor): Pass to frv_assemble_integer the size in
12327 bytes, not bits.
12328 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
12329 * config/frv/frv.c (frv_assemble_integer): Reject complex
12330 expressions referencing function SYMBOL_REFs.
12331 * config/frv/frv.c (frv_function_symbol_referenced_p): New.
12332 (move_source_operand): Reject CONSTs that reference function
12333 SYMBOL_REFs on FDPIC.
12334 (frv_emit_movsi): If we get such a CONST, break it up.
12335 * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
12336 (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
12337 * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
12338 MEM.
12339 (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
12340 (frv_trampoline_size): Increase for FDPIC.
12341 * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
12342 (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
12343 * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
12344 Disable use of GOTOFF for now.
12345 (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
12346 Disable use of small data in FDPIC for now.
12347 (frv_asm_output_mi_thunk): Implement for FDPIC.
12348 * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
12349 * config/frv/frv.c (frv_asm_out_constructor): Use
12350 frv_assemble_integer for FDPIC pointers.
12351 (frv_asm_out_destructor): Likewise.
12352 * config/frv/frv.md (ldd): Fix order of operands. Use
12353 address_operand for input.
12354 2003-09-18 DJ Delorie <dj@redhat.com>
12355 * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
12356 (unspec_got_name): Correct typo.
12357 (frv_emit_movsi): Pre-expand splittable GOTs.
12358 (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
12359 * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
12360 (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
12361 * config/frv/t-frv: Add -mfdpic multilibs.
12362 * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
12363 (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
12364 * config/frv/frv.c (frv_override_options): -mfdpic assumes
12365 flag_pic, default to 32-bit pics, require DWORD ops.
12366 (frv_override_options): Add W and Z constraints.
12367 (frv_expand_prologue): No pic prologue for -mfdpic.
12368 (frv_asm_output_mi_thunk): Support -mfdpic (soon).
12369 (frv_print_operand_memory_reference): Handle GOT constants.
12370 (frv_legitimate_address_p): Allow GOT constants.
12371 (frv_legitimize_address): Handle GOT addresses too.
12372 (frv_legitimate_fdpic_operand_p): New.
12373 (frv_legitimize_fdpic_address): New.
12374 (unspec_got_name): New.
12375 (frv_output_addr_const_extra): New.
12376 (frv_expand_fdpic_call): New.
12377 (frv_fdpic_fptr_operand): New.
12378 (gpr_or_int12_operand): Handle GOT operands.
12379 (int_2word_operand): Handle GOT operands.
12380 (fdpic_operand): New.
12381 (fdpic_splittable_got_operand): New.
12382 (fdpic_got12_operand): New.
12383 (frv_emit_movsi): Handle GOT operands.
12384 (frv_assemble_integer): -mfdpic doesn't use rofixups.
12385 (frv_print_operand): Support 'g' code for GOT operands.
12386 * config/frv/frv-protos.h: Add prototypes as needed.
12387 * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
12388 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
12389 R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
12390 R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
12391 R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
12392 R_FRV_GOTOFFLO): New.
12393 (movsi_high_got, movsi_lo_sum_got): New.
12394 (*movsi_pic): Don't use this splitter for -mfdpic.
12395 (addsi3): Allow GOT references also.
12396 (call, call_value): Handle -mfdpic separately.
12397 (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
12398 call_value_fdpicsi): New.
12399 (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
12400 symGOTOFF2reg_i): New.
12401 * config/frv/frv.h (MASK_FDPIC): New.
12402 (TARGET_FDPIC): New.
12403 (TARGET_SWITCHES): Add -mfdpic.
12404 (FDPIC_FPTR_REGNO): New.
12405 (FDPIC_REGNO): New.
12406 (OUR_FDPIC_REG): New.
12407 (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
12408 FDPIC_CALL_REGS.
12409 (REG_CLASS_NAMES): Likewise.
12410 (REG_CLASS_CONTENTS): Likewise.
12411 (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
12412 (EXTRA_CONSTRAINT): Add it here.
12413 (FRV_GLOBAL_P): New.
12414 (OUTPUT_ADDR_CONST_EXTRA): New.
12415
12416 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
12417
12418 * config/sparc/sparc.h: Remove commented-out definitions of
12419 TARGET_EDOM and GEN_ERRNO_RTX.
12420
12421 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
12422
12423 * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
12424 df_analyse with df_analyze.
12425
12426 2004-02-24 Alan Modra <amodra@bigpond.net.au>
12427
12428 * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
12429 beginning of block.
12430
12431 2004-02-23 James E Wilson <wilson@specifixinc.com>
12432
12433 * calls.c (precompute_arguments): Update comment.
12434
12435 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
12436
12437 * et-forest.c: Replace et_occurences with et_occurrences.
12438
12439 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
12440
12441 * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
12442 with iv_analyze.
12443
12444 2004-02-23 Kelley Cook <kcook@gcc.gnu.org>
12445
12446 * config/i386/i386.c: Rename pni to sse3.
12447 * config/i386/i386.h: Likewise.
12448 * config/i386/i386.md: Likewise.
12449 * config/i386/pmmintrin.h: Likewise.
12450 * doc/extend.texi: Likewise.
12451 * doc/invoke.texi: Likewise.
12452
12453 2004-02-23 Zack Weinberg <zack@codesourcery.com>
12454 Kazu Hirata <kazu@cs.umass.edu>
12455
12456 Remove -fwritable-strings.
12457 * c-common.c (fix_string_type): Don't check
12458 flag_writable_strings.
12459 (fix_string_type): Likewise.
12460 * c-opts.c (set_std_c89): Don't initialize
12461 flag_writable_strings.
12462 (set_std_c99): Likewise.
12463 * common.opt (fwritable-strings): Remove.
12464 * flags.h: Remove the external declaration of
12465 flag_writable_strings.
12466 * opts.c (common_handle_option) <OPT_fwritable_strings>:
12467 Remove.
12468 * toplev.c (flag_writable_strings): Remove.
12469 (f_options): Remove an entry for writable-strings.
12470 * varasm.c (const_hash_1) <STRING_CST>: Don't check
12471 flag_writable_strings.
12472 (compare_constant) <STRING_CST>: Likewise.
12473 (build_constant_desc): Likewise.
12474 * config/darwin.c (machopic_select_section): Likewise.
12475 * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
12476 * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
12477 * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
12478 * config/mips/mips.c (mips_select_section): Likewise.
12479 (mips_encode_section_info): Likewise.
12480 * config/pa/pa.c (pa_select_section): Likewise.
12481 * config/pa/pa.h (TEXT_SPACE_P): Likewise.
12482 * config/v850/v850.c (v850_select_section): Likewise.
12483 * doc/invoke.texi (-fwritable-strings): Remove.
12484 (-fno-const-strings): Don't mention -fwritable-strings.
12485 * doc/trouble.texi: Don't mention -fwritable-strings.
12486
12487 2004-02-23 Nathanael Nerode <neroden@gcc.gnu.org>
12488
12489 * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
12490
12491 2004-02-23 Dale Johannesen <dalej@apple.com>
12492
12493 * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
12494 (movdf_hardfloat64): Ditto.
12495 (movdf_softfloat64): Ditto.
12496
12497 2004-02-23 Fariborz Jahanian <fjahanian@apple.com>
12498 * config/rs6000/rs6000.c (function_arg): call to
12499 rs6000_mixed_function_arg for DFmode moved to allow
12500 normal DFmode incoming register assignment.
12501
12502 2004-02-23 Dale Johannesen <dalej@apple.com>
12503
12504 * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
12505 (movdf_hardfloat64): Ditto.
12506
12507 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
12508
12509 * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
12510 config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
12511 copyright.
12512
12513 2004-02-23 Andrew Pinski <pinskia@physics.uc.edu>
12514
12515 PR c/14156
12516 * c-typeck.c (c_expand_return): Change check for VAR_DECL
12517 to use DECL_P instead.
12518
12519 * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
12520 * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
12521
12522 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
12523
12524 * Makefile.in (opts.o): Depend on target.h.
12525 * opts.c (decode_options): Use targetm.default_short_enums
12526 instead of DEFAULT_SHORT_ENUMS.
12527 * system.h (DEFAULT_SHORT_ENUMS): Poison.
12528 * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
12529 (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
12530 * target.h (gcc_target): Add default_short_enums.
12531 * config/cris/cris.h: Remove a comment about
12532 DEFAULT_SHORT_ENUMS.
12533 * config/ip2k/ip2k.h: Likewise.
12534 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
12535 TARGET_DEFAULT_SHORT_ENUMS. Update the description.
12536
12537 2004-02-23 Eric Botcazou <ebotcazou@libertysurf.fr>
12538 Falk Hueffner <falk@debian.org>
12539
12540 PR c/14188
12541 * builtins.c (expand_builtin_va_arg): Emit an informative message
12542 if a trap is generated.
12543 * c-typeck.c (build_function_call): Likewise.
12544
12545 2004-02-22 Jakub Jelinek <jakub@redhat.com>
12546
12547 * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
12548 fopen.
12549 * libgcov.c: Include sys/stat.h.
12550 * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
12551 * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
12552 * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
12553 * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
12554
12555 2004-02-22 Kazu Hirata <kazu@cs.umass.edu>
12556
12557 * reorg.c: Remove comments about dead ports.
12558
12559 2004-02-22 Christopher Faylor <cgf@redhat.com>
12560
12561 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
12562 extra host object file when targetting cygwin rather than generic
12563 object files.
12564
12565 2004-02-22 Josef Zlomek <zlomekj@suse.cz>
12566
12567 Merge from tree-ssa:
12568 2003-11-20 Richard Henderson <rth@redhat.com>
12569
12570 * tree-inline.c (insert_decl_map): New.
12571 (remap_decl, remap_type, remap_block, copy_body_r,
12572 initialize_inlined_parameters, declare_return_variable,
12573 remap_save_expr): Use it.
12574
12575 * function.c (copy_body_r): Add mapping from id->ret_label to
12576 id->ret_label. Revert test for ret_label.
12577
12578 2004-02-22 Jakub Jelinek <jakub@redhat.com>
12579
12580 * genoutput.c (process_template): Strip trailing whitespace in @
12581 templates and issue a warning if there was any.
12582
12583 2004-02-21 Christopher Faylor <cgf@redhat.com>
12584
12585 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
12586 object file when targetting cygwin.
12587 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
12588 overridden by top-level Makefile.
12589
12590 2004-02-21 Roger Sayle <roger@eyesopen.com>
12591
12592 * config/i386/i386.c (standard_80387_constant_p): Also prefer
12593 the x87's load constant instructions when optimizing for size.
12594
12595 2004-02-21 Kazu Hirata <kazu@cs.umass.edu>
12596
12597 * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
12598 * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
12599 * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
12600 * fold-const.c: Likewise.
12601 * simplify-rtx.c: Likewise.
12602
12603 2004-02-21 Alan Modra <amodra@bigpond.net.au>
12604
12605 * combine.c (can_combine_p): Don't ignore SETs marked with
12606 REG_EH_REGION notes.
12607 (try_combine): When attemting to fix unrecognized insns, don't
12608 split a PARALLEL that contains the original i2.
12609
12610 2004-02-21 Ziemowit Laski <zlaski@apple.com>
12611
12612 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
12613 SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
12614 * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
12615 * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
12616 (vector, pixel, bool): #define to __vector, __pixel and __bool.
12617 (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
12618 portion of header.
12619 (__altivec_link_error_invalid_argument): Remove prototype; will use
12620 __builtin_altivec_compiletime_error("vec_*") instead.
12621 (vec_*): Fix/complete set of available operation overloads given the
12622 existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
12623 cv-correctness of pointer arguments; in C, always check for correct
12624 argument types before macro expansion.
12625 * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
12626 defining Darwin/PowerPC-specific '-f[no-]altivec' and
12627 '-W[no-]altivec-long-deprecated' switches.
12628 * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
12629 '__vector', '__pixel' and '__bool' macros using
12630 '__attribute__((altivec(...)))' types.
12631 * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
12632 bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
12633 bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
12634 New type nodes.
12635 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
12636 handling '-W[no-]altivec-long-deprecated'.
12637 (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
12638 (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
12639 altivec_expand_dst_builtin): Remove casts from integer literals.
12640 (altivec_expand_builtin): Likewise; handle expansion of new
12641 '__builtin_altivec_compiletime_error' function.
12642 (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
12643 types, and make them distinct from other vector types; register
12644 '__builtin_altivec_compiletime_error' function.
12645 (print_operand): For 'P', print a full target register name instead of
12646 merely its number.
12647 (rs6000_attribute_table): Add "altivec" attribute.
12648 (rs6000_handle_altivec_attribute): New function.
12649 * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
12650 '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
12651 maps to).
12652 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
12653 declare.
12654 (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
12655
12656 2004-02-20 James E Wilson <wilson@specifixinc.com>
12657
12658 * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
12659 check.
12660 (shift_mix4left+2): Delete redundant pattern.
12661
12662 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
12663
12664 * alias.c (OUTGOING_REGNO): Don't define the default.
12665 * builtins.c (OUTGOING_REGNO): Likewise.
12666 (INCOMING_REGNO): Likewise.
12667 (apply_args_register_offset): Always use OUTGOING_REGNO.
12668 * combine.c (OUTGOING_REGNO): Likewise.
12669 * sibcall.c (OUTGOING_REGNO): Likewise.
12670 * defaults.h (INCOMING_REGNO): Provide the default.
12671 (OUTGOING_REGNO): Likewise.
12672
12673 2004-02-21 Jan Hubicka <jh@suse.cz>
12674
12675 * params.def (max-peeled-insns, max-completely-peeled-insns,
12676 max-once-peeled-insns): Set to 400.
12677
12678 2004-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12679
12680 PR c++/12007
12681 * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
12682 are set for parameters before outputing debugging information.
12683
12684 2004-02-20 Falk Hueffner <falk@debian.org>
12685
12686 PR target/14201
12687 * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
12688 numbers.
12689
12690 2004-02-20 Per Bothner <per@bothner.com>
12691
12692 * input.h: Don't #include line-map.h. It may cause link problems
12693 with undefined linemap_line_start when line-map.h is included but
12694 line-map.o is not linked, as currently happens with gengtype on
12695 compilers that don't support inline.
12696 * toplev.c: So we do have to explicitly #include line-map.h here.
12697
12698 2004-02-20 Richard Henderson <rth@redhat.com>
12699
12700 * doc/invoke.texi: Add -Wvariadic-macros.
12701
12702 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
12703
12704 * haifa-sched.c (sched_emit_insn): Remove.
12705 * sched-int.h: Remove the corresponding prototype.
12706
12707 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
12708
12709 Revert:
12710 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
12711 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
12712 * system.h (DEFAULT_SHORT_ENUMS): Poison.
12713 * config/cris/cris.h: Remove a comment about
12714 DEFAULT_SHORT_ENUMS.
12715 * config/ip2k/ip2k.h: Likewise.
12716 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
12717
12718 2004-02-20 Mohan Embar <gnustuff@thisiscool.com>
12719 Tom Tromey <tromey@redhat.com>
12720
12721 * doc/install.texi: Moved --disable-libgcj and
12722 --with-system-zlib documentation to new section for
12723 Java-specific options.
12724 Added explicit Cross-Compiler-Specific Options subheading.
12725 Added section for Java-specific options.
12726
12727 2004-02-20 Matt Kraai <kraai@alumni.cmu.edu>
12728
12729 * doc/install.texi (Building the Ada compiler): Remove
12730 example.
12731
12732 2004-02-20 James E Wilson <wilson@specifixinc.com>
12733
12734 * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
12735
12736 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
12737
12738 * gcc.c (process_command): Allow translation of the copyright
12739 symbol but not the rest of the copyright message.
12740 * gcov.c (print_version): Likewise. Allow translation of the
12741 message about warranty.
12742
12743 2004-02-20 Hans-Peter Nilsson <hp@axis.com>
12744
12745 * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
12746 predicate.
12747 ("*andsi_clear"): Tweak constraints to not match postincrement.
12748 Adjust the predicate to exclude a volatile memory reference.
12749 ("*andhi_clear"): Ditto. Rename from "*andhi_clear_signed".
12750 ("*andhi_clear_unsigned"): Remove, non-matching pattern.
12751
12752 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
12753
12754 * move-if-change: Remove.
12755 * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
12756 (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
12757 (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
12758 (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
12759 (s-gtyp-gen, s-iov): Use the top level move-if-change.
12760 * objc/Make-lang.in (objc/objc-parse.y): Likewise.
12761
12762 2004-02-19 James E Wilson <wilson@specifixinc.com>
12763
12764 * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
12765 for operand2. Add condition that requires register_operand operand2
12766 before reload.
12767
12768 2004-02-19 Richard Sandiford <rsandifo@redhat.com>
12769 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
12770
12771 * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
12772 * config/mips/mips.md: Expand comment above unaligned loads and stores.
12773
12774 2004-02-19 Richard Henderson <rth@redhat.com>
12775
12776 * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
12777 * tree.c (build0, build1, build2, build3, build4): Split out from...
12778 (build): ... here. Call them.
12779 * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
12780
12781 * convert.c (convert_to_integer): Remove extra build argument.
12782 * tree-inline.c (expand_call_inline): Likewise.
12783
12784 2004-02-19 Richard Henderson <rth@redhat.com>
12785
12786 * c-opts.c (warn_variadic_macros): New.
12787 (c_common_handle_option): Set it.
12788 (sanitize_cpp_opts): Copy it to cpp_opts.
12789 * c.opt (Wvariadic-macros): New.
12790 * cpplib.h (struct cpp_options): Add warn_variadic_macros.
12791 * cppinit.c (cpp_create_reader): Initialize it.
12792 * cppmacro.c (parse_params): Check it.
12793
12794 2004-02-19 David Daney <ddaney@avtrex.com>
12795
12796 PR preprocessor/14198
12797 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
12798 builtin_assert ("machine=mips")
12799
12800 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
12801
12802 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
12803 * system.h (DEFAULT_SHORT_ENUMS): Poison.
12804 * config/cris/cris.h: Remove a comment about
12805 DEFAULT_SHORT_ENUMS.
12806 * config/ip2k/ip2k.h: Likewise.
12807 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
12808
12809 2004-02-19 Zack Weinberg <zack@codesourcery.com>
12810
12811 * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
12812 when passing single SFmode quantities in general registers,
12813 put them in the high half.
12814
12815 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
12816
12817 * doc/md.texi (Standard Names): Document additional dependency on
12818 fix pattern.
12819
12820 * optabs.c (ftruncify): Remove.
12821 (expand_fix): Manually inline ftruncify above.
12822 (can_fix_p): Add FIXME note.
12823
12824 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
12825
12826 * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
12827 spe_fixuns_truncsfsi2.
12828
12829 * config/rs6000/rs6000.md (fixunssfsi2): Rename to
12830 fixuns_truncsfsi2.
12831
12832 2004-02-19 Steve Ellcey <sje@cup.hp.com>
12833
12834 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
12835 * testsuite/gcc.dg/20040219-1.c: New test.
12836
12837 2004-02-19 Ulrich Weigand <uweigand@de.ibm.com>
12838
12839 * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
12840 "*subsf3_cconly"): Subtraction is not commutative.
12841
12842 2004-02-19 Zack Weinberg <zack@codesourcery.com>
12843
12844 * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
12845 (sdbout_symbol): If called before sdbout_init, queue DECL for
12846 later and return.
12847 (sdbout_init): Set sdbout_initialized true, process decls
12848 queued earlier by sdbout_symbol.
12849 (sdbout_finish): Use size_t for index variable.
12850
12851 2004-02-19 Jeff Law <law@redhat.com>
12852
12853 * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
12854 for unordered comparison codes.
12855
12856 2004-02-19 Ian Lance Taylor <ian@wasabisystems.com>
12857
12858 * reload1.c (reload): Correct comment.
12859 (scan_paradoxical_subregs): Remove #if 0 and old comment.
12860 * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
12861 register variables are not used by reload.
12862
12863 2004-02-19 Hans-Peter Nilsson <hp@axis.com>
12864
12865 PR target/14209
12866 * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
12867 constraints to not match postincrement. Adjust the predicate to
12868 exclude a volatile memory reference.
12869
12870 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
12871
12872 * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
12873
12874 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
12875
12876 * hooks.c (hook_void_tree_int): Remove.
12877 (hook_void_constcharptr): Likewise.
12878 (hook_int_void_0): Likewise.
12879 * hooks.h: Remove the prototypes for the above three
12880 functions.
12881 * targhooks.c (hook_bool_machine_mode_true): Remove.
12882 * targhooks.h: Remove the prototype for
12883 hook_bool_machine_mode_true.
12884
12885 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
12886
12887 * emit-rtl.c (subreg_realpart_p): Remove.
12888 (reorder_insns_with_line_notes): Likewise.
12889 (end_full_sequence): Likewise.
12890 * rtl.h: Remove the prototype for the above functions.
12891
12892 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
12893
12894 * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
12895 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
12896 config/iq2000/iq2000.h, config/m32r/m32r.h,
12897 config/pdp11/pdp11.h, config/sparc/sparc.h,
12898 config/xtensa/xtensa.h: Remove commented-out or useless
12899 definitions of CASE_VECTOR_PC_RELATIVE.
12900
12901 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
12902
12903 * loop.c (all_sets_invariant_p): Remove.
12904
12905 2004-02-19 Eric Botcazou <ebotcazou@libertysurf.fr>
12906
12907 PR target/12916
12908 * config/sparc/sparc.h (NPARM_REGS): Delete.
12909 (BASE_RETURN_VALUE_REG): Likewise.
12910 (BASE_OUTGOING_VALUE_REG): Likewise.
12911 (BASE_PASSING_ARG_REG): Likewise.
12912 (BASE_INCOMING_ARG_REG): Likewise.
12913 * config/sparc/sparc.c (sparc_strict_argument_naming): Test
12914 TARGET_ARCH64, not TARGET_V9.
12915 (function_arg_slotno): Dispatch based on the mode class.
12916 Handle vector modes like floating-point modes.
12917 (function_arg_record_value_1): Handle vector types like
12918 floating-point types.
12919 (function_arg_record_value_2): Likewise.
12920 Calculate regno after mode transformation.
12921 (function_arg): Handle vector modes like floating-point modes.
12922 (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
12923 If ARCH64, do not recheck alignment.
12924 (function_arg_pass_by_reference): Reorder the conditions.
12925 (sparc_return_in_memory): Move after function_arg_padding.
12926 Implement calling conventions for vector modes.
12927 (sparc_struct_value_rtx): Move after sparc_return_in_memory.
12928 (function_value): Move scope of 'regbase'.
12929 Implement calling conventions for vector modes.
12930 (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
12931 and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
12932 (sparc_va_arg): Use function_arg_pass_by_reference to test whether
12933 the argument is passed by reference.
12934 (sparc_type_code): Handle vector types.
12935
12936 2004-02-19 Alan Modra <amodra@bigpond.net.au>
12937
12938 * function.c (assign_parms): When building decl_rtl for
12939 SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
12940
12941 2004-02-19 Olivier Hainque <hainque@act-europe.fr>
12942
12943 * expr.c (is_aligning_offset): Check if we are aligning the
12944 expressions's address over BIGGEST_ALIGNMENT in bytes, not
12945 in bits.
12946
12947 2004-02-18 Matt Austern <austern@apple.com>
12948
12949 * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
12950 LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
12951 (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
12952 defined. Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
12953 spec string.
12954 * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
12955
12956 2004-02-18 Zack Weinberg <zack@codesourcery.com>
12957
12958 * dwarf2out.c (loclabel_num): Move outside #ifdef
12959 DWARF2_DEBUGGING_INFO and mark with GTY(()).
12960 * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
12961 Mark with GTY(()).
12962 (ia64_hpux_add_extern_decl): Save the decl, not the name string.
12963 Allocate memory with ggc_alloc. No need to copy anything.
12964 (ia64_hpux_file_end): Update to match.
12965
12966 2004-02-18 Jakub Jelinek <jakub@redhat.com>
12967
12968 * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
12969 by default.
12970
12971 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
12972
12973 * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
12974 ("divmodtisi3"): Likewise.
12975 ("udivmoddi4", "udivmodtidi3"): Likewise.
12976 ("divmodsi4", "divmoddisi3"): Likewise.
12977 ("udivmodsi4", "udivmoddisi3"): Likewise.
12978 ("udivsi3", "umodsi3"): Likewise.
12979
12980 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
12981
12982 * config/s390/s390.c (s390_mainpool_start): Delete the main pool
12983 placeholder insn when chunkifying the pool.
12984
12985 2004-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12986
12987 * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
12988 generating PIC code.
12989
12990 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
12991
12992 * config/h8300/h8300-protos.h: Add a prototype for
12993 h8300_expand_branch.
12994 * config/h8300/h8300.c (h8300_expand_branch): New.
12995 * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
12996 bgtu, beq, bne): Call h8300_expand_branch().
12997
12998 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
12999
13000 * config/h8300/h8300-protos.h: Add prototypes for
13001 h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
13002 * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
13003 (h8300_hard_regno_mode_ok): Likewise.
13004 * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
13005 h8300_hard_regno_nregs().
13006 (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
13007
13008 2004-02-18 Per Bothner <per@bothner.com>
13009
13010 * cpphash.h (struct cpp_buffer): Restore return_at_eof field. This
13011 partly reverts my 2003-10-01 change, because we're back to logically
13012 including <command line> inside the main line.
13013 * cpplex.c (_cpp_get_fresh_line): Check return_at_eof field.
13014 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof of current buffer.
13015 Fixes PR preprocessor/14103.
13016
13017 * cppfiles.c (_cpp_stack_include): When appropriate decrement
13018 line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
13019 (cpp_push_include): Don't need to increment pfile's line field.
13020 * line-map.h (LAST_SOURCE_LINE_LOCATION): Only decrement by 1.
13021
13022 * c-ppoutput.c (print struct): New first_time field.
13023 (init_pp_output): Set print.first_time.
13024 (pp_file_change): Use print.first_time, rather than MAIN_FILE_P,
13025 which is set also for (say) <command line>. Clear print.first_time.
13026
13027 * cppfiles.c (struct _cpp_file): Comment and type for pch field
13028 does not match the code, so fix both.
13029 (should_stack_file): Inline include_pch_p function.
13030 (include_pch_p): Remove pointless function.
13031
13032 * cpphash.h (struct cpp_buffer): Remove unused search_cached field.
13033
13034 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13035
13036 * config/h8300/h8300.md (four define_peephole2's): Use
13037 h8300_regs_ok_for_stm().
13038
13039 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13040
13041 * config/h8300/h8300-protos.h: Update the prototype for
13042 expand_a_rotate().
13043 * config/h8300/h8300.c (expand_a_rotate): Remove the first
13044 argument.
13045 * config/h8300/h8300.md: Update all callers.
13046
13047 2004-02-18 Jan Hubicka <jh@suse.cz>
13048
13049 * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
13050 floats.
13051 (simplify_binary_operation): Deal with logicals on floats.
13052
13053 * i386.md (SSE fabs splitters): Emit new patterns.
13054 (SSE cmov splitters): Likewise.
13055 (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
13056 (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
13057 subregs.
13058 (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
13059 (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
13060
13061 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13062
13063 * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
13064 by hand.
13065 (output_a_rotate): Tweak a comment.
13066 * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
13067 (*rotlhi3_1): Change to rotlhi3_1.
13068 (*rotlsi3_1): Change to rotlsi3_1.
13069
13070 2004-02-18 Richard Earnshaw <rearnsha@arm.com>
13071
13072 PR target/13866
13073 * arm.c (load_multiple_operation): Don't insist that the source reg
13074 of a post-increment component is the same as the destination.
13075 (store_multiple_operation): Likewise.
13076
13077 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13078
13079 * config/h8300/h8300.md: Move movsf patterns into one section
13080 of the file.
13081
13082 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13083
13084 * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
13085 loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
13086 xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
13087 config/mips/linux64.h, config/pa/pa-64.h,
13088 config/rs6000/aix51.h, config/rs6000/aix52.h,
13089 config/rs6000/spe.md, config/sparc/linux.h,
13090 config/sparc/linux64.h: Update copyright.
13091
13092 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
13093
13094 * config/h8300/h8300.md: Move push patterns into one
13095 section of the file.
13096
13097 2004-02-18 Mark Mitchell <mark@codesourcery.com>
13098
13099 PR c++/11326
13100 * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
13101 fntype.
13102
13103 2004-02-18 Paul Brook <paul@codesourcery.com>
13104
13105 * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
13106
13107 2004-02-18 Paul Brook <paul@codesourcery.com>
13108
13109 PR debug/12934
13110 * dwarf2out.c (loc_descriptor_from_tree): Handle
13111 EXPR_WITH_FILE_LOCATION.
13112
13113 2004-02-18 Jakub Jelinek <jakub@redhat.com>
13114
13115 * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
13116 testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
13117 trailing whitespace from instructions.
13118
13119 2004-02-17 Geoffrey Keating <geoffk@apple.com>
13120
13121 * configure.ac: When generating auto-build.h, pass
13122 --enable-languages to the sub-configure.
13123 Put quotes around ${program_transform_name} when generating
13124 name of as, ld, nm, objdump.
13125 * configure: Regenerate.
13126
13127 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
13128
13129 * Makefile.in (s-check, s-config, s-conditions, s-flags)
13130 (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
13131 (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
13132 (s-preds, s-iov): Do not depend on move-if-change.
13133
13134 2004-02-17 James E Wilson <wilson@specifixinc.com>
13135
13136 * caller-save.c (insert_restore): Pass mem through copy_rtx.
13137 (insert_save): Likewise.
13138
13139 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13140
13141 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
13142 warning.
13143
13144 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13145
13146 * config/h8300/h8300.md (*one_complsi2_h8300): Change to
13147 *one_cmplsi2_h8300.
13148 (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
13149
13150 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13151
13152 * config/h8300/h8300-protos.h: Update the prototype of
13153 fix_bit_operand().
13154 * config/h8300/h8300.c (fix_bit_operand): Remove the second
13155 argument "what".
13156 * config/h8300/h8300.md: Update all callers.
13157
13158 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13159
13160 * config/h8300/h8300.c (fix_bit_operand): Change the name of
13161 the last argument to "code" from "type".
13162
13163 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13164
13165 * config/h8300/h8300.c: Remove an extern declaration of
13166 rtx_equal_function_value_matters.
13167
13168 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13169
13170 * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
13171 by hand.
13172 * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
13173 (*iorqi3_1): Change to iorqi3_1.
13174 (*xorqi3_1): Change to xorqi3_1.
13175
13176 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13177
13178 * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
13179 typos.
13180
13181 2004-02-17 Jan Hubicka <jh@suse.cz>
13182
13183 * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
13184
13185 2004-02-18 Alan Modra <amodra@bigpond.net.au>
13186
13187 PR optimization/14119
13188 * combine.c (try_combine): When attemting to fix unrecognized insns,
13189 don't delete SETs marked with REG_EH_REGION notes.
13190
13191 2004-02-17 Ulrich Weigand <uweigand@de.ibm.com>
13192
13193 * combine.c (simplify_if_then_else): Do not replace
13194 (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
13195 modes differ.
13196
13197 2004-02017 Steven Bosscher <stevenb@suse.de>
13198
13199 * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
13200 function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
13201 tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
13202 * ada/utils.c: Likewise.
13203 * cp/decl.c: Likewise.
13204 * f/com.c: Likewise.
13205 * java/class.c: Likewise.
13206
13207 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13208
13209 * config/h8300/h8300.md: Fix comment typos.
13210
13211 2004-02-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13212
13213 * config/mips/t-iris6gld: Renamed to ...
13214 * config/mips/t-irix-gld: ... this.
13215 * config.gcc (mips-sgi-irix6*): Reflect this
13216 (mips-sgi-irix5*): Use it with GNU ld.
13217
13218 * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
13219 to ...
13220 * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
13221 * config/mips/t-irix-gld: Reflect this.
13222 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
13223
13224 * config/mips/iris5gld.h: New file.
13225 * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
13226 Only use collect2 without gas.
13227
13228 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
13229 Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
13230 (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
13231 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
13232
13233 * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
13234 * config/mips/iris5.h: ... here.
13235
13236 * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
13237 IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
13238 (STARTFILE_SPEC, ENDFILE_SPEC): Define.
13239
13240 * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
13241 using irix_startfile_spec, irix_endfile_spec.
13242
13243 2004-02-16 Gunther Nikl <gni@gecko.de>
13244
13245 * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
13246
13247 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13248
13249 * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
13250 insns by hand.
13251
13252 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13253
13254 * cfghooks.c (split_edge): Speed up updating of dominators.
13255
13256 2004-02-17 Mark Mitchell <mark@codesourcery.com>
13257
13258 PR c++/11326
13259 * c-common.c (flag_abi_version): Remove.
13260 * c-common.h (flag_abi_version): Likewise.
13261 * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
13262 * c.opt (fabi-version): Remove.
13263 * calls.c (expand_call): Always pass a function type to
13264 struct_value_rtx. Use convert_memory_address.
13265 * common.opt (fabi-version): Add it.
13266 * flags.h (flag_abi_version): Likewise.
13267 (abi_version_at_least): New macro.
13268 * opts.c (common_handle_option): Add OPT_fabi_version.
13269 * toplev.c (flag_abi_version): Define it.
13270 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
13271 New function.
13272 (ia64_output_mi_thunk): Use it.
13273 (ia64_struct_value_rtx): Likewise.
13274
13275 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13276
13277 * config/h8300/h8300.c (h8300_emit_stack_adjustment):
13278 Don't generate insns by hand.
13279
13280 2004-02-17 Andrew Pinski <pinskia@physics.uc.edu>
13281
13282 PR c++/14178
13283 * doc/invoke.texi (fabi-version): The default is 2 now.
13284
13285 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13286
13287 * loop-iv.c: New file.
13288 * Makefile.in (loop-iv.o): New.
13289 * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
13290 * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
13291 num_loop_branches): New functions.
13292 * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
13293 iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
13294 find_simple_exit, iv_number_of_iterations, iv_analysis_done,
13295 get_simple_loop_desc, free_simple_loop_desc): Declare.
13296 (simple_loop_desc): New inline function.
13297 (struct rtx_iv, struct niter_desc): New.
13298 * cfgloopmanip.c (loopify): Specify semantics more precisely.
13299 * expr.c (force_operand): Handle subregs of expressions created by
13300 loop unroller.
13301 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
13302 parts of the initialization to toplev.c
13303 * loop-unroll.c (loop_exit_at_end_p): New.
13304 (unroll_and_peel_loops): Call iv_analysis_done.
13305 (decide_peel_once_rolling, decide_peel_completely,
13306 decide_unroll_stupid, decide_unroll_constant_iterations,
13307 decide_unroll_runtime_iterations, decide_peel_simple,
13308 peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
13309 unroll_loop_runtime_iterations): Use new simple loop analysis.
13310 * loop-unswitch.c (compare_and_jump_seq): New.
13311 (may_unswitch_on_p): Renamed to ...
13312 (may_unswitch_on): Use new iv analysis.
13313 (reversed_condition): Export.
13314 (unswitch_single_loop, unswitch_loop): Use new iv analysis.
13315 * predict.c (estimate_probability): Use new simple loop analysis.
13316 * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
13317 canon_condition, simplify_using_condition): Declare.
13318 * stor-layout.c (get_mode_bounds): New.
13319 * toplev.c (rest_of_handle_loop2): Some parts of
13320 initialization/finalization moved here from loop-init.c.
13321
13322 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
13323
13324 * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
13325 pointer.
13326 (CALL_USED_REGISTERS): Likewise.
13327 (REG_ALLOC_ORDER): Likewise.
13328 (REG_CLASS) <GENERAL_REGS>: Likewise.
13329
13330 2004-02-16 Geoffrey Keating <geoffk@apple.com>
13331
13332 * doc/md.texi (Insn Canonicalizations): Document left-chaining
13333 in associative operators.
13334 * rtlanal.c (commutative_operand_precedence): Create some new
13335 variables. Prefer a commutative operand on the left, then
13336 binary expressions, then NEG and NOT.
13337
13338 2004-02-16 Matthias Klose <doko@debian.org>
13339
13340 * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
13341 in terms of SHLIB_SOVERSION.
13342 * config/m68k/t-slibgcc-elf-ver: New file.
13343 * config/pa/t-slibgcc-elf-ver: New file.
13344 * config.gcc (m68k-linux, parisc-linux): Use them when not
13345 sjlj exceptions are not configured.
13346
13347 2004-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
13348
13349 * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
13350
13351 2004-02-16 Zack Weinberg <zack@codesourcery.com>
13352
13353 * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
13354
13355 2004-02-16 Joseph S. Myers <jsm@polyomino.org.uk>
13356
13357 * doc/sourcebuild.texi: Mention backends.html.
13358
13359 2004-02-16 Kazu Hirata <kazu@cs.umass.edu>
13360
13361 * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
13362 line-map.c, line-map.h, var-tracking.c: Fix comment
13363 formatting.
13364
13365 2004-02-16 Richard Henderson <rth@redhat.com>
13366
13367 * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
13368
13369 * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
13370
13371 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
13372
13373 * config/h8300/h8300.md: Remove unnecessary parallels from
13374 all define_insn and define_split patterns.
13375
13376 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
13377
13378 * config/h8300/h8300.md: Remove explicit (set_attr "cc"
13379 "clobber").
13380
13381 2004-02-15 Bernardo Innocenti <bernie@develer.com>
13382
13383 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
13384 '%#'.
13385
13386 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
13387
13388 * config/ia64/ia64.c, config/mips/mips.c,
13389 config/mmix/mmix-modes.def: Fix comment typos.
13390
13391 2004-02-15 Roger Sayle <roger@eyesopen.com>
13392
13393 * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
13394 (get_directive_line): Remove unused function prototype.
13395
13396 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
13397
13398 * tree-inline.c (copy_body_r): Do not replace ret_label.
13399
13400 2004-02-14 Jan Hubicka <jh@suse.cz>
13401
13402 * i386.c (x86_four_jump_limit): New variable.
13403 (k8_avoid_jump_misspredicts): Rename to ...
13404 (ix86_avoid_jump_misspredicts): .. this one.
13405 (ix86_pad_returns): Break out from ...
13406 (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
13407 to.
13408 * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
13409
13410 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
13411
13412 * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
13413 PARALLEL is NULL.
13414
13415 2004-02-14 Per Bothner <per@bothner.com>
13416
13417 * fix-header.c (line_table): Move local variable in main to global.
13418 * scan.h (line_table): Use it.
13419 * scan-decls.c (scan_decls): Need to call linemap_lookup on token's
13420 line (recently renamed to src_loc) before calling recognized_function.
13421
13422 2004-02-14 Matt Kraai <kraai@alumni.cmu.edu>
13423
13424 * Makefile.in: Fix comment typos.
13425
13426 2004-02-14 Olivier Hainque <hainque@act-europe.fr>
13427
13428 * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
13429 for start_value when it is directly moved into reg, and factorize
13430 the retrieval of GET_MODE (reg).
13431
13432 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
13433
13434 * config/mips/mips-protos.h (mips_load_got_page): Delete.
13435 (mips_load_got_global): Delete.
13436 (mips_gotoff_page): Declare.
13437 * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
13438 (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
13439 UNSPEC_LOAD_GOT pattern rather than a MEM.
13440 (*load_got[sd]i): New patterns.
13441 * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
13442 (mips_load_got_page, mips_load_got_global): Delete.
13443 (mips_gotoff_page): New function.
13444 (override_options): Don't initialize mips_got_alias_set.
13445
13446 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
13447
13448 * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
13449 (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
13450 (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
13451 (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
13452 (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
13453 * config/mips/mips.c: Fix some overly-long lines.
13454 (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
13455 (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
13456
13457 2004-02-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13458
13459 * configure.ac: Search for as, ld below libexec/gcc.
13460 * configure: Regenerate.
13461
13462 2004-02-14 Ben Elliston <bje@wasabisystems.com>
13463
13464 * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
13465 __builtin_arm_setwcx ().
13466 * config/arm/arm.c (arm_expand_builtin): Generate operands
13467 correctly and reverse their order in call to gen_iwmmxt_tmcr ().
13468
13469 2004-02-14 Ben Elliston <bje@wasabisystems.com>
13470
13471 * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
13472 and "wmuluh" to "wmulsm" and "wmulum", respectively.
13473 * config/arm/arm.h (enum arm_builtins): Rename enumerators to
13474 ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
13475 * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
13476 (_mm_mulhi_pu16): Likewise.
13477
13478 2004-02-13 Zack Weinberg <zack@codesourcery.com>
13479
13480 * xcoffout.c (xcoff_assign_fundamental_type_number): Check
13481 DECL_NAME != 0 before dereferencing.
13482
13483 2004-02-13 Ulrich Weigand <uweigand@de.ibm.com>
13484
13485 * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
13486 (s390_output_addr_const_extra): Declare.
13487 (s390_output_pool_entry): Remove FILE * argument.
13488 * config/s390/s390.c (s390_output_symbolic_const): Remove.
13489 (s390_output_addr_const_extra): New function.
13490 (print_operand_address): Call output_addr_const instead of
13491 s390_output_symbolic_const.
13492 (print_operand): Likewise.
13493 (s390_output_pool_entry): Use assemble_integer for symbolic constants.
13494 Remove FILE * argument.
13495 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
13496 * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
13497 call.
13498
13499 2004-02-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13500
13501 * cfgloopanal.c (mark_irreducible_loops): Rewriten.
13502 (struct edge, struct vertex, struct graph): New.
13503 (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
13504 free_graph): New functions.
13505
13506 2004-02-12 Chris Demetriou <cgd@broadcom.com>
13507
13508 * config/mips/mips.md (casesi_internal, casesi_internal_di):
13509 Use ".set macro" to avoid warnings about multi-instruction
13510 macros, since they're intentional.
13511
13512 2004-02-12 Geoffrey Keating <geoffk@apple.com>
13513
13514 * config/darwin.h: Add include guards. Remove old, now incorrect,
13515 comment about STANDARD_EXEC_PREFIX.
13516
13517 * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
13518 $(GCOV_INSTALL_NAME) to install manpages. Remove generic rule
13519 for installing .1 manpages. Add rules for installing cpp
13520 and gcov manpages under their installed names.
13521
13522 2004-02-12 Alexandre Oliva <aoliva@redhat.com>
13523
13524 * configure.ac (gcc_cv_ld): Don't set to LD if target is not
13525 host, but try LD_FOR_TARGET first.
13526 * configure: Rebuilt.
13527
13528 2004-02-12 Zack Weinberg <zack@codesourcery.com>
13529
13530 * dbxout.c: Move declaration of dbxout_type_decl outside
13531 #ifdef DBX_DEBUGGING_INFO.
13532 * c-parse.in: Don't give the asmdef production a type.
13533
13534 2004-02-12 Zack Weinberg <zack@codesourcery.com>
13535
13536 * debug.h (struct gcc_debug_hooks): Add type_decl field.
13537 (debug_nothing_tree_int): Prototype.
13538 (dwarf_debug_hooks): Delete, unused.
13539 * debug.c (do_nothing_debug_hooks): Update.
13540 (debug_nothing_tree_int): New function.
13541 * langhooks.h (struct lang_hooks_for_decls):
13542 Remove builtin_type_decls field.
13543 * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
13544 (LANG_HOOKS_DECLS): Update.
13545 * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
13546 Use debug_hooks->type_decl.
13547 * dbxout.c (preinit_symbols): New static.
13548 (dbx_debug_hooks, xcoff_debug_hooks): Update.
13549 (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
13550 lang_hooks.decls.builtin_type_decls. Do scan preinit_symbols
13551 for symbols to output.
13552 (dbxout_type_decl): New function.
13553 (dbxout_symbol): If called before dbxout_init has run, queue
13554 the symbol for later. Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
13555 to TYPE_DECLs before emitting them.
13556 * xcoffout.c (assign_type_number): Delete.
13557 (xcoff_type_numbers): New static table.
13558 (xcoff_assign_fundamental_type_number): New function.
13559 * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
13560 DBX_OUTPUT_STANDARD_TYPES. Remove unnecessary #ifdefs.
13561 * sdbout.c: Include varray.h.
13562 (deferred_global_decls): New static.
13563 (sdb_debug_hooks): Update.
13564 (sdbout_global_decl): If we can't emit something right now,
13565 remember it in deferred_global_decls.
13566 (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
13567 (sdbout_init): Initialize deferred_global_decls.
13568 * Makefile.in: Update dependencies of sdbout.o.
13569 * dwarf2out.c (dwarf2out_type_decl): New function.
13570 (dwarf2_debug_hooks): Update.
13571 * vmsdbgout.c (vmsdbg_debug_hooks): Update.
13572 * c-decl.c (getdecls): Just return 0.
13573 (check_for_loop_decls): Don't use getdecls.
13574 (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
13575 * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
13576
13577 2004-02-12 Ulrich Weigand <uweigand@de.ibm.com>
13578
13579 * config/s390/s390.c (s390_sched_reorder2): Remove.
13580 (TARGET_SCHED_REORDER2): Do not redefine.
13581
13582 2004-02-12 Zack Weinberg <zack@codesourcery.com>
13583
13584 * c-parse.in (maybe_type_qual): Delete.
13585 (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
13586 (asm_argument): New grammar rules.
13587 (extdef_1): Use asmdef.
13588 (maybeasm): Move down with other asm rules; use simple_asm_expr.
13589 (xexpr): Move up with other expression rules.
13590 (stmt): Use asm_stmt.
13591
13592 * c-typeck.c (build_asm_expr): New function - body mostly
13593 pulled from build_asm_stmt.
13594 (build_asm_stmt): Just handle tacking on the volatile qualifier.
13595 * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
13596
13597 2004-02-12 Richard Sandiford <rsandifo@redhat.com>
13598
13599 PR bootstrap/13617
13600 * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
13601 (mips_declare_object): Make variadic.
13602 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
13603 mips_output_aligned_decl_common.
13604 * config/mips/mips.c (mips_output_aligned_decl_common): New function.
13605 (mips_declare_object): Make variadic.
13606
13607 2004-02-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13608
13609 * function.c (update_epilogue_consts): Teach about binary operations.
13610
13611 * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
13612 previous MEM_VOLATILE in REF.
13613 * function.c (fixup_var_refs): Save volatile_ok and set to 1.
13614 * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
13615
13616 2004-02-12 Gunther Nikl <gni@gecko.de>
13617
13618 * config.gcc: Restore support for m68k-openbsd.
13619
13620 2004-02-12 Jan Hubicka <jh@suse.cz>
13621
13622 * tree-optimize.c (tree_rest_of_compilation): Do not release
13623 DECL_ARGUMENTS.
13624
13625 2004-02-11 Matt Kraai <kraai@alumni.cmu.edu>
13626
13627 * doc/install.texi: Fix the spelling of "explicitly".
13628
13629 2004-02-11 Eric Christopher <echristo@redhat.com>
13630
13631 * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
13632 duplicate argument structure of cpp_interpret_string.
13633 * cpphash.h: Move prototype...
13634 * cpplib.h: Here.
13635 * cpplib.c: Fix calls to match new function signature.
13636
13637 2004-02-11 Joseph S. Myers <jsm@polyomino.org.uk>
13638
13639 PR c/456
13640 * cppexp.c (num_binary_op): Don't allow comma operators in #if
13641 constant expressions at all outside C99 mode if pedantic.
13642
13643 2004-02-11 Uros Bizjak <uros@kss-loka.si>
13644
13645 * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
13646 (log10_optab, log2_optab): Define corresponding macros.
13647 * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
13648 * genopinit.c (optabs): Implement log10_optab and log2_optab
13649 using log10?f2 and log2?f2 patterns.
13650 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
13651 using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
13652 (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
13653 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
13654
13655 * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
13656 log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
13657 log2, log2f and log2l built-ins as inline x87 intrinsics.
13658
13659 2004-02-11 Richard Henderson <rth@redhat.com>
13660
13661 PR target/1532
13662 * flow.c (insn_dead_p): A clobber of a dead hard register is a
13663 dead insn after reload.
13664
13665 2004-02-11 Ulrich Weigand <uweigand@de.ibm.com>
13666
13667 * tree.h (frame_base_decl): Add GTY marker.
13668 * var-tracking.c (frame_base_decl): Likewise.
13669
13670 2004-02-11 Daniel Berlin <dberlin@dberlin.org>
13671
13672 * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
13673 incorrect, hunk.
13674 (add_location_or_const_value_attribute): Use text_section_label,
13675 not TEXT_SECTION_NAME.
13676
13677 2004-02-11 Per Bothner <per@bothner.com>
13678
13679 Represent column numbers using line-map's source_location.
13680 The "next available source_location" is now managed internally by
13681 line-maps.c rather than by clients.
13682 * line-map.h (struct line_map): New field column_bits.
13683 <from_line>: Rename field to start_location.
13684 (struct line_maps): New fields highest_location and max_column_hint.
13685 (linemap_check_files_exited): New declaration.
13686 (linemap_line_start): New declaration.
13687 (linemap_add): Remove from_line parameter; use highest_location field.
13688 (SOURCE_LINE, LAST_SOURCE_LINE): Modify to use column_bits.
13689 (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION): New macros.
13690 (CURRENT_LINE_MAP): Remove macro.
13691 (linemap_position_for_column): New inline function.
13692 * line-map.c (linemap_init): Clear new fields.
13693 (linemap_check_files_exited): New function, extracted from ...
13694 (linemap_free): Use linemap_check_files_exited.
13695 (linemap_add): Remove from_line parameter. Various updates.
13696 (linemap_line_start): New function.
13697 (linemap_lookeup): Update for new field names.
13698 * cpphash.h (struct cpp_reader) <map>: Field removed. Because
13699 linemap_position_for_column may unpredictably change the current map,
13700 it is cleaner and simpler for us to not cache it in cpp_reader.
13701 (struct cpp_buffer): New sysp field.
13702 Changed warned_cplusplus_comments and from_stage3 to bitfields.
13703 * cppinit.c (cpp_read_min_file): pfile->map no longer exists.
13704 * cpplib.c (do_line, do_linemarker, _cpp_do_file_change): Get
13705 current map using linemap_lookup.
13706 (do_linemarker): Also set buffer's sysp field.
13707 (destringize_and_run): No longer need to decrement current line.
13708 * cppfiles.c (_cpp_stack_file): Set sysp from and in buffer.
13709 (search_path_head, open_file_failed): Use buffer's sysp.
13710 (cpp_make_system_header): Get current map using linemap_lookup.
13711 Also set buffer's sysp flag.
13712 * cppmacro.c (_cpp_builtin_macro_text): Likewise use linemap_lookup.
13713 * cpphash.h (CPP_INCREMENT_LINE): New macro.
13714 (struct cpp_buffer): Moved fields saved_cur, saved_rlimit to ...
13715 (struct cpp_reader): ... and adding saved_line_base field.
13716 * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
13717 Update accordingly. Don't adjust line.
13718 (_cpp_scan_out_logical_line): Use CPP_INCREMENT_LINE.
13719 * cpphash.c (CPP_IN_SYSTEM_HEADER): Replaced macro by ...
13720 (cpp_in_system_header): ... new inline function, using buffer's sysp.
13721 * cpperror.c (_cpp_begin_message): Update to use cpp_in_system_header.
13722 * cpplex.c (_cpp_lex_direct): Likewise.
13723 * cppmacro.c (_cpp_builtin_macro_text): Likewise.
13724 * cppmacro.c (_cpp_create_definition): Use buffer's sysp field.
13725 * cpplib.h (struct cpp_token): Rename line field to src_loc.
13726 Remove col field as it is now subsumed by src_loc.
13727 * cpperror.c: Update various field, parameter, and macro names.
13728 (print_location): If col==0, try SOURCE_COLUMN of line.
13729 (cpp_error): Use cur_token's src_loc field, rather than line+col.
13730 * cpplib.c (do_diagnostic): Token's src_loc fields replaces line+col.
13731 * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
13732 _cpp_skip_block_comment): Use CPP_INCREMENT_LINE.
13733 (_cpp_temp_token): Replace cpp_token's line+col fields by src_loc.
13734 (_cpp_get_fresh_line): Don't need to adjust line for missing newline.
13735 (_cpp_lex_direct): Use linemap_position_for_column.
13736 * c-ppoutput.c (maybe_print_line, print_line): Don't take map
13737 parameter. Instead get it from the line_table global. Adjust callers.
13738 (print): Remove map field. Replace line field to src_line.
13739 (init_pp_output, account_for_newlines, maybe_print_line): Adjust.
13740 (cb_line_change): Use SOURCE_COLUMN. Minor optimizations.
13741 (pp_file_change): Use MAIN_FILE_P since we cannot checked print.map.
13742 Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
13743 * cpptrad.c (copy_comment): Rename variable.
13744 * c-lex.c (map): Remove static variable, for same reason we removed
13745 cpp_reader's map field.
13746 (cb_line_change, cb_def_pragma, cb_define, cb_undef): Hence we need
13747 to call linemap_lookup.
13748 (cb_line_change): Token's line field replaced by src_loc.
13749 (fe_file_change): Use MAINFILE_P and LAST_SOURCE_LINE macros.
13750 Don't save new_map.
13751
13752 * cpphash.h, cpperror.c, cpplib.h: Some renames of fileline to
13753 source_location.
13754
13755 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
13756
13757 * config/rs6000/altivec.md (*movv4si_internal): At least one
13758 operand must be register_operand.
13759 (*movv8hi_internal1): Likewise.
13760 (*movv16qi_internal1): Likewise.
13761 (*movv4sf_internal1): Likewise.
13762
13763 2004-02-10 Aldy Hernandez <aldyh@redhat.com>
13764
13765 * config/rs6000/spe.md ("*movv2si_internal"): Check for register
13766 operand.
13767 (movv4hi_internal): Same.
13768 (movv2sf_internal): Same.
13769 (movv1di_internal): Same.
13770
13771 2004-02-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
13772
13773 * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
13774 TARGET_OLDABI consistently.
13775 * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
13776 mips_va_arg,override_options,compute_frame_size,
13777 mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
13778 ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
13779 and TARGET_OLDABI consistently.
13780 * config/mips/mips.md (exception_receiver): Likewise.
13781 * config/mips/linux64.h: Likewise.
13782
13783 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
13784
13785 * gcc/config/rs6000/rs6000.c (rs6000_override_options)
13786 Set AltiVec ABI and vrsave as default for ppc64 linux.
13787 (init_cumulative_args): Post error, if try to return
13788 value in AltiVec register without enable AltiVec.
13789 (function_arg_advance): Ditto for passing arguments.
13790
13791 2004-02-11 Richard Sandiford <rsandifo@redhat.com>
13792
13793 * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
13794 a label before updating its usage count.
13795
13796 2004-02-10 Matt Kraai <kraai@alumni.cmu.edu>
13797
13798 * doc/install.texi: Remove extra cd.
13799
13800 2004-02-10 Ziemowit Laski <zlaski@apple.com>
13801
13802 * c-common.c (vector_size_helper): Remove; call
13803 reconstruct_complex_type() instead.
13804 * tree.c (reconstruct_complex_type): New function
13805 (formerly vector_size_helper() in c-common.c).
13806 (make_vector): Make externally visible.
13807 * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
13808
13809 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
13810
13811 * config/h8300/h8300-protos.h: Add a prototype for
13812 h8300_regs_ok_for_stm.
13813 * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
13814 * config/h8300/h8300.md (stm_h8300s_2_advanced,
13815 stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
13816 stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
13817 stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
13818 ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
13819 ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
13820 ldm_h8300s_4_normal, ldm_h8300s_4): Use
13821 h8300_regs_ok_for_stm().
13822
13823 2004-02-10 Danny Smith <dannysmith@users.sourceforge.net>
13824
13825 PR c/14088
13826 * real.c (real_from_string): Look for 'X' as well as 'x' in
13827 hexfloat strings.
13828
13829 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
13830
13831 * config/h8300/h8300.md: Remove an incorrect comment about
13832 peephole2. Add comments.
13833
13834 2004-02-10 Josef Zlomek <zlomekj@suse.cz>
13835
13836 PR/14058
13837 * emit-rtl.c (set_decl_incoming_rtl): New.
13838 * tree.h (set_decl_incoming_rtl): New.
13839 * function.c (assign_parms): Use set_decl_incoming_rtl for setting
13840 DECL_INCOMING_RTL.
13841 * ada/misc.c (adjust_decl_rtl): Likewise.
13842
13843 2004-02-10 Per Bothner <per@bothner.com>
13844
13845 * c-opts.c (c_common_post_options): Don't emit working directory
13846 in cpp output if -P was specified.
13847
13848 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
13849
13850 PR c/14092
13851 * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
13852 negate_expr back to the original type.
13853
13854 2004-02-10 Alan Modra <amodra@bigpond.net.au>
13855
13856 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
13857 bump retaddr here.
13858
13859 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
13860
13861 * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
13862 gen_lowpart_SUBREG): Move under the file in which they
13863 are actually declared.
13864
13865 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>
13866
13867 * doc/sourcebuild.texi: Add libada documentation.
13868
13869 * doc/install.texi: Update documentation on Ada build, now
13870 that the GNAT lib and tools are built automatically.
13871
13872 2004-02-10 Richard Sandiford <rsandifo@redhat.com>
13873
13874 * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
13875 && TARGET_IRIX.
13876
13877 2004-02-09 Ziemowit Laski <zlaski@apple.com>
13878
13879 * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
13880 boundaries outside build_component_ref() call (a macro in ObjC++).
13881
13882 2004-02-09 Bob Wilson <bob.wilson@acm.org>
13883
13884 * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
13885 (init_cumulative_args): Likewise.
13886 (a7_overlap_mentioned_p): Delete prototype.
13887 * config/xtensa/xtensa.c (struct machine_function): Replace
13888 incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
13889 Add set_frame_ptr_insn field.
13890 (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
13891 (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
13892 if the operand is an argument in a7. If so, copy a7 to a new pseudo
13893 at the function entry and replace the operand with the pseudo.
13894 (init_cumulative_args): Remove unused arguments. Add new "incoming"
13895 argument and record this flag in CUMULATIVE_ARGS.
13896 (function_arg): Remove result_mode and special-case code to handle
13897 arguments in a7. Instead, set need_a7_copy flag when there is an
13898 incoming argument in a7.
13899 (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
13900 and use the value recorded in cfun->machine->set_frame_ptr_insn.
13901 (xtensa_builtin_saveregs): Check for negative gp_left value. Set
13902 need_a7_copy and vararg_a7 flags. Use move_block_from_reg instead of
13903 special-case code.
13904 (a7_overlap_mentioned_p): Delete.
13905 * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
13906 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
13907 arguments to init_cumulative_args and pass "incoming" flag instead.
13908 (BLOCK_REG_PADDING): Delete.
13909 * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
13910 checks for reload_in_progress and reload_completed. Update calls to
13911 xtensa_copy_incoming_a7.
13912 (ashlsi3): Rename existing insn to ashlsi3_internal. Add expander
13913 to call xtensa_copy_incoming_a7.
13914
13915 2004-02-09 DJ Delorie <dj@redhat.com>
13916
13917 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
13918 longer modify standard_exec_prefix, standard_bindir_prefix, or
13919 standard_startfile_prefix.
13920
13921 2004-02-09 James E Wilson <wilson@specifixinc.com>
13922
13923 PR c++/11295
13924 * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
13925 to expand_expr_real call, and pass in alt_rtl as last argument.
13926
13927 PR libstdc++/5625
13928 * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
13929 * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
13930 * builtins.def (BUILT_IN_EXTEND_POINTER): New.
13931 * except.c (expand_builtin_extend_pointer): New.
13932 * except.h (expand_builtin_extend_pointer): Declare.
13933
13934 2004-02-09 David Edelsohn <edelsohn@gnu.org>
13935
13936 * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
13937 unaligned loads and stores.
13938
13939 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13940
13941 * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
13942 * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
13943
13944 * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
13945 * config/mips/iris5.h: ... here.
13946 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
13947
13948 * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
13949 * config/mips/iris5.h: ... here.
13950
13951 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13952
13953 * configure.ac: Remove default executable files before AC_PROG_CC.
13954 * configure: Regenerate.
13955
13956 2004-02-09 Kazu Hirata <kazu@cs.umass.edu>
13957
13958 PR target/13721
13959 * config/h8300/h8300.c (byte_reg): Call abort() if asked to
13960 print a operand other than a register.
13961
13962 2004-02-09 Roger Sayle <roger@eyesopen.com>
13963
13964 * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
13965 tree code rather than call fold_convert, which doesn't specify a
13966 default floating point to integer conversion.
13967
13968 2004-02-08 Bernardo Innocenti <bernie@develer.com>
13969
13970 * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
13971 code to support SGS assembler. Reformat adjacent code where possible.
13972 * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
13973 definition.
13974 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
13975 for '%#'.
13976 * config/m68k/linux.h, config/m68k/m68k.c,
13977 * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
13978 macros and asm_printf() format strings.
13979 * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
13980 * config/m68k/linux.h: Update copyright.
13981 * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
13982
13983 2004-02-08 Andreas Schwab <schwab@suse.de>
13984 Bernardo Innocenti <bernie@develer.com>
13985
13986 * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
13987 REGISTER_PREFIX.
13988 * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
13989 frame pointer register, overridable by OS targets.
13990 * (M68K_REGNAME): Macro to obtain register name for asm output,
13991 eventually replacing %a6 with M68K_FP_REG_NAME.
13992 * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
13993 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
13994 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
13995 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
13996 * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
13997
13998 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
13999
14000 * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
14001 hook_rtx_tree_int_null.
14002 * targhooks.c (default_struct_value_rtx): Remove.
14003 * targhooks.h: Remove the prototype for
14004 default_struct_value_rtx.
14005 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
14006 config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
14007 config/ip2k/ip2k.c, config/iq2000/iq2000.c,
14008 config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
14009 config/mn10300/mn10300.c, config/pdp11/pdp11.c,
14010 config/rs6000/rs6000.c, config/s390/s390.c,
14011 config/stormy16/stormy16.c, config/v850/v850.c,
14012 config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
14013 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
14014
14015 2004-02-08 Joseph S. Myers <jsm@polyomino.org.uk>
14016
14017 * README.Portability: Change "ISO C89" to "ISO C90".
14018 * c-parse.in (primary, initelt): Likewise.
14019
14020 2004-02-08 Richard Sandiford <rsandifo@redhat.com>
14021
14022 * real.c (encode_ibm_extended): Normalize the input value before
14023 converting it to a double. Handle the case where a normal value
14024 rounds to infinity.
14025
14026 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
14027
14028 * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
14029 warning.
14030 * cse.c (preferrable): Change to preferable. Update all of its
14031 callers.
14032 * genautomata.c (ainsn): Change
14033 first_ainsn_with_given_equialence_num to
14034 first_ainsn_with_given_equivalence_num. Update all of its
14035 references.
14036
14037 2004-02-08 Jan Hubicka <jh@suse.cz>
14038
14039 * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
14040
14041 2004-02-07 David Edelsohn <edelsohn@gnu.org>
14042
14043 * function.c (assign_parms): Fix formatting.
14044
14045 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14046
14047 * default.h (PROMOTE_PROTOTYPES): Remove.
14048 * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
14049 STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
14050 EXPAND_BUILTIN_SAVEREGS): Poison.
14051 * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
14052 hook_bool_tree_false.
14053 (TARGET_PROMOTE_PROTOTYPES): Likewise.
14054 * target.h: Replace SETUP_INCOMING_VARARGS with
14055 targetm.calls.setup_incoming_varargs().
14056 * targhooks.c (default_promote_function_return): Remove.
14057 (default_promote_prototypes): Likewise.
14058 (default_struct_value_rtx): Always abort().
14059 (default_expand_builtin_saveregs): Always print an error
14060 message.
14061 (default_setup_incoming_varargs): Do nothing.
14062 (default_pretend_outgoing_varargs_named): Don't depend on
14063 SETUP_INCOMING_VARARGS.
14064 * targhooks.h: Remove the prototype for
14065 default_promote_function_return and
14066 default_promote_prototypes.
14067
14068 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14069
14070 * system.h (SHARED_SECTION_ASM_OP): Poison.
14071 * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
14072 * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
14073
14074 2004-02-07 Zack Weinberg <zack@codesourcery.com>
14075
14076 Bug 13856
14077 * c-decl.c (diagnose_mismatched_decls): Only give special
14078 treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
14079 is also true.
14080 (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
14081 DECL_FUNCTION_CODE when defining a built-in function.
14082 Don't update DECL_ESTIMATED_INSNS.
14083 * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
14084 FUNCTION_DECLs.
14085 * tree.h: Delete DECL_ESTIMATED_INSNS.
14086 * tree-inline.c (struct inline_data): Delete inlined_insns field.
14087 (expand_call_inline, optimize_inline_calls): Don't update
14088 DECL_ESTIMATED_INSNS nor inlined_insns.
14089 * cgraphunit.c (cgraph_analyze_function): Don't update
14090 DECL_ESTIMATED_INSNS.
14091
14092 2004-02-07 Zack Weinberg <zack@codesourcery.com>
14093
14094 * c-common.c (shadow_warning): Delete.
14095 * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
14096 * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
14097 * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
14098 * c-parse.in (free_parser_stacks): Delete.
14099
14100 2004-02-07 Nathanael Nerode <neroden@gcc.gnu.org>
14101
14102 * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
14103 config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
14104 Use the top level mkinstalldirs, not the one in the gcc subdir.
14105 * mkinstalldirs: Remove (from the gcc subdir).
14106
14107 2004-02-07 Roger Sayle <roger@eyesopen.com>
14108
14109 PR middle-end/13696
14110 * fold-const.c (fold_convert): New function to provide type
14111 conversion to the middle-end without using convert.
14112 (negate_expr, associate_trees, size_diffop, omit_one_operand,
14113 operand_equal_for_comparison_p, pedantic_omit_one_operand,
14114 invert_truthvalue, optimize_bit_field_compare, range_binop,
14115 decode_field_reference, make_range, build_range_check, unextend,
14116 fold_truthop, extract_muldiv_1, fold_mathfn_compare,
14117 fold_binary_op_with_conditional_arg, fold_inf_compare,
14118 fold_single_bit_test, fold, multiple_of_p): Replace all calls to
14119 convert with calls to fold_convert.
14120
14121 2004-02-07 Jan Hubicka <jh@suse.cz>
14122
14123 * genrecog.c (find_operand): add extra argument stop.
14124 (validate_pattern): Verify that mach_dup is duplicating operand
14125 defined lexically earlier.
14126
14127 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14128
14129 * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
14130 * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
14131 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
14132 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
14133 config/ia64/ia64.h, config/ip2k/ip2k.h,
14134 config/iq2000/iq2000.h, config/mips/iris5.h,
14135 config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
14136 config/rs6000/aix51.h, config/rs6000/aix52.h,
14137 config/rs6000/darwin.h, config/rs6000/rs6000.h,
14138 config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
14139 config/sparc/linux.h, config/sparc/linux64.h,
14140 config/sparc/netbsd-elf.h, config/sparc/sparc.h,
14141 config/xtensa/xtensa.h: Remove the definitions of
14142 MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
14143 MAX_WCHAR_TYPE_SIZE.
14144 * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
14145 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
14146
14147 2004-02-07 Stephane Carrez <stcarrez@nerim.fr>
14148
14149 PR bootstrap/13990
14150 * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
14151 gen_rtx_NE.
14152
14153 2004-02-07 Josef Zlomek <zlomekj@suse.cz>
14154
14155 * var-tracking.c (vt_add_function_parameters): Surround checkings by
14156 #ifdef ENABLE_CHECKING and #endif.
14157
14158 2004-02-07 Roger Sayle <roger@eyesopen.com>
14159
14160 * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
14161 either (-A)-B or (-B)-A, if A or B is easily negated respectively.
14162 (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
14163 integer types and floating point with unsafe_math_optimizations.
14164 Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
14165 Optimize A - B as A + (-B), if B is easily negated.
14166
14167 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14168
14169 * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
14170 config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
14171 config/m32r/linux.h, config/rs6000/ppc64-fp.c,
14172 config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
14173 Update copyright.
14174
14175 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
14176
14177 * c-ppoutput.c, var-tracking.c: Fix comment typos.
14178
14179 2004-02-06 James E Wilson <wilson@specifixinc.com>
14180
14181 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
14182 glibc 2.3 or better.
14183
14184 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14185
14186 * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
14187 to FLOAT_LIB_COMPARE_RETURNS_BOOL.
14188
14189 2004-02-07 Alan Modra <amodra@bigpond.net.au>
14190
14191 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
14192 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
14193 (SHLIB_MKMAP_OPTS): Delete.
14194 (TARGET_LIBGCC2_CFLAGS): Add -specs.
14195 (bispecs): Add rule.
14196 * config/rs6000/libgcc-ppc64.ver: New file.
14197 * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
14198 (__floatdidf, __floatdisf): Optimize multiply.
14199 (__fixunstfdi): New function.
14200 * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
14201 real and imag parts larger than one register.
14202 (function_arg): Correct type of reg used when fp arg split partially
14203 to stack.
14204 * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
14205 and __MACH__ or __powerpc64__.
14206
14207 2004-02-06 Roger Sayle <roger@eyesopen.com>
14208 Ulrich Weigand <uweigand@de.ibm.com>
14209
14210 * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
14211 of gen_highpart or gen_lowpart when the floating point format is
14212 wider than the result mode.
14213
14214 2004-02-06 Andrew Pinski <pinskia@physics.uc.edu>
14215
14216 * dwarf2out.c (loclabel_num): Move into #ifdef
14217 DWARF2_DEBUGGING_INFO.
14218
14219 2004-02-06 Ziemowit Laski <zlaski@apple.com>
14220
14221 * objc/objc-act.c (build_super_template) the 'class' field of
14222 'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
14223 (get_super_receiver): Likewise.
14224
14225 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14226
14227 * reload1.c (check_eliminable_occurrences): Optimize the reset
14228 of can_eliminate.
14229 (eliminate_regs_in_insn): Likewise.
14230
14231 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
14232 Josef Zlomek <zlomekj@suse.cz>
14233
14234 * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
14235 at the beginning of function, call dwarf2out_var_location for
14236 NOTE_INSN_VAR_LOCATION note.
14237 (struct var_loc_node, struct var_loc_list_def, loclabel_num,
14238 decl_loc_table): New.
14239 (lookup_decl_loc): New function.
14240 (add_var_loc_to_decl): New function.
14241 (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
14242 only if can_use_fbreg.
14243 (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
14244 functions.
14245 (loc_descriptor): Likewise. Process VAR_LOCATION.
14246 (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
14247 (loc_descriptor_from_tree): Call mem_loc_descriptor with
14248 can_use_fbreg == true.
14249 (add_location_or_const_value_attribute): Added parameter enum
14250 dwarf_attribute attr, generate attribute ATTR. Create the location list.
14251 (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
14252 (gen_formal_parameter_die): Call add_location_or_const_value_attribute
14253 with attr == DW_AT_location.
14254 (gen_subprogram_die): Generate the location list for DW_AT_frame_base
14255 if frame_base_decl is defined and has a location list.
14256 (gen_variable_die): Call add_location_or_const_value_attribute with
14257 attr == DW_AT_location.
14258 (dwarf2out_var_location): New function.
14259 (dwarf2out_begin_function): New function.
14260 (dwarf2out_init): Create decl_loc_table.
14261
14262 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
14263
14264 * loop.c (force_movables): Transitively increase the priorities of
14265 all insns forces by an insn, not just the first one.
14266
14267 2004-02-06 Josef Zlomek <zlomekj@suse.cz>
14268 Daniel Berlin <dberlin@dberlin.org>
14269
14270 Josef Zlomek <zlomekj@suse.cz>
14271 * Makefile.in (var-tracking.o): New.
14272 * common.opt (fvar-tracking): New.
14273 * flags.h (flag_var_tracking): New.
14274 * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
14275 * opts.c (common_handle_option): Add OPT_fvar_tracking.
14276 * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
14277 * rtl.c (note_insn_name): Likewise.
14278 * rtl.def (VAR_LOCATION): New.
14279 * rtl.h (NOTE_VAR_LOCATION): New.
14280 (NOTE_VAR_LOCATION_DECL): New.
14281 (NOTE_VAR_LOCATION_LOC): New.
14282 (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
14283 (variable_tracking_main): New exported function.
14284 * timevar.def (TV_VAR_TRACKING): New.
14285 * toplev.c (enum dump_file_index): Added DFI_vartrack.
14286 (dump_file): "vartrack" was added (-dV).
14287 (flag_var_tracking): New.
14288 (f_options): "var-tracking" was added.
14289 (rest_of_handle_variable_tracking): New function.
14290 (rest_of_compilation): Run variable tracking.
14291 (process_options): If user has not specified flag_var_tracking set it
14292 according to optimize, debug_info_level and debug_hooks.
14293 * tree.h (frame_base_decl): New.
14294 * var-tracking.c: New file.
14295 * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
14296 (ia64_override_options): Set flags to run variable tracking in machine
14297 dependent reorg instead of toplev.c.
14298 (ia64_reorg): Run variable tracking if wanted.
14299 * doc/invoke.texi: Mention variable tracking in -dV,
14300 add and -fvar-tracking.
14301 * doc/passes.texi: Added variable tracking pass.
14302
14303 Daniel Berlin <dberlin@dberlin.org>
14304 * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
14305 * dbxout.c (dbx_debug_hooks): Likewise.
14306 (xcoff_debug): Likewise.
14307 * debug.c (do_nothing_debug_hooks): Likewise.
14308 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
14309 * dwarfout.c (dwarf_debug_hooks): Likewise.
14310 * sdbout.c (sdb_debug_hooks): Likewise.
14311 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14312 * final.c (final_scan_insn): Call var_location debug hook for each
14313 NOTE_INSN_VAR_LOCATION.
14314
14315 2004-02-06 Jan Hubicka <jh@suse.cz>
14316
14317 * flow.c (update_life_info): Allocate reg_deaths when called from
14318 scheudler.
14319 (attempt_auto_inc): Update life ranges accordingly.
14320
14321 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
14322
14323 PR debug/11816
14324 * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
14325
14326 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
14327
14328 * cfganal.c (flow_call_edges_add): Never split a libcall block.
14329
14330 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
14331
14332 * dwarf2out.c (output_loc_list): Don't use deltas if we have
14333 a separate line info table in use.
14334 Use the correct size for terminators.
14335 (output_die): Use offset, not delta.
14336
14337 2004-02-06 H.J. Lu <hongjiu.lu@intel.com>
14338
14339 * doc/invoke.texi: Remove the pni option from -mfpmath=.
14340
14341 2004-02-06 Jan Hubicka <jh@suse.cz>
14342
14343 * recog.c (split_all_insns): Do not update reg info.
14344 * regrename.c (regrename_optimize): Likewise.
14345 * toplev.c (rest_of_handle_reorder_blocks): Likewise.
14346 * flow.c (struct propagate_block_info): Add insn_num field.
14347 (reg_deaths): New array.
14348 (life_analysis): Free reg_deaths info.
14349 (allocate_reg_life_data): Allocate reg_deaths array.
14350 (propagate_one_insn): Use new array.
14351 (init_propagate_block): Initialize it.
14352 (free_propagate_block_info): Finish compuation of
14353 REG_LIVE_LENGTH
14354 (attempt_auto_inc): Sanity check that REG_INFO is not
14355 computed at same time.
14356 (mark_used_regs): Update new array.
14357
14358 * reg-stack.c (subst_stack_regs): Unshare clobbers before
14359 substitution.
14360
14361 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14362
14363 * config/s390/s390.md (*extendsiqi2_short_displ): Change to
14364 *extendqisi2_short_displ.
14365
14366 2004-02-06 Alan Modra <amodra@bigpond.net.au>
14367
14368 * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
14369 * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
14370 (emit_library_call_value_1): Likewise pass nargs.
14371 * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
14372 * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
14373 * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
14374 parameter instead of scanning TYPE_ARGS_TYPES to count args.
14375 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
14376 prototype.
14377 * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
14378 (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
14379 (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
14380 * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
14381 INIT_CUMULATIVE_ARGS.
14382 * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
14383 * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
14384 config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
14385 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
14386 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
14387 config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
14388 config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
14389 config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
14390 config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
14391 config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
14392 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
14393 config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
14394
14395 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14396
14397 * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
14398 possible.
14399
14400 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14401
14402 * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
14403 note containing (plus (reg) (const_int)), where reg is an
14404 eliminable reg, then perform the register elimination without
14405 depending on eliminate_regs().
14406
14407 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14408
14409 * config/arc/arc.c (arc_return_in_memory): Check the return
14410 value of int_size_in_bytes against -1. Don't check
14411 TREE_ADDRESSABLE.
14412 * config/avr/avr.c (avr_return_in_memory): Check the return
14413 value of int_size_in_bytes against -1.
14414 * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
14415 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
14416 Likewise.
14417 * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
14418 * config/stormy16/stormy16.c (xstormy16_return_in_memory):
14419 Likewise.
14420
14421 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14422
14423 * config/frv/frv-protos.h: Remove the prototype for
14424 frv_setup_incoming_varargs.
14425 * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
14426 (frv_setup_incoming_varargs): Make it static.
14427 * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
14428
14429 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14430
14431 * config/fr30/fr30-protos.h: Remove the prototype for
14432 fr30_setup_incoming_varargs.
14433 Update the prototypes for fr30_num_arg_regs and
14434 fr30_function_arg_partial_nregs.
14435 * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
14436 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
14437 (fr30_setup_incoming_varargs): Make it static.
14438 Add argument second_time. Don't do anything when second_time
14439 is nonzero.
14440 (fr30_num_arg_regs): Change the type of the first argument to
14441 enum machine_mode.
14442 (fr30_function_arg_partial_nregs): Change the type of the
14443 second argument to enum machine_mode.
14444 * config/fr30/fr30.h (STRUCT_VALUE): Remove.
14445 (SETUP_INCOMING_VARARGS): Remove.
14446
14447 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
14448
14449 * config/arc/arc-protos.h: Remove the prototype for
14450 arc_setup_incoming_varargs.
14451 * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
14452 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
14453 (arc_setup_incoming_varargs): Make it static.
14454 (arc_external_libcall): Likewise.
14455 * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
14456 Remove the commented-out definition of
14457 ASM_OUTPUT_EXTERNAL_LIBCALL.
14458
14459 2004-02-05 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
14460
14461 * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
14462 to $$(slibdir) in the installation commands.
14463
14464 2004-02-05 David Edelsohn <edelsohn@gnu.org>
14465
14466 * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
14467 with inner_regno, not regno.
14468 * rtlanal.c (refers_to_regno_p): Same.
14469
14470 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
14471
14472 * config.gcc: Remove i370 support.
14473
14474 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
14475
14476 * doc/install.texi: Update automake and autoconf version
14477 requirements. Note where to find gcj automake version.
14478
14479 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
14480
14481 * Makefile.in (generate-manpages): Move dependencies to ...
14482 (man): here.
14483 * doc/makefile.texi: Document new targets.
14484 * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
14485
14486 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
14487
14488 PR/13485
14489 Makefile.in (srcextra): Add a level of indirection to ...
14490 (gcc.srcextra): ... here.
14491 (po-generated): Delete.
14492 (po/$(PACKAGE).pot: Use srcextra instead of po-generated. Depend on
14493 options.c.
14494 (start.encap): Remove superfluous lang.srcextra dependency.
14495 objc/Make-lang.in (po-generated): Delete.
14496
14497 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
14498
14499 * config/ia64/ia64.c (REG_GP): Remove.
14500
14501 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14502
14503 * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
14504
14505 2004-02-05 Devang Patel <dpatel@apple.com>
14506
14507 * dwarf2out.c (force_type_die): Look up input type itself
14508 instead of root_type() of type.
14509
14510 2004-02-05 Andreas Krebbel <krebbel1@de.ibm.com>
14511
14512 * config/s390/s390.md ("*tmqidi_ext"): New insn.
14513 ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
14514 pre-reload splitters are transformed to post-reload
14515 define_insn_and_split patterns.
14516 ("*tmqisi_ext"): Renamed old "*tmqi_ext".
14517
14518 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
14519
14520 * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
14521 TARGET_PROMOTE_PROTOTYPES.
14522
14523 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14524
14525 PR middle-end/13750
14526 Revert:
14527 2004-01-15 Geoffrey Keating <geoffk@apple.com>
14528 PR pch/13361
14529 * c-typeck.c (constructor_asmspec): Delete.
14530 (struct initializer_stack): Delete field 'asmspec'.
14531 (start_init): Delete saving of asmspec.
14532 (finish_init): Don't update constructor_asmspec.
14533 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
14534 * stmt.c (expand_asm): Duplicate strings from tree.
14535 (expand_asm_operands): Likewise.
14536 * tree.c (tree_size): Update computation of size of STRING_CST.
14537 (make_node): Don't make STRING_CST nodes.
14538 (build_string): Allocate string with tree node.
14539 * tree.def (STRING_CST): Update comment.
14540 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
14541 (tree_string): Place contents of string in tree node.
14542 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
14543 from tree.
14544
14545 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
14546
14547 * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
14548 msgid.
14549
14550 2004-02-05 Dorit Naishlos <dorit@il.ibm.com>
14551
14552 * config/rs6000/altivec.md (*movv4si_internal): At least one
14553 operand must be altivec_register_operand.
14554 (*movv8hi_internal1): Likewise.
14555 (*movv16qi_internal1): Likewise.
14556 (*movv4sf_internal1): Likewise.
14557
14558 2004-02-05 David Edelsohn <edelsohn@gnu.org>
14559
14560 * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
14561 * configure: Regenerate.
14562
14563 2004-02-05 Jonathan Wakely <redi@gcc.gnu.org>
14564
14565 * doc/install.texi: Update description of --gxx-include-dir to
14566 give correct default value.
14567
14568 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
14569
14570 * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
14571 8 with MAC_REG.
14572
14573 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
14574
14575 * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
14576 gen_rtx_PARALLEL.
14577
14578 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
14579
14580 * emit-rtl.c: Update the comment about the file.
14581
14582 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
14583
14584 * sourcebuild.texi (Test Idioms): Update testcase naming
14585 conventions.
14586
14587 2004-02-04 Per Bothner <per@bothner.com>
14588
14589 Partially revert/redo 2003-10-01 change; fix -fworking-directory.
14590 * c-ppoutput.c (pp_dir_change): New function.
14591 * c-common.h (pp_dir_change): New declaration.
14592 * cpplib.h (struct cpp_options): Remove working_directory field.
14593 * cppinit.c (cpp_find_main_file, cpp_push_main_file): Merge back to
14594 (cpp_read_main_file): as before 10-01. Call _cpp_stack_file.
14595 Don't handle -fworking_directory here, but in c_common_post_options.
14596 (read_original_directory): Don't back up when done.
14597 Don't clear no-longer used working_directory flag.
14598 * cpplib.h: Update declarations to match.
14599 * c-lex.c (cb_dir_change): Move to c-opts.c.
14600 (init_c_lex): Don't set dir_change callback here, since we want
14601 to set it even if flag_preprocess_only.
14602 * c-opts.c (cb_dir_change): Function moved from c-lex.c.
14603 (c_common_post_options): Set dir_change callback.
14604 Call pp_dir_change if approporiate.
14605 (finish_options): Don't call cpp_find_main_file here. Hence remove
14606 unneeded parameter and result. Do LC_RENAME for <built-in>.
14607 (c_common_post_options): Call cpp_read_main_file here instead.
14608 (c_common_init): Update accordingly.
14609 (push_command_line_include): Don't cpp_push_main_file.
14610 Do LC_RENAME rather than LC_LEASE to get back to main file.
14611 Compared to pre-10-01 version, inline cpp_rename_to_main_file.
14612 (c_common_parse_file): Call cpp_read_main_file for subsequent main
14613 files, but call finish_options for all files.
14614 * c-opts.c (sanitize_cpp_opts): Don't set cpp_opts->working_directory.
14615 * fix-header.c (read_scan_file): Call cpp_read_main_file instead of
14616 cpp_find_main_file + cpp_push_main_file.
14617 * c-lex.c (fe_file_change): Don't set main_input_filename here.
14618 * opts.c (handle_options): Only set main_input_filename first time.
14619
14620 2004-02-05 Ian Lance Taylor <ian@wasabisystems.com>
14621
14622 * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
14623
14624 2004-02-04 Geoffrey Keating <geoffk@apple.com>
14625
14626 * reload.c (find_equiv_reg): When checking for register overlap,
14627 don't index hard_regno_nregs with a pseudo-reg.
14628
14629 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14630
14631 * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
14632
14633 2004-02-04 David Edelsohn <edelsohn@gnu.org>
14634
14635 * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
14636 against FIRST_PSEUDO_REGISTER.
14637
14638 2004-02-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14639
14640 * Makefile.in: Move target, host overrides after per-language
14641 fragments.
14642
14643 * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
14644 (GNATLIBCFLAGS): Remove -g.
14645
14646 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14647
14648 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
14649 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
14650 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
14651 config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
14652 config/pdp11/pdp11.c, config/rs6000/rs6000.c,
14653 config/sparc/sparc.c, config/vax/vax.c: Revert the
14654 replacements of "FALLTHRU" with "Fall through" done in the
14655 previous patch.
14656
14657 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14658
14659 * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
14660 config/arm/arm.c, config/arm/arm.md,
14661 config/cris/cris-protos.h, config/fr30/fr30.c,
14662 config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
14663 config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
14664 config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
14665 config/ip2k/ip2k.md, config/ip2k/libgcc.S,
14666 config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
14667 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
14668 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
14669 config/ns32k/netbsd.h, config/ns32k/ns32k.c,
14670 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
14671 config/rs6000/darwin-ldouble.c, config/s390/s390.h,
14672 config/s390/s390.md, config/sparc/netbsd-elf.h,
14673 config/sparc/openbsd.h, config/sparc/sparc.c,
14674 config/xtensa/lib2funcs.S: Fix comment formatting.
14675
14676 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14677
14678 * config/alpha/alpha.c, config/arc/arc.c,
14679 config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
14680 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
14681 config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
14682 config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
14683 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
14684 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
14685 config/iq2000/iq2000.c, config/m32r/m32r.c,
14686 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
14687 config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
14688 config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
14689 config/rs6000/rs6000.h, config/sparc/sparc.c,
14690 config/vax/vax.c: Fix comment typos. Follow spelling
14691 conventions.
14692
14693 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14694
14695 * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
14696 caller-save.c, df.h, genconfig.c, global.c, lcm.c,
14697 ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
14698 sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
14699 config/arm/fpa.md, config/arm/iwmmxt.md,
14700 config/arm/netbsd-elf.h, config/arm/netbsd.h,
14701 config/m68hc11/m68hc11.md, config/mips/iris5.h,
14702 config/mn10300/mn10300.md, config/rs6000/altivec.md,
14703 config/sparc/netbsd-elf.h: Update copyright.
14704
14705 2004-02-04 Eric Botcazou <ebotcazou@libertysurf.fr>
14706
14707 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
14708 for all modes whose size is greater than 8 bytes if ARCH32.
14709 (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
14710 by reference if ARCH32.
14711
14712 2004-02-04 Aldy Hernandez <aldyh@redhat.com>
14713
14714 * cgraphunit.c (cgraph_postorder): Fix typo in comment.
14715
14716 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
14717
14718 * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
14719 to before adddi3 insn patterns.
14720 ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
14721 "reload_insi"): Move to before addsi3 insn patterns.
14722
14723 2004-02-04 Mark Mitchell <mark@codesourcery.com>
14724
14725 * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
14726 parameter. Use it instead of current_function_is_thunk.
14727 * function.h (struct function): Update documentation for is_thunk.
14728 * tree.h (CALL_FROM_THUNK_P): New macro.
14729 * config/alpha/alpha.c (alpha_sa_mask): Do not check
14730 no_new_pseudos when testing current_function_is_thunk.
14731 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
14732
14733 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14734
14735 * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
14736 TARGET_SETUP_INCOMING_VARARGS.
14737
14738 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14739
14740 * emit-rtl.c (gen_rtx): Remove.
14741 * genattrtab.c: Don't mention gen_rtx in a comment.
14742 * rtl.h: Remove the prototype for gen_rtx.
14743 * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
14744
14745 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14746
14747 * config/arc/arc.h, config/fr30/fr30.h
14748 (SETUP_INCOMING_VARARGS): Remove the target-independent
14749 comments.
14750 * doc/tm.texi: Don't mention deprecated target macros.
14751
14752 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14753
14754 * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
14755 target-independent comment.
14756
14757 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14758
14759 * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
14760 mention deprecated target macros.
14761
14762 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
14763
14764 * config.gcc: Remove obsolete ports and configurations.
14765 * config/linux-aout.h, config/netware.h,
14766 config/t-linux-gnulibc1, config/d30v/abi,
14767 config/d30v/d30v-protos.h, config/d30v/d30v.c,
14768 config/d30v/d30v.h, config/d30v/d30v.md,
14769 config/d30v/libgcc1.asm, config/d30v/t-d30v,
14770 config/dsp16xx/dsp16xx-modes.def,
14771 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
14772 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
14773 config/i370/README, config/i370/i370-c.c,
14774 config/i370/i370-protos.h, config/i370/i370.c,
14775 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
14776 config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
14777 config/i386/freebsd-aout.h, config/i386/linux-aout.h,
14778 config/i386/moss.h, config/i386/netware.h,
14779 config/i386/svr3.ifile, config/i386/svr3dbx.h,
14780 config/i386/svr3gas.h, config/i386/svr3z.ifile,
14781 config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
14782 config/i960/i960-c.c, config/i960/i960-coff.h,
14783 config/i960/i960-modes.def, config/i960/i960-protos.h,
14784 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
14785 config/i960/rtems.h, config/i960/t-960bare,
14786 config/m68k/hp310.h, config/m68k/hp320.h,
14787 config/m68k/hp320base.h, config/m68k/m68kv4.h,
14788 config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
14789 Remove.
14790 * doc/extend.texi, doc/install.texi, doc/invoke.texi,
14791 doc/md.texi: Remove mentions of obsolete ports.
14792
14793 2004-02-04 Jan Hubicka <jh@suse.cz>
14794
14795 * alias.c (find_base_term, get_addr): Do not dereference NULL
14796 pointer when all VALUE's locations has been invalidated.
14797 (rtx_equal_for_memref_p): Simplify checking of VALUEs.
14798
14799 2004-02-03 Wolfgang Bangerth <bangerth@dealii.org>
14800
14801 * doc/invoke.texi (x86 options): Fix spelling/wording.
14802
14803 2004-02-03 Richard Sandiford <rsandifo@redhat.com>
14804
14805 * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
14806 put the original string in a comment.
14807 * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
14808 * config/mips/mips.c (mips_output_ascii): Likewise.
14809 * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
14810
14811 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
14812
14813 * system.h (GIV_SORT_CRITERION): Poison.
14814 * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
14815 * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
14816
14817 2004-02-03 Roger Sayle <roger@eyesopen.com>
14818
14819 PR target/9348
14820 * expr.c (expand_expr_real) <MULT_EXPR>: When performing widening
14821 multiplies with a multiplication of the wrong signedness, its the
14822 signedness of the multiplication that we've performed that needs to
14823 be passed to expand_mult_highpart_adjust. Avoid emitting a nop-move
14824 if expand_mult_highpart_adjust places the result in target.
14825
14826 2004-02-03 Richard Henderson <rth@redhat.com>
14827
14828 * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
14829
14830 2004-02-03 J"orn Rennecke <joern.rennecke@superh.com>
14831
14832 * config.gcc (sh[234]l): Use little endian fragments.
14833
14834 2004-02-03 Paul Koning <pkoning@equallogic.com>
14835
14836 * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
14837 * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
14838 * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
14839 encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
14840 floating point format.
14841 (pdp11_f_format, pdp11_d_format): New real_format descriptors for
14842 the above functions.
14843 (output_move_quad): Output float values in correct target format.
14844 (legitimate_const_double_p): New function.
14845 * config/pdp11/pdp11.h: Fix typos.
14846 (FLOAT_WORDS_BIG_ENDIAN): Add definition.
14847 (TARGET_FLOAT_FORMAT): Ditto.
14848 (pdp11_f_format, pdp11_d_format): Add external declarations.
14849 (MAX_REGS_PER_ADDRESS): Corrected.
14850 (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
14851 (PRINT_OPERAND): Output float literals in target format.
14852
14853 2004-02-03 Mark Mitchell <mark@codesourcery.com>
14854
14855 PR c++/13975
14856 * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
14857 TI_PRIVATE.
14858 (access_public_node): Redefine.
14859 (access_protected_node): Likewise.
14860 (access_private_node): Likewise.
14861 * tree.c (build_common_tree_nodes): Create access_public_node,
14862 access_protected_node, and access_private_node.
14863
14864 2004-02-03 Steve Ellcey <sje@cup.hp.com>
14865
14866 * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
14867 (MASK_INLINE_INT_DIV_THR): Ditto.
14868 (MASK_INLINE_SQRT_LAT): Ditto.
14869 (MASK_INLINE_SQRT_THR): Ditto.
14870 (MASK_DWARF2_ASM): Ditto.
14871 (MASK_EARLY_STOP_BITS): Ditto.
14872
14873 2004-02-02 Paul Brook <paul@codesourcery.com>
14874
14875 Merge from csl-arm-branch.
14876
14877 2004-01-30 Paul Brook <paul@codesourcery.com>
14878
14879 * aof.h (REGISTER_NAMES): Add vfp reg names
14880 (ADDITIONAL_REGISTER_NAMES): Ditto.
14881 * aout.h (REGISTER_NAMES): Ditto.
14882 (ADDITIONAL_REGISTER_NAMES): Ditto.
14883 * arm-protos.h: Update/Add Prototypes.
14884 * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
14885 Only allow 0.0 for VFP.
14886 (fp_consts_inited): Rename from fpa_consts_inited. Update users.
14887 (values_fp): Rename from values_fpa. Update Users.
14888 (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
14889 Update users. Only check valid constants for this hardware.
14890 (arm_float_rhs_operand): Rename from fpa_rhs_operand. Update Users.
14891 Only allow consts for FPA.
14892 (arm_float_add_operand): Rename from fpa_add_operand. Update users.
14893 Only allow consts for FPA.
14894 (use_return_insn): Check for saved VFP regs.
14895 (arm_legitimate_address_p): Handle VFP DFmode addressing.
14896 (arm_legitimize_address): Ditto.
14897 (arm_general_register_operand): New function.
14898 (vfp_mem_operand): New function.
14899 (vfp_compare_operand): New function.
14900 (vfp_secondary_reload_class): New function.
14901 (arm_float_compare_operand): New function.
14902 (vfp_print_multi): New function.
14903 (vfp_output_fstmx): New function.
14904 (vfp_emit_fstm): New function.
14905 (arm_output_epilogue): Output VPF reg restore code.
14906 (arm_expand_prologue): Output VFP reg save code.
14907 (arm_print_operand): Add 'P'.
14908 (arm_hard_regno_mode_ok): Return modes for VFP regs.
14909 (arm_regno_class): Return classes for VFP regs.
14910 (arm_compute_initial_elimination_offset): Include space for VFP regs.
14911 (arm_get_frame_size): Ditto.
14912 * arm.h (FIXED_REGISTERS): Add VFP regs.
14913 (CALL_USED_REGISTERS): Ditto.
14914 (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
14915 (FIRST_VFP_REGNUM): Define.
14916 (LAST_VFP_REGNUM): Define.
14917 (IS_VFP_REGNUM): Define.
14918 (FIRST_PSEUDO_REGISTER): Include VFP regs.
14919 (HARD_REGNO_NREGS): Handle VFP regs.
14920 (REG_ALLOC_ORDER): Add VFP regs.
14921 (enum reg_class): Add VFP_REGS.
14922 (REG_CLASS_NAMES): Ditto.
14923 (REG_CLASS_CONTENTS): Ditto.
14924 (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
14925 (REG_CLASS_FROM_LETTER): Add 'w'.
14926 (EXTRA_CONSTRAINT_ARM): Add 'U'.
14927 (EXTRA_MEMORY_CONSTRAINT): Define.
14928 (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
14929 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
14930 (REGISTER_MOVE_COST): Ditto.
14931 (PREDICATE_CODES): Add arm_general_register_operand,
14932 arm_float_compare_operand and vfp_compare_operand.
14933 * arm.md (various): Rename as above.
14934 (divsf3): Enable when TARGET_VFP.
14935 (divdf3): Ditto.
14936 (movdfcc): Ditto.
14937 (sqrtsf2): Ditto.
14938 (sqrtdf2): Ditto.
14939 (arm_movdi): Disable when TARGET_VFP.
14940 (arm_movsi_insn): Ditto.
14941 (movsi): Only split with general regs.
14942 (cmpsf): Use arm_float_compare_operand.
14943 (push_fp_multi): Restrict to TARGET_FPA.
14944 (vfp.md): Include.
14945 * vfp.md: New file.
14946 * fpa.md (various): Rename as above.
14947 * doc/md.texi: Document ARM w and U constraints.
14948
14949 2004-01-15 Paul Brook <paul@codesourcery.com>
14950
14951 * config.gcc: Add with_fpu. Allow with-float=softfp.
14952 * config/arm/arm.c (arm_override_options): Rename *-s to *s.
14953 Break out of loop when we find a float-abi. Fix typo.
14954 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
14955 Set -mfloat-abi=.
14956 * doc/install.texi: Document --with-fpu.
14957
14958 2003-01-14 Paul Brook <paul@codesourcery.com>
14959
14960 * config.gcc (with_arch): Add armv6.
14961 * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
14962 * config/arm/arm.c (arm_overrride_options): Ditto.
14963
14964 2004-01-08 Richard Earnshaw <rearnsha@arm.com>
14965
14966 * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
14967 (FL_ARCH6): Renamed from FL_ARCH6J.
14968 (arm_arch3m): Renamed from arm_fast_multiply.
14969 (arm_arch6): Renamed from arm_arch6j.
14970 * arm.h: Update all uses of above.
14971 * arm-cores.def: Likewise.
14972 * arm.md: Likewise.
14973
14974 * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
14975 not arm6j. Add entry for arch armv6.
14976
14977 2004-01-07 Richard Earnshaw <rearnsha@arm.com>
14978
14979 * arm.c (arm_emit_extendsi): Delete.
14980 * arm-protos.h (arm_emit_extendsi): Delete.
14981 * arm.md (zero_extendhisi2): Also handle zero-extension of
14982 non-subregs.
14983 (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
14984 (thumb_zero_extendhisi2): Only match if not v6.
14985 (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
14986 (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
14987 (thumb_extendqisi2): Likewise.
14988 (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
14989 (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
14990 (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
14991 (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
14992 (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
14993 (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
14994 (arm_zero_extendhisi2addsi): Remove subreg. Add attributes.
14995 (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
14996 (arm_extendqisi2addsi): Likewise.
14997
14998 2003-12-31 Mark Mitchell <mark@codesourcery.com>
14999
15000 Revert this change:
15001 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
15002 + REG addressing modes.
15003
15004 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
15005 + REG addressing modes.
15006
15007 2003-12-30 Mark Mitchell <mark@codesourcery.com>
15008
15009 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
15010 CONSTANT_P_RTX.
15011
15012 2003-30-12 Paul Brook <paul@codesourcery.com>
15013
15014 * longlong.h: protect arm inlines with !defined (__thumb__)
15015
15016 2003-30-12 Paul Brook <paul@codesourcery.com>
15017
15018 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
15019
15020 2003-12-30 Nathan Sidwell <nathan@codesourcery.com>
15021
15022 * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
15023 change.
15024
15025 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
15026
15027 * builtins.c (expand_builtin_apply_args_1): Add pretend args size
15028 to the virtual incoming args pointer for downward stacks.
15029
15030 2003-12-29 Paul Brook <paul@codesourcery.com>
15031
15032 * config/arm/arm-cores.def: Add cost function.
15033 * config/arm/arm.c (arm_*_rtx_costs): New functions.
15034 (arm_rtx_costs): Remove
15035 (struct processors): Add rtx_costs field.
15036 (all_cores, all_architectures): Ditto.
15037 (arm_override_options): Set targetm.rtx_costs.
15038 (thumb_rtx_costs): New function.
15039 (arm_rtx_costs_1): Remove cases handled elsewhere.
15040 * config/arm/arm.h (processor_type): Add COSTS parameter.
15041
15042 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
15043
15044 * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
15045 (arm926ejs.md): Include it.
15046 * config/arm/arm926ejs.md: New pipeline description.
15047
15048 2003-12-24 Paul Brook <paul@codesourcery.com>
15049
15050 * config/arm/arm.c (arm_arch6j): New variable.
15051 (arm_override_options): Set it.
15052 (arm_emit_extendsi): New function.
15053 * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
15054 * config/arm/arm.h (arm_arch6j): Declare.
15055 * config/arm/arm.md: Add sign/zero extend insns.
15056
15057 2003-12-23 Paul Brook <paul@codesourcery.com>
15058
15059 * config/arm/arm.c (all_architectures): Add armv6.
15060 * doc/invoke.texi: Document it.
15061
15062 2003-12-19 Paul Brook <paul@codesourcery.com>
15063
15064 * config/arm/arm.md: Add load1 and load_byte "type" attrs. Modify
15065 insn patterns to match.
15066 * config/arm/arm-generic.md: Ditto.
15067 * config/arm/cirrus.md: Ditto.
15068 * config/arm/fpa.md: Ditto.
15069 * config/amm/iwmmxt.md: Ditto.
15070 * config/arm/arm1026ejs.md: Ditto.
15071 * config/arm/arm1135jfs.md: Ditto. Add insn_reservation and bypasses
15072 for 11_loadb.
15073
15074 2003-12-18 Nathan Sidwell <nathan@codesourcery.com>
15075
15076 * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
15077 * config/arm/arm.c (arm_adjust_cost): Check shift cost for
15078 TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
15079 (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
15080 arm_no_early_mul_dep): Correctly deal with conditional execution,
15081 parallels and single shift operations.
15082 (arm_no_early_alu_shift_value_dep): Define.
15083 * arm.md (attr type): Replace 'normal' with 'alu',
15084 'alu_shift' and 'alu_shift_reg'.
15085 (attr core_cycles): Adjust.
15086 (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
15087 *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
15088 *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
15089 *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
15090 *arith_shiftsi_compare0_scratch, *sub_shiftsi,
15091 *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
15092 *if_shift_move, *if_move_shift, *if_shift_shift): Set type
15093 attribute appropriately.
15094 * config/arm/arm1026ejs.md (alu_op): Adjust.
15095 (alu_shift_op, alu_shift_reg_op): New.
15096 * config/arm/arm1136.md: Add better bypasses for early
15097 registers. Remove load[234] and store[234] bypasses.
15098 (11_alu_op): Adjust.
15099 (11_alu_shift_op, 11_alu_shift_reg_op): New.
15100
15101 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
15102
15103 * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
15104 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
15105 * config/arm/arm.c (arm_no_early_store_addr_dep,
15106 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
15107 * config/arm/arm1026ejs.md: Add load-store bypass.
15108 * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
15109 Add bypasses between instructions.
15110
15111 2003-12-10 Paul Brook <paul@codesourcery.com>
15112
15113 * config/arm/arm.c (arm_fpu_model): New variable.
15114 (arm_fload_abi): New variable.
15115 (target_fpe_name): Rename from target_fp_name.
15116 (target_fpu_name): New variable.
15117 (arm_is_cirrus): Remove.
15118 (fpu_desc): New struct.
15119 (all_fpus): Define.
15120 (pf_model_for_fpu): Define.
15121 (all_loat_abis): Define.
15122 (arm_override_options): Set fp arch flags based on -mfpu=
15123 and -float-abi=.
15124 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
15125 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
15126 (*): Use new TARGET_* flags.
15127 * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
15128 (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
15129 (TARGET_SOFT_FLOAT): Ditto.
15130 (TARGET_SOFT_FLOAT_ABI): New.
15131 (TARGET_MAVERICK): Rename from TARGET_CIRRUS. No longer implies
15132 TARGET_HARD_FLOAT.
15133 (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
15134 (TARGET_OPTIONS): Add -mfpu=.
15135 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
15136 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
15137 (arm_pf_model): Define.
15138 (arm_float_abi_type): Define.
15139 (fputype): Add FPUTYPE_VFP. Change SOFT_FPA->NONE
15140 * config/arm/arm.md: Use new TARGET_* flags.
15141 * config/arm/cirrus.md: Ditto.
15142 * config/arm/fpa.md: Ditto.
15143 * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
15144 * config/arm/semi.h (ASM_SPEC): Ditto.
15145 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
15146 (FPUTYPE_DEFAULT): Set to VFP.
15147 * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
15148
15149 2003-11-22 Phil Edwards <phil@codesourcery.com>
15150
15151 PR target/12476
15152 * config/arm/arm.c (arm_output_mi_thunk): In Thumb mode, use
15153 'bx' instead of 'b' to avoid branch range restrictions. Output
15154 the thunk immediately before the thunked-to function.
15155 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Do not emit
15156 .thumb_func if a thunk is being generated. Emit .code 16 along
15157 with .thumb_func if a thunk is not being generated.
15158
15159 2003-11-15 Nicolas Pitre <nico@cam.org>
15160
15161 * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
15162 arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
15163 * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
15164 (lshrdi3_iwmmxt): Renamed from lshrdi3.
15165 * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
15166
15167 2003-11-12 Steve Woodford <scw@wasabisystems.com>
15168 Ian Lance Taylor <ian@wasabisystems.com>
15169
15170 * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
15171 code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
15172
15173 2003-11-05 Phil Edwards <phil@codesourcery.com>
15174
15175 * config/arm/arm.md (insn): Add new V6 instruction names.
15176 (generic_sched): New attr.
15177 * config/arm/arm-generic.md: Use generic_sched here.
15178 * config/arm/arm1026ejs.md: Do not model fetch/issue/decode
15179 stages of pipeline. Adjust latency counts accordingly.
15180 * config/arm/arm1136jfs.md: New file.
15181
15182 2003-10-28 Mark Mitchell <mark@codesourcery.com>
15183
15184 * config/arm/arm.h (processor_type): New enumeration type.
15185 (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
15186 ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
15187 (CPP_CPU_ARCH_SPEC): Likewise.
15188 * config/arm/arm.c (arm_tune): New variable.
15189 (all_cores): Use cores.def.
15190 (all_architectures): Add representative processor.
15191 (arm_override_options): Restructure way in which tuning
15192 information is deduced.
15193 * arm.md: Update "insn" and "type" attributes throughout.
15194 (insn): New attribute.
15195 (type): Compute "mult" from "insn" attribute. Add load2,
15196 load3, load4 alternatives.
15197 (arm automaton): Move to arm-generic.md.
15198 * config/arm/arm-cores.def: New file.
15199 * config/arm/arm-generic.md: Likewise.
15200 * config/arm/arm1026ejs.md: Likewise.
15201
15202 2004-02-03 Eric Botcazou <ebotcazou@libertysurf.fr>
15203
15204 * doc/invoke.texi (SPARC options): Remove -mflat and
15205 all -mxxx (xxx:chip) options.
15206 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
15207 * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
15208 * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
15209 * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
15210 * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
15211 * config/sparc/sparc.c: Likewise.
15212 (sparc_output_function_prologue): Remove TARGET_FLAT handling.
15213 (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
15214 (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
15215 (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
15216 (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
15217 (sparc_flat_must_save_register_p): Likewise.
15218 (sparc_flat_compute_frame_size): Likewise.
15219 (sparc_flat_save_restore): Likewise.
15220 (sparc_flat_function_prologue): Likewise.
15221 (sparc_flat_function_epilogue): Likewise.
15222 (sparc_flat_epilogue_delay_slots): Likewise.
15223 (sparc_flat_eligible_for_epilogue_delay): Likewise.
15224 (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
15225 * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
15226 (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
15227 (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
15228 (CONDITIONAL_REGISTER_USAGE): Likewise.
15229 (FRAME_POINTER_REQUIRED): Likewise.
15230 (INITIAL_ELIMINATION_OFFSET): Likewise.
15231 (BASE_RETURN_VALUE_REG): Likewise.
15232 (BASE_OUTGOING_VALUE_REG): Likewise.
15233 (BASE_PASSING_ARG_REG): Likewise.
15234 (BASE_INCOMING_ARG_REG): Likewise.
15235 (INCOMING_REGNO): Likewise.
15236 (OUTGOING_REGNO): Likewise.
15237 (LOCAL_REGNO): Likewise.
15238 (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
15239 (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
15240 (EPILOGUE_USES): Likewise.
15241 * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
15242 ("flat" attribute): Delete.
15243 (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
15244 handling.
15245 (call followed by jump define_peephole's): Delete.
15246 (exception_receiver): Likewise.
15247 (builtin_setjmp_receiver): Likewise.
15248 * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
15249
15250 2004-02-03 Paolo Bonzini <bonzini@gnu.org>
15251
15252 PR c/11658
15253 PR c/13994
15254 * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
15255 on langhooks.h.
15256 * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
15257 * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
15258 Include langhooks.h. Replace c_common_truthvalue_conversion
15259 with the truthvalue_conversion language hook throughout.
15260 (expr_no_commas): Call default_conversion before save_expr
15261 for the first term of the production 'x ? : y'.
15262 * c-common.c (c_common_truthvalue_conversion): Remove
15263 obsolete block. Invoke recursively the hook instead
15264 of this function.
15265 * c-convert.c (convert): handle ERROR_MARK_NODE.
15266 * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
15267 returned by the truthvalue_conversion language hook.
15268 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
15269 c_objc_common_truthvalue_conversion.
15270 * c-objc-common.c (c_objc_common_truthvalue_conversion):
15271 New function.
15272 * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
15273 * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
15274 c_objc_common_truthvalue_conversion.
15275
15276 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
15277
15278 * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
15279 of gen_rtx.
15280 (LIBCALL_VALUE): Likewise.
15281 * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
15282 gen_rtx_CC0 instead of gen_rtx.
15283 * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
15284 gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
15285 (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
15286 gen_rtx.
15287 (m68hc11_emit_logical): Likewise.
15288
15289 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
15290
15291 * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
15292 config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
15293 config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
15294 config/m32r/m32r.md, config/m68hc11/m68hc11.c,
15295 config/mips/mips.md, config/mmix/mmix.c,
15296 config/mn10300/mn10300.c, config/mn10300/mn10300.md,
15297 config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
15298 config/rs6000/altivec.md, config/s390/s390.c,
15299 config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
15300 config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
15301 Use const0_rtx instead of GEN_INT (0). Do the same for other
15302 constants that are readily available.
15303
15304 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
15305
15306 * doloop.c, optabs.c, regmove.c, sched-deps.c,
15307 config/i386/i386.c, config/i386/i386.md: Use const0_rtx
15308 instead of GEN_INT (0). Do the same for other constants that
15309 are readily available.
15310
15311 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
15312
15313 * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
15314 gen_rtx.
15315 * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
15316 instead of gen_rtx.
15317 * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
15318 gen_rtx.
15319 * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
15320 gen_rtx_ASHIFT instead of gen_rtx.
15321 (udivmodqi4): Likewise.
15322
15323 2004-02-02 Richard Henderson <rth@redhat.com>
15324
15325 PR target/13789
15326 * expr.c (store_expr): Use force_operand before emit_move_insn.
15327
15328 2004-02-02 Jeff Law <law@redhat.com>
15329 Roger Sayle <roger@eyesopen.com>
15330
15331 * tree.c (commutative_tree_code, associative_tree_code): New
15332 functions.
15333 (iterative_hash_expr): Use commutative_tree_code.
15334 * tree.h (commutative_tree_code, associative_tree_code): Declare.
15335 * fold-const.c (operand_equal_p): Use commutative_tree_code
15336 rather than inlining the commutativity check.
15337 (fold): Likewise.
15338
15339 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
15340
15341 * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
15342 * config/frv/frv-protos.h: Remove the prototype for
15343 frv_function_arg_keep_as_reference.
15344 * config/frv/frv.c (frv_function_arg_keep_as_reference):
15345 Remove.
15346 * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
15347 * config/stormy16/stormy16.h: Remove the commented-out
15348 definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
15349
15350 2004-02-03 Alan Modra <amodra@bigpond.net.au>
15351
15352 PR target/13914
15353 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
15354 for retaddr_column.
15355
15356 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
15357
15358 * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
15359 gen_rtx.
15360
15361 2004-02-02 Eric Christopher <echristo@redhat.com>
15362 Zack Weinberg <zack@codesourcery.com>
15363
15364 * c-opts.c (c_common_handle_option): Add -finput-charset.
15365 * c.opt: Ditto.
15366 * cppcharset.c (one_iso88591_to_utf8): Remove.
15367 (convert_iso88591_utf8): Ditto.
15368 (conversion_tab): Remove 8859-1 converter.
15369 (_cpp_input_to_utf8): Remove.
15370 (_cpp_init_iconv_buffer): Ditto.
15371 (_cpp_close_iconv_buffer): Ditto.
15372 (_cpp_convert_input): New function.
15373 (_cpp_default_encoding): Ditto.
15374 * cpphash.h: Add/remove prototypes for above.
15375 * cppfiles.c (read_file_guts): Use _cpp_convert_input.
15376 * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
15377 for narrow execution and input character sets.
15378 * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
15379 * doc/cppopts.texi: Document -finput-charset.
15380
15381 2004-02-02 David Edelsohn <edelsohn@gnu.org>
15382
15383 * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
15384 against FIRST_PSEUDO_REGISTER.
15385
15386 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
15387
15388 * doc/invoke.texi (SPARC options): Further improve.
15389
15390 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
15391
15392 * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
15393 config/h8300/h8300.c, config/ip2k/ip2k.md,
15394 config/iq2000/iq2000.c, config/mips/mips.c,
15395 config/rs6000/rs6000.c, config/rs6000/rs6000.md,
15396 config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
15397 config/v850/v850.md: Fix indentation.
15398
15399 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
15400
15401 * config/sparc/sparc.c (function_arg_slotno): Align TImode
15402 arguments on a 16-byte boundary in the parameter array if ARCH64.
15403 Split handling of TFmode.
15404
15405 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
15406
15407 * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
15408 Don't test CONSTANT_P (x).
15409 (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
15410 ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
15411 Fix misindentation.
15412
15413 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
15414
15415 * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
15416
15417 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
15418
15419 * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
15420 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
15421 config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
15422 config/iq2000/iq2000.c, config/m32r/m32r.c,
15423 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
15424 config/mn10300/mn10300.c, config/rs6000/rs6000.c,
15425 config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
15426 config/stormy16/stormy16.c, config/v850/v850.md,
15427 config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
15428
15429 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
15430
15431 * config/mcore/mcore.c (block_move_sequence): Replace
15432 gen_rtx_CONST_INT with GEN_INT.
15433
15434 2004-02-02 Jan Hubicka <jh@suse.cz>
15435
15436 * alias.c (record_set): Use hard_regno_nregs.
15437 * bt-load.c (find_btr_reference, note_btr_set): Likewise.
15438 * builtins.c (apply_args_size): Likewise.
15439 * caller-save.c (setup_save_areas, save_call_clobbered_regs,
15440 mark_set_regs, add_stored_regs, mark_referenced_regs,
15441 insert_restore, insert_save, insert_one_insn): Likewise.
15442 * cfgcleanup.c: Include regs.h
15443 (mark_effect, mentions_nonequal_regs): Likewise.
15444 * cfgrtl.c (mark_killed_regs): Likewise
15445 * combine.c (update_table_tick, record_value_for_reg,
15446 record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
15447 reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
15448 reg_bitfield_target_p, distribute_notes): Likewise.
15449 * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
15450 exp_equiv_p, cse_insn): Likewise.
15451 * cselib.c (cselib_lookup): Likewise.
15452 (cselib_invalidate_regno, cselib_record_set): Likewise.
15453 * df.c (df_ref_record): Likewise.
15454 * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
15455 Likewise.
15456 * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
15457 count_or_remove_death_notes_bb): Likewise.
15458 * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
15459 * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
15460 mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
15461 * integrate.c (mark_stores): Likewise.
15462 * jump.c (delete_prior_computation): Likewise.
15463 * lcm.c (reg_dies, reg_becomes_live): Likewise.
15464 * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
15465 * loop.c (LOOP_REGNO_NREGS): Likewise.
15466 * postreload.c (reload_combine, reload_combine_note_store,
15467 reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
15468 * ra-colorize.c (combine, color_usable_p, get_free_reg,
15469 calculate_dont_begin, calculate_dont_begin, colorize_one_web,
15470 try_recolor_web, insert_coalesced_conflicts, check_colors,
15471 break_precolored_alias): Likewise.
15472 * ra-debug.c: Include regs.h
15473 (ra_print_rtx_object): Likewise.
15474 * ra-rewrite (choose_spill_colors): Likewise.
15475 (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
15476 * ra.c (init_ra): Likewise.
15477 * recog.c (reg_fits_class_p, peep2_reg_dead_p,
15478 peep2_find_free_register): Likewise.
15479 * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
15480 * regclass.c (hard_regno_nregs): New array.
15481 (init_reg_modes_once): Initialize it.
15482 (choose_hard_reg_mode): Use it.
15483 (record_reg_classes): Likewise.
15484 * regmove.c (mark_flags_life_zones): Likewise.
15485 * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
15486 scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
15487 copy_value, maybe_mode_change, find_oldest_value_reg,
15488 copyprop_hardreg_forward_1):
15489 * regs.h (hard_regno_nregs): Declare.
15490 * realod.c (reload_inner_reg_of_subreg): Use it.
15491 (push_reload, combine_reloads, find_dummy_reload,
15492 hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
15493 refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
15494 reload_adjust_reg_for_mode): Likewise.
15495 * reload1.c (compute_use_by_pseudos, count_pseudo,
15496 count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
15497 spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
15498 clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
15499 allocate_reload_reg, choose_reload_regs, emit_reload_insns,
15500 delete_output_reload): Likewise.
15501 * resource.c (update_live_status, mark_referenced_resources,
15502 mark_set_resources, mark_target_live_regs): Likewise.
15503 * rtlanal.c: Include regs.h
15504 (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
15505 dead_or_set_regno_p, find_regno_note, find_reg_fusage,
15506 subreg_regno_offset, subreg_offset_representable_p,
15507 hoist_test_store): Likewise.
15508 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
15509 * sched-rgn.c (check_live_1, update_live_1): Likewise.
15510 * stmt.c: Include regs.h
15511 (decl_conflicts_with_clobbers_p): Likewise.
15512 * varasm.c (make_decl_rtl): Likewise.
15513 * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
15514
15515 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
15516
15517 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
15518 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
15519 config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
15520 config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
15521 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
15522 config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
15523 config/iq2000/iq2000.h, config/m32r/m32r.c,
15524 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
15525 config/m68hc11/m68hc11.md, config/m68k/m68k.md,
15526 config/mcore/mcore.c, config/mcore/mcore.h,
15527 config/mcore/mcore.md, config/mips/mips.c,
15528 config/ns32k/ns32k.h, config/ns32k/ns32k.md,
15529 config/rs6000/rs6000.c, config/s390/s390.c,
15530 config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
15531 config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
15532 "gen_rtx (FOO, " with "gen_rtx_FOO (".
15533
15534 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
15535
15536 * config/h8300/h8300.md (two peephole2's): New.
15537
15538 2004-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
15539
15540 * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
15541 (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
15542 (ASM_CPU_SPEC): Likewise
15543 * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
15544 (ASM_CPU_SPEC): Remove -mcpu=v8plus. Handle -mcpu=ultrasparc3.
15545
15546 2004-02-01 Roger Sayle <roger@eyesopen.com>
15547
15548 * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
15549 isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
15550 (expand_builtin): Always call expand_builtin_pow.
15551
15552 2004-02-01 Roger Sayle <roger@eyesopen.com>
15553
15554 * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
15555 BUILT_IN_SIGNBITL): New GCC builtins.
15556 * builtins.c (expand_builtin_signbit): New function to RTL expand
15557 calls to signbit, signbitf and signbitl as inline intrinsics.
15558 (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
15559 (fold_builtin_signbit): New function to perform constant folding
15560 of signbit, signbitf and signbitl.
15561 (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
15562
15563 * doc/extend.texi: Document new signbit{,f,l} builtins.
15564
15565 2004-02-01 Richard Sandiford <rsandifo@redhat.com>
15566
15567 * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
15568
15569 2004-02-01 Chris Demetriou <cgd@broadcom.com>
15570
15571 * config/mips/mips.h (PREDICATE_CODES): Remove entries for
15572 "mips_const_double_ok" and "simple_memory_operand", which were
15573 removed from the MIPS port with the mips-3_4-rewrite branch merge.
15574 * config/mips/mips.c (mips16_lay_out_constants): Update comment
15575 for removal of simple_memory_operand.
15576
15577 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15578
15579 * config/c4x/c4x.md: Use GEN_INT instead of
15580 gen_rtx (CONST_INT, ...).
15581
15582 2004-01-31 Richard Henderson <rth@redhat.com>
15583
15584 * varasm.c (output_constant_pool): Don't zap the pool.
15585
15586 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15587
15588 * genrecog.c (decision_type): Add DT_const_int.
15589 (write_cond) [DT_const_int]: Print a comparison against small
15590 constant.
15591 (write_node): Simplify comparisons against small constants
15592 before printing tests.
15593
15594 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15595
15596 * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
15597 instead of gen_rtx_CONST_INT.
15598
15599 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15600
15601 * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
15602 instead of gen_rtx_CONST_INT.
15603
15604 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15605
15606 * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
15607 hook_bool_CUMULATIVE_ARGS_false.
15608 * targhooks.c (default_strict_argument_naming): Rename to
15609 hook_bool_CUMULATIVE_ARGS_false.
15610 * targhooks.h: Update the prototype for
15611 default_strict_argument_naming.
15612
15613 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15614
15615 * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
15616 * config/sh/sh.h: Likewise.
15617 * config/sh/sh.md: Likewise.
15618
15619 2004-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
15620
15621 * doc/invoke.texi (SPARC options): Restructure and update.
15622
15623 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15624
15625 * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
15626 STRICT_ARGUMENT_NAMING): Poison.
15627 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
15628 hook_bool_tree_false.
15629 * targhooks.c (default_promote_function_args): Remove.
15630 (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
15631 Don't check incoming.
15632 (default_strict_argument_naming): Don't use
15633 STRICT_ARGUMENT_NAMING.
15634 * targhooks.h: Remove the prototype for
15635 default_promote_function_args.
15636
15637 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15638
15639 * config/i386/i386-protos.h: Remove the prototype for
15640 ix86_setup_incoming_varargs.
15641 * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
15642 (ix86_setup_incoming_varargs): Make it static.
15643 * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
15644
15645 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15646
15647 * alloc-pool.c: Fix comment typos.
15648 * builtin-types.def: Likewise.
15649 * builtins.def: Likewise.
15650 * c-pretty-print.c: Likewise.
15651 * df.h: Likewise.
15652 * reload1.c: Likewise.
15653
15654 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15655
15656 * doc/invoke.texi: Follow spelling conventions.
15657 * doc/tm.texi: Likewise.
15658
15659 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15660
15661 * doc/install.texi: Fix typos.
15662 * doc/invoke.texi: Likewise.
15663
15664 2004-01-31 Ulrich Weigand <uweigand@de.ibm.com>
15665
15666 * config/s390/s390.c (s390_decompose_address): Do not treat virtual
15667 registers as pointers.
15668 * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
15669
15670 2004-01-31 Paolo Bonzini <bonzini@gnu.org>
15671
15672 * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
15673 and restore it to gen_lowpart_general on exit.
15674 (gen_lowpart_for_combine): Adjust all callers to go through
15675 gen_lowpart.
15676 * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
15677 and restore it to gen_lowpart_general on exit.
15678 (gen_lowpart_if_possible): Adjust all callers to go through
15679 gen_lowpart.
15680 * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
15681 (gen_lowpart): Declare as pointer to function, initialized to
15682 gen_lowpart_general.
15683 * rtl.h (gen_lowpart): Declare as pointer to function.
15684
15685 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
15686
15687 * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
15688 * calls.c: Likewise.
15689 * emit-rtl.c: Likewise.
15690 * function.c: Likewise.
15691 * reload1.c: Likewise.
15692 * config/i386/cygming.h: Likewise.
15693 * config/i386/i386.c: Likewise.
15694 * config/i386/winnt.c: Likewise.
15695
15696 2004-01-30 Dara Hazeghi <dhazeghi@yahoo.com>
15697
15698 PR bootstrap/9249
15699 * doc/install.texi: document --enable-__cxa_atexit option.
15700 * configure.ac: Disable __cxa_atexit if not supported.
15701 * configure: Regenerate.
15702
15703 2004-01-30 Daniel Berlin <dberlin@dberlin.org>
15704
15705 * ggc-zone.c (ggc_free): New function.
15706
15707 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
15708
15709 alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
15710 cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
15711 flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
15712 ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
15713 tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
15714 config/alpha/alpha.c, config/alpha/alpha.h,
15715 config/alpha/alpha.md, config/alpha/unicosmk.h,
15716 config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
15717 config/c4x/c4x-protos.h, config/c4x/c4x.md,
15718 config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
15719 config/frv/frvend.c, config/i386/cygming.h,
15720 config/i386/djgpp.h, config/i386/emmintrin.h,
15721 config/i386/gthr-win32.c, config/i386/i386-interix.h,
15722 config/i386/i386-protos.h, config/i386/openbsd.h,
15723 config/i386/winnt.c, config/i386/xm-mingw32.h,
15724 config/i386/xmmintrin.h, config/ia64/ia64.md,
15725 config/iq2000/iq2000.md, config/m32r/m32r.md,
15726 config/m68k/m68k.md, config/mcore/mcore-elf.h,
15727 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
15728 config/mips/iris5gas.h, config/mips/iris6.h,
15729 config/mips/iris6gas.h, config/mips/linux.h,
15730 config/mips/mips.md, config/mips/netbsd.h,
15731 config/mips/openbsd.h, config/mips/windiss.h,
15732 config/pa/fptr.c, config/rs6000/aix.h,
15733 config/rs6000/altivec.h, config/rs6000/darwin.h,
15734 config/rs6000/xcoff.h, config/s390/s390-protos.h,
15735 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
15736 config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
15737 config/sparc/sol2.h: Update copyright.
15738
15739 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
15740
15741 * Makefile.in (abs_docdir, abs_srcdir): Define.
15742 (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
15743
15744 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
15745
15746 * genconfig.c (main): Have CC0_P check its operand even on a
15747 target without cc0.
15748
15749 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
15750
15751 * config/alpha/alpha.c: Remove mentions of deprecates macros
15752 in comments, remove some target-independent comments about target
15753 macros, and/or add minimal function comments for target hook
15754 implementations.
15755 * config/avr/avr.c: Likewise.
15756 * config/ia64/ia64.h: Likewise.
15757 * config/ip2k/ip2k.c: Likewise.
15758 * config/iq2000/iq2000.c: Likewise.
15759 * config/m32r/m32r.h: Likewise.
15760 * config/m68hc11/m68hc11.c: Likewise.
15761 * config/mcore/mcore.c: Likewise.
15762 * config/mmix/mmix.c: Likewise.
15763 * config/mn10300/mn10300.c: Likewise.
15764 * config/pa/pa.c: Likewise.
15765 * config/pdp11/pdp11.c: Likewise.
15766 * config/rs6000/rs6000.h: Likewise.
15767 * config/sh/sh.c: Likewise.
15768 * config/sh/sh.h: Likewise.
15769 * config/sparc/sparc.c: Likewise.
15770 * config/sparc/sparc.h: Likewise.
15771 * config/stormy16/stormy16.c: Likewise.
15772 * config/xtensa/xtensa.c: Likewise.
15773
15774 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
15775
15776 PR optimization/12147
15777 * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
15778 RELOAD_FOR_OPADDR_ADDR.
15779 (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
15780 might be reused as RELOAD_FOR_OPADDR_ADDR register.
15781
15782 2004-01-30 Jan Hubicka <jh@suse.cz>
15783
15784 * reload.c (get_secondary_mem): Fix updating of
15785 secondary_memlocs_elim_used.
15786
15787 2004-01-30 Richard Henderson <rth@redhat.com>
15788
15789 * varasm.c (struct rtx_const, struct pool_constant): Remove.
15790 (MAX_RTX_HASH_TABLE): Remove.
15791 (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
15792 (first_pool, last_pool, pool_offset): Remove.
15793 (struct rtx_constant_pool): Split out from ...
15794 (struct varasm_status): ... here. Reference one via pointer.
15795 (struct constant_descriptor_rtx): Merge struct pool_constant.
15796 (SYMHASH): Remove.
15797 (decode_rtx_const): Remove.
15798 (const_hash_rtx, compare_constant_rtx): Remove.
15799 (record_constant_rtx): Remove.
15800 (const_desc_rtx_hash, const_desc_rtx_eq): New.
15801 (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
15802 (const_rtx_hash_1, const_rtx_hash): New.
15803 (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
15804 (simplify_subtraction): Use simplify_rtx.
15805 (force_const_mem): Rewrite to use new data structures.
15806 (find_pool_constant): Likewise.
15807 (get_pool_constant, get_pool_constant_mark,
15808 get_pool_constant_for_function, get_pool_mode,
15809 get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
15810 (output_constant_pool_2): Split out from output_constant_pool.
15811 (output_constant_pool_1): Likewise. Use new pool datastructures.
15812 (output_constant_pool): Zap entire pool datastructure.
15813 (mark_constant): Use new pool datastructures.
15814 (mark_constants): Use for_each_rtx.
15815 (mark_constant_pool): Use new pool datastructures.
15816
15817 2004-01-30 Fariborz Jahanian <fjahanian@apple.com>
15818
15819 * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
15820 Copy operands[1] to pseudo for simplify_gen_subreg.
15821
15822 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
15823
15824 * gcse.c (bypass_block): Fix a typo in the previous check-in
15825 to the file.
15826
15827 2004-01-30 Andrew Pinski <pinskia@physics.uc.edu>
15828
15829 * toplev.c: Include alloc-pool.h.
15830 * Makefile.in (toplev.c): Update dependencies.
15831
15832 2004-01-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15833
15834 * combine.c (simplify_shift_const, case XOR): Be careful when
15835 commuting XOR with ASHIFTRT.
15836
15837 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
15838 Eric Botcazou <ebotcazou@libertysurf.fr>
15839
15840 * config/sparc/sparc-protos.h: Remove the prototype for
15841 sparc_builtin_saveregs.
15842 * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
15843 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
15844 (TARGET_PROMOTE_PROTOTYPES): Likewise.
15845 (TARGET_STRUCT_VALUE_RTX): Likewise.
15846 (TARGET_RETURN_IN_MEMORY): Likewise.
15847 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
15848 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
15849 (sparc_builtin_saveregs): Make it static.
15850 (sparc_promote_prototypes): New.
15851 (sparc_struct_value_rtx): Likewise.
15852 (sparc_return_in_memory): Likewise.
15853 * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
15854 (PROMOTE_FUNCTION_RETURN): Likewise.
15855 (RETURN_IN_MEMORY): Likewise.
15856 (STRUCT_VALUE): Likewise.
15857 (STRUCT_VALUE_INCOMING): Likewise.
15858 (EXPAND_BUILTIN_SAVEREGS): Likewise.
15859 (STRICT_ARGUMENT_NAMING): Likewise.
15860 (PROMOTE_PROTOTYPES): Likewise.
15861
15862 * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
15863
15864 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
15865
15866 PR c/12818
15867 * varasm.c (const_hash_1) <STRING_CST>: Use the
15868 address to compute the hash value if flag_writable_strings.
15869 (compare_constant) <STRING_CST>: Compare the addresses
15870 if flag_writable_strings.
15871 (build_constant_desc): Do not copy the expression for a
15872 STRING_CST if flag_writable_strings.
15873
15874 2004-01-30 Jan Hubicka <jh@suse.cz>
15875
15876 * alloc-pool.c: Include hashtab.h
15877 (alloc_pool_descriptor): New structure
15878 (alloc_pool_hash): New global variable.
15879 (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
15880 (create_alloc_pool): Update statistics.
15881 (free_alloc_pool): Likewise.
15882 (pool_alloc): Likewise.
15883 (output_info): New structure
15884 (print_statistics, dump_alloc_pool_statistics): New function.
15885 * alloc-pool.h (alloc_pool_def): Turn name to be constant.
15886 (dump_alloc_pool_statistics): Declare.
15887 * toplev.c (finalize): Dump statistics.
15888
15889 * reload.c (secondary_memlocs_elim_used): New static variable.
15890 (get_secondary_mem): Update it.
15891 (find_reloads): Use it.
15892
15893 2004-01-30 Steven Bosscher <s.bosscher@student.tudelft.nl>
15894
15895 * toplev.c: Fix broken checkin of 2003-12-30, again.
15896
15897 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
15898
15899 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
15900 s390*-*-* targets by specifying a 'nop' insn.
15901 * configure: Regenerate.
15902
15903 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
15904
15905 PR target/11475
15906 * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
15907
15908 2004-01-29 Jakub Jelinek <jakub@redhat.com>
15909
15910 * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
15911 of addr when creating MEM copy.
15912
15913 2004-01-29 Devang Patel <dpatel@apple.com>
15914
15915 * dwarf2out.c (gen_field_die): Do not equate decl number to die.
15916
15917 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
15918
15919 PR inline-asm/6162
15920 * reload.c (find_reloads): Only support one pair of commutative
15921 operands.
15922
15923 2004-01-29 Roger Sayle <roger@eyesopen.com>
15924
15925 PR java/13824
15926 * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
15927 as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
15928 recursion.
15929
15930 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
15931
15932 * config/frv/frv.c: Don't mention deprecated macros in
15933 comments. Remove some target-independent comments about
15934 target macros.
15935 * config/frv/frv.h: Likewise.
15936
15937 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15938
15939 * cfghooks.c (split_block): Set probability and count of the
15940 new edge.
15941
15942 2004-01-29 Josef Zlomek <zlomekj@suse.cz>
15943
15944 * dwarf2out.c (struct die_struct): Added field decl_id.
15945 (decl_die_table): Changed to hash table.
15946 (decl_die_table_allocated): Deleted.
15947 (decl_die_table_in_use): Deleted.
15948 (DECL_DIE_TABLE_INCREMENT): Deleted.
15949 (decl_die_table_hash): New function.
15950 (decl_die_table_eq): New function.
15951 (lookup_decl_die): Lookup in a hash table.
15952 (equate_decl_number_to_die): Insert into a hash table.
15953 (dwarf2out_init): Init hash table decl_die_table.
15954
15955 2004-01-29 Jakub Jelinek <jakub@redhat.com>
15956
15957 PR optimization/13424
15958 * expr.c (store_constructor): Revert 2003-12-03 change.
15959
15960 * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
15961 expected before returning early. Avoid sharing RTL if they
15962 need to be changed.
15963
15964 * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
15965 handling so that memory attributes are preserved. Don't call
15966 ix86_set_move_mem_attrs.
15967 (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
15968 (ix86_expand_clrstr): Rename src argument to
15969 dst. Rework rep_stos and strset handling so that memory attributes
15970 are preserved.
15971 (ix86_expand_strlen): Pass src argument to
15972 ix86_expand_strlensi_unroll_1. Rework strlenqi_1 handling so that
15973 memory attributes are preserved.
15974 (ix86_expand_strlensi_unroll_1): Add src argument. Use
15975 change_address instead of gen_rtx_MEM.
15976 * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
15977 expanders.
15978 (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
15979 strmovqi, strmovqi_rex64): Remove.
15980 (rep_mov*, strmov*): Prefix insn names with *.
15981 (strset, strset_singleop, rep_stos): New expanders.
15982 (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
15983 strsetqi, strsetqi_rex64): Remove.
15984 (rep_stos*, strset*): Prefix insn names with *.
15985 (rep_stosqi_rex64): Likewise. Fix mode of dirflag reg from DImode
15986 to SImode.
15987 (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
15988 are preserved.
15989 (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
15990 Prefix insn names with *.
15991 (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
15992 (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
15993 (strlenqi_1): New expander.
15994 * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
15995
15996 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15997
15998 * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
15999 * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
16000 verify_flow_info): Declaration removed.
16001 * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
16002 (debug_bb, debug_bb_n): Add argument to dump_bb call.
16003 * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
16004 try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
16005 instead of delete_block.
16006 * cfghooks.c: Include timevar.h and toplev.h.
16007 (cfg_hooks): Define here.
16008 (verify_flow_info, dump_bb): Moved from cfg.c.
16009 (redirect_edge_and_branch, redirect_edge_and_branch_force,
16010 split_block, split_block_after_labels, move_block_after,
16011 delete_basic_block, split_edge, create_basic_block,
16012 create_empty_bb, can_merge_blocks_p, merge_blocks,
16013 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
16014 New functions.
16015 * cfghooks.h (struct cfg_hooks): Added fields name,
16016 make_forwarder_block, tidy_fallthru_edge and
16017 move_block_after. Changed type of verify_flow_info, dump_bb,
16018 split_block fields. Renamed cfgh_split_edge and delete_block
16019 fields.
16020 (redirect_edge_and_branch, redirect_edge_and_branch_force,
16021 split_block, delete_block, split_edge, create_basic_block,
16022 can_merge_blocks_p, merge_blocks): Macros removed.
16023 (cfg_hooks): Do not export.
16024 (verify_flow_info, dump_bb, redirect_edge_and_branch,
16025 redirect_edge_and_branch_force, split_block, split_block_after_labels,
16026 move_block_after, delete_basic_block, split_edge, create_basic_block,
16027 create_empty_bb, can_merge_blocks_p, merge_blocks,
16028 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
16029 Declare.
16030 (cfg_layout_rtl_cfg_hooks): Declare.
16031 * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
16032 New functions.
16033 (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
16034 (redirect_edge_with_latch_update): Removed.
16035 (make_forwarder_block): Moved to cfghooks.c, semantics changed.
16036 * cfgloopmanip.c (remove_bbs): Do not update dominators here.
16037 * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
16038 rtl_delete_block, rtl_split_block, rtl_merge_blocks,
16039 tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
16040 cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
16041 cfghooks.c.
16042 (rtl_create_basic_block): Coding style fix.
16043 (rtl_tidy_fallthru_edge, rtl_move_block_after,
16044 rtl_make_forwarder_block): New functions.
16045 (update_cfg_after_block_merging): Removed.
16046 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
16047 * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
16048 to dump_bb.
16049 * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
16050 find_if_case_2): Don't update dominators.
16051 * timevar.def (TV_CFG_VERIFY): New.
16052 * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
16053 * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
16054 * cfgloopmanip.c (split_loop_bb): Don't update dominators.
16055 (remove_bbs): Don't call remove_bbs.
16056 (create_preheader): Use make_forwarder_block.
16057 (mfb_keep_just, mfb_update_loops): New static functions.
16058
16059 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
16060
16061 * config/avr/avr.h: Remove target-independent comments about
16062 target macros.
16063
16064 2004-01-28 Daniel Berlin <dberlin@dberlin.org>
16065
16066 * timevar.c (timevar_print): Mention when checking is enabled.
16067
16068 2004-01-28 Giovanni Bajo <giovannibajo@gcc.gnu.org>
16069
16070 * c-lex.c (c_lex): Rename to...
16071 (c_lex_with_flags): Add new parameter to get CPP flags.
16072 (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
16073 * c-pragma.h (c_lex_with_flags): Declare.
16074
16075 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16076
16077 * config/mcore/mcore.c (mcore_external_libcall): Add a
16078 comment.
16079 (mcore_return_in_memory): Likewise.
16080
16081 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16082
16083 * config/mcore/mcore-protos.h: Remove the prototype for
16084 mcore_setup_incoming_varargs.
16085 * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
16086 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
16087 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16088 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16089 (TARGET_STRUCT_VALUE_RTX): Likewise.
16090 (TARGET_RETURN_IN_MEMORY): Likewise.
16091 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16092 (mcore_setup_incoming_varargs): Make it static. Receive the
16093 first argument by reference. Add argument second_time.
16094 (mcore_external_libcall): New.
16095 (mcore_return_in_memory): Likewise.
16096 * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
16097 (PROMOTE_FUNCTION_RETURN): Likewise.
16098 (STRUCT_VALUE): Likewise.
16099 (RETURN_IN_MEMORY): Likewise.
16100 (SETUP_INCOMING_VARARGS): Likewise.
16101 (PROMOTE_PROTOTYPES): Likewise.
16102 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
16103
16104 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16105
16106 * config/m32r/m32r-protos.h: Remove the prototype for
16107 m32r_setup_incoming_varargs.
16108 * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
16109 (TARGET_STRUCT_VALUE_RTX): Likewise.
16110 (TARGET_RETURN_IN_MEMORY): Likewise.
16111 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16112 (m32r_return_in_memory): New.
16113 (m32r_setup_incoming_varargs): Make it static.
16114 * config/m32r/m32r.h: Remove #undef of
16115 ASM_OUTPUT_EXTERNAL_LIBCALL. Remove the commented-out
16116 definitions of PROMOTE_FUNCTION_ARGS and
16117 PROMOTE_FUNCTION_RETURN.
16118 (PROMOTE_PROTOTYPES): Remove.
16119 (RETURN_IN_MEMORY): Likewise.
16120 (STRUCT_VALUE): Likewise.
16121
16122 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16123
16124 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
16125 (TARGET_STRUCT_VALUE_RTX): Likewise.
16126 (m68k_struct_value_rtx): Likewise.
16127 * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
16128 STRUCT_VALUE_REGNUM.
16129 (PROMOTE_PROTOTYPES): Remove.
16130 * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
16131 STRUCT_VALUE_REGNUM.
16132 * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
16133 * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
16134
16135 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16136
16137 * config/stormy16/stormy16.c
16138 (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
16139 TARGET_BUILD_BUILTIN_VA_LIST.
16140
16141 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16142
16143 * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
16144 (TARGET_STRUCT_VALUE_RTX): Likewise.
16145 (TARGET_RETURN_IN_MEMORY): Likewise.
16146 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16147 (v850_return_in_memory): Likewise.
16148 (v850_setup_incoming_varargs): Likewise.
16149 * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
16150 (SETUP_INCOMING_VARARGS): Likewise.
16151 (RETURN_IN_MEMORY): Likewise.
16152 (STRUCT_VALUE): Likewise.
16153
16154 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16155
16156 * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
16157 (fr30_setup_incoming_varargs): Don't use
16158 STRICT_ARGUMENT_NAMING.
16159 * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
16160 (STRICT_ARGUMENT_NAMING): Likewise.
16161
16162 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16163
16164 * config/frv/frv-protos.h: Remove the prototype for
16165 frv_expand_builtin_saveregs.
16166 * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
16167 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
16168 (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
16169 STRUCT_VALUE_REGNUM.
16170 (frv_expand_builtin_saveregs): Make it static.
16171 (frv_struct_value_rtx): New.
16172 * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
16173
16174 2004-01-29 Jan Hubicka <jh@suse.cz>
16175
16176 PR c++/12850
16177 * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
16178 initial pointers.
16179 * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
16180 for functions that will be only inlined.
16181 (cgraph_mark_function_to_output): Likewise.
16182 (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
16183 do not clear function body.
16184 * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
16185 (tree_rest_of_compilation): Reorganize the logic releasing function
16186 body to use callgraph datastructure.
16187
16188 2004-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16189
16190 * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
16191 to register_operand.
16192
16193 2004-01-28 Zack Weinberg <zack@codesourcery.com>
16194
16195 * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
16196 (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
16197 match_operand expressions so that all match_dups appear
16198 lexically after their corresponding match_operands.
16199
16200 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16201
16202 * config/h8300/h8300.c (WORD_REG_USED): Use
16203 HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
16204 (compute_saved_regs): Likewise.
16205 (h8300_expand_prologue): Likewise. Allocate locals after
16206 saving registers.
16207 (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
16208 of FRAME_POINTER_REGNUM. Deallocate locals before saving
16209 registers.
16210 (h8300_initial_elimination_offset): Adjust for the new frame
16211 layout, which swaps flips the order of locals and saved
16212 registers.
16213 * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
16214 (HARD_FRAME_POINTER_REGNUM): New.
16215 (ELIMINABLE_REGS): Add an elimination rule from
16216 FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
16217 (REGISTER_NAMES): Add fp.
16218 * config/h8300/h8300.md (FP_REG): Change to 11.
16219 (HFP_REG): New.
16220
16221 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16222
16223 * genrecog.c (write_node): Remove a useless local variable.
16224
16225 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
16226
16227 * Makefile.in (options.c options.h): Use stamp file s-options to
16228 avoid unnecessary rebuilds.
16229 (options.o): New target listing dependencies.
16230 (gtyp-gen.h): Use stamp file s-gtyp-gen.
16231 (STAGESTUFF): Add s-gtyp-gen.
16232
16233 2004-01-28 Richard Henderson <rth@redhat.com>
16234
16235 * ggc.h (ggc_free): Declare.
16236 * ggc-common.c (ggc_realloc): Use it.
16237 * ggc-page.c: Remove lots of inline markers.
16238 (globals): Add free_object_list.
16239 (ggc_alloc): Tidy.
16240 (ggc_free, validate_free_objects): New.
16241 (poison_pages): Provide default.
16242 (ggc_collect): Call validate_free_objects; emit markers to
16243 the debug file.
16244
16245 2004-01-28 Zack Weinberg <zack@codesourcery.com>
16246 Jim Wilson <wilson@specifixinc.com>
16247
16248 * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
16249 Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
16250 scratch pointer.
16251 (ia64_secondary_reload_class): Delete case GR_REGS.
16252 * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
16253 Do not allocate a scratch register.
16254 (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
16255
16256 2004-01-28 Jan Hubicka <jh@suse.cz>
16257
16258 * gcse.c (bypass_block): Prevent edges to be unified when we are
16259 about to emit compenstation code.
16260
16261 2004-01-28 Nick Clifton <nickc@redhat.com>
16262
16263 * config/arm/arm.c (arm_expand_builtin): Force second argument of
16264 the setcwx insn into a register.
16265
16266 2004-01-28 Richard Sandiford <rsandifo@redhat.com>
16267
16268 * config/fp-bit.c (pack_d): When using paired doubles to implement
16269 a long double, round the high part separately.
16270 (unpack_d): Fix the case in which the high part is a power of two
16271 and the low part is a nonzero value of the opposite sign.
16272
16273 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16274
16275 * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
16276 (TARGET_STRUCT_VALUE_RTX): Likewise.
16277 (c4x_external_libcall): Likewise.
16278 (c4x_struct_value_rtx): Likewise.
16279 * config/c4x/c4x.h: Remove.
16280 (STRUCT_VALUE_REGNUM): Likewise.
16281 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
16282
16283 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
16284
16285 * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
16286 (TARGET_STRUCT_VALUE_RTX): Likewise.
16287 * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
16288 (STRUCT_VALUE): Likewise.
16289 (PROMOTE_PROTOTYPES): Likewise.
16290
16291 2004-01-27 Roger Sayle <roger@eyesopen.com>
16292
16293 * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
16294 CONST_INT before using INTVAL.
16295
16296 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
16297
16298 * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
16299 * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
16300 frame if !TARGET_BACKCHAIN.
16301 * config/s390/s390.md ("allocate_stack"): Use pattern only if
16302 TARGET_BACKCHAIN.
16303 * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
16304
16305 2004-01-27 Zack Weinberg <zack@codesourcery.com>
16306
16307 * ia64.c (ia64_function_arg): When placing HFAs in integer
16308 registers, do not special case the mode used for complex
16309 types. Do not advance int_regs until the current register
16310 is full.
16311
16312 2004-01-27 Richard Sandiford <rsandifo@redhat.com>
16313
16314 PR target/7297
16315 * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
16316
16317 2004-01-27 David Edelsohn <edelsohn@gnu.org>
16318
16319 * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
16320 slow, unaligned loads and stores while debugging. Fix formatting.
16321
16322 2004-01-27 David Edelsohn <edelsohn@gnu.org>
16323
16324 * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
16325 of computing wmode.
16326 (restore_stack_nonlocal): Same.
16327
16328 2004-01-27 Devang Patel <dpatel@apple.com>
16329
16330 * Makefile.in (dwarf2out.o): Depend on input.h
16331 * dbxout.c (dbx_debug_hooks): Add new empty hook for
16332 imported_module_or_decl.
16333 (xcoff_debug_hooks): Same.
16334 * sdbout.c (sdb_debug_hooks): Same.
16335 * vmsdbgout.c (vmsdbg_debug_hooks): Same.
16336 * debug.c (do_nothing_debug_hooks): Same.
16337 (debug_nothing_tree_tree): New function.
16338 * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
16339 * dwarf2out.c: Include input.h.
16340 (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
16341 (remove_child_TAG): New function.
16342 (dwarf_tag_name): Handle DW_TAG_imported_module.
16343 (gen_subprogram_die): Equate decl number to declaration die. Do not
16344 remove all children dies while reusing declaration die for definition.
16345 Instead, selectively remove only formal parameters.
16346 (gen_variable_die): Equate variable decl to declaration die.
16347 (gen_field_die): Equate field decl to line number.
16348 (force_namespace_die): Replace it with ...
16349 (force_decl_die): ... this.
16350 (force_type_die): New function.
16351 (setup_namespace_context): Replace use of force_namespace_die() with
16352 force_decl_die().
16353 (gen_namespace_die): Same.
16354 (dwarf2out_imported_module_or_decl): New function.
16355
16356 2004-01-27 Bob Wilson <bob.wilson@acm.org>
16357
16358 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
16359 on CQImode and CHImode incoming arguments in register a7.
16360 (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
16361 * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
16362 * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
16363 xtensa_copy_incoming_a7 before reload.
16364
16365 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
16366
16367 * coverage.c (get_coverage_counts): Give a different message
16368 if flag_guess_branch_prob is set.
16369 * predict.c (counts_to_freqs): Return an int.
16370 (estimate_bb_frequencies): If counts_to_freqs returns zero,
16371 calculate estimates.
16372
16373 2004-01-27 Kazu Hirata <kazu@cs.umass.edu>
16374
16375 * config/iq2000/iq2000-protos.h: Remove the prototype for
16376 iq2000_setup_incoming_varargs.
16377 * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16378 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16379 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16380 (TARGET_STRUCT_VALUE_RTX): Likewise.
16381 (TARGET_RETURN_IN_MEMORY): Likewise.
16382 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16383 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
16384 (iq2000_return_in_memory): Likewise.
16385 (iq2000_setup_incoming_varargs): Make it static. Receive the
16386 first argument by reference.
16387 * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
16388 (PROMOTE_FUNCTION_RETURN): Likewise.
16389 (PROMOTE_PROTOTYPES): Likewise.
16390 (RETURN_IN_MEMORY): Likewise.
16391 (STRUCT_VALUE): Likewise.
16392 (SETUP_INCOMING_VARARGS): Likewise.
16393 (STRICT_ARGUMENT_NAMING): Likewise.
16394
16395 2004-01-24 James A. Morrison <ja2morri@uwaterloo.ca>
16396
16397 * fixinc/fixinc.c (test_test): Initialize res.
16398 (start_flexer): Initialize pz_cmd_save.
16399
16400 2004-01-27 Zack Weinberg <zack@codesourcery.com>
16401
16402 * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
16403 SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
16404
16405 2004-01-27 Zack Weinberg <zack@codesourcery.com>
16406
16407 PR 7198
16408 * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
16409 (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
16410 (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
16411 Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
16412 Possibly rename pattern for consistency.
16413 Remove ??? comments suggesting that this be done.
16414 (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
16415 New patterns.
16416 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
16417 (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
16418 (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
16419 (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
16420 Update to match.
16421
16422 2004-01-27 Ian Lance Taylor <ian@wasabisystems.com>
16423
16424 * config/arm/arm.c (output_return_instruction): Only restore IP
16425 into SP if frame_pointer_needed.
16426
16427 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
16428
16429 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
16430 for SCmode and DCmode if ARCH32.
16431 (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
16432 * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
16433 if ARCH32.
16434 (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
16435 if ARCH32.
16436 (BASE_OUTGOING_VALUE_REG): Likewise.
16437
16438 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
16439
16440 PR target/10904
16441 PR target/13058
16442 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
16443 Forbid mode changes from SImode for lower FP regs if ARCH64.
16444
16445 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
16446
16447 * Makefile.in (bt-load.o): Depend on except.h.
16448 * bt-load.c (except.h): #include.
16449 (compute_defs_uses_and_gen): If insn at end of BB can throw
16450 within this function, consider registers used by it unavailable for
16451 btr migration.
16452 (move_btr_def): If insn at end of BB can throw, insert before rather
16453 than after.
16454
16455 * flags.h (flag_btr_bb_exclusive): Declare.
16456 * toplev.c (flag_btr_bb_exclusive): New variable.
16457 (f_options): Add btr-bb-exclusive.
16458 * bt-load.c (augment_live_range): Restore old behaviour if
16459 flag_btr_bb_exclusive is set.
16460 * common.opt: Add entry for -fbtr-bb-exclusive.
16461 * opts.c (common_handle_options): Same.
16462 * doc/invoke.texi: Document -fbtr-bb-exclusive.
16463
16464 * bt-load.c (btrs_live_at_end): New variable.
16465 (compute_defs_uses_and_gen): Compute its pointed-to array.
16466 (clear_btr_from_live_range, add_btr_to_live_range): Update it.
16467 (augment_live_range): When augmenting with a new dominator,
16468 use only its btrs_live_at_end set, but also add in the full set
16469 of the old dominator.
16470 (btr_def_live_range): Use btrs_live_at_end.
16471 (move_btr_def): Set other_btr_uses_before_def, and move new set
16472 to the end of the basic block, if appropriate.
16473 (migrate_btr_defs): Allocate and free btrs_live_at_end.
16474
16475 * bt-load.c (basic_block_freq): Remove outdated comment.
16476
16477 2004-01-27 Alan Modra <amodra@bigpond.net.au>
16478
16479 * config/rs6000/rs6000.h: Correct target_flags free bits comment.
16480 (PREDICATE_CODES): Remove duplicate.
16481 * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
16482 (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
16483 (MASK_PROFILE_KERNEL): Adjust define.
16484
16485 2004-01-27 Jakub Jelinek <jakub@redhat.com>
16486
16487 * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
16488 of long string literals from 32 bytes to sizeof (void *) when !-Os
16489 and to 1 with -Os.
16490
16491 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16492
16493 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
16494 constant addresses in the normal mode.
16495
16496 2004-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16497
16498 * system.h (CHAR_BITFIELD): Delete.
16499 (BOOL_BITFIELD): New.
16500 * c-decl.c (c_scope): Use BOOL_BITFIELD.
16501 * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
16502
16503 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16504
16505 * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16506 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16507 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16508 (TARGET_STRUCT_VALUE_RTX): Likewise.
16509 (TARGET_RETURN_IN_MEMORY): Likewise.
16510 (arc_return_in_memory): Likewise.
16511 * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
16512 (PROMOTE_FUNCTION_RETURN): Likewise.
16513 (RETURN_IN_MEMORY): Likewise.
16514 (STRUCT_VALUE): Likewise.
16515
16516 2004-01-26 Richard Henderson <rth@redhat.com>
16517
16518 * c-parse.in (extension): Use itype.
16519 (SAVE_EXT_FLAGS): Don't allocate a tree.
16520 (RESTORE_EXT_FLAGS): Don't read a tree.
16521
16522 2004-01-26 Jan Hubicka <jh@suse.cz>
16523
16524 * cselib.c (discard_useless_values): Clear out value pointer pointing
16525 to datastructure to be recycled.
16526
16527 2004-01-25 Jan Hubicka <jh@suse.cz>
16528
16529 * genextract.c (main): Do not output the memset when not checking.
16530
16531 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16532
16533 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
16534 switch statement instead of a chain of if statements.
16535
16536 2004-01-26 Jeff Law <law@redhat.com>
16537
16538 * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry. Add
16539 acute accents for Petur Runolfsson's entry.
16540
16541 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16542
16543 * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
16544 (TARGET_RETURN_IN_MEMORY): Likewise.
16545 * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
16546 (RETURN_IN_MEMORY): Likewise.
16547
16548 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
16549
16550 * config/rs6000/rs6000.c (rs6000_emit_move): split slow
16551 unaligned load/store into smaller loads and stores.
16552
16553 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
16554
16555 * function.c (assign_parms): Do not assign
16556 long long argument to memory in prologue if
16557 is it loaded into register.
16558
16559 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
16560
16561 PR middle-end/13779
16562 * expr.c (emit_group_load): split constant
16563 correctly into register components of PARALLEL insn.
16564
16565 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
16566
16567 * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
16568 Use adjust_address_nv directly with appropriate mode.
16569 (restore_stack_nonlocal): Ditto.
16570
16571 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16572
16573 * config/xtensa/xtensa-protos.h: Remove the prototype for
16574 xtensa_builtin_saveregs.
16575 * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16576 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16577 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16578 (TARGET_STRUCT_VALUE_RTX): Likewise.
16579 (TARGET_RETURN_IN_MEMORY): Likewise.
16580 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
16581 (xtensa_builtin_saveregs): Make it static.
16582 (xtensa_return_in_memory): New.
16583 * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
16584 (PROMOTE_FUNCTION_RETURN): Likewise.
16585 (PROMOTE_PROTOTYPES): Likewise.
16586 (STRUCT_VALUE): Likewise.
16587 (RETURN_IN_MEMORY): Likewise.
16588 (EXPAND_BUILTIN_SAVEREGS): Likewise.
16589
16590 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16591
16592 * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
16593 (arm_setup_incoming_varargs): Likewise.
16594 * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
16595
16596 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16597
16598 * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
16599 (cris_setup_incoming_varargs): Likewise.
16600 * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
16601
16602 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16603
16604 * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
16605 (ns32k_struct_value_rtx): Likewise.
16606 * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
16607 NS32K_STRUCT_VALUE_REGNUM.
16608
16609 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16610
16611 * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16612 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16613 (TARGET_STRUCT_VALUE_RTX): Likewise.
16614 (arm_struct_value_rtx): Likewise.
16615 * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
16616 (STRUCT_VALUE): Likewise.
16617 (STRUCT_VALUE_REGNUM): Likewise.
16618 (PROMOTE_PROTOTYPES): Likewise.
16619
16620 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
16621
16622 * config/ia64/ia64-protos.h: Remove the prototype for
16623 ia64_setup_incoming_varargs and ia64_return_in_memory.
16624 * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
16625 (TARGET_RETURN_IN_MEMORY): Likewise.
16626 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16627 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
16628 (ia64_setup_incoming_varargs): Adjust the arguments to meet
16629 the requirement of TARGET_SETUP_INCOMING_VARARGS.
16630 (ia64_return_in_memory): Make it static. Change the return
16631 type to bool from int. Add an argument.
16632 (ia64_struct_value_rtx): New.
16633 * config/ia64/ia64.h: Remove commented-out definitions of
16634 PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
16635 PROMOTE_PROTOTYPES.
16636 (RETURN_IN_MEMORY): Remove.
16637 (STRUCT_VALUE_REGNUM): Likewise.
16638 (STRICT_ARGUMENT_NAMING): Likewise.
16639
16640 2004-01-26 Eric Botcazou <ebotcazou@libertysurf.fr>
16641
16642 PR target/13666
16643 * config/sparc/sparc.c (function_arg_union_value): New function.
16644 (function_arg): Use it to deal with unions.
16645 (function_value): Likewise. Define 'regbase' only for ARCH64.
16646 Replace a conditional statement by a simpler one.
16647
16648 2004-01-26 Richard Sandiford <rsandifo@redhat.com>
16649
16650 * config/mips/mips.c (mips16_optimize_gp): Delete.
16651 (mips_reorg): Don't call it.
16652
16653 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16654
16655 * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
16656 (floatunsqihf2): Remove operand 6.
16657 (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
16658 fix patterns.
16659 (ldi_conditional, ldf_conditional): Validate operands.
16660
16661 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16662
16663 * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
16664 (HAVE_GAS_HIDDEN): Undefine as interim measure.
16665
16666 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16667
16668 * config/c4x/c4x.c (c4x_legitimate_address_p): Invalidate direct
16669 memory references if TARGET_EXPOSE_LDP nonzero.
16670
16671 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16672
16673 * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
16674
16675 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16676
16677 * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
16678 invalid operand combinations.
16679
16680 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16681
16682 * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
16683 c4x_legitimate_address_p. Fix post_modify check.
16684
16685 * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
16686 * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
16687
16688 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16689
16690 * config/pa/pa-protos.h: Remove the prototype for
16691 hppa_builtin_saveregs. Add a prototype for
16692 pa_return_in_memory.
16693 * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
16694 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16695 (TARGET_STRUCT_VALUE_RTX): Likewise.
16696 (TARGET_RETURN_IN_MEMORY): Likewise.
16697 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
16698 (pa_struct_value_rtx): Likewise.
16699 (pa_return_in_memory): Likewise.
16700 * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
16701 PA_STRUCT_VALUE_REGNUM.
16702 (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
16703 (EXPAND_BUILTIN_SAVEREGS): Remove.
16704 (PROMOTE_PROTOTYPES): Likewise.
16705 (PROMOTE_FUNCTION_RETURN): Likewise.
16706
16707 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16708
16709 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
16710 (TARGET_STRUCT_VALUE_RTX): Likewise.
16711 (vax_struct_value_rtx): Likewise.
16712 * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
16713 VAX_STRUCT_VALUE_REGNUM.
16714 (PROMOTE_PROTOTYPES): Remove.
16715
16716 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
16717
16718 * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Handle symref.
16719
16720 2004-01-25 Chris Demetriou <cgd@broadcom.com>
16721
16722 * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
16723 and MIPS64 have HI/LO interlocks. Update comment.
16724
16725 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16726
16727 * config/stormy16/stormy16-protos.h: Remove the prototype for
16728 xstormy16_setup_incoming_varargs.
16729 * config/stormy16/stormy16.c
16730 (xstormy16_setup_incoming_varargs): Remove.
16731 (xstormy16_return_in_memory): New.
16732 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
16733 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16734 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16735 (TARGET_STRUCT_VALUE_RTX): Likewise.
16736 (TARGET_RETURN_IN_MEMORY): Likewise.
16737 * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
16738 (PROMOTE_FUNCTION_RETURN): Likewise
16739 (PROMOTE_PROTOTYPES): Likewise
16740 (RETURN_IN_MEMORY): Likewise
16741 (STRUCT_VALUE): Likewise
16742 (SETUP_INCOMING_VARARGS): Likewise
16743
16744 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
16745
16746 * config/mips/mips.c (mips_offset_within_object_p): New function.
16747 (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
16748 SYMBOL_CONSTANT_POOL cases. Also use it for SYMBOL_GENERAL if the
16749 ABI has 64-bit pointers and the object file only allows 32-bit symbols.
16750
16751 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16752
16753 * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
16754 (PROMOTE_FUNCTION_RETURN): Likewise.
16755
16756 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16757
16758 * config/mn10300/mn10300-protos.h: Remove the prototype for
16759 mn10300_builtin_saveregs.
16760 * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
16761 (TARGET_STRUCT_VALUE_RTX): Likewise.
16762 (TARGET_RETURN_IN_MEMORY): Likewise.
16763 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
16764 (mn10300_return_in_memory): Likewise.
16765 (mn10300_builtin_saveregs): Make it static.
16766 * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
16767 (RETURN_IN_MEMORY): Likewise.
16768 (STRUCT_VALUE): Likewise.
16769 (EXPAND_BUILTIN_SAVEREGS): Likewise.
16770
16771 2004-01-25 Eric Botcazou <ebotcazou@act-europe.fr>
16772
16773 PR bootstrap/13853
16774 * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
16775
16776 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16777
16778 * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
16779 using ccr.
16780
16781 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16782
16783 * config/i860/i860-protos.h: Remove the prototype for
16784 i860_saveregs.
16785 * config/i860/i860.c (i860_saveregs): Make it static.
16786 (i860_struct_value_rtx): New.
16787 (TARGET_STRUCT_VALUE_RTX): Likewise.
16788 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
16789 * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
16790 I860_STRUCT_VALUE_REGNUM.
16791 (EXPAND_BUILTIN_SAVEREGS): Remove.
16792
16793 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16794
16795 * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
16796 (TARGET_RETURN_IN_MEMORY): Likewise.
16797 (m68hc11_struct_value_rtx): Likewise.
16798 (m68hc11_return_in_memory): Likewise.
16799 * config/m68hc11/m68hc11.h: Remove a commented-out definition
16800 of PROMOTE_PROTOTYPES.
16801 (RETURN_IN_MEMORY): Remove.
16802 (STRUCT_VALUE_REGNUM): Likewise.
16803
16804 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16805
16806 * config/mmix/mmix-protos.h: Remove the prototype for
16807 mmix_setup_incoming_varargs.
16808 * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16809 (TARGET_STRUCT_VALUE_RTX): Likewise.
16810 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16811 (mmix_setup_incoming_varargs): Make it static.
16812 (mmix_struct_value_rtx): New.
16813 * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
16814 Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
16815 (STRUCT_VALUE_REGNUM): Remove.
16816 (SETUP_INCOMING_VARARGS): Likewise.
16817
16818 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16819
16820 * config/mips/mips-protos.h: Remove the prototypes for
16821 mips_setup_incoming_varargs and mips_return_in_memory.
16822 * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16823 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
16824 (TARGET_PROMOTE_PROTOTYPES): Likewise.
16825 (TARGET_STRUCT_VALUE_RTX): Likewise.
16826 (TARGET_RETURN_IN_MEMORY): Likewise.
16827 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16828 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
16829 (mips_setup_incoming_varargs): Match the prototype for
16830 TARGET_SETUP_INCOMING_VARARGS.
16831 (mips_return_in_memory): Make it static. Add argument fntype.
16832 (mips_strict_argument_naming): New.
16833 * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
16834 (PROMOTE_FUNCTION_ARGS): Likewise.
16835 (PROMOTE_FUNCTION_RETURN): Likewise.
16836 (STRUCT_VALUE): Likewise.
16837 (RETURN_IN_MEMORY): Likewise.
16838 (SETUP_INCOMING_VARARGS): Likewise.
16839 (STRICT_ARGUMENT_NAMING): Likewise.
16840
16841 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16842
16843 * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
16844 (TARGET_RETURN_IN_MEMORY): Likewise.
16845 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
16846 (ip2k_return_in_memory): Likewise.
16847 (ip2k_setup_incoming_varargs): Likewise.
16848 * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
16849 (STRUCT_VALUE): Likewise.
16850 (STRUCT_VALUE_INCOMING): Likewise.
16851 (SETUP_INCOMING_VARARGS): Likewise.
16852
16853 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
16854
16855 * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
16856 (TARGET_RETURN_IN_MEMORY): Likewise.
16857 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
16858 (avr_return_in_memory): Remove.
16859 * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
16860 (STRUCT_VALUE): Likewise.
16861 (STRUCT_VALUE_INCOMING): Likewise.
16862 (STRICT_ARGUMENT_NAMING): Likewise.
16863
16864 2004-01-25 Jan Hubicka <jh@suse.cz>
16865
16866 * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
16867
16868 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
16869
16870 * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
16871 (mips_regno_mode_ok_for_base_p): Declare.
16872 * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
16873 (FRAME_POINTER_REGNUM): Renumber to 78.
16874 (FIRST_PSEUDO_REGISTER): Update comment accordingly.
16875 (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
16876 (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
16877 (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
16878 (REG_MODE_OK_FOR_BASE_P): Likewise.
16879 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
16880 entry for 77 to "$arg" and entry for 78 to "$frame".
16881 (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
16882 (mips_reg_mode_ok_for_base_p): Remove.
16883 (mips_regno_mode_ok_for_base_p): New function, derived from old
16884 BASE_REG_P macro. Don't enforce the mips16 stack pointer
16885 restrictions unless we're being strict.
16886 (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
16887
16888 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
16889
16890 * c-common.h: Fix comment typos.
16891 * c-decl.c: Likewise.
16892 * cgraphunit.c: Likewise.
16893 * combine.c: Likewise.
16894 * et-forest.c: Likewise.
16895 * flow.c: Likewise.
16896 * function.c: Likewise.
16897 * ifcvt.c: Likewise.
16898 * integrate.c: Likewise.
16899 * jump.c: Likewise.
16900 * postreload.c: Likewise.
16901 * varray.c: Likewise.
16902
16903 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
16904
16905 * doc/frontends.texi: Update copyright.
16906 * doc/gcov.texi: Likewise.
16907 * doc/gty.texi: Likewise.
16908 * doc/sourcebuild.texi: Likewise.
16909 * doc/standards.texi: Likewise.
16910
16911 2004-01-24 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
16912
16913 PR target/12978
16914 * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
16915 Remove movstrqi_small because it conflicts with movstrqi_large.
16916
16917 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
16918
16919 * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
16920 (TARGET_STRUCT_VALUE_RTX): Likewise.
16921 (cris_struct_value_rtx): Likewise.
16922 * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
16923 (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
16924 STRUCT_VALUE_REGNUM.
16925 (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
16926
16927 2004-01-24 Ian Lance Taylor <ian@wasabisystems.com>
16928
16929 PR bootstrap/13848
16930 * cse.c (cse_cc_succs): Change the mode of the source expression
16931 as soon as decide we need a new mode. Don't permit changing modes
16932 if we found a match in a successor block.
16933 (cse_condition_code_reg): Save original mode of source expression
16934 so that we know whether we have to change the mode in other
16935 insns.
16936
16937 2004-01-24 Jan Hubicka <jh@suse.cz>
16938
16939 * emit-rtl.c (change_address, adjust_address_1, offset_address,
16940 widen_memory_access): Return early when there is nothing to change.
16941
16942 2004-01-24 Jakub Jelinek <jakub@redhat.com>
16943
16944 * simplify-rtx.c (simplify_relational_operation): Don't
16945 simplify address == constant into address + -constant == 0.
16946
16947 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
16948
16949 * gcc.c (process_command): Don't internationalize the
16950 Copyright message.
16951 * mips-tfile.c (main): Likewise.
16952
16953 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
16954
16955 * cse.c: (cse_cc_succs) Fix comparison warning.
16956
16957 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
16958
16959 * config/h8300/h8300.md: Remove extraneous USE in expanders.
16960
16961 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
16962
16963 * config/h8300/h8300-protos.h: Provide prototypes for
16964 h8300_legitimate_constant_p and h8300_legitimate_address_p.
16965 * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
16966 (h8300_rtx_ok_for_base_p): Likewise.
16967 (h8300_legitimate_address_p): Likewise.
16968 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
16969 h8300_legitimate_constant_p.
16970 (RTX_OK_FOR_BASE_P): Remove.
16971 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
16972
16973 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
16974
16975 * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
16976 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
16977 (REG_OK_FOR_INDEX_STRICT_P): Likewise.
16978 (REG_OK_FOR_BASE_STRICT_P): Likewise.
16979 (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
16980 (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
16981 (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
16982 (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
16983
16984 2004-01-24 Jan Hubicka <jh@suse.cz>
16985
16986 * cselib.c (remove_useless_values): Do not access discarded values.
16987
16988 2004-01-24 Joseph S. Myers <jsm@polyomino.org.uk>
16989
16990 * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
16991 arrays.
16992
16993 2004-01-23 Kazu Hirata <kazu@cs.umass.edu>
16994
16995 * recog.c: Fix a typo in copyright.
16996
16997 2004-01-23 Andrew Pinski <apinski@apple.com>
16998
16999 * config/rs6000/rs6000.md (call): Fix misappiled patch.
17000 (call_value): Likewise.
17001
17002 2004-01-23 Richard Henderson <rth@redhat.com>
17003
17004 PR opt/12941
17005 * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
17006 (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
17007 if SHIFT_COUNT_TRUNCATED is set.
17008
17009 2004-01-23 Bob Wilson <bob.wilson@acm.org>
17010
17011 * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
17012 separate real and imaginary parts.
17013 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
17014
17015 2004-01-23 Hartmut Penner <hpenner@de.ibm.com>
17016
17017 PR target/13674
17018 * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
17019 loading into GPR.
17020
17021 2004-01-23 Jan Hubicka <jh@suse.cz>
17022
17023 * emit-rtl.c (change_address_1): Do not re-generate the RTX if nothing
17024 change.
17025
17026 * alloc-pool.c (align_four): Kill.
17027 (create_alloc_pool): Align size to eight.
17028 (free_alloc_pool, free_pool): Invalidate deallocated data.
17029
17030 2004-01-23 Ian Lance Taylor <ian@wasabisystems.com>
17031
17032 PR gcc/1532
17033 * cse.c (cse_change_cc_mode): New static function.
17034 (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
17035 (cse_condition_code_reg): New function.
17036 * rtl.h (cse_condition_code_reg): Declare.
17037 * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
17038 * target.h (struct gcc_target): Add fixed_condition_code_regs and
17039 cc_modes_compatible.
17040 * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
17041 (TARGET_CC_MODES_COMPATIBLE): Define.
17042 (TARGET_INITIALIZER): Add new initializers.
17043 * targhooks.c (default_cc_modes_compatible): New function.
17044 * targhooks.c (default_cc_modes_compatible): Declare.
17045 * hooks.c (hook_bool_intp_intp_false): New function.
17046 * hooks.h (hook_bool_intp_intp_false): Declare.
17047 * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
17048 (TARGET_CC_MODES_COMPATIBLE): Define.
17049 (ix86_fixed_condition_code_regs): New static function.
17050 (ix86_cc_modes_compatible): Likewise.
17051 * doc/tm.texi (Condition Code): Document new hooks.
17052
17053 2004-01-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17054
17055 * fixinc/inclhack.def (bad_lval): Renamed to ...
17056 (alpha_bad_lval): ... this.
17057 Removed file list.
17058 Restrict to alpha*-dec-osf*.
17059 * fixinc/fixincl.x: Regenerate.
17060 * fixinc/tests/base/dirent.h: Remove, moving test ...
17061 * fixinc/tests/base/testing.h: ... here, reflecting new name.
17062
17063 2004-01-23 Zack Weinberg <zack@codesourcery.com>
17064
17065 PR c/13814
17066 * c-decl.c (diagnose_mismatched_decls): Also discard a
17067 built-in if we encounter an old-style definition with the
17068 same name.
17069
17070 2004-01-23 Jakub Jelinek <jakub@redhat.com>
17071
17072 * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
17073 set to default{32,64}.
17074
17075 2004-01-21 Jakub Jelinek <jakub@redhat.com>
17076
17077 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
17078 [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
17079
17080 2004-01-23 Eric Botcazou <ebotcazou@act-europe.fr>
17081 Olivier Hainque <hainque@act-europe.fr>
17082
17083 * fold-const.c (fold_binary_op_with_conditional_arg): Only
17084 build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
17085
17086 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
17087
17088 * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
17089 size for minipool references.
17090
17091 2004-01-23 Roger Sayle <roger@eyesopen.com>
17092
17093 * real.c (real_floor, real_ceil): Tweak to allow input and output
17094 arguments to overlap.
17095 (real_round): New function to implement round(3m) semantics.
17096 * real.h (real_round): Prototype here.
17097 * builtins.c (fold_builtin_round): New function to constant fold
17098 round, roundf and roundl.
17099 (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
17100
17101 2004-01-23 Alexandre Oliva <aoliva@redhat.com>
17102
17103 PR optimization/13819
17104 * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
17105 introduced by 2004-01-20's Jan Hubicka's copy_insn change.
17106 (sh_handle_sp_switch_attribute): Remove warning.
17107
17108 2004-01-23 Jan Hubicka <jh@suse.cz>
17109
17110 * i386.c (ix86_emit_restore_regs_using_mov): Deal with large offsets.
17111
17112 2004-01-23 J"orn Rennecke <joern.rennecke@superh.com>
17113
17114 * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
17115 may or may not return non-NIL.
17116 * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
17117 check CANNOT_CHANGE_MODE_CLASS
17118
17119 2004-01-23 Jan Hubicka <jh@suse.cz>
17120
17121 * basic-block.h (PROP_POSTRELOAD): New macro.
17122 (CLEANUP_LOG_LINKS): New.
17123 * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
17124 * toplev.c (rest_of_handle_life): Preserve LOG_LINKS trought cleanup_cfg.
17125
17126 * cselib.c (value_pool): New.
17127 (new_cselib_val): Use pool.
17128 (cselib_init): Initialize value_pool
17129 (cselib_finish): Free pool.
17130
17131 2004-01-23 Eric Botcazou <ebotcazou@libertysurf.fr>
17132
17133 * config/sparc/sparc.c (scan_record_type): New function.
17134 (function_arg_slotno): Use it to determine which kinds of
17135 registers the record can be passed in.
17136
17137 2004-01-22 James A. Mmorrison <ja2morri@uwaterloo.ca>
17138
17139 * config/pa/fptr.c: Fix old-style definition.
17140
17141 2004-01-22 Paolo Bonzini <bonzini@gnu.org>
17142
17143 PR optimization/13724
17144 * cse.c (fold_rtx) <SUBREG>: Fold a SUBREG to zero if it
17145 represents the zero bits produced by a ZERO_EXTEND operation.
17146
17147 2004-01-22 Roger Sayle <roger@eyesopen.com>
17148
17149 PR optimization/13821
17150 * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
17151 correctly calculate the lowpart offset of the contracted subreg.
17152
17153 2004-01-22 Ian Lance Taylor <ian@wasabisystems.com>
17154
17155 * doc/invoke.texi (Optimize Options): Note that --param arguments
17156 are subject to change without notice.
17157
17158 2004-01-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17159
17160 * config.gcc (mips-sgi-irix6*o32): Removed.
17161 * config/mips/iris6-o32-as.h: Likewise.
17162 * config/mips/iris6-o32-gas.h: Likewise.
17163 * config/mips/iris6-o32.h: Likewise.
17164
17165 2004-01-22 Jan Hubicka <jh@suse.cz>
17166
17167 * cfgcleanup.c (first_pass): New static variable.
17168 (try_forward_edges): Add work limiting check for threading.
17169 (try_crossjump_bb): Add work limiting check for crossjumping.
17170 (try_optimize_cfg): Maintain first pass variable.
17171
17172 2004-01-22 Bob Wilson <bob.wilson@acm.org>
17173
17174 * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
17175 handles complex and vector modes.
17176
17177 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
17178
17179 * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
17180 (REG_OK_FOR_BASE_P_STRICT): Likewise.
17181 (STRICT): Likewise.
17182
17183 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
17184
17185 * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
17186 (genrtl_for_stmt): Remove emit_nop calls.
17187
17188 2004-01-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17189
17190 PR target/13713
17191 PR target/13324
17192 * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
17193 movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
17194 clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
17195
17196 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
17197
17198 * config/arm/arm.c: Include "debug.h".
17199 (thumb_pushpop): Take two new arguments. Add some commentary.
17200 Output frame information when pushing.
17201 (thumb_exit, thumb_unexpanded_epilogue): Update calls to
17202 thumb_pushpop.
17203 (thumb_output_function_prologue): Likewise. Accumulate a CFA
17204 offset, and pass it to thumb_pushpop. Output CFI information.
17205 (thumb_expand_prologue): Add some frame-related markers and notes.
17206
17207 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
17208
17209 * config/s390/s390.c (s390_frame_info): Allow large frame sizes
17210 for TARGET_64BIT.
17211 (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
17212 * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
17213
17214 2004-01-22 Roger Sayle <roger@eyesopen.com>
17215 Paolo Bonzini <bonzini@gnu.org>
17216
17217 * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
17218 (subreg_lsb): Change to call new subreg_lsb_1 helper function.
17219 * rtl.h (subreg_lsb_1): Prototype here.
17220 * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
17221 sign extensions.
17222
17223 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
17224
17225 * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
17226 macro need not be defined if jump-tables should contain
17227 relative addresses only when -fPIC or -fPIC is in effect.
17228
17229 2004-01-22 Jan Hubicka <jh@suse.cz>
17230
17231 * alias.c (reg_base_value): Turn into varray.
17232 (reg_base_value_size): Kill.
17233 (old_reg_base_value): New deletable varray.
17234 (alias_invariant_size): New variable.
17235 (REG_BASE_VALUE): Update to use varray.
17236 (find_base_value): Likewise.
17237 (record_set): Likewise.
17238 (record_base_value): Likewise.
17239 (memrefs_conflict_p): Likewise.
17240 (record_set): Likewise
17241 (record_base_value): Likewise.
17242 (memrefs_conflict_p): Use alias_invariant_size.
17243 (init_alias_analysis): Use varray; set alias_invariant_size;
17244 rescale other arrays to be sized by maxreg.
17245 (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
17246
17247 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
17248
17249 * config/sparc/sparc.c (function_arg_slotno): Use
17250 FLOAT_TYPE_P to detect FP fields in structures.
17251 (function_arg_record_value_1): Likewise.
17252 (function_arg_record_value_2): Likewise.
17253
17254 2004-01-22 Jan Hubicka <jh@suse.cz>
17255
17256 * function.c (allocate_struct_function): Do not initialize expr, emit
17257 and varasm.
17258 (prepare_function_start): Do it here.
17259 * c-parse.in (maybe_type_qual): Do not produce line number notes.
17260
17261 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
17262
17263 PR target/13559
17264 * config/sparc/sparc.c (function_arg_record_value_3): Revert
17265 to 'word_mode' once the first slot has been filled.
17266
17267 2004-01-22 Olivier Hainque <hainque@act-europe.fr>
17268
17269 * config/sparc/sparc.c (function_arg_record_value_1): Fix
17270 computation of the number of integer registers required.
17271
17272 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
17273
17274 * config/i386/i386.md: Simplify certain comparisons of
17275 const_int.
17276
17277 2004-01-21 Andrew Pinski <apinski@apple.com>
17278
17279 PR target/13785
17280 * config/rs6000/rs6000.md (call_value): Force operand
17281 1 not operand 0 into a register.
17282
17283 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
17284
17285 * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
17286 unwind-dw2-fde.h: Update copyright.
17287
17288 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17289
17290 * pa-protos.h: Update copyright.
17291 * pa.h: Likewise.
17292 * pa.md: Likewise.
17293
17294 2004-01-21 Caroline Tice <ctice@apple.com>
17295
17296 PR target/12308
17297 * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
17298 flags register.
17299 (fix_truncdfdi2): Likewise.
17300 (fix_truncsfdi2): Likewise.
17301 (*fix_truncdi_1): Likewise.
17302 (fix_truncxfsi2): Likewise.
17303 (fix_truncdfsi2): Likewise.
17304 (fix_truncsfsi2): Likewise.
17305 (*fix_truncsi_1): Likewise.
17306 (fix_truncxfhi2): Likewise.
17307 (fix_truncdfhi2): Likewise.
17308 (fix_truncsfhi2): Likewise.
17309 (*fix_trunchi_1): Likewise.
17310
17311 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
17312
17313 * alias.c, basic-block.h, c-common.c, c-common.h,
17314 c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
17315 calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
17316 combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
17317 cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
17318 defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
17319 expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
17320 genautomata.c, genconditions.c, genemit.c, genflags.c,
17321 gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
17322 ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
17323 langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
17324 line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
17325 ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
17326 rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
17327 target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
17328 unwind.h, varray.c, varray.h: Update copyright.
17329
17330 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
17331
17332 * config/h8300/coff.h: Update copyright.
17333 * config/h8300/elf.h: Likewise.
17334 * config/h8300/h8300-protos.h: Likewise.
17335 * config/h8300/h8300.c: Likewise.
17336 * config/h8300/h8300.h: Likewise.
17337 * config/h8300/h8300.md: Likewise.
17338
17339 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17340
17341 * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
17342 ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
17343 ultrix_unistd): New hacks.
17344 * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
17345 ULTRIX_CONST2_CHECK): Add checks.
17346 * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
17347 * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
17348 * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
17349 * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
17350 * fixinc/tests/base/locale.h: New file.
17351 * fixinc/fixincl.x: Rebuilt.
17352
17353 2004-01-21 Andreas Jaeger <aj@suse.de>
17354 Michael Matz <matz@suse.de>
17355
17356 * doc/extend.texi (Extended Asm): Clarify memory clobber.
17357
17358 2004-01-21 Jakub Jelinek <jakub@redhat.com>
17359
17360 * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
17361 _Jv_RegisterClasses through a function pointer.
17362
17363 2004-01-21 Falk Hueffner <falk@debian.org>
17364
17365 PR target/12898
17366 * config/alpha/alpha.c (alpha_emit_set_const_1): If
17367 no_new_pseudos, use gen_rtx_SET directly for SImode constants
17368 which need multiple instructions to emit.
17369
17370 2004-01-21 Inaoka Kazuhiro <inaoka.kazuhiro@renesas.com>
17371
17372 * config/m32r/m32r.h (CPP_SPEC): Define.
17373
17374 2004-01-21 Zack Weinberg <zack@codesourcery.com>
17375
17376 * c-decl.c (merge_decls): Kill different_binding_level and
17377 different_tu arguments; simplify throughout.
17378 (duplicate_decls): Likewise.
17379 (pushdecl, merge_translation_unit_decls): Update calls to
17380 duplicate_decls.
17381
17382 2004-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17383
17384 * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
17385 $(SYSTEM_H).
17386 (print-rtl1.o): Depend on $(SYSTEM_H).
17387
17388 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
17389
17390 PR bootstrap/12730
17391 * configure.ac: Delete definition and subsitution of docdir.
17392 Add info, man, srcman and srcinfo to target hooks. Create doc/
17393 directory.
17394 * configure: Regenerate.
17395 * Makefile.in: Don't substitute docdir and delete all references
17396 throughout.
17397 (MAKEINFOFLAGS): Define.
17398 (stmp-docobjdir): Delete.
17399 (INFOFILES, MANFILES): Define.
17400 (info): Call lang.info, srcinfo and lang.srcinfo.
17401 (generated-manpages): Call lang.man, srcman and lang.srcman.
17402 (srcinfo, srcman): New rules to copy back files to source directory.
17403 (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
17404 (install-man): Revamp rule.
17405 (clean): Update dvi directory.
17406 (distclean): Delete TAGS from front end directorys.
17407 (maintainer-clean): Delete all document files in source directory.
17408
17409 objc/Make-lang.in (objc.man, objc.info): Dummy entries.
17410 (objc.srcman, objc.srcinfo): Likewise.
17411
17412 2004-01-20 Bruce Korb <bkorb@gnu.org>
17413
17414 * fixinc/inclhack.def(math_exception): bypass only for glibc.
17415 (matherr_decl): rename & relocate as exception_structure.
17416 This fix must precede the math_exception fix.
17417
17418 2004-01-20 Roger Sayle <roger@eyesopen.com>
17419
17420 * fold-const.c (fold_convert): Rename to fold_convert_const.
17421 (fold_convert_const): Change arguments to take a tree_code,
17422 a type and the operand/expression to be converted. Return
17423 NULL_TREE if no simplification is possible. Add support for
17424 FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
17425 (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
17426 Adjust call to fold_convert to match new fold_convert_const.
17427 Avoid modifying the tree passed to fold in-place.
17428
17429 2004-01-21 Alan Modra <amodra@bigpond.net.au>
17430
17431 * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
17432 * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
17433 * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
17434
17435 2004-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17436
17437 * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
17438 * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
17439 Likewise. Handle frames larger than 0x7fffffff on 64-bit ports.
17440 (emit_move_sequence): Check scratch_reg first in various if statements.
17441 Extend source simplification to handle all 64-bit CONST_INTs.
17442 (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
17443 frame size.
17444 (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
17445 frame offset calculations.
17446 * pa.h (NEW_HP_ASSEMBLER): Add comment.
17447 (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
17448 LEGITIMATE_64BIT_CONST_INT_P): Define.
17449 (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P. Treat
17450 any CONST_INT as legitimate during and after reload.
17451 (VAL_32_BITS_P, INT_32_BITS): Define.
17452 (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
17453
17454 2004-01-20 Jan Hubicka <jh@suse.cz>
17455
17456 * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
17457 emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
17458 containing hard regs are shared.
17459 (gen_hard_reg_clobber): New function.
17460 (hard_reg_clobbers): New array.
17461 * genemit.c (gen_exp): Use gen_hard_reg_clobber.
17462 (copy_rtx): Do not copy clobbers containing hard regs.
17463 * rtl.h (gen_hard_reg_clobber): Declare.
17464
17465 2004-01-20 Jan Hubicka <jh@suse.cz>
17466
17467 * varray.c: Include hashtab.h
17468 (varray_descriptor): New structure.
17469 (hash_descriptor, eq_descriptor, varray_descriptor,
17470 print_statistics): New static functions
17471 (varray_init, varray_grow): Update statistics
17472 (dump_varray_statistics): New function.
17473 * varray.h (dump_varray_statistics): Declare.
17474 * toplev.c (finalize): Call it.
17475 * Makefile.in (varray.o): Add dependency.
17476
17477 2004-01-20 Jan Hubicka <jh@suse.cz>
17478
17479 * cselib.c: Include alloc-pool.h
17480 (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
17481 (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
17482 (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
17483 unchain_one_elt_loc_list_pool, unchain_one_value,
17484 new_cselib_val): Simplify using allocpool.
17485 (cselib_init): Initialize allocpools.
17486 (cselib_finish): Finish allocpools.
17487 * Makefile.in (cselib.o): Depend on alloc-pool.h
17488
17489 2004-01-20 Richard Sandiford <rsandifo@redhat.com>
17490
17491 * config/mips/mips.c (mips_load_call_address): Make the call insn
17492 use $gp if it could be calling a lazy binding stub.
17493
17494 2004-01-20 Kazu Hirata <kazu@cs.umass.edu>
17495
17496 * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
17497 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
17498 (TARGET_STRUCT_VALUE_RTX): Likewise.
17499 * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
17500 (PROMOTE_FUNCTION_RETURN): Remove.
17501 (STRUCT_VALUE): Remove.
17502
17503 2004-01-20 Denis Chertykov <denisc@overta.ru>
17504
17505 PR bootstrap/13735
17506 * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
17507 register as pointer after reload.
17508
17509 2004-01-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17510
17511 PR optimization/12440
17512 * loop.c: Include ggc.h.
17513 (loop_optimize): Run garbage collector between optimization of loops.
17514 * Makefile.in (loop.o): Add GGC_H dependency.
17515
17516 2004-01-20 Hartmut Penner <hpenner@de.ibm.com>
17517
17518 * gcc/config/rs6000/rs6000.c (function_arg) Handle
17519 vector register special in function without prototype.
17520 (function_arg_advance): Vector parameters get always
17521 GPRs allocated for the linux64 target.
17522
17523 2004-01-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
17524
17525 * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
17526 not TARGET_M32RX_MASK.
17527
17528 2004-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
17529
17530 PR target/13557
17531 * config/sparc/sparc.c (function_arg): Reorder the cases.
17532
17533 2004-01-19 Per Bothner <per@bothner.com>
17534
17535 Move cpp_reader's line_maps field to a shared global.
17536 * cpphash.h (cpp_reader): Rename line_maps field to line_table
17537 and change the type to a pointer rather than a struct.
17538 * cppinit.c (cpp_push_main_field): Adjust accordingly.
17539 * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
17540 Likewise.
17541 * cppfiles.c (validate_pch): Likewise.
17542 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
17543 Likewise.
17544 * cpperror.c (print_location): Likewise.
17545 * cpplib.h (cpp_create_reader): New line_maps pointer parameter.
17546 * cppinit.c (cpp_create_reader): Handle new parameter.
17547 (cpp_destroy): Don't free line_maps - that's no longer our job.
17548 * input.h (line_table): New variable.
17549 * toplev.c (line_table): Declare variable.
17550 (general_init): Initialize line_table.
17551 * c-opts.c (c_common_init_options): Pass line_table to
17552 cpp_create_reader.
17553 * fix-header.c (read_scan_file): New local variable line_table.
17554 Initialize, and pass it to cpp_create_reader.
17555 * Makefile.in (LIBS, LIBDEPS): Add libcpp.a.
17556 (C_AND_OBJC_OBJS, fix-header): Remove redundant libcpp.a.
17557
17558 2004-01-19 Per Bothner <per@bothner.com>
17559
17560 Implement a cache for linemap_lookup.
17561 * line-map.h (struct_line_maps): Add cache field.
17562 * line-map.c (linemap_init): Zero cache field.
17563 (linemap_add): Set cache field to offset of newly allocated map.
17564 (linemap_lookup): Use and set cache field.
17565
17566 2004-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
17567
17568 PR optimization/13567
17569 * cse.c (cse_basic_block): Call cse_insn with a non-null
17570 libcall_insn for the last SET insn of a no-confilict block.
17571
17572 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
17573
17574 * Makefile.in (target_noncanonical, program_transform_name): Use
17575 immediate define instead of deferred.
17576 (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
17577 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
17578 GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
17579 deferred backquote.
17580
17581 2004-01-20 Joseph S. Myers <jsm@polyomino.org.uk>
17582
17583 * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
17584 true unconditionally.
17585 * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
17586 Remove.
17587 (build_unary_op, build_modify_expr): Don't handle extended
17588 lvalues.
17589 (build_component_ref, build_conditional_expr): Call non_lvalue
17590 instead of pedantic_non_lvalue.
17591 (build_c_cast): Don't condition use of non_lvalue on pedantic.
17592 * fold-const.c (fold): Don't check pedantic directly for
17593 COMPOUND_EXPR. Ensure that results for COMPOUND_EXPR are
17594 passed to pedantic_non_lvalue.
17595 * doc/extend.texi: Remove documentation of extended lvalues.
17596
17597 2004-01-19 Roger Sayle <roger@eyesopen.com>
17598
17599 PR optimization/5263
17600 * simplify-rtx.c (associative_constant_p): Delete.
17601 (simplify_associative_operation): Rewrite to linearize terms, and
17602 attempt to simplify new term against both left and right subterms.
17603 (simplify_binary_operation): Call swap_commutative_operands_p on
17604 op0 and op1, not trueop0 and trueop1. Move the initialization of
17605 trueop0 and trueop1 down to where first needed.
17606 (simplify_relational_operation): Likewise.
17607 * rtlanal.c (commutative_operand_precedence): Also order constant
17608 operands using avoid_constant_pool_reference.
17609
17610 2004-01-19 Richard Henderson <rth@redhat.com>
17611
17612 * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
17613 don't check memory mode.
17614 (unaligned_memory_operand): Likewise.
17615 (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
17616 abort for op0 not MEM.
17617
17618 * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
17619 is not a reg, copy to a scratch first.
17620 (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
17621 unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
17622 unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
17623 (reload_inqi, reload_inhi): Fix mode of op0.
17624 (reload_inqi_help, reload_inhi_help, reload_outqi_help,
17625 reload_outhi_help): Likewise. Use define_insn_and_split.
17626
17627 * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
17628 as well as $29 dead.
17629
17630 2004-01-19 Eric Botcazou <ebotcazou@libertysurf.fr>
17631
17632 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New. Emit
17633 "tls_object" for thread-local objects.
17634 * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
17635 "#tls" for thread-local sections.
17636 * configure.ac (thread-local checks): Specify --fatal-warnings in
17637 every binutils-specific checks. For sparc*-*-*, test whether the
17638 OS is Solaris and the tools are native and act accordingly.
17639 * configure: Rebuild.
17640
17641 2004-01-19 Jeff Law <law@redhat.com>
17642
17643 * contrib.texi: Update Paolo Carlini's entry. New entries for
17644 Jerry Quinn and Petur Runolfsson.
17645
17646 2004-01-19 Roger Sayle <roger@eyesopen.com>
17647
17648 * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
17649 size, don't use the larger zero-extending loads.
17650
17651 2004-01-19 Richard Henderson <rth@redhat.com>
17652
17653 * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
17654 * alpha.md (UNSPEC_NT_LDA): Remove.
17655 (UNSPEC_CVTLQ, cvtlq): New.
17656 (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
17657 (extendsidi2_fix): Remove.
17658 (extendsidi2 splitter): Use cvtlq.
17659 (extendsidi2 fp peepholes): Remove.
17660 (cvtql): Use SFmode instead of SImode.
17661 (fix_trunc?fsi): Update to match.
17662 (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
17663 (movsi): Rename from movsi_nofix, remove f alternatives.
17664 (movsi_nt_vms): Similarly.
17665 (movsi_fix, movsi_nt_vms_fix): Remove.
17666 (nt_lda): Remove.
17667 * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
17668
17669 2004-01-19 Jan Hubicka <jh@suse.cz>
17670
17671 * cgraph.c (cgraph_remove_node): Fix removal from linked list.
17672 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
17673 list.
17674 (cgraph_remove_unreachable_nodes): New function
17675 (cgraph_decide_inlining_of_small_function): Fix pasto.
17676 (cgraph_decide_inlining_incrementally): Fix pasto.
17677 (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
17678
17679 2004-01-19 Steven Bosscher <stevenb@suse.de>
17680
17681 * gengtype.c (header_file): Make it static.
17682 (write_types_process_field, write_enum_defn): Minor whitespace fixes.
17683 * gengtype.h (header_file): No longer extern.
17684
17685 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
17686
17687 * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
17688 * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
17689 * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
17690
17691 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
17692
17693 * stmt.c (HAVE_casesi): Define it not already defined.
17694 (HAVE_tablejump): Likewise.
17695 (expand_end_case_type): Resort to the binary tree method if
17696 neither casesi or tablejump is available.
17697
17698 2004-01-18 Daniel Jacobowitz <drow@mvista.com>
17699
17700 * final.c (final_scan_insn): Make non-static again.
17701 * output.h (final_scan_insn): Re-add prototype.
17702 * config/arc/arc.c (arc_output_function_epilogue): Add NULL
17703 to final_scan_insn call.
17704 * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
17705 * config/mips/mips.c (mips_output_conditional_branch): Likewise.
17706 * config/pa/pa.c (output_lbranch, output_call): Likewise.
17707 * config/sh/sh.c (print_slot): Likewise.
17708 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
17709 (output_sibcall, sparc_flat_function_epilogue): Likewise.
17710
17711 2004-01-18 Jan Hubicka <jh@suse.cz>
17712
17713 * basic-block.h (try_redirect_by_replacing_jump): Declare.
17714 * cfgcleanup.c (try_optimize_cfg): Use it.
17715 * cfgrtl.c (try_redirect_by_replacing_jump): Export.
17716 (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
17717 Kill hack.
17718 (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
17719
17720 Revert:
17721 2004-01-16 Geoffrey Keating <geoffk@apple.com>
17722
17723 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
17724 even after reload, just don't remove the actual jump tables.
17725
17726 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
17727
17728 * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
17729
17730 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
17731
17732 * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
17733 the size of a pointer in bytes.
17734
17735 2004-01-18 Roger Sayle <roger@eyesopen.com>
17736
17737 * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
17738 live "next" variable, which could lead to an infinite loop.
17739
17740 2004-01-18 Andrew Pinski <pinskia@physics.uc.edu>
17741
17742 * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
17743 block.
17744
17745 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
17746 Check for NULL in the chain and remove repeated code.
17747
17748 2004-01-18 Jan Hubicka <jh@suse.cz>
17749
17750 * coverage.c (checksum_string): Rename to ...
17751 (coverage_checksum_string): ... this one, Use crc32_string; recognize
17752 names containing random number and zero the number out in order to get
17753 match.
17754
17755 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
17756
17757 * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
17758
17759 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
17760
17761 * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
17762 doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
17763 doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
17764 doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
17765 doc/trouble.texi: Remove trailing whitespace.
17766
17767 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
17768
17769 PR target/7618
17770 * config/mips/mips.c: Include cfglayout.h.
17771 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
17772 (mips_unspec_offset_high): Add temporary register argument.
17773 (mips_load_call_address): New function, split out from...
17774 (mips_expand_call): ...here.
17775 (mips_output_cplocal): New function.
17776 (mips_output_function_prologue, mips_output_function_epilogue): Use it.
17777 (mips_emit_loadgp): New function, split out from...
17778 (mips_expand_prologue): ...here.
17779 (mips_output_mi_thunk): New function.
17780
17781 2004-01-17 Bernardo Innocenti <bernie@develer.com>
17782
17783 * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
17784 mcpu32): Remove redundant checks for implied target predefines.
17785
17786 2004-1-17 Andrew Pinski <pinskia@physics.uc.edu>
17787
17788 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
17789 Return type is unsigned int not int.
17790 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
17791 Likewise.
17792
17793 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
17794
17795 * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
17796 doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
17797 "GNU/Linux" and "Microsoft Windows" terminology.
17798
17799 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
17800
17801 * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
17802 doc/cppopts.texi, doc/extend.texi, doc/install.texi,
17803 doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
17804 doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
17805 @smallexample instead of @example.
17806
17807 2004-01-17 Ziemowit Laski <zlaski@apple.com>
17808
17809 * objc/objc-act.c (build_objc_method_call): Use target
17810 hooks instead of macros to determine if ..._stret
17811 dispatchers should be used (NeXT runtime only).
17812
17813 2004-01-17 Roger Sayle <roger@eyesopen.com>
17814
17815 * builtins.c (expand_builtin_expect_jump): Fix mistake in my
17816 last patch. Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
17817
17818 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
17819
17820 * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
17821 (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
17822 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
17823 macros.
17824 * reload1.c (emit_reload_insns): Use them.
17825 * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
17826 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
17827 for NULL PATTERN.
17828
17829 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
17830
17831 * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
17832 (final_scan_insn): Update to take an additional SEEN argument. Emit
17833 a line note after the prologue. Make static.
17834 (line_note_exists): Remove.
17835 (final): Don't initialize line_note_exists. Update call to
17836 final_scan_insn.
17837 * output.h (final_scan_insn): Remove prologue.
17838 * function.c (set_insn_locators): Update comment.
17839 (thread_prologue_and_epilogue_insns): Add a comment.
17840
17841 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
17842
17843 PR target/10781
17844 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
17845 Prototype.
17846 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
17847 New function.
17848 * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
17849 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
17850 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
17851
17852 2004-01-17 Jan Hubicka <jh@suse.cz>
17853
17854 * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
17855 commit.
17856
17857 * toplev.c (HAVE_conditional_execution): Provide default.
17858 (rest_of_handle_reorder_blocks): For conditional_execution target
17859 update liveness once after all transformations
17860 (rest_of_compilation): Do crossjumping before ce3.
17861
17862 2004-01-17 Geoffrey Keating <geoffk@apple.com>
17863
17864 * alias.c (new_alias_set): Mark last_alias_set for PCH.
17865 (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
17866 for PCH.
17867 (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
17868 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
17869 (get_TOC_alias_set): Mark 'set' for PCH.
17870
17871 2004-01-16 Geoffrey Keating <geoffk@apple.com>
17872
17873 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
17874 even after reload, just don't remove the actual jump tables.
17875
17876 2004-01-17 J. Brobecker <brobecker@gnat.com>
17877
17878 * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
17879 Remove checks for is_ada() and TREE_UNSIGNED.
17880 (subrange_type_die): Emit a byte_size attribute if the subrange
17881 type size is different from the base type size.
17882 (modified_type_die): Replace call to is_ada_subrange_type() by
17883 call to is_subrange_type().
17884
17885 2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
17886
17887 * config/sh/sh.c: Include ggc.h.
17888
17889 2004-01-16 Geoffrey Keating <geoffk@apple.com>
17890
17891 * Makefile.in (MD5_H): New.
17892 (fold-const.o): Depend on md5.h.
17893 (dwarf2out.o): Likewise.
17894 (cppfiles.o): Likewise.
17895 * cppfiles.c: Include md5.h.
17896 (should_stack_file): Check against list read from PCH file.
17897 (struct pchf_data): New.
17898 (pchf): New variable.
17899 (struct pchf_adder_info): New.
17900 (pchf_adder): New.
17901 (pchf_save_compare): New.
17902 (_cpp_save_file_entries): New.
17903 (_cpp_read_file_entries): New.
17904 (struct pchf_compare_data): New.
17905 (pchf_compare): New.
17906 (check_file_against_entries): New.
17907 * cpphash.h (_cpp_save_file_entries): Prototype.
17908 (_cpp_read_file_entries): Prototype.
17909 * cpppch.c (cpp_write_pch_state): Write the list of headers.
17910 (cpp_read_state): Read the list of headers.
17911
17912 2004-01-17 Jan Hubicka <jh@suse.cz>
17913
17914 * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
17915 builtin_expect specially.
17916 * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
17917 (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
17918 * invoke.texi (max-inline-insns-single): Set to 100.
17919 (large-function-insns): Set to 3000.
17920
17921 2004-01-16 Eric Christopher <echristo@redhat.com>
17922 Chandrakala Chavva <cchavva@redhat.com>
17923
17924 * cppcharset.c (one_iso88591_to_utf8): New function.
17925 (convert_iso88591_utf8): Ditto. Use.
17926 (conversion_tab): Use.
17927 (_cpp_input_to_utf8): New function.
17928 (_cpp_init_iconv_buffer): Ditto.
17929 (_cpp_close_iconv_buffer): Ditto.
17930 * cpphash.h: Prototype new functions.
17931 (cpp_buffer): Add input_cset_desc.
17932 * cppinit.c: Add input_charset default.
17933 * cpplib.c (cpp_push_buffer): Support init and
17934 close of iconv.
17935 * cpplib.h (cpp_options): Add input_charset.
17936
17937 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
17938
17939 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
17940 * config/alpha/unicosmk.h: Remove a commented-out definition
17941 of ASM_OUTPUT_SECTION_NAME.
17942 * config/stormy16/stormy16.h: Likewise.
17943
17944 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17945
17946 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
17947 (alpha___extern_prefix_sys_stat): ... this.
17948 Apply to <sys/mount.h>, too.
17949 Tweak to match more variations.
17950 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
17951
17952 * fixinc/inclhack.def (alpha___extern_prefix,
17953 alpha___extern_prefix_standards): New hacks to obey
17954 __PRAGMA_EXTERN_PREFIX.
17955 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
17956 test.
17957 * fixinc/tests/base/standards.h: Likewise.
17958
17959 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
17960 variations.
17961 New testcase.
17962 * fixinc/tests/base/pthread.h: Handle it.
17963
17964 * fixincl/inclhack.def (bad_lval): Sort file list.
17965 Add many missing files up to Tru64 UNIX V5.1B.
17966 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
17967 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
17968 order.
17969
17970 * fixinc/fixincl.x: Regenerate.
17971
17972 2004-01-16 Mark Mitchell <mark@codesourcery.com>
17973
17974 * version.c (version_string): Change to 3.5.0.
17975 * doc/include/gcc-common.texi (version-GCC): Likewise.
17976
17977 2004-01-16 Jan Hubicka <jh@suse.cz>
17978
17979 * i386.md (load_tp_di): Fix pasto.
17980
17981 PR opt/13608
17982 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
17983
17984 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
17985 pp_c_character_constant, pp_c_floating_constant,
17986 pp_c_additive_expression, pp_c_shift_expression,
17987 pp_c_equality_expression, pp_c_and_expression,
17988 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
17989 pp_c_logical_and_expression): Remove inline modifier.
17990 * dwarf2out.c (get_AT): Likewise.
17991 * et-forest.c (et_splay): Likewise.
17992 * ra.h (ra_alloc, ra_calloc): Likewise
17993
17994 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
17995
17996 * config/frv/frv-protos.h: Fix comment formatting.
17997 * config/frv/frv.c: Likewise.
17998 * config/frv/frv.h: Likewise.
17999 * config/frv/frv.md: Likewise.
18000 * config/frv/frvbegin.c: Likewise.
18001 * config/frv/frvend.c: Likewise.
18002
18003 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
18004
18005 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
18006 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
18007 LINKER_DOES_NOT_WORK_WITH_DWARF2.
18008 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
18009
18010 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
18011
18012 PR 11864
18013 * postreload.c (reload_cse_simplify_operands): Don't remove
18014 implicit extension from LOAD_EXTEND_OP.
18015
18016 2004-01-16 Jan Hubicka <jh@suse.cz>
18017
18018 PR opt/11350
18019 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
18020 after reload.
18021 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
18022 rtl_try_redirect_by_replacing_branch): Likewise.
18023
18024 2004-01-15 Geoffrey Keating <geoffk@apple.com>
18025
18026 PR pch/13689
18027 * alias.c (struct alias_set_entry): Mark for GC.
18028 (alias_sets): Make static, mark for GC.
18029 (record_alias_subset): Use GC to allocate alias structures.
18030 * varray.c (element): Make generic varrays GCed.
18031
18032 PR pch/13361
18033 * c-typeck.c (constructor_asmspec): Delete.
18034 (struct initializer_stack): Delete field 'asmspec'.
18035 (start_init): Delete saving of asmspec.
18036 (finish_init): Don't update constructor_asmspec.
18037 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
18038 * stmt.c (expand_asm): Duplicate strings from tree.
18039 (expand_asm_operands): Likewise.
18040 * tree.c (tree_size): Update computation of size of STRING_CST.
18041 (make_node): Don't make STRING_CST nodes.
18042 (build_string): Allocate string with tree node.
18043 * tree.def (STRING_CST): Update comment.
18044 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
18045 (tree_string): Place contents of string in tree node.
18046 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
18047 from tree.
18048
18049 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
18050 altivec operands.
18051
18052 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18053
18054 * c-common.h: Fix comment formatting.
18055 * c-cppbuiltin.c: Likewise.
18056 * c-pragma.c: Likewise.
18057 * calls.c: Likewise.
18058 * collect2.c: Likewise.
18059 * cppcharset.c: Likewise.
18060 * cpptrad.c: Likewise.
18061 * dbxout.c: Likewise.
18062 * defaults.h: Likewise.
18063 * dwarf2out.c: Likewise.
18064 * fold-const.c: Likewise.
18065 * genautomata.c: Likewise.
18066 * genconditions.c: Likewise.
18067 * genflags.c: Likewise.
18068 * gengtype.c: Likewise.
18069 * integrate.c: Likewise.
18070 * loop.c: Likewise.
18071 * predict.c: Likewise.
18072 * sdbout.c: Likewise.
18073
18074 2004-01-15 Zack Weinberg <zack@codesourcery.com>
18075
18076 * config/ia64/ia64.md (*movti_internal): C output template
18077 extracted to ia64.c.
18078 (*movti_internal_reg): Delete.
18079 (reload_inti, reload_outti): Use the correct mode on operand 2
18080 in the first place, don't fix it up in the output template.
18081 (movtf, reload_ointf, reload_outtf): New expanders.
18082 (*movtf_internal): New define_insn_and_split.
18083 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
18084 make static; do not hand TFmode CONST_DOUBLEs to split_double.
18085 (ia64_split_tmode_move): New function, body mostly pulled
18086 from ia64.md:*movti_internal.
18087 (ia64_function_arg_words): New function, extracted common
18088 logic from ia64_function_arg et seq.
18089 (ia64_function_arg_offset): Likewise. Handle correctly the
18090 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
18091 (ia64_function_arg, ia64_function_arg_partial_nregs)
18092 (ia64_function_arg_advance): Use ia64_function_arg_words and
18093 ia64_function_arg_offset.
18094 (ia64_function_value): TCmode does not go in float regs.
18095 (ia64_secondary_reload_class): Also handle TFmode.
18096 * config/ia64/ia64-protos.h: Remove prototype for
18097 ia64_split_timode; add prototype for ia64_split_tmode_move.
18098
18099 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
18100
18101 * Makefile.in (MAINT): Make it an immediate assignment.
18102
18103 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18104
18105 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
18106
18107 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18108
18109 * config/h8300/coff.h: Replace Hitachi with Renesas.
18110 * config/h8300/elf.h: Likewise.
18111 * config/h8300/h8300-protos.h: Likewise.
18112 * config/h8300/h8300.c: Likewise.
18113 * config/h8300/h8300.h: Likewise.
18114 * config/h8300/h8300.md: Likewise.
18115 * config/h8300/lib1funcs.asm: Likewise.
18116
18117 2004-01-15 Andrew Pinski <apinski@apple.com>
18118
18119 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
18120 around it.
18121
18122 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18123
18124 * config/h8300/h8300.c (h8300_return_in_memory): New.
18125 (TARGET_STRUCT_VALUE_RTX): Likewise.
18126 (TARGET_RETURN_IN_MEMORY): Likewise.
18127 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
18128 (RETURN_IN_MEMORY): Likewise.
18129
18130 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
18131
18132 PR optimization/13375
18133 * gcse.c (handle_avail_expr): Just return if the source is not a
18134 single set.
18135
18136 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
18137 Daniel Jacobowitz <drow@mvista.com>
18138
18139 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
18140 (EQUIV): Define.
18141 (ARM_FUNC_ALIAS): New macro.
18142 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
18143 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
18144
18145 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18146
18147 PR optimization/12372
18148 * calls.c (expand_call): Add call_fusage data for stack arguments in
18149 constant calls.
18150
18151 2004-01-15 Alan Modra <amodra@bigpond.net.au>
18152
18153 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
18154 (rs6000_elf_declare_function_name): Formatting.
18155 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
18156
18157 2004-01-15 Jan Hubicka <jh@suse.cz>
18158
18159 PR bootstrap/13692
18160 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
18161 previous patch.
18162
18163 2004-01-15 Richard Henderson <rth@redhat.com>
18164
18165 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
18166 integer regs of the same call-savedness.
18167
18168 2004-01-15 Andreas Schwab <schwab@suse.de>
18169
18170 PR bootstrap/13562
18171 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
18172 status for NOTB/NOTW/NEGW methods.
18173
18174 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18175
18176 * doc/invoke.texi: Update dump file names. Fix a typo.
18177
18178 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18179
18180 * builtins.c (expand_builtin_va_end): Don't use
18181 EXPAND_BUILTIN_VA_END.
18182 * system.h (EXPAND_BUILTIN_VA_END): Poison.
18183 * config/d30v/d30v.h: Remove a commented-out definition of
18184 EXPAND_BUILTIN_VA_END.
18185 * config/stormy16/stormy16.h: Likewise.
18186
18187 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
18188
18189 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
18190 * targhooks.c (default_struct_value_rtx): Don't use
18191 STRUCT_VALUE_INCOMING_REGNUM.
18192
18193 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
18194
18195 PR bootstrap/12744
18196 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
18197 GENINSRC and not parsedir. Define srcextra as a langhook.
18198 * configure: Regenerate.
18199 * Makefile.in: Suppress default .l.c rule. Don't substitute
18200 parsedir and delete all references throughout. Conditionally define
18201 rule for srcextra dependent on GENINSRC.
18202 (stmp-docobjdir): Delete.
18203 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
18204 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
18205 and gengtype-yacc.h back to source directory.
18206 (maintainer-clean): Delete all parse files in source directory.
18207 (distclean): Delete generated files.
18208
18209 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
18210 (objc-parse.c, objc-parse.y): Don't use parsedir.
18211 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
18212 directory if requested.
18213 (po-generated): Don't use parsedir.
18214 (objc.maintainer-clean): Delete above files from source directory.
18215
18216 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18217
18218 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
18219
18220 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18221
18222 * doc/tm.texi: Replace RETURN_IN_MEMORY with
18223 TARGET_RETURN_IN_MEMORY.
18224
18225 2004-01-15 Jan Hubicka <jh@suse.cz>
18226
18227 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
18228 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
18229 functions accepting SSE arguments
18230 (function_arg): Warn only when asked to warn.
18231 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
18232
18233 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
18234
18235 * c-parse.in (stmts_and_decls): Make label at end of compound
18236 statement a hard error.
18237
18238 2004-01-14 Jan Hubicka <jh@suse.cz>
18239
18240 * cgraph.c (create_edge): Use local.redefined_extern_inline.
18241 * cgraph.h (cgraph_local_info): Sort fields by size; add
18242 redefined_extern_inline
18243 (cgraph_global_info): Sort fields by size.
18244 (cgraph_node): Likewise.
18245 * cgraphunit.c (cgraph_finalize_function): Se
18246 local.redefined_extern_inline on redefinition.
18247 (cgraph_analyze_function): Use it; fix formating.
18248
18249 2004-01-14 Jan Hubicka <jh@suse.cz>
18250
18251 PR c++/10776
18252 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
18253 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
18254 bitmaps
18255 (cache_size): New variable
18256 (add_dependence): Update use; canonize early memory locations
18257 (sched_analyze_1): Likewise.
18258 (sched_analyze_2): Likewise.
18259 (init_dependency_caches): Initialize bitmaps.
18260 (free_dependency_caches): Free bitmaps
18261
18262 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18263
18264 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
18265 targetm.calls.strict_argument_naming().
18266 * target.h: Likewise.
18267
18268 2004-01-14 Richard Henderson <rth@redhat.com>
18269
18270 PR debug/13231
18271 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
18272 instructions.
18273
18274 2004-01-14 Richard Henderson <rth@redhat.com>
18275
18276 PR c++/12491
18277 * except.c (struct eh_region): Add u.fixup.resolved.
18278 (resolve_one_fixup_region): Split out from ...
18279 (resolve_fixup_regions): ... here.
18280
18281 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18282
18283 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
18284
18285 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18286
18287 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
18288 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
18289 (STRUCT_VALUE): Remove.
18290
18291 2004-01-14 Steven Bosscher <stevenb@suse.de>
18292
18293 * system.h: Poison PROMOTED_MODE
18294 * integrate.c (expand_inline_function): Don't mention the
18295 PROMOTED_MODE.
18296 * loop.c (update_giv_derive): Same.
18297 * tree.h (DECL_RTL): Same.
18298
18299 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
18300
18301 PR target/9365
18302 * sh.c (gen_block_redirect): Add special handling of RETURN.
18303 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
18304 far branch target (i.e. it's a return).
18305
18306 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18307
18308 * regrename.c (find_oldest_value_reg): Fix a warning.
18309
18310 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
18311
18312 PR bootstrap/12527
18313 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
18314 Move linux-gas.h and linux-elf.h before aout.h.
18315 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
18316 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
18317
18318 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
18319
18320 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
18321 (CONST_INT, VOIDmode, ...).
18322
18323 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
18324
18325 * regrename.c (find_oldest_value_reg): If the replacement uses
18326 multiple hard registers, check that all of them are in CLASS.
18327
18328 2004-01-14 Jan Hubicka <jh@suse.cz>
18329
18330 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
18331 impossible.
18332
18333 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
18334
18335 * Makefile.in: Define MAINT from --enable-maintainer-mode.
18336
18337 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
18338
18339 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
18340 Calculate always vrsave_mask if TARGET_ALTIVEC.
18341 (rs6000_emit_prologue): Emit code for vrsave
18342 only if TARGET_ALTIVEC_VRSAVE.
18343 (rs6000_emit_epilogue): Likewise.
18344
18345 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
18346
18347 * config/sparc/sparc.md (tie_add32): Fix pasto.
18348 (tie_add64): Likewise.
18349
18350 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18351
18352 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
18353
18354 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18355
18356 * config/iq2000/iq2000-protos.h: Fix comment formatting.
18357 * config/iq2000/iq2000.c: Likewise.
18358 * config/iq2000/iq2000.md: Likewise.
18359
18360 2004-01-14 J. Brobecker <brobecker@gnat.com>
18361
18362 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
18363 (subrange_type_die): Add handle for nameless subrange types.
18364
18365 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18366
18367 * config/h8300/h8300-protos.h: Replace do_movsi with
18368 h8300_expand_movsi.
18369 * config/h8300/h8300.c (do_movsi): Change to
18370 h8300_expand_movsi.
18371 * config/h8300/h8300.md (movsi): Replace do_movsi with
18372 h8300_expand_movsi.
18373 (movsf): Likewise.
18374
18375 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18376
18377 * config/h8300/h8300.c (dosize): Change to
18378 h8300_emit_stack_adjustment. Update callers.
18379
18380 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18381
18382 * config/h8300/h8300.md (movstrictqi): Add an alternative with
18383 the source being post_inc. Tighten the predicate for the
18384 destination to register_operand.
18385 (movstricthi): Likewise.
18386
18387 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18388
18389 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
18390 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
18391 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
18392
18393 2004-01-14 Jan Hubicka <jh@suse.cz>
18394
18395 Partial fix PR c++/12850
18396 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
18397 at zero nest level.
18398
18399 2004-01-13 Bernardo Innocenti <bernie@develer.com>
18400
18401 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
18402 pseudo-register.
18403
18404 2004-01-13 Devang Patel <dpatel@apple.com
18405
18406 PR debug/7078
18407 * dbxout.c (dbxout_symbol_name): Emit mangled names for
18408 NAMESPACE_DECL memebers.
18409
18410 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
18411
18412 PR c++/12709
18413 * c-common.c (finish_fname_decls): Use the chain only if the
18414 tree is an expr_stmt.
18415
18416 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
18417
18418 * rtl.def: Add comment about new option in automata_option.
18419
18420 * genautomata.c (PROGRESS_OPTION): New macro.
18421 (progress_flag): New global variable.
18422 (gen_automata_option): Process `progress'.
18423 (transform_insn_regexps, check_unit_distributions_to_automata,
18424 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
18425 expand_automata, write_automata): Print about the progress only if
18426 progress_flag. Remove fflush.
18427 (initiate_automaton_gen): Process command line flag `-progress'.
18428
18429 * doc/md.texi: Describe the new option.
18430
18431 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18432
18433 * cfg.c (dump_bb): Dump entry edges.
18434
18435 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
18436
18437 * arm.c (thumb_legitimate_address_p): Only allow constant pool
18438 references from SImode.
18439 * arm.md (thumb_movhi_insn): Don't allow minipool references.
18440
18441 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
18442
18443 * system.h (TEXT_SECTION): Poison.
18444 * varasm.c (text_section): Don't use TEXT_SECTION.
18445 * config/sh/sh.c (sh_file_start): Fix a comment typo.
18446 * doc/tm.texi (TEXT_SECTION): Remove.
18447
18448 2004-01-13 Ben Elliston <bje@wasabisystems.com>
18449
18450 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
18451
18452 2004-01-12 James E Wilson <wilson@specifixinc.com>
18453
18454 * unwind-libunwind.c: Delete.
18455
18456 2004-01-12 Zack Weinberg <zack@codesourcery.com>
18457
18458 PR 13656
18459 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
18460 oldtype is set, set *newtypep or *oldtypep too. Do not set
18461 them at the very end.
18462 (validate_proto_after_old_defn): Restructure for comprehensibility;
18463 make error messages clearer.
18464
18465 2004-01-12 Zack Weinberg <zack@codesourcery.com>
18466
18467 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
18468 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
18469 * varray.c: No need to prototype error.
18470 (varray_check_failed): Wrap long string onto two lines.
18471 (varray_underflow): New function.
18472
18473 2004-01-13 Steven Bosscher <stevenb@suse.de>
18474
18475 PR c++/13376
18476 * function.h (struct function): Kill `name' field.
18477 (current_function_name): Make it an extern function.
18478 * function.c (current_function_name): New function.
18479 * graph.c: Update all uses of current_function_name.
18480 * gcse.c: Likewise.
18481 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
18482 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
18483 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
18484 instead of a strcmp with "main".
18485
18486 2004-01-13 Jan Hubicka <jh@suse.cz>
18487
18488 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
18489
18490 * cgraphunit.c (cgraph_optimize_function): Always do
18491 optimize_inline_calls when there is always_inline callee.
18492 (cgraph_decide_inlining): Fix formating.
18493 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
18494 functions.
18495 (expand_call_inline): Likewise.
18496 * toplev.h (sorry): Fix prototype.
18497
18498 2004-01-12 Roger Sayle <roger@eyesopen.com>
18499
18500 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
18501 conditional jumps that drop through to unconditional jumps or the
18502 end of the sequence.
18503
18504 2004-01-13 Jan Hubicka <jh@suse.cz>
18505
18506 * alias.c (new_alias_set): Construct the alias_set varray.
18507 (init_alias_once): Don't do it here.
18508
18509 2004-01-12 Marc Espie <espie@openbsd.org>
18510
18511 * system.h: handle YYBYACC like YYBISON.
18512
18513 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
18514
18515 PR target/10847
18516 * config.gcc: No longer includes conflicting header sparc/sol2.h when
18517 building on sparc64-*-openbsd*.
18518
18519 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
18520
18521 PR debug/13539
18522 * dbxout.c (dbxout_type): Protected inheritance is not
18523 private but protected.
18524
18525 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
18526
18527 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
18528
18529 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
18530
18531 PR optimization/12508.
18532 * combine.c (try_combine): Remove a dead set in a parallel
18533 even if its destination is a subreg.
18534
18535 Revert:
18536 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
18537 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
18538 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
18539
18540 2004-01-12 Geoffrey Keating <geoffk@apple.com>
18541
18542 * real.c: Update copyright date.
18543 * emit-rtl.c: Likewise.
18544 * rtl.h: Likewise.
18545 * dwarf2out.c: Likewise.
18546 * config/rs6000/darwin-ldouble.c: Likewise.
18547 * config/rs6000/rs6000.md: Likewise.
18548
18549 2004-01-12 David Edelsohn <edelsohn@gnu.org>
18550
18551 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
18552 TFmode to SImode libfuncs.
18553
18554 2004-01-12 Roger Sayle <roger@eyesopen.com>
18555
18556 PR middle-end/11397
18557 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
18558
18559 2004-01-12 Jan Hubicka <jh@suse.cz>
18560
18561 PR opt/12826
18562 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
18563 stored.
18564
18565 PR opt/12863
18566 * cfgcleanup.c (label_is_jump_target_p): Move to...
18567 * rtlanal.c (label_is_jump_target_p): ... here.
18568 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
18569 edges unified with branch edges.
18570
18571 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
18572
18573 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
18574 high word of an integral CONST_DOUBLE.
18575
18576 2004-01-12 Paul Brook <paul@codesourcery.com>
18577
18578 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
18579
18580 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
18581
18582 PR target/13585
18583 * sh-protos.h (check_use_sfunc_addr): Declare.
18584 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
18585 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
18586
18587 2004-01-12 Jan Hubicka <jh@suse.cz>
18588
18589 * alias.c: Invlude varray.h
18590 (alias_sets): Turn into varray.
18591 (get_alias_set_entry): Use VARRAY; mark inline.
18592 (mems_in_disjoint_alias_sets_p): Mark inline.
18593 (record_alias_subset): Use varray.
18594 (init_alias_once): Initialize varray.
18595 (new_alias_set): Grow array.
18596 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
18597
18598 2004-01-12 Jan Hubicka <jh@suse.cz>
18599
18600 Partial fix for PR opt/10776 II
18601 * cselib.c: Include params.h
18602 (cselib_invalidate_mem): Limit amount of nonconflicting memory
18603 locations.
18604 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
18605 * Makefile.in (cselib.o): Depend on params.h
18606
18607 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
18608
18609 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
18610 simplify_unary_operation if the operand has a known mode.
18611
18612 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
18613
18614 PR target/13534
18615 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
18616 predicate to handle 'ld' conform addresses.
18617 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
18618 contraint.
18619 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
18620 are memory contraints.
18621 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
18622 New prototype.
18623 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
18624 Change 'o' to 'Y' constraint.
18625 (*movdf_softfloat64): Ditto.
18626
18627 2004-01-12 Bernardo Innocenti <bernie@develer.com>
18628
18629 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
18630 brace-enclosed syntax in all C output statements.
18631
18632 2004-01-12 David Edelsohn <edelsohn@gnu.org>
18633
18634 PR target/13401
18635 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
18636 Objective-C language type value is 14.
18637
18638 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
18639
18640 PR c/12148
18641 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
18642 `int' in a number of places to make sure we always have a SImode
18643 and not a HImode. Add a 'L' suffix to a number of constants.
18644
18645 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18646
18647 * pa.c: Don't include obstack.h.
18648
18649 * pa.md: Correct constraint in pattern for loading PIC label address.
18650
18651 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
18652
18653 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
18654 before defining.
18655
18656 2004-01-11 Steven Bosscher <stevenb@suse.de>
18657
18658 PR fortran/9972
18659 * toplev.c (rest_of_handle_inline): Also consider functions
18660 for deferral if the language is GNU F77.
18661
18662 2004-01-11 Zack Weinberg <zack@codesourcery.com>
18663
18664 * c-decl.c (diagnose_arglist_conflict): Add missing space to
18665 diagnostic messages.
18666
18667 2004-01-11 Jakub Jelinek <jakub@redhat.com>
18668
18669 PR middle-end/13392
18670 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
18671 to drop through label. Don't fall back to SCC even when conditional
18672 jump has not been found.
18673
18674 2004-01-11 Jan Hubicka <jh@suse.cz>
18675
18676 * invoke.texi: Fix syntax error in previous patch.
18677
18678 Partial fix for PR opt/10776
18679 * Makefile.in (reload.o): Include param.h
18680 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
18681 * reload.c: Include params.h.
18682 (find_equiv_reg): Work limiting check.
18683 * invoke.texi: Document.
18684
18685 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
18686
18687 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
18688 out-of-bounds accesses to string constants. Simplify mips16
18689 case accordingly.
18690
18691 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
18692
18693 PR optimization/13469
18694 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
18695 reload_cse_regs (-fnon-call-exceptions only).
18696
18697 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
18698
18699 * config/mcore/lib1.asm: Fix comment formatting.
18700 * config/mcore/mcore-elf.h: Likewise.
18701 * config/mcore/mcore.c: Likewise.
18702 * config/mcore/mcore.h: Likewise.
18703 * config/mcore/mcore.md: Likewise.
18704
18705 2004-01-10 Zack Weinberg <zack@codesourcery.com>
18706
18707 * c-decl.c (duplicate_decls): Break apart into...
18708 (diagnose_arglist_conflict, validate_proto_after_old_defn)
18709 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
18710 ... these new functions. Restructure for comprehensibility.
18711 Remove various archaic special cases. Always report the
18712 location of the previous declaration when a diagnostic is issued.
18713 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
18714 (match_builtin_function_types): Delete unnecessary forward declaration.
18715
18716 2004-01-10 Zack Weinberg <zack@codesourcery.com>
18717
18718 * genautomata.c (make_automaton, NDFA_to_DFA):
18719 Print progress bars with '.' characters instead of '*'.
18720 (build_automaton): Change notes to match.
18721
18722 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
18723
18724 * config/m32r/m32r.md: Use define_constants for unspec and
18725 unspec_volatile.
18726
18727 2004-01-10 Jan Hubicka <jh@suse.cz>
18728
18729 PR opt/11635
18730 * expr.c (expand_expr_real): More curefully expand union casts.
18731
18732 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
18733
18734 * config/m32r/m32r.md (flush_icache): Use 1 for
18735 unspec_volatile.
18736
18737 2004-01-10 David Edelsohn <edelsohn@gnu.org>
18738 James E Wilson <wilson@specifixinc.com>
18739
18740 PR debug/12860
18741 * dbxout.c (dbxout_symbol): Remove initialization of
18742 current_sym_code, current_sym_value, and current_sym_addr.
18743 (dbxout_symbol_location): Same.
18744 (dbxout_prepare_symbol): Zero current_sym_code,
18745 current_sym_value, and current_sym_addr.
18746
18747 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
18748
18749 * tree.c (get_unwidened): Reorder conditions so that the null pointer
18750 check is done first.
18751
18752 2004-01-09 Eric Christopher <echristo@redhat.com>
18753
18754 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
18755 if we're running mark_constant_function.
18756
18757 2004-01-09 Jeff Bailey <jbailey@nisa.net>
18758
18759 PR target/12561
18760 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
18761
18762 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
18763
18764 PR debug/11231
18765 * dbxout.c (dbxout_type_fields): Return if any item is
18766 error_mark_node or the type is error_mark_node.
18767
18768 2004-01-09 Geoffrey Keating <geoffk@apple.com>
18769
18770 * config/rs6000/darwin-ldouble.c: Add big comment explaining
18771 exactly what is expected as a 'long double'.
18772 (_xlqadd): When a value to be returned is representable as a
18773 'double', just return it directly, do not construct it using a union.
18774 Also, correct final fixup.
18775 (_xlqmul): Likewise.
18776 (_xlqdiv): Likewise.
18777 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
18778
18779 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
18780
18781 2004-01-09 Richard Henderson <rth@redhat.com>
18782
18783 * recog.c (constrain_operands): Validate mem operands.
18784
18785 2004-01-09 James E Wilson <wilson@specifixinc.com>
18786
18787 * gcc.c (init_spec): Remove -lunwind from shared case.
18788 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
18789
18790 2004-01-09 Steve Ellcey <sje@cup.hp.com>
18791
18792 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
18793 * configure: Regenerate
18794
18795 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
18796
18797 PR c/11234
18798 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
18799 between function and object pointers.
18800 (digest_init): When comparing a pointer to function type to the
18801 target type, only apply TREE_TYPE once to the pointer to function
18802 type.
18803 * except.c (for_each_eh_label_1): Treat data as a pointer to a
18804 function pointer rather than casting it to a function pointer.
18805 (for_each_eh_label): Update caller.
18806 * recog.h (struct insn_data): Use a struct or union for output.
18807 * genoutput.c (output_insn_data): Update.
18808 * final.c (get_insn_template): Update.
18809
18810 2004-01-09 Mark Mitchell <mark@codesourcery.com>
18811
18812 * expr.h (expand_expr): Make it a macro, not a function.
18813 (expand_expr_real): New function.
18814 * expr.c (store_expr): Adjust logic for deciding whether or not to
18815 copy the value returned by expand_expr.
18816 (expand_expr): Rename to ...
18817 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
18818 calls to language hooks.
18819 * c-common.h (c_expand_expr): Adjust prototype.
18820 * c-common.c (c_expand_expr): Add alt_rtl parameter.
18821 * langhooks-def.h (lhd_expand_expr): Change prototype.
18822 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
18823 * langhooks.h (lang_hooks): Change type of expand_expr.
18824 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
18825 (last_expr_alt_rtl): Likewise.
18826 (expand_expr_stmt_value): Set last_expr_alt_rtl.
18827 (clear_last_expr): Clear it.
18828 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
18829 (expand_end_bindings): Save and restor last_expr_alt_rtl.
18830 * tree.def (RTL_EXPR): Give it an additional operand.
18831 * tree.h (RTL_EXPR_ALT_RTL): New macro.
18832
18833 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
18834
18835 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
18836 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
18837
18838 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
18839
18840 PR target/13380.
18841 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
18842 or (ne:SI (reg:CC 17) (const_int 0)).
18843 Be specific about modes wherever possible.
18844
18845 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
18846
18847 * config/m32r/m32r.c (m32r_expand_block_move): Call
18848 gen_movestrsi_internal with two more arguments.
18849 (m32r_output_block_move): Adjust operand numbers.
18850 Properly update the source and destination pointers.
18851 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
18852 'r+'. Change the set detinations to match_operand.
18853
18854 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
18855
18856 * final.c (FIRST_INSN_ADDRESS): Remove.
18857 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
18858 * system.h (FIRST_INSN_ADDRESS): Poison.
18859 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
18860 * config/m32r/m32r-protos.h: Remove the prototype for
18861 m32r_first_insn_address.
18862 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
18863 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
18864 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
18865
18866 2004-01-09 J. Brobecker <brobecker@gnat.com>
18867
18868 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
18869 we just created.
18870 (is_ada_subrange_type): DIEs for enumeration subtypes should be
18871 emitted as subrange types too.
18872 (subrange_type_die): Add handling of enumeration subtypes.
18873
18874 2004-01-08 Richard Henderson <rth@redhat.com>
18875
18876 PR opt/12441
18877 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
18878 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
18879 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
18880 (ix86_address_cost): Be prepared for SUBREGed registers.
18881 (legitimate_address_p): Accept SUBREGed registers.
18882
18883 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
18884
18885 * Makefile.in: Rename configure.in to configure.ac
18886 * doc/sourcebuild.texi: Likewise.
18887 * configure: Regenerate.
18888 * config.in: Regenerate.
18889
18890 2004-01-08 Stuart Hastings <stuart@apple.com>
18891
18892 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
18893
18894 2004-01-08 Jan Hubicka <jh@suse.cz>
18895
18896 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
18897
18898 2004-01-08 Geoffrey Keating <geoffk@apple.com>
18899
18900 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
18901 (UNSPEC_FIX_TRUNC_TF): New constant.
18902 (movtf_internal): Make splitter active only when insn is active.
18903 (extenddftf2): Rewrite to properly load zero into low part.
18904 (extenddftf2_internal): New.
18905 (extendsftf2): Rewrite.
18906 (truncdftf2): Correct length.
18907 (floatditf2): Delete.
18908 (fix_trunc_helper): New.
18909 (fix_trunctfdi2): Use fix_trunc_helper.
18910 (fix_trunctfsi2): Likewise.fix_trunc
18911 (fix_trunctfsi2_internal): New.
18912
18913 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
18914 addresses are legitimate on Darwin even when flag_pic.
18915 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
18916 non-offsettable addresses for loads of TFmode constants.
18917
18918 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
18919
18920 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
18921 variables in the appropriate bss section.
18922
18923 2004-01-09 Alan Modra <amodra@bigpond.net.au>
18924
18925 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
18926 target_flags has MASK_POWERPC64 when -m64.
18927 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
18928 to 620, 630, power3, power4 and rs64a entries.
18929 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
18930
18931 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
18932
18933 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
18934 floating-point constants.
18935
18936 2004-01-08 J. Brobecker <brobecker@gnat.com>
18937
18938 * dwarf2out.c (subrange_type_die): Add context_die parameter.
18939 Create the subrange_type DIE using the given context DIE.
18940 (modified_type_die): Update call to subrange_type_die.
18941
18942 2004-01-08 Zack Weinberg <zack@codesourcery.com>
18943
18944 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
18945 Add multiple-include guard.
18946
18947 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
18948
18949 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
18950 all vector constant loadable by vsplt*.
18951 (output_vec_const_move): Likewise.
18952
18953 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
18954
18955 PR c/6024
18956 * c-typeck.c (comptypes): Only treat enumerated types in the same
18957 translation unit as compatible with each other when they are the
18958 same type.
18959 * doc/extend.texi: Update.
18960
18961 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
18962
18963 PR c/12165
18964 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
18965 array type from the array element type.
18966
18967 2004-01-07 Alan Modra <amodra@bigpond.net.au>
18968
18969 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
18970 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
18971 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
18972 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
18973 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
18974
18975 2004-01-06 Eric Christopher <echristo@redhat.com>
18976
18977 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
18978 (DWARF2_DEBUGGING_INFO): Define.
18979 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
18980 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
18981 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
18982 for irix as.
18983 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
18984 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
18985 * config/mips/iris5gas.h: Ditto.
18986 (DBX_DEBUGGING_INFO): Remove.
18987 (DWARF2_DEBUGGING_INFO): Ditto.
18988 (MIPS_DEBUGGING_INFO): Ditto.
18989 (PREFERRED_DEBUGGING_TYPE): Ditto.
18990 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
18991 (PREFERRED_DEBUGGING_TYPE): Ditto.
18992 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
18993 * config/mips/elf64.h: Ditto.
18994
18995 2004-01-06 Jan Hubicka <jh@suse.cz>
18996
18997 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
18998 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
18999
19000 2004-01-06 Geoffrey Keating <geoffk@apple.com>
19001
19002 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
19003 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
19004 * config/rs6000/darwin-ldouble.c: New.
19005
19006 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
19007 for constants.
19008 (constant_subword): Delete.
19009 * rtl.h (constant_subword): Delete prototype.
19010 (immed_double_const): Is not in varasm.c.
19011 * simplify-rtx.c (simplify_immed_subreg): New.
19012 (simplify_subreg): Use simplify_immed_subreg.
19013
19014 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
19015 than trying to generate RTL directly.
19016 (fix_trunctfsi2): Use expand_fix rather than trying to generate
19017 RTL directly.
19018
19019 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
19020
19021 2004-01-06 David Edelsohn <edelsohn@gnu.org>
19022
19023 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
19024 function into a separate macro.
19025 (read_only_data_section): Add void argument.
19026 (private_data_section): Same.
19027 (read_only_private_data_section): Same.
19028 (toc_section): Same.
19029
19030 2004-01-06 Jan Hubicka <jh@suse.cz>
19031
19032 * invoke.texi: Remove typo in last change.
19033
19034 PR target/10301
19035 * config.gcc: Accept opteron and athlon-64 as variants
19036 of k8.
19037 * i386.c (override_options): Likewise.
19038 * invoke.texi (i386 -mtune): Expand documentation.
19039
19040 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
19041
19042 * alias.c: Fix comment typos.
19043 * builtins.c: Likewise.
19044 * cfg.c: Likewise.
19045 * df.c: Likewise.
19046 * dominance.c: Likewise.
19047 * dwarf2out.c: Likewise.
19048 * emit-rtl.c: Likewise.
19049 * expr.c: Likewise.
19050 * final.c: Likewise.
19051 * fold-const.c: Likewise.
19052 * gcse.c: Likewise.
19053 * genattrtab.c: Likewise.
19054 * genrecog.c: Likewise.
19055 * gensupport.c: Likewise.
19056 * ggc-zone.c: Likewise.
19057 * integrate.c: Likewise.
19058 * local-alloc.c: Likewise.
19059 * loop.c: Likewise.
19060 * recog.c: Likewise.
19061 * regmove.c: Likewise.
19062 * reg-stack.c: Likewise.
19063 * reorg.c: Likewise.
19064 * rtlanal.c: Likewise.
19065 * rtl.h: Likewise.
19066 * sched-ebb.c: Likewise.
19067 * simplify-rtx.c: Likewise.
19068 * toplev.c: Likewise.
19069 * varasm.c: Likewise.
19070
19071 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
19072
19073 * doc/install.texi: Fix typos.
19074 * doc/invoke.texi: Likewise.
19075 * doc/md.texi: Likewise.
19076
19077 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
19078
19079 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
19080
19081 2004-01-06 Jan Hubicka <jh@suse.cz>
19082
19083 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
19084 (function_arg_advance): Do not pass aggregates in SSE; deal handling
19085 of MMX_REGPARM.
19086 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
19087 add MMX_REGPARM.
19088 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
19089 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
19090 (MMX_REGPARM_MAX): Similarly for -mmmx.
19091
19092 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19093
19094 * config/sh/linux.h: Fix comment formatting.
19095 * config/sh/netbsd-elf.h: Likewise.
19096 * config/sh/sh.c: Likewise.
19097 * config/sh/sh.h: Likewise.
19098 * config/sh/vxworks.h: Likewise.
19099
19100 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19101
19102 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
19103 * toplev.c (output_file_directive): Don't use
19104 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
19105
19106 2004-01-05 Steven Bosscher <s.bosscher@student.tudelft.nl>
19107
19108 * toplev.c: Fix broken checkin of 2003-12-30.
19109
19110 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
19111
19112 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
19113 (USING_MMAP): We don't support non-mmap.
19114 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
19115 large objects.
19116 (struct page_entry): Remove bytes_free.
19117 (struct page_table_chain): Remove.
19118 (struct globals): Remove page_table member.
19119 (loookup_page_table_entry): Function deleted.
19120 (set_page_table_entry): Ditto.
19121 (ggc_allocated_p): No longer need page table lookups.
19122 (ggc_marked_p): Ditto.
19123 (alloc_small_page): Don't care about bytes_free anymore.
19124 (alloc_large_page): Round up size.
19125 (ggc_alloc_zone_1): Mark large objects as such, and calculate
19126 their size the new way.
19127 Remove page table lookups and setting.
19128 (ggc_get_size): Calculate large object size the new way.
19129 (sweep_pages): Redo to account for fact that we no longer have
19130 bytes_free.
19131 (ggc_collect): No longer need to reincrement bytes_free.
19132 (ggc_pch_alloc_object): Handle new large objects properly.
19133 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
19134
19135 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19136
19137 * doc/invoke.texi: Remove a page break.
19138
19139 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19140
19141 * config/avr/avr.c (avr_output_function_prologue): Remove an
19142 extra pair of curly braces.
19143
19144 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19145
19146 * config/mn10300/mn10300.c: Fix comment formatting.
19147 * config/mn10300/mn10300.h: Likewise.
19148
19149 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19150
19151 * tree.h: Update documentation on nothrow_flag.
19152 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
19153 types.
19154
19155 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
19156
19157 * doc/invoke.texi: Remove traces of dead ports.
19158
19159 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
19160
19161 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
19162 option.
19163
19164 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
19165
19166 PR target/12945
19167 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
19168 counter labels.
19169 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
19170 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
19171 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
19172 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
19173 (mips_symbol_insns): Don't trust the local/global classification.
19174 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
19175 (override_options): Make -mabicalls -fno-unit-at-a-time imply
19176 -mno-explicit-relocs.
19177 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
19178 between local and global symbols.
19179
19180 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
19181
19182 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
19183 (mips_preferred_reload_class): Declare.
19184 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
19185 (EXTRA_CONSTRAINT): Update accordingly.
19186 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
19187 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
19188 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
19189 mips_dangerous_for_la25_p.
19190 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
19191 if mips_dangerous_for_la25_p.
19192
19193 2004-01-05 Bernardo Innocenti <bernie@develer.com>
19194
19195 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
19196 warning.
19197
19198 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
19199
19200 * configure.ac: Use AC_PROG_CPP_WERROR.
19201 * configure: Regenerate.
19202
19203 2004-01-04 Zack Weinberg <zack@codesourcery.com>
19204
19205 * .cvsignore: Add autom4te.cache.
19206
19207 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
19208
19209 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
19210 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
19211 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
19212 then architecture options, then ABI options. General rewording.
19213
19214 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
19215
19216 PR c/3414
19217 * doc/extend.texi: Clarify definition of malloc attribute.
19218
19219 2004-01-04 Jan Hubicka <jh@suse.cz>
19220
19221 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
19222 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
19223 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
19224 (cgraph_inline_p): Add extra argument reason.
19225 * cgraphunit.c: Minor formating fixes.
19226 cgraph_first_inlined_callee): New functions.
19227 (record_call_1): Record builtins too.
19228 (cgraph_analyze_function): Update inline_failed messages.
19229 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
19230 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
19231 (cgraph_check_inline_limits): Likewise; Add argument reason.
19232 (cgraph_set_inline_failed): New static function.
19233 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
19234 reasons.
19235 (cgraph_inline_p): Add new argument reason.
19236 * tree-inline.c (expand_call_inline): Update warning.
19237
19238 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
19239
19240 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
19241 with modern equivalents.
19242 * configure: Regenerate.
19243
19244 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
19245 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
19246 * configure: Regenerate.
19247
19248 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
19249
19250 * configure.in: Rename to configure.ac.
19251 * configure.ac: Renamed from configure.in; make minimum necessary
19252 changes for autoconf 2.5x.
19253 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
19254 * configure: Regenerate with autoconf 2.57.
19255
19256 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
19257
19258 * config/mips/linux.h: Fix comment formatting.
19259 * config/mips/mips.c: Likewise.
19260 * config/mips/mips.h: Likewise.
19261 * config/mips/mips.md: Likewise.
19262 * config/mips/netbsd.h: Likewise.
19263 * config/mips/windiss.h: Likewise.
19264
19265 2004-01-02 Richard Henderson <rth@redhat.com>
19266
19267 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
19268 for sse and 387; add suppression for mmx.
19269
19270 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
19271
19272 * loop.c (loop_optimize): Free all loops_info's mems.
19273
19274 * c-typeck.c (finish_init): Free spelling_base before
19275 setting it again.
19276
19277 * cfgloop.c (flow_loops_find): Always free the sbitmap
19278 headers.
19279
19280 * predict.c (estimate_probability): Free bbs after being
19281 done with it.
19282
19283 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
19284
19285 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
19286 const_8bit_operand and call_address_operand.
19287
19288 2004-01-02 Jan Hubicka <jh@suse.cz>
19289
19290 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
19291 when there is nothing to inline but warnings are requested.
19292 (cgraph_decide_inlining): Fix memory leak.
19293
19294 2004-01-02 Jan Hubicka <jh@suse.cz>
19295
19296 * expr.c (store_constructor): Fix pasto in previous patch.
19297
19298 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
19299
19300 * config/i386/cygming.h: Fix comment formatting.
19301 * config/i386/djgpp.h: Likewise.
19302 * config/i386/gthr-win32.c: Likewise.
19303 * config/i386/i386-interix.h: Likewise.
19304 * config/i386/i386.c: Likewise.
19305 * config/i386/i386.h: Likewise.
19306 * config/i386/openbsd.h: Likewise.
19307 * config/i386/winnt.c: Likewise.
19308 * config/i386/xm-mingw32.h: Likewise.
19309
19310 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
19311
19312 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
19313 copyright and last modification dates.
19314
19315 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
19316
19317 * doc/install.texi (Specific): Mention x86_64.
19318
19319 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
19320
19321 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
19322 Call force_operand on plus_constant result.
19323
19324 2004-01-01 Jan Hubicka <jh@suse.cz>
19325
19326 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
19327 * expr.c (store_constructor): Use vec_init pattern.
19328 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
19329 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
19330 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
19331 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
19332 New patterns.
19333 (sse2_unpc?pd): Fix pattern.
19334 (sse2_movlpd): Kill.
19335 (sse2_movsd): Deal with movlpd too.
19336 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
19337 (ix86_expand_vector_init): New.
19338 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
19339 * md.texi (vec_set, vec_extract): Document
19340
19341 2003-12-31 Jan Hubicka <jh@suse.cz>
19342
19343 PR opt/13473
19344 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
19345 ASM input operands
19346
19347 PR opt/12617
19348 * toplev.c (dump_file_index): Reorder ce3 and bbro.
19349 (dump_file): Likewise.
19350 (rest_of_compilation): Likewise.
19351
19352 PR debug/13367
19353 * cgraph.c (cgraph_function_possibly_inlined): Even with
19354 flag_really_no_inline we inline always_inline functions.
19355 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
19356 for non-always_inline functions when there is flag_really_no_inline.
19357 (cgraph_decide_inlining): Limit work done when not inlining.
19358 (cgraph_decide_inlining_incrementally): Likewise.
19359 (cgraph_optimize_function): Check whether something got inlined.
19360 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
19361 extern inline functions when not inlining.
19362
19363 * opts.c (decode_options): Disable crossjumping at -O1
19364 * invoke.texi (-O1): Document change.
19365
19366 See ChangeLog.10 for earlier changes.
This page took 0.862202 seconds and 6 git commands to generate.