expmed.c (store_bit_field): Use simplify_gen_subreg instead of gen_rtx_SUBREG directly.
[gcc.git] / gcc / ChangeLog
1 2004-12-01 Richard Henderson <rth@redhat.com>
2
3 * expmed.c (store_bit_field): Use simplify_gen_subreg instead
4 of gen_rtx_SUBREG directly.
5
6 2004-12-01 David Edelsohn <edelsohn@gnu.org>
7 Nathan Sidwell <nathan@codesourcery.com>
8
9 PR target/17107
10 * config/rs6000/rs6000.md (sge): Enable for non-TARGET_POWER.
11 (sgt): Same.
12 (sle): Same.
13 (slt): Same.
14
15 2004-12-01 Nathan Sidwell <nathan@codesourcery.com>
16
17 PR middle-end/18667
18 * params.c (set_param_value): Add range check.
19 * params.def: Add min and max values. Reformat long strings.
20 * params.h (struct param_info): Add min and max fields.
21 (enum compiler_param): Adjust DEFPARAM.
22 * toplev.c (lang_independent_params): Likewise.
23
24 2004-12-01 Alan Modra <amodra@bigpond.net.au>
25
26 PR target/12817
27 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use r0 for vrsave.
28
29 2004-12-01 Joseph S. Myers <joseph@codesourcery.com>
30
31 * doc/standards.texi: Update for C99 TC2.
32
33 2004-11-30 Jeff Law <law@redhat.com>
34
35 * sbitmap.c (sbitmap_any_common_bits): New function.
36 * sbitmap.h (sbitmap_any_common_bits): Prototype.
37 * modulo-sched.c (sms_schedule_by_order): Use sbitmap_any_common_bits
38 No longer allocate/free "psp", "pss" sbitmaps.
39 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Similarly for
40 the "res" sbitmap.
41 (group_aliases): Similarly.
42
43 2004-11-30 Nathan Sidwell <nathan@codesourcery.com>
44
45 * tree-vectorizer.c (vect_analyze_data_refs): Reformat and avoid
46 uninitialized variable.
47
48 2004-11-30 Eric Christopher <echristo@redhat.com>
49
50 * fold-const.c (fold_widened_comparison): Make sure that we're
51 passing an INTEGER_TYPE to int_fits_type_p.
52 (fold): Clean up comment.
53
54 2004-11-30 Zack Weinberg <zack@codesourcery.com>
55
56 * mklibgcc.in: Correct calculation of libgcc_s_soname and
57 libunwind_soname. Use $out, not $outS, in commands for
58 no-shared-library case. Move EXTRA_MULTILIB_PARTS rules above
59 library build rules, make $libunwind_so and $libgcc_s_so
60 depend on them in the normal fashion, and filter those objects
61 out of @shlib_objs@.
62
63 2004-11-30 Janis Johnson <janis187@us.ibm.com>
64
65 * config/rs6000/altivec.h (vec_step_help): Support const vector types.
66
67 2004-11-30 Andrew Pinski <pinskia@physics.uc.edu>
68
69 PR tree-opt/18298
70 * tree-optimize.c (init_tree_optimization_passes): Add a may_alias
71 pass right after fold builtins.
72
73 2004-11-30 Andreas Krebbel <krebbel1@de.ibm.com>
74
75 * config/s390/s390-modes.def: Added cc modes documentation.
76 * config/s390/s390.c: (s390_tm_ccmode, s390_select_ccmode,
77 s390_expand_addcc): Added cc mode comments.
78 * config/s390/s390.md: Removed old cc mode documentation.
79
80 2004-11-30 Mark Dettinger <dettinge@de.ibm.com>
81
82 * config/s390/s390.c (struct processor_costs): New data type.
83 (s390_cost, z900_cost, z990_cost): New global variables.
84 (override_options): Initialize s390_cost.
85 (s390_rtx_costs): Reimplement.
86
87 2004-11-29 Daniel Berlin <dberlin@dberlin.org>
88
89 Fix PR tree-optimization/18673
90
91 * tree-ssa-pre.c: Remove splay-tree.h include.
92 (bitmap_value_replace_in_set): Fix to add if it does not exist.
93 (find_or_generate_expression): Remove now-wrong condition.
94 (create_expression_by_pieces): Fix condition and comment reason
95 for it.
96 (insert_aux): Fix condition and comment reasons for it.
97 Factor insertion code from here.
98 (insert_into_preds_of_block): To here. Fix conditions in factored
99 function and comment reasons for them.
100
101 2004-11-30 Ira Rosen <irar@il.ibm.com>
102
103 PR tree-opt/18607
104 * tree-vectorizer.c (vect_analyze_data_refs): Use temporary
105 variable for data_reference when looking for memtag.
106
107 2004-11-30 Jakub Jelinek <jakub@redhat.com>
108
109 * c-opts.c (check_deps_environment_vars): If spec != NULL, set
110 deps_seen.
111
112 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
113
114 * tree-vectorizer.c (vect_gen_niters_for_prolog_loop): Use
115 tree_low_cst instead of TREE_INT_CST_LOW.
116
117 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
118
119 PR target/18173
120 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Return false for
121 decls that are assembled before vectorization takes place.
122 (vect_compute_data_ref_alignment): Set DECL_USER_ALIGN to 1.
123
124 2004-11-30 Ulrich Weigand <uweigand@de.ibm.com>
125
126 * passes.c (rest_of_handle_old_regalloc): Delete unreachable blocks
127 if local_alloc modified jumps.
128
129 2004-11-30 Alan Modra <amodra@bigpond.net.au>
130
131 * varasm.c (default_encode_section_info): Don't set SYMBOL_FLAG_SMALL
132 on TLS symbols.
133 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Remove TLS
134 check.
135
136 2004-11-30 Zack Weinberg <zack@codesourcery.com>
137
138 * gthr-gnat.c, gthr-gnat.h, gthr.h, libgcc2.h, unwind-dw2-fde.h
139 * unwind.h: Surround all visibility pragmas with #ifndef HIDE_EXPORTS.
140
141 * mklibgcc.in: Drastic restructure for comprehensibility.
142 Remove the old hidden-directive hack.
143 Eliminate support for .txt files in LIB2ADD etc (never used).
144 Eliminate support for assembly source files in LIB2ADDEH* and
145 LIBUNWIND (also never used).
146 Build up dependency lists for libraries incrementally.
147 If we have SHLIB_LINK, compile each file twice, once for the
148 static and once for the shared library; also probe for
149 -fvisibility=hidden in the generated libgcc.mk. If found,
150 pass that and -DHIDE_EXPORTS to the compilation of every C
151 source file going into the static library. If found, generate
152 hidden-directive lists for every assembly source file going
153 into the static library, but incorporate them with -include
154 instead of ld -r.
155 Write comments into generated libgcc.mk to facilitate debugging.
156 * Makefile.in: Pass ASM_HIDDEN_OP to mklibgcc.
157 * config/t-slibgcc-darwin: Define ASM_HIDDEN_OP.
158
159 * config/darwin.h (REAL_LIBGCC_SPEC): Put -lgcc back in
160 -Zdynamiclib case.
161
162 2004-11-29 Richard Henderson <rth@redhat.com>
163
164 * expr.c (get_inner_reference): Handle REAL/IMAGPART_EXPR.
165 (handled_component_p): Likewise.
166 * alias.c (can_address_p): Reformat and simplify. Handle
167 REAL/IMAGPART_EXPR. Do not disable addressability based on
168 alias set zero.
169 * fold-const.c (build_fold_addr_expr_with_type): Remove duplicate
170 check for REAL/IMAGPART_EXPR.
171 * gimplify.c (gimplify_compound_lval): Likewise.
172 * tree-cfg.c (verify_expr): Likewise.
173 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
174 * tree-nested.c (build_addr, convert_nonlocal_reference): Likewise.
175 (convert_local_reference): Likewise.
176 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Likewise.
177
178 2004-11-30 Alan Modra <amodra@bigpond.net.au>
179
180 * expr.c (emit_group_load_1): Don't die on const_int orig_src.
181
182 2004-11-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
183
184 PR pch/14940
185 * config/pa/pa-host.c, config/pa/x-hpux, config/pa/x-linux: New files.
186 * config.host (hppa*-*-hpux*, hppa*-*-linux): Define out_host_hook_obj
187 and host_xmake_file using new host configuration files.
188
189 2004-11-29 Roger Sayle <roger@eyesopen.com>
190
191 * reg-stack.c (change_stack): Improve algorithm used to pop regs
192 off the stack to maximize ffreep usage and reduce fxch count.
193
194 2004-11-30 James A. Morrison <phython@gcc.gnu.org>
195
196 PR middle-end/18596
197 * c-decl.c (grokdeclarator): Reset DECL_INTIAL to error_mark_node
198 on errors.
199
200 2004-11-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
201
202 * expr.c (expand_expr_real_1, case NOP_EXPR): Properly handle
203 REDUCE_BIT_FIELD by applying it to result, not input, of conversion.
204
205 2004-11-30 Ben Elliston <bje@au.ibm.com>
206
207 * Makefile.in (REGS_H): Depend on $(BASIC_BLOCK_H).
208
209 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
210
211 PR c/18479
212 * c-common.c (handle_visibility_attribute): When the type decl
213 is really a identifier node, warn about being ignored and return.
214
215 2004-11-29 Richard Henderson <rth@redhat.com>
216
217 * tree-cfg.c (tree_node_can_be_shared): Fix typo'd error_mark_node.
218
219 2004-11-29 Steven Bosscher <stevenb@suse.de>
220
221 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge):
222 Remove CASE_DROPS_THROUGH checks, it is never defined.
223 * cfglyout.c (fixup_reorder_chain): Likewise.
224 * cfgrtl.c (rtl_verify_flow_info): Likewise.
225 * stmt.c (expand_case): Likewise.
226 * cfgbuild.c (make_edges): Likewise. Also remove force_fallthru,
227 it is now always 0.
228 * system.h (CASE_DROPS_THROUGH): Poison.
229 * doc/md.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
230 * doc/tm.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
231
232 * config/v850/v850.h: Remove commented out CASE_DROPS_THROUGH.
233
234 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
235
236 PR middle-end/18725
237 * tree-cfg.c (tree_node_can_be_shared): Error_mark_node can be
238 shared always.
239
240 2004-11-29 Diego Novillo <dnovillo@redhat.com>
241
242 PR tree-optimization/18712
243 * tree-into-ssa.c (insert_phi_nodes_for): Pass argument
244 WORK_STACK by reference.
245 Call VEC_safe_push instead of VEC_quick_push.
246 Update all users.
247
248 2004-11-29 Daniel Jacobowitz <dan@codesourcery.com>
249
250 PR c/7544
251 * Makefile.in (c-lang.o): Update dependencies.
252 * c-lang.c: Include "c-pragma.h".
253 (finish_file): Call maybe_apply_pending_pragma_weaks.
254 * c-pragma.c (maybe_apply_pending_pragma_weaks): New function.
255 * c-pragma.h (maybe_apply_pending_pragma_weaks): New prototype.
256
257 2004-11-29 Richard Henderson <rth@redhat.com>
258
259 PR target/17224
260 * config/ia64/predicates.md (sdata_symbolic_operand): Deny offsets
261 outside the referenced object.
262
263 2004-11-29 Kazu Hirata <kazu@cs.umass.edu>
264
265 * tree-if-conv.c (replace_phi_with_cond_modify_expr): Use
266 EDGE_PRED instead of PHI_ARG_EDGE.
267 * tree-ssa-live.c: Likewise.
268 * tree-ssa-loop-manip.c: Likewise.
269 * tree-ssa.c: Likewise.
270
271 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Speed up by
272 simplifying edge manipulation.
273
274 * cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using
275 EDGE_COUNT.
276
277 * tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
278 only when needed.
279
280 * cfg.c (flow_obstack): Remove.
281 (flow_firstobj): Likewise.
282 (init_flow): Remove all uses of flow_obstack.
283
284 2004-11-29 Alan Modra <amodra@bigpond.net.au>
285
286 * varasm.c (default_elf_select_section_1): Only pass DECL_P decl
287 to named_section.
288
289 2004-11-29 Nathan Sidwell <nathan@codesourcery.com>
290
291 * opts.c (decode_options): Do not set max-inline-insns-rtl.
292 (common_handle_option): Likewise.
293 * params.def (PARAM_MAX_INLINE_INSNS_RTL): Remove.
294 * params.h (MAX_INLINE_INSNS_RTL): Remove.
295 * doc/invoke.texi (max-inline-insns-rtl): Remove.
296
297 2004-11-29 Alan Modra <amodra@bigpond.net.au>
298
299 PR target/9571
300 * varasm.c (default_elf_select_section_1): Pass decl to named_section.
301
302 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
303
304 PR middle-end/18164
305 * gimplify.c (gimplify_asm_expr): If the length of an output operand
306 is zero, do not process it, just let it go through.
307
308 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
309 Diego Novillo <dnovillo@redhat.com>
310
311 PR/18662, also backported from tree-cleanup-branch.
312 * tree-ssa-ccp.c (substitute_and_fold): If replaced anything,
313 always call maybe_clean_eh_stmt and modify_stmt.
314
315 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
316
317 PR/18664
318 * tree-ssa-operands.c (build_ssa_operands, case MODIFY_EXPR):
319 Ignore a VIEW_CONVERT_EXPR on LHS when deciding if must or may def.
320 * tree-ssa-ccp.c (visit_assignment): If LHS is a VIEW_CONVERT_EXPR,
321 add an inverse VIEW_CONVERT_EXPR to const_val.
322
323 PR/18657
324 * tree-nested.c (check_for_nested_with_variably_modified): New.
325 (create_nesting_tree): Call it.
326
327 * tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove
328 special code for assigning to non-pointer.
329 (is_escape_site): If RHS is a conversion between pointer and integer
330 types, this is an escape site.
331
332 * gcse.c (insert_store): Error if try to insert store on abnormal edge.
333 (store_motion): Don't move store if any edge we'd want to move it
334 to is abnormal.
335
336 * expr.c (expand_expr_real_1, case ARRAY_REF): Properly fold with
337 non-zero lower bound.
338
339 * expr.c (categorize_ctor_elements_1, case STRING_CST): New case.
340
341 2004-11-28 Matt Kraai <kraai@alumni.cmu.edu>
342
343 PR diagnostic/17594
344 * opts.c (find_opt): Require that the input match a switch exactly
345 or that the switch take a joined option to be interpreted as a
346 match for another language.
347
348 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
349
350 * timevar.def (TV_TREE_REDPHI): New timevar.
351 * tree-ssa.c (pass_redundant_phi): Use TV_TREE_REDPHI for the tv id.
352
353 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
354
355 PR preprocessor/17651
356 * c-opts.c (sanitize_cpp_opts): Make flag_no_output imply
357 flag_no_line_commands.
358 * c-ppoutput.c (pp_file_change): Remove now-redundant check of
359 flag_no_output.
360
361 2004-11-28 Theodore A. Roth <troth@openavr.org>
362
363 * config/avr/avr.c (avr_handle_fndecl_attribute): Generate a
364 warning if the function name does not begin with "__vector" and the
365 function has either the 'signal' or 'interrupt' attribute.
366
367 2004-11-28 Theodore A. Roth <troth@openavr.org>
368
369 * config/avr/avr.c (avr_mcu_types): Add entries for atmega48,
370 atmega88, atmega168, attiny13, attiny2313, at90can128, atmega165,
371 atmega325, atmega3250, atmega645 and atmega6450.
372 * config/avr/avr.h (LINK_SPEC): Ditto.
373 (LIB_SPEC): Ditto.
374 (LIBGCC_SPEC): Ditto.
375 (CRT_BINUTILS_SPECS): Ditto.
376 * config/avr/t-avr (MULTILIB_MATCHES): Ditto.
377
378 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
379
380 PR preprocessor/17610
381 * testsuite/gcc.dg/cpp/empty-include.c: New testcase.
382
383 2004-11-28 Jeff Law <law@redhat.com>
384
385 * tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
386 (pass_maybe_create_global_var): New.
387 * tree-pass.h (pass_maybe_create_global_var): Declare.
388 * tree-optimize.c (init_tree_optimization_passes): Link in
389 pass_maybe_create_global_var.
390
391 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
392
393 * tree-inline.c (inline_forbidden_p_1, case RECORD_TYPE): Add comment.
394
395 2004-11-28 Ulrich Weigand <uweigand@de.ibm.com>
396
397 PR rtl-optimization/18420
398 * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.
399
400 2004-11-28 Steven Bosscher <stevenb@suse.de>
401 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
402
403 * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define.
404 * config/vax/vax.md (casesi): Emit a test-and-branch to make sure
405 that the case is in range, to make sure the casesi insn is always
406 in range and never falls through.
407 (casesi1): Add comment to explain why casesi never falls through.
408 Remove the unnamed special case casesi pattern.
409
410 2004-11-28 Hans-Peter Nilsson <hp@bitrange.com>
411
412 PR target/18331
413 * config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from
414 "*movdicc_real". Only match reversible comparisons.
415 ("*movdicc_real_nonreversible"): New pattern, split from
416 "*movdicc_real". Match only nonreversible comparisons. Exclude
417 reversed alternatives.
418 ("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"):
419 Similar.
420
421 2004-11-27 Richard Henderson <rth@redhat.com>
422
423 * config/ia64/ia64.md: Move all define_predicate's ...
424 * config/ia64/predicates.md: ... here. New file.
425
426 2004-11-27 Per Bothner <per@bothner.com>
427
428 PR bootstrap/18142
429 Re-applied following, with two modifications: add a URL for the
430 fixed cctools; only exit if $build = $target.
431
432 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
433 * configure.ac (powerpc-*-darwin*): Require assembler to support
434 .machine directive.
435 * configure: Regenerate.
436
437 2004-11-28 David Edelsohn <edelsohn@gnu.org>
438
439 PR target/16800
440 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of
441 EQ, GTU, and LTU costs. Add costs for GT, LT, and UNORDERED.
442 Distinguish between SImode and DImode CONST_INT.
443
444 2004-11-28 Andreas Fischer <a_fisch@gmx.de>
445 Alan Modra <amodra@bigpond.net.au>
446
447 PR target/16343
448 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow
449 functions, strings and thread-local vars.
450
451 2004-11-28 Alan Modra <amodra@bigpond.net.au>
452
453 * config/rs6000/rs6000.h (WORLD_SAVE_P): Define.
454 * config/rs6000/darwin.h (WORLD_SAVE_P): Define.
455 * config/rs6000/rs6000.c (compute_save_world_info): Use WORLD_SAVE_P
456 to allow non-darwin ABIs to optimize away code.
457 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
458
459 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
460
461 * tree.c (operand_equal_for_phi_arg_p): New.
462 * tree.h: Add a prototype for operand_equal_for_phi_arg_p.
463 * tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c:
464 Replace operand_equal_p with operand_for_phi_arg_p
465 appropriately.
466
467 * bb-reorder.c (find_traces_1_round): Speed up by using
468 EDGE_COUNT instead of FOR_EACH_EDGE.
469
470 * fold-const.c, config/i386/linux64.h: Fix comment typos.
471
472 2004-11-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
473
474 PR pch/14940
475 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.
476
477 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
478
479 * config/i386/linux.h: Fix a comment typo.
480 * doc/extend.texi: Fix a typo.
481
482 2004-11-27 Jeff Law <law@redhat.com>
483
484 * tree-cfg.c (cleanup_tree_cfg): Also return true if blocks
485 are merged.
486
487 2004-11-27 Jakub Jelinek <jakub@redhat.com>
488
489 * config/i386/linux64.h (REG_NAME): Define.
490
491 2004-11-27 Jakub Jelinek <jakub@redhat.com>
492
493 * fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
494 unsigned and type signed, build ABS_EXPR with signed_type (ctype)
495 and only afterwards convert to ctype.
496
497 2004-11-27 Richard Sandiford <rsandifo@redhat.com>
498
499 * config/mips/mips-protos.h (function_arg_boundary): Declare.
500 * config/mips/mips.h (PARM_BOUNDARY): Simplify definition.
501 (STACK_BOUNDARY, MIPS_STACK_ALIGN): Likewise.
502 (FUNCTION_ARG_BOUNDARY): Use new function_arg_boundary function.
503 * config/mips/mips.c (function_arg_boundary): New function.
504 Impose a maximum alignment of STACK_BOUNDARY.
505
506 2004-11-27 Jakub Jelinek <jakub@redhat.com>
507
508 PR rtl-optimization/17825
509 * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new)
510 or not.
511
512 2004-11-27 Alan Modra <amodra@bigpond.net.au>
513
514 PR target/12769
515 * config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie
516 from rs6000_default_long_calls for libcalls.
517
518 2004-11-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
519
520 * expmed.c (extract_bit_field): When extracting from non-integer mode,
521 force a SUBREG into a register because we may be taking a further
522 SUBREG of it.
523
524 2004-11-27 Di-an Jan <dianj@freeshell.org>
525
526 * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
527
528 2004-11-26 Robert Millan <robertmh@gnu.org>
529
530 Changes for k*bsd-gnu support.
531 * config/i386/linux.h: Define REG_NAME to allow overriding of
532 register names in sc structure.
533 * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead
534 of sc->reg.
535 * config.gcc: Detect x86_64-k*bsd-gnu systems.
536
537 2004-11-26 Jeff Law <law@redhat.com>
538
539 * tree-ssa.c (verify_flow_sensitive_alias_info): Don't
540 retrieve annotations or pointer info before it's necessary.
541 Reorder tests for early continue of the loop. Manually CSE
542 SSA_NAME_VAR.
543
544 2004-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
545
546 * target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
547 * target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0.
548 (TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC.
549 * dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move
550 to a fixed reg if the source is the Return Address register.
551 Implement new Rule 15.
552 * doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC.
553 * config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to
554 sparc_dwarf_handle_frame_unspec.
555 (gen_save_register_window): New function.
556 (emit_stack_pointer_increment): Rename into gen_stack_pointer_inc.
557 (emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec.
558 (expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement.
559 Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns.
560 (sparc_asm_function_prologue): Do not emit call frame debugging info.
561 (emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement.
562 (sparc_expand_epilogue): Likewise.
563 (sparc_dwarf_handle_frame_unspec): New function.
564 * config/sparc/sparc.md (save_register_window): Remove.
565 (save_register_windowdi): Rewrite modelled on the callframe debug info.
566 (save_register_windowsi): Likewise.
567
568 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
569
570 * config/frv/frv-protos.h: Guard ifcvt functions declarations with
571 BB_HEAD, not BLOCK_HEAD.
572
573 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
574
575 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
576 scratch insns that set a register live at the join point.
577
578 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
579
580 * cse.c, tree-ssa-operands.c: Fix comment typos.
581
582 * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
583
584 2004-11-26 James A. Morrison <phython@gcc.gnu.org>
585
586 PR target/18510
587 * doc/extend.texi (SPARC VIS Built-in Functions): New section.
588
589 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
590
591 * cfgrtl.c (try_redirect_by_replacing_jump): Speed up the
592 check that tests if all edges go to the same destination.
593
594 * bitmap.c (bitmap_find_bit): Speed up by traversing from
595 head->first if that seems profitable.
596
597 2004-11-25 Jeff Law <law@redhat.com>
598
599 * timevar.def (TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI): New timevars.
600 * tree-ssa-loop.c (pass_loop_init): Use TV_TREE_LOOP_INIT.
601 (pass_loop_done): Use TV_TREE_LOOP_FINI.
602
603 2004-11-26 Alan Modra <amodra@bigpond.net.au>
604
605 PR rtl-optimization/16356
606 * config/rs6000/rs6000.md (floatdisf2_internal2): Rewrite with
607 separate output register and one less jump. Enable for powerpc64.
608 (floatdisf2): Adjust for above.
609
610 2004-11-25 Bob Wilson <bob.wilson@acm.org>
611
612 * config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
613 (GCC_DRIVER_HOST_INITIALIZATION): Define.
614
615 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
616
617 PR middle-end/17957
618 * tree-complex.c (vector_inner_type): New variable moved from
619 build_word_mode_vector_type.
620 (vector_last_type): Likewise.
621 (vector_last_nunits): Likewise.
622 (build_word_mode_vector_type): Use the new variables.
623 * Makefile.in (tree-complex.o): Add gt-tree-complex.h $(GGC_H).
624 (GTFILES): Add tree-complex.c.
625 (gt-tree-complex.h): New rule, add it to the rest of the gt-* rules.
626
627 2004-11-25 Bob Wilson <bob.wilson@acm.org>
628
629 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
630 __XTENSA_WINDOWED_ABI__.
631
632 2004-11-25 Richard Henderson <rth@redhat.com>
633
634 * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument. Save
635 args_size adjustments for calls even with cfa as stack pointer.
636 Search calls for stack adjustments after the insn is issued.
637 (dwarf2out_frame_debug): Add after_p argument; pass it on.
638 * dwarf2out.h (dwarf2out_frame_debug): Update to match.
639 * final.c (final_start_function, final_scan_insn): Likewise.
640
641 2004-11-25 Richard Henderson <rth@redhat.com>
642
643 PR c++/6764
644 * reload1.c (set_initial_eh_label_offset): New.
645 (set_initial_label_offsets): Use it.
646
647 2004-11-25 Kaz Kojima <kkojima@gcc.gnu.org>
648
649 * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
650 before calling life_analysis and release them after.
651
652 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
653
654 * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
655 duplicate code.
656
657 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
658
659 * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
660 BITMAP_OBSTACK_ALLOC.
661 (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
662
663 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
664
665 parts of PR rtl-opt/18463, rtl-opt/17647
666 * cse.c (canon_for_address): New function.
667 (find_best_addr): Call canon_for_address before getting the
668 address's cost when checking if we should take that address.
669
670 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
671
672 * tree-phinodes.c (add_phi_arg): Take "tree" instead of
673 "tree *" as the first argument.
674 * tree-flow.h: Update the prototype of add_phi_arg.
675 * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
676 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
677 tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
678 tree-vectorizer.c: Update all call sites of add_phi_arg.
679
680 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
681
682 * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
683 * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
684 (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
685 (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
686
687 2004-11-25 Andrew MacLeod <amacleod@redhat.com>
688
689 PR tree-optimization/18587
690 * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
691 call clobbered caches as invalid.
692 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New. Flag
693 indicating whether the call clobbered operand cache is valid.
694 (ssa_ro_call_cache_valid): New. Flag indicating whether the
695 pure/const call operand cache is valid.
696 (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New. Cached
697 list of operands for cached call virtual operands.
698 (clobbered_aliased_loads, clobbered_aliased_stores,
699 ro_call_aliased_load): New. flags caching whether alias bits are
700 to be set in call stmt's.
701 (fini_ssa_operands): Remove call operand caches if present.
702 (get_expr_operands, get_asm_expr_operands,
703 get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
704 (get_call_expr_operands): Add call clobbered variables first.
705 (add_stmt_operand): Take stmt annotation rather than stmt as a param.
706 (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
707 if it is valid, otherise fill the cache.
708 * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
709 * tree-flow.h (struct var_ann_d): Add in_vuse_list and
710 in_v_may_def_list bits.
711 * tree-ssa-operands.c (cleanup_v_may_defs): New. Clear the
712 in_list bits for the v_may_def elements and empty the operand
713 build array
714 (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
715 VUSES by checking the in_v_may_def_list bit.
716 (append_v_may_def, append_vuse): Use the in_list bit rather than
717 scanning the array for duplicates.
718
719 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
720
721 * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
722 displacements are not short.
723
724 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
725
726 * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
727 to load addresses.
728
729 2004-11-25 Mark Mitchell <mark@codesourcery.com>
730
731 PR c++/18001
732 * c-common.h (lvalue_use): Move here from c-ctypeck.c.
733 (lvalue_or_else): Declare.
734 * c-common.c (lvalue_or_else): Move here from c-typeck.c.
735 * c-typeck.c (lvalue_use): Remove.
736 (lvalue_or_else): Remove.
737
738 PR c++/18556
739 * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
740 unemitted variables with static storage duration.
741
742 2004-11-25 Gerald Pfeifer <gerald@pfeifer.com>
743
744 * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
745 message with \n.
746
747 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
748
749 * config/rs6000/altivec.md (VIshort): New mode macro.
750 (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
751 with ...
752 (altivec_vaddu<VI_char>s): ... this.
753 (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
754 with ...
755 (altivec_vadds<VI_char>s): ... this.
756 (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
757 with ...
758 (altivec_vsubu<VI_char>s): ... this.
759 (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
760 with ...
761 (altivec_vsubs<VI_char>s): ... this.
762 (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
763 with ...
764 (altivec_vavgu<VI_char>): ... this.
765 (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
766 with ...
767 (altivec_vavgs<VI_char>): ... this.
768 (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
769 (altivec_vmsumu<VI_char>m): ... this.
770 (altivec_vmsummbm, altivec_vmsummhm): Replace
771 with ...
772 (altivec_vmsumm<VI_char>m): ... this.
773 (altivec_vandc): Remove.
774 (*andc<mode>3): Renamed to ...
775 (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
776 (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
777 with ...
778 (altivec_vrl<VI_char>): ... this.
779 (altivec_vslb, altivec_vslh, altivec_vslw): Replace
780 with ...
781 (altivec_vsl<VI_char>): ... this.
782 (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
783 with ...
784 (altivec_vsr<VI_char>): ... this.
785 (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
786 with ...
787 (altivec_vsra<VI_char>): ... this.
788 (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
789 (altivec_vsum4s<VI_char>s): ... this.
790 (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
791 with ...
792 (altivec_vperm_<mode>): ... this.
793 (altivec_vsel_4sf): Rename to ...
794 (altivec_vsel_v4sf): ... here.
795 (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
796 with ...
797 (altivec_vsel_<mode>): ... this.
798 (altivec_vsldoi_4si, altivec_vsldoi_8hi,
799 altivec_vsldoi_16qi): Rename to ...
800 (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
801 altivec_vsldoi_v16qi): ... here.
802 (altivec_vsldoi_4sf): Rename to ...
803 (altivec_vsldoi_v4sf): ... here.
804 (altivec_predicate_v4si, altivec_predicate_v8hi,
805 altivec_predicate_v16qi): Replace with ...
806 (altivec_predicate_<mode>): ... this.
807 (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
808 with ...
809 (altivec_lve<VI_char>x): ... this.
810 (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
811 with ...
812 (altivec_stve<VI_char>x): ... this.
813 (absv16qi2, absv8hi2, absv4si2): Replace
814 with ...
815 (abs<mode>2): ... this.
816 (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
817 with ...
818 (altivec_abss_<mode>): ... this.
819 (vec_realign_load_v16qi, vec_realign_load_v8hi,
820 vec_realign_load_v4si): Replace with ...
821 (vec_realign_load_<mode>): ... this.
822 * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
823 insn names.
824 (rs6000_expand_ternop_builtin): Likewise.
825
826 2004-11-25 Andrew Haley <aph@redhat.com>
827
828 * gcc.c (process_command): Don't supply -v to linker.
829
830 2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
831
832 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
833 instead of `%s' in diagnostic.
834
835 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
836
837 * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
838 (FREE_REG_SET): Adjust.
839 * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
840 * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
841 (BITMAP_ALLOC): ... here.
842 (BITMAP_OBSTACK_FREE): Rename to ...
843 (BITMAP_FREE): Don't check for NULL bitmap here.
844 * tree-ssa-pre.c (value_insert_into_set_bitmap,
845 bitmap_set_new): Use new names.
846
847 * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
848 * df.c (df_free): Likewise.
849 * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
850 * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
851
852 * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
853 (ALLOC_REG_SET): ... here.
854 (FREE_REG_SET): Adjust.
855 (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
856 * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
857 * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
858 * cfgrtl.c (rtl_split_block, rtl_split_edge,
859 safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
860 * flow.c (update_life_info, calculate_global_regs_live,
861 allocate_bb_life_data, init_propagate_block_info): Adjust.
862 * global.c (build_insn_chain): Adjust.
863 * ifcvt.c (dead_or_predicable): Adjust.
864 * loop-iv.c (simplify_using_initial_values): Adjust.
865 * recog.c (peephole2_optimize): Adjust.
866 * sched-deps.c (init_deps_global): Adjust.
867
868 2004-11-25 Ralf Corsepius <ralf.corsepius@rtems.org>
869
870 * config.gcc (avr-*-rtems*): Fix typo.
871
872 2004-11-25 J"orn Rennecke <joern.rennecke@st.com>
873
874 * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
875
876 2004-11-24 Jeff Law <law@redhat.com>
877
878 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
879 the number of queries to random elements in the ai->written_vars
880 bitmap.
881
882 2004-11-24 Roger Sayle <roger@eyesopen.com>
883
884 * config/i386/i386.c (override_options): Disable x87 fancy math
885 intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
886
887 2004-11-24 Roger Sayle <roger@eyesopen.com>
888
889 * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
890 system header conflict on AIX 5.2.
891 * configure: Regenerate.
892
893 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
894
895 * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
896 instead of calling phi_arg_from_edge.
897
898 * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
899 with e->dest_idx.
900
901 2004-11-24 Ben Elliston <bje@au.ibm.com>
902
903 * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
904 * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
905 * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
906 Likewise.
907
908 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
909
910 * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
911
912 * tree-inline.c (copy_body_r): Explicitly copy a constant if the
913 type will be remapped.
914
915 2004-11-24 Steven Bosscher <stevenb@suse.de>
916
917 * c-opts.c (c_common_post_options): Don't clear
918 flag_inline_functions.
919 * dojump.c (clear_pending_stack_adjust): Remove check on
920 flag_inline_functions, it's always true.
921 * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
922 that can never trigger.
923 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
924 flag_inline_trees, now that flag_inline_functions is never
925 cleared.
926 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
927 flag_inline_functions at optimization levels greater than
928 or equal to 3. This is already done by default.
929
930 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
931
932 * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
933 instead to find the PHI argument. Do not take I as an
934 argument.
935 (eliminate_phi): Adjust the call to eliminate_build. Do not
936 take I as an argument.
937 (rewrite_trees): Adjust the call to eliminate_phi.
938
939 2004-11-24 Richard Sandiford <rsandifo@redhat.com>
940
941 * optabs.h (force_expand_binop): Declare.
942 * optabs.c (force_expand_binop): Export.
943 * stmt.c (shift_return_value): Delete.
944 (expand_return): Don't call it.
945 * expr.h (shift_return_value): Declare.
946 * calls.c (shift_returned_value): Delete in favor of...
947 (shift_return_value): ...this new function. Leave the caller to check
948 for non-BLKmode values passed in the msb of a register. Take said mode
949 and a shift direction as argument. Operate on the hard function value,
950 not a pseudo.
951 (expand_call): Adjust accordingly.
952 * function.c (expand_function_start): If a non-BLKmode return value
953 is padded at the last significant end of the return register, use the
954 return value's natural mode for the DECL_RESULT, not the mode of the
955 padded register.
956 (expand_function_end): Shift the same sort of return values left by
957 the appropriate amount.
958
959 2004-11-24 Matt Austern <austern@apple.com>
960
961 * recog.c (recog_memoized_1): Remove.
962 * recog.h (recog_memoized_1): Remove declaration.
963 (recog_memoized): Change from macro to inline function.
964
965 2004-11-24 Devang Patel <dpatel@apple.com>
966
967 PR/18555
968 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
969 * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
970
971 2004-11-24 Devang Patel <dpatel@apple.com>
972
973 * gcc.c (process_command): Supply -v to linker.
974
975 2004-11-24 David Edelsohn <edelsohn@gnu.org>
976 Paolo Bonzini <bonzini@gnu.org>
977
978 * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
979 vector modes without ALTIVEC_ABI. Use GCC vector instead of
980 synthetic vector.
981 (rs6000_pass_by_reference): Split conditional into pieces. Use
982 GCC vector instead of synthetic vector.
983
984 2004-11-24 Aldy Hernandez <aldyh@redhat.com>
985
986 * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
987 thread-local variable is invariant.
988
989 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
990
991 * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
992 Handle TYPE_REF_CAN_ALIAS_ALL.
993 (print_declaration): Print array dimensions like dump_generic_node.
994
995 * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
996 ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
997
998 2004-11-24 Nathan Sidwell <nathan@codesourcery.com>
999
1000 * bitmap.c (INLINE): Do not define.
1001 (bitmap_elem_to_freelist, bitmap_element_free,
1002 bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
1003 bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
1004
1005 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
1006
1007 * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
1008 find the index of a PHI argument. Use e->dest_idx instead.
1009 Replace hint with index.
1010
1011 * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
1012 with indx.
1013
1014 2004-11-24 Diego Novillo <dnovillo@redhat.com>
1015
1016 * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
1017 regarding PT_MALLOC.
1018
1019 2004-11-24 Joseph Myers <joseph@codesourcery.com>
1020
1021 * config/i386/i386.c (optimization_options): Use
1022 SUBTARGET_OPTIMIZATION_OPTIONS.
1023 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
1024 (TARGET_SUBTARGET_DEFAULT): Don't include
1025 MASK_OMIT_LEAF_FRAME_POINTER.
1026
1027 2004-11-24 Mark Mitchell <mark@codesourcery.com>
1028
1029 * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
1030 Define to false.
1031
1032 2004-11-24 Joseph Myers <joseph@codesourcery.com>
1033
1034 * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
1035 Use amd64 instead of 64.
1036
1037 2004-11-24 Mark Mitchell <mark@codesourcery.com>
1038 Joseph Myers <joseph@codesourcery.com>
1039
1040 * crtstuff.c (IN_LIBGCC2): Define it.
1041 (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
1042 instead of HAVE_LD_RO_RW_SECTION_MIXING.
1043 * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
1044 * dwarf2out.c (named_section_eh_frame_section): Check
1045 EH_TABLES_CAN_BE_READ_ONLY.
1046 * except.c (default_exception_section): Likewise.
1047 * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
1048 * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
1049
1050 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
1051
1052 * tree-ssa-pre.c (phi_translate): Use find_edge to find the
1053 index of a PHI argument.
1054
1055 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
1056 find_edge to find the index of a PHI argument.
1057
1058 2004-11-24 Steven Bosscher <stevenb@suse.de>
1059
1060 * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
1061 and LABELED_BLOCK_EXPR.
1062 * gimplify.c (gimplify_labeled_block_expr): Remove.
1063 (gimplify_exit_block_expr): Remove.
1064 (gimplify_expr): Don't call them.
1065 * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
1066 and LABELED_BLOCK_EXPR.
1067 (estimate_num_insns_1): Likewise.
1068 (walk_tree): Likewise.
1069 * tree-pretty-print.c (dump_generic_node): Don't handle
1070 EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
1071 * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
1072 (LABELED_BLOCK_EXPR): Likewise.
1073 * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
1074 (LABELED_BLOCK_BODY): Likewise.
1075 (EXIT_BLOCK_LABELED_BLOCK): Likewise.
1076 (EXIT_BLOCK_RETURN): Removed.
1077
1078 2004-11-24 Steven Bosscher <stevenb@suse.de>
1079
1080 * cfgrtl.c (rtl_delete_block): Fix comment.
1081 * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
1082 or BLOCK_END insn notes.
1083 * jump.c (squeeze_notes): Likewise.
1084 * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
1085 EH_REGION_END notes, we never have them to begin with.
1086 * sched-deps.c (sched_analyze_insn): When updating loop notes,
1087 verify that we have indeed only recorded loop notes.
1088 (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
1089 Only record loop notes.
1090
1091 * cfgexpand.c (tree_expand_cfg): Fix comment.
1092
1093 * passes.c (rest_of_compilation): Don't do a second call to
1094 convert_from_eh_region_ranges from here, it's already called
1095 from cfgexpand.c.
1096 * except.c (resolve_fixup_regions): Remove.
1097 (remove_fixup_regions): Remove.
1098 (convert_from_eh_region_ranges_1): Remove.
1099 (convert_from_eh_region_ranges): Remove the case where EH is
1100 not already lowered at the tree level. We always lower there.
1101
1102 2004-11-24 Paolo Bonzini <bonzini@gnu.org>
1103
1104 PR c++/16882
1105 * tree.c (make_vector_type): Move qualifiers to the vector type,
1106 use the inner type's main variant and build a main variant for
1107 the vector type if necessary.
1108 (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
1109
1110 2004-11-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1111
1112 * target.h (late_rtl_prologue_epilogue): Remove.
1113 * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
1114 * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
1115 * passes.c (rest_of_handle_prologue_epilogue): Remove and move
1116 remaining bits to...
1117 (rest_of_handle_flow2): ...here.
1118 (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
1119 * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
1120
1121 2004-11-23 Mark Mitchell <mark@codesourcery.com>
1122
1123 * hwint.h (HOST_LONG_LONG_FORMAT): New macro. Use it throughout.
1124 * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
1125 * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
1126
1127 2004-11-24 Daniel Jacobowitz <dan@codesourcery.com>
1128
1129 * config/i386/i386.c (override_options): Move
1130 SUBTARGET_OVERRIDE_OPTIONS before defaulting
1131 flag_omit_frame_pointer.
1132
1133 2004-11-23 Richard Henderson <rth@redhat.com>
1134
1135 * rtl.h (validate_subreg): Declare.
1136 * emit-rtl.c (validate_subreg): New.
1137 (gen_rtx_SUBREG): Use it.
1138 * simplify-rtx.c (simplify_subreg): Likewise.
1139 (simplify_gen_subreg): Likewise. Remove duplicate asserts.
1140 * expr.c (emit_move_insn_1): Tidy complex move code. Use memory
1141 fallback whenever gen_realpart/gen_imagpart would not be able to
1142 create SUBREGs.
1143
1144 2004-11-23 Richard Henderson <rth@redhat.com>
1145
1146 * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
1147 hard-coding avoiding calls to gen_rtx_SUBREG. Split complex return
1148 modes to CONCAT.
1149
1150 2004-11-23 Diego Novillo <dnovillo@redhat.com>
1151
1152 PR tree-optimization/18618
1153 * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
1154 (insert_phi_nodes_for): Change third argument to VEC(basic_block).
1155 * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
1156 Update all users.
1157 (stmts_to_rescan): Likewise.
1158 (const_and_copies_stack): Likewise.
1159 (nonzero_vars_stack): Likewise.
1160 (vrp_variables_stack): Likewise.
1161
1162 2004-11-23 Richard Henderson <rth@redhat.com>
1163
1164 * cse.c (record_jump_cond_subreg): New.
1165 (record_jump_cond): Use it instead of gen_lowpart.
1166
1167 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
1168 Joseph Myers <joseph@codesourcery.com>
1169
1170 * config/sol2-c.c (solaris_register_pragmas): Use
1171 c_register_pragma_with_expansion.
1172 * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
1173 * c-pragma.c (c_register_pragma): Update call to
1174 cpp_register_pragma.
1175 (c_register_pragma_with_expansion): New function.
1176 (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
1177 * c-pragma.h (c_register_pragma_with_expansion): New prototype.
1178 * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
1179 #pragma align.
1180 * doc/tm.texi (c_register_pragma_with_expansion,
1181 HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
1182
1183 2004-11-23 Richard Henderson <rth@redhat.com>
1184
1185 * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
1186 as mode sizes into local temporaries. Unify failure path.
1187
1188 2004-11-23 Richard Henderson <rth@redhat.com>
1189
1190 * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
1191 * caller-save.c (mark_set_regs): Use subreg_regno instead.
1192 * final.c (alter_subreg): Likewise.
1193 * local-alloc.c (reg_is_born): Likewise.
1194
1195 2004-11-23 Richard Henderson <rth@redhat.com>
1196
1197 * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
1198 instead of using a SUBREG temporary.
1199
1200 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1201
1202 * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
1203 two checks.
1204
1205 2004-11-23 Zack Weinberg <zack@codesourcery.com>
1206
1207 * function.h (struct function): Remove calls_longjmp.
1208 (current_function_calls_longjmp): Delete.
1209 * tree.h (ECF_LONGJMP): Delete.
1210 (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
1211 (ECF_LIBCALL_BLOCK): Everybody slide down one.
1212 (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
1213 * builtins.c (expand_builtin_longjmp): Don't set
1214 current_function_calls_longjmp.
1215 * calls.c (special_function_p): Mark longjmp and siglongjmp
1216 with ECF_NORETURN, not ECF_LONGJMP.
1217 (emit_call_1, expand_call, emit_library_call_value_1):
1218 Don't check for ECF_LONGJMP.
1219 * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
1220 (need_fake_edge_p): Likewise.
1221
1222 * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
1223 * system.h: Poison NON_SAVING_SETJMP.
1224 * function.c (use_register_for_decl)
1225 * gcse.c (compute_hash_table_work, compute_store_table)
1226 * postreload-gcse.c (record_opr_changes)
1227 * reload.c (find_equiv_reg)
1228 * reload1.c (reload)
1229 * config/i386/i386.c (ix86_can_use_return_insn_p):
1230 Remove code conditional on NON_SAVING_SETJMP.
1231 * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
1232
1233 * config/i386/sysv3.h: Delete file.
1234 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
1235
1236 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
1237
1238 * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
1239 the vectorization factor is greater than the iteration count.
1240 (vect_gen_niters_for_prolog_loop): No need to calculate min if the
1241 iteration count is known.
1242
1243 (vect_build_symbol_bound): Removed. Its functionality moved to
1244 vect_generate_tmps_on_preheader.
1245 (vect_generate_tmps_on_preheader): Moved content of
1246 vect_build_symbol_bound here instead of calling it. Changed some
1247 variables names.
1248
1249 (vect_build_loop_niters): We don't expect a new_bb to be generated -
1250 use gcc_assert.
1251 (vect_gen_niters_for_prolog_loop): Likewise.
1252 (vect_gen_niters_for_prolog_loo): Likewise.
1253
1254 (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
1255 (slpeel_add_loop_guard): Likewise.
1256 (slpeel_tree_peel_loop_to_edge): Likewise.
1257 (vect_do_peeling_for_alignment): Likewise.
1258
1259 (vect_get_first_index): Missing space.
1260
1261 2004-11-23 Ulrich Weigand <uweigand@de.ibm.com>
1262
1263 * config/s390/s390.md ("*iordi3"): Mark commutative.
1264 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
1265
1266 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1267
1268 * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
1269 greater than PHI_ARG_CAPACITY.
1270 (reserve_phi_args_for_new_edge): Initialize the new PHI
1271 argument to NULL_TREE. Increment PHI_NUM_ARGS.
1272 (add_phi_arg): Add a PHI argument to the slot given by
1273 E->dest_idx.
1274 (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
1275 * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
1276 * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
1277 argument by looking at PHI_ARG_DEF.
1278 (verify_phi_args): Check for a missing PHI argument. Remove
1279 the check for duplicate PHI arguments.
1280 * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
1281 (phi_arg_d): Remove e.
1282
1283 * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
1284 by restricting to the case with two outgoing edges.
1285
1286 2004-11-23 Andreas Krebbel <krebbel1@de.ibm.com>
1287
1288 * config/s390/s390.c (s390_backchain_string): Removed.
1289 (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
1290 (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
1291 Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
1292 TARGET_KERNEL_BACKCHAIN to reflect the new options.
1293 * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
1294 (TARGET_KERNEL_BACKCHAIN): Removed.
1295 (TARGET_BACKCHAIN): Former triple state option change to a target flag.
1296 (TARGET_PACKED_STACK): New macro.
1297 (TARGET_SWITCHES): New switches added.
1298 (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
1299 removed.
1300 (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
1301 * config/s390/s390.md ("allocate_stack", "restore_stack_block")
1302 ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
1303 the change in target switch semantics.
1304 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
1305 (TARGET_DEFAULT): MASK_BACKCHAIN added.
1306 * doc/invoke.texi: Added documentation for the new/changed options.
1307
1308 2004-11-23 Uros Bizjak <uros@kss-loka.si>
1309
1310 PR rtl-optimization/18614
1311 * simplify-rtx.c (simplify_binary_operation): Do not
1312 simplify inner elements of constant arguments of
1313 VEC_CONCAT insn.
1314
1315 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
1316
1317 * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
1318 0 instead of NULL.
1319
1320 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1321
1322 * tree-phinode.c (make_phi_node): Use a new variable,
1323 capacity, to receive the return value of ideal_phi_node_len.
1324
1325 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
1326
1327 * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
1328 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
1329 __gthread_recursive_mutex_init_function.
1330 (__gthread_key_create): Properly cast -1.
1331 (__gthread_recursive_mutex_init_function): New function.
1332 (__gthread_recursive_mutex_lock): Rewrite.
1333 (__gthread_recursive_mutex_trylock): Likewise.
1334 (__gthread_recursive_mutex_unlock): Likewise.
1335
1336 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1337
1338 * config/c4x/t-rtems: New.
1339 * config.gcc: Reflect having added c4x/t-rtems.
1340
1341 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
1342
1343 PR tree-opt/18403
1344 PR tree-opt/18505
1345 * tree-vectorizer.c (vect_create_data_ref_ptr): Use
1346 lang_hooks.types.type_for_size instead of integer_type_node for the
1347 type of ptr_update.
1348
1349 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1350
1351 * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
1352
1353 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1354
1355 * config/arm/t-rtems: New.
1356 * config.gcc: Reflect having added arm/t-rtems.
1357
1358 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1359
1360 * tree-cfg.c (tree_execute_on_growing_pred): New.
1361 (tree_cfg_hooks): Add tree_execute_on_growing_pred.
1362 * tree-flow.h: Add a prototype for
1363 reserve_phi_args_for_new_edge.
1364 * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
1365 (add_phi_arg): Don't resize a PHI array.
1366
1367 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1368
1369 * config.gcc: Add avr-*-rtems*.
1370 * config/avr/t-rtems: New.
1371 * config/avr/rtems.h: New.
1372
1373 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
1374
1375 * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
1376 always the same as op1. Use bitmap_ior_into and bitmap_and_into.
1377 Add comment to function.
1378
1379 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1380
1381 PR pch/14940
1382 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
1383
1384 PR rtl-optimization/14838
1385 * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
1386 note.
1387 (get_last_nonnote_insn): Don't assume last insn is a note.
1388
1389 2004-11-22 Roger Sayle <roger@eyesopen.com>
1390
1391 * fold-const.c (nondestructive_fold_binary_to_constant): Rename
1392 to fold_binary_to_constant.
1393 (nondestructive_fold_unary_to_constant): Likewise, rename to
1394 fold_unary_to_constant.
1395 (fold_relational_hi_lo): Update call to fold_binary_to_constant.
1396 * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
1397 (nondestructive_fold_unary_to_constant): Likewise.
1398 * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
1399 and fold_binary_to_constant.
1400 * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
1401 (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
1402 and EXEC_UNARY with calls to fold_*nary_to_constant.
1403 * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
1404 (idx_find_step): Replace uses of EXEC_BINARY with calls to
1405 fold_binary_to_constant.
1406
1407 2004-11-22 Nick Clifton <nickc@redhat.com>
1408
1409 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
1410 initialisation of 'e'.
1411
1412 2004-11-22 Roger Sayle <roger@eyesopen.com>
1413
1414 * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
1415 * config/i386/i386.c (override_options): Set MASK_NO_FANCY_MATH_387
1416 automatically for targets without TARGET_80387.
1417 * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
1418 sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
1419 *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
1420 fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
1421 *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
1422 *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
1423 *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
1424 atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
1425 atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
1426 acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
1427 log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
1428 fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
1429 logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
1430 expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
1431 exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
1432 rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
1433 floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
1434 frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
1435 frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
1436 Simplify conditionals using TARGET_USE_FANCY_MATH_387.
1437
1438 2004-11-22 Dale Johannesen <dalej@apple.com>
1439
1440 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Conditionalize
1441 properly and comment.
1442
1443 2004-11-22 James A. Morrison <phython@gcc.gnu.org
1444
1445 * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
1446 (sparc_init_builtins): New function.
1447 (sparc_init_vis_builtins): Create builtin functions for VIS
1448 instructions.
1449 (sparc_expand_builtin): Expand builtin functions for VIS instructions.
1450 (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
1451 (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
1452 (def_builtin): New macro for creating builtin functions.
1453 (P): New mode macro for pointer types.
1454 (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
1455 UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
1456 UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
1457 (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
1458 fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
1459 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
1460 faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
1461
1462 2004-11-22 Devang Patel <dpatel@apple.com>
1463
1464 * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
1465
1466 2004-11-22 Devang Patel <dpatel@apple.com>
1467
1468 * tree-if-conv.c (if_convertable_phi_p): Rename to ...
1469 (if_convertible_phi_p): ... new name.
1470 (if_convertable_modify_expr_p): Rename to ...
1471 (if_convertible_modify_expr_p): ... new name.
1472 (if_convertable_stmt_p): Rename to ...
1473 (if_convertible_stmt_p): ... new name.
1474 (if_convertable_bb_p): Rename to ...
1475 (if_convertible_bb_p): ... new name.
1476 (if_convertable_loop_p): Rename to ...
1477 (if_convertible_loop_p): ... new name.
1478
1479 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1480
1481 PR target/18444
1482 * configure.ac (threading): Accept 'posix95'.
1483 * configure: Regenerate.
1484 * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
1485 include sol26.h and default to posix95 threads if have_pthread_h.
1486 (sparc-*-solaris2*): Likewise.
1487 * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
1488 * gthr-posix95.h: New file.
1489 * config/sol26.h: New file.
1490 * doc/install.texi (--enable-threads): Document 'posix95'.
1491
1492 2004-11-23 Ben Elliston <bje@au.ibm.com>
1493
1494 * pointer-set.h (pointer_set_contains): Remove.
1495 * pointer-set.c (pointer_set_contains): Likewise.
1496
1497 2004-11-22 Dale Johannesen <dalej@apple.com>
1498
1499 * calls.c (expand_call): Do not call preserve_temp_slots.
1500
1501 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
1502
1503 * tree-flow.h: Remove the prototype for remove_phi_arg.
1504 Add a prototype for remove_phi_args.
1505 * tree-phinodes.c (remove_phi_arg): Remove.
1506 (remove_phi_args): New.
1507 * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
1508 of remove_phi_arg.
1509
1510 * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
1511 after making an edge.
1512 (remove_edge): Call execute_on_shrinking_pred before removing
1513 an edge.
1514 (redirect_edge_succ): Call execute_on_growing_pred and
1515 execute_on_shrinking_pred.
1516 * cfghooks.c (execute_on_growing_pred): New.
1517 (execute_on_shrinking_pred): Likewise.
1518 * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
1519 execute_on_shrinking_pred.
1520 Add prototypes for execute_on_growing_pred and
1521 execute_on_shrinking_pred.
1522 * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
1523 execute_on_growing_pred and execute_on_shrinking_pred.
1524 (cfg_layout_rtl_cfg_hook): Likewise.
1525 * tree-cfg.c (tree_cfg_hooks): Likewise.
1526
1527 * tree-cfg.c (tree_execute_on_shrinking_pred): New.
1528 (tree_cfg_hooks): Use it.
1529 * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
1530 (ssa_redirect_edge): Don't call remove_phi_arg_num.
1531
1532 * tree-phinodes.c (remove_phi_arg_num): Make it static.
1533 * tree-flow.h: Remove the corresponding prototype.
1534
1535 * tree-ssa.c (ssa_remove_edge): Remove.
1536 * tree-flow.h: Remove the corresponding prototype.
1537 * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
1538 * basic-block.h: Likewise.
1539 * tree-if-conv.c: Likewise.
1540 * tree-ssa-threadupdate.c: Likewise.
1541
1542 2004-11-23 Ben Elliston <bje@au.ibm.com>
1543
1544 * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
1545 @table to list the BSI methods. Use individual @findex directives
1546 instead of one with a comma-separated list of index entries.
1547
1548 2004-11-22 Zdenek Dvorak <dvorakz@suse.cz>
1549
1550 PR tree-optimization/18529
1551 * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
1552 (simple_operand_p): Use STRIP_NOPS. Consider SSA names simple.
1553 (fold): Call fold_to_nonsharp_ineq_using_bound.
1554 * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
1555 (number_of_iterations_cond): Fold the expressions before futher
1556 processing.
1557 (tree_simplify_using_condition): Handle case when cond or expr is
1558 an EQ_EXPR specially.
1559
1560 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
1561
1562 * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
1563 SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
1564
1565 2004-11-22 David Edelsohn <edelsohn@gnu.org>
1566 Fariborz Jahanian <fjahanian@apple.com>
1567
1568 * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
1569 TARGET_ALTIVEC_ABI.
1570 (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
1571 Align 16 byte and larger vectors like Altivec.
1572 (function_arg_advance): Pass any 16 byte vector like Altivec vector.
1573 (function_arg): Same.
1574 (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
1575
1576 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
1577
1578 PR tree-opt/18572
1579 * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
1580 it.
1581
1582 2004-11-22 Richard Henderson <rth@redhat.com>
1583
1584 * function.c (assign_parm_setup_block): Revert 11-13 change to
1585 forcably re-mode a (possibly BLKmode) hard register.
1586
1587 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1588
1589 * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
1590
1591 2004-11-22 David Edelsohn <edelsohn@gnu.org>
1592
1593 * config/rs6000/power4.md: Remove delay between dispatch and issue
1594 associated with dispatch group slots 3 and 4.
1595 * config/rs6000/power5.md: Same.
1596
1597 2004-11-21 Jeff Law <law@redhat.com>
1598
1599 * cfg.c (cached_make_edge): Use find_edge rather than an inlined
1600 variant.
1601 * cfgbuild.c (make_edges): Likewise.
1602 * cfghooks.c (can_duplicate_block_p): Likewise.
1603 * cfgloop.c (loop_latch_edge): Likewise.
1604 * cfgloopmanip.c (force_single_succ_latches): Likewise.
1605 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1606 * predict.c (predict_loops, propagate_freq): Likewise.
1607 * tracer.c (tail_duplicate): Likewise.
1608 * tree-cfg.c (disband_implicit_edges): Likewise.
1609 (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
1610
1611 2004-11-22 Nick Clifton <nickc@redhat.com>
1612
1613 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
1614 initialisation of 'e'.
1615
1616 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
1617
1618 PR rtl-optimization/18599
1619 * regrename.c (copyprop_hardreg_forward): Speed up by putting
1620 BB_VISITED flags on basic blocks as we process them.
1621
1622 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
1623
1624 PR target/18531
1625 * config/rs6000/altivec.md (VI_char): New mode attribute.
1626 (addv16qi3, addv8hi3, addv4ai3): Replace with ...
1627 (add<mode>3): ... this.
1628 (subv16qi3, subv8hi3, subv4ai3): Replace with ...
1629 (sub<mode>3): ... this.
1630 (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
1631 (smax<mode>3): ... this.
1632 (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
1633 (smin<mode>3): ... this.
1634 (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
1635 (umax<mode>3): ... this.
1636 (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
1637 (umin<mode>3): ... this.
1638 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
1639 (and<mode>3): ... this.
1640 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
1641 (ior<mode>3): ... this.
1642 (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
1643 (xor<mode>3): ... this.
1644 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
1645 (and<mode>3): ... this.
1646 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
1647 (ior<mode>3): ... this.
1648 (altivec_vnor): Replace with ...
1649 (altivec_nor<mode>): ... this.
1650 (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
1651 (one_cmpl<mode>2): ... this.
1652 (altivec_vandc): New expander.
1653 (*andc<mode>3): New insn.
1654 * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
1655
1656 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
1657
1658 PR tree-opt/18536
1659 * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
1660 creating iv instead of integer_type.
1661 (vect_build_loop_niters): Remove redundant code.
1662 (vect_transform_loop_bound): Removed (duplicates functionality of
1663 make_loop_iterate_ntimes.
1664 (vect_gen_niters_for_prolog_loop): Add documentation. Call
1665 lang_hooks.types.type_for_size to create a type of the required size.
1666 Use that type instead of integer_type. Remove redundant code.
1667 (vect_update_niters_after_peeling): Use type of niters instead of
1668 integer_type.
1669 (vect_transform_loop): Unify handling of known and unknown loop bound
1670 cases. Call make_loop_iterate_ntimes instead of
1671 vect_transform_loop_bound.
1672
1673 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
1674
1675 PR target/18217
1676 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
1677 (LIB2ADDEH): Here.
1678
1679 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
1680
1681 PR tree-opt/18544
1682 * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
1683
1684 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1685
1686 * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
1687 m32r*linux.
1688 * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
1689 m32r/libgcc-glibc.ver.
1690 * config/m32r/libgcc-glibc.ver: Add New file.
1691
1692 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
1693
1694 * bitmap.h (struct bitmap_obstack): New obstack type.
1695 (struct bitmap_head_def): Replace using_obstack with obstack
1696 pointer.
1697 (bitmap_default_obstack): New.
1698 (bitmap_initialize): Make inline, does not do allocation.
1699 (bitmap_release_memory): Remove.
1700 (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
1701 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
1702 bitmap_obstack_free, bitmap_malloc_free): Declare.
1703 (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
1704 (BITMAP_FREE): Replace with ...
1705 (BITMAP_OBSTACK_FREE): ... this.
1706 (BITMAP_XFREE): Adjust.
1707 (BITMAP_INIT_ONCE): Remove.
1708 * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
1709 (bitmap_default_obstack): New.
1710 (bitmap_elem_to_freelist): Adjust.
1711 (bitmap_element_allocate): Adjust. Break initialization into ...
1712 (bitmap_obstack_initialize): ... here.
1713 (bitmap_release_memory): Replace with ...
1714 (bitmap_obstack_release): ... this.
1715 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
1716 bitmap_obstack_free, bitmap_malloc_free): New.
1717 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
1718 bitmap_initialize.
1719 (bitmap_initialize): Move to bitmap.h.
1720 * gengtype.c (open_base_files): Add obstack.h to ifiles.
1721 * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
1722 * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
1723 (INITIALIZE_REG_SET): Remove.
1724 (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
1725 (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
1726 (flow_obstack): Do not declare.
1727 (reg_obstack): Declare.
1728 * regs.h: Include obstack.h.
1729 * tree-optimize.c (tree_rest_of_compilation): Initialize and
1730 release bitmap obstack here.
1731 * bb-reorder.c: #include regs, not basic-block.
1732 (fix_crossing_conditional_branches): Allocate regsets from
1733 reg_obstack.
1734 * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
1735 obstack.h.
1736 * caller-save.c: Include regs.h earlier.
1737 * cfg.c: Do not include basic-block.h or obstack.h.
1738 (reg_obstack): Define.
1739 * cfganal.c: Include obstack.h
1740 * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
1741 earlier.
1742 * cfglayout.c: Do not include obstack.h.
1743 (flow_obstack): Remove declaration.
1744 (cfg_layout_duplicate_bb): Use reg_obstack.
1745 * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
1746 * cfgrtl.c (rtl_split_block): Use reg_obstack.
1747 (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
1748 (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
1749 (cfg_layout_split_edge): Use reg_obstack.
1750 * cse.c: Include regs.h earlier.
1751 * ddg.c: Do not include basic-block.h.
1752 * dominance.c: Inlude obstack.h.
1753 * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
1754 (calculate_global_regs_live): Likewise.
1755 (allocate_bb_life_data): Use reg_obstack.
1756 (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
1757 * global.c: Do not include basic-block.h.
1758 (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
1759 * graph.c: Include obstack.h.
1760 * haifa-sched.c: Do not include basic-block.h.
1761 * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
1762 * local-alloc.c: Do not include basic-block.h.
1763 * loop-init.c, loop-invariant.c: Include obstack.h.
1764 * loop-iv.c: Likewise.
1765 (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
1766 adjust.
1767 * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
1768 * modulo-sched.c: Do not include basic-block.h.
1769 * passes.c (rest_of_handle_final): Do not call
1770 regset_release_memory.
1771 * ra-debug.c: Include regs.h earlier. Do not include
1772 basic-block.h.
1773 * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
1774 * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
1775 (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
1776 (regset_release_memory): Remove.
1777 * resource.c: Do not include basic-block.h.
1778 * rtlanal.c: Do not include basic-block.h.
1779 * sbitmap.c: Include obstack.h.
1780 * sched-deps.c: Do not include basic-block.h.
1781 (reg_pending_sets_head, reg_pending_clobbers_head,
1782 reg_pending_uses_head): Remove.
1783 (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
1784 * sched-ebb.c: Do not include basic-block.h.
1785 * sched-rgn.c: Likewise.
1786 * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
1787 BITMAP_XFREE.
1788 * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
1789 * tree-sra.c (decide_instantiations): Adjust bitmap
1790 initialization.
1791 * tree-ssa-dce.c: Include obstack.h.
1792 * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
1793 (value_insert_into_set_bitmap): Remove useless bitmap_clear.
1794 (bitmap_set_new): Likewise.
1795 (init_pre): Initialize bitmap obstack.
1796 (fini_pre): Release bitmap obstack.
1797 * tree-ssanames.c (ssa_names_to_rewrite): Make static.
1798 (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
1799 (mark_for_rewrite, unmark_for_rewrite): Likewise.
1800 (marked_ssa_names): Likewise.
1801 (init_ssanames): Use BITMAP_XMALLOC.
1802 (fini_ssanames): Use BITMAP_XFREE.
1803 * web.c: Include obstack.h
1804
1805 2004-11-22 Nick Clifton <nickc@redhat.com>
1806
1807 * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
1808 predecessor in the first for-loop.
1809
1810 2004-11-21 Stan Shebs <shebs@apple.com>
1811
1812 * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
1813 UNION_TYPE case.
1814 (function_arg): Move darwin test up, sniff mode first for
1815 efficiency, test for union type.
1816
1817 2004-11-21 Dale Johannesen <dalej@apple.com>
1818
1819 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
1820
1821 2004-11-21 Jeff Law <law@redhat.com>
1822
1823 * tree-ssa.c (verify_use): Fix comment.
1824 (verify_phi_args): Check that the number of incoming edges matches
1825 the number of PHI arguments. Check that each PHI argument is
1826 either an SSA_NAME or an invariant. Coalesce tests for PHIs for
1827 dead or duplicated edges. Clear e->aux earlier and avoid separate
1828 loop to clear e->aux and test for missed edges.
1829 (verify_ssa): Remove first walk over statements. Move checking
1830 of PHI args into verify_phi_args. Move checking of statements
1831 with aliased stores and V_MAY_DEFS into the remaining loop over
1832 the statements. Register defs by walking through the formal
1833 SSA_NAME table.
1834
1835 2004-11-21 Roger Sayle <roger@eyesopen.com>
1836
1837 PR middle-end/18520
1838 * dojump.c (compare_from_rtx): Clarify mode argument in function
1839 description. Correct order of mode/cmp_mode arguments in call to
1840 simplify_relational_operation. Check "tem" for COMPARISON_P.
1841
1842 2004-11-21 Paolo Bonzini <bonzini@gnu.org>
1843 David Edelsohn <edelsohn@gnu.org>
1844
1845 PR target/17836
1846 * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
1847 synthetic vectors in memory.
1848 (function_arg_boundary): Align large synthetic vectors.
1849 (rs6000_pass_by_reference): Pass synthetic vectors in memory.
1850
1851 2004-11-21 Jeff Law <law@redhat.com>
1852
1853 * cfg.c (update_bb_profile_for_threading): Do not rescale the
1854 successor probabilities if they are not going to change. Pull
1855 division out of loop if we do need to rescale successor probabilities.
1856
1857 * tree-ssa-threadupdate.c (redirection_data_hash): Use the
1858 index of the destination block for the hash value rather than
1859 hashing a pointer.
1860
1861 2004-11-20 Joseph S. Myers <joseph@codesourcery.com>
1862
1863 * c-typeck.c (build_array_ref): Don't check for index == 0. Make
1864 checks for neither argument being an array or pointer (swapping
1865 the arguments if necessary), the array argument being a pointer to
1866 or array of functions and for -Wchar-subscripts warnings upfront.
1867
1868 2004-11-20 Jeff Law <law@redhat.com>
1869
1870 * regrename.c (copyprop_hardreg_forward): Only search for a
1871 previously processed block if the current block only has one
1872 predecessor.
1873
1874 2004-11-20 Kazu Hirata <kazu@cs.umass.edu>
1875
1876 * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
1877 typos.
1878 * config/arm/arm.c: Follow spelling conventions.
1879
1880 2004-11-20 Richard Earnshaw <rearnsha@arm.com>
1881
1882 * arm.c (arm_override_options): Use arm_ld_sched rather than testing
1883 a bit in tune_flags.
1884 (const_double_needs_minipool): Likewise. Split most of the code out
1885 into ...
1886 (arm_const_double_inline_cost): ... new function here.
1887 * arm-protos.h (arm_const_double_inline_cost): Add prototype.
1888 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
1889 word constants of length 2, 3 and 4 insns respectively.
1890 (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
1891 * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
1892 constraints. Set insn lenghts accordingly.
1893
1894 2004-11-19 Jeff Law <law@redhat.com>
1895
1896 * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
1897 a hash table. Extensive modifications throughout to support
1898 that change.
1899 (struct el): New.
1900 (struct local_info): New.
1901 (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
1902 fields.
1903 (redirection_data): Now a hashtable.
1904 (redirection_data_hash, redirection_data_eq): New.
1905 (lookup_redirection_data, create_duplicates): New.
1906 (create_edge_and_update_destionation_phis): New.
1907 (fixup_template_block, redirect_edges): New.
1908 (thread_block): Use hash table traversals instead of loops over
1909 varray entries or incoming edge vectors.
1910
1911 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1912
1913 * basic-block.h (edge_def): Add dest_idx.
1914 * cfg.c (unchecked_make_edge): Initialize dest_idx.
1915 (remove_edge): Simplify the disconnection of an edge from its
1916 destination.
1917 (redirect_edge_succ): Likewise.
1918 * cfghooks.c (verify_flow_info): Check the consistency of
1919 dest_idx for each edge.
1920
1921 2004-11-19 Aldy Hernandez <aldyh@redhat.com>
1922
1923 * simplify-rtx.c (simplify_ternary_operation): Use
1924 gen_int_mode.
1925
1926 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
1927
1928 * tree-cfg.c (reinstall_phi_args): New.
1929 (tree_split_edge): Use it after redirecting an edge. Don't
1930 modify PHI_ARG_EDGE.
1931
1932 2004-11-19 Andreas Tobler <a.tobler@schweiz.ch>
1933
1934 * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
1935 if checking is enabled.
1936
1937 2004-11-19 Joseph S. Myers <joseph@codesourcery.com>
1938
1939 * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
1940 too many nested scopes.
1941
1942 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1943
1944 PR tree-opt/18181
1945 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
1946 changed to suppoer uses-after-loop and to void creating flow paths
1947 that shouldn't exist.
1948 (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
1949 Modified to fit the new peeling scheme. Avoid quadratic behavior.
1950 (slpeel_add_loop_guard): Takes additional argument.
1951 (slpeel_verify_cfg_after_peeling): New function.
1952 (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
1953 documentation. Use 'exit-bb' instead of creating 'new-bb'.
1954 (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
1955 the new peeling scheme.
1956 (copy_phi_nodes): Function removed. Its functionality moved to
1957 update_phis_for_duplicate_loop.
1958 (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
1959 moved here. Added documentation. Modified to fit the new peeling scheme.
1960 (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
1961 needed - done in slpeel_tree_peel_loop_to_edge.
1962 (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
1963 (vect_do_peeling_for_loop_bound): Add documentation. Call
1964 slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
1965 with additional argument.
1966 (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
1967
1968 (vect_finish_stmt_generation): Avoid 80 column oveflow.
1969
1970 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1971
1972 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
1973 arguments removed.
1974 (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
1975 without last two arguments. Update single_exit of loops.
1976 (vect_update_niters_after_peeling): Removed. Its functionality was
1977 moved to vect_do_peeling_for_alignment.
1978 (vect_do_peeling_for_loop_bound): New name for function previously
1979 called vect_transform_for_unknown_loop_bound.
1980 (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
1981 instead of code that duplicates the same functionality.
1982 (vect_do_peeling_for_alignment): Functionality of
1983 vect_update_niters_after_peeling moved here.
1984 (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
1985 previously named vect_transform_for_unknown_loop_bound - for both known
1986 and unknown loop bound cases.
1987
1988 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
1989
1990 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
1991 previously called verify_loop_for_duplication. All conditions compacted
1992 into one compound condition. Removed debug dumps.
1993 (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
1994 functionality moved to vect_can_advance_ivs_p, and some to
1995 vect_analyze_loop_form.
1996 (vect_can_advance_ivs_p): New function. Contains functionality that was
1997 taken out of vect_analyze_loop_with_symbolic_num_of_iters.
1998 (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
1999 (vect_analyze_operations): Call vect_can_advance_ivs_p and
2000 slpeel_can_duplicate_loop_p.
2001 (vect_get_loop_niters): Added documentation.
2002 (vect_analyze_loop_form): Check the loop entry always - not only in case
2003 of unknown loop bound. Create preheader and exit bb if necessary. Apply
2004 a check that used to take place in
2005 vect_analyze_loop_with_symbolic_num_of_iters.
2006 (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
2007 Remove redundant call to rewrite_into_loop_closed_ssa.
2008 (vect_compute_data_refs_alignment): Removed obsolete comment.
2009
2010 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
2011
2012 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
2013 function previously called tree_duplicate_loop_to_edge.
2014 (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
2015 previously called tree_duplicate_loop_to_edge_cfg.
2016 (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
2017 function name.
2018 (slpeel_update_phi_nodes_for_guard): Likewise.
2019 (slpeel_make_loop_iterate_ntimes): Likewise.
2020 (slpeel_add_loop_guard): Likewise.
2021 (allocate_new_names, free_new_names): Function declaration moved to top
2022 of file.
2023 (rename_use_op, rename_def_op): Likewise.
2024 (rename_variables_in_bb, rename_variables_in_loop): Likewise.
2025 (vect_generate_tmps_on_preheader): Function declaration moved.
2026 (vect_transform_for_unknown_loop_bound): Added missing function
2027 declaration.
2028
2029 2004-11-19 Andrew Pinski <pinskia@physics.uc.edu>
2030
2031 PR tree-opt/18507
2032 * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
2033 Define a VEC(tree_on_heap) for head.
2034 (register_new_def): Change second argument to be a VEC(tree_on_heap).
2035 * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
2036 (tree_ssa_dominator_optimize): Initialize block_defs_stack with
2037 the VEC(tree_on_heap) function. Also free it before returning.
2038 (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
2039 for block_defs_stack.
2040 (restore_currdefs_to_original_value): Use VEC_length instead of
2041 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
2042 (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
2043 for block_defs_stack.
2044 * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
2045 (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
2046 for block_defs_stack.
2047 (ssa_register_new_def): Likewise.
2048 (ssa_rewrite_initialize_block): Likewise.
2049 (rewrite_finalize_block): Use VEC_length instead of
2050 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
2051 (ssa_rewrite_finalize_block): Likewise.
2052 (register_new_def): Change second argument to be a VEC(tree_on_heap).
2053 Use VEC_safe_push instead of VARRAY_PUSH_TREE.
2054 (rewrite_blocks): Initialize block_defs_stack with
2055 the VEC(tree_on_heap) function. Also free it before returning.
2056 (rewrite_ssa_into_ssa): Likewise.
2057
2058 2004-11-19 Fariborz Jahanian <fjahanian@apple.com>
2059
2060 * config/darwin.c (machopic_data_defined_p): return 1 for
2061 MACHOPIC_DEFINED_FUNCTION.
2062
2063 2004-11-19 Jeff Law <law@redhat.com>
2064
2065 * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
2066 arguments.
2067
2068 2004-11-19 Paul Brook <paul@codesourcery.com>
2069
2070 PR target/17735
2071 * varasm.c (default_assemble_integer): Allow pointer-sized values.
2072 Expand comment.
2073
2074 2004-11-19 Nick Clifton <nickc@redhat.com>
2075
2076 * config/stormy16/stormy16.c (combine_bnp): Add code to handle
2077 zero_extension and lshiftrt insns.
2078 Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
2079 where appropriate.
2080 * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
2081 to handle bp and bn insn patterns with a zero_extend rtx
2082 inside them.
2083
2084 2004-11-19 Ian Lance Taylor <ian@wasabisystems.com>
2085
2086 * config/arm/arm.md (generic_sched): Make const.
2087
2088 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
2089
2090 * emit-rtl.c (classify_insn): Make it static.
2091 * rtl.h: Remove the corresponding prototype.
2092
2093 * integrate.c (has_func_hard_reg_initial_val,
2094 get_func_hard_reg_initial_val): Make them static.
2095 * integrate.h: Remove the corresponding prototypes.
2096
2097 2004-11-19 Ben Elliston <bje@au.ibm.com>
2098
2099 * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
2100 (dw2_asm_output_delta_sleb128): Likewise.
2101 * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
2102 (dw2_asm_output_delta_sleb128): Likewise.
2103
2104 2004-11-19 Adam Nemet <anemet@lnxw.com>
2105
2106 * tree-ssa-alias.c: Fix comment.
2107
2108 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
2109
2110 * tree-outof-ssa.c: Fix a comment typo.
2111
2112 2004-11-19 Ben Elliston <bje@au.ibm.com>
2113
2114 * predict.h (predict_insn): Remove extern declaration.
2115 * predict.c (predict_insn): Make static.
2116
2117 2004-11-19 Alan Modra <amodra@bigpond.net.au>
2118
2119 * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
2120
2121 2004-11-18 Nicolas Pitre <nico@cam.org>
2122
2123 * config/arm/arm.c (const_double_needs_minipool): New function to
2124 determine if a CONST_DOUBLE should be pushed to the minipool.
2125 (note_invalid_constants): Use it.
2126
2127 2004-11-18 Paul Brook <paul@codesourcery.com>
2128
2129 * config/arm/arm.c (target_float_switch): New variable..
2130 (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
2131 target_float_switch.
2132 * config/arm/arm.h (target_float_switch): Declare.
2133 (ARM_FLAG_SOFT_FLOAT): Remove.
2134 (TARGET_SWITCHES): Remove hard-float and soft-float.
2135 (TARGET_OPTIONS): Add hard-float and soft-float.
2136 (TARGET_DEFAULT_FLOAT_ABI): Define.
2137 * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
2138 (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
2139 * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
2140 * config/arm/netbsd-elf.h: Ditto.
2141 * config/arm/netbsd.h: Ditto.
2142 * config/arm/pe.h: Ditto.
2143 * config/arm/unknown-elf.h: Ditto.
2144 * config/arm/wince-pe.h: Ditto.
2145 * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
2146 * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
2147 * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
2148
2149 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
2150
2151 * config/rs6000/altivec.md (VI, VF, V): New mode macros.
2152 (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
2153 altivec_lvx_4sf): Rename and replace with ...
2154 (altivec_lvx_<mode>): ... mode macro version.
2155 (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
2156 altivec_stvx_4sf): Rename and replace with ...
2157 (altivec_stvx_<mode>): ... mode macro version.
2158 (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
2159 (mov<mode>): ... mode macro version.
2160 (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
2161 *movv4sf_internal1): Replace with ...
2162 (*mov<mode>_internal): ... mode macro version.
2163 (get_vrsave_internal, *set_vrsave_internal, *save_world,
2164 *restore_world): Unquote output statements.
2165 * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
2166 altivec_expand_st_builtin): Adjust insn names.
2167
2168 2004-11-18 Aldy Hernandez <aldyh@redhat.com>
2169
2170 * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
2171 previous change.
2172 (rs6000_override_options): Likewise.
2173 (spe_build_register_parallel): Handle complex doubles on e500v2.
2174 (rs6000_spe_function_arg): Likewise.
2175 (function_arg): Likewise.
2176 (rs6000_function_value): Likewise.
2177 (rs6000_libcall_value): Likewise.
2178
2179 2004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
2180
2181 * ifcvt.c (find_if_block): Move the check for the number of edges
2182 above the loops checking for complex edges.
2183 Remove the counting of edges as we use EDGE_COUNT now.
2184
2185 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
2186
2187 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
2188 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
2189
2190 2004-11-18 Andreas Schwab <schwab@suse.de>
2191
2192 * config/i386/i386.md (define_peephole2): Revert last change.
2193
2194 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
2195
2196 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
2197 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
2198
2199 2004-11-18 Diego Novillo <dnovillo@redhat.com>
2200
2201 * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
2202 of FOR_EACH_BB.
2203
2204 2004-11-18 Jon Grimm <jgrimm2@us.ibm.com>
2205
2206 * Makefile.in (macro_list): Depend on s-macro_list.
2207 (s-macro_list): New target.
2208
2209 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
2210
2211 PR target/17107
2212 * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
2213 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
2214 (fold_range_test): Adjust.
2215 (fold_truthop): Use it.
2216 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
2217 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
2218
2219 2004-11-18 Uros Bizjak <uros@kss-loka.si>
2220
2221 * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
2222 insn split constraint.
2223 (define_peephole2): Remove unneeded "&& 1" from peephole2
2224 constraints.
2225
2226 2004-11-18 Ben Elliston <bje@au.ibm.com>
2227
2228 * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
2229 element for bsi_prev; use @findex instead.
2230
2231 2004-11-18 Ben Elliston <bje@au.ibm.com>
2232
2233 * opts.h (add_input_filename): Remove extern declaration.
2234 * opts.c (add_input_filename): Make static.
2235
2236 2004-11-17 Mark Mitchell <mark@codesourcery.com>
2237
2238 * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
2239 ATTRIBUTE_UNUSED.
2240
2241 2004-11-17 Zack Weinberg <zack@codesourcery.com>
2242
2243 * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
2244 * system.h: Poison it.
2245 * doc/tm.texi: Delete its documentation.
2246
2247 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
2248 Mark Mitchell <mark@codesourcery.com>
2249
2250 * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
2251 * config/i386/i386.c (i386_solaris_elf_named_section): New
2252 function.
2253 * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
2254 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
2255 64-bit.
2256 (ASM_QUAD): Don't undefine for biarch targets.
2257 * config/i386/t-sol2: Introduce multilib support.
2258
2259 2004-11-18 Ben Elliston <bje@au.ibm.com>
2260
2261 * cgraphunit.c: Replace "it's" with "its" and fix a typo.
2262
2263 2004-11-18 Ben Elliston <bje@au.ibm.com>
2264
2265 * cgraph.h: Replace "it's" with "its" throughout.
2266
2267 2004-11-18 Ben Elliston <bje@au.ibm.com>
2268
2269 * doc/rtl.texi (Flags): Grammar fix.
2270
2271 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
2272
2273 * expmed.c (alg_code): Add alg_unknown.
2274 (alg_hash_entry): New.
2275 (NUM_ALG_HASH_ENTRIES): Likewise.
2276 (alg_hash): Likewise.
2277 (synth_mult): Cache the result into alg_hash.
2278
2279 2004-11-17 Zack Weinberg <zack@codesourcery.com>
2280
2281 * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
2282 config/rs6000/libgcc-ppc64.ver.
2283
2284 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
2285
2286 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
2287 checking if an unconditional return is followed by a barrier.
2288
2289 * jump.c (condjump_p): Remove unreachable code.
2290
2291 * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
2292 tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
2293 tree-ssa-live.h, tree.h: Remove unused prototypes.
2294
2295 2004-11-17 Jeff Law <law@redhat.com>
2296
2297 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
2298 (edge_to_cases_elt): Renamed from edge_to_case_leader.
2299 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
2300 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
2301 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
2302 (get_cases_for_edge): New function.
2303 (start_recording_case_labels, end_recording_case_labels): Similarly.
2304 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
2305 chain equivalent CASE_LABEL_EXPRs together.
2306 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
2307 (make_switch_expr_edges): Do not record edge/cases here.
2308 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
2309 (split_critical_edges): Record cases around the edge splitting code.
2310 (cleanup_dead_labels): Use CASE_LABEL again.
2311 (tree_redirect_edge_and_branch): If we have a mapping from edge
2312 to cases, use it to handle redirections. Else do it the slow way.
2313 * tree.h (CASE_LEADER_OR_LABEL): Kill.
2314 (CASE_LABEL): Revert to just looking at the tree's second operand.
2315 * tree.c (get_case_label): Kill.
2316
2317 2004-11-17 Diego Novillo <dnovillo@redhat.com>
2318
2319 PR tree-optimization/18307
2320 * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
2321 'orig' are the same node.
2322 (collect_points_to_info_r): Do not call merge_pointed_to_info
2323 when the PHI argument is identical to the LHS.
2324
2325 2004-11-17 Steven Bosscher <stevenb@suse.de>
2326
2327 * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
2328 to insert the exit or entry block.
2329 (ssa_prop_init): Use add_control_edge to seed the algorithm.
2330
2331 2004-11-16 Zack Weinberg <zack@codesourcery.com>
2332
2333 * mkmap-flat.awk, mkmap-symver.awk: If the last version
2334 assigned to a symbol was '%exclude', do not emit it anywhere.
2335 If leading_underscore is true, prefix all symbols from the
2336 version scripts with a leading underscore before comparing
2337 them with nm output or emitting them. Remove support for dot
2338 symbols.
2339 * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
2340 (SHLIB_MAPFILES): Use libgcc-std.ver.
2341 (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
2342 (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
2343 * config/sh/t-linux: Use the normal libgcc-std.ver, plus
2344 libgcc-excl.ver and libgcc-glibc.ver.
2345
2346 * config/sh/libgcc-excl.ver: New file.
2347 * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
2348
2349 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
2350
2351 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
2352 the test when the edge has the opposite meaning, not when
2353 the first argument is invariant.
2354
2355 2004-11-16 Aldy Hernandez <aldyh@redhat.com>
2356
2357 * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
2358 doubles.
2359 (rs6000_complex_function_value): Handle e500 v2 variant.
2360
2361 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
2362
2363 Fix PR tree-optimization/18519
2364
2365 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
2366 * tree-pass.h: Add TODO_cleanup_cfg.
2367 * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
2368 (ccp_finalize): Remove call to cleanup_cfg.
2369 * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
2370 (pass_cd_dce): Ditto.
2371 (perform_tree_ssa_dce): Remove call to cleanup_cfg,
2372 dump_function_to_file.
2373 * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
2374 to cleanup_cfg.
2375 (pass_ch): Add TODO_cleanup_cfg.
2376 * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
2377 cleanup_cfg.
2378 (pass_loop_done): Add TODO_cleanup_cfg.
2379 * tree-ssa-phiopt.c (pass_phiopt): Ditto.
2380 (tree_ssa_phiopt): Remove call to cleanup_cfg.
2381
2382 2004-11-16 Devang Patel <dpatel@apple.com>
2383
2384 * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
2385
2386 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
2387
2388 * expmed.c, ra-colorize.c: Fix comment typos.
2389
2390 * doc/tm.texi: Fix typos.
2391
2392 2004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
2393 Mark Mitchell <mark@codesourcery.com>
2394
2395 PR target/6123
2396 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
2397 __pic__ if PIC.
2398
2399 2004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2400
2401 * regmove.c (regmove_optimize): Use lowpart_subreg instead of
2402 gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
2403
2404 2004-11-16 Devang Patel <dpatel@apple.com>
2405
2406 * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
2407
2408 2004-11-16 Eric Christopher <echristo@redhat.com>
2409
2410 * config/mips/mips.c: Use rtl _P predicates.
2411 * config/mips/mips.h: Ditto.
2412 * config/mips/mips.md: Ditto.
2413
2414 2004-11-16 Fariborz Jahanian <fjahanian@apple.com>
2415
2416 * config/rs6000/altivec.md (altivec_vandc): Canonicalize
2417 the pattern.
2418
2419 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
2420
2421 * config/s390/s390.c (s390_cc_modes_compatible): New function.
2422 (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
2423
2424 2004-11-16 Kaz Kojima <kkojima@gcc.gnu.org>
2425
2426 PR target/18447
2427 * config/sh/sh.c (prepare_move_operands): Emit blockage insns
2428 before and after the insns for getting GOT address in non-PIC
2429 TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
2430 is enabled.
2431
2432 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
2433
2434 * gcc/cse.c (struct change_cc_mode_args): New structure.
2435 (cse_change_cc_mode_insn): New function.
2436 (cse_change_cc_mode): Use validate_change to perfom changes.
2437 (cse_change_cc_mode_insns, cse_condition_code_reg):
2438 Call cse_change_cc_mode_insn.
2439
2440 2004-11-16 Steven Bosscher <stevenb@suse.de>
2441
2442 * stack.h: Remove.
2443
2444 2004-11-16 Steven Bosscher <stevenb@suse.de>
2445
2446 * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
2447
2448 2004-11-15 Dale Johannesen <dalej@apple.com>
2449
2450 * tree-flow.h (add_referenced_temp_var): Remove name from prototype.
2451
2452 2004-11-15 Dale Johannesen <dalej@apple.com>
2453
2454 * profile.c (compute_branch_probabilities): Prevent
2455 crash with EH in RTL-based profiling.
2456
2457 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
2458
2459 * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
2460 COND_EXPR_COND.
2461 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
2462 * tree-ssa-dom.c (thread_across_edge): Likewise.
2463 * tree-vectorizer.c (vect_transform_loop_bound): Replace
2464 TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
2465 COND_EXPR_ELSE.
2466
2467 * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
2468 (tree_flow_call_edges_add): Update the call to
2469 bsi_commit_edge_inserts.
2470 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
2471 * profile.c (branch_prob): Likewise.
2472 * tree-mudflap.c (mf_decl_cache_locals): Likewise.
2473 * tree-sra.c (scalarize_function): Likewise.
2474 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
2475 * tree-ssa-pre.c (fini_pre): Likewise.
2476 * tree-flow.h: Update the prototype for
2477 bsi_commit_edge_inserts.
2478
2479 2004-11-15 Eric Christopher <echristo@redhat.com>
2480
2481 * sched-deps.c (set_sched_group_p): Delete.
2482 (delete_all_dependencies): New function.
2483 (fixup_sched_groups): Use. New function.
2484 (sched_analyze_insn): Use.
2485
2486 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
2487
2488 * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
2489 RROTATE_EXPR or unknown code.
2490 * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
2491 LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
2492 UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
2493 or unknown code.
2494
2495 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
2496
2497 PR c/18498
2498 * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
2499 after processing the declarator.
2500
2501 2004-11-15 Aldy Hernandez <aldyh@redhat.com>
2502
2503 * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
2504 vec_duplicate.
2505 (altivec_vspltb): Same.
2506 (altivec_vspltw): Same.
2507 (altivec_vspltisb): Same.
2508 (altivec_vspltish): Same.
2509 (altivec_vspltisw): Same.
2510 (altivec_vspltisw_v4sf): Same.
2511 (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
2512 UNSPEC_VSPLTISH.
2513 Move "End of vector xor's" comment to the right place.
2514
2515 2004-11-15 Steve Ellcey <sje@cup.hp.com>
2516
2517 * config/ia64/ia64.md (*movtf_internal): Use destination_operand
2518 instead of nonimmediate_operand.
2519
2520 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2521
2522 * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
2523 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
2524 * config/sol2.c (solaris_output_init_fini): Update calls to
2525 ASM_OUTPUT_CALL. Include "rtl.h".
2526
2527 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2528
2529 * config/sol2-c.c (cmn_err_char_table): Add "p".
2530
2531 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2532
2533 * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
2534 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
2535
2536 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2537
2538 * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
2539 within the multilib directory.
2540
2541 2004-11-15 Nick Clifton <nickc@redhat.com>
2542
2543 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
2544 builtin assert of cpu=xstormy16.
2545
2546 2004-11-15 Nathan Sidwell <nathan@codesourcery.com>
2547
2548 * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
2549 variable.
2550
2551 2004-11-14 Richard Henderson <rth@redhat.com>
2552
2553 PR 18480
2554 * calls.c (struct arg_data): Add parallel_value.
2555 (precompute_register_parameters): Set it.
2556 (load_register_parameters): Use it.
2557 (store_one_arg): Also set it here.
2558
2559 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
2560
2561 PR tree-optimization/18431
2562 * fold-const.c (associate_trees): Do not produce x + 0.
2563 (fold_widened_comparison, fold_sign_changed_comparison): New functions.
2564 (fold): Use them.
2565 * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
2566 Moved ...
2567 * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
2568 * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
2569
2570 2004-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
2571
2572 * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
2573
2574 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2575
2576 * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
2577 value-prof.c: Fix comment typos.
2578
2579 2004-11-14 Stan Shebs <shebs@apple.com>
2580
2581 Basic ABI changes for passing structs by value in 64-bit Darwin.
2582 * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
2583 (rs6000_override_options): Set it for 64-bit Darwin.
2584 (rs6000_parse_abi_options): Add testing options to change it.
2585 (rs6000_return_in_memory): Test whether the type is one
2586 that can be passed in registers.
2587 (darwin64_function_arg_advance): New.
2588 (function_arg_advance): Call it, plus add recursion depth
2589 argument and test when counting off arguments.
2590 (rs6000_darwin64_function_arg): New.
2591 (function_arg): Call it.
2592 (setup_incoming_varargs): Add argument to function_arg_advance.
2593 (rs6000_darwin64_function_value): New.
2594 (rs6000_function_value): Call it.
2595 * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
2596 * config/rs6000/rs6000-protos.h: Update decl of
2597 function_arg_advance.
2598
2599 2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
2600
2601 PR c/17279
2602 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
2603 support TImode before adding __int128_t and __uint128_t types.
2604
2605 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
2606
2607 PR tree-opt/18400
2608 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
2609 (vect_transform_loop_bound): Set loop->nb_iterations.
2610
2611 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
2612 Andrew Pinski <pinskia@physics.uc.edu>
2613
2614 PR tree-opt/18425
2615 * tree-vectorize.c (vect_build_loop_niters): Do not insert
2616 NULL into the instruction stream. Initialize new_bb to NULL.
2617 (vect_update_ivs_after_vectorizer): Likewise.
2618 (vect_gen_niters_for_prolog_loop): Likewise.
2619
2620 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
2621
2622 PR tree-optimization/18431
2623 * tree-flow.h (stmt_references_memory_p): Declare.
2624 * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
2625 * tree-ssa.c (stmt_references_memory_p): New function.
2626
2627 2004-11-14 Andreas Schwab <schwab@suse.de>
2628
2629 * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
2630 $(EXPR_H).
2631
2632 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2633
2634 * c-common.c (walk_stmt_tree): Remove.
2635 * c-common.h: Remove the corresponding prototype.
2636
2637 * emit-rtl.c (push_to_full_sequence): Remove.
2638 * rtl.h: Remove the corresponding prototype.
2639
2640 * cselib.c, expr.c: Fix comment typos.
2641
2642 2004-11-13 Richard Henderson <rth@redhat.com>
2643
2644 * calls.c (precompute_register_parameters): Force all PARALLELs
2645 into pseudo registers.
2646 (load_register_parameters): Copy PARALLELs into hard registers.
2647 * function.c (assign_parm_setup_block): Copy PARALLELS into
2648 pseudo registers. Do emit_group_store in conversion_insns.
2649 * expr.c (emit_group_load_1): Rename from emit_group_load, take
2650 tmps as an argument. Move final copy loop ...
2651 (emit_group_load): ... here. New function.
2652 (emit_group_load_into_temps, emit_group_move_into_temps): New.
2653 * expr.h: Declare them.
2654
2655 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2656
2657 * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
2658 tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
2659 with PHI_CHAIN where appropriate.
2660
2661 2004-11-13 Dale Johannesen <dalej@apple.com>
2662
2663 * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
2664 (tree_block_label): Ditto.
2665 (flush_pending_stmts): Ditto.
2666 (insert_edge_copies): Ditto.
2667 (expr_invariant_in_loop_p): Ditto.
2668 (TDF_USE_OPS): Parenthesize definition.
2669 (TDF_USE_VOPS): Ditto.
2670
2671 2004-11-13 David Edelsohn <edelsohn@gnu.org>
2672
2673 * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
2674 * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
2675 (atoll): Declare.
2676 * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
2677
2678 2004-11-14 Joseph Myers <joseph@codesourcery.com>
2679
2680 * config/i386/i386.c (override_options): Move loop to set default
2681 tuning to correct place.
2682
2683 2004-11-13 Zak Kipling <zak@transversal.com>
2684
2685 PR target/18300
2686 * config/i386/i386.c (classify_argument): Fix infinite loop when
2687 passing object with 3 or more base classes by value.
2688
2689 2004-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
2690
2691 * doc/md.texi (constraints) <% modifier>: Mention that it is
2692 useless when the two alternatives are strictly identical.
2693
2694 2004-11-13 Richard Henderson <rth@redhat.com>
2695
2696 * expmed.c (extract_split_bit_field): Temporarily disable call to
2697 extract_force_align_mem_bit_field.
2698
2699 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2700
2701 * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
2702 formatting.
2703
2704 * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
2705 lambda-code.c, postreload.c, predict.c, tree-sra.c,
2706 tree-ssa-loop-manip.c, tree.c: Fix comment typos.
2707
2708 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
2709
2710 * doc/install.texi (automake): Correctly document that everything now
2711 will use automake 1.9.3.
2712
2713 2004-11-13 Hans-Peter Nilsson <hp@bitrange.com>
2714
2715 PR target/18347
2716 * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
2717 TImode. Sorry for other non-complex larger-than-64-bit modes.
2718 * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
2719
2720 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
2721
2722 * doc/install.texi (automake): Document that everything now uses 1.9.
2723
2724 2004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
2725
2726 * cse.c (cse_insn): Stores in a libcall sequence can invalidate
2727 previous loads.
2728
2729 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2730
2731 * tree.h: Fix comment typos.
2732
2733 2004-11-13 Steven Bosscher <stevenb@suse.de>
2734
2735 * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
2736 HARD_REGISTER_NUM_P.
2737
2738 * cselib.c (new_cselib_val): Make comment correct and more detailed.
2739 * flow.c (mark_set_1): Likewise.
2740
2741 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
2742 duplicate_eh_regions): Remove.
2743 * except.h (duplicate_eh_regions): Remove prototype.
2744 * integrate.c (get_label_from_map, copy_rtx_and_substitute,
2745 global_const_equiv_varray): Remove.
2746 * integrate.h (get_label_from_map, copy_rtx_and_substitute,
2747 global_const_equiv_varray, set_label_in_map): Remove prototypes,
2748 extern declaration, and #define.
2749 (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
2750 (struct inline_remap): Remove.
2751 * varray.c (struct element): Remove entry for const_equiv_data.
2752 * varray.h (struct const_equiv_data): Remove.
2753 (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
2754 (union varray_data_tag) <const_equiv>: Remove.
2755 (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
2756 VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
2757
2758 * regstack.c (record_label_references): Remove unused function.
2759
2760 * rtl.def (VALUE): Update comment.
2761 (LABEL_REF): Remove unused operand 2.
2762 * rtl.h (struct rtx_def): Update for removed accessor macros.
2763 (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
2764 REG_LOOP_TEST_P): Remove.
2765 (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
2766 * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
2767 * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
2768
2769 2004-11-13 James A. Morrison <phython@gcc.gnu.org>
2770 Eric Botcazou <ebotcazou@libertysurf.fr>
2771
2772 PR target/18230
2773 * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
2774 patterns.
2775 * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
2776 (V32I): New macro for 32-bit modes.
2777 (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
2778 iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
2779 xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
2780 xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
2781 one_cmpldi_sp64): Use V64I instead of DI.
2782 (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
2783 xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
2784 (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
2785 (nandv64i_vis, nandv32i_vis): New patterns.
2786
2787 2004-11-12 Mike Stump <mrs@apple.com>
2788
2789 * Makefile.in: Add html support.
2790 * java/Make-lang.in: Likewise.
2791 * fortran/Make-lang.in: Likewise.
2792 * treelang/Make-lang.in: Likewise.
2793 * doc/install.texi: Likewise.
2794 * doc/makefile.texi: Likewise.
2795 * doc/sourcebuild.texi: Likewise.
2796
2797 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2798
2799 * tree-ssa-loop-manip.c: Fix a comment typo.
2800
2801 2004-11-12 Mike Stump <mrs@apple.com>
2802
2803 * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
2804 renaming this node to Concept Index.
2805 * doc/gccint.texi (Index): Likewise. Also minor formatting tweaks
2806 to more closely match gcc.texi.
2807
2808 2004-11-12 Jeff Law <law@redhat.com>
2809
2810 * tree-cfg.c (hashtab.h): Include.
2811 (struct edge_to_case_leader_elt): New structure.
2812 (edge_to_case_leader): New.
2813 (edge_to_case_leader_hash): New hashtable hasing function.
2814 (edge_to_case_leader_eq): New hashtable equality function.
2815 (record_switch_edge): New function.
2816 (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
2817 (make_switch_expr_edges): Build the edge-to-case-leader
2818 hash table. Tear down the hash table when we're done.
2819 (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
2820 CASE_LABEL.
2821 (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
2822 (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
2823 to use new concept of case leaders to reduce overhead of
2824 redirecting outgoing edges from switch statements.
2825 * tree.c (get_case_label): New function.
2826 * tree.h (CASE_LABEL): Define in terms of get_case_label.
2827 (CASE_LEADER_OR_LABEL): Define.
2828
2829 2004-11-12 Ziemowit Laski <zlaski@apple.com>
2830
2831 * varasm.c (output_addressed_constants): For CONST_DECLs,
2832 output the initializer if present.
2833
2834 2004-11-12 Ziemowit Laski <zlaski@apple.com>
2835
2836 * config/rs6000/darwin.h: Fix confusing typo in comment.
2837
2838 2004-11-12 Devang Patel <dpatel@apple.com>
2839
2840 * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
2841
2842 2004-11-12 Devang Patel <dpatel@apple.com>
2843
2844 * tree-if-conv.c (clean_predicate_lists): Use loop header
2845 and latch directly.
2846
2847 2004-11-12 Richard Henderson <rth@redhat.com>
2848
2849 PR 17778
2850 * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
2851 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2852 (TARGET_96_ROUND_53_LONG_DOUBLE): New.
2853 * config/i386/i386-modes.def (XF): Use it.
2854
2855 2004-11-11 Geoffrey Keating <geoffk@apple.com>
2856
2857 * Makefile.in (macro_list): Use move-if-change to avoid spurious
2858 rebuilds.
2859
2860 2004-11-12 Mark Mitchell <mark@codesourcery.com>
2861
2862 PR c++/18416
2863 * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
2864 when deciding whether to pass a variable to
2865 cgraph_varpool_finalize_decl or assemble_variable.
2866 * toplev.c (check_global_declarations): Do not clear DECL_RTL.
2867
2868 2004-11-12 Kazu Hirata <kazu@cs.umass.edu>
2869
2870 * tree-vectorizer.c: Fix a comment typo.
2871
2872 2004-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
2873
2874 * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
2875
2876 2004-11-12 Diego Novillo <dnovillo@redhat.com>
2877
2878 * tree-scalar-evolution.c (analyzable_condition): Remove
2879 superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
2880
2881 2004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
2882
2883 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
2884 Remove m505/roe multilib variant.
2885
2886 2004-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
2887
2888 * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
2889 to load from the stack.
2890
2891 2004-11-12 Richard Henderson <rth@redhat.com>
2892
2893 * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
2894 (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
2895 * toplev.h (FL2T__): Remove.
2896 (CLZ_HWI): Rename from FL2T_CLZ__.
2897 (CTZ_HWI): New.
2898 (floor_log2): Simplify.
2899 (exact_log2): New.
2900
2901 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
2902
2903 * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
2904 compute the first overlapping iterations.
2905
2906 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
2907
2908 PR middle-end/18005
2909 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
2910 that arguments of EXACT_DIV_EXPR are INTEGER_CST.
2911
2912 2004-11-12 Steven Bosscher <stevenb@suse.de>
2913
2914 PR tree-optimization/18419
2915 * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
2916 pointer set instead of a bitmap.
2917 (walk_use_def_chains): Create, pass and clean up that pointer_set.
2918
2919 * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
2920 field an sbitmap.
2921 (init_alias_info): Allocate and zero it here.
2922 (delete_alias_info): Delete it here.
2923 (collect_points_to_info_for): Use it.
2924
2925 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
2926
2927 * alias.c (record_alias_subset, addr_side_effect_eval):
2928 Make them static.
2929 * alias.h: Remove the prototype for record_alias_subset.
2930 * expr.h: Remove the commented-out prototype for
2931 record_alias_subset.
2932 * rtl.h: Remove the prototype for addr_side_effect_eval.
2933
2934 * cfglayout.c (choose_inner_scope): Make it static.
2935 * rtl.h: Remove the corresponding prototype.
2936
2937 * cfgloopmanip.c (update_single_exits_after_duplication,
2938 unloop): Make them static.
2939 * cfgloop.h: Remove the corresponding prototypes.
2940
2941 * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
2942 Make them static.
2943 * c-tree.h: Remove the corresponding prototypes.
2944
2945 * explow.c (round_push): Make it static.
2946 * expr.h: Remove the corresponding prototype.
2947
2948 * varasm.c (get_named_section_flags, decl_tls_model): Make
2949 them static.
2950 * output.h: Remove the prototype for get_named_section_flags.
2951 * tree.h: Remove the prototype for decl_tls_model.
2952
2953 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
2954
2955 * function.c (expand_function_end): Remove an "if" statement
2956 that always triggers.
2957 * stmt.c (expand_null_return_1): Likewise.
2958
2959 2004-11-11 James E. Wilson <wilson@specifixinc.com>
2960
2961 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
2962 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
2963 CLASS_MAX_NREGS): Likewise.
2964
2965 2004-11-11 Zdenek Dvorak <dvorakz@suse.cz>
2966
2967 PR tree-optimization/17742
2968 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
2969 MINUS_EXPR correctly.
2970
2971 2004-11-11 Sebastian Pop <pop@cri.ensmp.fr>
2972
2973 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
2974 Give up as soon as the evolution is known not computable.
2975
2976 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
2977
2978 PR target/16457
2979 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
2980 mask64_1or2_operand.
2981 (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
2982 to spot rlwinm opportunities.
2983 (and64_2_operand): Use mask_1or2_operand.
2984 * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
2985
2986 2004-11-11 Dorit Naishlos <dorit@il.ibm.com>
2987
2988 * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
2989 (vect_update_ivs_after_vectorizer): Update function documentation.
2990 Avoid quadratic behavior and direct write to PHI_ARG_DEF.
2991
2992 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
2993
2994 * config/arm/arm.c: Fix a comment typo.
2995
2996 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
2997
2998 * bitmap.h (nBITMAP_WORD_BITS): Remove.
2999 (BITMAP_WORD_BITS): Force unsigned by use of 1u.
3000 (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
3001 unnecessary casts.
3002 (bitmap_first_set_bit): Return unsigned, use ctzl.
3003 (bitmap_last_set_bit): Remove.
3004 * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
3005 unsigned.
3006 (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
3007 remove special case code for two word elements.
3008 (bitmap_last_set_bit): Remove.
3009 * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
3010 bitmap_first_set_bit with bitmap_empty_p.
3011 * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
3012 * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
3013 bitmap_last_bit_set.
3014
3015 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
3016
3017 PR target/16796
3018 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
3019
3020 PR target/16458
3021 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
3022 unsigned equality compare when we know the operands are unsigned.
3023
3024 2004-11-10 Peter S. Mazinger <ps.m@gmx.net>
3025
3026 * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
3027 __PIC__ and __pic__ only if TARGET_ABICALLS.
3028 (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
3029 (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
3030 -KPIC only if not -mno-abicalls.
3031
3032 * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
3033 * config/sparc/linux.h, config/sparc/linux64.h
3034 (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
3035
3036 * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
3037 * config/pa/pa/linux.h (CPP_SPEC): Likewise.
3038 * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
3039 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
3040
3041 2004-11-11 Paul Brook <paul@codesourcery.com>
3042
3043 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
3044 register if current_function_uses_pic_offset_table is set.
3045
3046 2004-11-10 David Edelsohn <edelsohn@gnu.org>
3047
3048 * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
3049 Change multi-instruction sequences to new attribute.
3050 * config/rs6000/{40x.md,440.md,603.md,6xx.md,
3051 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
3052 rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
3053
3054 2004-11-10 Daniel Berlin <dberlin@dberlin.org>
3055
3056 * tree-data-ref.c (build_classic_dist_vector): If either loop
3057 is outside of the nest we asked about, the dependence can't
3058 matter.
3059 (build_classic_dir_vector): Ditto.
3060
3061 2004-11-10 Zdenek Dvorak <dvorakz@suse.cz>
3062
3063 * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
3064 right order.
3065 (force_var_cost): Determine cost of addition and multiplication more
3066 precisely.
3067 (get_computation_cost_at): Add cost for computing address elements to
3068 the final cost.
3069
3070 * fold-const.c (fold): Attempt to use ptr_difference_const whenever
3071 one of the arguments of MINUS_EXPR is an address.
3072 (split_address_to_core_and_offset): New function.
3073 (ptr_difference_const): Handle case when one of the operands is a
3074 pointer.
3075 * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
3076 (ptr_difference_cost): Pass addresses instead of objects to
3077 ptr_difference_const.
3078
3079 2004-11-10 Nathan Sidwell <nathan@codesourcery.com>
3080
3081 * tree.c (tree_check_failed): Emit general error if the list of
3082 node types is empty.
3083
3084 2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
3085
3086 * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
3087 argument. When the union is passed in the 6th slot, build a
3088 PARALLEL with only one element.
3089 (function_arg): Adjust call to function_arg_union_value.
3090 (function_value): Likewise.
3091
3092 2004-11-10 Fariborz Jahanian <fjahanian@apple.com>
3093
3094 PR tree-optimization/17892
3095 * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
3096 MINUS_EXPR operator.
3097
3098 2004-11-10 James A. Morrison <phython@gcc.gnu.org>
3099
3100 PR target/18230
3101 config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
3102 (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
3103
3104 2004-11-10 Steven Bosscher <stevenb@suse.de>
3105
3106 * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
3107 (struct basic_block_def): Remove local_set and cond_local_set
3108 fields. Update comment for global_live_at_start.
3109 * flow.c (calculate_global_regs_live): Allocate local_sets and
3110 cond_local_sets here as arrays of bitmaps previously stored in
3111 bb->local_set and bb->cond_local_set. Use xmalloc instead of
3112 obstack allocated bitmaps.
3113
3114 2004-11-09 H.J. Lu <hongjiu.lu@intel.com>
3115
3116 PR target/18380
3117 * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
3118 hidden.
3119
3120 * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
3121
3122 2004-11-09 Jeff Law <law@redhat.com>
3123
3124 * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
3125 argument holding last unvisited block. Start search for
3126 unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
3127 (connect_infinite_loops_to_exit): Supply last unvisited block
3128 to flow_dfs_compute_reverse_execute.
3129
3130 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
3131
3132 * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
3133 doubles.
3134 (floatunssidf2): Same.
3135 (floatsidf2): Same.
3136 ("extendsfdf2"): New expander.
3137 (*extendsfdf2_fpr): Rename.
3138 (*truncdfsf2_fpr): Same.
3139 (*negdf2_fpr): Same.
3140 (*absdf2_fpr): Same.
3141 (*nabsdf2_fpr): Same.
3142 (*adddf3_fpr): Same.
3143 (*subdf3_fpr): Same.
3144 (*muldf3_fpr): Same.
3145 (*divdf3_fpr): Same.
3146
3147 * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
3148 ("spe_fix_truncdfsi2"): Same.
3149 (spe_floatunssidf2): Same.
3150 (spe_floatsidf2): Same.
3151
3152 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
3153
3154 PR c/18322
3155 * c-common.c (fname_decl): Don't use line number of decl in
3156 diagnostic.
3157
3158 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
3159
3160 * config/s390/s390-protos.h (s390_pool_operand): Remove.
3161 * config/s390/s390.c (s390_pool_operand): Likewise.
3162 (s390_extra_constraint_str): Handle 'B' constraints.
3163 * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
3164 * config/s390/s390.md: Document 'B' constraints.
3165 ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
3166 s390_pool_operand to prevent insns with two literal pool
3167 references. Make pattern commutative.
3168 ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
3169 'B' constraint instead of s390_pool_operand.
3170
3171 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3172
3173 * tree-cfg.c (create_bb): Remove unnecessary memset.
3174
3175 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3176
3177 * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
3178 (thread_block): Call flush_pending_stmt instead of
3179 copy_phis_to_block.
3180
3181 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3182
3183 * loop-iv.c (iv_number_of_iterations): Make it static.
3184 * cfgloop.h: Remove the corresponding prototype.
3185
3186 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3187
3188 * function.c (combine_temp_slots, assign_parms,
3189 expand_pending_sizes): Make them static.
3190 * tree.h: Remove the corresponding prototypes.
3191
3192 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3193
3194 * emit-rtl.c (copy_most_rtx): Remove.
3195 * rtl.h: Remove the corresponding prototype.
3196
3197 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3198
3199 * cfgloop.c (flow_loops_update): Remove.
3200 * cfgloop.h: Remove the corresponding prototype.
3201
3202 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3203
3204 * conflict.c (mark_reg, conflict_graph_compute): Remove.
3205 * basic-block.h: Remove the prototype for
3206 conflict_graph_compute.
3207
3208 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3209
3210 * tree-if-conv.c (add_to_dst_predicate_list): Change the
3211 second argument to basic_block.
3212 (tree_if_convert_cond_expr): Update call sites.
3213
3214 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3215
3216 * fold-const.c (pedantic_non_lvalue): Make it static.
3217 * tree.h: Remove the corresponding prototype.
3218
3219 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3220
3221 * optabs.c (prepare_operand): Make it static.
3222 * optabs.h: Remove the corresponding prototype.
3223
3224 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3225
3226 * reload1.c (reloads_conflict, gen_reload): Make them static.
3227 * reload.h: Remove the corresponding prototypes.
3228
3229 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3230
3231 * reload.c (refers_to_mem_for_reload_p,
3232 refers_to_regno_for_reload_p): Make them static.
3233 * reload.h: Remove the corresponding prototypes.
3234
3235 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
3236 Eric Botcazou <ebotcazou@libertysurf.fr>
3237
3238 PR target/18230
3239 * doc/md.texi (SPARC constraints): Document 'Y' constraint.
3240 * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
3241 * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
3242 (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
3243 (fp_zero_operand): Accept MODE_VECTOR_INT modes.
3244 (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
3245 (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
3246 (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
3247 MODE_VECTOR_INT modes.
3248 (sparc_extra_constraint_check): Add new constraint 'Y'.
3249 * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
3250 * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
3251 (V64): New mode macro for 64-bit modes.
3252 (movsf): Use V32 for mode instead of SF.
3253 (movsf_insn_vis): Use V32 for mode instead of SF. Add 'Y' constraint
3254 alongside 'G' constraint.
3255 (movdf): Use V64 for mode instead of DF.
3256 (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
3257 of DF. Add 'Y' constraint alongside 'G' constraint.
3258 (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
3259 instead of DF.
3260
3261 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
3262
3263 * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
3264 integer NEG and ABS.
3265 * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
3266 ("*negdi2_31"): Reimplement using a splitter.
3267 ("*negdi2_cc", "*negdi2_cconly"): New insns.
3268 ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
3269 ("*negsi2_cc", "*negsi2_cconly"): Likewise.
3270 ("*negdf2_cc", "*negdf2_cconly"): Likewise.
3271 ("*negsf2_cc", "*negsf2_cconly"): Likewise.
3272 ("*absdi2_cc", "*absdi2_cconly"): New insns.
3273 ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
3274 ("*abssi2_cc", "*abssi2_cconly"): Likewise.
3275 ("*absdf2_cc", "*absdf2_cconly"): Likewise.
3276 ("*abssf2_cc", "*abssf2_cconly"): Likewise.
3277 ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
3278 ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
3279 ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
3280 ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
3281 ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
3282
3283 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
3284
3285 * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
3286 when eliminating an UNSPEC_CMPINT.
3287 (s390_secondary_input_reload_class): Fix test for CC register reload.
3288 (s390_secondary_output_reload_class): Likewise.
3289 (s390_expand_cmpmem): Swap operands. Use gen_cmpint.
3290 * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
3291 ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
3292 insn patterns with splitters.
3293
3294 2004-11-09 David Edelsohn <edelsohn@gnu.org>
3295
3296 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
3297 * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
3298
3299 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3300
3301 * tree-phinodes.c (phi_reverse): New.
3302 * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
3303 Use it.
3304 * tree-flow.h: Add a prototype for phi_reverse.
3305
3306 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3307
3308 * tree-ssa-loop-ivopts.c: Fix a comment typo.
3309
3310 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
3311
3312 PR pch/14940
3313 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
3314 definitions.
3315
3316 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
3317
3318 * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
3319 instead of "arg" in diagnostics.
3320
3321 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
3322
3323 * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
3324 c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
3325 gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
3326 tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
3327 config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
3328 config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
3329 config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
3330 config/iq2000/iq2000.c, config/m32r/m32r.c,
3331 config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
3332 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
3333 config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
3334 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
3335 config/sh/symbian.c, config/stormy16/stormy16.c,
3336 config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
3337 and %> as appropriate. Use %' as apostrophe in diagnostics where
3338 applicable. Use %< and %> in place of '' quotes where applicable.
3339 Use %qs in place of %<%s%>. Consistently quote __builtin function
3340 names.
3341
3342 2004-11-09 Hans-Peter Nilsson <hp@bitrange.com>
3343
3344 * gdbinit.in (pbb, pbm): New macros.
3345
3346 2004-11-08 Jeff Law <law@redhat.com>
3347
3348 * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
3349 implementing it inline.
3350
3351 * cfganal.c (find_edge): Search pred->succs or succ->preds,
3352 whichever is shorter.
3353
3354 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3355
3356 * passes.c (rest_of_handle_jump): Remove dead code.
3357
3358 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3359
3360 * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
3361 the last used element in the worklist.
3362
3363 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3364
3365 * tree-inline.c (remap_save_expr): Make it static.
3366 * tree-inline.h: Remove the corresponding prototype.
3367
3368 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3369
3370 * tree-ssa-loop-niter.c (upper_bound_in_type,
3371 lower_bound_in_type): Make them static.
3372 * tree.h: Remove the corresponding prototypes.
3373
3374 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3375
3376 * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
3377 static.
3378 * tree-ssa-live.h: Remove the corresponding prototypes.
3379
3380 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3381
3382 * tree-if-conv.c (tree_if_conversion): Make it static.
3383 * tree-flow.h: Remove the corresponding prototype.
3384
3385 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3386
3387 * tree-ssa-operands.c (build_ssa_operands): Make it static.
3388 * tree-flow.h: Remove the corresponding prototype.
3389
3390 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
3391
3392 PR tree-opt/18299
3393 * tree-inline.c (copy_body_r): Change "t = t" to empty
3394 statement instead of "t".
3395
3396 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3397
3398 * modulo-sched.c (create_partial_schedule,
3399 free_partial_schedule, reset_partial_schedule,
3400 ps_add_node_check_conflicts, rotate_partial_schedule): Make
3401 them static.
3402
3403 2004-11-08 Richard Henderson <rth@redhat.com>
3404
3405 * expmed.c (extract_force_align_mem_bit_field): Correct handling at
3406 the end of a page.
3407
3408 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3409
3410 * sched-deps.c (add_insn_mem_dependence): Make it static.
3411 * sched-int.h: Remove the corresponding prototypes.
3412
3413 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3414
3415 * flow.c (allocate_bb_life_data): Make it static.
3416 * basic-block.h: Remove the corresponding prototype.
3417
3418 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3419
3420 * calls.c (split_complex_values, split_complex_types): Make
3421 them static.
3422 * expr.h: Remove the corresponding prototypes.
3423
3424 2004-11-08 Richard Earnshaw <rearnsha@arm.com>
3425
3426 * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
3427 with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
3428
3429 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3430
3431 * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
3432 statements that always trigger.
3433
3434 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3435
3436 * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
3437 tree-scalar-evolution.c, tree-ssa-loop-im.c,
3438 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
3439 tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
3440 appropriate.
3441
3442 2004-11-08 Ben Elliston <bje@au.ibm.com>
3443
3444 * cgraph.h (cgraph_calls_p): Remove.
3445 * cgraph.c (cgraph_calls_p): Likewise.
3446
3447 * varray.h (varray_copy): Remove.
3448 * varray.c (varray_copy): Likewise.
3449
3450 2004-11-07 Andrew Pinski <pinskia@physics.uc.edu>
3451
3452 PR target/18269
3453 * config/darwin.c (machopic_indirect_data_reference):
3454 Call gen_macho_high and gen_macho_low instead of
3455 checking the mode and calling gen_macho_high_di directly.
3456 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
3457 * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
3458 to darwin.md.
3459 (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
3460 load_macho_picbase, macho_low, macho_high): Removed.
3461 (builtin_setjmp_receiver): Call gen_macho_high and
3462 gen_macho_low instead of checking the mode and calling
3463 gen_macho_high_di directly.
3464 * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
3465 (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
3466 Moved from rs6000.md.
3467 (macho_high): New expander.
3468 (macho_high_si): Renamed version of macho_high from rs6000.md.
3469 (macho_low): New expander.
3470 (macho_low_si): Renamed version of macho_low from rs6000.md.
3471 (load_macho_picbase): New expander.
3472 (load_macho_picbase_si): Renamed version of load_macho_picbase
3473 from rs6000.md.
3474 (macho_correct_pic): New expander.
3475 (macho_correct_pic_si): Renamed version of macho_correct_pic
3476 from rs6000.md.
3477
3478 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
3479
3480 * c-decl.c (finish_struct): Use complete sentences for diagnostic
3481 for structures or unions with no members or named members.
3482
3483 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
3484
3485 * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
3486 taking address of bit-field by assertion.
3487
3488 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3489
3490 * config/s390/s390.md (attribute "op_type"): Default to "NN".
3491 (attribute "atype"): Default to "agen".
3492 (attribute "length"): Default to 6.
3493 (define_asm_attibutes): Remove.
3494 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
3495 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
3496 "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
3497 Do not set type attribute to "cs" where already default.
3498 ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
3499 "*negdi2_31"):
3500 Do not set type attribute to "other" where already default.
3501 ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
3502 "*strlendi", "*strlensi",
3503 "*movmem_long_64", "*movmem_long_31",
3504 "*clrmem_long_64", "*clrmem_long_31",
3505 "*cmpmem_long_64", "*cmpmem_long_31",
3506 "*cmpint_si", "*cmpint_di",
3507 "addti3", "*adddi3_31z", "*adddi3_31",
3508 "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
3509 "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
3510 "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
3511 "*pool_entry", "pool_align", "pool_section_start",
3512 "pool_section_end", "main_pool", "reload_base_31", "pool"):
3513 Do not set op_type attribute to "NN" where already default.
3514 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
3515 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
3516 "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
3517 Do not set atype attribute to "agen" where already default.
3518 ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
3519
3520 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
3521
3522 * config/mips/t-iris6 (tp-bit.c): Fix target filename.
3523
3524 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
3525
3526 PR target/16830
3527 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
3528 R3000 and R4000 macros on IRIX.
3529
3530 2004-11-06 Andreas Schwab <schwab@suse.de>
3531
3532 PR target/16286
3533 * config/rs6000/altivec.h: Replace bool by __bool and pixel by
3534 __pixel.
3535
3536 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3537
3538 * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
3539
3540 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3541
3542 * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
3543 matches no insns already matched by other reservations.
3544 * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
3545 matches no insns already matched by other reservations.
3546 ("x_ss"): Remove, replace by ...
3547 ("x_cs"): ... this new reservation. Check type instead of op_type.
3548 Update bypasses to use x_cs instead of x_ss.
3549 ("x_nn"): Remove, replace by ...
3550 ("x_other"): ... this new reservation. Check type instead of op_type.
3551 Add x_other and x_branch to bypasses.
3552 ("x_vs"): New reservation.
3553 * config/s390/s390.md (attribute "type"): Default according to op_type.
3554 ("*execute"): Set type to "cs".
3555
3556 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3557
3558 * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
3559 if we are in GIMPLE.
3560
3561 2004-11-06 Hans-Peter Nilsson <hp@bitrange.com>
3562
3563 PR rtl-optimization/17933
3564 * rtlanal.c (dead_or_set_regno_p): Break out common code to...
3565 (covers_regno_p): New function. Handle SETs of PARALLEL,
3566 and defer the rest to...
3567 (covers_regno_no_parallel_p): New function.
3568
3569 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
3570
3571 * config/sparc/sparc.c (function_arg_record_value_1): Skip
3572 fields with zero length.
3573 (function_arg_record_value_2): Likewise.
3574 (function_arg_record_value_3): Use smallest_mode_for_size
3575 instead of mode_for_size.
3576 (function_arg_union_value): Return naked register for unions
3577 with zero length.
3578
3579 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
3580
3581 * config/sparc/sparc.c (scan_record_type): Handle vector types.
3582 (function_arg_slotno): Handle vector types specially.
3583 (function_arg_record_value_1): Split fields with vector type and
3584 BLKmode into their subparts.
3585 (function_arg_record_value_2): Likewise. Be prepared to handle
3586 more than 2 registers per field.
3587 (function_arg_union_value): Increment regno inside the loop.
3588 (function_arg_vector_value): New function.
3589 (function_arg): Use it to split fields with vector type and
3590 BLKmode into their subparts and build a PARALLEL. Treat
3591 other vector types like floats.
3592 (function_value): Likewise.
3593 (sparc_pass_by_reference): Handle vector types.
3594 (sparc_return_in_memory): Likewise.
3595
3596 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3597
3598 * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
3599 statement that never triggers.
3600
3601 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3602
3603 * config/s390/2064.md ("z_o2", "z_o3"): Remove.
3604 * config/s390/2084.md ("x_o2", "x_o3"): Remove.
3605 ("x_fdivd"): Use also for fsqrtd type.
3606 ("x_fdivs"): Use also for fsqrts type.
3607 * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
3608 ("fix_truncdfsi2_ieee"): Set type to "ftoi".
3609 ("fix_truncdfsi2_ibm"): Set type to "other".
3610 ("floatdidf2", "floatdisf2"): Do not clobber CC.
3611 ("floatsidf2", "floatsidf2_ieee"): Likewise.
3612 ("floatsisf2", "floatsisf2_ieee"): Likewise.
3613 ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
3614 ("truncdfsf2_ibm"): Only allow "nonimmediate_operand". Use LER
3615 instead of LRER.
3616 ("extendsfdf2_ibm"): Do not set atype. Set type to "floads".
3617 ("sqrtdf2"): Set type to "fsqrtd".
3618 ("sqrtsf2"): Set type to "fsqrts".
3619
3620 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3621
3622 * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
3623 pointer to the last PHI node in the new PHI chain.
3624
3625 2004-11-06 Kaz Kojima <kkojima@gcc.gnu.org>
3626
3627 * config/sh/sh.c (prepare_move_operands): Emit a use of r12
3628 for non-PIC TLS_MODEL_INITIAL_EXEC case.
3629
3630 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3631
3632 * expmed.c: Fix a comment typo.
3633
3634 2004-11-06 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3635
3636 PR target/18106
3637 * config/i386/cygming.h
3638 [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
3639
3640 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3641
3642 * config/sh/sh4a.md: Fix copyright.
3643
3644 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3645
3646 * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
3647 with GCC.
3648
3649 2004-11-05 David Edelsohn <edelsohn@gnu.org>
3650
3651 * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
3652 when carry not used. Suggested by Torbjorn Granlund.
3653
3654 * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
3655 operand[1] unnecessarily. Suggested by Eric Christopher.
3656 (rs6000_adjust_cost): Increase latency of store to wider load.
3657 (rs6000_rtx_costs): mulli only allows 16-bit constants.
3658
3659 2004-11-05 Stan Shebs <shebs@apple.com>
3660
3661 * config/rs6000/rs6000.c (machopic_output_stub): Output
3662 ldu instead of lwzu for 64-bit stubs.
3663
3664 2004-11-05 Richard Henderson <rth@redhat.com>
3665
3666 * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
3667 size 2 with BWX.
3668 (alpha_expand_unaligned_store): Likewise.
3669
3670 2004-11-05 Richard Henderson <rth@redhat.com>
3671
3672 * expmed.c (extract_force_align_mem_bit_field): New.
3673 (extract_split_bit_field): Call it.
3674
3675 2004-11-05 Richard Henderson <rth@redhat.com>
3676
3677 * ia64.md (UNSPEC_SHRP): New.
3678 (dshift_count_operand): New.
3679 (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
3680 * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
3681
3682 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
3683
3684 * c-typeck.c (output_init_element): Return early if value is
3685 error_mark_node.
3686
3687 2004-11-05 James E Wilson <wilson@specifixinc.com>
3688
3689 * invoke.texi (-fno-guess-branch-probability): Rewrite.
3690
3691 * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
3692 1 to UNSPEC_GR_SPILL.
3693
3694 2004-11-05 Andreas Krebbel <krebbel1@de.ibm.com>
3695
3696 * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
3697 (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
3698
3699 2004-11-05 Nathan Sidwell <nathan@codesourcery.com>
3700
3701 * bitmap.h (enum bitmap_bits): Remove.
3702 (bitmap_operation): Remove.
3703 (bitmap_and, bitmap_and_into, bitmap_and_compl,
3704 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
3705 bitmap_xor_into): Prototype.
3706 * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
3707 (bitmap_operation): Remove.
3708 (bitmap_and, bitmap_and_into, bitmap_and_compl,
3709 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
3710 bitmap_xor_into): New.
3711 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
3712
3713 PR tree-optimization/18307
3714 * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
3715 and ORIG being the same node.
3716
3717 2004-11-04 Geoffrey Keating <geoffk@apple.com>
3718
3719 * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
3720 (install-mkheaders): Install the version built for the
3721 host, not for the build machine.
3722 * configure.ac: Always run fixincludes.
3723 (all_outputs): Remove mkheaders.
3724 * configure: Regenerate.
3725 * fixinc.in: Move to fixincludes/.
3726 * mkfixinc.sh: Likewise.
3727 * mkheaders.in: Likewise.
3728 * README-fixinc: Likewise.
3729
3730 2004-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3731
3732 PR target/18263
3733 * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
3734 equivalent on the A4.
3735
3736 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
3737
3738 * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
3739 doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
3740 doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
3741 doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
3742 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
3743 doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
3744 doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
3745 doc/trouble.texi: Correct end-of-sentence markup and markup of
3746 "etc.", "e.g." and "i.e.". Use @code in various places where
3747 appropriate.
3748
3749 2004-11-05 Joseph S. Myers <joseph@codesourcery.com>
3750
3751 * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
3752 doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
3753 doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
3754 whitespace.
3755
3756 2004-11-04 Mark Mitchell <mark@codesourcery.com>
3757
3758 * config/arm/arm.c (arm_handle_notshared_attribute): New function.
3759 * doc/extend.texi: Document "notshared" attribute.
3760
3761 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3762
3763 * tree-phinodes.c (make_phi_node): Make it static.
3764 * tree.h: Remove the prototypes for make_phi_node.
3765
3766 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3767
3768 * stmt.c (expand_asm, expand_asm_operands): Make them static.
3769 * tree.h: Remove the prototypes for expand_asm and
3770 expand_asm_operands.
3771
3772 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3773
3774 * passes.c (rest_of_compilation): Make it static.
3775 * toplev.h: Remove the prototype for rest_of_compilation.
3776
3777 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3778
3779 * jump.c (cleanup_barriers): Use delete_insn instead of
3780 delete_barrier.
3781 (delete_barrier): Remove.
3782 * rtl.h: Remove the corresponding prototype.
3783
3784 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3785
3786 * expr.c (mostly_zero_p): Make it static.
3787 * tree.h: Remove the prototype for mostly_zeros_p.
3788
3789 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3790
3791 * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
3792
3793 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3794
3795 * builtins.c (expand_builtin_return_addr,
3796 expand_builtin_longjmp, expand_builtin_trap): Make them static.
3797 * expr.h: Remove the prototypes for expand_builtin_longjmp and
3798 expand_builtin_trap.
3799 * tree.h: Remove the prototype for expand_builtin_return_addr.
3800
3801 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3802
3803 * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
3804 * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
3805 with VAL being NULL.
3806
3807 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3808
3809 * cfghooks.c (delete_basic_block): Remove code to truncate
3810 edge vectors.
3811
3812 2004-11-04 Andrew Pinski <pinskia@physics.uc.edu>
3813
3814 * flow.c (init_propagate_block_info): Change the type of i to
3815 unsigned.
3816
3817 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
3818
3819 PR tree-optimization/18184
3820 * c-typeck.c (comptypes): Do not treat pointers of different
3821 modes or alias-all flags as equivalent.
3822 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
3823
3824 2004-11-04 Joseph S. Myers <joseph@codesourcery.com>
3825
3826 * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
3827 reference specific C parser files in examples.
3828
3829 2004-11-04 Richard Sandiford <rsandifo@redhat.com>
3830
3831 PR target/15342
3832 * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
3833 as OP_INOUT if the instruction is predicated.
3834
3835 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3836
3837 * bitmap.h: Fix a comment typo. Follow spelling conventions.
3838 * tree-vectorizer.c: Fix a comment typo.
3839
3840 2004-11-04 Kazu Hirata <kazu@cs.umass.edu>
3841
3842 * sdbout.c (SDB_GENERATE_FAKE): Remove.
3843 (gen_fake_label): Don't use SDB_GENERATE_FAKE.
3844 * system.h: Poison SDB_GENERATE_FAKE.
3845 * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
3846
3847 2004-11-04 Ulrich Weigand <uweigand@de.ibm.com>
3848
3849 * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
3850
3851 2004-11-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3852
3853 PR other/18277
3854 * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
3855 2004-10-29 patch
3856
3857 2004-11-04 Nathan Sidwell <nathan@codesourcery.com>
3858
3859 * predict.c (propagate_freq): Make bitno unsigned. Move
3860 npredecessors update out of loop.
3861
3862 * bitmap.h (bitmap_iterator): Remove word_bit and bit
3863 fields. Rename others.
3864 (bmp_iter_common_next_1, bmp_iter_single_next_1,
3865 bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
3866 bmp_iter_and_not_next_1, bmp_iter_and_not_init,
3867 bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
3868 bmp_iter_and_next): Remove.
3869 (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
3870 bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
3871 New.
3872 (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
3873 EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
3874
3875 * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
3876 * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
3877 bitmap_and_into, bitmap_ior_into as appropriate.
3878 * except.c (remove_eh_handler): Likewise.
3879 * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
3880 * tree-dfa.c (mark_new_vars_to_rename): Likewise.
3881 * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
3882 * tree-ssa-live.h (live_merge_and_clear): Likewise.
3883 * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
3884 Likewise.
3885
3886 * bitmap.c (bitmap_print): Make bitno unsigned.
3887 * bt-load.c (clear_btr_from_live_range,
3888 btr_def_live_range): Likewise.
3889 * caller-save.c (save_call_clobbered_regs): Likewise.
3890 * cfganal.c (compute_dominance_frontiers_1): Likewise.
3891 * cfgcleanup.c (thread_jump): Likewise.
3892 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
3893 * conflict.c (conflict_graph_compute): Likewise.
3894 * ddg.c (add_deps_for_use): Likewise.
3895 * df.c (df_refs_update): Likewise.
3896 * except.c (remove_eh_handler): Likewise.
3897 * flow.c (verify_local_live_at_start, update_life_info,
3898 initialize_uninitialized_subregs, propagate_one_insn,
3899 free_propagate_block_info, propagate_block, find_use_as_address,
3900 reg_set_to_hard_reg_set): Likewise.
3901 * gcse.c (clear_modify_mem_tables): Likewise.
3902 * global.c (global_conflicts, build_insn_chain): Likewise.
3903 * ifcvt.c (dead_or_predicable): Likewise.
3904 * local-alloc.c (update_equiv_regs): Likewise.
3905 * loop.c (load_mems): Likewise.
3906 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
3907 Likewise.
3908 * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
3909 Likewise.
3910 * reload1.c (order_regs_for_reload, finish_spills): Likewise.
3911 * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
3912 * sched-rgn.c (propagate_deps
3913 * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
3914 * tree-dfa.c (dump_dfa_stats
3915 tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
3916 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
3917 Likewise.
3918 * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
3919 free_temp_expr_table, find_replaceable_exprs): Likewise.
3920 * tree-sra.c (scan_function, scalarize_parms): Likewise.
3921 * tree-ssa-alias.c (init_alias_info,
3922 compute_points_to_and_addr_escape,
3923 compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
3924 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
3925 * tree-ssa-live.c (new_tree_live_info, live_worklist,
3926 calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
3927 sort_coalesce_list, build_tree_conflict_graph, dump_live_info
3928 tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
3929 tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
3930 add_call_read_ops): Likewise.
3931 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
3932 * tree-ssa-live.h (num_var_partitions): Return unsigned.
3933
3934 2004-11-03 Dorit Naishlos <dorit@il.ibm.com>
3935
3936 PR tree-optimization/18009
3937 * tree-vectorizer.h (enum dr_alignment_support): New type.
3938 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
3939 (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
3940 single data_reference (instead of a varray of references).
3941 * tree-vectorizer.c (new_loop_vec_info): Likewise.
3942 (vect_gen_niters_for_prolog_loop): Likewise.
3943 (vect_update_inits_of_drs): Likewise.
3944
3945 (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
3946 vect_enhance_data_refs_alignment.
3947 (vect_do_peeling_for_alignment): Likewise.
3948 (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
3949 this functionality used to be in vect_analyze_data_refs_alignment.
3950 Also update DR_MISALIGNMENT due to peeling; this functionality used to
3951 be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
3952 (vect_analyze_data_refs_alignment): Decision on whether and by how much
3953 to peel moved to vect_enhance_data_refs_alignment. Call
3954 vect_supportable_dr_alignment.
3955
3956 (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
3957 (vect_compute_data_refs_alignment): Return bool. Consider return value
3958 of vect_compute_data_ref_alignment and return true/false accordingly.
3959 (vect_enhance_data_refs_alignment): Consider return value of
3960 vect_compute_data_refs_alignment and return true/false accordingly.
3961
3962 (vect_supportable_dr_alignment): New function.
3963 (vectorizable_store): Call vect_supportable_dr_alignment.
3964 (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
3965 support checks moved from here to vect_supportable_dr_alignment.
3966
3967 (vect_transform_loop): Avoid 80 columns overflow.
3968
3969 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
3970
3971 * timevar.c (timevar_enable): Change from
3972 static.
3973 (timevar_push): Rename to ...
3974 (timevar_push_1): this and remove the
3975 enabled check.
3976 (timevar_pop): Rename to ...
3977 (timevar_pop_1): this and remove the
3978 enabled check.
3979 * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
3980 (timevar_pop): New macro.
3981 (timevar_push): New macro.
3982 (timevar_enable): Declare.
3983
3984 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
3985
3986 * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
3987 libgcc for shared libraries.
3988
3989 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
3990
3991 * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
3992 * config/s390/s390.c (s390_split_access_reg): New function.
3993 (regclass_map): Add access registers.
3994 (get_thread_pointer): Use access register instead of UNSPEC_TP.
3995 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
3996 (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
3997 (TP_REGNUM): New define.
3998 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
3999 REG_ALLOC_ORDER): Add access registers.
4000 (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
4001 CANNOT_CHANGE_MODE_CLASS): Support access registers.
4002 (enum reg_class): Add ACCESS_REGS.
4003 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
4004 (REG_CLASS_FROM_LETTER): Add 't' constraint.
4005 (REGISTER_NAMES): Add access registers.
4006 * config/s390/s390.md (UNSPEC_TP): Remove.
4007 ("*movdi_64"): Add access register alternatives. Provide splitters
4008 to split DImode access register <-> GPR moves into SImode moves.
4009 ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
4010 ("movstrictsi"): Likewise.
4011 ("get_tp_64", "get_tp_31"): Reimplement using access registers.
4012 ("set_tp_64", "set_tp_31"): Likewise.
4013 ("*set_tp"): New insn.
4014
4015 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
4016
4017 * tree-phinodes.c (resize_phi_node): Copy only a portion of
4018 the PHI node currently in use.
4019
4020 2004-11-03 Andrew Pinski <pinskia@physics.uc.edu>
4021
4022 PR tree-opt/18231
4023 * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
4024 also.
4025
4026 2004-11-03 Andrew MacLeod <amacleod@redhat.com>
4027
4028 PR tree-optimization/18270
4029 * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
4030 abnormal edges, commit all pending stmts on incoming edges.
4031
4032 2004-11-03 Ulrich Weigand <uweigand@de.ibm.com>
4033
4034 * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
4035 cause extra costs. Generate canonical RTL.
4036
4037 2004-11-02 Daniel Berlin <dberlin@dberlin.org>
4038
4039 * lambda-code.c (lambda_compute_auxillary_space): Update comments.
4040 (lambda_compute_target_space). Ditto.
4041 * lambda.h (lambda_trans_matrix): Ditto.
4042 (lambda_linear_expression): Ditto.
4043 (lambda_body_vector): Ditto.
4044 (lambda_loopnest): Ditto.
4045 * tree-loop-linear.c (gather_interchange_stats): Combine tests,
4046 update comments, and remove pointless addition of 0.
4047 (linear_transform_loops): Update comments.
4048
4049 2004-11-03 Sebastian Pop <pop@cri.ensmp.fr>
4050
4051 * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
4052 CEIL_MOD_EXPR.
4053
4054 2004-11-03 Jeff Law <law@redhat.com>
4055
4056 * predict.c (struct block_info_def): Kill "tovisit" field.
4057 (propagate_freq): Accept new "tovisit" parameter. Change
4058 read/write access methods for "tovisit" to check the "tovisit"
4059 bitmap instead of a bit in block_info_def.
4060 (estimate_loops_at_level): Allocate "tovisit" bitmap. Pass
4061 it to propagate_freq.
4062
4063 * stmt.c (expand_case): Speed up code to detect duplicate case
4064 label targets and count unique case label targets.
4065
4066 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
4067
4068 * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
4069
4070 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
4071
4072 * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
4073
4074 2004-11-03 Kazu Hirata <kazu@cs.umass.edu>
4075
4076 * tree-cfg.c (find_taken_edge): Abort if we are given a
4077 statement that is neither COND_EXPR nor SWITCH_EXPR.
4078
4079 2004-11-02 Zdenek Dvorak <dvorakz@suse.cz>
4080
4081 * fold-const.c (fold): Reassociate also (x - mult) + mult and
4082 (mult - x) + mult. Cast operands of expression after applying
4083 distributive law to the correct types. Apply distributive law
4084 to a * c - b * c for all non-float types.
4085
4086 2004-11-02 Geoffrey Keating <geoffk@apple.com>
4087
4088 * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
4089 because we don't want to run them now; instead, set them to
4090 stmp-install-fixproto or stmp-install-fixinc.
4091 * Makefile.in (stmp-install-fixproto): New.
4092 (stmp-install-fixinc): New.
4093 * configure: Regenerate.
4094
4095 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
4096
4097 * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
4098 of bitmap_xor.
4099
4100 2004-11-02 Ziemowit Laski <zlaski@apple.com>
4101
4102 * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
4103 (c_types_compatible_p): Move function definition...
4104 * c-objc-common.c (c_types_compatible_p): ...here.
4105 * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
4106 c-lang.c.
4107
4108 2004-11-02 Steven Bosscher <stevenb@suse.de>
4109
4110 * cfgloop.h (struct loop): Update comment.
4111 * cse.c (cse_main): Remove obsolete comment.
4112
4113 * expr.h (gen_cond_trap): Move prototype under functions provided
4114 by optabs.c.
4115 (canonicalize_condition, get_condition): Move to...
4116 * rtl.h (canonicalize_condition, get_condition): ...here.
4117 (branch_target_load_optimize): Add comment that this function is
4118 in bt-load.c.
4119 * loop.c (canonicalize_condition, get_condition): Move to...
4120 * rtlanal.c (canonicalize_condition, get_condition): ...here.
4121 * sched-deps.c (get_condition): Rename to sched_get_condition.
4122 (add_dependence): Update this caller.
4123
4124 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
4125
4126 PR tree-opt/16808
4127 * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
4128 that the vops get marked for renaming.
4129
4130 2004-11-02 Andreas Krebbel <krebbel1@de.ibm.com>
4131
4132 * config/s390/s390.md ("movcc"): Set type attribute.
4133
4134 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
4135
4136 * tree-phinodes.c (add_phi_arg): Add an assertion that the
4137 edge already exists.
4138
4139 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
4140
4141 * tree-phinodes.c (remove_phi_arg_num): Do not zero the
4142 element that's being removed.
4143
4144 2004-11-02 Kazu Hirata <kazu@cs.umass.edu>
4145
4146 * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
4147 arguments using PENDING_STMT.
4148 (thread_block): Call copy_phis_to_block after redirecting an
4149 edge.
4150
4151 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
4152
4153 * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
4154 bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
4155 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
4156 (bitmap_ior_and_compl_into): Produce bool.
4157 (bitmap_union_of_diff): Rename to ...
4158 (bitmap_ior_and_compl): ... here. Produce bool.
4159 * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
4160 bitmap_operation directly.
4161 (bitmap_union_of_diff): Rename to ...
4162 (bitmap_ior_and_compl): ... here. Return bool, use
4163 bitmap_operation directly.
4164 * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
4165 (df_ru_transfer_function, df_lr_transfer_function): Likewise.
4166 * global.c (modify_bb_reg_pav): Likewise.
4167
4168 * bitmap.h (bitmap_equal_p): Return bool.
4169 (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
4170 * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
4171 (bitmap_intersect_p, bitmap_intersect_compl_p): New.
4172 * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
4173 bitmap_intersect_compl_p.
4174 * ifcvt (dead_or_predicable): Likewise.
4175
4176 2004-11-02 Nathan Sidwell <nathan@codesourcery.com>
4177
4178 PR rtl-optimization/17104
4179 * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
4180 loads in zero_extend.
4181
4182 2004-11-02 Danny Smith <dannysmith@users.sourceforge.net>
4183
4184 PR debug/18242
4185 * toplev.c (debug_type_names): Remove "dwarf-1".
4186
4187 2004-11-02 Ben Elliston <bje@au.ibm.com>
4188
4189 * timevar.h (timevar_get): Remove.
4190 * timevar.c (timevar_get): Remove unused function.
4191
4192 2004-11-02 Joseph S. Myers <joseph@codesourcery.com>
4193
4194 * doc/include/texinfo.tex: Update from Texinfo CVS.
4195
4196 2004-11-02 Ben Elliston <bje@au.ibm.com>
4197
4198 * cppdefault.h (cpp_SYSROOT): Remove.
4199 * cppdefault.c (cpp_SYSROOT): Likewise.
4200
4201 2004-11-01 Andrew MacLeod <amacleod@redhat.com>
4202
4203 PR tree-optimization/16447
4204 * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
4205 bsi_commit_edge_inserts_1, and make funtion external. Return new block.
4206 (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
4207 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
4208 * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
4209 * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
4210 (same_stmt_list_p): New. Return TRUE if edge is to be forwarded.
4211 (identical_copies_p): New. Return true is two copies are the same.
4212 (identical_stmt_lists_p): New. Return true if stmt lists are the same.
4213 (analyze_edges_for_bb): New. Determine how best to insert edge stmts
4214 for a basic block.
4215 (perform_edge_inserts): New. Determine what to do with all stmts that
4216 have been inserted on edges.
4217 (remove_ssa_form): Analyze and commit edges from here.
4218
4219 2004-11-01 Andrew Pinski <pinskia@physics.uc.edu>
4220
4221 PR bootstrap/18232
4222 * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
4223 (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
4224 (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
4225 (EXECUTE_IF_AND_IN_BITMAP): Likewise.
4226
4227 2004-11-01 Joseph S. Myers <joseph@codesourcery.com>
4228
4229 PR c/18239
4230 * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
4231 parameter declarations.
4232
4233 2004-11-01 Andreas Krebbel <krebbel1@de.ibm.com>
4234
4235 * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
4236 (s390_secondary_input_reload_class)
4237 (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
4238 register.
4239 (s390_expand_cmpmem): Enable cmpmem implementation.
4240 * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
4241 Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
4242 (REG_CLASS_FROM_LETTER): New constraint 'c' added.
4243 * config/s390/s390.md ("movcc"): New insn pattern.
4244 * doc/md.texi: Document 'c' constraint for s390.
4245
4246 2004-11-01 Nathan Sidwell <nathan@codesourcery.com>
4247
4248 PR c++/18064
4249 * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
4250 extension.
4251
4252 2004-10-16 Daniel Berlin <dberlin@dberlin.org>
4253
4254 Fix PR tree-optimization/17672
4255 Fix PR tree-optimization/18168
4256
4257 * lambda-code.c (lambda_lattice_compute_base): Fix reversed
4258 assert test.
4259 (gcc_tree_to_linear_expression): Add extra to existing constant.
4260 (depth_of_nest): Factor out function used in various places.
4261 (gcc_loop_to_lambda_loop): Clean up code a little bit. No
4262 functional changes.
4263 (find_induction_var_from_exit_cond): Stop guessing, and just
4264 get the right answer :).
4265 (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
4266 Print out message about result of attempt to create perfect nest.
4267 (lbv_to_gcc_expression): Add type argument, use it to do math
4268 and induction variable creation.
4269 (lle_to_gcc_expression): Ditto.
4270 (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
4271 oldiv. Pass type argument to lle_to_gcc_expression and
4272 lbv_to_gcc_expression.
4273 Reset number of iterations after transformation.
4274 (perfect_nestify): Remove useless pre-allocation, and cleanup
4275 a small amount.
4276
4277 * tree-data-ref.c (build_classic_dist_vector): Return false for
4278 dependences completely outside of the loop nest we asked about.
4279 (build_classic_dir_vector): Ditto.
4280 (compute_data_dependences_for_loop): Only add dependence relations
4281 inside the loop we asked about.
4282
4283 * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
4284 Compute immediate uses.
4285
4286 * tree-optimize.c: Move linear_transform_loops to before ivcanon.
4287
4288 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
4289
4290 * tree-cfg.c (thread_jumps): Fix a comment typo.
4291
4292 2004-11-01 Kazu Hirata <kazu@cs.umass.edu>
4293
4294 * tree-cfg.c (thread_jumps): Fix a comment typo.
4295
4296 2004-10-31 Nicolas Pitre <nico@cam.org>
4297
4298 * config/arm/ieee754-sf.S (floatdisf): Fix regression with
4299 values smaller than 2^32.
4300
4301 2004-10-31 Jeff Law <law@redhat.com>
4302
4303 * cfgloop.h (struct loop): Remove unused "nodes" field.
4304 * timevar.def (TV_TREE_LOOP_BOUNDS): New.
4305 * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
4306 instead of calling flow_bb_inside_loop_p for every basic block
4307 in the function.
4308 * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
4309
4310 2004-10-31 Graham Stott <graham.stott@btinternet.com>
4311
4312 * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo. Use
4313 INT_5_BITS instead of VAL_5_BITS_P.
4314
4315 2004-10-31 Roger Sayle <roger@eyesopen.com>
4316
4317 PR middle-end/14521
4318 * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
4319 for consistent quoting in diagnostic messages.
4320 (expand_call_inline): Likewise.
4321 * tree-optimize.c (tree_rest_of_compilation): Likewise.
4322 * tree-ssa.c (warn_uninitialized_var): Likewise.
4323 (warn_uninitialized_phi): Likewise.
4324
4325 2004-10-31 Richard Sandiford <rsandifo@redhat.com>
4326
4327 * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
4328 mode check.
4329
4330 2004-10-31 Kazu Hirata <kazu@cs.umass.edu>
4331
4332 * c-common.c: Fix a comment typo.
4333
4334 2004-10-31 Jason Merrill <jason@redhat.com>
4335
4336 PR middle-end/17526
4337 * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
4338 aggregate types that are not BLKmode.
4339
4340 2004-10-30 Ziemowit Laski <zlaski@apple.com>
4341
4342 * c-common.h (objc_lookup_ivar): Add second parameter to
4343 prototype.
4344 * c-typeck.c (build_external_ref): After looking up symbol,
4345 pass it to objc_lookup_ivar() to decide whether it or the
4346 ivar should be used, rather than deciding the issue locally.
4347 * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
4348 which is simply returned in the non-ObjC case.
4349
4350 2004-10-30 Danny Smith <dannysmith@users.sourceforge.net>
4351
4352 * sdbout.c (sdbout_symbol): Do not output type .def statements
4353 for builtin types.
4354
4355 2004-10-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
4356
4357 * c-common.c (catenate_strings): New.
4358 (c_parse_error): Use it. Don't over-escape.
4359
4360 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
4361
4362 * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
4363 modify the for loop expressions for it. Remove unnecessary casts.
4364 (sh_expand_prologue): Declare reg as unsigned.
4365 (sh_gimplify_va_arg_expr): Initinalize lab_over.
4366 (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
4367
4368 2004-10-30 Geoffrey Keating <geoffk@apple.com>
4369
4370 * doc/invoke.texi (Darwin Options): Improve description of
4371 how the subtype is chosen.
4372
4373 2004-10-30 Roger Sayle <roger@eyesopen.com>
4374
4375 PR middle-end/18096
4376 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
4377 the stack adjustment, "size", is valid for Pmode. If the stack
4378 frame is too large, generate a trap insn and issue a warning.
4379
4380 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
4381
4382 * tree-ssa-dom.c: Fix comment typos.
4383
4384 2004-10-30 Kaz Kojima <kkojima@gcc.gnu.org>
4385
4386 * config/sh/sh.c (prepare_move_operands): Use operands[0]
4387 for the output rtl if no_new_pseudos is set. Remove redundant
4388 line.
4389
4390 2004-10-30 Joseph S. Myers <joseph@codesourcery.com>
4391
4392 PR c/16666
4393 * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
4394 determining whether to copy parameter types from a previous
4395 prototype declaration.
4396
4397 2004-10-29 Roger Sayle <roger@eyesopen.com>
4398
4399 PR rtl-optimization/17581
4400 * cselib.c (cselib_process_insn): The last instruction of a libcall
4401 block, with the REG_RETVAL note, should be considered in the libcall.
4402 * gcse.c (do_local_cprop): Allow constants to be propagated outside
4403 of libcall blocks.
4404 (adjust_libcall_notes): Use simplify_replace_rtx instead of
4405 replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
4406
4407 2004-10-30 Kazu Hirata <kazu@cs.umass.edu>
4408
4409 * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
4410
4411 2004-10-29 Jeff Law <law@redhat.com>
4412
4413 * tree-ssa-dom.c (struct edge_info): New structure holding
4414 edge equivalences and edge redirection information.
4415 (get_eq_expr_value, record_dominating_conditions): Kill.
4416 (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
4417 Call record_edge_info.
4418 (allocate_edge_info, free_edge_info): New.
4419 (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
4420 rather than cprop_into_phis. Free all edge infos before threading
4421 jumps.
4422 (thread_across_edge): Allocate new edge info structures as needed
4423 and store the redirection target into the edge info structure
4424 instead of the edge's AUX field.
4425 (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
4426 (record_equivalence_from_incoming_edge): Lose unnecessary argument.
4427 Revamp code which finds and records equivalences associated with
4428 edges to use saved data in the edge_info structure.
4429 (record_equivalencs_from_phis): Similarly.
4430 (dom_opt_finalize_block): Revamp code which finds and records
4431 equivalences associated with edges to use saved data in the
4432 edge_info structure.
4433 (build_and_record_new_cond): New function.
4434 (record_conditions): Use build_and_record_new_cond to record
4435 dominating conditions.
4436 (record_edge_info): New function.
4437 (record_range): Tighten test for conditions which create
4438 useful range records.
4439
4440 2004-10-29 Geoffrey Keating <geoffk@apple.com>
4441
4442 * config/i386/darwin.h (ASM_SPEC): Simplify.
4443 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
4444 * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
4445 (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
4446 * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
4447 (LINK_SPEC): Do pass -arch here. Handle -force_cpusubtype_ALL
4448 in all cases. Pass the right -arch or -arch_only based on -mcpu.
4449 (ASM_SPEC): Handle -force_cpusubtype_ALL.
4450 * doc/invoke.texi (Darwin Options): Improve documentation for
4451 Darwin linker (and libtool) switches.
4452
4453 * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
4454
4455 2004-10-29 Stan Shebs <shebs@apple.com>
4456
4457 * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.
4458
4459 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
4460
4461 * tree-phinodes.c (allocate_phi_node): New.
4462 (make_phi_node, resize_phi_node): Use it.
4463
4464 2004-10-29 David Edelsohn <edelsohn@gnu.org>
4465
4466 * config/rs6000/sysv4.h (TARGET_POWER): Define as 0.
4467 * config/rs6000/darwin.h (TARGET_POWER): Define as 0.
4468
4469 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
4470
4471 * tree-phinodes.c (make_phi_node, resize_phi_node): Don't zero
4472 the whole PHI node.
4473 * tree.h (tree_phi_node): Tell the garbage collector to chase
4474 num_args arguments.
4475
4476 2004-10-29 Richard Earnshaw <rearnsha@arm.com>
4477
4478 * opts.c (decode_options): Lower the crossjump threshold for -Os.
4479
4480 2004-10-29 Diego Novillo <dnovillo@redhat.com>
4481
4482 * tree.h (struct tree_ssa_name): Remove field 'equiv'.
4483
4484 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
4485
4486 * bitmap.h (bitmap_empty_p): New.
4487 (bitmap_and, bitmap_and_into, bitmap_and_compl,
4488 bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
4489 bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
4490 operation macros.
4491 (bitmap_ior_and_compl): Rename to ...
4492 (bitmap_ior_and_compl_into): ... here.
4493 * bitmap.c (bitmap_equal_p): Use bitmap_xor.
4494 (bitmap_ior_and_compl): Rename to ...
4495 (bitmap_ior_and_compl_into): ... here. Adjust. Return changed
4496 flag.
4497 (bitmap_union_of_diff): Use renamed bitmap functions.
4498 * basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
4499 XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
4500 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
4501 * df.c (df_bb_rd_local_compute)
4502 * flow.c (calculate_global_regs_live,
4503 init_propagate_block_info): Likewise.
4504 * ifcvt.c (find_if_case_1, find_if_case_2,
4505 dead_or_predicable): Likewise.
4506 * ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
4507 reset_conflicts, conflicts_between_webs): Likewise.
4508 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
4509 detect_web_parts_to_rebuild): Likewise.
4510 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
4511 * tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
4512 * tree-sra.c (decide_instantiations): Likewise.
4513 * tree-ssa-alias.c (create_name_tags,
4514 merge_pointed_to_info): Likewise.
4515 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
4516 * tree-ssa-loop-im.c (move_computations): Likewise.
4517 * tree-ssa-operands.c (get_call_expr_operands): Likewise.
4518 * tree-ssa-pre.c (fini_pre): Likewise.
4519 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
4520 * tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
4521 * tree-vectorizer.c (vectorize_loops): Likewise.
4522
4523 2004-10-29 Nick Clifton <nickc@redhat.com>
4524
4525 config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
4526 adding the PIC register to the fixed_regs array, also add it
4527 to the call_used_regs array.
4528
4529 2004-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
4530
4531 * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
4532 with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
4533
4534 2004-10-28 Daniel Berlin <dberlin@dberlin.org>
4535
4536 * tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
4537 (rewrite_blocks): Modify argument, and use it to decide which
4538 function to call.
4539 (rewrite_def_def_chains): Call rewrite_blocks with true here.
4540 (rewrite_into_ssa): and call it with false here.
4541
4542 2004-10-29 Kazu Hirata <kazu@cs.umass.edu>
4543
4544 * tree-phinodes.c (add_phi_arg): Turn an "if" that always
4545 triggers into gcc_assert.
4546
4547 2004-10-28 Diego Novillo <dnovillo@redhat.com>
4548
4549 PR tree-optimization/16728
4550 * tree-flow.h (get_ptr_info): Declare.
4551 * tree-ssa-alias.c (get_ptr_info): Make extern.
4552 * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
4553 alias information.
4554
4555 2004-10-28 Stan Shebs <shebs@apple.com>
4556
4557 * config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
4558 * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
4559 case.
4560
4561 2004-10-28 Frank Ch. Eigler <fche@redhat.com>
4562
4563 * tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
4564 prevent their later unnecessary registration.
4565 (mf_build_check_statement_for): Remove "addr" argument, and
4566 related "__mf_value" generated code. Update callers.
4567 (mf_decl_eligible_p): New function, factored from mx_register_decls.
4568 (mx_register_decls): Call it.
4569 (mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
4570 to restore support for complex nested expressions.
4571 (mudflap_enqueue_decl): Simplify. Move registration call emission
4572 out ...
4573 (mudflap_finish_file): ... to here.
4574 (mudflap_enqueue_constant): Remove dump code.
4575
4576 2004-10-28 Zack Weinberg <zack@codesourcery.com>
4577
4578 PR 18199
4579 * dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
4580 (DBX_FINISH_STABS): Add (unused by default) SYM parameter.
4581 (dbxout_finish_complex_stabs): Update to match.
4582 (dbxout_symbol_location): Call emit_pending_bincls_if_required
4583 and FORCE_TEXT before DBX_STATIC_BLOCK_START. Use
4584 dbxout_begin_complex_stabs_noforcetext.
4585 * xcoffout.h (DBX_FINISH_STABS): Restore special case for
4586 N_GSYM, using new SYM parameter. Correct logic for special
4587 cases for N_FUN.
4588
4589 * varasm.c (function_section): If DECL is NULL_TREE, don't try
4590 to do anything else. Do not call get_insns if cfun or
4591 cfun->emit are NULL.
4592
4593 2004-10-28 Adam Nemet <anemet@lnxw.com>
4594
4595 PR middle-end/18160
4596 * c-typeck.c (c_mark_addressable): Issue error if address of a
4597 register variable is taken. Use "%qD" to print DECL_NAME.
4598
4599 2004-10-28 Diego Novillo <dnovillo@redhat.com>
4600
4601 * opts.c (decode_options): Don't run PRE at -Os.
4602
4603 2004-10-28 Richard Henderson <rth@redhat.com>
4604
4605 * config/alpha/alpha.md (movqicc_internal): Allow exactly one
4606 zero in the conditional.
4607 (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.
4608
4609 2004-10-28 Richard Henderson <rth@redhat.com>
4610
4611 * cse.c (memory_extend_rtx): Remove.
4612 (cse_main): Don't set it.
4613 (cse_insn): Use a local buffer instead.
4614
4615 2004-10-28 Andreas Krebbel <krebbel1@de.ibm.com>
4616
4617 * profile.c (branch_prob): Call to init_edge_profiler added.
4618 * rtl-profile.c (rtl_init_edge_profiler): New function.
4619 (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
4620 call to safe_insert_insn_on_edge.
4621 (rtl_profile_hooks): rtl_init_edge_profiler added.
4622 * tree-profile.c (tree_init_edge_profiler): New function.
4623 (tree_profile_hooks): tree_init_edge_profiler added.
4624 * value-prof.h (profile_hooks) init_edge_profiler prototype added.
4625
4626 2004-10-28 Nick Clifton <nickc@redhat.com>
4627
4628 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Use
4629 emit_jump_insn() to generate the return instruction.
4630
4631 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
4632
4633 * tree-phinodes.c: Remove trailing whitespace.
4634
4635 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
4636
4637 * tree-ssa-loop-ivopts.c: Fix a comment typo.
4638 * doc/invoke.texi: Fix a typo.
4639
4640 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
4641
4642 * Makefile.in (OBJS-common): Remove duplicates.
4643
4644 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
4645
4646 * lambda-code.c (nestify_update_pending_stmts): Remove.
4647 (perfect_nestify): Use flush_pending_stmts instead of
4648 nestify_update_pending_stmts.
4649 * tree-cfg.c (tree_make_forwarder_block): Use
4650 flush_pending_stmts.
4651 * tree-flow.h: Add a prototype for flush_pending_stmts.
4652 * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
4653 Use flush_pending_stmts.
4654 (lv_update_pending_stmts): Remove.
4655 (tree_ssa_loop_version): Use flush_pending_stmts instead of
4656 lv_update_pending_stmts.
4657 * tree-ssa.c (flush_pending_stmts): New.
4658
4659 2004-10-28 Ulrich Weigand <uweigand@de.ibm.com>
4660
4661 PR target/15286
4662 * final.c (alter_subreg): Compute correct offset to use with
4663 paradoxical SUBREGs of memory operands.
4664 * recog.c (general_operand): Allow paradoxical SUBREGs of
4665 memory operands after reload.
4666 * simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
4667 has failed when passed a hard register.
4668
4669 2004-10-28 Aldy Hernandez <aldyh@redhat.com>
4670
4671 * function.c (assign_parm_setup_block): Handle parallels correctly.
4672
4673 2004-10-28 Kaz Kojima <kkojima@gcc.gnu.org>
4674
4675 * final.c (shorten_branches): Initialize flags structure.
4676
4677 2004-10-28 Nathan Sidwell <nathan@codesourcery.com>
4678
4679 * tree.c (int_cst_node, int_cst_hash_table): New variables.
4680 (init_ttree): Initialize them.
4681 (int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
4682 (build_int_cst_wide): Use hash table for oversized integers.
4683
4684 2004-10-28 Nick Clifton <nickc@redhat.com>
4685
4686 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define
4687 begin_label.
4688
4689 2004-10-27 Richard Henderson <rth@redhat.com>
4690
4691 PR middle-end/18163
4692 * expr.c (emit_group_load): Don't go force temporary for memory
4693 or concat source.
4694 (emit_group_store): Similarly.
4695
4696 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
4697
4698 PR other/18186
4699 * common.opt (--param): Fix spelling of parameter.
4700
4701 2004-10-27 Andrew Pinski <pinskia@physics.uc.edu>
4702
4703 PR tree-opt/17529
4704 * tree-cfg.c (remove_useless_stmts_1) <case SWITCH_EXPR>:
4705 Don't fold statement.
4706 <case ASM_EXPR>: Fold the statement.
4707
4708 2004-10-28 Kazu Hirata <kazu@cs.umass.edu>
4709
4710 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
4711 <COND_EXPR>: Use EDGE_COUNT instead of GOTO_DESTINATION.
4712
4713 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
4714
4715 * doc/contrib.texi, doc/cpp.texi, doc/cppopts.texi,
4716 doc/extend.texi, doc/gcov.texi, doc/install.texi, doc/invoke.texi,
4717 doc/libgcc.texi, doc/md.texi, doc/passes.texi,
4718 doc/sourcebuild.texi, doc/tm.texi: Improve Texinfo formatting.
4719
4720 2004-10-28 Joseph S. Myers <jsm@polyomino.org.uk>
4721
4722 * doc/c-tree.texi, doc/cpp.texi, doc/implement-c.texi,
4723 doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi: Put
4724 punctuation outside quotes.
4725
4726 2004-10-27 David Mosberger <davidm@hpl.hp.com>
4727 James E Wilson <wilson@specifixinc.com>
4728
4729 PR target/13158
4730 * config/ia64/ia64.c (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on
4731 sibcall alloc instruction.
4732 (process_set): Handle sibcall alloc instruction.
4733
4734 2004-10-27 Geoffrey Keating <geoffk@apple.com>
4735
4736 * config/rs6000/rs6000.c (rs6000_attribute_table): Add
4737 SUBTARGET_ATTRIBUTE_TABLE.
4738 * config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
4739 (SUBTARGET_ATTRIBUTE_TABLE): Define.
4740 * config/darwin.c (darwin_handle_weak_import_attribute): New.
4741 (HAVE_DEAD_STRIP): Delete.
4742 (no_dead_strip): Don't test HAVE_DEAD_STRIP.
4743 * config/darwin-protos.h (darwin_handle_weak_import_attribute):
4744 Prototype.
4745
4746 * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
4747
4748 * config/darwin.h (GTHREAD_USE_WEAK): Define.
4749
4750 2004-10-28 Ben Elliston <bje@au.ibm.com>
4751
4752 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
4753 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
4754 * params.h (SRA_MAX_STRUCTURE_SIZE): New.
4755 (SRA_FIELD_STRUCTURE_RATIO): Likewise.
4756 * tree-sra.c: Include "params.h".
4757 (decide_block_copy): Use new parameters.
4758 * doc/invoke.texi (Optimize Options): Document new SRA pass
4759 parameters sra-max-structure-size and sra-field-structure-ratio.
4760
4761 2004-10-27 Nicolas Pitre <nico@cam.org>
4762
4763 * config/arm/ieee754-df.S (floatdidf): Fix regression with big values.
4764
4765 2004-10-27 Zdenek Dvorak <dvorakz@suse.cz>
4766
4767 PR tree-optimization/18048
4768 * fold-const.c (try_move_mult_to_index): New function.
4769 (fold): Use try_move_mult_to_index.
4770 * tree-ssa-loop-ivopts.c (try_add_cand_for): Prefer common candidates.
4771 * tree-ssa-loop-niter.c (number_of_iterations_cond): Produce
4772 an all-ones unsigned constant without extra bits.
4773 * tree.c (build_low_bits_mask): New function.
4774 * tree.h (build_low_bits_mask): Declare.
4775
4776 2004-10-27 David Edelsohn <edelsohn@gnu.org>
4777
4778 PR target/17956
4779 * config/rs6000/rs6000.md (maxsf3): Add !flag_trapping_math to
4780 final condition.
4781 (minsf3): Same.
4782 (maxdf3): Same.
4783 (mindf3): Same.
4784
4785 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
4786
4787 * tree-cfg.c (thread_jumps): Speed up by reordering the two
4788 conditions for entering basic blocks into worklist.
4789
4790 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
4791
4792 * tree-cfg.c (thread_jumps): Speed up by pretending to have
4793 ENTRY_BLOCK_PTR in worklist.
4794
4795 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
4796
4797 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
4798 <GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.
4799
4800 2004-10-27 Daniel Berlin <dberlin@dberlin.org>
4801
4802 Fix PR tree-optimization/17133
4803
4804 * tree-cfg.c (rewrite_to_new_ssa_names_bb): Also rewrite must
4805 def kill operand.
4806
4807 * tree-flow-inline.h: V_MUST_DEF_OP became V_MUST_DEF_RESULT.
4808 (get_v_must_def_result_ptr): Modify for new structure of
4809 v_must_defs array.
4810 (get_v_must_def_kill_ptr): New.
4811 (op_iter_next_use): Add support for the kill that occurs in V_MUST_DEFs.
4812 (op_iter_next_tree): Ditto. Also V_MAY_DEF_OP became V_MAY_DEF_RESULT.
4813 (op_iter_next_def): V_MAY_DEF_OP became V_MAY_DEF_RESULT.
4814 (op_iter_init): Initialize new mustu members.
4815 (op_iter_next_mustdef): New function.
4816 (op_iter_init_mustdef): Ditto.
4817
4818 * tree-flow.h (rewrite_def_def_chains): New function.
4819
4820 * tree-into-ssa.c (mark_def_sites): Handle mustdefkill operands.
4821 (ssa_mark_def_sites): Ditto.
4822 (rewrite_stmt): Ditto.
4823 (ssa_rewrite_stmt): Ditto.
4824 (rewrite_blocks): Factor out from rewrite_into_ssa.
4825 (mark_def_block_sites): Ditto.
4826 (rewrite_def_def_chains): New function, just rewrites def-def
4827 chains without phi node insertion.
4828
4829 * tree-pass.h (TODO_fix_def_def_chains): New todo flag.
4830
4831 * tree-optimize.c (execute_todo): Handle TODO_fix_def_def_chains.
4832
4833 * tree-pretty-print.c (dump_vops): Print out MUST_DEF's so that
4834 they include the rhs now.
4835
4836 * tree-ssa-ccp.c (visit_assignment): V_MUST_DEF_OP became
4837 V_MUST_DEF_RESULT.
4838
4839 * tree-ssa-dce.c (mark_operand_necessary): Add phionly argument.
4840 Update callers.
4841 (mark_really_necessary_kill_operand_phis): New function.
4842 (perform_tree_ssa_dce): Call it.
4843 (pass_dce): Add TODO_fix_def_def_chains.
4844 (pass_cd_dce): Ditto.
4845
4846 * tree-ssa-loop-im.c (determine_max_movement): Look at kills as
4847 well.
4848 (rewrite_mem_refs): Ditto.
4849
4850 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Look at kills
4851 as well.
4852
4853 * tree-ssa-operands.c (allocate_v_may_def_optype):
4854 v_may_def_operand_type_t became v_def_use_operand_type_t.
4855 (allocate_v_must_def_optype) Ditto.
4856 (finalize_ssa_v_must_defs): Update for new operand type, as well
4857 as setting the use portion as well.
4858 (copy_virtual_operands): Copy the kill operand as well.
4859 (create_ssa_artficial_load_stmt): V_MUST_DEF_OP became
4860 V_MUST_DEF_RESULT.
4861
4862 * tree-ssa-operands.h (v_may_def_operand_type): Renamed to
4863 v_def_use_operand_type.
4864 (v_must_def_optype_d): Use v_def_use_operand_type.
4865 (V_MUST_DEF_OP_*): Renamed to V_MUST_DEF_RESULT_*
4866 (V_MUST_DEF_KILL_*): New macros.
4867 (struct ssa_operand_iterator_d): Add num_v_mustu and v_mustu_i
4868 members.
4869 Rename existing must_i and num_v_must members to mustd_i and
4870 num_v_mustd.
4871 (SSA_OP_VMUSTDEFKILL): New flag.
4872 (SSA_OP_VIRTUAL_KILLS): New flag.
4873 (SSA_OP_ALL_OPERANDS): Add in SSA_OP_ALL_KILLS.
4874 (SSA_OP_ALL_KILLS): New flag.
4875 (FOR_EACH_SSA_MUSTDEF_OPERAND): New macro.
4876
4877 * tree-ssa.c (verify_ssa): Verify virtual kills as well.
4878
4879 * tree-vectorizer.c (vect_create_data_ref_ptr): V_MUST_DEF_OP
4880 became V_MUST_DEF_RESULT.
4881 (rename_variables_in_bb): Rename kill pointer as well.
4882
4883 * tree-dfa.c (compute_immediate_uses_for_stmt): Add kills into the
4884 immediate uses.
4885
4886 2004-10-27 Richard Sandiford <rsandifo@redhat.com>
4887
4888 * dbxout.c (dbxout_source_line): Move declaration of begin_label to
4889 the block that needs it.
4890
4891 2004-10-27 Zack Weinberg <zack@codesourcery.com>
4892
4893 * dbxout.c (dbxout_finish_complex_stabs): Mark 'line' variable
4894 ATTRIBUTE_UNUSED.
4895
4896 2004-10-27 Zack Weinberg <zack@codesourcery.com>
4897
4898 * c-lex.c (cb_def_pragma): Clean up code for making location
4899 palatable to diagnostic.c.
4900
4901 2004-10-27 Steven Bosscher <stevenb@suse.de>
4902
4903 PR tree-optimization/17757
4904 * tree-phinodes.c (remove_phi_arg_num): Don't remove PHIs
4905 without any PHI arguments left. Make sure the argument that
4906 we're supposed to remove exists at all.
4907
4908 2004-10-27 Paul Brook <paul@codesourcery.com>
4909
4910 * configure.ac: Don't test for [build] __cxa_atexit when building a
4911 cross compiler.
4912 * configure: Regenerate.
4913
4914 2004-10-27 Paul Brook <paul@codeosurcery.com>
4915
4916 * configure.ac: Use build_exeext not host_exeext when lookin for
4917 target tools.
4918 * configure: Regenerate.
4919
4920 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
4921
4922 * config/s390/s390.md ("*subdf3_cc"): Replaced plus by minus.
4923
4924 2004-10-27 Andreas Krebbel <krebbel1@de.ibm.com>
4925 patch originally created by Kelley Cook <kcook@gcc.gnu.org>
4926
4927 PR middle-end/14684
4928 * opts.c (OPT_fprofile_generate): Default to -funroll-loops
4929 to match -fprofile-use.
4930
4931 2004-10-27 Kazu Hirata <kazu@cs.umass.edu>
4932
4933 * config/rs6000/rs6000.c: Fix a comment typo.
4934
4935 2004-10-27 Zack Weinberg <zack@codesourcery.com>
4936
4937 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Increment line
4938 counter.
4939
4940 2004-10-27 Andreas Schwab <schwab@suse.de>
4941
4942 * varasm.c (default_stabs_asm_out_destructor): Mark symbol as
4943 unused.
4944 (default_stabs_asm_out_constructor): Likewise.
4945
4946 2004-10-26 Geoffrey Keating <geoffk@apple.com>
4947
4948 * builtins.c (fold_builtin_unordered_cmp): Always bring both
4949 operands to the same type.
4950
4951 2004-10-26 James E Wilson <wilson@specifixinc.com>
4952
4953 PR target/18010
4954 * emit-rtl.c (emit_copy_of_insn_after): Copy RTX_FRAME_RELATED_P.
4955
4956 2004-10-26 Zack Weinberg <zack@codesourcery.com>
4957
4958 * dbxout.c: Include obstack.h.
4959 (ASM_STABS_OP): Take XCOFF_DEBUGGING_INFO into account in
4960 default definition.
4961 (ASM_STABD_OP, NO_DBX_MAIN_SOURCE_DIRECTORY, DBX_CONTIN_CHAR):
4962 Default-define here.
4963 (DBX_CONTIN_LENGTH): Move definition with others.
4964 (DBX_FINISH_STABS): New target macro.
4965 (current_sym_code, current_sym_value, current_sym_addr)
4966 (current_sym_nchars, CHARS, dbxout_continue)
4967 (print_int_cst_octal, print_octal, print_wide_int)
4968 (dbxout_prepare_symbol, dbxout_finish_symbol): Delete.
4969 (stabstr_ob, stabstr_last_contin_point): New variables.
4970 (NUMBER_FMT_LOOP): New improper macro.
4971 (dbxout_int, dbxout_stab_value_zero, dbxout_stab_value_label)
4972 (dbxout_stab_value_label_diff, dbxout_stab_value_internal_label)
4973 (dbxout_stab_value_internal_label_diff, dbxout_stabd)
4974 (dbxout_begin_stabn, dbxout_begin_stabn_sline)
4975 (dbxout_begin_simple_stabs, dbxout_begin_simple_stabs_desc)
4976 (dbxout_begin_complex_stabs, dbxout_finish_complex_stabs)
4977 (stabstr_C, stabstr_S, stabstr_I, stabstr_D, stabstr_U, stabstr_O)
4978 (stabstr_continue, DECL_ACCESSIBILITY_CHAR)
4979 New functions and/or proper function-like macros.
4980 (CONTIN): Use stabstr_continue, unconditionally.
4981 (get_lang_number): Define unconditionally, with ATTRIBUTE_UNUSED.
4982 (dbxout_init): Initialize stabstr_ob. Check
4983 NO_DBX_MAIN_SOURCE_DIRECTORY. Only write out the Ltext label
4984 if it was used. Use the new interfaces.
4985 (dbxout_source_file): Remove file argument; always write to
4986 asm_out_file. Use the new interfaces.
4987 (dbxout_type_method_1): Remove second argument which is always
4988 DECL_ASSEMBLER_NAME of the first argument. Use the new interfaces.
4989 (dbxout_type_methods): Remove write-only variables. Use the
4990 new interfaces.
4991 (dbxout_parms): Refactor to remove code duplicated in each of
4992 several successive if-else-if blocks. Use the new interfaces.
4993 (dbxout_function_end, emit_bincl_stab, dbxout_end_source_file)
4994 (dbxout_source_line, dbxout_finish, dbxout_type_index)
4995 (dbxout_type_fields, dbxout_range_type, dbxout_type, dbxout_type_name)
4996 (dbxout_class_name_qualifiers, dbxout_symbol, dbxout_symbol_location)
4997 (dbxout_symbol_name, dbxout_reg_parms, dbxout_args)
4998 (dbx_output_lbrac, dbx_output_rbrac, dbxout_block):
4999 Use the new interfaces.
5000 * Makefile.in (dbxout.o): Update dependencies.
5001
5002 * defaults.h: Don't define ASM_STABD_OP.
5003 * output.h: Prototype new dbxout_* interfaces.
5004 * system.h: Poison DBX_OUTPUT_GCC_MARKER and DBX_FINISH_SYMBOL.
5005 * varasm.c: Don't define ASM_STABS_OP.
5006 (default_stabs_asm_out_constructor, default_stabs_asm_out_destructor):
5007 Use the new dbxout.c interfaces. Call sorry if neither
5008 DBX_DEBUGGING_INFO nor XCOFF_DEBUGGING_INFO is defined.
5009
5010 * xcoffout.h: Don't define ASM_STABS_OP.
5011 (DBX_FINISH_SYMBOL): Rewrite and rename DBX_FINISH_STABS.
5012 (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_GCC_MARKER): Delete.
5013 (NO_DBX_MAIN_SOURCE_DIRECTORY, NO_DBX_GCC_MARKER): Define.
5014 (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Change bare block to
5015 do { ... } while (0) idiom.
5016
5017 * config/alpha/alpha.c (num_source_filenames): Export.
5018 * config/alpha/alpha.h (num_source_filenames): Declare.
5019 (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
5020 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
5021 * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
5022 Always use .debugsym. Update commentary.
5023 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
5024 (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
5025 * config/rs6000/linux64.h (DBX_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC):
5026 Use new interfaces.
5027 * config/rs6000/rs6000.c: If TARGET_MACHO, include gstab.h.
5028 (macho_branch_islands): Use new interfaces.
5029
5030 * doc/tm.texi: Update.
5031
5032 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
5033
5034 * expr.c (emit_group_store): Do not treat floats as BLKmode.
5035 (emit_group_load): Same.
5036
5037 2004-10-26 Joseph S. Myers <jsm@polyomino.org.uk>
5038
5039 * c-parse.in (datadef): Use pedwarn rather than error and warning
5040 for diagnostic in case of no declaration specifiers.
5041
5042 2004-10-26 Richard Sandiford <rsandifo@redhat.com>
5043
5044 PR bootstrap/15747
5045 * doc/install.texi (mips-sgi-irix5): Document that /bin/sh has been
5046 reported to hang during bootstrap and that CONFIG_SHELL=/bin/ksh
5047 can be used to work around this.
5048
5049 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
5050
5051 * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500
5052 doubles.
5053
5054 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
5055
5056 * stmt.c (expand_case): Update a comment.
5057
5058 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
5059
5060 * stmt.c (expand_case): Put an assertion that index_expr is
5061 never INTEGER_CST. Don't special case for constant
5062 index_expr.
5063
5064 2004-10-26 Andrew Pinski <pinskia@physics.uc.edu>
5065
5066 PR 18162
5067 * c-parse.in (designator): Finish with a semi-colon.
5068
5069 2004-10-26 Fariborz Jahanian <fjahanian@apple.com>
5070
5071 * config/rs6000/rs6000.md (andsi3_internal8): Set CR when splitting
5072 into rotlsi3.
5073
5074 2004-10-26 Kazu Hirata <kazu@cs.umass.edu>
5075
5076 * stmt.c (expand_case): Remove code to handle SWITCH_EXPR with
5077 a default case only.
5078
5079 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
5080
5081 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): Adjust for
5082 e500 doubles.
5083 (spe_build_register_parallel): New.
5084 (rs6000_spe_function_arg): Handle e500 doubles.
5085 (function_arg): Same.
5086 (spe_func_has_64bit_regs_p): Same.
5087 (rs6000_function_value): Same.
5088 (rs6000_libcall_value): Same.
5089 (legitimate_lo_sum_address_p): Return false for e500 doubles.
5090
5091 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): Adjust for e500
5092 doubles.
5093 (DATA_ALIGNMENT): Same.
5094 (CANNOT_CHANGE_MODE_CLASS): Same.
5095
5096 2004-10-26 Aldy Hernandez <aldyh@redhat.com>
5097
5098 * expr.c (emit_group_load): Handle floats.
5099 (emit_group_store): Same.
5100
5101 2004-10-26 Nathan Sidwell <nathan@codesourcery.com>
5102
5103 * c-lex.c (get_nonpadding_token): Remove.
5104 (c_lex_with_flags): Push timevar and eat padding here. Improve
5105 stray token diagnostic.
5106 (lex_string): Replace logic with switch statement, eat padding
5107 token here.
5108
5109 2004-10-26 Geoffrey Keating <geoffk@apple.com>
5110
5111 PR 18149
5112 * config/i386/darwin.h (ASM_SPEC): Undef it before defining.
5113
5114 2004-10-25 Geoffrey Keating <geoffk@apple.com>
5115
5116 * config/darwin.h (LINK_SPEC): Default weak_reference_mismatches
5117 to 'non-weak'.
5118 (MAKE_DECL_ONE_ONLY): Set DECL_WEAK.
5119 (ASM_MAKE_LABEL_LINKONCE): Delete.
5120 (ASM_WEAKEN_DECL): New.
5121 (ASM_DECLARE_OBJECT_NAME): Look at DECL_WEAK not DECL_ONE_ONLY.
5122 (ASM_DECLARE_FUNCTION_NAME): Likewise.
5123 (TEXT_SECTION_ASM_OP): Add a tab.
5124 (DATA_SECTION_ASM_OP): Likewise.
5125 (SECTION_FUNCTION): Add a tab. Use fputs. Don't call
5126 data_section on every section change.
5127 (EXTRA_SECTIONS): Add a bunch of new extra sections.
5128 (EXTRA_SECTION_FUNCTIONS): Likewise.
5129 (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
5130 (JCR_SECTION_NAME): Define.
5131 (TARGET_SECTION_TYPE_FLAGS): Don't define.
5132 * config/darwin.c (darwin_encode_section_info): A symbol is defined
5133 in this file if it is not weak.
5134 (textcoal_section): Delete.
5135 (datacoal_section): Delete.
5136 (darwin_make_decl_one_only): Delete.
5137 (machopic_select_section): Handle functions.
5138 (darwin_asm_named_section): Add a tab.
5139 (darwin_section_type_flags): Delete.
5140 (darwin_unique_section): Delete contents.
5141 (darwin_emit_unwind_label): Add a tab. Make decls weak if
5142 DECL_WEAK is set.
5143 * config/darwin-protos.h (darwin_section_type_flags): Delete.
5144 (darwin_make_decl_one_only): Delete.
5145 (text_coal_section): New.
5146 (text_unlikely_section): New.
5147 (text_unlikely_coal_section): New.
5148 (const_coal_section): New.
5149 (data_coal_section): New.
5150 (const_data_coal_section): New.
5151 * varasm.c (function_section): Honour
5152 USE_SELECT_SECTION_FOR_FUNCTIONS.
5153 * dwarf2out.c (output_call_frame_info): Look at DECL_WEAK when
5154 TARGET_USES_WEAK_UNWIND_INFO is in effect.
5155 * dbxout.c (dbxout_source_file): Don't change sections while
5156 a function is being output.
5157
5158 2004-10-25 David Ayers <d.ayers@inode.at>
5159
5160 * c-common.h: Remove RID_ID.
5161 * c-parse.in: Remove OBJECTNAME and references to RID_ID.
5162 (typespec_reserved_attr): Add rule for TYPENAME
5163 non_empty_protocolrefs.
5164 (yylexname): Remove special handling of RID_ID.
5165
5166 2004-10-25 James E Wilson <wilson@specifixinc.com>
5167
5168 * doc/invoke.texi (-fcrossjumping): Not enabled at -O.
5169
5170 2004-10-25 Joseph S. Myers <jsm@polyomino.org.uk>
5171
5172 PR c/16667
5173 * c-parse.in (array_designator): New.
5174 (designator): Use it.
5175 (initelt): Only permit array_designator without '=', not ".foo".
5176
5177 2004-10-25 Kenneth Zadeck <zadeck@naturalbridge.com>
5178 * gcc/Makefile.in: removed ggc for cgraphunit.
5179 * gcc/cgraph.c.dump_cgraph_node: removed static var analysis.
5180 * gcc/cgraph.h: removed static var analysis data structures and calls.
5181 * gcc/cgraphunit.c:
5182 cgraph_mark_local_and_external_functions:changed name to
5183 cgraph_mark_local_functions
5184 (print_order,convert_UIDs_in_bitmap,new_static_vars_info,
5185 cgraph_reset_static_var_maps,get_global_static_vars_info,
5186 get_global_statics_not_read,get_global_statics_not_written,searchc,
5187 cgraph_reduced_inorder,has_proper_scope_for_analysis,check_rhs_var,
5188 check_lhs_var,get_asm_expr_operands,process_call_for_static_vars,
5189 scan_for_static_refs,cgraph_characterize_statics_local,
5190 clear_static_vars_maps,cgraph_propagate_bits,cgraph_characterize_statics):
5191 removed.
5192 (cgraph_optimize,init_cgraph): removed calls to static vars analysis
5193 * gcc/tree-dfa.c find_referenced_vars: removed call to static vars
5194 analysis
5195 * gcc/tree-flow.h static_vars_info: removed
5196 * gcc/tree-ssa-operands.c (add_call_clobber_ops,add_call_read_ops):
5197 removed calls to static vars analysis.
5198 get_call_expr_operands: removed callee variable.
5199
5200 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
5201
5202 * cfg.c (unchecked_make_edge, redirect_edge_succ,
5203 redirect_edge_pred): Use VEC_safe_push instead of
5204 VEC_safe_insert.
5205 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
5206
5207 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
5208
5209 * cfgloopmanip.c (loopify): Take two more arguments true_edge
5210 and false_edge.
5211 * cfgloop.h: Adjust the corresponding prototype.
5212 * loop-unswitch.c (unswitch_loop): Adjust a call to loopify.
5213 * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise.
5214
5215 2004-10-25 Jakub Jelinek <jakub@redhat.com>
5216
5217 * dwarf2out.c (rtl_for_decl_location): Avoid segfault if
5218 DECL_INCOMING_RTL is NULL.
5219
5220 2004-10-25 Steven Bosscher <stevenb@suse.de>
5221
5222 * timevar.def (TV_FIND_REFERENCED_VARS): New.
5223 * tree-dfa.c (pass_referenced_var): Use it.
5224
5225 2004-10-25 Roger Sayle <roger@eyesopen.com>
5226 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5227
5228 * cse.c: Change encoding of quantity numbers to avoid undefined
5229 pointer arithmetic on qty_table.
5230 (REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative.
5231 (get_cse_reg_info): Initialize reg_qty to a unique negative value.
5232 (new_basic_block): Assign "real" quantity numbers from zero.
5233 (delete_reg_equiv): Do nothing if quantity is invalid. Reset the
5234 REG_QTY to its unique negative value.
5235 (merge_equiv_classes): Calculate need_rehash if quantity is valid.
5236 (cse_main): Don't include max_reg when determining max_qty.
5237 (cse_basic_block): Avoid subtracting a large offset from qty_table,
5238 which causes undefined C99 behaviour. Only allocate needed memory.
5239
5240 2004-10-25 Kazu Hirata <kazu@cs.umass.edu>
5241
5242 * stmt.c (expand_case): Remove an obsolete comment.
5243
5244 2004-10-25 Andrew Pinski <pinskia@physics.uc.edu>
5245
5246 PR middle-end/17407
5247 * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call
5248 layout_type as it is already done by build_array_type.
5249 * tree.c (build_array_type): Layout the type even
5250
5251 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
5252
5253 * config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
5254
5255 2004-10-25 Alexandre Oliva <aoliva@redhat.com>
5256
5257 * config/frv/frv.md (movdi, movdf): Handle wide-constant splits
5258 with wider-than-32-bit HOST_WIDE_INTs.
5259
5260 2004-10-25 David Billinghurst <David.Billinghurst@riotinto.com>
5261
5262 * config/mips/mips.c(mips_output_filename): Remove unused
5263 array ltext_label_name
5264
5265 2004-10-24 Geoffrey Keating <geoffk@geoffk.org>
5266
5267 * config/rs6000/darwin.h (BLOCK_REG_PADDING): Define.
5268
5269 2004-10-25 Ben Elliston <bje@au.ibm.com>
5270
5271 * cfgcleanup.c (outgoing_edges_match): Fix typo in dump output.
5272
5273 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
5274
5275 * predict.c (predict_loops): Call scev_finalize instead of
5276 scev_reset.
5277
5278 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
5279
5280 * config/dbxcoff.h, config/dbxelf.h, config/libgloss.h,
5281 config/openbsd.h, config/mips/r3900.h, config/pdp11/pdp11.md,
5282 config/sh/ushmedia.h, config/sparc/elf.h,
5283 config/sparc/sp64-elf.h: Update copyright.
5284
5285 2004-10-24 Kazu Hirata <kazu@cs.umass.edu>
5286
5287 * stmt.c (expand_case): Handle the default label outside of
5288 the for loop. Remove code to handle a missing default label.
5289
5290 2004-10-23 Kazu Hirata <kazu@cs.umass.edu>
5291
5292 * dbxout.c (dbxout_function_decl): Don't use
5293 DBX_OUTPUT_FUNCTION_END.
5294 * system.h: Poison DBX_OUTPUT_FUNCTION_END.
5295 * doc/tm.texi (DBX_OUTPUT_FUNCTION_END): Remove.
5296
5297 2004-10-23 Andrew Pinski <pinskia@physics.uc.edu>
5298
5299 PR middle-end/17967
5300 * tree-cfg.c (remove_usless_stmts_cond): Don't Fold statement.
5301
5302 2004-10-23 Daniel Berlin <dberlin@dberlin.org>
5303
5304 * tree-ssa-dom.c (record_equality): Use loop depth to determine
5305 which way to record the equality as well.
5306 (loop_depth_of_name): New function.
5307
5308 2004-10-23 Eric Botcazou <ebotcazou@libertysurf.fr>
5309
5310 PR middle-end/17793
5311 * gimplify.c (gimplify_addr_expr) <VIEW_CONVERT_EXPR>: Look
5312 through the operand if it is a useless type conversion.
5313
5314 2004-10-23 Ben Elliston <bje@au.ibm.com>
5315
5316 * cfg.c (remove_edge): Use VEC_unordered_remove.
5317 (redirect_edge_succ): Likewise.
5318 (redirect_edge_pred): Likewise.
5319 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
5320
5321 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
5322
5323 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Don't access PTR
5324 beyond its end.
5325
5326 2004-10-22 Eric Christopher <echristo@redhat.com>
5327
5328 * config/rs6000/rs6000.c (setup_incoming_varargs): Align DFmode
5329 saves.
5330
5331 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
5332
5333 * config/rs6000/spe.md (spe_extendsfdf2): New.
5334 (movdf_e500_double): New.
5335 (spe_truncdfsf2): New.
5336 (spe_absdf2): New.
5337 (spe_nabsdf2): New.
5338 (spe_negdf2): New.
5339 (sub_adddf3): New.
5340 (spe_subdf3): New.
5341 (spe_muldf3): New.
5342 (spe_floatsidf2): New.
5343 (spe_floatunssidf2): New.
5344 (fix_truncdfsi2): New.
5345 (spe_fixuns_truncdfsi2): New.
5346
5347 * config/rs6000/rs6000.md (truncdfsf2): Change to expander.
5348 (fpr_truncdfsf2): New.
5349 (negdf2): Change to expander.
5350 (fpr_negdf2): New.
5351 (fpr_nabsdf2): Name pattern.
5352 (adddf3): Change to expander.
5353 (fpr_adddf3): Nem.
5354 (subdf3): Change to expander.
5355 (fpr_subdf3): New.
5356 (muldf3): Change to expander.
5357 (fpr_muldf3): New.
5358 (divdf3): Change to expander.
5359 (fpr_divdf3): New.
5360 (movdf_softfloat32): Change !TARGET_FPRS to TARGET_E500_SINGLE.
5361 (cmpdf): Allow for TARGET_E500_DOUBLE.
5362
5363 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
5364
5365 * c-semantics.c (re_push_stmt_list): Remove.
5366 * c-common.h: Remove the corresponding prototype.
5367
5368 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
5369
5370 * stmt.c (asm_op_is_mem_input): Remove.
5371 * tree.h: Remove the corresponding prototype.
5372
5373 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
5374
5375 * tree-gimple.c (is_gimple_constructor_elt): Remove.
5376 * tree-gimple.h: Remove the corresponding prototype.
5377
5378 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
5379
5380 * varasm.c (get_pool_mode_for_function, get_pool_offset):
5381 Remove.
5382 * rtl.h: Remove the corresponding prototypes.
5383
5384 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
5385
5386 * tree-cfg.c (thread_jumps_from_bb): Speed up by extracting
5387 edge information when we commit ourselves to threading a
5388 particular jump.
5389
5390 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
5391
5392 * tree-cfg.c (thread_jumps): Speed up by putting basic blocks
5393 into worklist instead of their indexes.
5394
5395 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
5396
5397 * alias.c, basic-block.h, cgraphunit.c, combine.c, domwalk.h,
5398 final.c, gengtype.c, genpreds.c, ggc-page.c, insn-notes.def,
5399 lambda-code.c, loop-unroll.c, modulo-sched.c, pointer-set.c,
5400 pretty-print.c, ra-colorize.c, sbitmap.c, tree-complex.c,
5401 tree-data-ref.c, tree-dfa.c, tree-inline.c, tree-into-ssa.c,
5402 tree-scalar-evolution.c, tree-ssa-dom.c,
5403 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
5404 tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-threadupdate.c,
5405 tree-vectorizer.c, vec.h: Fix comment formatting.
5406
5407 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
5408
5409 * dwarf.h, gthr-dce.h, gthr-single.h, gthr-solaris.h, gthr.h,
5410 libfuncs.h, libgcc2.h, stab.def, tsystem.h: Update copyright.
5411
5412 2004-10-22 Kazu Hirata <kazu@cs.umass.edu>
5413
5414 * config/ptx4.h, config/mcore/mcore-pe.h,
5415 config/rs6000/eabi.h, config/vax/elf.h: Update copyright.
5416
5417 2004-10-22 Peter Barada <peter@the-baradas.com>
5418
5419 * config/m68k/m68k.h (HARD_REGNO_RENAME_OK): New macro.
5420 * config/m68k/m68k.c (m68k_hard regno_rename_ok): Disallow
5421 renaming of non-live registers in interrupt functions.
5422 * config/m68k/m68k-protos.h (m68k_hard_regno_rename_ok): Add prototype.
5423
5424 2004-10-22 Zdenek Dvorak <dvorakz@suse.cz>
5425
5426 * tree-ssa-loop-niter.c (inverse): Count in HOST_WIDE_INT if possible.
5427 Use integer for loop counter.
5428 (num_ending_zeros): New function.
5429 (number_of_iterations_cond): Use num_ending_zeros.
5430
5431 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
5432
5433 * config.gcc: Add support for --enable-e500_double.
5434
5435 * config/rs6000/e500-double.h: New file.
5436
5437 * config/rs6000/rs6000.h: Define TARGET_E500_SINGLE and
5438 TARGET_E500_DOUBLE.
5439
5440 * config/rs6000/eabi.h: Define TARGET_E500_SINGLE and
5441 TARGET_E500_DOUBLE.
5442
5443 * config/rs6000/linuxspe.h: Same.
5444
5445 * doc/invoke.texi (Option Summary): Document new options for
5446 mfloat-gprs.
5447 (RS/6000 and PowerPC Options): Same.
5448
5449 * config/rs6000/rs6000.c (rs6000_parse_float_gprs_option): New
5450 function.
5451 (rs6000_override_options): Use it. Use
5452 SUB3TARGET_OVERRIDE_OPTIONS.
5453 Add 8548 to processor_target_table.
5454 (rs6000_legitimate_address): Handle e500 doubles.
5455 (rs6000_legitimize_address): Same.
5456 (rs6000_legitimize_reload_address): Same.
5457 (rs6000_hard_regno_nregs): Same.
5458 (spe_func_has_64bit_regs_p): Same.
5459 (emit_frame_save): Same.
5460 (gen_frame_mem_offset): Same.
5461 (rs6000_dwarf_register_span): Same.
5462 (rs6000_generate_compare): Same.
5463 (easy_fp_constant): Same.
5464 (legitimate_offset_address_p): Same.
5465
5466 * config/rs6000/spe.md: (cmdfeq_gpr): New.
5467 (tstdfeq_gpr): New.
5468 (cmpdfgt_gpr): New.
5469 (tstdfgt_gpr): New.
5470 (tstdfgt_gpr): New.
5471 (cmpdflt_gpr): New.
5472 (tstdflt_gpr): New.
5473 Add new constants.
5474
5475 2004-10-21 Giovanni Bajo <giovannibajo@gcc.gnu.org>
5476
5477 * config/arc/lib1funcs.asm (___umulsidi3): Fix typo.
5478
5479 2004-10-21 Zack Weinberg <zack@codesourcery.com>
5480
5481 * dbxout.c: Remove unnecessary #undefs.
5482 (GDB_INV_REF_REGPARM_STABS_LETTER, DBX_MEMPARM_STABS_LETTER)
5483 (FILE_NAME_JOINER, STABS_GCC_MARKER): Remove; fold sole
5484 definition into use sites.
5485 (cwd): Make local to dbxout_init.
5486 (dbxout_init): Restructure cwd-using logic for clarity. Use
5487 IS_DIR_SEPARATOR.
5488 * xcoffout.h (DBX_OUTPUT_GCC_MARKER): Definition of
5489 STABS_GCC_MARKER folded in here.
5490 * system.h: Poison now-unused macros.
5491 * doc/tm.texi: Remove documentation of now-unused macros.
5492
5493 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
5494
5495 PR c/17538
5496 * c-opts.c (push_command_line_include): Use the current file
5497 name instead of the main one.
5498
5499 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu>
5500
5501 PR objc/17923
5502 * tree.c (staticp): A CONST_DECL has static storage if either
5503 TREE_STATIC or DECL_EXTERNAL is set.
5504 * c-decl.c (pushdecl_top_level): Accept CONST_DECLs which can
5505 have null names.
5506
5507 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
5508
5509 * expr.c (store_expr): Remove dont_store_target.
5510
5511 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
5512
5513 * tree-cfg.c (thread_jumps): Speed up by using a worklist.
5514
5515 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
5516
5517 * tree-cfg.c (thread_jumps): Move a part of it to ...
5518 (thread_jumps_from_bb): ... here.
5519
5520 2004-10-21 David Edelsohn <edelsohn@gnu.org>
5521
5522 * dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument.
5523 * xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE).
5524
5525 2004-10-21 Kazu Hirata <kazu@cs.umass.edu>
5526
5527 * expr.c (store_expr): Clean up by renaming want_value to
5528 call_param_p.
5529
5530 2004-10-21 Kaz Kojima <kkojima@gcc.gnu.org>
5531
5532 * config/sh/linux-unwind.h (sh_fallback_frame_state): Don't
5533 fixup pc here.
5534
5535 2004-10-21 Aldy Hernandez <aldyh@redhat.com>
5536
5537 PR 18004.
5538 * expmed.c (store_bit_field): Pass original 'value' before
5539 recursing.
5540
5541 2004-10-21 Nicolas Pitre <nico@cam.org>
5542
5543 * config/arm/ieee754-sf.S: Large speed improvements. Fix NAN handling.
5544 * config/arm/ieee754-df.S: Ditto.
5545
5546 2004-10-20 Zack Weinberg <zack@codesourcery.com>
5547
5548 * dbxout.c (asmfile): Delete. All uses changed to asm_out_file.
5549 (DBX_BLOCKS_FUNCTION_RELATIVE, DBX_LINES_FUNCTION_RELATIVE):
5550 Default to 0.
5551 (dbxout_source_line): Use DBX_OUTPUT_SOURCE_LINE when defined.
5552 When it is not, but DBX_LINES_FUNCTION_RELATIVE is true, emit
5553 an internal label and an N_SLINE .stabn whose value is the
5554 difference between that label and the function entry label.
5555 (dbxout_finish): If DBX_OUTPUT_MAIN_SOURCE_FILE_END is not defined,
5556 but DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END is, emit a
5557 label and an N_SO stab with an empty string referring to it.
5558 (dbx_output_lbrac, dbx_output_rbrac): Use if statement instead
5559 of #ifdef directive to test DBX_BLOCKS_FUNCTION_RELATIVE.
5560 (dbxout_type_methods, dbxout_symbol): Remove #if 0 block.
5561 (dbxout_prepare_symbol): Remove #ifdef WINNING_GDB block, this
5562 macro is never defined.
5563 * sdbout.c (sdbout_source_line_counter): Delete.
5564 (PUT_SDB_SRC_FILE): Delete. Uses replaced with sole definition.
5565 (sdbout_source_line): Use SDB_OUTPUT_SOURCE_LINE, which takes
5566 only two arguments.
5567 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Rename ASM_OUTPUT_LINE.
5568
5569 * config/dbxcoff.h, config/dbxelf.h: Remove unncessary #undefs.
5570 * config/c4x/c4x.h, config/pa/pa.h: Remove unnecessary macro
5571 definitions (identical to default).
5572 * config/darwin.h, config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
5573 * config/h8300/coff.h, config/pa/som.h, config/sh/elf.h:
5574 Define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END, not
5575 DBX_OUTPUT_MAIN_SOURCE_FILE_END.
5576 * config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
5577 * config/mcore/mcore-pe.h, config/pa/som.h, config/sh/elf.h:
5578 Define DBX_LINES_FUNCTION_RELATIVE, not ASM_OUTPUT_SOURCE_LINE.
5579 * config/alpha/alpha-protos.h: Don't prototype alpha_output_lineno.
5580 * config/alpha/alpha.c: Move declaration of num_source_filenames up.
5581 (alpha_start_function): Use SDB_OUTPUT_SOURCE_LINE.
5582 (sym_lineno): Delete.
5583 (alpha_output_filename): Do not emit N_SOL stabs here. Remove
5584 now-unused variable.
5585 (alpha_output_lineno): Delete.
5586 * config/mips/mips-protos.h: Don't prototype mips_output_lineno.
5587 * config/mips/mips.c (mips_output_filename): Don't use
5588 ASM_OUTPUT_FILENAME. Don't emit N_SOL stabs here.
5589 (mips_output_lineno): Delete.
5590 (mips_output_function_prologue: Use SDB_OUTPUT_SOURCE_LINE.
5591 * config/alpha/alpha.h: Define DBX_OUTPUT_SOURCE_LINE and
5592 SDB_OUTPUT_SOURCE_LINE, not ASM_OUTPUT_SOURCE_LINE.
5593 * config/mips/mips.h: Likewise. Don't define ASM_OUTPUT_FILENAME.
5594 * config/mips/sdb.h: Use SDB_OUTPUT_SOURCE_LINE.
5595 * config/avr/avr.h: Don't define ASM_OUTPUT_SOURCE_LINE.
5596 * config/mmix/mmix.h: Likewise.
5597 * config/mmix/mmix.c (mmix_asm_output_source_line): Delete.
5598 * config/mmix/mmix-protos.h: Don't prototype it.
5599 * config/alpha/unicosmk.h: Also #undef PREFERRED_DEBUGGING_TYPE;
5600 no need to #undef ASM_OUTPUT_SOURCE_LINE.
5601 * config/arm/aout.h: Remove RISCiX-specific definition of
5602 DBX_OUTPUT_MAIN_SOURCE_FILENAME.
5603 * config/m32r/m32r.h: Define DBX_OUTPUT_SOURCE_LINE, not
5604 ASM_OUTPUT_SOURCE_LINE.
5605 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Rename to
5606 DBX_OUTPUT_SOURCE_LINE. Don't use current_function_func_begin_label.
5607 * config/vax/elf.h: No need to define DBX_OUTPUT_FUNCTION_END.
5608
5609 * doc/tm.texi: Update.
5610
5611 2004-10-20 Richard Henderson <rth@redhat.com>
5612
5613 * tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
5614
5615 2004-10-20 Kelley Cook <kcook@gcc.gnu.org>
5616
5617 * configure.ac: Revert my previous patch.
5618 * configure: Regenerate.
5619
5620 2004-10-20 Ben Elliston <bje@au.ibm.com>
5621
5622 * config/rs6000/rs6000.c
5623 (rs6000_va_start): Use build_va_arg_indirect_ref.
5624 (rs6000_gimplify_va_arg): Likewise.
5625
5626 2004-10-20 Bryce McKinlay <mckinlay@redhat.com>
5627
5628 PR java/15575
5629 * configure.ac: Declare AM_LANGINFO_CODESET.
5630 * aclocal.m4: Define AM_LANGINFO_CODESET.
5631 * configure, config.in: Rebuilt.
5632
5633 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
5634
5635 * expr.c (store_expr): Remove code that is run when
5636 want_value & 1 is nonzero.
5637
5638 2004-10-20 Mark Mitchell <mark@codesourcery.com>
5639
5640 * gthr-posix.h (__gthread_active_p): Use __extension__ around cast
5641 from function pointer to void *.
5642
5643 2004-10-20 Kaz Kojima <kkojima@gcc.gnu.org>
5644
5645 PR target/18032
5646 * config/sh/sh.c (sh_expand_epilogue): Emit a blockage insn before
5647 the frame pointer adjustment when exception handling is enabled.
5648
5649 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
5650
5651 * stor-layout.c: Fix a comment typo.
5652
5653 2004-10-20 Kazu Hirata <kazu@cs.umass.edu>
5654
5655 * expr.c (store_field): Remove two arguments value_mode and
5656 unsignedp.
5657 (expand_assignment, store_constructor_field,
5658 expand_expr_real_1): Adjust calls to store_field.
5659
5660 2004-10-18 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
5661
5662 * config/arc/lib1funcs.asm (___umulsidi3): Correct usage of flags.
5663
5664 PR target/17317
5665 * config/arc/arc.h (REGNO_OK_FOR_BASE_P,REGNO_OK_FOR_INDEX_P,
5666 REG_OK_FOR_BASE, REG_OK_FOR_INDEX): Consider blink(r31) as a valid
5667 base and index register for loads.
5668
5669 * config/arc/t-arc: Fix multilib handling.
5670
5671 2004-10-20 Hans-Peter Nilsson <hp@bitrange.com>
5672
5673 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
5674 don't inspect BLOCK_FOR_INSN for barriers.
5675 * emit-rtl.c (emit_barrier_before): Revert last change.
5676 (emit_barrier_after, emit_barrier): Ditto.
5677
5678 * doc/extend.texi (Extended Asm): Warn and provide example
5679 solution for using a call-clobbered asm register.
5680 (Local Reg Vars): Similar. Cross-reference example.
5681
5682 2004-10-19 Andrew Pinski <pinskia@physics.uc.edu>
5683
5684 * tree-cfg.c (group_case_labels): Look at the second to last
5685 case statement for combing with the default case.
5686
5687 2004-10-19 Richard Hendeson <rth@redhat.com>
5688
5689 PR 17962
5690 * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
5691
5692 2004-10-19 Richard Hendeson <rth@redhat.com>
5693
5694 * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
5695 succeeds, only expand the result.
5696
5697 2004-10-19 Richard Hendeson <rth@redhat.com>
5698
5699 PR middle-end/17885
5700 * tree.c (recompute_tree_invarant_for_addr_expr): Always poll address
5701 of INDIRECT_REF.
5702
5703 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
5704
5705 * tree-cfg.c (thread_jumps): Use a do-while loop instead of a
5706 loop with goto.
5707
5708 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
5709
5710 * expr.c (expand_assignment): Remove the last argument.
5711 Change the return type to void.
5712 * expr.h: Update the prototype of expand_assignment.
5713 * function.c (assign_parm_setup_reg): Update a call to
5714 expand_assignment.
5715 * stmt.c (expand_asm_expr): Likewise.
5716
5717 2004-10-19 Kazu Hirata <kazu@cs.umass.edu>
5718
5719 * expr.c (expand_expr_real_1) <MODIFY_EXPR>: Remove
5720 unnecessary assignments to temp. Return const0_rtx.
5721
5722 2004-10-19 Kaz Kojima <kkojima@gcc.gnu.org>
5723
5724 * config/sh/sh.c (sh5_schedule_saves): Fix typo.
5725
5726 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
5727
5728 * configure.ac (powerpc-*-darwin*): Require assembler to support
5729 .machine directive.
5730 * configure: Regenerate.
5731
5732 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
5733
5734 * reload1.c (ior_hard_reg_set): Remove.
5735 (finish_spills): Use IOR_HARD_REG_SET instead of
5736 ior_hard_reg_set.
5737
5738 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
5739
5740 * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
5741 the currently visited word to right.
5742
5743 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
5744
5745 PR middle-end/18045
5746 * expmed.c (expand_smod_pow2): Handle modes whose size
5747 is greater than that of HOST_WIDE_INT.
5748
5749 2004-10-18 Ziemowit Laski <zlaski@apple.com>
5750
5751 * c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.
5752
5753 2004-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
5754 Roger Sayle <roger@eyesopen.com>
5755
5756 PR middle-end/17813
5757 * dojump.c (discard_pending_stack_adjust): New function.
5758 (clear_pending_stack_adjust): Call it.
5759 * expr.h (discard_pending_stack_adjust): Declare it.
5760 * explow.c (emit_stack_save): Emit pending stack adjustments
5761 before saving the stack pointer.
5762 (emit_stack_restore): Discard pending stack adjustments before
5763 restoring the stack pointer.
5764
5765 2004-10-18 Richard Henderson <rth@redhat.com>
5766
5767 * c-common.c (handle_mode_attribute): Allow scalar->vector
5768 type changes yet.
5769
5770 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
5771
5772 * expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
5773 value to expand_assignment.
5774
5775 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
5776
5777 * tree-cfg.c (cleanup_tree_cfg): Don't iterate on
5778 thread_jumps.
5779 (thread_jumps): Iterate until no new forwarder block arises.
5780
5781 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
5782
5783 * tree-cfg.c (tree_forwarder_block_p): Don't set forwardable.
5784 (thread_jumps): Use forwardable as cache of
5785 tree_forwarder_block_p throughout the function.
5786
5787 2004-10-18 Andreas Krebbel <krebbel1@de.ibm.com>
5788
5789 * cfg.c (dump_flow_info): Remove redundant dump of reg life info.
5790
5791 2004-10-18 Andrew Pinski <pinskia@physics.uc.edu>
5792
5793 PR middle-end/15014
5794 PR middle-end/16973
5795 * tree-cfg.c (remove_bb): If we have a label expression in the
5796 basic block and the label we have taken the address, move the
5797 label expression to the basic block which is previous in the
5798 linked list.
5799 (tree_verify_flow_info): Fix printing out the label name of the
5800 problematic label expression.
5801
5802 2004-10-18 Pat Haugen <pthaugen@us.ibm.com>
5803
5804 PR rtl-optimization/18002
5805 * simplify-rtx.c (mode_signbit_p): Externalize function...
5806 * rtl.h (mode_signbit_p): ... to here.
5807 * combine.c (simplify_shift_const): Recognize PLUS signbit as
5808 canonical form of XOR signbit and move to outer op.
5809
5810 2004-10-18 Diego Novillo <dnovillo@redhat.com>
5811
5812 * tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
5813 Update all callers.
5814 * tree-ssa.c (replace_immediate_uses): Call bsi_for_stmt.
5815 Don't call fold_stmt more than once, use bsi_replace.
5816
5817 2004-10-18 Diego Novillo <dnovillo@redhat.com>
5818
5819 PR tree-optimization/17656
5820 * tree-ssa.c (replace_immediate_uses): When replacing a
5821 constant, if the call to fold_stmt produced a different
5822 statement, get an appropriate statement pointer by scanning
5823 STMT's basic block.
5824
5825 2004-10-18 Richard Henderson <rth@redhat.com>
5826
5827 * pointer-set.c (hash1): Don't use libm functions in fallback case.
5828
5829 2004-10-18 H.J. Lu <hongjiu.lu@intel.com>
5830
5831 PR bootstrap/17684
5832 * Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
5833 (stage1-start): Remove and copy libunwind.a and
5834 libunwind*$(SHLIB_EXT) instead of libunwind*.
5835 (stage2-start): Likewise.
5836 (stage3-start): Likewise.
5837 (stage4-start): Likewise.
5838 (stageprofile-start): Likewise.
5839 (stagefeedback-start): Likewise.
5840
5841 * config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
5842 the shared library to be created and don't remove the existing
5843 shared library.
5844 * config/arm/t-netbsd (SHLIB_LINK): Likewise.
5845 * config/i386/t-nwld (SHLIB_LINK): Likewise.
5846 * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
5847 * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
5848 * config/sh/t-linux (SHLIB_LINK): Likewise.
5849 * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
5850 * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
5851 * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
5852 * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
5853
5854 * mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
5855 files.
5856
5857 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
5858
5859 * basic-block.h (reg_set_iterator): New.
5860 (EXECUTE_IF_SET_IN_REG_SET): Make it iterator style.
5861 (EXECUTE_IF_AND_COMPL_IN_REG_SET): Likewise.
5862 (EXECUTE_IF_AND_IN_REG_SET): Likewise.
5863 * caller-save.c (save_call_clobbered_regs): Adjust to the new
5864 style.
5865 * cfgcleanup.c (thread_jump): Likewise.
5866 * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
5867 * conflict.c (conflict_graph_compute): Likewise.
5868 * flow.c (verify_local_live_at_start, update_life_info,
5869 initialize_uninitialized_subregs, propagate_one_insn,
5870 init_propagate_block_info, free_propagate_block_info,
5871 propagate_block, dump_regset): Likewise.
5872 * global.c (global_conflicts): Likewise.
5873 * graph.c (start_bb): Likewise.
5874 * local-alloc.c (update_equiv_regs): Likewise.
5875 * loop.c (load_mems): Likewise.
5876 * reload1.c (compute_use_by_pseudos, order_regs_for_reload,
5877 find_reg, finish_spills): Likewise.
5878 * resource.c (mark_target_live_regs): Likewise.
5879 * sched-deps.c (sched_analyze_insn): Likewise.
5880 * sched-rgn.c (sched-rgn.c): Likewise.
5881 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
5882
5883 2004-10-18 Jakub Jelinek <jakub@redhat.com>
5884
5885 * config/i386/i386.md (addqi_1_slp): Test for incdec_operand
5886 operand 1 instead of 2
5887
5888 2004-10-18 Kazu Hirata <kazu@cs.umass.edu>
5889
5890 * loop-unroll.c: Fix comment typos.
5891
5892 2004-10-18 Revital Eres <eres@il.ibm.com>
5893
5894 * Makefile.in (loop-unroll.o): Add VARRAY_H dependency.
5895 * loop-unroll.c: Include varray.h.
5896 (struct var_to_expand, struct opt_info): Rename split_ivs_info to
5897 opt_info and expand it to support variable expansion.
5898 (analyze_insns_in_loop): Rename analyze_ivs_to_split and
5899 expand it to support variable expansion.
5900 (pt_info_start_duplication): Rename si_info_start_duplication.
5901 (apply_opt_in_copies): Rename split_ivs_in_copies and add support
5902 to the variable expansion optimization.
5903 (free_opt_info): Rename free_si_info.
5904 (analyze_insn_to_expand_var, referenced_in_one_insn_in_loop_p,
5905 expand_var_during_unrolling, insert_var_expansion_initialization,
5906 combine_var_copies_in_loop_exit, release_var_copies,
5907 get_expansion): New functions.
5908 (peel_loop_completely, unroll_loop_constant_iterations,
5909 unroll_loop_runtime_iterations, peel_loop_simple,
5910 unroll_loop_stupid): Change uses of struct si_info
5911 to struct opt_info
5912 and add uses of fvariable-expansion-in-unroller flag.
5913 * params.def: Add parameter to restrict the number of expansions.
5914 * params.h: (MAX_VARIABLE_EXPANSIONS): New define to restrict
5915 the number of expansions.
5916 * common.opt: (fvariable-expansion-in-unroller): New flag.
5917 * doc/invoke.texi: (fvariable-expansion-in-unroller): Document.
5918
5919 2004-10-18 Danny Smith <dannysmith@users.sourceforge.net>
5920
5921 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
5922 __GXX_MERGED_TYPEINFO_NAMES to 0.
5923
5924 2004-10-17 Hans-Peter Nilsson <hp@bitrange.com>
5925
5926 * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
5927 handle barriers in a bb by checking that it points to a NULL bb.
5928 * emit-rtl.c (emit_barrier_before): Set BLOCK_FOR_INSN to NULL.
5929 (emit_barrier_after, emit_barrier): Ditto.
5930
5931 2004-10-18 Joseph S. Myers <jsm@polyomino.org.uk>
5932
5933 * doc/extend.texi (Attribute Syntax): Clarify details of
5934 attributes on parameters.
5935
5936 2004-10-17 Zdenek Dvorak <dvorakz@suse.cz>
5937
5938 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Move checking out of
5939 loop.
5940
5941 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
5942
5943 Revert:
5944 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
5945
5946 * c-typeck.c (default_function_array_conversion): Always create
5947 &a[0] for array types.
5948 (build_unary_op): Do not fold &a[x] into a + x.
5949
5950 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
5951
5952 PR middle-end/17925
5953 * cfgexpand.c (expand_gimple_cond_expr): Emit line notes for next basic
5954 block if there is a goto with a locus.
5955
5956 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
5957
5958 * config/elfos.h, config/gofast.h, config/interix.h,
5959 config/netbsd.h, config/svr3.h, config/vxworks.h,
5960 config/alpha/alpha-modes.def, config/alpha/alpha-protos.h,
5961 config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
5962 config/alpha/netbsd.h, config/arm/arm-modes.def,
5963 config/arm/unknown-elf.h, config/c4x/c4x-modes.def,
5964 config/cris/aout.h, config/frv/frv-modes.def,
5965 config/i386/beos-elf.h, config/i386/gas.h,
5966 config/i386/i386-coff.h, config/i386/i386-modes.def,
5967 config/i386/linux.h, config/i386/linux64.h,
5968 config/i386/mingw32.h, config/i386/netbsd-elf.h,
5969 config/i386/netbsd64.h, config/i386/sco5.h,
5970 config/i386/sol2.h, config/i386/uwin.h, config/i860/i860.md,
5971 config/ia64/ia64-modes.def, config/ia64/itanium1.md,
5972 config/ia64/itanium2.md, config/m68k/m68k-modes.def,
5973 config/mips/mips-modes.def, config/mips/sdb.h,
5974 config/mips/vr.h, config/mips/vxworks.h,
5975 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
5976 config/pa/pa32-linux.h, config/rs6000/40x.md,
5977 config/rs6000/7450.md, config/rs6000/8540.md,
5978 config/rs6000/linuxspe.h, config/rs6000/power4.md,
5979 config/rs6000/rs6000-modes.def, config/rs6000/rtems.h,
5980 config/rs6000/spe.h, config/s390/2064.md, config/s390/linux.h,
5981 config/s390/s390-modes.def, config/sh/elf.h,
5982 config/sh/sh-modes.def, config/sh/sh64.h,
5983 config/sparc/ultra1_2.md, config/sparc/ultra3.md,
5984 config/stormy16/stormy16.md, config/v850/v850-protos.h,
5985 config/vax/vax.md: Update copyright.
5986
5987 2004-10-17 Kazu Hirata <kazu@cs.umass.edu>
5988
5989 * expr.c (expand_expr_real_1): Remove an obsolete comment.
5990
5991 2004-10-17 Andrew Pinski <pinskia@physics.uc.edu>
5992
5993 * c-typeck.c (default_function_array_conversion): Always create
5994 &a[0] for array types.
5995 (build_unary_op): Do not fold &a[x] into a + x.
5996
5997 2004-10-17 Jakub Jelinek <jakub@redhat.com>
5998
5999 * pointer-set.c (hash1): Use integer part of 2^64 / phi
6000 instead 2^32 / phi if long is 64-bit.
6001
6002 2004-10-17 Joseph S. Myers <jsm@polyomino.org.uk>
6003
6004 * c-common.h (enum rid): Remove RID_PTRBASE, RID_PTREXTENT and
6005 RID_PTRVALUE.
6006 * c-parse.in (PTR_VALUE, PTR_BASE, PTR_EXTENT): Remove %token
6007 declarations.
6008 (reswords): Remove __ptrbase, __ptrbase__, __ptrextent,
6009 __ptrextent__, __ptrvalue and __ptrvalue__.
6010 (rid_to_yy): Remove RID_PTRBASE, RID_PTREXTENT and RID_PTRVALUE
6011 entries.
6012
6013 2004-10-16 Dale Johannesen <dalej@apple.com>
6014
6015 * c-common.c (c_common_get_alias_set): Use GGC for type_hash_table.
6016
6017 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
6018
6019 PR tree-optimization/17766
6020 * basic-block.h (enum dom_state): DOM_CONS_OK removed.
6021 (dom_info_available_p): Declare.
6022 * cfghooks.c (split_block, make_forwarder_block): Use
6023 dom_info_available_p.
6024 * dominance.c (compute_dom_fast_query, calculate_dominance_info,
6025 free_dominance_info, verify_dominators): Ditto.
6026 (dom_info_available_p): New function.
6027 * tree-cfg.c (cleanup_control_expr_graph): Free dominance information.
6028 (thread_jumps): Use dom_info_available_p.
6029 * tree-complex.c (expand_complex_div_wide): Ditto.
6030 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
6031
6032 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
6033
6034 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
6035 (find_best_candidate): Take also important candidates into account.
6036 (find_optimal_iv_set): Initialize important_candidates bitmap.
6037
6038 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
6039
6040 PR tree-optimization/17560
6041 * predict.c (tree_estimate_probability): Mark irreducible
6042 loops.
6043
6044 2004-10-16 Zdenek Dvorak <dvorakz@suse.cz>
6045
6046 PR rtl-optimization/17723
6047 * cfgcleanup.c (merge_memattrs): Handle case when
6048 MEM_SIZE == NULL_RTX.
6049
6050 2004-10-15 Andrew Pinski <pinskia@physics.uc.edu>
6051
6052 * toplev.c (dump_file_name): Change type to be const.
6053
6054 2004-10-15 Joseph S. Myers <jsm@polyomino.org.uk>
6055
6056 * c-typeck.c (build_compound_expr, build_c_cast): Don't try to use
6057 non_lvalue to stop something being a null pointer constant.
6058
6059 2004-10-15 Aldy Hernandez <aldyh@redhat.com>
6060
6061 * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
6062 available for TARGET_FPRS.
6063 (FUNCTION_VALUE_REGNO_P): Same.
6064
6065 2004-10-15 Geoffrey Keating <geoffk@apple.com>
6066
6067 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6068 -maltivec in same style as other ISA options.
6069
6070 2004-10-15 Jon Grimm <jgrimm2@us.ibm.com>
6071
6072 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
6073 definition.
6074
6075 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
6076
6077 * bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h,
6078 collect2.h, conflict.c, coretypes.h, coverage.h, errors.h,
6079 gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c,
6080 genconstants.c, gengenrtl.c, genmodes.c, genpeep.c,
6081 gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c,
6082 gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c,
6083 lists.c, machmode.def, mips-tdump.c, opts.h, params.c,
6084 predict.def, predict.h, protoize.c, reload.h, resource.h,
6085 rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c,
6086 tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c,
6087 unwind-sjlj.c, value-prof.h: Update copyright.
6088
6089 2004-10-15 Kazu Hirata <kazu@cs.umass.edu>
6090
6091 * pointer-set.c, tree-vectorizer.c: Fix comment typos.
6092
6093 2004-10-15 Diego Novillo <dnovillo@redhat.com>
6094
6095 * tree-optimize.c (execute_one_pass): Stop timer right after
6096 executing the pass.
6097
6098 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
6099
6100 Revert:
6101 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
6102 PR middle-end/17967
6103 Revert:
6104 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
6105 (remove_useless_stmts_1): Fold trees we know how to fold.
6106
6107 2004-10-14 David Edelsohn <edelsohn@gnu.org>
6108
6109 * configure.ac: Add .machine power4 directive when testing for
6110 mfcr field.
6111 * configure: Regenerate.
6112
6113 2004-10-14 Geoffrey Keating <geoffk@apple.com>
6114
6115 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.
6116
6117 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
6118
6119 * tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor
6120 always.
6121
6122 2004-10-14 Daniel Jacobowitz <dan@codesourcery.com>
6123
6124 * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
6125 for 'f' if !TARGET_FPRS.
6126
6127 2004-10-14 Richard Henderson <rth@redhat.com>
6128
6129 PR debug/14492
6130 * dwarf2out.c (loc_descriptor_from_tree_1): Handle FIX_*_EXPR.
6131
6132 2004-10-14 Richard Henderson <rth@redhat.com>
6133
6134 PR c/17023
6135 * c-decl.c (store_parm_decls_oldstyle): Care for parameter type
6136 as error_mark_node.
6137 * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null
6138 instaed of current_function_decl non-null.
6139
6140 2004-10-14 Matt Austern <austern@apple.com>
6141
6142 * pointer-set.c: New file, special-purpose hash table.
6143 * pointer-set.h: New file.
6144 * tree.h (struct pointer_set_t): Declare as opaque type.
6145 (tree_walk): Last argument is pointer_set_t* now.
6146 * tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
6147 (walk_type_fields):
6148 (walk_tree): Convert from htab_t to pointer_set_t for keeping
6149 track of which nodes have already been visited.
6150 (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
6151 * cgraphunit.c (cgraph_create_edges): Likewise.
6152 (cgraph_characterize_statics_local): Likewise.
6153 * tree-dfa.c (collect_dfa_stats): Likewise.
6154 * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
6155 pointer_set_t* now.
6156 * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
6157 * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
6158 of walk_subtrees is pointer_set_t* now.
6159 * Makefile.in (OBJS-common): add pointer-set.o
6160 (tree-inline.o): Depends on pointer-set.h
6161 (tree-dfa.o): Likewise
6162 (cgraphunit.o): Likewise
6163
6164 2004-10-14 Geoffrey Keating <geoffk@apple.com>
6165
6166 * config/rs6000/darwin.h (ASM_SPEC): Delete.
6167 (TARGET_ASM_FILE_START): Define.
6168 * config/darwin.h (ASM_SPEC): Define.
6169 * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply
6170 -mlong-double-128, it's the default. Update comment about reason
6171 for force_cpusubtype_ALL.
6172 * config/rs6000/darwin-vecsave.asm: Supply .machine.
6173 * config/rs6000/darwin-world.asm: Likewise.
6174 * config/rs6000/rs6000.c (rs6000_darwin_file_start): New.
6175 (symbolic_operand): Delete #if 0ed code.
6176
6177 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
6178
6179 * stmt.c (add_case_node): Make sure that we have integer
6180 constant before calling tree_int_cst_compare.
6181
6182 2004-10-14 Andrew Pinski <pinskia@physics.uc.edu>
6183
6184 PR middle-end/17967
6185 Revert:
6186 * tree-cfg.c (remove_usless_stmts_cond): Fold statement.
6187 (remove_useless_stmts_1): Fold trees we know how to fold.
6188
6189 2004-10-14 Joseph S. Myers <joseph@codesourcery.com>
6190
6191 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
6192 config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
6193 -m64.
6194
6195 2004-10-14 Ulrich Weigand <uweigand@de.ibm.com>
6196
6197 * reload.c (find_reloads): When reloading a PLUS with constant
6198 operand, make sure the constant is pushed to the constant pool
6199 if required.
6200 * config/s390/s390.c (s390_secondary_input_reload_class): Remove
6201 reload bug workaround.
6202 (s390_expand_plus_operand): Likewise.
6203
6204 2004-10-14 David Edelsohn <edelsohn@gnu.org>
6205
6206 * opts.c (common_handle_option): Do not enable
6207 flag_speculative_prefetching for -fprofile-generate/use.
6208
6209 2004-10-14 Devang Patel <dpatel@apple.com>
6210
6211 PR 17635
6212 * tree-if-conv.c (process_phi_nodes): Process latch block.
6213 (combine_blocks): Process latch block and update loop structure.
6214
6215 2004-10-14 Olga Golovanevsky <olga@il.ibm.com>
6216
6217 * tree-vectorizer.c (vect_generate_tmps_on_preheader):
6218 (vect_update_ivs_after_vectorizer):
6219 (vect_transform_for_unknown_loop_bound):
6220 (tree_duplicate_loop_to_edge):
6221 (allocate_new_names):
6222 (rename_use_op):
6223 (rename_def_op):
6224 (rename_variables_in_bb):
6225 (free_new_names):
6226 (rename_variables_in_loop):
6227 (copy_phi_nodes):
6228 (update_phis_for_duplicate_loop):
6229 (update_phi_nodes_for_guard):
6230 (make_loop_iterate_ntimes):
6231 (tree_duplicate_loop_to_edge_cfg):
6232 (add_loop_guard):
6233 (vect_analyze_loop_with_symbolic_num_of_iters):
6234 (verify_loop_for_duplication):
6235 (vect_gen_niters_for_prolog_loop):
6236 (vect_update_niters_after_peeling):
6237 (vect_update_inits_of_dr):
6238 (vect_update_inits_of_drs):
6239 (vect_build_loop_niters):
6240 (vect_do_peeling_for_alignment): New functions.
6241 (vect_transform_loop): Add unknown and known but indivisible loop
6242 bound support; add peeling for unalignment support.
6243 (vect_analyze_loop_form): Support symbolic number of iterations.
6244 (vect_transform_loop_bound): New input parameter.
6245 (vect_get_loop_niters): Change input parameter type.
6246 (new_loop_vec_info): LOOP_VINFO_NITERS is tree now.
6247 (vectorizable_store): Allow unaligned access.
6248 (vectorize_loops): Add rewrite_into_loop_closed_ssa.
6249 (vect_analyze_data_refs_alignment): Allowed one unaligned
6250 store.
6251 * tree-vectorizer.h (LOOP_VINFO_NITERS_KNOWN_P): Redefined
6252 to use tree.
6253 (LOOP_VINFO_INT_NITERS): New macro.
6254 (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): New define.
6255 (do_peeling_for_alignment):
6256 (unaligned_drs): New members of _loop_vec_info.
6257 (LOOP_DO_PEELING_FOR_ALIGNMENT): New macro.
6258
6259 2004-10-14 Ranjit Mathew <rmathew@hotmail.com>
6260
6261 * tree.h (TREE_STRING_POINTER): Wrap in "const char *".
6262 (struct tree_string): Remove "const" qualifier for "str".
6263
6264 2004-10-14 Ira Rosen <irar@il.ibm.com>
6265
6266 * tree-vectorizer.c (vect_analyze_data_refs): Call
6267 vect_get_base_and_bit_offset to get memory tag for array ref.
6268 (vect_create_addr_base_for_vector_ref): Remove redundant checks.
6269
6270 2004-10-14 Richard Earnshaw <rearnsha@arm.com>
6271
6272 * configure.ac: Use $LN_S for creating symlinks (not $LN).
6273 * configure: Regenerate.
6274
6275 2004-10-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6276
6277 * doc/install.texi (*-*-solaris2*): Update with info about kernel
6278 patches to solve spurious testsuite failures.
6279
6280 2004-10-14 Dorit Naishlos <dorit@il.bim.com>
6281
6282 * tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
6283 Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode.
6284 (vect_analyze_operations): Make sure the vectorization factor > 1. Add
6285 gcc_assert under ENABLE_CHECKING.
6286 (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to
6287 get_vectype_for_scalar_type).
6288
6289 (vect_get_vec_def_for_operand): Remove redundant variables.
6290 (vect_transform_loop): Likewise.
6291
6292 2004-10-14 Richard Sandiford <rsandifo@redhat.com>
6293
6294 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
6295 global for -mcaller-super-interworking.
6296 (CALLER_INTERWORKING_SLOT_SIZE): New macro.
6297 * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
6298 CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
6299 not need a frame pointer.
6300 (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
6301 the soft frame pointer offset.
6302 (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
6303 * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
6304 _interwork_{r7,r11}_call_via_rN if some arguments are passed on
6305 the stack. Use frame_pointer_needed to choose between them.
6306 * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
6307 (interwork_with_frame): New macro.
6308 (interwork): Add _interwork_{r7,r11}_call_via_rN().
6309
6310 2004-10-14 Ben Elliston <bje@au.ibm.com>
6311
6312 PR other/17900
6313 * diagnostic.c (trim_filename): Fix logic bug in walking backwards
6314 up the filename looking for a previous directory separator.
6315
6316 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
6317
6318 * c-tree.h (enum c_typespec_kind, struct c_typespec,
6319 parser_xref_tag): New.
6320 (struct c_declspecs): Add tag_defined_p. Adjust definition of
6321 typedef_p.
6322 (declspecs_add_type): Adjust prototypes.
6323 * c-parse.in (%union): Add tstype.
6324 (typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
6325 typespec_reserved_attr, typespec_nonreserved_nonattr,
6326 structsp_attr, structsp_nonattr): Change to tstype. Update
6327 actions.
6328 * c-decl.c (build_null_declspecs): Initialize tag_defined_p.
6329 (declspecs_add_type): Update to take struct c_typespec argument.
6330 Set tag_defined_p and typedef_p as appropriate.
6331 (xref_tag): Rename to parser_xref_tag and replace by wrapper.
6332 Update to return struct c_typespec.
6333 (shadow_tag_warned): Don't let empty declarations with qualifiers
6334 or storage class specifiers redeclare a tag if a previous
6335 declaration is visible.
6336
6337 2004-10-13 Richard Henderson <rth@redhat.com>
6338
6339 PR debug/15860
6340 * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
6341 for DECL_INCOMING_RTL.
6342
6343 2004-10-14 Hans-Peter Nilsson <hp@axis.com>
6344
6345 PR target/17984
6346 * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
6347 trunc_int_for_mode for constants used in shortened mode.
6348
6349 2004-10-13 Richard Henderson <rth@redhat.com>
6350
6351 PR c/17384
6352 * c-common.c (handle_mode_attribute): Disallow mode changes that
6353 alter the CODE of the top-level type.
6354
6355 * crtstuff.c (__FRAME_END__): Remove mode attribute. Find 32-bit
6356 integer from internal limits macros.
6357 * config/i386/mm3dnow.h (__v2sf): Fix base type.
6358
6359 2004-10-13 Richard Henderson <rth@redhat.com>
6360
6361 PR debug/13841
6362 * function.c (instantiate_decl): Recurse for CONCAT.
6363
6364 2004-10-13 David Edelsohn <edelsohn@gnu.org>
6365
6366 * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
6367 andi./andis.
6368 (anddi3): Same.
6369 (extzvdi_internal1): Add attribute "compare".
6370 (extzvdi_internal2): Same.
6371
6372 2004-10-12 Tom Tromey <tromey@redhat.com>
6373
6374 * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
6375
6376 2004-10-13 Dale Johannesen <dalej@apple.com>
6377
6378 * doc/extend.texi (Extended Asm): Rewrite asm volatile description.
6379
6380 2004-10-13 Frank Ch. Eigler <fche@redhat.com>
6381
6382 * toplev.c (compile_file): Call mudflap_finish_file from here ...
6383 * c-decl.c (c_write_global_declarations): ... instead of here ...
6384 * cp/decl.c (cp_finish_file): ... and here.
6385 * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.
6386
6387 2004-10-13 Andrew Pinski <pinskia@physics.uc.edu>
6388
6389 * tree-ssa-dom.c (record_range): Free the element if we are not
6390 going to use it.
6391
6392 2004-10-13 Tom Tromey <tromey@redhat.com>
6393
6394 PR java/15578:
6395 * gcc.c (option_map): Added --extdirs and --encoding.
6396
6397 2004-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
6398
6399 PR target/14454
6400 * config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
6401 sparc_can_output_mi_thunk.
6402 (sparc_output_mi_thunk): Simplify handling of delta offset. Add
6403 handling of vcall offset.
6404 (sparc_can_output_mi_thunk): New predicate.
6405 * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
6406 (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
6407 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.
6408
6409 * config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.
6410
6411 * config/sparc/sparc.md (movdi): Remove redundant test.
6412
6413 2004-10-13 Paolo Bonzini <bonzini@gnu.org>
6414
6415 * tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
6416 TDF_IPA from -fdump-tree-*-all.
6417
6418 2004-10-13 Paul Brook <paul@codesourcery.com>
6419
6420 * config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
6421 * config/arm/arm.c (thumb_find_work_register): Update comments.
6422 (arm_load_pic_register): Add argument for scratch register.
6423 (arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
6424 * config/arm/arm.md (builtin_setjmp_receiver): Ditto.
6425
6426 2004-10-13 Kazu Hirata <kazu@cs.umass.edu>
6427
6428 * tree-data-ref.c: Fix comment typos.
6429
6430 2004-10-13 Jakub Jelinek <jakub@redhat.com>
6431 Zdenek Dvorak <dvorakz@suse.cz>
6432
6433 PR tree-optimization/17724
6434 * tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.
6435
6436 2004-10-13 Dorit Naishlos <dorit@il.ibm.com>
6437
6438 * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
6439 (altivec_builtin_mask_for_store): Likewise.
6440 (altivec_init_builtins): Use lang_hooks.builtin_function to
6441 create the decls for builtin_altivec_mask_for_load/store.
6442
6443 2004-10-13 Nick Clifton <nickc@redhat.com>
6444
6445 * config/c4x/c4x.c: Remove inclusion of loop.h.
6446
6447 2004-10-12 Ben Elliston <bje@au.ibm.com>
6448
6449 * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
6450 (ei_container): New; renamed.
6451 (ei_start, ei_last): New macros.
6452 (ei_start_1, ei_last_1): Renamed from ei_start.
6453 (ei_last_1, ei_end_p): Use ei_container() where applicable.
6454 (ei_one_before_end_p, ei_next, ei_edge): Likewise.
6455 * gcse.c (remove_reachable_equiv_notes): Use ei_container().
6456
6457 2004-10-11 Sebastian Pop <pop@cri.ensmp.fr>
6458
6459 * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
6460 * cfgloop.c (initialize_loops_parallel_p): New.
6461 (flow_loops_find): Initialize the parallel_p field to true for all
6462 the loops.
6463 * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
6464 (estimate_numbers_of_iterations_loop): Infers the loop bounds from
6465 the size of the data accessed in the loop.
6466 (struct nb_iter_bound): Moved...
6467 * cfgloop.h (struct nb_iter_bound): ... here.
6468 (estimated_nb_iterations, parallel_p): New fields in struct loop.
6469 (record_estimate): Declare extern here.
6470 * tree-chrec.c: Fix comments.
6471 (nb_vars_in_chrec): New function.
6472 * tree-chrec.h (nb_vars_in_chrec): Declared here.
6473 * tree-data-ref.c: Don't include lambda.h, that is already included
6474 in tree-data-ref.h.
6475 (tree_fold_divides_p): Don't check for integer_onep.
6476 (tree_fold_bezout): Removed.
6477 (gcd): New static duplicated function.
6478 (int_divides_p, dump_subscript): New.
6479 (dump_data_dependence_relation): Use dump_subscript.
6480 (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations,
6481 estimate_niter_from_size_of_data): New.
6482 (analyze_array_indexes, analyze_array): Call
6483 estimate_niter_from_size_of_data during the detection of array
6484 references. Pass in a pointer to the statement that contains the
6485 array reference.
6486 (all_chrecs_equal_p): New.
6487 (compute_distance_vector): Renamed compute_subscript_distance.
6488 Deal with multivariate conflict functions.
6489 (initialize_data_dependence_relation): Initialize DDR_AFFINE_P,
6490 DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
6491 (non_affine_dependence_relation): New.
6492 (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
6493 analyze_siv_subscript, analyze_miv_subscript,
6494 analyze_overlapping_iterations, subscript_dependence_tester):
6495 Initialize and return last_conflicts function.
6496 (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
6497 compute_overlap_steps_for_affine_1_2): New.
6498 (analyze_siv_subscript_affine_cst): Removed.
6499 (analyze_subscript_affine_affine): Disprove dependences based on the
6500 iteration domains. Solve the univariate dependence case as before,
6501 but use lambda_matrix_right_hermite instead of tree_fold_bezout.
6502 Implement the multivariate case of 2 versus 1 variables.
6503 (build_classic_dist_vector, build_classic_dir_vector): Implement some
6504 unhandled cases.
6505 (find_data_references_in_loop): Compute and initialize
6506 loop->estimated_nb_iterations and loop->parallel_p.
6507 (analyze_all_data_dependences): Modify the debug dump order.
6508 * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
6509 subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
6510 (SUB_LAST_CONFLICT, subscript->last_conflict,
6511 data_dependence_relation->affine_p, data_dependence_relation->size_vect,
6512 DDR_AFFINE_P, DDR_SIZE_VECT): New.
6513 (find_data_references_in_loop, initialize_data_dependence_relation,
6514 dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
6515
6516 2004-10-12 Kelley Cook <kcook@gcc.gnu.org>
6517
6518 * configure: Regenerate.
6519
6520 2004-10-12 Fariborz Jahanian <fjahanian@apple.com>
6521
6522 PR 17892
6523 * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
6524 (simplify_rhs_and_lookup_avail_expr): Disallow associativity
6525 and constant folding of floating point MULT_EXPR/PLUS_EXPR
6526 expressions.
6527
6528 2004-10-12 Ulrich Weigand <uweigand@de.ibm.com>
6529
6530 * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
6531 (s390_gimplify_va_arg): Likewise.
6532
6533 2004-10-12 Daniel Jacobowitz <dan@debian.org>
6534
6535 * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
6536 (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
6537 (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
6538 * regclass.c (record_address_regs): Remove ifdef. Use
6539 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
6540 * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
6541 definition.
6542 (scan_rtx_address, replace_oldest_value_addr): Use
6543 REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
6544 * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
6545 unnecessary definitions.
6546 (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
6547 and MODE_BASE_REG_REG_CLASS.
6548 * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
6549 (MODE_BASE_REG_REG_CLASS): Define.
6550 (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
6551 (REG_MODE_OK_FOR_REG_BASE_P): Define.
6552 * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
6553 REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
6554
6555 2004-10-12 Daniel Berlin <dberlin@dberlin.org>
6556
6557 * tree-ssa-alias.c (verify_name_tags): New function.
6558 (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
6559 (verify_alias_info): Call verify_name_tags.
6560
6561 2004-10-12 Kazu Hirata <kazu@cs.umass.edu>
6562
6563 PR rtl-optimization/17931
6564 * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
6565 ZERO_EXTRACT in it.
6566
6567 2004-10-12 Richard Earnshaw <rearnsha@arm.com>
6568
6569 * arm.c (arm_print_operand): Use output_operand_lossage where possible
6570 rather than aborting.
6571
6572 2004-10-12 Paul Brook <paul@coudesourcery.com>
6573
6574 * config.gcc: Add armv6{k,z,zk}
6575 * config/arm/arm-cores.def: Add arm1176 and mpcore.
6576 * config/arm/tune.md: Regenerate.
6577 * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
6578 Define.
6579 (all_architectures): Add armv6k, armv6z, armv6zk.
6580 * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
6581 * doc/invoke.texi: Document new arch and cpu values.
6582
6583 2004-10-12 Paul Brook <paul@coodesourcery.com>
6584
6585 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
6586 meabi=4.
6587
6588 2004-10-12 Paul Brook <paul@codesourcery.com>
6589
6590 * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
6591 Handle negative constants.
6592
6593 2004-10-12 Joseph S. Myers <jsm@polyomino.org.uk>
6594
6595 PR c/17301
6596 * c-typeck.c (convert_arguments): Return error_mark_node if there
6597 are too few arguments.
6598 (build_function_call): Handle error_mark_node return from
6599 convert_arguments.
6600
6601 2004-10-06 Paolo Bonzini <bonzini@gnu.org>
6602
6603 * configure.ac (symbolic_link): Replace with $LN_S.
6604 (Assembler/Linker): Hard link from gas and binutils trees.
6605 * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
6606 * configure: Regenerate.
6607
6608 2004-10-12 Paul Brook <paul@codesourcery.com>
6609
6610 * configure.ac: Don't look for host assembler when building a canadian
6611 cross.
6612 * configure: Regenerate.
6613
6614 2004-10-11 Roger Sayle <roger@eyesopen.com>
6615
6616 PR other/17361
6617 * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
6618 (c_common_init_options): Remove #ifdef CL_F77 code. Scan command
6619 line options for "-lang-asm" and if found allow any of the C-family
6620 front-end options.
6621 (c_common_handle_option): Remove last use of permit_fortran_options.
6622
6623 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
6624
6625 * config/s390/s390.c (print_operand): Support 'S' format flag.
6626 * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
6627 ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
6628 ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
6629 ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
6630 ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
6631 ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
6632 ("*movstricthi"): Likewise.
6633 ("*load_multiple_di", "*load_multiple_si"): Likewise.
6634 ("*store_multiple_di", "*store_multiple_si"): Likewise.
6635 ("*sethiqisi", "*sethihisi"): Likewise.
6636 ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
6637 ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
6638 ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
6639 ("*xorqi3", "*xc", "*xc_zero"): Likewise.
6640 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
6641
6642 ("*tmhi_full"): Fix incorrect op_type attribute.
6643
6644 ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
6645 ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
6646 ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
6647 ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
6648
6649 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu
6650
6651 PR middle-end/16266
6652 * function.c (temp_slots_at_level): Fix typo which creates too
6653 many temp stack slots levels.
6654
6655 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
6656
6657 * config/s390/s390.c (s390_trampoline_template): Generate shorter
6658 trampoline code.
6659 (s390_trampoline_instantiate): Adapt.
6660 * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
6661
6662 2004-10-11 Roger Sayle <roger@eyesopen.com>
6663
6664 PR middle-end/17657
6665 * stmt.c (add_case_node): Add additional type argument. Declare
6666 as static to match prototype. Convert the upper and lower bounds
6667 to the specified index type. Optimize away case ranges/values
6668 that are outside the index type's bounds. Truncate case ranges
6669 that span the index type's bounds.
6670 (expand_case): Avoid unnessary computation and memory allocation
6671 when index type is error_mark_node. Pass index_type as required
6672 by change to add_case_node API. No need to convert case range
6673 bounds to index_type, this is now done by add_case_node.
6674
6675 2004-10-11 Ulrich Weigand <uweigand@de.ibm.com>
6676
6677 * config/s390/s390-protos.h (s390_offset_p): Add prototype.
6678 * config/s390/s390.c (s390_offset_p): New function.
6679 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
6680 "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
6681 transform Q->Q alternatives to *clc pattern.
6682 ("*clc"): Move.
6683 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
6684 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
6685 to transform Q->Q alternatives to *mvc pattern.
6686 ("*mvc"): Move. Add peephole to merge adjacent MVCs.
6687 ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
6688 "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
6689 transform Q->Q alternatives to *nc pattern.
6690 ("*nc"): New insn. New peephole to merge adjacent NCs.
6691 ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
6692 "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
6693 transform Q->Q alternatives to *oc pattern.
6694 ("*oc"): New insn. New peephole to merge adjacent OCs.
6695 ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
6696 transform Q->Q alternatives to *xc pattern.
6697 ("*xc"): New insn. New peephole to merge adjacent XCs.
6698 ("*xc_zero"): Move. Add peephole to merge adjacent XCs.
6699
6700 2004-10-11 Andrew Pinski <pinskia@physics.uc.edu>
6701
6702 * gimplify.c (gimple_push_condition): Make sure that we don't
6703 have any saved condition cleanup if we were at the top level.
6704
6705 2004-10-11 Richard Sandiford <rsandifo@redhat.com>
6706
6707 * config/frv/frv.md (*adddi3_internal): Change name to...
6708 (adddi3): ...replacing the exisiting define_expand. Combine
6709 alternatives. Fix the range of the constant constraints ('J' instead
6710 of 'NOP'). Remove bogus operands[2] check. Use simplify_gen_subreg
6711 to extract the lower and upper halves of the DImode operands.
6712 Always use addi3_lower and adddi3_upper, not the subdi3 forms.
6713 (adddi3_lower): Fix the range of the constant constraints and
6714 remove the bogus operands[2] check.
6715 (adddi3_upper): Use gpr_or_int10_operand as the predicate for
6716 operand 2. Use addxi to handle constant operands.
6717 (subdi3_lower, subdi3_upper): Don't handle constant operands.
6718
6719 2004-10-11 Nathan Sidwell <nathan@codesourcery.com>
6720
6721 * gengtype-lex.l: Add commented } & ) characters to unconfuse
6722 editor's paren matching. Allow #define inside a struct.
6723
6724 2004-10-10 Andrew Pinski <pinskia@physics.uc.edu>
6725
6726 PR middle-end/17703
6727 part of PR c++/17657
6728 * fold-const.c (fold_build_cleanup_point_expr): New function.
6729 * tree.h (fold_build_cleanup_point_expr): Prototype.
6730
6731 2004-10-10 Eric Christopher <echristo@redhat.com>
6732
6733 * dwarf2out.c: Move attribute to subprogram declaration
6734 instead of subroutine type.
6735
6736 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
6737
6738 * basic-block.h: Remove the prototypes for can_hoist_insn_p,
6739 hoist_insn_after, and hoist_insn_to_edge.
6740 * rtl.h: Remove the prototypes for reg_referenced_between_p,
6741 no_jumps_between_p, and insn_dependent_p.
6742 * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
6743 insn_dependent_p, insn_dependent_p_1, hoist_test_store,
6744 can_hoist_insn_p, hoist_update_store, hoist_insn_after,
6745 hoist_insn_to_edge): Remove.
6746
6747 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
6748
6749 PR c/17881
6750 * c-decl.c (grokparms): Don't warn for parameters of incomplete
6751 type in declarations that are not definitions except for the case
6752 of parameters of void type.
6753
6754 2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
6755
6756 * tree-cfg.c: Fix comment typos.
6757
6758 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
6759
6760 PR c/17301
6761 * builtins.c (expand_builtin_va_start): Check for too few
6762 arguments to va_start.
6763
6764 2004-10-10 Joseph S. Myers <jsm@polyomino.org.uk>
6765
6766 PR c/17189
6767 * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
6768 fields a pedwarn. Pedwarn here for unnamed structs/unions if
6769 pedantic.
6770 * c-parse.in (component_decl): Don't pedwarn here for unnamed
6771 fields.
6772
6773 2004-10-09 Zdenek Dvorak <dvorakz@suse.cz>
6774
6775 PR tree-optimization/17906
6776 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
6777 copy non-gimple reg arguments.
6778
6779 2004-10-09 Roger Sayle <roger@eyesopen.com>
6780
6781 PR rtl-optimization/17853
6782 * simplify-rtx.c (simplify_relational_operation): Correct comment.
6783 Reorganize handling of comparison operations with floating point
6784 results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
6785 Likewise, introduce support for comparison operations with vector
6786 result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
6787
6788 * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
6789 * doc/tm.texi: Likewise.
6790
6791 2004-10-09 Steven Bosscher <stevenb@suse.de>
6792
6793 * regs.h (struct reg_info_def): Remove the last_node_uid and
6794 changes_mode fields.
6795 (REGNO_LAST_NOTE_UID): Don't define.
6796 * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
6797 * regmove.c (copy_src_to_dest): Likewise.
6798
6799 2004-10-09 Roger Sayle <roger@eyesopen.com>
6800
6801 PR middle-end/17894
6802 * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
6803 relational comparison operator op needs to be swapped/reversed when
6804 C1 is negative. i.e. X/-10 < 1 becomes X >= -9, not X < -9.
6805
6806 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
6807
6808 PR tree-opt/17902
6809 * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
6810 instead of bsi_start.
6811 (value_replacement): Likewise.
6812 (abs_replacement): Likewise
6813
6814 2004-10-09 Steven Bosscher <stevenb@suse.de>
6815
6816 * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
6817 (expand_gimple_cond_expr, expand_gimple_tailcall,
6818 expand_gimple_basic_block): Use it to dump RTL for each stmt.
6819 (tree_expand_cfg): Announce full RTL function dump.
6820 * tree-optimize.c (execute_one_pass): Use normal RTL printing,
6821 not the graph version.
6822 * tree-pretty-print.c (dump_generic_node): Allow empty statements
6823 in the arms of a COND_EXPR for lowered nodes.
6824
6825 2004-10-08 Joseph S. Myers <joseph@codesourcery.com>
6826
6827 * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
6828 atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
6829 strtoufix16, strtoufix32, strtoufix64): Declare.
6830
6831 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
6832
6833 * c-lex.c (interpret_float): Give a pedwarn rather than a warning
6834 for an out-of-range floating point constant.
6835 * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
6836 warning if the target format does not support infinities.
6837
6838 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
6839
6840 * emit-rtl.c (last_label_num, base_label_num): Remove.
6841 (max_label_num): Always return label_num.
6842 (set_new_last_label_num, restore_emit_status): Remove.
6843 (init_emit): Don't initialize last_label_num.
6844 * function.c (pop_function_context_from): Don't call
6845 restore_emit_status.
6846 * function.h: Remove the prototype for restore_emit_status.
6847 * rtl.h: Remove the prototype for set_new_last_label_num.
6848
6849 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
6850
6851 * stmt.c (expand_decl_init): Remove.
6852 * tree.h: Remove the corresponding prototype.
6853
6854 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
6855
6856 * integrate.c (try_constants, subst_constants, mark_stores):
6857 Remove.
6858 * integrate.h: Remove the prototype for try_constants.
6859
6860 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
6861
6862 * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
6863 (convert_for_assignment): Handle ic_argpass_nonproto. Add
6864 comments about its relevance to errors.
6865 (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
6866
6867 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
6868
6869 PR c/16999
6870 * c-ppoutput.c (cb_ident): Don't quote string as it is already
6871 quoted.
6872
6873 2004-10-08 Diego Novillo <dnovillo@redhat.com>
6874
6875 * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
6876 reference_node_pool.
6877
6878 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
6879
6880 * tree-cfg.c: Fix a comment typo.
6881
6882 2004-10-08 Andreas Krebbel <krebbel1@de.ibm.com>
6883
6884 * config/s390/s390.c (s390_register_info): Don't save fprs for
6885 -msoft-float.
6886 (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
6887
6888 2004-10-08 Ulrich Weigand <uweigand@de.ibm.com>
6889
6890 * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
6891 (TARGET_DEFAULT): Use symbolic values.
6892 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
6893 (TARGET_DEFAULT): Use symbolic values.
6894 * config/s390/s390.c (s390_backchain_string): Initialize to
6895 TARGET_DEFAULT_BACKCHAIN.
6896
6897 2004-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6898
6899 * builtins.c (expand_builtin_mempcpy): Move tree handling code to
6900 fold_builtin_mempcpy. Accept a type parameter. Delete duplicate
6901 code.
6902 (expand_builtin_strcat): Accept a type parameter.
6903 (fold_builtin_mempcpy): Accept a type and endp parameter.
6904
6905 * builtins.c (expand_builtin_strncpy): Delete duplicate code.
6906 Accept an `exp' instead of an `arglist'.
6907
6908 2004-10-08 Nathan Sidwell <nathan@codesourcery.com>
6909
6910 * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
6911 reverting my 2004-09-07 patch to use build_int_cst.
6912
6913 2004-10-08 Eric Botcazou <ebotcazou@libertysurf.fr>
6914
6915 PR target/17245
6916 * config/sparc/sparc.c (input_operand): Remove redundant code
6917 for handling LO_SUM.
6918 (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
6919 <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
6920 Otherwise only accept it for TFmode if quad move insns are available.
6921
6922 2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
6923
6924 * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
6925 common cases will be caught earlier than others.
6926
6927 2004-10-08 Michael Matz <matz@suse.de>
6928
6929 * loop-doloop.c (doloop_optimize): Extend count.
6930
6931 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
6932
6933 * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
6934 (prefetch): Convert to expander.
6935
6936 2004-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
6937
6938 * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
6939 first argument of CALL.
6940 (tls_local_dynamic): Likewise.
6941
6942 2004-10-08 Joseph S. Myers <jsm@polyomino.org.uk>
6943
6944 * c-typeck.c (enum impl_conv): New.
6945 (convert_for_assignment): Use it. Take tree for function called
6946 instead of its name. Handle ObjC selectors for diagnostics at
6947 start of function. Select diagnostic text within the function
6948 using full sentences for diagnsotics. Use %qE to name functions
6949 in diagnostics.
6950 (convert_arguments, build_modify_expr,
6951 c_convert_parm_for_inlining, digest_init, c_finish_return): Update
6952 callers to convert_for_assignment.
6953 (warn_for_assignment): Remove.
6954
6955 2004-10-08 Nick Clifton <nickc@redhat.com>
6956
6957 * config/sh/symbian.c (symbian_possibly_export_base_class):
6958 Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
6959 TYPE_CONTAINS_VPTR_P.
6960
6961 2004-10-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6962
6963 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
6964 fixed registers form all_used_regs. Update call_really_used_regs.
6965 (CALL_REALLY_USED_REGISTERS): Define.
6966 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
6967 with call_really_used_regs.
6968
6969 2004-10-08 Alan Modra <amodra@bigpond.net.au>
6970
6971 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
6972 for -profile as well as -p and -pg.
6973
6974 2004-10-07 Andrew Pinski <pinskia@physics.uc.edu>
6975
6976 * libgcc2.c (__moddi3): Cast &w to UDWtype*.
6977
6978 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
6979
6980 * tree-cfg.c (tree_block_forwards_to): Remove.
6981 * tree-flow.h: Remove the corresponding prototype.
6982
6983 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
6984
6985 * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
6986 for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
6987
6988 2004-10-07 Geoffrey Keating <geoffk@apple.com>
6989
6990 Radar 3813796
6991 * config/rs6000/rs6000.c (rs6000_generate_compare): When
6992 flag_trapping_math is in effect, don't generate subtract
6993 instructions.
6994
6995 2004-10-07 Ulrich Weigand <uweigand@de.ibm.com>
6996
6997 * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
6998 * config/s390/s390.c (s390_narrow_logical_operator): New function.
6999 (s390_extra_constraint_str): Add 'A' constraints.
7000 (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
7001 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
7002 (CONSTRAINT_LEN): Likewise.
7003 * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
7004 ("*andsi3_zarch", "*andsi3_esa"): Likewise.
7005 ("*andhi3_zarch", "*andhi3_esa"): Likewise.
7006 ("*iordi3"): Add OI alternative and splitter.
7007 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
7008 ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
7009 ("*xordi3"): Add XI alternative and splitter.
7010 ("*xorsi3", "*xorhi3"): Likewise.
7011
7012 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
7013
7014 * config/mips/mips.c (mips_function_rodata_section): New function.
7015 (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
7016
7017 2004-10-07 Devang Patel <dpatel@apple.com>
7018
7019 * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
7020 UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
7021 UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
7022 UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
7023 UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
7024 UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
7025 UNSPEC_VCONDU_V16QI): New constant defines.
7026 (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
7027 vconduv16qi): New patterns.
7028 * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
7029 * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
7030 (get_vec_cmp_insn): Same.
7031 (get_vsel_insn): Same.
7032 (rs6000_emit_vector_compare): Same.
7033 (rs6000_emit_vector_select): Same.
7034 (INSN_NOT_AVAILABLE): New.
7035
7036 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
7037
7038 PR tree-optimization/17749
7039 * tree-tailcall.c (find_tail_calls): Check that parameter is
7040 a gimple_reg.
7041
7042 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
7043
7044 * config/ia64/ia64.c: Fix a comment typo.
7045
7046 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
7047
7048 * doc/install.texi (*-*-solaris2*): Fix marker for URL.
7049
7050 2004-10-07 Giovanni Bajo <giovannibajo@gcc.gnu.org>
7051
7052 PR c++/17115
7053 * tree-inline.c (expand_call_inline): Do not warn for functions
7054 marked with attribute noinline.
7055
7056 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
7057
7058 PR target/17862
7059 * config/sparc/sparc.c (sparc_output_mi_thunk): Set
7060 current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
7061
7062 * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
7063 of 0 as 4th argument to pass_by_reference.
7064 Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
7065
7066 2004-10-06 Eric Christopher <echristo@redhat.com>
7067
7068 * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
7069 attribute.
7070
7071 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
7072
7073 PR target/17770
7074 * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
7075
7076 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
7077
7078 PR rtl-optimization/17791
7079 * loop-doloop.c (doloop_modify): Take number of iterations as
7080 argument.
7081 (doloop_optimize): Extend or shorten the number of iterations
7082 when changing mode of counter register.
7083 * loop-iv.c (lowpart_subreg): Export.
7084 * rtl.h (lowpart_subreg): Declare.
7085
7086 2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
7087
7088 PR tree-optimization/17806
7089 * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
7090 * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
7091 flags moved to split_edge.
7092
7093 2004-10-07 Eric Botcazou <ebotcazou@libertysurf.fr>
7094
7095 PR middle-end/17835
7096 * expmed.c (expand_sdiv_pow2): Force a stack adjustment
7097 before tentatively building the conditional move sequence.
7098
7099 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
7100
7101 PR target/16815
7102 * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
7103 check.
7104 * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
7105 function_arg_padding.
7106
7107 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
7108
7109 PR bootstrap/17857
7110 * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
7111
7112 2004-10-07 Kazu Hirata <kazu@cs.umass.edu>
7113
7114 * hooks.c (hook_int_void_1, hook_void_int): Remove.
7115 * hooks.h: Remove the corresponding prototypes.
7116
7117 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
7118
7119 PR middle-end/17849
7120 * tree-nested.c (walk_stmt_info): Add changed field.
7121 (convert_nonlocal_reference): Set changed to when we
7122 change a decl to unnested decl.
7123 <case ADDR_EXPR>: Instead of checking if the immediate part
7124 of the ADDR_EXPR changed, check the field changed.
7125 Use recompute_tree_invarant_for_addr_expr instead of unsetting
7126 TREE_INVARIANT.
7127 (convert_local_reference): Set changed to when we
7128 change a decl to unnested decl.
7129 <case ADDR_EXPR>: Instead of checking if the immediate part
7130 of the ADDR_EXPR changed, check the field changed.
7131 Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
7132
7133 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
7134
7135 * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
7136 * dwarf2out.c (dwarf2out_init): Remove references to
7137 DWARF2_GENERATE_TEXT_SECTION_LABEL.
7138 * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
7139 * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
7140
7141 2004-10-06 Joseph S. Myers <jsm@polyomino.org.uk>
7142
7143 * c-typeck.c (convert_arguments): Take expression for called
7144 function rather than its name. Handle ObjC selectors directly
7145 rather than relying on warn_for_assignment to do so. Call warning
7146 directly rather than warn_for_assignment. Use %qE in diagnostics.
7147 Say "argument" rather than "arg" in diagnostics.
7148 (build_function_call): Update call to convert_arguments.
7149
7150 2004-10-06 Andrew Pinski <pinskia@physics.uc.edu>
7151
7152 PR debug/17787
7153 * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
7154 ENUMs specially instead of just saying we do.
7155
7156 2004-10-06 Eric Christopher <echristo@redhat.com>
7157
7158 * dwarf2.h: Sync with include/elf/dwarf2.h
7159
7160 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
7161
7162 * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
7163 and TREE_VEC nodes.
7164
7165 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
7166
7167 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
7168 to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
7169
7170 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
7171
7172 * lambda-code.c (compute_nest_using_fourier_motzkin): New
7173 function.
7174 (lambda_compute_auxillary_space): Split from here.
7175
7176 2004-10-06 Daniel Berlin <dberlin@dberlin.org>
7177
7178 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
7179 * tree-flow.h: Add prototype.
7180 * lambda-code.c (invariant_in_loop_and_outer_loops): Use
7181 expr_invariant_in_loop.
7182
7183 2004-10-06 Kazu Hirata <kazu@cs.umass.edu>
7184
7185 * tree-cfg.c (thread_jumps): Remove a duplicate check for
7186 EXIT_BLOCK_PTR.
7187
7188 2004-10-06 Ulrich Weigand <uweigand@de.ibm.com>
7189
7190 * config/s390/s390-protos.h (s_imm_operand): Remove.
7191 (s390_pool_operand): Add prototype.
7192 * config/s390/s390.c (general_s_operand): Remove.
7193 (s_imm_operand): Remove.
7194 (s_operand): Merge contents of general_s_operand.
7195 (s390_pool_operand): New function.
7196 * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
7197 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
7198 ("*cmpdi_ccu"): Merge Q->Q alternative.
7199 ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
7200 ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
7201 ("*cli"): Remove.
7202 ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
7203 ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
7204 ("*movstricthi"): Use memory_operand instead of s_imm_operand.
7205
7206 2004-10-06 Steve Ellcey <sje@cup.hp.com>
7207
7208 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
7209 call ia64_function_arg_boundary.
7210 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
7211 * config/ia64/ia64.c (ia64_function_arg_boundary): New.
7212 (ia64_function_arg_advance): Do not put 128 bit floats into
7213 FP registers.
7214
7215 2004-10-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7216
7217 * builtins.c (expand_builtin_strcpy): Delete duplicate code.
7218 Accept an expression instead of an arglist.
7219 (expand_builtin_stpcpy): Accept an expression instead of an
7220 arglist.
7221
7222 2004-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
7223
7224 PR target/16007
7225 * doc/install.texi (*-*-solaris2*): Mention potential problem
7226 with Sun assembler + GNU linker and C++ programs.
7227 Document status of binutils 2.15 release.
7228
7229 2004-10-06 Jan Hubicka <jh@suse.cz>
7230
7231 * cse.c (cse_main): Kill push/pop context.
7232
7233 2004-10-05 Zack Weinberg <zack@codesourcery.com>
7234
7235 * pretty-print.c: Include tree.h.
7236 (pp_base_prepare_to_format): New function, logic from
7237 text_specifies_location.
7238 (pp_base_format_text): Use gcc_assert.
7239 * pretty-print.h (pp_prepare_to_format): New macro.
7240 (pp_base_prepare_to_format): Prototype.
7241 * diagnostic.c (text_specifies_location): Delete.
7242 (bug_report_request): Delete.
7243 (diagnostic_set_info): Don't call text_specifies_location.
7244 (diagnostic_action_after_output): Put text from
7245 bug_report_request inline here. Use gcc_unreachable.
7246 (diagnostic_report_current_function): Fix comment.
7247 (diagnostic_report_diagnostic): Clarify logic for error recursion.
7248 Call pp_prepare_to_format before diagnostic_starter.
7249 (trim_filename): Use IS_DIR_SEPARATOR.
7250 (fatal_error, internal_error): Use gcc_unreachable.
7251 (error_recursion): Call diagnostic_action_after_output to
7252 issue the bug_report_request message and exit.
7253 * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
7254
7255 * c-parse.in: Add list of diagnostic messages to insulate
7256 translation template from version of yacc/bison used to
7257 compile the grammar.
7258
7259 2004-10-06 Alan Modra <amodra@bigpond.net.au>
7260
7261 PR 16406
7262 * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
7263
7264 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
7265
7266 * basic-block.h: Remove the prototype for
7267 flow_preorder_transversal_compute.
7268 * cfganal.c (dfst_node): Remove.
7269 (flow_preorder_transversal_compute): Likewise.
7270 * rtl.h: Remove the prototype for get_jump_table_offset.
7271 * rtlanal.c (get_jump_table_offset): Remove.
7272
7273 2004-10-05 Richard Henderson <rth@redhat.com>
7274
7275 PR 17756
7276 * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
7277
7278 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
7279
7280 PR bootstrap/17817
7281 * Makefile.in: Stage the build directory too.
7282
7283 2004-10-05 Aldy Hernandez <aldyh@redhat.com>
7284
7285 * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
7286
7287 * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
7288 (frv_emit_move): Same.
7289
7290 * config/frv/frv.c (frv_emit_move): New.
7291 (frv_legitimize_address): New.
7292
7293 * config/frv/frv.md ("movsi"): Call frv_emit_move.
7294 ("movqi"): Same.
7295 ("movhi"): Same.
7296 ("movdi"): Same.
7297 ("movsf"): Same.
7298 ("movdf"): Same.
7299
7300 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
7301
7302 * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
7303 system headers.
7304
7305 2004-10-05 Joseph S. Myers <jsm@polyomino.org.uk>
7306
7307 * c-decl.c (pushdecl): When an extern declaration at block scope
7308 refers to a visible entity with internal linkage, use the old DECL
7309 rather than the new one.
7310
7311 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
7312
7313 * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
7314 comments.
7315
7316 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
7317
7318 * tree-cfg.c (thread_jumps): Remove a duplicate check for
7319 an infinite loop.
7320
7321 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
7322
7323 * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
7324 of FOR_BB_BETWEEN. Remove a useless check for unreachable
7325 blocks.
7326
7327 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
7328
7329 * tree-cfg.c (cleanup_tree_cfg): Don't call
7330 delete_unreachable_blosk() after thread_jumps().
7331 (thread_jumps): Always remove basic blocks as they become
7332 unreachable.
7333
7334 2004-10-05 Kazu Hirata <kazu@cs.umass.edu>
7335
7336 * tree-cfg.c (cleanup_tree_cfg): Remove variable
7337 something_changed. Simplify the while loop.
7338
7339 2004-10-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7340
7341 * builtins.c (expand_builtin_memmove): Delete duplicate code
7342 and accept a tree type for the result.
7343 (expand_builtin_bcopy): Accept a tree type for the result.
7344 (fold_builtin_memmove): Accept an arglist and tree type for
7345 the result.
7346
7347 2004-10-05 Ulrich Weigand <uweigand@de.ibm.com>
7348
7349 * config/s390/s390.c (s390_dump_pool): Remove return value.
7350 Use gen_pool_align, gen_pool_section_start/end instead of
7351 gen_pool_start/end_31/64.
7352 * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
7353 (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
7354 ("pool_start_31", "pool_end_31"): Remove.
7355 ("pool_start_64", "pool_end_64"): Likewise.
7356 ("pool_align", "pool_section_start", "pool_section_end": New insns.
7357
7358 * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
7359 (TARGET_CANNOT_COPY_INSN_P): Define.
7360 (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
7361 (struct constant_pool): New member 'execute'.
7362 (s390_add_execute, s390_find_execute): New functions.
7363 (s390_execute_label, s390_execute_target): Likewise.
7364 (s390_dump_pool): Output in-pool execute target templates.
7365 (s390_dump_execute): New function.
7366 (s390_alloc_pool, s390_free_pool): Handle execute templates.
7367 (s390_mainpool_start, s390_mainpool_finish): Likewise.
7368 (s390_chunkify_start, s390_chunkify_finish): Likewise.
7369 * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
7370 ("*execute"): New insn pattern.
7371 ("movmem_short", "*movmem_short"): Use splitters to generate
7372 explicit execute pattern, remove embedded execute.
7373 ("clrmem_short", "*clrmem_short"): Likewise.
7374 ("cmpmem_short", "*cmpmem_short"): Likewise.
7375
7376 2004-10-05 Daniel Berlin <dberlin@dberlin.org>
7377
7378 * tree-ssa.c (verify_ssa): Verify phi arguments only
7379 contain renamed names.
7380
7381 2004-10-05 Alan Modra <amodra@bigpond.net.au>
7382
7383 * config/rs6000/linux.h: Formatting, whitespace.
7384 * config/rs6000/linux64.h: Likewise.
7385 * config/rs6000/rs6000-protos.h: Likewise.
7386 * config/rs6000/rs6000.c: Likewise.
7387 (easy_vector_splat_const): Add fall thru comments.
7388 (output_vec_const_move): Likewise.
7389
7390 2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
7391
7392 * Makefile.in: Update -Wno-error exceptions for move to build dir.
7393
7394 2004-10-05 Chao-Ying Fu <fu@mips.com>
7395 Richard Sandiford <rsandifo@redhat.com>
7396
7397 * doc/invoke.texi (-mpaired-single): Link to the new description of the
7398 built-in functions. Document dependencies.
7399 (-mips3d): Add link here too.
7400 * doc/extend.texi (MIPS Paired-Single Support): New section.
7401
7402 2004-10-04 Chao-ying Fu <fu@mips.com>
7403
7404 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
7405
7406 2004-10-04 Diego Novillo <dnovillo@redhat.com>
7407
7408 * tree-ssa-dom.c (tree_ssa_dominator_optimize):
7409 Initialize OPT_STATS to 0.
7410
7411 2004-10-04 Kazu Hirata <kazu@cs.umass.edu>
7412
7413 * tree-data-ref.c: Fix comment typos.
7414
7415 2004-10-04 Sebastian Pop <pop@cri.ensmp.fr>
7416
7417 * tree-data-ref.c (array_base_name_differ_p): Fix comments. When
7418 the predicate cannot be computed, don't initialize the result to
7419 false.
7420
7421 2004-10-01 Eric Christopher <echristo@redhat.com>
7422
7423 * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
7424 locally defined enum.
7425 * dwarf2out.c (add_calling_convention_attribute): Don't
7426 emit DW_CC_normal.
7427
7428 2004-10-03 Andrew Pinski <pinskia@physics.uc.edu>
7429
7430 PR c/17178, PR c/17820
7431 * c-decl.c (pop_scope): Do not warn about unused static
7432 variables as they warned in the middle-end.
7433
7434 2004-10-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7435
7436 * builtins.c (expand_builtin_memcpy): Delete duplicate code
7437 and make the first parameter the expression not the arglist.
7438
7439 2004-10-03 Ulrich Weigand <uweigand@de.ibm.com>
7440
7441 * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
7442 as valid modes to expand address expressions.
7443
7444 2004-10-03 Joseph S. Myers <jsm@polyomino.org.uk>
7445
7446 * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
7447 c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
7448 c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
7449 code formatting conventions.
7450
7451 2004-10-03 Richard Sandiford <rsandifo@redhat.com>
7452
7453 * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
7454
7455 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
7456
7457 PR tree-optimization/16632
7458 * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
7459 fold (A & C) == D into 0, fold ~C. Similarly, for the case
7460 where | is used instead of &.
7461
7462 2004-10-03 Kazu Hirata <kazu@cs.umass.edu>
7463
7464 * ginclude/stddef.h: Fix a comment typo.
7465
7466 2004-10-03 Eric Botcazou <ebotcazou@libertysurf.fr>
7467
7468 PR target/17443
7469 * config.gcc (i?86-*-solaris2*): Restore correct logic
7470 for --enable-threads option.
7471 (sparc64-*-solaris2*): Likewise.
7472 (sparc-*-solaris2*): Likewise.
7473
7474 2004-10-03 Alan Modra <amodra@bigpond.net.au>
7475
7476 * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
7477 (OS_MISSING_POWERPC64): Move, and comment.
7478 * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
7479 (OS_MISSING_POWERPC64): Move, and comment.
7480
7481 2004-10-02 Ian Lance Taylor <ian@wasabisystems.com>
7482
7483 * arm.c (output_call_mem): Add missing \t.
7484
7485 2004-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7486
7487 * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
7488 expand_builtin_strncmp): Delete duplicate code.
7489
7490 2004-10-02 Frank Ch. Eigler <fche@redhat.com>
7491
7492 * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
7493 take check-base and -limit arguments.
7494 (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
7495 check ranges for ARRAY_REF and COMPONENT_REF.
7496 (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
7497 instrumentation.
7498
7499 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
7500
7501 * c-objc-common.c (c_tree_printer): Correct description of %E.
7502 Don't fall through after printing an expression.
7503
7504 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
7505
7506 * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
7507
7508 2004-10-02 Kazu Hirata <kazu@cs.umass.edu>
7509
7510 * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
7511 delete_unrechable_blocks() only when necessary.
7512
7513 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
7514
7515 * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
7516 (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
7517 (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
7518 __gthread_recursive_mutex_unlock): New functions.
7519
7520 2004-10-02 P.J. Darcy <darcypj@us.ibm.com>
7521
7522 * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
7523 * config/s390/tpf-eh.c: Remove file.
7524 * config/s390/tpf-unwind.h: New file.
7525 * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
7526 (MD_UNWIND_SUPPORT): Define.
7527
7528 2004-10-02 Joseph S. Myers <jsm@polyomino.org.uk>
7529
7530 * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
7531
7532 2004-10-01 Ulrich Weigand <uweigand@de.ibm.com>
7533
7534 * config/s390/s390-protos.h (s390_comparison): Add prototype.
7535 * config/s390/s390.c (s390_comparison): New function.
7536 (s390_branch_condition_mask): Return -1 for invalid comparisons.
7537 (s390_branch_condition_mnemonic): Assert valid comparison.
7538 * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
7539 * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
7540 "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
7541 s390_comparison instead of comparison_operator.
7542
7543 * config/s390/s390.md (UNSPEC_CMPINT): New constant.
7544 ("cmpmemdi"): Remove.
7545 ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
7546 ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
7547 ("cmpint_si"): Rename to ...
7548 ("*cmpint_si"): ... this. Use UNSPEC_CMPINT.
7549 ("cmpint_di", "*cmpint_di"): Likewise.
7550 * config/s390/s390.c (s390_canonicalize_comparison): Remove
7551 redundant UNSPEC_CMPINT conversions.
7552 (s390_expand_cmpmem): Adapt to cmpint pattern changes.
7553
7554 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
7555
7556 * collect2.c (COLLECT_PARSE_FLAG): Remove.
7557 (main): Remove a reference to COLLECT_PARSE_FLAG
7558 * system.h: Poison COLLECT_PARSE_FLAG.
7559 * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
7560
7561 2004-10-01 Paul Brook <paul@codesourcery.com>
7562
7563 * config/arm/crti.asm: Give _init and _fini function type.
7564
7565 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
7566
7567 * common.opt (ftree-loop-ivcanon): Enable by default.
7568 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
7569 Enable complete loop unrolling.
7570 (canonicalize_induction_variables, tree_unroll_loops_completely):
7571 Reset scev info.
7572
7573 2004-10-01 Paul Brook <paul@codesourcery.com>
7574
7575 * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
7576 not register number.
7577 (thumb_find_work_register): Search full register range.
7578
7579 2004-10-01 Andrew Pinski <pinskia@physics.uc.edu>
7580
7581 PR tree-opt/17343
7582 * tree-cfg.c (group_case_labels): Get the label and not
7583 the case expr for the default case.
7584 When the label we looking at is the default, decrement the
7585 new_size.
7586
7587 2004-10-01 Jan Hubicka <jh@suse.cz>
7588
7589 * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
7590 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
7591 * toplev.h (tree_rest_of_compilation): Update prototype.
7592 * tree-optimize.c (tree_rest_of_compilation): Kill nested_p argument.
7593
7594 2004-10-01 Kazu Hirata <kazu@cs.umass.edu>
7595
7596 * tree-cfg.c (cleanup_tree_cfg): Pull a call to
7597 cleanup_control_flow() out of the while loop.
7598
7599 2004-10-01 Paolo Bonzini <bonzini@gnu.org>
7600
7601 * tree-vectorizer.c (vectorizable_operation): Fail unless
7602 the mode for the vector type is indeed a vector mode.
7603
7604 2004-10-01 Zdenek Dvorak <dvorakz@suse.cz>
7605
7606 * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
7607 chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
7608 of convert.
7609 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
7610 add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
7611 follow_ssa_edge_in_rhs): Ditto.
7612 * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
7613 (dump_iv): Dump base_object.
7614 (dump_use, dump_cand): Use dump_iv.
7615 (determine_base_object): New function.
7616 (alloc_iv): Initialize base_object field.
7617 (record_use): Clear the ssa_name field of iv.
7618 (get_computation_cost_at): Do not use difference of addresses of
7619 two different objects.
7620 (may_eliminate_iv): Do not require the loop to have just single exit.
7621 * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
7622 (nonzero_p): New function.
7623 (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
7624 tree_simplify_using_condition, simplify_using_initial_conditions,
7625 loop_niter_by_eval, find_loop_niter_by_eval,
7626 estimate_numbers_of_iterations_loop, compare_trees,
7627 upper_bound_in_type, lower_bound_in_type,
7628 can_count_iv_in_wider_type_bound): Use buildN instead of build. Use
7629 fold_convert or build_int_cst_type instead of convert. Use (non)zero_p
7630 instead of integer_(non)zerop.
7631
7632 2004-10-01 Jakub Jelinek <jakub@redhat.com>
7633
7634 Revert
7635 2004-09-29 Jakub Jelinek <jakub@redhat.com>
7636
7637 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
7638 and TI_VA_LIST_FPR_COUNTER_FIELD.
7639 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
7640 * tree-pass.h (pass_stdarg): Add.
7641 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
7642 * tree-stdarg.c: New file.
7643 * Makefile.in (OBJS-common): Add tree-stdarg.o.
7644 (tree-stdarg.o): Add dependencies.
7645 * function.h (struct function): Add va_list_gpr_size and
7646 va_list_fpr_size fields.
7647 * function.c (allocate_struct_function): Initialize them.
7648
7649 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
7650 va_list_{g,f}pr_counter_field.
7651 (ix86_setup_incoming_varargs): Don't do anything if reg_save
7652 area will not be used. Only save registers that tree-stdarg.c
7653 detected they need saving.
7654 (ix86_va_start): Don't set up fields that won't be used.
7655
7656 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
7657 va_list_{g,f}pr_counter_field.
7658 (setup_incoming_varargs): Don't do anything if reg_save
7659 area will not be used. Only save registers that tree-stdarg.c
7660 detected they need saving.
7661 (rs6000_va_start): Don't set up fields that won't be used.
7662
7663 2004-09-30 Eric Christopher <echristo@redhat.com>
7664
7665 * dwarf2.h (dwarf_calling_convention): Add enum for renesas
7666 sh abi.
7667 * dwarf2out.c (add_calling_convention_attribute): New function.
7668 (gen_subroutine_type_die): Use.
7669 * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
7670 * target.h (gcc_target): Add dwarf_calling_convention.
7671 * hooks.c (hook_int_tree_0): New function.
7672 * hooks.h: Prototype.
7673 * config/sh/sh.c: Include dwarf2.h.
7674 (sh_dwarf_calling_convention): New function.
7675 (TARGET_DWARF_CALLING_CONVENTION): Use.
7676 * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
7677
7678 2004-09-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7679
7680 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
7681 expand_builtin_strrchr, expand_builtin_strpbrk,
7682 expand_builtin_strncat, expand_builtin_strspn,
7683 expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
7684 code.
7685
7686 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
7687
7688 * config/s390/s390-protos.h (s390_expand_logical_operator): Add
7689 prototype.
7690 (s390_logical_operator_ok_p): Likewise.
7691 * config/s390/s390.c (s390_expand_logical_operator): New function.
7692 (s390_logical_operator_ok_p): Likewise.
7693 * config/s390/s390.md ("anddi3"): New expander.
7694 ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
7695 ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
7696 ("andsi3"): Use s390_expand_logical_operator.
7697 ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
7698 ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
7699 ("andhi3"): New expander.
7700 ("*andhi3_zarch", "*andhi3_esa"): New patterns.
7701 ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
7702 ("andqi3"): New expander.
7703 ("*andqi3_zarch", "*andqi3_esa"): New patterns.
7704 ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
7705 ("iordi3"): New expander.
7706 ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
7707 ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
7708 ("iorsi3"): Use s390_expand_logical_operator.
7709 ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
7710 ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
7711 ("iorhi3"): New expiorer.
7712 ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
7713 ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
7714 ("iorqi3"): New expiorer.
7715 ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
7716 ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
7717 ("xordi3"): New expander.
7718 ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
7719 ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
7720 ("xorsi3"): New expander.
7721 ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
7722 ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
7723 ("xorhi3"): New expander.
7724 ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
7725 ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
7726 ("xorqi3"): New expander.
7727 ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
7728 ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
7729
7730 2004-09-30 Roger Sayle <roger@eyesopen.com>
7731
7732 * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
7733 (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
7734 machine mode as the result.
7735
7736 2004-09-30 Ben Elliston <bje@au.ibm.com>
7737
7738 PR bootstrap/17761
7739 * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
7740 FOR_EACH_EDGE macros.
7741
7742 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
7743
7744 * c-tree.h (readonly_error): Remove.
7745 * c-typeck (enum lvalue_use): New.
7746 (lvalue_or_else, readonly_error): Use it. All callers changed.
7747 (readonly_error): Make static.
7748
7749 2004-09-30 Jan Hubicka <jh@suse.cz>
7750
7751 PR debug/13974
7752 * cfgrtl.c (try_redirect_by_replacing_jump,
7753 force_nonfallthru_and_redirect, commit_one_edge_insertion,
7754 cfg_layout_merge_blocks): Do not attach any line number information
7755 to newly inserted instructions.
7756 * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
7757 emit_insn_*_noloc.
7758 (emit_*insn_before, emit_insn*_after): New.
7759 (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
7760 existing locators.
7761 * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
7762 (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
7763
7764 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
7765
7766 * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
7767 (s390_return_address_offset): Remove.
7768 (s390_can_eliminate): Add prototype.
7769 (s390_initial_elimination_offset): Add prototype.
7770 * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
7771 (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
7772 * config/s390/s390.c (s390_arg_frame_offset): Remove.
7773 (s390_return_address_offset): Remove.
7774 (s390_can_eliminate, s390_initial_elimination_offset): New functions.
7775 (struct machine_function): New member split_branches_pending_p.
7776 (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
7777 (s390_mainpool_finish): Likewise. Clear base_reg if pool empty.
7778 (s390_optimize_prologue): Remove base_used argument. Call
7779 s390_update_frame_layout instead of s390_register_info. Handle
7780 prologue/epilogue insns that touch only RETURN_REGNUM.
7781 (s390_reorg): Remove base_used. Clear split_branches_pending_p.
7782 (s390_register_info): Remove base_used and return_addr_used
7783 arguments, compute special register usage inline. Return live
7784 register data to caller.
7785 (s390_frame_info): Remove arguments, do not call s390_register_info.
7786 (s390_init_frame_layout): New function.
7787 (s390_update_frame_layout): Likewise.
7788 (s390_emit_prologue): Call s390_update_frame_layout; some code
7789 move to there. Do not emit pool placeholder insn if unnecessary.
7790
7791 2004-09-30 Ulrich Weigand <uweigand@de.ibm.com>
7792
7793 * config/s390/s390.c (legitimate_reload_constant_p): Remove
7794 floating point constant workaround.
7795 (s390_secondary_input_reload_class): Handle PLUS reloads
7796 with too-large constant.
7797 (s390_expand_plus_operand): Likewise.
7798 * config/s390/s390.md ("movdi"): Do not call force_const_mem.
7799 ("movsi"): Likewise. Also, remove workaround for non-general
7800 operands.
7801 ("movdf"): Do not call force_const_mem.
7802 ("movsf"): Likewise. Merge expander with *movsf insn.
7803 ("*movsf"): Remove, merge with movsf expander.
7804
7805 2004-09-30 Paul Brook <paul@codesourcery.com>
7806
7807 * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
7808 (ENDFILE_SPEC): Define.
7809 * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
7810
7811 2004-09-30 Richard Henderson <rth@redhat.com>
7812
7813 * config/alpha/qrnnd.asm: Mark for noexecstack.
7814
7815 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
7816
7817 * protoize.c, tree-cfg.c: Fix comment typos.
7818
7819 2004-09-30 Joseph S. Myers <jsm@polyomino.org.uk>
7820
7821 PR c/17730
7822 * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
7823
7824 2004-09-30 Diego Novillo <dnovillo@redhat.com>
7825
7826 * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
7827 expressions...
7828 (add_pointed_to_expr): ... here.
7829 Call add_pointed_to_expr for variables with DECL_INITIAL set.
7830 * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
7831 pointer variable, if set.
7832
7833 2004-09-30 Kazu Hirata <kazu@cs.umass.edu>
7834
7835 * config/sh/sh.c: Follow spelling conventions.
7836
7837 2004-09-29 Richard Henderson <rth@redhat.com>
7838
7839 * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
7840 * doc/tm.texi (DWARF_ZERO_REG): New.
7841
7842 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
7843 alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
7844 * config/alpha/alpha.h (DWARF_ZERO_REG): New.
7845
7846 2004-09-29 Ulrich Weigand <uweigand@de.ibm.com>
7847
7848 * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
7849 with a PLUS as source operand.
7850 (expand_movstr): Likewise.
7851 (expand_builtin_stpcpy): Likewise.
7852
7853 2004-09-29 Richard Henderson <rth@redhat.com>
7854
7855 PR 17739
7856 * tree-gimple.c (is_gimple_reg): Reject hard registers.
7857 (is_gimple_asm_val): New.
7858 * tree-gimple.h (is_gimple_asm_val): Declare.
7859 * gimplify.c (gimplify_asm_expr): Use it.
7860 * tree-pretty-print.c (print_declaration): Dump hard regs.
7861 * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
7862 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
7863 * tree-ssa-pre.c (is_undefined_value): Likewise.
7864 * tree-ssa-copy.c (may_propagate_copy): Likewise.
7865 (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
7866 * tree-ssa.c (warn_uninit): Likewise.
7867 * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
7868
7869 2004-09-29 Fariborz Jahanian <fjahanian@apple.com>
7870
7871 * c-decl.c (merge_decls): Use comptype when comparing
7872 types to decide on DECL_SIZE save of olddecl.
7873
7874 2004-09-29 Daniel Berlin <dberlin@dberlin.org>
7875
7876 * tree.h (INDIRECT_REF_P): New macro.
7877 * alias.c (get_alias_set): Use it
7878 (nonoverlapping_memrefs_p): Ditto.
7879 * emit-rtl.c (mem_expr_equal_p): Ditto.
7880 (set_mem_attributes_minus_bitpos): Ditto.
7881 (is_gimple_addressable): Ditto.
7882 (get_base_address): Ditto.
7883 * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
7884 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
7885 * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
7886 * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
7887 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
7888 (add_address_candidates): Ditto.
7889 (rewrite_address_base): Ditto.
7890
7891 2004-09-30 Ben Elliston <bje@au.ibm.com>
7892
7893 * tree-flow.h (struct bb_ann_d): Remove num_preds member.
7894 * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
7895 (rewrite_ssa_into_ssa): Likewise.
7896 * tree-phinodes.c (create_phi_node): Access the number of
7897 predecessor edges using EDGE_COUNT() and not num_preds.
7898
7899 2004-09-29 Joseph S. Myers <jsm@polyomino.org.uk>
7900
7901 PR c/7425
7902 * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
7903
7904 2004-09-29 Eric Christopher <echristo@redhat.com>
7905
7906 * fold-const.c (tree_swap_operands_p): Remove duplicated code.
7907
7908 2004-09-29 Hans-Peter Nilsson <hp@axis.com>
7909
7910 * config/cris/cris.md (moverside, movemside): With MEM, make sure
7911 the address is (plus reg mem).
7912
7913 2004-09-29 David Edelsohn <edelsohn@gnu.org>
7914
7915 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
7916
7917 2004-09-29 Nathan Sidwell <nathan@codesourcery.com>
7918
7919 * tree.c (make_node_stat): Fix uninitialized warning. Replace
7920 cascaded if ... else if with a switch.
7921
7922 2004-09-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
7923
7924 * read-rtl.c (apply_macro_to_string): Replace index with strchr.
7925
7926 2004-09-29 Jakub Jelinek <jakub@redhat.com>
7927
7928 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
7929 and TI_VA_LIST_FPR_COUNTER_FIELD.
7930 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
7931 * tree-pass.h (pass_stdarg): Add.
7932 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
7933 * tree-stdarg.c: New file.
7934 * Makefile.in (OBJS-common): Add tree-stdarg.o.
7935 (tree-stdarg.o): Add dependencies.
7936 * function.h (struct function): Add va_list_gpr_size and
7937 va_list_fpr_size fields.
7938 * function.c (allocate_struct_function): Initialize them.
7939
7940 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
7941 va_list_{g,f}pr_counter_field.
7942 (ix86_setup_incoming_varargs): Don't do anything if reg_save
7943 area will not be used. Only save registers that tree-stdarg.c
7944 detected they need saving.
7945 (ix86_va_start): Don't set up fields that won't be used.
7946
7947 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
7948 va_list_{g,f}pr_counter_field.
7949 (setup_incoming_varargs): Don't do anything if reg_save
7950 area will not be used. Only save registers that tree-stdarg.c
7951 detected they need saving.
7952 (rs6000_va_start): Don't set up fields that won't be used.
7953
7954 2004-09-29 Jakub Jelinek <jakub@redhat.com>
7955
7956 * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
7957 BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
7958 BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
7959 BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
7960 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
7961 ATTR_NONNULL_1_4): New.
7962
7963 2004-09-29 Jakub Jelinek <jakub@redhat.com>
7964
7965 PR tree-optimization/17697
7966 * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
7967 cfg if needed.
7968
7969 2004-09-28 Per Bothner <per@bothner.com>
7970
7971 * profile.c (branch_prob): Pass correct value to output_location,
7972 even when USE_MAPPED_LOCATION. Fixes bug from 09-11.
7973
7974 2004-09-28 Richard Henderson <rth@redhat.com>
7975
7976 PR 15089
7977 * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
7978 * tree-flow.h (may_propagate_copy_into_asm): Declare.
7979 * tree-ssa-ccp.c (replace_uses_in): Use it.
7980 * tree-ssa-dom.c (cprop_operand): Likewise.
7981
7982 2004-09-28 Jeff Law <law@redhat.com>
7983
7984 * tree-ssa-threadupdate.c (create_block_for_threading): Request
7985 that no outgoing edges be left in the duplicate block. Do no
7986 update information on outgoing edges or PHI nodes in target
7987 blocks here.
7988 (remove_ctrl_stmt_and_useless_edges): Renamed from
7989 remove_last_stmt_and_useless_edges. Handle case where the
7990 block is empty or has no control statements. Do not update edge
7991 flags here.
7992 (thread_block): Create a template block rather than copying the
7993 original block every time. Create outgoing edges from the
7994 duplicate blocks and update PHIs at the target of the outgoing
7995 edges here. Fix edge flags for the original block if necessary.
7996 * cfghooks (duplicate_block): No longer assert that the original
7997 block has incoming edges.
7998
7999 2004-09-29 Hans-Peter Nilsson <hp@bitrange.com>
8000
8001 * doc/extend.texi (Extended Asm): Add blurb about using Explicit
8002 Reg Vars to enforce register allocation with general constraints.
8003 (Explicit Reg Vars): Clarify relation to asm statements.
8004 (Local Reg Vars): Similar.
8005
8006 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
8007
8008 * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
8009 TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
8010 build_control_flow, new_edge): Remove.
8011 (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
8012 (bitlst, bitlst_table_last, bitlst_table): Remove.
8013 (bblst): Store basic_block pointer instead of block index.
8014 (bblst_table): Likewise.
8015 (edgelst): Store edge pointer instead of edge index.
8016 (edgelst_table, edgelst_last): New variables.
8017 (extract_bitlst): Rename to ...
8018 (extract_edgelst): ... this. Return edge pointers, not indices.
8019 (split_edges): Update call.
8020 (rgn_edges): Store edge pointers instead of indices.
8021 (edge_to_bit): Remove.
8022 (EDGE_TO_BIT): Store per-region edge index in edge->aux.
8023 (SET_EDGE_TO_BIT): New macro.
8024 (is_cfg_nonregular): Check for simple cases of unreachable blocks.
8025 (find_rgns): Remove edge_list parameter. Traverse standard CFG
8026 data structures instead of haifa_edge et al. Use edge pointers
8027 instead of edge indices everywhere.
8028 (compute_dom_prob_ps): Use standard CFG data structures. Account
8029 for exit edges.
8030 (compute_trg_info): Likewise.
8031 (propagate_deps): Likewise.
8032 (debug_candidate): Account for bblst data structure change.
8033 (check_live_1, update_live_1, is_pfree): Likewise.
8034 (IS_REACHABLE): Use standard CFG data structures.
8035 (init_ready_list): Update bblst_table/edgelst_table allocation.
8036 (schedule_region): Update alloc/cleanup code to data structure
8037 changes. Use edge->aux to store per-region edge index.
8038 (init_regions): No longer call build_control_flow. Do not
8039 create edge list any more.
8040
8041 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
8042
8043 * cse.c (cse_insn): Avoid creating direct non-local jumps.
8044 * combine.c (can_combine_p): Likewise.
8045 * local-alloc. (update_equiv_regs): Likewise.
8046
8047 2004-09-28 Richard Henderson <rth@redhat.com>
8048
8049 PR 17531
8050 * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
8051 Don't check VOIDmode here. Force PLUS operands to common type.
8052 (expand_expr_addr_expr): Do VOIDmode check earlier. Force use of
8053 Pmode if given a non pointer type.
8054
8055 2004-09-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8056
8057 PR 17531
8058 * optabs.c (expand_binop): Force constants to the correct mode.
8059
8060 2004-09-28 Ulrich Weigand <uweigand@de.ibm.com>
8061
8062 * config/s390/s390.c (s390_adjust_cost): Remove.
8063 (TARGET_SCHED_ADJUST_COST): Do not redefine.
8064 (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
8065 * config/s390/s390.md ("main_pool"): Use "larl" type
8066 attribute if TARGET_CPU_ZARCH.
8067
8068 2004-09-28 Jakub Jelinek <jakub@redhat.com>
8069
8070 * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
8071 variable.
8072
8073 2004-09-28 Diego Novillo <dnovillo@redhat.com>
8074
8075 * tree-ssa-loop.c (pass_record_bounds): Do not assign a
8076 name to the pass.
8077
8078 2004-09-28 Steven Bosscher <stevenb@suse.de>
8079
8080 * common.opt (flag_gcse_sm): Disable by default.
8081 (flag_gcse_las): Likewise.
8082 (flag_web): Likewise. Create from this file.
8083 * flags.h: Remove flag_web declaration.
8084 * toplev.c (flag_web): Likewise.
8085 (process_options): Never set flag_web.
8086
8087 2004-09-28 Steven Bosscher <stevenb@suse.de>
8088
8089 * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
8090 * tree-ssa-propagate.c: Include vec.h.
8091 (interesting_ssa_edges, varying_ssa_edges): Make these VECs
8092 instead of varrays.
8093 (cfg_blocks_add): Assert the block is not already in the worklist.
8094 Update uses of interesting_ssa_edges and varying_ssa_edges.
8095 (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
8096 ssa_propagate): Likewise.
8097
8098 2004-09-28 Joseph S. Myers <jsm@polyomino.org.uk>
8099
8100 PR c/16409
8101 * c-decl.c (start_decl): Check for initializing incomplete array
8102 of VLAs.
8103 (build_compound_literal): Check for TYPE being error_mark_node.
8104 * c-parse.in (primary): Check for VLA compound literals.
8105
8106 2004-09-28 Diego Novillo <dnovillo@redhat.com>
8107
8108 * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
8109 with --disable-checking.
8110
8111 2004-09-28 Devang Patel <dpatel@apple.com>
8112
8113 * tree-pretty-print.c (dump_generic_node): Print vector types.
8114
8115 2004-09-28 Nick Clifton <nickc@redhat.com>
8116
8117 * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
8118 invocation of the function sh_init_cumulative_args.
8119 (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
8120 (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
8121 * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
8122 * config/sh/sh.c (sh_init_cumulative_args): New function based
8123 on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
8124 heuristic added to determine the setting of force_mem when a
8125 library function is being called.
8126
8127 2004-09-28 Diego Novillo <dnovillo@redhat.com>
8128
8129 * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
8130 Skip constant arguments.
8131
8132 2004-09-28 Diego Novillo <dnovillo@redhat.com>
8133
8134 * tree-ssa-alias.c (create_name_tags): If PTR points to a
8135 volatile type, mark the tag volatile.
8136 (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
8137 volatile.
8138
8139 2004-09-28 Andrew Pinski <pinskia@physics.uc.edu>
8140
8141 * tree.def (vec_cond_expr): Fix. Change 'e'
8142 to tcc_expression.
8143
8144 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
8145
8146 * basic-block.h: Fix a comment typo.
8147
8148 2004-09-28 Kazu Hirata <kazu@cs.umass.edu>
8149
8150 * optabs.c, optabs.h: Fix comment typos.
8151
8152 2004-09-28 Eric Botcazou <ebotcazou@act-europe.fr>
8153
8154 * config/sparc/sparc.md (call_address_struct_value_sp32):
8155 Properly mask the immediate field of the 'unimp' instruction.
8156 (call_symbolic_struct_value_sp32): Likewise.
8157
8158 2004-09-28 Ben Elliston <bje@au.ibm.com>
8159 Steven Bosscher <stevenb@suse.de>
8160 Andrew Pinski <pinskia@physics.uc.edu>
8161
8162 Merge from edge-vector-branch:
8163 * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
8164 (struct edge_def): Remove pred_next, succ_next members.
8165 (struct basic_block_def): Remove pred, succ members. Add preds
8166 and succs members of type VEC(edge).
8167 (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
8168 (BRANCH_EDGE): Likewise.
8169 (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
8170 (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
8171 (edge_iterator): New.
8172 (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
8173 (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
8174 (FOR_EACH_EDGE): New.
8175 * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
8176 where applicable.
8177 (rotate_loop): Likewise.
8178 (find_traces_1_route): Likewise.
8179 (bb_to_key): Likewise.
8180 (connect_traces): Likewise.
8181 (copy_bb_p): Likewise.
8182 (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
8183 (add_labels_and_missing_jumps): Likewise.
8184 (fix_up_fall_thru_edges): Likewise.
8185 (find_jump_block): Likewise.
8186 (fix_crossing_conditional_branches): Likewise.
8187 (fix_crossing_unconditional_branches): Likewise.
8188 (add_reg_crossing_jump_notes): Likewise.
8189 * bt-load.c (augment_live_range): Likewise.
8190 * cfg.c (clear_edges): Likewise.
8191 (unchecked_make_edge): Likewise.
8192 (cached_make_edge): Likewise.
8193 (make_single_succ_edge): Likewise.
8194 (remove_edge): Likewise.
8195 (redirect_edge_succ_nodup): Likewise.
8196 (check_bb_profile): Likewise.
8197 (dump_flow_info): Likewise.
8198 (alloc_aux_for_edges): Likewise.
8199 (clear_aux_for_edges): Likewise.
8200 (dump_cfg_bb_info): Likewise.
8201 * cfganal.c (forwarder_block_p): Likewise.
8202 (can_fallthru): Likewise.
8203 (could_fall_through): Likewise.
8204 (mark_dfs_back_edges): Likewise.
8205 (set_edge_can_fallthru_flag): Likewise.
8206 (find_unreachable_blocks): Likewise.
8207 (create_edge_list): Likewise.
8208 (verify_edge_list): Likewise.
8209 (add_noreturn_fake_exit_edges): Likewise.
8210 (connect_infinite_loops_to_exit): Likewise.
8211 (flow_reverse_top_sort_order_compute): Likewise.
8212 (flow_depth_first_order_compute): Likewise.
8213 (flow_preorder_transversal_compute): Likewise.
8214 (flow_dfs_compute_reverse_execute): Likewise.
8215 (dfs_enumerate_from): Likewise.
8216 (compute_dominance_frontiers_1): Likewise.
8217 * cfgbuild.c (make_edges): Likewise.
8218 (compute_outgoing_frequencies): Likewise.
8219 (find_many_sub_basic_blocks): Likewise.
8220 (find_sub_basic_blocks): Likewise.
8221 * cfgcleanup.c (try_simplify_condjump): Likewise.
8222 (thread_jump): Likewise.
8223 (try_forward_edges): Likewise.
8224 (merge_blocks_move): Likewise.
8225 (outgoing_edges_match): Likewise.
8226 (try_crossjump_to_edge): Likewise.
8227 (try_crossjump_bb): Likewise.
8228 (try_optimize_cfg): Likewise.
8229 (merge_seq_blocks): Likewise.
8230 * cfgexpand.c (expand_gimple_tailcall): Likewise.
8231 (expand_gimple_basic_block): Likewise.
8232 (construct_init_block): Likewise.
8233 (construct_exit_block): Likewise.
8234 * cfghooks.c (verify_flow_info): Likewise.
8235 (dump_bb): Likewise.
8236 (delete_basic_block): Likewise.
8237 (split_edge): Likewise.
8238 (merge_blocks): Likewise.
8239 (make_forwarder_block): Likewise.
8240 (tidy_fallthru_edges): Likewise.
8241 (can_duplicate_block_p): Likewise.
8242 (duplicate_block): Likewise.
8243 * cfglayout.c (fixup_reorder_chain): Likewise.
8244 (fixup_fallthru_exit_predecessor): Likewise.
8245 (can_copy_bbs_p): Likewise.
8246 (copy_bbs): Likewise.
8247 * cfgloop.c (flow_loops_cfg_dump): Likewise.
8248 (flow_loop_entry_edges_find): Likewise.
8249 (flow_loop_exit_edges_find): Likewise.
8250 (flow_loop_nodes_find): Likewise.
8251 (mark_single_exit_loops): Likewise.
8252 (flow_loop_pre_header_scan): Likewise.
8253 (flow_loop_pre_header_find): Likewise.
8254 (update_latch_info): Likewise.
8255 (canonicalize_loop_headers): Likewise.
8256 (flow_loops_find): Likewise.
8257 (get_loop_body_in_bfs_order): Likewise.
8258 (get_loop_exit_edges): Likewise.
8259 (num_loop_branches): Likewise.
8260 (verify_loop_structure): Likewise.
8261 (loop_latch_edge): Likewise.
8262 (loop_preheader_edge): Likewise.
8263 * cfgloopanal.c (mark_irreducible_loops): Likewise.
8264 (expected_loop_iterations): Likewise.
8265 * cfgloopmanip.c (remove_bbs): Likewise.
8266 (fix_bb_placement): Likewise.
8267 (fix_irreducible_loops): Likewise.
8268 (remove_path): Likewise.
8269 (scale_bbs_frequencies): Likewise.
8270 (loopify): Likewise.
8271 (unloop): Likewise.
8272 (fix_loop_placement): Likewise.
8273 (loop_delete_branch_edge): Likewise.
8274 (duplicate_loop_to_header_edge): Likewise.
8275 (mfb_keep_just): Likewise.
8276 (create_preheader): Likewise.
8277 (force_single_succ_latches): Likewise.
8278 (loop_split_edge_with): Likewise.
8279 (create_loop_notes): Likewise.
8280 * cfgrtl.c (rtl_split_block): Likewise.
8281 (rtl_merge_blocks): Likewise.
8282 (rtl_can_merge_blocks): Likewise.
8283 (try_redirect_by_replacing_jump): Likewise.
8284 (force_nonfallthru_and_redirect): Likewise.
8285 (rtl_tidy_fallthru_edge): Likewise.
8286 (commit_one_edge_insertion): Likewise.
8287 (commit_edge_insertions): Likewise.
8288 (commit_edge_insertions_watch_calls): Likewise.
8289 (rtl_verify_flow_info_1): Likewise.
8290 (rtl_verify_flow_info): Likewise.
8291 (purge_dead_edges): Likewise.
8292 (cfg_layout_redirect_edge_and_branch): Likewise.
8293 (cfg_layout_can_merge_blocks_p): Likewise.
8294 (rtl_flow_call_edges_add): Likewise.
8295 * cse.c (cse_cc_succs): Likewise.
8296 * df.c (hybrid_search): Likewise.
8297 * dominance.c (calc_dfs_tree_nonrec): Likewise.
8298 (calc_dfs_tree): Likewise.
8299 (calc_idoms): Likewise.
8300 (recount_dominator): Likewise.
8301 * domwalk.c (walk_dominator_tree): Likewise.
8302 * except.c (emit_to_new_bb_before): Likewise.
8303 (connect_post_landing_pads): Likewise.
8304 (sjlj_emit_function_enter): Likewise.
8305 (sjlj_emit_function_exit): Likewise.
8306 (finish_eh_generation): Likewise.
8307 * final.c (compute_alignments): Likewise.
8308 * flow.c (calculate_global_regs_live): Likewise.
8309 (initialize_uninitialized_subregs): Likewise.
8310 (init_propagate_block_info): Likewise.
8311 * function.c (thread_prologue_and_epilogue_insns): Likewise.
8312 * gcse.c (find_implicit_sets): Likewise.
8313 (bypass_block): Likewise.
8314 (bypass_conditional_jumps): Likewise.
8315 (compute_pre_data): Likewise.
8316 (insert_insn_end_bb): Likewise.
8317 (insert_store): Likewise.
8318 (remove_reachable_equiv_notes): Likewise.
8319 * global.c (global_conflicts): Likewise.
8320 (calculate_reg_pav): Likewise.
8321 * graph.c (print_rtl_graph_with_bb): Likewise.
8322 * ifcvt.c (mark_loop_exit_edges): Likewise.
8323 (merge_if_block): Likewise.
8324 (find_if_header): Likewise.
8325 (block_jumps_and_fallthru_p): Likewise.
8326 (find_if_block): Likewise.
8327 (find_cond_trap): Likewise.
8328 (block_has_only_trap): Likewise.
8329 (find_if_case1): Likewise.
8330 (find_if_case_2): Likewise.
8331 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
8332 (perfect_nestify): Likewise.
8333 * lcm.c (compute_antinout_edge): Likewise.
8334 (compute_laterin): Likewise.
8335 (compute_available): Likewise.
8336 (compute_nearerout): Likewise.
8337 * loop-doloop.c (doloop_modify): Likewise.
8338 * loop-init.c (loop_optimizer_init): Likewise.
8339 * loop-invariant.c (find_exits): Likewise.
8340 * loop-iv.c (simplify_using_initial_values): Likewise.
8341 (check_simple_exit): Likewise.
8342 (find_simple_exit): Likewise.
8343 * loop-unroll.c (peel_loop_completely): Likewise.
8344 (unroll_loop_constant_iterations): Likewise.
8345 (unroll_loop_runtime_iterations): Likewise.
8346 * loop-unswitch.c (may_unswitch_on): Likewise.
8347 (unswitch_loop): Likewise.
8348 * modulo-sched.c (generate_prolog_epilog): Likewise.
8349 (sms_schedule): Likewise.
8350 * postreload-gcse.c (eliminate_partially_redundant_load):
8351 Likewise.
8352 * predict.c (can_predict_insn_p): Likewise.
8353 (set_even_probabilities): Likewise.
8354 (combine_predictions_for_bb): Likewise.
8355 (predict_loops): Likewise.
8356 (estimate_probability): Likewise.
8357 (tree_predict_by_opcode): Likewise.
8358 (tree_estimate_probability): Likewise.
8359 (last_basic_block_p): Likewise.
8360 (propagate_freq): Likewise.
8361 (estimate_loops_at_level): Likewise.
8362 (estimate_bb_frequencies): Likewise.
8363 * profile.c (instrument_edges): Likewise.
8364 (get_exec_counts): Likewise.
8365 (compute_branch_probabilities): Likewise.
8366 (branch_prob): Likewise.
8367 * ra-build.c (live_in): Likewise.
8368 * ra-rewrite.c (rewrite_program2): Likewise.
8369 * ra.c (reg_alloc): Likewise.
8370 * reg-stack.c (reg_to_stack): Likewise.
8371 (convert_regs_entry): Likewise.
8372 (compensate_edge): Likewise.
8373 (convert_regs_1): Likewise,
8374 (convert_regs_2): Likewise.
8375 (convert_regs): Likewise.
8376 * regrename.c (copyprop_hardreg_forward): Likewise.
8377 * reload1.c (fixup_abnormal_edges): Likewise.
8378 * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
8379 (sbitmap_insersection_of_preds): Likewise.
8380 (sbitmap_union_of_succs): Likewise.
8381 (sbitmap_union_of_preds): Likewise.
8382 * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
8383 (fix_basic_block_boundaries): Likewise.
8384 (sched_ebbs): Likewise.
8385 * sched-rgn.c (build_control_flow): Likewise.
8386 (find_rgns): Likewise.
8387 * tracer.c (find_best_successor): Likewise.
8388 (find_best_predecessor): Likewise.
8389 (tail_duplicate): Likewise.
8390 * tree-cfg.c (make_edges): Likewise.
8391 (make_ctrl_stmt_edges): Likewise.
8392 (make_goto_expr_edges): Likewise.
8393 (tree_can_merge_blocks_p): Likewise.
8394 (tree_merge_blocks): Likewise.
8395 (cfg_remove_useless_stmts_bb): Likewise.
8396 (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
8397 (tree_block_forwards_to): Likewise.
8398 (cleanup_control_expr_graph): Likewise.
8399 (find_taken_edge): Likewise.
8400 (dump_cfg_stats): Likewise.
8401 (tree_cfg2vcg): Likewise.
8402 (disband_implicit_edges): Likewise.
8403 (tree_find_edge_insert_loc): Likewise.
8404 (bsi_commit_edge_inserts): Likewise.
8405 (tree_split_edge): Likewise.
8406 (tree_verify_flow_info): Likewise.
8407 (tree_make_forwarder_block): Likewise.
8408 (tree_forwarder_block_p): Likewise.
8409 (thread_jumps): Likewise.
8410 (tree_try_redirect_by_replacing_jump): Likewise.
8411 (tree_split_block): Likewise.
8412 (add_phi_args_after_copy_bb): Likewise.
8413 (rewrite_to_new_ssa_names_bb): Likewise.
8414 (dump_function_to_file): Likewise.
8415 (print_pred_bbs): Likewise.
8416 (print_loop): Likewise.
8417 (tree_flow_call_edges_add): Likewise.
8418 (split_critical_edges): Likewise.
8419 (execute_warn_function_return): Likewise.
8420 (extract_true_false_edges_from_block): Likewise.
8421 * tree-if-conv.c (tree_if_conversion): Likewise.
8422 (if_convertable_bb_p): Likewise.
8423 (find_phi_replacement_condition): Likewise.
8424 (combine_blocks): Likewise.
8425 * tree-into-ssa.c (compute_global_livein): Likewise.
8426 (ssa_mark_phi_uses): Likewise.
8427 (ssa_rewrite_initialize_block): Likewise.
8428 (rewrite_add_phi_arguments): Likewise.
8429 (ssa_rewrite_phi_arguments): Likewise.
8430 (insert_phi_nodes_for): Likewise.
8431 (rewrite_into_ssa): Likewise.
8432 (rewrite_ssa_into_ssa): Likewise.
8433 * tree-mudflap.c (mf_build_check_statement_for): Likewise.
8434 * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
8435 (rewrite_trees): Likewise.
8436 * tree-pretty-print.c (dump_bb_header): Likewise.
8437 (dump_implicit_edges): Likewise.
8438 * tree-sra.c (insert_edge_copies): Likewise.
8439 (find_obviously_necessary_stmts): Likewise.
8440 (remove_data_stmt): Likewise.
8441 * tree-ssa-dom.c (thread_across_edge): Likewise.
8442 (dom_opt_finalize_block): Likewise.
8443 (single_incoming_edge_ignoring_loop_edges): Likewise.
8444 (record_equivalences_from_incoming_edges): Likewise.
8445 (cprop_into_successor_phis): Likewise.
8446 * tree-ssa-live.c (live_worklist): Likewise.
8447 (calculate_live_on_entry): Likewise.
8448 (calculate_live_on_exit): Likewise.
8449 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
8450 (copy_loop_headers): Likewise.
8451 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
8452 (fill_always_executed_in): Likewise.
8453 * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
8454 * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
8455 (compute_phi_arg_on_exit): Likewise.
8456 * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
8457 (get_loops_exit): Likewise.
8458 (split_loop_exit_edge): Likewise.
8459 (ip_normal_pos): Likewise.
8460 * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
8461 Likewise.
8462 * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
8463 (replace_phi_with_stmt): Likewise.
8464 (value_replacement): Likewise.
8465 * tree-ssa-pre.c (compute_antic_aux): Likewise.
8466 (insert_aux): Likewise.
8467 (init_pre): Likewise.
8468 * tree-ssa-propagate.c (simulate_stmt): Likewise.
8469 (simulate_block): Likewise.
8470 (ssa_prop_init): Likewise.
8471 * tree-ssa-threadupdate.c (thread_block): Likewise.
8472 (create_block_for_threading): Likewise.
8473 (remove_last_stmt_and_useless_edges): Likewise.
8474 * tree-ssa.c (verify_phi_args): Likewise.
8475 (verify_ssa): Likewise.
8476 * tree_tailcall.c (independent_of_stmt_p): Likewise.
8477 (find_tail_calls): Likewise.
8478 (eliminate_tail_call): Likewise.
8479 (tree_optimize_tail_calls_1): Likewise.
8480 * tree-vectorizer.c (vect_transform_loop): Likewise.
8481 * var-tracking.c (prologue_stack_adjust): Likewise.
8482 (vt_stack_adjustments): Likewise.
8483 (vt_find_locations): Likewise.
8484 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
8485 * config/i386/i386.c (ix86_pad_returns): Likewise.
8486 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
8487 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
8488
8489 2004-09-28 Eric Botcazou <ebotcazou@libertysurf.fr>
8490
8491 PR target/16532
8492 * config/sparc/sparc.c (struct machine_function): New field
8493 'leaf_function_p' and 'prologue_data_valid_p'.
8494 (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
8495 to conveniently access the above fields.
8496 (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
8497 (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
8498 of the generic flavor 'current_function_uses_only_leaf_regs'.
8499 (eligible_for_sibcall_delay): Likewise.
8500 (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
8501 'sparc_prologue_data_valid_p'. Use 'sparc_leaf_function_p'.
8502 (sparc_asm_function_prologue): Add sanity check for the assumption
8503 made in 'sparc_expand_prologue'. Use 'sparc_leaf_function_p'.
8504 (sparc_can_use_return_insn_p): New function.
8505 (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
8506 (output_restore): Likewise.
8507 (output_sibcall): Likewise.
8508 (sparc_output_mi_thunk): Likewise.
8509 * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
8510 * config/sparc/sparc.md (return): New expander.
8511
8512 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
8513
8514 2004-09-27 Mark Mitchell <mark@codesourcery.com>
8515
8516 PR c++/17642
8517 * stor-layout.c (layout_decl): Use fold_convert, not convert.
8518 (bit_from_pos): Likewise.
8519 (byte_from_pos): Likewise.
8520 (pos_from_bit): Likewise.
8521 (normalize_offset): Likewise.
8522 (place_field): Likewise.
8523 (finalize_type_size): Likewise.
8524 (layout_type): Likewise.
8525 * tree.c (build_index_type): Likewise.
8526
8527 2004-09-27 Devang Patel <dpatel@apple.com>
8528
8529 * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
8530 * genopinit.c (optabs): New entry for vcond_gen_code and
8531 vcondu_gen_code.
8532 * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
8533 (get_rtx_code): New function.
8534 (vector_compare_rtx): New function.
8535 (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
8536 (expand_vec_cond_expr_p): New function.
8537 (expand_vec_cond_expr): New function.
8538 (get_vcond_icode): New function.
8539 * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
8540 (vcond_gen_code, vcondu_gen_code): Same.
8541
8542 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
8543
8544 * Makefile.in (STAGESTUFF): Split into ...
8545 (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
8546 (mostlyclean): Update.
8547 (stage1-start, stage2-start, stage3-start, stage4-start,
8548 stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
8549 Move the STAGEMOVESTUFF.
8550
8551 2004-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
8552
8553 * system.h (getpagesize): Return 'int' instead of 'long'.
8554
8555 2004-09-27 Michael Matz <matz@suse.de>
8556
8557 PR bootstrap/17698
8558 PR bootstrap/17702
8559 * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
8560 bmp_iter_and_init): Shift by bit_in_word.
8561
8562 2004-09-27 Kelley Cook <kcook@gcc.gnu.org>
8563
8564 * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
8565 * configure.ac: Don't sinclude it here.
8566 * configure: Regenerate.
8567
8568 2004-09-27 Dorit Naishlos <dorit@il.ibm.com>
8569
8570 * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
8571 Handle AND pattern
8572
8573 2004-09-27 Joseph S. Myers <jsm@polyomino.org.uk>
8574
8575 PR c/13804
8576 * c-typeck.c (build_component_ref): Name type involved in
8577 diagnostic for structure or union without a member of the given
8578 name.
8579
8580 2004-09-27 DJ Delorie <dj@redhat.com>
8581
8582 * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
8583 .comm alignment is bytes, not bits.
8584
8585 2004-09-27 Devang Patel <dpatel@apple.com>
8586
8587 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
8588 (print_call_name): Do not print VEC_COND_EXPR.
8589
8590 2004-09-27 Devang Patel <dpatel@apple.com>
8591
8592 * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
8593
8594 2004-09-27 Jan Hubicka <jh@suse.cz>
8595
8596 * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
8597
8598 2004-09-27 Kazu Hirata <kazu@cs.umass.edu>
8599
8600 * bitmap.h: Fix a comment typo.
8601
8602 2004-09-27 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
8603
8604 * libgcc2.c (getpagesize): Change type of return value to int.
8605
8606 2004-09-26 Matt Austern <austern@apple.com>
8607
8608 * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
8609 using mmap.
8610
8611 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8612
8613 * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
8614 EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
8615 (bitmap_iterator): New type.
8616 (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
8617 bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
8618 bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
8619 bmp_iter_and_init, bmp_iter_and_next): New functions.
8620 * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
8621 EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
8622 use iterator-style EXECUTE_IF_IN_BITMAP macros.
8623 * bitmap.c (bitmap_print): Ditto.
8624 * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
8625 btr_def_live_range): Ditto.
8626 * cfganal.c (compute_dominance_frontiers_1) Ditto.
8627 * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
8628 Ditto.
8629 * ddg.c (build_inter_loop_deps): Ditto.
8630 * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
8631 Ditto.
8632 * except.c (remove_eh_handler): Ditto.
8633 * flow.c (reg_set_to_hard_reg_set): Ditto.
8634 * gcse.c (clear_modify_mem_tables): Ditto.
8635 * global.c (build_insn_chain): Ditto.
8636 * ifcvt.c (dead_or_predicable): Ditto.
8637 * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
8638 Ditto.
8639 * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
8640 * ra-rewrite.c (reloads_to_loads, rewrite_program2,
8641 detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
8642 * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
8643 tree_purge_all_dead_eh_edges): Ditto.
8644 * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
8645 insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
8646 rewrite_ssa_into_ssa): Ditto.
8647 * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
8648 * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
8649 Ditto.
8650 * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
8651 compute_flow_sensitive_aliasing, maybe_create_global_var,
8652 dump_points_to_info_for): Ditto.
8653 * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
8654 * tree-ssa-dse.c (dse_finalize_block): Ditto.
8655 * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
8656 calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
8657 Ditto.
8658 * tree-ssa-loop-ivopts.c (find_induction_variables,
8659 find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
8660 determine_use_iv_costs, determine_set_costs, find_best_candidate,
8661 set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
8662 Ditto.
8663 * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
8664 * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
8665 add_call_read_ops): Ditto.
8666 * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
8667
8668 2004-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8669
8670 * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
8671 UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
8672
8673 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
8674
8675 * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
8676 reflect size of memory regions being compared.
8677
8678 2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
8679
8680 * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
8681 expressions. Always clear MEM_SIZE and alias set.
8682
8683 2004-09-26 Roger Sayle <roger@eyesopen.com>
8684 Giovanni Bajo <giovannibajo@gcc.gnu.org>
8685
8686 PR middle-end/17112
8687 * stor-layout.c (compute_record_mode): For records with a single
8688 field, only use the field's mode if its size matches what we'd
8689 have choosen for the record ourselves. This forces the use of
8690 BLKmode for packed records that don't completely fill a mode.
8691
8692 2004-09-26 Roger Sayle <roger@eyesopen.com>
8693
8694 PR middle-end/17151
8695 * combine.c (force_to_mode): Remove dubious early return test that
8696 inhibits further optimization.
8697
8698 2004-09-26 Kazu Hirata <kazu@cs.umass.edu>
8699
8700 * profile.c: Fix a comment typo.
8701
8702 2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8703
8704 PR bootstrap/17591
8705 * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
8706 with varying offset.
8707 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
8708 (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
8709 ARRAY_REFS.
8710 (expr_invariant_in_loop_p): New function.
8711 (idx_find_step): Handle step and lower bound for ARRAY_REFs. Handle
8712 component_ref_field_offset for COMPONENT_REFs. Do not allow
8713 ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
8714 (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
8715 MISALIGNED_INDIRECT_REFs.
8716 (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
8717 (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
8718 MISALIGNED_INDIRECT_REFs.
8719
8720 2004-09-26 Joseph S. Myers <jsm@polyomino.org.uk>
8721
8722 PR c/11459
8723 * gcc.c (cpp_options, cc1_options): Preserve relative order of
8724 -std and -ansi options.
8725
8726 2004-09-26 Jan Hubicka <jh@suse.cz>
8727
8728 * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
8729 for nested functions whose proper parent has not been output.
8730
8731 * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
8732 when re-constructing profile previously invalidated by loop.
8733
8734 2004-09-25 Dale Johannesen <dalej@apple.com>
8735
8736 * tree-gimple.c: Move GIMPLE definition...
8737 * doc/tree-ssa.texi: here.
8738
8739 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
8740
8741 * tree-vectorizer.c: Fix a comment typo.
8742
8743 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
8744
8745 * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
8746 gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
8747 lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
8748 tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
8749
8750 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
8751
8752 * tree-ssa-loop-unswitch.c: Fix a comment typo.
8753
8754 2004-09-25 Kazu Hirata <kazu@cs.umass.edu>
8755
8756 * doc/passes.texi: Fix a typo.
8757
8758 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8759
8760 * tree-optimize.c (init_tree_optimization_passes): Add
8761 pass_record_bounds.
8762 * tree-pass.h (pass_record_bounds): Declare.
8763 * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
8764 New pass.
8765
8766 2004-09-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8767
8768 PR tree-optimization/17474
8769 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
8770 offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
8771
8772 2004-09-25 Jan Hubicka <jh@suse.cz>
8773
8774 * predict.c (counts_to_freqs): Make global.
8775 * predict.h (counts_to_freqa): Declare.
8776 * profile.c (compute_branch_probabilities): Compute frequencies
8777 * tree-profile.c (do_tree_profiling): Refine conditional on when
8778 tree profiling pass is needed.
8779
8780 * passes.c (rest_of_handle_cfg): Disable const/pure function
8781 detection when doing tree based profiling.
8782
8783 * tree-inline.c (expand_call_inline): Fix incorrectly reversed
8784 conditional.
8785
8786 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
8787
8788 * config/mips/mips.h (struct mips_args): Clarify comments.
8789 * config/mips/mips.c (struct mips_arg_info): Likewise.
8790 (mips_arg_info): Don't allow fpr_p to affect the register or
8791 stack alignment. Remove o64 silliness.
8792 (function_arg): Deal with the o32 float,float case specially.
8793
8794 2004-09-25 Richard Sandiford <rsandifo@redhat.com>
8795
8796 * config/mips/mips.md (loadx, storex): Define for V2SF.
8797
8798 2004-09-25 Ulrich Weigand <uweigand@de.ibm.com>
8799
8800 * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
8801 * config/s390/s390.c (s390_back_chain_rtx): New function.
8802 * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
8803 Call anti_adjust_stack.
8804 ("restore_stack_block"): Use s390_back_chain_rtx. Enable pattern
8805 only if compiling with back chain.
8806 ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
8807 back chain only if back chain enabled. Use s390_back_chain_rtx.
8808
8809 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
8810
8811 * doc/trouble.texi: Remove obsolete information. Update
8812 information on how to regenerate fixincluded headers.
8813
8814 2004-09-25 Joseph S. Myers <jsm@polyomino.org.uk>
8815
8816 PR c/12951
8817 * doc/invoke.texi: Document that
8818 -Wno-error-implicit-function-declaration is not accepted.
8819
8820 2004-09-24 Richard Henderson <rth@redhat.com>
8821
8822 * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
8823 * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
8824 on TARGET_MAX.
8825 (alpha_expand_mov): Allow unaligned vectors.
8826 (alpha_expand_unaligned_store): Use CONST0_RTX.
8827 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
8828
8829 2004-09-24 Jeff Law <law@redhat.com>
8830
8831 * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
8832 aliasing rules.
8833 (simplify_cond_and_lookup_avail_expr): Likewise.
8834
8835 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
8836
8837 PR c/12802
8838 * doc/extend.texi (Unnamed Fields): Remove "." from end of long
8839 title. Document interaction with -fms-extensions.
8840 * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
8841 section.
8842
8843 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
8844
8845 PR c/12713
8846 * doc/extend.texi: Document interaction of attribute noreturn and
8847 longjmp.
8848
8849 2004-09-24 Richard Henderson <rth@redhat.com>
8850
8851 PR rtl-opt/17503
8852 * regclass.c (subregs_of_mode): Turn into an htab. Make static.
8853 (som_hash, som_eq): New.
8854 (init_subregs_of_mode, record_subregs_of_mode): New.
8855 (cannot_change_mode_set_regs): Rewrite for htab implementation.
8856 (invalid_mode_change_p): Likewise.
8857 * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
8858 * flow.c (mark_used_regs): Likewise.
8859 (life_analysis): Use init_subregs_of_mode.
8860 * regs.h (subregs_of_mode): Remove.
8861 * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
8862
8863 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
8864
8865 * tree-ssa-phiopt.c (conditional_replacement): Use the correct
8866 type with the copy of the conditional.
8867
8868 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
8869
8870 PR tree-opt/16954
8871 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
8872 Prevent renaming if the aliasing sets of the type which the
8873 pointer points to are different.
8874
8875 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
8876
8877 PR c/17188
8878 * c-decl.c (diagnose_mismatched_decls): Check for duplicate
8879 declarations of enumerators.
8880 (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
8881 for redefinition. Check for nested redefinition.
8882 (finish_struct): Don't check for nested redefinition.
8883 (start_enum): Check for nested redefinition.
8884
8885 2004-09-24 Devang Patel <dpatel@apple.com>
8886
8887 * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
8888 only when necesssary.
8889 (combine_blocks): Combine loop header and exit block.
8890
8891 2004-09-24 Paolo Bonzini <bonzini@gnu.org>
8892
8893 * hooks.c (hook_tree_tree_bool_null): New.
8894 * hooks.h (hook_tree_tree_bool_null): Declare it.
8895 * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
8896 * targhooks.c (default_fold_builtin): Remove.
8897 * targhooks.h (default_fold_builtin): Remove.
8898
8899 2004-09-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8900
8901 PR rtl-optimization/17625
8902 * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
8903
8904 2004-09-24 Andrew Pinski <pinskia@physics.uc.edu>
8905
8906 PR tree-opt/17624
8907 * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
8908 Reject if any of the operands occur in an abnormal PHI.
8909
8910 2004-09-24 Andreas Schwab <schwab@suse.de>
8911
8912 * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
8913 rules.
8914
8915 2004-09-24 Eric Botcazou <ebotcazou@libertysurf.fr>
8916
8917 * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
8918 if the GNU assembler is used.
8919 (sparc-*-solaris2*): Likewise.
8920 * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
8921 (dbxout_function_end): Protect N_ENSYM with it.
8922 (dbxout_begin_prologue): Protect N_BNSYM with it.
8923 * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
8924 * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
8925 * config/sparc/sol2-gas.h: New file.
8926
8927 2004-09-23 H.J. Lu <hongjiu.lu@intel.com>
8928
8929 PR bootstrap/17369
8930 * Makefile.in (@set_gcc_lib_path@): Added.
8931
8932 * configure.ac: Include ../config/gcc-lib-path.m4. Use
8933 TL_AC_GNU_MAKE_GCC_LIB_PATH.
8934 * configure: Regenerated.
8935
8936 2004-09-24 Joseph S. Myers <jsm@polyomino.org.uk>
8937
8938 PR c/6980
8939 * c-typeck.c (build_c_cast): Improve wording of
8940 -Wbad-function-cast diagnostic.
8941
8942 2004-09-23 Hans-Peter Nilsson <hp@axis.com>
8943
8944 PR target/17626
8945 * config/cris/cris.md (moverside, movemside): Rename variable
8946 "reg" to "otherop". To generate canonical RTX, check that otherop
8947 isn't constant instead of checking that operand 1 is a register.
8948
8949 2004-09-23 Jakub Jelinek <jakub@redhat.com>
8950
8951 * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
8952
8953 2004-09-23 Diego Novillo <dnovillo@redhat.com>
8954 Jakub Jelinek <jakub@redhat.com>
8955
8956 * tree-flow.h (find_new_referenced_vars): Add prototype.
8957 * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
8958 Move to...
8959 * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
8960 ... here.
8961 (mark_new_vars_to_rename): Walk through all operands.
8962 * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
8963 (execute_fold_all_builtins): Use it.
8964 (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
8965
8966 2004-09-23 P.J. Darcy <darcypj@us.ibm.com>
8967
8968 * gthr-tpf.h: New file.
8969 * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
8970 * gthr.h: Use gthr-tpf.h on TPF OS.
8971
8972 2004-09-23 Jeff Law <law@redhat.com>
8973
8974 * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
8975 than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
8976 (substitute_and_fold): Likewise.
8977 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
8978 except invariants from SSA_NAME_VALUE.
8979 (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
8980 and SET_SSA_NAME_EQUIV.
8981 (restore_vars_to_original_value, record_const_or_copy): Likewise.
8982 (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
8983 (record_equality, cprop_into_successor_phis): Likewise.
8984 (record_equivalences_from_stmt, cprop_operand): Likewise.
8985 (lookup_avail_expr): Likewise.
8986 * tree-ssa-pre.c (fini_pre): Remove everything except invariants
8987 from SSA_NAME_VALUE.
8988 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
8989 (struct tree_ssa_name): Kill EQUIV field. Remove GGC skip
8990 annotation from the VALUE_HANDLE field.
8991
8992 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
8993
8994 PR c++/13989
8995 PR c++/9844
8996 * tree.c (reconstruct_complex_type): Remove extra "this".
8997 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
8998 Add V4SFmode to case statement.
8999
9000 2004-09-23 Joseph S. Myers <jsm@polyomino.org.uk>
9001
9002 PR c/16833
9003 * doc/extend.texi, doc/invoke.texi: Document interaction of
9004 -fno-builtin with format checks. Note that built-in functions
9005 have effects beyond generating code that avoids calls to those
9006 functions.
9007
9008 2004-09-23 Frank Ch. Eigler <fche@redhat.com>
9009
9010 PR tree-optimization/17533
9011 * dominance.c (verify_dominators): Tolerate even more incorrect
9012 dominance data during error message printing.
9013 * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
9014 and edges more correctly.
9015
9016 2004-09-23 Dorit Naishlos <dorit@il.ibm.com>
9017
9018 * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
9019 New tree-codes.
9020 * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
9021 MISALIGNED_INDIRECT_REF.
9022 * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
9023 * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
9024 Likewise.
9025 * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
9026 (find_interesting_uses_address): Likewise.
9027 * fold-const.c (non_lvalue, operand_equal_p): Likewise.
9028 (build_fold_addr_expr_with_type): Likewise.
9029 * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
9030 * print-rtl.c (print_mem_expr): Likewise.
9031 * tree-dump.c (dequeue_and_dump): Likewise.
9032 * tree-eh.c (tree_could_trap_p): Likewise.
9033 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
9034 * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
9035 * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
9036 Likewise.
9037 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9038 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
9039 * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
9040 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
9041 (add_address_candidates, rewrite_address_base): Likewise.
9042 * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
9043 Likewise.
9044 * tree.c (staticp, build1_stat): Likewise.
9045
9046 * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
9047 * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
9048 * tree-ssa-operands.c (get_expr_operands): Likewise.
9049 * expr.c (expand_expr_real_1): Likewise.
9050
9051 * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
9052 optabs.
9053 (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
9054 for the new optabs.
9055 (expand_ternary_op): New function.
9056 * genopinit.c (optabs): Handle the new optabs.
9057 * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
9058 (init_optabs): Initialize vec_realign_load_optab.
9059 (expand_ternary_op): New functions.
9060
9061 * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
9062 (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
9063 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
9064 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
9065 * target.h (struct vectorize): New member for struct gcc_target.
9066 (misaligned_mem_ok): New member for targetm.vectorize.
9067 (builtin_mask_for_load): Likewise.
9068 (builtin_mask_for_store): Likewise.
9069 * targethooks.c (default_vect_misaligned_mem_ok): New function.
9070 * targethooks.h (default_vect_misaligned_mem_ok): New function.
9071
9072 * config/rs6000/altivec.md (build_vector_mask_for_load): New
9073 define_expand.
9074 (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
9075 (vec_realign_load_v16qi): New define_insn.
9076 * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
9077 (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
9078 * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
9079 (altivec_builtin_mask_for_store): New variables.
9080 (rs6000_builtin_mask_for_load): New function. Implements
9081 TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
9082 (rs6000_builtin_mask_for_store): New function. Implements
9083 TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
9084 (rs6000_expand_builtin): Expand the target builtins
9085 builtin_mask_for_load and builtin_mask_for_store.
9086 (altivec_init_builtins): Initialize the new target builtins.
9087 * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
9088 Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
9089
9090 * tree-vectorizer.c (vect_create_data_ref): Renamed to
9091 vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
9092 (vect_create_addr_base_for_vector_ref): Additional argument (offset).
9093 (vectorizable_store): Call vect_create_data_ref_ptr with additional
9094 arguments, and create an indirect_ref with its return value data_ref.
9095 Check aligned_access_p.
9096 (vectorizable_load): Handle misaligned loads, using software-pipelined
9097 scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
9098 vec_realign_load_optab is supported, or using a scheme without
9099 software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
9100 misaligned_mem_ok is supported.
9101
9102 (vect_finish_stmt_generation): Typo.
9103 (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
9104 (vect_analyze_data_refs_alignment): Don't fail vectorization in the
9105 presence of misaligned loads.
9106 (vect_analyze_data_ref_access): Add check for constant init.
9107 (vect_get_symbl_and_dr): Remove duplicate line.
9108 * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
9109
9110 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
9111
9112 * builtins.c: Fix a comment typo.
9113
9114 2004-09-23 Jan Hubicka <jh@suse.cz>
9115
9116 * profile.c (branch_prob): Do not verify flow info in the middle of the
9117 pass.
9118
9119 2004-09-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9120
9121 * cfgloop.h (update_single_exits_after_duplication): Declare.
9122 (loopify, split_loop_bb): Declaration changed.
9123 * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
9124 of rtx.
9125 (loopify): Added redirect_all_edges argument.
9126 (update_single_exits_after_duplication): Export.
9127 * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
9128 * tree-flow.h (tree_duplicate_loop_to_header_edge,
9129 tree_ssa_loop_version): Declare.
9130 * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
9131 set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
9132 lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
9133 lv_update_pending_stmts, tree_ssa_loop_version): New functions.
9134
9135 * tree-ssa-loop-unswitch.c: New file.
9136 * Makefile.in (tree-ssa-loop-unswitch.o): Add.
9137 * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
9138 * tree-flow.h (tree_ssa_unswitch_loops): Declare.
9139 * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
9140 * tree-pass.h (pass_unswitch): Declare.
9141 * tree-ssa-loop.c (tree_ssa_loop_unswitch,
9142 gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
9143 * doc/passes.texi: Documen tree level loop unswitching.
9144
9145 2004-09-23 Kazu Hirata <kazu@cs.umass.edu>
9146
9147 * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
9148
9149 2004-09-22 Eric Christopher <echristo@redhat.com>
9150
9151 * builtins.c (simplify_builtin_va_start): Remove.
9152 (simplify_builtin): Ditto.
9153 (fold_builtin_strchr): Ditto.
9154 (simplify_builtin_*): Rename remainders to fold_builtin_*.
9155 (expand_builtin): Fix up for above changes.
9156 (fold_builtin_1): Add new folders. Change for above.
9157 (expand_builtin_va_start): Call fold_builtin_next_arg.
9158 * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
9159 * tree.h: Remove prototype for simplify_builtin.
9160
9161 2004-09-23 Jan Hubicka <jh@suse.cz>
9162
9163 PR debug/17389
9164 * dwarf2out.c (dwarf2out_finish): Deal with nested functions
9165 of fully inlined functions.
9166 * tree-inline.c (inline_forbidden_p_1): Nested functions can be
9167 inlined.
9168
9169 * cfgexpand.c (add_reg_br_prob_note): New function.
9170 (expand_gimple_cond_expr): Use it.
9171 (tree_expand_cfg): No longer kill the profile.
9172 * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
9173 only if it is present.
9174 * passes.c (rest_of_handle_loop_optimize): Kill the profile.
9175 * predict.c (combine_predictions_for_insn): Set the probabilities
9176 based on REG_BR_PROB note if present.
9177 * predict.c (branch_prob): Profile is read only with
9178 flag_branch_probabilities.
9179
9180 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
9181
9182 * aclocal.m4: Add in gettext's m4 includes.
9183 (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
9184 * configure.ac: Add in check for iconv.h
9185 * configure: Regenerate.
9186
9187 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
9188
9189 * aclocal.m4: Update for rename of gettext-sister.m4.
9190
9191 2004-09-22 Daniel Berlin <dberlin@dberlin.org>
9192
9193 Fix PR tree-optimization/17587
9194 * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
9195 (insert_aux): Instead of here.
9196
9197 2004-09-22 Diego Novillo <dnovillo@redhat.com>
9198
9199 PR tree-optimization/16721
9200 * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
9201 * tree-ssa-alias.c (create_memory_tag): Move setting of
9202 TREE_THIS_VOLATILE ...
9203 (get_tmt_for): ... here.
9204
9205 2004-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
9206
9207 * config/sparc/sparc.md (cmove splitter): Fix formatting.
9208 (conditional_trap expander): Reject inappropriate CCmodes.
9209 (conditional trap insn): Use V9 syntax if possible.
9210
9211 2004-09-22 Joseph S. Myers <jsm@polyomino.org.uk>
9212
9213 PR c/16566
9214 * c-typeck.c (build_component_ref): Don't special-case
9215 COMPOUND_EXPR.
9216
9217 2004-09-22 Frank Ch. Eigler <fche@redhat.com>
9218
9219 * dominance.c (verify_dominators): Don't SEGV if recount_dominator
9220 returns NULL.
9221
9222 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
9223
9224 * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
9225 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
9226 TRUTH_XOR_EXPR): Mention the restriction on types.
9227
9228 2004-09-22 Matt Austern <austern@apple.com>
9229
9230 * config/darwin.c (darwin_make_decl_one_only):
9231 Allow coalesced symbol to appear in static archive's table of contents
9232
9233 2004-09-22 Kazu Hirata <kazu@cs.umass.edu>
9234
9235 PR tree-optimization/17512
9236 * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
9237 special cases.
9238
9239 2004-09-22 David Edelsohn <edelsohn@gnu.org>
9240
9241 * dbxout.c (get_lang_number): Do not define if
9242 DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
9243
9244 2004-09-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9245
9246 PR target/15583
9247 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
9248 builtin_define ("__USE_INIT_FINI__").
9249
9250 2004-09-22 P.J. Darcy <darcypj@us.ibm.com>
9251
9252 * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
9253 * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
9254 * config/s390/s390.h (TARGET_TPF): New macro.
9255 * config/s390/s390.md ("eh_return"): New expander.
9256 * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
9257 unwind-dw2-fde-glibc.c. Add config/s390/tpf-eh.c.
9258 (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
9259 * config/s390/tpf.h (TARGET_TPF): Define to 1.
9260 (STACK_POINTER_OFFSET): Increase to 448.
9261 (TARGET_DEFAULT): Set -mtpf-trace on as default.
9262 (TPF_LOC_DIFF_OFFSET): New macro.
9263 (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
9264 encoding.
9265 (__isPATrange): Add prototype.
9266 (MD_FALLBACK_FRAME_STATE_FOR): Define.
9267 * config/s390/tpf-eh.c: New file.
9268
9269 2004-09-22 Diego Novillo <dnovillo@redhat.com>
9270
9271 * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
9272 operands in an integer comparison.
9273 * tree-cfg.c (find_taken_edge): Call fold() to determine
9274 whether the predicate is known.
9275
9276 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
9277
9278 * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
9279 * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
9280 Create build and doc directories along with the language directories.
9281 Don't create doc directory separately.
9282 * configure: Regenerate.
9283 * Makefile.in: Create all object and executables files built
9284 with the build compiler in a build/ directory.
9285 (genobjnames): Add missing build objects.
9286 (STAGESTUFF): Don't stage the gen* programs.
9287 (ggc-none.o): Define dependencies for the target compiler.
9288 (build-print-rtl.o): Rename to build/print-rtl.o.
9289 (build-errors.o): Rename to build/errors.o.
9290 (build-varray.o): Rename to build/varray.o.
9291 (maintainerclean): Delete the contents of the build directory.
9292 ($(genobjs): %.o): Explicitly use -o.
9293 (build/insn-conditions.o): Delete specfic rule to use generic rule.
9294 (build/gengtype-lex.o): Likewise.
9295 (build/gengtype-yacc.o): Likewise.
9296 (build/gcov-iov.o): Likewise.
9297
9298 2004-09-22 Nathan Sidwell <nathan@codesourcery.com>
9299
9300 * vec.h (VEC_space): Return true if there _is_ space.
9301 (VEC_reserve): Adjust.
9302
9303 2004-09-22 Richard Sandiford <rsandifo@redhat.com>
9304
9305 * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
9306 use FPRs for scalar, complex and vector types only.
9307
9308 2004-09-21 Jeff Law <law@redhat.com>
9309
9310 * tree-ssa-dom.c (opt_stats): Move so that it lives just after
9311 the opt_stats_d structure.
9312 (vrp_data): Change from a varray into a hash table.
9313 (vrp_hash_elt): New structure for elements in the vrp hash table.
9314 (vrp_hash, vrp_eq):New functions for hashing and testing equality
9315 in the vrp hash table.
9316 (tree_ssa_dominator_optimize): Initialize VRP_DATA. Reorganize
9317 initialization slightly to make it easier to read. No longer need
9318 to grow/clear the varray. Instead empty and delete the hash table.
9319 (dom_opt_finalize_block): Update due to change of VRP_DATA from
9320 a varray to a hash table.
9321 (simplify_cond_and_loop_avail_expr, record_range): Similarly.
9322
9323 * tree-ssa-ccp.c (get_default_value): If we have a constant
9324 value recorded for an SSA_NAME, then use that constant as
9325 the initial lattice value.
9326 (substitute_and_fold): Transfer equivalences discovered into
9327 SSA_NAME_EQUIV.
9328
9329 * tree.h (SSA_NAME_EQUIV): Add comments.
9330 (SET_SSA_NAME_EQUIV): Similarly.
9331
9332 2004-09-21 David Edelsohn <edelsohn@gnu.org>
9333
9334 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
9335
9336 * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
9337
9338 2004-09-21 Mark Mitchell <mark@codesourcery.com>
9339
9340 * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
9341 (finish_decl): Likewise.
9342
9343 2004-09-21 Devang Patel <dpatel@apple.com>
9344
9345 * tree.def (VEC_COND_EXPR): New tree node.
9346 * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
9347
9348 2004-09-21 Stan Shebs <shebs@apple.com>
9349
9350 * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
9351 * config/rs6000/darwin-world.asm: Likewise.
9352
9353 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
9354
9355 * tree-ssa.c (verify_def): Use print_generic_stmt,
9356 not debug_generic_stmt.
9357 (verify_use): Ditto.
9358 (verify_phi_args): Ditto.
9359 (verify_ssa): Ditto.
9360
9361 2004-09-21 Paul Brook <paul@codesourcery.com>
9362
9363 * varasm.c (default_assemble_integer): Return false for values wider
9364 than the target word size. Works around GAS bug.
9365
9366 2004-09-21 Zack Weinberg <zack@codesourcery.com>
9367
9368 * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
9369 gets value 0.
9370 * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
9371 if it has value 0.
9372
9373 2004-09-21 Daniel Berlin <dberlin@dberlin.org>
9374
9375 * c-typeck.c (build_function_call): Give name of object
9376 we are attempting to call in error message.
9377 * c-objc-common.c (c_tree_printer): Call pp_expression,
9378 not return false, for 'E' case.
9379
9380 2004-09-21 Steven Bosscher <stevenb@suse.de>
9381
9382 PR rtl-optimization/17482
9383 * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
9384 load_killed_in_block_p): Clarify comments.
9385 (record_last_reg_set_info): Make static inline.
9386 (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
9387 (record_opr_changes): New function to replace the above.
9388 (compute_hash_table): Clarify comments. Use record_opr_changes.
9389 (reg_set_between_after_reload_p): Clean up.
9390 (reg_used_between_after_reload_p): Likewise.
9391 (eliminate_partially_redundant_load): Clarify comments.
9392
9393 2004-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
9394
9395 PR rtl-optimization/17266
9396 * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
9397
9398 2004-09-21 Uros Bizjak <uros@kss-loka.si>
9399
9400 PR rtl-optimization/14851
9401 * rtlanal.c (commutative_operand_precedence): Calculate
9402 precedence of stripped constant.
9403
9404 2004-09-20 Jeff Law <law@redhat.com>
9405 Jan Hubicka <jh@suse.cz>
9406
9407 * tree-ssanames.c (make_ssa_name): No longer need to clear, then
9408 initialize key elements here.
9409 (release_ssa_name): Zero the released SSA_NAME here.
9410 * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
9411 (struct tree_ssa_name): Add new "equiv" field.
9412 * tree-ssa-dom.c (const_and_copies): Kill the global varray.
9413 (tree_ssa_dominator_optimize): No longer allocate, resize or
9414 clear CONST_AND_COPIES.
9415 (get_value_for, set_value_for): Kill.
9416 (thread_across_edge): Get/set the equivalency using
9417 SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
9418 (restore_vars_to_original_value): Likewise.
9419 (record_equivalences_from_phis): Likewise.
9420 (record_dominating_conditions): Likewise.
9421 (record_const_or_copy, record_equality): Likewise.
9422 (lookup_avail_expr): Likewise.
9423 (record_equivalences_from_stmt, cprop_operand): Likewise.
9424 (cprop_into_successor_phis): No longer need to pass around
9425 CONST_AND_COPIES. Callers updated. Get equivalences via
9426 SSA_NAME_EQUIV.
9427 (cprop_into_phis): Likewise.
9428
9429 2004-09-20 Matt Austern <austern@apple.com>
9430 Zack Weinberg <zack@codesourcery.com>
9431
9432 * c-common.c (fix_string_type): Build the unqualified array
9433 type unconditionally, then use c_build_qualified_type to get
9434 the proper const-qualified variant, and set its
9435 TYPE_MAIN_VARIANT to refer to the unqualified type.
9436 * c-lex.c (c_lex_return_raw_string): New global.
9437 (c_lex_with_flags): Honor it.
9438 * c-pragma.h: Declare it.
9439
9440 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
9441
9442 * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
9443
9444 2004-09-21 Jan Hubicka <jh@suse.cz>
9445
9446 PR middle-end/17126
9447 * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
9448 (tree_rest_of_compilation): Cleanup.
9449
9450 2004-09-20 Ulrich Weigand <uweigand@de.ibm.com>
9451
9452 * config/s390/s390.c (s390_select_rtx_section): Remove.
9453 (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
9454
9455 2004-09-20 Kaz Kojima <kkojima@gcc.gnu.org>
9456
9457 * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
9458 note to pretend a direct save from the original register when an
9459 intermediate register is used for the save.
9460
9461 2004-09-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9462
9463 * tsystem.h (alloca): Provide a default definition.
9464
9465 Revert:
9466 2001-08-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9467 * unwind-dw2.c: Call __builtin_alloca, not alloca.
9468
9469 2004-09-20 Andrew Pinski <pinskia@physics.uc.edu>
9470
9471 PR tree-opt/17558
9472 * tree-ssa-copy.c (may_propagate_copy): Only allow if the
9473 aliasing sets are the same rather than just conflicting.
9474
9475 2004-09-20 Jan Hubicka <jh@suse.cz>
9476
9477 PR middle-end/16460
9478
9479 * cgraph.c (cgraph_unnest_node): New function.
9480 (c_finalize): Rename to ....
9481 (c_warn_unused_result_recursivly): ... this one; do only the warning
9482 (finish_function): Finalize the toplevel function; do not lower nested tree.
9483 * cgraph.h (cgraph_unnest_node): Declare.
9484 * cgraphunit.c (decide_is_function_needed): Do not use cgraph
9485 nestedness datastructure.
9486 * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
9487 * reload1.c (set_label_offsets): Fix call of set_label_offsets.
9488 * tree-nested.c (finlize_nesting_tree_1): Use un-nesting code.
9489
9490 2004-09-20 Richard Henderson <rth@redhat.com>
9491
9492 * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
9493 from some_small_symbolic_operand_1; export.
9494 (some_small_symbolic_operand): Remove.
9495 * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
9496 extra C check.
9497 * config/alpha/predicates.md (some_small_symbolic_operand): New.
9498
9499 2004-09-20 Jan Hubicka <jh@suse.cz>
9500
9501 * predict.c (return_prediction): New function.
9502 (apply_return_prediction): Likewise.
9503 (tree_bb_level_predictions): Likewise.
9504 (tree_estimate_probability): Add noreturn exit edges; call
9505 bb_level_predictions; fix logic of return heuristics.
9506 (predict_paths_leading_to): Rescuesce from old CVS version of
9507 process_note_prediction function.
9508 * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
9509
9510 2004-09-20 Andreas Krebbel <krebbel1@de.ibm.com>
9511
9512 * config/s390/s390.c (s390_frame_info): Added alignment statement for
9513 floating point register area on stack.
9514
9515 2004-09-20 Jakub Jelinek <jakub@redhat.com>
9516
9517 * predict.c (expr_expected_value): Use *_CLASS_P macros.
9518
9519 2004-09-20 Daniel Berlin <dberlin@dberlin.org>
9520
9521 * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
9522 generating useless garbage.
9523
9524 2004-09-20 Paolo Bonzini <bonzini@gnu.org>
9525
9526 * builtins.c (fold_builtin): Call the new omonymous
9527 target hook for machine-dependent built-ins.
9528 * target-def.h (TARGET_FOLD_BUILTIN): New.
9529 * target.h (struct gcc_target): Add the fold_builtin hook.
9530 * targhooks.c (default_fold_builtin): New.
9531 * targhooks.h (default_fold_builtin): Declare it.
9532
9533 2004-09-20 Kazu Hirata <kazu@cs.umass.edu>
9534
9535 * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
9536 comment typos.
9537
9538 2004-09-20 Richard Sandiford <rsandifo@redhat.com>
9539
9540 PR target/17565
9541 * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
9542
9543 2004-09-20 Jan Hubicka <jh@suse.cz>
9544
9545 * predict.c (estimate_probability): Remove unnecesary code.
9546
9547 2004-09-19 Ira Rosen <irar@il.ibm.com>
9548
9549 * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
9550 (STMT_VINFO_VECT_DR_BASE): Declare.
9551 (VECT_SMODULO): Declare.
9552 * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
9553 (vect_compute_array_base_alignment): New function.
9554 (vect_analyze_data_ref_access): Check array indices. Remove one
9555 dimensional arrays restriction.
9556 (vect_get_ptr_offset): New function.
9557 (vect_get_symbl_and_dr): New function.
9558 (vect_get_base_and_bit_offset): Support additional data refs. Renamed
9559 (former name vect_get_base_decl_and_bit_offset).
9560 (vect_create_index_for_array_ref): Removed.
9561 (vect_create_index_for_vector_ref): New function.
9562 (vect_create_addr_base_for_vector_ref): New function.
9563 (vect_create_data_ref): Handle additional data refs. Call
9564 vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
9565 (vect_compute_data_ref_alignment): Support the changes. Call
9566 vect_get_base_and_bit_offset.
9567 (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
9568 data refs. Store vect_dr_base.
9569 (vect_analyze_data_ref_accesses): Support nonconstant init.
9570 (new_stmt_vec_info): Initialize vect_dr_base field.
9571 (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
9572 (get_vectype_for_scalar_type): Check for BLKmode.
9573 * tree-chrec.h (initial_condition_in_loop_num): Declare.
9574 * tree-chrec.c (initial_condition_in_loop_num): New function.
9575 (chrec_component_in_loop_num): New function.
9576 (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
9577 * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
9578 to be pointer to varray_type.
9579
9580 2004-09-19 Jan Hubicka <jh@suse.cz>
9581
9582 * basic-block.h (update_bb_profile_after_threading): Declare.
9583 * cfg.c (update_bb_profile_after_threading): Break out from ...
9584 * cfgcleanup.c (try_forward_edges): ... here; use it.
9585 * tree-ssa-dom.c (thread_across_edge): Use it.
9586 * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
9587 profile of the new BB.
9588
9589 2004-09-19 Daniel Berlin <dberlin@dberlin.org>
9590
9591 * tree-ssa-pre.c (insert_into_set): Don't put
9592 is_gimple_min_invariant values into the set.
9593
9594 2004-09-19 Andreas Jaeger <aj@suse.de>
9595
9596 * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
9597 prototype.
9598
9599 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
9600
9601 * config/cris/cris.h: Preserve the original spelling in a
9602 quote.
9603
9604 2004-09-18 Jeff Law <law@redhat.com>
9605
9606 * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
9607 global varrays to replace the block local varrays.
9608 (struct dom_walk_block_data): Remove, no longer used.
9609 (get_eq_expr_value): No longer need to pass around pointers to local
9610 varrays. Callers updated. Unused markers added to unused parameters.
9611 (record_range, record_equivalences_from_stmt): Likewise.
9612 (record_equivalences_from_incoming_edge): Likewise.
9613 (record_var_is_nonzero): Likewise. Update now that we have a
9614 single global varray of SSA_NAMEs that need restoring.
9615 (dom_opt_initialize_block_local_data): Kill, no longer used.
9616 (tree_ssa_dominator_optimize): Initialize new global varrays.
9617 Update callbacks in dominator walker structure.
9618 (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
9619 VRP_VARIABLES_STACK.
9620 (restore_nonzero_vars_to_original_value): Update now that we have
9621 a single global varray of SSA_NAMEs that need restoring.
9622 (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
9623 Remove unused variables.
9624 (optimize_stmt): Remove unused variable.
9625
9626 2004-09-18 Jan Hubicka <jh@suse.cz>
9627
9628 * tree-cfg.c (thread_jumps): Fix updating of the profile.
9629
9630 * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
9631 verify_cgraph call.
9632
9633 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
9634
9635 * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
9636 gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
9637 optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
9638 tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
9639 tree-ssa-operands.c, tree-ssa-phiopt.c,
9640 tree-ssa-threadupdate.c: Fix comment typos.
9641
9642 2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
9643
9644 * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
9645 config/arm/README-interworking, config/arm/arm-cores.def,
9646 config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
9647 config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
9648 config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
9649 config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
9650 config/frv/frv.md, config/i386/winnt.c,
9651 config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
9652 config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
9653 config/m68hc11/m68hc11.md, config/m68k/m68k.c,
9654 config/mcore/mcore.c, config/mips/mips.h,
9655 config/mn10300/mn10300.md, config/pa/pa.c,
9656 config/pa/pa64-regs.h, config/pdp11/pdp11.c,
9657 config/rs6000/rs6000.c, config/sh/symbian.c,
9658 config/sparc/sparc.h: Fix comment typos. Follow spelling
9659 conventions.
9660
9661 2004-09-18 Joseph S. Myers <jsm@polyomino.org.uk>
9662
9663 PR c/17424
9664 * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
9665
9666 2004-09-18 Diego Novillo <dnovillo@redhat.com>
9667
9668 * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
9669 remove TREE_ADDRESSABLE from RESULT_DECL.
9670
9671 2004-09-18 Diego Novillo <dnovillo@redhat.com>
9672
9673 * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
9674
9675 2004-09-18 Jan Hubicka <jh@suse.cz>
9676
9677 * tree-into-ssa.c (rewrite_ssa_into_ssa): Expect ssa_name to return
9678 NULL.
9679 * tree-ssa-alias.c (init_alias_info): Likewise.
9680 * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
9681 (verify_ssa): Likewise.
9682 * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
9683
9684 2004-09-18 Jan Hubicka <jh@suse.cz>
9685
9686 * i386.c (legitimize_pic_address): Fix splitting of PLUS with
9687 huge offset.
9688
9689 2004-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
9690
9691 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
9692 * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
9693 DW_EH_PE_sdata* for data.
9694 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
9695
9696 2004-09-17 Geoffrey Keating <geoffk@apple.com>
9697
9698 * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
9699 shared anyway.
9700
9701 PR pch/13361
9702 * c-typeck.c (constructor_asmspec): Delete.
9703 (struct initializer_stack): Delete field 'asmspec'.
9704 (start_init): Delete saving of asmspec.
9705 (finish_init): Don't update constructor_asmspec.
9706 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
9707 * stmt.c (expand_asm): Duplicate strings from tree.
9708 (expand_asm_operands): Likewise.
9709 * tree.c (tree_size): Update computation of size of STRING_CST.
9710 (make_node): Don't make STRING_CST nodes.
9711 (build_string): Allocate string with tree node.
9712 (tree_code_size): Clean up assertions, don't allow requests
9713 for "the size of a STRING_CST".
9714 * tree.def (STRING_CST): Update comment.
9715 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
9716 (tree_string): Place contents of string in tree node.
9717 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
9718 from tree.
9719
9720 2004-09-17 Zack Weinberg <zack@codesourcery.com>
9721
9722 * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
9723 * objc/Make-lang.in (objc/objc-parse.o): Likewise.
9724
9725 2004-09-17 Jones Desougi <jones@ingate.com>
9726
9727 * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
9728 * configure, config.in: Regenerate.
9729
9730 2004-09-17 Zack Weinberg <zack@codesourcery.com>
9731
9732 * tree.c, tree.h (tree_class_strings): Make array const.
9733 Reindent per coding convention. Move asterisk to proper place
9734 per coding convention.
9735
9736 2004-09-18 Andreas Schwab <schwab@suse.de>
9737
9738 * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
9739 (tree-vectorizer.o): Likewise.
9740 (targhooks.o): Likewise.
9741
9742 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
9743 Zack Weinberg <zack@codesourcery.com>
9744
9745 * alias.c (find_base_decl): Remove unreachable case '3' block.
9746 * expr.c (safe_from_p): Abort if passed a type.
9747 * tree-gimple.c (recalculate_side_effects): Abort if passed
9748 anything other than an expression.
9749 * tree-ssa-pre.c (phi_translate): Return expr immediately if
9750 is_gimple_min_invariant is true for it. Reorder cases for clarity.
9751 Abort on un-handled tree classes.
9752 (valid_in_set): Likewise.
9753 * tree.c (tree_code_class_strings): New static data.
9754
9755 * tree.h (enum tree_code_class): New.
9756 (tree_code_class_strings): Declare.
9757 (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
9758 (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
9759 (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
9760 (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
9761 (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
9762
9763 * tree.def, c-common.def, objc/objc-tree.def: Use
9764 tree_code_class enumeration constants instead of code letters.
9765
9766 * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
9767 * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
9768 * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
9769 * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
9770 * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
9771 * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
9772 * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
9773 * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
9774 * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
9775 * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
9776 * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
9777 * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
9778 * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
9779 Update to match.
9780
9781 * LANGUAGES: Add note about change.
9782
9783 2004-09-17 Diego Novillo <dnovillo@redhat.com>
9784
9785 PR tree-optimization/17319
9786 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
9787 examine pointers on the LHS of an assignment.
9788 (collect_points_to_info_r): Handle RETURN_EXPR.
9789
9790 2004-09-17 Jeff Law <law@redhat.com>
9791
9792 * tree-ssa-dom.c (const_and_copies_stack): New.
9793 (dom_walk_block_data): Remove const_and_copies field.
9794 (record_const_or_copy): No longer need to pass in varray_type *.
9795 Use CONST_AND_COPIES_STACK rather than passed in block local stack.
9796 Callers updated.
9797 (record_equality): Similarly.
9798 (restore_vars_to_original_value): Similarly. Revamp to use new
9799 single global stack rather than per-block stacks.
9800 (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
9801 (thread_across_edge): Remove now unused parameters.
9802 (dom_opt_initialize_block_local_data): No longer test the block
9803 local CONST_AND_COPIES.
9804 (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
9805
9806 2004-09-17 Jan Hubicka <jh@suse.cz>
9807
9808 PR tree-optimization/17509
9809 * tree-optimize.c (update_inlined_to_pointers): New function.
9810 (tree_rest_of_compilation): Use it.
9811
9812 2004-09-17 Devang Patel <dpatel@apple.com>
9813
9814 * dbxout.c (get_lang_number): New.
9815 (dbxout_init): Include lang number in N_SO stab.
9816 * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
9817 N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
9818
9819 2004-09-17 Diego Novillo <dnovillo@redhat.com>
9820
9821 PR tree-optimization/17273
9822 * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
9823 replacement is a constant.
9824
9825 2004-09-17 Joseph S. Myers <jsm@polyomino.org.uk>
9826
9827 * c-tree.h (enum c_typespec_keyword): New.
9828 (struct c_declspecs): Adjust description of "type". Remove
9829 specbits, explicit_int_p and explicit_char_p. Rename
9830 typedef_signed_p to explicit_signed_p. Add default_int_p, long_p,
9831 short_p, signed_p, unsigned_p and complex_p.
9832 (finish_declspecs): New.
9833 * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
9834 typename): Call finish_declspecs.
9835 * c-decl.c (finish_declspecs): New.
9836 (declspecs_add_type): Check for combinations which cannot occur in
9837 valid specifier lists. Update comments.
9838 (shadow_tag_warned): Remove checks done in finish_declspecs.
9839 Don't report useless type name if type defaulted to int.
9840 (grokdeclarator): Remove checks and actions done in
9841 finish_declspecs. Don't allow for type being NULL. Update for
9842 datastructures changes. Initialize decl_attr.
9843 (build_null_declspecs, quals_from_declspecs): Update for
9844 datastructures changes.
9845
9846 2004-09-17 Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
9847
9848 * doc/extend.texi: Fix duplicated word.
9849
9850 2004-09-17 Toon Moene <toon@moene.indiv.nluug.nl>
9851
9852 * doc/invoke.texi: Remove stray explanation on
9853 -freduce-all-givs and -fmove-all-movables.
9854
9855 2004-09-17 James Morrison <phython@gcc.gnu.org>
9856
9857 * doc/cfg.texi: Use @smallexample.
9858 * doc/md.texi: Likewise.
9859 * doc/tree-ssa.texi: Likewise.
9860 * doc/extend.texi: Likewise. Use @r{} in comments.
9861 * doc/trouble.texi: Use @r{} in comments.
9862
9863 2004-09-17 Hans-Peter Nilsson <hp@bitrange.com>
9864
9865 * configure.ac (gcc_cv_gld_version): Handle whitespace before
9866 "VERSION=".
9867 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
9868 * configure: Regenerate.
9869
9870 2004-09-17 J"orn Rennecke <joern.rennecke@superh.com>
9871
9872 * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
9873 (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
9874 * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
9875 * t-sh64 (MULTILIB_CPU_DIRS): Likewise. Match dashes and trailing
9876 slashes in substitutions.
9877 (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
9878
9879 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
9880
9881 * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
9882 gimplify.c, lambda-code.c, optabs.c, predict.c,
9883 tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
9884 tree-ssa.c, vec.h: Fix comment typos. Follow spelling
9885 conventions.
9886
9887 2004-09-17 Kazu Hirata <kazu@cs.umass.edu>
9888
9889 * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
9890 doc/extend.texi, doc/install.texi, doc/invoke.texi,
9891 doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
9892 doc/trouble.texi: Use @option around options.
9893
9894 2004-09-17 Richard Sandiford <rsandifo@redhat.com>
9895
9896 * Makefile.in (gen-protos.o): Depend on errors.h.
9897
9898 2004-09-17 Steven Bosscher <stevenb@suse.de>
9899
9900 PR tree-optimization/17513
9901 * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
9902 for successors of the entry block.
9903
9904 2004-09-17 Uros Bizjak <uros@kss-loka.si>
9905
9906 PR rtl-optimization/15187
9907 * ifcvt.c (noce_try_cmove_arith): Exit early if total
9908 insn_rtx_cost of both branches > BRANCH_COST
9909
9910 2004-09-16 Diego Novillo <dnovillo@redhat.com>
9911
9912 PR tree-optimization/17528
9913 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
9914 erase the may-alias set for a tag when merging it with
9915 another.
9916
9917 2004-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
9918
9919 * config/sh/sh.md (call): Extend 32-bit addresses to DImode
9920 for 32-bit TARGET_SHMEDIA.
9921 (call_value): Likewise.
9922
9923 2004-09-16 Diego Novillo <dnovillo@redhat.com>
9924
9925 * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
9926 test apply only to TREE_STATIC and DECL_EXTERNAL.
9927
9928 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9929
9930 * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
9931 * basic-block.h (get_dominated_by_region): Declare.
9932 * dominance.c (get_dominated_by_region): New function.
9933 * tree-cfg.c: Include cfglayout.h.
9934 (tree_duplicate_bb): Duplicate also phi nodes.
9935 (struct ssa_name_map_entry): New type.
9936 (add_phi_args_after_copy_bb, add_phi_args_after_copy,
9937 ssa_name_map_entry_hash, ssa_name_map_entry_eq,
9938 allocate_ssa_names, rewrite_to_new_ssa_names_def,
9939 rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
9940 rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
9941 * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
9942 add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
9943 rewrite_to_new_ssa_names, allocate_ssa_names,
9944 rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
9945 * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
9946 (copy_loop_headers): Use tree_duplicate_sese_region.
9947
9948 2004-09-16 Frank Ch. Eigler <fche@redhat.com>
9949
9950 * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
9951
9952 2004-09-16 Jeff Law <law@redhat.com>
9953
9954 * tree-into-ssa.c (block_defs_stack): New toplevel varray.
9955 (rewrite_block_data): Remove, no longer used.
9956 (rewrite_initialize_block_local_data): Remove, no longer used.
9957 (rewrite_initialize_block): Mark parameters as unused as needed.
9958 Change references to the block local block_defs to be block_defs_stack.
9959 Push a marker onto the block_defs_stack.
9960 (ssa_rewrite_initialize_block): Similarly.
9961 (rewrite_stmt, ssa_rewrite_stmt): Similarly.
9962 (ssa_register_new_def): No longer needs varray argument. Use
9963 block_defs_stack instead. No longer handle possibly null block_defs
9964 varray. Reverse order of items we push on the stack to make it
9965 easier to identify our marker.
9966 (register_new_def): No longer handle possibly null block_defs
9967 varray.
9968 (rewrite_finalize_block): Revamp to look for markers in the global
9969 block_defs_stack varray rather than wiping a block local varray.
9970 Mark arguments as unused as needed.
9971 (ssa_rewrite_finalize_block): Similarly.
9972 (rewrite_into_ssa): Update initialization of dom walker structure
9973 to reflect that we don't need block local data anymore. Initialize
9974 the block_defs_stack varray.
9975 (rewrite_ssa_into_ssa): Similarly.
9976 * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
9977 (struct dom_walk_data): Kill block_defs field.
9978 (tree_ssa_dominator_optimize): Initialize block_defs_stack.
9979 (thread_across_edge): Use the global block_defs_stack instead of
9980 the old block_defs varray.
9981 (dom_opt_initialize_block_local_data): Update now that we don't have
9982 block_defs field to check anymore.
9983 (dom_opt_initialize_block): Push a marker onto block_defs_stack.
9984 (restore_currdefs_to_original_value): Use the new block_defs_stack
9985 instead of a block local varray.
9986 (dom_opt_finalize_block): Similarly.
9987 (record_equivalencs_from_phis): Similarly.
9988 (optimize_stmt, register_definitions_for_stmt): Similarly.
9989
9990 2004-09-16 Andrew MacLeod <amacleod@redhat.com>
9991
9992 PR tree-optimization/17517
9993 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9994 coalesce same-root variables without checking for abnormal PHI usage.
9995
9996 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
9997
9998 * cfgloop.h (duplicate_loop): Add prototype.
9999 * cfgloopmanip.c (duplicate_loop): Make non-static.
10000 * lambda-code.c (perfect_nestify): Factor out test whether
10001 we can handle this loop into separate function.
10002 Call it.
10003 (can_convert_to_perfect_nest): New function.
10004 (replace_uses_of_x_with_y): Add modify_stmt call.
10005 * tree-loop-linear.c (linear_transform_loops): Call
10006 rewrite_into_loop_closed_ssa and free_df.
10007
10008 2004-09-16 Daniel Berlin <dberlin@dberlin.org>
10009
10010 * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
10011 loop invariant as well.
10012 (perfect_nestify): new function.
10013 (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
10014 upper bounds, and steps.
10015 Set outerinductionvar properly.
10016 (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
10017 parameters.
10018 Return NULL if we need a perfect loop and can't make one.
10019 (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
10020 (not_interesting_stmt): New function.
10021 (phi_loop_edge_uses_def): Ditto.
10022 (stmt_uses_phi_result): Ditto.
10023 (stmt_is_bumper_for_loop): Ditto.
10024 (perfect_nest_p): Ditto.
10025 (nestify_update_pending_stmts): Ditto.
10026 (replace_uses_of_x_with_y): Ditto.
10027 (stmt_uses_op): Ditto.
10028 (perfect_nestify): Ditto.
10029 * lambda-mat.c (lambda_matrix_id_p): New function.
10030 * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
10031 * lambda.h: Update prototypes.
10032 * tree-loop-linear (linear_transform_loop): Use new
10033 perfect_nest_p. Detect and ignore identity transform.
10034 * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
10035
10036 2004-09-16 Sebastian Pop <pop@cri.ensmp.fr>
10037
10038 * tree-loop-linear.c (gather_interchange_stats): Add more comments.
10039 Gather also strides of accessed data. Pass in the data references
10040 array.
10041 (try_interchange_loops): Add a new heuristic for handling the temporal
10042 locality. Pass in the data references array.
10043 (linear_transform_loops): Pass the data references array to
10044 try_interchange_loops.
10045
10046 2004-09-16 Kazu Hirata <kazu@cs.umass.edu>
10047
10048 * doc/invoke.texi: Fix typos. Follow spelling conventions.
10049
10050 2004-09-16 Nathan Sidwell <nathan@codesourcery.com>
10051
10052 * doc/c-tree.texi (Classes): Remove index entries for
10053 TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
10054
10055 2004-09-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10056
10057 * fold-const.c (fold): Fold difference of addresses.
10058 (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
10059 get_inner_reference.
10060 * tree-ssa-loop-ivopts.c (peel_address): Removed.
10061 (ptr_difference_const): Moved to fold-const.c.
10062 (split_address_cost): Use get_inner_reference instead of peel_address.
10063 (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
10064 * tree.h (ptr_difference_const): Export.
10065
10066 * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
10067 variable type to the dump. Fix indentation.
10068 (idx_find_step): Handle nonconstant array_ref_element_size and
10069 array_ref_low_bound.
10070 (idx_record_use): Handle array_ref_element_size and
10071 array_ref_low_bound.
10072 (find_interesting_uses_stmt): Handle memory = nontrivial_expression
10073 statements correctly.
10074 (get_computation_at, iv_value): Do not unshare expressions here.
10075 (rewrite_use_outer): Unshare the expression before it is emitted
10076 to code.
10077 * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
10078 Moved to tree.c.
10079 * tree.c (unsigned_type_for, signed_type_for): Moved from
10080 tree-ssa-loop-niter.c. Use langhooks.
10081 * tree.h (signed_type_for): Export.
10082
10083 2004-09-16 David Edelsohn <edelsohn@gnu.org>
10084
10085 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
10086 prototype.
10087
10088 2004-09-15 Andrew Pinski <pinskia@physics.uc.edu>
10089
10090 PR target/11572
10091 * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
10092 Add two parameters to extra_includes.
10093 (C_INCPATH_INIT): Remove.
10094 * c-incpath.c (register_include_chains): Call extra_pre_includes
10095 before adding the standard include directory.
10096 Update call to extra_includes.
10097 (!defined TARGET_EXTRA_INCLUDES): Update
10098 hook_void_charptr_charptr_int and add !define
10099 TARGET_EXTRA_PRE_INCLUDES.
10100 (!define TARGET_EXTRA_INCLUDES): Define as
10101 hook_void_charptr_charptr_int.
10102 (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
10103 (target_c_incpath): Always declare.
10104 * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
10105 empty function.
10106 (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
10107 * config/darwin.h: (darwin_register_frameworks): Update for
10108 the two new parameters.
10109 (darwin_register_objc_includes): Add prototype.
10110 (TARGET_EXTRA_PRE_INCLUDES): Define.
10111 * config/darwin-c.c (darwin_register_objc_includes): New function.
10112 (darwin_register_frameworks): Update for the two new parameters.
10113 (target_c_incpath): Remove.
10114 * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
10115 the compile line.
10116 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
10117 parameters.
10118 (TARGET_EXTRA_PRE_INCLUDES): Document.
10119
10120 * gcc.c (spec_function): Add replace-outfile.
10121 (replace_outfile_spec_function): New function.
10122 * config/darwin.h (LINK_SPEC): Add replace
10123 -lobjc with -lobjc-gnu if -fgnu-runtime is
10124 supplied.
10125 * invoke.texi (replace-outfile): Document.
10126
10127 2004-09-13 Jan Hubicka <jh@suse.cz>
10128
10129 * predict.c (expr_expected_value, strip_builtin_expect): New function.
10130 (tree_predict_by_opcode): Use it.
10131 (tree_estimate_probability): Add, for now disabled,
10132 strip_builtin_expect call.
10133
10134 2004-09-15 James E Wilson <wilson@specifixinc.com>
10135
10136 PR target/17455
10137 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
10138 if current_function_decl is a sibcall.
10139
10140 2004-09-15 Mark Mitchell <mark@codesourcery.com>
10141
10142 * varasm.c (default_function_rdodata_section): Make sure to pass
10143 along a decl for a link-once section.
10144
10145 2004-09-15 Richard Henderson <rth@redhat.com>
10146
10147 * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
10148 warning with code disable. Fix formatting.
10149
10150 2004-09-15 Steven Bosscher <stevenb@suse.de>
10151
10152 * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
10153 * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
10154 after propagating into an ADDR_EXPR.
10155
10156 2004-09-15 Andrew Pinski <apinski@apple.com>
10157
10158 PR rtl-opt/17427
10159 * gcse.c (process_insert_insn): insn_invalid_p has side effects.
10160 Move it out of gcc_assert.
10161
10162 2004-09-15 Joseph S. Myers <jsm@polyomino.org.uk>
10163
10164 * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
10165 except.c, fold-const.c, function.c, langhooks.c, params.c,
10166 reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
10167 tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
10168 for quoting in diagnostics going through pretty-print.c. Use ''
10169 for quoting in other diagnostic text.
10170 * langhooks.c: Include intl.h. Mark text locating diagnostics for
10171 translation.
10172 * Makefile.in (langhooks.o): Update dependencies.
10173 * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
10174 formats.
10175
10176 2004-09-15 Mark Mitchell <mark@codesourcery.com>
10177
10178 * configure.ac: Check for COMDAT support. Robustify check for
10179 SHF_MERGE support.
10180 * configure: Regenerated.
10181 * config.in: Likewise.
10182 * langhooks-def.h (lhd_comdat_group): New function.
10183 (LANG_HOOKS_COMDAT_GROUP): New macro.
10184 (LANG_HOOKS_DECLS): Use it.
10185 * langhooks.c (lhd_comdat_group): Define.
10186 * langhooks.h (lang_hooks_for_decls): Add comdat_group.
10187 * output.h (named_section_flags): Make it a macro.
10188 (named_section_real): New function.
10189 (default_no_named_section): Add decl parameter.
10190 (default_elf_asm_named_section): Likewise.
10191 (default_coff_asm_named_section): Likewise.
10192 (default_pe_asm_named_section): Likewise.
10193 * target.h (gcc_target): Adjust type of named_section.
10194 * varasm.c (named_section_flags): Rename to named_section_real.
10195 Add decl parameter.
10196 (default_no_named_section): Add decl parameter.
10197 (default_elf_asm_named_section): Use COMDAT, if available. Deal
10198 with the case that ASM_COMMENT_START is "@".
10199 (default_coff_asm_named_section): Add decl parameter.
10200 (default_pe_asm_named_section): Likewise.
10201 * config/alpha/alpha.c (vms_asm_named_section): Add decl
10202 parameter.
10203 (unicosmk_asm_named_section): Likewise.
10204 * config/arm/arm.c (arm_elf_asm_named_section): Remove.
10205 * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
10206 * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
10207 * config/cris/cris-protos.h (cris_target_asm_named_section):
10208 Likewise.
10209 * config/cris/cris.c (cris_target_asm_named_section):
10210 Likewise.
10211 * config/darwin/darwin-protos.h (darwin_asm_named_section):
10212 Likewise.
10213 * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
10214 * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
10215 * config/i386/i386-protos.h (i386_pe_asm_named_section):
10216 Likewise.
10217 * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
10218 * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
10219 * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
10220 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
10221 Likewise.
10222 * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
10223 * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
10224 * cp/cp-tree.h (cxx_comdat_group): Declare.
10225 * cp/decl.c (cxx_comdat_group): New function.
10226
10227 2004-09-15 Jan Hubicka <jh@suse.cz>
10228
10229 * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
10230 * tree-tailcall.c (eliminate_tail_call): Release SSA name.
10231
10232 * tree-cfg.c (remove_bb): Release SSA defs.
10233
10234 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
10235
10236 * doc/tm.texi: Follow spelling conventions.
10237
10238 2004-09-15 Kazu Hirata <kazu@cs.umass.edu>
10239
10240 * tree-ssa-dom.c: Fix comment typos.
10241
10242 2004-09-15 Alan Modra <amodra@bigpond.net.au>
10243
10244 * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
10245 include ccr.
10246 (ppc_fallback_frame_state): Save location of CR.
10247
10248 2004-09-15 Jakub Jelinek <jakub@redhat.com>
10249
10250 * expr.c (string_constant): Handle also read-only variables
10251 initialized to string literals.
10252
10253 * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
10254 into memcpy (x, y, 1) if memcpy can be expanded inline.
10255
10256 2004-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10257
10258 PR tree-optimization/17468
10259 * tree-ssa.c (verify_use, verify_phi_args, verify_ssa): Verify that
10260 definition inside a block precede uses.
10261 * tree-tailcall.c (adjust_return_value): Emit statements in the
10262 correct order.
10263
10264 2004-09-15 Richard Sandiford <rsandifo@redhat.com>
10265
10266 * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
10267
10268 2004-09-15 Eric Botcazou <ebotcazou@libertysurf.fr>
10269
10270 * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
10271
10272 2004-09-14 Jeff Law <law@redhat.com>
10273
10274 * tree-ssa-dom.c (avail_exprs_stack): New global varray.
10275 (struct dom_walk_block_data): Remove avail_exprs member.
10276 (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
10277 (lookup_avail_expr): No longer need to pass in address of
10278 the block local available exprs stack. All callers changed.
10279 (simplify_cond_and_lookup_avail_expr): Similarly.
10280 (simplify_switch_and_lookup_avail_expr): Similarly.
10281 (get_eq_expr_value, record_cond): Likewise.
10282 (record_dominating_conditions): Likewise.
10283 (update_rhs_and_lookup_avail_expr): Likewise.
10284 (record_equivalences_from_stmt): Likewise.
10285 (dom_opt_initialize_block_local_data): No longer test state of
10286 block local avail_exprs.
10287 (dom_opt_initialize_block): Mark unwind point in the global
10288 avail_expr stack.
10289 (remove_expressions_from_table): Update to unwind to the
10290 most recent unwind marker in the global avail_expr stack.
10291 All callers changed.
10292 (dom_opt_finalize_block): Mark unwind point in the global
10293 avail_expr stack as needed.
10294 (record_cond): Push elements into the global avail_exprs stack.
10295
10296 * tree-dfa.c (free_df_for_stmt): No longer static.
10297 (free_df): Update comments.
10298 * tree-flow.h (free_df_for_stmt): Prototype.
10299 * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt. Also
10300 call release_defs.
10301
10302 2004-09-14 Diego Novillo <dnovillo@redhat.com>
10303
10304 PR tree-optimization/17252
10305 * tree-ssa-alias.c (may_alias_p): Don't assume that a
10306 pointer may not point to itself when using relaxed
10307 aliasing rules.
10308
10309 2004-09-14 Richard Henderson <rth@redhat.com>
10310
10311 PR middle-end/17397
10312 * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
10313 while folding <ADDR_EXPR <INDIRECT_REF X>>.
10314
10315 2004-09-14 Andrew Pinski <apinski@apple.com>
10316
10317 * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
10318 sets of the pointers but the aliasing sets of what they point to.
10319
10320 2004-09-14 Roger Sayle <roger@eyesopen.com>
10321
10322 PR rtl-optimization/9771
10323 * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
10324 conditional compilation in init_reg_sets_1.
10325 (init_reg_sets_1): Let global_regs[i] take priority over the frame
10326 (but not stack) pointer exceptions to regs_invalidated_by_call.
10327 (globalize_reg): Globalizing a fixed register may need to update
10328 regs_invalidated_by_call.
10329
10330 2004-09-14 Diego Novillo <dnovillo@redhat.com>
10331
10332 PR tree-optimization/15262
10333 * tree-dfa.c (dump_variable): Also print the type of the
10334 variable.
10335 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
10336 memory tags are of conflicting alias sets but have no aliased
10337 symbols in common, add one tag to the alias set of the other.
10338 (setup_pointers_and_addressables): Remove hack to deal with
10339 programs with no aliased symbols.
10340 (may_alias_p): Don't special case aggregate types.
10341
10342 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
10343
10344 PR c/15498
10345 * doc/invoke.texi (Environment Variables): Correct example locale.
10346
10347 2004-09-14 Jan Hubicka <jh@suse.cz>
10348
10349 * cfg.c (expunge_block): Revert previous change adding ggc_free call.
10350
10351 2004-09-14 Mark Mitchell <mark@codesourcery.com>
10352
10353 * config.gcc: Do not build a shared libgcc for arm-none-eabi.
10354
10355 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
10356
10357 * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
10358 restrict_p.
10359 (struct c_declarator): Change u.array.quals and pointer_quals to
10360 int. Add u.array.attrs.
10361 (quals_from_declspecs): New.
10362 * c-decl.c (quals_from_declspecs): New.
10363 (shadow_tag_warned): Give more specific message for useless type
10364 qualifiers.
10365 (build_array_declarator, set_array_declarator_inner,
10366 grokdeclarator, make_pointer_declarator, build_null_declspecs,
10367 declspecs_add_qual): Update for changed structures.
10368
10369 2004-09-14 Jeff Law <law@redhat.com>
10370
10371 * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
10372 to a global varray.
10373 (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
10374 (dom_opt_initialize_block_local_data): No longer test state
10375 of stmts_to_rescan.
10376 (dom_opt_finalize_block): Update due to change in scope of
10377 stmts_to_rescan.
10378 (optimize_stmt): Similarly.
10379
10380 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
10381
10382 * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
10383 lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
10384 comment typos. Follow spelling conventions.
10385
10386 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
10387
10388 * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
10389 config/i386/predicates.md, config/sparc/sparc.c: Follow
10390 spelling conventions.
10391
10392 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10393 Steven Bosscher <stevenb@suse.de>
10394
10395 * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
10396 * basic-block.h (struct reorder_block_def): Add copy_number field.
10397 * cfgloop.h (biv_p): Declare.
10398 * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
10399 * common.opt (fsplit-ivs-in-unroller): New flag.
10400 * loop-iv.c (biv_p): New function.
10401 * loop-unroll.c: Include hashtab.h and recog.h.
10402 (struct iv_to_split, struct split_ivs_info): New types.
10403 (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
10404 free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
10405 determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
10406 insert_base_initialization, split_iv): New functions.
10407 (peel_loop_completely, unroll_loop_constant_iterations,
10408 unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
10409 Use them.
10410 * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
10411
10412 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10413
10414 * tree-cfg.c (thread_jumps): Update dominators correctly in
10415 case destination of threaded edge dominates its source.
10416
10417 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10418
10419 * unroll.c: Removed.
10420 * loop.h: Removed.
10421 * Makefile.in (LOOP_H, unroll.o): Removed.
10422 (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
10423 dependency.
10424 * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
10425 reference.
10426 * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
10427 * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
10428 * loop.c: Do not include loop.h.
10429 (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
10430 REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
10431 struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
10432 REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
10433 struct loop_regs, struct loop_movables, struct loop_info): Moved
10434 from loop.h.
10435 (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
10436 reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
10437 find_common_reg_term, loop_iterations, final_giv_value): Moved
10438 from unroll.c.
10439 (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
10440 loop_dump_stream, for_each_insn_in_loop, express_from,
10441 extend_value_for_giv, loop_iv_add_mult_emit_before,
10442 loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
10443 loop_insn_first_p, get_condition_for_loop,
10444 loop_insn_emit_before, loop_insn_hoist,
10445 loop_insn_sink): Made static.
10446 (loop_invariant_p): Made static. Removed flag_old_unroll_loops
10447 reference.
10448 (strength_reduce): Do not call unroller.
10449 (record_giv): Do not initialize unrolled field.
10450 (prescan_loop): Do not set loop_info->preconditioned.
10451 * passes.c: Do not include loop.h.
10452 (rest_of_handle_loop_optimize): Do not call unroller.
10453 * predict.c: Do not include loop.h.
10454 * rtl.h (NOTE_PRECONDITIONED): Removed.
10455 * stmt.c: Do not include loop.h.
10456 * toplev.c: Do not include loop.h.
10457 (process_options): Do not handle flag_old_unroll_loops.
10458
10459 * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
10460 Documentation removed.
10461 * doc/passes.texi (unroll.c, loop.h): Documentation removed.
10462
10463 2004-09-14 Nathan Sidwell <nathan@codesourcery.com>
10464
10465 * Makefile.in (STAGE1_CHECKING): New variable.
10466 (stage1_build): Use it.
10467 * tree-ssa.c (verify_ssa): Preserve state of dominance
10468 information.
10469
10470 2004-09-14 Uros Bizjak <uros@kss-loka.si>
10471
10472 * config/i386/i386.c (output_fp_compare): Add generation
10473 of ftst instruction.
10474 * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
10475 Use output_fp_compare () function.
10476 (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
10477 (fix_truncdi_memory): Remove operands[5] copy.
10478
10479 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
10480
10481 * config/m32r/m32r.md, config/m68k/m68kelf.h,
10482 config/mcore/mcore.md, config/rs6000/linux64.h,
10483 config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
10484 typos.
10485
10486 2004-09-13 James E Wilson <wilson@specifixinc.com>
10487
10488 * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
10489 * gen-protos.c: Include errors.h.
10490 (progname): Delete.
10491
10492 2004-09-14 Jan Hubicka <jh@suse.cz>
10493
10494 * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
10495 * predict.c: Include tree-scalar-evolution.h and cfgloop.h
10496 (predict_loops): Use number_of_iterations_exit to predict
10497 number of iterations on trees.
10498
10499 2004-09-13 Dale Johannesen <dalej@apple.com>
10500
10501 PR 17408
10502 PR 17409
10503 * c-decl.c (start_decl): Repair TREE_STATIC for initialized
10504 objects declared extern.
10505
10506 2004-09-14 Paul Brook <paul@codesourcery.com>
10507
10508 * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
10509 HOST_WIDE_INT.
10510
10511 2004-09-13 Daniel Jacobowitz <dan@debian.org>
10512
10513 * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
10514 Only use TYPE_BINFO for aggregates.
10515
10516 2004-09-13 Daniel Jacobowitz <dan@debian.org>
10517
10518 * expmed.c (synth_mult): Initialize latency. Check cost before
10519 checking ops count.
10520
10521 2004-09-13 Kenneth Zadeck <Kenneth.Zadeck@NaturalBridge.com>
10522
10523 * tree-ssa-operands.c (get_call_expr_operands): Added parm to
10524 add_call_clobber_ops and add_call_read_ops.
10525 (add_call_clobber_ops, add_call_read_ops): Added code to reduce
10526 the number of vdefs and vuses inserted based on analysis of global
10527 variables across calls. * tree-dfa.c (find_referenced_vars):
10528 Needed to reset static var maps before each function is compiled.
10529 * cgraphunit.c:
10530 (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
10531 static_vars_info,functions_to_static_vars_info,module_statics_escape,
10532 all_module_statics,searchc_env,dfs_info): New fields to support
10533 analysis of static global variables.
10534 (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
10535 cgraph_reset_static_var_maps, get_global_static_vars_info,
10536 get_global_statics_not_read, get_global_statics_not_written,
10537 searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
10538 check_rhs_var, check_lhs_var, get_asm_expr_operands,
10539 process_call_for_static_vars, scan_for_static_refs,
10540 cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
10541 clear_static_vars_maps, cgraph_propagate_bits,
10542 cgraph_characterize_statics): New. Functions to support analysis
10543 of static global variables.
10544 (cgraph_mark_local_and_external_functions): Renamed from:
10545 (cgraph_mark_local_functions)
10546 (cgraph_expand_all_functions): Remove call to
10547 cgraph_mark_local_and_external_functions.
10548 (cgraph_optimize): Added driver to analyze static variables whose
10549 scope is within the compilation unit. * cgraph.h (struct
10550 cgraph_local_info, GTY): Added statics_read, statics_written,
10551 local, calls_read_all, calls_write_all, for_functions_valid.
10552 (struct cgraph_node): Added next_cycle. * cgraph.c
10553 (dump_cgraph_node): Added print routines for new fields. *
10554 makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
10555 list.
10556
10557 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
10558
10559 * c-decl.c (grokdeclarator): Correct comments about where storage
10560 class specifiers are rejected by grammar and add corresponding
10561 asserts. Diagnose typedefs and parameters declared inline.
10562 Change warning for inline main to a pedwarn. Only diagnose inline
10563 main if hosted.
10564 (declspecs_add_scspec): Allow duplicate "inline".
10565
10566 2004-09-13 Steve Ellcey <sje@cup.hp.com>
10567
10568 * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
10569 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
10570
10571 2004-09-13 Richard Henderson <rth@redhat.com>
10572
10573 PR 17436
10574 * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
10575 (tree_type): Replace spare with contains_placeholder_bits.
10576 (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
10577 make static. Remove seen_types list.
10578 (type_contains_placeholder_p): New.
10579
10580 2004-09-13 James E Wilson <wilson@specifixinc.com>
10581
10582 * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
10583 (sb1_bdesc, bdesc_map, bdesc_arrays): New.
10584 (mips_expand_builtin): Add SB-1 support. Use bdesc_map and
10585 bdesc_arrays instead of mips_bdesc.
10586 (mips_init_builtins): Likewise.
10587 * config/mips/mips.h (TARGET_SB1): New.
10588 (HAVE_SQRT_P): Delete.
10589 * config/mips/mips.md (divide_condition): Support V2SF.
10590 (sqrt_condition, recip_condition): New.
10591 (div<mode>3): Use ANYF instead of SCALARF.
10592 (*div<mode>3): Use ANYF instead of SCALARF. Use UNITMODE instead of
10593 MODE.
10594 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
10595 instead of ISA_HAS_FP4. Use ANYF instead of SCALARF. Use UNITMODE
10596 instead of MODE.
10597 (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P. Use ANYF
10598 instead of SCALARF. Use UNITMODE instead of MODE.
10599
10600 2004-09-13 Zack Weinberg <zack@codesourcery.com>
10601
10602 * config.in: Regenerate after removal of libbanshee.
10603
10604 2004-09-13 Andrew MacLeod <amacleod@redhat.com>
10605
10606 PR tree-optimization/17400
10607 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
10608 coalesce partitions when one occurs in an abnormal PHI.
10609
10610 2004-09-13 Andrew Pinski <apinski@apple.com>
10611
10612 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
10613 name to _new_size.
10614
10615 2004-09-13 Richard Henderson <rth@redhat.com>
10616
10617 PR inline-asm/6806
10618 * cselib.c (cselib_invalidate_rtx): Export. Remove unused args.
10619 (cselib_invalidate_rtx_note_stores): New.
10620 (cselib_record_sets, cselib_process_insn): Update to match.
10621 * cselib.h (cselib_invalidate_rtx): Declare.
10622 * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
10623
10624 2004-09-13 Richard Henderson <rth@redhat.com>
10625
10626 PR tree-opt/10528
10627 * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
10628 after copying its argument.
10629
10630 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
10631
10632 * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
10633 c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
10634 in diagnostics. Use %' for English apostrophes.
10635 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
10636 (pedwarn_c90, pedwarn_c99): Use it.
10637 * c-decl.c (lookup_label): Quote label name in diagnostic.
10638 * c-parse.in (yyprint): Use ' instead of ` for left quote.
10639 * c-typeck.c (warn_for_assignment): Likewise.
10640
10641 2004-09-13 Jan Hubicka <jh@suse.cz>
10642
10643 * i386.c (x86_schedule): New global variable.
10644 (override_options): Disable scheduling when not supported.
10645 * i386.h (x86_schedule): Declare.
10646 (TARGET_SCHEDULE): New macro.
10647
10648 2004-09-12 Richard Henderson <rth@redhat.com>
10649
10650 PR c++/16254
10651 * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
10652 * tree.c, tree.h (has_cleanups): Remove.
10653
10654 2004-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10655
10656 * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
10657 arguments of the phi nodes correctly.
10658
10659 2004-09-12 Jan Hubicka <jh@suse.cz>
10660
10661 * ggc-common.c (cmp_statistics): Fix sorting.
10662
10663 2004-09-12 David Edelsohn <edelsohn@gnu.org>
10664
10665 PR target/16795
10666 * expmed.c (expand_divmod): If cheap power of 2 divide is
10667 available, use it for negative constant as well.
10668
10669 2004-09-12 Andrew Pinski <apinski@apple.com>
10670
10671 * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
10672 size of 0.
10673
10674 * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
10675
10676 2004-09-12 Richard Henderson <rth@redhat.com>
10677
10678 * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
10679 or minus one.
10680 (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
10681 post-reload, and scratch NULL.
10682 * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
10683 (x86_shift_adj_2): Use ix86_expand_clear.
10684 (ashldi3): Remove CMOVE expansion difference.
10685 (ashldi3_1): Remove.
10686 (*ashldi3_1): Rename from *ashldi3_2. Use reg_or_pm1_operand and
10687 add constraints for immediates. New peephole for split-with-temp.
10688 Run splitter after peep2 pass.
10689 (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
10690 (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
10691 (setcc_2): Rename with *.
10692 * config/i386/predicates.md (reg_or_pm1_operand): New.
10693 (ashldi_input_operand): New.
10694
10695 2004-09-12 Richard Henderson <rth@redhat.com
10696
10697 * print-rtl.c (print_decl_name): New.
10698 (print_mem_expr): Use it.
10699
10700 2004-09-12 Richard Henderson <rth@redhat.com
10701
10702 PR 17186, part deux
10703 * except.c (sjlj_emit_function_exit): Fix logic locating
10704 sjlj_exit_after in final block.
10705
10706 2004-09-12 Toon Moene <toon@moene.indiv.nluug.nl>
10707
10708 * common.opt: Remove flags -fmove-all-movables and
10709 -freduce-all-givs.
10710 * loop-invariant.c (find_invariants_to_move):
10711 Remove all uses of flag_move_all_movables.
10712 * loop.c (move_movables): Remove all uses of
10713 flag_move_all_movables.
10714 (strength_reduce): Remove all uses of
10715 flag_reduce_all_givs.
10716 * doc/invoke.texi: Remove documentation of flags
10717 -fremove-all-movables and -freduce-all-givs.
10718
10719 2004-09-11 Roger Sayle <roger@eyesopen.com>
10720
10721 PR middle-end/17411
10722 * tree-sra.c (generate_element_zero): Revert recent build_int_cst
10723 change. elt->type may be a floating point type, so use fold_convert.
10724
10725 2004-09-11 Geoffrey Keating <geoffk@apple.com>
10726
10727 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
10728 the thing referenced as used, not the stub itself.
10729
10730 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
10731
10732 * c-tree.h (enum c_storage_class): New.
10733 (struct c_declspecs): Add storage_class, inline_p and thread_p.
10734 * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
10735 declarations and "auto" or "register" in file scope empty
10736 declarations. Give more specific warnings for other cases of
10737 storage class specifiers in empty declarations.
10738 (grokdeclarator): Update for new structures. Don't check for
10739 multiple storage classes. Diagnose file-scope "register" if
10740 pedantic.
10741 (build_null_declspecs): Update.
10742 (declspecs_add_scspec): Update. Diagnose multiple storage class
10743 specifiers and invalid uses of "__thread".
10744
10745 2004-09-11 Zack Weinberg <zack@codesourcery.com>
10746
10747 * tree.c (tree_code_size): New function, bulk of code from tree_size.
10748 (tree_size, make_node): Use it.
10749 * tree-ssa-pre.c (init_pre): Use it.
10750 * tree.h: Prototype it.
10751
10752 2004-09-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10753
10754 * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
10755 * tree-dfa.c (compute_immediate_uses, add_immediate_use,
10756 redirect_immediate_use): Use PHI_DF.
10757 * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
10758 (bb_for_stmt): Use PHI_BB.
10759 (get_immediate_uses): Use PHI_DF.
10760 * tree-ssa-dse.c (max_stmt_uid): New variable.
10761 (get_stmt_uid): New function.
10762 (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
10763 node annotations.
10764 * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
10765 (max_uid): Renamed to max_stmt_uid.
10766 (get_stmt_uid): New function.
10767 (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
10768 phi node annotations.
10769 * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
10770 * tree.h (PHI_BB, PHI_DF): New accessor functions.
10771 (struct tree_phi_node): Add bb and df fields.
10772
10773 2004-09-11 Richard Henderson <rth@redhat.com>
10774
10775 PR middle-end/17416
10776 * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
10777 in conflict loop.
10778
10779 2004-09-11 Jan Hubicka <jh@suse.cz>
10780
10781 * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
10782 (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
10783 * i386.md (i387_cw): Add 'uninitialized' mode.
10784
10785 * profile.c (BB_TO_GCOV_INDEX): move more to the front.
10786 (output_location): Break out from ....
10787 (branch_prob): ... here; handle gcov output on trees.
10788 * toplev.c (process_options): No longer be sorry about coverage for
10789 trees.
10790
10791 2004-09-11 Steven Bosscher <stevenb@suse.de>
10792
10793 PR c++/17412
10794 * fold-const.c (fold): Do not try to fold the operand of a
10795 CLEANUP_POINT_EXPR if that operand does itself not have any
10796 operands.
10797
10798 PR middle-end/17417
10799 * langhooks.c (lhd_decl_printable_name): Make sure that this
10800 function is called with is a decl node that has an identifier.
10801 * tree-pretty-print.c (dump_function_name): New function to
10802 wrap PRINT_FUNCTION_NAME and dump_decl_name.
10803 (print_call_name): Use it.
10804
10805 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
10806
10807 * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
10808 "config.h" if not.
10809
10810 2004-09-11 Jakub Jelinek <jakub@redhat.com>
10811
10812 * tree-ssa-alias.c (collect_points_to_info_r): Handle
10813 pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
10814 to OFFSET.
10815
10816 2004-09-11 Richard Henderson <rth@redhat.com>
10817
10818 * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
10819 (expand_expr_addr_expr): New function. Take ADDR_EXPR instead of the
10820 operand of the ADDR_EXPR.
10821 (expand_expr_real_1): Update to match.
10822
10823 2004-09-11 David Edelsohn <edelsohn@gnu.org>
10824
10825 PR target/17277
10826 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
10827 choose 64-bit version.
10828
10829 2004-09-11 Richard Henderson <rth@redhat.com>
10830
10831 PR c/17396
10832 * c-typeck.c (build_unary_op): Add legacy offsetof hack.
10833
10834 2004-09-11 Kazu Hirata <kazu@cs.umass.edu>
10835
10836 * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
10837 doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
10838 Insert @: after i.e. or e.g.
10839
10840 2004-09-10 Geoffrey Keating <geoffk@apple.com>
10841
10842 * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
10843 D.xxx rather than <Dxxx>.
10844
10845 2004-09-10 Adam Nemet <anemet@lnxw.com>
10846
10847 * configure.ac (AC_MSG_CHECKING(what linker to use)):
10848 in_tree_ld_is_elf should be true for LynxOS.
10849 * configure: Regenerate.
10850
10851 2004-09-10 Adam Nemet <anemet@lnxw.com>
10852
10853 * Makefile.in (all.cross): Add srcextra.
10854
10855 2004-09-10 Roger Sayle <roger@eyesopen.com>
10856
10857 PR middle-end/17024
10858 * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
10859 floating point comparison operators. Change aborts to gcc_asserts.
10860
10861 2004-09-10 Geoffrey Keating <geoffk@apple.com>
10862
10863 * final.c (output_asm_insn): Correct problem with -fverbose-asm.
10864
10865 2004-09-10 James E Wilson <wilson@specifixinc.com>
10866
10867 * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
10868 (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
10869
10870 * convert.c (convert_to_vector): Replace recursive call with
10871 error_mark_node.
10872
10873 * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
10874 Add integer argument named constant. Use const_tiny_rtx instead of
10875 CONST0_RTX.
10876 (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
10877 and CONST1_RTX.
10878 (init_emit_once): Fix users of gen_const_vector. Set CONST1_RTX for
10879 vector types.
10880 * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
10881 of gen_rtx_raw_CONST_VECTOR.
10882
10883 2004-09-10 Eric Christopher <echristo@redhat.com>
10884
10885 PR c/16046
10886 * c-parse.in (attribute): Add NULL_TREE for error case
10887 for error recovery.
10888
10889 2004-09-10 Zack Weinberg <zack@codesourcery.com>
10890
10891 * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
10892 (extract_interface_info): Delete prototype.
10893 * c-decl.c (extract_interface_info): Delete stub.
10894 * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
10895 it's not already been done ...
10896 (init_c_lex): ... not here.
10897 (fe_file_change): Don't call extract_interface_info.
10898
10899 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
10900
10901 * c-tree.h (struct c_declspecs): Remove typedef_decl. Add
10902 typedef_p and typedef_signed_p.
10903 * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
10904 (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
10905 Check typedef_p and typedef_signed_p, not typedef_decl.
10906 (grokfield): Check typedef_p, not typedef_decl.
10907 (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
10908 not typedef_decl.
10909 (declspecs_add_type): Set typedef_p and typedef_signed_p, not
10910 typedef_decl.
10911
10912 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
10913
10914 * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
10915
10916 2004-09-10 Geoffrey Keating <geoffk@apple.com>
10917
10918 * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
10919 temporary variables.
10920
10921 * dbxout.c (dbxout_block): Update for
10922 current_function_func_begin_label a string.
10923 * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
10924 * except.c (dw2_output_call_site_table): Likewise.
10925 * toplev.c (current_function_func_begin_label): Likewise.
10926 * tree.h (current_function_func_begin_label): Likewise.
10927 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
10928
10929 * final.c (output_asm_insn): Use strtoul instead of atoi, save a
10930 loop.
10931
10932 * config/darwin.c: Include target.h.
10933 (struct machopic_indirection): Make ptr_name a string.
10934 (machopic_indirection_hash): Update for ptr_name a string.
10935 (machopic_indirection_eq): Likewise.
10936 (machopic_indirection_name): Likewise.
10937 (machopic_output_indirection): Likewise.
10938 (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
10939 string. Don't expect stub names to be in the identifier hash table.
10940 Do call strip_name_encoding before looking up entry in ID hash table.
10941 * config/t-darwin (darwin.o): Add target.h to dependencies.
10942
10943 * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
10944 of fprintf for register names.
10945
10946 * output.h (unlikely_section_label): Delete declaration.
10947 (unlikely_text_section_name): Likewise.
10948 * varasm.c (unlikely_section_label_printed): Make static.
10949 (unlikely_section_label): Likewise.
10950 (unlikely_text_section_name): Likewise.
10951 (assemble_start_function): Use reconcat.
10952
10953 * rtl.def (REG): Add comment to describe third field.
10954
10955 2004-09-10 Andrew Pinski <apinski@apple.com>
10956
10957 * config/darwin.c (machopic_mcount_stub_name): Call
10958 machopic_indirection_name instead of making the string
10959 ourselves.
10960
10961 2004-09-10 Diego Novillo <dnovillo@redhat.com>
10962
10963 Revert
10964
10965 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
10966
10967 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
10968 memory tag is call clobbered, so are its aliases.
10969 (group_aliases): When two memory tags being grouped, if one is
10970 call clobbered, so are the other and its aliases.
10971 (add_may_alias): Remove call-clobbering stuff.
10972 (replace_may_alias): Likewise.
10973 (merge_pointed_to_info): Merge pt_global_mem
10974
10975 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
10976
10977 * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
10978 genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
10979 passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
10980 tree-scalar-evolution.c, tree-ssa-copyrename.c,
10981 tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
10982
10983 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
10984
10985 * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
10986 (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
10987 pair. Remove match_dup from inputs. Remove masaccs handling.
10988 (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
10989 (masaccs, mdasaccs): Turn into define_insns.
10990
10991 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
10992
10993 * tree-tailcall.c (process_assignment): Only do accumulator transforms
10994 for floating-point types if flag_unsafe_math_optimizations.
10995
10996 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
10997
10998 * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
10999 config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
11000 config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
11001 config/h8300/h8300.md, config/i386/gmm_malloc.h,
11002 config/ia64/ia64.md, config/ip2k/libgcc.S,
11003 config/mips/mips-ps-3d.md, config/mips/mips.c,
11004 config/rs6000/rs6000.c, config/s390/s390.c,
11005 config/sh/symbian.c: Fix comment typos.
11006
11007 2004-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
11008
11009 * config/s390/s390.c (s390_emit_prologue): Added missing
11010 "{}" brackets.
11011
11012 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
11013
11014 * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
11015 typos. Follow spelling conventions.
11016
11017 2004-09-10 Joseph S. Myers <jsm@polyomino.org.uk>
11018
11019 * toplev.c (warn_deprecated_use): Correct logic for saying "type"
11020 in diagnostic. Don't dereference NULL TYPE_NAME.
11021
11022 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
11023
11024 * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
11025 tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
11026 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
11027 value-prof.c: Fix comment typos. Follow spelling conventions.
11028
11029 2004-09-10 Jan Hubicka <jh@suse.cz>
11030
11031 * tree-ssa-dce.c (remove_dead_stmt): Update profile.
11032 * tree-split_edge.c (tree_split_edge): Likewise.
11033 (thread_jumps): Likewise.
11034
11035 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
11036
11037 * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
11038 typos.
11039
11040 2004-09-10 Paolo Bonzini <bonzini@gnu.org>
11041
11042 * cgraph.h (cgraph_dump_file): Do not declare.
11043 * cgraphunit.c (cgraph_dump_file): Declare as static.
11044 (init_cgraph): New.
11045 * toplev.c (cgraph_dump_file): Do not declare.
11046 (compile_file): Call init_cgraph.
11047 * tree-dump.c (dump_files): Add IPA dump file, remove
11048 XML dump of call graph.
11049 (get_dump_file_name): Support IPA dump file naming scheme.
11050 * tree.h (enum tree_dump_index): Add IPA dump file, remove
11051 XML dump of call graph.
11052 * doc/invoke.texi (Debugging Options): Document the new options.
11053
11054 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
11055
11056 * doc/extend.texi: Document the FR-V built-in functions.
11057
11058 2004-09-09 James E Wilson <wilson@specifixinc.com>
11059
11060 * doc/sourcebuild.texi: Delete libbanshee reference.
11061
11062 2004-09-10 Kelley Cook <kcook@gcc.gnu.org>
11063
11064 * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
11065
11066 2004-09-09 James E Wilson <wilson@specifixinc.com>
11067
11068 * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
11069 before calling vector_types_convertible_p.
11070 (digest_init): Check that inside_init has VECTOR_TYPE before calling
11071 vector_types_convertible_p. Don't give another error if
11072 convert_for_assignment returns error_mark_node.
11073
11074 2004-09-09 Roger Sayle <roger@eyesopen.com>
11075
11076 PR middle-end/17055
11077 * fold-const.c (build_zero_vector): New function to construct a
11078 vector (either floating point or integer) of zeros.
11079 (fold_convert): Internally, enable conversions of integer zero
11080 to arbitrary vector types, using the new build_zero_vector.
11081
11082 2004-09-09 Roger Sayle <roger@eyesopen.com>
11083
11084 * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
11085 expand a left shift by an immediate constant as either an ashl or
11086 a sequence of additions.
11087 (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
11088 instead of calling gen_ashlsi3 with a constant directly.
11089
11090 2004-09-09 Roger Sayle <roger@eyesopen.com>
11091
11092 * config/i386/i386.c (ix86_split_long_move): When optimizing for
11093 size, and the low and high parts of a DImode constant are equal,
11094 copy one register to another instead of loading the same immediate
11095 value twice.
11096
11097 2004-09-09 Richard Henderson <rth@redhat.com>
11098
11099 PR middle-end/17367
11100 * function.c (assign_parm_setup_block): Only put PARALLELs into
11101 a register if use_register_for_decl.
11102
11103 2004-09-09 Eric Christopher <echristo@redhat.com>
11104
11105 * ra-colorize.c (reset_lists): Move variable declaration inside
11106 ENABLE_CHECKING to avoid unused variable warnings when
11107 not --enable-checking.
11108 (check_colors): Ditto.
11109
11110 2004-09-09 Mike Stump <mrs@apple.com>
11111
11112 * version.c (version_string): Bump to 4.0.0.
11113 * doc/include/gcc-common.texi (version-GCC): Likewise.
11114
11115 2004-09-10 Jakub Jelinek <jakub@redhat.com>
11116
11117 * doc/extend.texi (nothrow attribute): The attribute is not
11118 implemented in 3.2 and earlier.
11119
11120 2004-09-09 Steve Ellcey <sje@cup.hp.com>
11121
11122 * genrecog.c (compute_predicate_codes): Use op0_codes
11123 instead of codes.
11124
11125 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
11126
11127 * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
11128 implementation changes.
11129
11130 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
11131
11132 * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
11133 a PARALLEL instead of a SET due to added clobbers.
11134
11135 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
11136
11137 * reload.c (find_reloads_address): Pass correct operand to
11138 maybe_memory_address_p.
11139
11140 2004-09-09 Daniel Berlin <dberlin@dberlin.org>
11141
11142 * Makefile.in: Remove libbanshee, tree-alias-*.
11143 Remove tree-alias-common.h dependencies.
11144 * common.opt: Remove -ftree-points-to.
11145 * configure.ac: Remove libbanshee.
11146 * flags.h: Remove pta_type, flag_tree_points_to.
11147 * gengtype.c (open_base_files): Remove tree-alias-type.h.
11148 * opts.c (OPT_ftree_points_to): Remove.
11149 * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
11150 * tree-dfa.c: Remove tree-alias-common.h
11151 * tree-into-ssa.c: Ditto.
11152 * tree-outof-ssa.c: Ditto.
11153 * tree-ssa-copyrename.c: Ditto.
11154 * tree-ssa-live.c: Ditto.
11155 * tree-optimize.c: Ditto.
11156 * tree-ssa.c: Ditto.
11157 Remove pass_build_pta, pass_del_pta.
11158 * tree-pass.h: Ditto.
11159 * tree-ssa-alias.c: Remove tree-alias-common.h.
11160 (struct alias_stats_d): Remove pta_queries, pta_resolved.
11161 (pass_may_alias): Remove PROP_pta requirement.
11162 (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
11163 (get_tmt_for): Ditto.
11164 (dump_alias_stats): Ditto.
11165 * doc/passes.texi: Remove blurb about points-to analysis.
11166 * fortran/Make-lang.in: Remove tree-alias-*.o.
11167
11168 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
11169
11170 * genattrtab.c (write_insn_cases): New function, split out from
11171 write_attr_case. Correctly handle define_peepholes when printing
11172 the instruction name.
11173 (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
11174
11175 2004-09-09 Hans-Peter Nilsson <hp@axis.com>
11176
11177 PR target/17377
11178 * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
11179 * config/cris/cris.c (cris_return_address_on_stack): New function.
11180 * config/cris/cris.md ("return"): For location of return address,
11181 also check cris_return_address_on_stack.
11182
11183 2004-09-09 Diego Novillo <dnovillo@redhat.com>
11184
11185 * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
11186 calling phi_ssa_name_p.
11187
11188 2004-09-09 Richard Henderson <rth@redhat.com>
11189
11190 PR c/17322
11191 * c-typeck.c (valid_compound_expr_initializer): Use only
11192 initializer_constant_valid_p, and not TREE_CONSTANT.
11193 (digest_init): Likewise.
11194 (output_init_element): Likewise.
11195
11196 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
11197
11198 * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
11199 live_out_1, prune_hardregs_for_mode, init_one_web_common,
11200 reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
11201 record_conflict, compare_and_free_webs, init_webs_defs_uses,
11202 parts_to_webs_1, parts_to_webs, reset_conflicts,
11203 check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
11204 ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
11205 * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
11206 put_move, remove_move, combine, select_spill, colorize_one_web,
11207 try_recolor_web, insert_coalesced_conflicts, check_colors,
11208 break_precolored_alias, restore_conflicts_from_coalesce,
11209 sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
11210 * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
11211 reloads_to_loads, rewrite_program2, emit_colors): Likewise.
11212 * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
11213 check_df): Likewise.
11214 * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
11215 real_arithmetic, real_compare, real_exponent, real_ldexp,
11216 real_identical, real_to_integer, real_to_integer2, real_to_decimal,
11217 real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
11218 real_digit, real_nan, real_maxval, round_for_format, real_convert,
11219 real_to_target, real_from_target, real_hash, encode_ieee_single,
11220 encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
11221 encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
11222 encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
11223 * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
11224 extract_insn, peep2_next_insn, peep2_reg_dead_p,
11225 peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
11226 if_test_bypass_p): Likewise.
11227 * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
11228 stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
11229 emit_swap_insn, swap_to_top, move_for_stack_reg,
11230 subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
11231 compensate_edge, convert_regs_1): Likewise.
11232 * regclass.c (init_reg_sets, init_reg_sets_1,
11233 memory_move_secondary_cost): Likewise.
11234 * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
11235 Likewise.
11236 * reload.c (push_secondary_reload, find_valid_class, push_reload,
11237 operands_match_p, decompose, immune_p, find_reloads,
11238 find_reloads_toplev, find_reloads_address_1, subst_reloads,
11239 copy_replacements, refers_to_regno_for_reload_p,
11240 reg_overlap_mentioned_for_reload_p): Likewise.
11241 * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
11242 count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
11243 verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
11244 reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
11245 choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
11246 do_output_reload, fixup_abnormal_edges): Likewise.
11247 * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
11248 fill_slots_from_thread, relax_delay_slots): Likewise.
11249 * resource.c (mark_referenced_resources, mark_set_resources):
11250 Likewise.
11251 * rtl.c (copy_rtx, rtx_equal_p): Likewise.
11252 * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
11253 dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
11254 subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
11255 find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
11256 hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
11257 * rtlhooks.c (gen_lowpart_general): Likewise.
11258 * sbitmap.c (sbitmap_difference): Likewise.
11259 * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
11260 sched_analyze, add_forward_dependence): Likewise.
11261 * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
11262 * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
11263 schedule_insns): Likewise.
11264 * sched-vis.c (print_pattern): Likewise.
11265 * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
11266 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
11267 simplify_const_relational_operation, simplify_ternary_operation,
11268 simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
11269 Likewise.
11270 * sreal.c (copy, sreal_sub, sreal_div): Likewise.
11271 * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
11272 resolve_operand_name_1, expand_return, expand_decl,
11273 expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
11274 * stor-layout.c (put_pending_size, smallest_mode_for_size,
11275 int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
11276 set_sizetype, get_mode_bounds): Likewise.
11277
11278 2004-09-09 Zack Weinberg <zack@codesourcery.com>
11279
11280 * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
11281 * config/arm/pecoff.h, config/i386/beos-elf.h
11282 * config/i386/cygming.h, config/i386/i386-interix.h:
11283 Define MULTIPLE_SYMBOL_SPACES to 1, not nothing. Remove
11284 comment cloned from manual.
11285 * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
11286
11287 2004-09-09 Frank Ch. Eigler <fche@redhat.com>
11288
11289 * builtins.c (build_va_arg_indirect_ref): New function.
11290 (std_gimplify_va_arg_expr): Call it instead of mudflap check and
11291 build_fold_indirect_ref.
11292 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
11293 * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
11294 * tree.h: Declare new function.
11295
11296 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
11297
11298 * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
11299 dumping for development builds.
11300 * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
11301 development builds only.
11302 * genattrtab.c (write_eligible_delay): Fix typo in previous
11303 commit.
11304 * tree.c (iterative_hash_expr): Replace gcc_unreachable with
11305 gcc_assert.
11306
11307 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
11308
11309 * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
11310 cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
11311 process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
11312 hoist_code, extract_mentioned_regs_helper, compute_store_table,
11313 insert_store): Use gcc_assert and gcc_unreachable.
11314 * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
11315 gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
11316 ggc_record_overhead): Likewise.
11317 * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
11318 init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
11319 ggc_pop_context, clear_marks, validate_free_objects,
11320 ggc_pch_read): Likewise.
11321 * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
11322 ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
11323 ggc_push_context, check_cookies, ggc_collect,
11324 ggc_print_statistics): Likewise.
11325 * gimple-low.c (lower_function_body, lower_stmt,
11326 lower_bind_expr): Likewise.
11327 * gimplify.c (gimple_tree_eq, push_gimplify_context,
11328 pop_gimplify_context, gimple_pop_condition, create_tmp_var,
11329 declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
11330 mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
11331 gimplify_case_label_expr, gimplify_exit_block_expr,
11332 canonicalize_component_ref, gimplify_compound_lval,
11333 gimplify_self_mod_expr, gimplify_call_expr,
11334 gimplify_init_ctor_eval, gimplify_init_constructor,
11335 gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
11336 gimplify_expr, check_pointer_types_r,
11337 force_gimple_operand): Likewise.
11338 * global.c (global_alloc, build_insn_chain): Likewise.
11339 * graph.c (clean_graph_dump_file,
11340 finish_graph_dump_file): Likewise.
11341 gcov-io.c (gcov_open): Use GCOV_CHECK.
11342
11343 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
11344
11345 * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
11346
11347 2004-09-09 Jan Hubicka <jh@suse.cz>
11348
11349 middle-end/17128
11350 * tree-inline.c (expand_call_inline): Make overactive sanity check
11351 happy.
11352
11353 2004-09-09 Jan Hubicka <jh@suse.cz>
11354
11355 * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
11356 VIEW_CONVERT_EXPR.
11357
11358 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
11359
11360 * Makefile.in (gengtype): Use $(BUILD_ERRORS).
11361 (gengtype.o): Depend on errors.h.
11362 * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
11363 (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
11364 attr_alt_subset_p, attr_alt_subset_of_compl_p,
11365 attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
11366 write_test_expr, write_attr_value, write_eligible_delay,
11367 make_internal_attr, make_numeric_value): Likewise.
11368 * genautomata.c (regexp_name, get_str_vect,
11369 gen_presence_absence_set, automaton_decl_hash,
11370 automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
11371 decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
11372 process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
11373 test_unit_reserv, it_is_empty_reserv_sets,
11374 reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
11375 reserv_sets_and, output_cycle_reservs, get_free_state,
11376 intersected_state_reservs_p, states_union, remove_arc,
11377 copy_insn_regexp, transform_1, transform_2, transform_3,
11378 regexp_transform_func, store_alt_unit_usage,
11379 check_regexp_units_distribution, process_seq_for_forming_states,
11380 process_alts_for_forming_states, make_automaton,
11381 form_arcs_marked_by_insn, create_composed_state,
11382 set_out_arc_insns_equiv_num, partition_equiv_class,
11383 process_insn_equiv_class, set_insn_equiv_classes,
11384 units_to_automata_heuristic_distr, form_regexp,
11385 longest_path_length, output_dfa_max_issue_rate, add_vect,
11386 out_state_arcs_num, add_vect_el, output_trans_table,
11387 output_state_alts_table, output_dead_lock_vect,
11388 output_max_insn_queue_index_def,
11389 output_min_insn_conflict_delay_func,
11390 output_internal_insn_latency_func, output_print_reservation_func,
11391 output_cpu_unit_reservation_p, output_state_arcs,
11392 make_insn_alts_attr, make_internal_dfa_insn_code_attr,
11393 make_default_insn_latency_attr,
11394 form_important_insn_automata_lists): Likewise.
11395 * genemit.c (gen_exp, output_add_clobbers,
11396 output_added_clobbers_hard_reg_p): Likewise.
11397 * genextract.c (print_path, main): Likewise.
11398 * genflags.c (gen_macro): Likewise.
11399 * gengenrtl.c: Include errors.h
11400 (type_from_format, accessor_from_format): Likewise.
11401 * gengtype.c (get_file_basename, output_mangled_typename,
11402 walk_type, write_types_process_field,
11403 write_types_local_process_field): Likewise.
11404 * genmodes.c (complete_mode): Likewise.
11405 * genopinit.c (gen_insn): Likewise.
11406 * genoutput.c (output_insn_data, check_constraint_len,
11407 constraint_len): Likewise.
11408 * genpreds.c (add_mode_tests):Likewise.
11409 * gen-protos.c (add_hash): Likewise.
11410 * genrecog.c (find_operand, find_matching_operand,
11411 validate_pattern, add_to_sequence, maybe_both_true,
11412 nodes_identical_1, merge_trees, write_switch, write_cond,
11413 write_action, is_unconditional, make_insn_sequence,
11414 debug_decision_2): Likewise.
11415 * gensupport.c (is_predicable, collect_insn_data,
11416 alter_predicate_for_insn, maybe_eval_c_test): Likewise.
11417
11418 2004-09-09 Jan Hubicka <jh@suse.cz>
11419
11420 * basic-block.h (guess_outgoing_edge_probabilities): Declare.
11421 * cfgbuild.c (compute_outgoing_frequencies): When probability is
11422 missing, guess it.
11423 (find_many_sub_basic_blocks): Do update profile only when it is
11424 present.
11425 * predict.c (set_even_probabilities): Break out from ...
11426 (combine_predictions_for_insn): ... here; deal with
11427 !can_predict_insn_p insns.
11428 (combine_predictions_for_bb): Use set_even_probabilities.
11429 (bb_estimate_probability_locally): Break out from ....
11430 (estimate_probability): ... here.
11431 (guess_outgoing_edge_probabilities): New entry point.
11432
11433 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
11434
11435 * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
11436 handle_braces, process_brace_body, main, used_arg,
11437 set_multilib_dir, print_multilib_info): Use fatal, not abort.
11438
11439 * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
11440
11441 * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
11442 * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
11443 Morgan's theorem in last checkin.
11444
11445 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
11446 Nathan Sidwell <nathan@codesourcery.com>
11447
11448 * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
11449 Use gcc_assert, gcc_unreachable & internal_error instead of abort.
11450 * timevar.c (timevar_push, timevar_pop, timevar_start,
11451 timevar_stop): Likewise.
11452 * toplev.c (default_pch_valid_p): Likewise.
11453 * tracer.c (tail_duplicate): Likewise.
11454 * tree-alias-common.c (get_alias_var_decl,
11455 get_values_from_constructor, create_alias_var, delete_alias_vars,
11456 empty_points_to_set, same_points_to_set, ptr_may_alias_var):
11457 Likewise.
11458 * tree.c (tree_size, make_node_stat, copy_node_stat,
11459 build_int_cst_wide, integer_all_onesp, list_length, chainon,
11460 tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
11461 substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
11462 build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
11463 lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
11464 build_method_type_directly, decl_type_context, get_callee_fndecl,
11465 get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
11466 tree_fold_gcd): Likewise.
11467 * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
11468 make_cond_expr_edges, group_case_labels, tree_merge_blocks,
11469 cleanup_control_expr_graph, find_taken_edge,
11470 find_taken_edge_switch_expr, phi_alternatives_equal,
11471 is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
11472 stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
11473 tree_split_edge, tree_verify_flow_info, thread_jumps,
11474 tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
11475 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
11476 chrec_fold_multiply_poly_poly): Likewise.
11477 * tree-complex.c (extract_component, expand_complex_division,
11478 expand_complex_comparison, expand_complex_operations_1,
11479 build_replicated_const, expand_vector_operations_1): Likewise.
11480 * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
11481 build_classic_dir_vector): Likewise.
11482 * tree-dfa.c (compute_immediate_uses_for_phi,
11483 compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
11484 create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
11485 * tree-dump.c (dequeue_and_dump): Likewise.
11486 * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
11487 record_in_finally_tree, replace_goto_queue_1,
11488 maybe_record_in_goto_queue, verify_norecord_switch_expr,
11489 do_return_redirection): Likewise.
11490 * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
11491 add_to_dst_predicate_list, find_phi_replacement_condition,
11492 replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
11493 Likewise.
11494 * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
11495 initialize_inlined_parameters, declare_return_variable,
11496 estimate_num_insns_1, expand_call_inline, expand_calls_inline,
11497 optimize_inline_calls, copy_tree_r): Likewise.
11498 * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
11499 ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
11500 * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
11501 tsi_split_statement_list_after, tsi_split_statement_list_before):
11502 Likewise.
11503 * tree-mudflap.c (mf_varname_tree): Likewise.
11504 * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
11505 lookup_tramp_for_decl, convert_all_function_calls): Likewise.
11506 * tree-optimize.c (tree_rest_of_compilation): Likewise.
11507 * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
11508 coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
11509 free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
11510 Likewise.
11511 * tree-phinodes.c (resize_phi_node, add_phi_arg,
11512 remove_all_phi_nodes_for): Likewise.
11513 * tree-pretty-print.c (op_prio, print_call_name): Likewise.
11514 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
11515 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
11516 * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
11517 sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
11518 generate_one_element_ref, generate_element_copy,
11519 generate_element_zero, scalarize_copy, scalarize_init,
11520 scalarize_ldst): Likewise.
11521 * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
11522 add_may_alias, add_pointed_to_expr, add_pointed_to_var,
11523 collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
11524 * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
11525 * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
11526 set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
11527 widen_bitfield, ccp_fold_builtin): Likewise.
11528 * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
11529 replace_exp_1, propagate_tree_value): Likewise.
11530 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
11531 * tree-ssa-dce.c (set_control_dependence_map_bit,
11532 find_control_dependence, find_pdom, mark_operand_necessary,
11533 mark_stmt_if_obviously_necessary,
11534 mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
11535 * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
11536 simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
11537 eliminate_redundant_computations, avail_expr_eq): Likewise.
11538 * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
11539 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
11540 duplicate_blocks): Likewise.
11541 * tree-ssa-loop-im.c (for_each_index, set_level,
11542 is_call_clobbered_ref): Likewise.
11543 * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
11544 stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
11545 find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
11546 peel_address, ptr_difference_cost, may_replace_final_value,
11547 determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
11548 rewrite_use, rewrite_uses): Likewise.
11549 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
11550 check_loop_closed_ssa_use): Likewise.
11551 * tree-ssanames.c (make_ssa_name): Likewise.
11552 * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
11553 finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
11554 get_stmt_operands, get_expr_operands, get_asm_expr_operands,
11555 get_indirect_ref_operands, add_stmt_operand): Likewise.
11556 * tree-ssa-pre.c (value_exists_in_set_bitmap,
11557 value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
11558 phi_translate, valid_in_set, compute_antic,
11559 find_or_generate_expression, create_expression_by_pieces, insert_aux,
11560 create_value_expr_from, eliminate): Likewise.
11561 * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
11562 * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
11563 Likewise.
11564 * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
11565 eliminate_tail_call): Likewise.
11566 * tree-vectorizer.c (vect_create_index_for_array_ref,
11567 vect_align_data_ref, vect_create_data_ref,
11568 vect_create_destination_var, vect_get_vec_def_for_operand,
11569 vect_finish_stmt_generation, vect_transform_stmt,
11570 vect_transform_loop_bound, vect_transform_loop,
11571 vect_analyze_operations): Likewise.
11572 * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
11573 Likewise.
11574 * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
11575 get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
11576 bsi_after_labels, bsi_last): Likewise.
11577 * tree-ssa-live.c (var_union, change_partition_var,
11578 create_ssa_var_map, calculate_live_on_entry, root_var_init,
11579 type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
11580 Likewise.
11581 * tree-ssa-live.h (partition_is_global, live_entry_blocks,
11582 tpa_find_tree): Likewise.
11583 (register_ssa_partition_check): Declare.
11584 (register_ssa_partition): use it.
11585 * tree-ssa-live.c: Include errors.h.
11586 (register_ssa_partition_check): New.
11587 * tree-ssa-operands.c: Include errors.h.
11588 * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
11589
11590 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
11591 Catherine Moore <clm@redhat.com>
11592
11593 * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
11594 (FRV_CPU_FR405): New processor enums.
11595 (frv_issue_rate, frv_acc_group): Declare.
11596 * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
11597 (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
11598 (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
11599 (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
11600 (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
11601 handled by CPP_SPEC.
11602 (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
11603 (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
11604 (ACC_MASK): New macro.
11605 (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
11606 (TARGET_MEDIA_FR450): New macro.
11607 (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
11608 (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
11609 (LABEL_ALIGN_AFTER_BARRIER): Define.
11610 (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
11611 (IACC_FIRST, IACC_LAST): New pair of SPRs.
11612 (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
11613 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
11614 (REGISTER_NAMES): Add entries for new registers.
11615 (REG_CLASS_CONTENTS): Update for new register ranges.
11616 (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
11617 (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
11618 (PACKING_FLAG_USED_P): Delete.
11619 (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
11620 (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
11621 (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
11622 (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
11623 (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
11624 (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
11625 (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
11626 (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
11627 (CPU_UNITS_QUERY): Define to 1.
11628 * config/frv/frv.c: Include gt-frv.h
11629 (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
11630 (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
11631 (frv_insn_group): New enumeration.
11632 (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
11633 (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
11634 (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
11635 (REGSTATE_CONDJUMP): Delete. Shuffle other numbers to cover the
11636 gap left by REGSTATE_LIVE.
11637 (regstate_t): New typedef.
11638 (TARGET_MACHINE_DEPENDENT_REORG): Define.
11639 (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
11640 (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
11641 Initialize frv_unit_codes[] and frv_type_to_unit[].
11642 (frv_conditional_register_usage): Remove redundant fixing of
11643 accumulator registers.
11644 (frv_insn_packing_flag): Update specification.
11645 (frv_function_prologue): Don't set frv_insn_packing_flag here.
11646 Zero out frv_nops[].
11647 (frv_expand_epilogue): Remove comments about the no-longer-present
11648 SIBCALL_P argument.
11649 (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
11650 PACKING_FLAG_USED_P() when deciding whether to pack instructions.
11651 (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
11652 of the new meaning of frv_insn_packing_flag. Emit an mnop.p if
11653 packing is disabled and if INSN can only issue to M1.
11654 (call_operand): Check TARGET_LONG_CALLS.
11655 (acc_operand, even_acc_operand, quad_acc_operand)
11656 (accg_operand): Simplify. Don't accept pseudo registers.
11657 (output_move_single): Handle SPR<-zero moves.
11658 (frv_issue_rate): Make non-static. Handle FRV_CPU_{FR550,FR450,FR405}.
11659 (frv_registers_update, frv_registers_used_p): Delete.
11660 (frv_registers_set_p): Delete.
11661 (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
11662 (frv_issues_to_branch_unit_p): New function.
11663 (frv_packet): New structure.
11664 (frv_cond_flags, frv_regstate_conflict_p): New functions.
11665 (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
11666 (frv_registers_update_1, frv_registers_update): New functions.
11667 (frv_start_packet, frv_start_packet_block, frv_finish_packet)
11668 (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
11669 (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
11670 (frv_sort_insn_group, frv_reorder_packet): New functions.
11671 (frv_pack_insns): Use frv_reorder_packet.
11672 (frv_packet_address): New variable.
11673 (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
11674 (frv_register_nop, frv_reorg): New functions.
11675 (bdesc_1arg): Add __SCUTSS.
11676 (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
11677 __SUBSS, __SLASS and __SCAN.
11678 (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
11679 (bdesc_int_void2arg, bdesc_prefetches): New arrays.
11680 (frv_init_builtins): Register the above builtins.
11681 (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
11682 registers. Turn the referenced accumulators into global registers.
11683 (frv_read_iacc_argument): New function.
11684 (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
11685 (frv_split_iacc_move): New function.
11686 (frv_expand_builtin): Handle the new builtins.
11687 * config/frv/frv.md: Replace old schedulers with new order-independent
11688 ones. Add schedulers for the FR405, FR450 and FR550. Describe new
11689 packing algorithm.
11690 (cpu): Add fr550, fr450 and fr405.
11691 (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
11692 mqshift. Replace fmas with fsmadd and fmad with fdmadd. Delete m7.
11693 (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
11694 (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
11695 (fnop, mnop): New patterns.
11696 (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
11697 New constants.
11698 (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
11699 (mclracca8): Use ACC_MASK to determine the upper set of accumulator
11700 registers.
11701 (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
11702 (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
11703 (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
11704 (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
11705 (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
11706 (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
11707 (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
11708 (frv_prefetch0, frv_prefetch): New patterns.
11709 * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
11710 -mcpu=simple. Add -mcpu=fr550.
11711 (MULTILIB_DIRNAMES): Update accordingly.
11712 (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
11713 -mcpu=fr450.
11714 * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
11715 -mlong-calls and -malign-labels options for FR-V.
11716
11717 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
11718
11719 PR c/8420
11720 * c-tree.h (struct c_declspecs): New.
11721 (struct c_declarator, struct c_type_name, struct c_parm): Update
11722 element types.
11723 (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
11724 start_function, start_decl, build_c_parm,
11725 make_pointer_declarator): Update prototypes.
11726 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
11727 declspecs_add_scspec, declspecs_add_attrs): New.
11728 (split_specs_attrs): Remove.
11729 * c-parse.in (%union): Add dsptype.
11730 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
11731 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
11732 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
11733 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
11734 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
11735 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
11736 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
11737 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
11738 declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
11739 declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
11740 maybe_type_quals_attrs): Change to dsptype.
11741 (struct c_declspec_stack): New.
11742 (current_declspecs, declspec_stack): Change type.
11743 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
11744 structures.
11745 (extdefs): Likewise.
11746 (setspecs): Likewise.
11747 (fndef): Use current_declspecs for empty declspecs list.
11748 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
11749 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
11750 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
11751 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
11752 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
11753 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
11754 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
11755 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
11756 structures and helper functions. Update comments.
11757 (typespec_nonattr): Correct comment.
11758 (maybe_type_quals_attrs, typename): Update to new structures.
11759 * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
11760 shadow_tag, shadow_tag_warned, start_function, start_decl,
11761 build_c_parm, make_pointer_declarator,
11762 set_array_declarator_inner, groktypename): Update to new
11763 structures.
11764 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
11765 declspecs_add_scspec, declspecs_add_attrs): New.
11766 (split_specs_attrs): Remove.
11767 (shadow_tag_warned): Make warning for useless type names a
11768 pedwarn. Give hard error for long, short, signed, unsigned or
11769 _Complex used with struct, union or enum in empty declaration.
11770 Make found_tag a bool.
11771 (grokdeclarator): Remove checks now done at parse time.
11772
11773 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
11774
11775 * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
11776 c_declarator, struct c_type_name, struct c_parm): New.
11777 (build_array_declarator, set_array_declarator_inner,
11778 get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
11779 start_function, start_decl, build_c_parm, build_attrs_declarator,
11780 build_function_declarator, make_pointer_declarator, c_cast_expr,
11781 store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
11782 (build_id_declarator): New.
11783 * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
11784 structures.
11785 * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
11786 ARG_INFO_OTHERS): Remove.
11787 (build_id_declarator): New.
11788 (build_array_declarator, set_array_declarator_inner, groktypename,
11789 start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
11790 grokfield, start_function, store_parm_decls_newstyle,
11791 store_parm_decls_oldstyle, store_parm_decls,
11792 build_c_parm, build_attrs_declarator, build_function_declarator,
11793 make_pointer_declarator, grokdeclarator): Update to new
11794 structures.
11795 * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
11796 parmtype.
11797 (declarator, notype_declarator, after_type_declarator,
11798 parm_declarator, parm_declarator_starttypename,
11799 parm_declarator_nostarttypename, array_declarator, typename,
11800 absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
11801 absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
11802 parmlist_1, parmlist_2, parmlist_or_identifiers,
11803 parmlist_or_identifiers_1): Use these types.
11804 (primary, after_type_declarator, parm_declarator_starttypename,
11805 notype_declarator, component_decl, component_declarator,
11806 component_notype_declarator, typename, absdcl,
11807 absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
11808 parmlist_2, parmlist_or_identifiers_1): Update to new structures.
11809
11810 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
11811
11812 * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
11813 in_typeof, record_maybe_used_decl, pop_maybe_used,
11814 c_expr_sizeof_expr, c_expr_sizeof_type): New.
11815 * c-decl.c (parser_obstack): New.
11816 (c_init_decl_processing): Initialize parser_obstack.
11817 (c_write_global_declarations_1): Check for used but undefined
11818 static functions.
11819 * c-parse.in (%union): Add otype.
11820 (save_obstack_position): New.
11821 (extdefs): Use it.
11822 (unary_expr): Update in_sizeof and in_alignof. Use
11823 c_expr_sizeof_expr and c_expr_sizeof_type.
11824 (sizeof): Update in_sizeof.
11825 (alignof): Update in_alignof.
11826 (typeof): Update in_typeof.
11827 (typespec_nonreserved_nonattr): Call pop_maybe_used.
11828 * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
11829 maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
11830 pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
11831 (build_external_ref): Set C_DECL_USED or call
11832 record_maybe_used_decl if appropriate.
11833 * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
11834
11835 2004-09-08 Eric Christopher <echristo@redhat.com>
11836
11837 * builtins.c: Fix prototype for fold_builtin_atan.
11838
11839 2004-09-08 Eric Christopher <echristo@redhat.com>
11840
11841 * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
11842 fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
11843 fold_builtin_atan): New functions. Migrate function bodies...
11844 (fold_builtin_1): ... from here.
11845
11846 2004-09-09 Alan Modra <amodra@bigpond.net.au>
11847
11848 * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
11849 save_size.
11850
11851 2004-09-08 David Edelsohn <edelsohn@gnu.org>
11852
11853 * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
11854 * config/rs6000/power5.md (power5-lmul): Same.
11855
11856 2004-09-08 Richard Henderson <rth@redhat.com>
11857
11858 PR rtl-opt/17186
11859 * function.c (expand_function_end): Have fall-off-the-end
11860 return path jump around return register setup.
11861
11862 2004-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
11863
11864 * config/sparc/sparc.c (sparc_indent_opcode): New variable.
11865 (output_return): Do not test for the presence of the 'unimp' insn.
11866 Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
11867 as predicates instead of custom ones. Return raw strings when
11868 possible.
11869 (output_sibcall): Likewise. Concatenate strings.
11870 (output_ubranch): Remove kludge for TurboSPARC.
11871 (output_cbranch): Remove 'noop' parameter. Do not output 'nop'.
11872 (output_v9branch): Likewise.
11873 (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
11874 <#>: Set sparc_indent_opcode if the delay slot is filled.
11875 <(>: Likewise.
11876 <)>: New operand to emit the displacement from the saved PC on return.
11877 <@>: Remove.
11878 * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
11879 (ASM_OUTPUT_OPCODE): New macro.
11880 (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
11881 * config/sparc/sparc.md (normal_branch, inverted_branch,
11882 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
11883 inverted_fpe_branch): Adjust call to output_cbranch.
11884 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
11885 call to output_v9branch.
11886 * config/sparc/sparc-protos.h (output_cbranch): Adjust.
11887 (output_v9branch): Likewise.
11888
11889 2004-09-08 Devang Patel <dpatel@apple.com>
11890
11891 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
11892 -segs_read_only_addr and -segs_read_write_addr.
11893 (WORD_SWITCH_TAKES_ARG): Same.
11894 (LINK_SPEC): Same.
11895 * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
11896 -segs_read_write_addr.
11897
11898 2004-09-08 Richard Henderson <rth@redhat.com>
11899
11900 * function.c (reference_callee_copied): New.
11901 (assign_parm_setup_reg): Use it.
11902 * calls.c (initialize_argument_information): Likewise.
11903 (emit_library_call_value_1): Likewise.
11904 * function.h (reference_callee_copied): Declare.
11905
11906 * target.h (struct gcc_target): Add callee_copies.
11907 * target-def.h (TARGET_CALLEE_COPIES): New.
11908 (TARGET_PASS_BY_REFERENCE): Update default.
11909 * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11910 * targhooks.c (hook_callee_copies_named): New.
11911 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
11912 hook_pass_by_reference_false.
11913 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
11914 * targhooks.h: Update decls.
11915 * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
11916 * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11917 * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
11918 * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
11919 * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11920 * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
11921 * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11922 * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
11923 * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11924 * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
11925 (mips_callee_copies): New.
11926 * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11927 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
11928 * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11929 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
11930 * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11931 * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
11932 * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11933 * config/sh/sh.c (sh_callee_copies): New.
11934 (TARGET_CALLEE_COPIES): New.
11935 * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11936 * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
11937 * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
11938 * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
11939 for FUNCTION_ARG_CALLEE_COPIES.
11940 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
11941
11942 2004-09-08 Devang Patel <dpatel@apple.com>
11943
11944 * tree-if-conv.c (find_phi_replacement_condition): Return true
11945 edge block.
11946 (replace_phi_with_cond_modify_expr): Select conditional expr args
11947 based on true edge basic block.
11948
11949 2004-09-08 Jan Hubicka <jh@suse.cz>
11950
11951 * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
11952 variables being alias set.
11953
11954 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
11955
11956 * final.c (shorten_branches, final, get_insn_template,
11957 output_alternate_entry_point, final_scan_insn, alter_subreg,
11958 alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
11959 leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
11960 * fix-header.c (lookup_std_proto): Likewise.
11961 * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
11962 verify_local_live_at_start, update_life_info, mark_reg,
11963 calculate_global_regs_live, allocate_reg_life_data,
11964 init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
11965 ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
11966 attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
11967 * fold-const.c (force_fit_type, div_and_round_double,
11968 may_negate_without_overflow_p, int_const_binop, const_binop,
11969 size_binop, size_diffop, fold_convert_const, fold_convert,
11970 invert_tree_comparison, swap_tree_comparison,
11971 comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
11972 range_binop, make_range, fold_cond_expr_with_comparison,
11973 fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
11974 fold_abs_const, fold_not_const, fold_relational_const, round_up,
11975 round_down): Likewise.
11976 * function.c (find_function_data, assign_stack_temp_for_type,
11977 instantiate_virtual_regs_lossage, aggregate_value_p,
11978 assign_parm_find_entry_rtl, assign_parm_setup_block,
11979 expand_function_start, expand_function_end, keep_stack_depressed,
11980 handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
11981
11982 2004-09-08 Daniel Berlin <dberlin@dberlin.org>
11983
11984 * Makefile.in (tree-loop-linear.o): Added.
11985 (OBJS-common): Add tree-loop-linear.o
11986 * common.opt: New flag, ftree-loop-linear.
11987 * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
11988 * tree-flow.h: Add prototype for linear_transform_loops.
11989 * tree-optimize.c: Add linear transform after vectorization.
11990 * tree-pass.h: Add struct pass_linear_transform.
11991 * tree-ssa-loop.c: Add pass_linear_transform.
11992 * tree-loop-linear.c: New file.
11993 * lambda-code.c: gcc_assertify.
11994 (gcc_loop_to_lambda_loop): Handle all exit tests.
11995 Handle case where we have (invariant >= induction var).
11996 (find_induction_var_from_exit_cond): Ditto.
11997
11998 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
11999
12000 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
12001 memory tag is call clobbered, so are its aliases.
12002 (group_aliases): When two memory tags being grouped, if one is
12003 call clobbered, so are the other and its aliases.
12004 (add_may_alias): Remove call-clobbering stuff.
12005 (replace_may_alias): Likewise.
12006 (merge_pointed_to_info): Merge pt_global_mem
12007
12008 2004-09-08 Jan Hubicka <jh@suse.cz>
12009
12010 * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
12011 * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
12012 (cgraph_expand_function): Remove stale cgraph edges of currently
12013 compiled function; fix non-unit-at-a-time code copying function
12014 node for later reuse.
12015
12016 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
12017
12018 * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
12019 (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
12020 (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
12021 (vec_gc_free, vec_heap_free): New.
12022 * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
12023 (DEF_VEC_P): Add allocator argument. Adjust.
12024 (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
12025 (DEF_VEC_O): Add allocator argument. Adjust.
12026 (VEC(free)): New.
12027
12028 * tree.h (tree): Define a GC'd vector.
12029 * lamba-code.c (lambda_loop): Likewise.
12030 * value-prof.h (histogram_value): Likewise.
12031
12032 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
12033
12034 * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
12035 (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
12036 gen_lowpart_common, gen_highpart, gen_highpart_mode,
12037 subreg_highpart_offset, operand_subword, operand_subword_force,
12038 mem_expr_equal_p, set_mem_attributes_minus_bitpos,
12039 set_mem_alias_set, change_address_1, verify_rtx_sharing,
12040 copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
12041 try_split, add_insn_after, add_insn_before, remove_insn,
12042 remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
12043 emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
12044 emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
12045 set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
12046 gen_const_vector_0, emit_copy_of_insn_after): Likewise.
12047 * et-forest.c (set_prev, set_next, et_check_occ_sanity,
12048 record_path_before_1, check_path_after_1, check_path_after): Likewise.
12049 * except.c (gen_eh_region, resolve_one_fixup_region,
12050 remove_unreachable_regions, convert_from_eh_region_ranges_1,
12051 add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
12052 connect_post_landing_pads, sjlj_emit_function_exit,
12053 remove_exception_handler_label, remove_eh_handler,
12054 reachable_next_level, collect_one_action_chain,
12055 output_function_exception_table): Likewise.
12056 * explow.c (trunc_int_for_mode, copy_to_mode_reg,
12057 optimize_save_area_alloca, allocate_dynamic_stack_space,
12058 probe_stack_range, hard_function_value): Likewise.
12059 * expmed.c (mode_for_extraction, store_bit_field,
12060 store_fixed_bit_field, extract_bit_field, expand_shift,
12061 expand_mult_const, expand_mult, choose_multiplier,
12062 expand_mult_highpart, expand_divmod, emit_store_flag,
12063 do_cmp_and_jump): Likewise.
12064 * expr.c (convert_move, convert_modes, move_by_pieces,
12065 move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
12066 move_block_from_reg, gen_group_rtx, emit_group_load,
12067 emit_group_move, emit_group_store, use_reg, use_regs,
12068 can_store_by_pieces, store_by_pieces, store_by_pieces_1,
12069 emit_move_insn, emit_move_insn_1, emit_push_insn,
12070 expand_assignment, store_expr, count_type_elements,
12071 store_constructor, store_field, safe_from_p, expand_var,
12072 expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
12073
12074 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
12075
12076 * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
12077 gcc_assert and gcc_unreachable.
12078 * ddg.c (create_ddg_dependence, add_deps_for_def,
12079 add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
12080 * df.c (df_ref_unlink, df_ref_record, df_uses_record,
12081 df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
12082 df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
12083 df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
12084 df_bb_reg_live_end_p, df_bb_regs_lives_compare,
12085 df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
12086 dataflow_set_copy, hybrid_search, diagnostic.c,
12087 diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
12088 * dojump.c (do_jump): Likewise.
12089 * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
12090 compute_dom_fast_query, calculate_dominance_info,
12091 free_dominance_info, get_immediate_dominator,
12092 set_immediate_dominator, get_dominated_by,
12093 redirect_immediate_dominators, nearest_common_dominator,
12094 dominated_by_p, verify_dominators, recount_dominator,
12095 iterate_fix_dominators, add_to_dominance_info,
12096 delete_from_dominance_info): Likewise.
12097 * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
12098 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
12099 dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
12100 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
12101 initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
12102 flush_queued_reg_saves, dwarf2out_frame_debug_expr,
12103 dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
12104 output_call_frame_info, output_loc_operands, build_cfa_loc,
12105 decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
12106 AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
12107 AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
12108 splice_child_die, attr_checksum, same_dw_val_p,
12109 break_out_includes, build_abbrev_table, size_of_die, mark_dies,
12110 unmark_dies, value_format, output_loc_list, output_die,
12111 output_pubnames, output_aranges, base_type_die, is_base_type,
12112 modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
12113 mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
12114 field_byte_offset, add_data_member_location_attribute,
12115 add_const_value_attribute, rtl_for_decl_location,
12116 add_location_or_const_value_attribute, add_byte_size_attribute,
12117 add_bit_offset_attribute, add_bit_size_attribute,
12118 add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
12119 decl_start_label, gen_formal_parameter_die,
12120 gen_type_die_for_member, gen_subprogram_die, gen_label_die,
12121 gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
12122 force_decl_die, force_type_die, gen_decl_die,
12123 dwarf2out_imported_module_or_decl, prune_unused_types_prune,
12124 dwarf2out_finish): Likewise.
12125
12126 2004-09-08 Andreas Tobler <toa@pop.agri.ch>
12127
12128 * Makefile.in (builtins.o): Depend on tree-mudflap.h.
12129 * builtins.c: Include tree-mudflap.h.
12130
12131 2004-09-08 Uros Bizjak <uros@kss-loka.si>
12132
12133 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
12134 force operand 0.0 into register in XFmode. Also do not force
12135 operand 0.0 into register if !TARGET_CMOVE.
12136 * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
12137 (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
12138 implement ftst x87 instruction.
12139 (*fp_jcc_7): New insn pattern. Change corresponding split
12140 pattern to handle "general_operand" instead of
12141 "nonimmediate_operand".
12142
12143 2004-09-08 Ben Elliston <bje@au.ibm.com>
12144
12145 * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
12146
12147 2004-09-07 Frank Ch. Eigler <fche@redhat.com>
12148
12149 * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
12150 generated from standard va_arg expansion.
12151 * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
12152 marked nodes.
12153 (mf_varname_tree, mf_file_function_line_tree): Add some support
12154 for column numbers if compiled with USE_MAPPED_LOCATION.
12155
12156 2004-09-07 Ziemowit Laski <zlaski@apple.com>
12157
12158 * c-decl.c (groktypename_in_parm_context): Remove function.
12159 * c-tree.h (groktypename_in_parm_context): Remove prototype.
12160
12161 2004-09-07 Ziemowit Laski <zlaski@apple.com>
12162
12163 * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
12164 * c-parse.in: Include c-common.h instead of objc-act.h.
12165 (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
12166 myparms, myparm): Remove %type declarations.
12167 (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
12168 objc_typename, objc_try_catch_stmt, optellipsis): Add %type
12169 declarations.
12170 (objc_inherit_code, objc_public_flag): Remove.
12171 (typespec_nonreserved_nonattr): Call
12172 objc_get_protocol_qualified_type() instead of get_static_reference()
12173 and get_protocol_reference().
12174 (stmt_nocomp): Call grokparm() on @catch parameter.
12175 (objcdef): Move semantic action to objc_finish_implementation().
12176 (classdef): Move semantic action to objc_start_class_interface(),
12177 objc_continue_interface(), objc_finish_interface(),
12178 objc_start_class_implementation(), objc_continue_implementation(),
12179 objc_start_category_interface() and
12180 objc_start_category_implementation().
12181 (protocoldef): Move semantic actions to objc_start_protocol() and
12182 objc_finish_interface().
12183 (ivar_decl_list): Remove nonterminal.
12184 (visibility_spec): Move semantic actions to objc_set_visibility().
12185 (ivar_decls): Remove assignment to $$.
12186 (ivar_decl): Rephrase in terms of component_decl; call
12187 objc_add_instance_variable().
12188 (ivars, ivar_declarator): Remove nonterminals.
12189 (opt_semi): New nonterminal.
12190 (methodtype): Remove semantic actions.
12191 (methoddef): Move semantic actions to objc_set_method_type(),
12192 objc_start_method_definition() and objc_finish_method_definition().
12193 (methodproto): Move semantic actions to objc_set_method_type() and
12194 objc_add_method_declaration().
12195 (methoddecl): Use objc_typename instead of typename; move semantic
12196 actions to objc_build_method_signature().
12197 (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
12198 (optparmlist): Express in terms of optparms and optellipsis.
12199 (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
12200 nonterminals.
12201 (keyworddecl): Use objc_typename instead of typename.
12202 (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
12203 and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
12204
12205 2004-09-08 Alan Modra <amodra@bigpond.net.au>
12206
12207 * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
12208 (MD_FALLBACK_FRAME_STATE_FOR): Update.
12209 * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
12210 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
12211 (MD_FROB_UPDATE_CONTEXT): Remove default.
12212 (uw_update_context_1): Instead #ifdef invocation.
12213 * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
12214 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
12215 * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
12216 (MD_UNWIND_SUPPORT): Undefine this instead.
12217 * config/i386/gnu.h: Likewise.
12218 * config/alpha/linux-unwind.h: New file, macro converted to
12219 function, extracted from..
12220 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
12221 (MD_UNWIND_SUPPORT): Define.
12222 * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
12223 * config/i386/linux-unwind.h, config/i386/linux.h,
12224 config/i386/linux64.h: Likewise.
12225 * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
12226 MD_HANDLE_UNWABI too.
12227 * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
12228 * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
12229 * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
12230 * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
12231 * config/sparc/linux-unwind.h, config/sparc/linux.h,
12232 config/sparc/linux64.h: Likewise.
12233 * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
12234 SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
12235 * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
12236 config/rs6000/linux64.h: Likewise. Split out get_sigcontext
12237 function. Use ARG_POINTER_REGNUM for 32-bit temp reg too.
12238
12239 2004-09-07 Jan Hubicka <jh@suse.cz>
12240
12241 * cse.c (fold_rtx): Avoid building of
12242 (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
12243
12244 * tree-ssa-pre.c (grand_bitmap_obstack): New.
12245 (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
12246 (init_pre): Initialize obstack.
12247 (fini_pre): Free obstack.
12248
12249 2004-09-07 David Daney <ddaney@avtrex.com>
12250
12251 * config.gcc: Added support for --with-divide=[breaks|traps] for
12252 mips targets.
12253 * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
12254 (TARGET_DIVIDE_TRAPS): New macro.
12255 (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
12256 (OPTION_DEFAULT_SPECS): Added --with-divide= support.
12257 * config/mips/mips.c (mips_idiv_insns): Generate proper count on
12258 GENERATE_DIVIDE_TRAPS.
12259 (mips_output_division): Emit conditional trap if
12260 GENERATE_DIVIDE_TRAPS is set.
12261 * doc/install.texi: Document --with-divide.
12262 * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
12263
12264 2004-09-07 Caroline Tice <ctice@apple.com>
12265
12266 * cfgrtl.c (rtl_verify_flow_info_1): Add new edge flag,
12267 EDGE_CROSSING, to flags test case.
12268
12269 2004-09-07 Jan Hubicka <jh@suse.cz>
12270
12271 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
12272 class too.
12273
12274 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
12275
12276 * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
12277 cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
12278 make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
12279 or gcc_unreachable.
12280 * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
12281 remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
12282 alloc_aux_for_edges, free_aux_for_edges): Likewise.
12283 * cfgcleanup.c (try_forward_edges,
12284 merge_blocks_move_predecessor_nojumps,
12285 merge_blocks_move_successor_nojumps): Likewise.
12286 * cfgexpand.c (expand_gimple_cond_expr,
12287 expand_gimple_tailcall): Likewise.
12288 * cfghooks.c (duplicate_block): Likewise.
12289 * cfglayout.c (record_effective_endpoints,
12290 insn_locators_initialize, change_scope, fixup_reorder_chain,
12291 verify_insn_chain, fixup_fallthru_exit_predecessor,
12292 duplicate_insn_chain, cfg_layout_finalize): Likewise.
12293 * cfgloopanal.c (check_irred): Likewise.
12294 * cfgloop.c (superloop_at_depth, flow_loops_free,
12295 flow_loop_entry_edges_find, flow_loops_find,
12296 flow_loop_outside_edge_p, get_loop_body,
12297 get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
12298 get_loop_exit_edges, num_loop_branches, cancel_loop,
12299 verify_loop_structure): Likewise.
12300 cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
12301 duplicate_loop_to_header_edge, create_preheader,
12302 create_loop_notes): Likewise.
12303 * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
12304 edirect_branch_edge, force_nonfallthru_and_redirect,
12305 rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
12306 commit_edge_insertions, commit_edge_insertions_watch_calls,
12307 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
12308 cfg_layout_redirect_edge_and_branch_force,
12309 cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
12310 * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
12311 cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
12312 cgraph_varpool_node): Likewise.
12313 * cgraphunit.c (cgraph_finalize_function,
12314 cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
12315 cgraph_expand_function, cgraph_remove_unreachable_nodes,
12316 cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
12317 cgraph_mark_inline, cgraph_expand_all_functions,
12318 cgraph_build_static_cdtor): Likewise.
12319 * combine.c (do_SUBST, try_combine, subst, combine_simplify_rtx,
12320 simplify_logical, distribute_notes, insn_cuid): Likewise.
12321 * conflict.c (conflict_graph_add, print_conflict): Likewise.
12322 * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
12323 coverage_checksum_string): Likewise.
12324 * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
12325 hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
12326 cse_cc_succs, cse_condition_code_reg): Likewise.
12327 * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
12328 rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
12329 new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
12330 cselib_record_set): Likewise.
12331
12332 2004-09-07 Jan Hubicka <jh@suse.cz>
12333
12334 * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
12335
12336 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
12337
12338 * builtins.c (fold_builtin_strchr): Use build_int_cst, not
12339 fold_convert.
12340 (fold_builtin_strpbrk): Likewise.
12341 * expr.c (array_ref_low_bound): Likewise.
12342 * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
12343 interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
12344 * tree-sra.c (generate_element_zero): Likewise.
12345 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
12346 * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
12347 add_old_iv_candidates, add_iv_candidates): Likewise.
12348 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12349
12350 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
12351
12352 * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
12353 * c-common.c (c_type_hash, c_common_nodes_and_builtins,
12354 c_expand_expr, boolean_increment, nonnull_check_p,
12355 check_function_arguments_recurse, fold_offsetof_1): Likewise.
12356 * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
12357 builtin_define_type_max): Likewise.
12358 * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
12359 implicit_decl_warning, builtin_function, build_compound_literal,
12360 complete_array_type, grokdeclarator, get_parm_info,
12361 start_function, store_parm_decls_oldstyle,
12362 c_write_global_declarations): Likewise.
12363 * c-format.c (get_constant, decode_format_attr,
12364 maybe_read_dollar_number, get_flag_spec, check_format_arg,
12365 check_format_types, format_type_warning,
12366 find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
12367 init_dynamic_diag_info, handle_format_attribute): Likewise.
12368 * c-gimplify.c (push_context, pop_context, finish_bc_block):
12369 * c-lex.c (c_lex_with_flags, lex_string): Likewise.
12370 * c-objc-common.c (c_tree_printer): Likewise.
12371 * c-pch.c (pch_init): Likewise.
12372 * c-pragma.c (maybe_apply_pragma_weak): Likewise.
12373 * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
12374 * c-typeck.c (c_incomplete_type_error, composite_type,
12375 common_pointer_type, common_type, same_translation_unit_p,
12376 tagged_types_tu_compatible_p, finish_init, pop_init_level,
12377 set_designator, set_nonincremental_init_from_string,
12378 process_init_element, c_finish_if_stmt): Likewise.
12379 * caller-save.c (init_caller_save, save_call_clobbered_regs,
12380 insert_restore, insert_save, insert_one_insn): Likewise.
12381 * calls.c (emit_call_1, compute_argument_block_size,
12382 precompute_arguments, expand_call, emit_library_call_value_1,
12383 store_one_arg): Likewise.
12384
12385 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
12386
12387 * configure.ac (enable-checking): Add release option. Reorganize
12388 to avoid repetition.
12389 * configure: Rebuilt.
12390 * doc/install.texi (enable-checking): Amend documentation.
12391
12392 2004-09-06 H.J. Lu <hongjiu.lu@intel.com>
12393
12394 PR bootstrap/17313
12395 * Makefile.in (specs.ready): Depend on cc1$(exeext).
12396
12397 2004-09-06 James E Wilson <wilson@specifixinc.com>
12398
12399 * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
12400 movdf_hardfloat_32bit): Split fG into two alternatives.
12401 (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
12402
12403 * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
12404
12405 2004-09-06 Eric Botcazou <ebotcazou@libertysurf.fr>
12406
12407 * final.c (output_in_slot): Delete.
12408 (final_scan_insn): Revert 2004-09-03 change.
12409 (output_asm_insn): Likewise.
12410 * config/sparc/sparc.c (output_return): Likewise.
12411 (output_sibcall): Likewise.
12412
12413 2004-09-06 Jan Hubicka <jh@suse.cz>
12414
12415 * loop.c (loop_dump_aux): Do not print RTL when not available.
12416 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
12417 frontend specific type nodes.
12418 (produce_memory_decl_rtl): Break out from ...
12419 (prepare_decl_rtl): ... here. Handle ADDR_EXPR correctly.
12420 (get_computation_at): Avoid random tree sharing.
12421 (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
12422
12423 2004-09-06 Zack Weinberg <zack@codesourcery.com>
12424
12425 * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
12426 unnecessary commands.
12427
12428 2004-09-06 Mohan Embar <gnustuff@thisiscool.com>
12429
12430 * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
12431 (bitmap.o): Likewise.
12432
12433 2004-09-06 Paolo Bonzini <bonzini@gnu.org>
12434
12435 Unify the management of RTL and tree-level dump files.
12436
12437 * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
12438 Don't print function name to the dump file, the pass manager
12439 would do this for us. Add code from the top of
12440 rest_of_compilation, up to the initial RTL dump.
12441 * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
12442 close the DFI_sibling dump file.
12443 (rest_of_compilation): Don't do that here. Remove code up to the
12444 initial RTL dump.
12445 (init_optimization_passes): Remove.
12446 (pass_rest_of_compilation): Change pass name to NULL.
12447 * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
12448 Do not call init_optimization_passes.
12449 * toplev.h (init_optimization_passes): Remove.
12450
12451 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
12452 finish_graph_dump_file): Remove SUFFIX parameter.
12453 * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
12454 finish_graph_dump_file): Likewise.
12455
12456 * tree-pass.h (struct tree_opt_pass): Add `letter' field.
12457 * cfgexpand.c (pass_expand): Adjust.
12458 * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
12459 * passes.c (pass_rest_of_compilation): Adjust.
12460 * predict.c (pass_profile): Adjust.
12461 * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
12462 * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
12463 pass_split_crit_edges, pass_warn_function_return): Adjust.
12464 * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
12465 * tree-dfa.c (pass_referenced_vars): Adjust.
12466 * tree-eh.c (pass_lower_eh): Adjust.
12467 * tree-if-conv.c (pass_build_ssa): Adjust.
12468 * tree-into-ssa.c (pass_build_ssa): Adjust.
12469 * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
12470 * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
12471 * tree-nrv.c (pass_nrv): Adjust.
12472 * tree-optimize.c (pass_gimple, pass_all_optimizations,
12473 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
12474 pass_init_datastructures): Adjust.
12475 * tree-outof-ssa.c (pass_del_ssa): Adjust.
12476 * tree-profile.c (pass_tree_profile): Adjust.
12477 * tree-sra.c (pass_sra): Adjust.
12478 * tree-ssa-alias.c (pass_may_alias): Adjust.
12479 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
12480 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
12481 * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
12482 * tree-ssa-dom.c (pass_dominator): Adjust.
12483 * tree-ssa-dse.c (pass_dse): Adjust.
12484 * tree-ssa-forwprop.c (pass_forwprop): Adjust.
12485 * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
12486 * tree-ssa-loop-ch.c (pass_ch): Adjust.
12487 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
12488 pass_loop_done, pass_complete_unroll, pass_iv_canon,
12489 pass_iv_optimize, pass_vectorize): Adjust.
12490 * tree-ssa-phiopt.c (pass_phiopt): Adjust.
12491 * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
12492 * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
12493 pass_late_warn_uninnitialized): Adjust.
12494 * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
12495
12496 * Makefile.in (tree-dump.o): Add new dependencies.
12497 * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
12498 * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
12499 Likewise.
12500 * toplev.c (dump_file_name): New.
12501 * tree-dump.c (dump_enable_all): Add LETTER parameter.
12502 (struct dump_file_info): Add NUM and LETTER fields.
12503 (dump_files): Adjust and add RTL dump files.
12504 (dump_register): Add NUM and LETTER fields.
12505 (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
12506 (dump_begin): Use get_dump_file_name.
12507 (dump_switch_p_1): Adjust call to dump_enable_all.
12508 * tree-dump.h (dump_register): Adjust prototype.
12509 * tree-optimize.c (register_one_dump_file): Take dump file index.
12510 Support flags for RTL dumps.
12511 (register_dump_files): Fill in NUM field of struct dump_file_info.
12512 Track properties both when the gate is executed and when it is not.
12513 (execute_todo): Dump RTL. Add PROPERTIES parameter.
12514 (execute_one_pass): Pass properties to execute_todo. Handle VCG
12515 dumps of RTL.
12516 * tree-pass.h (dump_file_name): New.
12517 * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
12518 New.
12519
12520 * Makefile.in (passes.o): Add new dependencies.
12521 * passes.c (struct dump_file_info, enum dump_file_index,
12522 dump_file_tbl, init_optimization_passes): Remove.
12523 (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
12524 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
12525 dump_enabled_p.
12526 (finish_optimization_passes): Update finish_graph_dump_file loop.
12527 (enable_rtl_dump_file): Remove.
12528 * tree-dump.c (dump_files): Adjust and add RTL dump files.
12529 (enable_rtl_dump_file): Add here.
12530 * tree.h (enum tree_dump_index): Add RTL dump file indices.
12531 * doc/invoke.texi (Debugging options): Document new RTL debugging
12532 options. Update.
12533
12534 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
12535
12536 * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
12537 gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
12538 stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
12539 tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
12540 tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
12541 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
12542 tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
12543 vec.h: Fix comment formatting.
12544
12545 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
12546
12547 * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
12548 et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
12549 hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
12550 tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
12551 tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
12552 tree-ssa-loop-niter.c, tree-ssa-operands.c,
12553 tree-ssa-operands.h, tree-ssa-propagate.c,
12554 tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
12555 vec.c, vec.h: Fix comment typos. Follow spelling conventions.
12556
12557 2004-09-05 Diego Novillo <dnovillo@redhat.com>
12558
12559 * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
12560 vectorizer is enabled.
12561
12562 2004-09-05 Andreas Jaeger <aj@suse.de>
12563
12564 * tree-if-conv.c: Spell check comments and clean up whitespace.
12565
12566 2004-09-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12567
12568 * tree-ssa-loop-ivopts.c: New file.
12569 * Makefile.in (tree-ssa-loop-ivopts.c): Add.
12570 * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
12571 target_pres_cost, target_spill_cost): Declare.
12572 * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
12573 spill_cost): Renamed to ...
12574 (target_avail_regs, target_res_regs, target_small_cost,
12575 target_pres_cost, target_spill_cost): ... and exported.
12576 (init_set_costs, global_cost_for_size): Work with renamed variables.
12577 * common.opt (flag_ivopts): New flag.
12578 * expr.c (expand_expr_real_1): Handle SSA_NAME case. Handle
12579 REF_ORIGINAL.
12580 * gimplify.c (struct gimplify_ctx): Add into_ssa field.
12581 (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
12582 generating SSA form.
12583 (force_gimple_operand): New function.
12584 * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
12585 * tree-cfg.c (stmt_bsi): New function.
12586 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
12587 PARAM_IV_MAX_CONSIDERED_USES): New.
12588 * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
12589 bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
12590 ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
12591 * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
12592 * tree-nested.c (build_addr): Export.
12593 * tree-optimize.c (init_tree_optimization_passes): Add
12594 pass_iv_optimize.
12595 * tree-pass.h (pass_iv_optimize): Declare.
12596 * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
12597 IMAGPART_EXPR.
12598 * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
12599 as a phi node argument.
12600 (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
12601 ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
12602 functions.
12603 * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
12604 * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
12605 pass_iv_optimize): New pass.
12606 * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
12607 * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
12608 * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
12609 * tree.h (REF_ORIGINAL): New macro.
12610 (build_int_cst_type, unsigned_type_for, zero_p,
12611 cst_and_fits_in_hwi, build_addr): Declare.
12612 * doc/invoke.texi (-fivopts): Document.
12613 (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
12614 PARAM_IV_MAX_CONSIDERED_USES): Document.
12615 * doc/passes.texi: Document induction variable optimizations pass.
12616
12617 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12618
12619 * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
12620 * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
12621 * c-common.c (c_common_attribute_table): Accept parameters to
12622 sentinel attribute.
12623 (check_function_sentinel, handle_sentinel_attribute): Likewise.
12624 * doc/extend.texi: Update accordingly.
12625
12626 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12627
12628 * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
12629 New.
12630 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
12631 attribute.
12632 * c-common.c (handle_sentinel_attribute, check_function_sentinel):
12633 New functions.
12634 (c_common_attribute_table): Add `sentinel' attribute.
12635 (check_function_arguments): Handle `sentinel' attribute.
12636 * doc/extend.texi: Document `sentinel' attribute.
12637
12638 2004-09-04 H.J. Lu <hongjiu.lu@intel.com>
12639
12640 * configure: Regenerated.
12641
12642 2004-09-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12643
12644 * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
12645
12646 * tree.c (save_expr): No longer TREE_READONLY.
12647
12648 2004-09-04 Jan Hubicka <jh@suse.cz>
12649
12650 * passes.c (rest_of_clean_state): Fix merge conflict made during
12651 commiting the patch.
12652
12653 2004-09-04 Jan Hubicka <jh@suse.cz>
12654
12655 * passes.c (rest_of_clean_state): Decompose the instruction stream.
12656
12657 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
12658
12659 * doc/md.texi (shift patterns): New anchor. Add reference to
12660 TARGET_SHIFT_TRUNCATION_MASK.
12661 * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
12662 * target.h (shift_truncation_mask): New target hook.
12663 * targhook.h (default_shift_truncation_mask): Declare.
12664 * targhook.c (default_shift_truncation_mask): Define.
12665 * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
12666 (TARGET_INITIALIZER): Include it.
12667 * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
12668 and LSHIFTRT cases. Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
12669 reject all out-of-range values. Fix sign-extension code for modes
12670 whose width is smaller than HOST_BITS_PER_WIDE_INT.
12671 * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
12672 (expand_superword_shift, expand_subword_shift): Likewise.
12673 (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
12674 (expand_binop): Use them to implement double-word shifts.
12675 * config/arm/arm.c (arm_shift_truncation_mask): New function.
12676 (TARGET_SHIFT_TRUNCATION_MASK): Define.
12677
12678 2004-09-04 Jan Hubicka <jh@suse.cz>
12679
12680 * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
12681 (mix): New macro copied from hashtab.c
12682 (iterative_hash_hashval_t, iterative_hash_pointer,
12683 iterative_hash_host_wide_int): New functions based on hashtab.c
12684 implementation.
12685
12686 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
12687
12688 * config/mips/mips.md (mask): New mode attribute.
12689 (zero_extendsidi2): Add memory alternative.
12690 (*zero_extendsidi2_mem): Delete.
12691 (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT. Use
12692 memory_operand in the TARGET_MIPS16 check.
12693 (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
12694 Redefine using :GPR and :SHORT.
12695 (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
12696
12697 2004-09-04 Uros Bizjak <uros@kss-loka.si>
12698
12699 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
12700 using rint_optab.
12701 (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
12702 expand_builtin_mathfn.
12703 * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
12704 btrunc?f patterns for btrunc_optab. Implement rint_optab using
12705 rint?f patterns.
12706 * optabs.c (init_optabs): Initialize rint_optab.
12707 * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
12708 Add new OTI_rint.
12709 (btrunc_optab): Rename macro from trunc_optab.
12710 (rint_optab): Define corresponding macro.
12711
12712 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
12713 UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
12714
12715 * config/i386/i386-protos.h (emit_i387_cw_initialization):
12716 Change prototype. Add new int parameter.
12717 * config/i386/i386.c (emit_i387_cw_initialization):
12718 Handle new rounding modes.
12719
12720 * config/i386/i386.h (enum fp_cw_mode): Delete.
12721 (MODE_NEEDED): Handle new rounding modes.
12722 (EMIT_MODE_SET): Change condition to handle new rounding modes.
12723
12724 * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
12725 UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
12726 represent different rounding modes of frndint insn.
12727 (type): Add frndint type.
12728 (i387, length, memory): Handle this type.
12729 (i387_cw): New attribute definition.
12730 (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
12731 *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
12732 *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
12733 Add "i387_cw" attribute defined to "trunc".
12734 (x86_fnstcw_1): Remove comment.
12735 (*frndintxf2): Rename insn definition to frndintxf2. Move
12736 insn definition near rint?f2 expanders.
12737 (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
12738 rintf and rintl built-ins as inline x87 intrinsics.
12739 (frndintxf2_floor): New pattern to implement floor rounding
12740 mode with frndint x87 instruction.
12741 (floordf2, floorsf2, floorxf2): New expanders to implement floor,
12742 floorf and floorl built-ins as inline x87 intrinsics.
12743 (frndintxf2_ceil): New pattern to implement ceil rounding
12744 mode with frndint x87 instruction.
12745 (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
12746 ceilf and ceill built-ins as inline x87 intrinsics.
12747 (frndintxf2_trunc): New pattern to implement trunc rounding
12748 mode with frndint x87 instruction.
12749 (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
12750 truncf and truncl built-ins as inline x87 intrinsics.
12751 (frndintxf2_mask_pm): New pattern to implement rounding
12752 mode with exceptions with frndint x87 instruction.
12753 (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
12754 implement nearbyint, nearbyintf and nearbyintl built-ins as
12755 inline x87 intrinsics.
12756
12757 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
12758
12759 * config/mips/mips.md (SHORT): New mode macro.
12760 (size): New mode attribute.
12761 (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
12762 (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
12763 *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns. Use only if
12764 !ISA_HAS_SEB_SEH.
12765 (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
12766 *extend[qh]isi2_hw patterns and extending them to di.
12767 (extendqihi2): Implement as define_insn_and_split that produces
12768 extendqisi2 after reload.
12769
12770 2004-09-03 Devang Patel <dpatel@apple.com>
12771
12772 * Makefile.in (OBJS-common): Add tree-if-conv.o
12773 (tree-if-conv.o): New rule.
12774 * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
12775 (get_loop_body_in_bfs_order): New.
12776 * cfgloop.h (get_loop_body_in_bfs_order): New.
12777 * tree-flow.h (enum move_pos): Move here from ..
12778 * tree-ssa-loop-im.c (enum move_pos): here.
12779 (movement_possibility): Make externally visible.
12780 * tree-optimize.c (init_tree_optimization_passes): New entry for
12781 if conversion pass.
12782 * tree-pass.h (pass_if_conversion): New.
12783 * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
12784 * tree-if-conv.c: New file.
12785 * doc/passes.texi: Document tree if-conversion pass.
12786 * doc/tree-ssa.texi: Same.
12787
12788 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
12789
12790 PR target/14925:
12791 Makefile.in (LIB2ADDEHSTATIC): New.
12792 (LIB2ADDEHSHARED): New.
12793 (LIBUNWIND): New.
12794 (LIBUNWINDDEP): New.
12795 (SHLIBUNWIND_LINK): New.
12796 (SHLIBUNWIND_INSTALL): New.
12797 (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
12798 LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
12799 (clean): Remove libunwind*
12800 (stage1-start): Remove and copy stage1/libunwind*.
12801 (stage2-start): Remove and copy stage2/libunwind*.
12802 (stage3-start): Remove and copy stage3/libunwind*.
12803 (stage4-start): Remove and copy stage4/libunwind*.
12804 (stageprofile-start): Remove and copy stageprofile/libunwind*.
12805 (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
12806
12807 * config.gcc (ia64*-*-linux*): Always add t-libunwind to
12808 tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
12809 tmake_file if --with-system-libunwind isn't used.
12810
12811 * config/ia64/t-glibc-libunwind: New file.
12812 * config/t-libunwind-elf: Likewise.
12813 * unwind-compat.c: Likewise.
12814 * unwind-compat.h: Likewise.
12815 * unwind-dw2-fde-compat.c: Likewise.
12816
12817 * config/ia64/t-glibc (LIB2ADDEH): Updated.
12818 * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
12819
12820 * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
12821 aliases if needed.
12822 * unwind-dw2-fde-glibc.c: Likewise.
12823 * unwind-dw2.c: Likewise.
12824
12825 * config/t-libunwind (LIB2ADDEH): Updated.
12826 (LIB2ADDEHSTATIC): New.
12827 (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
12828 (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
12829
12830 * configure.ac: Change --enable-libunwind-exceptions to
12831 --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
12832 * configure: Regenerated.
12833 * config.in: Updated.
12834
12835 * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
12836 above and mention --with-system-libunwind.
12837 (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
12838 removed in gcc 3.4.3 and later.
12839
12840 * gcc.c (init_spec): Add -lunwind to -lgcc_s if
12841 USE_LIBUNWIND_EXCEPTIONS is defined.
12842
12843 * mklibgcc.in: Support libunwind.
12844
12845 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
12846
12847 * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
12848 m_NOCONA.
12849
12850 2004-09-03 Richard Henderson <rth@redhat.com>
12851
12852 PR middle-end/9997
12853 * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
12854 (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
12855 (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
12856 stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
12857 frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
12858 resize_stack_vars_conflict, add_stack_var_conflict,
12859 stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
12860 union_stack_vars, partition_stack_vars, dump_stack_var_partition,
12861 expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
12862 expand_one_static_var, expand_one_hard_reg_var,
12863 expand_one_register_var, expand_one_error_var, defer_stack_allocation,
12864 expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
12865 (expand_used_vars): Rewrite.
12866 * Makefile.in (cfgexpand.o): Update dependencies.
12867
12868 2004-09-04 Jan Hubicka <jh@suse.cz>
12869
12870 * cfg.c (free_edge): Use ggc_free.
12871 (expunge_block): Use ggc_free.
12872 * passes.c (rest_of_clean_state): Free after compilation.
12873 * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
12874 * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
12875
12876 2004-09-03 James E Wilson <wilson@specifixinc.com>
12877
12878 * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
12879 DECL_EXTERNAL check.
12880
12881 2004-09-03 Eric Botcazou <ebotcazou@libertysurf.fr>
12882
12883 * final.c (output_in_slot): New global variable.
12884 (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
12885 Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE. Set
12886 'output_in_slot' before invoking output_asm_insn.
12887 (output_asm_insn): Add a space after the tab if 'output_in_slot'
12888 is set.
12889 * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
12890 final_scan_insn.
12891 (output_sibcall): Likewise.
12892
12893 2004-09-03 Jan Hubicka <jh@suse.cz>
12894
12895 * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
12896 * tree-ssanames (init_ssanames): Likewise.
12897
12898 2004-09-03 Ziemowit Laski <zlaski@apple.com>
12899
12900 * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
12901 objc_declare_protocols, objc_start_protocol,
12902 objc_start_class_interface, objc_start_category_interface,
12903 objc_continue_interface, objc_finish_interface,
12904 objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
12905 objc_start_class_implementation, objc_start_category_implementation,
12906 objc_continue_implementation, objc_finish_implementation,
12907 objc_add_method_declaration, objc_start_method_definition,
12908 objc_finish_method_definition, objc_build_keyword_decl,
12909 objc_build_method_signature, objc_build_encode_expr,
12910 objc_build_protocol_expr, objc_build_selector_expr,
12911 objc_build_message_expr, objc_build_string_object,
12912 objc_get_class_reference, objc_get_protocol_qualified_type,
12913 objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
12914
12915 2004-09-03 James E Wilson <wilson@specifixinc.com>
12916
12917 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
12918
12919 * config/mips/generic.md (generic_frecip_fsqrt_step): New.
12920 * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
12921 (mips_rsqrt2_<fmt>): Use frsqrt2 type.
12922 (mips_recip1_<fmt>): Use frdiv1 type.
12923 (mips_recip2_<fmt>): Use frdiv2 type.
12924 * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
12925 * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
12926 and frsqrt1.
12927 (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
12928
12929 2004-09-03 Daniel Jacobowitz <dan@debian.org>
12930
12931 * reload.c (find_reloads): Swap operand_loc pointers for
12932 find_dummy_reload if we have swapped two operands.
12933
12934 2004-09-03 Hans-Peter Nilsson <hp@axis.com>
12935
12936 * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
12937 to get the tablejump-insn before the jump-table label.
12938
12939 2004-09-03 Ziemowit Laski <zlaski@apple.com>
12940
12941 * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
12942 objc_declare_protocols, objc_build_message_expr,
12943 objc_finish_message_expr, objc_build_selector_expr,
12944 objc_build_protocol_expr, objc_build_encode_expr,
12945 objc_build_string_object, objc_get_protocol_qualified_type,
12946 objc_get_class_reference, objc_get_class_ivars,
12947 objc_start_class_interface, objc_start_category_interface,
12948 objc_start_protocol, objc_continue_interface, objc_finish_interface,
12949 objc_start_class_implementation, objc_start_category_implementation,
12950 objc_continue_implementation, objc_finish_implementation,
12951 objc_set_visibility, objc_set_method_type, objc_build_method_signature,
12952 objc_add_method_declaration, objc_start_method_definition,
12953 objc_finish_method_definition, objc_add_instance_variable,
12954 objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
12955 objc_finish_try_stmt, objc_begin_catch_clause,
12956 objc_finish_catch_clause, objc_build_finally_clause,
12957 objc_build_synchronized, objc_static_init_needed_p,
12958 objc_generate_static_init_call): New prototypes.
12959
12960 2004-09-03 Steve Ellcey <sje@cup.hp.com>
12961
12962 * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
12963 is only one reg.
12964 (ia64_function_value): Ditto.
12965
12966 2004-09-03 Jan Beulich <jbeulich@novell.com>
12967
12968 * config.gcc: Resurrect NetWare as a target. Handle special case of
12969 Novell linker to be used (specified through --with-ld=) and threading
12970 model of either Posix (default) or NKS.
12971 * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
12972 of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
12973 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
12974 * config/i386/netware.c, config/i386/netware.h: New.
12975 * config/i386/nwld.c, config/i386/nwld.h: New.
12976 * config/i386/netware-crt0.c: New.
12977 * config/i386/netware-libgcc.c: New.
12978 * config/i386/netware-libgcc.def: New.
12979 * config/i386/netware-libgcc.exp: New.
12980 * config/i386/t-netware, config/i386/t-nwld: New.
12981 * gthr-nks.h: New.
12982 * doc/install.texi: Document NKS threading model.
12983
12984 2004-09-03 Jan Beulich <jbeulich@novell.com>
12985
12986 PR c/7054
12987 * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
12988 * tree.h (initial_max_fld_align): Declare
12989 * stor-layout.c (initial_max_fld_align): Define and initialize.
12990 (maximum_field_alignment): Initialize to the same value.
12991 * common.opt: Add -fpack-struct= variant of switch.
12992 * opts.c: Handle -fpack-struct= variant of switch.
12993 * c-pragma.c: Change #pragma pack() handling so that it becomes
12994 compatible to other compilers: accept individual 'push' argument,
12995 make final pop restore (command line) default, correct interaction
12996 of push/pop and sole specification of a new alignment (so that the
12997 sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
12998 to #pragma pack(push, <n>).
12999 * doc/extend.texi: New node "Structure-Packing Pragmas" under
13000 "Pragmas", describing #pragma pack.
13001 * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
13002 * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
13003 Document new TARGET_DEFAULT_PACK_STRUCT.
13004
13005 2004-09-03 Devang Patel <dpatel@apple.com>
13006
13007 * dwarf2out.c (gen_field_die). Equate decl number to die.
13008
13009 2004-09-03 Vladimir Makarov <vmakarov@redhat.com>
13010
13011 PR target/15832
13012 * global.c (modify_reg_pav): New function.
13013 (make_accurate_live_analysis): Call the new function. Move pavin
13014 modification by earlyclobber set into the new function.
13015
13016 2004-09-03 Andreas Schwab <schwab@suse.de>
13017
13018 * config/m68k/m68k.c (output_andsi3): Use -1 instead of
13019 (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
13020 extended.
13021
13022 2004-09-02 Jan Beulich <jbeulich@novell.com>
13023
13024 * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
13025 * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
13026 not unwind code specific ones.
13027 (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
13028 Remove unwind code specific dependencies.
13029 (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
13030 Remove gbl-ctors.h.
13031 Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
13032 LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
13033 * tsystem.h: Declare memcpy and memset when inhibit_libc.
13034
13035 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
13036
13037 * combine.c (try_combine): Delay modifying of insns which cannot
13038 be easily undone.
13039
13040 2004-09-02 Daniel Berlin <dberlin@dberlin.org>
13041
13042 * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
13043 tree-loop-im.
13044 * gcc/tree-ssa-loop.c: Ditto
13045 * gcc/tree-ssa-loop-ivcanon.c: Ditto
13046 * gcc/doc/invoke.texi: Ditto.
13047
13048 2004-09-02 Ziemowit Laski <zlaski@apple.com>
13049
13050 * c-decl.c (store_parm_decls_newstyle): Make static.
13051 (store_parm_decls_from): New function.
13052 * c-tree.h (store_parm_decls_newstyle): Remove prototype.
13053 (store_parm_decls_from): New prototype.
13054
13055 2004-09-02 David Edelsohn <edelsohn@gnu.org>
13056
13057 * config/rs6000/rs6000.c (expand_block_move): Use SImode and
13058 HImode with STRICT_ALIGNMENT.
13059
13060 2004-09-02 Mark Mitchell <mark@codesourcery.com>
13061
13062 * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
13063 (TARGET_OS_CPP_BUILTINS): Likewise.
13064 * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
13065 TARGET_BPABI_CPP_BUILTINS.
13066
13067 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
13068
13069 * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
13070
13071 2004-09-02 Eric Christopher <echristo@redhat.com>
13072
13073 * builtins.c (expand_builtin_cabs): Delete.
13074 (expand_builtin): If unable to fold the values do a normal
13075 library call for builtin_cab*.
13076 (fold_builtin_cabs): Depend on optimize and optimize_size.
13077 * optabs.c (expand_cmplxdiv_straight): Delete.
13078 (expand_cmplxdiv_wide): Ditto.
13079 (expand_vector_binop): Ditto.
13080 (expand_vector_unop): Ditto.
13081 (expand_complex_abs): Delete.
13082 (expand_binop): Remove calls to above functions.
13083 Remove open coding of complex arithmetic.
13084 (expand_unop): Ditto.
13085 * optabs.h: Remove prototypes.
13086
13087 2004-09-02 Ziemowit Laski <zlaski@apple.com>
13088
13089 * c-decl.c (store_parm_decls_newstyle): Make externally visible.
13090 * c-tree.h (store_parm_decls_newstyle): New prototype.
13091
13092 2004-09-02 Geoffrey Keating <geoffk@apple.com>
13093
13094 * config/rs6000/rs6000.c (expand_block_clear): Use vector
13095 instructions if available.
13096 (expand_block_move): Likewise.
13097
13098 2004-09-03 Jan Hubicka <jh@suse.cz>
13099
13100 * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
13101
13102 2004-09-02 Mark Mitchell <mark@codesourcery.com>
13103
13104 * config/arm/symbian.h (LIB_SPEC): Define to empty.
13105 * config/arm/t-symbian (SHLIB_LC): Likewise.
13106
13107 2004-09-02 Paul Brook <paul@codesourcery.com>
13108
13109 * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
13110
13111 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
13112
13113 * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
13114 (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
13115 (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
13116 (build_mips16_call_stub): Likewise. Remove daft CALL_INSN checks.
13117 (mips_issue_rate): Remove unreachable abort.
13118 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
13119 (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
13120 (mips_block_move_straight, print_operand_address, mips_file_start)
13121 (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
13122 (mips_output_conditional_branch, mips_expand_builtin_direct)
13123 (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
13124 * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
13125 with gcc_assert.
13126
13127 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
13128
13129 * config/mips/mips.md (*lea_high64): Change split condition to
13130 flow2_completed. Add a peephole2 to generate a more parallel version.
13131
13132 2004-09-02 Jan Hubicka <jh@suse.cz>
13133
13134 * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
13135 GGC.
13136
13137 * ggc-page.c: include tree-flow.h.
13138 (extra_order_size_table): Add stmt_ann_d.
13139 (STAT_LABEL): Rename from ....
13140 (LABEL): ... this one.
13141 * Makefile.in (ggc-page.o): Add dependency.
13142
13143 * ggc-common.c (ggc_force_collect): New global variable.
13144 (loc_description): Add fields "freed", "collected"
13145 (ptr_hash): New static hash
13146 (ptr_hash_entry): New structure.
13147 (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
13148 (ggc_record_overhead): Take ptr argument, record it
13149 (ggc_prune_overhead_list, ggc_free_overhead): New functions.
13150 (cmp_statistics): Imrove sorting.
13151 (dump_ggc_loc_statistics): Output newly collected statistics
13152 * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
13153 (ggc_free): Call ggc_free_overhead.
13154 (ggc_collect): Force collection when asked to be forced.
13155 (ggc_collect): Call ggc_prune_overhead_list.
13156 * ggc.h (ggc_force_collect): Declare
13157 (ggc_record_overhead): Update prototype.
13158 (ggc_free_overhead, ggc_prune_overhead_list): Declare.
13159
13160 2004-09-02 James E Wilson <wilson@specifixinc.com>
13161
13162 * common.opt (ftrapping-math): Default to on.
13163
13164 2004-09-02 Richard Earnshaw <rearnsha@arm.com>
13165
13166 * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
13167
13168 2004-09-02 Denis Chertykov <denisc@overta.ru>
13169
13170 PR target/16884
13171 * config/avr/avr.md ("movmemhi"): Substitute match_dup to
13172 match_scratch.
13173 (*movmemqi_insn): Likewise.
13174 (*movmemhi): Likewise.
13175 (clrmemhi): Likewise.
13176 (*clrmemqi): Likewise.
13177 (*clrmemhi): Likewise.
13178
13179 2004-09-02 Paul Brook <paul@codesourcery.com>
13180
13181 * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
13182 default_use_cxa_atexit=yes.
13183
13184 2004-09-02 Alan Modra <amodra@bigpond.net.au>
13185
13186 * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
13187 (struct kernel_old_ucontext): Delete.
13188 (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
13189 (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs. Only define
13190 when IN_LIGGCC2.
13191
13192 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
13193
13194 * toplev.c (process_options): Fix typo.
13195
13196 2004-09-01 Richard Henderson <rth@redhat.com>
13197
13198 PR middle-end/17258
13199 * calls.c (initialize_argument_information): Tighten pass-through
13200 conditions for pass-by-reference. Remove dead TARGET_EXPR code.
13201 Use build_fold_addr_expr.
13202 (emit_library_call_value_1): Use build_fold_addr_expr. Remove code
13203 that assumes ADDR_EXPR allocates stack space.
13204 * fold-const.c (build_fold_addr_expr_with_type): Look through
13205 WITH_SIZE_EXPR.
13206
13207 2004-09-01 Dan Nicolaescu <dann@ics.uci.edu>
13208
13209 * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
13210 * ggc.h (ggc_alloc_rtx): Delete.
13211
13212 2004-09-01 Roger Sayle <roger@eyesopen.com>
13213
13214 * expmed.c (enum alg_code): Remove long unused enumeration values.
13215 (struct mult_cost): New structure to hold the "score" of a synthetic
13216 multiply sequence, including both a rtx_cost and a latency field.
13217 (MULT_COST_LESS): New macro to compare mult_cost to a constant.
13218 (CHEAPER_MULT_COST): New macro to compare two mult_costs.
13219 (struct algorithm): Change type of cost field to be mult_cost.
13220 (synth_mult): Change type of cost_limit argument to be a
13221 pointer to a mult_cost. Update all cost comparisons to use the
13222 new mult_cost infrastructure. For alg_add_factor and
13223 alg_sub_factor operations, latency is lower than the rtx_cost.
13224 (choose_mult_variant): Update calls to synth_mult. Perform
13225 cost comparisons using the new mult_cost infrastructure.
13226 (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
13227 to optain the total rtx_cost of a synth_mult "algorithm".
13228
13229 2004-09-01 David Edelsohn <edelsohn@gnu.org>
13230
13231 * config/rs6000/power4.md: Increase store latency to 12.
13232 * config/rs6000/power5.md: Same.
13233
13234 2004-09-01 James E Wilson <wilson@specifixinc.com>
13235
13236 PR target/14064
13237 * config/avr/avr.c (avr_unique_section): Delete prototype and
13238 definition.
13239 (TARGET_ASM_UNIQUE_SECTION): Delete.
13240
13241 2004-09-01 Ziemowit Laski <zlaski@apple.com>
13242
13243 * c-parse.in (primary): Call objc_build_message_expr(),
13244 objc_build_selector_expr(), objc_build_protocol_expr(),
13245 objc_build_encode_expr() and objc_build_string_object() instead of
13246 build_message_expr(), build_selector_expr(), build_protocol_expr(),
13247 build_encode_expr() and build_objc_string_object(), respectively.
13248 (component_decl_list2): Call objc_get_class_ivars() instead of
13249 get_class_ivars_from_name().
13250 (keyworddecl): Call objc_build_keyword_decl() instead of
13251 build_keyword_decl().
13252 (receiver): Call objc_get_class_reference() instead of
13253 get_class_reference().
13254 (reswords): Add blank line before @@ifobjc section, for clarity.
13255
13256 2002-09-01 Fariborz Jahanian <fjahanian@apple.com>
13257
13258 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
13259 to Altivec vetors.
13260
13261 2004-09-01 Wu Yongwei <adah@sh163.net>
13262 Danny Smith <dannysmith@users.sourceforge.net>
13263
13264 * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
13265 not Windows 'DWORD'.
13266 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
13267 (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
13268 (__gthr_win32_recursive_mutex_init_function): Add prototype for
13269 __GTHREAD_HIDE_WIN32API case..
13270 (__gthr_win32_recursive_mutex_lock): Likewise.
13271 (__gthr_win32_recursive_mutex_trylock): Likewise.
13272 (__gthr_win32_recursive_mutex_unlock): Likewise.
13273 (__gthread_recursive_mutex_init_function); Add definition for
13274 __GTHREAD_HIDE_WIN32API case.
13275 (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
13276 * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
13277 call to InterlockedDecrement.
13278
13279 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13280
13281 * tree-tailcall.c (find_tail_calls): Also fail is statement has
13282 volatile operands.
13283
13284 * tree-ssa.c (propagate_into_addr): Properly test for LHR.
13285
13286 * doc/c-tree.texi: Document new operands for ARRAY_REF and
13287 COMPONENT_REF.
13288
13289 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13290
13291 * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
13292 * common.opt (fspeculative-prefetching): New.
13293 * flags.h (flag_speculative_prefetching_set): Declare.
13294 * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
13295 values.
13296 * opts.c (flag_sepculative_prefetching_set): New variable.
13297 (common_handle_option): Handle -fspeculative-prefetching.
13298 * passes.c (rest_of_compilation): Ditto.
13299 * profile.c (instrument_values, compute_value_histograms, branch_prob):
13300 Use vectors instead of arrays.
13301 * toplev.c (process_options): Handle -fspeculative-prefetching.
13302 * rtl-profile.c: Include ggc.h.
13303 (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
13304 rtl_gen_one_value_profiler_no_edge_manipulation,
13305 rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
13306 argument changed.
13307 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
13308 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
13309 argument changed.
13310 * value-prof.c: Include ggc.h.
13311 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
13312 macros.
13313 (insn_prefetch_values_to_profile, find_mem_reference_1,
13314 find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
13315 speculative_prefetching_transform): New.
13316 (value_profile_transformations): Call speculative_prefetching_transform.
13317 (insn_values_to_profile): Call insn_prefetch_values_to_profile.
13318 (insn_divmod_values_to_profile, rtl_find_values_to_profile,
13319 tree_find_values_to_profile, find_values to profile): Use vectors
13320 instead of arrays.
13321 (free_profiled_values): Removed.
13322 * value-prof.h (struct histogram_value): Renamed to
13323 struct histogram_value_t.
13324 (histogram_value, histogram_values): New types.
13325 (find_values_to_profile): Declaration changed.
13326 (free_profiled_values): Removed.
13327 (struct profile_hooks): Type of argument of the hooks changed to
13328 histogram_value.
13329 * doc/invoke.texi (-fspeculative-prefetching): Document.
13330
13331 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13332
13333 PR rtl-optimization/16408
13334 * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
13335
13336 2004-09-01 Richard Henderson <rth@redhat.com>
13337
13338 * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
13339 (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
13340
13341 2004-09-01 Jakub Jelinek <jakub@redhat.com>
13342
13343 * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
13344
13345 2004-09-01 Mike Stump <mrs@apple.com>
13346
13347 * config/darwin.c (machopic_symbol_defined_p): In addition to
13348 being SYMBOL_REF_LOCAL_P, a symbol must also be
13349 ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
13350 defined in this output file, or translation unit in the case
13351 of IMA not being used.
13352 (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
13353 never need .indirect_symbol when indirecting.
13354
13355 2004-09-01 Jakub Jelinek <jakub@redhat.com>
13356
13357 * Makefile.in (bb-reorder.o): Add several dependencies.
13358
13359 2004-09-01 Jakub Jelinek <jakub@redhat.com>
13360
13361 * fold-const.c (operand_equal_p): Require equal sign also for
13362 FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
13363
13364 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
13365
13366 * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
13367 for use in configargs.h. Put the cname in a separate variable. Use
13368 that to set target_cpu_default2.
13369
13370 2004-09-01 J"orn Rennecke <joern.rennecke@superh.com>
13371 Nick Clifton <nickc@redhat.com>
13372
13373 * config/sh/sh.md ("length"): Increase branch length when
13374 SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
13375 constant, 2 byte for aligning the constant.
13376
13377 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
13378
13379 * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
13380 CPU.
13381 (arm7tdmi-s): New CPU name.
13382 * arm/arm.c (ARM_CORE): Update for new format.
13383 * arm/arm.h (ARM_CORE): Likewise.
13384 * arm/gentune.sh: Update for extra field.
13385 * config.gcc: Likewise.
13386 * arm/arm-tune.md: Regenerate.
13387 * doc/invoke.texi: Document the real processor names for ARM cpus.
13388
13389 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
13390
13391 * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
13392 (floatdidf): New functions.
13393 * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
13394 (floatdisf): New functions.
13395 * t-arm-elf: Use them.
13396
13397 2004-09-01 Ziemowit Laski <zlaski@apple.com>
13398
13399 * c-common.h (lookup_interface): Remove prototype.
13400 (is_class_name): Rename to objc_is_class_name.
13401 (lookup_objc_ivar): Rename to objc_lookup_ivar.
13402 (get_current_scope): Rename to objc_get_current_scope.
13403 * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
13404 * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
13405 (yylexname): Call objc_is_class_name() instead of is_class_name().
13406 * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
13407 instead of lookup_objc_ivar().
13408 * stub-objc.c (lookup_interface): Remove stub.
13409 (is_class_name): Rename to objc_is_class_name.
13410 (lookup_objc_ivar): Rename to objc_lookup_ivar.
13411
13412 2004-08-31 Mark Mitchell <mark@codesourcery.com>
13413
13414 * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
13415 * config/arm/lib1funcs.asm: Do not include supplemental .S files
13416 when compiling for Symbian.
13417 * config/arm/symbian.h (RENAME_LIBRARY): New macro.
13418 (TARGET_OS_CPP_BUILTINS): Likewise.
13419 * config/arm/t-symbian (LIB1ASMFUNCS): Define.
13420
13421 2004-08-31 Stan Shebs <shebs@apple.com>
13422
13423 * toplev.c (process_options): Ensure debug_hooks is initialized.
13424
13425 2004-08-31 Mark Mitchell <mark@codesourcery.com>
13426
13427 * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
13428 * target.h (cxx): Add export_class_data.
13429 * config/arm/arm.c (arm_cxx_export_class_data): New function.
13430 (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
13431 * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
13432
13433 2004-08-31 Kaz Kojima <kkojima@gcc.gnu.org>
13434
13435 * config/sh/sh.c (output_branch): Check the insn length possibly
13436 in the delayed slot.
13437
13438 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13439
13440 * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
13441 blank after ')'.
13442 (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
13443
13444 * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
13445 (c_sizeof_of_alignof_type): Likewise.
13446 * expr.c (array_ref_element_size): Likewise.
13447 (highest_pow2_factor_for_target): Likewise.
13448 * gimplify.c (canonicalize_addr_expr): Likewise.
13449 (gimplify_compound_lval): Likewise.
13450 * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
13451 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
13452 * varasm.c (assemble_variable): Likewise.
13453 (output_constant_def_contents): Alignments are unsigned.
13454
13455 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13456 Jeff Law <law@redhat.com>
13457
13458 * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
13459 gets modified.
13460
13461 2004-08-31 Mark Mitchell <mark@codesourcery.com>
13462
13463 * hooks.c (hook_bool_void_true): New function.
13464 * hooks.h (hook_bool_void_true): Declare.
13465 * target-def.h (TARGET_CXX): Add
13466 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
13467 * target.h (struct cxx): Add key_method_may_be_inline.
13468 * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
13469 function.
13470 (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
13471 * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
13472 __THUMB_INTERWORK.
13473
13474 2004-08-31 Denis Chertykov <denisc@overta.ru>
13475
13476 PR target/15417
13477 * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
13478 frame pointer register only in Pmode while reload in progress.
13479
13480 2004-08-31 Stephane Carrez <stcarrez@nerim.fr>
13481
13482 PR target/15334
13483 * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
13484 because it breaks the 32-bit shift patterns that rely on a match_dup.
13485
13486 2004-08-31 Matt Austern <austern@apple.com>
13487
13488 * config/darwin.c (darwin_make_decl_one_only): Allocate section
13489 names once per compilation, instead of once per symbol.
13490
13491 2004-08-31 Paolo Bonzini <bonzini@gnu.org>
13492
13493 * Makefile.in (build_subdir): New substitution.
13494 (fixinc.sh): Simplify heavily since fixincludes is already built.
13495 (stmp-fixinc): Depend on specs.ready.
13496 (install-mkheaders): Use new location of fixincludes.
13497 (clean): Do not descend into fixinc.
13498 (FORBUILD): Replace with ../$(build_subdir).
13499 * configure.ac (build_subdir): Substitute.
13500 (FORBUILD): Do not set.
13501 (all_outputs): Remove fixinc/Makefile.
13502 (default commands): Do not create links in fixinc.
13503 * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
13504 the fixincludes configuration steps and substituting
13505 @FIXINCL@ in fixinc.in.
13506 * fixinc.in: New, from fixinc/fixincl.sh.
13507
13508 * fixinc/*: Removed.
13509
13510 2004-08-31 Joseph S. Myers <jsm@polyomino.org.uk>
13511
13512 * attribs.c (strip_attrs): Remove.
13513 (split_specs_attrs): Move ...
13514 * c-decl.c: ... to here.
13515 * tree.h (split_specs_attrs, strip_attrs): Remove.
13516 * c-tree.h (split_specs_attrs): Declare.
13517
13518 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
13519
13520 * read-rtl.c: Disable RTL checking.
13521 (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
13522
13523 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
13524
13525 * config/mips/mips.md (fcond): New code macro and attribute.
13526 (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
13527 (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
13528 (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
13529
13530 2004-08-30 Mark Mitchell <mark@codesourcery.com>
13531
13532 Revert:
13533 2004-08-29 Mark Mitchell <mark@codesourcery.com>
13534 PR rtl-optimization/16590
13535 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
13536
13537 2004-08-30 Andrew Pinski <apinski@apple.com>
13538
13539 * hard-reg-set.h:
13540 s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
13541 * ChangeLog: Fix previous ChangeLog entry.
13542
13543 PR rtl-opt/13987
13544 * config.host (use_long_long_for_widest_fast_int): New, default is
13545 off.
13546 (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
13547 * configure.ac: If use_long_long_for_widest_fast_int, then
13548 define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
13549 * configure: Regenerate.
13550 * config.in: Regenerate.
13551 * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
13552 New: widest integer type supported efficiently in hardware for the
13553 host.
13554 * sbitmap.h (SBITMAP_ELT_BITS): Define based on
13555 HOST_BITS_PER_WIDEST_FAST_INT.
13556 (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
13557 * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
13558 HOST_WIDEST_FAST_INT
13559 instead of HOST_WIDE_INT.
13560 (HARD_REG_SET_LONGS): Likewise.
13561 (UHOST_BITS_PER_WIDE_INT): Likewise.
13562 Change the checks for the fast cases to be based on
13563 HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
13564
13565 2004-08-30 Steven Bosscher <stevenb@suse.de>
13566
13567 * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
13568 not the pointers.
13569
13570 2004-08-30 Geoffrey Keating <geoffk@apple.com>
13571
13572 PR 12738
13573 PR 17205
13574 Radar 3460526
13575 Radar 3775729
13576 * c-decl.c (grokdeclarator): Produce error for 'static' on local
13577 function declaration.
13578
13579 2004-08-30 Richard Henderson <rth@redhat.com>
13580
13581 * expr.c (array_ref_element_size): Force aligned_size back to
13582 sizetype.
13583 (component_ref_field_offset): Similarly for aligned_offset.
13584 * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
13585 low-bound, element-size, field-offset fields rather than
13586 computed values.
13587
13588 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
13589
13590 * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
13591 redundant code.
13592
13593 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
13594
13595 * c-tree.h (struct language_function): Add arg_info element.
13596 * c-decl.c (current_function_arg_info): New.
13597 (grokdeclarator, store_parm_decls): Use it instead of
13598 DECL_ARGUMENTS.
13599 (c_push_function_context, c_pop_function_context): Save and
13600 restore it.
13601
13602 2004-08-30 Richard Henderson <rth@redhat.com>
13603
13604 * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
13605 COMPONENT_REF to pointer arithmetic.
13606 * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
13607 constant "c" as a valid constant initializer. Allow narrowing of
13608 differences against the same base object, for any base object.
13609
13610 2004-08-30 Richard Henderson <rth@redhat.com>
13611
13612 * expr.c (expand_expr_addr_expr): New.
13613 (expand_expr_real_1) <case ADDR_EXPR>: Use it.
13614
13615 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
13616
13617 * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
13618 (mips_fp_condition): New enum.
13619 (mips_fp_conditions): New array.
13620 (print_fcc_operand): Delete.
13621 (print_operand): Remove %V, %v and %Q. Redefine %Z so that it prints
13622 the operand and comma if and only if ISA_HAS_8CC. Add %Y.
13623 (builtin_description): Add "cond" field.
13624 (DIRECT_BUILTIN): Initialize it.
13625 (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
13626 into INSN and CODE. Initialize the "cond" field.
13627 (CMP_BUILTINS): Update accordingly.
13628 (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
13629 (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
13630 mips_fp_condition as argument. Make it the final operand of the
13631 comparison instruction.
13632 (mips_expand_builtin): Update accordingly.
13633 * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
13634 (UNSPEC_C, UNSPEC_CABS): New constants. Shuffle others to fill
13635 the gaps.
13636 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
13637 Don't use the 'Q' operand prefix; just print the operand normally.
13638 (mips_cabs_*, mips_c_*): Delete, replacing with...
13639 (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
13640 patterns. Split the 4s versions into 2 ps patterns after reload.
13641
13642 2004-08-30 Richard Henderson <rth@redhat.com>
13643
13644 * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
13645 assuming an ADDR_EXPR is non-null.
13646
13647 2004-08-30 Jason Merrill <jason@redhat.com>
13648
13649 * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
13650
13651 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
13652
13653 * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
13654 record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
13655 gcc_assert and gcc_unreachable instead of abort.
13656 * alloc-pool.c (abort, fancy_abort): Remove.
13657 (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
13658 gcc_assert or gcc_unreachable.
13659 * attribs.c (init_attributes, decl_attributes): Likewise.
13660 * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
13661 mark_bb_for_unlikely_executed_section,
13662 add_labels_and_missing_jumps, fix_crossing_conditional_branches,
13663 fix_crossing_unconditional_branches): Likewise.
13664 * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
13665 bitmap_operation): Likewise.
13666 * bt-load.c (insn_sets_btr_p, augment_live_range,
13667 move_btr_def): Likewise.
13668 * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
13669 apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
13670 expand_builtin_mathfn_2, expand_builtin_mathfn_3,
13671 builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
13672 expand_builtin_memcmp, expand_builtin_args_info,
13673 std_gimplify_va_arg_expr, expand_builtin_unop,
13674 expand_builtin_fputs, expand_builtin_profile_func,
13675 expand_builtin_fork_or_exec, fold_builtin_bitop,
13676 fold_builtin_classify, fold_builtin_fputs): Likewise.
13677
13678 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
13679
13680 * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
13681 * gcov.c (abort): Remove undef.
13682
13683 * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
13684 (struct tree_binfo): Remove primary field.
13685
13686 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
13687
13688 * fixinc/Makefile.in (machname.h): Remove.
13689 (fixincl.x): Do not pass $@ to genfixes.
13690 * fixinc/genfixes: Remove code to produce machname.h.
13691 * fixinc/fixincl.sh: Move it here instead.
13692 * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
13693 instead check if pz_mn_name_pat is NULL. Make mn_get_regexps
13694 return a bool indicating whether pz_mn_name_pat is NULL.
13695 * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
13696 Declare extern C variables for the ENV_TABLE.
13697 * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
13698 instead use the result of mn_get_regexps.
13699 * fixinc/fixtests.c: Likewise.
13700
13701 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
13702
13703 * configure.ac: Do not run fixincludes after stage1 during
13704 toplevel bootstrap.
13705 * configure: Regenerate.
13706
13707 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
13708
13709 * sched-deps.c (get_condition): Partially revert previous, by never
13710 trying to extract the condition from a condjump.
13711
13712 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
13713
13714 * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
13715 (handle_visibility_attribute, c_determine_visibility): Likewise.
13716 * c-common.h (my_friendly_assert): Remove.
13717
13718 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
13719
13720 * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
13721 (UNSPEC_{RSQRT,RECIP}[12]): New constants.
13722 (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
13723 * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
13724 (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
13725
13726 2004-08-30 Diego Novillo <dnovillo@redhat.com>
13727
13728 * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
13729 in COMPONENT_REF nodes.
13730
13731 2004-08-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
13732
13733 PR c++/15378
13734 * c-opts.c (c_common_handle_option): <case OPT_Werror> set
13735 global_dc->warning_as_error_requested.
13736 * diagnostic.c (diagnostic_initialize): Tidy.
13737 * diagnostic.h (diagnostic_context::x_data): Remove
13738 (diagnostic_context::issue_warnings_are_errors_message): Rename
13739 from warnings_are_errors_message.
13740 (diagnostic_context::warning_as_error_requested): New.
13741
13742 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
13743
13744 * sched-deps.c (get_condition): Fix breakage in previous patch.
13745
13746 2004-08-30 Paul Brook <paul@codesourcery.com>
13747
13748 * doc/install.texi: Fix broken mpfr link.
13749
13750 2004-08-29 David O'Brien <obrien@FreeBSD.org>
13751
13752 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
13753 other FreeBSD platforms.
13754
13755 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
13756
13757 * arm.h (REVERSE_CONDITION): Define.
13758 (REVERSIBLE_CC_MODE): All comparisons are now reversible.
13759
13760 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
13761
13762 * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
13763 just the codes, call reversed_comparison_code ().
13764 (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
13765 (not_reg_cond): Use reversed_comparison_code.
13766 (and_reg_cond): Likewise.
13767 * ifcvt.c (cond_exec_process_if_block): Likewise.
13768 * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
13769
13770 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
13771
13772 * sched-deps.c (get_condition): Rewrite using jump support functions.
13773 Use reversed_comparison_code.
13774 (conditions_mutex_p): Use reversed_comparison_code.
13775
13776 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13777
13778 * config/mips/mips.c (override_options): Disable hot/cold partitioning
13779 for MIPS16.
13780
13781 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13782
13783 * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
13784 (mips_function_type): Move to mips.c.
13785 * config/mips/mips.c (mips_builtin_type): New enum.
13786 (builtin_description): Replace code and ftype with builtin_type
13787 and function_type.
13788 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
13789 (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
13790 (CODE_FOR_mips_abs_ps): Define.
13791 (mips_bdesc): Use new macros.
13792 (mips_expand_builtin): Use builtin_type. Update calls to subroutines.
13793 (mips_init_builtins): Use the mips_bdesc[] index as the function code.
13794 (mips_expand_builtin_direct): New function.
13795 (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
13796 builtin. Replace boolean parameter with builtin_type.
13797 (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
13798 (mips_expand_4s_compare_builtin): Delete, replacing with...
13799 (mips_expand_builtin_compare): ...this new function.
13800
13801 2004-08-29 Mark Mitchell <mark@codesourcery.com>
13802
13803 PR rtl-optimization/16590
13804 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
13805
13806 2004-08-29 Diego Novillo <dnovillo@redhat.com>
13807
13808 * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
13809 * tree-ssa-propagate.c: Fix documentation.
13810
13811 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13812
13813 * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
13814 (mov[sd]fcc): Likewise.
13815
13816 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13817
13818 * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
13819
13820 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13821
13822 * config/mips/mips.md (divide_condition): New mode attribute.
13823 (div[sd]f3, *div[sd]f3): Use it. Redefine using :SCALARF.
13824 (sqrt[sd]f3): Redefine using SCALARF.
13825 (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise. Name formerly unnamed
13826 patterns.
13827
13828 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13829
13830 * config/mips/mips.md (ANYF, SCALARF): New mode macros.
13831 (loadx, storex, fmt, UNITMODE): New mode attributes.
13832 (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
13833 (mul[sd]f3): Redefine using :SCALARF.
13834 (*mul[sd]f3): Renamed from mul[sd]f3_internal. Use :SCALARF.
13835 (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
13836 (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns. Use :ANYF.
13837 Check TARGET_FUSED_MADD for V2SF too.
13838 (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
13839 were already named.
13840 (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
13841 (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
13842
13843 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13844
13845 * config/mips/mips.c (mips_init_builtins): Simplify. Only create
13846 V2SF_type_node if it will be needed.
13847
13848 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13849
13850 * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
13851 * config/mips/mips.c (mips_prepare_builtin_arg): New function.
13852 (mips_prepare_builtin_target): New function.
13853 (mips_expand_builtin): Use them. Update calls to subroutines.
13854 (mips_expand_ps_cond_move_builtin): Use the new functions. Replace
13855 cmp_choice with a boolean argument to select between movt and movf.
13856 Take the comparison's icode as an argument, not the function's fcode.
13857 (mips_expand_compare_builtin): New function. Rename existing function
13858 to mips_expand_scalar_compare_builtin.
13859 (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
13860 (mips_expand_ps_compare_builtin): Use the new functions. Take the
13861 comparison's icode as an argument, not the builtin's fcode.
13862
13863 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13864
13865 * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
13866 (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
13867 registers are false and -1 if all registers are true.
13868 (mips_expand_ps_compare_builtin): Likewise CCV2. Use subregs for
13869 MIPS_CMP_UPPER and MIPS_CMP_LOWER.
13870 * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
13871 (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
13872 (bc1any2t, bc1any2f): Likewise CCV2.
13873 (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
13874
13875 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
13876
13877 * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
13878 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
13879 UNSPEC rather than an IF_THEN_ELSE.
13880 * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
13881 mips_cond_move_tf_ps by name.
13882
13883 2004-08-29 Chao-ying Fu <fu@mips.com>
13884 James E Wilson <wilson@specifixinc.com>
13885
13886 * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
13887 8 byte size and alignment. Give CCV4 16 byte size and alignment.
13888 * config/mips/mips-ps-3d.md: New file.
13889 * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
13890 TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
13891 (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
13892 (mips_output_move): Emit "mov.ps" for V2SFmode.
13893 (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
13894 MODE_VECTOR_FLOAT.
13895 (override_options): Check if TARGET_MIPS3D and there was an explicit
13896 !TARGET_PAIRED_SINGLE_FLOAT. Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
13897 Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
13898 TARGET_PAIRED_SINGLE_FLOAT is true. Check if the ISA supports
13899 TARGET_PAIRED_SINGLE_FLOAT. Allow MODE_VECTOR_FLOAT in fp registers,
13900 and allow CCV2 and CCV4 to occupy two and four CC registers.
13901 (print_fcc_operand): New function.
13902 (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC. Modify
13903 %Z to call print_fcc_operand.
13904 (mips_function_value): Handle MODE_VECTOR_FLOAT.
13905 (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
13906 (mips_vector_mode_supported_p): New function.
13907 (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
13908 (builtin_description): New struct.
13909 (mips_bdesc): New array of struct builtin_description.
13910 (mips_expand_builtin, mips_init_builtins,
13911 mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
13912 mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
13913 functions.
13914 * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
13915 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
13916 (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
13917 (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
13918 "-mips3d", and "-mno-mips3d".
13919 (ASM_SPEC): Map -mips3d to -mips3d in gas.
13920 (EXTRA_CONSTRAINT_Y): New macro.
13921 (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT. Add new
13922 multi-letter constraint 'Y'.
13923 (CONSTRAINT_LEN): New macro.
13924 (enum mips_builtins): New for MIPS builtin functions.
13925 (enum mips_function_type): New for the types of MIPS builtin functions.
13926 (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
13927 * config/mips/mips.md: New constants for paired single and MIPS-3D
13928 instructions. Include the new mips-ps-3d.md file.
13929 (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
13930 movv2sf_hardfloat_64bit): New named patterns.
13931 (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
13932 nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
13933 sdxc1_v2sf_di): New unnamed patterns.
13934 * config/mips/predicates.md (const_0_operand, const_1_operand): Add
13935 const_vector support.
13936 (const_0_or_1_operand): New predicate.
13937 * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
13938
13939 2004-08-29 Diego Novillo <dnovillo@redhat.com>
13940
13941 * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
13942 (tree-ssa-propagate.o): New rule.
13943 (GTFILES): Add tree-ssa-propagate.c.
13944 * tree-flow.h (struct stmt_ann_d): Remove field
13945 in_ccp_worklist.
13946 * tree-ssa-propagate.c: New file.
13947 * tree-ssa-propagate.h: New file.
13948 * tree-ssa-ccp.c: Re-write to use the routines from
13949 tree-ssa-propagate.c.
13950
13951 2004-08-28 Andrew Pinski <apinski@apple.com>
13952
13953 * tree-ssa-loop.c: Remove extra include of basic-block.h.
13954
13955 2004-08-28 Ziemowit Laski <zlaski@apple.com>
13956
13957 * c-common.h: Update comments about ObjC/ObjC++ entry points.
13958 (objc_is_reserved_word): New prototype.
13959 (get_current_scope, objc_mark_locals_volatile): Move prototypes to
13960 separate section; these are call-backs.
13961 * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
13962 ObjC/ObjC++ "@" keywords.
13963 * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
13964 prototypes; they already live in c-common.h.
13965 * stub-objc.c: Update copyright notice.
13966 (objc_is_reserved_word): New stub.
13967
13968 2004-08-28 Nathan Sidwell <nathan@codesourcery.com>
13969
13970 * system.h (gcc_assert): Remove __builtin_expect. Evaluate EXPR
13971 even when not checking.
13972
13973 2004-08-27 Jason Merrill <jason@redhat.com>
13974
13975 PR c++/13684
13976 * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
13977 (gimple_push_cleanup): Add eh_only parm.
13978 (gimplify_target_expr): Pass it.
13979 * c.opt (-fno-threadsafe-statics): New option.
13980 * c-opts.c (c_common_handle_option): Handle it.
13981 * c-common.h (flag_threadsafe_statics): Declare it.
13982 * c-common.c (flag_threadsafe_statics): Record it.
13983 * doc/invoke.texi: Document it.
13984 * tsystem.h (_GNU_SOURCE): Define.
13985 * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
13986 (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
13987 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
13988 (__gthread_recursive_mutex_init_function): New fn.
13989 (__gthread_recursive_mutex_lock): New fn.
13990 (__gthread_recursive_mutex_trylock): New fn.
13991 (__gthread_recursive_mutex_unlock): New fn.
13992 * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
13993 * gthr-win32.h, gthr-vxworks.h: Likewise.
13994 * gthr.h: Document.
13995
13996 2004-08-27 David Edelsohn <edelsohn@gnu.org>
13997
13998 * config/rs6000/rs6000.c (rs6000_override_options): Increase
13999 maximum skip to 15. Set function alignment, jump alignment, and
14000 loop alignment to 16 for processors that form dispatch groups.
14001 (rs6000_rtx_costs): outer_code is used.
14002
14003 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
14004
14005 * stor-layout.c (sizetype_set): Remove.
14006 (set_sizetype): Don't test or set it.
14007
14008 * tree.h (size_int_type): Remove.
14009 * fold-const.c: Do not #include gt-fold-const.h.
14010 (size_htab_hash, size_htab_eq): Remove.
14011 (size_int_kind): Use build_int_cst.
14012 (new_const, size_htab): Remove.
14013 (size_int_type): Remove.
14014 (round_up): Use build_int_cst.
14015 (round_down): Likewise. Remove spurious constant build.
14016
14017 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
14018
14019 * configure.ac: Add ENABLE_ASSERT_CHECKING control.
14020 Add is_release variable, use it for --enable-werror and
14021 --enable-checking defaults.
14022 * system.h (gcc_assert, gcc_unreachable): New.
14023 * doc/install.texi (--enable-checking): Update.
14024 * configure, config.in: Rebuilt.
14025
14026 2004-08-26 Richard Sandiford <rsandifo@redhat.com>
14027
14028 * rtl.h (read_rtx): Change prototype.
14029 * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
14030 line number. Return true on success.
14031 * gensupport.c (process_include, init_md_reader_args_cb): Adjust
14032 callers accordingly.
14033
14034 2004-08-26 Richard Henderson <rth@redhat.com>
14035
14036 * c-typeck.c (build_offsetof): Remove.
14037 * c-tree.h (build_offsetof): Remove.
14038 * c-common.c (fold_offsetof_1, fold_offsetof): New.
14039 * c-common.h (fold_offsetof): Declare.
14040 * c-parse.in (offsetof_base): New.
14041 (offsetof_member_designator): Use it. Build references, not just
14042 a tree list.
14043 (primary): Use fold_offsetof, not build_offsetof.
14044
14045 2004-08-26 Richard Henderson <rth@redhat.com>
14046
14047 * tree.c (staticp): Return the static object.
14048 * tree.h (staticp): Update decl.
14049 * langhooks.h (struct lang_hooks): Change staticp return type to tree.
14050 * langhooks.c (lhd_staticp): Return NULL_TREE.
14051 * langhooks-def.h (lhd_staticp): Update decl.
14052 * c-common.c (c_staticp): Return the static object.
14053 * c-common.h (c_staticp): Update decl.
14054
14055 2004-08-26 Richard Henderson <rth@redhat.com>
14056
14057 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
14058 modes.
14059
14060 2004-08-26 Joseph S. Myers <jsm@polyomino.org.uk>
14061
14062 PR c/13801
14063 * c-decl.c (struct c_binding): Add type and inner_comp fields.
14064 (bind): Set type and inner_comp fields.
14065 (pop_scope): Restore type of decl to the correct type from an
14066 outer scope. Give error when popping file scope for incomplete
14067 arrays completed incompatibly with default initialization in an
14068 inner scope.
14069 (diagnose_mismatched_decls): Handle externs with initializers at
14070 block scope.
14071 (pushdecl): Set type of external declaration at block scope based
14072 only on the visible declarations. Save type when changing the
14073 type of a declaration. Merge an external declaration at block
14074 scope with a visible static declaration at file scope.
14075 (implicitly_declare): Give recycled old declaration the new type
14076 except for incompatible declarations of built-in functions, saving
14077 the old type.
14078
14079 2004-08-26 Ziemowit Laski <zlaski@apple.com>
14080
14081 * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
14082
14083 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
14084
14085 * tree-alias-common.c (gate_pta): New function.
14086 (pass_build_pta): Use it.
14087 (pass_del_pta): Use it.
14088 (delete_alias_vars): Don't check flag_tree_points_to.
14089
14090 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
14091
14092 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
14093 TFmode as additional register mode cloberred by call.
14094
14095 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
14096
14097 * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
14098 parallel pattern for library call returning DImode in
14099 mixed mode.
14100
14101 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
14102
14103 * config/rs6000/rs6000.c (function_arg): Generate parallel
14104 pattern for more split args.
14105
14106 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
14107
14108 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
14109 either gen_movdi_di_update or gen_movdi_si_update depending on
14110 target mode.
14111 * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
14112 to generate two versions.
14113
14114 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
14115
14116 * Makefile.in (lambda-code.o): New.
14117 (lambda-trans.o): Ditto.
14118 (TREE_DATA_REF_H): Ditto.
14119 (LAMBDA_H): Ditto.
14120 (lambda-mat.o): Use LAMBDA_H.
14121 (tree-data-ref.o): Ditto.
14122 * lambda-code.c: New file. Lambda code generation algorithm.
14123 * lambda-trans.c: Ditto. Lambda transformation matrix support.
14124 * lambda.h: Add lambda loop structures.
14125 Add lambda loopnest structures.
14126 Add lambda body vector structure.
14127 Add lambda linear expression structures.
14128 Add prototypes for functions in new files.
14129 * lambda-mat.c: Include tree.h
14130
14131 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
14132 Sebastian Pop <pop@cri.ensmp.fr>
14133
14134 * tree-data-ref.h: Include lambda.h
14135 (free_dependence_relation): Declared here.
14136 (free_dependence_relations): Ditto.
14137 (free_data_refs): Ditto.
14138 * tree-data-ref.c (free_dependence_relation): New function.
14139 (free_dependence_relations): Ditto.
14140 (free_data_refs): Ditot.
14141 (analyze_all_data_dependences): Free datarefs and dependence_relations.
14142 (build_classic_dist_vector): Store in the dependence_relations the
14143 information. Each arc in the dependence_relations graph is labelled
14144 with the distance and direction vectors.
14145 (build_classic_dir_vector): Ditto.
14146 (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
14147 Now computes again the whole dependence graph including read-read
14148 relations.
14149 (compute_data_dependences_for_loop): Now dependence_relations contains
14150 all the data, and thus it doesn't need to initialize the classic_dir
14151 and classic_dist vectors.
14152 (analyze_all_data_dependences): Adjusted for using the new interface of
14153 compute_data_dependences_for_loop. Remove the statistics dump.
14154
14155 2004-08-26 Bob Wilson <bob.wilson@acm.org>
14156
14157 * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
14158 (xtensa_expand_block_move): Update comment.
14159 (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
14160
14161 2004-08026 Richard Earnshaw <rearnsha@arm.com>
14162
14163 PR target/13506
14164 * toplev.c (crash_signal): If we crashed while emitting
14165 a user asm, then die more gracefully.
14166
14167 2004-08-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
14168
14169 PR target/17119.
14170 * config/m32r.c (gen_compare): Use reg_or_int16_operand when
14171 checking for a valid constant, regardless of sign.
14172
14173 2004-08-25 Richard Henderson <rth@redhat.com>
14174
14175 PR target/16974
14176 * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
14177 if the constant satisfies add_operand.
14178
14179 2004-08-25 Richard Henderson <rth@redhat.com>
14180
14181 PR debug/10695
14182 * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
14183 (alpha_expand_prologue): Handle >32-bit frames. Generate proper
14184 unwind info for >16-bit frames.
14185
14186 2004-08-25 Richard B. Kreckel <richard.kreckel@framatome-anp.com>
14187
14188 PR target/17171
14189 * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
14190
14191 2004-08-25 Richard Henderson <rth@redhat.com>
14192
14193 * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
14194 (TARGET_CANNOT_FORCE_CONST_MEM): New.
14195
14196 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
14197
14198 * doc/tree-ssa.texi: Document new operand iterator.
14199
14200 2004-08-26 Alan Modra <amodra@bigpond.net.au>
14201
14202 PR target/16480
14203 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
14204 on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
14205 as PLUS base regs.
14206
14207 2005-08-28 Paul Brook <paul@codesourcery.com>
14208
14209 * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
14210 -mfpu=vfp -march=armv5t
14211 * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
14212
14213 2004-08-25 Richard Henderson <rth@redhat.com>
14214
14215 * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
14216 * target.h (struct gcc_target): Add scalar_mode_supported_p.
14217 * targhooks.c (default_scalar_mode_supported_p): New.
14218 * targhooks.h (default_scalar_mode_supported_p): Declare.
14219 * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
14220
14221 * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
14222 before attempting to create types. Tidy.
14223 * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
14224
14225 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
14226 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
14227
14228 2004-08-25 Richard Henderson <rth@redhat.com>
14229
14230 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
14231 set REAL_MODE_FORMAT for TFmode.
14232
14233 2004-08-25 Ziemowit Laski <zlaski@apple.com>
14234
14235 * c-decl.c (grokparm): New function.
14236 * c-tree.h (grokparm): New prototype.
14237
14238 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
14239
14240 * tree-ssa-operands.h (struct ssa_operand_iterator_d): New. SSA operand
14241 iterator controlling structure.
14242 (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
14243 SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
14244 SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New. Operand
14245 iterator flags.
14246 (FOR_EACH_SSA_TREE_OPERAND): New. Iterate over operands as trees.
14247 (FOR_EACH_SSA_USE_OPERAND): New. Iterate over operands as uses.
14248 (FOR_EACH_SSA_DEF_OPERAND): New. Iterate over operands as defs.
14249 (FOR_EACH_SSA_MAYDEF_OPERAND): New. Iterate over V_MAY_DEFs.
14250 * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
14251 Empty operand pointers.
14252 * tree-flow-inline.h (op_iter_done): New. Return true if finished.
14253 (op_iter_next_use): New. Return next use_operand_p.
14254 (op_iter_next_def): New. Return next def_operand_p.
14255 (op_iter_next_tree): New. Return next operands as a tree.
14256 (op_iter_init): New. Initialize an iterator structure.
14257 (op_iter_init_use): New. Initialize structure and get the first use.
14258 (op_iter_init_def): New. Initialize structure and get the first def.
14259 (op_iter_init_tree): New. Initialize structure and get the first tree.
14260 (op_iter_next_maydef): New. Return next V_MAY_DEF operands.
14261 (op_iter_init_maydef): New. Initialize structure and get the first
14262 V_MAY_DEF operands.
14263 * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
14264 * tree-dfa.c (compute_immediate_uses_for_stmt,
14265 redirect_immediate_uses): Use new operand iterator.
14266 (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
14267 (mark_new_vars_to_rename): Use new operand iterator. Count virtual
14268 operands instead of using *_disappeared_p routines.
14269 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
14270 ssa_rewrite_stmt): Use new operand iterator.
14271 * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
14272 rewrite_trees): Use new operand iterator.
14273 * tree-pretty-print.c (dump_vops): Use new operand iterator.
14274 * tree-sra.c (mark_all_v_defs): Use new operand iterator.
14275 * tree-ssa-alias.c (compute_points_to_and_addr_escape,
14276 dump_points_to_info): Use new operand iterator.
14277 * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
14278 replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
14279 operand iterator.
14280 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
14281 propagate_necessity): Use new operand iterator.
14282 * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
14283 (register_definitions_for_stmt): Use new operand iterator. Take stmt as
14284 a parameter instead of a stmt_ann_t.
14285 * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
14286 build_tree_conflict_graph): Use new operand iterator.
14287 * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
14288 rewrite_mem_refs): Use new operand iterator.
14289 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
14290 check_loop_closed_ssa_use): Use new operand iterator.
14291 * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
14292 * tree-ssanames.c (release_defs): Use new operand iterator.
14293 * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
14294
14295 2004-08-25 Adam Nemet <anemet@lnxw.com>
14296
14297 * tlink.c (initial_cwd): New variable.
14298 (tlink_init): Initialize it.
14299 (recompile_files): Use tlink_execute() instead of system(). Don't
14300 duplicate verbose output of collect_execute. Restore initial_cwd.
14301 Update comment before the function.
14302
14303 2004-08-25 Ziemowit Laski <zlaski@apple.com>
14304
14305 * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
14306 accept) a cast from one Objective-C pointer type to another.
14307
14308 2004-08-25 Paolo Carlini <pcarlini@suse.de>
14309
14310 * doc/install.texi: Document that libstdc++-v3 requires
14311 now automake 1.9.1.
14312
14313 2004-08-25 Caroline Tice <ctice@apple.com>
14314
14315 * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details
14316 to comments at start of function.
14317 * cfgbuild.c (make_edges): Add more details to hot/cold partitioning
14318 comment.
14319 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
14320 merge_blocks_move_predecessor_nojumps,
14321 merge_blocks_move_successor_nojumps, merge_blocks_move,
14322 try_crossjump_to_edge, try_crossjump_bb): Likewise.
14323 * cfglayout.c (fixup_reorder_chain): Likewise.
14324 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
14325 cfg_layout_can_merge_blocks_p): Likewise.
14326 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
14327 * passes.c (rest_of_compilation): Update comments for calling
14328 optimization that partitions hot/cold basic blocks.
14329 * doc/invoke.texi: Update documentation of
14330 freorder-blocks-and-partition flag.
14331
14332 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
14333
14334 * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
14335 (*mov*_on_*): Adjust accordingly. Add an explicit MOVECC: prefix.
14336
14337 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
14338
14339 * config/mips/mips.md (any_shift): New code macro.
14340 (optab, insn): New code attributes.
14341 ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
14342 Use the standard rather than internal patterns for the MIPS16
14343 double-shift optimization.
14344 (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
14345 Redefine using :GPR and any_shift.
14346 (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
14347 to cover all three shifts.
14348 (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
14349 Redefine using any_shift. Use :GPR and any_shift to combine splitters.
14350 (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
14351
14352 2004-08-24 Geoffrey Keating <geoffk@apple.com>
14353
14354 * gimplify.c (lookup_tmp_var): Separate temporaries when not
14355 optimizing.
14356
14357 2004-08-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14358
14359 PR libstdc++/17005 (fix for HP-UX 11.11)
14360 * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
14361 (hppa*-*-hpux*): Consolidate hppa1.0-*-* code. Rework handling of
14362 tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
14363 * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
14364 * config/pa/pa-hpux.h (TARGET_HPUX): Define.
14365 (LINK_SPEC): Handle march=1.0 option.
14366 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
14367 and _XOPEN_SOURCE_EXTENDED for UNIX 95.
14368 (SUBTARGET_OPTIONS): New define.
14369 (LINK_SPEC): Handle march=1.0 option.
14370 (STARTFILE_SPEC): New define.
14371 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
14372 and _XOPEN_SOURCE_EXTENDED for UNIX 95. Additionally, predefine
14373 _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
14374 (SUBTARGET_OPTIONS): New define.
14375 (LINK_SPEC): Handle march=1.0 option.
14376 (STARTFILE_SPEC): New define.
14377 * config/pa/pa.c (override_options): Add code to process -munix= option.
14378 * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
14379 (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
14380 defines.
14381 (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
14382 (SUBTARGET_OPTIONS): Provide default define.
14383 * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
14384 STANDARD_STARTFILE_PREFIX_2): New defines.
14385 (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
14386 (ENDFILE_SPEC): Use %O.
14387 * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
14388 Mention issue caused by changing namespace and runtime to UNIX 95/98.
14389 * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
14390 Document -munix=std option.
14391
14392 2004-08-25 Steven Bosscher <stevenb@suse.de>
14393
14394 * cse.c (cse_around_loop, cse_check_loop_start,
14395 cse_set_around_loop): Remove.
14396 (cse_basic_block): Remove the around_loop argument.
14397 (cse_end_of_basic_block): Remove the after_loop argument.
14398 (cse_main): Likewise.
14399 * rtl.h (cse_main): Update prototype.
14400 * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
14401 rest_of_handle_gcse): Update cse_main calls.
14402
14403 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
14404
14405 * tree.h (build_int_cst): New, sign extended constant.
14406 (build_int_cstu): New, zero extended constant.
14407 (build_int_cst_wide): Renamed from build_int_cst.
14408 * tree.c (build_int_cst, build_int_cstu): New.
14409 (build_int_cst_wide): Renamed from build_int_cst.
14410 (make_vector_type, build_common_tree_nodes,
14411 build_common_tree_nodes_2): Adjust build_int_cst calls.
14412 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
14413 expand_builtin_strpbrk, expand_builtin_fputs,
14414 build_string_literal, expand_builtin_printf,
14415 expand_builtin_sprintf, fold_builtin_classify_type,
14416 fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
14417 fold_builtin_toascii, fold_builtin_isdigit,
14418 simplify_builtin_strstr, simplify_builtin_strpbrk,
14419 fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
14420 * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
14421 DEF_ATTR_INT): Likewise.
14422 * c-decl.c (complete_array_type, check_bitfield_type_and_width):
14423 Likewise.
14424 * c-lex.c (interpret_integer, lex_charconst): Likewise.
14425 * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
14426 * c-pretty-print.c (pp_c_integer_constant): Likewise.
14427 * c-typeck.c (really_start_incremental_init, push_init_level,
14428 set_nonincremental_init_from_string): Likewise.
14429 * calls.c (load_register_parameters): Likewise.
14430 convert.c (convert_to_pointer): Likewise.
14431 coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
14432 build_fn_info_type, build_fn_info_value, build_ctr_info_value,
14433 build_gcov_info): Likewise.
14434 * except.c (init_eh, assign_filter_values): Likewise.
14435 * expmed.c (store_fixed_bit_field, extract_bit_field,
14436 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
14437 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
14438 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
14439 * expr.c (convert_move, emit_group_load, emit_group_store,
14440 expand_assignment, store_constructor, store_field,
14441 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
14442 fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
14443 invert_truthvalue, optimize_bit_field_compare,
14444 decode_field_reference, all_ones_mask_p, constant_boolean_node,
14445 fold_div_compare, fold, fold_read_from_constant_string,
14446 fold_negate_const, fold_abs_const, fold_not_const, round_up,
14447 round_down): Likewise.
14448 * function.c (assign_parm_setup_block): Likewise.
14449 * stmt.c (shift_return_value, expand_case, estimate_case_costs):
14450 Likewise.
14451 * stor-layout.c (layout_type, initialize_sizetypes,
14452 set_min_and_max_values_for_integral_type): Likewise.
14453 * tree-chrec.c (chrec_fold_multiply_poly_poly,
14454 reset_evolution_in_loop): Likewise.
14455 * tree-chrec.h (build_polynomial_chrec): Likewise.
14456 * tree-complex.c (build_replicated_const): Likewise.
14457 * tree-eh.c (honor_protect_cleanup_actions,
14458 lower_try_finally_onedest, lower_try_finally_copy,
14459 lower_try_finally_switch): Likewise.
14460 * tree-mudflap.c (mf_build_string, mx_register_decls,
14461 mudflap_register_call, mudflap_enqueue_constant): Likewise.
14462 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
14463 * tree-pretty-print.c (dump_generic_node): Likewise.
14464 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
14465 Likewise.
14466 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
14467 * tree-ssa-loop-niter.c (number_of_iterations_cond,
14468 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
14469 Likewise.
14470 * tree-ssa-loop-ivcanon.c (create_canonical_iv,
14471 canonicalize_loop_induction_variables): Likewise.
14472 * tree-vectorizer.c (vect_create_index_for_array_ref,
14473 vect_transform_loop_bound, vect_compute_data_ref_alignment):
14474 Likewise.
14475
14476 * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
14477 alpha_gimplify_va_arg_1): Likewise.
14478 * config/arm/arm.c (arm_get_cookie_size): Likewise.
14479 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
14480 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
14481 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
14482 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
14483 mips_gimplify_va_arg_expr): Likewise.
14484 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
14485 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
14486 add_compiler_branch_island): Likewise.
14487 * config/s390/s390.c (s390_va_start): Likewise.
14488 * config/sh/sh.c (sh_va_start): Likewise.
14489 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
14490 Likewise.
14491 * config/xtensa/xtensa.c (xtensa_va_start,
14492 xtensa_gimplify_va_arg_expr): Likewise.
14493
14494 * objc/objc-act.c (build_objc_string_object,
14495 build_objc_symtab_template, init_def_list, init_objc_symtab,
14496 init_module_descriptor, generate_static_references,
14497 build_selector_translation_table, get_proto_encoding,
14498 build_typed_selector_reference, build_selector_reference,
14499 build_next_objc_exception_stuff,
14500 build_method_prototype_list_template, generate_descriptor_table,
14501 generate_protocols, build_protocol_initializer,
14502 build_ivar_list_template, build_method_list_template,
14503 build_ivar_list_initializer, generate_ivars_list,
14504 generate_dispatch_table, generate_protocol_list,
14505 build_category_initializer, build_shared_structure_initializer,
14506 generate_shared_structures, handle_impent,
14507 generate_objc_image_info): Likewise.
14508
14509 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
14510
14511 * cfglayout.c (duplicate_insn_chain): Remove references to
14512 NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
14513 * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
14514 * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
14515 * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
14516 and NOTE_INSN_LOOP_CONT.
14517 * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
14518 * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
14519 and NOTE_INSN_LOOP_CONT.
14520 * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
14521 check_dbra_loop, loop_dump_aux): Remove references to removed notes
14522 and fields.
14523 * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
14524 * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
14525 references to removed notes and fields.
14526 (subtract_reg_term, ujump_to_loop_cont): Remove.
14527
14528 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
14529
14530 * doc/install.texi: Document that libcpp does not require
14531 Automake any longer. Document that Automake 1.9.1 should
14532 work everywhere.
14533
14534 2004-08-25 Zack Weinberg <zack@codesourcery.com>
14535
14536 * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
14537 * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
14538 DWARF_DEBUGGING_INFO from choice-of-definition chain;
14539 restructure using C89 features (#elif, #error).
14540 * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
14541 * config/sh/sh.h: Remove references to DWARF_DEBUG.
14542 * doc/invoke.texi: Remove references to DWARF version 1;
14543 clarify why -gdwarf-2<n> doesn't work.
14544
14545 2004-08-25 Zack Weinberg <zack@codesourcery.com>
14546
14547 * basic-block.h (BB_SET_PARTITION): Clear old value first.
14548 * cfg.c (clear_bb_flags): Don't clear partition setting.
14549 * ifcvt.c (find_if_case_1): Remove ??? comment.
14550
14551 2004-08-25 Alan Modra <amodra@bigpond.net.au>
14552
14553 PR target/17052
14554 * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
14555 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
14556 current_function_stdarg in place of sysv_varargs_p.
14557 * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
14558 sysv_varargs_p.
14559
14560 2004-08-24 Richard Henderson <rth@redhat.com>
14561
14562 PR target/16298
14563 * config/i386/i386.c (legitimate_constant_p): Rework to not accept
14564 random codes within CONST.
14565
14566 2004-08-24 James E Wilson <wilson@specifixinc.com>
14567
14568 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
14569 -freorder-blocks-and-partition.
14570
14571 2004-08-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14572
14573 PR middle-end/17044
14574 * tree-ssa-threadupdate.c (redirection_data): Make static.
14575 (thread_block): Use ggc_alloc_cleared to allocate struct
14576 redirection_data. Don't free elements in redirection_data.
14577
14578 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
14579
14580 * config/mips/predicates.md (small_data_pattern): Match prefetches.
14581
14582 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14583
14584 PR tree-optimization/17016
14585 * tree-ssa-loop-niter.c (number_of_iterations_cond,
14586 number_of_iterations_exit): Use POINTER_TYPE_P instead
14587 of testing for POINTER_TYPE.
14588
14589 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14590
14591 * tree-ssa-loop-ivcanon.c: New file.
14592 * tree-ssa-loop-manip.c (create_iv): New function.
14593 * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
14594 (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
14595 * cfgloop.c (mark_single_exit_loops): New function.
14596 (verify_loop_structure): Verify single-exit loops.
14597 * cfgloop.h (struct loop): Add single_exit field.
14598 (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
14599 (mark_single_exit_loops): Declare.
14600 (tree_num_loop_insns): Declare.
14601 * cfgloopmanip.c (update_single_exits_after_duplication): New function.
14602 (duplicate_loop_to_header_edge): Use it.
14603 * common.opt (fivcanon): New flag.
14604 * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
14605 * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
14606 (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
14607 (bsi_insert_on_edge_immediate): New function.
14608 * tree-flow.h (bsi_insert_on_edge_immediate,
14609 canonicalize_induction_variables, tree_unroll_loops_completely,
14610 create_iv): Declare.
14611 * tree-optimize.c (init_tree_optimization_passes): Add
14612 pass_iv_canon and pass_complete_unroll.
14613 * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
14614 * tree-scalar-evolution.c (get_loop_exit_condition,
14615 get_exit_conditions_rec, number_of_iterations_in_loop,
14616 scev_initialize): Use single_exit information.
14617 * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
14618 missing assumptions.
14619 (loop_niter_by_eval): Return number of iterations as unsigned
14620 int.
14621 * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
14622 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
14623 tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
14624 New passes.
14625 (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
14626 * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
14627 the defining statement is ready.
14628 * tree-vectorizer.c (vect_create_iv_simple): Removed.
14629 (vect_create_index_for_array_ref, vect_transform_loop_bound):
14630 Use create_iv.
14631 (vect_transform_loop_bound): Use single_exit information.
14632 (vect_analyze_loop_form): Cleanup bogus tests.
14633 (vectorize_loops): Do not call flow_loop_scan.
14634 * tree.h (may_negate_without_overflow_p): Declare.
14635 * fold-const.c (may_negate_without_overflow_p): Split out from ...
14636 (negate_expr_p): ... this function.
14637 (tree_expr_nonzero_p): Handle overflowed constants correctly.
14638 * doc/invoke.texi (-fivcanon): Document.
14639 * doc/passes.texi: Document canonical induction variable creation.
14640
14641 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
14642
14643 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
14644 * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
14645 using the mode of the operand to decide between them.
14646 * config/mips/mips.md (MOVECC): New mode macro.
14647 (ccreg): New mode attribute.
14648 (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
14649 Redefine using :GPR and :MOVECC. Use %T and %t for the condition.
14650 (mov[sd]icc): Redefine using :GPR.
14651
14652 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
14653
14654 * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
14655 (mips_prefetch_cookie): New function.
14656 * config/mips/mips.c (print_operand_address): Fix handling of
14657 ADDRESS_CONST_INT.
14658 (mips_emit_prefetch): Delete.
14659 (mips_prefetch_cookie): New function.
14660 * config/mips/mips.md (prefetch): Turn into a define_insn. Use a
14661 mode of QImode for the address_operand. Use mips_prefetch_cookie
14662 to calculate the first "pref" operand.
14663 (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
14664 (prefetch_indexed_[sd]i): Redefine using :P. Use mips_prefetch_cookie.
14665
14666 2004-08-24 Richard Earnshaw <rearnsha@arm.com>
14667
14668 * arm.md: Include predicates.md.
14669 * predicates.md: New file.
14670 * arm.c (s_register_operand, arm_hard_register_operand)
14671 (arm_general_register_operand, f_register_operand, reg_or_int_operand)
14672 (arm_immediate_operand, arm_neg_immediate_operand)
14673 (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
14674 (arm_add_operand, arm_addimm_operand, arm_not_operand)
14675 (offsettable_memory_operand, alignable_memory_operand)
14676 (arm_reload_memory_operand, arm_float_rhs_operand)
14677 (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
14678 (index_operand, shiftable_operator, logical_binary_operator)
14679 (shift_operator, equality_operator, arm_comparison_operator)
14680 (minmax_operator, cc_register, dominant_cc_register)
14681 (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
14682 (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
14683 (const_shift_operand, load_multiple_operation)
14684 (store_multiple_operation, multi_register_push, thumb_cmp_operand)
14685 (thumb_cmpneg_operand, thumb_cbrch_target_operand)
14686 (cirrus_register_operand, cirrus_fp_register)
14687 (cirrus_shift_const): Delete, replaced with equivalents in
14688 predicates.md.
14689 (shift_op): Handle ROTATE.
14690 * arm-protos.h: Delete declarations for above.
14691 * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
14692 * t-arm (MD_INCLUDES): Add predicates.md.
14693 (s-preds): Depends on MD_INCLUDES.
14694
14695 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
14696
14697 * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
14698 * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
14699 patterns. Redefine using :GPR. Give the match_operator a mode.
14700 Use '%2' rather than '%z2' for operand 2.
14701
14702 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
14703
14704 * config/mips/mips.md (load_call[sd]i): Redefine using :P. Add mode
14705 attribute.
14706
14707 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
14708
14709 * config/mips/mips.md (indirect_jump): Use force_reg. Adjust names
14710 of internal patterns.
14711 (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
14712 Redefine using :P.
14713 (tablejump): Use expand_binop to calculate address. Adjust names
14714 of internal patterns.
14715 (tablejump[sd]i): Renamed from tablejump_internal[12].
14716 Redefine using :P.
14717 (tablejump_mips16[12]): Delete.
14718
14719 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
14720
14721 * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
14722 (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
14723 (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
14724 (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
14725 (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
14726
14727 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
14728
14729 * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
14730 (*branch_zero[sd]i): Renamed from branch_zero{,_di}. Redefine
14731 using :GPR.
14732 (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
14733 (*branch_equality[sd]i): Likewise branch_equality{,_di}.
14734 (*branch_equality[sd]i_inverted): Likewise
14735 branch_equality{,_di}_inverted.
14736 (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
14737 Redefine using :GPR.
14738
14739 2004-08-24 Zack Weinberg <zack@codesourcery.com>
14740
14741 * rtl.def: Reorganize, placing all codes used only in machine
14742 descriptions at the end.
14743
14744 * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
14745 * gengtype.c: Don't include rtl.h. Define enum rtx_code and
14746 rtx_name, rtx_format arrays by direct reference to rtl.def,
14747 first undefining GENERATOR_FILE. Define enum insn_note and
14748 note_insn_name array by direct reference to insn-notes.def.
14749 (adjust_field_rtx_def): Remove local definition of rtx_name.
14750 Use symbolic names for insn notes.
14751 * Makefile.in (gengtype.o): Update dependencies.
14752
14753 2004-08-24 Zack Weinberg <zack@codesourcery.com>
14754
14755 * basic-block.h (struct basic_block_def): Reorder fields to
14756 eliminate interior padding. Remove 'partition' field.
14757 (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
14758 (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
14759 (BB_COPY_PARTITION): New macros.
14760 * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
14761 Replace all references to the 'partition' field of a basic
14762 block with new macros.
14763
14764 * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
14765 * final.c (final_scan_insn): Don't handle it.
14766 * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
14767 instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
14768 * sched-rgn.c (sched_is_disabled_for_current_region_p):
14769 Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
14770
14771 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
14772
14773 * c-decl.c (c_init_decl_processing): Adjust
14774 build_common_tree_nodes call.
14775 * expmed.c (const_mult_add_overflow_p): Use
14776 build_distinct_type_copy.
14777 * stor-layout.c (early_type_list): Remove.
14778 (layout_type): Don't append to early_type_list.
14779 (initialize_sizetypes): Add signed_p argument.
14780 (set_sizetype): Overwrite the stub type nodes directly.
14781 * tree.c (copy_node_stat): Clear a type's value cache here ...
14782 (build_distinct_type): ... not here.
14783 (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
14784 * tree.h (initialize_sizetypes): Add signed_p argument.
14785 (build_common_tree_nodes): Likewise.
14786
14787 * objc/objc-act.c (get_static_reference): Use
14788 build_variant_type_copy.
14789 (get_protocol_reference): Likewise.
14790 * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
14791
14792 2004-08-24 Richard Henderson <rth@redhat.com>
14793 Andrew Pinski <apinski@apple.com>
14794
14795 * gimplify.c (gimplify_array_ref_to_plus): Delete.
14796 (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
14797 for ARRAY_REF.
14798
14799 * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
14800 ARRAY_REF also to get to the STRING_CST.
14801
14802 2004-08-24 Paul Brook <paul@codesourcery.com>
14803
14804 * config/arm/arm.c (arm_override_options): Update error message.
14805 * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
14806 TARGET_HARD_FLOAT_ABI.
14807 (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
14808 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
14809
14810 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
14811
14812 PR target/17093
14813 * config/m32r.md (movsi_sda): Add SI mode specification to
14814 UNSPEC.
14815
14816 2004-08-24 Nick Clifton <nickc@redhat.com>
14817
14818 * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
14819 of seth_add3_operand.
14820
14821 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
14822
14823 * Makefile.in (PROTO_OBJS): Add errors.o.
14824 * protoize.c (fancy_abort): Remove.
14825 * mips-tfile.c (fancy_abort): Add parameters.
14826
14827 2004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
14828
14829 * doc/trouble.texi (C++ misunderstandings): Fix example code.
14830
14831 2004-08-24 Andreas Tobler <a.tobler@schweiz.ch>
14832
14833 * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
14834 (host-default.o): Add dependency on HOOKS_H.
14835 * config/x-linux: Likewise.
14836 * config/x-solaris: Likewise.
14837 * config/i386/x-mingw32: Likewise.
14838 * config/rs6000/x-darwin: Likewise.
14839
14840 2004-08-23 James E Wilson <wilson@specifixinc.com>
14841
14842 * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
14843 DEF_REG_NOTE.
14844
14845 2004-08-23 Mark Mitchell <mark@codesourcery.com>
14846
14847 PR c/14492
14848 * dwarf2out.c (loc_descriptor_from_tree): Robustify.
14849
14850 2004-08-23 Diego Novillo <dnovillo@redhat.com>
14851
14852 * cfg.c (check_bb_profile): Fix typos.
14853 * function.c (assign_parm_is_stack_parm): Likewise.
14854 * tree-nested.c: Likewise.
14855
14856 2004-08-23 Daniel Jacobowitz <dan@debian.org>
14857
14858 * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
14859 Remove TYPECODE.
14860 (ggc_alloc_zone_1): Mark TYPE as unused. Don't save it in the chunk.
14861
14862 2004-08-23 Eric Christopher <echristo@redhat.com>
14863
14864 * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
14865 * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
14866 * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
14867 * target.h: Ditto.
14868 * hooks.h: Include machmode.h.
14869 (hook_bool_mode_false): Declare.
14870 * hooks.c (hook_bool_mode_false): Define.
14871 * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
14872 * stor-layout.c (layout_type): Ditto.
14873 * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
14874 Define to target macro.
14875 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
14876 * config/arm/arm.c: Ditto. Use.
14877 * config/arm/arm.h: Ditto.
14878 * config/arm/arm-protos.h: Ditto.
14879 * config/i386/i386.c: Ditto.
14880 * config/i386/i386.h: Ditto.
14881 * config/rs6000/rs6000.c: Ditto.
14882 * config/rs6000/rs6000.h: Ditto.
14883 * config/sh/sh.c: Ditto.
14884 * config/sh/sh.h: Ditto.
14885 * config/sh/sh-protos.h: Ditto.
14886 * config/sh/sh.md: Use.
14887 * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
14888 to TARGET_VECTOR_MODE_SUPPORTED_P.
14889
14890 2004-08-23 Nathan Sidwell <nathan@codesourcery.com>
14891
14892 * Makefile.in (BUILD_ERRORS): Set to build-errors.
14893 (errors.o): New target for host.
14894 (build-errors.o): New target for build.
14895 (genobjs): Replace errors.o with build-errors.
14896 (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
14897 (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
14898 (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
14899 (fix-header.o): Add errors.h
14900 * collect2.c (fancy_abort): Add parameters.
14901 * collect2.h (fancy_abort): Don't declare.
14902 * errors.h (fancy_abort): Don't declare.
14903 * errors.c: Include either bconfig.h or config.h.
14904 (fancy_abort): Trim filename.
14905 * fix-header.c (v_fatal, fatal): Remove.
14906 (progname): Remove definition.
14907 (main): Set progname here.
14908 * gcc.c (fancy_abort): Add parameters.
14909 * gcc.h (fancy_abort): Remove declaration.
14910 * gcov.c (fancy_abort): Remove.
14911 * rtl.h (fancy_abort): Don't declare.
14912 (abort): Don't define.
14913 * tree.h (fancy_abort): Don't declare.
14914 (abort): Don't define.
14915 * system.h (fancy_abort): Declare.
14916 (abort): Define to fancy_abort.
14917 * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
14918
14919 * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
14920 (usize_type, ubitsizetype): Remove.
14921 * stor-layout.c (set_sizetype): Don't initialize usizetype,
14922 ubitsizetype.
14923 * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
14924
14925 * tree.h (build_distinct_type_copy): New.
14926 (build_type_copy): ... here. Rename to ...
14927 (build_variant_type_copy): ... here.
14928 * tree.c (build_qualified_type): Rename build_type_copy call.
14929 (build_distinct_type_copy): New, broken out of ...
14930 (build_type_copy): ... here. Rename to ...
14931 (build_variant_type_copy): ... here. Use
14932 build_distinct_type_copy.
14933 (build_common_tree_nodes_2): Rename build_type_copy call.
14934 * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
14935 call.
14936 (handle_packed_attribute, handle_unused_attribute,
14937 handle_transparanet_union_attribute, handle_aligned_attribute,
14938 handle_deprecated_attribute): Likewise.
14939 * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
14940 Likewise.
14941 * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
14942 * config/rs6000/rs6000.c (rs6000_init_builtins): Use
14943 build_distinct_type_copy.
14944
14945 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14946
14947 * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode
14948 attribute.
14949
14950 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14951
14952 * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
14953 loads and stores.
14954 (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
14955 formerly unnamed patterns. Redefine using :P for the address. Remove
14956 explicit length attributes.
14957
14958 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14959
14960 * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
14961 New functions.
14962 (single_reachable_address): Use them.
14963 (schedule_sm): Add dump.
14964 (is_call_clobbered_ref): New function.
14965 (determine_lsm_reg): Check whether the reference is call clobbered.
14966 Only work for gimple_reg_type values.
14967
14968 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14969
14970 * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
14971 $31 store insns. Redefine using :GPR.
14972
14973 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14974
14975 * config/mips/mips.md (P): New mode macro.
14976 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
14977 (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
14978 Add mode attributes.
14979
14980 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14981
14982 * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
14983 (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle
14984 later constants to cover the gap.
14985 (load, store): New mode attributes.
14986 (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
14987 Use new unspec constants.
14988
14989 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
14990
14991 * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
14992 (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns
14993 to use register_operand rather than uns_arith_operand as the predicate
14994 for operand 1. Remove redundant MIPS16 force_reg() for operand 1.
14995 (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
14996 Redefine using :GPR. Make same predicate change here. Extend the
14997 commutativity of operands 1 and 2 from the SImode version to the
14998 DImode one.
14999 (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
15000 but with no predicate changes.
15001 (*nor[sd]i3): Redefine using :GPR.
15002
15003 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15004
15005 * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
15006 noreturn functions.
15007
15008 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
15009
15010 * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
15011 * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use
15012 branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%."
15013 rather than "%z2" (with a fake const0_rtx for operand 2).
15014 (ffs[sd]i2): Redefine using :GPR.
15015 (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case.
15016
15017 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
15018
15019 * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
15020
15021 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
15022
15023 * config/mips/mips.md (any_extend): New code macro.
15024 (u, su): New code attributes.
15025 ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
15026 ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
15027 ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
15028 (*{s,u}mul_acc_di): Redefine using any_extend.
15029 (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns
15030 to reflect real insn names.
15031 (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
15032 with an any_extend template.
15033 ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
15034 Add '*' to name.
15035
15036 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
15037
15038 * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
15039 * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
15040 (mul[sd]i3_r4000): Redefine using :GPR.
15041 (mulsi3_mult3): Don't check TARGET_MAD separately.
15042 (muldi3_mult3): Moved after mulsi_mult3.
15043
15044 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
15045
15046 * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
15047 OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld.
15048 * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down.
15049 (TARGET_GAS, TARGET_MIPS_AS): Delete.
15050 (TARGET_GPWORD): Define to true for n32 on IRIX.
15051 (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op.
15052 (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
15053 (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
15054 (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
15055 (MDEBUG_ASM_SPEC): Delete, folding into...
15056 (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
15057 (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches.
15058 (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
15059 subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT
15060 to define asm_abi_default_spec.
15061 (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
15062 (TARGET_ASM_SELECT_SECTION): Delete.
15063 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
15064 for non-mips16 code, removing previous workaround for SGI assemblers.
15065 (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
15066 (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
15067 (override_options): Remove !TARGET_GAS and !have_named_sections code.
15068 (print_operand): Fold TARGET_GAS conditionals into asm strings.
15069 (mips_output_filename): Remove !TARGET_GAS code. Replace use of
15070 ASM_STABS_OP and ASM_STABN_OP.
15071 (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
15072 (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
15073 (mips_output_function_prologue): Remove !TARGET_GAS code.
15074 (mips_select_rtx_section): Remove !have_named_sections code.
15075 (mips_select_section): Delete.
15076 * config/mips/mips.md (trap): Remove !TARGET_GAS check.
15077 * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
15078 * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
15079 (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
15080 * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
15081 * config/mips/windiss.h (ASM_SPEC): Likewise.
15082
15083 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
15084
15085 * read-rtl.c (map_value, mapping, macro_group): New structures.
15086 (BELLWETHER_CODE): New macro.
15087 (modes, codes, bellwether_codes): New variables.
15088 (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
15089 (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
15090 (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
15091 (add_condition_to_rtx, apply_macro_traverse, add_mapping)
15092 (add_map_value, initialize_macros): New functions.
15093 (def_hash, def_hash_eq_p): Generalize to anything that points to,
15094 or starts with, a char * field.
15095 (find_macro, read_mapping, check_code_macro): New functions.
15096 (read_rtx_1): New, split out from read_rtx. Handle the new
15097 define_{mode,code}_{macro,attr} constructs. Use find_macro
15098 to parse the name of a code or mode. Use BELLWETHER_CODE to
15099 extract the format and to choose a suitable code for rtx_alloc.
15100 Modify recursive invocations to use read_rtx_1.
15101 (read_rtx): Call initialize_macros. Apply code and mode macros
15102 to the rtx returned by read_rtx_1. Cache everything after the
15103 first macro expansion for subsequent read_rtx calls.
15104 * doc/md.texi: Document new .md constructs.
15105 * config/mips/mips.md (GPR): New mode macro.
15106 (d, si8_di5): New mode attributes.
15107 (any_cond): New code macro.
15108 (add[sd]i3): Redefine using :GPR.
15109 (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
15110 (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
15111 previously unnamed MIPS16 patterns.
15112 (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long
15113 lines. Don't match (plus (const_int 0) ...).
15114 (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
15115 Use a define_split to generate the addition.
15116 (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn.
15117 (subsi3_internal): Delete.
15118 (*subsi3_extended): Renamed from subsi3_internal_2.
15119 (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
15120 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
15121 using an any_cond template.
15122
15123 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
15124
15125 * read-rtl.c (read_rtx): Tidy use of format_ptr.
15126
15127 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
15128
15129 * read-rtl.c (string_obstack): New file-scope variable.
15130 (read_string, read_quoted_string, read_braced_string)
15131 (read_escape): Remove obstack parameter and use string_obstack instead.
15132 (read_rtx): Remove function-local rtl_obstack and initialize
15133 string_obstack instead. Update call to read_string.
15134
15135 2004-08-22 Andrew Pinski <apinski@apple.com>
15136
15137 PR c/15262
15138 * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
15139 expression is not constant.
15140 (c_finish_return): Do not go through INDIRECT_REF when looking
15141 for the inner expression of an ADDR_EXPR for warning about.
15142
15143 2004-08-22 Richard Henderson <rth@redhat.com>
15144
15145 PR 17075
15146 * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
15147 create new blocks and fall through.
15148 (expand_gimple_basic_block): Update to match.
15149
15150 2004-08-22 Ulrich Weigand <uweigand@de.ibm.com>
15151
15152 * reload.c (find_reloads_address): Make return value tri-state.
15153 Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
15154 (find_reloads): Assume that reloaded addresses match 'o' or
15155 EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
15156 returned 1 (not -1). Omit optional reloads for address operands
15157 only if find_reloads_address returned 1 (not -1).
15158
15159 * config/s390/s390.c (legitimize_reload_address): New function.
15160 * config/s390/s390-protos.h (legitimize_reload_address): Declare.
15161 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call
15162 legitimize_reload_address.
15163
15164 2004-08-22 Richard Hendersion <rth@redhat.com>
15165
15166 * tree.h (SAVE_EXPR_RESOLVED_P): New.
15167 * gimplify.c (gimplify_save_expr): Use it.
15168 * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
15169 on the temporary variable.
15170
15171 2004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
15172
15173 * fold-const.c (rtl_expr_nonnegative_p): Delete.
15174 * tree.h (rtl_expr_nonnegative_p): Remove.
15175
15176 2004-08-22 Steven Bosscher <stevenb@suse.de>
15177
15178 * config/i386/ppro.md (ppro_complex_insn): Add missing check
15179 for cpu==pentiumpro.
15180
15181 * combine.c (struct reg_stat): Fix comment typo.
15182
15183 2004-08-22 Joseph S. Myers <jsm@polyomino.org.uk>
15184
15185 * c-tree.h (c_sizeof_nowarn): Remove.
15186
15187 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
15188
15189 * c-decl.c (set_array_declarator_type): Rename to
15190 set_array_declarator_inner.
15191 (build_c_parm, build_attrs_declarator, build_function_declarator):
15192 New functions.
15193 (make_pointer_declarator): Call build_attrs_declarator.
15194 * c-tree.h (set_array_declarator_type): Rename to
15195 set_array_declarator_inner.
15196 (build_c_parm, build_attrs_declarator, build_function_declarator):
15197 New prototypes.
15198 * c-parse.in (after_type_declarator,
15199 parm_declarator_starttypename, parm_declarator_nostarttypename,
15200 notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
15201 firstparm): Use these functions
15202
15203 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
15204
15205 * c-decl.c (build_array_declarator, set_array_declarator_type,
15206 start_decl, grokdeclarator, grokparms): Change boolean parameters
15207 to type bool.
15208 * c-tree.h (build_array_declarator, set_array_declarator_type,
15209 start_decl): Update prototypes.
15210 * c-decl.c, c-parse.in: All callers changed.
15211
15212 2004-08-21 Mike Stump <mrs@apple.com>
15213
15214 * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
15215 (darwin_fix_and_continue): Likewise.
15216 (darwin_fix_and_continue_switch): Likewise.
15217 * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
15218 (darwin_fix_and_continue): Likewise.
15219 (darwin_fix_and_continue_switch): Likewise.
15220
15221 2004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
15222
15223 PR c++/16030
15224 * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
15225 Remove, merging into ...
15226 (gen_stdcall_or_fastcall_suffix): New function, returning tree
15227 rather than const char*, and accepting additional parameter.
15228 Don't add suffix to '*'-prefixed symbols or variadic functions.
15229 (i386_pe_encode_section_info): Adjust for call to new function.
15230 Call change_decl_assembler_name.
15231
15232 2004-08-20 Mike Stump <mrs@apple.com>
15233
15234 * config/darwin.c (machopic_indirect_data_reference): Mark
15235 stubs as defined.
15236 * config/386/386.c (darwin_local_data_pic): Add.
15237 (legitimate_constant_p): Reorder so that PLUS handling runs
15238 before darwin_local_data_pic to match the ordering in
15239 legitimate_pic_address_disp_p and so that MINUS runs after
15240 darwin_local_data_pic as otherwise the darwin_local_data_pic
15241 logic can be skipped, which would be very bad.
15242 (legitimate_pic_address_disp_p): Move from from here to
15243 darwin_local_data_pic so it can be reused.
15244
15245 2004-08-21 Alan Modra <amodra@bigpond.net.au>
15246
15247 * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
15248 (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
15249 (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
15250 (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
15251 (RS6000_ABI_NAME): Define as "linux".
15252 (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
15253 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
15254 ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
15255 * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
15256 * config/rs6000/rs6000.c (dot_symbols): New global var.
15257 (rs6000_output_function_entry): New function, modified for
15258 !DOT_SYMBOLS..
15259 (print_operand <case 'z'>): ..extracted from here.
15260 (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
15261 (rs6000_output_function_epilogue): Likewise.
15262 (rs6000_elf_declare_function_name): Likewise.
15263 * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
15264 (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
15265 * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
15266 * configure: Regenerate.
15267 * config.in: Regenerate.
15268
15269 2004-08-20 Mark Mitchell <mark@codesourcery.com>
15270
15271 * reload.c (find_reloads_address): Fix thinko in previous change.
15272
15273 * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
15274 a CONST_INT.
15275
15276 2004-08-20 Jakub Jelinek <jakub@redhat.com>
15277
15278 PR rtl-optimization/17099
15279 * combine.c (force_to_mode): Check if inner_mask has any bits set
15280 outside of GET_MODE (x) instead of op_mode.
15281
15282 2004-08-20 Mark Mitchell <mark@codesourcery.com>
15283
15284 * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
15285 fragment.
15286 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
15287 (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
15288 * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
15289 architecture.
15290 (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
15291 configurations.
15292 * config/arm/t-symbian: New file.
15293
15294 2004-08-20 Andrew Pinski <apinski@apple.com>
15295
15296 * regrename.c (kill_value_regno): ANSIfy.
15297
15298 2004-08-20 Dale Johannesen <dalej@apple.com>
15299
15300 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
15301
15302 2004-08-20 Daniel Jacobowitz <dan@debian.org>
15303
15304 * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
15305 (kill_value_regno): New function, derived from kill_value.
15306 (kill_value): Update.
15307 (copyprop_hardreg_forward_1): Update call to kill_value_regno.
15308
15309 2004-08-20 Daniel Berlin <dberlin@dberlin.org>
15310
15311 Fix PR tree-optimization/17111
15312 * tree-ssa-pre.c (create_value_expr_from): Don't change the types
15313 of non-value_handles.
15314 (bitmap_set_contains): All constants are in every set.
15315
15316 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
15317
15318 * fold-const.c (round_up, round_down): Use build_int_cst.
15319 Optimize common case.
15320
15321 2004-08-20 Zack Weinberg <zack@codesourcery.com>
15322 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15323
15324 * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
15325 one_only_data_section): Rename to som_readonly_data_section,
15326 som_one_only_readonly_data_section and som_one_only_data_section.
15327 * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
15328 NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
15329 conditional defines.
15330 (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
15331 NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
15332 string values.
15333 (pa_select_section): Use renamed section functions.
15334 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
15335 SOM_READONLY_DATA_SECTION_FUNCTION,
15336 SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
15337 SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
15338 Define here ...
15339 * config/pa/som.h: ... not here.
15340 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
15341 ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
15342 ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
15343 ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
15344 (READONLY_DATA_SECTION): Use som_readonly_data_section.
15345
15346 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
15347
15348 * fold-const.c (int_const_binop): Don't generate non-overflowing
15349 size-types specially.
15350 (fold_convert_const): Likewise.
15351
15352 * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
15353 clear cache on copied sizetype.
15354
15355 2004-08-20 Ben Elliston <bje@au.ibm.com>
15356
15357 * configure.ac: Don't escape apostrophe in --enable-coverage help.
15358 * configure: Regenerate.
15359
15360 2004-08-20 Danny Smith <dannysmith@users.sourceforge.net>
15361
15362 PR 5620
15363 * gcc.c (struct stat input_stat): Don't define if
15364 HOST_LACKS_INODE_NUMBERS
15365 (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
15366 than stat to determine if temp file is same as input file.
15367 * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
15368 * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
15369
15370 2004-08-20 Richard Sandiford <rsandifo@redhat.com>
15371
15372 * configure.ac (mips*-*-*): Print an error if not using GAS.
15373 * configure: Regenerated.
15374 * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove
15375 comments about buggy MIPSpro assemblers.
15376 * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h
15377 before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix.
15378 Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for
15379 IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld.
15380 * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
15381 (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
15382 (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
15383 (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
15384 (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
15385 of more general IRIX 6 definitions.
15386 (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
15387 (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
15388 (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
15389 (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
15390 (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
15391 (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
15392 (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
15393 (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
15394 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
15395 (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
15396 (LINK_SPEC): Move most of definition to iris.h.
15397 (SUBTARGET_LINK_SPEC): New macro.
15398 (IRIX_STARTFILE_SPEC): Fold into...
15399 (STARTFILE_SPEC): ...here.
15400 (IRIX_ENDFILE_SPEC): Fold into...
15401 (ENDFILE_SPEC): ...here.
15402 * config/mips/iris6.h (TARGET_IRIX5): Remove override.
15403 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
15404 (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
15405 (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
15406 (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
15407 (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits.
15408 (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
15409 (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
15410 (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
15411 (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
15412 (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
15413 (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
15414 (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
15415 (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
15416 (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
15417 (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
15418 (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
15419 (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
15420 (TARGET_IRIX6): Define to 1.
15421 (DRIVER_SELF_SPECS): Define.
15422 (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
15423 (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
15424 (SUBTARGET_LINK_SPEC): New macro.
15425 (IRIX_STARTFILE_SPEC): Fold into...
15426 (STARTFILE_SPEC): ...here. Remove !mabi=* case.
15427 (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
15428 (LIB_SPEC, LIBGCC_SPEC): Use them.
15429 (LIB_SPEC): Remove !mabi=* case.
15430 (IRIX_ENDFILE_SPEC): Fold into...
15431 (ENDFILE_SPEC): ...here. Remove !mabi=* case.
15432 * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
15433 * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
15434 (TARGET_IRIX6): New macro.
15435 (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
15436 (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
15437 (LABEL_AFTER_LOC): Delete.
15438 * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
15439 (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
15440 (mips_build_builtin_va_list): Check TARGET_IRIX6.
15441 (override_options): Remove TARGET_SGI_O32_AS-related code.
15442 (irix_output_external_libcall): Make static.
15443 (mips_output_filename): Avoid use of SET_FILE_NUMBER and
15444 LABEL_AFTER_LOC.
15445 (mips_file_start): Tidy guard for ABI sections. Remove use of
15446 ABICALLS_ASM_OP; use .abicalls instead.
15447 (mips_output_aligned_decl_common, mips_declare_object_name)
15448 (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
15449 (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
15450 .globl foo .text directives.
15451 (irix_asm_named_section_1, irix_asm_named_section)
15452 (irix_section_align_entry, irix_section_align_htab)
15453 (irix_orig_asm_out_file, irix_section_align_entry_eq)
15454 (irix_section_align_entry_hash, irix_asm_output_align)
15455 (irix_file_start, irix_section_align_1, copy_file_data)
15456 (irix_file_end, irix_section_type_flags): Delete.
15457 * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
15458 Use standard section syntax. Remove protective "jr $31".
15459 (__gcc_fini): Likewise .gcc_fini.
15460 * config/mips/irix-crtn.asm: Adjust sections accordingly.
15461 * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
15462 iris5gas.h.
15463 * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
15464 from t-irix-gld.
15465 (EXTRA_MULTILIB_PARTS): Define.
15466 * config/mips/t-iris6: Remove bogus comment.
15467 (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
15468 * config/mips/iris5gas.h, config/mips/iris5gld.h,
15469 config/mips/iris6gas.h, config/mips/iris6gld.h,
15470 config/mips/t-iris5-as, config/mips/t-iris5-gas
15471 config/mips/t-irix-gld: Delete.
15472 * config/mips/iris.h: New file.
15473 * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
15474
15475 2004-08-20 Richard Earnshaw <rearnsha@arm.com>
15476
15477 * postreload.c (reload_cse_move2add): Allow any condjump, but check
15478 that the implicit set isn't clobbered in the jump insn.
15479
15480 2004-08-19 Mark Mitchell <mark@codesourcery.com>
15481
15482 * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
15483 * optabs.c (init_optabs): Don't check it.
15484 * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
15485 * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
15486
15487 2004-08-18 Andreas Krebbel <krebbel1@de.ibm.com>
15488
15489 * config/s390/s390.md (s390_warn_framesize_string)
15490 (s390_warn_dynamic_string, s390_stack_size_string)
15491 (s390_stack_guard_string): New global string variables.
15492 (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
15493 (s390_stack_guard): New global variables.
15494 (override_options): Added checks for the new options.
15495 (s390_emit_prologue): Emit stack check and trap code and perform
15496 compile time stack size checking.
15497
15498 * config/s390/s390.h (TARGET_OPTIONS): Added new options
15499 "warn-framesize", "warn-dynamicstack", "stack-size" and
15500 "stack-guard".
15501
15502 * doc/invoke.texi: Added documentation for the new options.
15503
15504 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
15505
15506 * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
15507 to eliminate warning.
15508 (linear_search_fdes): Declare p as unsigned.
15509 (binary_search_mixed_encoding_fdes): Likewise.
15510 * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
15511 to eliminate warning.
15512 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
15513 type cast.
15514
15515 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
15516
15517 * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
15518 * config/s390/s390.c (preferred_la_operand_p): Accept two operands
15519 instead of one. Check for strictly legitimate address.
15520 * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
15521 to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
15522
15523 2004-08-19 Eric Christopher <echristo@redhat.com>
15524
15525 * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
15526 * langhooks.h (unsave_expr_now): Ditto.
15527 * tree.h (unsave_expr_1): Remove prototype.
15528 (lhd_unsave_expr_now): Rename to unsave_expr_now.
15529 * tree-inline.c (unsave_expr_1): Move here
15530 from tree.c. Make static.
15531 (unsave_expr_now): Rename from lhd_unsave_expr_now.
15532 * tree-sra.c: Fix up for rename.
15533 * tree-ssa-copy.c: Ditto.
15534 * tree-eh.c: Ditto.
15535 * tree.c (unsave_expr_1): Move to tree-inline.c.
15536
15537 2004-08-19 Caroline Tice <ctice@apple.com>
15538
15539 * config/i386/cygming.h (switch_to_section): Fix typo (change
15540 in_unlikely_text_section to in_unlikely_executed_text).
15541
15542 2004-08-19 Daniel Berlin <dberlin@dberlin.org>
15543
15544 * vec.h (VEC_lower_bound): New macro.
15545
15546 2004-08-19 Richard Sandiford <rsandifo@redhat.com>
15547
15548 PR target/16446
15549 * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
15550 (mips_arg_info): Update accordingly. Remove common treatment of fpr_p;
15551 treat each ABI separately. Deal with n32/n64 complex float arguments.
15552 (function_arg): Add associated complex handling here.
15553
15554 2004-08-19 Richard Henderson <rth@redhat.com>
15555
15556 * config/arm/arm.c (arm_gen_load_multiple): Use
15557 adjust_automodify_address. Take base memory and offset instead
15558 of unchanging/struct/scalar bits.
15559 (arm_gen_store_multiple): Likewise.
15560 (arm_gen_movmemqi): Use adjust_automodify_address.
15561 * config/arm/arm-protos.h: Update decls.
15562 * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
15563 (store_multiple): Similarly.
15564
15565 2004-08-19 J"orn Rennecke <joern.rennecke@superh.com>
15566
15567 * regclass.c (globalize_reg): Update call_really_used_regs.
15568
15569 2004-08-19 Nathan Sidwell <nathan@codesourcery.com>
15570
15571 * doc/invoke.texi (integer-share-limit): Document.
15572
15573 * tree.h (TYPE_CACHED_VALUES_P): New.
15574 (TYPE_CACHED_VALUES): New.
15575 (TYPE_ORIG_SIZE_TYPE): Adjust.
15576 * tree.def (INTEGER_CST): Update documentation.
15577 * tree.c: Inlcude params.h.
15578 (build_int_cst): Cache small values.
15579 (build_type_copy): Do not copy the value cache.
15580 * c-common.c (c_common_nodes_and_builtins): Add comment, remove
15581 unneeded zeroing.
15582 * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
15583 * expmed.c (const_mult_add_overflow_p): Clear type copy's value
15584 cache.
15585 * fold-const.c (force_fit_type): Copy value when setting
15586 overflows.
15587 (int_const_binop): Likewise.
15588 * stor-layout.c: Include params.h
15589 (set_sizetype): Create values cache.
15590 (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
15591 * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
15592 * params.h (INTEGER_SHARE_LIMIT): New.
15593 * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
15594
15595 2004-08-19 Paolo Bonzini <bonzini@gnu.org>
15596
15597 * gimplify.c (gimplify_minimax_expr): Remove.
15598 (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
15599
15600 2004-08-19 Dorit Naishlos <dorit@il.ibm.com>
15601
15602 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
15603 STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
15604
15605 2004-08-19 Mark Mitchell <mark@codesourcery.com>
15606
15607 * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
15608
15609 2004-08-18 Andrew Pinski <apinski@apple.com>
15610
15611 * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
15612
15613 2004-08-18 Mark Mitchell <mark@codesourcery.com>
15614
15615 * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
15616 (__aeabi_ul2f): Likewise.
15617
15618 2004-08-18 Richard Henderson <rth@redhat.com>
15619
15620 * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
15621 move to rtl completely.
15622 (struct meminsnbuf, xtensa_emit_block_move): Remove.
15623 (xtensa_find_mode_for_size): Remove.
15624 * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
15625 * config/xtensa/xtensa.md (movmemsi_internal): Remove.
15626
15627 2004-08-18 Richard Henderson <rth@redhat.com>
15628
15629 * config/mcore/mcore.c (mode_from_align): Remove DImode.
15630 (block_move_sequence): Rewrite to use adjust_address.
15631 (mcore_expand_block_move): Cleanup logic. Accept only operands.
15632 Return boolean indicating success/failure.
15633 * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
15634 * config/mcore/mcore.md (movmemsi): Update to match.
15635
15636 2004-08-18 Mike Stump <mrs@apple.com>
15637
15638 * doc/invoke.texi (-mfix-and-continue): Add support for
15639 fast turn around debugging.
15640 (-ffix-and-continue): Likewise.
15641 (-mindirect-data): Likewise.
15642 (-findirect-data): Likewise.
15643 * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
15644 (indirect_data): Likewise.
15645 (machopic_data_defined_p): Likewise.
15646 (machopic_output_indirection): Likewise.
15647 (darwin_encode_section_info): Likewise.
15648 (darwin_fix_and_continue): Likewise.
15649 (darwin_fix_and_continue_switch): Likewise.
15650 * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
15651 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
15652 (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
15653 (SUBTARGET_OPTIONS): Likewise.
15654 (darwin_fix_and_continue): Likewise.
15655 (darwin_fix_and_continue_switch): Likewise.
15656 (TARGET_FIX_AND_CONTINUE): Likewise.
15657 * config/rs6000.c (rs6000_emit_prologue): Likewise.
15658
15659 2004-08-19 Steven Bosscher <stevenb@suse.de>
15660
15661 * basic-block.h (struct edge_def): Remove crossing_edge.
15662 (EDGE_CROSSING): New define.
15663 (EDGE_ALL_FLAGS): Update.
15664 * bb-reorder.c (find_traces_1_round, better_edge_p,
15665 find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
15666 find_jump_block, fix_crossing_conditional_branches,
15667 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
15668 Replace all occurences of crossing_edge with an edge flag check
15669 or set/reset.
15670 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
15671 try_crossjump_bb): Likewise.
15672 * cfglayout.c (fixup_reorder_chain): Likewise.
15673 * cfgrtl.c (force_nonfallthru_and_redirect,
15674 commit_one_edge_insertion): Likewise.
15675
15676 * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
15677 * tree-flow.h (compute_dominance_frontiers): Move prototype...
15678 * basic-block.h: ...here.
15679 * tree-cfg.c (compute_dominance_frontiers_1,
15680 compute_dominance_frontiers): Move from here...
15681 * cfganal.c: ...to here. Include timevar.h.
15682
15683 2004-08-18 James E Wilson <wilson@specifixinc.com>
15684
15685 * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
15686 * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
15687
15688 * config/mips/mips.md (type): Add frdiv.
15689 (divsf3+1, divsf3+2): Change type to frdiv.
15690 * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
15691 ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
15692
15693 * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
15694 * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
15695 * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
15696 * config/mips/5000.md (r5k_fdiv_single): Likewise.
15697 * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
15698 * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
15699 * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
15700 * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
15701 * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
15702 * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
15703 Likewise.
15704 * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
15705
15706 2004-08-18 Robert Bowdidge <bowdidge@apple.com>
15707
15708 * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
15709 get regression tester working again.
15710
15711 2004-08-18 Zack Weinberg <zack@codesourcery.com>
15712
15713 * insn-notes.def, reg-notes.def: New files.
15714 * rtl.h: Use them to define enum insn_note and enum reg_note.
15715 * rtl.c: Use them to define note_insn_name and reg_note_name.
15716 * Makefile.in (RTL_BASE_H): Update.
15717
15718 * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
15719 renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
15720
15721 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
15722
15723 * arm.c (arm_size_rtx_costs): New function.
15724 (arm_override_options): Use it if optimizing for space.
15725
15726 2004-08-18 Richard Henderson <rth@redhat.com>
15727
15728 * emit-rtl.c (gen_const_mem): New.
15729 * rtl.h (gen_const_mem): Declare.
15730 * expr.c (do_tablejump): Use it.
15731 * varasm.c (force_const_mem): Likewise.
15732 * config/darwin.c (machopic_indirect_data_reference): Likewise.
15733 (machopic_legitimize_pic_address): Likewise.
15734 * config/arm/arm.c (legitimize_pic_address): Likewise.
15735 * config/i386/i386.c (legitimize_pic_address): Likewise.
15736 (legitimize_tls_address): Likewise.
15737 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
15738 * config/ia64/ia64.md (load_fptr): Likewise.
15739 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
15740 * config/pa/pa.c (legitimize_pic_address): Likewise.
15741 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
15742 (rs6000_emit_move): Likewise.
15743 * config/s390/s390.c (legitimize_pic_address): Likewise.
15744 (legitimize_tls_address): Likewise.
15745 * config/s390/s390.md (casesi): Likewise.
15746 * config/sh/sh.c (sh_reorg): Likewise.
15747 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
15748 * config/v850/v850.md (casesi): Likewise.
15749
15750 * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
15751 * config/sh/sh.c (prepare_move_operands): Remove incorrect
15752 use of MEM_READONLY_P.
15753
15754 2004-08-18 Steven Bosscher <stevenb@suse.de>
15755
15756 * Makefile.in (OBJS-common): Add postreload-gcse.c.
15757 Add new postreload-gcse.o.
15758 * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
15759 (lookup_as_function, insert, rehash_using_reg, use_related_value,
15760 equiv_constant): Use SAFE_HASH instead of safe_hash.
15761 (exp_equiv_p): Export. Add for_gcse argument when comparing
15762 for GCSE.
15763 (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
15764 find_comparison_args, fold_rtx, cse_insn): Update callers.
15765 (hash_rtx): New function derived from old canon_hash and bits
15766 from gcse.c hash_expr_1.
15767 (canon_hash_string): Rename to hash_rtx_string.
15768 (canon_hash, safe_hash): Make static inline. Call hash_rtx.
15769 * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
15770 (cselib_lookup): Update this caller.
15771 * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
15772 Make static.
15773 (hash_expr): Call hash_rtx.
15774 (ldst_entry): Likewise.
15775 (expr_equiv_p): Call exp_equiv_p.
15776 (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
15777 reg_used_on_edge, reg_set_between_after_reload_p,
15778 reg_used_between_after_reload_p, get_avail_load_store_reg,
15779 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
15780 get_bb_avail_insn, hash_scan_set_after_reload,
15781 compute_hash_table_after_reload,
15782 eliminate_partially_redundant_loads, gcse_after_reload,
15783 get_bb_avail_insn, gcse_after_reload_main): Remove.
15784 * postreload-gcse.c: New file, reincarnating most of the above.
15785 * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
15786 (gcse_after_reload_main): Update prototype.
15787 * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
15788 * passes.c (rest_of_handle_gcse2): Use it.
15789
15790 2004-08-18 Diego Novillo <dnovillo@redhat.com>
15791
15792 * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
15793 (pass_loop_done): Likewise.
15794
15795 2004-08-18 Andrew Pinski <apinski@apple.com>
15796
15797 * config/rs6000/darwin.md: Delete the altivec patterns which are
15798 handled differently now.
15799 (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
15800 (macho_correct_pic_di): Likewise.
15801 (call_indirect_nonlocal_darwin64): Likewise.
15802 Delete the save world/saveFP/saveVec patterns.
15803
15804 Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com>
15805 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
15806 * config/rs6000/rs6000.md: Include darwin.md.
15807 (builtin_setjmp_receiver): Add DImode case.
15808 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
15809 Darwin bits.
15810
15811 2004-08-18 Matt Austern <austern@apple.com>
15812
15813 Dead code stripping
15814 * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
15815 * darwin.c (darwin_file_end): Mark file as potentially strippable.
15816
15817 2004-08-18 Richard Henderson <rth@redhat.com>
15818
15819 * alias.c (readonly_fields_p): Remove.
15820 (objects_must_conflict_p): Don't call it.
15821 * tree.h (readonly_fields_p): Remove.
15822 * langhooks.h (struct lang_hooks): Remove honor_readonly.
15823 * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
15824
15825 2004-08-18 Diego Novillo <dnovillo@redhat.com>
15826
15827 * tree-dfa.c (add_referenced_var): Only global variables are
15828 call-clobbered.
15829 * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
15830 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
15831 all pointers dereferenced if the statement dereferences them.
15832 (create_name_tags): Do not create memory tags for pointers
15833 that have PT_ANYTHING set.
15834 Also check if PT_VARS is not empty before creating a name tag.
15835 (compute_flow_sensitive_aliasing): Don't mark call-clobbered
15836 variables that share the same alias set with a pointer that
15837 may point anywhere.
15838 (add_may_alias): Add FIXME comment to remove clobbering
15839 aliased variables and tags.
15840 (replace_may_alias): Likewise.
15841 (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
15842 (merge_pointed_to_info): If the original variable has not
15843 points-to information, call set_pt_anything.
15844 (add_pointed_to_var): Do not prevent adding a pointed-to
15845 variable if the pointers is PT_ANYTHING.
15846 If the variable is a global, set PT_GLOBAL_MEM.
15847 (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
15848 pointer type only come in PTR+OFFSET flavours.
15849 Always call merge_pointed_to_info on PHI arguments that are
15850 SSA_NAMEs.
15851 (get_nmt_for): Mark call-clobbered tags whose pointer points
15852 to global memory.
15853 * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
15854 values.
15855 (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
15856 FLAGS.
15857 (add_stmt_operand): Abort if the caller tried to add a killing
15858 definition for a memory tag.
15859 * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
15860 unnecessary checks.
15861
15862 2004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
15863
15864 * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
15865 from call_used_regs. Update call_really_used_regs.
15866 (CALL_REALLY_USED_REGISTERS): Define.
15867 * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
15868 Replace call_used_regs with call_really_used_regs.
15869 (calc_live_regs, sh_media_register_for_return): Likewise.
15870 (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
15871 * sh.md (return_media): Likewise.
15872
15873 2004-08-18 Andrew Pinski <apinski@apple.com>
15874
15875 * config/darwin.c (machopic_legitimize_pic_address): Only set
15876 MEM_READONLY_P in the non TARGET_TOC case.
15877
15878 2004-08-18 Zack Weinberg <zack@codesourcery.com>
15879
15880 * rtl.def (NIL): Delete.
15881 * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
15882 Tighten the syntax a little.
15883
15884 * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
15885 * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
15886 * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
15887 * config/i386/predicates.md, config/m32r/m32r.h
15888 * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
15889 * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
15890 * config/sparc/sparc.h, doc/tm.texi:
15891 Replace all occurrences of NIL with UNKNOWN.
15892
15893 2004-08-18 Zack Weinberg <zack@codesourcery.com>
15894
15895 * dojump.c (do_jump <unordered_bcc>): Do not recursively call
15896 self with a TRUTH_ORIF_EXPR; generate the appropriate jump
15897 sequence inline. Move drop_through_label code into this
15898 block, being the only place it is used. Adjust comments.
15899
15900 2004-08-18 Fariborz Jahanian <fjahanian@apple.com>
15901
15902 * config/rs6000/altivec.md: Add new patterns for calls to
15903 save_world/rest_world functions.
15904
15905 * config/rs6000/rs6000-protos.h: (save_world_operation,
15906 restore_world_operation) new declarations.
15907
15908 * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
15909 field added.
15910 (rs6000_stack_info): Set world_save_p field.
15911 (save_world_operation): New function.
15912 (restore_world_operation): New function.
15913 (compute_save_world_info): New function.
15914 (rs6000_stack_info): Call compute_save_world_info.
15915 (rs6000_emit_prologue): Check for world_save_p and generate
15916 pattern to call save_world for saving all non-volatile and
15917 special registers.
15918 (rs6000_emit_epilogue): Check for world_save_p and generate
15919 pattern to call rest_world to restore saved registers.
15920
15921 config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
15922 FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
15923 (rs6000_reg_names): New entries added for save_world_operation and
15924 restore_world_operation.
15925
15926 2004-08-18 Caroline Tice <ctice@apple.com>
15927
15928 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
15929 "-freorder-blocks-and-partition" to the flags used in second
15930 stage of profiledbootstrap.
15931 * bb-reorder.c (push_to_next_round_p): Add new variable,
15932 next_round_is_last; set and use variable to make sure, when
15933 partitioning, that the last trace construction round consists
15934 of all (and only) cold basic blocks.
15935 (rotate_loop): Don't copy blocks that end in a section
15936 crossing jump.
15937 (copy_bb): Correctly initialize "partition" of duplicated bb.
15938 (add_unlikely_executed_notes): Add a comment.
15939 (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
15940 to make sure, if function contains hot blocks, that the
15941 successors of ENTRY_BLOCK_PTR are hot; also, only look for
15942 crossing edges if the architecture supports named sections.
15943 (mark_bb_for_unlikely_executed_section): Modify to always
15944 insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
15945 the basic block note insn.
15946 (fix_crossing_unconditional_branches): Remove extra space.
15947 (fix_edges_for_rarely_executed_code): Modify to only do
15948 partitioning work if the architecture supports named sections.
15949 (reorder_basic_blocks): Modify to only add
15950 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
15951 supports named sections.
15952 * c-common.c (handle_section_attribute): Initialize new global
15953 variable, user_defined_section_attribute, to true if user has
15954 specified one.
15955 * cfgcleanup.c (try_forward_edges): Modify to not attempt to
15956 forward edges that cross section boundaries.
15957 * cfglayout.c (fixup_reorder_chain): Modify to only fix up
15958 partitioning information if the architecture supports named
15959 sections.
15960 * cfgrtl.c (target.h): Add statement to include this.
15961 (rtl_split_block): Make sure newly created bb gets correct
15962 partition.
15963 (try_redirect_by_replacing_jump): Make sure redirection isn't
15964 attempting to cross section boundaries.
15965 (force_nonfallthru_and_redirect): Only do partition fix up if
15966 architecture supports named sections.
15967 (rtl_split_edge): Make sure newly created bb ends up in
15968 correct partition.
15969 (commit_one_edge_insertion): Remove code that incorrectly
15970 updated basic block partition; Make sure partition fix up only
15971 happens if architecture supports named sections and it's not
15972 already done.
15973 (rtl_verify_flow_info_1): Fix if-condition on test/error
15974 condition that fallthru edges are not allowed to cross section
15975 boundaries.
15976 * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
15977 * final.c (final_scan_insn): Remove redundant test from if-statement;
15978 change calls to text_section into calls to function_section; add code
15979 to only to partitioning fix up if architecture supports named
15980 sections.
15981 * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
15982 partition.
15983 (if_convert): Add targetm.have_named_sections to test.
15984 * output.h (unlikely_section_label): Extern declaration for new global
15985 variable.
15986 (unlikely_text_section_name): Likewise.
15987 * opts.c (decode_options): If both partitioning and DWARF debugging
15988 are turned on, issue a warning that this doesn't work, and change
15989 partitiong to basic block reordering (without hot/cold partitions).
15990 * passes.c (rest_of_handle_final): Re-set new global variable,
15991 user_defined_section_attribute, to false.
15992 (rest_of_compilation): Change options for calling partitioning
15993 function: Don't call if the user defined the section attribute, and
15994 don't call if DECL_ONE_ONLY is true for the current function.
15995 * predict.c (choose_function_section): Return immediately if we
15996 are doing hot/cold partitioning (i.e. let the basic block partitioning
15997 determine where the function belongs).
15998 * reg-stack.c (emit_swap_insn): Add condition to step over
15999 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
16000 * toplev.c (user_defined_section_attribute): New global variable.
16001 * toplev.h (user_defined_section_attribute): Extern declaration
16002 for new global variable.
16003 * varasm.c (unlikely_section_label): New global variable.
16004 (unlikely_text_section_name): New global variable.
16005 (unlikely_text_section): Add code to initialize
16006 unlikely_text_section_name if necessary; modify to use
16007 unlikely_text_section_name and unlikely_section_label; also to use
16008 named_section properly.
16009 (in_unlikely_text_section): Modify to work correctly with
16010 named_section and to use unlikely_text_section_name.
16011 (named_section): Add code to work properly with cold section.
16012 (function_section): Clean up if-statement.
16013 * config/darwin.c (darwin_asm_named_section): Return to original
16014 code, removing use of SECTION_FORMAT_STRING.
16015 * config/arm/pe.h (switch_to_section): Add case for
16016 in_unlikely_executed_text to switch statement.
16017 * config/i386/cygming.h (switch_to_section): Likewise.
16018 * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
16019 (SECTION_FORMAT_STRING): Likewise.
16020 * config/mcore/mcore.h (switch_to_section): Likewise.
16021 * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
16022 (SECTION_FORMAT_STRING): Remove.
16023
16024 2004-08-18 Roger Sayle <roger@eyesopen.com>
16025
16026 * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
16027 -ffixed-reg safe, by preserving the meanings of zero and one.
16028 (CALL_USED_REGISTERS): Likewise.
16029 (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
16030
16031 2004-08-18 Kaz Kojima <kkojima@gcc.gnu.org>
16032
16033 * config/sh/sh.c (split_branches): Check the result of
16034 next_active_insn.
16035 (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
16036 Call rtl_register_cfg_hooks.
16037
16038 2004-08-18 Richard Henderson <rth@redhat.com>
16039
16040 * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
16041 * alias.c (true_dependence): Update to match new semantics.
16042 (canon_true_dependence, write_dependence_p): Likewise.
16043 (anti_dependence, output_dependence): Update write_dependence_p args.
16044 (unchanging_anti_dependence): Remove.
16045 * calls.c (purge_mem_unchanging_flag): Remove.
16046 (fixup_tail_calls): Don't call it.
16047 (expand_call): Don't add unchanging memory to function usage.
16048 * expr.c (emit_block_move_via_libcall): Likewise.
16049 (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
16050 (get_subtarget): Don't use RTX_UNCHANGING_P.
16051 (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
16052 (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
16053 * combine.c (get_last_value_validate): Use MEM_READONLY_P.
16054 * cse.c (insert): Don't use RTX_UNCHANGING_P.
16055 (cse_insn, canon_hash): Use MEM_READONLY_P.
16056 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
16057 instead of RTX_UNCHANGING_P.
16058 * explow.c (maybe_set_unchanging): Remove.
16059 * expr.h (maybe_set_unchanging): Remove.
16060 * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
16061 * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
16062 (assign_parm_setup_reg, expand_function_start): Likewise.
16063 * integrate.c (copy_rtx_and_substitute): Likewise.
16064 * ra-rewrite.c (emit_colors): Likewise.
16065 * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
16066 (fixup_match_1): Likewise.
16067 * reload1.c (reload, alter_reg): Likewise.
16068 * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
16069 not RTX_UNCHANGING_P.
16070 (equiv_init_varies_p): Likewise.
16071 * loop-invariant.c (check_maybe_invariant): Likewise.
16072 * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
16073 * loop.c (note_addr_stored): Likewise.
16074 (prescan_loop): Likewise. Don't check function usage for clobbered
16075 unchanging memory.
16076 * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
16077 not RTX_UNCHANGING_P.
16078 (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
16079 * varasm.c (force_const_mem): Likewise.
16080 * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
16081 * web.c (entry_register): Likewise.
16082 * tree-gimple.h (get_base_address): Move decl ...
16083 * tree.h: ... here.
16084 * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
16085
16086 * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
16087 called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
16088 (alpha_set_memflags): Update to match.
16089
16090 * config/darwin.c (machopic_indirect_data_reference): Set
16091 MEM_READONLY_P instead of RTX_UNCHANGING_P.
16092 (machopic_indirect_call_target): Likewise.
16093 (machopic_legitimize_pic_address): Likewise.
16094 * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
16095 arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
16096 * config/arm/arm.md (load_multiple, store_multiple): Likewise.
16097 * config/frv/frv.md (symGOT2reg): Likewise.
16098 * config/i386/i386.c (legitimize_pic_address,
16099 legitimize_tls_address, ix86_split_to_parts): Likewise.
16100 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
16101 * config/ia64/ia64.md (load_fptr): Likewise.
16102 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
16103 * config/m68k/m68k.c (legitimize_pic_address): Likewise.
16104 * config/mcore/mcore.c (block_move_sequence): Likewise.
16105 * config/mn10300/mn10300.md (symGOT2reg): Likewise.
16106 * config/pa/pa.c (legitimize_pic_address): Likewise.
16107 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
16108 (rs6000_emit_move): Likewise.
16109 * config/s390/s390.c (legitimize_pic_address): Likewise.
16110 (legitimize_tls_address): Likewise.
16111 * config/s390/s390.md (casesi): Likewise.
16112 * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
16113 * config/sh/sh.md (symGOT2reg): Likewise.
16114 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
16115 * config/v850/v850.md (casesi): Likewise.
16116
16117 * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
16118 * config/iq2000/iq2000.c (save_restore_insns): Likewise.
16119 * config/mips/mips.c (mips_restore_gp): Likewise.
16120 (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
16121 * config/sh/sh.c (sh_reorg): Likewise.
16122
16123 2004-08-18 Richard Henderson <rth@redhat.com>
16124
16125 * tree.h (struct tree_decl): Add gimple_formal_temp.
16126 (DECL_GIMPLE_FORMAL_TEMP_P): New.
16127 * gimplify.c (pop_gimplify_context): Clear it.
16128 (lookup_tmp_var): Set it, if is_formal.
16129 (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
16130 Use is_gimple_val for VECTOR. Simplify return value.
16131 (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
16132 (gimplify_expr): Likewise.
16133 * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
16134 is_gimple_tmp_rhs for clarity. Update all callers.
16135 (is_gimple_reg_rhs): Simplify logic.
16136 (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
16137 clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
16138 (is_gimple_formal_tmp_reg): Similarly.
16139 * tree-gimple.h: Update decls.
16140 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
16141 DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting.
16142 * tree-ssa-live.c (var_union, type_var_init): Likewise.
16143
16144 2004-08-18 Paolo Bonzini <bonzini@gnu.org>
16145
16146 * c4x.c (legitimize_operands): Remove calls to
16147 preserve_subexpressions_p.
16148
16149 2004-08-18 David Edelsohn <edelsohn@gnu.org>
16150
16151 * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
16152 * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
16153
16154 2004-08-18 Ziemowit Laski <zlaski@apple.com>
16155
16156 * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
16157 Objective-C++ extensions.
16158 * gengtype.c (get_file_basename): Match entire subdirectory name
16159 ('cp', 'objc', 'objcp') rather than just its suffix.
16160 (get_base_file_bitmap): Allow for files to belong to more than one
16161 language.
16162 (get_output_file_with_visibility): Treat objc/objc-act.h as a header
16163 used by more than one front-end.
16164
16165 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
16166
16167 * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
16168 avoid use of preserve_subexpressions_p.
16169
16170 2004-08-17 Richard Henderson <rth@redhat.com>
16171
16172 PR 17051
16173 * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
16174
16175 2004-08-17 DJ Delorie <dj@redhat.com>
16176
16177 * doc/extend.texi: Document new xstormy16 attribute.
16178
16179 * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
16180 (xstormy16_splittable_below100_or_register): New.
16181 (combine_bnp): New.
16182 (xstormy16_reorg): New.
16183 (TARGET_MACHINE_DEPENDENT_REORG): Define.
16184
16185 * config/stormy16/stormy16.md (movqi_internal): Make name public.
16186 (movhi_internal): Likewise.
16187 (cbhranchhi): Likewise.
16188 (cbhranchhi_neg): Likewise.
16189 (andhi3): Only allow splittable below100 operands.
16190 (iorhi3): Likewise.
16191 (peephole2): New and/zero_extend->and peephole.
16192 (peephole2): New load/ior/save->set1 peephole.
16193 (peephole2): New load/and/save->clr1 peephole.
16194 (bclrx, bclrx2, bclr7, bclr15): New.
16195 (bsetx, bsetx2, bset7, bset15): New.
16196
16197 * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
16198 liberal about acceptable 'B' masks.
16199
16200 * config/stormy16/stormy16-protos.h
16201 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
16202 xstormy16_below100_operand, xstormy16_below100_or_register,
16203 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
16204 (PREDICATE_CODES): Add new predicates.
16205
16206 * config/stormy16/stormy16.c
16207 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
16208 xstormy16_below100_operand, xstormy16_below100_or_register,
16209 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
16210 (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
16211 (xstormy16_legitimate_address_p): Allow below100 symbols.
16212 (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
16213 (xstormy16_expand_move): Leave below100 operands as-is.
16214 (xstormy16_encode_section_info): Encode below100 symbols.
16215 (xstormy16_strip_name_encoding): New.
16216 (xstormy16_print_operand): Print 'b' as shift mask.
16217 (xstormy16_attribute_table): Add below100 attributes.
16218 (xstormy16_handle_below100_attribute): New.
16219
16220 * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
16221 (XSTORMY16_SECTION_FUNCTION): New.
16222 (EXTRA_SECTION_FUNCTIONS): Define using the above.
16223 (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
16224 (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
16225 (ASM_OUTPUT_LABELREF): Define.
16226
16227 * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
16228 (movhi_internal): Add below100 support.
16229 (andhi3): Add below100 support.
16230 (iorhi3): Add below100 support.
16231 (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
16232
16233 2004-08-17 James E Wilson <wilson@specifixinc.com>
16234
16235 * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
16236 of VOIDmode for comparison code mode.
16237 * config/mips/mips.md: For conditional move patterns, use mode of
16238 first compare operand for comparison mode, instead of VOIDmode.
16239
16240 * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
16241 normal and -ffast-math code.
16242
16243 2004-08-17 Mark Mitchell <mark@codesourcery.com>
16244
16245 PR c++/15871
16246 * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
16247
16248 2004-08-17 Robert Bowdidge <bowdidge@apple.com>
16249
16250 * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
16251
16252 2004-08-17 Andreas Tobler <a.tobler@schweiz.ch>
16253
16254 * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
16255 for non Darwin targets.
16256 (*call_value_nonlocal_darwin64): Likewise.
16257
16258 2004-08-17 Fariborz Jahanian <fjahanian@apple.com>
16259
16260 * config/rs6000/rs6000.c (rs6000_function_value): Check for
16261 altivec mode for altivec return register.
16262
16263 2004-08-17 David Edelsohn <edelsohn@gnu.org>
16264
16265 Revert 2004-08-16 Stan Shebs <shebs@apple.com>
16266 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
16267 * config/rs6000/rs6000.md: Include darwin.md.
16268 (builtin_setjmp_receiver): Add DImode case.
16269 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
16270 Darwin bits.
16271
16272 2004-08-17 Dorit Naishlos <dorit@il.ibm.com>
16273
16274 * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
16275 trees.
16276 * tree-vectorizer.h: New File: Same.
16277 * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
16278 * common.opt (ftree-vectorize): New flag to enable vectorization.
16279 * timevar.def (TV_TREE_VECTORIZATION): New dump file for
16280 vectorization pass.
16281 * tree-data-ref.h (init_data_ref): Additional argument.
16282 (array_base_name_differ_p): Moved to tree-data-ref.c.
16283 * tree-data-ref.c (array_base_name_differ_p): Revised.
16284 (initialize_data_dependence_relation): Call array_base_name_differ_p
16285 with an extra argument.
16286 (analyze_all_data_dependences): Same.
16287 (init_data_ref): Additional argument is_read to set DR_IS_READ.
16288 * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
16289 file.
16290 * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
16291 * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
16292 * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
16293 vectorization pass.
16294 * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
16295 (tree_ssa_loop_done): Call scev_finalize.
16296 (tree_vectorize): Define the new vectorization pass.
16297 * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
16298 size of the vector they support (until support for multiple vector
16299 sizes is added to the vectorizer).
16300 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
16301 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
16302 * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
16303 documentation.
16304
16305 2004-08-17 Nathan Sidwell <nathan@codesourcery.com>
16306
16307 * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
16308 usage.
16309 (generate_protocol_list, handle_impent): Likewise.
16310
16311 2004-08-17 Roger Sayle <roger@eyesopen.com>
16312
16313 * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
16314 ensure that call_used_regs is a superset of both fixed_regs and
16315 call_really_used_regs.
16316
16317 2004-08-17 Daniel Bornstein <danfuzz@milk.com>
16318
16319 PR target/17019
16320 * arm.md (addsi3_cbranch_scratch): Correct case labels.
16321
16322 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
16323
16324 PR middle-end/17036
16325 * fold-const.c (fold): Check for integer operand when
16326 folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew
16327 Pinski <pinskia@physics.uc.edu>.
16328
16329 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
16330
16331 * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
16332 No need to check if in a cross configuration.
16333 * configure: Regenerate.
16334
16335 * calls.c (precompute_register_parameters):
16336 Inline preserve_subexpressions_p ().
16337 * expmed.c (expand_mult_const, emit_store_flag): Likewise.
16338 * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
16339 Likewise.
16340 * expr.c (get_subtarget): Likewise.
16341 * rtl.h (preserve_subexpressions_p): Remove.
16342 * stmt.c (preserve_subexpressions_p): Remove.
16343
16344 * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
16345 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
16346 Abort on gimplified cases.
16347
16348 2004-08-16 James E Wilson <wilson@specifixinc.com>
16349
16350 * tree.h (VECTOR_FLOAT_TYPE_P): New.
16351 (FLOAT_TYPE_P): Use it.
16352 * c-typeck.c (build_binary_op): After convert calls, check for
16353 check for ERROR_MARK operands.
16354
16355 2004-08-16 Zack Weinberg <zack@codesourcery.com>
16356
16357 * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
16358 (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
16359 (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
16360 (genobjs static pattern rule): Remove %.c dependency.
16361 ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
16362 Rename rules; delete commands; fix dependencies.
16363 (mostlyclean): Do not delete temporary source copies.
16364 * configure.ac: Delete all references to BUILD_PREFIX and
16365 BUILD_PREFIX_1.
16366 * configure: Regenerate.
16367
16368 * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
16369 Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
16370 basic-block.h #ifdef GENERATOR_FILE. Surround some more code
16371 with #ifndef GENERATOR_FILE so that nothing from those headers
16372 is used.
16373
16374 * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
16375
16376 2004-08-16 Adam Nemet <anemet@lnxw.com>
16377
16378 * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
16379
16380 2004-08-16 Andrew Pinski <apinski@apple.com>
16381
16382 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
16383 extraneous semicolon.
16384
16385 2004-08-16 Devang Patel <dpatel@apple.com>
16386
16387 * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
16388 * print-tree.c (print_node): Print DECL_PRESERVE_P.
16389 * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
16390 (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
16391 * target.h (struct gcc_target): New member, mark_decl_preserved.
16392 * hooks.c (hook_void_charptr): Rename to ...
16393 (hook_void_constcharptr): ... new name.
16394 * hooks.h (hook_void_charptr): Rename to ..
16395 (hook_void_constcharptr): ... new name.
16396 * tree.h (DECL_PRESERVE_P): New #define.
16397 (struct tree_decl): New member, preserve_flag.
16398 * varasm.c (assemble_start_function): Mark decl preserved.
16399 (assemble_variable): Same.
16400 * darwin.c (darwin_mark_decl_preserved): New function.
16401 * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
16402 * darwin-protos.h (darwin_mark_decl_preserved): New decl.
16403 * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
16404
16405 2004-08-16 Joseph S. Myers <jsm@polyomino.org.uk>
16406
16407 * c-decl.c (grokdeclarator): Allow for function definition where
16408 innermost declarator has attributes.
16409
16410 2004-08-16 Fariborz Jahanian <fjahanian@apple.com>
16411
16412 * except.c (get_exception_filter, build_post_landing_pads,
16413 dw2_build_landing_pads): Use target-specific mode for 'filter'.
16414 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
16415 * target.h (eh_return_filter_mode): New field added.
16416 * targhooks.c (default_eh_return_filter_mode): Defined.
16417 * targhooks.h (default_eh_return_filter_mode): Declared.
16418 * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
16419
16420 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
16421
16422 * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
16423 ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
16424 * configure: Regenerate.
16425
16426 2004-08-16 Stan Shebs <shebs@apple.com>
16427
16428 Basic support for 64-bit Darwin.
16429 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
16430 (machopic_legitimize_pic_address): Similarly, plus use Pmode
16431 instead of SImode.
16432 * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
16433 (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
16434 (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
16435 (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
16436 (PROCESSOR_DEFAULT64): Define.
16437 * config/rs6000/darwin.md: New file, patterns specific to 64-bit
16438 Darwin.
16439 * config/rs6000/rs6000.md: Include darwin.md.
16440 (builtin_setjmp_receiver): Add DImode case.
16441 * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
16442 Darwin.
16443 (TARGET_ASM_ALIGNED_DI_OP): Ditto.
16444 (rs6000_emit_move): Add DImode case to Darwin bits.
16445 (machopic_output_stub): Use .quad if 64-bit.
16446 * invoke.texi: Document -m32 and -m64.
16447
16448 2004-08-16 Janis Johnson <janis187@us.ibm.com>
16449
16450 * doc/extend.texi (AltiVec builtins): Document additional differences
16451 from the Motorola AltiVec PIM.
16452
16453 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
16454
16455 * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
16456 * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
16457 (struct tree_common): Update public_flag documentation.
16458
16459 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
16460
16461 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
16462 Check for artificial variables, not is_gimple_tmp_var.
16463 * tree-ssa-live.c (var_union): Likewise.
16464
16465 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
16466
16467 * calls.c (load_register_parameters): Remove spurious FIXME token.
16468
16469 2004-08-15 Ziemowit Laski <zlaski@apple.com>
16470
16471 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
16472 (c-lang.o): Depend on c-objc-common.h.
16473 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
16474 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
16475 * c-lang.c: Include c-objc-common.h.
16476 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
16477 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
16478 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
16479 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
16480 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
16481 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
16482 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
16483 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
16484 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
16485 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
16486 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
16487 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
16488 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
16489 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
16490 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
16491 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
16492 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
16493 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
16494 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
16495 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
16496 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
16497 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
16498 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
16499 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
16500 Move to c-objc-common.h.
16501 * c-objc-common.c: Include c-objc-common.h.
16502 * c-objc-common.h: New file.
16503
16504 2004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
16505 Andrew Pinski <pinskia@physics.uc.edu>
16506
16507 PR target/14931
16508 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
16509 style.
16510
16511 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
16512
16513 * tree.h (build_int_cst): New.
16514 (build_int_2): Remove.
16515 * tree.c (build_int_2): Remove.
16516 (build_int_cst): New.
16517 (make_vector_type, build_common_tree_nodes,
16518 build_common_tree_nodes_2): Use build_int_cst.
16519 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
16520 expand_builtin_strpbrk, expand_builtin_fputs,
16521 build_string_literal, expand_builtin_printf,
16522 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
16523 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
16524 fold_builtin_isdigit, simplify_builtin_strstr,
16525 simplify_builtin_strpbrk, fold_builtin_fputs,
16526 simplify_builtin_sprintf): Use build_int_cst.
16527 * c-common.c (start_fname_decls, fix_string_type,
16528 c_common_nodes_and_builtins, c_init_attributes,
16529 shorten_compare): Likewise.
16530 * c-decl.c (complete_array_type,
16531 check_bitfield_type_and_width): Likewise.
16532 * c-lex.c (interpret_integer, lex_charconst): Likewise.
16533 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
16534 * c-pretty-print.c (pp_c_integer_constant): Likewise.
16535 * c-typeck.c (really_start_incremental_init, push_init_level,
16536 set_nonincremental_init_from_string): Likewise.
16537 * calls.c (load_register_parameters): Likewise.
16538 * convert.c (convert_to_pointer): Likewise.
16539 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
16540 build_fn_info_type, build_ctr_info_value, build_gcov_info):
16541 Likewise.
16542 * except.c (init_eh, assign_filter_values, assign_filter_values):
16543 Likewise.
16544 * expmed.c (store_fixed_bit_field, extract_bit_field,
16545 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
16546 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
16547 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
16548 * expr.c (convert_move, emit_group_load, emit_group_store,
16549 expand_assignment, store_constructor, store_field,
16550 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
16551 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
16552 invert_truthvalue, optimize_bit_field_compare,
16553 decode_field_reference, all_ones_mask_p, constant_boolean_node,
16554 fold_div_compare, fold, fold_read_from_constant_string,
16555 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
16556 * function.c (assign_parm_setup_block): Likewise.
16557 * stmt.c (shift_return_value, expand_end_case_type,
16558 estimate_case_costs): Likewise.
16559 * stor-layout.c (layout_type, initialize_sizetypes,
16560 set_min_and_max_values_for_integral_type): Likewise.
16561 * tree-chrec.c (chrec_fold_multiply_poly_poly,
16562 reset_evolution_in_loop): Likewise.
16563 * tree-chrec.h (build_polynomial_chrec): Likewise.
16564 * tree-complex.c (build_replicated_const): Likewise.
16565 * tree-eh.c (honor_protect_cleanup_actions,
16566 lower_try_finally_onedest, lower_try_finally_copy,
16567 lower_try_finally_switch): Likewise.
16568 * tree-mudflap.c (mf_build_string, mx_register_decls,
16569 mudflap_register_call, mudflap_enqueue_constant): Likewise.
16570 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
16571 * tree-pretty-print.c (dump_generic_node): Likewise.
16572 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
16573 Likewise.
16574 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
16575 * tree-ssa-loop-niter.c (number_of_iterations_cond,
16576 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
16577 Likewise.
16578
16579 * config/alpha/alpha.c (alpha_initialize_trampoline,
16580 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
16581 * config/arm/arm.c (arm_get_cookie_size): Likewise.
16582 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
16583 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
16584 * config/i860/i860.c (i860_va_start): Likewise.
16585 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
16586 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
16587 mips_gimplify_va_arg_expr): Likewise.
16588 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
16589 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
16590 add_compiler_branch_island): Likewise.
16591 * config/s390/s390.c (s390_va_start): Likewise.
16592 * config/sh/sh.c (sh_va_start): Likewise.
16593 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
16594 Likewise.
16595 * config/xtensa/xtensa.c (xtensa_va_start,
16596 xtensa_gimplify_va_arg_expr): Likewise.
16597
16598 * objc/objc-act.c (build_objc_string_object,
16599 build_objc_symtab_template, init_def_list, init_objc_symtab,
16600 init_module_descriptor, generate_static_references,
16601 build_selector_translation_table, get_proto_encoding,
16602 build_typed_selector_reference, build_selector_reference,
16603 build_next_objc_exception_stuff,
16604 build_method_prototype_list_template, generate_descriptor_table,
16605 generate_protocols, build_protocol_initializer,
16606 build_ivar_list_template, build_method_list_template,
16607 build_ivar_list_initializer, generate_ivars_list,
16608 generate_dispatch_table, generate_protocol_list,
16609 build_category_initializer, build_shared_structure_initializer,
16610 generate_shared_structures, handle_impent,
16611 generate_objc_image_info): Use build_int_cst.
16612
16613 2004-08-15 Ben Elliston <bje@au.ibm.com>
16614
16615 * vec.h: Comment improvements.
16616
16617 2004-08-14 Roger Sayle <roger@eyesopen.com>
16618
16619 * c-common.c (shorten_compare, pointer_int_sum,
16620 c_common_truthvalue_conversion, boolean_increment): Replace calls
16621 to build with calls to buildN.
16622 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
16623 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
16624 gimplify_switch_stmt): Likewise.
16625 * c-typeck.c (default_function_array_conversion,
16626 build_component_ref, build_array_ref, build_function_call,
16627 pointer_diff, build_unary_op, build_conditional_expr,
16628 build_compound_expr, build_modify_expr, c_finish_goto_label,
16629 c_finish_goto_ptr, c_finish_return, c_finish_loop,
16630 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
16631 build_binary_op): Likewise.
16632
16633 2004-08-15 Steven Bosscher <stevenb@suse.de>
16634
16635 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
16636
16637 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16638
16639 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
16640 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
16641 * fixinc/fixincl.x: Rebuilt.
16642
16643 2004-08-14 Richard Sandiford <rsandifo@redhat.com>
16644
16645 * config/mips/mips-protos.h (mips_symbolic_constant_p)
16646 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
16647 (mips_small_data_pattern_p): Declare.
16648 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
16649 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
16650 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
16651 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
16652 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
16653 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
16654 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
16655 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
16656 (pc_or_label_operand, call_insn_operand, move_operand)
16657 (consttable_operand, symbolic_operand, general_symbolic_operand)
16658 (global_got_operand, local_got_operand, stack_operand)
16659 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
16660 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
16661 (mips_small_data_pattern_p): Replace previous small_data_pattern
16662 predicate. Turn into a bool () (rtx) function.
16663 * config/mips/predicates.md: New file.
16664 * config/mips/mips.md: Include it. Use the target-independent
16665 comparison_operator instead of cmp_op. Rename trap_cmp_op to
16666 trap_comparison_operator and equality_op to equality_operator.
16667 Replace uses of small_int with the equivalent const_arith_operand.
16668 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
16669 const_float_1_operand to const_1_operand. Rename fcc_register_operand
16670 to fcc_reload_operand.
16671 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
16672
16673 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16674
16675 PR libstdc++/17005 partial fix.
16676 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
16677 except when generating ANSI/C89 code.
16678
16679 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
16680
16681 * c-common.c (shorten_compare): Use force_fit_type directly.
16682
16683 2004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
16684 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
16685 Dave Korn <dk@artimi.com>
16686
16687 * doc/install.texi (Building): Avoid duplicate reference to GNU
16688 make requirement.
16689 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
16690
16691 2004-08-14 Richard Henderson <rth@redhat.com>
16692
16693 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
16694 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
16695
16696 2004-08-13 Richard Henderson <rth@redhat.com>
16697
16698 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
16699 for constant_call_address_operand.
16700 (call_value_pop_1, call_value_1): Likewise.
16701 (sibcall_value_1, call_value_1_rex64): Likewise.
16702
16703 2004-08-13 James E Wilson <wilson@specifixinc.com>
16704
16705 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
16706 Correct mode from SFmode to DFmode.
16707
16708 2004-08-13 Ziemowit Laski <zlaski@apple.com>
16709
16710 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
16711 __cstring_object and __image_info sections with the no_dead_strip
16712 attribute.
16713
16714 2004-08-13 Roger Sayle <roger@eyesopen.com>
16715 David Billinghurst <David.Billinghurst@riotinto.com>
16716
16717 PR libgfortran/15930
16718 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
16719 * fixinc/fixincl.x: Regenerate.
16720 * fixinc/tests/base/internal/math_core.h: New file.
16721
16722 2004-08-13 Richard Henderson <rth@redhat.com>
16723
16724 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
16725 (dbxout_function_end): Remove ifdefs for it.
16726 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
16727
16728 2004-08-13 Richard Henderson <rth@redhat.com>
16729
16730 * Makefile.in (insn-preds.o): Depend on TREE_H.
16731 * genpreds.c (write_insn_preds_c): Include tree.h.
16732 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
16733 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
16734 const48_operand, and_operand, or_operand, mode_width_operand,
16735 mode_mask_operand, mul8_operand, const0_operand,
16736 hard_fp_register_operand, hard_int_register_operand,
16737 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
16738 samegp_function_operand, direct_call_operand, small_symbolic_operand,
16739 global_symbolic_operand, call_operand, symbolic_operand,
16740 dtp16_symbolic_operand, dtp32_symbolic_operand,
16741 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
16742 gottp_symbolic_operand, alpha_comparison_operator,
16743 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
16744 signed_comparison_operator, alpha_fp_comparison_operator,
16745 divmod_operator, fix_operator, aligned_memory_operand,
16746 unaligned_memory_operand, reg_or_unaligned_mem_operand,
16747 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
16748 reg_no_subreg_operand, addition_operation): Move to predicates.md.
16749 (reg_or_const_int_operand): Remove. Replace all users with
16750 reg_or_cint_operand.
16751 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
16752 (resolve_reload_operand): Split out of aligned_memory_operand.
16753 * config/alpha/alpha-protos.h: Update for exports.
16754 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
16755 * config/alpha/alpha.md: Include predicates.md.
16756 * config/alpha/predicates.md: New file.
16757
16758 2004-08-13 Richard Sandiford <rsandifo@redhat.com>
16759
16760 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
16761 fields with a pointer to the instruction definition.
16762 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
16763 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
16764 (write_attr_case, write_const_num_delay_slots): Update accordingly.
16765 (write_attr_case, write_const_num_delay_slots): Write the name of
16766 an insn next to its case statement.
16767 * genoutput.c (data): Add a filename field.
16768 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
16769 (output_insn_data): Print the location of each insn definition.
16770 * genrecog.c (write_action): Print the name of an insn above
16771 the statement that returns its code.
16772
16773 2004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
16774
16775 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
16776 * config/libgloss.h: Likewise.
16777 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
16778 * c4x/c4x-modes.def: Likewise.
16779 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
16780 (c4x_rptb_nop_p): Likewise.
16781 (c4x_rptb_valid_p): Likewise.
16782 (c4x_rptb_insert): Likewise.
16783 (c4x_address_conflict): Likewise.
16784 * config/c4x/c4x.md: Likewise.
16785 * config/frv/frv.md: Likewise.
16786 * config/i386/athlon.md: Likewise.
16787 * config/i386/i386.md: Likewise.
16788 * config/i386/predicates.md: Likewise.
16789 * config/ia64/ia64.c: Likewise.
16790 * config/ia64/itanium1.md: Likewise.
16791 * config/ia64/itanium2.md: Likewise.
16792 * config/iq2000/iq2000.md: Likewise.
16793 * config/mcore/mcore.c: Likewise.
16794 * config/mips/mips.c: Likewise.
16795 * config/mips/r3900.h: Likewise.
16796 * config/mips/sb1.md: Likewise.
16797 * config/pa/milli64.S: Likewise.
16798 * config/pa/pa.c: Likewise.
16799 * config/pa/pa.h: Likewise.
16800 * config/rs6000/8540.md: Likewise.
16801
16802 2004-08-13 Daniel Berlin <dberlin@dberlin.org>
16803
16804 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
16805
16806 2004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
16807
16808 * sh.md (cbranch define_delay) Use cond_delay_slot for
16809 non-anulled condition too.
16810
16811 2004-08-12 David Edelsohn <edelsohn@gnu.org>
16812
16813 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
16814 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
16815 any_parallel_operand, lmw_operation, stmw_operation,
16816 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
16817 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
16818 any_parallel_operand.
16819 (return_and_restore_fpregs_{si,di}): Same.
16820
16821 2004-08-12 Zack Weinberg <zack@codesourcery.com>
16822
16823 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
16824 if pred->singleton != PARALLEL, issue a warning and pretend it was.
16825 Also issue a warning for any predicate we don't know about.
16826
16827 2004-08-12 Richard Henderson <rth@redhat.com>
16828
16829 * config/i386/i386.c (internal_label_prefix): Export.
16830 (internal_label_prefix_len, struct ix86_address,
16831 ix86_decompose_address, maybe_get_pool_constant,
16832 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
16833 memory_address_length): Export.
16834 (any_fp_register_operand, fp_register_operand,
16835 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
16836 x86_64_general_operand, x86_64_szext_general_operand,
16837 x86_64_nonmemory_operand, x86_64_movabs_operand,
16838 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
16839 x86_64_zext_immediate_operand, const_int_1_31_operand,
16840 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
16841 tls_symbolic_operand, global_dynamic_symbolic_operand,
16842 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
16843 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
16844 constant_call_address_operand, const0_operand, const1_operand,
16845 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
16846 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
16847 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
16848 general_no_elim_operand, nonmemory_no_elim_operand,
16849 index_register_operand, q_regs_operand, flags_reg_operand,
16850 non_q_regs_operand, zero_extended_scalar_load_operand,
16851 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
16852 ix86_comparison_operator, ix86_carry_flag_operator,
16853 fcmov_comparison_operator, promotable_binary_operator,
16854 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
16855 mult_operator, div_operator, arith_or_logical_operator,
16856 memory_displacement_operand, cmpsi_operand, long_memory_operand,
16857 aligned_operand): Move to predicates.md as define_predicates.
16858 (tls_symbolic_operand_1): Remove.
16859 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
16860 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
16861 (legitimize_address): Merge tls_symbolic_operand contents.
16862 (ix86_expand_move): Likewise.
16863 * config/i386/i386-protos.h: Update for exports.
16864 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
16865 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
16866 * config/i386/i386.md: Include predicates.md.
16867 * config/i386/predicates.md: New file.
16868
16869 2004-08-13 Mark Mitchell <mark@codesourcery.com>
16870
16871 PR c++/16924
16872 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
16873 SYMBOL_REF_DECL.
16874 (i386_pe_mark_dllimport): Likewise.
16875 (i386_pe_encode_section_info): Likewise, when overriding
16876 dllimport attribute.
16877
16878 2004-08-12 Geoffrey Keating <geoffk@apple.com>
16879
16880 * configure.ac: When testing for flex, nm, ar, and bison, check
16881 that they will actually be built.
16882 * configure: Regenerate.
16883
16884 2004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
16885
16886 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
16887 (MOVE_MAX_PIECES): Define.
16888
16889 2004-08-12 Devang patel <dpatel@apple.com>
16890
16891 * dbxout.c (dbxout_begin_prologue): New function.
16892 (dbx_debug_hooks): Use new begin prologue hook.
16893 (dbxout_function_end): Emit N_ENSYM.
16894 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
16895
16896 2004-08-12 Janis Johnson <janis187@us.ibm.com>
16897
16898 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
16899 argument is float*.
16900
16901 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
16902 for vec_dss.
16903
16904 * doc/extend.texi (AltiVec builtins): Fix description for recent
16905 changes. Update operation list to match current support.
16906
16907 2004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
16908
16909 * config/s390/s390.c (struct s390_frame_layout): New struct as element
16910 of struct machine_function.
16911 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
16912 changed all uses.
16913 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
16914 changed all uses.
16915 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
16916 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
16917 (s390_frame_area, s390_register_info): New functions.
16918 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
16919 for base register.
16920 (s390_return_addr_rtx, s390_return_address_offset)
16921 (s390_va_start, s390_gimplify_va_arg)
16922 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
16923 layouts.
16924 (s390_frame_info): Functionality partly moved to s390_register_info.
16925 Made adaptions for new stack layout.
16926 (save_gprs, restore_gprs): Changed meaning of second parameter and
16927 adapted all callers.
16928
16929 * config/s390/s390.h (s390_backchain_string): New global variable.
16930 (MASK_BACKCHAIN): Removed definition.
16931 (TARGET_BACKCHAIN): Changed check.
16932 (TARGET_KERNEL_BACKCHAIN): New macro.
16933 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
16934 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
16935 "kernel-backchain".
16936 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
16937
16938 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
16939 as condition. Adjusted for new stack layout.
16940
16941 * doc/invoke.texi: Added documentation for new option
16942 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
16943 "-mno-backchain".
16944
16945 2004-08-12 Paul Brook <paul@codesourcery.com>
16946
16947 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
16948 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
16949
16950 2004-08-12 David Daney <ddaney@avtrex.com>
16951
16952 * java/gcj.texi: Add subsection on signal usage.
16953
16954 2004-08-12 David Edelsohn <edelsohn@gnu.org>
16955
16956 * expr.c (move_by_pieces): Set alignment for move to minimum of
16957 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
16958 alignment, but not less than the original alignment.
16959 (move_by_pieces_ninsns): Same.
16960 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
16961 (store_by_pieces_1): Same.
16962
16963 2004-08-12 Diego Novillo <dnovillo@redhat.com>
16964
16965 PR tree-optimization/16867
16966 * tree.c (is_global_var): New function.
16967 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
16968 Call is_global_var.
16969 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
16970 Update all users.
16971 (is_global_var): Declare.
16972 * tree-dfa.c (dump_variable): Display global and addressable
16973 attributes.
16974 (add_referenced_var): Clarify documentation when marking
16975 variables call-clobbered.
16976 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
16977 instead of needs_to_live_in_memory.
16978 (mark_call_clobbered): If the variable is a tag, mark it
16979 DECL_EXTERNAL.
16980 * tree-gimple.c (is_gimple_reg): Don't check for
16981 TREE_ADDRESSABLE.
16982 (is_gimple_non_addressable): Likewise.
16983 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
16984 needs to be marked call-clobbered.
16985 (setup_pointers_and_addressables): Call is_global_var instead
16986 of needs_to_live_in_memory.
16987 * tree-ssa-dce.c (need_to_preserve_store): Remove.
16988 Update all users with is_global_var.
16989 (mark_stmt_if_obviously_necessary): Fix processing of aliased
16990 stores. Don't check the virtual definitions. Rather, check
16991 whether the store is going into global memory.
16992 (find_obviously_necessary_stmts): Get the symbol from the PHI
16993 result.
16994 * tree-ssa-operands.c (get_call_expr_operands): Do not add
16995 clobbering may-defs if the call does not have side effects.
16996
16997 2004-08-12 Jakub Jelinek <jakub@redhat.com>
16998
16999 PR c++/16276
17000 * output.h (default_function_rodata_section,
17001 default_no_function_rodata_section): New prototypes.
17002 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
17003 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
17004 (TARGET_ASM_OUT): Add it.
17005 * varasm.c (default_function_rodata_section,
17006 default_no_function_rodata_section): New functions.
17007 * final.c (final_scan_insn): Call
17008 targetm.asm_out.function_rodata_section instead of
17009 readonly_data_section.
17010 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
17011 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
17012 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
17013 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
17014 Likewise.
17015 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
17016 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
17017 Likewise.
17018 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
17019 Likewise.
17020 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
17021 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
17022 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
17023
17024 2004-08-12 Paul Brook <paul@codesourcery.com>
17025
17026 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
17027 frame info.
17028 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
17029 DWARF2_UNWIND_INFO.
17030
17031 2004-08-12 Ben Elliston <bje@au.ibm.com>
17032
17033 PR target/16286
17034 * config/rs6000/altivec.h: Change vector to __vector throughout.
17035 (Except for the `vector' macro itself).
17036
17037 2004-08-12 Zack Weinberg <zack@codesourcery.com>
17038
17039 * genpreds.c: Add capability to generate predicate bodies as
17040 well as function prototypes. Write function prototypes for
17041 the generic predicates too.
17042 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
17043 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
17044 (write_match_code, write_predicate_expr, write_one_predicate_function)
17045 (parse_option): New functions.
17046 (output_predicate_decls): Delete.
17047 (main): Read the machine description, process DEFINE_PREDICATE or
17048 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
17049 as appropriate.
17050
17051 * genrecog.c (struct decision_test): Replace index with
17052 struct pred_data pointer.
17053 (next_index): Remove, unused.
17054 (pred_table, preds, special_mode_pred_table): Delete.
17055 (compute_predicate_codes, process_define_predicate): New functions.
17056 (validate_pattern, add_to_sequence, write_switch): Update for
17057 new data structures.
17058 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
17059 Check both error_count and have_error.
17060
17061 * gensupport.c (in_fname, first_predicate): New globals.
17062 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
17063 (predicate_table, last_predicate, old_pred_table)
17064 (old_special_pred_table): New statics.
17065 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
17066 (add_predicate, init_predicate_table): New functions.
17067 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
17068 (init_md_reader_args_cb): Use the global in_fname. No need to zero
17069 it or max_include_len. Call init_predicate_table.
17070 (read_rtx): Run the predicate queue after the attribute queue
17071 but before all the others.
17072 * gensupport.h (in_fname, struct pred_data, first_predicate)
17073 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
17074 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
17075 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
17076 * dummy-conditions.c: Don't include bconfig.h, system.h,
17077 coretypes.h, tm.h, or system.h. Do include stddef.h.
17078 Duplicate declaration of struct c_test from gensupport.h.
17079
17080 * Makefile.in (OBJS-common): Add insn-preds.o.
17081 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
17082 (insn-preds.c, insn-preds.o): New rules.
17083 (s-preds): Also generate insn-preds.c.
17084 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
17085 Update dependencies.
17086 (print-rtl.o, print-rtl1.o): Correct dependencies.
17087
17088 * recog.h: Delete prototypes of predicate functions.
17089
17090 * doc/md.texi (Predicates): New section with complete
17091 documentation of operand/operator predicates. Remove some
17092 incomplete documentation of predicates from other places.
17093 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
17094 PREDICATE_CODES; indicate that both are deprecated in favor
17095 of define_predicate/define_special_predicate.
17096
17097 * config/ia64/ia64.c: All predicate function definitions moved
17098 to ia64.md, except
17099 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
17100 (ia64_expand_load_address, ia64_expand_move):
17101 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
17102
17103 * config/ia64/ia64.md: All predicates now defined here.
17104 (symbolic_operand): Is now a special predicate.
17105
17106 * config/ia64/ia64.h: Declare ia64_section_threshold.
17107 (PREDICATE_CODES): Delete.
17108
17109 2004-08-12 Richard Henderson <rth@redhat.com>
17110
17111 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
17112 * c-semantics.c (add_stmt): Set it.
17113 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
17114 before instantiating a variable sized type.
17115
17116 2004-08-12 Richard Henderson <rth@redhat.com>
17117
17118 * stor-layout.c (round_up, round_down): Move ...
17119 * fold-const.c (round_up, round_down): ... here. Use
17120 multiple_of_p to avoid any arithmetic at all.
17121
17122 2004-08-12 Richard Henderson <rth@redhat.com>
17123
17124 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
17125 (gimplify_init_ctor_preeval_1): New.
17126 (gimplify_init_ctor_preeval): New.
17127 (gimplify_init_ctor_eval): New.
17128 (gimplify_init_constructor): Use them. Always gimplify the LHS
17129 object first.
17130
17131 2004-08-12 Ziemowit Laski <zlaski@apple.com>
17132
17133 (This patch is part of merge of objc-improvements-branch
17134 into mainline.)
17135
17136 * doc/frontends.texi: Mention Objective-C++ in addition to
17137 Objective-C.
17138 * doc/install.texi: Add 'obj-c++' to list of configurable
17139 languages.
17140 * doc/invoke.texi: Rename Objective-C option headings to
17141 indicate they also apply to Objective-C++. List file
17142 extensions for Objective-C++ sources. Mention that
17143 ObjC and ObjC++ compilations may also use C and C++ options,
17144 respectively. Point users to doc/standards.texi for
17145 further info on ObjC and ObjC++.
17146 * doc/sourcebuild.texi: Mention the objcp/ directory and
17147 the Objective-C++ sources it contains.
17148 * doc/standards.texi: Update link to Apple ObjC site;
17149 add link to gcc readings.html WWW doc.
17150
17151 2004-08-12 Alan Modra <amodra@bigpond.net.au>
17152
17153 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
17154 and 2004-07-14 changes.
17155
17156 2004-08-12 Paul Brook <paul@codesourcery.com>
17157
17158 * doc/invoke.texi: Fix typo.
17159
17160 2004-08-11 Devang Patel <dpatel@apple.com>
17161
17162 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
17163 and -no_dead_strip_inits_and_terms.
17164 (LINK_SPEC): Same.
17165 * doc/invoke.texi (Darwin Options): Document -dead_strip and
17166 -no_dead_strip_inits_and_terms.
17167
17168 2004-08-11 Paul Brook <paul@codesourcery.com>
17169
17170 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
17171 (arm_load_pic_register): ... to this.
17172 * config/arm/arm.c (arm_finalize_pic): Rename ...
17173 (arm_load_pic_register): ... to this. Always output insns at the
17174 current location. Load via low reg in thumb mode.
17175 (arm_expand_prologue): Call arm_load_pic_register.
17176 (thumb_expand_prologue): Ditto.
17177 * config/arm/arm.h (FINALIZE_PIC): Remove.
17178 * config/arm/arm.md (builtin_setjmp_receiver): Call
17179 arm_load_pic_register.
17180
17181 2004-08-11 Paul Brook <paul@codesourcery.com>
17182
17183 * arm.c (thumb_force_lr_save): Add prototype.
17184 (thumb_compute_save_reg_mask): New function.
17185 (thumb_find_work_register): New function.
17186 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
17187 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
17188 Don't clobber r3 when removing pretend args.
17189 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
17190 (thumb_output_function_prologue): Use new functions.
17191 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
17192 * arm.h (THUMB_REG_PUSHED_P): Remove.
17193
17194 2004-08-11 James E Wilson <wilson@specifixinc.com>
17195
17196 PR rtl-optimization/16490
17197 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
17198 global_live_at_end for new basic block if already set for other blocks.
17199
17200 2004-08-11 David Edelsohn <edelsohn@gnu.org>
17201
17202 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
17203
17204 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
17205 (mfcr rlwinm rlwinm patterns): Set length to 12.
17206
17207 2004-08-11 Andrew MacLeod <amacleod@redhat.com>
17208
17209 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
17210 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
17211 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
17212 (start_ssa_stmt_operands): Delete.
17213 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
17214 struct stmt_operands_d.
17215 (build_ssa_operands): New extern entry point.
17216 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
17217 building code, replace with create_ssa_artficial_load_stmt().
17218 * tree-ssa-operands.c (struct voperands_d): Delete.
17219 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
17220 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
17221 (free_uses, free_defs, free_vuses, free_v_may_defs,
17222 free_v_must_defs): Remove dealloc parameter.
17223 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
17224 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
17225 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
17226 vector comparisons, ssa_name reuse, and allocations here.
17227 (verify_start_operands): Delete.
17228 (finalize_ssa_stmt_operands): Set new operands by calling finalize
17229 routines.
17230 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
17231 (append_def, append_usei): Simplify to simple accumulation.
17232 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
17233 duplicates and simple accumulation.
17234 (free_ssa_operands): Free vectors in a stmt_operand structure.
17235 (build_ssa_operands): New. Create a new stmt_operand structure from
17236 a stmt and an old set of stmt_operands.
17237 (get_stmt_operands): Simplify and call build_ssa_operands.
17238 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
17239 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
17240 add_call_read_ops): Don't pass prev_vops around anymore.
17241 (note_addressable): Return if no stmt annotation.
17242 (copy_virtual_operands): Access v_may_def operands through a struct.
17243 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
17244 hash tables without treating the stmt as a real stmt.
17245 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
17246 v_may_def def and use through a struct instead of 2 array elements.
17247 (struct v_may_def_optype_d): Use v_may_def_operand_type.
17248 (struct stmt_operands_d): New. Struct for storing all operand vectors.
17249
17250 2004-08-11 Nick Clifton <nickc@redhat.com>
17251
17252 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
17253 this funciton's behaviour. Return true when the current function
17254 has a section attribute and -mlong-calls is in effect.
17255 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
17256 short-call marker when -mlong-calls is in effect and the function
17257 has a section attribute.
17258
17259 2004-08-10 Zack Weinberg <zack@codesourcery.com>
17260
17261 * stmt.c (expand_return): If asked to return the RESULT_DECL,
17262 just call expand_value_return on result_rtl.
17263
17264 2004-08-10 Richard Henderson <rth@redhat.com>
17265
17266 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
17267 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
17268 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
17269 (add_location_or_const_value_attribute): ... not here. Use
17270 loc_descriptor_from_tree if possible.
17271 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
17272 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
17273 values specially.
17274 (loc_descriptor_from_tree): New. Update callers.
17275 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
17276 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
17277 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
17278 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
17279 and BUILT_IN_STACK_RESTORE.
17280 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
17281 * stmt.c (expand_stack_alloc): Remove.
17282 * tree-mudflap.c (mx_register_decls): Don't look for
17283 BUILT_IN_STACK_ALLOC.
17284 * tree-nested.c (convert_local_reference): Likewise.
17285 * tree.h (DECL_VALUE_EXPR): New.
17286
17287 2004-08-10 Richard Henderson <rth@redhat.com>
17288
17289 * stor-layout.c (round_up): Check for 0/1 before dividing.
17290 (round_down): Likewise.
17291
17292 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
17293
17294 2004-08-09 Mark Mitchell <mark@codesourcery.com>
17295
17296 * config.gcc (arm*-*-eabi*): New target.
17297 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
17298 (TARGET_LIB_INT_CMP_BIASED): Likewise.
17299 * expmed.c (expand_divmod): Try a two-valued divmod function as a
17300 last resort.
17301 * gthr.h: Remove bogus tokens at end of #pragma.
17302 * optabs.c (expand_twoval_binop_libfunc): New function.
17303 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
17304 (prepare_float_lib_cmp): Try reversing the condition.
17305 (debug_optab_libfuncs): New function.
17306 * optabs.h (expand_twoval_binop_libfunc): Declare.
17307 * config/arm/arm.c (arm_init_libfuncs): New function.
17308 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
17309 (TARGET_INIT_LIBFUNCS): Define it.
17310 * config/arm/arm.h (TARGET_BPABI): New macro.
17311 * config/arm/arm-protos.h
17312 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
17313 * config/arm/bpabi.S: New file.
17314 * config/arm/bpabi.c: Likewise.
17315 * config/arm/bpabi.h: Likewise.
17316 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
17317 (__aeabi_drsub): Likewise.
17318 (__aeabi_dsub): Likewise.
17319 (__aeabi_dadd): Likewise.
17320 (__aeabi_ui2d): Likewise.
17321 (__aeabi_i2d): Likewise.
17322 (__aeabi_f2d): Likewise.
17323 (__aeabi_dmul): Likewise.
17324 (__aeabi_ddiv): Likewise.
17325 (__aeabi_cdrcmple): Likewise.
17326 (__aeabi_cdcmpeq): Likewise.
17327 (__aeabi_cdcmple): Likewise.
17328 (__aeabi_dcmpeq): Likewise.
17329 (__aeabi_dcmplt): Likewise.
17330 (__aeabi_dcmple): Likewise.
17331 (__aeabi_dcmpge): Likewise.
17332 (__aeabi_dcmpgt): Likewise.
17333 (__aeabi_dcmpun): Likewise.
17334 (__aeabi_d2iz): Likewise.
17335 (__aeabi_d2uiz): Likewise.
17336 (__aeabi_d2f): Likewise.
17337 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
17338 (__aeabi_frsub): Likewise.
17339 (__aeabi_fsub): Likewise.
17340 (__aeabi_fadd): Likewise.
17341 (__aeabi_ui2f): Likewise.
17342 (__aeabi_i2f): Likewise.
17343 (__aeabi_fmul): Likewise.
17344 (__aeabi_fdiv): Likewise.
17345 (__aeabi_cfrcmple): Likewise.
17346 (__aeabi_cfcmpeq): Likewise.
17347 (__aeabi_cfcmple): Likewise.
17348 (__aeabi_fcmpeq): Likewise.
17349 (__aeabi_fcmplt): Likewise.
17350 (__aeabi_fcmple): Likewise.
17351 (__aeabi_fcmpge): Likewise.
17352 (__aeabi_fcmpgt): Likewise.
17353 (__aeabi_fcmpun): Likewise.
17354 (__aeabi_f2iz): Likewise.
17355 (__aeabi_f2uiz): Likewise.
17356 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
17357 (__aeabi_uidivmod): New function or alias.
17358 (__aeabi_idivmod): Likewise.
17359 (__aeabi_idiv0): Likewise.
17360 (__aeabi_ldiv0): Likewise.
17361 (__aeabi_llsr): Likewise.
17362 (__aeabi_lasr): Likewise.
17363 (__aeabi_llsl): Likewise.
17364 (bpabi.S): Include it.
17365 * config/arm/libgcc-bpabi.ver: New file.
17366 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
17367 (LINK_SPEC): Remove.
17368 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
17369 __aeabi_ulcmp.
17370 * config/arm/t-bpabi: New file.
17371 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
17372 (TARGET_LIB_INT_CMP_BIASED): Likewise.
17373
17374 2004-08-10 David Edelsohn <edelsohn@gnu.org>
17375
17376 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
17377 * config/rs6000/rs6000.md (clrmemsi): New pattern.
17378 * config/rs6000/rs6000.c (expand_block_clear): New function.
17379 (expand_block_move): Convert alignment to bits. Use SImode and
17380 HImode for unaligned addresses if not STRICT_ALIGNMENT.
17381
17382 2004-08-10 Caroline Tice <ctice@apple.com>
17383
17384 * varasm.c (unlikely_section_label): New global variable.
17385 (unlikely_text_section_name): New global variable.
17386 (text_section): Remove alignment statement.
17387 (unlikely_text_section): Remove alignment statement; use
17388 unlikely_section_label rather than hard-coded string.
17389 (assemble_start_function): Initialize unlikely_section_label and
17390 unlikely_text_section_name; make sure cold section is properly
17391 aligned at start of function; output unlikely_section_label if
17392 appropriate.
17393
17394 2004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
17395
17396 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
17397 * config/s390/s390.c (s390_canonicalize_comparison): New function.
17398 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
17399 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
17400 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
17401 ("*tmqi_mem"): Remove SUBREG from pattern.
17402 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
17403 ("*andsi3_cconly"): Likewise.
17404
17405 2004-08-10 H.J. Lu <hongjiu.lu@intel.com>
17406
17407 PR target/16909
17408 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
17409
17410 2004-08-10 Janis Johnson <janis187@us.ibm.com>
17411
17412 * doc/sourcebuild.texi (compat testing): Document available test
17413 framework commands. Use the preferred spelling of DejaGnu.
17414
17415 2004-08-10 Daniel Berlin <dberlin@dberlin.org>
17416
17417 * lambda.h: Add matrix type, and prototypes for remainder of
17418 matrix and vector functions.
17419 (lambda_vector_mult_const): New function.
17420 (lambda_vector_negate): Ditto.
17421 (lambda_vector_add): Ditto.
17422 (lambda_vector_add_mc): Ditto.
17423 (lambda_vector_copy): Ditto.
17424 (lambda_vector_zerop): Ditto.
17425 (lambda_vector_equal): Ditto.
17426 (lambda_vector_min_nz): Ditto.
17427 (lambda_vector_first_nz): Ditto.
17428 (lambda_vector_matrix_mult): Ditto.
17429 * lambda-mat.c: New file.
17430 * Makefile.in (lambda-mat.o): New.
17431
17432 2004-08-10 Andrew MacLeod <amacleod@redhat.com>
17433
17434 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
17435 after linking stmt into the program.
17436 (bsi_remove): Don't call modify_stmt.
17437 * tree-complex.c (update_complex_assignment,
17438 expand_complex_comparison): Call modify_stmt after changing the stmt.
17439 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
17440 removing the stmt.
17441 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
17442 the stmt, and only if needed.
17443 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
17444 expression.
17445 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
17446 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
17447 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
17448 (eliminate_redundant_computations): Don't pass an annotation. Call
17449 modify_stmt rather than setting the annotation directly.
17450 (record_equivalences_from_stmt): Remove unused local 'j'.
17451 (cprop_operand): Take a stmt rather than an annotation as a parameter.
17452 Call modify_stmt.
17453 (cprop_into_stmt): Pass stmt rather than annotation.
17454 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
17455 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
17456 modify_stmt.
17457 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
17458
17459 2004-08-10 Jason Merrill <jason@redhat.com>
17460
17461 PR middle-end/16948
17462 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
17463 the RESULT_DECL.
17464
17465 2004-08-10 Geoffrey Keating <geoffk@apple.com>
17466
17467 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
17468 hash function.
17469
17470 2004-08-10 Roger Sayle <roger@eyesopen.com>
17471
17472 * config/mips/mips.md: New reciprocal square root patterns that
17473 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
17474
17475 2004-08-10 Paul Brook <paul@codesourcery.com>
17476
17477 * config/arm/arm-protos.h (arm_set_return_address,
17478 thumb_set_return_address): Add prototypes.
17479 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
17480 * config/arm/arm.c (arm_compute_func_type,
17481 use_return_insn, arm_compute_save_reg0_reg12_mask,
17482 arm_compute_save_reg_mask, arm_output_function_prologue,
17483 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
17484 current_function_calls_eh_return.
17485 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
17486 old eh code.
17487 (arm_set_return_address, thumb_set_return_address): New functions.
17488 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
17489 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
17490 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
17491 (epilogue): Use the stackadj register.
17492 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
17493
17494 2004-08-10 Jakub Jelinek <jakub@redhat.com>
17495
17496 PR target/3144
17497 * expr.c (move_by_pieces_ninsns): Add max_size argument.
17498 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
17499 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
17500 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
17501 but using MOVE_RATIO.
17502 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
17503 (can_store_by_pieces): Change max_size type to unsigned int.
17504 (store_by_pieces_1): Likewise. Pass max_size to
17505 move_by_pieces_ninsns.
17506 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
17507 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
17508 to move_by_pieces_ninsns.
17509 (STORE_BY_PIECES_P): Define.
17510 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
17511 to move_by_pieces_ninsns.
17512 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
17513
17514 * config/i386/i386.h (CLEAR_RATIO): Define.
17515
17516 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
17517
17518 * expr.c (expand_expr_real_1): Add back code that was not dead.
17519
17520 2004-08-09 Andrew Pinski <apinski@apple.com>
17521
17522 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
17523 which is found to be compatible before returning the aliasing set.
17524
17525 2004-08-09 Daniel Jacobowitz <dan@debian.org>
17526
17527 * ggc-zone.c (struct alloc_zone): Add statistics counters.
17528 (always_collect): New flag.
17529 (ggc_alloc_zone_1): Update statistics support. Don't include
17530 overhead in allocated counter.
17531 (sweep_pages): Update allocated counter for large pages. Don'y
17532 include overhead.
17533 (ggc_collect_1): Always collect.
17534 (ggc_collect): Honor always_collect flag. Sum all zones to decide
17535 whether to collect.
17536 (SCALE, LABEL): New macros.
17537 (ggc_print_statistics): Add statistics support.
17538
17539 2004-08-09 Roger Sayle <roger@eyesopen.com>
17540
17541 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
17542 (init_expmed): Fix potential overrun problem with "all.reg".
17543 (expand_sdiv2_pow2): Add an alternate implementation for signed
17544 division, if the target provides a suitable conditional move insn.
17545
17546 2004-08-09 Paul Brook <paul@codesourcery.com>
17547 Richard Henderson <rth@redhat.com>
17548
17549 * unwind-dw2.c (uw_install_context_1): Update target saved stack
17550 pointer.
17551
17552 2004-08-09 Geoffrey Keating <geoffk@apple.com>
17553
17554 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
17555 Check DATA limit only if there's no AS limit. Ignore insanely
17556 low DATA limits.
17557 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
17558 but take care that the AS limit isn't overrun.
17559 * doc/invoke.texi: Update documentation of min-heapsize parameter.
17560
17561 2004-08-09 Jeff Law <law@redhat.com>
17562
17563 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
17564 (tree-ssa-threadupdate.o): Add dependencies.
17565 * tree-ssa-threadupdate.c: New file.
17566 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
17567 (rewrite_vars_out_of_ssa): Remove prototype.
17568 (cleanup_tree_cfg): Returns a bool.
17569 * tree.h (thread_through_all_blocks): Prototype.
17570 * tree-outof-ssa.c (SSANORM_*): Move into here.
17571 (remove_ssa_form): Now static.
17572 (rewrite_vars_out_of_ssa): Kill.
17573 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
17574 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
17575 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
17576 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
17577 anything was changed.
17578 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
17579 from the PHI's annotation rather than the edge associated with
17580 the new argument.
17581 * tree-ssa-dom.c (redirection_edges): Kill.
17582 (redirect_edges_and_update_ssa_graph): Kill.
17583 (tree_ssa_dominator_optimize): Do not reset forwardable flag
17584 for blocks anymore. Do not initialize redirection_edges.
17585 Call thread_through_all_blocks. Simplify code for cleanup
17586 of the CFG and iterating. No longer call cleanup_tree_cfg
17587 outside the iteration loop.
17588 (thread_across_edge): No longer mess with forwardable blocks.
17589
17590 2004-08-09 Zack Weinberg <zack@codesourcery.com>
17591
17592 * explow.c (memory_address): Use memory_address_p.
17593 * recog.c (general_operand): Likewise.
17594 * regrename.c: No need to define REG_OK_STRICT.
17595
17596 2004-08-09 Steven Bosscher <stevenb@suse.de>
17597
17598 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
17599 New timers.
17600 * gcse.c: Include timevar.h.
17601 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
17602 and global_copy_prop_count.
17603 (local_const_prop_count, local_copy_prop_count): New static globals.
17604 (gcse_main): Set the right timevar for each pass.
17605 (cprop_jump): Increment global_const_prop_count when a constant is
17606 propagated. Add "GLOBAL" to dump output.
17607 (cprop_insn): Increment global_const_prop_count when a constant is
17608 propagated, or global_copy_prop_count when a copy is propagated.
17609 (do_local_cprop): Likewise for local_const_prop_count and
17610 local_copy_prop_count.
17611 (one_cprop_pass): Initialize const/cprop counters to zero.
17612 Print out results of local and global const/cprop separately.
17613 (bypass_block): Break over-length line.
17614 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
17615 for bb-reorder.o and tracer.o.
17616
17617 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
17618
17619 * Makefile.in (GTFILES): Remove stmt.c
17620 (stmt.o): Do not depend on gt-stmt.h.
17621 * emit-rtl.c (emit_line_note): Do not call
17622 set_file_and_line_for_stmt.
17623 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
17624 do everything.
17625 * function.c (free_after_parsing): Do not free STMT field.
17626 (allocate_struct_function): Do not call init_stmt_for_function.
17627 (assign_stack_temp_for_type): Do not accept values of keep
17628 other than 0 or 1.
17629 (init_temp_slots): Do not initialize removed variables.
17630 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
17631 and X_VAR_TEMP_SLOT_LEVEL fields.
17632 * rtl.h (set_file_and_line_for_stmt): Remove.
17633 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
17634 struct stmt_status, cond_stack, case_stack, nesting_stack,
17635 nesting_depth, emit_locus, set_file_and_line_for_stmt,
17636 same_case_target_p, init_stmt_for_function, emit_nop,
17637 expand_start_cond, expand_start_elseif, expand_start_else,
17638 expand_elseif, expand_end_cond): Remove.
17639 (preserve_subexpressions_p): Remove references to CFUN->STMT.
17640 (expand_start_case, expand_end_case_type): Remove, merge into...
17641 (expand_case): ... this one, including other bits from
17642 expand_expr_real_1. Inline same_case_target_p. Turn members
17643 of CASE_STACK into local variables.
17644 (emit_case_bit_tests): Inline same_case_target_p.
17645 (add_case_node): Add HEAD argument, return new head of the list,
17646 do not handle default label here.
17647 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
17648 expand_start_elseif, current_nesting_level, expand_start_case,
17649 expand_end_case_type, expand_end_case, add_case_node,
17650 init_stmt_for_function, expand_elseif): Remove prototypes.
17651 (expand_case): Add prototype.
17652
17653 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
17654
17655 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
17656
17657 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
17658
17659 * expr.c (var_rtx): Remove.
17660 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
17661 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
17662 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
17663 Abort.
17664 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
17665 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
17666 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
17667
17668 2004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
17669 Ayal Zaks <zaks@il.ibm.com>
17670
17671 * common.opt (freschedule-modulo-scheduled-loops): New flag.
17672 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
17673 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
17674 when -freschedule-modulo-scheduled-loops flag is not specified.
17675 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
17676 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
17677 More accurate placing of insn in row of partial schedule.
17678 (ps_insn_find_column): New function.
17679 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
17680 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
17681 (schedule_region): Use sched_is_disabled_for_current_region_p.
17682 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
17683
17684 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
17685
17686 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
17687 change.
17688
17689 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
17690
17691 * config/i386/i386.c (ix86_expand_clrmem): Properly call
17692 gen_strset for 64bit target.
17693
17694 2004-08-07 Olivier Hainque <hainque@act-europe.fr>
17695
17696 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
17697
17698 2004-08-07 Jason Merrill <jason@redhat.com>
17699
17700 Make return in memory explicit.
17701 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
17702 (assign_parm_find_data_types): Remove code for old front end
17703 invisible reference handling.
17704 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
17705 (expand_function_end): Likewise.
17706 * gimplify.c (gimplify_return_expr): Handle a dereferenced
17707 RESULT_DECL.
17708 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
17709 (declare_return_variable): Handle DECL_BY_REFERENCE.
17710 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
17711 (cp_genericize_r): Use convert_from_reference.
17712 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
17713 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
17714
17715 * c-common.c (c_warn_unused_result): Check TREE_USED before
17716 warning about a CALL_EXPR with an unused value.
17717
17718 2004-08-06 Mark Mitchell <mark@codesourcery.com>
17719
17720 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
17721 to the compiler. Use -fshort-wchar by default.
17722
17723 2004-08-06 Pat Haugen <pthaugen@us.ibm.com>
17724
17725 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
17726 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
17727 threshhold.
17728 * doc/invoke.texi (param): Document min-crossjump-insns.
17729
17730 2004-08-06 Richard Sandiford <rsandifo@redhat.com>
17731
17732 PR c/13282
17733 * c.opt (Wmissing-field-initializers): New option.
17734 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
17735 * c-typeck.c (pop_init_level): Guard the missing field warning with
17736 warn_missing_field_initializers rather than extra_warnings.
17737 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
17738 some of the explanation from...
17739 (-Wextra): ...here. Say that the missing field warning can be
17740 seperately controlled by -Wmissing-field-initializers.
17741
17742 2004-08-06 Paolo Bonzini <bonzini@gnu.org>
17743
17744 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
17745 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
17746 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
17747 * tree.def (ENTRY_VALUE_EXPR): Remove.
17748
17749 2004-08-06 Jakub Jelinek <jakub@redhat.com>
17750
17751 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
17752 the places where it is actually needed. Don't use repz; stosb
17753 for -Os with sufficiently small constant sizes.
17754 For sufficiently small repz; stos{l,q} repeat counts use a sequence
17755 of stos{l,q} instructions instead.
17756
17757 2004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17758
17759 PR tree-optimization/16807
17760 * loop-iv.c (dump_iv_info): Dump invariants correctly.
17761 (iv_subreg, iv_extend): Express value of invariant purely in
17762 base field.
17763
17764 2004-08-06 Mark Mitchell <mark@codesourcery.com>
17765
17766 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
17767 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
17768
17769 2004-08-06 Roman Zippel <zippel@linux-m68k.org>
17770
17771 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
17772 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
17773 pre_dec_operand.
17774 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
17775 pattern until reload is finished to allow better code generation
17776 and split them completely into separate instrunctions.
17777 (*andsi3_split): New pattern.
17778
17779 2004-08-05 Mark Mitchell <mark@codesourcery.com>
17780
17781 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
17782 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
17783 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
17784 * tree.h (handle_dll_attribute): Declare. Test
17785 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
17786 * c-common.h (c_determine_visibility): Declare.
17787 * c-common.c (c_determine_visibility): New function.
17788 * c-decl.c (finish_decl): Use it.
17789 (finish_function): Likewise.
17790 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
17791 zero, by default. Use #if, not #ifdef, to test it.
17792 * config/arm/arm.c (arm_attribute_table): Use
17793 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
17794 #if.
17795 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
17796 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
17797 to 1.
17798 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
17799 * config/i386/i386.c (ix86_attribute_table): Use
17800 handle_dll_attribute for dllimport/dllexport. Test
17801 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
17802 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
17803 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
17804 it to 1.
17805 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
17806 with #if.
17807 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
17808 it to 1.
17809 * doc/extend.texi (dllexport): Clarify and correct documentation.
17810 (dllimport): Likewise.
17811 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
17812 handle_dll_attribute.
17813
17814 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17815
17816 * tree-ssa-loop-manip.c: New file.
17817 * Makefile.in (tree-ssa-loop-manip.o): Add.
17818 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
17819 Declare.
17820 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
17821 form.
17822 (tree_ssa_loop_done): Verify loop closed ssa form.
17823 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
17824
17825 2004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17826
17827 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
17828 pa_asm_output_aligned_local): New functions.
17829 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
17830 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
17831 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
17832 pa_asm_output_aligned_common.
17833 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
17834 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
17835 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
17836 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
17837 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
17838 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
17839 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
17840 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
17841 common data.
17842
17843 2004-08-05 Andrew Pinski <apinski@apple.com>
17844
17845 * objc/objc-act.c (build_objc_string_object): Mark the address
17846 expression as constant.
17847
17848 2004-08-05 David Edelsohn <edelsohn@gnu.org>
17849
17850 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
17851 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
17852 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
17853
17854 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
17855
17856 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
17857 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
17858 out, and associated obsolete comments.
17859
17860 2004-08-05 Nathan Sidwell <nathan@codesourcery.com>
17861
17862 * tree.h (force_fit_type): Return a tree, take three flags.
17863 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
17864 TREE_CONSTANT_OVERFLOW here.
17865 (int_const_binop, const_binop): Adjust.
17866 (size_int_type): Do sign extension here.
17867 (fold_convert_const, optimize_bit_field_compare,
17868 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
17869 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
17870 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
17871
17872 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17873
17874 PR tree-optimization/16864
17875 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
17876 for ssa names without default_def.
17877
17878 2004-08-05 Richard Sandiford <rsandifo@redhat.com>
17879
17880 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
17881 frame pointer, restore eax with an ebp-relative address.
17882
17883 2004-08-04 Geoffrey Keating <geoffk@apple.com>
17884
17885 PR 14516
17886 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
17887 * c-common.h (make_rtl_for_local_static): Delete.
17888 * c-decl.c (shadow_tag_warned): Clean up comment.
17889 (finish_decl): Clean up spacing. Use set_user_assembler_name when
17890 appropriate. Don't pass asmspec to rest_of_decl_compilation.
17891 * c-semantics.c (make_rtl_for_local_static): Delete.
17892 * expr.c (init_block_move_fn): Use set_user_assembler_name.
17893 (init_block_clear_fn): Likewise.
17894 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
17895 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
17896 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
17897 * tree.h (make_decl_rtl): Remove second parameter.
17898 (set_user_assembler_name): New.
17899 * varasm.c (set_user_assembler_name): New.
17900 (make_decl_rtl): Remove second parameter. Update callers in many
17901 files.
17902
17903 2004-08-05 Adam Nemet <anemet@lnxw.com>
17904
17905 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
17906 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
17907 to LynxOS 4.0.
17908 * gthr-lynx.h: New file.
17909 * config/lynx-ng.h: Remove file.
17910 * config/lynx.h: Update to LynxOS 4.0.
17911 * config/t-lynx: New file.
17912 * config/i386/lynx-ng.h: Remove file.
17913 * config/i386/lynx.h: Update to LynxOS 4.0.
17914 * config/rs6000/lynxbase.h: Remove file.
17915 * config/rs6000/lynx.h: Update to LynxOS 4.0.
17916 * config/rs6000/t-lynx: New file.
17917 * doc/install.texi (Options specification): Remove reference to
17918 LynxOS from systems where --with-gnu-as makes a difference.
17919
17920 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
17921
17922 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
17923 __UINTMAX_TYPE__.
17924 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
17925 __INTMAX_MAX__.
17926 (c_cpp_builtins): Call it.
17927 * doc/cpp.texi: Update.
17928
17929 2004-08-04 David Edelsohn <edelsohn@gnu.org>
17930
17931 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
17932 cost.
17933
17934 2004-08-04 Jan Hubicka <jh@suse.cz>
17935
17936 * basic-block.h (profile_staus): New global variable.
17937 * cfg.c (profile_status): Declare.
17938 (check_bb_profile): Break out from ....; use profile_status
17939 (dump_flow_info): ... here.
17940 * cfgbuild.c (find_basic_blocks): Set profile_status.
17941 * cfgexpand.c (tree_expand_cfg): Likewise.
17942 * predict.c (estimate_probability): Likewise.
17943 * profile.c (branch_prob): Likewise.
17944 * tree-cfg.c (build_tree_cfg): Likewise.
17945 (dump_function_to_file): Use check_bb_profile.
17946 * tree-pretty-print (dump_bb_header): Likewise.
17947 * tree-profile.c (do_tree_profiling): Cleanup.
17948
17949 2004-08-04 Zack Weinberg <zack@codesourcery.com>
17950
17951 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
17952 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
17953 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
17954 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
17955 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
17956 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
17957 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
17958 (ggc-none.o, errors.o): Move rule to generators section;
17959 correct dependencies.
17960 (min-insn-modes.o): Move rule to generators section; remove
17961 unnecessary explicit command; correct dependencies.
17962 (print-rtl.o, print-rtl1.o): Correct dependencies.
17963 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
17964 (mostlyclean): Update.
17965
17966 * errors.c: Include bconfig.h not config.h. Correct comment.
17967 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
17968 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
17969 * print-rtl.c: Don't include tm_p.h.
17970
17971 * rtl.h: Move forward-decl of struct function down where it's
17972 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
17973 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
17974
17975 2004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17976 Jeff Law <law@redhat.com>
17977
17978 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
17979 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
17980 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
17981 manipulate the duplicated ssa names.
17982 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
17983 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
17984 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
17985 New functions.
17986 (release_ssa_name): Do not release ssa names that may have multiple
17987 definitions.
17988 * tree.h (release_ssa_name_force, mark_for_rewrite,
17989 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
17990 marked_ssa_names): Declare.
17991 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
17992 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
17993 Update call to rewrite_ssa_into_ssa.
17994
17995 2004-08-04 Mark Mitchell <mark@codesourcery.com>
17996
17997 * defaults.h (TARGET_DECLSPEC): New macro.
17998 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
17999 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
18000 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
18001 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
18002 __declspec support.
18003 (TARGET_DECLSPEC): Define.
18004 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
18005 __declspec support.
18006 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
18007 __declspec support.
18008 (TARGET_DECLSPEC): Define.
18009 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
18010 __declspec support.
18011 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
18012 support.
18013 * doc/tm.texi (TARGET_DECLSPEC): Document.
18014
18015 * doc/extend.texi: Fix typo in comment.
18016
18017 2004-08-04 Paul Brook <paul@codesourcery.com>
18018
18019 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
18020 (TARGET_CXX): Use it.
18021 * target.h (struct gcc_target): Add cdtor_returns_this.
18022 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
18023 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
18024 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
18025
18026 2004-08-03 Nathan Sidwell <nathan@codesourcery.com>
18027
18028 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
18029 low/high pair. Do range checking directly.
18030 (interpret_integer): Adjust.
18031
18032 2004-08-04 Nick Clifton <nickc@redhat.com>
18033
18034 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
18035 GCC ABI.
18036 * doc/invoke.texi: Document this new switch and also the -mrenesas
18037 switch.
18038
18039 2004-08-04 Nathan Sidwell <nathan@codesourcery.com>
18040
18041 * cfglayout.c (insn_locators_initialize): Update the current
18042 location before initializing a location.
18043
18044 2004-08-03 Zack Weinberg <zack@codesourcery.com>
18045
18046 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
18047 (dbxout_function_end): Return after emitting the "Lscope" symbol
18048 under the same conditions that this function formerly wasn't called.
18049 Add explanatory comments.
18050
18051 PR 14860
18052 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
18053 on the new decl.
18054
18055 PR 13956
18056 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
18057 functions, broken out of dbxout_block.
18058 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
18059 stabs too, if it contains symbols. Use the begin_label and
18060 the Lscope label (emitted by dbxout_function_end) for the
18061 range of this block.
18062
18063 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
18064
18065 * doc/install.texi: Update autoconf version requirements.
18066
18067 2004-08-03 Zack Weinberg <zack@codesourcery.com>
18068
18069 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
18070 * recog.c (general_operand, immediate_operand, nonmemory_operand)
18071 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
18072 * regclass.c (record_reg_classes): Likewise.
18073 * reload.c (find_reloads): Likewise.
18074 * reload1.c (reload): Likewise.
18075
18076 2004-08-03 Zack Weinberg <zack@codesourcery.com>
18077
18078 * gensupport.c (init_md_reader_args_cb): Renamed from
18079 init_md_reader_args. Add third option, callback function for
18080 parsing program-specific options. Add diagnosis of incorrect
18081 number of input files.
18082 (init_md_reader): Fold into init_md_reader_args_cb.
18083 (init_md_reader_args): Now a thin wrapper around
18084 init_md_reader_args_cb.
18085 * gensupport.h: Update prototypes.
18086
18087 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
18088 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
18089 * genrecog.c: No need to diagnose lack of an input file;
18090 init_md_reader_args will handle it.
18091 * genconditions.c: Likewise, and use init_md_reader_args.
18092 * genconstants.c: Likewise, and no need to call read_md_rtx.
18093
18094 2004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
18095
18096 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
18097 declarations.
18098
18099 2004-08-03 Mike Stump <mrs@apple.com>
18100
18101 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
18102 for frameworks.
18103 * doc/invoke.texi (Darwin Options): Update to reflect above.
18104
18105 2004-08-03 Roger Sayle <roger@eyesopen.com>
18106
18107 PR middle-end/16790
18108 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
18109 truncations, not just global truncations.
18110
18111 2004-08-03 Andrew Pinski <apinski@apple.com>
18112
18113 PR bootstrap/16865
18114 * loop-iv.c (simplify_using_assignment): Initialize lhs.
18115
18116 2004-08-03 Paul Brook <paul@codesourcery.com>
18117
18118 * gcc/doc/install.texi: Document MPFR requirement.
18119
18120 2004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
18121
18122 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
18123 and mmap() explicitly instead of relying on preset autoconf cache
18124 variables.
18125 * configure: Regenerate.
18126
18127 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
18128
18129 PR target/16570
18130 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
18131 to tmake_file.
18132 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
18133 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
18134 to tmake_file.
18135
18136 * config/i386/t-gmm_malloc: New file.
18137 * config/i386/t-pmm_malloc: Likewise.
18138
18139 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
18140
18141 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
18142 Tanguy Fautrà <tfautre@pandora.be>
18143
18144 * config/i386/pmm_malloc.h: New file.
18145
18146 2004-08-03 Danny Smith <dannysmith@users.sourceforge.net>
18147
18148 * config/i386/gmm_malloc.h: New file.
18149
18150 2004-08-03 Dale Johannesen <dalej@apple.com>
18151
18152 * config/rs6000/rs6000.c (machopic_output_stub): Align Darwin stubs.
18153 * c-common.c: Include opts.h.
18154 (c_common_get_alias_set): Fix check for a single input file.
18155 * toplev.c: Remove current_file_decl.
18156 * tree.h: Ditto.
18157
18158 2004-08-03 Mark Mitchell <mark@codesourcery.com>
18159
18160 * config.gcc (arm*-*-symbianelf*): New target.
18161 * config/arm/symbian.h: New file.
18162
18163 * gthr-gnat.c: Add visibility #pragmas.
18164 * gthr-gnat.h : Likewise.
18165 * gthr.h: Likewise.
18166 * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
18167 (__ffsDI2): Likewise.
18168 (__clzSI2): Likewise.
18169 (__ctzSI2): Likewise.
18170 (__ctzDI2): Likewise.
18171 (__popcountSI2): Likewise.
18172 (__popcountDI2): Likewise.
18173 (__paritySI2): Likewise.
18174 (__parityDI2): Likewise.
18175 * libgcc2.h: Add visibility #pragmas.
18176 (__clzDI2): Add prototype.
18177 (__clzSI2): Likewise.
18178 (__ctzSI2): Likewise.
18179 (__ffsDI2): Likewise.
18180 (__ffsSI2): Likewise.
18181 (__ctzDI2): Likewise.
18182 (__popcountSI2): Likewise.
18183 (__popcountDI2): Likewise.
18184 (__paritySI2): Likewise.
18185 (__parityDI2): Likewise.
18186 * unwind-dw2-fde.h: Add visibility #pragmas.
18187 * unwind.h: Likewise.
18188
18189 2004-08-03 David Edelsohn <edelsohn@gnu.org>
18190 Dale Johannesen <dalej@apple.com>
18191 Roger Sayle <roger@eyesopen.com>
18192
18193 * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
18194 constants more accurately. Adjust costs for FMA instructions.
18195 Add cases for most logical and float operations. Recurse into
18196 most operands.
18197
18198 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
18199
18200 * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
18201
18202 2004-08-03 Pat Haugen <pthaugen@us.ibm.com>
18203
18204 * ra-build.c (conflicts_between_webs): For webs that cross a call add
18205 conflicts to regs_invalidated_by_call.
18206
18207 2004-08-03 Paul Brook <paul@codesourcery.com>
18208
18209 * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
18210
18211 2004-08-03 Jan Hubicka <jh@suse.cz>
18212
18213 * coverage.c (tree_coverage_counter_ref): Fix computation of the new
18214 ARRAY_REF argument.
18215
18216 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
18217
18218 * arm-cores.def: Sort by architecture. Add arm946es, arm966es,
18219 arm968es, arm10e, arm1020e, arm1022e.
18220 * invoke.texi: Update list of ARM cores.
18221 * arm-tune.md: Regenerate.
18222
18223 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
18224
18225 * arm/gentune.sh: New file.
18226 * arm/t-arm: New file.
18227 * arm/arm-tune.md: New file (autogenerated).
18228 * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
18229 * arm.md (attribute tune): Delete. Include arm-tune.md.
18230
18231 2004-08-03 Paolo Bonzini <bonzini@gnu.org>
18232
18233 * gcc.c (add_prefix, add_sysrooted_prefix): Remove
18234 penultimate parameter. All callers adjusted.
18235 (struct prefix_list): Remove used_flag_ptr.
18236 (find_a_file): Do not set *pl->used_flag_ptr.
18237 (warn_B, warn_std_ptr): Remove.
18238
18239 2004-08-03 Yossi Markovich <yossim@il.ibm.com>
18240 Mostafa Hagog <mustafa@il.ibm.com>
18241
18242 * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
18243
18244 2004-08-02 Geoffrey Keating <geoffk@apple.com>
18245
18246 * dwarf2out.c (output_call_frame_info): Don't change data format
18247 due to TARGET_USES_WEAK_UNWIND_INFO. Always refer to the local
18248 label. Use 'true' not '1'.
18249 * doc/install.texi (powerpc-*-darwin*): Mention cctools version
18250 required.
18251
18252 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
18253
18254 * gdbinit.in: Reflect previous changes to rtunion_def.
18255
18256 2004-08-02 Roger Sayle <roger@eyesopen.com>
18257
18258 * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
18259 -> "X % Y" is only valid for TRUNC_MOD_EXPR.
18260
18261 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
18262
18263 * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
18264 vec_p_reserve.
18265 * langhooks.h (lang_hooks::builtin_function): Rename parameter
18266 from "class" to "bt_class".
18267
18268 2004-08-02 Paul Brook <paul@codesourcery.com>
18269
18270 PR rtl-optimization/15068
18271 * flow.c (init_propagate_block_info): Check condition is reversible.
18272
18273 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
18274
18275 * gengtype.h (options::info): Change type to const char *.
18276 (enum gc_used_enum): Move out of struct type scope.
18277 * gengtype.c (create_option): Convert initializer for option::info to
18278 appropiate type.
18279 (adjust_field_type, walk_type, write_func_for_structure,
18280 write_root, write_roots): Remove pointless cast.
18281
18282 2004-08-02 J"orn Rennecke <joern.rennecke@superh.com>
18283
18284 * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
18285
18286 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
18287
18288 * rtl.h (union rtunion_def): Have all members start with the
18289 prefix "rt_".
18290 (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
18291 X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
18292 X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
18293 XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
18294 access.
18295 * gengtype.c (adjust_field_rtx_def): Likewise.
18296 * rtlanal.c (loc_mentioned_in_p): Likewise.
18297
18298 2004-08-02 Richard Sandiford <rsandifo@redhat.com>
18299
18300 * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
18301 Replace uses of mips/elf64.h with mips/elf.h
18302 * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
18303 (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
18304 (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
18305 (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
18306 (HANDLE_SYSV_PRAGMA): Delete.
18307 (ASM_OUTPUT_DEF): Fix formatting.
18308 * config/mips/elf64.h: Delete.
18309
18310 2004-08-01 Zack Weinberg <zack@codesourcery.com>
18311
18312 * config/ia64/ia64.c (got_symbolic_operand): Do require a
18313 symbol+offset operand to have its offset be zero mod 0x3fff
18314 when GOT entries are in use. Clarify logic in SYMBOL_REF
18315 case. Clarify comments.
18316 (ia64_expand_load_address): Split a symbol+offset load when
18317 the offset is nonzero mod 0x3fff, not 0x1fff.
18318
18319 2004-08-01 Geoffrey Keating <geoffk@apple.com>
18320
18321 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
18322 if trying to *store* to a non-offsettable address.
18323 * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
18324 a nonoffsettable address.
18325 (movdi_internal32): Don't move GPRs to a nonoffsettable address.
18326 Clean up.
18327 (movti_string): Don't move GPRs to a nonoffsettable address.
18328 (movti_ppc64): Don't move GPRs to a nonoffsettable address. Clean up.
18329
18330 2004-08-02 Ben Elliston <bje@au.ibm.com>
18331
18332 PR target/16155
18333 * config/rs6000/altivec.h: Replace typeof with __typeof__.
18334
18335 2004-08-01 Richard Henderson <rth@redhat.com>
18336
18337 * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
18338 variable sized types.
18339
18340 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
18341
18342 * doc/invoke.texi: In the MIPS options section, remove the passage
18343 saying that -mexplicit-relocs is usually disabled for -mabicalls
18344 -fno-unit-at-a-time.
18345 * config/mips/mips.c (override_options): Remove the code that enforced
18346 this rule.
18347
18348 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
18349
18350 * config/mips/mips.md (cprestore): Provide two alternatives, one for
18351 an in-range offset and one for an out-of-range offset. Wrap the latter
18352 in .set macro/.set nomacro if it's inside a .set nomacro block.
18353
18354 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
18355
18356 * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
18357 (mips_restore_gp): Declare.
18358 * config/mips/mips.c (mips_add_offset): Add a scratch register
18359 argument. Reimplement in rtl only, reusing MIPS16 logic from
18360 mips_output_mi_thunk.
18361 (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
18362 to mips_add_offset.
18363 (mips_gp_save_slot): Delete.
18364 (mips_restore_gp): New function.
18365 (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
18366 * config/mips/mips.md (exception_receiver): Turn into a
18367 define_insn_and_split. Use mips_restore_gp to do the split.
18368 (call_internal, call_value_internal, call_value_multiple_internal): Use
18369 mips_restore_gp to restore $gp.
18370
18371 2004-07-31 Andrew Pinski <apinski@apple.com>
18372
18373 PR other/16842
18374 * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
18375
18376 2004-07-31 Joseph S. Myers <jsm@polyomino.org.uk>
18377
18378 * c-decl.c (diagnose_mismatched_decls): Give error for external
18379 redeclaration of identifier declared with no linkage, not just
18380 warning with -Wtraditional. Do not check DECL_CONTEXT to give
18381 error for redeclaration with no linkage.
18382
18383 2004-07-30 Geoffrey Keating <geoffk@apple.com>
18384 Fariborz Jahanian <fjahanian@apple.com>
18385
18386 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
18387 non-offsettable addresses even for DImode.
18388 (rs6000_split_multireg_move): Cope with non-offsettable addresses
18389 being moved into multiple GPRs.
18390
18391 * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
18392 to 64.
18393 (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
18394 * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
18395 to 128.
18396 * config/rs6000/darwin-ldouble.c (isless): New macro.
18397 (inf): New macro.
18398 (nonfinite): New macro.
18399 (FPKINF): Delete.
18400 (_xlqadd): Completely rewrite.
18401 (_xlqmul): Correct overflow handling.
18402 (_xlqdiv): Correct overflow handling.
18403 * config/rs6000/darwin-ldouble-format: New file.
18404
18405 2004-07-30 Roger Sayle <roger@eyesopen.com>
18406 Richard Henderson <rth@redhat.com>
18407
18408 * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
18409 9 into the equivalent lea instruction.
18410
18411 2004-07-30 Richard Henderson <rth@redhat.com>
18412
18413 * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
18414 with DECL_INITIAL if fb_lvalue.
18415 * tree-gimple.c (is_gimple_id): Add CONST_DECL.
18416 * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
18417 with <Cxxx>.
18418 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
18419
18420 2004-07-30 Diego Novillo <dnovillo@redhat.com>
18421
18422 * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
18423 pointer escapes through a function call, assume that the
18424 callee will dereference it.
18425 (add_pointed_to_var): Assume that VALUE is always an
18426 ADDR_EXPR.
18427 (collect_points_to_info_r): Only call add_pointed_to_var if
18428 the value is an ADDR_EXPR.
18429
18430 2004-07-30 Diego Novillo <dnovillo@redhat.com>
18431
18432 * tree-ssa-alias.c (create_alias_map_for): Do not get the
18433 alias set of the inner type of ARRAY_TYPEs.
18434
18435 2004-07-29 Diego Novillo <dnovillo@redhat.com>
18436
18437 * tree-ssa-ccp.c (visit_assignment): Move code to prevent
18438 setting a non-register to UNDEFINED right before the call to
18439 set_lattice_value.
18440
18441 2004-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
18442
18443 * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
18444
18445 2004-07-29 Diego Novillo <dnovillo@redhat.com>
18446
18447 * tree-ssa.c (verify_flow_sensitive_alias_info): When
18448 comparing points-to sets of different pointers, make sure the
18449 second pointer is actually referenced in the code.
18450
18451 2004-07-29 Zack Weinberg <zack@codesourcery.com>
18452
18453 * config/ia64/ia64.c (setjmp_operand): Delete, unused.
18454 (got_symbolic_operand): Remove unreachable code.
18455 * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
18456 setjmp_operand; add entry for tls_symbolic_operand.
18457 * config/ia64/ia64-protos.h: Remove all prototypes of
18458 predicate functions.
18459
18460 2004-07-29 Mark Mitchell <mark@codesourcery.com>
18461
18462 * c-common.h (lang_post_pch_load): New variable.
18463 * c-pch.c (lang_post_pch_load): Define it.
18464 (c_common_read_pch): Use it.
18465 * cgraphunit.c (record_call_1): Give the front end a chance to
18466 record additional needed entities when a variable is marked as
18467 needed.
18468 * tlink.c (recompile_files): Robustify.
18469 (scan_linker_output): If a symbol is assigned to a file,
18470 but after recompilation is not present there, issue an error
18471 message.
18472
18473 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18474
18475 * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
18476 Take orig_loop argument and pass it to set_level.
18477 (schedule_sm): Pass the correct orig_loop to force_move_till.
18478
18479 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18480
18481 * cfgloop.c (update_latch_info): Update dominator of the new block.
18482 (canonicalize_loop_headers, flow_loops_find): Do not free dominance
18483 info.
18484 * dominance.c (verify_dominators): Check that the dominance tree is
18485 connected.
18486 (recount_dominator): Ignore unreachable blocks.
18487 (iterate_fix_dominators): Cleanup old dominance information before
18488 recomputing it.
18489
18490 2004-07-29 Diego Novillo <dnovillo@redhat.com>
18491
18492 * tree-ssa-operands.c (get_expr_operands): Revert changes
18493 to ADDR_EXPR processing introduced by:
18494 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18495 * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
18496
18497 2004-07-29 Joseph S. Myers <jsm@polyomino.org.uk>
18498
18499 * doc/implement-c.texi: Add C90 subclause references. Point to
18500 preprocessor documentation instead of duplicating it. Add points
18501 only present in C90. Fill in documentation for all points.
18502
18503 2004-07-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18504
18505 * pa.c (output_movb): Correct typo.
18506
18507 2004-07-29 Pat Haugen <pthaugen@us.ibm.com>
18508
18509 * ra.h (single_reg_in_regclass): Declare.
18510 * ra.c (single_reg_in_regclass): Define.
18511 (first_hard_reg): New.
18512 (init_ra): Initialize single_reg_in_regclass.
18513 * ra-colorize.c (ok_class): New.
18514 (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
18515
18516 2004-07-29 Nathan Sidwell <nathan@codesourcery.com>
18517
18518 * gcov-io.h: Allow zero tag as EOF indicator.
18519 (gcov_is_eof): Remove.
18520 (gcov_truncate): Remove.
18521 * gcov-io.c (gcov_seek): Always SEEK_SET.
18522 * libgcov.c (gcov_exit): Don't use gcov_truncate. Write explicit
18523 EOF tag.
18524 * coverage.c (read_counts_file): Don't use gcov_is_eof.
18525 * gcov-dump.c (dump_file): Likewise.
18526 * gcov.c (read_graph_file, read_count_file): Likewise.
18527
18528 * c-decl.c (complete_array_type): Don't gratuitously copy
18529 maxindex. Check it always has a type.
18530
18531 2004-07-29 Steven Bosscher <stevenb@suse.de>
18532
18533 * rtl.c (currently_expanding_to_rtl): New.
18534 * rtl.h (currently_expanding_to_rtl): Export it.
18535 * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
18536
18537 * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
18538 inliner hack.
18539 * config/sh/sh.c: Replace rtx_equal_function_value_matters
18540 with currently_expanding_to_rtl.
18541 * config/sh/sh.md: Likewise.
18542 * config/ia64/ia64.c (got_symbolic_operand): Likewise.
18543
18544 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
18545
18546 Introduce sh2a support.
18547 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
18548 * config.gcc: Build multilibs for sh2a and sh2a-single by
18549 default.
18550 * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
18551 default. Split their tests out of the corresponding SH4
18552 multilibs.
18553 * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
18554 multilibs for SH2a.
18555 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
18556 * config.gcc: Handle sh2a multilibs and cpu selection.
18557 * config/sh/sh.h: Likewise. Handle sh2a command line flags.
18558 * config/sh/t-mlib-sh2a: New.
18559 * config/sh/t-mlib-sh2a-nofpu: New.
18560 * config/sh/t-mlib-sh2a-single: New.
18561 * config/sh/t-mlib-sh2a-single-only: New.
18562 2004-07-09 Nick Clifton <nickc@redhat.com>
18563 Issue 43400
18564 * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
18565 -ml and -m2a are used together.
18566 2004-03-23 DJ Delorie <dj@redhat.com>
18567 * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
18568 when we have a double-sized FPU.
18569 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
18570 * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
18571 is set.
18572 * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
18573 -msh2a-single and -msh2a-single-only
18574 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
18575 * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
18576 is set.
18577 2004-02-20 DJ Delorie <dj@delorie.com>
18578 * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
18579 2004-02-20 Fred Fish <fnf@redhat.com>,
18580 Corinna Vinschen <vinschen@redhat.com>
18581 * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
18582 (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
18583 2004-02-18 DJ Delorie <dj@redhat.com>
18584 * config/sh/sh.c (broken_move): Add support for movi20.
18585 * config/sh/sh.h: Likewise.
18586 (SHIFT_COUNT_TRUNCATED): Set for sh2a.
18587 * config/sh/sh.md (udivsi3_sh2a): New.
18588 (udivsi3): Call it.
18589 (divsi3_sh2a): New.
18590 (divsi3): Call it.
18591 (mul_r): New.
18592 (ashlsi3_sh2a): New.
18593 (ashrsi3_sh2a): New.
18594 (lshrsi3_sh2a): New.
18595 (movsi_i): Disable for sh2a.
18596 (movsi_ie): Add movi20.
18597 (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
18598 sh2a, for -m2a-nofpu mode.
18599 2004-02-13 DJ Delorie <dj@redhat.com>
18600 * config/sh/lib1funcs.asm: Handle double vs single better.
18601 * config/sh/sh.h: Likewise.
18602 2004-02-09 DJ Delorie <dj@redhat.com>
18603 * config/sh/crt1.asm: Add support for sh2a.
18604 * config/sh/elf.h: Likewise.
18605 * config/sh/lib1funcs.asm: Likewise.
18606 * config/sh/sh.c: Likewise.
18607 * config/sh/sh.md: Likewise.
18608 * config/sh/sh.h: Likewise.
18609 * config/sh/t-sh: Likewise.
18610
18611 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
18612
18613 * config/frv/frv.md (movqi_internal, movhi_internal,
18614 movsi_internal): Add backup alternatives for memory inputs.
18615
18616 2004-07-28 Matt Austern <austern@apple.com>
18617
18618 * config/darwin.c (darwin_one_byte_bool): New global variable.
18619 * config/darwin.h (darwin_one_byte_bool): Declare.
18620 (SUBTARGET_OPTIONS): Define macro. (for -mone-byte-bool flag.)
18621 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
18622 value of darwin_one_byte_bool.
18623 * doc/invoke.texi: Document -mone-byte-bool flag.
18624
18625 2004-07-28 Eric Christopher <echristo@redhat.com>
18626
18627 * c-common.c (c_common_unsafe_for_reeval): Delete.
18628 * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
18629 * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
18630 * calls.c (fix_unsafe_tree): Delete.
18631 (expand_call): Delete code which used above.
18632 * dojump.c (do_jump): Delete UNSAVE_EXPR case.
18633 * expr.c (expand_expr_real_1): Ditto.
18634 * fold-const.c (non_lvalue): Ditto.
18635 * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
18636 (lhd_unsafe_for_reeval): Ditto.
18637 * langhooks.c (lhd_unsafe_for_reeval): Ditto.
18638 * langhooks.h (unsafe_for_reeval): Ditto.
18639 (unsave_expr_now): Adjust comment.
18640 * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
18641 (estimate_num_insns_1): Ditto.
18642 * tree-pretty-print.c (dump_generic_node): Ditto.
18643 * tree.c (expr_align): Ditto.
18644 (unsave_expr): Delete.
18645 (unsafe_for_reeval): Ditto.
18646 * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
18647 * tree.def (UNSAVE_EXPR): Delete.
18648 * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
18649
18650 2004-07-28 Zack Weinberg <zack@codesourcery.com>
18651
18652 * tree.h (enum tls_model): Move ...
18653 * coretypes.h: ... here.
18654
18655 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
18656
18657 * config/frv/frv.h (EPILOGUE_USES): New. Use LR.
18658
18659 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
18660
18661 * cse.c (validate_canon_reg): New function, split out from...
18662 (canon_reg): ...here. Use validate_canon_reg for both 'e' and 'E'.
18663
18664 2004-07-28 Diego Novillo <dnovillo@redhat.com>
18665
18666 * tree-ssa-alias.c (maybe_create_global_var): Don't just
18667 return if .GLOBAL_VAR has been created.
18668
18669 2004-07-28 Diego Novillo <dnovillo@redhat.com>
18670
18671 * tree-ssa.c (verify_flow_insensitive_alias_info): Process
18672 every variable that may have aliases, not just tags.
18673
18674 2004-07-28 Aldy Hernandez <aldyh@redhat.com>
18675
18676 * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
18677 move_from_CR_eq_bit.
18678 Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
18679
18680
18681 * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
18682 e500_flip_eq_bit.
18683
18684 * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
18685 output_e500_flip_eq_bit.
18686
18687 * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
18688 output_e500_flip_eq_bit.
18689 (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
18690 output_e500_flip_eq_bit.
18691 Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
18692 (print_operand): case D. Get to EQ bit.
18693
18694 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
18695
18696 * gcov.c (function_summary): Add missing \n.
18697
18698 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
18699
18700 Introduce sh4a support.
18701 * config.gcc: Handle sh4a multilibs and cpu selection.
18702 * config/sh/sh.h: Likewise. Handle sh4a command line flags.
18703 * config/sh/t-mlib-sh4a: New.
18704 * config/sh/t-mlib-sh4al: New.
18705 * config/sh/t-mlib-sh4a-nofpu: New.
18706 * config/sh/t-mlib-sh4a-single: New.
18707 * config/sh/t-mlib-sh4a-single-only: New.
18708 2004-02-20 DJ Delorie <dj@redhat.com>
18709 * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
18710 * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
18711 2003-08-22 Eric Christopher <echristo@redhat.com>
18712 * config/sh/sh4a.md: Update for chip errata.
18713 2003-08-07 Eric Christopher <echristo@redhat.com>
18714 * config/sh/sh4a.md: New file. sh4a processor description.
18715 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
18716 * config/sh/sh.h (TARGET_SWITCHES): Added 4al. Adjust description
18717 of -m4a-nofpu.
18718 (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
18719 * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
18720 * doc/invoke.texi (SH Options): Document -m4al.
18721 2003-07-03 Alexandre Oliva <aoliva@redhat.com>
18722 * config/sh/sh.c (expand_block_move): Remove commented-out code
18723 checked in by mistake.
18724 (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
18725 single elements from SFmode vectors.
18726 * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
18727 register.
18728 (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
18729 2003-07-01 Alexandre Oliva <aoliva@redhat.com>
18730 * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
18731 sh_fsca_int2sf): Remove variable declarations.
18732 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
18733 sh_fsca_int2sf): New functions.
18734 (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
18735 sh_fsca_int2sf_rtx): New static variables.
18736 * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
18737 sh_fsca_int2sf): Declare.
18738 * config/sh/sh.md: Adjust.
18739 * doc/invoke.texi (SH Options): Document new options.
18740 * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
18741 compatibility from SH4 code.
18742 2003-06-27 Alexandre Oliva <aoliva@redhat.com>
18743 * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
18744 early.
18745 (memory_movsrc_operand): Renamed to...
18746 (unaligned_load_operand): ... this. Simplified.
18747 * config/sh/sh.h (PREDICATE_CODES): Adjust.
18748 * config/sh/sh.md (movua, extv, extzv): Likewise. Change movua's
18749 input operand to SImode, and adjust the others. Introduce
18750 post-increment by peephole.
18751 * config/sh/sh.c (expand_block_move): Give the target address the
18752 same mode as the temp reg.
18753 * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
18754 copying.
18755 2003-06-26 Alexandre Oliva <aoliva@redhat.com>
18756 Introduce support for SH4a.
18757 * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
18758 __SH4A__. Emit 4 4kb blocks and touch all of them otherwise.
18759 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
18760 sh_fsca_int2sf): New.
18761 (sh_init_builtins): Initialize them.
18762 (print_operand): Support `d'.
18763 (expand_block_move): Use movua if src is misaligned.
18764 (memory_movsrc_operand): New.
18765 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
18766 and one of the SH4 macros.
18767 (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
18768 SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
18769 SELECT_SH4A_SINGLE): New.
18770 (TARGET_NONE): Add SH4A_BIT.
18771 (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
18772 (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
18773 (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
18774 (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
18775 (enum processor_type): Added PROCESSOR_SH4A.
18776 (PREDICATE_CODES): Add memory_movsrc_operand.
18777 * config/sh/sh.md: Removed unused variables.
18778 (attr cpu): Add sh4a.
18779 (attr type): Add movua, fsrra and fsca.
18780 (prefetch): New, for SH4.
18781 (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
18782 (toggle_sz): Set type to fp.
18783 (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
18784 (movua, extv, extzv): New.
18785 * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
18786 and 4a-single-only.
18787
18788 2004-07-28 Diego Novillo <dnovillo@redhat.com>
18789
18790 * tree-optimize.c (init_tree_optimization_passes): Schedule
18791 pass_may_alias right after the program is renamed into SSA.
18792 * tree-pass.h (PROP_alias): Define.
18793 * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
18794 * tree-sra.c (pass_sra): Likewise.
18795 * tree-ssa-ccp.c (pass_ccp): Likewise.
18796 * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
18797 * tree-ssa-dce.c (pass_dce): Likewise.
18798 * tree-ssa-dom.c (pass_dominator): Likewise.
18799 * tree-ssa-dse.c (pass_dse): Likewise.
18800 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
18801 * tree-ssa-loop-ch.c (pass_ch): Likewise.
18802 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
18803 * tree-ssa-pre.c (pass_pre): Likewise.
18804 * tree-tailcall.c (pass_tail_recursion): Likewise.
18805 * tree-ssa.c (pass_redundant_phi): Likewise.
18806 * tree-ssa-alias.c (aliases_computed_p): Remove.
18807 Update all users.
18808 (init_alias_info): Do not mark all type tags for renaming
18809 unconditionally.
18810 Clear may_aliases from every symbol.
18811 (setup_pointers_and_addressables): If a pointer has not been
18812 dereferenced and it had a type tag, clear it and mark the old
18813 tag for renaming.
18814
18815 2004-07-28 Diego Novillo <dnovillo@redhat.com>
18816
18817 PR tree-optimization/16705
18818 * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
18819 .GLOBAL_VAR.
18820
18821 2004-07-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18822
18823 * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
18824 check.
18825
18826 * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
18827 don't make another one.
18828
18829 PR optimization/15077
18830 * function.h (struct function): Add field saved_static_chain_decl.
18831 Fix comment for static_chain_decl.
18832 * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
18833 * tree-inline.h (save_body): Add new arg.
18834 * tree-optimize.c (tree_rest_of_compilation): Handle saving
18835 static_chain_decl.
18836
18837 2004-07-27 Richard Henderson <rth@redhat.com>
18838
18839 * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
18840 (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
18841 is_gimple_addressable.
18842 * tree-gimple.c (is_gimple_addressable): Rename from
18843 is_gimple_addr_expr_arg; accept INDIRECT_REF.
18844 (is_gimple_lvalue): Don't test INDIRECT_REF directly.
18845 * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
18846 rename to is_gimple_addressable.
18847
18848 2004-07-28 Alan Modra <amodra@bigpond.net.au>
18849
18850 * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
18851
18852 2004-07-27 Richard Henderson <rth@redhat.com>
18853
18854 * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
18855 before rounding.
18856
18857 2004-07-27 Zack Weinberg <zack@codesourcery.com>
18858
18859 * libgcc2.c: Change all conditionals testing
18860 LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
18861 * libgcc2.h: Likewise.
18862 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
18863 TYPE_PRECISION of float80_type to 80.
18864 * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
18865 of fpreg_type and float80_type to 80.
18866 * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
18867 * config/m68k/netbsd-elf.h:
18868 Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
18869 to evaluate to 80 whenever they would formerly have evaluated to 96.
18870 * config/i386/sco5.h: Remove unnecessary redefinition of
18871 LONG_DOUBLE_TYPE_SIZE.
18872 * doc/rtl.texi: Clarify uses of XFmode and TFmode.
18873 * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
18874 XFmode, with a bitsize of 80. Update commentary.
18875 * config/ia64/ia64-modes.def: Likewise.
18876 * config/m68k/m68k-modes.def: Likewise.
18877
18878 2004-07-27 Steven Bosscher <stevenb@suse.de>
18879
18880 * cfgexpand.c (tree_expand_cfg): Fix comment.
18881
18882 * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
18883 * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
18884 Remove.
18885 (prepare_function_start): Don't set rtx_equal_function_value_matters.
18886 * integrate.c (copy_rtx_and_substitute): Don't test for it.
18887 * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
18888 Don't set rtx_equal_function_value_matters. Don't register RTL hooks
18889 here again. Update leading comment.
18890 * rtl.c (rtx_equal_function_value_matters): Remove.
18891 (rtx_equal_p): Don't test for it.
18892 * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
18893 Likewise.
18894
18895 * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
18896 * rtl.c (note_insn_name): Likewise.
18897 * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
18898 * final.c (final_scan_insn): Likewise.
18899
18900 * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
18901 * passes.c (rest_of_handle_eh): Do it here.
18902
18903 * stmt.c (struct nesting): Remove struct nesting block member.
18904 (struct stmt_status): Remove x_block_start_count field.
18905 (current_block_start_count): Remove.
18906
18907 2004-07-27 Brian Booth <bbooth@redhat.com>
18908
18909 * tree-optimize.c (register_one_dump_file): Update condition that uses
18910 static_pass_number.
18911 (dup_pass_1): Replace with...
18912 (next_pass_1): This.
18913 (NEXT_PASS): Call next_pass_1.
18914 (DUP_PASS): Remove.
18915 (init_tree_optimization_passes): Remove uses of DUP_PASS.
18916 (execute_one_pass): Update condition that uses
18917 static_pass_number.
18918 * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
18919 integer.
18920
18921 2004-07-27 Nick Clifton <nickc@redhat.com>
18922
18923 * config/m32r/m32r.c: Include integrate.h in order to get the
18924 prototype for get_hard_reg_initial_val().
18925
18926 * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
18927 and tidy up indentation.
18928 (final_presence_set): Use absence_set instead, so that if there is
18929 nothing in the "o" pipe the "s" pipe can be scheduled.
18930
18931 2004-07-27 Diego Novillo <dnovillo@redhat.com>
18932
18933 * tree-ssa-alias.c (create_name_tags): Ignore pointers that
18934 don't have PT_VARS nor PT_MALLOC set.
18935 Clear name tag from pointers that have not been dereferenced.
18936 (set_pt_anything, set_pt_malloc): Forward declare.
18937 * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
18938 not type compatibility when determining if a pointer can be
18939 copy propagated.
18940
18941 2004-07-27 Richard Sandiford <rsandifo@redhat.com>
18942
18943 * expr.h (canonicalize_condition, get_condition): Add an int argument.
18944 * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
18945 it to check whether the condition is still valid at the jump insn.
18946 * ifcvt.c (noce_get_condition): Likewise.
18947 (noce_get_alt_condition): Update call to canonicalize_condition.
18948 * loop-iv.c (simplify_using_initial_values): Update call to
18949 get_condition. Remove FIXME.
18950 (check_simple_exit): Update call to get_condition.
18951 * loop-unswitch.c (may_unswitch_on): Likewise.
18952 * loop.c (check_dbra_loop): Likewise.
18953 (canonicalize_condition, get_condition): Add an argument to say whether
18954 the condition must still be valid at INSN.
18955 (get_condition_for_loop): Update call to get_condition. Require that
18956 the condition be valid at INSN.
18957 * predict.c (estimate_probability): Update call to get_condition.
18958 Remove unused earliest parameter.
18959 (expected_value_to_br_prob): Update call to canonicalize_condition.
18960
18961 2004-07-26 Eric Christopher <echristo@redhat.com>
18962
18963 * tree-dfa.c (add_referenced_var): Register initializers of global
18964 variables.
18965
18966 2004-07-26 Paolo Bonzini <bonzini@gnu.org>
18967
18968 * config/i386/i386.c (function_arg): Always treat 8-
18969 and 16-byte wide vectors the same, even if MMX/SSE
18970 are disabled.
18971 (contains_128bit_aligned_vector_p): Add comment.
18972
18973 2004-07-26 J"orn Rennecke <joern.rennecke@superh.com>
18974
18975 * ra.h (enum node_type): Rename to:
18976 (enum ra_node_type).
18977 * ra-colorize.c: Likewise.
18978
18979 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
18980
18981 * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
18982 after simplifying the jump.
18983
18984 2004-06-26 Richard Henderson <rth@redhat.com>
18985
18986 * calls.c (combine_pending_stack_adjustment_and_call): Make
18987 preferred_unit_stack_boundary argument unsigned. Make
18988 unadjusted_alignment unsigned.
18989 (expand_call): Make preferred_stack_boundary and
18990 preferred_unit_stack_boundary variables unsigned.
18991 * function.c (assign_stack_local_1): Make alignment unsigned.
18992 * function.h (struct function): Make stack_alignment_needed,
18993 preferred_stack_boundary unsigned.
18994 * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
18995 (ix86_compute_frame_layout): Make stack_alignment_needed,
18996 preferred_alignment variables unsigned.
18997 * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
18998
18999 2004-07-26 Tom Tromey <tromey@redhat.com>
19000
19001 * tree.h: Fix typo in comment.
19002
19003 2004-07-26 Daniel Jacobowitz <dan@debian.org>
19004
19005 PR bootstrap/12804
19006 * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
19007 (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
19008 (ggc_free): Remove incorrect freeing.
19009 (sweep_pages): Advance PP for large pages. Fix indentation.
19010
19011 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
19012
19013 PR rtl-optimization/16643
19014 * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
19015 * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
19016 * basic-block.h (reorder_basic_blocks): Add a flags parameter.
19017 * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
19018 (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
19019 * function.c (thread_prologue_and_epilogue_insns): Likewise.
19020 * rtl.h (tracer): Add a flags parameter.
19021 * tracer.c (tracer): Pass it to cfg_layout_initialise.
19022 * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
19023 (rest_of_handle_reorder_blocks): Update calls to tracer and
19024 reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
19025 (rest_of_handle_tracer): Pass 0 to tracer.
19026 (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
19027
19028 2004-07-25 David Edelsohn <edelsohn@gnu.org>
19029
19030 PR target/16239
19031 * config/rs6000/rs6000.md (movdi_internal64): Further disparage
19032 f->f.
19033
19034 2004-07-24 Nathan Sidwell <nathan@codesourcery.com>
19035
19036 * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
19037 (BINFO_BASE_ACCESS): Adjust.
19038 (BINFO_BASE_ACCESS_APPEND): New.
19039 (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
19040 * dbxout.c (dbxout_type): Adjust binfo access accessing.
19041 * dwarf2out.c (gen_member_die): Likewise.
19042 * tree-dump.c (deque_and_dump): Likewise.
19043
19044 2004-07-26 Falk Hueffner <falk@debian.org>
19045
19046 * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
19047 costs.
19048
19049 2004-07-25 Roger Sayle <roger@eyesopen.com>
19050
19051 * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
19052 value off of the stack if TARGET_USE_FFREEP.
19053
19054 2004-07-26 Bernardo Innocenti <bernie@develer.com>
19055
19056 * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
19057 * gengtype-yacc.y: Likewise. Replace free() with XDELETE ().
19058 * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
19059 check on invocation of XRESIZEVEC ().
19060
19061 2004-07-26 Bernardo Innocenti <bernie@develer.com>
19062
19063 * c-common.c (disable_builtin_function): Rename variable n to
19064 new_disabled_builtin.
19065 * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
19066 Rename local variable old to old_decl.
19067 * gensupport.c (shift_output_template): Rename parameter old to src.
19068 * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
19069 old_rtx and newx to new_rtx.
19070
19071 2004-07-26 Bernardo Innocenti <bernie@develer.com>
19072
19073 * Makefile.in (C_PRAGMA_H): New variable to track dependencies
19074 of c-pragma.h.
19075 * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
19076 enum cpp_ttype.
19077 * c-lex.c: Likewise.
19078
19079 2004-07-25 Roger Sayle <roger@eyesopen.com>
19080
19081 * fold-const.c (constant_boolean_node): Make extern.
19082 (make_range): Wrap long lines.
19083 (fold_cond_expr_with_comparison): Remove unnecessary call to
19084 pedantic_non_lvalue. Add missing calls to fold_convert.
19085 (fold_truthop): Add missing calls to fold_convert.
19086 (fold): Likewise.
19087 * tree.h (constant_boolean_node): Add prototype here.
19088 * builtins.c (expand_builtin_strncmp): Add missing calls to
19089 fold_convert.
19090 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
19091 Call fold_convert and constant_boolean_node to correct types.
19092 * tree-ssa-forwprop.c (substitute_single_use_vars): Add
19093 missing call to fold_convert to correct types.
19094
19095 2004-07-26 Niall Douglas <s_fsfeurope2@nedprod.com>
19096 Brian Ryner <bryner@brianryner.com>
19097
19098 PR c++/9283
19099 PR c++/15000
19100 * c-common.c (c_common_attribute_table): Allow
19101 handle_visibility_attribute to be called for types.
19102 (handle_visibility_attribute) When given a type, set the visibility
19103 bits on the TYPE_NAME. When given a decl, don't set no_add_attrs
19104 so that we can check later whether the attribute was present. Added
19105 warning if attribute applied to non class type.
19106 * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
19107 decls and checking that they are consistent.
19108 * common.opt: Added -fvisibility.
19109 * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
19110 * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
19111 * flags.h, tree.h: Added assorted support defines for overall patch
19112 * opts.c: Added parsing support for -fvisibility.
19113 * tree.c (build_decl): Set visibility for all decls to be whatever
19114 is in force at that time.
19115 * varasm.c (default_binds_local_p_1): Reworked logic determining
19116 when to make a symbol locally bound.
19117 * doc/invoke.texi: Added documentation for -fvisibility and
19118 -fvisibility-inlines-hidden.
19119
19120 2004-07-25 Bernardo Innocenti <bernie@develer.com>
19121
19122 * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
19123 * c-common.c: Add missing casts from void * to other types.
19124 * c-decl.c: Likewise.
19125 * c-format.c: Likewise.
19126 * c-lex.c: Likewise.
19127 * c-pragma.c: Likewise.
19128 * c-typeck.c: Likewise.
19129 * defaults.h: Likewise.
19130 * genconstants.c: Likewise.
19131 * gengtype-lex.l: Likewise.
19132 * genmodes.c: Likewise.
19133 * read-rtl.c: Likewise.
19134 * rtl.c: Likewise.
19135
19136 2004-07-25 Bernardo Innocenti <bernie@develer.com>
19137
19138 * bitmap.c: Use type-safe memory allocation macros from libiberty.
19139 * c-common.c: Likewise.
19140 * c-decl.c: Likewise.
19141 * c-lang.c: Likewise.
19142 * c-lex.c: Likewise.
19143 * c-opts.c: Likewise.
19144 * c-parse.in: Likewise.
19145 * c-typeck.c: Likewise.
19146 * genconditions.c: Likewise.
19147 * gengtype-lex.l: Likewise.
19148 * gengtype-yacc.y: Likewise.
19149 * gengtype.c: Likewise.
19150 * genmodes.c: Likewise.
19151 * gensupport.c: Likewise.
19152 * read-rtl.c: Likewise.
19153 * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
19154 htab_find_slot().
19155
19156 2004-07-25 Bernardo Innocenti <bernie@develer.com>
19157
19158 * c-decl.c (groktypename, groktypename_in_param_context): Rename
19159 variable typename to type_name.
19160 * c-lex.c (interpret_float): Likewise.
19161
19162 2004-07-25 Roger Sayle <roger@eyesopen.com>
19163
19164 * convert.c (convert_to_real, convert_to_integer,
19165 convert_to_complex): Replace calls to build with calls to buildN.
19166 * coverage.c (tree_coverage_counter_ref): Likewise.
19167 * dojump.c (do_jump): Likewise.
19168 * dwarf2out.c (loc_descriptor_from_tree): Likewise.
19169 * emit-rtl.c (component_ref_for_mem_expr,
19170 set_mem_attributes_minus_bitpos): Likewise.
19171 * explow.c (update_nonlocal_goto_save_area): Likewise.
19172 * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
19173 expand_mult_add): Likewise.
19174 * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
19175 store_constructor, get_inner_reference, expand_expr_real_1,
19176 try_casesi, try_tablejump): Likewise.
19177 * function.c (expand_function_start): Likewise.
19178 * stmt.c (emit_case_bit_tests, expand_end_case_type,
19179 node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
19180 * stor-layout.c (place_union_field, layout_type): Likewise.
19181 * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
19182 * varasm.c (copy_constant): Likewise.
19183
19184 2004-07-25 Bernardo Innocenti <bernie@develer.com>
19185
19186 * c-common.c: Rename all identifiers named `new'.
19187 * c-decl.c: Likewise.
19188 * gensupport.c: Likewise.
19189 * simplify-rtx.c: Likewise.
19190 * c-common.c (disable_builtin_function): Replace a call to xmalloc()
19191 with XNEW().
19192 * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
19193 with XNEWVEC().
19194
19195 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
19196
19197 PR c/15360
19198 * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
19199 declarations until after calling pushdecl.
19200 (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
19201 "extern" and not on whether the declaration is initialized.
19202
19203 2004-07-25 Daniel Jacobowitz <dan@debian.org>
19204
19205 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
19206 (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
19207 * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
19208 "cpplib.h", "c-pragma.h", "c-common.h".
19209 (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
19210 (solaris_register_pragmas): New functions.
19211 * config/sol2-protos.h: New file.
19212 * config/sol2.c: New file.
19213 * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
19214 (REGISTER_TARGET_PRAGMAS): New macros.
19215 (solaris_pending_aligns, solaris_pending_inits)
19216 (solaris_pending_finis): New variables.
19217 * config/t-sol2 (sol2-c.o): Update dependencies.
19218 (sol2.o): New rule.
19219 * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
19220 SUBTARGET_INSERT_ATTRIBUTES.
19221 (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
19222 * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
19223 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
19224 * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
19225 * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
19226 * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
19227 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
19228 * config/sparc/sparc.c (sparc_attribute_table): New.
19229 (TARGET_INSERT_ATTRIBUTES): Define in terms of
19230 SUBTARGET_INSERT_ATTRIBUTES.
19231 (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
19232 is defined.
19233 * doc/extend.texi (Solaris Pragmas): New section.
19234
19235 2004-07-25 Bernardo Innocenti <bernie@develer.com>
19236
19237 * c-common.c: Rename all identifiers named `class' to `cl'.
19238 * c-common.h: Likewise.
19239 * c-parse.in: Likewise.
19240 * c-typeck.c: Likewise.
19241 * genmodes.c: Likewise.
19242 * real.c: Likewise.
19243 * real.h: Likewise.
19244 * recog.c: Likewise.
19245 * recog.h: Likewise.
19246 * regrename.c: Likewise.
19247 * tree.h: Likewise.
19248 * c-common.c (builtin_function_2): Change type of 5th parameter from
19249 int to enum built_in_function. Change type of 8th parameter from int
19250 to bool.
19251 * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
19252 with GGC_CNEW().
19253 * c-typeck.c (convert_arguments): Change type of formal_prec from
19254 int to unsigned int.
19255 * genmodes.c (blank_mode): Make a few negative constants unsigned.
19256 (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
19257 emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
19258 emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
19259 emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
19260 iterator to for_all_modes () instead of an enum because enums can't
19261 be incremented in C++.
19262
19263
19264 2004-07-25 Daniel Jacobowitz <dan@debian.org>
19265
19266 * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
19267 hard registers.
19268
19269 2004-07-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19270
19271 * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
19272 Handle ARRAY_RANGE_REF like ARRAY_REF.
19273
19274 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
19275
19276 * c-typeck.c (digest_init): Don't allow arrays of signed or
19277 unsigned variants of wchar_t to be initialized by wide string
19278 constants. Do allow arrays of enumerated types compatible with
19279 wchar_t to be initialized by wide string constants. Refine tests
19280 distinguishing wide and narrow strings and arrays. Give specific
19281 error for arrays of other integer types initialized by string
19282 constants.
19283 (output_init_element, process_init_element): Check for
19284 INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
19285 initializing with string constants.
19286
19287 2004-07-25 Richard Henderson <rth@redhat.com>
19288
19289 * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
19290 on the RESULT_DECL.
19291 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
19292 * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
19293 DECL_IGNORED_P to new decl.
19294
19295 2004-07-24 Zack Weinberg <zack@codesourcery.com>
19296
19297 * config/ia64/ia64.c (general_xfmode_operand)
19298 (destination_xfmode_operand): Delete.
19299 * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
19300 * config/ia64/ia64.md (*movxf_internal): Use general_operand
19301 and destination_operand.
19302
19303 2004-07-24 Alexander Kabaev <kan@freebsd.org>
19304
19305 * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
19306 (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
19307
19308 2004-07-24 Alexander Kabaev <kan@freebsd.org>
19309 Zack Weinberg <zack@codesourcery.com
19310
19311 PR 16684
19312 * c-decl.c (diagnose_mismatched_decls): Don't issue a
19313 redundant-declaration warning the first time a builtin is
19314 declared explicitly.
19315
19316 2004-07-25 Bernardo Innocenti <bernie@develer.com>
19317
19318 * tree.h (staticp): Change return type to bool.
19319
19320 2004-07-25 Bernardo Innocenti <bernie@develer.com>
19321
19322 * c-common.c (c_staticp): Last episode of the staticp saga.
19323
19324 2004-07-25 Bernardo Innocenti <bernie@develer.com>
19325
19326 * c-common.h (c_staticp): Change return type from int to bool.
19327 * tree.c (staticp): Likewise.
19328 * langhooks.h (staticp): Likewise.
19329
19330 2004-07-25 Bernardo Innocenti <bernie@develer.com>
19331
19332 * langhooks-def.h (lhd_staticp): Change return type from int to
19333 bool in prototype to match definition.
19334
19335 2004-07-25 Bernardo Innocenti <bernie@develer.com>
19336
19337 * system.h (bool, true, false): Don't redefine as preprocessor macros
19338 in C++.
19339
19340 2004-07-24 Roger Sayle <roger@eyesopen.com>
19341
19342 * expmed.c (init_expmed): A signed modulus by a power of two is
19343 considered cheap if its less than or equal to four instructions.
19344
19345 2004-07-25 Bernardo Innocenti <bernie@develer.com>
19346
19347 * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
19348 GGC_CNEWVAR): New macros.
19349
19350 2004-07-25 Bernardo Innocenti <bernie@develer.com>
19351
19352 * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
19353 lists.
19354 * c-decl.c: Likewise.
19355 * c-format.c: Likewise.
19356 * c-lex.c: Likewise.
19357 * c-opts.c: Likewise.
19358 * c-pragma.c: Likewise.
19359 * c-typeck.c: Likewise.
19360 * gencheck.c: Likewise.
19361 * genconditions.c: Likewise.
19362 * genconfig.c: Likewise.
19363 * genflags.c: Likewise.
19364 * gengtype.c: Likewise.
19365 * gensupport.c: Likewise.
19366 * ggc-none.c: Likewise.
19367 * langhooks.c: Likewise.
19368 * statistics.h: Likewise.
19369 * stub-objc.c: Likewise.
19370 * java/decl.c: Likewise.
19371
19372 2004-07-24 Roman Zippel <zippel@linux-m68k.org>
19373
19374 * config/m68k/m68k.c (output_scc_di): Fix coding style.
19375 (symbolic_operand): Fix prototype.
19376 * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
19377 * config/m68k/m68k.md: Add constants for registers a0 and sp and
19378 use them, change from the "{...}" syntax to the simpler {...}
19379 syntax.
19380 (*cfv4_extendqisi2): Fix destination predicate.
19381 * config/m68k/m68k-protos.h: Remove various declarations also
19382 generated via PREDICATE_CODES.
19383
19384 2004-07-23 Mike Stump <mrs@apple.com>
19385
19386 * c-typeck.c (convert_for_assignment): Tightened up pointer
19387 converstions that differ in signedness.
19388
19389 2004-07-23 Zack Weinberg <zack@codesourcery.com>
19390
19391 * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
19392
19393 2004-07-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19394
19395 * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
19396 * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
19397
19398 * gimplify.c (gimplify_compound_lval): Check for no handled
19399 operations, rather than checking for explicit list of nodes.
19400 (is_gimple_addr_expr_arg_or_indirect): New function.
19401 (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
19402 redundant setting of TREE_INVARIANT.
19403 (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
19404 * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
19405
19406 2004-07-23 Diego Novillo <dnovillo@redhat.com>
19407
19408 PR tree-optimization/16688
19409 PR tree-optimization/16689
19410 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
19411 unnecessary initialization of 'tag'.
19412 (get_tmt_for): Check that the new type tag has the same alias
19413 set as the pointed-to type.
19414 (group_aliases): Only regular variables need to be removed
19415 from the alias set of a name tag.
19416 * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
19417 propagation if the two types are not compatible.
19418 (merge_alias_info): Rename from replace_ssa_names_ann.
19419 Add more checking.
19420 (replace_exp_1): If both arguments are SSA_NAMEs, check that
19421 the propagation can be done.
19422 Only call merge_alias_info on pointers.
19423 (propagate_value): Likewise.
19424 * tree-ssa-copyrename.c: Include langhooks.h.
19425 (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
19426 to do the merging.
19427 Do not coalesce variables with incompatible types.
19428 (rename_ssa_copies): Call replace_ssa_name_symbol.
19429 * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
19430 the same type as the underlying _DECL.
19431 * tree-ssanames.c (replace_ssa_name_symbol): New function.
19432 * tree.h (replace_ssa_name_symbol): Declare.
19433
19434 2004-07-23 Richard Henderson <rth@redhat.com>
19435
19436 PR c++/16277
19437 * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
19438 unshare it properly.
19439 (gimplify_modify_expr_rhs): Push assignment from a conditional into
19440 the conditional for all non-register types.
19441
19442 2004-07-23 Richard Henderson <rth@redhat.com>
19443
19444 * expr.c (expand_expr_real_1): Don't handle non-local variables.
19445 * expr.h (fix_lexical_addr): Remove.
19446 * function.c (NEED_SEPARATE_AP): Remove.
19447 (fix_lexical_addr): Remove.
19448 * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
19449 not null decl_function_context.
19450 (create_alias_vars): Likewise.
19451 * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
19452 (simple_goto_p): Likewise.
19453 * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
19454 * tree-ssa-ccp.c (get_default_value): Likewise.
19455 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
19456 * tree.c (needs_to_live_in_memory): Likewise.
19457 * tree-flow-inline.h (may_be_aliased): Move...
19458 * tree-ssa-alias.c (may_be_aliased): ... here. Enhance check for
19459 when TREE_STATIC variables may be addressable.
19460
19461 2004-07-24 Jakub Jelinek <jakub@redhat.com>
19462
19463 * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
19464
19465 2004-07-23 Zack Weinberg <zack@codesourcery.com>
19466
19467 * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
19468 bitmap contents if GENERATOR_FILE is defined.
19469 * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
19470 ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
19471
19472 2004-07-23 Joseph S. Myers <jsm@polyomino.org.uk>
19473
19474 * c-decl.c (start_function): Form composite type of function types
19475 rather than copying type from previous prototype declaration.
19476
19477 2004-07-23 Janis Johnson <janis187@us.ibm.com>
19478
19479 * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
19480 the const qualifier for the second argument in the C++ functions.
19481
19482 * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
19483 specific pointer types.
19484
19485 * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
19486 vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
19487 for vector bool and/or vector pixel, add C++ and C missing support.
19488 (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
19489 vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
19490 vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
19491 vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
19492 vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
19493 missing C++ and C support for vector bool and/or vector pixel.
19494 (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
19495 vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
19496 vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
19497 vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
19498 vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
19499 C++ and C types used for vector bool and/or vector pixel.
19500 (vec_st, vec_stl): Add C++ support for vector pixel.
19501 (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
19502 (vec_all_ne): Add C++ support for vector pixel.
19503
19504 * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
19505 (vec_vmulesb): Add missing C++ function.
19506 (vec_perm): Fix type of third argument in C++ function.
19507 (vec_vsum4shs): Fix C++ function name.
19508 (vec_any_ge): Remove C++ functions for unsupported arg combinations.
19509 (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
19510 argument passed to the error handler in C macro.
19511 (vec_nmsub): Remove extra parens around argument names in C macro.
19512 (vec_packpx): Add missing parens in C macro.
19513
19514 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
19515
19516 * machmode.def: Remove vector modes.
19517 * config/alpha/alpha-modes.def: Add supported vector modes.
19518 * config/arm/arm-modes.def: Likewise.
19519 * config/frv/frv-modes.def: Likewise.
19520 * config/i386/i386-modes.def: Likewise.
19521 * config/rs6000/rs6000-modes.def: Likewise.
19522 * config/sh/sh-modes.def: Likewise.
19523
19524 2004-07-23 Matthias Klose <doko@debian.org>
19525
19526 * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
19527 * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
19528 * config.h: Regenerate.
19529 * configure: Likewise.
19530
19531 2004-07-22 Mark Mitchell <mark@codesourcery.com>
19532
19533 * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
19534 generated SYMBOL_REFs for labels.
19535 * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
19536 Change prototype.
19537 (machopic_stub_name): Remove.
19538 (machopic_indirection_name): New function.
19539 (machopic_mcount_stub_name): Likewise.
19540 (machopic_classify_name): Remove.
19541 (machopic_function_base_sym): New function.
19542 (machpoic_classify_symbol): Likewise.
19543 (machopic_classify_ident): Remove.
19544 (machopic_define_ident): Likewise.
19545 (machopic_define_name): Likewise.
19546 (machopic_name_defined_p): Likewise.
19547 (machopic_ident_defined_p): Likewise.
19548 (darwin_strip_name_encoding): Likewise.
19549 (machopic_define_symbol): New function.
19550 * config/darwin.c (hashtab.h): Include.
19551 (machopic_defined_list): Remove.
19552 (machopic_classify_ident): Likewise.
19553 (machopic_classify_name): Likewise.
19554 (machopic_ident_defined_p): Likewise.
19555 (machopic_define_ident): Likewise.
19556 (machopic_define_name): Likewise.
19557 (machopic_symbol_defined_p): New function.
19558 (machopic_classify_symbol): Likewise.
19559 (machopic_data_defined_p): Use machopic_classify_symbol.
19560 (machopic_define_symbol): New function.
19561 (machopic_function_base_sym): New function.
19562 (machopic_non_lazy_pointers): Remove.
19563 (machopic_non_lazy_ptr_name): Likewise.
19564 (machopic_stubs): Likewise.
19565 (machopic_stub_name): Likewise.
19566 (NON_LAZY_POINTER_SUFFIX): New macro.
19567 (STUB_SUFFIX): Likewise.
19568 (machopic_indirection): New structure.
19569 (machopic_indirections): New variable.
19570 (machopic_indirection_hash): New function.
19571 (machopic_indirection_eq): Likewise.
19572 (machopic_indirection_name): Likewise.
19573 (machopic_mcount_stub_name): New function.
19574 (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
19575 hash table.
19576 (machopic_indirect_data_reference): Rework to use new functions.
19577 (machopic_indirect_call_target): Likewise.
19578 (machopic_legitimize_pic_address): Likewise.
19579 (machopic_output_indirection): New function.
19580 (machopic_finish): Use it.
19581 (machopic_operand_p): Rework to use new functions.
19582 (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
19583 (darwin_strip_name_encoding): Remove.
19584 (update_non_lazy_ptrs): Remove.
19585 (update_stubs): Likewise.
19586 (darwin_non_lazy_pcrel): Use new functions.
19587 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
19588 (ASM_OUTPUT_LABELREF): Likewise.
19589 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
19590 (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
19591 (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
19592 (TARGET_STRIP_NAME_ENCODING): Do not use
19593 darwin_strip_name_encoding.
19594 (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
19595 darwin_strip_name_encoding.
19596 * config/i386/darwin.h (FUNCTION_PROFILER): Use
19597 machopic_mcount_stub_name.
19598 * config/i386/i386.c (x86_output_mi_thunk): Use
19599 machopic_indirection_name, not machopic_stub_name.
19600 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
19601 machopic_function_base_sym.
19602 (print_operand): Use machopic_classify_symbol.
19603 (rs6000_emit_prologue): Use machopic_function_base_sym.
19604 (output_profile_hook): Do not use machopic_stub_name.
19605 (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
19606
19607 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
19608
19609 PR c/7284
19610 * fold-const.c (extract_muldiv_1): Do not treat signed left shift
19611 as multiplication.
19612
19613 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
19614
19615 * doc/implement-c.texi: New file.
19616 * doc/extend.texi (C Implementation): Move to there.
19617 * doc/gcc.texi: Include implement-c.texi.
19618 * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
19619
19620 2004-07-22 Jason Merrill <jason@redhat.com>
19621
19622 * integrate.c (copy_decl_for_inlining): Remove invisible reference
19623 handling.
19624 * tree-inline.c (setup_one_parameter): Likewise.
19625
19626 2004-07-22 Brian Booth <bbooth@redhat.com>
19627
19628 * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
19629 (substitute_and_fold): Propigate into VUSE operands when possible.
19630 (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
19631 (cp_lattice_meet): Handle merging of latticevalues when
19632 UNKNOWN_VAL is present.
19633 (visit_stmt): Visit assignments with V_MUST_DEFs.
19634 (visit_assignment): Gather ccp information for V_MUST_DEF operands.
19635 (ccp_fold): Deal with RHS' that are constant and virtual.
19636 (evaluate_stmt): Handle UNKNOWN_VAL likely values.
19637 (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
19638 (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
19639 V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
19640 computing immediate uses.
19641 (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
19642 transition.
19643 (replace_vuse_in): New function.
19644 (likely_value): Add check of vuse operands.
19645 (get_default_value): Set the default value of virtually defined
19646 variables to UKNOWN_VAL instead of VARYING.
19647
19648 2004-07-22 Richard Henderson <rth@redhat.com>
19649
19650 * expr.c (emit_push_insn): Don't use set_mem_attributes.
19651
19652 2004-07-22 Richard Henderson <rth@redhat.com>
19653
19654 * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
19655 variables due to conditional compilation.
19656
19657 2004-07-22 Diego Novillo <dnovillo@redhat.com>
19658
19659 * tree-into-ssa.c (set_livein_block): Fix typo in comment.
19660 (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
19661 Release SSA names that have been re-renamed.
19662 * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
19663 variable.
19664 * tree-ssa-alias.c (init_alias_info): If aliases have been
19665 computed before, clear existing alias information.
19666 (create_name_tags): Do no fixup PT_ANYTHING pointers.
19667 If the new name tag for a pointer is different than the one it
19668 had before, mark the old tag for renaming.
19669 (replace_may_alias): New function.
19670 (group_aliases): Call it.
19671 (setup_pointers_and_addressables): Always call get_tmt_for.
19672 (maybe_create_global_var): Don't create .GLOBAL_VAR more than
19673 once.
19674 (set_pt_anything): New local function.
19675 (set_pt_malloc): New local function.
19676 (merge_pointed_to_info): Don't merge pointed-to variables from
19677 the original pointer if the destination is pointing to an
19678 unknown location.
19679 (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
19680 (add_pointed_to_var): Do not add a variable to the points-to
19681 set if the pointer is already pointing to anywhere.
19682 (collect_points_to_info_r): If the defining statement is a PHI
19683 node, only merge pointed-to information if the argument has
19684 already been visited.
19685 (get_tmt_for): Only create a new tag if the pointer didn't
19686 have one already.
19687 (dump_alias_info): Emit more information.
19688 (dump_points_to_info_for): Likewise.
19689 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
19690 try to get the annotation of an SSA_NAME.
19691 * tree-ssa-operands.c (add_stmt_operand): Only check for empty
19692 alias sets when checking is enabled.
19693 * tree-ssa-pre.c (need_eh_cleanup): New local variable.
19694 (eliminate): Mark basic blocks that will need
19695 EH information cleaned up.
19696 (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
19697 predecessor.
19698 Initialize need_eh_cleanup.
19699 (fini_pre): Call tree_purge_all_dead_eh_edges and
19700 cleanup_tree_cfg if needed.
19701 Free need_eh_cleanup.
19702 * tree-ssa.c (verify_ssa_name): New function.
19703 (verify_def): Call it.
19704 Re-arrange to avoid printing too many error messages.
19705 (verify_use): Likewise.
19706 (verify_phi_args): Likewise.
19707 (verify_flow_insensitive_alias_info): New function.
19708 (verify_flow_sensitive_alias_info): New function.
19709 (verify_alias_info): New function.
19710 (verify_ssa): Call verify_alias_info.
19711 Clear TREE_VISITED on all the SSA_NAMEs before scanning the
19712 program.
19713 Re-arrange to avoid printing too many error messages.
19714 * tree-ssanames.c (make_ssa_name): Clear
19715 SSA_NAME_IN_FREE_LIST.
19716 (release_ssa_name): Never release a default definition.
19717 (release_defs): New function.
19718 * tree.h: Declare it.
19719 * tree-ssa-dce.c (remove_dead_stmt): Call it.
19720
19721 2004-07-22 Diego Novillo <dnovillo@redhat.com>
19722
19723 * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
19724 If true, do a depth-first search. Do a breadht-first search,
19725 otherwise.
19726 (walk_use_def_chains): Add new argument IS_DFS.
19727 Update all users.
19728 * tree-flow.h (walk_use_def_chains): Update prototype.
19729
19730 2004-07-22 Hans-Peter Nilsson <hp@axis.com>
19731
19732 * config/cris/cris.md: Tweak formatting.
19733 (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
19734 (mover2side, moverside, movemside, movei, op3, andu): Replace
19735 live define_peephole:s with define_peephole2 near-equivalents.
19736 Delete the rest.
19737 ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap". Match all
19738 word-size modes.
19739 ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
19740 Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
19741 "*mov_sidesi_mem" respectively.
19742
19743 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
19744
19745 * tree-cfg.c (gimplify_val): Move from tree-complex.c.
19746 (gimplify_build1): Move from tree-complex.c do_unop.
19747 (gimplify_build2): Move from tree-complex.c do_binop.
19748 (gimplify_build3): New.
19749 * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
19750 Adjust throughout to call the functions above.
19751 * tree-flow.h: Declare the functions above.
19752 * tree-nested.c (gimplify_val): Rename to...
19753 (tsi_gimplify_val): ... this.
19754
19755 * Makefile.in (tree_complex.o): Update dependencies.
19756 (stor-layout.o): Depend on regs.h.
19757 * c-common.c (handle_vector_size_attribute): Update for
19758 vector types without corresponding vector modes.
19759 * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
19760 a corresponding vector mode is not available.
19761 * print-tree.c (print_node): Print nunits for vector types
19762 * regclass.c (have_regs_of_mode): New.
19763 (init_reg_sets_1): Initialize it and use it instead
19764 of allocatable_regs_of_mode.
19765 * regs.h (have_regs_of_mode): Declare it.
19766 * stor-layout.c (layout_type): Pick a mode for vector types.
19767 * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
19768 build_replicated_const, do_unop, do_binop, do_plus_minus,
19769 do_negate, expand_vector_piecewise, expand_vector_parallel,
19770 expand_vector_addition, expand_vector_operations_1,
19771 expand_vector_operations, tree_lower_operations,
19772 pass_lower_vector_ssa, pass_pre_expand): New.
19773 (expand_complex_operations, pass_lower_complex): Remove.
19774 * tree-optimize.c (init_tree_optimization_passes): Adjust
19775 pass ordering for changes in tree-complex.c.
19776 * tree-pass.h: Declare new passes.
19777 * tree.c (finish_vector_type): Remove.
19778 (make_vector_type): New.
19779 (build_vector_type_for_mode, build_vector_type): Rewritten.
19780 * tree.def (VECTOR_TYPE): Document where the number of
19781 subparts is stored.
19782 * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
19783 (make_vector): Remove declaration.
19784
19785 2004-07-21 Richard Henderson <rth@redhat.com>
19786
19787 * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
19788 TREE_THIS_VOLATILE, may_aliases, or optimization level.
19789 (remove_useless_vars): Dump debugging info.
19790 (expand_used_vars): Move ...
19791 * cfgexpand.c (expand_used_vars): ... here. Make static.
19792 * tree-flow-inline.h (set_is_used): New.
19793 (set_default_def): Use get_var_ann.
19794 * tree-flow.h: Update decls.
19795 * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
19796 (create_ssa_var_map): Use it.
19797 * tree-ssa.c (set_is_used): Remove.
19798
19799 2004-07-22 Ben Elliston <bje@au.ibm.com>
19800
19801 * gdbinit.in: Set a breakpoint on internal_error.
19802
19803 2004-07-21 Richard Henderson <rth@redhat.com>
19804
19805 * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
19806 to create a new basic block.
19807
19808 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
19809
19810 PR c/15052
19811 * c-decl.c (grokdeclarator): Only pedwarn for qualified void
19812 return type on function definitions. Move other warnings for
19813 qualified return type to -Wreturn-type. Do not condition any such
19814 warnings on -pedantic. Update comments.
19815 (start_function): Only copy function type from previous prototype
19816 declaration if return types are compatible.
19817 * c-typeck.c (function_types_compatible_p): Don't condition
19818 warning for incompatibility of volatile qualifiers on the return
19819 type on -pedantic. Update comment.
19820 * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
19821
19822 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
19823
19824 * c-typeck.c (set_init_index): Require designator to be of integer
19825 type.
19826
19827 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
19828
19829 PR c/11250
19830 * c-parse.in (init): Change to exprtype.
19831 (primary): Set original_code for STRING to STRING_CST.
19832 Call maybe_warn_string_init for compound literals.
19833 (initdcl, notype_initdcl): Call maybe_warn_string_init.
19834 (initval): Update.
19835 * c-tree.h (maybe_warn_string_init): New.
19836 (pop_init_level, process_init_element): Use struct c_expr.
19837 (struct c_expr): Update comment.
19838 * c-typeck.c (maybe_warn_string_init): New function.
19839 (digest_init): Call it. Additional parameter strict_string. All
19840 callers changed.
19841 (output_init_element): Likewise.
19842 (struct constructor_stack): Use struct c_expr for
19843 replacement_value.
19844 (really_start_incremental_init, push_init_level): Update.
19845 (pop_init_level): Update. Return struct c_expr.
19846 (process_init_level): Update. Take struct c_expr argument.
19847
19848 2004-07-21 David S. Miller <davem@nuts.davemloft.net>
19849
19850 * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
19851 commit.
19852
19853 2004-07-21 Eric Christopher <echristo@redhat.com>
19854
19855 * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
19856 removal.
19857 * c-decl.c (pop_scope): Ditto.
19858 * calls.c (expand_call): Remove call to current_nesting_level,
19859 update comment accordingly. Remove calls to expand_start_target_temps
19860 and expand_end_target_temps.
19861 * cfgexpand.c (construct_init_block): Remove call to
19862 expand_start_bindings_and_block.
19863 (construct_exit_block): Remove call to expand_end_bindings.
19864 * expr.c (safe_from_p): Remove BIND_EXPR handling.
19865 (expand_expr_real_1): Ditto. Fix formatting.
19866 (expand_vars): Delete.
19867 * stmt.c (POPSTACK): Remove block_stack.
19868 (stmt_status): Remove x_block_stack.
19869 (block_stack): Delete.
19870 (expand_start_bindings_and_block): Ditto.
19871 (expand_start_target_temps): Ditto.
19872 (expand_end_target_temps): Ditto.
19873 (current_nesting_level): Ditto.
19874 (warn_about_unused_variables): Ditto.
19875 (expand_end_bindings): Ditto.
19876 * tree.h: Remove declarations for above.
19877
19878 2004-07-21 Steven Bosscher <stevenb@suse.de>
19879
19880 * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
19881 * rtl.c (note_insn_name): Likewise.
19882 * print-rtl.c (print_rtx): Don't print it.
19883 * cfgrtl.h (can_delete_note_p): Don't handle it.
19884 (rtl_delete_block): Likewise.
19885 * passes.c (rest_of_handle_guess_branch_prob): Remove.
19886 (rest_of_compilation): Don't call it.
19887 * predict.c (process_note_predictions, process_note_prediction,
19888 note_prediction_to_br_prob): Remove.
19889 * basic-block.c (note_prediction_to_br_prob): Remove prototype.
19890 * stmt.c (return_prediction): Remove.
19891 (expand_value_return): Don't call it. Don't add prediction
19892 notes for return statements.
19893
19894 2004-07-21 Josef Zlomek <zlomekj@suse.cz>
19895
19896 * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
19897 once.
19898
19899 2004-07-21 Paolo Bonzini <bonzini@gnu.org>
19900
19901 * c-common.c (vector_types_convertible_p): Use vector types'
19902 TYPE_SIZE and TREE_TYPE instead of their mode.
19903 * convert.c (convert_to_integer): Likewise.
19904 (convert_to_vector): Likewise.
19905 * fold-const.c (fold_convert): Likewise.
19906 * varasm.c (output_constant): Likewise.
19907 * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
19908 Allow a VECTOR_TYPE initializer to be made of several vectors.
19909 For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
19910 of cleared and need_to_clear, and use fold_convert.
19911 * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
19912 integer vectors.
19913
19914 2004-07-20 Richard Henderson <rth@redhat.com>
19915
19916 * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
19917 (expand_gimple_basic_block): out from here. Renamed from expand_block.
19918
19919 2004-07-20 David S. Miller <davem@nuts.davemloft.net>
19920
19921 * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
19922 enormous cost if not TARGET_HARD_MUL.
19923
19924 2004-07-20 Andrew Pinski <apinski@apple.com>
19925
19926 PR target/16557
19927 * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
19928 (ASM_SPEC): here.
19929
19930 2004-07-21 Paul brook <paul@codesourcery.com>
19931
19932 * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
19933
19934 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19935
19936 * fold-const.c (operand_equal_p): Temporarily support NULL args.
19937 (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
19938 (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
19939
19940 2004-07-20 Zack Weinberg <zack@codesourcery.com>
19941
19942 * rtl.h (plus_constant): Delete.
19943 (plus_constant_wide): Rename to plus_constant.
19944 (plus_constant_for_output_wide): Delete vestigial prototype.
19945 (GEN_INT): Remove unnecessary cast.
19946 * tree.h (build_int_2, size_int_type): Delete.
19947 (build_int_2_wide): Rename to build_int_2.
19948 (size_int_wide): Rename to size_int_kind.
19949 (size_int_type_wide): Rename to size_int_type.
19950 (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
19951 Remove unnecessary cast.
19952 * tree.c (build_int_2_wide): Rename build_int_2; update comment.
19953 * explow.c (plus_constant_wide): Rename plus_constant; update comment.
19954 * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
19955 (size_int_type_wide): Rename size_int_type.
19956 (int_const_binop): Use size_int_type.
19957 * c-lex.c (interpret_integer): Use build_int_2.
19958 * final.c (split_double): Remove unnecessary casts.
19959 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
19960
19961 2004-07-20 Richard Henderson <rth@redhat.com>
19962
19963 * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
19964 (gimplify_compound_lval): Use is_gimple_tmp_reg.
19965 * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
19966 (is_gimple_tmp_reg): New.
19967 * tree-gimple.h (is_gimple_tmp_reg): Declare.
19968
19969 2004-07-20 Richard Henderson <rth@redhat.com>
19970
19971 * tree-pretty-print.c (dump_generic_node): Dump
19972 CALL_EXPR_HAS_RETURN_SLOT_ADDR.
19973
19974 2004-07-20 Frank Ch. Eigler <fche@redhat.com>
19975
19976 * tree-mudflap.c (mf_set_options_fndecl): New tree.
19977 (mudflap_init): Set it.
19978 (mudflap_register_call): Remove __mf_init call.
19979 (mudflap_finish_file): Emit call to __mf_init here. Emit a call to
19980 to pass "-ignore-reads" option to libmudflap if needed.
19981
19982 2004-07-20 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
19983
19984 PR c++/14607
19985 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
19986 (MAKE_DECL_ONE_ONLY): Undefine.
19987 * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
19988 readonly_data, one_only_data_section, forget_section): New prototypes.
19989 * pa.c (pa_init_machine_status, som_text_section_asm_op): New
19990 functions.
19991 (pa_select_section): Add one-only (COMDAT) support.
19992 * pa.h (struct machine_function): Define.
19993 * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
19994 (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
19995 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
19996 ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
19997 ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
19998 (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
19999 (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
20000 (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
20001 ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
20002 for EXTRA_SECTION_FUNCTIONS.
20003 * doc/install.texi: Update binutils requirements.
20004
20005 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
20006
20007 * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
20008 VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
20009 VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
20010 size_t.
20011 (struct VEC): Use unsigned for num and alloc.
20012 * vec.c (struct vec_prefix): Likewise.
20013 (vec_o_reserve): Adjust.
20014
20015 * dbxout.c (dbxout_type): Fix printf format.
20016
20017 * tree.h (binfo_member): Remove.
20018 * tree.c (binfo_member): Remove.
20019
20020 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
20021
20022 * tree.h: Include vec.h
20023 (DEF_VEC_P(tree)): New type.
20024 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
20025 (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
20026 (BINFO_LANG_SLOT): Remove.
20027 (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
20028 (struct tree_binfo): Turn base_binfos into a trailing
20029 VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
20030 (binfo_lang_slots): Remove.
20031 * tree.c (binfo_lang_slots): Remove.
20032 (make_tree_binfo_stat): Take a base binfo count, not a
20033 lang slot count. Adjust.
20034 * Makefile.in (TREE_H): Add vec.h
20035 * alias.c (record_component_aliases): Adjust BINFO access.
20036 * dbxout.c (dbxout_type): Likewise.
20037 * dwarf2out.c (gen_member_die): Likewise.
20038 * sdbout.c (sdbout_one_type): Likewise.
20039 * tree-dump.c (deque_and_dump): Likewise.
20040 * config/i386/i386.c (classify_argument,
20041 contains_128bit_aligned_vector_p): Likewise.
20042 * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
20043 * doc/c-tree.texi (Classes): Update BINFO documentation.
20044
20045 2004-07-20 Steven Bosscher <stevenb@suse.de>
20046
20047 * c-common.h (check_case_value): Remove prototype.
20048 (c_add_case_label): Adjust prototype.
20049 * c-common.c (check_case_value): Make static.
20050 (check_case_bounds): New function.
20051 (c_add_case_label): Use it. Take new argument orig_type.
20052 * c-typeck.c (struct c_switch): New orig_type field.
20053 (c_start_case): Set it.
20054 (do_case): Pass it to c_add_case_label.
20055 * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
20056 cases from here. Add the labels in reverse order.
20057 * stmt.c (struct case_node): Adjust comment. Remove balance field.
20058 (add_case_node): Return nothing, don't check for duplicate cases.
20059 Insert new case nodes in a list, not in an AVL tree.
20060 (expand_end_case_type): Don't turn a case tree into a case list.
20061 (case_tree2list): Remove.
20062 * tree.h (add_case_node): Adjust prototype.
20063
20064 2004-07-19 Paolo Bonzini <bonzini@gnu.org>
20065
20066 * genattr.c (struct range, struct function_unit,
20067 write_units, extend_range, init_range): Remove them.
20068 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
20069 Output "#define INSN_SCHEDULING" here.
20070 * genattrtab.c (struct range, struct function_unit_op,
20071 struct function_unit, struct dimension, enum operator,
20072 operate_exp, expand_units, simplify_knowing,
20073 encode_units_mask, simplify_by_exploding,
20074 find_and_mark_used_attributes, unmark_used_attributes,
20075 add_values_to_cover, increment_current_value,
20076 test_for_current_value, simplify_with_current_value,
20077 simplify_with_current_value_aux, gen_unit,
20078 write_unit_name, write_function_unit_info,
20079 write_complex_function, write_toplevel_expr,
20080 find_single_value, extend_range): Remove.
20081 (write_attr_get): Do not handle common_av->value
20082 being an FFS.
20083 (struct attr_desc): Remove func_units_p and blockage_p.
20084 (write_attr_valueq): Do not handle them.
20085 (find_attr): Do not clear them.
20086 (make_internal_attr): Do not initialize them.
20087 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
20088 * sched-vis.c (init_target_units, insn_print_units,
20089 init_block_visualization, print_block_visualization,
20090 visualize_scheduled_insns, visualize_no_unit,
20091 visualize_stall_cycles, visualize_alloc,
20092 visualize_free, target_units, get_visual_tbl_length,
20093 MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
20094 visual_tbl_line_length, visual_tbl, n_vis_no_unit,
20095 MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
20096 * haifa-sched.c (blockage_range, clear_units,
20097 schedule_unit, actual_hazard, potential_hazard,
20098 insn_unit, unit_last_insn, unit_tick,
20099 actual_hazard_this_instance, potential_hazard,
20100 schedule_unit, max_insn_queue_index_value): Remove.
20101 (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
20102 max_insn_queue_index.
20103 * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
20104 * doc/md.texi (Processor pipeline description): Remove
20105 references to old pipeline descriptions.
20106 (Automaton pipeline description): Merge with the above.
20107 (Old pipeline description, Comparison of the two descriptions):
20108 Remove.
20109
20110 * bt-load.c (migrate_btr_def): Remove references to
20111 use_pipeline_interface.
20112 * haifa-sched.c (insn_cost, schedule_insn,
20113 schedule_block, advance_one_cycle, sched_init,
20114 queue_to_ready, sched_finish): Likewise.
20115 * modulo-sched.c (sms_schedule, advance_one_cycle,
20116 ps_has_conflicts): Likewise.
20117 * sched-rgn.c (init_ready): Likewise.
20118 (debug_dependencies): Likewise, and remove an "if (1)".
20119 * target.h (use_dfa_pipeline_interface): Remove.
20120 * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20121 * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20122 * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20123 * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20124 * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20125 * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20126 * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20127 * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20128 * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20129 * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20130 * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20131 * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20132 * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20133 * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20134 * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20135 * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20136 * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20137 * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20138 * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
20139
20140 2004-07-19 Roger Sayle <roger@eyesopen.com>
20141
20142 * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
20143
20144 2004-07-19 Jeff Law <law@redhat.com>
20145
20146 * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
20147 (get_eq_expr_value): Use it. Simplify slightly.
20148
20149 2004-07-19 Maciej W. Rozycki <macro@linux-mips.org>
20150
20151 * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
20152 (umulsidi3_32bit_r4000): Likewise.
20153
20154 2004-07-19 Nathan Sidwell <nathan@codesourcery.com>
20155
20156 * vec.h: Propagate location information properly.
20157 (VEC_T_iterate): Add result pointer parameter.
20158 (VEC_T_space): New.
20159 (VEC_T_reserve): Use it.
20160
20161 2004-07-19 Daniel Jacobowitz <dan@debian.org>
20162
20163 * Makefile.in (c-format.o): Depend on c-format.h.
20164 * c-format.h: New file.
20165 (struct format_char_info): Add CHAIN member.
20166 * c-format.c: Move some types and constants to c-format.h.
20167 (format_type_error): Set to -1.
20168 (struct function_format_info): Use an int for format_type.
20169 (decode_format_type): Return an int. Return format_type_error
20170 on error.
20171 (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
20172 (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
20173 (scan_char_table, time_char_table, monetary_char_table): Initialize
20174 CHAIN to NULL.
20175 (n_format_types): New variable.
20176 (check_format_info_main): Handle CHAIN in format_char_info.
20177 (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
20178 TARGET_N_FORMAT_TYPES.
20179 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
20180 (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
20181 * config/sol2-c.c: New file.
20182 * config/t-sol2: New file.
20183 * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
20184 * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
20185 TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
20186
20187 * doc/extend.texi (Target Format Checks): New section.
20188 (Function Attributes): Mention it.
20189 * doc/invoke.texi: Mention target format checks.
20190 * doc/sourcebuild.texi: Mention target format checks.
20191 * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
20192 TARGET_FORMAT_TYPES.
20193
20194 2004-07-19 Andreas Krebbel <krebbel1@de.ibm.com>
20195
20196 * config/s390/s390-protos.h (s390_return_address_offset): Prototype
20197 added.
20198 * config/s390/s390.c (regclass_map initializer): Register 35 added to
20199 ADDR_REGS.
20200 (load_multiple_operation, store_multiple_operation): Removed
20201 pointless sanity check.
20202 (s390_decompose_address): Added check for return_address_pointer_rtx.
20203 (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
20204 (s390_return_address_offset): New function.
20205 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
20206 (FRAME_REGNO_P): Added check for register 35.
20207 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
20208 REG_ALLOC_ORDER): Appended entry for register 35.
20209 (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
20210 (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
20211 (RETURN_ADDRESS_POINTER_REGNUM): New macro.
20212 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
20213 is eliminable using stack pointer or hard frame pointer.
20214 (REGISTER_NAMES): Added name for register 35.
20215 * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
20216 pointless sanity check.
20217
20218 2004-07-19 Roger Sayle <roger@eyesopen.com>
20219
20220 * fold-const.c (tree_expr_nonzero_p): Add function prototype.
20221 (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
20222 fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
20223 (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
20224 of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
20225 (fold_relational_const): Tidy up handling of floating point
20226 comparisons by calling real_compare. Remove tree_expr_nonzero_p
20227 transformation; fold_relational_const assumes constant operands.
20228
20229 2004-07-19 Gabriel Dos Reis <gdr@integrable-solution.net>
20230
20231 * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
20232 directory.
20233
20234 2004-07-19 Joseph S. Myers <jsm@polyomino.org.uk>
20235
20236 * c-tree.h (struct c_expr): Define.
20237 (C_SET_EXP_ORIGINAL_CODE): Remove.
20238 (parser_build_binary_op, build_compound_expr): Update prototypes.
20239 * c-parse.in (%union): Add exprtype.
20240 (FUNC_NAME): Mark as ttype.
20241 (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
20242 exprtype.
20243 (expr): Update. Define directly in terms of expr_no_commas
20244 instead of using nonnull_exprlist.
20245 (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
20246 offsetof_member_designator, typespec_nonreserved_nonattr, init,
20247 initval, designator, component_declarator,
20248 component_notype_declarator, enumerator, array_declarator,
20249 condition, exexpr, switch_statement, stmt_nocomp, stmt,
20250 nonnull_asm_operands, ivar_declarator, receiver): Update. Don't
20251 set C_EXP_ORIGINAL_CODE. Use TREE_NO_WARNING for assignments
20252 where appropriate.
20253 * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
20254 * c-common.c (c_common_truthvalue_conversion): Don't check
20255 C_EXP_ORIGINAL_CODE.
20256 * c-typeck.c (parser_build_binary_op): Use c_expr structures.
20257 Don't use C_EXP_ORIGINAL_CODE.
20258 (default_conversion, default_function_array_conversion): Don't use
20259 C_EXP_ORIGINAL_CODE. Preserve TREE_NO_WARNING.
20260 (internal_build_compound_expr): Merge into build_compound_expr.
20261 (build_compound_expr): Take two operands instead of a TREE_LIST.
20262 * objc/objc-act.c (get_super_receiver): Update calls to
20263 build_compound_expr.
20264
20265 2004-07-18 Paolo Bonzini <bonzini@gnu.org>
20266
20267 * config/sh/sh.c (sh_use_dfa_interface): Remove.
20268 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
20269 hook_int_void_1.
20270 * config/sh/sh.md: Extract pipeline descriptions
20271 into separate files.
20272 * config/sh/sh1.md: New file, extracted from sh.md.
20273 * config/sh/sh4.md: New file, extracted from sh.md.
20274 * config/sh/shmedia.md: New file, extracted from sh.md
20275 and rewritten using new-style pipeline description.
20276
20277 2004-07-18 Zack Weinberg <zack@codesourcery.com>
20278
20279 * config/pa/pa.md: Delete the two remaining define_peephole
20280 patterns.
20281
20282 2004-07-18 Steven Bosscher <stevenb@suse.de>
20283 Joseph S. Myers <jsm@polyomino.org.uk>
20284
20285 * c-common.c (c_common_truthvalue_conversion): Don't warn if
20286 TREE_NO_WARNING is set.
20287
20288 2004-07-18 Roger Sayle <roger@eyesopen.com>
20289
20290 * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
20291 simplify_builtin_strncmp): Delete.
20292 (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
20293 Change argument to accept an arglist instead of an "exp". Assume
20294 that the return type is always integer_type_node. Copy missing
20295 transformations from their now obsolete simplify_builtin_*
20296 equivalents.
20297 (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
20298 fold_builtin_strcmp and fold_builtin_strncmp.
20299 (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
20300 and fold_builtin_strncmp instead of simplify_builtin_memcmp,
20301 simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
20302
20303 2004-07-18 Daniel Jacobowitz <dan@debian.org>
20304
20305 * Makefile.in (tree-alias-common.o): Update dependencies.
20306
20307 2004-07-17 Sebastian Pop <pop@cri.ensmp.fr>
20308
20309 * cfgloop.c (flow_loop_nested_p): Fix comment.
20310
20311 2004-07-17 Jason Merrill <jason@redhat.com>
20312
20313 PR c++/16115
20314 * stor-layout.c (relayout_decl): New fn.
20315 * tree.h: Declare it.
20316 (DECL_BY_REFERENCE): New macro.
20317
20318 2004-07-17 Eric Botcazou <ebotcazou@act-europe.fr>
20319
20320 * libgcc2.c (__enable_execute_stack): New symbol.
20321 * libgcc-std.ver (GCC_3.4.2): New version. Inherit from GCC_3.4
20322 and declare __enable_execute_stack.
20323 * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
20324 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
20325 * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
20326 ENABLE_EXECUTE_STACK.
20327 * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
20328 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
20329 * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
20330 ENABLE_EXECUTE_STACK.
20331 * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
20332 * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
20333 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
20334 * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
20335 ENABLE_EXECUTE_STACK.
20336 * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
20337 * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
20338 * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
20339 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
20340 * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
20341 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
20342 (sparc64_initialize_trampoline): Likewise.
20343 * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
20344
20345 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
20346
20347 * langhooks.h (builtin_function): New langhook.
20348 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
20349 (LANG_HOOKS_INITIALIZER): Update.
20350 * tree.h (builtin_function): Remove.
20351 * doc/tm.texi: Update.
20352 * c-tree.h (builtin_function): Declare.
20353 * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
20354 config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
20355 config/ia64/ia64.c, config/iq2000/iq2000.c,
20356 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
20357 config/stormy16/stormy16.c: All callers of builtin_function
20358 changed.
20359
20360 2004-07-17 Andrew Pinski <pinskia@physics.uc.edu>
20361
20362 PR target/16556
20363 * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
20364 Remove white space after the backslash.
20365
20366 2004-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
20367
20368 PR rtl-optimization/16294
20369 * resource.c (return_insn_p): New predicate.
20370 (mark_target_live_regs): Use it. Special-case return insns.
20371 (init_resource_info): Use it. Don't scan the epilogue past
20372 a return.
20373
20374 2004-07-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
20375
20376 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
20377 destroy dominance information.
20378 * passes.c (rest_of_handle_loop2): Free dominance information.
20379 * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
20380 jump threading.
20381 (thread_jumps): Update dominance information and remove unreachable
20382 blocks.
20383 * tree-ssa-phiopt.c (replace_phi_with_stmt): Update dominance
20384 information and remove the unreachable block.
20385
20386 2004-07-17 Graham Stott <graham.stott@btinternet.com>
20387
20388 * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
20389
20390 2004-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
20391
20392 * doc/sourcebuild.texi: Remove libf2c entry.
20393
20394 2004-07-17 Paolo Bonzini <bonzini@gnu.org>
20395
20396 * config/i386/i386.md (movv16qi_internal): Fix typo.
20397
20398 2004-07-17 Steven Bosscher <stevenb@suse.de>
20399
20400 * final.c (final_scan_insn): Fix broken commit from previous
20401 patch.
20402
20403 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
20404
20405 * c-typeck.c (parser_build_binary_op): Condition warnings for
20406 X<=Y<=Z on -Wparentheses instead of -Wextra.
20407 * doc/invoke.texi: Update. Document that most of -Wparentheses is
20408 supported for C only.
20409
20410 2004-07-17 Steven Bosscher <stevenb@suse.de>
20411
20412 * cfgcleanup.c (try_simplify_condjump): Don't remove line
20413 notes to avoid unreachable code warnings.
20414 * toplev.c (backend_init): Don't emit line notes for
20415 unreachable code warnings.
20416
20417 * combine.c (distribute_notes): Don't distribute a
20418 REG_VTABLE_REF note.
20419 * final.c (final_scan_insn): Don't handle it.
20420 * rtl.c (reg_note_name): Remove it.
20421 * rtl.h (enum reg_node): Dito.
20422
20423 * emit-rtl.c (force_line_numbers, restore_line_number_status):
20424 Remove.
20425 * rtl.h (force_line_numbers, restore_line_number_status):
20426 Remove prototypes.
20427
20428 * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
20429 * tree-eh.c (using_eh_for_cleanups_p): ...here. Make static.
20430 (using_eh_for_cleanups): Also moved here.
20431
20432 * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
20433 <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY. Update calls
20434 to expand_start_case and add_case_node.
20435 * stmt.c (struct nesting): Cleanup unused fields condition_code,
20436 last_unconditional_cleanup, nominal_type, printname, and
20437 line_number_status.
20438 (struct fixup_goto): Remove.
20439 (struct stmt_status): Remove x_goto_fixup_chain field.
20440 (goto_fixup_chain): Remove.
20441 (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
20442 pushcase, pushcase_range): Remove.
20443 (expand_start_bindings_and_block): Don't set unused fields in
20444 the nesting stack.
20445 (expand_start_case, add_case_node): Cleanup unused formal arguments.
20446 (expand_end_case_type): Don't simplify the case-list. Use emit_jump
20447 instead of emit_jump_if_reachable.
20448 (emit_case_nodes): Likewise.
20449 * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
20450 static.
20451 (update_eh_label): Work around left-over exception handing regions.
20452 * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
20453 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
20454 (pass_cleanup_cfg_post_optimizing): New pass.
20455 (init_tree_optimization_passes): Run the new pass after all
20456 optimizations.
20457 * tree.h (pushcase, pushcase_range): Remove prototypes.
20458 (expand_start_case, add_case_node): Update prototypes.
20459
20460 2004-07-16 Krister Walfridsson <cato@df.lth.se>
20461
20462 * tree-inline.c (estimate_num_insns_1): Correct increase of count.
20463
20464 2004-07-16 Richard Henderson <rth@redhat.com>
20465
20466 * builtins.c (std_expand_builtin_va_arg): Remove.
20467 (expand_builtin_va_arg): Remove.
20468 * expr.h: Don't declare them.
20469 * gimplify.c (mark_decls_volatile_r): Remove.
20470 (copy_if_shared_r): Don't call it.
20471 * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
20472 * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
20473 * gimple-low.c (lower_stmt): Likewise.
20474 * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
20475 * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
20476 * tree-ssa-operands.c (get_expr_operands): Likewise.
20477 * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
20478 EXPAND_BUILTIN_VA_ARG.
20479 * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
20480 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
20481 config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
20482 config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
20483
20484 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
20485
20486 * tree-ssa-pre.c (insert_aux): Break out if we hit
20487 a critical edge.
20488
20489 2004-07-16 Richard Henderson <rth@redhat.com>
20490
20491 * basic-block.h (remove_fake_exit_edges): Declare.
20492 * cfganal.c (remove_fake_predecessors): Rename from
20493 remove_fake_successors; iterate over predecessors.
20494 (remove_fake_exit_edges): New.
20495 * cfgcleanup.c (try_optimize_cfg): Use it.
20496 * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
20497 * predict.c (estimate_probability): Likewise.
20498 (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
20499 * tree-cfg.c (make_edges): Likewise.
20500 * tree-ssa-pre.c (fini_pre): Likewise.
20501 * profile.c (instrument_edges): Don't remove_fake_edges.
20502 (branch_prob): Do it earlier here.
20503
20504 2004-07-16 Richard Henderson <rth@redhat.com>
20505
20506 * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
20507 switchification wrt CONSTRUCTOR. Document the reason.
20508
20509 2004-07-16 Frank Ch. Eigler <fche@redhat.com>
20510
20511 * tree-mudflap.c (mf_file_function_line_tree): Correct typo
20512 that prevented descriptive __mf_check source location strings.
20513
20514 2004-07-16 Richard Henderson <rth@redhat.com>
20515
20516 * tree-def (WITH_SIZE_EXPR): New.
20517 * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
20518 * expr.c (expand_expr_real_1): Likewise.
20519 * gimplify.c (maybe_with_size_expr): New.
20520 (gimplify_arg, gimplify_modify_expr): Use it.
20521 (gimplify_modify_expr_to_memcpy): Take size parameter.
20522 (gimplify_modify_expr_to_memset): Likewise.
20523 (gimplify_expr): Handle WITH_SIZE_EXPR.
20524 * tree-alias-common.c (find_func_aliases): Likewise.
20525 * tree-eh.c (tree_could_trap_p): Likewise.
20526 (tree_could_throw_p): Likewise.
20527 * tree-gimple.c (is_gimple_lvalue): Likewise.
20528 (get_call_expr_in): Likewise.
20529 * tree-inline.c (estimate_num_insns_1): Likewise.
20530 (expand_calls_inline): Likewise.
20531 * tree-nested.c (convert_call_expr): Likewise.
20532 * tree-pretty-print.c (dump_generic_node): Likewise.
20533 * tree-sra.c (sra_walk_expr): Likewise.
20534 * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
20535 * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
20536 * tree-ssa-operands.c (get_expr_operands): Likewise.
20537 * tree-tailcall.c (find_tail_calls): Likewise.
20538
20539 * calls.c (expand_call): Reset old_stack_allocated after
20540 calling emit_stack_restore.
20541
20542 2004-07-16 Richard Henderson <rth@redhat.com>
20543
20544 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
20545 lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
20546 * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
20547 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
20548 copy_res_decl_for_inlining.
20549
20550 * tree-inline.c (declare_return_variable): New modify_dest argument.
20551 Use it as the return value, when possible or manditory. Handle
20552 TREE_ADDRESSABLE types.
20553 (expand_call_inline): Extract MODIFY_EXPR lhs for call. Simplify
20554 replacement of CALL_EXPR.
20555
20556 2004-07-16 Richard Henderson <rth@redhat.com>
20557
20558 * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
20559 * gimple-low.c (expand_var_p): Don't check it.
20560 * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
20561 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
20562 * tree-ssa-operands.c (add_stmt_operand): Likewise.
20563 * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
20564 (find_referenced_vars): Don't call them.
20565 * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
20566
20567 2004-07-16 Richard Henderson <rth@redhat.com>
20568
20569 * function.c (pass_by_reference): True for all variable sized types.
20570
20571 2004-07-16 Sebastian Pop <pop@cri.ensmp.fr>
20572
20573 * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
20574 * tree-pretty-print.c: Include tree-chrec.h.
20575 (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
20576 and POLYNOMIAL_CHREC nodes.
20577
20578 2004-07-16 Steve Ellcey <sje@cup.hp.com>
20579
20580 * builtins.c (expand_builtin_stpcpy): Do not create temporary
20581 reg with VOIDmode.
20582
20583 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
20584
20585 * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
20586
20587 2004-07-16 Andreas Krebbel <krebbel1@de.ibm.com>
20588
20589 * config/s390/s390.md: Changed every occurence of BASE_REGISTER
20590 to BASE_REGNUM.
20591 * config/s390/s390.c: Likewise.
20592 * config/s390/s390.h: Likewise.
20593
20594 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20595
20596 * config/mips/mips.md (addsi3, adddi3): Remove special handling
20597 of $sp adds. Remove REGNO checks from mips16 patterns.
20598
20599 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20600
20601 * config/mips/mips.md: Delete outdated comment.
20602
20603 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20604
20605 * config/mips/mips.c (get_float_compare_codes): Delete.
20606 (mips_emit_compare): New function, mostly extracted from
20607 get_float_compare_codes and gen_conditional_branch.
20608 (gen_conditional_branch, gen_conditional_move): Use it.
20609
20610 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
20611
20612 * genautomata.c (add_vect): Speedup by using integers as
20613 bit-vectors for walking through the comb_vect and finding
20614 a match.
20615
20616 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20617
20618 * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
20619 operand is an uns_arith_operand; use subtraction otherwise.
20620 * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
20621 not just arith_operands.
20622
20623 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20624
20625 * config/mips/mips-protos.h (gen_int_relational): Delete.
20626 (mips_emit_scc): Declare.
20627 * config/mips/mips.c (internal_test): Delete.
20628 (sle_operand, sleu_operand): New functions.
20629 (map_test_to_internal_test, gen_int_relational): Delete.
20630 (mips_emit_binary, mips_relational_operand_ok_p)
20631 (mips_emit_int_relational, mips_zero_if_equal)
20632 (mips_emit_scc): New functions.
20633 (gen_conditional_branch): Rework to use mips_emit_int_relational.
20634 * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
20635 sleu_operand.
20636 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
20637 (sltu, sleu): Use mips_emit_scc.
20638 (*sge_[sd]i, *sgeu_[sd]i): New patterns.
20639 (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
20640 (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
20641
20642 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20643
20644 * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
20645
20646 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20647
20648 * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
20649 (*sne_[sd]i): Likewise sne_[sd]i_zero.
20650 (*sgt_[sd]i): ...and sgt_[sd]i.
20651 (*slt_[sd]i): ...and slt_[sd]i.
20652 (*sgtu_[sd]i): ...and sgtu_[sd]i.
20653 (*sltu_[sd]i): ...and sltu_[sd]i.
20654 (*sleu_[sd]i): ...and sleu_[sd]i_const.
20655 Name previously unnamed mips16 patterns. Formatting fixes.
20656
20657 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20658
20659 * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
20660 (branch_type): Delete.
20661 (gen_conditional_branch, gen_conditional_move)
20662 (mips_gen_conditional_trap): Update after name change. Get the
20663 comparison mode from cmp_operands[0].
20664 * config/mips/mips.h (cmp_type, branch_type): Delete.
20665 (cmp_operands): Renamed from branch_cmp.
20666 * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
20667 name change. Don't set branch_type.
20668 (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
20669 mode class of cmp_operands[0] rather than branch_type. Update after
20670 name change.
20671
20672 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20673
20674 * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
20675 of 0...255 to 0 when inside a SET.
20676
20677 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
20678
20679 * config/mips/mips.md: Remove mips16 define_peepholes.
20680
20681 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
20682
20683 * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
20684 (fini_pre): Remove fake edges.
20685
20686 2004-07-15 Richard Henderson <rth@redhat.com>
20687
20688 * tree-ssa-operands.c (get_expr_operands): Use a switch. Split out...
20689 (get_indirect_ref_operands, get_call_expr_operands): ... these.
20690
20691 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
20692
20693 * vec.h (VEC_address): New function.
20694
20695 2004-07-14 Jason Merrill <jason@redhat.com>
20696
20697 PR middle-end/15885
20698 * gimplify.c (gimplify_arg): New fn, split out from...
20699 (gimplify_call_expr): Here. Special-case BUILT_IN_VA_START.
20700
20701 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
20702
20703 * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
20704 generate code which is generated by pushqi1 now
20705 * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
20706
20707 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
20708
20709 * combine.c (simplify_set): match the mode of the constant 0 with
20710 the tested operand to match the compare behaviour and the
20711 simplify_relational_operation() expectation.
20712
20713 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
20714
20715 * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
20716 ("bordered"): Same.
20717
20718 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
20719
20720 * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
20721 unconditionally.
20722 * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
20723
20724 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
20725
20726 * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
20727 calls in mips16 code.
20728
20729 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
20730
20731 * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
20732 the destination of the li as well as for the neg.
20733
20734 2004-07-15 Frank Ch. Eigler <fche@redhat.com>
20735
20736 g++/15861
20737 * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
20738 * cgraph.h: Update declaration.
20739 * c-decl.c (build_cdtor): Update call with default priority.
20740 * coverage.c (create_coverage): Ditto.
20741 * tree-mudflap.c (mf_init_fndecl): New tree.
20742 (mudflap_init): Set it.
20743 (mudflap_register_call): Arrange to call __mf_init before the first
20744 __mf_register call.
20745 (mudflap_finish_file): Mark the mudflap static initializer as extra
20746 high priority, to beat all C++ static constructors.
20747
20748 2004-07-15 Jeff Law <law@redhat.com>
20749
20750 * loop.c (check_insn_for_givs): Restore check for code labels that was
20751 accidentally deleted by a recent checkin.
20752
20753 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
20754
20755 * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
20756 (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
20757
20758 2004-07-14 Richard Henderson <rth@redhat.com>
20759
20760 * print-tree.c (print_node): Fix casts last change.
20761
20762 2004-07-15 Paul Brook <paul@codesourcery.com>
20763
20764 * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
20765 to TARGET_UNWIND_INFO.
20766 * except.c (output_function_exception_table): Ditto.
20767 * except.h: Ditto.
20768 * opts.c (decode_options): Ditto.
20769 * passes.c (rest_of_handle_final): Ditto.
20770 * final.c (final_start_function): Ditto.
20771 (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
20772 target hook.
20773 * targhooks.h (default_unwind_emit): Declare.
20774 * targhooks.c (default_unwind_emit): New function.
20775 * target-def.h: Define and use TARGET_UNWIND_EMIT.
20776 * target.h (struct gcc_target): Add unwind_emit.
20777 * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
20778 * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
20779 Remove IA64_UNWIND_EMIT.
20780 * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
20781
20782 2004-07-14 Richard Henderson <rth@redhat.com>
20783
20784 * print-tree.c (print_node): Handle SSA_NAME.
20785
20786 2004-07-14 James E Wilson <wilson@specifixinc.com>
20787
20788 PR target/16325
20789 * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
20790 and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
20791
20792 2004-07-15 Jakub Jelinek <jakub@redhat.com>
20793
20794 * expr.c (expand_assignment): Reenable bitfield += optimizations.
20795 Use alias set 0 for memory, do proper mode calculations and adjust
20796 address for memories.
20797
20798 2004-07-14 Per Bothner <per@bothner.com>
20799
20800 * input.h: If USE_MAPPED_LOCATION, define separate expanded_location
20801 structure with extra column field.
20802 * tree.c (expand_location): Also fill in column field.
20803 * gengtype-lex.l: Ignore expanded_location typedef, sinze gengtype
20804 gets confused by the two conditionally-compiled definitions.
20805
20806 2004-07-14 Eric Christopher <echristo@redhat.com>
20807
20808 * calls.c (expand_call): Fix typo in comment.
20809
20810 2004-07-14 Steve Ellcey <sje@cup.hp.com>
20811
20812 * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
20813 comparision of TFmode.
20814
20815 2004-07-14 Richard Henderson <rth@redhat.com>
20816
20817 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
20818 (alpha_gimplify_va_arg): ... handling here. Use pass_by_reference.
20819 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
20820 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
20821 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
20822 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
20823 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
20824 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
20825 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
20826
20827 2004-07-14 Mike Stump <mrs@apple.com>
20828
20829 * config/darwin.h (WINT_TYPE): Define to be int to match
20830 system header files.
20831
20832 2004-07-14 Bob Wilson <bob.wilson@acm.org>
20833
20834 * config/xtensa/xtensa.c (function_arg_advance): Check for args
20835 that must be passed in the stack.
20836 (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
20837 arguments if the size is not a constant.
20838
20839 2004-07-14 Per Bothner <per@bothner.com>
20840
20841 * c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION
20842 instead of EXPR_LOCUS in a boolean context, which is always true
20843 if --enable-mapped-location.
20844 * stmt.c (warn_if_unused_value): Likewise. Also use EXPR_LOCATION.
20845
20846 2004-07-14 Richard Henderson <rth@redhat.com>
20847
20848 * dominance.c (struct dom_info): Add fake_exit_edge.
20849 (init_dom_info): Allocate it.
20850 (free_dom_info): Free it.
20851 (calc_dfs_tree): Set it. Handle noreturn and infinite loops
20852 in two passes.
20853 (calc_idoms): Honor fake_exit_edge.
20854
20855 2004-07-13 Jason Merrill <jason@redhat.com>
20856
20857 * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
20858 (rhs_test_for): New fn.
20859 (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
20860 * tree-gimple.h: Declare them.
20861 * gimplify.c (gimplify_modify_expr): Use the new fns.
20862
20863 2004-07-14 Richard Henderson <rth@redhat.com>
20864
20865 * config/arm/arm-protos.h (arm_va_arg): Remove.
20866 * config/arm/arm.c (arm_va_arg): Remove.
20867 (arm_init_expanders): Fix alignment of arg_pointer_rtx.
20868 * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
20869
20870 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20871
20872 * pa.c (fix_range): New function to mark a range(s) of registers as
20873 fixed registers.
20874 (override_options): Call fix_range if the -mfixed-range option string
20875 is not empty.
20876 * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
20877 * doc/invoke.texi (-mfixed-range): Document new option.
20878
20879 2004-07-14 David Edelsohn <edelsohn@gnu.org>
20880
20881 * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
20882 for TARGET_64BIT.
20883 (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
20884
20885 2004-07-14 Roger Sayle <roger@eyesopen.com>
20886
20887 * expmed.c (expand_sdiv_pow2): New function to expand signed division
20888 by a positive power of two, split out from expand_divmod. Provide
20889 an alternate implementation when shifts are expensive. Lower the
20890 threshold for using a branchless implementation to BRANCH_COST >= 2.
20891 (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
20892
20893 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
20894
20895 * tree-dfa.c (make_rename_temp): *Really* work just
20896 like create_tmp_var if called while outside SSA form.
20897
20898 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
20899
20900 * config/s390/s390.md ("udivsi3"): Ensure trap is generated
20901 for division by zero.
20902 ("umodsi3"): Likewise.
20903
20904 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
20905
20906 * config/mips/mips.c (mips_output_move): When generating mips16 code,
20907 force loads of negative constants to be split.
20908 * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
20909 Generalize SImode li/neg splitter to cope with other modes.
20910
20911 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
20912
20913 * expmed.c: Remove more references to QUEUED in the comments.
20914 * expr.c: Likewise.
20915
20916 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
20917
20918 Revert:
20919 2004-07-13 Richard Henderson <rth@redhat.com>
20920 * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
20921 correctly.
20922
20923 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
20924
20925 * tree-dfa.c (make_rename_temp): Work just like
20926 create_tmp_var if called while outside SSA form.
20927
20928 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
20929
20930 * expr.c (enqueue_insn, finish_expr_for_function,
20931 protect_from_queue, queued_subexp_p, mark_queue,
20932 emit_insns_enqueued_after_mark, emit_queue,
20933 expand_increment): Remove.
20934 (store_constructor): Expand increment as an assignment.
20935 (expand_expr_real_1 <case PREINCREMENT_EXPR,
20936 case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
20937 case POSTDECREMENT_EXPR>): Abort.
20938 * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
20939 QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
20940 protect_from_queue, emit_queue, queued_subexp_p): Remove.
20941 * function.h (pending_chain, x_pending_chain): Remove.
20942 * rtl.def (QUEUED): Remove.
20943
20944 * emit-rtl.c (copy_insn_1, copy_most_rtx,
20945 set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
20946 * genattrtab.c (attr_copy_rtx, clear_struct_flag,
20947 encode_units_mask): Likewise.
20948 * local-alloc.c (equiv_init_varies_p): Likewise.
20949 * rtl.c (copy_rtx): Likewise.
20950 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
20951 * simplify-rtx.c (simplify_gen_subreg): Likewise.
20952 * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
20953
20954 * builtins.c (expand_builtin, expand_builtin_apply,
20955 expand_builtin_mathfn, expand_builtin_mathfn_2,
20956 expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
20957 Remove calls to emit_queue and protect_from_queue.
20958 * calls.c (expand_call, precompute_arguments,
20959 precompute_register_parameters, rtx_for_function_call,
20960 store_one_arg): Likewise.
20961 * dojump.c (do_compare_and_jump, do_jump): Likewise.
20962 * explow.c (memory_address): Likewise.
20963 * expmed.c (clear_by_pieces_1, clear_storage,
20964 clear_storage_via_libcall, emit_group_load,
20965 emit_group_store, emit_store_flag,
20966 expand_expr_real_1, store_by_pieces,
20967 store_constructor, store_expr, try_casesi,
20968 try_tablejump): Likewise.
20969 * function.c (expand_pending_sizes): Likewise.
20970 * optabs.c (emit_cmp_and_jump_insns,
20971 emit_conditional_add, emit_conditional_move,
20972 expand_fix, expand_float, prepare_cmp_insn): Likewise.
20973 * stmt.c (emit_case_bit_tests,
20974 expand_asm_expr, expand_computed_goto,
20975 expand_decl_init, expand_end_case_type,
20976 expand_end_stmt_expr, expand_expr_stmt_value,
20977 expand_return, expand_start_case,
20978 optimize_tail_recursion): Likewise.
20979 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
20980 * config/s390/s390.c (s390_expand_cmpmem): Likewise.
20981
20982 2004-07-14 Ben Elliston <bje@au.ibm.com>
20983
20984 * vec.h: Comment fix.
20985
20986 2004-07-13 Richard Henderson <rth@redhat.com>
20987
20988 * target.h (struct gcc_target): Add calls.pass_by_reference.
20989 * target-def.h (TARGET_PASS_BY_REFERENCE): New.
20990 * function.c (pass_by_reference): Use the hook.
20991 * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
20992 * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
20993 (hook_pass_by_reference_must_pass_in_stack): New.
20994 * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
20995 (alpha_pass_by_reference): New.
20996 (TARGET_PASS_BY_REFERENCE): New.
20997 * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
20998 * config/arc/arc.c (arc_pass_by_reference): New.
20999 (TARGET_PASS_BY_REFERENCE): New.
21000 * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21001 (FUNCTION_ARG_CALLEE_COPIES): True.
21002 * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
21003 * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
21004 (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
21005 * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21006 * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21007 * config/cris/cris.c (cris_pass_by_reference): New.
21008 (TARGET_PASS_BY_REFERENCE): New.
21009 * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
21010 (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
21011 (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21012 * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
21013 * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21014 * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
21015 * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
21016 (frv_function_arg_pass_by_reference): Remove.
21017 * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21018 * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
21019 * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
21020 (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
21021 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21022 * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
21023 * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
21024 (ia64_pass_by_reference): Rename from
21025 ia64_function_arg_pass_by_reference.
21026 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21027 * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21028 * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
21029 * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
21030 (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
21031 * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21032 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
21033 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
21034 * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
21035 (m32r_pass_by_reference): Adjust prototype. Make static.
21036 Handle mode sizes correctly.
21037 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21038 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
21039 (m68hc11_function_arg_pass_by_reference): Remove.
21040 * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21041 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
21042 * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
21043 * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21044 * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
21045 * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
21046 (mips_va_arg): Use pass_by_reference.
21047 (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
21048 Handle mode sizes correctly.
21049 * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21050 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
21051 * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
21052 * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
21053 (mmix_pass_by_reference): Rename from
21054 mmix_function_arg_pass_by_reference.
21055 * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21056 (FUNCTION_ARG_CALLEE_COPIES): True.
21057 * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
21058 (mn10300_pass_by_reference): New.
21059 * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21060 (FUNCTION_ARG_CALLEE_COPIES): True.
21061 * config/pa/pa.c (pa_pass_by_reference): New.
21062 (TARGET_PASS_BY_REFERENCE): New.
21063 * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21064 (FUNCTION_ARG_CALLEE_COPIES): True.
21065 * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
21066 * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
21067 (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
21068 * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21069 * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
21070 * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
21071 (s390_pass_by_reference): Rename from
21072 s390_function_arg_pass_by_reference.
21073 (s390_function_arg_advance): Don't query pass-by-ref.
21074 (s390_function_arg): Likewise.
21075 (s390_gimplify_va_arg): Use pass_by_reference.
21076 (s390_call_saved_register_used): Likewise.
21077 * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21078 * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
21079 (shcompact_byref, sh_pass_by_reference): New.
21080 * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21081 (SHCOMPACT_BYREF): Remove.
21082 * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
21083 * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
21084 (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
21085 (sparc_gimplify_va_arg): Use pass_by_reference.
21086 * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21087 * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21088 * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
21089 (v850_pass_by_reference): New.
21090 * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21091 (FUNCTION_ARG_CALLEE_COPIES): True.
21092 * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
21093 FUNCTION_ARG_PASS_BY_REFERENCE docs.
21094
21095 2004-07-14 Richard Henderson <rth@redhat.com>
21096 Richard Sandiford <rsandifo@redhat.com>
21097
21098 * config/mips/mips-protos.h (mips_va_arg): Delete.
21099 * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
21100 * config/mips/mips.c: Include tree-gimple.h.
21101 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
21102 (mips_arg_info): Remove special handling of must_pass_in_stck args.
21103 (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
21104 (function_arg_pass_by_reference): Return true if must_pass_in_stack.
21105
21106 2004-07-13 Bob Wilson <bob.wilson@acm.org>
21107
21108 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
21109 arguments for COND_EXPR in big-endian adjustment code.
21110
21111 2004-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21112
21113 * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
21114 * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
21115 * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
21116 * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
21117
21118 2004-07-13 Diego Novillo <dnovillo@redhat.com>
21119
21120 PR tree-optimization/16443
21121 * tree-ssa-alias.c: Add more description for
21122 CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
21123 * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
21124 clobbering of call-clobbered and addressable variables. If
21125 there are any before aliases have been computed, add them.
21126
21127 2004-07-13 Diego Novillo <dnovillo@redhat.com>
21128
21129 * tree-optimize.c (execute_todo): Flush DUMP_FILE before
21130 verification.
21131
21132 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
21133
21134 * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
21135 of build_int_2. Convert both operands of PLUS_EXPR and MULT_EXPR
21136 to the same type.
21137
21138 2004-07-13 Per Bothner <per@bothner.com>
21139
21140 * collect2.c (main): Handle --no-demangle and --demangle flags.
21141
21142 2004-07-13 Sebastian Pop <pop@cri.ensmp.fr>
21143
21144 * Makefile.in (OBJS-common): Add tree-data-ref.o.
21145 (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
21146 (tree-data-ref.o): New rule.
21147 * lambda.h: New file.
21148 * tree-data-ref.c: New file.
21149 * tree-data-ref.h: New file.
21150 * tree.c (int_cst_value, tree_fold_gcd): New functions.
21151 * tree.h (int_cst_value, tree_fold_gcd): Declared here.
21152
21153 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
21154
21155 PR target/13926
21156 * config/sparc/sparc-protos.h (output_ubranch): New prototype.
21157 * config/sparc/sparc.c (output_ubranch): New function.
21158 * config/sparc/sparc.md (jump pattern): Use it.
21159
21160 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
21161
21162 PR target/16494
21163 * config/sparc/sparc.c (output_cbranch): Properly guard
21164 the code handling far branches with TARGET_V9.
21165 * config/sparc/sparc.md (length attribute): Document the
21166 side-effect of having a length greater or equal to 3.
21167
21168 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
21169 Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
21170
21171 PR target/15186
21172 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
21173 /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
21174
21175 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
21176 Martin Sebor <sebor@roguewave.com>
21177
21178 PR target/12602
21179 * doc/invoke.texi (SPARC options): Document -threads
21180 and -pthreads on Solaris.
21181
21182 2004-07-13 Richard Henderson <rth@redhat.com>
21183
21184 * builtins.c (std_gimplify_va_arg_expr): Handle types passed
21185 by reference.
21186 (ind_gimplify_va_arg_expr): Remove.
21187 * tree.h (ind_gimplify_va_arg_expr): Remove.
21188 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
21189 * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
21190 argsp to be null.
21191
21192 * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
21193 (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
21194 * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
21195 config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
21196 config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
21197
21198 2004-07-13 Richard Henderson <rth@redhat.com>
21199
21200 * function.c (pass_by_reference): New.
21201 (assign_parm_find_data_types): Use it.
21202 * calls.c (initialize_argument_information): Likewise.
21203 (emit_library_call_value_1): Likewise.
21204 * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21205 * function.h (pass_by_reference): Declare.
21206
21207 2004-07-13 Richard Henderson <rth@redhat.com>
21208
21209 * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
21210 * target.h (struct gcc_target): Add calls.must_pass_in_stack.
21211 * expr.h (MUST_PASS_IN_STACK): Remove.
21212 * system.h (MUST_PASS_IN_STACK): Poison.
21213 * tree.h (must_pass_in_stack_var_size): Declare.
21214 (must_pass_in_stack_var_size_or_pad): Declare.
21215 * calls.c (must_pass_in_stack_var_size): New.
21216 (must_pass_in_stack_var_size_or_pad): Rename from
21217 default_must_pass_in_stack.
21218 * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
21219 (TARGET_MUST_PASS_IN_STACK): New.
21220 * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
21221 * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
21222 (TARGET_MUST_PASS_IN_STACK): New.
21223 * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
21224 * config/frv/frv.c (frv_must_pass_in_stack): New.
21225 (TARGET_MUST_PASS_IN_STACK): New.
21226 * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
21227 * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
21228 * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
21229 (ix86_must_pass_in_stack): Make static.
21230 * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
21231 * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
21232 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
21233 * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
21234 * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
21235 * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
21236 * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
21237 (mcore_must_pass_on_stack): Remove.
21238 * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
21239 * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
21240 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
21241 * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
21242 * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
21243 * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
21244 * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
21245 * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
21246 (TARGET_MUST_PASS_IN_STACK): New.
21247 * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
21248 * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
21249 * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
21250 * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
21251 * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
21252 * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
21253 * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
21254 MUST_PASS_IN_STACK.
21255
21256 * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
21257 config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
21258 config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
21259 config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
21260 config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
21261 config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
21262 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
21263 config/xtensa/xtensa.c: Use target hook.
21264
21265 2004-07-13 Anthony Heading <aheading@jpmorgan.com>
21266
21267 * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
21268 * configure: Rebuilt.
21269
21270 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
21271
21272 * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
21273 * config/mips/mips.h (mips_reg_names): Don't declare.
21274 (MASK_NAME_REGS): Delete. Shuffle other MASK_* values down.
21275 (TARGET_NAME_REGS): Delete.
21276 (TARGET_SWITCHES): Remove -mrnames.
21277 (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
21278 (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
21279 in REGISTER_NAMES.
21280 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
21281 (override_options): Remove handling of TARGET_NAME_REGS.
21282
21283 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
21284
21285 * config/mips/mips.h (TARGET_*): Boolify.
21286
21287 2004-07-12 Nick Clifton <nickc@redhat.com>
21288
21289 * config.gcc: Add sh-*-symbianelf target.
21290 * config/sh/sh.c: Add new target macros:
21291 TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
21292 TARGET_CXX_IMPORT_EXPORT_CLASS.
21293 (sh_file_start): Create a definition of the .directive section.
21294 (sh_attribute): Add dllimport and dllexport attributes.
21295 * config/sh/symbian-pre.h: New file.
21296 * config/sh/symbian-post.h: New file.
21297 * config/sh/symbian.c: New file. Contains Symbian specific
21298 functions.
21299 * config/sh/sh-protos.h: Add prototypes for new functions
21300 provided by symbian.c.
21301 * config/sh/t-symbian: New file.
21302 * doc/extend.texi: Document support for dllimport and dllexport
21303 attributes by the sh-symbianelf target.
21304
21305 2004-07-12 James E Wilson <wilson@specifixinc.com>
21306
21307 * Makefile.in (AR): Use @AR@ not ar.
21308 (NM): New.
21309 (AR_FOR_TARGET): Use $(AR) not ar for native.
21310 (NM_FOR_TARGET): Use $(NM) not nm for native.
21311 * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
21312 * configure: Regenerate.
21313
21314 2004-07-12 David S. Miller <davem@nuts.davemloft.net>
21315
21316 * config/sparc/sparc.md (ashlsi3): Eliminate const 1
21317 special case.
21318 (ashldi3_sp64): Likewise.
21319
21320 2004-07-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21321
21322 PR target/16477
21323 * pa.c (function_arg): Update comment.
21324 * pa.h (BLOCK_REG_PADDING): Define.
21325
21326 2004-07-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
21327
21328 PR tree-optimization/16461
21329 * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
21330 arguments of phi nodes.
21331
21332 2004-07-12 Devang Patel <dpatel@apple.com>
21333
21334 * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
21335
21336 2004-07-12 Steve Ellcey <sje@cup.hp.com>
21337
21338 * function.c (expand_function_start): Ensure r_save is in Pmode.
21339 * calls.c (prepare_call_address): Ensure static_chain_value is
21340 in Pmode.
21341 * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
21342 r_save_area are in Pmode.
21343 * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
21344 fnaddr, and static_chain are in Pmode.
21345
21346 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
21347
21348 PR target/16445
21349 * config/ia64/ia64.c (bundling): Don't count ignored insns.
21350
21351 2004-07-12 Richard Henderson <rth@redhat.com>
21352
21353 * target.h (struct gcc_target): Move gimplify_va_arg_expr
21354 next to build_builtin_va_list.
21355 * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
21356 * builtins.c (gimplify_va_arg_expr): Likewise.
21357 * gimplify.c (copy_if_shared_r): Likewise.
21358
21359 2004-07-12 Alexandre Oliva <aoliva@redhat.com>
21360
21361 * passes.c (rest_of_decl_compilation): Don't defer call of
21362 assemble_variable if its DECL_RTL is already set.
21363
21364 2004-07-12 Sebastian Pop <pop@cri.ensmp.fr>
21365
21366 * cfgloop.h (struct loop): Add nb_iterations field.
21367 (current_loops): Declare.
21368 * tree-chrec.c (chrec_not_analyzed_yet,
21369 chrec_dont_know, chrec_known, count_ev_in_wider_type,
21370 chrec_contains_symbols_defined_in_loop): Remove the temporary
21371 hooks.
21372 * tree-flow-inline.h (loop_containing_stmt): New function.
21373 * tree-scalar-evolution.c: Add implementation.
21374 * tree-scalar-evolution.h: Add declarations.
21375
21376 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
21377
21378 PR rtl-optimization/15921
21379 * Makefile.in (global.o): Add recog.h.
21380
21381 * global.c (recog.h): Add the include-clause.
21382 (bb_info): New member earlyclobber.
21383 (allocate_bb_info, free_bb_info): Initialize/finish the new
21384 member.
21385 (earlyclobber_regclass, earlyclobber_regclass_length): The new
21386 global variables.
21387 (check_earlyclobber, regclass_intersect,
21388 mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
21389 New functions.
21390 (calculate_local_reg_bb_info): Calculate value of earlyclobber.
21391 (make_accurate_live_analysis): Modify pavin.
21392
21393 2004-07-12 Diego Novillo <dnovillo@redhat.com>
21394
21395 * tree-cfg.c (find_taken_edge): Statically compute the truth
21396 value of a predicate comparing an SSA_NAME to itself.
21397
21398 2004-07-12 Roger Sayle <roger@eyesopen.com>
21399
21400 * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
21401 rs6000 doesn't have shift-and-add or shift-and-sub instructions
21402 by returning the cost of a multiplication plus an addition.
21403
21404 2004-07-12 Paolo Bonzini <bonzini@gnu.org>
21405
21406 PR tree-optimization/14107
21407 * gimplify.c (gimplify_return_expr): Accept a
21408 RETURN_EXPR with an error argument.
21409 * tree-optimize.c (init_tree_optimization_passes):
21410 Run pass_warn_function_return at -O0.
21411
21412 2004-07-12 Roger Sayle <roger@eyesopen.com>
21413
21414 * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
21415 index entry.
21416
21417 2004-07-12 Richard Sandiford <rsandifo@redhat.com>
21418
21419 * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
21420 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21421 * config/mips/3000.md: Add copyright notice. Remove automota and
21422 function units; use generic ones instead. Only define reservations
21423 for things that are different from generic.md. Extend each clause
21424 to include r3900.
21425 * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
21426 * config/mips/mips.md: Include them. Remove define_function_units.
21427 (alu, imuldiv): New automata and units.
21428
21429 2004-07-12 Ben Elliston <bje@au.ibm.com>
21430
21431 * doc/invoke.texi (Optimize Options): Document -frename-registers
21432 not being enabled by default at -O3.
21433
21434 2004-07-11 Roger Sayle <roger@eyesopen.com>
21435
21436 * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
21437 floating point additions, to keep real immediate constant positive.
21438 <MINUS_EXPR>: For floating point subtractions, only transform X - -C
21439 into X + C, and leave positive real constants as X - C.
21440
21441 2004-07-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21442
21443 * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
21444
21445 2004-07-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
21446
21447 PR tree-optimization/15654
21448 * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
21449
21450 2004-07-11 Roger Sayle <roger@eyesopen.com>
21451
21452 * builtins.c (fold_builtin_fputs): Don't bother converting the
21453 return type to integer_type_node, as we've already checked that
21454 the result will be ignored.
21455
21456 * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
21457 that signed addition, subtraction, multiplication, division,
21458 remainder, negation and absolute value may potentially trap.
21459
21460 * fold-const.c (fold_ignored_result): New function to strip
21461 non-side-effecting tree nodes from an expression whose result
21462 is ignored.
21463 (fold_convert): Call fold_ignored_result when casting a value
21464 to VOID_TYPE.
21465 (omit_one_operand): Call fold_ignored_result on the "omitted"
21466 operand when building a COMPOUND_EXPR.
21467 (pedantic_omit_one_operand): Likewise.
21468 * tree.h (fold_ignored_result): Prototype here.
21469 * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
21470 when we're going to ignore the result.
21471
21472 2004-07-11 Richard Henderson <rth@redhat.com>
21473
21474 PR tree-opt/16383
21475 * tree-ssa-ccp.c (fold_stmt_r): Split out...
21476 * tree.c (fields_compatible_p, find_compatible_field): ... new.
21477 * tree.h (fields_compatible_p, find_compatible_field): Declare.
21478 * tree-sra.c (sra_hash_tree): Hash fields by offset.
21479 (sra_elt_eq): Use fields_compatible_p.
21480 (generate_one_element_ref): Use find_compatible_field.
21481
21482 2004-07-11 Richard Henderson <rth@redhat.com>
21483
21484 PR tree-opt/16422
21485 * tree-sra.c (generate_one_element_init): New.
21486 (generate_element_init): Use it.
21487 (scalarize_init): Push/pop gimplify context around it.
21488 (find_new_referenced_vars_1, find_new_referenced_vars): New.
21489 * gimplify.c (gimplify_expr): Allow SSA_NAME.
21490
21491 2004-07-11 Roger Sayle <roger@eyesopen.com>
21492
21493 * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
21494 combine.c's combine_insn_cost.
21495 * rtl.h (insn_rtx_cost): Prototype here.
21496 * combine.c (combine_insn_cost): Delete function.
21497 (combine_validate_cost): Update callers of combine_insn_cost to
21498 call insn_rtx_cost instead.
21499 (combine_instructions): Likewise. Use NONJUMP_INSN_P to avoid
21500 requesting the rtx_cost of call and/or jump instructions.
21501
21502 * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
21503 rtx_cost directly. Don't request/use the cost of call or jump
21504 instructions. Return -1 if the cost of any instruction can't be
21505 determined (or the BB contains a function call).
21506 (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
21507 -1 (i.e. can't determine the cost of any instruction or the basic
21508 block contains a subroutine call).
21509 (find_if_case_2): Likewise.
21510
21511 2004-07-11 Roger Sayle <roger@eyesopen.com>
21512
21513 * rs6000.c (struct processor_costs): Change semantics of fields to
21514 include the COST_N_INSNS scaling, and update all initializers.
21515 (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
21516 Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
21517 Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP. When
21518 optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
21519
21520 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
21521
21522 * LANGUAGES: Remove obsolete information.
21523
21524 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
21525
21526 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
21527 SIGBUS signal frames, the PSW address points *to* the faulting
21528 instruction, not after it.
21529
21530 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
21531
21532 * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
21533 added to TLS symbol addresses.
21534
21535 2004-07-11 Richard Henderson <rth@redhat.com>
21536
21537 * expmed.c (init_expmed): Use stack-local structures for
21538 temporary rtl. Don't recognize shifts.
21539
21540 2004-07-11 Richard Henderson <rth@redhat.com>
21541
21542 * expr.c (store_expr): Don't fiddle subreg promotion for types
21543 with precision smaller than the mode.
21544
21545 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
21546
21547 * tree.h (all_types_permanent): Remove.
21548
21549 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
21550
21551 * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
21552 maybe_build_cleanup, update_decl_after_saving): Remove hooks.
21553 * langhooks.c (lhd_clear_binding_stack): Remove.
21554 * langhooks-def.h (lhd_clear_binding_stack,
21555 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
21556 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
21557 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
21558 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
21559 (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
21560 * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
21561 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
21562 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
21563 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
21564 * tree.h (poplevel): Don't declare.
21565 * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
21566 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
21567 * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
21568 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
21569 Remove.
21570
21571 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
21572
21573 PR tree-optimization/16437
21574 * c-common.c (shorten_compare): Don't mark result of conversion to
21575 narrower signed type as overflowing.
21576 * fold-const.c (decode_field_reference): Determine whether
21577 signedness comes from outer type using precision rather than size.
21578
21579 2004-07-11 Phil Edwards <phil@codesourcery.com>
21580
21581 * configure.ac: Alphabetize --enable-checking list, add
21582 missing valgrind entry.
21583 * configure: Regenerate.
21584
21585 2004-07-11 Phil Edwards <phil@codesourcery.com>
21586
21587 * doc/install.texi (Testing): Fix syntax in "make check" example.
21588
21589 2004-07-10 James E Wilson <wilson@specifixinc.com>
21590
21591 * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
21592
21593 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
21594
21595 PR rtl-optimization/16001
21596 * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
21597 niter_expr.
21598
21599 2004-07-10 Geoffrey Keating <geoffk@apple.com>
21600
21601 * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
21602
21603 2004-07-10 Steve Kargl <sgk@troutmask.apl.washington.edu>
21604 James Morrison <phython@gcc.gnu.org>
21605
21606 * doc/contrib.texi (Contributors): Add gfortran contributors and
21607 fix a couple of typos.
21608
21609 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
21610
21611 PR rtl-optimization/15387
21612 * calls.c (check_sibcall_argument_overlap_1): Handle pointers
21613 to incoming args space correctly.
21614
21615 2004-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21616
21617 * pa.c (output_indirect_call): Only use %r2 as the link register in
21618 indirect calls with the long PA 2.0 pc-relative branch.
21619
21620 2004-07-10 Daniel Jacobowitz <dan@debian.org>
21621
21622 * config/i386/i386.c (override_options): Pick a 64-bit CPU
21623 for the default tuning if TARGET_64BIT.
21624
21625 2004-07-10 Richard Henderson <rth@redhat.com>
21626
21627 * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
21628 to HOST_WIDE_INT. Fold pad-args-down arithmetic.
21629
21630 2004-07-10 Jakub Jelinek <jakub@redhat.com>
21631
21632 * expr.h (store_bit_field, extract_bit_field): Remove last argument.
21633 * expmed.c (store_bit_field, extract_bit_field): Remove last
21634 argument.
21635 * builtins.c (expand_builtin_signbit): Adjust callers.
21636 * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
21637 * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
21638 * ifcvt.c (noce_emit_move_insn): Likewise.
21639 * stmt.c (expand_return): Likewise.
21640 * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
21641 store_field, expand_expr_real_1): Likewise.
21642
21643 2004-07-10 Richard Henderson <rth@redhat.com>
21644
21645 * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
21646
21647 2004-07-09 Mike Stump <mrs@apple.com>
21648
21649 * config/darwin.c (no_dead_strip): Add.
21650 (HAVE_DEAD_STRIP): Add.
21651 (darwin_emit_unwind_label): Ensure that we don't dead code strip
21652 the .eh label.
21653
21654 2004-07-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
21655
21656 * tree-ssa-loop-im.c: New file.
21657 * Makefile.in (tree-ssa-loop-im.o): Add.
21658 * cfgloop.c (superloop_at_depth): New function.
21659 * cfgloop.h (superloop_at_depth): Declare.
21660 * common.opt (ftree-lim): New flag.
21661 * expr.c (array_ref_up_bound): New function.
21662 * params.def (PARAM_LIM_EXPENSIVE): New parameter.
21663 * timevar.def (TV_LIM): New timevar.
21664 * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
21665 computing immediate uses of a phi node.
21666 * tree-flow.h (struct tree_ann_common_d): Add aux field.
21667 (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
21668 * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
21669 * tree-pass.h (pass_lim): Declare.
21670 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
21671 functions.
21672 (pass_lim): New pass structure.
21673 * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
21674 * tree.c (in_array_bounds_p): New function.
21675 * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
21676 (in_array_bounds_p, array_ref_up_bound): Declare.
21677 * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
21678 * doc/passes.texi (tree-ssa-loop-im.c): Document.
21679
21680 2004-07-09 Richard Henderson <rth@redhat.com>
21681
21682 * builtins.c (expand_builtin_stpcpy): Don't modify len.
21683
21684 * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
21685 with prejudice.
21686
21687 2004-07-10 Kelley Cook <kcook@gcc.gnu.org>
21688
21689 * flags.h: Delete redundant prototypes that are being generated
21690 in options.h from common.opt.
21691 * common.opt: Add in the expository comments formerly in flags.h.
21692
21693 2004-07-09 Jan Beulich <jbeulich@novell.com>
21694
21695 * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
21696 available for use only when TARGET_MMX/_SSE is set, and check for
21697 variable argument function if any register count is non-zero.
21698 (function_arg): Correctly suppress repeated warnings for passing SSE
21699 vectors are arguments without SSE enabled.
21700 (ix86_function_arg_boundary): Without SSE enabled, the use of what
21701 would be SSE register modes does no longer influence the alignment.
21702
21703 2004-07-09 Richard Henderson <rth@redhat.com>
21704
21705 * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
21706 Always align upward to arg boundary. Use size_in_bytes/round_up.
21707 Maintain type-correctness of constants.
21708 * stor-layout.c (round_up, round_down): Special-case powers of 2.
21709
21710 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
21711
21712 * config/sparc/sparc.c (*_costs): Scale instruction costs
21713 by COSTS_N_INSNS.
21714 (sparc_rtx_costs): Adjust as appropriate.
21715
21716 2004-07-09 Jan Beulich <jbeulich@novell.com>
21717
21718 * config/i386/mm3dnow.h: New.
21719 * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
21720
21721 2004-07-09 Richard Henderson <rth@redhat.com>
21722
21723 * simplify-rtx.c (simplify_const_relational_operation): Only
21724 look at bounds of scalar integers.
21725
21726 2004-07-09 Jan Beulich <jbeulich@novell.com>
21727
21728 * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
21729
21730 2004-07-09 Andrew Pinski <apinski@apple.com>
21731
21732 * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
21733 always referenced.
21734 (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
21735 UOBJC_METACLASS_decl.
21736
21737 2004-07-09 James E Wilson <wilson@specifixinc.com>
21738
21739 PR target/16364
21740 * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
21741 do return a parallel if hfa_mode == XFmode and mode == TImode.
21742
21743 2004-07-09 Jan Beulich <jbeulich@novell.com>
21744
21745 * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
21746 permissible for unary plus.
21747
21748 2004-07-09 Jan Beulich <jbeulich@novell.com>
21749
21750 * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
21751 (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
21752 (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
21753 (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
21754 BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
21755 * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
21756 BUILTIN_POPCOUNTxxx): Arguments are unsigned.
21757 (BUILTIN_xxxIMAX): New.
21758 * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
21759 BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
21760 BUILT_IN_PARITYIMAX.
21761
21762 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
21763
21764 * config/sparc/sparc.h (processor_costs): Define.
21765 (sparc_costs): Declare.
21766 * config/sparc/sparc.c (cypress_costs, supersparc_costs,
21767 hypersparc_costs, sparclet_costs, ultrasparc_costs,
21768 ultrasparc3_costs): New.
21769 (sparc_override_options): Set sparc_costs as appropriate.
21770 (sparc_rtx_costs): Use sparc_costs instead of messy
21771 conditionals.
21772
21773 2004-07-09 Steven Bosscher <stevenb@suse.de>
21774
21775 * doc/md.texi (Processor pipeline description): Mention that
21776 the old pipeline description is deprecated.
21777
21778 * config/rs6000/7450.md (automaton ppc7450): Split up, move
21779 mciu_7450 function unit to...
21780 (automaton ppc7450mciu): ...new automaton.
21781
21782 * haifa-sched.c (insert_schedule_bubbles_p): Remove.
21783 (schedule_block): Don't consider inserting bubbles.
21784 (sched_init): Don't initialize DFA bubbles.
21785 * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
21786 TARGET_SCHED_DFA_BUBBLE): Remove.
21787 * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
21788 * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
21789 TARGET_SCHED_DFA_BUBBLE): Remove documentation.
21790
21791 * stmt.c (conditional_context): Remove prototype.
21792 * tree.h (conditional_context): Remove.
21793 * tree-cfg.c (pre_insert_on_edge): Remove.
21794
21795 * c-common.h (c_expand_asm_operands): Remove prototype.
21796 * c-typeck.c (c_expand_asm_operands): Remove.
21797
21798 2004-07-09 Jan Beulich <jbeulich@novell.com>
21799
21800 * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
21801 their base modes. CTImode, TCmode, and XCmode must be passed in memory.
21802 TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
21803 and V8QI are class SSE. All sufficiently small remaining vector modes
21804 must be passed in one or two integer registers.
21805 (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
21806 returned in memory.
21807 (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
21808 __builtin_ia32_pmuludq128 have non-uniform argument and return types
21809 and must thus be handled explicitly.
21810 * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
21811 MMX and XMM regs.
21812 (movv8qi_internal, movv4hi_internal, movv2si_internal,
21813 movv2sf_internal): Permit moving between MMX and XMM registers (since
21814 MMX areguments and return values are passed in XMM registers).
21815 (sse2_umulsidi3): Correct type and mode.
21816
21817 2004-07-09 Richard Henderson <rth@redhat.com>
21818
21819 * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
21820
21821 2004-07-09 Eric Christopher <echristo@redhat.com>
21822
21823 * config/rs6000/40x.md: Split into two automatons.
21824
21825 2004-07-09 Zack Weinberg <zack@codesourcery.com>
21826 Andrew Pinski <apinski@apple.com>
21827
21828 * c-opts.c (c_common_post_options): Force unit-at-a-time mode
21829 on when we have more than one input file.
21830 (c_common_parse_file): Restore loop over all input files.
21831 Clarify diagnostic for -dy when YYDEBUG wasn't defined.
21832
21833 * c-decl.c (set_type_context): New function.
21834 (pop_scope): Use it to set context of types. When we
21835 encounter a TYPE_DECL, set the context of the attached type too.
21836 (pop_file_scope): Don't call cpp_undef_all here.
21837 (diagnose_mismatched_decls): Do not complain about a second
21838 definition of an 'extern inline' function if it's not in the
21839 same translation unit. Do not complain about inline
21840 declaration after use if the use was in a different
21841 translation unit.
21842 (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
21843 (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
21844 the external scope.
21845 (pushdecl_top_level): Likewise.
21846 (grokdeclarator): Clarify what is going on with setting
21847 DECL_EXTERNAL on function types, a little.
21848 (c_write_global_declarations): Don't do anything if
21849 -fsyntax-only or errors have been encountered.
21850
21851 2004-07-09 Zack Weinberg <zack@codesourcery.com>
21852
21853 * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
21854
21855 2004-07-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21856
21857 PR target/16459
21858 * pa.c (output_indirect_call): Use %r2 as the link register when
21859 calling $$dyncall with a pc-relative branch.
21860
21861 2004-07-08 Gerald Pfeifer <gerald@pfeifer.com>
21862
21863 * doc/install.texi (Binaries): Mention OpenPKG.
21864
21865 2004-07-09 Diego Novillo <dnovillo@redhat.com>
21866
21867 Fix PR tree-optimization/15555
21868 * tree-dfa.c (dump_variable): If the variable is a pointer
21869 SSA_NAME, also dump its points-to information.
21870 * tree-flow.h (struct ptr_info_def): Add field
21871 is_dereferenced.
21872 (dump_points_to_info_for): Declare.
21873 (debug_points_to_info_for): Declare.
21874 * tree-optimize.c (init_tree_optimization_passes): Add a
21875 second alias analysis pass after DOM2.
21876 Move pass_del_pta to a later spot.
21877 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
21878 create a name tags when we find a dereferenced pointer. Just
21879 mark the pointer dereferenced.
21880 (collect_points_to_info_for): Move code to clear points-to
21881 information to create_name_tags.
21882 (create_name_tags): New function.
21883 (compute_flow_sensitive_aliasing): Call it.
21884 (setup_pointers_and_addressables): Mark type tags for renaming
21885 here instead of ...
21886 (create_memory_tag): ... here.
21887 (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
21888 (dump_points_to_info_for): Declare extern.
21889 (debug_points_to_info_for): New function.
21890
21891 2004-07-09 Paolo Bonzini <bonzini@gnu.org>
21892
21893 * config/arc/arc.md: Switch to DFA-based scheduler description.
21894 * config/arc/arc.c: Switch to DFA-based scheduler description.
21895
21896 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
21897
21898 * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
21899 pointer.
21900
21901 2004-07-09 Richard Henderson <rth@redhat.com>
21902
21903 * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
21904 * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21905 (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
21906 * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
21907
21908 * config/v850/v850-protos.h (v850_va_arg): Remove.
21909 * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21910 (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
21911 * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
21912 (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
21913 (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
21914
21915 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
21916
21917 PR target/12133
21918 * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
21919 and DImode to use +/-4k offset.
21920
21921 2004-07-09 Richard Henderson <rth@redhat.com>
21922
21923 * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
21924 Remove.
21925 * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21926 (xstormy16_gimplify_va_arg_expr): Rewrite from
21927 xstormy16_expand_builtin_va_arg.
21928 * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
21929
21930 * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
21931 * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
21932
21933 * config/sh/sh-protos.h (sh_va_arg): Remove.
21934 * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21935 (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
21936 * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
21937
21938 * config/pa/pa-protos.h (hppa_va_arg): Remove.
21939 * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21940 (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
21941 * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
21942
21943 * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
21944 * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
21945 (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
21946 * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
21947
21948 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
21949
21950 * config/sparc/sparc.md (return): Rewrite length formula.
21951 * config/sparc/sparc.c (output_return): Pass 1 as 5th
21952 argument to final_scan_insn when in a delay slot.
21953 (output_sibcall): Likewise.
21954
21955 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
21956
21957 * arm.c (arm_cpp_interwork): New variable.
21958 (arm_override_options): Set it if TARGET_INTERWORK was on the command
21959 line.
21960 * arm.h (arm_cpp_interwork): Declare it.
21961 (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
21962 __THUMB_INTERWORK__ in the preprocessor.
21963
21964 2004-07-09 Nathan Sidwell <nathan@codesourcery.com>
21965
21966 * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
21967
21968 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
21969
21970 PR target/16416
21971 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
21972 Override default settings to account for -m32 and -m64.
21973
21974 2004-07-08 Randolph Chung <tausq@debian.org>
21975
21976 * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
21977
21978 2004-07-09 Alexandre Oliva <aoliva@redhat.com>
21979
21980 * builtins.c (fold_builtin_strncpy): Make sure len is a constant
21981 before comparing it as such.
21982
21983 2004-07-08 Richard Henderson <rth@redhat.com>
21984
21985 * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
21986 temporary. Use bit arithmetic to align.
21987
21988 2004-07-08 Jerry Quinn <jlquinn@optonline.net>
21989
21990 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
21991 nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
21992 NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
21993 * bb-reorder.c (mark_bb_for_unlikely_executed_section,
21994 add_labels_and_missing_jumps, find_jump_block,
21995 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
21996 Likewise.
21997 * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
21998 link_btr_uses, move_btr_def): Likewise.
21999 * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
22000 expand_builtin_expect_jump): Likewise.
22001 * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
22002 * calls.c (expand_call, emit_library_call_value_1): Likewise.
22003 * cfganal.c (forwarder_block_p): Likewise.
22004 * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
22005 make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
22006 find_bb_boundaries): Likewise.
22007 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
22008 merge_blocks_move_predecessor_nojumps,
22009 merge_blocks_move_successor_nojumps, insns_match_p,
22010 flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
22011 try_optimize_cfg): Likewise.
22012 * cfgexpand.c (expand_block, construct_exit_block): Likewise.
22013 * cfglayout.c (skip_insns_after_block, label_for_bb,
22014 record_effective_endpoints, insn_locators_initialize,
22015 fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
22016 * cfgmainloop.c (create_loop_notes): Likewise.
22017 * cfgrtl.c (delete_insn, delete_insn_chain,
22018 create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
22019 update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
22020 block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
22021 redirect_branch_edge, force_nonfallthru_and_redirect,
22022 rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
22023 rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
22024 update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
22025 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
22026 cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
22027 cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
22028 need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
22029 * combine.c (combine_instructions, can_combine_p, try_combine,
22030 find_split_point, record_dead_and_set_regs, reg_dead_at_p,
22031 distribute_notes, distribute_links, insn_cuid): Likewise.
22032 * cse.c (fold_rtx, cse_insn, cse_around_loop,
22033 invalidate_skipped_block, cse_set_around_loop,
22034 cse_end_of_basic_block, cse_main, cse_basic_block,
22035 cse_condition_code_reg): Likewise.
22036 * cselib.c (cselib_process_insn): Likewise.
22037 * ddg.c (create_ddg): Likewise.
22038 * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
22039 Likewise.
22040 * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
22041 gen_label_die, dwarf2out_var_location): Likewise.
22042 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
22043 next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
22044 last_call_insn, active_insn_p, next_label, prev_label,
22045 link_cc0_insns, next_cc0_user, try_split, add_insn_after,
22046 add_insn_before, remove_insn, add_function_usage_to,
22047 reorder_insns, find_line_note, remove_unnecessary_notes,
22048 emit_insn_after_1, classify_insn): Likewise.
22049 * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
22050 connect_post_landing_pads, sjlj_mark_call_sites,
22051 sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
22052 can_throw_internal, can_throw_external, set_nothrow_function_flags,
22053 convert_to_eh_region_ranges): Likewise.
22054 * explow.c (optimize_save_area_alloca): Likewise.
22055 * expr.c (expand_expr_real): Likewise.
22056 * final.c (insn_current_reference_address, compute_alignments,
22057 shorten_branches, final, scan_ahead_for_unlikely_executed_note,
22058 final_scan_insn, output_asm_label, leaf_function_p): Likewise.
22059 * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
22060 propagate_block_delete_insn, propagate_one_insn,
22061 init_propagate_block_info, propagate_block, libcall_dead_p,
22062 mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
22063 Likewise.
22064 * function.c (instantiate_virtual_regs, reorder_blocks_1,
22065 expand_function_start, expand_function_end, contains,
22066 thread_prologue_and_epilogue_insns,
22067 reposition_prologue_and_epilogue_notes): Likewise.
22068 * gcse.c (constprop_register, bypass_conditional_jumps,
22069 insert_insn_end_bb, gcse_after_reload): Likewise.
22070 * genemit.c (gen_expand, gen_split): Likewise.
22071 * genpeep.c (gen_peephole, main): Likewise.
22072 * global.c (build_insn_chain): Likewise.
22073 * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
22074 * haifa-sched.c (unlink_other_notes, unlink_line_notes,
22075 get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
22076 restore_line_notes, rm_redundant_line_notes, rm_other_notes,
22077 ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
22078 * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
22079 cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
22080 merge_if_block, block_jumps_and_fallthru_p, find_if_block,
22081 dead_or_predicable): Likewise.
22082 * integrate.c (try_constants): Likewise.
22083 * jump.c (rebuild_jump_labels, cleanup_barriers,
22084 purge_line_number_notes, init_label_info, mark_all_labels,
22085 squeeze_notes, get_label_before, get_label_after,
22086 reversed_comparison_code_parts, simplejump_p, pc_set,
22087 returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
22088 delete_barrier, delete_prior_computation, delete_computation,
22089 delete_related_insns, delete_for_peephole, redirect_jump):
22090 Likewise.
22091 * lcm.c (optimize_mode_switching): Likewise.
22092 * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
22093 Likewise.
22094 * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
22095 * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
22096 * loop-iv.c (simplify_using_assignment): Likewise.
22097 * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
22098 libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
22099 find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
22100 loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
22101 check_insn_for_givs, check_final_value, update_giv_derive,
22102 basic_induction_var, product_cheap_p, check_dbra_loop,
22103 loop_insn_first_p, last_use_this_basic_block,
22104 canonicalize_condition, get_condition, loop_regs_scan, load_mems,
22105 try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
22106 * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
22107 sms_schedule_by_order): Likewise.
22108 * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
22109 * postreload.c (reload_cse_simplify_operands, reload_combine,
22110 reload_cse_move2add): Likewise.
22111 * predict.c (can_predict_insn_p, estimate_probability,
22112 expected_value_to_br_prob, process_note_predictions): Likewise.
22113 * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
22114 * profile.c (branch_prob): Likewise.
22115 * ra-build.c (live_out_1, livethrough_conflicts_bb,
22116 detect_webs_set_in_cond_jump): Likewise.
22117 * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
22118 ra_print_rtl_with_bb): Likewise.
22119 * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
22120 * recog.c (next_insn_tests_no_inequality, find_single_use,
22121 split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
22122 * reg-stack.c (next_flags_user, record_label_references,
22123 emit_swap_insn, swap_rtx_condition, subst_stack_regs,
22124 compensate_edge, convert_regs_1): Likewise.
22125 * regclass.c (scan_one_insn): Likewise.
22126 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
22127 regmove_optimize, fixup_match_1, single_set_for_csa,
22128 combine_stack_adjustments_for_block): Likewise.
22129 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
22130 * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
22131 find_equiv_reg): Likewise.
22132 * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
22133 reload_as_needed, emit_input_reload_insns, do_output_reload,
22134 delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
22135 Likewise.
22136 * reorg.c (find_end_label, emit_delay_sequence,
22137 delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
22138 get_jump_flags, rare_destination, mostly_true_jump,
22139 try_merge_delay_insns, redundant_insn, own_thread_p,
22140 fill_simple_delay_slots, fill_slots_from_thread,
22141 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
22142 dbr_schedule): Likewise.
22143 * resource.c (find_basic_block, next_insn_no_annul,
22144 find_dead_or_set_registers, mark_target_live_regs): Likewise.
22145 * rtl.h (RTX_PREV): Likewise.
22146 * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
22147 no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
22148 reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
22149 find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
22150 tablejump_p, computed_jump_p, insns_safe_to_move_p,
22151 find_first_parameter_load, can_hoist_insn_p): Likewise.
22152 * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
22153 sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
22154 * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
22155 schedule_ebbs): Likewise.
22156 * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
22157 is_conditionally_protected, can_schedule_ready_p,
22158 add_branch_dependences, debug_dependencies): Likewise.
22159 * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
22160 Likewise.
22161 * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
22162 reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
22163 set_dominates_use, ujump_to_loop_cont): Likewise.
22164 * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
22165 * varasm.c (output_constant_pool_1): Likewise.
22166
22167 2004-07-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
22168
22169 * tree-scalar-evolution.c: New file.
22170 * tree-scalar-evolution.h: New file.
22171 * tree-ssa-loop-niter.c: New file.
22172 * Makefile.in (SCEV_H): New.
22173 (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
22174 * cfgloop.h (struct loop): Add bounds field.
22175 * tree-flow.h (struct tree_niter_desc): New type.
22176 (number_of_iterations_cond, number_of_iterations_exit,
22177 loop_niter_by_eval, find_loop_niter_by_eval,
22178 estimate_numbers_of_iterations, can_count_iv_in_wider_type,
22179 free_numbers_of_iterations_estimates): Declare.
22180 * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
22181 * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
22182 * doc/invoke.texi (max-iterations-to-track): Document.
22183
22184 2004-07-08 Kaz Kojima <kkojima@gcc.gnu.org>
22185
22186 * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
22187 * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
22188 (MODE_AFTER): Add cast appropriately.
22189 * config/sh/sh.md (movdi splitter): Likewise.
22190 (casesi_worker_2): Add const qualifier appropriately.
22191 (eh_return): Remove unused variable.
22192 (insv): Initialize v;
22193
22194 2004-07-08 Richard Henderson <rth@redhat.com>
22195
22196 * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
22197 * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22198 (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
22199 * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
22200 (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
22201
22202 * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
22203 * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22204 (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
22205 * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
22206
22207 * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
22208 * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22209 (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
22210 * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
22211
22212 * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
22213 * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22214 (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
22215 * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
22216
22217 * config/i860/i860-protos.h (i860_va_arg): Remove.
22218 * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22219 (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
22220 * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
22221
22222 2004-05-31 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
22223
22224 * system.h: Prototype getpagesize if missing.
22225 * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
22226 * configure: Regenerate.
22227 * config.in: Regenerate.
22228
22229 2004-07-08 Richard Henderson <rth@redhat.com>
22230
22231 * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
22232 * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22233 (fr30_gimplify_va_arg_expr): New.
22234 (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
22235 * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
22236
22237 2004-07-08 Vladimir Makarov <vmakarov@redhat.com>
22238
22239 PR target/16414
22240 * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
22241 of asm_noperands result.
22242
22243 2004-07-08 Richard Henderson <rth@redhat.com>
22244
22245 * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
22246 * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22247 (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
22248 * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
22249
22250 2004-07-08 Richard Henderson <rth@redhat.com>
22251
22252 * builtins.c (ind_gimplify_va_arg_expr): New.
22253 * tree.h (ind_gimplify_va_arg_expr): Declare.
22254 * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
22255
22256 2004-07-08 Jan Beulich <jbeulich@novell.com>
22257
22258 * expmed.c (extract_bit_field): Correct condition to use vec_extract
22259 patterns also on vector elements other than the first one.
22260 * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
22261 break statements.
22262
22263 2004-07-08 Geoffrey Keating <geoffk@apple.com>
22264
22265 * config/rs6000/darwin-ldouble.c: Correct reference
22266 to the Linnainmaa paper.
22267
22268 2004-07-08 Richard Henderson <rth@redhat.com>
22269
22270 * config/arc/arc-protos.h (arc_va_arg): Remove.
22271 * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22272 (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
22273 * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
22274
22275 * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
22276 * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22277 (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
22278 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
22279
22280 2004-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22281
22282 * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
22283
22284 2004-07-08 Zack Weinberg <zack@codesourcery.com>
22285
22286 * c-decl.c (static_ctors, static_dtors): Make static.
22287 (pop_file_scope): Call c_common_write_pch and
22288 cgraph_finalize_compilation_unit here.
22289 (build_cdtor): Moved here from c-objc-common.c; simplify.
22290 (c_write_global_declarations_1): Clarify comment.
22291 (c_write_global_declarations): Close the external scope before
22292 doing anything else. Call build_cdtor, cgraph_optimize, and
22293 mudflap_finish_file here.
22294 * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
22295 Clarify comment.
22296 * c-objc-common.c: No need to include cgraph.h.
22297 (build_cdtor): Moved to c-decl.c.
22298 (c_objc_common_finish_file): Delete.
22299 * c-tree.h: Update to match.
22300 * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
22301 (generate_static_references): Set TREE_USED before calling finish_decl.
22302 Eliminate unnecessary dummy declaration. Call rest_of_decl_compilation
22303 on the static_instances_decl.
22304
22305 2004-07-08 Zack Weinberg <zack@codesourcery.com>
22306
22307 * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
22308 decls when there is only one input translation unit.
22309 * langhooks.c (lhd_set_decl_assembler_name): Partially revert
22310 change of 2004-07-05; do not treat declarations with
22311 DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
22312 * opts.c (cur_in_fname): Delete.
22313 * opts.h: Likewise.
22314 * tree.c: Revert changes of 2004-07-05; no special treatment
22315 for TRANSLATION_UNIT_DECLs.
22316 * Makefile.in (tree.o): Update dependencies.
22317
22318 2004-07-08 Roger Sayle <roger@eyesopen.com>
22319
22320 * builtins.c (fold_builtin_strcpy): Merge functionality from
22321 simplify_builtin_strcpy. Add additional len argument. No longer
22322 static. Remove function prototype.
22323 (fold_builtin_strncpy): Likewise integrate functionality from
22324 simplify_builtin_strncpy. Add additional slen argument. No
22325 longer static. Remove function prototype.
22326 (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
22327 (simplify_builtin_fputs): Rename to fold_builtin_fputs. Change
22328 types of "ignore" and "unlocked" parameters to bool.
22329 (fold_builtin_1): Add additional ignore argument. Call renamed
22330 fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
22331 builtins. Update arguments to fold_builtin_strncpy and
22332 fold_builtin_strcpy. Add function prototype.
22333 (fold_builtin): Add additional Boolean ignore argument to pass
22334 to fold_builtin_1.
22335 (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
22336 and fold_builtin_strncpy instead of simplify_builtin_fputs,
22337 simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
22338
22339 * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
22340 simplify_builtin_strncpy): Delete function prototypes.
22341 * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
22342 fold_builtin_strncpy): Add function prototypes here.
22343 (fold_builtin): Update function prototype with new "bool ignore".
22344
22345 * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
22346 (ccp_fold_builtin): Update call to fold_builtin. Call
22347 fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
22348 instead of simplify_builtin_fputs, simplify_builtin_strcpy and
22349 simplify_builtin_strncpy respectively.
22350 * fold-const.c (fold): Update call to fold_builtin.
22351
22352 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
22353
22354 * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
22355 to strcpy.
22356
22357 * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
22358 (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
22359 (FUNCTION_ARG_CALLEE_COPIES): Likewise.
22360 * calls.c: Remove ifdefs of macros above.
22361 * functions.c: Likewise.
22362 * expr.c: Likewise.
22363
22364 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
22365
22366 * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
22367 (arch attribute): Delete.
22368 (current_function_calls_alloca attribute): Rename into calls_alloca.
22369 (calls_eh_return): New attribute.
22370 (leaf_function): Likewise.
22371 (length attribute): Fix formula for sibcalls.
22372 (return insn): Correctly compute the 'length' attribute.
22373 (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
22374
22375 2004-07-08 Richard Henderson <rth@redhat.com>
22376
22377 * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
22378 (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
22379 (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
22380 * tree-eh.c (lower_eh_constructs_1): Likewise.
22381 * tree-sra.c (sra_walk_modify_expr): Likewise.
22382 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22383 (eliminate_unnecessary_stmts): Likewise.
22384 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
22385 * tree-tailcall.c (optimize_tail_call): Likewise.
22386 * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
22387
22388 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
22389 Jakub Jelinek <jakub@redhat.com>
22390
22391 * config/i386/i386.c (override_options): Enable
22392 SSE prefetches with -mtune, as long as we are
22393 compiling for i686 or higher. All i686 processors
22394 accept SSE prefetches as NOPS, some i586's don't.
22395
22396 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
22397
22398 PR target/10567
22399 * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
22400
22401 2004-07-08 Diego Novillo <dnovillo@redhat.com>
22402
22403 * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
22404 the handling of clobbering ASM_EXPRs.
22405
22406 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
22407
22408 PR target/16430
22409 * config/sparc/sparc.c (function_value): In 64-bit mode,
22410 return the aggregates larger than 16 bytes like unions.
22411
22412 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
22413
22414 PR target/16199
22415 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
22416 'temp' is zero, generate new pseudos as needed and emit the
22417 sequence of insns in single-assignment form. Resync comments
22418 with code.
22419 (sparc_emit_set_const64): Pass zero as 'temp' argument to above
22420 function before reload.
22421
22422 2004-07-08 Nathan Sidwell <nathan@codesourcery.com>
22423
22424 * vec.c (vec_assert_fail): Remove duplicate 'function'.
22425
22426 * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
22427
22428 * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
22429 Allocation is signed.
22430 (VEC_reserve): Return flag, allocation is signed.
22431
22432 2004-07-08 Richard Henderson <rth@redhat.com>
22433
22434 * tree-ssa-ccp.c (fold_stmt): Get type directly from
22435 OBJ_TYPE_REF_OBJECT.
22436
22437 2004-07-08 Joseph S. Myers <jsm@polyomino.org.uk>
22438 Neil Booth <neil@daikokuya.co.uk>
22439
22440 PR c/2511
22441 PR c/3325
22442 * c-decl.c (finish_struct): Ensure bit-fields are given the
22443 correct type.
22444 * c-common.c (c_common_signed_or_unsigned_type): For C, require
22445 the precision to match as well as the mode.
22446 * expr.c (reduce_to_bit_field_precision): New function.
22447 (expand_expr_real_1): Reduce expressions of bit-field type to
22448 proper precision.
22449 * langhooks.h (reduce_bit_field_operations): New hook.
22450 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
22451 Define.
22452 * c-lang.c, objc/objc-lang.c
22453 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
22454 * objc/objc-act.c (check_ivars): Convert types to bit-field types
22455 before checking.
22456 * tree.c (build_nonstandard_integer_type): New function.
22457 * tree.h (build_nonstandard_integer_type): New prototype.
22458 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
22459 conversions between integer and boolean types as useless.
22460
22461 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
22462
22463 * c-common.c (c_common_nodes_and_builtins): Do not
22464 create __builtin_ptrdiff_t and __builtin_size_t.
22465
22466 2004-07-08 Andrew Pinski <apinski@apple.com>
22467
22468 * Makefile.in (libbackend.o): Add -combine to the gcc
22469 command line.
22470
22471 2004-07-08 Nick Clifton <nickc@redhat.com>
22472
22473 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
22474 Set to -Os.
22475
22476 2004-07-08 Richard Henderson <rth@redhat.com>
22477
22478 * except.c (expand_eh_region_start, expand_eh_region_end,
22479 expand_eh_handler, expand_eh_region_end_cleanup,
22480 expand_start_all_catch, expand_start_catch, expand_end_catch,
22481 expand_end_all_catch, expand_eh_region_end_allowed,
22482 expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
22483 expand_eh_region_end_fixup): Remove.
22484 * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
22485 cleanups, outer_cleanups, label_chain, exception_region.
22486 (struct goto_fixup): Remove stack_level, cleanup_list_list.
22487 (struct label_chain): Remove.
22488 (struct stmt_status): Remove x_stack_block_stack.
22489 (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
22490 fixup_gotos, save_stack_pointer, expand_decl_cleanup,
22491 expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
22492 end_cleanup_deferral, last_cleanup_this_contour,
22493 containing_blocks_have_cleanups_or_stack_level,
22494 any_pending_cleanups): Remove.
22495 (expand_null_return_1): Take no arguments.
22496 (expand_label, expand_naked_return, expand_return,
22497 expand_start_bindings_and_block, expand_end_bindings, expand_decl,
22498 expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
22499 expand_end_case_type): Don't use any of them.
22500 * calls.c (expand_call): Likewise.
22501 * dojump.c (do_jump): Likewise.
22502 * function.c (expand_function_end): Likewise.
22503 * expr.c (store_expr, expand_expr_real_1): Likewise.
22504 (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
22505 (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
22506 CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
22507 EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
22508 * fold-const.c (fold_checksum_tree): Use first_rtl_op.
22509 * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
22510 * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
22511 for WITH_CLEANUP_EXPR.
22512 (gimple_push_cleanup): Likewise.
22513 * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
22514 * print-tree.c (print_node): Likewise.
22515 * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
22516 * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
22517 (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
22518 * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
22519 (GOTO_SUBROUTINE_EXPR): Remove.
22520 * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
22521 (DECL_TOO_LATE): Remove.
22522 * except.h, tree.h: Update decls.
22523
22524 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
22525
22526 * explow.c (optimize_save_area_alloca): Do not accept parameters.
22527 * passes.c (rest_of_handle_final): Handle symout.
22528 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
22529 Push timevar here.
22530 (rest_of_handle_sched): Break out SMS. Remove ifs for
22531 flag_schedule_insns and flag_modulo_sched.
22532 (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
22533 collect at the end.
22534 (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
22535 (rest_of_handle_partition_blocks, rest_of_handle_sms,
22536 rest_of_handle_if_after_reload, rest_of_handle_peephole2,
22537 rest_of_handle_mode_switching, rest_of_handle_jump,
22538 rest_of_handle_guess_branch_prob, rest_of_handle_eh,
22539 rest_of_handle_jump2, rest_of_handle_postreload,
22540 rest_of_handle_flow2, rest_of_clean_state,
22541 rest_of_handle_shorten_branches,
22542 rest_of_handle_prologue_epilogue,
22543 rest_of_handle_branch_target_load_optimize): New.
22544 (rest_of_compilation): Call the above. Remove ggc_collect
22545 calls moved to rest_of_handle_*.
22546 * rtl.h (optimize_save_area_alloca): Do not accept parameters.
22547
22548 * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
22549 * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
22550 * except.h (set_nothrow_function_flags): Update comment.
22551 * function.c (current_function_nothrow): Remove.
22552 * output.h (current_function_nothrow): Remove.
22553 * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
22554 * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
22555
22556 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
22557
22558 PR bootstrap/16326
22559 * reorg.c: Revert 2004-06-30 change.
22560 (find_end_label): If HAVE_epilogue and !HAVE_return,
22561 return 0 instead of creating a label at the end of the insn chain.
22562 (optimize_skip): Account for the failure mode of find_end_label.
22563 (fill_simple_delay_slots): Likewise.
22564 (fill_slots_from_thread): Likewise.
22565 (relax_delay_slots): Likewise.
22566
22567 2004-07-08 Diego Novillo <dnovillo@redhat.com>
22568
22569 * tree-flow.h (addressable_vars): Declare.
22570 * tree-ssa-alias.c (addressable_vars): Define.
22571 (setup_pointers_and_addressables): Add addressable variables
22572 to addressable_vars.
22573 * tree-ssa-operands.c (get_stmt_operands): Move
22574 handling of ASM_EXPRs ...
22575 (get_asm_expr_operands): ... here.
22576 When the ASM_EXPR clobbers memory, also clobber addressable
22577 variables.
22578 * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
22579 (delete_tree_ssa): Reset addressable_vars.
22580
22581 2004-07-07 Jan Beulich <jbeulich@novell.com>
22582 Richard Henderson <rth@redhat.com>
22583
22584 * varasm.c (assemble_variable): Use assemble_zeros for
22585 zero-initialized variables.
22586 (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
22587 for SECCAT_BSS and SECCAT_TBSS.
22588
22589 2004-07-07 Jan Beulich <jbeulich@novell.com>
22590
22591 * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
22592
22593 * expmed.c (emit_store_flag): Also special-case double-word
22594 (in-)equality comparison against -1.
22595
22596 * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
22597 passing arguments the containers for which are registers.
22598
22599 * calls.c (emit_library_call_value_1): Use mode of function parameter
22600 rather than that of argument since constants have none.
22601
22602 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
22603
22604 Introduce H8SX support.
22605 * expr.c (expand_strcpy): Renamed and moved to...
22606 * builtins.c (expand_movstr): ... here. Tweak.
22607 (expand_builtin_strcpy): Adjust. Use movstr if len can't be
22608 computed or has side effects.
22609 (expand_builtin_stpcpy): Likewise. Use strcpy if return value is
22610 unused, or if mempcpy fails. Adjust the return value in the
22611 latter case. Use movstr if everything else fails.
22612 * doc/md.texi (movstr): Document.
22613 (movmemM, clrmemM): Fix explanation of memory block operands.
22614 * config/h8300/h8300.md (stpcpy): Renamed to...
22615 (movstr): ... this. Adjust.
22616 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
22617 * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
22618 movmem* and clrstr* to clrmem*.
22619 2004-06-27 Alexandre Oliva <aoliva@redhat.com>
22620 * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
22621 GENERAL_REGS, always.
22622 (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
22623 getting the stack pointer as addr.
22624 * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
22625 from general_operand_dst.
22626 * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
22627 variant of...
22628 (movmd_internal): ... this. Add modes to operands. Disparage `D'
22629 instead of requiring it to match only before reload.
22630 (stpcpy_internal_normal): New, normal-mode variant of...
22631 (stpcpy_internal): ... this. Add modes to operands. Disparage
22632 `D' instead of requiring it to match only before reload.
22633 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
22634 mode argument.
22635 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
22636 * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
22637 h8300_get_index.
22638 * config/h8300/h8300.md (attr type): Add call.
22639 (attr can_delay): If type is call, set it no.
22640 (call, call_value): Set type to call.
22641 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
22642 * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
22643 2004-06-16 Alexandre Oliva <aoliva@redhat.com>
22644 * tree.c (get_narrower): Don't narrow integral types into
22645 non-integral types.
22646 * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
22647 frame_size *before* the first use.
22648 * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
22649 on input.
22650 (peephole2): Don't widen instructions that push SP. Move
22651 decrement of SP to the end of all stm-generating peepholes.
22652 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
22653 * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
22654 and OR to set it to all ones.
22655 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
22656 * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
22657 (call, call_value): Set can_delay to "no".
22658 2003-07-22 Richard Sandiford <rsandifo@redhat.com>
22659 * config/h8300/h8300.md (extzv): Make subreg check more robust.
22660 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
22661 * config/h8300/h8300.md (*brabit): Remove.
22662 * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
22663 zero_extract. Use bit_memory_operand as the predicate for
22664 operand 1 and 'WU' as the constraint. Check the difference
22665 between the base length and the final one when deciding which
22666 type of branch to use.
22667 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
22668 * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
22669 Use convert_move to extend the result for TARGET_H8300SX. Check
22670 for QImode memory references. Optimize the case where the
22671 destination is a paradoxical subreg.
22672 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
22673 * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
22674 * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
22675 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
22676 * config/h8300/h8300.md: Include mova.md
22677 (length_table): Add mova and mova_zero.
22678 * config/h8300/h8300.c (print_operand): Handle '%o'. Print a length
22679 after all constant addresses for '%R', '%X', '%T' and '%S'.
22680 (h8300_mova_length): New function.
22681 (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
22682 * config/h8300/t-h8300 (mova.md): Generate from genmova.sh. Add to
22683 dependencies for s-config, etc.
22684 * config/h8300/gemova.sh: New file.
22685 * config/h8300/mova.md: Generated.
22686 2003-07-20 Alexandre Oliva <aoliva@redhat.com>
22687 * config/h8300/h8300.c (h8300_bitfield_length): New.
22688 (nibble_operand): Adjust.
22689 (h8300_binary_length): Handle conditional binary op.
22690 (h8300_insn_length_from_table): Handle bitfield and bitbranch.
22691 * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
22692 P#<X, respectively. The original P is now IP4>X. Introduced P#>0
22693 and P#<0, unused so far. W and Y are now prefixes to multi-letter
22694 constraints. WU is introduced as a variant of U that requires a
22695 mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
22696 * config/h8300/h8300.md (attr type): Added bitbranch.
22697 (attr length_table): Added bitfield and bitbranch.
22698 (attr length): Compute bitbranch length.
22699 (andqi): Separate pattern for H8300SX. Use bfld for loading the
22700 least-significant bit of a byte.
22701 (brabit, brabc, brabs): New.
22702 (insv, extzv): Emit bfst and bfld on H8300SX.
22703 (bfld, bfst, seq, sne): New.
22704 (bstzhireg, cmpstz, bstz, bistz): New.
22705 (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
22706 (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
22707 2003-07-11 Richard Sandiford <rsandifo@redhat.com>
22708 * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
22709 (h8sx_unary_memory_operator): New function.
22710 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
22711 (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
22712 * config/h8300/h8300.md: Add peepholes to combine reloads and
22713 arithmetic insns.
22714 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
22715 * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
22716 (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
22717 (and?i, ior?i, xor?i): Likewise.
22718 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
22719 * config/h8300/h8300.c: Move enums and prototypes to head of file.
22720 Various whitespace fixes.
22721 (h8300_constant_length): New function, split out from...
22722 (h8300_displacement_size): ...here. Rename h8300_displacement_length.
22723 (h8300_classify_operand): Use IN_RANGE.
22724 (h8300_classify_operand): Use h8300_constant_length.
22725 (h8300_short_move_mem_p): Tighten size check.
22726 (h8sx_mergeable_memrefs_p): Tighten equality check.
22727 2003-06-30 Richard Sandiford <rsandifo@redhat.com>
22728 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
22729 for -msx.
22730 * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
22731 * config/h8300/crtn.asm: Likewise.
22732 * config/h8300/lib1funcs.asm: Likewise. Use 32-bit pointers
22733 if __H8300SX__ is defined.
22734 2003-06-27 Richard Sandiford <rsandifo@redhat.com>
22735 * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
22736 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
22737 (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
22738 addresses as mode-dependent.
22739 * config/h8300/h8300.c (print_operand_address): Update call to
22740 h8300_get_index.
22741 (h8300_get_index): Take a mode argument. Rework to fix an
22742 earlier misunderstanding.
22743 2003-06-26 Richard Sandiford <rsandifo@redhat.com>
22744 * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
22745 into a register if TARGET_H8300SX.
22746 (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
22747 TARGET_H8300SX. Also disable related define_splits.
22748 (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
22749 2003-06-23 Richard Sandiford <rsandifo@redhat.com>
22750 * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
22751 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
22752 * config/h8300/h8300.h (OK_FOR_Z): New macro.
22753 (EXTRA_CONSTRAINT_STR): Check it.
22754 * config/h8300/h8300.c (h8300_classify_operand): Accept null
22755 class arguments.
22756 (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
22757 * config/h8300/h8300.md (length_table): Add mov_imm4.
22758 (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
22759 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
22760 * genattrtab.c (write_eligible_delay): Allow candidate_insn to
22761 be a label.
22762 * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
22763 * config/h8300/h8300.c (h8300_reorg): New function.
22764 (TARGET_MACHINE_DEPENDENT_REORG): Define.
22765 * config/h8300/h8300.md (length): Subtract the length of the
22766 delay slot from (pc) when checking the range of forward branches.
22767 (delay_slot, can_delay): New attributes.
22768 (define_delay): Add bra/s handling.
22769 (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
22770 (jump): Add delayed-branch handling.
22771 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
22772 * expr.c (expand_strcpy): New function.
22773 * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
22774 (expand_builtin_stpcpy): Likewise.
22775 * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
22776 (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
22777 * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
22778 handling to improve register allocation for -fno-omit-frame-pointer.
22779 (h8sx_split_movmd): Delete, moving er6 handling into...
22780 (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
22781 * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
22782 (movmd): Add calls to copy_rtx.
22783 (movmd_internal): In the second alternative, allow the initial and
22784 final destination registers to be different . Update the splitter
22785 accordingly. Call h8300_swap_into_er6 and h8300_swap_out_of_er6
22786 instead of h8sx_split_movmd.
22787 (stpcpy, movsd): New expanders.
22788 (movsd_internal): New define_insn.
22789 2003-06-13 Richard Sandiford <rsandifo@redhat.com>
22790 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
22791 (h8sx_emit_movmd, h8sx_split_movmd): Declare.
22792 * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
22793 and DESTINATION_REGS.
22794 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
22795 (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
22796 (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
22797 (h8300_move_ratio): Declare.
22798 (MOVE_RATIO): Use it.
22799 * config/h8300/h8300.c (h8300_move_ratio): New variable.
22800 (h8300_init_once): Initialize it.
22801 (h8300_reg_class_from_letter): New function.
22802 (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
22803 (h8sx_emit_movmd, h8sx_split_movmd): New functions.
22804 * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
22805 (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
22806 (movstrsi, movmd): New expanders.
22807 (movmd_internal): New insn.
22808 2003-06-06 Richard Sandiford <rsandifo@redhat.com>
22809 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
22810 2003-06-04 Richard Sandiford <rsandifo@redhat.com>
22811 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
22812 * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
22813 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
22814 * config/h8300/h8300.c (nibble_operand): Fix warning.
22815 * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
22816 (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
22817 (movsf_h8300h): Disable for TARGET_H8300SX.
22818 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
22819 * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
22820 h8300_stm_parallel and h8300_return_parallel.
22821 * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
22822 h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
22823 h8300_stm_parallel, h8300_return_parallel): New functions.
22824 (h8300_expand_prologue): Don't enforce ldm/stm register alignment
22825 if TARGET_H8300SX. Use h8300_push_pop.
22826 (h8300_expand_epilogue): Likewise. Try to merge the return insn
22827 and final pop when generating h8sx code. Always emit some form
22828 of return insn.
22829 * config/h8300/h8300.md: Don't enforce register alignment in
22830 stm peepholes if TARGET_H8300SX.
22831 (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
22832 (ldm_h8300s_[234], stm_h8300_[234]): Disable.
22833 (epilogue): Expect h8300_expand_epilogue to emit a return insn.
22834 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
22835 * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
22836 (MULTILIB_DIRNAMES): Add a directory for it.
22837 (MULTILIB_MATCHES): Delete.
22838 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
22839 * final.c (walk_alter_subreg): Handle addresses with subregs
22840 inside a ZERO_EXTEND or AND.
22841 * config/h8300/h8300-protos.h (h8300_get_index): Declare.
22842 * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
22843 if TARGET_H8300SX.
22844 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
22845 * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
22846 @(dd,Rn.w) and @(dd,ERn.L).
22847 (h8300_displacement_size): Take the whole address as argument.
22848 (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
22849 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
22850 * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
22851 (h8sx_mergeable_memrefs_p): Declare.
22852 * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
22853 (HAVE_PRE_INCREMENT): Likewise.
22854 (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
22855 addresses for TARGET_H8300SX,
22856 * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
22857 and POST_DEC.
22858 (movb_length_table, movl_length_table): New tables.
22859 (movw_length_table): Define to movb_length_table.
22860 (h8300_displacement_size): New, split out from...
22861 (h8300_classify_address): ...here. Handle pre/post inc/dec.
22862 (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
22863 (h8300_insn_length_from_table): Add cases for movb, movw and movl.
22864 (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
22865 (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
22866 (compute_plussi_length, compute_plussi_cc): Update accordingly.
22867 (h8sx_unary_shift_operator): Get the mode from the operator.
22868 (binary_shift_operator): Likewise.
22869 * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
22870 a memory reference, check whether the reference is offsettable.
22871 (length_table): Add movb, movw and movl.
22872 (movqi): Add new h8sx pattern. Don't force one operand to be a
22873 register when generating h8sx code.
22874 (movhi, movsi, movsf): Likewise.
22875 (movstrictqi): Use the length_table attribute.
22876 (movstricthi): Likewise. Add h8sx alternative for mov.w #xx:3,Rn.
22877 (addqi3): Split into a define_expand and define_insn. Don't accept
22878 memory operands in the expander. Use h8300_operands_match_p to
22879 check for matching operands in the define_insn.
22880 (subqi3, negqi2, one_cmplqi2): Likewise.
22881 (add[hs]i3): Don't accept memory operands in the expander. Likewise
22882 in any patterns that are unused in h8sx code. In the h8sx patterns,
22883 use h8300_operands_match_p to check whether operands match.
22884 (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
22885 one_cmpl[hs]i3): Likewise.
22886 (andqi3, iorqi3, xorqi3): Likewise. Don't call fix_bit_operand
22887 in the expander.
22888 2003-05-23 Richard Sandiford <rsandifo@redhat.com>
22889 * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
22890 (h8300_insn_length_from_table): Add a second parameter.
22891 (output_h8sx_shift): Declare.
22892 * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
22893 (EXTRA_CONSTRAINT): Replace with...
22894 (EXTRA_CONSTRAINT_STR): ...this. Use OK_FOR_W and OK_FOR_Y.
22895 (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
22896 (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
22897 and h8sx_binary_shift_operator.
22898 * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
22899 for TARGET_H8300SX.
22900 (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
22901 (bit_memory_operand, fix_bit_operand): Likewise.
22902 (h8300_length_table_for_insn): Remove.
22903 (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
22904 instructions.
22905 (h8300_short_immediate_length, h8300_binary_length): New functions.
22906 (h8300_insn_length_from_table): Add an opcodes parameter. Rework.
22907 (output_plussi): Use sub to add negative constants.
22908 (compute_plussi_length): Adjust accordingly.
22909 (h8sx_single_shift_type): New enum.
22910 (h8sx_single_shift, h8sx_unary_shift_operator,
22911 h8sx_binary_shift_operator, output_h8sx_shift): New functions.
22912 (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
22913 single h8sx instruction. Return false in this case.
22914 * config/h8300/h8300.md (length_table): Add short_immediate.
22915 (length): Pass the operand array to h8300_insn_length_from_table.
22916 (adjust_length): Assume "no" for insns with a length_table attribute.
22917 (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
22918 (*addhi3_h8300hs): Don't use for h8sx.
22919 (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
22920 and sub.w #xx:3.
22921 (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
22922 1's predicate to nonimmediate_operand. Only skip default expansion
22923 if expand_a_shift or expand_a_rotate returns true. Add new patterns
22924 for single h8sx shift instructions.
22925 2003-05-22 Alexandre Oliva <aoliva@redhat.com>
22926 * config/h8300/h8300.c (nibble_operand): Split out of...
22927 (reg_or_nibble_operand): ... this.
22928 * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
22929 * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
22930 umulhisi3): Introduce expand, and introduce separate insns for
22931 sign- or zero-extended REG and already-extended CONST_INT.
22932 2003-05-20 Richard Sandiford <rsandifo@redhat.com>
22933 * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
22934 * config/h8300/h8300.md (subqi3): Generalize for h8sx.
22935 (subhi3): Likewise. Don't accept immediates for operand 1.
22936 Remove the early clobber from second alternative of the h8300s pattern.
22937 (subsi3): Generalize for h8sx. Force operand 2 into a register
22938 on plain h8300 targets.
22939 (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
22940 (subsi3_h8300h): Generalize for h8sx.
22941 (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
22942 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
22943 * config/h8300/h8300.c (reg_or_nibble_operand): New.
22944 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
22945 (TARGET_H8300SXMUL): New.
22946 (CONST_OK_FOR_P): New.
22947 (CONST_OK_FOR_LETTER_P): Adjust.
22948 * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
22949 umulhisi3): Accept 4-bit immediate on H8SX.
22950 (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
22951 (udivsi3, divhi3, udivsi3, divsi3): New.
22952 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
22953 * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
22954 * config/h8300/h8300.h (OK_FOR_Q): New macro.
22955 (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
22956 (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
22957 Add ADDRESSOF to the bit_operand entry.
22958 * config/h8300/h8300.c (h8300_dst_operand): New predicate.
22959 (h8300_src_operand): Likewise.
22960 (bit_operand): Check nonimmediate_operand rather than general_operand.
22961 Accept any nonimmediate_operand in h8sx code.
22962 (h8300_and_costs): Initialize operands[1].
22963 (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
22964 (h8300_operand_class): New enum.
22965 (h8300_length_table): New typedef.
22966 (addb_length_table, addw_length_table, addl_length_table,
22967 logicl_length_table): New tables.
22968 (logicb_length_table, logicw_length_table): New macros.
22969 (h8300_classify_operand, h8300_length_from_table,
22970 h8300_length_table_for_insn, h8300_unary_length,
22971 h8300_insn_length_from_table): New functions.
22972 (output_plussi): Only use adds and subs for register destinations.
22973 Disable redundant clause.
22974 (compute_plussi_cc): Likewise.
22975 (compute_plussi_length): Likewise. Use h8300_length_from_table
22976 to work out the length of an insn.
22977 (output_logical_op): Only use narrower immediate instructions
22978 if the destination is a register.
22979 (compute_logical_op_cc): Likewise.
22980 (compute_logical_op_length): Likewise. Use h8300_length_from_table.
22981 (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
22982 * config/h8300/h8300.md (length_table): New attribute.
22983 (length): When an instruction has a length_table attribute, use
22984 h8300_insn_length_from_table to calculate its default length.
22985 (cmpqi): Use h8300_dst_operand for the first operand and
22986 h8300_src_operand for the second.
22987 (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
22988 negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
22989 addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
22990 iorsi3, xorhi3, xorsi3): Likewise.
22991 (andqi3): Use h8300_src_operand for operand 2. Adjust the condition
22992 so that it allows any combination of operands for TARGET_H8300SX.
22993 (iorqi3, xorqi3): Likewise.
22994 (cmpqi): Use the length_table attribute.
22995 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
22996 xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
22997 (cmpqi): Add 'Q' constraint.
22998 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
22999 iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
23000 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
23001 * config/h8300/h8300.h (MASK_H8300SX): New macro.
23002 (TARGET_H8300S): True for both -ms and -msx.
23003 (TARGET_H8300SX): New macro.
23004 (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
23005 * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
23006 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
23007 * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
23008 [Temporary change.]
23009 2003-02-28 Alexandre Oliva <aoliva@redhat.com>
23010 * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
23011 16-bit pointers and 32-bit ints.
23012 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
23013 CONST_DOUBLE with mode no wider than SImode.
23014 * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
23015 output operand.
23016 2003-02-27 Alexandre Oliva <aoliva@redhat.com>
23017 * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
23018 or SUBREG thereof.
23019 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
23020 2003-02-22 Alexandre Oliva <aoliva@redhat.com>
23021 * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
23022
23023 2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
23024
23025 * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
23026
23027 2004-07-07 Per Bothner <per@bothner.com>
23028
23029 * flow.c (attempt_auto_inc): Remove now-redundant PUT_CODE.
23030
23031 2004-07-07 Mike Stump <mrs@apple.com>
23032
23033 * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
23034 * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
23035 (machopic_finish): Likewise.
23036
23037 2004-07-07 Richard Henderson <rth@redhat.com>
23038
23039 * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
23040 through any value-preserving cast.
23041
23042 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
23043
23044 * function.c (assign_parm_find_data_types): Call
23045 FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
23046
23047 2004-07-07 Steven Bosscher <stevenb@suse.de>
23048
23049 * tree-cfg.c (group_case_labels): Remove case labels that have
23050 the same target as the default case.
23051
23052 2004-07-07 Steven Bosscher <stevenb@suse.de>
23053
23054 * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
23055 regardless of DECL_LANG_SPECIFIC being present or not.
23056 * tree.h (DECL_NUM_STMTS): Purge.
23057
23058 2004-07-07 Andrew Pinski <apinski@apple.com>
23059
23060 * configure: Regenerate with the right autoconf.
23061
23062 2004-07-07 David Edelsohn <edelsohn@gnu.org>
23063
23064 * ifcvt.c (total_bb_rtx_cost): New function.
23065 (find_if_case_1): Compare rtx_cost of basic block to cost of
23066 BRANCH_COST insns.
23067 (find_if_case_2): Same.
23068
23069 2004-07-07 Eric Botcazou <ebotcazou@libertysurf.fr>
23070
23071 PR target/10567
23072 * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
23073 (output_return): Likewise.
23074 (output_sibcall): Abort if !flag_delayed_branch.
23075 (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
23076 (emit_and_preserve): New function.
23077 (sparc_output_mi_thunk): Use it. Honor flag_delayed_branch. Emit an
23078 indirect jump to the thunked-to function if !flag_delayed_branch.
23079 * config/sparc/sparc.md (delayed_branch): New attribute.
23080 (load_pcrel_sym): Honor flag_delayed_branch. Use above
23081 attribute to compute the length of the insn.
23082 (goto_handler_and_restore): Likewise.
23083
23084 2004-07-07 Andrew Pinski <apinski@apple.com>
23085
23086 PR tree-optimization/15777
23087 * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
23088
23089 * expr.c (expand_expr_real_1): Fix formating.
23090 BUFFER_REF and IN_EXPR are dead.
23091 * fold-const.c (non_lvalue): BUFFER_REF is dead.
23092 * tree-inline.c (estimate_num_insns_1): Likewise.
23093 * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
23094 IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
23095 * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
23096
23097 2004-07-07 H.J. Lu <hongjiu.lu@intel.com>
23098
23099 * collect2.c (dump_file): Don't call cplus_demangle if
23100 HAVE_LD_DEMANGLE is defined.
23101 (main): Pass "--demangle" to ld if no_demangle is not 0 and
23102 HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
23103 if HAVE_LD_DEMANGLE is defined.
23104
23105 * configure.ac (--with-demangler-in-ld): Added
23106 (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
23107 --with-demangler-in-ld is used.
23108 * config.in: Regenerated.
23109 * configure: Likewise.
23110
23111 2004-07-07 Roger Sayle <roger@eyesopen.com>
23112
23113 * config/rs6000/rs6000.c (struct processor_costs): Add new fields
23114 for simple floating point operations "fp", double precision
23115 multiplication "dmul", and single and double precision division
23116 "sdiv" and "ddiv". Update all CPU variant tables as appropriate.
23117 (ppc630_cost): New table split from ppc620_cost, to distinguish
23118 differences in floating point latencies.
23119 (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
23120 (rs6000_rtx_costs): Add support for single and double precision
23121 floating point addition, subtraction, multiplication, division,
23122 fused-multiply-add, fused-multiply-sub, negation, absolute value
23123 and negative absolute value. Tweak MEM case to use prefered idiom.
23124
23125 2004-07-07 Richard Henderson <rth@redhat.com>
23126
23127 * tree-flow-inline.h (may_propagate_copy): Move...
23128 * tree-ssa-copy.c (may_propagate_copy): ... here. Fail if we
23129 attempt to copy between types requiring conversion.
23130 * tree-flow.h (may_propagate_copy): Update decl.
23131 * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
23132
23133 2004-07-07 Jakub Jelinek <jakub@redhat.com>
23134
23135 * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
23136 from -mtune= option.
23137
23138 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
23139
23140 * builtins.c: Rename movstr*, except for movstrict*, to
23141 movmem* and clrstr* to clrmem*.
23142 * expr.c: Likewise.
23143 * expr.h: Likewise.
23144 * genopinit.c: Likewise.
23145 * integrate.c: Likewise.
23146 * local-alloc.c: Likewise.
23147 * optabs.c: Likewise.
23148 * optabs.h: Likewise.
23149 * config/alpha/alpha.h: Likewise.
23150 * config/alpha/alpha.md: Likewise.
23151 * config/arm/arm-protos.h: Likewise.
23152 * config/arm/arm.c: Likewise.
23153 * config/arm/arm.md: Likewise.
23154 * config/avr/avr.md: Likewise.
23155 * config/c4x/c4x.c: Likewise.
23156 * config/c4x/c4x.md: Likewise.
23157 * config/frv/frv.md: Likewise.
23158 * config/i386/i386-protos.h: Likewise.
23159 * config/i386/i386.c: Likewise.
23160 * config/i386/i386.h: Likewise.
23161 * config/i386/i386.md: Likewise.
23162 * config/i860/i860.c: Likewise.
23163 * config/i860/i860.md: Likewise.
23164 * config/ip2k/ip2k.md: Likewise.
23165 * config/ip2k/libgcc.S: Likewise.
23166 * config/ip2k/t-ip2k: Likewise.
23167 * config/m32r/m32r.c: Likewise.
23168 * config/m32r/m32r.md: Likewise.
23169 * config/mcore/mcore.md: Likewise.
23170 * config/mips/mips.c: Likewise.
23171 * config/mips/mips.md: Likewise.
23172 * config/ns32k/ns32k.c: Likewise.
23173 * config/ns32k/ns32k.h: Likewise.
23174 * config/ns32k/ns32k.md: Likewise.
23175 * config/pa/pa.c: Likewise.
23176 * config/pa/pa.md: Likewise.
23177 * config/pdp11/pdp11.h: Likewise.
23178 * config/pdp11/pdp11.md: Likewise.
23179 * config/rs6000/rs6000.c: Likewise.
23180 * config/rs6000/rs6000.md: Likewise.
23181 * config/s390/s390-protos.h: Likewise.
23182 * config/s390/s390.c: Likewise.
23183 * config/s390/s390.md: Likewise.
23184 * config/sh/lib1funcs.asm: Likewise.
23185 * config/sh/sh.c: Likewise.
23186 * config/sh/sh.md: Likewise.
23187 * config/sh/t-sh: Likewise.
23188 * config/sparc/sparc.h: Likewise.
23189 * config/vax/vax.md: Likewise.
23190 * config/xtensa/xtensa.c: Likewise.
23191 * config/xtensa/xtensa.md: Likewise.
23192 * doc/invoke.texi: Likewise.
23193 * doc/md.texi: Likewise.
23194 * doc/rtl.texi: Likewise.
23195
23196 2004-07-07 Richard Sandiford <rsandifo@redhat.com>
23197
23198 PR target/16407
23199 * config/mips/mips-protos.h (mips_declare_common_object): Declare.
23200 * config/mips/mips.c (mips_declare_common_object): New function,
23201 mostly split out from...
23202 (mips_output_aligned_decl_common): ...here.
23203 * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
23204 (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
23205 * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
23206 rather than ASM_OUTPUT_LOCAL. Call mips_declare_common_object.
23207
23208 2004-07-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23209
23210 PR c/16392
23211 * function.c (assign_parms): Fix typo from previous change.
23212
23213 2004-07-07 Jason Merrill <jason@redhat.com>
23214
23215 PR c++/15815
23216 * doc/extend.texi (C++ Interface): Correct information and
23217 discourage use.
23218
23219 2004-07-07 Vladimir Makarov <vmakarov@redhat.com>
23220
23221 PR target/16130
23222 PR target/16142
23223 PR target/16143
23224 * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
23225 insn.
23226
23227 2004-07-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
23228
23229 PR target/1679.
23230 * config/m32r/m32r.c (m32r_function_symbol): New function:
23231 Generate a symbol name RTX with the correct m32r specific flags
23232 set.
23233 (block_move_call): Use new function to generate correct symbol.
23234 * config/m32r/m32r-protos.h: Add prototype for new funcion.
23235 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
23236 function.
23237
23238 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
23239
23240 * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
23241 TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
23242 TYPE_BINFO_BASETYPE): Remove.
23243 (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
23244 to ...
23245 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
23246 here.
23247 (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
23248 (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
23249 (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
23250 (struct tree_binfo): Rename base_types to base_binfos.
23251 * alias.c (record_component_aliases): Adjust BINFO macros.
23252 * dbxout.c (dbxout_type): Likewise.
23253 * dwarf2out.c (gen_member_die): Likewise.
23254 * sdbout.c (sdbout_one_type): Likewise.
23255 * tree-dump.c (deque_and_dump): Likewise.
23256 * config/i386/i386.c (classify_argument,
23257 contains_128bit_aligned_vector_p): Likewise.
23258
23259 2004-07-07 Nick Clifton <nickc@redhat.com>
23260
23261 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
23262 arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
23263
23264 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
23265
23266 * vec.h: Fix the example use.
23267
23268 2004-07-06 Richard Henderson <rth@redhat.com>
23269
23270 * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
23271 * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
23272 * tree-inline.c (copy_body_r, setup_one_parameter,
23273 initialize_inlined_parameters, expand_call_inline,
23274 declare_inline_vars): Don't check it.
23275 (expand_calls_inline): Remove old version, rename new version
23276 from gimple_expand_calls_inline.
23277 * tree-optimize.c (execute_gimple): Remove.
23278 (pass_gimple): Don't run anything.
23279
23280 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
23281
23282 * doc/sourcebuild.texi: Use semicolons instead of commas in
23283 section title.
23284
23285 2004-07-06 Richard Henderson <rth@redhat.com>
23286
23287 * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
23288 (sra_walk_modify_expr, scan_init): Likewise.
23289 (generate_element_zero): Check visited before scanning children.
23290 (generate_element_init): Set visited on error.
23291 (scalarize_init): Handle generate_element_init failure similar
23292 to use_block_copy.
23293
23294 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
23295
23296 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
23297 (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
23298
23299 2004-07-06 Richard Henderson <rth@redhat.com>
23300
23301 * config/i386/i386.c (legitimize_pic_address): Make static.
23302 (legitimize_address): Handle CONST with TLS operand.
23303 (ix86_expand_move): Don't call legitimize_pic_address directly.
23304 * config/i386/i386-protos.h (legitimize_pic_address): Remove.
23305
23306 2004-07-06 Roger Sayle <roger@eyesopen.com>
23307
23308 * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
23309 (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
23310 (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
23311 is currently executed unconditionally, i.e. not in "else_bb".
23312
23313 2004-07-06 Steven Bosscher <stevenb@suse.de>
23314
23315 * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
23316 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
23317 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
23318 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
23319 * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
23320 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
23321 * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
23322 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
23323 * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
23324 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
23325 * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
23326 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
23327 * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
23328 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
23329 * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
23330 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
23331
23332 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
23333
23334 * dojump.c (do_jump): REFERENCE_EXPR is dead.
23335 * expr.c (expand_expr_real_1): Ditto.
23336 * tree-inline.c (estimate_num_insns_1): Ditto.
23337 * tree-pretty-print.c (dump_generic_node): Ditto.
23338 (op_symbol): Ditto.
23339 * tree.def: Ditto.
23340
23341 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
23342
23343 * tree-ssa-pre.c (reference_node_pool): New pool.
23344 (find_or_generate_expression): Class 'r' is okay too.
23345 (create_value_expr_from): Ditto.
23346 (add_to_sets): LHS should not include vuses.
23347 (eliminate): Ditto.
23348 (compute_avail): Reverse ordering of tests.
23349 Valuize INDIRECT_REF as well.
23350
23351 2004-07-06 Richard Sandiford <rsandifo@redhat.com>
23352
23353 PR rtl-optimization/16380
23354 * loop.c (check_dbra_loop): Sink comparison instructions if they
23355 do something other than set cc0.
23356
23357 2004-07-06 James E Wilson <wilson@specifixinc.com>
23358
23359 * doc/interface.texi (longjmp and automatic variables): Delete
23360 paragraph recommending taking the address of a variable.
23361
23362 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
23363
23364 * vec.h (VEC_embedded_alloc): Remove.
23365 (VEC_embedded_size, VEC_embedded_init): New.
23366 (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
23367 MEM_STAT_INFO.
23368 (VEC_truncate): New.
23369 (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
23370 (vec_embedded_alloc): Remove.
23371 * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
23372 (vec_embedded_alloc): Remove.
23373
23374 2004-07-06 Mark Mitchell <mark@codesourcery.com>
23375
23376 * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
23377 (gt-langhooks.h): Remove.
23378
23379 2004-07-06 George Helffrich <george@gly.bris.ac.uk>
23380
23381 * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
23382
23383 2004-07-06 Eric Botcazou <ebotcazou@libertysurf.fr>
23384
23385 * config/sparc/sparc.c (get_pc_symbol): Rename into
23386 add_pc_to_pic_symbol.
23387 (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
23388 (load_pic_register): Account for previous changes.
23389 Use reg_names. Don't create the label twice.
23390 * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
23391 UNSPEC_LOAD_PCREL_SYM.
23392 (get_pc): Rename into load_pcrel_sym. Add predicate to
23393 operands. Remove condition.
23394
23395 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
23396
23397 * dbxout.c (dbxout_type): Don't test whether the binfo slot of
23398 RECORD, UNION & QUAL_UNION is actually a binfo.
23399
23400 * tree.h (TREE_VIA_VIRTUAL): Rename to ...
23401 (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
23402 (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
23403 * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
23404 * dwarf2out.c (add_data_member_location_attribute): Likewise.
23405 (gen_inheritance_die): Likewise.
23406 * tree-dump.c (deque_and_dump): Likewise.
23407 * doc/c-tree.texi (Binfos): Add under reconstruction note.
23408
23409 2004-07-06 Steven Bosscher <stevenb@suse.de>
23410
23411 * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
23412 Define.
23413 * config/mcore/mcore.md: Model memory latency with a simple DFA
23414 pipeline description instead of a define_function_unit.
23415
23416 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23417
23418 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
23419 * langhooks.h (var_mod_type_p): Likewise.
23420 * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
23421 * expr.c (count_type_elements): Properly handle return from
23422 array_type_nelts and properly test for overflow.
23423 * gimplify.c (gimplify_init_constructor): Properly handle return
23424 from array_type_nelts.
23425 (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
23426 * integrate.c (copy_decl_for_inlining): Correct comments.
23427 * tree-inline.c (remap_decl): Update comments, remove dead code,
23428 and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
23429 (remap_type): Only remap if variably modified by vars in function
23430 being inlined.
23431 (copy_body_r): Use compatible_type langhooks to see when can fold.
23432 (setup_one_parameter): Don't remap type.
23433 (inline_forbidden_p_1): Add arg to variably_modified_type_p.
23434 * tree.c (recompute_tree_invarant_for_addr_expr): Properly
23435 compute TREE_INVARIANT for decl case.
23436 (find_var_from_fn): New function.
23437 (variably_modified_type_p): Add arg and call new function.
23438 * tree.h (variably_modified_type_p): Add extra arg.
23439
23440 2004-07-05 Eric Botcazou <ebotcazou@libertysurf.fr>
23441
23442 * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
23443 (goto_handler_and_restore_v9): Delete disabled insn.
23444 (goto_handler_and_restore_v9_sp64): Likewise.
23445
23446 2004-07-05 Roger Sayle <roger@eyesopen.com>
23447
23448 * calls.c (load_register_parameters): Call expand_shift instead
23449 of expand_binop with ashl_optab (or other shift optab) directly.
23450 * expr.c (emit_group_load, emit_group_store): Likewise.
23451 * function.c (assign_parm_setup_block): Likewise.
23452 * stmt.c (shift_return_value): Likewise.
23453
23454 2004-07-05 Jakub Jelinek <jakub@redhat.com>
23455
23456 * expr.c (expand_assignment): Disable the bitfield += optimizations.
23457
23458 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
23459
23460 * doc/sourcebuild.texi: Revert previous patch.
23461
23462 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
23463
23464 * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
23465 TARGET_MEM_FUNCTIONS.
23466 * system.h: Poison TARGET_MEM_FUNCTIONS.
23467 * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
23468 bcmp_libfunc, bzero_libfunc): Remove.
23469 * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
23470 bzero_libfunc.
23471 * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
23472 * doc/standards.texi: Don't mention calling BSD string functions.
23473 * doc/invoke.texi: Likewise. Mention that memmove may be called.
23474 * config/vax/t-memfuncs: New.
23475 * config/memcmp.c, config/memcpy.c, config/memmove.c,
23476 config/memset.c: New.
23477 * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
23478 * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
23479 vax/t-memfuncs.
23480 * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
23481 config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
23482 config/elfos.h, config/gnu.h, config/h8300/h8300.h,
23483 config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
23484 config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
23485 config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
23486 config/netbsd.h, config/openbsd.h, config/pa/pa.h,
23487 config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
23488 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
23489 config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
23490
23491 2004-07-05 Richard Henderson <rth@redhat.com>
23492
23493 * function.c (assign_parm_setup_reg): Properly rename variables in
23494 FUNCTION_ARG_CALLEE_COPIES section.
23495
23496 2004-07-05 Zack Weinberg <zack@codesourcery.com>
23497
23498 * tree-mudflap.c: Include cgraph.h.
23499 (mf_init_extern_trees): Rename to mudflap_init. Export.
23500 Rewrite to create synthetic declarations instead of looking
23501 up declarations from mf-runtime.h.
23502 (mf_make_builtin, mf_make_cache_struct_type): New functions.
23503 (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
23504 Correct commentary.
23505 (execute_mudflap_function_decls, mudflap_register_call):
23506 Don't call mf_init_extern_trees.
23507 (mudflap_finish_file): Use cgraph_build_static_cdtor.
23508
23509 * tree-mudflap.h: Update prototypes.
23510 * c-mudflap.c: Delete file.
23511 * c-common.c: Include tree-mudflap.h.
23512 (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
23513 * Makefile.in: Remove all references to c-mudflap.o.
23514 Update dependencies.
23515
23516 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23517
23518 * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
23519 displacements with the spatial-locality cache-control completer.
23520
23521 2004-07-05 Zack Weinberg <zack@codesourcery.com>
23522
23523 * langhooks.c: Don't include gt-langhooks.h.
23524 (var_labelno): Delete.
23525 (lhd_set_decl_assembler_name): Do not append a distinguishing
23526 number to file-scope internal-linkage declarations for the first
23527 input file, even if they have DECL_CONTEXT set. Use DECL_UID of
23528 the declaration itself (if at block scope), or its containing
23529 TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
23530 number.
23531
23532 * opts.c (cur_in_fname): New global.
23533 * opts.h: Declare it.
23534 * tree.c: Include opts.h.
23535 (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
23536 DECL_UID equal to cur_in_fname.
23537 (copy_node_stat): Do not change DECL_UID when copying a
23538 TRANSLATION_UNIT_DECL.
23539 (build_common_tree_nodes): Adjust next_decl_uid to reserve the
23540 range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
23541
23542 * c-decl.c (c_static_assembler_name): Delete.
23543 * c-tree.h (c_static_assembler_name): Delete prototype.
23544 * c-lang.c, objc/objc-lang.c: Don't override
23545 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
23546
23547 * Makefile.in (tree.o): Update dependencies.
23548 (GTFILES): Remove langhooks.c.
23549
23550 2004-07-05 Roger Sayle <roger@eyesopen.com>
23551
23552 * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
23553 by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
23554 Normalize "X % C" as "X % -C" for signed modulus and negative C.
23555 Optimize "X % -Y" as "X % Y" for signed modulus.
23556 <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
23557 into "((unsigned) X % Y) == 0".
23558
23559 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
23560
23561 * sourcebuild.texi (Config Fragments): Use @comma{} in
23562 cross-reference to section title.
23563
23564 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23565
23566 * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
23567 * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
23568 (gimplify_target_expr, gimplify_expr): Likewise.
23569 (copy_if_shared_r): No longer need special case for BIND_EXPR.
23570 (unshare_body, unvisit_body): Only look at nested if BODY_P is
23571 whole function.
23572 (gimplify_compound_lval): See if we can strip any useless conversion.
23573 (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
23574 from RHS, not LHS.
23575 (gimplify_modify_expr_to_memset): Likewise.
23576 (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
23577 * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
23578 (declare_inline_vars): Likewise.
23579 (walk_type_fields): New function.
23580 (walk_tree): Use it.
23581 * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
23582
23583 * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
23584 (sra_walk_modify_expr): Allow init function to fail.
23585 (scan_init): Now returns bool.
23586 (generate_element_init): If can't understand INIT, return false.
23587 (scalarize_init): Return false if generate_element_init does.
23588
23589 * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
23590 print bounds.
23591
23592 * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
23593 bounds if bounds aren't constant.
23594
23595 * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
23596
23597 * function.c, langhooks-def.h, langhooks.h: Move max_size hook
23598 to type hooks; remove bogus PARAMS.
23599
23600 2004-07-05 Nathan Sidwell <nathan@codesourcery.com>
23601
23602 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
23603 * dwarf2out.c (add_data_member_location_attribute): Check for
23604 TREE_BINFO.
23605 * tree.c (tree_node_kinds): Add "binfos".
23606 (binfo_lang_slots): New.
23607 (make_node_stat): Add TREE_BINFO.
23608 (make_tree_binfo_stat): New.
23609 (tree_node_structure): Add TREE_BINFO.
23610 * tree.def (TREE_BINFO): New.
23611 * tree.h (REC_OR_UNION_CHECK): Rename to ...
23612 (RECORD_OR_UNION_CHECK): ... here.
23613 (NOT_RECORD_OR_UNION_CHECK): New.
23614 (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
23615 (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
23616 RECORD_OR_UNION_CHECK.
23617 (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
23618 (TYPE_LANG_SLOT_1): New.
23619 (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
23620 BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
23621 BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
23622 (BINFO_ELTS): Remove.
23623 (BINFO_LANG_SLOT): New.
23624 (struct tree_binfo): New.
23625 (binfo_lang_slots): Declare.
23626 (enum tree_node_structure_enum): Add TS_BINFO.
23627 (union tree_node): Add binfo.
23628 (make_tree_binfo_stat): Declare.
23629 (make_tree_binfo): New.
23630 (enum tree_node_kind): Add binfo_kind.
23631
23632 * objc/objc-act.c (start_class, objc_declare_protocols,
23633 start_protocols): Use TYPE_LANG_SLOT_1.
23634 * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
23635 to ...
23636 (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
23637 (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
23638 CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
23639 PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
23640
23641 2004-07-05 Steven Bosscher <stevenb@suse.de>
23642
23643 * rtl.h (struct rtx_def): Remove the integrated flag.
23644 Use the return_val flag for MEM_SCALAR_P.
23645 Reshuffle and update flags in CLEAR_RTX_FLAGS.
23646
23647 2004-07-05 Richard Sandiford <rsandifo@redhat.com>
23648
23649 PR target/16357
23650 * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
23651 to mips_expand_unaligned_load, mips_expand_unaligned_store, and
23652 move_by_pieces.
23653
23654 2004-07-05 Josef Zlomek <zlomekj@suse.cz>
23655
23656 * var-tracking.c: Fix some comments.
23657 (frame_stack_adjust): New.
23658 (vt_stack_adjustments): Init stack_adjust of entry block to
23659 minus stack adjustment of function prologue.
23660 (adjust_stack_reference): Do not adjust if adjustment == 0.
23661 (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
23662 (emit_notes_in_bb): Likewise.
23663 (vt_add_function_parameters): Do not adjust locations of
23664 function arguments.
23665 (vt_initialize): Compute the stack adjustment of function
23666 prologue and offset the initial "location" of frame_base_decl
23667 from the stack pointer after prologue.
23668
23669 2004-07-04 Richard Henderson <rth@redhat.com>
23670
23671 * function.c (struct assign_parm_data_all): New.
23672 (struct assign_parm_data_one): New.
23673 (assign_parms_initialize_all, assign_parms_augmented_arg_list,
23674 assign_parm_find_data_types, assign_parms_setup_varargs,
23675 assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
23676 assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
23677 assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
23678 assign_parm_setup_block, assign_parm_setup_reg,
23679 assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
23680 (assign_parms): ... here.
23681
23682 2004-07-04 Daniel Berlin <dberlin@dberlin.org>
23683
23684 * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
23685 now are bitmap_set_t's.
23686 (bitmap_insert_into_set): No point in inserting the value if
23687 it's invariant.
23688 (bitmap_set_contains): New function.
23689 (bitmap_set_replace_value): Add comment on why we do it
23690 this way.
23691 (set_contains): Removed.
23692 (bitmap_set_subtract_from_value_set): New name of
23693 set_subtract now that it's arguments are two different
23694 types of sets.
23695 Update callers.
23696 (bitmap_find_leader): Change algorithm used.
23697 (find_or_generate_expression): Update use of functions for new
23698 bitmap sets.
23699 (create_expression_by_pieces): Ditto.
23700 (insert_aux): Ditto.
23701 (insert): Ditto.
23702 (add_to_sets): Ditto.
23703 (init_pre): Ditto.
23704 (execute_pre): Ditto.
23705 (compute_avail): Ditto.
23706 Also ignore virtual phis.
23707
23708 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
23709
23710 * combine.c (simplify_comparison): Fix comment typo.
23711
23712 2004-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
23713
23714 * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
23715 into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
23716 (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
23717 (output_restore): Change parameter from 'insn' to 'pat'.
23718 (output_return): Adjust call to output_restore.
23719 (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
23720 Adjust call to output_restore.
23721
23722 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
23723
23724 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
23725 and assert system is bsd.
23726
23727 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
23728
23729 * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
23730 (TARGET_SWITCHES): Remove -mdebugc.
23731 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
23732 (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
23733 (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
23734 (sle_[sd]i_reg): Delete.
23735
23736 2004-07-04 Steven Bosscher <stevenb@suse.de>
23737
23738 * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
23739 Define.
23740 * config/iq2000/iq2000.md: Translate old pipeline description to an
23741 equivalent new one.
23742
23743 2004-07-04 Roger Sayle <roger@eyesopen.com>
23744
23745 * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
23746 Ensure the replacement rhs is valid gimple before performing
23747 the substitution. Return false if these sanity checks fail.
23748 (fold_stmt): Only set changed to true, if set_rhs returns true.
23749 (execute_fold_all_builtins): Only call modify_stmt if set_rhs
23750 succeeds.
23751
23752 2004-07-04 Richard Henderson <rth@redhat.com>
23753
23754 PR c/16348
23755 * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
23756
23757 2004-07-04 Mark Mitchell <mark@codesourcery.com>
23758
23759 * configure.ac (ranlib_flags): New variable.
23760 * Makefile.in (RANLIB_FLAGS): New variable.
23761 (libbackend.a): Use it.
23762 * configure: Regenerated.
23763
23764 2004-07-04 Roger Sayle <roger@eyesopen.com>
23765
23766 * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
23767 a "sign mask" instead of using ashr_optab directly.
23768
23769 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
23770
23771 * doc/cpp.texi: Don't document what we do for ill-formed expressions.
23772 * doc/cppopts.texi: Clarify processing of command-line defines.
23773
23774 2004-07-04 Gerald Pfeifer <gerald@pfeifer.com>
23775
23776 * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
23777
23778 2004-07-04 Richard Henderson <rth@redhat.com>
23779
23780 * rtl.def (ADDRESSOF): Remove.
23781 * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
23782 (find_base_term, memrefs_conflict_p): Likewise.
23783 * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
23784 (fold_rtx, cse_insn, set_live_p): Likewise.
23785 * dwarf2out.c (mem_loc_descriptor): Likewise.
23786 (add_location_or_const_value_attribute): Likewise.
23787 * emit-rtl.c (copy_insn_1): Likewise.
23788 * explow.c (memory_address): Likewise.
23789 * expmed.c (store_split_bit_field): Likewise.
23790 * expr.c (expand_expr_real_1): Likewise.
23791 * function.c (instantiate_decl
23792 (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
23793 * genrecog.c (preds, validate_pattern): Likewise.
23794 * integrate.c (copy_rtx_and_substitute): Likewise.
23795 * recog.c (general_operand, register_operand): Likewise.
23796 (memory_address_p): Likwise.
23797 * reload1.c (eliminate_regs, elimination_effects): Likewise.
23798 * rtl.c (copy_rtx): Likewise.
23799 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
23800 (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
23801 * rtlhooks.c (gen_lowpart_general): Likewise.
23802 * stmt.c (expand_asm_operands): Likewise.
23803 * web.c (entry_register, replace_ref, web_main): Likewise.
23804 * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
23805 alpha_expand_block_move, alpha_expand_block_clear): Likewise.
23806 * config/arm/arm.c (thumb_rtx_costs): Likewise.
23807 * config/c4x/c4x.c (c4x_valid_operands): Likewise.
23808 * config/frv/frv.c (move_destination_operand, move_source_operand,
23809 condexec_dest_operand, condexec_source_operand,
23810 condexec_memory_operand): Likewise.
23811 * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
23812 * config/ia64/ia64.c (general_xfmode_operand): Likewise.
23813 (destination_xfmode_operand): Likewise.
23814 * config/mips/mips.h (PREDICATE_CODES): Likewise.
23815 * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
23816 * config/s390/s390.c (general_s_operand): Likewise.
23817 * config/s390/s390.md (mov*): Likewise.
23818 * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
23819
23820 * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
23821 * expr.c (expand_expr_real_1): Likewise.
23822 * stmt.c (expand_decl): Likewise.
23823 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
23824
23825 * function.c (struct fixup_replacement, struct insns_for_mem_entry,
23826 postponed_insns, put_var_into_stack, put_reg_into_stack,
23827 schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
23828 fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
23829 fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
23830 walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
23831 gen_mem_addressof, flush_addressof, put_addressof_into_stack,
23832 purge_bitfield_addressof_replacements, purge_addressof_replacements,
23833 purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
23834 struct insns_for_mem_walk_info, insns_for_mem_walk,
23835 compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
23836 setjmp_protect_args): Remove.
23837 (push_function_context_to): Don't handle var_refs_queue.
23838 (pop_function_context_from, free_after_compilation): Likewise.
23839 (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
23840 (assign_parms, allocate_struct_function): Likewise.
23841 (use_register_for_decl): New.
23842 (expand_function_end): Don't setjmp_protect.
23843 * function.h (struct emit_status): Update commentary.
23844 (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
23845 (max_parm_reg, parm_reg_stack_loc): Remove.
23846 * passes.c (DFI_addressof): Remove.
23847 (dump_file_info): Remove addressof.
23848 (rest_of_handle_addressof): Remove.
23849 (rest_of_compilation): Don't call it.
23850 * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
23851 * stmt.c (expand_decl): Use use_register_for_decl.
23852 * tree.h: Update decls.
23853 * web.c (mark_addressof): Remove.
23854 * doc/invoke.texi (-dF): Remove.
23855
23856 2004-07-03 Richard Henderson <rth@redhat.com>
23857
23858 * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
23859 instead of gen_mem_addressof.
23860 * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
23861 TImode output register.
23862
23863 2004-07-03 Richard Henderson <rth@redhat.com>
23864
23865 PR tree-optimization/16341
23866 * tree-sra.c (sra_walk_function): Increment to next stmt before
23867 processing the current stmt.
23868 (sra_insert_after): Always use BSI_SAME_STMT.
23869
23870 2004-07-03 Richard Henderson <rth@redhat.com>
23871
23872 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
23873 fp plus with minus.
23874
23875 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
23876
23877 * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
23878 with tree_int_cst_equal.
23879
23880 2004-07-03 Andreas Schwab <schwab@suse.de>
23881
23882 * config/ia64/ia64.md: Define new attribute "empty".
23883 (prologue_use, nop_x, insn_group_barrier): Set it.
23884
23885 * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
23886 skip over "empty" insns.
23887
23888 2004-07-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23889
23890 * tree-inline.c (initialize_inlined_parameters): Pass proper function
23891 context to gimplify_body.
23892 (walk_tree): Don't walk into types twice.
23893 (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
23894
23895 * tree-sra.c (generate_element_init): Remove any useless conversions.
23896
23897 * gimplify.c (gimplify_conversion): Remove stripping useless
23898 conversions from here.
23899 (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
23900 (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
23901 Unshare before substituting PLACEHOLDER_EXPR.
23902 (gimplify_modify_expr_to_memset): Likewise.
23903 Pass address of TO to memset, not TO itself.
23904 (gimplify_init_constructor): Make copy of OBJECT so we have it each
23905 time we make an expression (to match a PLACEHOLDER_EXPR).
23906
23907 * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
23908 VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
23909 * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
23910 * tree-ssa-dom.c (local_fold): Likewise.
23911
23912 * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
23913 * langhooks.h (strct lang_hooks): New field type_max_size.
23914 * function.c (assign_temp): Call it.
23915
23916 2004-07-03 Steven Bosscher <stevenb@suse.de>
23917
23918 * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
23919 * config/sh/sh.md: Convert the SH1 pipeline description to
23920 a DFA model.
23921
23922 2004-07-02 Zack Weinberg <zack@codesourcery.com>
23923
23924 * c-decl.c (struct c_binding): Remove contour field; add
23925 depth, invisible, nested fields.
23926 (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
23927 (B_IN_EXTERNAL_SCOPE): New convenience macros.
23928 (bind): Add invisible and nested arguments. Initialize
23929 new fields of struct c_binding; adjust loop scanning for
23930 insertion point.
23931 (free_binding_and_advance): Clear structure with memset.
23932 (pop_scope): Adjust to match. Set DECL_CONTEXT on everything
23933 in file scope, even if it's in external scope too.
23934 (pushdecl): Adjust to match. Create invisible file-scope
23935 declarations for block-scope forward declarations of static functions.
23936 (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
23937 (undeclared_variable, lookup_label, declare_label, define_label)
23938 (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
23939 (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
23940 (store_parm_decls_oldstyle): Adjust to match.
23941 (diagnose_mismatched_decls): Correct handling of linkage clashes.
23942 (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
23943
23944 * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
23945 (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
23946
23947 2004-07-02 Richard Henderson <rth@redhat.com>
23948
23949 * c-decl.c (grokdeclarator): Don't frob current_function_decl
23950 around variable_size.
23951 (set_decl_nonlocal): Remove.
23952 (store_parm_decls): Add stmts for pending sizes.
23953 * calls.c (calls_function, calls_function_1): Remove.
23954 (precompute_arguments): Don't call it.
23955 * cfgexpand.c (set_save_expr_context): Remove.
23956 (tree_expand_cfg): Don't call it.
23957 * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
23958 (dwarf2out_finish): Likewise.
23959 * expr.c (emit_block_move): Adjust addresses to BLKmode.
23960 (store_constructor): Don't pre-evaluate SAVE_EXPR.
23961 (safe_from_p): Don't queue SAVE_EXPRs.
23962 (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
23963 or build plain VAR_DECLs.
23964 * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
23965 (fold): Likewise.
23966 (fold_checksum_tree): Don't special-case SAVE_EXPR.
23967 * function.c (free_after_compilation): Don't clear x_save_expr_regs.
23968 (put_var_into_stack): Don't handle SAVE_EXPR.
23969 (gen_mem_addressof): Likewise.
23970 * function.h (struct function): Remove x_save_expr_regs.
23971 (save_expr_regs): Remove.
23972 * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
23973 * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
23974 * stor-layout.c (variable_size): Don't set it.
23975 (force_type_save_exprs, force_type_save_exprs_1): Remove.
23976 * tree-inline.c (remap_save_expr): Remove fn argument. Update
23977 all callers. Don't set SAVE_EXPR_CONTEXT.
23978 * tree-inline.h (remap_save_expr): Update decl.
23979 * tree.c (save_expr): Update build size.
23980 (first_rtl_op): Don't handle SAVE_EXPR.
23981 (unsave_expr_1, contains_placeholder_p): Likewise.
23982 (decl_function_context): Likewise.
23983 * tree.def (SAVE_EXPR): Remove args 1 and 2.
23984 * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
23985 (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
23986
23987 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
23988
23989 * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
23990 doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
23991 doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
23992 doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
23993 some first-person references and patronizing comments. Based on
23994 printed manual.
23995 * doc/invoke.texi: Don't reference fortran@gnu.org.
23996 * doc/trouble.texi (Warning when a non-void function value is
23997 ignored): Rewrite. From Russ Allbery and Chris Devers.
23998
23999 2004-07-02 Daniel Berlin <dberlin@dberlin.org)
24000
24001 * tree-ssa-pre.c (bitmap_set_t): New.
24002 (bb_value_sets): avail_out is now a bitmap_set_t.
24003 (bitmap_find_leader): New function.
24004 (bitmap_value_insert_into_set): Ditto.
24005 (bitmap_set_copy): Ditto.
24006 (bitmap_value_replace_in_set): Ditto.
24007 (bitmap_set_contains_value): Ditto.
24008 (bitmap_set_new): Ditto.
24009 (bitmap_set_pool): New pool.
24010 (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
24011 (insert_aux): Ditto.
24012 (add_to_sets): Ditto.
24013 (compute_avail): Ditto
24014 (eliminate): Ditto.
24015 (init_pre): Ditto.
24016 (fini_pre): Ditto.
24017 (execute_pre): Ditto.
24018
24019 2004-07-02 Roger Sayle <roger@eyesopen.com>
24020
24021 * config/rs6000/rs6000.c (struct processor_costs): New structure
24022 used to hold instruction latencies/sizes for processor types.
24023 (rs6000_cost): New global variable pointing to current CPU's costs.
24024 (rs6000_override_options): Initialize rs6000_cost to point to the
24025 appropriate cost table based upon rs6000_cpu and optimize_size.
24026 (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
24027 timings inline.
24028
24029 2004-07-02 Richard Henderson <rth@redhat.com>
24030
24031 * expmed.c (make_tree): Don't use SET_DECL_RTL.
24032
24033 2004-07-02 Steven Bosscher <stevenb@suse.de>
24034
24035 * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
24036
24037 2004-07-01 Richard Henderson <rth@redhat.com>
24038
24039 * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
24040 (alpha_gp_save_rtx): Use assign_stack_local instead of
24041 gen_mem_addressof.
24042
24043 2004-07-01 Richard Henderson <rth@redhat.com>
24044
24045 * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
24046 (alpha_rtx_cost_data): Update to match.
24047 (alpha_rtx_cost_size): New.
24048 (alpha_rtx_costs): Honor optimize_size.
24049
24050 2004-07-01 Richard Henderson <rth@redhat.com>
24051
24052 * gimple-low.c (lower_function_body): Don't reset_block_changes here.
24053 * cfgexpand.c (tree_expand_cfg): Do it here.
24054 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
24055 * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
24056 * config/mips/mips.c (mips_output_mi_thunk): And here.
24057 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
24058 * config/sh/sh.c (sh_output_mi_thunk): And here.
24059 * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
24060
24061 2004-07-01 Richard Henderson <rth@redhat.com>
24062
24063 * tree.def (RTL_EXPR): Remove.
24064 * c-typeck.c (lvalue_p): Don't handle it.
24065 * expr.c (safe_from_p): Likewise.
24066 (expand_expr_real_1): Likewise.
24067 * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
24068 (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
24069 * gengtype.c (adjust_field_tree_exp): Likewise.
24070 * stmt.c (warn_if_unused_value): Likewise.
24071 * tree-gimple.c (recalculate_side_effects): Likewise.
24072 * tree-pretty-print.c (dump_generic_node): Likewise.
24073 * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
24074 (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
24075 * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
24076
24077 * stmt.c (struct stmt_status): Remove x_last_expr_type,
24078 x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
24079 (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
24080 (expand_expr_stmt): Merge with expand_expr_stmt_value. Remove
24081 all the bits that tracked last_expr.
24082 (expand_end_bindings): Don't track last_expr.
24083 (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
24084 (clear_last_expr): Remove.
24085 (expand_asm): Don't call it.
24086 (expand_asm_operands, expand_end_cond): Likewise.
24087 (expand_naked_return, expand_null_return_1): Likewise.
24088 * c-typeck.c (c_begin_compound_stmt): Likewise.
24089 * cfgexpand.c (expand_block): Use expand_expr_stmt.
24090 * expr.c (expand_expr_real_1): Likewise.
24091 * tree.h: Update prototypes.
24092
24093 * function.h (struct sequence_stack): Remove sequence_rtl_expr.
24094 (struct emit_status): Remove sequence_rtl_expr.
24095 (struct function): Remove x_rtl_expr_chain.
24096 (seq_rtl_expr, rtl_expr_chain): Remove.
24097 * function.c (struct temp_slot): Remove rtl_expr.
24098 (assign_stack_temp_for_type): Don't set it.
24099 (free_temp_slots, pop_temp_slots): Don't check it.
24100 (free_after_compilation): Don't clear x_rtl_expr_chain.
24101 (fixup_var_refs): Don't search it.
24102 (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
24103 * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
24104 or seq_rtl_expr.
24105 (push_topmost_sequence): Likewise.
24106 (end_sequence, init_emit): Likewise.
24107 (start_sequence_for_rtl_expr): Remove.
24108 * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
24109 * rtl.h (preserve_rtl_expr_result): Remove.
24110
24111 2004-07-02 Kazu Hirata <kazu@cs.umass.edu>
24112
24113 * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
24114 tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
24115 typos.
24116
24117 2004-07-02 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
24118
24119 * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
24120 (STANDARD_STARTFILE_PREFIX_2): Define.
24121 (standard_startfile_prefix_1): Initialize to
24122 STANDARD_STARTFILE_PREFIX_1.
24123 (standard_startfile_prefix_2): Initialize to
24124 STANDARD_STARTFILE_PREFIX_2.
24125 * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
24126 (STANDARD_STARTFILE_PREFIX_1): Define.
24127 (STANDARD_STARTFILE_PREFIX_2): Define.
24128 * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
24129 (STANDARD_STARTFILE_PREFIX_2): Document.
24130
24131 2004-07-01 Richard Henderson <rth@redhat.com>
24132
24133 * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
24134 in order to disable scalarization. Instead set a flag and wait
24135 for a candidate decl.
24136
24137 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
24138
24139 * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
24140 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
24141 Use terminology "testsuite" and "enumerated".
24142
24143 2004-07-01 Richard Henderson <rth@redhat.com>
24144
24145 * dwarf2out.c (reg_save): Use INVALID_REGNUM.
24146 (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
24147 (initial_return_save): Likewise.
24148 (flush_queued_reg_saves): Remap register numbers.
24149 (dwarf2out_return_reg): Likewise.
24150
24151 2004-07-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24152
24153 * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
24154
24155 * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
24156 access functions for lower bound and element size and only output
24157 if lower bound nonzero or element size not same as that of type.
24158 (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
24159
24160 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
24161
24162 * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
24163
24164 2004-07-01 Per Bothner <per@bothner.com>
24165
24166 * final.c (final): Fix typo reported by Aaron W. LaFramboise.
24167
24168 2004-07-01 Jakub Jelinek <jakub@redhat.com>
24169
24170 * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
24171 bitfields as well. STRIP_NOPS from src operand and PLUS_EXPR's
24172 first operand. Don't optimize if the bitfield is volatile.
24173
24174 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
24175
24176 * c-pretty-print.c (pp_c_postfix_expression): Handle
24177 floating-point comparison operators.
24178 (pp_c_expression): Pass floating-point comparison
24179 operators to pp_c_postfix_expression.
24180
24181 2004-07-01 Roger Sayle <roger@eyesopen.com>
24182
24183 * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
24184 rtx_cost instead of "had_mult" to determine whether the transformed
24185 expression is cheaper than the original.
24186
24187 2004-07-01 Jerry Quinn <jlquinn@optonline.net>
24188
24189 * alias.c (get_alias_set, canon_rtx, get_addr,
24190 nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
24191 Use MEM_P.
24192 * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
24193 expand_builtin): Likewise.
24194 * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
24195 Likewise.
24196 * combine.c (can_combine_p, combinable_i3pat, try_combine,
24197 find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
24198 rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
24199 record_dead_and_set_regs_1, get_last_value_validate,
24200 mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
24201 * cse.c (check_dependence, canon_hash, equiv_constant,
24202 gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
24203 cse_around_loop, cse_check_loop_start, cse_set_around_loop,
24204 count_reg_usage): Likewise.
24205 * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
24206 cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
24207 cselib_record_sets): Likewise.
24208 * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
24209 dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
24210 * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
24211 * df.c (df_uses_record): Likewise.
24212 * dojump (do_jump): Likewise.
24213 * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
24214 loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
24215 decl_start_label): Likewise.
24216 * emit-rtl.c (gen_complex_constant_part, gen_highpart,
24217 operand_subword, change_address_1, make_safe_from): Likewise.
24218 * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
24219 stabilize, force_not_mem): Likewise.
24220 * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
24221 expand_mult_const, expand_divmod, emit_store_flag): Likewise.
24222 * expr.c (convert_move, convert_modes, emit_block_move,
24223 emit_group_load, emit_group_store, clear_storage, emit_move_insn,
24224 emit_move_insn_1, expand_assignment, store_expr,
24225 store_constructor_field, store_constructor, store_field,
24226 force_operand, safe_from_p, expand_expr_real_1, expand_increment):
24227 Likewise.
24228 * final.c (cleanup_subreg_operands, alter_subreg,
24229 get_mem_expr_from_op): Likewise.
24230 * flow.c (notice_stack_pointer_modification_1,
24231 init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
24232 Likewise.
24233 * function.c (mark_temp_addr_taken, preserve_temp_slots,
24234 preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
24235 optimize_bit_field, flush_addressof, purge_addressof_1,
24236 instantiate_decl, instantiate_virtual_regs_1, assign_parms,
24237 setjmp_protect, setjmp_protect_args, fix_lexical_addr,
24238 keep_stack_depressed): Likewise.
24239 * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
24240 noce_process_if_block, find_memory): Likewise.
24241 * integrate.c (subst_constants, allocate_initial_values): Likewise.
24242 * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
24243 update_equiv_regs): Likewise.
24244 * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
24245 maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
24246 * optabs.c (expand_abs, emit_unop_insn): Likewise.
24247 * passes.c (rest_of_handle_final): Likewise.
24248 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
24249 move2add_note_store): Likewise.
24250 * ra-build.c (detect_remat_webs): Likewise.
24251 * ra-debug.c (dump_static_insn_cost): Likewise.
24252 * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
24253 * recog.c (validate_change, apply_change_group, cancel_changes,
24254 validate_replace_rtx_1, general_operand, register_operand,
24255 nonmemory_operand, push_operand, pop_operand, memory_operand,
24256 indirect_operand, asm_operand_ok, offsettable_memref_p,
24257 offsettable_nonstrict_memref_p, constrain_operands,
24258 store_data_bypass_p): Likewise.
24259 * reg-stack.c (subst_stack_regs_pat): Likewise.
24260 * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
24261 copy_cost, reg_scan_mark_refs): Likewise.
24262 * regmove.c (optimize_reg_copy_3, stack_memref_p,
24263 combine_stack_adjustments_for_block): Likewise.
24264 * regrename.c (copyprop_hardreg_forward_1): Likewise.
24265 * reload.c (can_reload_into, push_reload, decompose, immune_p,
24266 find_reloads, find_reloads_address, find_reloads_address_1,
24267 reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
24268 find_equiv_reg): Likewise.
24269 * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
24270 reload_as_needed, choose_reload_regs, emit_input_reload_insns,
24271 do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
24272 delete_address_reloads): Likewise.
24273 * resource.c (mark_referenced_resources): Likewise.
24274 * rtlanal.c (get_jump_table_offset, count_occurrences,
24275 reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
24276 reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
24277 num_sign_bit_copies1): Likewise.
24278 * rtlhooks.c (gen_lowpart_general): Likewise.
24279 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
24280 * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
24281 sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
24282 sdbout_global_decl): Likewise.
24283 * simplify-rtx.c (simplify_subreg): Likewise.
24284 * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
24285 expand_anon_union_decl, expand_end_case_type): Likewise.
24286 * unroll.c (calculate_giv_inc): Likewise.
24287 * var-tracking.c (stack_adjust_offset_pre_post,
24288 bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
24289 add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
24290 vt_add_function_parameters): Likewise.
24291 * varasm.c (make_var_volatile, notice_global_symbol,
24292 assemble_external, decode_addr_const, mark_weak,
24293 default_encode_section_info): Likewise.
24294
24295 2004-07-01 Steven Bosscher <stevenb@suse.de>
24296
24297 * stmt.c (check_seenlabel): Remove.
24298 (pushcase, pushcase_range, expand_end_case_type): Don't call it.
24299
24300 2004-07-01 Richard Henderson <rth@redhat.com>
24301
24302 * function.h (struct function): Remove x_function_call_count.
24303 (function_call_count): Remove.
24304 * calls.c (expand_call): Don't set it.
24305 * integrate.c (copy_rtx_and_substitute): Likewise.
24306
24307 * function.h (struct function): Remove x_cleanup_label.
24308 (cleanup_label): Remove.
24309 * stmt.c (expand_value_return): Don't use it.
24310 * function.c (free_after_compilation): Don't set it.
24311 (expand_function_start): Likewise. Remove parms_have_cleanups arg.
24312 * cfgexpand.c (tree_expand_cfg): Update call.
24313 * tree.h (expand_function_start): Update decl.
24314
24315 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
24316
24317 PR c/1027
24318 * c-lang.c (c_initialize_diagnostics): Move from here ...
24319 * c-objc-common.c: ... to here. Include "c-pretty-print.h".
24320 (c_tree_printer): Use pretty-printer to format %T.
24321 * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
24322 before '*' if not C++.
24323 (pp_c_direct_abstract_declarator): Don't try to print array upper
24324 bound for flexible array members.
24325 * c-tree.h: Include "diagnostic.h".
24326 (c_initialize_diagnostics): Declare.
24327 * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
24328 * c-format.c (format_type_warning): New function. Improve
24329 diagnostics for incorrect format argument types.
24330 (check_format_types): Use it. Add two parameters. Use the
24331 TYPE_MAIN_VARIANT of wanted_type.
24332 (check_format_info_main): Pass new parameters to
24333 check_format_types.
24334 (struct format_wanted_type): Update comment.
24335
24336 2004-07-01 Nick Clifton <nickc@redhat.com>
24337
24338 * target.h (struct gcc_target): Add new field to struct cxx:
24339 import_export_class.
24340 * target-def.h (TARGET_CXX): Initialise the new field.
24341 (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
24342 the new field.
24343 * doc/tm.texi: Document the new target hook.
24344
24345 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
24346
24347 * builtins.c (fold_builtin_classify): Fix typo.
24348
24349 2004-07-01 Richard Henderson <rth@redhat.com>
24350
24351 * function.c (identify_blocks, identify_blocks_1): Remove.
24352 * function.h (identify_blocks): Remove.
24353 * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
24354
24355 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
24356
24357 * builtins.c (fold_builtin_classify): New.
24358 (fold_builtin_unordered_cmp): Fix commentary.
24359 (fold_builtin): Use it.
24360 * builtins.def: Define builtins for isnan,
24361 isnanf, isnanl, finite, finitef, finitel,
24362 isinf, isinff, isinfl.
24363
24364 2004-07-01 Richard Henderson <rth@redhat.com>
24365
24366 * function.h (struct function): Remove dont_emit_block_notes.
24367 * gimple-low.c (lower_function_body): Don't set it.
24368 * cfgexpand.c (expand_block): Don't check it.
24369 * cfglayout.c (insn_locators_initialize): Likewise.
24370 * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
24371 * passes.c (rest_of_compilation): Likewise.
24372 * stmt.c (expand_start_bindings_and_block): Likewise.
24373 (expand_end_bindings): Likewise.
24374
24375 2004-07-01 Richard Henderson <rth@redhat.com>
24376
24377 * cgraph.h (cgraph_build_static_cdtor): Declare.
24378 * cgraphunit.c (cgraph_build_static_cdtor): New.
24379 * c-objc-common.c (build_cdtor): Use it.
24380 * coverage.c (create_coverage): Likewise.
24381 * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
24382 * optabs.c (init_optabs): Don't set gcov_init_libfunc.
24383
24384 See ChangeLog.11 for earlier changes.