1 2004-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3 PR tree-optimization/17468
4 * tree-ssa.c (verify_use, verify_phi_args, verify_ssa): Verify that
5 definition inside a block precede uses.
6 * tree-tailcall.c (adjust_return_value): Emit statements in the
9 2004-09-15 Richard Sandiford <rsandifo@redhat.com>
11 * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
13 2004-09-15 Eric Botcazou <ebotcazou@libertysurf.fr>
15 * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
17 2004-09-14 Jeff Law <law@redhat.com>
19 * tree-ssa-dom.c (avail_exprs_stack): New global varray.
20 (struct dom_walk_block_data): Remove avail_exprs member.
21 (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
22 (lookup_avail_expr): No longer need to pass in address of
23 the block local available exprs stack. All callers changed.
24 (simplify_cond_and_lookup_avail_expr): Similarly.
25 (simplify_switch_and_lookup_avail_expr): Similarly.
26 (get_eq_expr_value, record_cond): Likewise.
27 (record_dominating_conditions): Likewise.
28 (update_rhs_and_lookup_avail_expr): Likewise.
29 (record_equivalences_from_stmt): Likewise.
30 (dom_opt_initialize_block_local_data): No longer test state of
31 block local avail_exprs.
32 (dom_opt_initialize_block): Mark unwind point in the global
34 (remove_expressions_from_table): Update to unwind to the
35 most recent unwind marker in the global avail_expr stack.
37 (dom_opt_finalize_block): Mark unwind point in the global
38 avail_expr stack as needed.
39 (record_cond): Push elements into the global avail_exprs stack.
41 * tree-dfa.c (free_df_for_stmt): No longer static.
42 (free_df): Update comments.
43 * tree-flow.h (free_df_for_stmt): Prototype.
44 * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt. Also
47 2004-09-14 Diego Novillo <dnovillo@redhat.com>
49 PR tree-optimization/17252
50 * tree-ssa-alias.c (may_alias_p): Don't assume that a
51 pointer may not point to itself when using relaxed
54 2004-09-14 Richard Henderson <rth@redhat.com>
57 * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
58 while folding <ADDR_EXPR <INDIRECT_REF X>>.
60 2004-09-14 Andrew Pinski <apinski@apple.com>
62 * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
63 sets of the pointers but the aliasing sets of what they point to.
65 2004-09-14 Roger Sayle <roger@eyesopen.com>
67 PR rtl-optimization/9771
68 * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
69 conditional compilation in init_reg_sets_1.
70 (init_reg_sets_1): Let global_regs[i] take priority over the frame
71 (but not stack) pointer exceptions to regs_invalidated_by_call.
72 (globalize_reg): Globalizing a fixed register may need to update
73 regs_invalidated_by_call.
75 2004-09-14 Diego Novillo <dnovillo@redhat.com>
77 PR tree-optimization/15262
78 * tree-dfa.c (dump_variable): Also print the type of the
80 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
81 memory tags are of conflicting alias sets but have no aliased
82 symbols in common, add one tag to the alias set of the other.
83 (setup_pointers_and_addressables): Remove hack to deal with
84 programs with no aliased symbols.
85 (may_alias_p): Don't special case aggregate types.
87 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
90 * doc/invoke.texi (Environment Variables): Correct example locale.
92 2004-09-14 Jan Hubicka <jh@suse.cz>
94 * cfg.c (expunge_block): Revert previous change adding ggc_free call.
96 2004-09-14 Mark Mitchell <mark@codesourcery.com>
98 * config.gcc: Do not build a shared libgcc for arm-none-eabi.
100 2004-09-14 Joseph S. Myers <jsm@polyomino.org.uk>
102 * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
104 (struct c_declarator): Change u.array.quals and pointer_quals to
105 int. Add u.array.attrs.
106 (quals_from_declspecs): New.
107 * c-decl.c (quals_from_declspecs): New.
108 (shadow_tag_warned): Give more specific message for useless type
110 (build_array_declarator, set_array_declarator_inner,
111 grokdeclarator, make_pointer_declarator, build_null_declspecs,
112 declspecs_add_qual): Update for changed structures.
114 2004-09-14 Jeff Law <law@redhat.com>
116 * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
118 (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
119 (dom_opt_initialize_block_local_data): No longer test state
121 (dom_opt_finalize_block): Update due to change in scope of
123 (optimize_stmt): Similarly.
125 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
127 * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
128 lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
129 comment typos. Follow spelling conventions.
131 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
133 * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
134 config/i386/predicates.md, config/sparc/sparc.c: Follow
135 spelling conventions.
137 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
138 Steven Bosscher <stevenb@suse.de>
140 * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
141 * basic-block.h (struct reorder_block_def): Add copy_number field.
142 * cfgloop.h (biv_p): Declare.
143 * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
144 * common.opt (fsplit-ivs-in-unroller): New flag.
145 * loop-iv.c (biv_p): New function.
146 * loop-unroll.c: Include hashtab.h and recog.h.
147 (struct iv_to_split, struct split_ivs_info): New types.
148 (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
149 free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
150 determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
151 insert_base_initialization, split_iv): New functions.
152 (peel_loop_completely, unroll_loop_constant_iterations,
153 unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
155 * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
157 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
159 * tree-cfg.c (thread_jumps): Update dominators correctly in
160 case destination of threaded edge dominates its source.
162 2004-09-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
166 * Makefile.in (LOOP_H, unroll.o): Removed.
167 (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
169 * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
171 * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
172 * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
173 * loop.c: Do not include loop.h.
174 (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
175 REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
176 struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
177 REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
178 struct loop_regs, struct loop_movables, struct loop_info): Moved
180 (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
181 reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
182 find_common_reg_term, loop_iterations, final_giv_value): Moved
184 (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
185 loop_dump_stream, for_each_insn_in_loop, express_from,
186 extend_value_for_giv, loop_iv_add_mult_emit_before,
187 loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
188 loop_insn_first_p, get_condition_for_loop,
189 loop_insn_emit_before, loop_insn_hoist,
190 loop_insn_sink): Made static.
191 (loop_invariant_p): Made static. Removed flag_old_unroll_loops
193 (strength_reduce): Do not call unroller.
194 (record_giv): Do not initialize unrolled field.
195 (prescan_loop): Do not set loop_info->preconditioned.
196 * passes.c: Do not include loop.h.
197 (rest_of_handle_loop_optimize): Do not call unroller.
198 * predict.c: Do not include loop.h.
199 * rtl.h (NOTE_PRECONDITIONED): Removed.
200 * stmt.c: Do not include loop.h.
201 * toplev.c: Do not include loop.h.
202 (process_options): Do not handle flag_old_unroll_loops.
204 * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
205 Documentation removed.
206 * doc/passes.texi (unroll.c, loop.h): Documentation removed.
208 2004-09-14 Nathan Sidwell <nathan@codesourcery.com>
210 * Makefile.in (STAGE1_CHECKING): New variable.
211 (stage1_build): Use it.
212 * tree-ssa.c (verify_ssa): Preserve state of dominance
215 2004-09-14 Uros Bizjak <uros@kss-loka.si>
217 * config/i386/i386.c (output_fp_compare): Add generation
219 * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
220 Use output_fp_compare () function.
221 (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
222 (fix_truncdi_memory): Remove operands[5] copy.
224 2004-09-14 Kazu Hirata <kazu@cs.umass.edu>
226 * config/m32r/m32r.md, config/m68k/m68kelf.h,
227 config/mcore/mcore.md, config/rs6000/linux64.h,
228 config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
231 2004-09-13 James E Wilson <wilson@specifixinc.com>
233 * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
234 * gen-protos.c: Include errors.h.
237 2004-09-14 Jan Hubicka <jh@suse.cz>
239 * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
240 * predict.c: Include tree-scalar-evolution.h and cfgloop.h
241 (predict_loops): Use number_of_iterations_exit to predict
242 number of iterations on trees.
244 2004-09-13 Dale Johannesen <dalej@apple.com>
248 * c-decl.c (start_decl): Repair TREE_STATIC for initialized
249 objects declared extern.
251 2004-09-14 Paul Brook <paul@codesourcery.com>
253 * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
256 2004-09-13 Daniel Jacobowitz <dan@debian.org>
258 * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
259 Only use TYPE_BINFO for aggregates.
261 2004-09-13 Daniel Jacobowitz <dan@debian.org>
263 * expmed.c (synth_mult): Initialize latency. Check cost before
266 2004-09-13 Kenneth Zadeck <Kenneth.Zadeck@NaturalBridge.com>
269 * tree-ssa-operands.c (get_call_expr_operands): Added parm to
270 add_call_clobber_ops and add_call_read_ops.
271 (add_call_clobber_ops, add_call_read_ops): Added code to reduce
272 the number of vdefs and vuses inserted based on analysis of global
273 variables across calls. * tree-dfa.c (find_referenced_vars):
274 Needed to reset static var maps before each function is compiled.
276 (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
277 static_vars_info,functions_to_static_vars_info,module_statics_escape,
278 all_module_statics,searchc_env,dfs_info): New fields to support
279 analysis of static global variables.
280 (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
281 cgraph_reset_static_var_maps, get_global_static_vars_info,
282 get_global_statics_not_read, get_global_statics_not_written,
283 searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
284 check_rhs_var, check_lhs_var, get_asm_expr_operands,
285 process_call_for_static_vars, scan_for_static_refs,
286 cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
287 clear_static_vars_maps, cgraph_propagate_bits,
288 cgraph_characterize_statics): New. Functions to support analysis
289 of static global variables.
290 (cgraph_mark_local_and_external_functions): Renamed from:
291 (cgraph_mark_local_functions)
292 (cgraph_expand_all_functions): Remove call to
293 cgraph_mark_local_and_external_functions.
294 (cgraph_optimize): Added driver to analyze static variables whose
295 scope is within the compilation unit. * cgraph.h (struct
296 cgraph_local_info, GTY): Added statics_read, statics_written,
297 local, calls_read_all, calls_write_all, for_functions_valid.
298 (struct cgraph_node): Added next_cycle. * cgraph.c
299 (dump_cgraph_node): Added print routines for new fields. *
300 makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
303 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
305 * c-decl.c (grokdeclarator): Correct comments about where storage
306 class specifiers are rejected by grammar and add corresponding
307 asserts. Diagnose typedefs and parameters declared inline.
308 Change warning for inline main to a pedwarn. Only diagnose inline
310 (declspecs_add_scspec): Allow duplicate "inline".
312 2004-09-13 Steve Ellcey <sje@cup.hp.com>
314 * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
315 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
317 2004-09-13 Richard Henderson <rth@redhat.com>
320 * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
321 (tree_type): Replace spare with contains_placeholder_bits.
322 (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
323 make static. Remove seen_types list.
324 (type_contains_placeholder_p): New.
326 2004-09-13 James E Wilson <wilson@specifixinc.com>
328 * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
329 (sb1_bdesc, bdesc_map, bdesc_arrays): New.
330 (mips_expand_builtin): Add SB-1 support. Use bdesc_map and
331 bdesc_arrays instead of mips_bdesc.
332 (mips_init_builtins): Likewise.
333 * config/mips/mips.h (TARGET_SB1): New.
334 (HAVE_SQRT_P): Delete.
335 * config/mips/mips.md (divide_condition): Support V2SF.
336 (sqrt_condition, recip_condition): New.
337 (div<mode>3): Use ANYF instead of SCALARF.
338 (*div<mode>3): Use ANYF instead of SCALARF. Use UNITMODE instead of
340 (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
341 instead of ISA_HAS_FP4. Use ANYF instead of SCALARF. Use UNITMODE
343 (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P. Use ANYF
344 instead of SCALARF. Use UNITMODE instead of MODE.
346 2004-09-13 Zack Weinberg <zack@codesourcery.com>
348 * config.in: Regenerate after removal of libbanshee.
350 2004-09-13 Andrew MacLeod <amacleod@redhat.com>
352 PR tree-optimization/17400
353 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
354 coalesce partitions when one occurs in an abnormal PHI.
356 2004-09-13 Andrew Pinski <apinski@apple.com>
358 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
361 2004-09-13 Richard Henderson <rth@redhat.com>
364 * cselib.c (cselib_invalidate_rtx): Export. Remove unused args.
365 (cselib_invalidate_rtx_note_stores): New.
366 (cselib_record_sets, cselib_process_insn): Update to match.
367 * cselib.h (cselib_invalidate_rtx): Declare.
368 * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
370 2004-09-13 Richard Henderson <rth@redhat.com>
373 * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
374 after copying its argument.
376 2004-09-13 Joseph S. Myers <jsm@polyomino.org.uk>
378 * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
379 c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
380 in diagnostics. Use %' for English apostrophes.
381 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
382 (pedwarn_c90, pedwarn_c99): Use it.
383 * c-decl.c (lookup_label): Quote label name in diagnostic.
384 * c-parse.in (yyprint): Use ' instead of ` for left quote.
385 * c-typeck.c (warn_for_assignment): Likewise.
387 2004-09-13 Jan Hubicka <jh@suse.cz>
389 * i386.c (x86_schedule): New global variable.
390 (override_options): Disable scheduling when not supported.
391 * i386.h (x86_schedule): Declare.
392 (TARGET_SCHEDULE): New macro.
394 2004-09-12 Richard Henderson <rth@redhat.com>
397 * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
398 * tree.c, tree.h (has_cleanups): Remove.
400 2004-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
402 * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
403 arguments of the phi nodes correctly.
405 2004-09-12 Jan Hubicka <jh@suse.cz>
407 * ggc-common.c (cmp_statistics): Fix sorting.
409 2004-09-12 David Edelsohn <edelsohn@gnu.org>
412 * expmed.c (expand_divmod): If cheap power of 2 divide is
413 available, use it for negative constant as well.
415 2004-09-12 Andrew Pinski <apinski@apple.com>
417 * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
420 * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
422 2004-09-12 Richard Henderson <rth@redhat.com>
424 * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
426 (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
427 post-reload, and scratch NULL.
428 * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
429 (x86_shift_adj_2): Use ix86_expand_clear.
430 (ashldi3): Remove CMOVE expansion difference.
432 (*ashldi3_1): Rename from *ashldi3_2. Use reg_or_pm1_operand and
433 add constraints for immediates. New peephole for split-with-temp.
434 Run splitter after peep2 pass.
435 (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
436 (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
437 (setcc_2): Rename with *.
438 * config/i386/predicates.md (reg_or_pm1_operand): New.
439 (ashldi_input_operand): New.
441 2004-09-12 Richard Henderson <rth@redhat.com
443 * print-rtl.c (print_decl_name): New.
444 (print_mem_expr): Use it.
446 2004-09-12 Richard Henderson <rth@redhat.com
449 * except.c (sjlj_emit_function_exit): Fix logic locating
450 sjlj_exit_after in final block.
452 2004-09-12 Toon Moene <toon@moene.indiv.nluug.nl>
454 * common.opt: Remove flags -fmove-all-movables and
456 * loop-invariant.c (find_invariants_to_move):
457 Remove all uses of flag_move_all_movables.
458 * loop.c (move_movables): Remove all uses of
459 flag_move_all_movables.
460 (strength_reduce): Remove all uses of
461 flag_reduce_all_givs.
462 * doc/invoke.texi: Remove documentation of flags
463 -fremove-all-movables and -freduce-all-givs.
465 2004-09-11 Roger Sayle <roger@eyesopen.com>
468 * tree-sra.c (generate_element_zero): Revert recent build_int_cst
469 change. elt->type may be a floating point type, so use fold_convert.
471 2004-09-11 Geoffrey Keating <geoffk@apple.com>
473 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
474 the thing referenced as used, not the stub itself.
476 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
478 * c-tree.h (enum c_storage_class): New.
479 (struct c_declspecs): Add storage_class, inline_p and thread_p.
480 * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
481 declarations and "auto" or "register" in file scope empty
482 declarations. Give more specific warnings for other cases of
483 storage class specifiers in empty declarations.
484 (grokdeclarator): Update for new structures. Don't check for
485 multiple storage classes. Diagnose file-scope "register" if
487 (build_null_declspecs): Update.
488 (declspecs_add_scspec): Update. Diagnose multiple storage class
489 specifiers and invalid uses of "__thread".
491 2004-09-11 Zack Weinberg <zack@codesourcery.com>
493 * tree.c (tree_code_size): New function, bulk of code from tree_size.
494 (tree_size, make_node): Use it.
495 * tree-ssa-pre.c (init_pre): Use it.
496 * tree.h: Prototype it.
498 2004-09-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
500 * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
501 * tree-dfa.c (compute_immediate_uses, add_immediate_use,
502 redirect_immediate_use): Use PHI_DF.
503 * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
504 (bb_for_stmt): Use PHI_BB.
505 (get_immediate_uses): Use PHI_DF.
506 * tree-ssa-dse.c (max_stmt_uid): New variable.
507 (get_stmt_uid): New function.
508 (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
510 * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
511 (max_uid): Renamed to max_stmt_uid.
512 (get_stmt_uid): New function.
513 (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
514 phi node annotations.
515 * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
516 * tree.h (PHI_BB, PHI_DF): New accessor functions.
517 (struct tree_phi_node): Add bb and df fields.
519 2004-09-11 Richard Henderson <rth@redhat.com>
522 * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
525 2004-09-11 Jan Hubicka <jh@suse.cz>
527 * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
528 (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
529 * i386.md (i387_cw): Add 'uninitialized' mode.
531 * profile.c (BB_TO_GCOV_INDEX): move more to the front.
532 (output_location): Break out from ....
533 (branch_prob): ... here; handle gcov output on trees.
534 * toplev.c (process_options): No longer be sorry about coverage for
537 2004-09-11 Steven Bosscher <stevenb@suse.de>
540 * fold-const.c (fold): Do not try to fold the operand of a
541 CLEANUP_POINT_EXPR if that operand does itself not have any
545 * langhooks.c (lhd_decl_printable_name): Make sure that this
546 function is called with is a decl node that has an identifier.
547 * tree-pretty-print.c (dump_function_name): New function to
548 wrap PRINT_FUNCTION_NAME and dump_decl_name.
549 (print_call_name): Use it.
551 2004-09-11 Mohan Embar <gnustuff@thisiscool.com>
553 * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
556 2004-09-11 Jakub Jelinek <jakub@redhat.com>
558 * tree-ssa-alias.c (collect_points_to_info_r): Handle
559 pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
562 2004-09-11 Richard Henderson <rth@redhat.com>
564 * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
565 (expand_expr_addr_expr): New function. Take ADDR_EXPR instead of the
566 operand of the ADDR_EXPR.
567 (expand_expr_real_1): Update to match.
569 2004-09-11 David Edelsohn <edelsohn@gnu.org>
572 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
573 choose 64-bit version.
575 2004-09-11 Richard Henderson <rth@redhat.com>
578 * c-typeck.c (build_unary_op): Add legacy offsetof hack.
580 2004-09-11 Kazu Hirata <kazu@cs.umass.edu>
582 * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
583 doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
584 Insert @: after i.e. or e.g.
586 2004-09-10 Geoffrey Keating <geoffk@apple.com>
588 * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
589 D.xxx rather than <Dxxx>.
591 2004-09-10 Adam Nemet <anemet@lnxw.com>
593 * configure.ac (AC_MSG_CHECKING(what linker to use)):
594 in_tree_ld_is_elf should be true for LynxOS.
595 * configure: Regenerate.
597 2004-09-10 Adam Nemet <anemet@lnxw.com>
599 * Makefile.in (all.cross): Add srcextra.
601 2004-09-10 Roger Sayle <roger@eyesopen.com>
604 * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
605 floating point comparison operators. Change aborts to gcc_asserts.
607 2004-09-10 Geoffrey Keating <geoffk@apple.com>
609 * final.c (output_asm_insn): Correct problem with -fverbose-asm.
611 2004-09-10 James E Wilson <wilson@specifixinc.com>
613 * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
614 (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
616 * convert.c (convert_to_vector): Replace recursive call with
619 * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
620 Add integer argument named constant. Use const_tiny_rtx instead of
622 (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
624 (init_emit_once): Fix users of gen_const_vector. Set CONST1_RTX for
626 * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
627 of gen_rtx_raw_CONST_VECTOR.
629 2004-09-10 Eric Christopher <echristo@redhat.com>
632 * c-parse.in (attribute): Add NULL_TREE for error case
635 2004-09-10 Zack Weinberg <zack@codesourcery.com>
637 * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
638 (extract_interface_info): Delete prototype.
639 * c-decl.c (extract_interface_info): Delete stub.
640 * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
641 it's not already been done ...
642 (init_c_lex): ... not here.
643 (fe_file_change): Don't call extract_interface_info.
645 2004-09-11 Joseph S. Myers <jsm@polyomino.org.uk>
647 * c-tree.h (struct c_declspecs): Remove typedef_decl. Add
648 typedef_p and typedef_signed_p.
649 * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
650 (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
651 Check typedef_p and typedef_signed_p, not typedef_decl.
652 (grokfield): Check typedef_p, not typedef_decl.
653 (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
655 (declspecs_add_type): Set typedef_p and typedef_signed_p, not
658 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
660 * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
662 2004-09-10 Geoffrey Keating <geoffk@apple.com>
664 * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
667 * dbxout.c (dbxout_block): Update for
668 current_function_func_begin_label a string.
669 * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
670 * except.c (dw2_output_call_site_table): Likewise.
671 * toplev.c (current_function_func_begin_label): Likewise.
672 * tree.h (current_function_func_begin_label): Likewise.
673 * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
675 * final.c (output_asm_insn): Use strtoul instead of atoi, save a
678 * config/darwin.c: Include target.h.
679 (struct machopic_indirection): Make ptr_name a string.
680 (machopic_indirection_hash): Update for ptr_name a string.
681 (machopic_indirection_eq): Likewise.
682 (machopic_indirection_name): Likewise.
683 (machopic_output_indirection): Likewise.
684 (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
685 string. Don't expect stub names to be in the identifier hash table.
686 Do call strip_name_encoding before looking up entry in ID hash table.
687 * config/t-darwin (darwin.o): Add target.h to dependencies.
689 * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
690 of fprintf for register names.
692 * output.h (unlikely_section_label): Delete declaration.
693 (unlikely_text_section_name): Likewise.
694 * varasm.c (unlikely_section_label_printed): Make static.
695 (unlikely_section_label): Likewise.
696 (unlikely_text_section_name): Likewise.
697 (assemble_start_function): Use reconcat.
699 * rtl.def (REG): Add comment to describe third field.
701 2004-09-10 Andrew Pinski <apinski@apple.com>
703 * config/darwin.c (machopic_mcount_stub_name): Call
704 machopic_indirection_name instead of making the string
707 2004-09-10 Diego Novillo <dnovillo@redhat.com>
711 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
713 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
714 memory tag is call clobbered, so are its aliases.
715 (group_aliases): When two memory tags being grouped, if one is
716 call clobbered, so are the other and its aliases.
717 (add_may_alias): Remove call-clobbering stuff.
718 (replace_may_alias): Likewise.
719 (merge_pointed_to_info): Merge pt_global_mem
721 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
723 * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
724 genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
725 passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
726 tree-scalar-evolution.c, tree-ssa-copyrename.c,
727 tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
729 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
731 * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
732 (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
733 pair. Remove match_dup from inputs. Remove masaccs handling.
734 (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
735 (masaccs, mdasaccs): Turn into define_insns.
737 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
739 * tree-tailcall.c (process_assignment): Only do accumulator transforms
740 for floating-point types if flag_unsafe_math_optimizations.
742 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
744 * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
745 config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
746 config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
747 config/h8300/h8300.md, config/i386/gmm_malloc.h,
748 config/ia64/ia64.md, config/ip2k/libgcc.S,
749 config/mips/mips-ps-3d.md, config/mips/mips.c,
750 config/rs6000/rs6000.c, config/s390/s390.c,
751 config/sh/symbian.c: Fix comment typos.
753 2004-09-10 Andreas Krebbel <krebbel1@de.ibm.com>
755 * config/s390/s390.c (s390_emit_prologue): Added missing
758 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
760 * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
761 typos. Follow spelling conventions.
763 2004-09-10 Joseph S. Myers <jsm@polyomino.org.uk>
765 * toplev.c (warn_deprecated_use): Correct logic for saying "type"
766 in diagnostic. Don't dereference NULL TYPE_NAME.
768 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
770 * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
771 tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
772 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
773 value-prof.c: Fix comment typos. Follow spelling conventions.
775 2004-09-10 Jan Hubicka <jh@suse.cz>
777 * tree-ssa-dce.c (remove_dead_stmt): Update profile.
778 * tree-split_edge.c (tree_split_edge): Likewise.
779 (thread_jumps): Likewise.
781 2004-09-10 Kazu Hirata <kazu@cs.umass.edu>
783 * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
786 2004-09-10 Paolo Bonzini <bonzini@gnu.org>
788 * cgraph.h (cgraph_dump_file): Do not declare.
789 * cgraphunit.c (cgraph_dump_file): Declare as static.
791 * toplev.c (cgraph_dump_file): Do not declare.
792 (compile_file): Call init_cgraph.
793 * tree-dump.c (dump_files): Add IPA dump file, remove
794 XML dump of call graph.
795 (get_dump_file_name): Support IPA dump file naming scheme.
796 * tree.h (enum tree_dump_index): Add IPA dump file, remove
797 XML dump of call graph.
798 * doc/invoke.texi (Debugging Options): Document the new options.
800 2004-09-10 Richard Sandiford <rsandifo@redhat.com>
802 * doc/extend.texi: Document the FR-V built-in functions.
804 2004-09-09 James E Wilson <wilson@specifixinc.com>
806 * doc/sourcebuild.texi: Delete libbanshee reference.
808 2004-09-10 Kelley Cook <kcook@gcc.gnu.org>
810 * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
812 2004-09-09 James E Wilson <wilson@specifixinc.com>
814 * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
815 before calling vector_types_convertible_p.
816 (digest_init): Check that inside_init has VECTOR_TYPE before calling
817 vector_types_convertible_p. Don't give another error if
818 convert_for_assignment returns error_mark_node.
820 2004-09-09 Roger Sayle <roger@eyesopen.com>
823 * fold-const.c (build_zero_vector): New function to construct a
824 vector (either floating point or integer) of zeros.
825 (fold_convert): Internally, enable conversions of integer zero
826 to arbitrary vector types, using the new build_zero_vector.
828 2004-09-09 Roger Sayle <roger@eyesopen.com>
830 * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
831 expand a left shift by an immediate constant as either an ashl or
832 a sequence of additions.
833 (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
834 instead of calling gen_ashlsi3 with a constant directly.
836 2004-09-09 Roger Sayle <roger@eyesopen.com>
838 * config/i386/i386.c (ix86_split_long_move): When optimizing for
839 size, and the low and high parts of a DImode constant are equal,
840 copy one register to another instead of loading the same immediate
843 2004-09-09 Richard Henderson <rth@redhat.com>
846 * function.c (assign_parm_setup_block): Only put PARALLELs into
847 a register if use_register_for_decl.
849 2004-09-09 Eric Christopher <echristo@redhat.com>
851 * ra-colorize.c (reset_lists): Move variable declaration inside
852 ENABLE_CHECKING to avoid unused variable warnings when
853 not --enable-checking.
854 (check_colors): Ditto.
856 2004-09-09 Mike Stump <mrs@apple.com>
858 * version.c (version_string): Bump to 4.0.0.
859 * doc/include/gcc-common.texi (version-GCC): Likewise.
861 2004-09-10 Jakub Jelinek <jakub@redhat.com>
863 * doc/extend.texi (nothrow attribute): The attribute is not
864 implemented in 3.2 and earlier.
866 2004-09-09 Steve Ellcey <sje@cup.hp.com>
868 * genrecog.c (compute_predicate_codes): Use op0_codes
871 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
873 * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
874 implementation changes.
876 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
878 * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
879 a PARALLEL instead of a SET due to added clobbers.
881 2004-09-09 Ulrich Weigand <uweigand@de.ibm.com>
883 * reload.c (find_reloads_address): Pass correct operand to
884 maybe_memory_address_p.
886 2004-09-09 Daniel Berlin <dberlin@dberlin.org>
888 * Makefile.in: Remove libbanshee, tree-alias-*.
889 Remove tree-alias-common.h dependencies.
890 * common.opt: Remove -ftree-points-to.
891 * configure.ac: Remove libbanshee.
892 * flags.h: Remove pta_type, flag_tree_points_to.
893 * gengtype.c (open_base_files): Remove tree-alias-type.h.
894 * opts.c (OPT_ftree_points_to): Remove.
895 * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
896 * tree-dfa.c: Remove tree-alias-common.h
897 * tree-into-ssa.c: Ditto.
898 * tree-outof-ssa.c: Ditto.
899 * tree-ssa-copyrename.c: Ditto.
900 * tree-ssa-live.c: Ditto.
901 * tree-optimize.c: Ditto.
903 Remove pass_build_pta, pass_del_pta.
904 * tree-pass.h: Ditto.
905 * tree-ssa-alias.c: Remove tree-alias-common.h.
906 (struct alias_stats_d): Remove pta_queries, pta_resolved.
907 (pass_may_alias): Remove PROP_pta requirement.
908 (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
909 (get_tmt_for): Ditto.
910 (dump_alias_stats): Ditto.
911 * doc/passes.texi: Remove blurb about points-to analysis.
912 * fortran/Make-lang.in: Remove tree-alias-*.o.
914 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
916 * genattrtab.c (write_insn_cases): New function, split out from
917 write_attr_case. Correctly handle define_peepholes when printing
918 the instruction name.
919 (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
921 2004-09-09 Hans-Peter Nilsson <hp@axis.com>
924 * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
925 * config/cris/cris.c (cris_return_address_on_stack): New function.
926 * config/cris/cris.md ("return"): For location of return address,
927 also check cris_return_address_on_stack.
929 2004-09-09 Diego Novillo <dnovillo@redhat.com>
931 * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
932 calling phi_ssa_name_p.
934 2004-09-09 Richard Henderson <rth@redhat.com>
937 * c-typeck.c (valid_compound_expr_initializer): Use only
938 initializer_constant_valid_p, and not TREE_CONSTANT.
939 (digest_init): Likewise.
940 (output_init_element): Likewise.
942 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
944 * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
945 live_out_1, prune_hardregs_for_mode, init_one_web_common,
946 reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
947 record_conflict, compare_and_free_webs, init_webs_defs_uses,
948 parts_to_webs_1, parts_to_webs, reset_conflicts,
949 check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
950 ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
951 * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
952 put_move, remove_move, combine, select_spill, colorize_one_web,
953 try_recolor_web, insert_coalesced_conflicts, check_colors,
954 break_precolored_alias, restore_conflicts_from_coalesce,
955 sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
956 * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
957 reloads_to_loads, rewrite_program2, emit_colors): Likewise.
958 * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
960 * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
961 real_arithmetic, real_compare, real_exponent, real_ldexp,
962 real_identical, real_to_integer, real_to_integer2, real_to_decimal,
963 real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
964 real_digit, real_nan, real_maxval, round_for_format, real_convert,
965 real_to_target, real_from_target, real_hash, encode_ieee_single,
966 encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
967 encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
968 encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
969 * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
970 extract_insn, peep2_next_insn, peep2_reg_dead_p,
971 peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
972 if_test_bypass_p): Likewise.
973 * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
974 stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
975 emit_swap_insn, swap_to_top, move_for_stack_reg,
976 subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
977 compensate_edge, convert_regs_1): Likewise.
978 * regclass.c (init_reg_sets, init_reg_sets_1,
979 memory_move_secondary_cost): Likewise.
980 * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
982 * reload.c (push_secondary_reload, find_valid_class, push_reload,
983 operands_match_p, decompose, immune_p, find_reloads,
984 find_reloads_toplev, find_reloads_address_1, subst_reloads,
985 copy_replacements, refers_to_regno_for_reload_p,
986 reg_overlap_mentioned_for_reload_p): Likewise.
987 * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
988 count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
989 verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
990 reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
991 choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
992 do_output_reload, fixup_abnormal_edges): Likewise.
993 * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
994 fill_slots_from_thread, relax_delay_slots): Likewise.
995 * resource.c (mark_referenced_resources, mark_set_resources):
997 * rtl.c (copy_rtx, rtx_equal_p): Likewise.
998 * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
999 dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
1000 subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
1001 find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
1002 hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
1003 * rtlhooks.c (gen_lowpart_general): Likewise.
1004 * sbitmap.c (sbitmap_difference): Likewise.
1005 * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
1006 sched_analyze, add_forward_dependence): Likewise.
1007 * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
1008 * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
1009 schedule_insns): Likewise.
1010 * sched-vis.c (print_pattern): Likewise.
1011 * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
1012 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
1013 simplify_const_relational_operation, simplify_ternary_operation,
1014 simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
1016 * sreal.c (copy, sreal_sub, sreal_div): Likewise.
1017 * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
1018 resolve_operand_name_1, expand_return, expand_decl,
1019 expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
1020 * stor-layout.c (put_pending_size, smallest_mode_for_size,
1021 int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
1022 set_sizetype, get_mode_bounds): Likewise.
1024 2004-09-09 Zack Weinberg <zack@codesourcery.com>
1026 * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
1027 * config/arm/pecoff.h, config/i386/beos-elf.h
1028 * config/i386/cygming.h, config/i386/i386-interix.h:
1029 Define MULTIPLE_SYMBOL_SPACES to 1, not nothing. Remove
1030 comment cloned from manual.
1031 * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
1033 2004-09-09 Frank Ch. Eigler <fche@redhat.com>
1035 * builtins.c (build_va_arg_indirect_ref): New function.
1036 (std_gimplify_va_arg_expr): Call it instead of mudflap check and
1037 build_fold_indirect_ref.
1038 * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
1039 * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
1040 * tree.h: Declare new function.
1042 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
1044 * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
1045 dumping for development builds.
1046 * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
1047 development builds only.
1048 * genattrtab.c (write_eligible_delay): Fix typo in previous
1050 * tree.c (iterative_hash_expr): Replace gcc_unreachable with
1053 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
1055 * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
1056 cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
1057 process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
1058 hoist_code, extract_mentioned_regs_helper, compute_store_table,
1059 insert_store): Use gcc_assert and gcc_unreachable.
1060 * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
1061 gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
1062 ggc_record_overhead): Likewise.
1063 * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
1064 init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
1065 ggc_pop_context, clear_marks, validate_free_objects,
1066 ggc_pch_read): Likewise.
1067 * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
1068 ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
1069 ggc_push_context, check_cookies, ggc_collect,
1070 ggc_print_statistics): Likewise.
1071 * gimple-low.c (lower_function_body, lower_stmt,
1072 lower_bind_expr): Likewise.
1073 * gimplify.c (gimple_tree_eq, push_gimplify_context,
1074 pop_gimplify_context, gimple_pop_condition, create_tmp_var,
1075 declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
1076 mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
1077 gimplify_case_label_expr, gimplify_exit_block_expr,
1078 canonicalize_component_ref, gimplify_compound_lval,
1079 gimplify_self_mod_expr, gimplify_call_expr,
1080 gimplify_init_ctor_eval, gimplify_init_constructor,
1081 gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
1082 gimplify_expr, check_pointer_types_r,
1083 force_gimple_operand): Likewise.
1084 * global.c (global_alloc, build_insn_chain): Likewise.
1085 * graph.c (clean_graph_dump_file,
1086 finish_graph_dump_file): Likewise.
1087 gcov-io.c (gcov_open): Use GCOV_CHECK.
1089 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
1091 * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
1093 2004-09-09 Jan Hubicka <jh@suse.cz>
1096 * tree-inline.c (expand_call_inline): Make overactive sanity check
1099 2004-09-09 Jan Hubicka <jh@suse.cz>
1101 * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
1104 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
1106 * Makefile.in (gengtype): Use $(BUILD_ERRORS).
1107 (gengtype.o): Depend on errors.h.
1108 * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
1109 (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
1110 attr_alt_subset_p, attr_alt_subset_of_compl_p,
1111 attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
1112 write_test_expr, write_attr_value, write_eligible_delay,
1113 make_internal_attr, make_numeric_value): Likewise.
1114 * genautomata.c (regexp_name, get_str_vect,
1115 gen_presence_absence_set, automaton_decl_hash,
1116 automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
1117 decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
1118 process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
1119 test_unit_reserv, it_is_empty_reserv_sets,
1120 reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
1121 reserv_sets_and, output_cycle_reservs, get_free_state,
1122 intersected_state_reservs_p, states_union, remove_arc,
1123 copy_insn_regexp, transform_1, transform_2, transform_3,
1124 regexp_transform_func, store_alt_unit_usage,
1125 check_regexp_units_distribution, process_seq_for_forming_states,
1126 process_alts_for_forming_states, make_automaton,
1127 form_arcs_marked_by_insn, create_composed_state,
1128 set_out_arc_insns_equiv_num, partition_equiv_class,
1129 process_insn_equiv_class, set_insn_equiv_classes,
1130 units_to_automata_heuristic_distr, form_regexp,
1131 longest_path_length, output_dfa_max_issue_rate, add_vect,
1132 out_state_arcs_num, add_vect_el, output_trans_table,
1133 output_state_alts_table, output_dead_lock_vect,
1134 output_max_insn_queue_index_def,
1135 output_min_insn_conflict_delay_func,
1136 output_internal_insn_latency_func, output_print_reservation_func,
1137 output_cpu_unit_reservation_p, output_state_arcs,
1138 make_insn_alts_attr, make_internal_dfa_insn_code_attr,
1139 make_default_insn_latency_attr,
1140 form_important_insn_automata_lists): Likewise.
1141 * genemit.c (gen_exp, output_add_clobbers,
1142 output_added_clobbers_hard_reg_p): Likewise.
1143 * genextract.c (print_path, main): Likewise.
1144 * genflags.c (gen_macro): Likewise.
1145 * gengenrtl.c: Include errors.h
1146 (type_from_format, accessor_from_format): Likewise.
1147 * gengtype.c (get_file_basename, output_mangled_typename,
1148 walk_type, write_types_process_field,
1149 write_types_local_process_field): Likewise.
1150 * genmodes.c (complete_mode): Likewise.
1151 * genopinit.c (gen_insn): Likewise.
1152 * genoutput.c (output_insn_data, check_constraint_len,
1153 constraint_len): Likewise.
1154 * genpreds.c (add_mode_tests):Likewise.
1155 * gen-protos.c (add_hash): Likewise.
1156 * genrecog.c (find_operand, find_matching_operand,
1157 validate_pattern, add_to_sequence, maybe_both_true,
1158 nodes_identical_1, merge_trees, write_switch, write_cond,
1159 write_action, is_unconditional, make_insn_sequence,
1160 debug_decision_2): Likewise.
1161 * gensupport.c (is_predicable, collect_insn_data,
1162 alter_predicate_for_insn, maybe_eval_c_test): Likewise.
1164 2004-09-09 Jan Hubicka <jh@suse.cz>
1166 * basic-block.h (guess_outgoing_edge_probabilities): Declare.
1167 * cfgbuild.c (compute_outgoing_frequencies): When probability is
1169 (find_many_sub_basic_blocks): Do update profile only when it is
1171 * predict.c (set_even_probabilities): Break out from ...
1172 (combine_predictions_for_insn): ... here; deal with
1173 !can_predict_insn_p insns.
1174 (combine_predictions_for_bb): Use set_even_probabilities.
1175 (bb_estimate_probability_locally): Break out from ....
1176 (estimate_probability): ... here.
1177 (guess_outgoing_edge_probabilities): New entry point.
1179 2004-09-09 Nathan Sidwell <nathan@codesourcery.com>
1181 * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
1182 handle_braces, process_brace_body, main, used_arg,
1183 set_multilib_dir, print_multilib_info): Use fatal, not abort.
1185 * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
1187 * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
1188 * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
1189 Morgan's theorem in last checkin.
1191 2004-09-09 Giovanni Bajo <giovannibajo@gcc.gnu.org>
1192 Nathan Sidwell <nathan@codesourcery.com>
1194 * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
1195 Use gcc_assert, gcc_unreachable & internal_error instead of abort.
1196 * timevar.c (timevar_push, timevar_pop, timevar_start,
1197 timevar_stop): Likewise.
1198 * toplev.c (default_pch_valid_p): Likewise.
1199 * tracer.c (tail_duplicate): Likewise.
1200 * tree-alias-common.c (get_alias_var_decl,
1201 get_values_from_constructor, create_alias_var, delete_alias_vars,
1202 empty_points_to_set, same_points_to_set, ptr_may_alias_var):
1204 * tree.c (tree_size, make_node_stat, copy_node_stat,
1205 build_int_cst_wide, integer_all_onesp, list_length, chainon,
1206 tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
1207 substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
1208 build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
1209 lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
1210 build_method_type_directly, decl_type_context, get_callee_fndecl,
1211 get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
1212 tree_fold_gcd): Likewise.
1213 * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
1214 make_cond_expr_edges, group_case_labels, tree_merge_blocks,
1215 cleanup_control_expr_graph, find_taken_edge,
1216 find_taken_edge_switch_expr, phi_alternatives_equal,
1217 is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
1218 stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
1219 tree_split_edge, tree_verify_flow_info, thread_jumps,
1220 tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
1221 * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
1222 chrec_fold_multiply_poly_poly): Likewise.
1223 * tree-complex.c (extract_component, expand_complex_division,
1224 expand_complex_comparison, expand_complex_operations_1,
1225 build_replicated_const, expand_vector_operations_1): Likewise.
1226 * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
1227 build_classic_dir_vector): Likewise.
1228 * tree-dfa.c (compute_immediate_uses_for_phi,
1229 compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
1230 create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
1231 * tree-dump.c (dequeue_and_dump): Likewise.
1232 * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
1233 record_in_finally_tree, replace_goto_queue_1,
1234 maybe_record_in_goto_queue, verify_norecord_switch_expr,
1235 do_return_redirection): Likewise.
1236 * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
1237 add_to_dst_predicate_list, find_phi_replacement_condition,
1238 replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
1240 * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
1241 initialize_inlined_parameters, declare_return_variable,
1242 estimate_num_insns_1, expand_call_inline, expand_calls_inline,
1243 optimize_inline_calls, copy_tree_r): Likewise.
1244 * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
1245 ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
1246 * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
1247 tsi_split_statement_list_after, tsi_split_statement_list_before):
1249 * tree-mudflap.c (mf_varname_tree): Likewise.
1250 * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
1251 lookup_tramp_for_decl, convert_all_function_calls): Likewise.
1252 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1253 * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
1254 coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
1255 free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
1257 * tree-phinodes.c (resize_phi_node, add_phi_arg,
1258 remove_all_phi_nodes_for): Likewise.
1259 * tree-pretty-print.c (op_prio, print_call_name): Likewise.
1260 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
1261 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
1262 * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
1263 sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
1264 generate_one_element_ref, generate_element_copy,
1265 generate_element_zero, scalarize_copy, scalarize_init,
1266 scalarize_ldst): Likewise.
1267 * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
1268 add_may_alias, add_pointed_to_expr, add_pointed_to_var,
1269 collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
1270 * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
1271 * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
1272 set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
1273 widen_bitfield, ccp_fold_builtin): Likewise.
1274 * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
1275 replace_exp_1, propagate_tree_value): Likewise.
1276 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
1277 * tree-ssa-dce.c (set_control_dependence_map_bit,
1278 find_control_dependence, find_pdom, mark_operand_necessary,
1279 mark_stmt_if_obviously_necessary,
1280 mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
1281 * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
1282 simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
1283 eliminate_redundant_computations, avail_expr_eq): Likewise.
1284 * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
1285 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
1286 duplicate_blocks): Likewise.
1287 * tree-ssa-loop-im.c (for_each_index, set_level,
1288 is_call_clobbered_ref): Likewise.
1289 * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
1290 stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
1291 find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
1292 peel_address, ptr_difference_cost, may_replace_final_value,
1293 determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
1294 rewrite_use, rewrite_uses): Likewise.
1295 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
1296 check_loop_closed_ssa_use): Likewise.
1297 * tree-ssanames.c (make_ssa_name): Likewise.
1298 * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
1299 finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
1300 get_stmt_operands, get_expr_operands, get_asm_expr_operands,
1301 get_indirect_ref_operands, add_stmt_operand): Likewise.
1302 * tree-ssa-pre.c (value_exists_in_set_bitmap,
1303 value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
1304 phi_translate, valid_in_set, compute_antic,
1305 find_or_generate_expression, create_expression_by_pieces, insert_aux,
1306 create_value_expr_from, eliminate): Likewise.
1307 * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
1308 * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
1310 * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
1311 eliminate_tail_call): Likewise.
1312 * tree-vectorizer.c (vect_create_index_for_array_ref,
1313 vect_align_data_ref, vect_create_data_ref,
1314 vect_create_destination_var, vect_get_vec_def_for_operand,
1315 vect_finish_stmt_generation, vect_transform_stmt,
1316 vect_transform_loop_bound, vect_transform_loop,
1317 vect_analyze_operations): Likewise.
1318 * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
1320 * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
1321 get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
1322 bsi_after_labels, bsi_last): Likewise.
1323 * tree-ssa-live.c (var_union, change_partition_var,
1324 create_ssa_var_map, calculate_live_on_entry, root_var_init,
1325 type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
1327 * tree-ssa-live.h (partition_is_global, live_entry_blocks,
1328 tpa_find_tree): Likewise.
1329 (register_ssa_partition_check): Declare.
1330 (register_ssa_partition): use it.
1331 * tree-ssa-live.c: Include errors.h.
1332 (register_ssa_partition_check): New.
1333 * tree-ssa-operands.c: Include errors.h.
1334 * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
1336 2004-09-09 Richard Sandiford <rsandifo@redhat.com>
1337 Catherine Moore <clm@redhat.com>
1339 * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
1340 (FRV_CPU_FR405): New processor enums.
1341 (frv_issue_rate, frv_acc_group): Declare.
1342 * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
1343 (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
1344 (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
1345 (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
1346 (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
1347 handled by CPP_SPEC.
1348 (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
1349 (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
1350 (ACC_MASK): New macro.
1351 (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
1352 (TARGET_MEDIA_FR450): New macro.
1353 (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
1354 (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
1355 (LABEL_ALIGN_AFTER_BARRIER): Define.
1356 (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
1357 (IACC_FIRST, IACC_LAST): New pair of SPRs.
1358 (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
1359 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
1360 (REGISTER_NAMES): Add entries for new registers.
1361 (REG_CLASS_CONTENTS): Update for new register ranges.
1362 (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
1363 (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
1364 (PACKING_FLAG_USED_P): Delete.
1365 (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
1366 (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
1367 (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
1368 (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
1369 (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
1370 (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
1371 (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
1372 (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
1373 (CPU_UNITS_QUERY): Define to 1.
1374 * config/frv/frv.c: Include gt-frv.h
1375 (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
1376 (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
1377 (frv_insn_group): New enumeration.
1378 (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
1379 (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
1380 (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
1381 (REGSTATE_CONDJUMP): Delete. Shuffle other numbers to cover the
1382 gap left by REGSTATE_LIVE.
1383 (regstate_t): New typedef.
1384 (TARGET_MACHINE_DEPENDENT_REORG): Define.
1385 (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
1386 (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
1387 Initialize frv_unit_codes[] and frv_type_to_unit[].
1388 (frv_conditional_register_usage): Remove redundant fixing of
1389 accumulator registers.
1390 (frv_insn_packing_flag): Update specification.
1391 (frv_function_prologue): Don't set frv_insn_packing_flag here.
1392 Zero out frv_nops[].
1393 (frv_expand_epilogue): Remove comments about the no-longer-present
1395 (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
1396 PACKING_FLAG_USED_P() when deciding whether to pack instructions.
1397 (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
1398 of the new meaning of frv_insn_packing_flag. Emit an mnop.p if
1399 packing is disabled and if INSN can only issue to M1.
1400 (call_operand): Check TARGET_LONG_CALLS.
1401 (acc_operand, even_acc_operand, quad_acc_operand)
1402 (accg_operand): Simplify. Don't accept pseudo registers.
1403 (output_move_single): Handle SPR<-zero moves.
1404 (frv_issue_rate): Make non-static. Handle FRV_CPU_{FR550,FR450,FR405}.
1405 (frv_registers_update, frv_registers_used_p): Delete.
1406 (frv_registers_set_p): Delete.
1407 (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
1408 (frv_issues_to_branch_unit_p): New function.
1409 (frv_packet): New structure.
1410 (frv_cond_flags, frv_regstate_conflict_p): New functions.
1411 (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
1412 (frv_registers_update_1, frv_registers_update): New functions.
1413 (frv_start_packet, frv_start_packet_block, frv_finish_packet)
1414 (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
1415 (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
1416 (frv_sort_insn_group, frv_reorder_packet): New functions.
1417 (frv_pack_insns): Use frv_reorder_packet.
1418 (frv_packet_address): New variable.
1419 (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
1420 (frv_register_nop, frv_reorg): New functions.
1421 (bdesc_1arg): Add __SCUTSS.
1422 (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
1423 __SUBSS, __SLASS and __SCAN.
1424 (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
1425 (bdesc_int_void2arg, bdesc_prefetches): New arrays.
1426 (frv_init_builtins): Register the above builtins.
1427 (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
1428 registers. Turn the referenced accumulators into global registers.
1429 (frv_read_iacc_argument): New function.
1430 (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
1431 (frv_split_iacc_move): New function.
1432 (frv_expand_builtin): Handle the new builtins.
1433 * config/frv/frv.md: Replace old schedulers with new order-independent
1434 ones. Add schedulers for the FR405, FR450 and FR550. Describe new
1436 (cpu): Add fr550, fr450 and fr405.
1437 (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
1438 mqshift. Replace fmas with fsmadd and fmad with fdmadd. Delete m7.
1439 (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
1440 (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
1441 (fnop, mnop): New patterns.
1442 (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
1444 (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
1445 (mclracca8): Use ACC_MASK to determine the upper set of accumulator
1447 (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
1448 (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
1449 (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
1450 (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
1451 (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
1452 (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
1453 (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
1454 (frv_prefetch0, frv_prefetch): New patterns.
1455 * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
1456 -mcpu=simple. Add -mcpu=fr550.
1457 (MULTILIB_DIRNAMES): Update accordingly.
1458 (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
1460 * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
1461 -mlong-calls and -malign-labels options for FR-V.
1463 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
1466 * c-tree.h (struct c_declspecs): New.
1467 (struct c_declarator, struct c_type_name, struct c_parm): Update
1469 (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
1470 start_function, start_decl, build_c_parm,
1471 make_pointer_declarator): Update prototypes.
1472 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
1473 declspecs_add_scspec, declspecs_add_attrs): New.
1474 (split_specs_attrs): Remove.
1475 * c-parse.in (%union): Add dsptype.
1476 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
1477 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
1478 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
1479 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
1480 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
1481 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
1482 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
1483 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
1484 declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
1485 declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
1486 maybe_type_quals_attrs): Change to dsptype.
1487 (struct c_declspec_stack): New.
1488 (current_declspecs, declspec_stack): Change type.
1489 (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
1491 (extdefs): Likewise.
1492 (setspecs): Likewise.
1493 (fndef): Use current_declspecs for empty declspecs list.
1494 (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
1495 declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
1496 declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
1497 declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
1498 declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
1499 declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
1500 declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
1501 declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
1502 structures and helper functions. Update comments.
1503 (typespec_nonattr): Correct comment.
1504 (maybe_type_quals_attrs, typename): Update to new structures.
1505 * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
1506 shadow_tag, shadow_tag_warned, start_function, start_decl,
1507 build_c_parm, make_pointer_declarator,
1508 set_array_declarator_inner, groktypename): Update to new
1510 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
1511 declspecs_add_scspec, declspecs_add_attrs): New.
1512 (split_specs_attrs): Remove.
1513 (shadow_tag_warned): Make warning for useless type names a
1514 pedwarn. Give hard error for long, short, signed, unsigned or
1515 _Complex used with struct, union or enum in empty declaration.
1516 Make found_tag a bool.
1517 (grokdeclarator): Remove checks now done at parse time.
1519 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
1521 * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
1522 c_declarator, struct c_type_name, struct c_parm): New.
1523 (build_array_declarator, set_array_declarator_inner,
1524 get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
1525 start_function, start_decl, build_c_parm, build_attrs_declarator,
1526 build_function_declarator, make_pointer_declarator, c_cast_expr,
1527 store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
1528 (build_id_declarator): New.
1529 * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
1531 * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
1532 ARG_INFO_OTHERS): Remove.
1533 (build_id_declarator): New.
1534 (build_array_declarator, set_array_declarator_inner, groktypename,
1535 start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
1536 grokfield, start_function, store_parm_decls_newstyle,
1537 store_parm_decls_oldstyle, store_parm_decls,
1538 build_c_parm, build_attrs_declarator, build_function_declarator,
1539 make_pointer_declarator, grokdeclarator): Update to new
1541 * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
1543 (declarator, notype_declarator, after_type_declarator,
1544 parm_declarator, parm_declarator_starttypename,
1545 parm_declarator_nostarttypename, array_declarator, typename,
1546 absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
1547 absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
1548 parmlist_1, parmlist_2, parmlist_or_identifiers,
1549 parmlist_or_identifiers_1): Use these types.
1550 (primary, after_type_declarator, parm_declarator_starttypename,
1551 notype_declarator, component_decl, component_declarator,
1552 component_notype_declarator, typename, absdcl,
1553 absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
1554 parmlist_2, parmlist_or_identifiers_1): Update to new structures.
1556 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk>
1558 * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
1559 in_typeof, record_maybe_used_decl, pop_maybe_used,
1560 c_expr_sizeof_expr, c_expr_sizeof_type): New.
1561 * c-decl.c (parser_obstack): New.
1562 (c_init_decl_processing): Initialize parser_obstack.
1563 (c_write_global_declarations_1): Check for used but undefined
1565 * c-parse.in (%union): Add otype.
1566 (save_obstack_position): New.
1568 (unary_expr): Update in_sizeof and in_alignof. Use
1569 c_expr_sizeof_expr and c_expr_sizeof_type.
1570 (sizeof): Update in_sizeof.
1571 (alignof): Update in_alignof.
1572 (typeof): Update in_typeof.
1573 (typespec_nonreserved_nonattr): Call pop_maybe_used.
1574 * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
1575 maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
1576 pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
1577 (build_external_ref): Set C_DECL_USED or call
1578 record_maybe_used_decl if appropriate.
1579 * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
1581 2004-09-08 Eric Christopher <echristo@redhat.com>
1583 * builtins.c: Fix prototype for fold_builtin_atan.
1585 2004-09-08 Eric Christopher <echristo@redhat.com>
1587 * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
1588 fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
1589 fold_builtin_atan): New functions. Migrate function bodies...
1590 (fold_builtin_1): ... from here.
1592 2004-09-09 Alan Modra <amodra@bigpond.net.au>
1594 * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
1597 2004-09-08 David Edelsohn <edelsohn@gnu.org>
1599 * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
1600 * config/rs6000/power5.md (power5-lmul): Same.
1602 2004-09-08 Richard Henderson <rth@redhat.com>
1605 * function.c (expand_function_end): Have fall-off-the-end
1606 return path jump around return register setup.
1608 2004-09-08 Eric Botcazou <ebotcazou@libertysurf.fr>
1610 * config/sparc/sparc.c (sparc_indent_opcode): New variable.
1611 (output_return): Do not test for the presence of the 'unimp' insn.
1612 Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
1613 as predicates instead of custom ones. Return raw strings when
1615 (output_sibcall): Likewise. Concatenate strings.
1616 (output_ubranch): Remove kludge for TurboSPARC.
1617 (output_cbranch): Remove 'noop' parameter. Do not output 'nop'.
1618 (output_v9branch): Likewise.
1619 (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
1620 <#>: Set sparc_indent_opcode if the delay slot is filled.
1622 <)>: New operand to emit the displacement from the saved PC on return.
1624 * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
1625 (ASM_OUTPUT_OPCODE): New macro.
1626 (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
1627 * config/sparc/sparc.md (normal_branch, inverted_branch,
1628 normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
1629 inverted_fpe_branch): Adjust call to output_cbranch.
1630 (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
1631 call to output_v9branch.
1632 * config/sparc/sparc-protos.h (output_cbranch): Adjust.
1633 (output_v9branch): Likewise.
1635 2004-09-08 Devang Patel <dpatel@apple.com>
1637 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
1638 -segs_read_only_addr and -segs_read_write_addr.
1639 (WORD_SWITCH_TAKES_ARG): Same.
1641 * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
1642 -segs_read_write_addr.
1644 2004-09-08 Richard Henderson <rth@redhat.com>
1646 * function.c (reference_callee_copied): New.
1647 (assign_parm_setup_reg): Use it.
1648 * calls.c (initialize_argument_information): Likewise.
1649 (emit_library_call_value_1): Likewise.
1650 * function.h (reference_callee_copied): Declare.
1652 * target.h (struct gcc_target): Add callee_copies.
1653 * target-def.h (TARGET_CALLEE_COPIES): New.
1654 (TARGET_PASS_BY_REFERENCE): Update default.
1655 * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
1656 * targhooks.c (hook_callee_copies_named): New.
1657 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
1658 hook_pass_by_reference_false.
1659 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
1660 * targhooks.h: Update decls.
1661 * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
1662 * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
1663 * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
1664 * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
1665 * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
1666 * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
1667 * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
1668 * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
1669 * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
1670 * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
1671 (mips_callee_copies): New.
1672 * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
1673 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
1674 * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
1675 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
1676 * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
1677 * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
1678 * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
1679 * config/sh/sh.c (sh_callee_copies): New.
1680 (TARGET_CALLEE_COPIES): New.
1681 * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
1682 * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
1683 * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
1684 * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
1685 for FUNCTION_ARG_CALLEE_COPIES.
1686 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
1688 2004-09-08 Devang Patel <dpatel@apple.com>
1690 * tree-if-conv.c (find_phi_replacement_condition): Return true
1692 (replace_phi_with_cond_modify_expr): Select conditional expr args
1693 based on true edge basic block.
1695 2004-09-08 Jan Hubicka <jh@suse.cz>
1697 * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
1698 variables being alias set.
1700 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
1702 * final.c (shorten_branches, final, get_insn_template,
1703 output_alternate_entry_point, final_scan_insn, alter_subreg,
1704 alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
1705 leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
1706 * fix-header.c (lookup_std_proto): Likewise.
1707 * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
1708 verify_local_live_at_start, update_life_info, mark_reg,
1709 calculate_global_regs_live, allocate_reg_life_data,
1710 init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
1711 ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
1712 attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
1713 * fold-const.c (force_fit_type, div_and_round_double,
1714 may_negate_without_overflow_p, int_const_binop, const_binop,
1715 size_binop, size_diffop, fold_convert_const, fold_convert,
1716 invert_tree_comparison, swap_tree_comparison,
1717 comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
1718 range_binop, make_range, fold_cond_expr_with_comparison,
1719 fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
1720 fold_abs_const, fold_not_const, fold_relational_const, round_up,
1721 round_down): Likewise.
1722 * function.c (find_function_data, assign_stack_temp_for_type,
1723 instantiate_virtual_regs_lossage, aggregate_value_p,
1724 assign_parm_find_entry_rtl, assign_parm_setup_block,
1725 expand_function_start, expand_function_end, keep_stack_depressed,
1726 handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
1728 2004-09-08 Daniel Berlin <dberlin@dberlin.org>
1730 * Makefile.in (tree-loop-linear.o): Added.
1731 (OBJS-common): Add tree-loop-linear.o
1732 * common.opt: New flag, ftree-loop-linear.
1733 * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
1734 * tree-flow.h: Add prototype for linear_transform_loops.
1735 * tree-optimize.c: Add linear transform after vectorization.
1736 * tree-pass.h: Add struct pass_linear_transform.
1737 * tree-ssa-loop.c: Add pass_linear_transform.
1738 * tree-loop-linear.c: New file.
1739 * lambda-code.c: gcc_assertify.
1740 (gcc_loop_to_lambda_loop): Handle all exit tests.
1741 Handle case where we have (invariant >= induction var).
1742 (find_induction_var_from_exit_cond): Ditto.
1744 2004-09-08 Jie Zhang <zhangjie@magima.com.cn>
1746 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
1747 memory tag is call clobbered, so are its aliases.
1748 (group_aliases): When two memory tags being grouped, if one is
1749 call clobbered, so are the other and its aliases.
1750 (add_may_alias): Remove call-clobbering stuff.
1751 (replace_may_alias): Likewise.
1752 (merge_pointed_to_info): Merge pt_global_mem
1754 2004-09-08 Jan Hubicka <jh@suse.cz>
1756 * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
1757 * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
1758 (cgraph_expand_function): Remove stale cgraph edges of currently
1759 compiled function; fix non-unit-at-a-time code copying function
1760 node for later reuse.
1762 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
1764 * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
1765 (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
1766 (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
1767 (vec_gc_free, vec_heap_free): New.
1768 * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
1769 (DEF_VEC_P): Add allocator argument. Adjust.
1770 (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
1771 (DEF_VEC_O): Add allocator argument. Adjust.
1774 * tree.h (tree): Define a GC'd vector.
1775 * lamba-code.c (lambda_loop): Likewise.
1776 * value-prof.h (histogram_value): Likewise.
1778 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
1780 * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
1781 (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
1782 gen_lowpart_common, gen_highpart, gen_highpart_mode,
1783 subreg_highpart_offset, operand_subword, operand_subword_force,
1784 mem_expr_equal_p, set_mem_attributes_minus_bitpos,
1785 set_mem_alias_set, change_address_1, verify_rtx_sharing,
1786 copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
1787 try_split, add_insn_after, add_insn_before, remove_insn,
1788 remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
1789 emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
1790 emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
1791 set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
1792 gen_const_vector_0, emit_copy_of_insn_after): Likewise.
1793 * et-forest.c (set_prev, set_next, et_check_occ_sanity,
1794 record_path_before_1, check_path_after_1, check_path_after): Likewise.
1795 * except.c (gen_eh_region, resolve_one_fixup_region,
1796 remove_unreachable_regions, convert_from_eh_region_ranges_1,
1797 add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
1798 connect_post_landing_pads, sjlj_emit_function_exit,
1799 remove_exception_handler_label, remove_eh_handler,
1800 reachable_next_level, collect_one_action_chain,
1801 output_function_exception_table): Likewise.
1802 * explow.c (trunc_int_for_mode, copy_to_mode_reg,
1803 optimize_save_area_alloca, allocate_dynamic_stack_space,
1804 probe_stack_range, hard_function_value): Likewise.
1805 * expmed.c (mode_for_extraction, store_bit_field,
1806 store_fixed_bit_field, extract_bit_field, expand_shift,
1807 expand_mult_const, expand_mult, choose_multiplier,
1808 expand_mult_highpart, expand_divmod, emit_store_flag,
1809 do_cmp_and_jump): Likewise.
1810 * expr.c (convert_move, convert_modes, move_by_pieces,
1811 move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
1812 move_block_from_reg, gen_group_rtx, emit_group_load,
1813 emit_group_move, emit_group_store, use_reg, use_regs,
1814 can_store_by_pieces, store_by_pieces, store_by_pieces_1,
1815 emit_move_insn, emit_move_insn_1, emit_push_insn,
1816 expand_assignment, store_expr, count_type_elements,
1817 store_constructor, store_field, safe_from_p, expand_var,
1818 expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
1820 2004-09-08 Nathan Sidwell <nathan@codesourcery.com>
1822 * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
1823 gcc_assert and gcc_unreachable.
1824 * ddg.c (create_ddg_dependence, add_deps_for_def,
1825 add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
1826 * df.c (df_ref_unlink, df_ref_record, df_uses_record,
1827 df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
1828 df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
1829 df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
1830 df_bb_reg_live_end_p, df_bb_regs_lives_compare,
1831 df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
1832 dataflow_set_copy, hybrid_search, diagnostic.c,
1833 diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
1834 * dojump.c (do_jump): Likewise.
1835 * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
1836 compute_dom_fast_query, calculate_dominance_info,
1837 free_dominance_info, get_immediate_dominator,
1838 set_immediate_dominator, get_dominated_by,
1839 redirect_immediate_dominators, nearest_common_dominator,
1840 dominated_by_p, verify_dominators, recount_dominator,
1841 iterate_fix_dominators, add_to_dominance_info,
1842 delete_from_dominance_info): Likewise.
1843 * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
1844 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
1845 dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
1846 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
1847 initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
1848 flush_queued_reg_saves, dwarf2out_frame_debug_expr,
1849 dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
1850 output_call_frame_info, output_loc_operands, build_cfa_loc,
1851 decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
1852 AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
1853 AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
1854 splice_child_die, attr_checksum, same_dw_val_p,
1855 break_out_includes, build_abbrev_table, size_of_die, mark_dies,
1856 unmark_dies, value_format, output_loc_list, output_die,
1857 output_pubnames, output_aranges, base_type_die, is_base_type,
1858 modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
1859 mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
1860 field_byte_offset, add_data_member_location_attribute,
1861 add_const_value_attribute, rtl_for_decl_location,
1862 add_location_or_const_value_attribute, add_byte_size_attribute,
1863 add_bit_offset_attribute, add_bit_size_attribute,
1864 add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
1865 decl_start_label, gen_formal_parameter_die,
1866 gen_type_die_for_member, gen_subprogram_die, gen_label_die,
1867 gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
1868 force_decl_die, force_type_die, gen_decl_die,
1869 dwarf2out_imported_module_or_decl, prune_unused_types_prune,
1870 dwarf2out_finish): Likewise.
1872 2004-09-08 Andreas Tobler <toa@pop.agri.ch>
1874 * Makefile.in (builtins.o): Depend on tree-mudflap.h.
1875 * builtins.c: Include tree-mudflap.h.
1877 2004-09-08 Uros Bizjak <uros@kss-loka.si>
1879 * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
1880 force operand 0.0 into register in XFmode. Also do not force
1881 operand 0.0 into register if !TARGET_CMOVE.
1882 * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
1883 (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
1884 implement ftst x87 instruction.
1885 (*fp_jcc_7): New insn pattern. Change corresponding split
1886 pattern to handle "general_operand" instead of
1887 "nonimmediate_operand".
1889 2004-09-08 Ben Elliston <bje@au.ibm.com>
1891 * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
1893 2004-09-07 Frank Ch. Eigler <fche@redhat.com>
1895 * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
1896 generated from standard va_arg expansion.
1897 * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
1899 (mf_varname_tree, mf_file_function_line_tree): Add some support
1900 for column numbers if compiled with USE_MAPPED_LOCATION.
1902 2004-09-07 Ziemowit Laski <zlaski@apple.com>
1904 * c-decl.c (groktypename_in_parm_context): Remove function.
1905 * c-tree.h (groktypename_in_parm_context): Remove prototype.
1907 2004-09-07 Ziemowit Laski <zlaski@apple.com>
1909 * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
1910 * c-parse.in: Include c-common.h instead of objc-act.h.
1911 (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
1912 myparms, myparm): Remove %type declarations.
1913 (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
1914 objc_typename, objc_try_catch_stmt, optellipsis): Add %type
1916 (objc_inherit_code, objc_public_flag): Remove.
1917 (typespec_nonreserved_nonattr): Call
1918 objc_get_protocol_qualified_type() instead of get_static_reference()
1919 and get_protocol_reference().
1920 (stmt_nocomp): Call grokparm() on @catch parameter.
1921 (objcdef): Move semantic action to objc_finish_implementation().
1922 (classdef): Move semantic action to objc_start_class_interface(),
1923 objc_continue_interface(), objc_finish_interface(),
1924 objc_start_class_implementation(), objc_continue_implementation(),
1925 objc_start_category_interface() and
1926 objc_start_category_implementation().
1927 (protocoldef): Move semantic actions to objc_start_protocol() and
1928 objc_finish_interface().
1929 (ivar_decl_list): Remove nonterminal.
1930 (visibility_spec): Move semantic actions to objc_set_visibility().
1931 (ivar_decls): Remove assignment to $$.
1932 (ivar_decl): Rephrase in terms of component_decl; call
1933 objc_add_instance_variable().
1934 (ivars, ivar_declarator): Remove nonterminals.
1935 (opt_semi): New nonterminal.
1936 (methodtype): Remove semantic actions.
1937 (methoddef): Move semantic actions to objc_set_method_type(),
1938 objc_start_method_definition() and objc_finish_method_definition().
1939 (methodproto): Move semantic actions to objc_set_method_type() and
1940 objc_add_method_declaration().
1941 (methoddecl): Use objc_typename instead of typename; move semantic
1942 actions to objc_build_method_signature().
1943 (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
1944 (optparmlist): Express in terms of optparms and optellipsis.
1945 (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
1947 (keyworddecl): Use objc_typename instead of typename.
1948 (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
1949 and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
1951 2004-09-08 Alan Modra <amodra@bigpond.net.au>
1953 * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
1954 (MD_FALLBACK_FRAME_STATE_FOR): Update.
1955 * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
1956 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
1957 (MD_FROB_UPDATE_CONTEXT): Remove default.
1958 (uw_update_context_1): Instead #ifdef invocation.
1959 * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
1960 (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
1961 * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
1962 (MD_UNWIND_SUPPORT): Undefine this instead.
1963 * config/i386/gnu.h: Likewise.
1964 * config/alpha/linux-unwind.h: New file, macro converted to
1965 function, extracted from..
1966 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
1967 (MD_UNWIND_SUPPORT): Define.
1968 * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
1969 * config/i386/linux-unwind.h, config/i386/linux.h,
1970 config/i386/linux64.h: Likewise.
1971 * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
1972 MD_HANDLE_UNWABI too.
1973 * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
1974 * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
1975 * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
1976 * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
1977 * config/sparc/linux-unwind.h, config/sparc/linux.h,
1978 config/sparc/linux64.h: Likewise.
1979 * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
1980 SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
1981 * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
1982 config/rs6000/linux64.h: Likewise. Split out get_sigcontext
1983 function. Use ARG_POINTER_REGNUM for 32-bit temp reg too.
1985 2004-09-07 Jan Hubicka <jh@suse.cz>
1987 * cse.c (fold_rtx): Avoid building of
1988 (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
1990 * tree-ssa-pre.c (grand_bitmap_obstack): New.
1991 (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
1992 (init_pre): Initialize obstack.
1993 (fini_pre): Free obstack.
1995 2004-09-07 David Daney <ddaney@avtrex.com>
1997 * config.gcc: Added support for --with-divide=[breaks|traps] for
1999 * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
2000 (TARGET_DIVIDE_TRAPS): New macro.
2001 (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
2002 (OPTION_DEFAULT_SPECS): Added --with-divide= support.
2003 * config/mips/mips.c (mips_idiv_insns): Generate proper count on
2004 GENERATE_DIVIDE_TRAPS.
2005 (mips_output_division): Emit conditional trap if
2006 GENERATE_DIVIDE_TRAPS is set.
2007 * doc/install.texi: Document --with-divide.
2008 * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
2010 2004-09-07 Caroline Tice <ctice@apple.com>
2012 * cfgrtl.c (rtl_verify_flow_info_1): Add new edge flag,
2013 EDGE_CROSSING, to flags test case.
2015 2004-09-07 Jan Hubicka <jh@suse.cz>
2017 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
2020 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
2022 * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
2023 cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
2024 make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
2026 * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
2027 remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
2028 alloc_aux_for_edges, free_aux_for_edges): Likewise.
2029 * cfgcleanup.c (try_forward_edges,
2030 merge_blocks_move_predecessor_nojumps,
2031 merge_blocks_move_successor_nojumps): Likewise.
2032 * cfgexpand.c (expand_gimple_cond_expr,
2033 expand_gimple_tailcall): Likewise.
2034 * cfghooks.c (duplicate_block): Likewise.
2035 * cfglayout.c (record_effective_endpoints,
2036 insn_locators_initialize, change_scope, fixup_reorder_chain,
2037 verify_insn_chain, fixup_fallthru_exit_predecessor,
2038 duplicate_insn_chain, cfg_layout_finalize): Likewise.
2039 * cfgloopanal.c (check_irred): Likewise.
2040 * cfgloop.c (superloop_at_depth, flow_loops_free,
2041 flow_loop_entry_edges_find, flow_loops_find,
2042 flow_loop_outside_edge_p, get_loop_body,
2043 get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
2044 get_loop_exit_edges, num_loop_branches, cancel_loop,
2045 verify_loop_structure): Likewise.
2046 cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
2047 duplicate_loop_to_header_edge, create_preheader,
2048 create_loop_notes): Likewise.
2049 * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
2050 edirect_branch_edge, force_nonfallthru_and_redirect,
2051 rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
2052 commit_edge_insertions, commit_edge_insertions_watch_calls,
2053 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
2054 cfg_layout_redirect_edge_and_branch_force,
2055 cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
2056 * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
2057 cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
2058 cgraph_varpool_node): Likewise.
2059 * cgraphunit.c (cgraph_finalize_function,
2060 cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
2061 cgraph_expand_function, cgraph_remove_unreachable_nodes,
2062 cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
2063 cgraph_mark_inline, cgraph_expand_all_functions,
2064 cgraph_build_static_cdtor): Likewise.
2065 * combine.c (do_SUBST, try_combine, subst, combine_simplify_rtx,
2066 simplify_logical, distribute_notes, insn_cuid): Likewise.
2067 * conflict.c (conflict_graph_add, print_conflict): Likewise.
2068 * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
2069 coverage_checksum_string): Likewise.
2070 * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
2071 hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
2072 cse_cc_succs, cse_condition_code_reg): Likewise.
2073 * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
2074 rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
2075 new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
2076 cselib_record_set): Likewise.
2078 2004-09-07 Jan Hubicka <jh@suse.cz>
2080 * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
2082 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
2084 * builtins.c (fold_builtin_strchr): Use build_int_cst, not
2086 (fold_builtin_strpbrk): Likewise.
2087 * expr.c (array_ref_low_bound): Likewise.
2088 * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
2089 interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
2090 * tree-sra.c (generate_element_zero): Likewise.
2091 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
2092 * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
2093 add_old_iv_candidates, add_iv_candidates): Likewise.
2094 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
2096 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
2098 * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
2099 * c-common.c (c_type_hash, c_common_nodes_and_builtins,
2100 c_expand_expr, boolean_increment, nonnull_check_p,
2101 check_function_arguments_recurse, fold_offsetof_1): Likewise.
2102 * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
2103 builtin_define_type_max): Likewise.
2104 * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
2105 implicit_decl_warning, builtin_function, build_compound_literal,
2106 complete_array_type, grokdeclarator, get_parm_info,
2107 start_function, store_parm_decls_oldstyle,
2108 c_write_global_declarations): Likewise.
2109 * c-format.c (get_constant, decode_format_attr,
2110 maybe_read_dollar_number, get_flag_spec, check_format_arg,
2111 check_format_types, format_type_warning,
2112 find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
2113 init_dynamic_diag_info, handle_format_attribute): Likewise.
2114 * c-gimplify.c (push_context, pop_context, finish_bc_block):
2115 * c-lex.c (c_lex_with_flags, lex_string): Likewise.
2116 * c-objc-common.c (c_tree_printer): Likewise.
2117 * c-pch.c (pch_init): Likewise.
2118 * c-pragma.c (maybe_apply_pragma_weak): Likewise.
2119 * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
2120 * c-typeck.c (c_incomplete_type_error, composite_type,
2121 common_pointer_type, common_type, same_translation_unit_p,
2122 tagged_types_tu_compatible_p, finish_init, pop_init_level,
2123 set_designator, set_nonincremental_init_from_string,
2124 process_init_element, c_finish_if_stmt): Likewise.
2125 * caller-save.c (init_caller_save, save_call_clobbered_regs,
2126 insert_restore, insert_save, insert_one_insn): Likewise.
2127 * calls.c (emit_call_1, compute_argument_block_size,
2128 precompute_arguments, expand_call, emit_library_call_value_1,
2129 store_one_arg): Likewise.
2131 2004-09-07 Nathan Sidwell <nathan@codesourcery.com>
2133 * configure.ac (enable-checking): Add release option. Reorganize
2134 to avoid repetition.
2135 * configure: Rebuilt.
2136 * doc/install.texi (enable-checking): Amend documentation.
2138 2004-09-06 H.J. Lu <hongjiu.lu@intel.com>
2141 * Makefile.in (specs.ready): Depend on cc1$(exeext).
2143 2004-09-06 James E Wilson <wilson@specifixinc.com>
2145 * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
2146 movdf_hardfloat_32bit): Split fG into two alternatives.
2147 (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
2149 * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
2151 2004-09-06 Eric Botcazou <ebotcazou@libertysurf.fr>
2153 * final.c (output_in_slot): Delete.
2154 (final_scan_insn): Revert 2004-09-03 change.
2155 (output_asm_insn): Likewise.
2156 * config/sparc/sparc.c (output_return): Likewise.
2157 (output_sibcall): Likewise.
2159 2004-09-06 Jan Hubicka <jh@suse.cz>
2161 * loop.c (loop_dump_aux): Do not print RTL when not available.
2162 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
2163 frontend specific type nodes.
2164 (produce_memory_decl_rtl): Break out from ...
2165 (prepare_decl_rtl): ... here. Handle ADDR_EXPR correctly.
2166 (get_computation_at): Avoid random tree sharing.
2167 (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
2169 2004-09-06 Zack Weinberg <zack@codesourcery.com>
2171 * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
2172 unnecessary commands.
2174 2004-09-06 Mohan Embar <gnustuff@thisiscool.com>
2176 * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
2177 (bitmap.o): Likewise.
2179 2004-09-06 Paolo Bonzini <bonzini@gnu.org>
2181 Unify the management of RTL and tree-level dump files.
2183 * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
2184 Don't print function name to the dump file, the pass manager
2185 would do this for us. Add code from the top of
2186 rest_of_compilation, up to the initial RTL dump.
2187 * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
2188 close the DFI_sibling dump file.
2189 (rest_of_compilation): Don't do that here. Remove code up to the
2191 (init_optimization_passes): Remove.
2192 (pass_rest_of_compilation): Change pass name to NULL.
2193 * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
2194 Do not call init_optimization_passes.
2195 * toplev.h (init_optimization_passes): Remove.
2197 * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
2198 finish_graph_dump_file): Remove SUFFIX parameter.
2199 * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
2200 finish_graph_dump_file): Likewise.
2202 * tree-pass.h (struct tree_opt_pass): Add `letter' field.
2203 * cfgexpand.c (pass_expand): Adjust.
2204 * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
2205 * passes.c (pass_rest_of_compilation): Adjust.
2206 * predict.c (pass_profile): Adjust.
2207 * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
2208 * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
2209 pass_split_crit_edges, pass_warn_function_return): Adjust.
2210 * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
2211 * tree-dfa.c (pass_referenced_vars): Adjust.
2212 * tree-eh.c (pass_lower_eh): Adjust.
2213 * tree-if-conv.c (pass_build_ssa): Adjust.
2214 * tree-into-ssa.c (pass_build_ssa): Adjust.
2215 * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
2216 * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
2217 * tree-nrv.c (pass_nrv): Adjust.
2218 * tree-optimize.c (pass_gimple, pass_all_optimizations,
2219 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
2220 pass_init_datastructures): Adjust.
2221 * tree-outof-ssa.c (pass_del_ssa): Adjust.
2222 * tree-profile.c (pass_tree_profile): Adjust.
2223 * tree-sra.c (pass_sra): Adjust.
2224 * tree-ssa-alias.c (pass_may_alias): Adjust.
2225 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
2226 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
2227 * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
2228 * tree-ssa-dom.c (pass_dominator): Adjust.
2229 * tree-ssa-dse.c (pass_dse): Adjust.
2230 * tree-ssa-forwprop.c (pass_forwprop): Adjust.
2231 * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
2232 * tree-ssa-loop-ch.c (pass_ch): Adjust.
2233 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
2234 pass_loop_done, pass_complete_unroll, pass_iv_canon,
2235 pass_iv_optimize, pass_vectorize): Adjust.
2236 * tree-ssa-phiopt.c (pass_phiopt): Adjust.
2237 * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
2238 * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
2239 pass_late_warn_uninnitialized): Adjust.
2240 * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
2242 * Makefile.in (tree-dump.o): Add new dependencies.
2243 * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
2244 * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
2246 * toplev.c (dump_file_name): New.
2247 * tree-dump.c (dump_enable_all): Add LETTER parameter.
2248 (struct dump_file_info): Add NUM and LETTER fields.
2249 (dump_files): Adjust and add RTL dump files.
2250 (dump_register): Add NUM and LETTER fields.
2251 (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
2252 (dump_begin): Use get_dump_file_name.
2253 (dump_switch_p_1): Adjust call to dump_enable_all.
2254 * tree-dump.h (dump_register): Adjust prototype.
2255 * tree-optimize.c (register_one_dump_file): Take dump file index.
2256 Support flags for RTL dumps.
2257 (register_dump_files): Fill in NUM field of struct dump_file_info.
2258 Track properties both when the gate is executed and when it is not.
2259 (execute_todo): Dump RTL. Add PROPERTIES parameter.
2260 (execute_one_pass): Pass properties to execute_todo. Handle VCG
2262 * tree-pass.h (dump_file_name): New.
2263 * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
2266 * Makefile.in (passes.o): Add new dependencies.
2267 * passes.c (struct dump_file_info, enum dump_file_index,
2268 dump_file_tbl, init_optimization_passes): Remove.
2269 (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
2270 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
2272 (finish_optimization_passes): Update finish_graph_dump_file loop.
2273 (enable_rtl_dump_file): Remove.
2274 * tree-dump.c (dump_files): Adjust and add RTL dump files.
2275 (enable_rtl_dump_file): Add here.
2276 * tree.h (enum tree_dump_index): Add RTL dump file indices.
2277 * doc/invoke.texi (Debugging options): Document new RTL debugging
2280 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
2282 * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
2283 gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
2284 stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
2285 tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
2286 tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
2287 tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
2288 tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
2289 vec.h: Fix comment formatting.
2291 2004-09-05 Kazu Hirata <kazu@cs.umass.edu>
2293 * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
2294 et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
2295 hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
2296 tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
2297 tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
2298 tree-ssa-loop-niter.c, tree-ssa-operands.c,
2299 tree-ssa-operands.h, tree-ssa-propagate.c,
2300 tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
2301 vec.c, vec.h: Fix comment typos. Follow spelling conventions.
2303 2004-09-05 Diego Novillo <dnovillo@redhat.com>
2305 * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
2306 vectorizer is enabled.
2308 2004-09-05 Andreas Jaeger <aj@suse.de>
2310 * tree-if-conv.c: Spell check comments and clean up whitespace.
2312 2004-09-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2314 * tree-ssa-loop-ivopts.c: New file.
2315 * Makefile.in (tree-ssa-loop-ivopts.c): Add.
2316 * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
2317 target_pres_cost, target_spill_cost): Declare.
2318 * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
2319 spill_cost): Renamed to ...
2320 (target_avail_regs, target_res_regs, target_small_cost,
2321 target_pres_cost, target_spill_cost): ... and exported.
2322 (init_set_costs, global_cost_for_size): Work with renamed variables.
2323 * common.opt (flag_ivopts): New flag.
2324 * expr.c (expand_expr_real_1): Handle SSA_NAME case. Handle
2326 * gimplify.c (struct gimplify_ctx): Add into_ssa field.
2327 (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
2328 generating SSA form.
2329 (force_gimple_operand): New function.
2330 * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
2331 * tree-cfg.c (stmt_bsi): New function.
2332 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
2333 PARAM_IV_MAX_CONSIDERED_USES): New.
2334 * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
2335 bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
2336 ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
2337 * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
2338 * tree-nested.c (build_addr): Export.
2339 * tree-optimize.c (init_tree_optimization_passes): Add
2341 * tree-pass.h (pass_iv_optimize): Declare.
2342 * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
2344 * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
2345 as a phi node argument.
2346 (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
2347 ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
2349 * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
2350 * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
2351 pass_iv_optimize): New pass.
2352 * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
2353 * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
2354 * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
2355 * tree.h (REF_ORIGINAL): New macro.
2356 (build_int_cst_type, unsigned_type_for, zero_p,
2357 cst_and_fits_in_hwi, build_addr): Declare.
2358 * doc/invoke.texi (-fivopts): Document.
2359 (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
2360 PARAM_IV_MAX_CONSIDERED_USES): Document.
2361 * doc/passes.texi: Document induction variable optimizations pass.
2363 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2365 * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
2366 * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
2367 * c-common.c (c_common_attribute_table): Accept parameters to
2369 (check_function_sentinel, handle_sentinel_attribute): Likewise.
2370 * doc/extend.texi: Update accordingly.
2372 2004-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2374 * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
2376 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
2378 * c-common.c (handle_sentinel_attribute, check_function_sentinel):
2380 (c_common_attribute_table): Add `sentinel' attribute.
2381 (check_function_arguments): Handle `sentinel' attribute.
2382 * doc/extend.texi: Document `sentinel' attribute.
2384 2004-09-04 H.J. Lu <hongjiu.lu@intel.com>
2386 * configure: Regenerated.
2388 2004-09-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2390 * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
2392 * tree.c (save_expr): No longer TREE_READONLY.
2394 2004-09-04 Jan Hubicka <jh@suse.cz>
2396 * passes.c (rest_of_clean_state): Fix merge conflict made during
2397 commiting the patch.
2399 2004-09-04 Jan Hubicka <jh@suse.cz>
2401 * passes.c (rest_of_clean_state): Decompose the instruction stream.
2403 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
2405 * doc/md.texi (shift patterns): New anchor. Add reference to
2406 TARGET_SHIFT_TRUNCATION_MASK.
2407 * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
2408 * target.h (shift_truncation_mask): New target hook.
2409 * targhook.h (default_shift_truncation_mask): Declare.
2410 * targhook.c (default_shift_truncation_mask): Define.
2411 * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
2412 (TARGET_INITIALIZER): Include it.
2413 * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
2414 and LSHIFTRT cases. Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
2415 reject all out-of-range values. Fix sign-extension code for modes
2416 whose width is smaller than HOST_BITS_PER_WIDE_INT.
2417 * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
2418 (expand_superword_shift, expand_subword_shift): Likewise.
2419 (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
2420 (expand_binop): Use them to implement double-word shifts.
2421 * config/arm/arm.c (arm_shift_truncation_mask): New function.
2422 (TARGET_SHIFT_TRUNCATION_MASK): Define.
2424 2004-09-04 Jan Hubicka <jh@suse.cz>
2426 * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
2427 (mix): New macro copied from hashtab.c
2428 (iterative_hash_hashval_t, iterative_hash_pointer,
2429 iterative_hash_host_wide_int): New functions based on hashtab.c
2432 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
2434 * config/mips/mips.md (mask): New mode attribute.
2435 (zero_extendsidi2): Add memory alternative.
2436 (*zero_extendsidi2_mem): Delete.
2437 (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT. Use
2438 memory_operand in the TARGET_MIPS16 check.
2439 (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
2440 Redefine using :GPR and :SHORT.
2441 (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
2443 2004-09-04 Uros Bizjak <uros@kss-loka.si>
2445 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
2447 (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
2448 expand_builtin_mathfn.
2449 * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
2450 btrunc?f patterns for btrunc_optab. Implement rint_optab using
2452 * optabs.c (init_optabs): Initialize rint_optab.
2453 * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
2455 (btrunc_optab): Rename macro from trunc_optab.
2456 (rint_optab): Define corresponding macro.
2458 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
2459 UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
2461 * config/i386/i386-protos.h (emit_i387_cw_initialization):
2462 Change prototype. Add new int parameter.
2463 * config/i386/i386.c (emit_i387_cw_initialization):
2464 Handle new rounding modes.
2466 * config/i386/i386.h (enum fp_cw_mode): Delete.
2467 (MODE_NEEDED): Handle new rounding modes.
2468 (EMIT_MODE_SET): Change condition to handle new rounding modes.
2470 * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
2471 UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
2472 represent different rounding modes of frndint insn.
2473 (type): Add frndint type.
2474 (i387, length, memory): Handle this type.
2475 (i387_cw): New attribute definition.
2476 (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
2477 *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
2478 *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
2479 Add "i387_cw" attribute defined to "trunc".
2480 (x86_fnstcw_1): Remove comment.
2481 (*frndintxf2): Rename insn definition to frndintxf2. Move
2482 insn definition near rint?f2 expanders.
2483 (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
2484 rintf and rintl built-ins as inline x87 intrinsics.
2485 (frndintxf2_floor): New pattern to implement floor rounding
2486 mode with frndint x87 instruction.
2487 (floordf2, floorsf2, floorxf2): New expanders to implement floor,
2488 floorf and floorl built-ins as inline x87 intrinsics.
2489 (frndintxf2_ceil): New pattern to implement ceil rounding
2490 mode with frndint x87 instruction.
2491 (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
2492 ceilf and ceill built-ins as inline x87 intrinsics.
2493 (frndintxf2_trunc): New pattern to implement trunc rounding
2494 mode with frndint x87 instruction.
2495 (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
2496 truncf and truncl built-ins as inline x87 intrinsics.
2497 (frndintxf2_mask_pm): New pattern to implement rounding
2498 mode with exceptions with frndint x87 instruction.
2499 (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
2500 implement nearbyint, nearbyintf and nearbyintl built-ins as
2501 inline x87 intrinsics.
2503 2004-09-04 Richard Sandiford <rsandifo@redhat.com>
2505 * config/mips/mips.md (SHORT): New mode macro.
2506 (size): New mode attribute.
2507 (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
2508 (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
2509 *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns. Use only if
2511 (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
2512 *extend[qh]isi2_hw patterns and extending them to di.
2513 (extendqihi2): Implement as define_insn_and_split that produces
2514 extendqisi2 after reload.
2516 2004-09-03 Devang Patel <dpatel@apple.com>
2518 * Makefile.in (OBJS-common): Add tree-if-conv.o
2519 (tree-if-conv.o): New rule.
2520 * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
2521 (get_loop_body_in_bfs_order): New.
2522 * cfgloop.h (get_loop_body_in_bfs_order): New.
2523 * tree-flow.h (enum move_pos): Move here from ..
2524 * tree-ssa-loop-im.c (enum move_pos): here.
2525 (movement_possibility): Make externally visible.
2526 * tree-optimize.c (init_tree_optimization_passes): New entry for
2528 * tree-pass.h (pass_if_conversion): New.
2529 * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
2530 * tree-if-conv.c: New file.
2531 * doc/passes.texi: Document tree if-conversion pass.
2532 * doc/tree-ssa.texi: Same.
2534 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
2537 Makefile.in (LIB2ADDEHSTATIC): New.
2538 (LIB2ADDEHSHARED): New.
2540 (LIBUNWINDDEP): New.
2541 (SHLIBUNWIND_LINK): New.
2542 (SHLIBUNWIND_INSTALL): New.
2543 (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
2544 LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
2545 (clean): Remove libunwind*
2546 (stage1-start): Remove and copy stage1/libunwind*.
2547 (stage2-start): Remove and copy stage2/libunwind*.
2548 (stage3-start): Remove and copy stage3/libunwind*.
2549 (stage4-start): Remove and copy stage4/libunwind*.
2550 (stageprofile-start): Remove and copy stageprofile/libunwind*.
2551 (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
2553 * config.gcc (ia64*-*-linux*): Always add t-libunwind to
2554 tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
2555 tmake_file if --with-system-libunwind isn't used.
2557 * config/ia64/t-glibc-libunwind: New file.
2558 * config/t-libunwind-elf: Likewise.
2559 * unwind-compat.c: Likewise.
2560 * unwind-compat.h: Likewise.
2561 * unwind-dw2-fde-compat.c: Likewise.
2563 * config/ia64/t-glibc (LIB2ADDEH): Updated.
2564 * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
2566 * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
2568 * unwind-dw2-fde-glibc.c: Likewise.
2569 * unwind-dw2.c: Likewise.
2571 * config/t-libunwind (LIB2ADDEH): Updated.
2572 (LIB2ADDEHSTATIC): New.
2573 (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
2574 (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
2576 * configure.ac: Change --enable-libunwind-exceptions to
2577 --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
2578 * configure: Regenerated.
2579 * config.in: Updated.
2581 * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
2582 above and mention --with-system-libunwind.
2583 (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
2584 removed in gcc 3.4.3 and later.
2586 * gcc.c (init_spec): Add -lunwind to -lgcc_s if
2587 USE_LIBUNWIND_EXCEPTIONS is defined.
2589 * mklibgcc.in: Support libunwind.
2591 2004-09-03 H.J. Lu <hongjiu.lu@intel.com>
2593 * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
2596 2004-09-03 Richard Henderson <rth@redhat.com>
2599 * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
2600 (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
2601 (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
2602 stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
2603 frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
2604 resize_stack_vars_conflict, add_stack_var_conflict,
2605 stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
2606 union_stack_vars, partition_stack_vars, dump_stack_var_partition,
2607 expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
2608 expand_one_static_var, expand_one_hard_reg_var,
2609 expand_one_register_var, expand_one_error_var, defer_stack_allocation,
2610 expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
2611 (expand_used_vars): Rewrite.
2612 * Makefile.in (cfgexpand.o): Update dependencies.
2614 2004-09-04 Jan Hubicka <jh@suse.cz>
2616 * cfg.c (free_edge): Use ggc_free.
2617 (expunge_block): Use ggc_free.
2618 * passes.c (rest_of_clean_state): Free after compilation.
2619 * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
2620 * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
2622 2004-09-03 James E Wilson <wilson@specifixinc.com>
2624 * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
2625 DECL_EXTERNAL check.
2627 2004-09-03 Eric Botcazou <ebotcazou@libertysurf.fr>
2629 * final.c (output_in_slot): New global variable.
2630 (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
2631 Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE. Set
2632 'output_in_slot' before invoking output_asm_insn.
2633 (output_asm_insn): Add a space after the tab if 'output_in_slot'
2635 * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
2637 (output_sibcall): Likewise.
2639 2004-09-03 Jan Hubicka <jh@suse.cz>
2641 * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
2642 * tree-ssanames (init_ssanames): Likewise.
2644 2004-09-03 Ziemowit Laski <zlaski@apple.com>
2646 * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
2647 objc_declare_protocols, objc_start_protocol,
2648 objc_start_class_interface, objc_start_category_interface,
2649 objc_continue_interface, objc_finish_interface,
2650 objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
2651 objc_start_class_implementation, objc_start_category_implementation,
2652 objc_continue_implementation, objc_finish_implementation,
2653 objc_add_method_declaration, objc_start_method_definition,
2654 objc_finish_method_definition, objc_build_keyword_decl,
2655 objc_build_method_signature, objc_build_encode_expr,
2656 objc_build_protocol_expr, objc_build_selector_expr,
2657 objc_build_message_expr, objc_build_string_object,
2658 objc_get_class_reference, objc_get_protocol_qualified_type,
2659 objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
2661 2004-09-03 James E Wilson <wilson@specifixinc.com>
2663 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
2665 * config/mips/generic.md (generic_frecip_fsqrt_step): New.
2666 * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
2667 (mips_rsqrt2_<fmt>): Use frsqrt2 type.
2668 (mips_recip1_<fmt>): Use frdiv1 type.
2669 (mips_recip2_<fmt>): Use frdiv2 type.
2670 * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
2671 * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
2673 (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
2675 2004-09-03 Daniel Jacobowitz <dan@debian.org>
2677 * reload.c (find_reloads): Swap operand_loc pointers for
2678 find_dummy_reload if we have swapped two operands.
2680 2004-09-03 Hans-Peter Nilsson <hp@axis.com>
2682 * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
2683 to get the tablejump-insn before the jump-table label.
2685 2004-09-03 Ziemowit Laski <zlaski@apple.com>
2687 * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
2688 objc_declare_protocols, objc_build_message_expr,
2689 objc_finish_message_expr, objc_build_selector_expr,
2690 objc_build_protocol_expr, objc_build_encode_expr,
2691 objc_build_string_object, objc_get_protocol_qualified_type,
2692 objc_get_class_reference, objc_get_class_ivars,
2693 objc_start_class_interface, objc_start_category_interface,
2694 objc_start_protocol, objc_continue_interface, objc_finish_interface,
2695 objc_start_class_implementation, objc_start_category_implementation,
2696 objc_continue_implementation, objc_finish_implementation,
2697 objc_set_visibility, objc_set_method_type, objc_build_method_signature,
2698 objc_add_method_declaration, objc_start_method_definition,
2699 objc_finish_method_definition, objc_add_instance_variable,
2700 objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
2701 objc_finish_try_stmt, objc_begin_catch_clause,
2702 objc_finish_catch_clause, objc_build_finally_clause,
2703 objc_build_synchronized, objc_static_init_needed_p,
2704 objc_generate_static_init_call): New prototypes.
2706 2004-09-03 Steve Ellcey <sje@cup.hp.com>
2708 * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
2710 (ia64_function_value): Ditto.
2712 2004-09-03 Jan Beulich <jbeulich@novell.com>
2714 * config.gcc: Resurrect NetWare as a target. Handle special case of
2715 Novell linker to be used (specified through --with-ld=) and threading
2716 model of either Posix (default) or NKS.
2717 * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
2718 of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
2719 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
2720 * config/i386/netware.c, config/i386/netware.h: New.
2721 * config/i386/nwld.c, config/i386/nwld.h: New.
2722 * config/i386/netware-crt0.c: New.
2723 * config/i386/netware-libgcc.c: New.
2724 * config/i386/netware-libgcc.def: New.
2725 * config/i386/netware-libgcc.exp: New.
2726 * config/i386/t-netware, config/i386/t-nwld: New.
2728 * doc/install.texi: Document NKS threading model.
2730 2004-09-03 Jan Beulich <jbeulich@novell.com>
2733 * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
2734 * tree.h (initial_max_fld_align): Declare
2735 * stor-layout.c (initial_max_fld_align): Define and initialize.
2736 (maximum_field_alignment): Initialize to the same value.
2737 * common.opt: Add -fpack-struct= variant of switch.
2738 * opts.c: Handle -fpack-struct= variant of switch.
2739 * c-pragma.c: Change #pragma pack() handling so that it becomes
2740 compatible to other compilers: accept individual 'push' argument,
2741 make final pop restore (command line) default, correct interaction
2742 of push/pop and sole specification of a new alignment (so that the
2743 sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
2744 to #pragma pack(push, <n>).
2745 * doc/extend.texi: New node "Structure-Packing Pragmas" under
2746 "Pragmas", describing #pragma pack.
2747 * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
2748 * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
2749 Document new TARGET_DEFAULT_PACK_STRUCT.
2751 2004-09-03 Devang Patel <dpatel@apple.com>
2753 * dwarf2out.c (gen_field_die). Equate decl number to die.
2755 2004-09-03 Vladimir Makarov <vmakarov@redhat.com>
2758 * global.c (modify_reg_pav): New function.
2759 (make_accurate_live_analysis): Call the new function. Move pavin
2760 modification by earlyclobber set into the new function.
2762 2004-09-03 Andreas Schwab <schwab@suse.de>
2764 * config/m68k/m68k.c (output_andsi3): Use -1 instead of
2765 (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
2768 2004-09-02 Jan Beulich <jbeulich@novell.com>
2770 * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
2771 * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
2772 not unwind code specific ones.
2773 (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
2774 Remove unwind code specific dependencies.
2775 (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
2777 Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
2778 LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
2779 * tsystem.h: Declare memcpy and memset when inhibit_libc.
2781 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
2783 * combine.c (try_combine): Delay modifying of insns which cannot
2786 2004-09-02 Daniel Berlin <dberlin@dberlin.org>
2788 * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
2790 * gcc/tree-ssa-loop.c: Ditto
2791 * gcc/tree-ssa-loop-ivcanon.c: Ditto
2792 * gcc/doc/invoke.texi: Ditto.
2794 2004-09-02 Ziemowit Laski <zlaski@apple.com>
2796 * c-decl.c (store_parm_decls_newstyle): Make static.
2797 (store_parm_decls_from): New function.
2798 * c-tree.h (store_parm_decls_newstyle): Remove prototype.
2799 (store_parm_decls_from): New prototype.
2801 2004-09-02 David Edelsohn <edelsohn@gnu.org>
2803 * config/rs6000/rs6000.c (expand_block_move): Use SImode and
2804 HImode with STRICT_ALIGNMENT.
2806 2004-09-02 Mark Mitchell <mark@codesourcery.com>
2808 * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
2809 (TARGET_OS_CPP_BUILTINS): Likewise.
2810 * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
2811 TARGET_BPABI_CPP_BUILTINS.
2813 2004-09-02 Roman Zippel <zippel@linux-m68k.org>
2815 * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
2817 2004-09-02 Eric Christopher <echristo@redhat.com>
2819 * builtins.c (expand_builtin_cabs): Delete.
2820 (expand_builtin): If unable to fold the values do a normal
2821 library call for builtin_cab*.
2822 (fold_builtin_cabs): Depend on optimize and optimize_size.
2823 * optabs.c (expand_cmplxdiv_straight): Delete.
2824 (expand_cmplxdiv_wide): Ditto.
2825 (expand_vector_binop): Ditto.
2826 (expand_vector_unop): Ditto.
2827 (expand_complex_abs): Delete.
2828 (expand_binop): Remove calls to above functions.
2829 Remove open coding of complex arithmetic.
2830 (expand_unop): Ditto.
2831 * optabs.h: Remove prototypes.
2833 2004-09-02 Ziemowit Laski <zlaski@apple.com>
2835 * c-decl.c (store_parm_decls_newstyle): Make externally visible.
2836 * c-tree.h (store_parm_decls_newstyle): New prototype.
2838 2004-09-02 Geoffrey Keating <geoffk@apple.com>
2840 * config/rs6000/rs6000.c (expand_block_clear): Use vector
2841 instructions if available.
2842 (expand_block_move): Likewise.
2844 2004-09-03 Jan Hubicka <jh@suse.cz>
2846 * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
2848 2004-09-02 Mark Mitchell <mark@codesourcery.com>
2850 * config/arm/symbian.h (LIB_SPEC): Define to empty.
2851 * config/arm/t-symbian (SHLIB_LC): Likewise.
2853 2004-09-02 Paul Brook <paul@codesourcery.com>
2855 * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
2857 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
2859 * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
2860 (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
2861 (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
2862 (build_mips16_call_stub): Likewise. Remove daft CALL_INSN checks.
2863 (mips_issue_rate): Remove unreachable abort.
2864 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
2865 (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
2866 (mips_block_move_straight, print_operand_address, mips_file_start)
2867 (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
2868 (mips_output_conditional_branch, mips_expand_builtin_direct)
2869 (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
2870 * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
2873 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
2875 * config/mips/mips.md (*lea_high64): Change split condition to
2876 flow2_completed. Add a peephole2 to generate a more parallel version.
2878 2004-09-02 Jan Hubicka <jh@suse.cz>
2880 * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
2883 * ggc-page.c: include tree-flow.h.
2884 (extra_order_size_table): Add stmt_ann_d.
2885 (STAT_LABEL): Rename from ....
2886 (LABEL): ... this one.
2887 * Makefile.in (ggc-page.o): Add dependency.
2889 * ggc-common.c (ggc_force_collect): New global variable.
2890 (loc_description): Add fields "freed", "collected"
2891 (ptr_hash): New static hash
2892 (ptr_hash_entry): New structure.
2893 (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
2894 (ggc_record_overhead): Take ptr argument, record it
2895 (ggc_prune_overhead_list, ggc_free_overhead): New functions.
2896 (cmp_statistics): Imrove sorting.
2897 (dump_ggc_loc_statistics): Output newly collected statistics
2898 * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
2899 (ggc_free): Call ggc_free_overhead.
2900 (ggc_collect): Force collection when asked to be forced.
2901 (ggc_collect): Call ggc_prune_overhead_list.
2902 * ggc.h (ggc_force_collect): Declare
2903 (ggc_record_overhead): Update prototype.
2904 (ggc_free_overhead, ggc_prune_overhead_list): Declare.
2906 2004-09-02 James E Wilson <wilson@specifixinc.com>
2908 * common.opt (ftrapping-math): Default to on.
2910 2004-09-02 Richard Earnshaw <rearnsha@arm.com>
2912 * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
2914 2004-09-02 Denis Chertykov <denisc@overta.ru>
2917 * config/avr/avr.md ("movmemhi"): Substitute match_dup to
2919 (*movmemqi_insn): Likewise.
2920 (*movmemhi): Likewise.
2921 (clrmemhi): Likewise.
2922 (*clrmemqi): Likewise.
2923 (*clrmemhi): Likewise.
2925 2004-09-02 Paul Brook <paul@codesourcery.com>
2927 * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
2928 default_use_cxa_atexit=yes.
2930 2004-09-02 Alan Modra <amodra@bigpond.net.au>
2932 * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
2933 (struct kernel_old_ucontext): Delete.
2934 (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
2935 (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs. Only define
2938 2004-09-02 Richard Sandiford <rsandifo@redhat.com>
2940 * toplev.c (process_options): Fix typo.
2942 2004-09-01 Richard Henderson <rth@redhat.com>
2945 * calls.c (initialize_argument_information): Tighten pass-through
2946 conditions for pass-by-reference. Remove dead TARGET_EXPR code.
2947 Use build_fold_addr_expr.
2948 (emit_library_call_value_1): Use build_fold_addr_expr. Remove code
2949 that assumes ADDR_EXPR allocates stack space.
2950 * fold-const.c (build_fold_addr_expr_with_type): Look through
2953 2004-09-01 Dan Nicolaescu <dann@ics.uci.edu>
2955 * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
2956 * ggc.h (ggc_alloc_rtx): Delete.
2958 2004-09-01 Roger Sayle <roger@eyesopen.com>
2960 * expmed.c (enum alg_code): Remove long unused enumeration values.
2961 (struct mult_cost): New structure to hold the "score" of a synthetic
2962 multiply sequence, including both a rtx_cost and a latency field.
2963 (MULT_COST_LESS): New macro to compare mult_cost to a constant.
2964 (CHEAPER_MULT_COST): New macro to compare two mult_costs.
2965 (struct algorithm): Change type of cost field to be mult_cost.
2966 (synth_mult): Change type of cost_limit argument to be a
2967 pointer to a mult_cost. Update all cost comparisons to use the
2968 new mult_cost infrastructure. For alg_add_factor and
2969 alg_sub_factor operations, latency is lower than the rtx_cost.
2970 (choose_mult_variant): Update calls to synth_mult. Perform
2971 cost comparisons using the new mult_cost infrastructure.
2972 (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
2973 to optain the total rtx_cost of a synth_mult "algorithm".
2975 2004-09-01 David Edelsohn <edelsohn@gnu.org>
2977 * config/rs6000/power4.md: Increase store latency to 12.
2978 * config/rs6000/power5.md: Same.
2980 2004-09-01 James E Wilson <wilson@specifixinc.com>
2983 * config/avr/avr.c (avr_unique_section): Delete prototype and
2985 (TARGET_ASM_UNIQUE_SECTION): Delete.
2987 2004-09-01 Ziemowit Laski <zlaski@apple.com>
2989 * c-parse.in (primary): Call objc_build_message_expr(),
2990 objc_build_selector_expr(), objc_build_protocol_expr(),
2991 objc_build_encode_expr() and objc_build_string_object() instead of
2992 build_message_expr(), build_selector_expr(), build_protocol_expr(),
2993 build_encode_expr() and build_objc_string_object(), respectively.
2994 (component_decl_list2): Call objc_get_class_ivars() instead of
2995 get_class_ivars_from_name().
2996 (keyworddecl): Call objc_build_keyword_decl() instead of
2997 build_keyword_decl().
2998 (receiver): Call objc_get_class_reference() instead of
2999 get_class_reference().
3000 (reswords): Add blank line before @@ifobjc section, for clarity.
3002 2002-09-01 Fariborz Jahanian <fjahanian@apple.com>
3004 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
3007 2004-09-01 Wu Yongwei <adah@sh163.net>
3008 Danny Smith <dannysmith@users.sourceforge.net>
3010 * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
3011 not Windows 'DWORD'.
3012 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
3013 (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
3014 (__gthr_win32_recursive_mutex_init_function): Add prototype for
3015 __GTHREAD_HIDE_WIN32API case..
3016 (__gthr_win32_recursive_mutex_lock): Likewise.
3017 (__gthr_win32_recursive_mutex_trylock): Likewise.
3018 (__gthr_win32_recursive_mutex_unlock): Likewise.
3019 (__gthread_recursive_mutex_init_function); Add definition for
3020 __GTHREAD_HIDE_WIN32API case.
3021 (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
3022 * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
3023 call to InterlockedDecrement.
3025 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3027 * tree-tailcall.c (find_tail_calls): Also fail is statement has
3030 * tree-ssa.c (propagate_into_addr): Properly test for LHR.
3032 * doc/c-tree.texi: Document new operands for ARRAY_REF and
3035 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3037 * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
3038 * common.opt (fspeculative-prefetching): New.
3039 * flags.h (flag_speculative_prefetching_set): Declare.
3040 * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
3042 * opts.c (flag_sepculative_prefetching_set): New variable.
3043 (common_handle_option): Handle -fspeculative-prefetching.
3044 * passes.c (rest_of_compilation): Ditto.
3045 * profile.c (instrument_values, compute_value_histograms, branch_prob):
3046 Use vectors instead of arrays.
3047 * toplev.c (process_options): Handle -fspeculative-prefetching.
3048 * rtl-profile.c: Include ggc.h.
3049 (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
3050 rtl_gen_one_value_profiler_no_edge_manipulation,
3051 rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
3053 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
3054 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
3056 * value-prof.c: Include ggc.h.
3057 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
3059 (insn_prefetch_values_to_profile, find_mem_reference_1,
3060 find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
3061 speculative_prefetching_transform): New.
3062 (value_profile_transformations): Call speculative_prefetching_transform.
3063 (insn_values_to_profile): Call insn_prefetch_values_to_profile.
3064 (insn_divmod_values_to_profile, rtl_find_values_to_profile,
3065 tree_find_values_to_profile, find_values to profile): Use vectors
3067 (free_profiled_values): Removed.
3068 * value-prof.h (struct histogram_value): Renamed to
3069 struct histogram_value_t.
3070 (histogram_value, histogram_values): New types.
3071 (find_values_to_profile): Declaration changed.
3072 (free_profiled_values): Removed.
3073 (struct profile_hooks): Type of argument of the hooks changed to
3075 * doc/invoke.texi (-fspeculative-prefetching): Document.
3077 2004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3079 PR rtl-optimization/16408
3080 * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
3082 2004-09-01 Richard Henderson <rth@redhat.com>
3084 * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
3085 (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
3087 2004-09-01 Jakub Jelinek <jakub@redhat.com>
3089 * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
3091 2004-09-01 Mike Stump <mrs@apple.com>
3093 * config/darwin.c (machopic_symbol_defined_p): In addition to
3094 being SYMBOL_REF_LOCAL_P, a symbol must also be
3095 ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
3096 defined in this output file, or translation unit in the case
3097 of IMA not being used.
3098 (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
3099 never need .indirect_symbol when indirecting.
3101 2004-09-01 Jakub Jelinek <jakub@redhat.com>
3103 * Makefile.in (bb-reorder.o): Add several dependencies.
3105 2004-09-01 Jakub Jelinek <jakub@redhat.com>
3107 * fold-const.c (operand_equal_p): Require equal sign also for
3108 FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
3110 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
3112 * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
3113 for use in configargs.h. Put the cname in a separate variable. Use
3114 that to set target_cpu_default2.
3116 2004-09-01 J"orn Rennecke <joern.rennecke@superh.com>
3117 Nick Clifton <nickc@redhat.com>
3119 * config/sh/sh.md ("length"): Increase branch length when
3120 SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
3121 constant, 2 byte for aligning the constant.
3123 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
3125 * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
3127 (arm7tdmi-s): New CPU name.
3128 * arm/arm.c (ARM_CORE): Update for new format.
3129 * arm/arm.h (ARM_CORE): Likewise.
3130 * arm/gentune.sh: Update for extra field.
3131 * config.gcc: Likewise.
3132 * arm/arm-tune.md: Regenerate.
3133 * doc/invoke.texi: Document the real processor names for ARM cpus.
3135 2004-09-01 Richard Earnshaw <rearnsha@arm.com>
3137 * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
3138 (floatdidf): New functions.
3139 * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
3140 (floatdisf): New functions.
3141 * t-arm-elf: Use them.
3143 2004-09-01 Ziemowit Laski <zlaski@apple.com>
3145 * c-common.h (lookup_interface): Remove prototype.
3146 (is_class_name): Rename to objc_is_class_name.
3147 (lookup_objc_ivar): Rename to objc_lookup_ivar.
3148 (get_current_scope): Rename to objc_get_current_scope.
3149 * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
3150 * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
3151 (yylexname): Call objc_is_class_name() instead of is_class_name().
3152 * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
3153 instead of lookup_objc_ivar().
3154 * stub-objc.c (lookup_interface): Remove stub.
3155 (is_class_name): Rename to objc_is_class_name.
3156 (lookup_objc_ivar): Rename to objc_lookup_ivar.
3158 2004-08-31 Mark Mitchell <mark@codesourcery.com>
3160 * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
3161 * config/arm/lib1funcs.asm: Do not include supplemental .S files
3162 when compiling for Symbian.
3163 * config/arm/symbian.h (RENAME_LIBRARY): New macro.
3164 (TARGET_OS_CPP_BUILTINS): Likewise.
3165 * config/arm/t-symbian (LIB1ASMFUNCS): Define.
3167 2004-08-31 Stan Shebs <shebs@apple.com>
3169 * toplev.c (process_options): Ensure debug_hooks is initialized.
3171 2004-08-31 Mark Mitchell <mark@codesourcery.com>
3173 * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
3174 * target.h (cxx): Add export_class_data.
3175 * config/arm/arm.c (arm_cxx_export_class_data): New function.
3176 (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
3177 * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
3179 2004-08-31 Kaz Kojima <kkojima@gcc.gnu.org>
3181 * config/sh/sh.c (output_branch): Check the insn length possibly
3182 in the delayed slot.
3184 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3186 * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
3188 (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
3190 * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
3191 (c_sizeof_of_alignof_type): Likewise.
3192 * expr.c (array_ref_element_size): Likewise.
3193 (highest_pow2_factor_for_target): Likewise.
3194 * gimplify.c (canonicalize_addr_expr): Likewise.
3195 (gimplify_compound_lval): Likewise.
3196 * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
3197 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
3198 * varasm.c (assemble_variable): Likewise.
3199 (output_constant_def_contents): Alignments are unsigned.
3201 2004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3202 Jeff Law <law@redhat.com>
3204 * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
3207 2004-08-31 Mark Mitchell <mark@codesourcery.com>
3209 * hooks.c (hook_bool_void_true): New function.
3210 * hooks.h (hook_bool_void_true): Declare.
3211 * target-def.h (TARGET_CXX): Add
3212 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
3213 * target.h (struct cxx): Add key_method_may_be_inline.
3214 * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
3216 (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
3217 * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
3220 2004-08-31 Denis Chertykov <denisc@overta.ru>
3223 * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
3224 frame pointer register only in Pmode while reload in progress.
3226 2004-08-31 Stephane Carrez <stcarrez@nerim.fr>
3229 * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
3230 because it breaks the 32-bit shift patterns that rely on a match_dup.
3232 2004-08-31 Matt Austern <austern@apple.com>
3234 * config/darwin.c (darwin_make_decl_one_only): Allocate section
3235 names once per compilation, instead of once per symbol.
3237 2004-08-31 Paolo Bonzini <bonzini@gnu.org>
3239 * Makefile.in (build_subdir): New substitution.
3240 (fixinc.sh): Simplify heavily since fixincludes is already built.
3241 (stmp-fixinc): Depend on specs.ready.
3242 (install-mkheaders): Use new location of fixincludes.
3243 (clean): Do not descend into fixinc.
3244 (FORBUILD): Replace with ../$(build_subdir).
3245 * configure.ac (build_subdir): Substitute.
3246 (FORBUILD): Do not set.
3247 (all_outputs): Remove fixinc/Makefile.
3248 (default commands): Do not create links in fixinc.
3249 * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
3250 the fixincludes configuration steps and substituting
3251 @FIXINCL@ in fixinc.in.
3252 * fixinc.in: New, from fixinc/fixincl.sh.
3254 * fixinc/*: Removed.
3256 2004-08-31 Joseph S. Myers <jsm@polyomino.org.uk>
3258 * attribs.c (strip_attrs): Remove.
3259 (split_specs_attrs): Move ...
3260 * c-decl.c: ... to here.
3261 * tree.h (split_specs_attrs, strip_attrs): Remove.
3262 * c-tree.h (split_specs_attrs): Declare.
3264 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
3266 * read-rtl.c: Disable RTL checking.
3267 (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
3269 2004-08-31 Richard Sandiford <rsandifo@redhat.com>
3271 * config/mips/mips.md (fcond): New code macro and attribute.
3272 (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
3273 (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
3274 (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
3276 2004-08-30 Mark Mitchell <mark@codesourcery.com>
3279 2004-08-29 Mark Mitchell <mark@codesourcery.com>
3280 PR rtl-optimization/16590
3281 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
3283 2004-08-30 Andrew Pinski <apinski@apple.com>
3286 s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
3287 * ChangeLog: Fix previous ChangeLog entry.
3290 * config.host (use_long_long_for_widest_fast_int): New, default is
3292 (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
3293 * configure.ac: If use_long_long_for_widest_fast_int, then
3294 define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
3295 * configure: Regenerate.
3296 * config.in: Regenerate.
3297 * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
3298 New: widest integer type supported efficiently in hardware for the
3300 * sbitmap.h (SBITMAP_ELT_BITS): Define based on
3301 HOST_BITS_PER_WIDEST_FAST_INT.
3302 (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
3303 * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
3304 HOST_WIDEST_FAST_INT
3305 instead of HOST_WIDE_INT.
3306 (HARD_REG_SET_LONGS): Likewise.
3307 (UHOST_BITS_PER_WIDE_INT): Likewise.
3308 Change the checks for the fast cases to be based on
3309 HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
3311 2004-08-30 Steven Bosscher <stevenb@suse.de>
3313 * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
3316 2004-08-30 Geoffrey Keating <geoffk@apple.com>
3322 * c-decl.c (grokdeclarator): Produce error for 'static' on local
3323 function declaration.
3325 2004-08-30 Richard Henderson <rth@redhat.com>
3327 * expr.c (array_ref_element_size): Force aligned_size back to
3329 (component_ref_field_offset): Similarly for aligned_offset.
3330 * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
3331 low-bound, element-size, field-offset fields rather than
3334 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
3336 * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
3339 2004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
3341 * c-tree.h (struct language_function): Add arg_info element.
3342 * c-decl.c (current_function_arg_info): New.
3343 (grokdeclarator, store_parm_decls): Use it instead of
3345 (c_push_function_context, c_pop_function_context): Save and
3348 2004-08-30 Richard Henderson <rth@redhat.com>
3350 * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
3351 COMPONENT_REF to pointer arithmetic.
3352 * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
3353 constant "c" as a valid constant initializer. Allow narrowing of
3354 differences against the same base object, for any base object.
3356 2004-08-30 Richard Henderson <rth@redhat.com>
3358 * expr.c (expand_expr_addr_expr): New.
3359 (expand_expr_real_1) <case ADDR_EXPR>: Use it.
3361 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
3363 * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
3364 (mips_fp_condition): New enum.
3365 (mips_fp_conditions): New array.
3366 (print_fcc_operand): Delete.
3367 (print_operand): Remove %V, %v and %Q. Redefine %Z so that it prints
3368 the operand and comma if and only if ISA_HAS_8CC. Add %Y.
3369 (builtin_description): Add "cond" field.
3370 (DIRECT_BUILTIN): Initialize it.
3371 (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
3372 into INSN and CODE. Initialize the "cond" field.
3373 (CMP_BUILTINS): Update accordingly.
3374 (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
3375 (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
3376 mips_fp_condition as argument. Make it the final operand of the
3377 comparison instruction.
3378 (mips_expand_builtin): Update accordingly.
3379 * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
3380 (UNSPEC_C, UNSPEC_CABS): New constants. Shuffle others to fill
3382 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
3383 Don't use the 'Q' operand prefix; just print the operand normally.
3384 (mips_cabs_*, mips_c_*): Delete, replacing with...
3385 (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
3386 patterns. Split the 4s versions into 2 ps patterns after reload.
3388 2004-08-30 Richard Henderson <rth@redhat.com>
3390 * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
3391 assuming an ADDR_EXPR is non-null.
3393 2004-08-30 Jason Merrill <jason@redhat.com>
3395 * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
3397 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
3399 * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
3400 record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
3401 gcc_assert and gcc_unreachable instead of abort.
3402 * alloc-pool.c (abort, fancy_abort): Remove.
3403 (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
3404 gcc_assert or gcc_unreachable.
3405 * attribs.c (init_attributes, decl_attributes): Likewise.
3406 * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
3407 mark_bb_for_unlikely_executed_section,
3408 add_labels_and_missing_jumps, fix_crossing_conditional_branches,
3409 fix_crossing_unconditional_branches): Likewise.
3410 * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
3411 bitmap_operation): Likewise.
3412 * bt-load.c (insn_sets_btr_p, augment_live_range,
3413 move_btr_def): Likewise.
3414 * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
3415 apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
3416 expand_builtin_mathfn_2, expand_builtin_mathfn_3,
3417 builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
3418 expand_builtin_memcmp, expand_builtin_args_info,
3419 std_gimplify_va_arg_expr, expand_builtin_unop,
3420 expand_builtin_fputs, expand_builtin_profile_func,
3421 expand_builtin_fork_or_exec, fold_builtin_bitop,
3422 fold_builtin_classify, fold_builtin_fputs): Likewise.
3424 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
3426 * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
3427 * gcov.c (abort): Remove undef.
3429 * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
3430 (struct tree_binfo): Remove primary field.
3432 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
3434 * fixinc/Makefile.in (machname.h): Remove.
3435 (fixincl.x): Do not pass $@ to genfixes.
3436 * fixinc/genfixes: Remove code to produce machname.h.
3437 * fixinc/fixincl.sh: Move it here instead.
3438 * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
3439 instead check if pz_mn_name_pat is NULL. Make mn_get_regexps
3440 return a bool indicating whether pz_mn_name_pat is NULL.
3441 * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
3442 Declare extern C variables for the ENV_TABLE.
3443 * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
3444 instead use the result of mn_get_regexps.
3445 * fixinc/fixtests.c: Likewise.
3447 2004-08-30 Paolo Bonzini <bonzini@gnu.org>
3449 * configure.ac: Do not run fixincludes after stage1 during
3451 * configure: Regenerate.
3453 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
3455 * sched-deps.c (get_condition): Partially revert previous, by never
3456 trying to extract the condition from a condjump.
3458 2004-08-30 Nathan Sidwell <nathan@codesourcery.com>
3460 * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
3461 (handle_visibility_attribute, c_determine_visibility): Likewise.
3462 * c-common.h (my_friendly_assert): Remove.
3464 2004-08-30 Richard Sandiford <rsandifo@redhat.com>
3466 * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
3467 (UNSPEC_{RSQRT,RECIP}[12]): New constants.
3468 (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
3469 * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
3470 (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
3472 2004-08-30 Diego Novillo <dnovillo@redhat.com>
3474 * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
3475 in COMPONENT_REF nodes.
3477 2004-08-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
3480 * c-opts.c (c_common_handle_option): <case OPT_Werror> set
3481 global_dc->warning_as_error_requested.
3482 * diagnostic.c (diagnostic_initialize): Tidy.
3483 * diagnostic.h (diagnostic_context::x_data): Remove
3484 (diagnostic_context::issue_warnings_are_errors_message): Rename
3485 from warnings_are_errors_message.
3486 (diagnostic_context::warning_as_error_requested): New.
3488 2004-08-30 Richard Earnshaw <rearnsha@arm.com>
3490 * sched-deps.c (get_condition): Fix breakage in previous patch.
3492 2004-08-30 Paul Brook <paul@codesourcery.com>
3494 * doc/install.texi: Fix broken mpfr link.
3496 2004-08-29 David O'Brien <obrien@FreeBSD.org>
3498 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
3499 other FreeBSD platforms.
3501 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
3503 * arm.h (REVERSE_CONDITION): Define.
3504 (REVERSIBLE_CC_MODE): All comparisons are now reversible.
3506 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
3508 * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
3509 just the codes, call reversed_comparison_code ().
3510 (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
3511 (not_reg_cond): Use reversed_comparison_code.
3512 (and_reg_cond): Likewise.
3513 * ifcvt.c (cond_exec_process_if_block): Likewise.
3514 * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
3516 2004-08-29 Richard Earnshaw <rearnsha@arm.com>
3518 * sched-deps.c (get_condition): Rewrite using jump support functions.
3519 Use reversed_comparison_code.
3520 (conditions_mutex_p): Use reversed_comparison_code.
3522 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
3524 * config/mips/mips.c (override_options): Disable hot/cold partitioning
3527 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
3529 * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
3530 (mips_function_type): Move to mips.c.
3531 * config/mips/mips.c (mips_builtin_type): New enum.
3532 (builtin_description): Replace code and ftype with builtin_type
3534 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
3535 (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
3536 (CODE_FOR_mips_abs_ps): Define.
3537 (mips_bdesc): Use new macros.
3538 (mips_expand_builtin): Use builtin_type. Update calls to subroutines.
3539 (mips_init_builtins): Use the mips_bdesc[] index as the function code.
3540 (mips_expand_builtin_direct): New function.
3541 (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
3542 builtin. Replace boolean parameter with builtin_type.
3543 (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
3544 (mips_expand_4s_compare_builtin): Delete, replacing with...
3545 (mips_expand_builtin_compare): ...this new function.
3547 2004-08-29 Mark Mitchell <mark@codesourcery.com>
3549 PR rtl-optimization/16590
3550 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
3552 2004-08-29 Diego Novillo <dnovillo@redhat.com>
3554 * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
3555 * tree-ssa-propagate.c: Fix documentation.
3557 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
3559 * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
3560 (mov[sd]fcc): Likewise.
3562 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
3564 * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
3566 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
3568 * config/mips/mips.md (divide_condition): New mode attribute.
3569 (div[sd]f3, *div[sd]f3): Use it. Redefine using :SCALARF.
3570 (sqrt[sd]f3): Redefine using SCALARF.
3571 (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise. Name formerly unnamed
3574 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
3576 * config/mips/mips.md (ANYF, SCALARF): New mode macros.
3577 (loadx, storex, fmt, UNITMODE): New mode attributes.
3578 (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
3579 (mul[sd]f3): Redefine using :SCALARF.
3580 (*mul[sd]f3): Renamed from mul[sd]f3_internal. Use :SCALARF.
3581 (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
3582 (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns. Use :ANYF.
3583 Check TARGET_FUSED_MADD for V2SF too.
3584 (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
3586 (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
3587 (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
3589 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
3591 * config/mips/mips.c (mips_init_builtins): Simplify. Only create
3592 V2SF_type_node if it will be needed.
3594 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
3596 * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
3597 * config/mips/mips.c (mips_prepare_builtin_arg): New function.
3598 (mips_prepare_builtin_target): New function.
3599 (mips_expand_builtin): Use them. Update calls to subroutines.
3600 (mips_expand_ps_cond_move_builtin): Use the new functions. Replace
3601 cmp_choice with a boolean argument to select between movt and movf.
3602 Take the comparison's icode as an argument, not the function's fcode.
3603 (mips_expand_compare_builtin): New function. Rename existing function
3604 to mips_expand_scalar_compare_builtin.
3605 (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
3606 (mips_expand_ps_compare_builtin): Use the new functions. Take the
3607 comparison's icode as an argument, not the builtin's fcode.
3609 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
3611 * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
3612 (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
3613 registers are false and -1 if all registers are true.
3614 (mips_expand_ps_compare_builtin): Likewise CCV2. Use subregs for
3615 MIPS_CMP_UPPER and MIPS_CMP_LOWER.
3616 * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
3617 (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
3618 (bc1any2t, bc1any2f): Likewise CCV2.
3619 (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
3621 2004-08-29 Richard Sandiford <rsandifo@redhat.com>
3623 * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
3624 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
3625 UNSPEC rather than an IF_THEN_ELSE.
3626 * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
3627 mips_cond_move_tf_ps by name.
3629 2004-08-29 Chao-ying Fu <fu@mips.com>
3630 James E Wilson <wilson@specifixinc.com>
3632 * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
3633 8 byte size and alignment. Give CCV4 16 byte size and alignment.
3634 * config/mips/mips-ps-3d.md: New file.
3635 * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
3636 TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3637 (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
3638 (mips_output_move): Emit "mov.ps" for V2SFmode.
3639 (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
3641 (override_options): Check if TARGET_MIPS3D and there was an explicit
3642 !TARGET_PAIRED_SINGLE_FLOAT. Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
3643 Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
3644 TARGET_PAIRED_SINGLE_FLOAT is true. Check if the ISA supports
3645 TARGET_PAIRED_SINGLE_FLOAT. Allow MODE_VECTOR_FLOAT in fp registers,
3646 and allow CCV2 and CCV4 to occupy two and four CC registers.
3647 (print_fcc_operand): New function.
3648 (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC. Modify
3649 %Z to call print_fcc_operand.
3650 (mips_function_value): Handle MODE_VECTOR_FLOAT.
3651 (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
3652 (mips_vector_mode_supported_p): New function.
3653 (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
3654 (builtin_description): New struct.
3655 (mips_bdesc): New array of struct builtin_description.
3656 (mips_expand_builtin, mips_init_builtins,
3657 mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
3658 mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
3660 * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
3661 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
3662 (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
3663 (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
3664 "-mips3d", and "-mno-mips3d".
3665 (ASM_SPEC): Map -mips3d to -mips3d in gas.
3666 (EXTRA_CONSTRAINT_Y): New macro.
3667 (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT. Add new
3668 multi-letter constraint 'Y'.
3669 (CONSTRAINT_LEN): New macro.
3670 (enum mips_builtins): New for MIPS builtin functions.
3671 (enum mips_function_type): New for the types of MIPS builtin functions.
3672 (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
3673 * config/mips/mips.md: New constants for paired single and MIPS-3D
3674 instructions. Include the new mips-ps-3d.md file.
3675 (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
3676 movv2sf_hardfloat_64bit): New named patterns.
3677 (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
3678 nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
3679 sdxc1_v2sf_di): New unnamed patterns.
3680 * config/mips/predicates.md (const_0_operand, const_1_operand): Add
3681 const_vector support.
3682 (const_0_or_1_operand): New predicate.
3683 * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
3685 2004-08-29 Diego Novillo <dnovillo@redhat.com>
3687 * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
3688 (tree-ssa-propagate.o): New rule.
3689 (GTFILES): Add tree-ssa-propagate.c.
3690 * tree-flow.h (struct stmt_ann_d): Remove field
3692 * tree-ssa-propagate.c: New file.
3693 * tree-ssa-propagate.h: New file.
3694 * tree-ssa-ccp.c: Re-write to use the routines from
3695 tree-ssa-propagate.c.
3697 2004-08-28 Andrew Pinski <apinski@apple.com>
3699 * tree-ssa-loop.c: Remove extra include of basic-block.h.
3701 2004-08-28 Ziemowit Laski <zlaski@apple.com>
3703 * c-common.h: Update comments about ObjC/ObjC++ entry points.
3704 (objc_is_reserved_word): New prototype.
3705 (get_current_scope, objc_mark_locals_volatile): Move prototypes to
3706 separate section; these are call-backs.
3707 * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
3708 ObjC/ObjC++ "@" keywords.
3709 * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
3710 prototypes; they already live in c-common.h.
3711 * stub-objc.c: Update copyright notice.
3712 (objc_is_reserved_word): New stub.
3714 2004-08-28 Nathan Sidwell <nathan@codesourcery.com>
3716 * system.h (gcc_assert): Remove __builtin_expect. Evaluate EXPR
3717 even when not checking.
3719 2004-08-27 Jason Merrill <jason@redhat.com>
3722 * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
3723 (gimple_push_cleanup): Add eh_only parm.
3724 (gimplify_target_expr): Pass it.
3725 * c.opt (-fno-threadsafe-statics): New option.
3726 * c-opts.c (c_common_handle_option): Handle it.
3727 * c-common.h (flag_threadsafe_statics): Declare it.
3728 * c-common.c (flag_threadsafe_statics): Record it.
3729 * doc/invoke.texi: Document it.
3730 * tsystem.h (_GNU_SOURCE): Define.
3731 * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
3732 (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
3733 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
3734 (__gthread_recursive_mutex_init_function): New fn.
3735 (__gthread_recursive_mutex_lock): New fn.
3736 (__gthread_recursive_mutex_trylock): New fn.
3737 (__gthread_recursive_mutex_unlock): New fn.
3738 * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
3739 * gthr-win32.h, gthr-vxworks.h: Likewise.
3742 2004-08-27 David Edelsohn <edelsohn@gnu.org>
3744 * config/rs6000/rs6000.c (rs6000_override_options): Increase
3745 maximum skip to 15. Set function alignment, jump alignment, and
3746 loop alignment to 16 for processors that form dispatch groups.
3747 (rs6000_rtx_costs): outer_code is used.
3749 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
3751 * stor-layout.c (sizetype_set): Remove.
3752 (set_sizetype): Don't test or set it.
3754 * tree.h (size_int_type): Remove.
3755 * fold-const.c: Do not #include gt-fold-const.h.
3756 (size_htab_hash, size_htab_eq): Remove.
3757 (size_int_kind): Use build_int_cst.
3758 (new_const, size_htab): Remove.
3759 (size_int_type): Remove.
3760 (round_up): Use build_int_cst.
3761 (round_down): Likewise. Remove spurious constant build.
3763 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
3765 * configure.ac: Add ENABLE_ASSERT_CHECKING control.
3766 Add is_release variable, use it for --enable-werror and
3767 --enable-checking defaults.
3768 * system.h (gcc_assert, gcc_unreachable): New.
3769 * doc/install.texi (--enable-checking): Update.
3770 * configure, config.in: Rebuilt.
3772 2004-08-26 Richard Sandiford <rsandifo@redhat.com>
3774 * rtl.h (read_rtx): Change prototype.
3775 * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
3776 line number. Return true on success.
3777 * gensupport.c (process_include, init_md_reader_args_cb): Adjust
3778 callers accordingly.
3780 2004-08-26 Richard Henderson <rth@redhat.com>
3782 * c-typeck.c (build_offsetof): Remove.
3783 * c-tree.h (build_offsetof): Remove.
3784 * c-common.c (fold_offsetof_1, fold_offsetof): New.
3785 * c-common.h (fold_offsetof): Declare.
3786 * c-parse.in (offsetof_base): New.
3787 (offsetof_member_designator): Use it. Build references, not just
3789 (primary): Use fold_offsetof, not build_offsetof.
3791 2004-08-26 Richard Henderson <rth@redhat.com>
3793 * tree.c (staticp): Return the static object.
3794 * tree.h (staticp): Update decl.
3795 * langhooks.h (struct lang_hooks): Change staticp return type to tree.
3796 * langhooks.c (lhd_staticp): Return NULL_TREE.
3797 * langhooks-def.h (lhd_staticp): Update decl.
3798 * c-common.c (c_staticp): Return the static object.
3799 * c-common.h (c_staticp): Update decl.
3801 2004-08-26 Richard Henderson <rth@redhat.com>
3803 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
3806 2004-08-26 Joseph S. Myers <jsm@polyomino.org.uk>
3809 * c-decl.c (struct c_binding): Add type and inner_comp fields.
3810 (bind): Set type and inner_comp fields.
3811 (pop_scope): Restore type of decl to the correct type from an
3812 outer scope. Give error when popping file scope for incomplete
3813 arrays completed incompatibly with default initialization in an
3815 (diagnose_mismatched_decls): Handle externs with initializers at
3817 (pushdecl): Set type of external declaration at block scope based
3818 only on the visible declarations. Save type when changing the
3819 type of a declaration. Merge an external declaration at block
3820 scope with a visible static declaration at file scope.
3821 (implicitly_declare): Give recycled old declaration the new type
3822 except for incompatible declarations of built-in functions, saving
3825 2004-08-26 Ziemowit Laski <zlaski@apple.com>
3827 * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
3829 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
3831 * tree-alias-common.c (gate_pta): New function.
3832 (pass_build_pta): Use it.
3833 (pass_del_pta): Use it.
3834 (delete_alias_vars): Don't check flag_tree_points_to.
3836 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
3838 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
3839 TFmode as additional register mode cloberred by call.
3841 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
3843 * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
3844 parallel pattern for library call returning DImode in
3847 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
3849 * config/rs6000/rs6000.c (function_arg): Generate parallel
3850 pattern for more split args.
3852 2004-08-26 Fariborz Jahanian <fjahanian@apple.com>
3854 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
3855 either gen_movdi_di_update or gen_movdi_si_update depending on
3857 * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
3858 to generate two versions.
3860 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
3862 * Makefile.in (lambda-code.o): New.
3863 (lambda-trans.o): Ditto.
3864 (TREE_DATA_REF_H): Ditto.
3866 (lambda-mat.o): Use LAMBDA_H.
3867 (tree-data-ref.o): Ditto.
3868 * lambda-code.c: New file. Lambda code generation algorithm.
3869 * lambda-trans.c: Ditto. Lambda transformation matrix support.
3870 * lambda.h: Add lambda loop structures.
3871 Add lambda loopnest structures.
3872 Add lambda body vector structure.
3873 Add lambda linear expression structures.
3874 Add prototypes for functions in new files.
3875 * lambda-mat.c: Include tree.h
3877 2004-08-26 Daniel Berlin <dberlin@dberlin.org>
3878 Sebastian Pop <pop@cri.ensmp.fr>
3880 * tree-data-ref.h: Include lambda.h
3881 (free_dependence_relation): Declared here.
3882 (free_dependence_relations): Ditto.
3883 (free_data_refs): Ditto.
3884 * tree-data-ref.c (free_dependence_relation): New function.
3885 (free_dependence_relations): Ditto.
3886 (free_data_refs): Ditot.
3887 (analyze_all_data_dependences): Free datarefs and dependence_relations.
3888 (build_classic_dist_vector): Store in the dependence_relations the
3889 information. Each arc in the dependence_relations graph is labelled
3890 with the distance and direction vectors.
3891 (build_classic_dir_vector): Ditto.
3892 (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
3893 Now computes again the whole dependence graph including read-read
3895 (compute_data_dependences_for_loop): Now dependence_relations contains
3896 all the data, and thus it doesn't need to initialize the classic_dir
3897 and classic_dist vectors.
3898 (analyze_all_data_dependences): Adjusted for using the new interface of
3899 compute_data_dependences_for_loop. Remove the statistics dump.
3901 2004-08-26 Bob Wilson <bob.wilson@acm.org>
3903 * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
3904 (xtensa_expand_block_move): Update comment.
3905 (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
3907 2004-08026 Richard Earnshaw <rearnsha@arm.com>
3910 * toplev.c (crash_signal): If we crashed while emitting
3911 a user asm, then die more gracefully.
3913 2004-08-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3916 * config/m32r.c (gen_compare): Use reg_or_int16_operand when
3917 checking for a valid constant, regardless of sign.
3919 2004-08-25 Richard Henderson <rth@redhat.com>
3922 * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
3923 if the constant satisfies add_operand.
3925 2004-08-25 Richard Henderson <rth@redhat.com>
3928 * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
3929 (alpha_expand_prologue): Handle >32-bit frames. Generate proper
3930 unwind info for >16-bit frames.
3932 2004-08-25 Richard B. Kreckel <richard.kreckel@framatome-anp.com>
3935 * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
3937 2004-08-25 Richard Henderson <rth@redhat.com>
3939 * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
3940 (TARGET_CANNOT_FORCE_CONST_MEM): New.
3942 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
3944 * doc/tree-ssa.texi: Document new operand iterator.
3946 2004-08-26 Alan Modra <amodra@bigpond.net.au>
3949 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
3950 on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
3953 2005-08-28 Paul Brook <paul@codesourcery.com>
3955 * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
3956 -mfpu=vfp -march=armv5t
3957 * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
3959 2004-08-25 Richard Henderson <rth@redhat.com>
3961 * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
3962 * target.h (struct gcc_target): Add scalar_mode_supported_p.
3963 * targhooks.c (default_scalar_mode_supported_p): New.
3964 * targhooks.h (default_scalar_mode_supported_p): Declare.
3965 * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
3967 * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
3968 before attempting to create types. Tidy.
3969 * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
3971 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
3972 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
3974 2004-08-25 Richard Henderson <rth@redhat.com>
3976 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
3977 set REAL_MODE_FORMAT for TFmode.
3979 2004-08-25 Ziemowit Laski <zlaski@apple.com>
3981 * c-decl.c (grokparm): New function.
3982 * c-tree.h (grokparm): New prototype.
3984 2004-08-25 Andrew MacLeod <amacleod@redhat.com>
3986 * tree-ssa-operands.h (struct ssa_operand_iterator_d): New. SSA operand
3987 iterator controlling structure.
3988 (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
3989 SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
3990 SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New. Operand
3992 (FOR_EACH_SSA_TREE_OPERAND): New. Iterate over operands as trees.
3993 (FOR_EACH_SSA_USE_OPERAND): New. Iterate over operands as uses.
3994 (FOR_EACH_SSA_DEF_OPERAND): New. Iterate over operands as defs.
3995 (FOR_EACH_SSA_MAYDEF_OPERAND): New. Iterate over V_MAY_DEFs.
3996 * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
3997 Empty operand pointers.
3998 * tree-flow-inline.h (op_iter_done): New. Return true if finished.
3999 (op_iter_next_use): New. Return next use_operand_p.
4000 (op_iter_next_def): New. Return next def_operand_p.
4001 (op_iter_next_tree): New. Return next operands as a tree.
4002 (op_iter_init): New. Initialize an iterator structure.
4003 (op_iter_init_use): New. Initialize structure and get the first use.
4004 (op_iter_init_def): New. Initialize structure and get the first def.
4005 (op_iter_init_tree): New. Initialize structure and get the first tree.
4006 (op_iter_next_maydef): New. Return next V_MAY_DEF operands.
4007 (op_iter_init_maydef): New. Initialize structure and get the first
4009 * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
4010 * tree-dfa.c (compute_immediate_uses_for_stmt,
4011 redirect_immediate_uses): Use new operand iterator.
4012 (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
4013 (mark_new_vars_to_rename): Use new operand iterator. Count virtual
4014 operands instead of using *_disappeared_p routines.
4015 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
4016 ssa_rewrite_stmt): Use new operand iterator.
4017 * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
4018 rewrite_trees): Use new operand iterator.
4019 * tree-pretty-print.c (dump_vops): Use new operand iterator.
4020 * tree-sra.c (mark_all_v_defs): Use new operand iterator.
4021 * tree-ssa-alias.c (compute_points_to_and_addr_escape,
4022 dump_points_to_info): Use new operand iterator.
4023 * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
4024 replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
4026 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
4027 propagate_necessity): Use new operand iterator.
4028 * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
4029 (register_definitions_for_stmt): Use new operand iterator. Take stmt as
4030 a parameter instead of a stmt_ann_t.
4031 * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
4032 build_tree_conflict_graph): Use new operand iterator.
4033 * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
4034 rewrite_mem_refs): Use new operand iterator.
4035 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
4036 check_loop_closed_ssa_use): Use new operand iterator.
4037 * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
4038 * tree-ssanames.c (release_defs): Use new operand iterator.
4039 * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
4041 2004-08-25 Adam Nemet <anemet@lnxw.com>
4043 * tlink.c (initial_cwd): New variable.
4044 (tlink_init): Initialize it.
4045 (recompile_files): Use tlink_execute() instead of system(). Don't
4046 duplicate verbose output of collect_execute. Restore initial_cwd.
4047 Update comment before the function.
4049 2004-08-25 Ziemowit Laski <zlaski@apple.com>
4051 * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
4052 accept) a cast from one Objective-C pointer type to another.
4054 2004-08-25 Paolo Carlini <pcarlini@suse.de>
4056 * doc/install.texi: Document that libstdc++-v3 requires
4059 2004-08-25 Caroline Tice <ctice@apple.com>
4061 * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details
4062 to comments at start of function.
4063 * cfgbuild.c (make_edges): Add more details to hot/cold partitioning
4065 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
4066 merge_blocks_move_predecessor_nojumps,
4067 merge_blocks_move_successor_nojumps, merge_blocks_move,
4068 try_crossjump_to_edge, try_crossjump_bb): Likewise.
4069 * cfglayout.c (fixup_reorder_chain): Likewise.
4070 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
4071 cfg_layout_can_merge_blocks_p): Likewise.
4072 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
4073 * passes.c (rest_of_compilation): Update comments for calling
4074 optimization that partitions hot/cold basic blocks.
4075 * doc/invoke.texi: Update documentation of
4076 freorder-blocks-and-partition flag.
4078 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
4080 * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
4081 (*mov*_on_*): Adjust accordingly. Add an explicit MOVECC: prefix.
4083 2004-08-25 Richard Sandiford <rsandifo@redhat.com>
4085 * config/mips/mips.md (any_shift): New code macro.
4086 (optab, insn): New code attributes.
4087 ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
4088 Use the standard rather than internal patterns for the MIPS16
4089 double-shift optimization.
4090 (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
4091 Redefine using :GPR and any_shift.
4092 (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
4093 to cover all three shifts.
4094 (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
4095 Redefine using any_shift. Use :GPR and any_shift to combine splitters.
4096 (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
4098 2004-08-24 Geoffrey Keating <geoffk@apple.com>
4100 * gimplify.c (lookup_tmp_var): Separate temporaries when not
4103 2004-08-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4105 PR libstdc++/17005 (fix for HP-UX 11.11)
4106 * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
4107 (hppa*-*-hpux*): Consolidate hppa1.0-*-* code. Rework handling of
4108 tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
4109 * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
4110 * config/pa/pa-hpux.h (TARGET_HPUX): Define.
4111 (LINK_SPEC): Handle march=1.0 option.
4112 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
4113 and _XOPEN_SOURCE_EXTENDED for UNIX 95.
4114 (SUBTARGET_OPTIONS): New define.
4115 (LINK_SPEC): Handle march=1.0 option.
4116 (STARTFILE_SPEC): New define.
4117 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
4118 and _XOPEN_SOURCE_EXTENDED for UNIX 95. Additionally, predefine
4119 _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
4120 (SUBTARGET_OPTIONS): New define.
4121 (LINK_SPEC): Handle march=1.0 option.
4122 (STARTFILE_SPEC): New define.
4123 * config/pa/pa.c (override_options): Add code to process -munix= option.
4124 * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
4125 (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
4127 (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
4128 (SUBTARGET_OPTIONS): Provide default define.
4129 * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
4130 STANDARD_STARTFILE_PREFIX_2): New defines.
4131 (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
4132 (ENDFILE_SPEC): Use %O.
4133 * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
4134 Mention issue caused by changing namespace and runtime to UNIX 95/98.
4135 * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
4136 Document -munix=std option.
4138 2004-08-25 Steven Bosscher <stevenb@suse.de>
4140 * cse.c (cse_around_loop, cse_check_loop_start,
4141 cse_set_around_loop): Remove.
4142 (cse_basic_block): Remove the around_loop argument.
4143 (cse_end_of_basic_block): Remove the after_loop argument.
4144 (cse_main): Likewise.
4145 * rtl.h (cse_main): Update prototype.
4146 * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
4147 rest_of_handle_gcse): Update cse_main calls.
4149 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
4151 * tree.h (build_int_cst): New, sign extended constant.
4152 (build_int_cstu): New, zero extended constant.
4153 (build_int_cst_wide): Renamed from build_int_cst.
4154 * tree.c (build_int_cst, build_int_cstu): New.
4155 (build_int_cst_wide): Renamed from build_int_cst.
4156 (make_vector_type, build_common_tree_nodes,
4157 build_common_tree_nodes_2): Adjust build_int_cst calls.
4158 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
4159 expand_builtin_strpbrk, expand_builtin_fputs,
4160 build_string_literal, expand_builtin_printf,
4161 expand_builtin_sprintf, fold_builtin_classify_type,
4162 fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
4163 fold_builtin_toascii, fold_builtin_isdigit,
4164 simplify_builtin_strstr, simplify_builtin_strpbrk,
4165 fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
4166 * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
4167 DEF_ATTR_INT): Likewise.
4168 * c-decl.c (complete_array_type, check_bitfield_type_and_width):
4170 * c-lex.c (interpret_integer, lex_charconst): Likewise.
4171 * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
4172 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4173 * c-typeck.c (really_start_incremental_init, push_init_level,
4174 set_nonincremental_init_from_string): Likewise.
4175 * calls.c (load_register_parameters): Likewise.
4176 convert.c (convert_to_pointer): Likewise.
4177 coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
4178 build_fn_info_type, build_fn_info_value, build_ctr_info_value,
4179 build_gcov_info): Likewise.
4180 * except.c (init_eh, assign_filter_values): Likewise.
4181 * expmed.c (store_fixed_bit_field, extract_bit_field,
4182 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
4183 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
4184 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
4185 * expr.c (convert_move, emit_group_load, emit_group_store,
4186 expand_assignment, store_constructor, store_field,
4187 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
4188 fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
4189 invert_truthvalue, optimize_bit_field_compare,
4190 decode_field_reference, all_ones_mask_p, constant_boolean_node,
4191 fold_div_compare, fold, fold_read_from_constant_string,
4192 fold_negate_const, fold_abs_const, fold_not_const, round_up,
4193 round_down): Likewise.
4194 * function.c (assign_parm_setup_block): Likewise.
4195 * stmt.c (shift_return_value, expand_case, estimate_case_costs):
4197 * stor-layout.c (layout_type, initialize_sizetypes,
4198 set_min_and_max_values_for_integral_type): Likewise.
4199 * tree-chrec.c (chrec_fold_multiply_poly_poly,
4200 reset_evolution_in_loop): Likewise.
4201 * tree-chrec.h (build_polynomial_chrec): Likewise.
4202 * tree-complex.c (build_replicated_const): Likewise.
4203 * tree-eh.c (honor_protect_cleanup_actions,
4204 lower_try_finally_onedest, lower_try_finally_copy,
4205 lower_try_finally_switch): Likewise.
4206 * tree-mudflap.c (mf_build_string, mx_register_decls,
4207 mudflap_register_call, mudflap_enqueue_constant): Likewise.
4208 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
4209 * tree-pretty-print.c (dump_generic_node): Likewise.
4210 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
4212 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
4213 * tree-ssa-loop-niter.c (number_of_iterations_cond,
4214 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
4216 * tree-ssa-loop-ivcanon.c (create_canonical_iv,
4217 canonicalize_loop_induction_variables): Likewise.
4218 * tree-vectorizer.c (vect_create_index_for_array_ref,
4219 vect_transform_loop_bound, vect_compute_data_ref_alignment):
4222 * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
4223 alpha_gimplify_va_arg_1): Likewise.
4224 * config/arm/arm.c (arm_get_cookie_size): Likewise.
4225 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
4226 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
4227 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
4228 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
4229 mips_gimplify_va_arg_expr): Likewise.
4230 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
4231 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
4232 add_compiler_branch_island): Likewise.
4233 * config/s390/s390.c (s390_va_start): Likewise.
4234 * config/sh/sh.c (sh_va_start): Likewise.
4235 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
4237 * config/xtensa/xtensa.c (xtensa_va_start,
4238 xtensa_gimplify_va_arg_expr): Likewise.
4240 * objc/objc-act.c (build_objc_string_object,
4241 build_objc_symtab_template, init_def_list, init_objc_symtab,
4242 init_module_descriptor, generate_static_references,
4243 build_selector_translation_table, get_proto_encoding,
4244 build_typed_selector_reference, build_selector_reference,
4245 build_next_objc_exception_stuff,
4246 build_method_prototype_list_template, generate_descriptor_table,
4247 generate_protocols, build_protocol_initializer,
4248 build_ivar_list_template, build_method_list_template,
4249 build_ivar_list_initializer, generate_ivars_list,
4250 generate_dispatch_table, generate_protocol_list,
4251 build_category_initializer, build_shared_structure_initializer,
4252 generate_shared_structures, handle_impent,
4253 generate_objc_image_info): Likewise.
4255 2004-04-25 Paolo Bonzini <bonzini@gnu.org>
4257 * cfglayout.c (duplicate_insn_chain): Remove references to
4258 NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
4259 * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
4260 * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
4261 * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
4262 and NOTE_INSN_LOOP_CONT.
4263 * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
4264 * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
4265 and NOTE_INSN_LOOP_CONT.
4266 * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
4267 check_dbra_loop, loop_dump_aux): Remove references to removed notes
4269 * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
4270 * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
4271 references to removed notes and fields.
4272 (subtract_reg_term, ujump_to_loop_cont): Remove.
4274 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
4276 * doc/install.texi: Document that libcpp does not require
4277 Automake any longer. Document that Automake 1.9.1 should
4280 2004-08-25 Zack Weinberg <zack@codesourcery.com>
4282 * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
4283 * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
4284 DWARF_DEBUGGING_INFO from choice-of-definition chain;
4285 restructure using C89 features (#elif, #error).
4286 * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
4287 * config/sh/sh.h: Remove references to DWARF_DEBUG.
4288 * doc/invoke.texi: Remove references to DWARF version 1;
4289 clarify why -gdwarf-2<n> doesn't work.
4291 2004-08-25 Zack Weinberg <zack@codesourcery.com>
4293 * basic-block.h (BB_SET_PARTITION): Clear old value first.
4294 * cfg.c (clear_bb_flags): Don't clear partition setting.
4295 * ifcvt.c (find_if_case_1): Remove ??? comment.
4297 2004-08-25 Alan Modra <amodra@bigpond.net.au>
4300 * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
4301 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
4302 current_function_stdarg in place of sysv_varargs_p.
4303 * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
4306 2004-08-24 Richard Henderson <rth@redhat.com>
4309 * config/i386/i386.c (legitimate_constant_p): Rework to not accept
4310 random codes within CONST.
4312 2004-08-24 James E Wilson <wilson@specifixinc.com>
4314 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
4315 -freorder-blocks-and-partition.
4317 2004-08-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4320 * tree-ssa-threadupdate.c (redirection_data): Make static.
4321 (thread_block): Use ggc_alloc_cleared to allocate struct
4322 redirection_data. Don't free elements in redirection_data.
4324 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
4326 * config/mips/predicates.md (small_data_pattern): Match prefetches.
4328 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4330 PR tree-optimization/17016
4331 * tree-ssa-loop-niter.c (number_of_iterations_cond,
4332 number_of_iterations_exit): Use POINTER_TYPE_P instead
4333 of testing for POINTER_TYPE.
4335 2004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4337 * tree-ssa-loop-ivcanon.c: New file.
4338 * tree-ssa-loop-manip.c (create_iv): New function.
4339 * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
4340 (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
4341 * cfgloop.c (mark_single_exit_loops): New function.
4342 (verify_loop_structure): Verify single-exit loops.
4343 * cfgloop.h (struct loop): Add single_exit field.
4344 (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
4345 (mark_single_exit_loops): Declare.
4346 (tree_num_loop_insns): Declare.
4347 * cfgloopmanip.c (update_single_exits_after_duplication): New function.
4348 (duplicate_loop_to_header_edge): Use it.
4349 * common.opt (fivcanon): New flag.
4350 * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
4351 * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
4352 (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
4353 (bsi_insert_on_edge_immediate): New function.
4354 * tree-flow.h (bsi_insert_on_edge_immediate,
4355 canonicalize_induction_variables, tree_unroll_loops_completely,
4356 create_iv): Declare.
4357 * tree-optimize.c (init_tree_optimization_passes): Add
4358 pass_iv_canon and pass_complete_unroll.
4359 * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
4360 * tree-scalar-evolution.c (get_loop_exit_condition,
4361 get_exit_conditions_rec, number_of_iterations_in_loop,
4362 scev_initialize): Use single_exit information.
4363 * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
4364 missing assumptions.
4365 (loop_niter_by_eval): Return number of iterations as unsigned
4367 * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
4368 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
4369 tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
4371 (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
4372 * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
4373 the defining statement is ready.
4374 * tree-vectorizer.c (vect_create_iv_simple): Removed.
4375 (vect_create_index_for_array_ref, vect_transform_loop_bound):
4377 (vect_transform_loop_bound): Use single_exit information.
4378 (vect_analyze_loop_form): Cleanup bogus tests.
4379 (vectorize_loops): Do not call flow_loop_scan.
4380 * tree.h (may_negate_without_overflow_p): Declare.
4381 * fold-const.c (may_negate_without_overflow_p): Split out from ...
4382 (negate_expr_p): ... this function.
4383 (tree_expr_nonzero_p): Handle overflowed constants correctly.
4384 * doc/invoke.texi (-fivcanon): Document.
4385 * doc/passes.texi: Document canonical induction variable creation.
4387 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
4389 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
4390 * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
4391 using the mode of the operand to decide between them.
4392 * config/mips/mips.md (MOVECC): New mode macro.
4393 (ccreg): New mode attribute.
4394 (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
4395 Redefine using :GPR and :MOVECC. Use %T and %t for the condition.
4396 (mov[sd]icc): Redefine using :GPR.
4398 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
4400 * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
4401 (mips_prefetch_cookie): New function.
4402 * config/mips/mips.c (print_operand_address): Fix handling of
4404 (mips_emit_prefetch): Delete.
4405 (mips_prefetch_cookie): New function.
4406 * config/mips/mips.md (prefetch): Turn into a define_insn. Use a
4407 mode of QImode for the address_operand. Use mips_prefetch_cookie
4408 to calculate the first "pref" operand.
4409 (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
4410 (prefetch_indexed_[sd]i): Redefine using :P. Use mips_prefetch_cookie.
4412 2004-08-24 Richard Earnshaw <rearnsha@arm.com>
4414 * arm.md: Include predicates.md.
4415 * predicates.md: New file.
4416 * arm.c (s_register_operand, arm_hard_register_operand)
4417 (arm_general_register_operand, f_register_operand, reg_or_int_operand)
4418 (arm_immediate_operand, arm_neg_immediate_operand)
4419 (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
4420 (arm_add_operand, arm_addimm_operand, arm_not_operand)
4421 (offsettable_memory_operand, alignable_memory_operand)
4422 (arm_reload_memory_operand, arm_float_rhs_operand)
4423 (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
4424 (index_operand, shiftable_operator, logical_binary_operator)
4425 (shift_operator, equality_operator, arm_comparison_operator)
4426 (minmax_operator, cc_register, dominant_cc_register)
4427 (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
4428 (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
4429 (const_shift_operand, load_multiple_operation)
4430 (store_multiple_operation, multi_register_push, thumb_cmp_operand)
4431 (thumb_cmpneg_operand, thumb_cbrch_target_operand)
4432 (cirrus_register_operand, cirrus_fp_register)
4433 (cirrus_shift_const): Delete, replaced with equivalents in
4435 (shift_op): Handle ROTATE.
4436 * arm-protos.h: Delete declarations for above.
4437 * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
4438 * t-arm (MD_INCLUDES): Add predicates.md.
4439 (s-preds): Depends on MD_INCLUDES.
4441 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
4443 * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
4444 * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
4445 patterns. Redefine using :GPR. Give the match_operator a mode.
4446 Use '%2' rather than '%z2' for operand 2.
4448 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
4450 * config/mips/mips.md (load_call[sd]i): Redefine using :P. Add mode
4453 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
4455 * config/mips/mips.md (indirect_jump): Use force_reg. Adjust names
4456 of internal patterns.
4457 (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
4459 (tablejump): Use expand_binop to calculate address. Adjust names
4460 of internal patterns.
4461 (tablejump[sd]i): Renamed from tablejump_internal[12].
4463 (tablejump_mips16[12]): Delete.
4465 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
4467 * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
4468 (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
4469 (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
4470 (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
4471 (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
4473 2004-08-24 Richard Sandiford <rsandifo@redhat.com>
4475 * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
4476 (*branch_zero[sd]i): Renamed from branch_zero{,_di}. Redefine
4478 (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
4479 (*branch_equality[sd]i): Likewise branch_equality{,_di}.
4480 (*branch_equality[sd]i_inverted): Likewise
4481 branch_equality{,_di}_inverted.
4482 (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
4483 Redefine using :GPR.
4485 2004-08-24 Zack Weinberg <zack@codesourcery.com>
4487 * rtl.def: Reorganize, placing all codes used only in machine
4488 descriptions at the end.
4490 * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
4491 * gengtype.c: Don't include rtl.h. Define enum rtx_code and
4492 rtx_name, rtx_format arrays by direct reference to rtl.def,
4493 first undefining GENERATOR_FILE. Define enum insn_note and
4494 note_insn_name array by direct reference to insn-notes.def.
4495 (adjust_field_rtx_def): Remove local definition of rtx_name.
4496 Use symbolic names for insn notes.
4497 * Makefile.in (gengtype.o): Update dependencies.
4499 2004-08-24 Zack Weinberg <zack@codesourcery.com>
4501 * basic-block.h (struct basic_block_def): Reorder fields to
4502 eliminate interior padding. Remove 'partition' field.
4503 (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
4504 (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
4505 (BB_COPY_PARTITION): New macros.
4506 * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
4507 Replace all references to the 'partition' field of a basic
4508 block with new macros.
4510 * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
4511 * final.c (final_scan_insn): Don't handle it.
4512 * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
4513 instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
4514 * sched-rgn.c (sched_is_disabled_for_current_region_p):
4515 Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
4517 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
4519 * c-decl.c (c_init_decl_processing): Adjust
4520 build_common_tree_nodes call.
4521 * expmed.c (const_mult_add_overflow_p): Use
4522 build_distinct_type_copy.
4523 * stor-layout.c (early_type_list): Remove.
4524 (layout_type): Don't append to early_type_list.
4525 (initialize_sizetypes): Add signed_p argument.
4526 (set_sizetype): Overwrite the stub type nodes directly.
4527 * tree.c (copy_node_stat): Clear a type's value cache here ...
4528 (build_distinct_type): ... not here.
4529 (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
4530 * tree.h (initialize_sizetypes): Add signed_p argument.
4531 (build_common_tree_nodes): Likewise.
4533 * objc/objc-act.c (get_static_reference): Use
4534 build_variant_type_copy.
4535 (get_protocol_reference): Likewise.
4536 * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
4538 2004-08-24 Richard Henderson <rth@redhat.com>
4539 Andrew Pinski <apinski@apple.com>
4541 * gimplify.c (gimplify_array_ref_to_plus): Delete.
4542 (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
4545 * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
4546 ARRAY_REF also to get to the STRING_CST.
4548 2004-08-24 Paul Brook <paul@codesourcery.com>
4550 * config/arm/arm.c (arm_override_options): Update error message.
4551 * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
4552 TARGET_HARD_FLOAT_ABI.
4553 (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
4554 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
4556 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4559 * config/m32r.md (movsi_sda): Add SI mode specification to
4562 2004-08-24 Nick Clifton <nickc@redhat.com>
4564 * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
4565 of seth_add3_operand.
4567 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
4569 * Makefile.in (PROTO_OBJS): Add errors.o.
4570 * protoize.c (fancy_abort): Remove.
4571 * mips-tfile.c (fancy_abort): Add parameters.
4573 2004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
4575 * doc/trouble.texi (C++ misunderstandings): Fix example code.
4577 2004-08-24 Andreas Tobler <a.tobler@schweiz.ch>
4579 * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
4580 (host-default.o): Add dependency on HOOKS_H.
4581 * config/x-linux: Likewise.
4582 * config/x-solaris: Likewise.
4583 * config/i386/x-mingw32: Likewise.
4584 * config/rs6000/x-darwin: Likewise.
4586 2004-08-23 James E Wilson <wilson@specifixinc.com>
4588 * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
4591 2004-08-23 Mark Mitchell <mark@codesourcery.com>
4594 * dwarf2out.c (loc_descriptor_from_tree): Robustify.
4596 2004-08-23 Diego Novillo <dnovillo@redhat.com>
4598 * cfg.c (check_bb_profile): Fix typos.
4599 * function.c (assign_parm_is_stack_parm): Likewise.
4600 * tree-nested.c: Likewise.
4602 2004-08-23 Daniel Jacobowitz <dan@debian.org>
4604 * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
4606 (ggc_alloc_zone_1): Mark TYPE as unused. Don't save it in the chunk.
4608 2004-08-23 Eric Christopher <echristo@redhat.com>
4610 * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
4611 * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
4612 * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
4614 * hooks.h: Include machmode.h.
4615 (hook_bool_mode_false): Declare.
4616 * hooks.c (hook_bool_mode_false): Define.
4617 * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
4618 * stor-layout.c (layout_type): Ditto.
4619 * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
4620 Define to target macro.
4621 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
4622 * config/arm/arm.c: Ditto. Use.
4623 * config/arm/arm.h: Ditto.
4624 * config/arm/arm-protos.h: Ditto.
4625 * config/i386/i386.c: Ditto.
4626 * config/i386/i386.h: Ditto.
4627 * config/rs6000/rs6000.c: Ditto.
4628 * config/rs6000/rs6000.h: Ditto.
4629 * config/sh/sh.c: Ditto.
4630 * config/sh/sh.h: Ditto.
4631 * config/sh/sh-protos.h: Ditto.
4632 * config/sh/sh.md: Use.
4633 * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
4634 to TARGET_VECTOR_MODE_SUPPORTED_P.
4636 2004-08-23 Nathan Sidwell <nathan@codesourcery.com>
4638 * Makefile.in (BUILD_ERRORS): Set to build-errors.
4639 (errors.o): New target for host.
4640 (build-errors.o): New target for build.
4641 (genobjs): Replace errors.o with build-errors.
4642 (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
4643 (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
4644 (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
4645 (fix-header.o): Add errors.h
4646 * collect2.c (fancy_abort): Add parameters.
4647 * collect2.h (fancy_abort): Don't declare.
4648 * errors.h (fancy_abort): Don't declare.
4649 * errors.c: Include either bconfig.h or config.h.
4650 (fancy_abort): Trim filename.
4651 * fix-header.c (v_fatal, fatal): Remove.
4652 (progname): Remove definition.
4653 (main): Set progname here.
4654 * gcc.c (fancy_abort): Add parameters.
4655 * gcc.h (fancy_abort): Remove declaration.
4656 * gcov.c (fancy_abort): Remove.
4657 * rtl.h (fancy_abort): Don't declare.
4658 (abort): Don't define.
4659 * tree.h (fancy_abort): Don't declare.
4660 (abort): Don't define.
4661 * system.h (fancy_abort): Declare.
4662 (abort): Define to fancy_abort.
4663 * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
4665 * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
4666 (usize_type, ubitsizetype): Remove.
4667 * stor-layout.c (set_sizetype): Don't initialize usizetype,
4669 * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
4671 * tree.h (build_distinct_type_copy): New.
4672 (build_type_copy): ... here. Rename to ...
4673 (build_variant_type_copy): ... here.
4674 * tree.c (build_qualified_type): Rename build_type_copy call.
4675 (build_distinct_type_copy): New, broken out of ...
4676 (build_type_copy): ... here. Rename to ...
4677 (build_variant_type_copy): ... here. Use
4678 build_distinct_type_copy.
4679 (build_common_tree_nodes_2): Rename build_type_copy call.
4680 * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
4682 (handle_packed_attribute, handle_unused_attribute,
4683 handle_transparanet_union_attribute, handle_aligned_attribute,
4684 handle_deprecated_attribute): Likewise.
4685 * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
4687 * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
4688 * config/rs6000/rs6000.c (rs6000_init_builtins): Use
4689 build_distinct_type_copy.
4691 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
4693 * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode
4696 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
4698 * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
4700 (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
4701 formerly unnamed patterns. Redefine using :P for the address. Remove
4702 explicit length attributes.
4704 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4706 * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
4708 (single_reachable_address): Use them.
4709 (schedule_sm): Add dump.
4710 (is_call_clobbered_ref): New function.
4711 (determine_lsm_reg): Check whether the reference is call clobbered.
4712 Only work for gimple_reg_type values.
4714 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
4716 * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
4717 $31 store insns. Redefine using :GPR.
4719 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
4721 * config/mips/mips.md (P): New mode macro.
4722 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
4723 (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
4724 Add mode attributes.
4726 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
4728 * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
4729 (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle
4730 later constants to cover the gap.
4731 (load, store): New mode attributes.
4732 (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
4733 Use new unspec constants.
4735 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
4737 * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
4738 (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns
4739 to use register_operand rather than uns_arith_operand as the predicate
4740 for operand 1. Remove redundant MIPS16 force_reg() for operand 1.
4741 (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
4742 Redefine using :GPR. Make same predicate change here. Extend the
4743 commutativity of operands 1 and 2 from the SImode version to the
4745 (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
4746 but with no predicate changes.
4747 (*nor[sd]i3): Redefine using :GPR.
4749 2004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4751 * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
4754 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
4756 * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
4757 * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use
4758 branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%."
4759 rather than "%z2" (with a fake const0_rtx for operand 2).
4760 (ffs[sd]i2): Redefine using :GPR.
4761 (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case.
4763 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
4765 * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
4767 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
4769 * config/mips/mips.md (any_extend): New code macro.
4770 (u, su): New code attributes.
4771 ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
4772 ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
4773 ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
4774 (*{s,u}mul_acc_di): Redefine using any_extend.
4775 (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns
4776 to reflect real insn names.
4777 (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
4778 with an any_extend template.
4779 ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
4782 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
4784 * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
4785 * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
4786 (mul[sd]i3_r4000): Redefine using :GPR.
4787 (mulsi3_mult3): Don't check TARGET_MAD separately.
4788 (muldi3_mult3): Moved after mulsi_mult3.
4790 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
4792 * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
4793 OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld.
4794 * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down.
4795 (TARGET_GAS, TARGET_MIPS_AS): Delete.
4796 (TARGET_GPWORD): Define to true for n32 on IRIX.
4797 (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op.
4798 (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
4799 (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
4800 (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
4801 (MDEBUG_ASM_SPEC): Delete, folding into...
4802 (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
4803 (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches.
4804 (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
4805 subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT
4806 to define asm_abi_default_spec.
4807 (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
4808 (TARGET_ASM_SELECT_SECTION): Delete.
4809 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
4810 for non-mips16 code, removing previous workaround for SGI assemblers.
4811 (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
4812 (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
4813 (override_options): Remove !TARGET_GAS and !have_named_sections code.
4814 (print_operand): Fold TARGET_GAS conditionals into asm strings.
4815 (mips_output_filename): Remove !TARGET_GAS code. Replace use of
4816 ASM_STABS_OP and ASM_STABN_OP.
4817 (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
4818 (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
4819 (mips_output_function_prologue): Remove !TARGET_GAS code.
4820 (mips_select_rtx_section): Remove !have_named_sections code.
4821 (mips_select_section): Delete.
4822 * config/mips/mips.md (trap): Remove !TARGET_GAS check.
4823 * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
4824 * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
4825 (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
4826 * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
4827 * config/mips/windiss.h (ASM_SPEC): Likewise.
4829 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
4831 * read-rtl.c (map_value, mapping, macro_group): New structures.
4832 (BELLWETHER_CODE): New macro.
4833 (modes, codes, bellwether_codes): New variables.
4834 (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
4835 (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
4836 (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
4837 (add_condition_to_rtx, apply_macro_traverse, add_mapping)
4838 (add_map_value, initialize_macros): New functions.
4839 (def_hash, def_hash_eq_p): Generalize to anything that points to,
4840 or starts with, a char * field.
4841 (find_macro, read_mapping, check_code_macro): New functions.
4842 (read_rtx_1): New, split out from read_rtx. Handle the new
4843 define_{mode,code}_{macro,attr} constructs. Use find_macro
4844 to parse the name of a code or mode. Use BELLWETHER_CODE to
4845 extract the format and to choose a suitable code for rtx_alloc.
4846 Modify recursive invocations to use read_rtx_1.
4847 (read_rtx): Call initialize_macros. Apply code and mode macros
4848 to the rtx returned by read_rtx_1. Cache everything after the
4849 first macro expansion for subsequent read_rtx calls.
4850 * doc/md.texi: Document new .md constructs.
4851 * config/mips/mips.md (GPR): New mode macro.
4852 (d, si8_di5): New mode attributes.
4853 (any_cond): New code macro.
4854 (add[sd]i3): Redefine using :GPR.
4855 (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
4856 (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
4857 previously unnamed MIPS16 patterns.
4858 (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long
4859 lines. Don't match (plus (const_int 0) ...).
4860 (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
4861 Use a define_split to generate the addition.
4862 (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn.
4863 (subsi3_internal): Delete.
4864 (*subsi3_extended): Renamed from subsi3_internal_2.
4865 (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
4866 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
4867 using an any_cond template.
4869 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
4871 * read-rtl.c (read_rtx): Tidy use of format_ptr.
4873 2004-08-23 Richard Sandiford <rsandifo@redhat.com>
4875 * read-rtl.c (string_obstack): New file-scope variable.
4876 (read_string, read_quoted_string, read_braced_string)
4877 (read_escape): Remove obstack parameter and use string_obstack instead.
4878 (read_rtx): Remove function-local rtl_obstack and initialize
4879 string_obstack instead. Update call to read_string.
4881 2004-08-22 Andrew Pinski <apinski@apple.com>
4884 * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
4885 expression is not constant.
4886 (c_finish_return): Do not go through INDIRECT_REF when looking
4887 for the inner expression of an ADDR_EXPR for warning about.
4889 2004-08-22 Richard Henderson <rth@redhat.com>
4892 * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
4893 create new blocks and fall through.
4894 (expand_gimple_basic_block): Update to match.
4896 2004-08-22 Ulrich Weigand <uweigand@de.ibm.com>
4898 * reload.c (find_reloads_address): Make return value tri-state.
4899 Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
4900 (find_reloads): Assume that reloaded addresses match 'o' or
4901 EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
4902 returned 1 (not -1). Omit optional reloads for address operands
4903 only if find_reloads_address returned 1 (not -1).
4905 * config/s390/s390.c (legitimize_reload_address): New function.
4906 * config/s390/s390-protos.h (legitimize_reload_address): Declare.
4907 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call
4908 legitimize_reload_address.
4910 2004-08-22 Richard Hendersion <rth@redhat.com>
4912 * tree.h (SAVE_EXPR_RESOLVED_P): New.
4913 * gimplify.c (gimplify_save_expr): Use it.
4914 * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
4915 on the temporary variable.
4917 2004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
4919 * fold-const.c (rtl_expr_nonnegative_p): Delete.
4920 * tree.h (rtl_expr_nonnegative_p): Remove.
4922 2004-08-22 Steven Bosscher <stevenb@suse.de>
4924 * config/i386/ppro.md (ppro_complex_insn): Add missing check
4925 for cpu==pentiumpro.
4927 * combine.c (struct reg_stat): Fix comment typo.
4929 2004-08-22 Joseph S. Myers <jsm@polyomino.org.uk>
4931 * c-tree.h (c_sizeof_nowarn): Remove.
4933 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
4935 * c-decl.c (set_array_declarator_type): Rename to
4936 set_array_declarator_inner.
4937 (build_c_parm, build_attrs_declarator, build_function_declarator):
4939 (make_pointer_declarator): Call build_attrs_declarator.
4940 * c-tree.h (set_array_declarator_type): Rename to
4941 set_array_declarator_inner.
4942 (build_c_parm, build_attrs_declarator, build_function_declarator):
4944 * c-parse.in (after_type_declarator,
4945 parm_declarator_starttypename, parm_declarator_nostarttypename,
4946 notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
4947 firstparm): Use these functions
4949 2004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
4951 * c-decl.c (build_array_declarator, set_array_declarator_type,
4952 start_decl, grokdeclarator, grokparms): Change boolean parameters
4954 * c-tree.h (build_array_declarator, set_array_declarator_type,
4955 start_decl): Update prototypes.
4956 * c-decl.c, c-parse.in: All callers changed.
4958 2004-08-21 Mike Stump <mrs@apple.com>
4960 * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
4961 (darwin_fix_and_continue): Likewise.
4962 (darwin_fix_and_continue_switch): Likewise.
4963 * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
4964 (darwin_fix_and_continue): Likewise.
4965 (darwin_fix_and_continue_switch): Likewise.
4967 2004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
4970 * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
4971 Remove, merging into ...
4972 (gen_stdcall_or_fastcall_suffix): New function, returning tree
4973 rather than const char*, and accepting additional parameter.
4974 Don't add suffix to '*'-prefixed symbols or variadic functions.
4975 (i386_pe_encode_section_info): Adjust for call to new function.
4976 Call change_decl_assembler_name.
4978 2004-08-20 Mike Stump <mrs@apple.com>
4980 * config/darwin.c (machopic_indirect_data_reference): Mark
4982 * config/386/386.c (darwin_local_data_pic): Add.
4983 (legitimate_constant_p): Reorder so that PLUS handling runs
4984 before darwin_local_data_pic to match the ordering in
4985 legitimate_pic_address_disp_p and so that MINUS runs after
4986 darwin_local_data_pic as otherwise the darwin_local_data_pic
4987 logic can be skipped, which would be very bad.
4988 (legitimate_pic_address_disp_p): Move from from here to
4989 darwin_local_data_pic so it can be reused.
4991 2004-08-21 Alan Modra <amodra@bigpond.net.au>
4993 * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
4994 (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
4995 (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
4996 (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
4997 (RS6000_ABI_NAME): Define as "linux".
4998 (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
4999 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
5000 ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
5001 * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
5002 * config/rs6000/rs6000.c (dot_symbols): New global var.
5003 (rs6000_output_function_entry): New function, modified for
5005 (print_operand <case 'z'>): ..extracted from here.
5006 (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
5007 (rs6000_output_function_epilogue): Likewise.
5008 (rs6000_elf_declare_function_name): Likewise.
5009 * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
5010 (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
5011 * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
5012 * configure: Regenerate.
5013 * config.in: Regenerate.
5015 2004-08-20 Mark Mitchell <mark@codesourcery.com>
5017 * reload.c (find_reloads_address): Fix thinko in previous change.
5019 * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
5022 2004-08-20 Jakub Jelinek <jakub@redhat.com>
5024 PR rtl-optimization/17099
5025 * combine.c (force_to_mode): Check if inner_mask has any bits set
5026 outside of GET_MODE (x) instead of op_mode.
5028 2004-08-20 Mark Mitchell <mark@codesourcery.com>
5030 * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
5032 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
5033 (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
5034 * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
5036 (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
5038 * config/arm/t-symbian: New file.
5040 2004-08-20 Andrew Pinski <apinski@apple.com>
5042 * regrename.c (kill_value_regno): ANSIfy.
5044 2004-08-20 Dale Johannesen <dalej@apple.com>
5046 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
5048 2004-08-20 Daniel Jacobowitz <dan@debian.org>
5050 * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
5051 (kill_value_regno): New function, derived from kill_value.
5052 (kill_value): Update.
5053 (copyprop_hardreg_forward_1): Update call to kill_value_regno.
5055 2004-08-20 Daniel Berlin <dberlin@dberlin.org>
5057 Fix PR tree-optimization/17111
5058 * tree-ssa-pre.c (create_value_expr_from): Don't change the types
5059 of non-value_handles.
5060 (bitmap_set_contains): All constants are in every set.
5062 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
5064 * fold-const.c (round_up, round_down): Use build_int_cst.
5065 Optimize common case.
5067 2004-08-20 Zack Weinberg <zack@codesourcery.com>
5068 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5070 * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
5071 one_only_data_section): Rename to som_readonly_data_section,
5072 som_one_only_readonly_data_section and som_one_only_data_section.
5073 * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
5074 NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
5075 conditional defines.
5076 (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
5077 NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
5079 (pa_select_section): Use renamed section functions.
5080 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
5081 SOM_READONLY_DATA_SECTION_FUNCTION,
5082 SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
5083 SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
5085 * config/pa/som.h: ... not here.
5086 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
5087 ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
5088 ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
5089 ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
5090 (READONLY_DATA_SECTION): Use som_readonly_data_section.
5092 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
5094 * fold-const.c (int_const_binop): Don't generate non-overflowing
5095 size-types specially.
5096 (fold_convert_const): Likewise.
5098 * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
5099 clear cache on copied sizetype.
5101 2004-08-20 Ben Elliston <bje@au.ibm.com>
5103 * configure.ac: Don't escape apostrophe in --enable-coverage help.
5104 * configure: Regenerate.
5106 2004-08-20 Danny Smith <dannysmith@users.sourceforge.net>
5109 * gcc.c (struct stat input_stat): Don't define if
5110 HOST_LACKS_INODE_NUMBERS
5111 (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
5112 than stat to determine if temp file is same as input file.
5113 * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
5114 * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
5116 2004-08-20 Richard Sandiford <rsandifo@redhat.com>
5118 * configure.ac (mips*-*-*): Print an error if not using GAS.
5119 * configure: Regenerated.
5120 * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove
5121 comments about buggy MIPSpro assemblers.
5122 * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h
5123 before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix.
5124 Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for
5125 IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld.
5126 * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
5127 (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
5128 (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
5129 (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
5130 (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
5131 of more general IRIX 6 definitions.
5132 (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
5133 (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
5134 (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
5135 (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
5136 (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
5137 (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
5138 (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
5139 (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
5140 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
5141 (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
5142 (LINK_SPEC): Move most of definition to iris.h.
5143 (SUBTARGET_LINK_SPEC): New macro.
5144 (IRIX_STARTFILE_SPEC): Fold into...
5145 (STARTFILE_SPEC): ...here.
5146 (IRIX_ENDFILE_SPEC): Fold into...
5147 (ENDFILE_SPEC): ...here.
5148 * config/mips/iris6.h (TARGET_IRIX5): Remove override.
5149 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
5150 (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
5151 (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
5152 (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
5153 (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits.
5154 (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
5155 (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
5156 (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
5157 (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
5158 (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
5159 (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
5160 (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
5161 (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
5162 (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
5163 (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
5164 (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
5165 (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
5166 (TARGET_IRIX6): Define to 1.
5167 (DRIVER_SELF_SPECS): Define.
5168 (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
5169 (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
5170 (SUBTARGET_LINK_SPEC): New macro.
5171 (IRIX_STARTFILE_SPEC): Fold into...
5172 (STARTFILE_SPEC): ...here. Remove !mabi=* case.
5173 (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
5174 (LIB_SPEC, LIBGCC_SPEC): Use them.
5175 (LIB_SPEC): Remove !mabi=* case.
5176 (IRIX_ENDFILE_SPEC): Fold into...
5177 (ENDFILE_SPEC): ...here. Remove !mabi=* case.
5178 * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
5179 * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
5180 (TARGET_IRIX6): New macro.
5181 (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
5182 (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
5183 (LABEL_AFTER_LOC): Delete.
5184 * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
5185 (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
5186 (mips_build_builtin_va_list): Check TARGET_IRIX6.
5187 (override_options): Remove TARGET_SGI_O32_AS-related code.
5188 (irix_output_external_libcall): Make static.
5189 (mips_output_filename): Avoid use of SET_FILE_NUMBER and
5191 (mips_file_start): Tidy guard for ABI sections. Remove use of
5192 ABICALLS_ASM_OP; use .abicalls instead.
5193 (mips_output_aligned_decl_common, mips_declare_object_name)
5194 (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
5195 (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
5196 .globl foo .text directives.
5197 (irix_asm_named_section_1, irix_asm_named_section)
5198 (irix_section_align_entry, irix_section_align_htab)
5199 (irix_orig_asm_out_file, irix_section_align_entry_eq)
5200 (irix_section_align_entry_hash, irix_asm_output_align)
5201 (irix_file_start, irix_section_align_1, copy_file_data)
5202 (irix_file_end, irix_section_type_flags): Delete.
5203 * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
5204 Use standard section syntax. Remove protective "jr $31".
5205 (__gcc_fini): Likewise .gcc_fini.
5206 * config/mips/irix-crtn.asm: Adjust sections accordingly.
5207 * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
5209 * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
5211 (EXTRA_MULTILIB_PARTS): Define.
5212 * config/mips/t-iris6: Remove bogus comment.
5213 (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
5214 * config/mips/iris5gas.h, config/mips/iris5gld.h,
5215 config/mips/iris6gas.h, config/mips/iris6gld.h,
5216 config/mips/t-iris5-as, config/mips/t-iris5-gas
5217 config/mips/t-irix-gld: Delete.
5218 * config/mips/iris.h: New file.
5219 * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
5221 2004-08-20 Richard Earnshaw <rearnsha@arm.com>
5223 * postreload.c (reload_cse_move2add): Allow any condjump, but check
5224 that the implicit set isn't clobbered in the jump insn.
5226 2004-08-19 Mark Mitchell <mark@codesourcery.com>
5228 * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
5229 * optabs.c (init_optabs): Don't check it.
5230 * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
5231 * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
5233 2004-08-18 Andreas Krebbel <krebbel1@de.ibm.com>
5235 * config/s390/s390.md (s390_warn_framesize_string)
5236 (s390_warn_dynamic_string, s390_stack_size_string)
5237 (s390_stack_guard_string): New global string variables.
5238 (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
5239 (s390_stack_guard): New global variables.
5240 (override_options): Added checks for the new options.
5241 (s390_emit_prologue): Emit stack check and trap code and perform
5242 compile time stack size checking.
5244 * config/s390/s390.h (TARGET_OPTIONS): Added new options
5245 "warn-framesize", "warn-dynamicstack", "stack-size" and
5248 * doc/invoke.texi: Added documentation for the new options.
5250 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
5252 * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
5253 to eliminate warning.
5254 (linear_search_fdes): Declare p as unsigned.
5255 (binary_search_mixed_encoding_fdes): Likewise.
5256 * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
5257 to eliminate warning.
5258 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
5261 2004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
5263 * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
5264 * config/s390/s390.c (preferred_la_operand_p): Accept two operands
5265 instead of one. Check for strictly legitimate address.
5266 * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
5267 to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
5269 2004-08-19 Eric Christopher <echristo@redhat.com>
5271 * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
5272 * langhooks.h (unsave_expr_now): Ditto.
5273 * tree.h (unsave_expr_1): Remove prototype.
5274 (lhd_unsave_expr_now): Rename to unsave_expr_now.
5275 * tree-inline.c (unsave_expr_1): Move here
5276 from tree.c. Make static.
5277 (unsave_expr_now): Rename from lhd_unsave_expr_now.
5278 * tree-sra.c: Fix up for rename.
5279 * tree-ssa-copy.c: Ditto.
5281 * tree.c (unsave_expr_1): Move to tree-inline.c.
5283 2004-08-19 Caroline Tice <ctice@apple.com>
5285 * config/i386/cygming.h (switch_to_section): Fix typo (change
5286 in_unlikely_text_section to in_unlikely_executed_text).
5288 2004-08-19 Daniel Berlin <dberlin@dberlin.org>
5290 * vec.h (VEC_lower_bound): New macro.
5292 2004-08-19 Richard Sandiford <rsandifo@redhat.com>
5295 * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
5296 (mips_arg_info): Update accordingly. Remove common treatment of fpr_p;
5297 treat each ABI separately. Deal with n32/n64 complex float arguments.
5298 (function_arg): Add associated complex handling here.
5300 2004-08-19 Richard Henderson <rth@redhat.com>
5302 * config/arm/arm.c (arm_gen_load_multiple): Use
5303 adjust_automodify_address. Take base memory and offset instead
5304 of unchanging/struct/scalar bits.
5305 (arm_gen_store_multiple): Likewise.
5306 (arm_gen_movmemqi): Use adjust_automodify_address.
5307 * config/arm/arm-protos.h: Update decls.
5308 * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
5309 (store_multiple): Similarly.
5311 2004-08-19 J"orn Rennecke <joern.rennecke@superh.com>
5313 * regclass.c (globalize_reg): Update call_really_used_regs.
5315 2004-08-19 Nathan Sidwell <nathan@codesourcery.com>
5317 * doc/invoke.texi (integer-share-limit): Document.
5319 * tree.h (TYPE_CACHED_VALUES_P): New.
5320 (TYPE_CACHED_VALUES): New.
5321 (TYPE_ORIG_SIZE_TYPE): Adjust.
5322 * tree.def (INTEGER_CST): Update documentation.
5323 * tree.c: Inlcude params.h.
5324 (build_int_cst): Cache small values.
5325 (build_type_copy): Do not copy the value cache.
5326 * c-common.c (c_common_nodes_and_builtins): Add comment, remove
5328 * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
5329 * expmed.c (const_mult_add_overflow_p): Clear type copy's value
5331 * fold-const.c (force_fit_type): Copy value when setting
5333 (int_const_binop): Likewise.
5334 * stor-layout.c: Include params.h
5335 (set_sizetype): Create values cache.
5336 (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
5337 * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
5338 * params.h (INTEGER_SHARE_LIMIT): New.
5339 * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
5341 2004-08-19 Paolo Bonzini <bonzini@gnu.org>
5343 * gimplify.c (gimplify_minimax_expr): Remove.
5344 (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
5346 2004-08-19 Dorit Naishlos <dorit@il.ibm.com>
5348 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
5349 STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
5351 2004-08-19 Mark Mitchell <mark@codesourcery.com>
5353 * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
5355 2004-08-18 Andrew Pinski <apinski@apple.com>
5357 * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
5359 2004-08-18 Mark Mitchell <mark@codesourcery.com>
5361 * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
5362 (__aeabi_ul2f): Likewise.
5364 2004-08-18 Richard Henderson <rth@redhat.com>
5366 * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
5367 move to rtl completely.
5368 (struct meminsnbuf, xtensa_emit_block_move): Remove.
5369 (xtensa_find_mode_for_size): Remove.
5370 * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
5371 * config/xtensa/xtensa.md (movmemsi_internal): Remove.
5373 2004-08-18 Richard Henderson <rth@redhat.com>
5375 * config/mcore/mcore.c (mode_from_align): Remove DImode.
5376 (block_move_sequence): Rewrite to use adjust_address.
5377 (mcore_expand_block_move): Cleanup logic. Accept only operands.
5378 Return boolean indicating success/failure.
5379 * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
5380 * config/mcore/mcore.md (movmemsi): Update to match.
5382 2004-08-18 Mike Stump <mrs@apple.com>
5384 * doc/invoke.texi (-mfix-and-continue): Add support for
5385 fast turn around debugging.
5386 (-ffix-and-continue): Likewise.
5387 (-mindirect-data): Likewise.
5388 (-findirect-data): Likewise.
5389 * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
5390 (indirect_data): Likewise.
5391 (machopic_data_defined_p): Likewise.
5392 (machopic_output_indirection): Likewise.
5393 (darwin_encode_section_info): Likewise.
5394 (darwin_fix_and_continue): Likewise.
5395 (darwin_fix_and_continue_switch): Likewise.
5396 * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
5397 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
5398 (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
5399 (SUBTARGET_OPTIONS): Likewise.
5400 (darwin_fix_and_continue): Likewise.
5401 (darwin_fix_and_continue_switch): Likewise.
5402 (TARGET_FIX_AND_CONTINUE): Likewise.
5403 * config/rs6000.c (rs6000_emit_prologue): Likewise.
5405 2004-08-19 Steven Bosscher <stevenb@suse.de>
5407 * basic-block.h (struct edge_def): Remove crossing_edge.
5408 (EDGE_CROSSING): New define.
5409 (EDGE_ALL_FLAGS): Update.
5410 * bb-reorder.c (find_traces_1_round, better_edge_p,
5411 find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
5412 find_jump_block, fix_crossing_conditional_branches,
5413 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
5414 Replace all occurences of crossing_edge with an edge flag check
5416 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
5417 try_crossjump_bb): Likewise.
5418 * cfglayout.c (fixup_reorder_chain): Likewise.
5419 * cfgrtl.c (force_nonfallthru_and_redirect,
5420 commit_one_edge_insertion): Likewise.
5422 * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
5423 * tree-flow.h (compute_dominance_frontiers): Move prototype...
5424 * basic-block.h: ...here.
5425 * tree-cfg.c (compute_dominance_frontiers_1,
5426 compute_dominance_frontiers): Move from here...
5427 * cfganal.c: ...to here. Include timevar.h.
5429 2004-08-18 James E Wilson <wilson@specifixinc.com>
5431 * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
5432 * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
5434 * config/mips/mips.md (type): Add frdiv.
5435 (divsf3+1, divsf3+2): Change type to frdiv.
5436 * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
5437 ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
5439 * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
5440 * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
5441 * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
5442 * config/mips/5000.md (r5k_fdiv_single): Likewise.
5443 * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
5444 * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
5445 * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
5446 * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
5447 * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
5448 * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
5450 * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
5452 2004-08-18 Robert Bowdidge <bowdidge@apple.com>
5454 * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
5455 get regression tester working again.
5457 2004-08-18 Zack Weinberg <zack@codesourcery.com>
5459 * insn-notes.def, reg-notes.def: New files.
5460 * rtl.h: Use them to define enum insn_note and enum reg_note.
5461 * rtl.c: Use them to define note_insn_name and reg_note_name.
5462 * Makefile.in (RTL_BASE_H): Update.
5464 * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
5465 renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
5467 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
5469 * arm.c (arm_size_rtx_costs): New function.
5470 (arm_override_options): Use it if optimizing for space.
5472 2004-08-18 Richard Henderson <rth@redhat.com>
5474 * emit-rtl.c (gen_const_mem): New.
5475 * rtl.h (gen_const_mem): Declare.
5476 * expr.c (do_tablejump): Use it.
5477 * varasm.c (force_const_mem): Likewise.
5478 * config/darwin.c (machopic_indirect_data_reference): Likewise.
5479 (machopic_legitimize_pic_address): Likewise.
5480 * config/arm/arm.c (legitimize_pic_address): Likewise.
5481 * config/i386/i386.c (legitimize_pic_address): Likewise.
5482 (legitimize_tls_address): Likewise.
5483 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
5484 * config/ia64/ia64.md (load_fptr): Likewise.
5485 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
5486 * config/pa/pa.c (legitimize_pic_address): Likewise.
5487 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
5488 (rs6000_emit_move): Likewise.
5489 * config/s390/s390.c (legitimize_pic_address): Likewise.
5490 (legitimize_tls_address): Likewise.
5491 * config/s390/s390.md (casesi): Likewise.
5492 * config/sh/sh.c (sh_reorg): Likewise.
5493 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
5494 * config/v850/v850.md (casesi): Likewise.
5496 * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
5497 * config/sh/sh.c (prepare_move_operands): Remove incorrect
5498 use of MEM_READONLY_P.
5500 2004-08-18 Steven Bosscher <stevenb@suse.de>
5502 * Makefile.in (OBJS-common): Add postreload-gcse.c.
5503 Add new postreload-gcse.o.
5504 * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
5505 (lookup_as_function, insert, rehash_using_reg, use_related_value,
5506 equiv_constant): Use SAFE_HASH instead of safe_hash.
5507 (exp_equiv_p): Export. Add for_gcse argument when comparing
5509 (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
5510 find_comparison_args, fold_rtx, cse_insn): Update callers.
5511 (hash_rtx): New function derived from old canon_hash and bits
5512 from gcse.c hash_expr_1.
5513 (canon_hash_string): Rename to hash_rtx_string.
5514 (canon_hash, safe_hash): Make static inline. Call hash_rtx.
5515 * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
5516 (cselib_lookup): Update this caller.
5517 * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
5519 (hash_expr): Call hash_rtx.
5520 (ldst_entry): Likewise.
5521 (expr_equiv_p): Call exp_equiv_p.
5522 (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
5523 reg_used_on_edge, reg_set_between_after_reload_p,
5524 reg_used_between_after_reload_p, get_avail_load_store_reg,
5525 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
5526 get_bb_avail_insn, hash_scan_set_after_reload,
5527 compute_hash_table_after_reload,
5528 eliminate_partially_redundant_loads, gcse_after_reload,
5529 get_bb_avail_insn, gcse_after_reload_main): Remove.
5530 * postreload-gcse.c: New file, reincarnating most of the above.
5531 * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
5532 (gcse_after_reload_main): Update prototype.
5533 * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
5534 * passes.c (rest_of_handle_gcse2): Use it.
5536 2004-08-18 Diego Novillo <dnovillo@redhat.com>
5538 * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
5539 (pass_loop_done): Likewise.
5541 2004-08-18 Andrew Pinski <apinski@apple.com>
5543 * config/rs6000/darwin.md: Delete the altivec patterns which are
5544 handled differently now.
5545 (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
5546 (macho_correct_pic_di): Likewise.
5547 (call_indirect_nonlocal_darwin64): Likewise.
5548 Delete the save world/saveFP/saveVec patterns.
5550 Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com>
5551 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
5552 * config/rs6000/rs6000.md: Include darwin.md.
5553 (builtin_setjmp_receiver): Add DImode case.
5554 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
5557 2004-08-18 Matt Austern <austern@apple.com>
5560 * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
5561 * darwin.c (darwin_file_end): Mark file as potentially strippable.
5563 2004-08-18 Richard Henderson <rth@redhat.com>
5565 * alias.c (readonly_fields_p): Remove.
5566 (objects_must_conflict_p): Don't call it.
5567 * tree.h (readonly_fields_p): Remove.
5568 * langhooks.h (struct lang_hooks): Remove honor_readonly.
5569 * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
5571 2004-08-18 Diego Novillo <dnovillo@redhat.com>
5573 * tree-dfa.c (add_referenced_var): Only global variables are
5575 * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
5576 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
5577 all pointers dereferenced if the statement dereferences them.
5578 (create_name_tags): Do not create memory tags for pointers
5579 that have PT_ANYTHING set.
5580 Also check if PT_VARS is not empty before creating a name tag.
5581 (compute_flow_sensitive_aliasing): Don't mark call-clobbered
5582 variables that share the same alias set with a pointer that
5584 (add_may_alias): Add FIXME comment to remove clobbering
5585 aliased variables and tags.
5586 (replace_may_alias): Likewise.
5587 (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
5588 (merge_pointed_to_info): If the original variable has not
5589 points-to information, call set_pt_anything.
5590 (add_pointed_to_var): Do not prevent adding a pointed-to
5591 variable if the pointers is PT_ANYTHING.
5592 If the variable is a global, set PT_GLOBAL_MEM.
5593 (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
5594 pointer type only come in PTR+OFFSET flavours.
5595 Always call merge_pointed_to_info on PHI arguments that are
5597 (get_nmt_for): Mark call-clobbered tags whose pointer points
5599 * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
5601 (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
5603 (add_stmt_operand): Abort if the caller tried to add a killing
5604 definition for a memory tag.
5605 * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
5608 2004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
5610 * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
5611 from call_used_regs. Update call_really_used_regs.
5612 (CALL_REALLY_USED_REGISTERS): Define.
5613 * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
5614 Replace call_used_regs with call_really_used_regs.
5615 (calc_live_regs, sh_media_register_for_return): Likewise.
5616 (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
5617 * sh.md (return_media): Likewise.
5619 2004-08-18 Andrew Pinski <apinski@apple.com>
5621 * config/darwin.c (machopic_legitimize_pic_address): Only set
5622 MEM_READONLY_P in the non TARGET_TOC case.
5624 2004-08-18 Zack Weinberg <zack@codesourcery.com>
5626 * rtl.def (NIL): Delete.
5627 * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
5628 Tighten the syntax a little.
5630 * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
5631 * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
5632 * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
5633 * config/i386/predicates.md, config/m32r/m32r.h
5634 * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
5635 * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
5636 * config/sparc/sparc.h, doc/tm.texi:
5637 Replace all occurrences of NIL with UNKNOWN.
5639 2004-08-18 Zack Weinberg <zack@codesourcery.com>
5641 * dojump.c (do_jump <unordered_bcc>): Do not recursively call
5642 self with a TRUTH_ORIF_EXPR; generate the appropriate jump
5643 sequence inline. Move drop_through_label code into this
5644 block, being the only place it is used. Adjust comments.
5646 2004-08-18 Fariborz Jahanian <fjahanian@apple.com>
5648 * config/rs6000/altivec.md: Add new patterns for calls to
5649 save_world/rest_world functions.
5651 * config/rs6000/rs6000-protos.h: (save_world_operation,
5652 restore_world_operation) new declarations.
5654 * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
5656 (rs6000_stack_info): Set world_save_p field.
5657 (save_world_operation): New function.
5658 (restore_world_operation): New function.
5659 (compute_save_world_info): New function.
5660 (rs6000_stack_info): Call compute_save_world_info.
5661 (rs6000_emit_prologue): Check for world_save_p and generate
5662 pattern to call save_world for saving all non-volatile and
5664 (rs6000_emit_epilogue): Check for world_save_p and generate
5665 pattern to call rest_world to restore saved registers.
5667 config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
5668 FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
5669 (rs6000_reg_names): New entries added for save_world_operation and
5670 restore_world_operation.
5672 2004-08-18 Caroline Tice <ctice@apple.com>
5674 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
5675 "-freorder-blocks-and-partition" to the flags used in second
5676 stage of profiledbootstrap.
5677 * bb-reorder.c (push_to_next_round_p): Add new variable,
5678 next_round_is_last; set and use variable to make sure, when
5679 partitioning, that the last trace construction round consists
5680 of all (and only) cold basic blocks.
5681 (rotate_loop): Don't copy blocks that end in a section
5683 (copy_bb): Correctly initialize "partition" of duplicated bb.
5684 (add_unlikely_executed_notes): Add a comment.
5685 (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
5686 to make sure, if function contains hot blocks, that the
5687 successors of ENTRY_BLOCK_PTR are hot; also, only look for
5688 crossing edges if the architecture supports named sections.
5689 (mark_bb_for_unlikely_executed_section): Modify to always
5690 insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
5691 the basic block note insn.
5692 (fix_crossing_unconditional_branches): Remove extra space.
5693 (fix_edges_for_rarely_executed_code): Modify to only do
5694 partitioning work if the architecture supports named sections.
5695 (reorder_basic_blocks): Modify to only add
5696 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
5697 supports named sections.
5698 * c-common.c (handle_section_attribute): Initialize new global
5699 variable, user_defined_section_attribute, to true if user has
5701 * cfgcleanup.c (try_forward_edges): Modify to not attempt to
5702 forward edges that cross section boundaries.
5703 * cfglayout.c (fixup_reorder_chain): Modify to only fix up
5704 partitioning information if the architecture supports named
5706 * cfgrtl.c (target.h): Add statement to include this.
5707 (rtl_split_block): Make sure newly created bb gets correct
5709 (try_redirect_by_replacing_jump): Make sure redirection isn't
5710 attempting to cross section boundaries.
5711 (force_nonfallthru_and_redirect): Only do partition fix up if
5712 architecture supports named sections.
5713 (rtl_split_edge): Make sure newly created bb ends up in
5715 (commit_one_edge_insertion): Remove code that incorrectly
5716 updated basic block partition; Make sure partition fix up only
5717 happens if architecture supports named sections and it's not
5719 (rtl_verify_flow_info_1): Fix if-condition on test/error
5720 condition that fallthru edges are not allowed to cross section
5722 * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
5723 * final.c (final_scan_insn): Remove redundant test from if-statement;
5724 change calls to text_section into calls to function_section; add code
5725 to only to partitioning fix up if architecture supports named
5727 * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
5729 (if_convert): Add targetm.have_named_sections to test.
5730 * output.h (unlikely_section_label): Extern declaration for new global
5732 (unlikely_text_section_name): Likewise.
5733 * opts.c (decode_options): If both partitioning and DWARF debugging
5734 are turned on, issue a warning that this doesn't work, and change
5735 partitiong to basic block reordering (without hot/cold partitions).
5736 * passes.c (rest_of_handle_final): Re-set new global variable,
5737 user_defined_section_attribute, to false.
5738 (rest_of_compilation): Change options for calling partitioning
5739 function: Don't call if the user defined the section attribute, and
5740 don't call if DECL_ONE_ONLY is true for the current function.
5741 * predict.c (choose_function_section): Return immediately if we
5742 are doing hot/cold partitioning (i.e. let the basic block partitioning
5743 determine where the function belongs).
5744 * reg-stack.c (emit_swap_insn): Add condition to step over
5745 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
5746 * toplev.c (user_defined_section_attribute): New global variable.
5747 * toplev.h (user_defined_section_attribute): Extern declaration
5748 for new global variable.
5749 * varasm.c (unlikely_section_label): New global variable.
5750 (unlikely_text_section_name): New global variable.
5751 (unlikely_text_section): Add code to initialize
5752 unlikely_text_section_name if necessary; modify to use
5753 unlikely_text_section_name and unlikely_section_label; also to use
5754 named_section properly.
5755 (in_unlikely_text_section): Modify to work correctly with
5756 named_section and to use unlikely_text_section_name.
5757 (named_section): Add code to work properly with cold section.
5758 (function_section): Clean up if-statement.
5759 * config/darwin.c (darwin_asm_named_section): Return to original
5760 code, removing use of SECTION_FORMAT_STRING.
5761 * config/arm/pe.h (switch_to_section): Add case for
5762 in_unlikely_executed_text to switch statement.
5763 * config/i386/cygming.h (switch_to_section): Likewise.
5764 * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
5765 (SECTION_FORMAT_STRING): Likewise.
5766 * config/mcore/mcore.h (switch_to_section): Likewise.
5767 * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
5768 (SECTION_FORMAT_STRING): Remove.
5770 2004-08-18 Roger Sayle <roger@eyesopen.com>
5772 * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
5773 -ffixed-reg safe, by preserving the meanings of zero and one.
5774 (CALL_USED_REGISTERS): Likewise.
5775 (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
5777 2004-08-18 Kaz Kojima <kkojima@gcc.gnu.org>
5779 * config/sh/sh.c (split_branches): Check the result of
5781 (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
5782 Call rtl_register_cfg_hooks.
5784 2004-08-18 Richard Henderson <rth@redhat.com>
5786 * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
5787 * alias.c (true_dependence): Update to match new semantics.
5788 (canon_true_dependence, write_dependence_p): Likewise.
5789 (anti_dependence, output_dependence): Update write_dependence_p args.
5790 (unchanging_anti_dependence): Remove.
5791 * calls.c (purge_mem_unchanging_flag): Remove.
5792 (fixup_tail_calls): Don't call it.
5793 (expand_call): Don't add unchanging memory to function usage.
5794 * expr.c (emit_block_move_via_libcall): Likewise.
5795 (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
5796 (get_subtarget): Don't use RTX_UNCHANGING_P.
5797 (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
5798 (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
5799 * combine.c (get_last_value_validate): Use MEM_READONLY_P.
5800 * cse.c (insert): Don't use RTX_UNCHANGING_P.
5801 (cse_insn, canon_hash): Use MEM_READONLY_P.
5802 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
5803 instead of RTX_UNCHANGING_P.
5804 * explow.c (maybe_set_unchanging): Remove.
5805 * expr.h (maybe_set_unchanging): Remove.
5806 * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
5807 * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
5808 (assign_parm_setup_reg, expand_function_start): Likewise.
5809 * integrate.c (copy_rtx_and_substitute): Likewise.
5810 * ra-rewrite.c (emit_colors): Likewise.
5811 * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
5812 (fixup_match_1): Likewise.
5813 * reload1.c (reload, alter_reg): Likewise.
5814 * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
5815 not RTX_UNCHANGING_P.
5816 (equiv_init_varies_p): Likewise.
5817 * loop-invariant.c (check_maybe_invariant): Likewise.
5818 * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
5819 * loop.c (note_addr_stored): Likewise.
5820 (prescan_loop): Likewise. Don't check function usage for clobbered
5822 * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
5823 not RTX_UNCHANGING_P.
5824 (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
5825 * varasm.c (force_const_mem): Likewise.
5826 * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
5827 * web.c (entry_register): Likewise.
5828 * tree-gimple.h (get_base_address): Move decl ...
5830 * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
5832 * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
5833 called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
5834 (alpha_set_memflags): Update to match.
5836 * config/darwin.c (machopic_indirect_data_reference): Set
5837 MEM_READONLY_P instead of RTX_UNCHANGING_P.
5838 (machopic_indirect_call_target): Likewise.
5839 (machopic_legitimize_pic_address): Likewise.
5840 * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
5841 arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
5842 * config/arm/arm.md (load_multiple, store_multiple): Likewise.
5843 * config/frv/frv.md (symGOT2reg): Likewise.
5844 * config/i386/i386.c (legitimize_pic_address,
5845 legitimize_tls_address, ix86_split_to_parts): Likewise.
5846 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
5847 * config/ia64/ia64.md (load_fptr): Likewise.
5848 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
5849 * config/m68k/m68k.c (legitimize_pic_address): Likewise.
5850 * config/mcore/mcore.c (block_move_sequence): Likewise.
5851 * config/mn10300/mn10300.md (symGOT2reg): Likewise.
5852 * config/pa/pa.c (legitimize_pic_address): Likewise.
5853 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
5854 (rs6000_emit_move): Likewise.
5855 * config/s390/s390.c (legitimize_pic_address): Likewise.
5856 (legitimize_tls_address): Likewise.
5857 * config/s390/s390.md (casesi): Likewise.
5858 * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
5859 * config/sh/sh.md (symGOT2reg): Likewise.
5860 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
5861 * config/v850/v850.md (casesi): Likewise.
5863 * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
5864 * config/iq2000/iq2000.c (save_restore_insns): Likewise.
5865 * config/mips/mips.c (mips_restore_gp): Likewise.
5866 (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
5867 * config/sh/sh.c (sh_reorg): Likewise.
5869 2004-08-18 Richard Henderson <rth@redhat.com>
5871 * tree.h (struct tree_decl): Add gimple_formal_temp.
5872 (DECL_GIMPLE_FORMAL_TEMP_P): New.
5873 * gimplify.c (pop_gimplify_context): Clear it.
5874 (lookup_tmp_var): Set it, if is_formal.
5875 (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
5876 Use is_gimple_val for VECTOR. Simplify return value.
5877 (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
5878 (gimplify_expr): Likewise.
5879 * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
5880 is_gimple_tmp_rhs for clarity. Update all callers.
5881 (is_gimple_reg_rhs): Simplify logic.
5882 (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
5883 clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
5884 (is_gimple_formal_tmp_reg): Similarly.
5885 * tree-gimple.h: Update decls.
5886 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
5887 DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting.
5888 * tree-ssa-live.c (var_union, type_var_init): Likewise.
5890 2004-08-18 Paolo Bonzini <bonzini@gnu.org>
5892 * c4x.c (legitimize_operands): Remove calls to
5893 preserve_subexpressions_p.
5895 2004-08-18 David Edelsohn <edelsohn@gnu.org>
5897 * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
5898 * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
5900 2004-08-18 Ziemowit Laski <zlaski@apple.com>
5902 * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
5903 Objective-C++ extensions.
5904 * gengtype.c (get_file_basename): Match entire subdirectory name
5905 ('cp', 'objc', 'objcp') rather than just its suffix.
5906 (get_base_file_bitmap): Allow for files to belong to more than one
5908 (get_output_file_with_visibility): Treat objc/objc-act.h as a header
5909 used by more than one front-end.
5911 2004-08-18 Richard Earnshaw <rearnsha@arm.com>
5913 * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
5914 avoid use of preserve_subexpressions_p.
5916 2004-08-17 Richard Henderson <rth@redhat.com>
5919 * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
5921 2004-08-17 DJ Delorie <dj@redhat.com>
5923 * doc/extend.texi: Document new xstormy16 attribute.
5925 * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
5926 (xstormy16_splittable_below100_or_register): New.
5928 (xstormy16_reorg): New.
5929 (TARGET_MACHINE_DEPENDENT_REORG): Define.
5931 * config/stormy16/stormy16.md (movqi_internal): Make name public.
5932 (movhi_internal): Likewise.
5933 (cbhranchhi): Likewise.
5934 (cbhranchhi_neg): Likewise.
5935 (andhi3): Only allow splittable below100 operands.
5937 (peephole2): New and/zero_extend->and peephole.
5938 (peephole2): New load/ior/save->set1 peephole.
5939 (peephole2): New load/and/save->clr1 peephole.
5940 (bclrx, bclrx2, bclr7, bclr15): New.
5941 (bsetx, bsetx2, bset7, bset15): New.
5943 * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
5944 liberal about acceptable 'B' masks.
5946 * config/stormy16/stormy16-protos.h
5947 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
5948 xstormy16_below100_operand, xstormy16_below100_or_register,
5949 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
5950 (PREDICATE_CODES): Add new predicates.
5952 * config/stormy16/stormy16.c
5953 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
5954 xstormy16_below100_operand, xstormy16_below100_or_register,
5955 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
5956 (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
5957 (xstormy16_legitimate_address_p): Allow below100 symbols.
5958 (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
5959 (xstormy16_expand_move): Leave below100 operands as-is.
5960 (xstormy16_encode_section_info): Encode below100 symbols.
5961 (xstormy16_strip_name_encoding): New.
5962 (xstormy16_print_operand): Print 'b' as shift mask.
5963 (xstormy16_attribute_table): Add below100 attributes.
5964 (xstormy16_handle_below100_attribute): New.
5966 * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
5967 (XSTORMY16_SECTION_FUNCTION): New.
5968 (EXTRA_SECTION_FUNCTIONS): Define using the above.
5969 (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
5970 (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
5971 (ASM_OUTPUT_LABELREF): Define.
5973 * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
5974 (movhi_internal): Add below100 support.
5975 (andhi3): Add below100 support.
5976 (iorhi3): Add below100 support.
5977 (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
5979 2004-08-17 James E Wilson <wilson@specifixinc.com>
5981 * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
5982 of VOIDmode for comparison code mode.
5983 * config/mips/mips.md: For conditional move patterns, use mode of
5984 first compare operand for comparison mode, instead of VOIDmode.
5986 * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
5987 normal and -ffast-math code.
5989 2004-08-17 Mark Mitchell <mark@codesourcery.com>
5992 * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
5994 2004-08-17 Robert Bowdidge <bowdidge@apple.com>
5996 * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
5998 2004-08-17 Andreas Tobler <a.tobler@schweiz.ch>
6000 * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
6001 for non Darwin targets.
6002 (*call_value_nonlocal_darwin64): Likewise.
6004 2004-08-17 Fariborz Jahanian <fjahanian@apple.com>
6006 * config/rs6000/rs6000.c (rs6000_function_value): Check for
6007 altivec mode for altivec return register.
6009 2004-08-17 David Edelsohn <edelsohn@gnu.org>
6011 Revert 2004-08-16 Stan Shebs <shebs@apple.com>
6012 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
6013 * config/rs6000/rs6000.md: Include darwin.md.
6014 (builtin_setjmp_receiver): Add DImode case.
6015 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
6018 2004-08-17 Dorit Naishlos <dorit@il.ibm.com>
6020 * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
6022 * tree-vectorizer.h: New File: Same.
6023 * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
6024 * common.opt (ftree-vectorize): New flag to enable vectorization.
6025 * timevar.def (TV_TREE_VECTORIZATION): New dump file for
6027 * tree-data-ref.h (init_data_ref): Additional argument.
6028 (array_base_name_differ_p): Moved to tree-data-ref.c.
6029 * tree-data-ref.c (array_base_name_differ_p): Revised.
6030 (initialize_data_dependence_relation): Call array_base_name_differ_p
6031 with an extra argument.
6032 (analyze_all_data_dependences): Same.
6033 (init_data_ref): Additional argument is_read to set DR_IS_READ.
6034 * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
6036 * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
6037 * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
6038 * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
6040 * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
6041 (tree_ssa_loop_done): Call scev_finalize.
6042 (tree_vectorize): Define the new vectorization pass.
6043 * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
6044 size of the vector they support (until support for multiple vector
6045 sizes is added to the vectorizer).
6046 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
6047 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
6048 * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
6051 2004-08-17 Nathan Sidwell <nathan@codesourcery.com>
6053 * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
6055 (generate_protocol_list, handle_impent): Likewise.
6057 2004-08-17 Roger Sayle <roger@eyesopen.com>
6059 * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
6060 ensure that call_used_regs is a superset of both fixed_regs and
6061 call_really_used_regs.
6063 2004-08-17 Daniel Bornstein <danfuzz@milk.com>
6066 * arm.md (addsi3_cbranch_scratch): Correct case labels.
6068 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
6071 * fold-const.c (fold): Check for integer operand when
6072 folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew
6073 Pinski <pinskia@physics.uc.edu>.
6075 2004-08-17 Paolo Bonzini <bonzini@gnu.org>
6077 * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
6078 No need to check if in a cross configuration.
6079 * configure: Regenerate.
6081 * calls.c (precompute_register_parameters):
6082 Inline preserve_subexpressions_p ().
6083 * expmed.c (expand_mult_const, emit_store_flag): Likewise.
6084 * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
6086 * expr.c (get_subtarget): Likewise.
6087 * rtl.h (preserve_subexpressions_p): Remove.
6088 * stmt.c (preserve_subexpressions_p): Remove.
6090 * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
6091 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
6092 Abort on gimplified cases.
6094 2004-08-16 James E Wilson <wilson@specifixinc.com>
6096 * tree.h (VECTOR_FLOAT_TYPE_P): New.
6097 (FLOAT_TYPE_P): Use it.
6098 * c-typeck.c (build_binary_op): After convert calls, check for
6099 check for ERROR_MARK operands.
6101 2004-08-16 Zack Weinberg <zack@codesourcery.com>
6103 * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
6104 (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
6105 (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
6106 (genobjs static pattern rule): Remove %.c dependency.
6107 ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
6108 Rename rules; delete commands; fix dependencies.
6109 (mostlyclean): Do not delete temporary source copies.
6110 * configure.ac: Delete all references to BUILD_PREFIX and
6112 * configure: Regenerate.
6114 * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
6115 Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
6116 basic-block.h #ifdef GENERATOR_FILE. Surround some more code
6117 with #ifndef GENERATOR_FILE so that nothing from those headers
6120 * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
6122 2004-08-16 Adam Nemet <anemet@lnxw.com>
6124 * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
6126 2004-08-16 Andrew Pinski <apinski@apple.com>
6128 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
6129 extraneous semicolon.
6131 2004-08-16 Devang Patel <dpatel@apple.com>
6133 * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
6134 * print-tree.c (print_node): Print DECL_PRESERVE_P.
6135 * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
6136 (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
6137 * target.h (struct gcc_target): New member, mark_decl_preserved.
6138 * hooks.c (hook_void_charptr): Rename to ...
6139 (hook_void_constcharptr): ... new name.
6140 * hooks.h (hook_void_charptr): Rename to ..
6141 (hook_void_constcharptr): ... new name.
6142 * tree.h (DECL_PRESERVE_P): New #define.
6143 (struct tree_decl): New member, preserve_flag.
6144 * varasm.c (assemble_start_function): Mark decl preserved.
6145 (assemble_variable): Same.
6146 * darwin.c (darwin_mark_decl_preserved): New function.
6147 * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
6148 * darwin-protos.h (darwin_mark_decl_preserved): New decl.
6149 * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
6151 2004-08-16 Joseph S. Myers <jsm@polyomino.org.uk>
6153 * c-decl.c (grokdeclarator): Allow for function definition where
6154 innermost declarator has attributes.
6156 2004-08-16 Fariborz Jahanian <fjahanian@apple.com>
6158 * except.c (get_exception_filter, build_post_landing_pads,
6159 dw2_build_landing_pads): Use target-specific mode for 'filter'.
6160 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
6161 * target.h (eh_return_filter_mode): New field added.
6162 * targhooks.c (default_eh_return_filter_mode): Defined.
6163 * targhooks.h (default_eh_return_filter_mode): Declared.
6164 * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
6166 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
6168 * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
6169 ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
6170 * configure: Regenerate.
6172 2004-08-16 Stan Shebs <shebs@apple.com>
6174 Basic support for 64-bit Darwin.
6175 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
6176 (machopic_legitimize_pic_address): Similarly, plus use Pmode
6178 * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
6179 (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
6180 (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
6181 (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
6182 (PROCESSOR_DEFAULT64): Define.
6183 * config/rs6000/darwin.md: New file, patterns specific to 64-bit
6185 * config/rs6000/rs6000.md: Include darwin.md.
6186 (builtin_setjmp_receiver): Add DImode case.
6187 * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
6189 (TARGET_ASM_ALIGNED_DI_OP): Ditto.
6190 (rs6000_emit_move): Add DImode case to Darwin bits.
6191 (machopic_output_stub): Use .quad if 64-bit.
6192 * invoke.texi: Document -m32 and -m64.
6194 2004-08-16 Janis Johnson <janis187@us.ibm.com>
6196 * doc/extend.texi (AltiVec builtins): Document additional differences
6197 from the Motorola AltiVec PIM.
6199 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
6201 * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
6202 * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
6203 (struct tree_common): Update public_flag documentation.
6205 2004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
6207 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
6208 Check for artificial variables, not is_gimple_tmp_var.
6209 * tree-ssa-live.c (var_union): Likewise.
6211 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
6213 * calls.c (load_register_parameters): Remove spurious FIXME token.
6215 2004-08-15 Ziemowit Laski <zlaski@apple.com>
6217 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
6218 (c-lang.o): Depend on c-objc-common.h.
6219 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
6220 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
6221 * c-lang.c: Include c-objc-common.h.
6222 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
6223 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
6224 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
6225 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
6226 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
6227 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
6228 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
6229 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
6230 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
6231 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6232 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
6233 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
6234 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
6235 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
6236 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
6237 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
6238 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
6239 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
6240 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
6241 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
6242 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
6243 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
6244 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
6245 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
6246 Move to c-objc-common.h.
6247 * c-objc-common.c: Include c-objc-common.h.
6248 * c-objc-common.h: New file.
6250 2004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
6251 Andrew Pinski <pinskia@physics.uc.edu>
6254 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
6257 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
6259 * tree.h (build_int_cst): New.
6260 (build_int_2): Remove.
6261 * tree.c (build_int_2): Remove.
6262 (build_int_cst): New.
6263 (make_vector_type, build_common_tree_nodes,
6264 build_common_tree_nodes_2): Use build_int_cst.
6265 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
6266 expand_builtin_strpbrk, expand_builtin_fputs,
6267 build_string_literal, expand_builtin_printf,
6268 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
6269 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
6270 fold_builtin_isdigit, simplify_builtin_strstr,
6271 simplify_builtin_strpbrk, fold_builtin_fputs,
6272 simplify_builtin_sprintf): Use build_int_cst.
6273 * c-common.c (start_fname_decls, fix_string_type,
6274 c_common_nodes_and_builtins, c_init_attributes,
6275 shorten_compare): Likewise.
6276 * c-decl.c (complete_array_type,
6277 check_bitfield_type_and_width): Likewise.
6278 * c-lex.c (interpret_integer, lex_charconst): Likewise.
6279 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
6280 * c-pretty-print.c (pp_c_integer_constant): Likewise.
6281 * c-typeck.c (really_start_incremental_init, push_init_level,
6282 set_nonincremental_init_from_string): Likewise.
6283 * calls.c (load_register_parameters): Likewise.
6284 * convert.c (convert_to_pointer): Likewise.
6285 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
6286 build_fn_info_type, build_ctr_info_value, build_gcov_info):
6288 * except.c (init_eh, assign_filter_values, assign_filter_values):
6290 * expmed.c (store_fixed_bit_field, extract_bit_field,
6291 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
6292 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
6293 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
6294 * expr.c (convert_move, emit_group_load, emit_group_store,
6295 expand_assignment, store_constructor, store_field,
6296 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
6297 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
6298 invert_truthvalue, optimize_bit_field_compare,
6299 decode_field_reference, all_ones_mask_p, constant_boolean_node,
6300 fold_div_compare, fold, fold_read_from_constant_string,
6301 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
6302 * function.c (assign_parm_setup_block): Likewise.
6303 * stmt.c (shift_return_value, expand_end_case_type,
6304 estimate_case_costs): Likewise.
6305 * stor-layout.c (layout_type, initialize_sizetypes,
6306 set_min_and_max_values_for_integral_type): Likewise.
6307 * tree-chrec.c (chrec_fold_multiply_poly_poly,
6308 reset_evolution_in_loop): Likewise.
6309 * tree-chrec.h (build_polynomial_chrec): Likewise.
6310 * tree-complex.c (build_replicated_const): Likewise.
6311 * tree-eh.c (honor_protect_cleanup_actions,
6312 lower_try_finally_onedest, lower_try_finally_copy,
6313 lower_try_finally_switch): Likewise.
6314 * tree-mudflap.c (mf_build_string, mx_register_decls,
6315 mudflap_register_call, mudflap_enqueue_constant): Likewise.
6316 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
6317 * tree-pretty-print.c (dump_generic_node): Likewise.
6318 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
6320 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
6321 * tree-ssa-loop-niter.c (number_of_iterations_cond,
6322 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
6325 * config/alpha/alpha.c (alpha_initialize_trampoline,
6326 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
6327 * config/arm/arm.c (arm_get_cookie_size): Likewise.
6328 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
6329 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
6330 * config/i860/i860.c (i860_va_start): Likewise.
6331 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6332 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
6333 mips_gimplify_va_arg_expr): Likewise.
6334 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6335 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
6336 add_compiler_branch_island): Likewise.
6337 * config/s390/s390.c (s390_va_start): Likewise.
6338 * config/sh/sh.c (sh_va_start): Likewise.
6339 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
6341 * config/xtensa/xtensa.c (xtensa_va_start,
6342 xtensa_gimplify_va_arg_expr): Likewise.
6344 * objc/objc-act.c (build_objc_string_object,
6345 build_objc_symtab_template, init_def_list, init_objc_symtab,
6346 init_module_descriptor, generate_static_references,
6347 build_selector_translation_table, get_proto_encoding,
6348 build_typed_selector_reference, build_selector_reference,
6349 build_next_objc_exception_stuff,
6350 build_method_prototype_list_template, generate_descriptor_table,
6351 generate_protocols, build_protocol_initializer,
6352 build_ivar_list_template, build_method_list_template,
6353 build_ivar_list_initializer, generate_ivars_list,
6354 generate_dispatch_table, generate_protocol_list,
6355 build_category_initializer, build_shared_structure_initializer,
6356 generate_shared_structures, handle_impent,
6357 generate_objc_image_info): Use build_int_cst.
6359 2004-08-15 Ben Elliston <bje@au.ibm.com>
6361 * vec.h: Comment improvements.
6363 2004-08-14 Roger Sayle <roger@eyesopen.com>
6365 * c-common.c (shorten_compare, pointer_int_sum,
6366 c_common_truthvalue_conversion, boolean_increment): Replace calls
6367 to build with calls to buildN.
6368 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
6369 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
6370 gimplify_switch_stmt): Likewise.
6371 * c-typeck.c (default_function_array_conversion,
6372 build_component_ref, build_array_ref, build_function_call,
6373 pointer_diff, build_unary_op, build_conditional_expr,
6374 build_compound_expr, build_modify_expr, c_finish_goto_label,
6375 c_finish_goto_ptr, c_finish_return, c_finish_loop,
6376 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
6377 build_binary_op): Likewise.
6379 2004-08-15 Steven Bosscher <stevenb@suse.de>
6381 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
6383 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6385 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
6386 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
6387 * fixinc/fixincl.x: Rebuilt.
6389 2004-08-14 Richard Sandiford <rsandifo@redhat.com>
6391 * config/mips/mips-protos.h (mips_symbolic_constant_p)
6392 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
6393 (mips_small_data_pattern_p): Declare.
6394 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
6395 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
6396 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
6397 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
6398 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
6399 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
6400 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
6401 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
6402 (pc_or_label_operand, call_insn_operand, move_operand)
6403 (consttable_operand, symbolic_operand, general_symbolic_operand)
6404 (global_got_operand, local_got_operand, stack_operand)
6405 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
6406 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
6407 (mips_small_data_pattern_p): Replace previous small_data_pattern
6408 predicate. Turn into a bool () (rtx) function.
6409 * config/mips/predicates.md: New file.
6410 * config/mips/mips.md: Include it. Use the target-independent
6411 comparison_operator instead of cmp_op. Rename trap_cmp_op to
6412 trap_comparison_operator and equality_op to equality_operator.
6413 Replace uses of small_int with the equivalent const_arith_operand.
6414 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
6415 const_float_1_operand to const_1_operand. Rename fcc_register_operand
6416 to fcc_reload_operand.
6417 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
6419 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6421 PR libstdc++/17005 partial fix.
6422 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
6423 except when generating ANSI/C89 code.
6425 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
6427 * c-common.c (shorten_compare): Use force_fit_type directly.
6429 2004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
6430 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
6431 Dave Korn <dk@artimi.com>
6433 * doc/install.texi (Building): Avoid duplicate reference to GNU
6435 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
6437 2004-08-14 Richard Henderson <rth@redhat.com>
6439 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
6440 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
6442 2004-08-13 Richard Henderson <rth@redhat.com>
6444 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
6445 for constant_call_address_operand.
6446 (call_value_pop_1, call_value_1): Likewise.
6447 (sibcall_value_1, call_value_1_rex64): Likewise.
6449 2004-08-13 James E Wilson <wilson@specifixinc.com>
6451 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
6452 Correct mode from SFmode to DFmode.
6454 2004-08-13 Ziemowit Laski <zlaski@apple.com>
6456 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
6457 __cstring_object and __image_info sections with the no_dead_strip
6460 2004-08-13 Roger Sayle <roger@eyesopen.com>
6461 David Billinghurst <David.Billinghurst@riotinto.com>
6463 PR libgfortran/15930
6464 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
6465 * fixinc/fixincl.x: Regenerate.
6466 * fixinc/tests/base/internal/math_core.h: New file.
6468 2004-08-13 Richard Henderson <rth@redhat.com>
6470 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
6471 (dbxout_function_end): Remove ifdefs for it.
6472 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
6474 2004-08-13 Richard Henderson <rth@redhat.com>
6476 * Makefile.in (insn-preds.o): Depend on TREE_H.
6477 * genpreds.c (write_insn_preds_c): Include tree.h.
6478 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
6479 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
6480 const48_operand, and_operand, or_operand, mode_width_operand,
6481 mode_mask_operand, mul8_operand, const0_operand,
6482 hard_fp_register_operand, hard_int_register_operand,
6483 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
6484 samegp_function_operand, direct_call_operand, small_symbolic_operand,
6485 global_symbolic_operand, call_operand, symbolic_operand,
6486 dtp16_symbolic_operand, dtp32_symbolic_operand,
6487 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
6488 gottp_symbolic_operand, alpha_comparison_operator,
6489 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
6490 signed_comparison_operator, alpha_fp_comparison_operator,
6491 divmod_operator, fix_operator, aligned_memory_operand,
6492 unaligned_memory_operand, reg_or_unaligned_mem_operand,
6493 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
6494 reg_no_subreg_operand, addition_operation): Move to predicates.md.
6495 (reg_or_const_int_operand): Remove. Replace all users with
6496 reg_or_cint_operand.
6497 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
6498 (resolve_reload_operand): Split out of aligned_memory_operand.
6499 * config/alpha/alpha-protos.h: Update for exports.
6500 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
6501 * config/alpha/alpha.md: Include predicates.md.
6502 * config/alpha/predicates.md: New file.
6504 2004-08-13 Richard Sandiford <rsandifo@redhat.com>
6506 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
6507 fields with a pointer to the instruction definition.
6508 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
6509 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
6510 (write_attr_case, write_const_num_delay_slots): Update accordingly.
6511 (write_attr_case, write_const_num_delay_slots): Write the name of
6512 an insn next to its case statement.
6513 * genoutput.c (data): Add a filename field.
6514 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
6515 (output_insn_data): Print the location of each insn definition.
6516 * genrecog.c (write_action): Print the name of an insn above
6517 the statement that returns its code.
6519 2004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
6521 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
6522 * config/libgloss.h: Likewise.
6523 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
6524 * c4x/c4x-modes.def: Likewise.
6525 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
6526 (c4x_rptb_nop_p): Likewise.
6527 (c4x_rptb_valid_p): Likewise.
6528 (c4x_rptb_insert): Likewise.
6529 (c4x_address_conflict): Likewise.
6530 * config/c4x/c4x.md: Likewise.
6531 * config/frv/frv.md: Likewise.
6532 * config/i386/athlon.md: Likewise.
6533 * config/i386/i386.md: Likewise.
6534 * config/i386/predicates.md: Likewise.
6535 * config/ia64/ia64.c: Likewise.
6536 * config/ia64/itanium1.md: Likewise.
6537 * config/ia64/itanium2.md: Likewise.
6538 * config/iq2000/iq2000.md: Likewise.
6539 * config/mcore/mcore.c: Likewise.
6540 * config/mips/mips.c: Likewise.
6541 * config/mips/r3900.h: Likewise.
6542 * config/mips/sb1.md: Likewise.
6543 * config/pa/milli64.S: Likewise.
6544 * config/pa/pa.c: Likewise.
6545 * config/pa/pa.h: Likewise.
6546 * config/rs6000/8540.md: Likewise.
6548 2004-08-13 Daniel Berlin <dberlin@dberlin.org>
6550 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
6552 2004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
6554 * sh.md (cbranch define_delay) Use cond_delay_slot for
6555 non-anulled condition too.
6557 2004-08-12 David Edelsohn <edelsohn@gnu.org>
6559 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
6560 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6561 any_parallel_operand, lmw_operation, stmw_operation,
6562 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
6563 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
6564 any_parallel_operand.
6565 (return_and_restore_fpregs_{si,di}): Same.
6567 2004-08-12 Zack Weinberg <zack@codesourcery.com>
6569 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
6570 if pred->singleton != PARALLEL, issue a warning and pretend it was.
6571 Also issue a warning for any predicate we don't know about.
6573 2004-08-12 Richard Henderson <rth@redhat.com>
6575 * config/i386/i386.c (internal_label_prefix): Export.
6576 (internal_label_prefix_len, struct ix86_address,
6577 ix86_decompose_address, maybe_get_pool_constant,
6578 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
6579 memory_address_length): Export.
6580 (any_fp_register_operand, fp_register_operand,
6581 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
6582 x86_64_general_operand, x86_64_szext_general_operand,
6583 x86_64_nonmemory_operand, x86_64_movabs_operand,
6584 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
6585 x86_64_zext_immediate_operand, const_int_1_31_operand,
6586 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
6587 tls_symbolic_operand, global_dynamic_symbolic_operand,
6588 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
6589 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
6590 constant_call_address_operand, const0_operand, const1_operand,
6591 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
6592 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
6593 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
6594 general_no_elim_operand, nonmemory_no_elim_operand,
6595 index_register_operand, q_regs_operand, flags_reg_operand,
6596 non_q_regs_operand, zero_extended_scalar_load_operand,
6597 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
6598 ix86_comparison_operator, ix86_carry_flag_operator,
6599 fcmov_comparison_operator, promotable_binary_operator,
6600 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
6601 mult_operator, div_operator, arith_or_logical_operator,
6602 memory_displacement_operand, cmpsi_operand, long_memory_operand,
6603 aligned_operand): Move to predicates.md as define_predicates.
6604 (tls_symbolic_operand_1): Remove.
6605 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
6606 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
6607 (legitimize_address): Merge tls_symbolic_operand contents.
6608 (ix86_expand_move): Likewise.
6609 * config/i386/i386-protos.h: Update for exports.
6610 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
6611 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
6612 * config/i386/i386.md: Include predicates.md.
6613 * config/i386/predicates.md: New file.
6615 2004-08-13 Mark Mitchell <mark@codesourcery.com>
6618 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
6620 (i386_pe_mark_dllimport): Likewise.
6621 (i386_pe_encode_section_info): Likewise, when overriding
6622 dllimport attribute.
6624 2004-08-12 Geoffrey Keating <geoffk@apple.com>
6626 * configure.ac: When testing for flex, nm, ar, and bison, check
6627 that they will actually be built.
6628 * configure: Regenerate.
6630 2004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
6632 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
6633 (MOVE_MAX_PIECES): Define.
6635 2004-08-12 Devang patel <dpatel@apple.com>
6637 * dbxout.c (dbxout_begin_prologue): New function.
6638 (dbx_debug_hooks): Use new begin prologue hook.
6639 (dbxout_function_end): Emit N_ENSYM.
6640 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
6642 2004-08-12 Janis Johnson <janis187@us.ibm.com>
6644 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
6647 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
6650 * doc/extend.texi (AltiVec builtins): Fix description for recent
6651 changes. Update operation list to match current support.
6653 2004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
6655 * config/s390/s390.c (struct s390_frame_layout): New struct as element
6656 of struct machine_function.
6657 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
6659 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
6661 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
6662 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
6663 (s390_frame_area, s390_register_info): New functions.
6664 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
6666 (s390_return_addr_rtx, s390_return_address_offset)
6667 (s390_va_start, s390_gimplify_va_arg)
6668 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
6670 (s390_frame_info): Functionality partly moved to s390_register_info.
6671 Made adaptions for new stack layout.
6672 (save_gprs, restore_gprs): Changed meaning of second parameter and
6673 adapted all callers.
6675 * config/s390/s390.h (s390_backchain_string): New global variable.
6676 (MASK_BACKCHAIN): Removed definition.
6677 (TARGET_BACKCHAIN): Changed check.
6678 (TARGET_KERNEL_BACKCHAIN): New macro.
6679 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
6680 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
6682 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
6684 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
6685 as condition. Adjusted for new stack layout.
6687 * doc/invoke.texi: Added documentation for new option
6688 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
6691 2004-08-12 Paul Brook <paul@codesourcery.com>
6693 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
6694 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
6696 2004-08-12 David Daney <ddaney@avtrex.com>
6698 * java/gcj.texi: Add subsection on signal usage.
6700 2004-08-12 David Edelsohn <edelsohn@gnu.org>
6702 * expr.c (move_by_pieces): Set alignment for move to minimum of
6703 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
6704 alignment, but not less than the original alignment.
6705 (move_by_pieces_ninsns): Same.
6706 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
6707 (store_by_pieces_1): Same.
6709 2004-08-12 Diego Novillo <dnovillo@redhat.com>
6711 PR tree-optimization/16867
6712 * tree.c (is_global_var): New function.
6713 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
6715 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
6717 (is_global_var): Declare.
6718 * tree-dfa.c (dump_variable): Display global and addressable
6720 (add_referenced_var): Clarify documentation when marking
6721 variables call-clobbered.
6722 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
6723 instead of needs_to_live_in_memory.
6724 (mark_call_clobbered): If the variable is a tag, mark it
6726 * tree-gimple.c (is_gimple_reg): Don't check for
6728 (is_gimple_non_addressable): Likewise.
6729 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
6730 needs to be marked call-clobbered.
6731 (setup_pointers_and_addressables): Call is_global_var instead
6732 of needs_to_live_in_memory.
6733 * tree-ssa-dce.c (need_to_preserve_store): Remove.
6734 Update all users with is_global_var.
6735 (mark_stmt_if_obviously_necessary): Fix processing of aliased
6736 stores. Don't check the virtual definitions. Rather, check
6737 whether the store is going into global memory.
6738 (find_obviously_necessary_stmts): Get the symbol from the PHI
6740 * tree-ssa-operands.c (get_call_expr_operands): Do not add
6741 clobbering may-defs if the call does not have side effects.
6743 2004-08-12 Jakub Jelinek <jakub@redhat.com>
6746 * output.h (default_function_rodata_section,
6747 default_no_function_rodata_section): New prototypes.
6748 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
6749 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
6750 (TARGET_ASM_OUT): Add it.
6751 * varasm.c (default_function_rodata_section,
6752 default_no_function_rodata_section): New functions.
6753 * final.c (final_scan_insn): Call
6754 targetm.asm_out.function_rodata_section instead of
6755 readonly_data_section.
6756 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
6757 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
6758 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
6759 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
6761 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
6762 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
6764 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
6766 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
6767 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
6768 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
6770 2004-08-12 Paul Brook <paul@codesourcery.com>
6772 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
6774 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
6777 2004-08-12 Ben Elliston <bje@au.ibm.com>
6780 * config/rs6000/altivec.h: Change vector to __vector throughout.
6781 (Except for the `vector' macro itself).
6783 2004-08-12 Zack Weinberg <zack@codesourcery.com>
6785 * genpreds.c: Add capability to generate predicate bodies as
6786 well as function prototypes. Write function prototypes for
6787 the generic predicates too.
6788 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
6789 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
6790 (write_match_code, write_predicate_expr, write_one_predicate_function)
6791 (parse_option): New functions.
6792 (output_predicate_decls): Delete.
6793 (main): Read the machine description, process DEFINE_PREDICATE or
6794 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
6797 * genrecog.c (struct decision_test): Replace index with
6798 struct pred_data pointer.
6799 (next_index): Remove, unused.
6800 (pred_table, preds, special_mode_pred_table): Delete.
6801 (compute_predicate_codes, process_define_predicate): New functions.
6802 (validate_pattern, add_to_sequence, write_switch): Update for
6803 new data structures.
6804 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
6805 Check both error_count and have_error.
6807 * gensupport.c (in_fname, first_predicate): New globals.
6808 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
6809 (predicate_table, last_predicate, old_pred_table)
6810 (old_special_pred_table): New statics.
6811 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
6812 (add_predicate, init_predicate_table): New functions.
6813 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
6814 (init_md_reader_args_cb): Use the global in_fname. No need to zero
6815 it or max_include_len. Call init_predicate_table.
6816 (read_rtx): Run the predicate queue after the attribute queue
6817 but before all the others.
6818 * gensupport.h (in_fname, struct pred_data, first_predicate)
6819 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
6820 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
6821 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
6822 * dummy-conditions.c: Don't include bconfig.h, system.h,
6823 coretypes.h, tm.h, or system.h. Do include stddef.h.
6824 Duplicate declaration of struct c_test from gensupport.h.
6826 * Makefile.in (OBJS-common): Add insn-preds.o.
6827 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
6828 (insn-preds.c, insn-preds.o): New rules.
6829 (s-preds): Also generate insn-preds.c.
6830 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
6831 Update dependencies.
6832 (print-rtl.o, print-rtl1.o): Correct dependencies.
6834 * recog.h: Delete prototypes of predicate functions.
6836 * doc/md.texi (Predicates): New section with complete
6837 documentation of operand/operator predicates. Remove some
6838 incomplete documentation of predicates from other places.
6839 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
6840 PREDICATE_CODES; indicate that both are deprecated in favor
6841 of define_predicate/define_special_predicate.
6843 * config/ia64/ia64.c: All predicate function definitions moved
6845 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
6846 (ia64_expand_load_address, ia64_expand_move):
6847 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
6849 * config/ia64/ia64.md: All predicates now defined here.
6850 (symbolic_operand): Is now a special predicate.
6852 * config/ia64/ia64.h: Declare ia64_section_threshold.
6853 (PREDICATE_CODES): Delete.
6855 2004-08-12 Richard Henderson <rth@redhat.com>
6857 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
6858 * c-semantics.c (add_stmt): Set it.
6859 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
6860 before instantiating a variable sized type.
6862 2004-08-12 Richard Henderson <rth@redhat.com>
6864 * stor-layout.c (round_up, round_down): Move ...
6865 * fold-const.c (round_up, round_down): ... here. Use
6866 multiple_of_p to avoid any arithmetic at all.
6868 2004-08-12 Richard Henderson <rth@redhat.com>
6870 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
6871 (gimplify_init_ctor_preeval_1): New.
6872 (gimplify_init_ctor_preeval): New.
6873 (gimplify_init_ctor_eval): New.
6874 (gimplify_init_constructor): Use them. Always gimplify the LHS
6877 2004-08-12 Ziemowit Laski <zlaski@apple.com>
6879 (This patch is part of merge of objc-improvements-branch
6882 * doc/frontends.texi: Mention Objective-C++ in addition to
6884 * doc/install.texi: Add 'obj-c++' to list of configurable
6886 * doc/invoke.texi: Rename Objective-C option headings to
6887 indicate they also apply to Objective-C++. List file
6888 extensions for Objective-C++ sources. Mention that
6889 ObjC and ObjC++ compilations may also use C and C++ options,
6890 respectively. Point users to doc/standards.texi for
6891 further info on ObjC and ObjC++.
6892 * doc/sourcebuild.texi: Mention the objcp/ directory and
6893 the Objective-C++ sources it contains.
6894 * doc/standards.texi: Update link to Apple ObjC site;
6895 add link to gcc readings.html WWW doc.
6897 2004-08-12 Alan Modra <amodra@bigpond.net.au>
6899 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
6900 and 2004-07-14 changes.
6902 2004-08-12 Paul Brook <paul@codesourcery.com>
6904 * doc/invoke.texi: Fix typo.
6906 2004-08-11 Devang Patel <dpatel@apple.com>
6908 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
6909 and -no_dead_strip_inits_and_terms.
6911 * doc/invoke.texi (Darwin Options): Document -dead_strip and
6912 -no_dead_strip_inits_and_terms.
6914 2004-08-11 Paul Brook <paul@codesourcery.com>
6916 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
6917 (arm_load_pic_register): ... to this.
6918 * config/arm/arm.c (arm_finalize_pic): Rename ...
6919 (arm_load_pic_register): ... to this. Always output insns at the
6920 current location. Load via low reg in thumb mode.
6921 (arm_expand_prologue): Call arm_load_pic_register.
6922 (thumb_expand_prologue): Ditto.
6923 * config/arm/arm.h (FINALIZE_PIC): Remove.
6924 * config/arm/arm.md (builtin_setjmp_receiver): Call
6925 arm_load_pic_register.
6927 2004-08-11 Paul Brook <paul@codesourcery.com>
6929 * arm.c (thumb_force_lr_save): Add prototype.
6930 (thumb_compute_save_reg_mask): New function.
6931 (thumb_find_work_register): New function.
6932 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
6933 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
6934 Don't clobber r3 when removing pretend args.
6935 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
6936 (thumb_output_function_prologue): Use new functions.
6937 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
6938 * arm.h (THUMB_REG_PUSHED_P): Remove.
6940 2004-08-11 James E Wilson <wilson@specifixinc.com>
6942 PR rtl-optimization/16490
6943 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
6944 global_live_at_end for new basic block if already set for other blocks.
6946 2004-08-11 David Edelsohn <edelsohn@gnu.org>
6948 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
6950 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
6951 (mfcr rlwinm rlwinm patterns): Set length to 12.
6953 2004-08-11 Andrew MacLeod <amacleod@redhat.com>
6955 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
6956 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
6957 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
6958 (start_ssa_stmt_operands): Delete.
6959 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
6960 struct stmt_operands_d.
6961 (build_ssa_operands): New extern entry point.
6962 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
6963 building code, replace with create_ssa_artficial_load_stmt().
6964 * tree-ssa-operands.c (struct voperands_d): Delete.
6965 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
6966 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
6967 (free_uses, free_defs, free_vuses, free_v_may_defs,
6968 free_v_must_defs): Remove dealloc parameter.
6969 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
6970 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
6971 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
6972 vector comparisons, ssa_name reuse, and allocations here.
6973 (verify_start_operands): Delete.
6974 (finalize_ssa_stmt_operands): Set new operands by calling finalize
6976 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
6977 (append_def, append_usei): Simplify to simple accumulation.
6978 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
6979 duplicates and simple accumulation.
6980 (free_ssa_operands): Free vectors in a stmt_operand structure.
6981 (build_ssa_operands): New. Create a new stmt_operand structure from
6982 a stmt and an old set of stmt_operands.
6983 (get_stmt_operands): Simplify and call build_ssa_operands.
6984 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
6985 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
6986 add_call_read_ops): Don't pass prev_vops around anymore.
6987 (note_addressable): Return if no stmt annotation.
6988 (copy_virtual_operands): Access v_may_def operands through a struct.
6989 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
6990 hash tables without treating the stmt as a real stmt.
6991 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
6992 v_may_def def and use through a struct instead of 2 array elements.
6993 (struct v_may_def_optype_d): Use v_may_def_operand_type.
6994 (struct stmt_operands_d): New. Struct for storing all operand vectors.
6996 2004-08-11 Nick Clifton <nickc@redhat.com>
6998 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
6999 this funciton's behaviour. Return true when the current function
7000 has a section attribute and -mlong-calls is in effect.
7001 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
7002 short-call marker when -mlong-calls is in effect and the function
7003 has a section attribute.
7005 2004-08-10 Zack Weinberg <zack@codesourcery.com>
7007 * stmt.c (expand_return): If asked to return the RESULT_DECL,
7008 just call expand_value_return on result_rtl.
7010 2004-08-10 Richard Henderson <rth@redhat.com>
7012 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
7013 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
7014 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
7015 (add_location_or_const_value_attribute): ... not here. Use
7016 loc_descriptor_from_tree if possible.
7017 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
7018 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
7020 (loc_descriptor_from_tree): New. Update callers.
7021 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
7022 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
7023 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
7024 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
7025 and BUILT_IN_STACK_RESTORE.
7026 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
7027 * stmt.c (expand_stack_alloc): Remove.
7028 * tree-mudflap.c (mx_register_decls): Don't look for
7029 BUILT_IN_STACK_ALLOC.
7030 * tree-nested.c (convert_local_reference): Likewise.
7031 * tree.h (DECL_VALUE_EXPR): New.
7033 2004-08-10 Richard Henderson <rth@redhat.com>
7035 * stor-layout.c (round_up): Check for 0/1 before dividing.
7036 (round_down): Likewise.
7038 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
7040 2004-08-09 Mark Mitchell <mark@codesourcery.com>
7042 * config.gcc (arm*-*-eabi*): New target.
7043 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
7044 (TARGET_LIB_INT_CMP_BIASED): Likewise.
7045 * expmed.c (expand_divmod): Try a two-valued divmod function as a
7047 * gthr.h: Remove bogus tokens at end of #pragma.
7048 * optabs.c (expand_twoval_binop_libfunc): New function.
7049 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
7050 (prepare_float_lib_cmp): Try reversing the condition.
7051 (debug_optab_libfuncs): New function.
7052 * optabs.h (expand_twoval_binop_libfunc): Declare.
7053 * config/arm/arm.c (arm_init_libfuncs): New function.
7054 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
7055 (TARGET_INIT_LIBFUNCS): Define it.
7056 * config/arm/arm.h (TARGET_BPABI): New macro.
7057 * config/arm/arm-protos.h
7058 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
7059 * config/arm/bpabi.S: New file.
7060 * config/arm/bpabi.c: Likewise.
7061 * config/arm/bpabi.h: Likewise.
7062 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
7063 (__aeabi_drsub): Likewise.
7064 (__aeabi_dsub): Likewise.
7065 (__aeabi_dadd): Likewise.
7066 (__aeabi_ui2d): Likewise.
7067 (__aeabi_i2d): Likewise.
7068 (__aeabi_f2d): Likewise.
7069 (__aeabi_dmul): Likewise.
7070 (__aeabi_ddiv): Likewise.
7071 (__aeabi_cdrcmple): Likewise.
7072 (__aeabi_cdcmpeq): Likewise.
7073 (__aeabi_cdcmple): Likewise.
7074 (__aeabi_dcmpeq): Likewise.
7075 (__aeabi_dcmplt): Likewise.
7076 (__aeabi_dcmple): Likewise.
7077 (__aeabi_dcmpge): Likewise.
7078 (__aeabi_dcmpgt): Likewise.
7079 (__aeabi_dcmpun): Likewise.
7080 (__aeabi_d2iz): Likewise.
7081 (__aeabi_d2uiz): Likewise.
7082 (__aeabi_d2f): Likewise.
7083 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
7084 (__aeabi_frsub): Likewise.
7085 (__aeabi_fsub): Likewise.
7086 (__aeabi_fadd): Likewise.
7087 (__aeabi_ui2f): Likewise.
7088 (__aeabi_i2f): Likewise.
7089 (__aeabi_fmul): Likewise.
7090 (__aeabi_fdiv): Likewise.
7091 (__aeabi_cfrcmple): Likewise.
7092 (__aeabi_cfcmpeq): Likewise.
7093 (__aeabi_cfcmple): Likewise.
7094 (__aeabi_fcmpeq): Likewise.
7095 (__aeabi_fcmplt): Likewise.
7096 (__aeabi_fcmple): Likewise.
7097 (__aeabi_fcmpge): Likewise.
7098 (__aeabi_fcmpgt): Likewise.
7099 (__aeabi_fcmpun): Likewise.
7100 (__aeabi_f2iz): Likewise.
7101 (__aeabi_f2uiz): Likewise.
7102 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
7103 (__aeabi_uidivmod): New function or alias.
7104 (__aeabi_idivmod): Likewise.
7105 (__aeabi_idiv0): Likewise.
7106 (__aeabi_ldiv0): Likewise.
7107 (__aeabi_llsr): Likewise.
7108 (__aeabi_lasr): Likewise.
7109 (__aeabi_llsl): Likewise.
7110 (bpabi.S): Include it.
7111 * config/arm/libgcc-bpabi.ver: New file.
7112 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
7113 (LINK_SPEC): Remove.
7114 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
7116 * config/arm/t-bpabi: New file.
7117 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
7118 (TARGET_LIB_INT_CMP_BIASED): Likewise.
7120 2004-08-10 David Edelsohn <edelsohn@gnu.org>
7122 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
7123 * config/rs6000/rs6000.md (clrmemsi): New pattern.
7124 * config/rs6000/rs6000.c (expand_block_clear): New function.
7125 (expand_block_move): Convert alignment to bits. Use SImode and
7126 HImode for unaligned addresses if not STRICT_ALIGNMENT.
7128 2004-08-10 Caroline Tice <ctice@apple.com>
7130 * varasm.c (unlikely_section_label): New global variable.
7131 (unlikely_text_section_name): New global variable.
7132 (text_section): Remove alignment statement.
7133 (unlikely_text_section): Remove alignment statement; use
7134 unlikely_section_label rather than hard-coded string.
7135 (assemble_start_function): Initialize unlikely_section_label and
7136 unlikely_text_section_name; make sure cold section is properly
7137 aligned at start of function; output unlikely_section_label if
7140 2004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
7142 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
7143 * config/s390/s390.c (s390_canonicalize_comparison): New function.
7144 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
7145 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
7146 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
7147 ("*tmqi_mem"): Remove SUBREG from pattern.
7148 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
7149 ("*andsi3_cconly"): Likewise.
7151 2004-08-10 H.J. Lu <hongjiu.lu@intel.com>
7154 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
7156 2004-08-10 Janis Johnson <janis187@us.ibm.com>
7158 * doc/sourcebuild.texi (compat testing): Document available test
7159 framework commands. Use the preferred spelling of DejaGnu.
7161 2004-08-10 Daniel Berlin <dberlin@dberlin.org>
7163 * lambda.h: Add matrix type, and prototypes for remainder of
7164 matrix and vector functions.
7165 (lambda_vector_mult_const): New function.
7166 (lambda_vector_negate): Ditto.
7167 (lambda_vector_add): Ditto.
7168 (lambda_vector_add_mc): Ditto.
7169 (lambda_vector_copy): Ditto.
7170 (lambda_vector_zerop): Ditto.
7171 (lambda_vector_equal): Ditto.
7172 (lambda_vector_min_nz): Ditto.
7173 (lambda_vector_first_nz): Ditto.
7174 (lambda_vector_matrix_mult): Ditto.
7175 * lambda-mat.c: New file.
7176 * Makefile.in (lambda-mat.o): New.
7178 2004-08-10 Andrew MacLeod <amacleod@redhat.com>
7180 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
7181 after linking stmt into the program.
7182 (bsi_remove): Don't call modify_stmt.
7183 * tree-complex.c (update_complex_assignment,
7184 expand_complex_comparison): Call modify_stmt after changing the stmt.
7185 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
7187 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
7188 the stmt, and only if needed.
7189 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
7191 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
7192 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
7193 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
7194 (eliminate_redundant_computations): Don't pass an annotation. Call
7195 modify_stmt rather than setting the annotation directly.
7196 (record_equivalences_from_stmt): Remove unused local 'j'.
7197 (cprop_operand): Take a stmt rather than an annotation as a parameter.
7199 (cprop_into_stmt): Pass stmt rather than annotation.
7200 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
7201 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
7203 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
7205 2004-08-10 Jason Merrill <jason@redhat.com>
7208 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
7211 2004-08-10 Geoffrey Keating <geoffk@apple.com>
7213 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
7216 2004-08-10 Roger Sayle <roger@eyesopen.com>
7218 * config/mips/mips.md: New reciprocal square root patterns that
7219 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
7221 2004-08-10 Paul Brook <paul@codesourcery.com>
7223 * config/arm/arm-protos.h (arm_set_return_address,
7224 thumb_set_return_address): Add prototypes.
7225 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
7226 * config/arm/arm.c (arm_compute_func_type,
7227 use_return_insn, arm_compute_save_reg0_reg12_mask,
7228 arm_compute_save_reg_mask, arm_output_function_prologue,
7229 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
7230 current_function_calls_eh_return.
7231 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
7233 (arm_set_return_address, thumb_set_return_address): New functions.
7234 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
7235 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
7236 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
7237 (epilogue): Use the stackadj register.
7238 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
7240 2004-08-10 Jakub Jelinek <jakub@redhat.com>
7243 * expr.c (move_by_pieces_ninsns): Add max_size argument.
7244 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
7245 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
7246 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
7247 but using MOVE_RATIO.
7248 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
7249 (can_store_by_pieces): Change max_size type to unsigned int.
7250 (store_by_pieces_1): Likewise. Pass max_size to
7251 move_by_pieces_ninsns.
7252 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
7253 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
7254 to move_by_pieces_ninsns.
7255 (STORE_BY_PIECES_P): Define.
7256 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
7257 to move_by_pieces_ninsns.
7258 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
7260 * config/i386/i386.h (CLEAR_RATIO): Define.
7262 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
7264 * expr.c (expand_expr_real_1): Add back code that was not dead.
7266 2004-08-09 Andrew Pinski <apinski@apple.com>
7268 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
7269 which is found to be compatible before returning the aliasing set.
7271 2004-08-09 Daniel Jacobowitz <dan@debian.org>
7273 * ggc-zone.c (struct alloc_zone): Add statistics counters.
7274 (always_collect): New flag.
7275 (ggc_alloc_zone_1): Update statistics support. Don't include
7276 overhead in allocated counter.
7277 (sweep_pages): Update allocated counter for large pages. Don'y
7279 (ggc_collect_1): Always collect.
7280 (ggc_collect): Honor always_collect flag. Sum all zones to decide
7282 (SCALE, LABEL): New macros.
7283 (ggc_print_statistics): Add statistics support.
7285 2004-08-09 Roger Sayle <roger@eyesopen.com>
7287 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
7288 (init_expmed): Fix potential overrun problem with "all.reg".
7289 (expand_sdiv2_pow2): Add an alternate implementation for signed
7290 division, if the target provides a suitable conditional move insn.
7292 2004-08-09 Paul Brook <paul@codesourcery.com>
7293 Richard Henderson <rth@redhat.com>
7295 * unwind-dw2.c (uw_install_context_1): Update target saved stack
7298 2004-08-09 Geoffrey Keating <geoffk@apple.com>
7300 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
7301 Check DATA limit only if there's no AS limit. Ignore insanely
7303 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
7304 but take care that the AS limit isn't overrun.
7305 * doc/invoke.texi: Update documentation of min-heapsize parameter.
7307 2004-08-09 Jeff Law <law@redhat.com>
7309 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
7310 (tree-ssa-threadupdate.o): Add dependencies.
7311 * tree-ssa-threadupdate.c: New file.
7312 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
7313 (rewrite_vars_out_of_ssa): Remove prototype.
7314 (cleanup_tree_cfg): Returns a bool.
7315 * tree.h (thread_through_all_blocks): Prototype.
7316 * tree-outof-ssa.c (SSANORM_*): Move into here.
7317 (remove_ssa_form): Now static.
7318 (rewrite_vars_out_of_ssa): Kill.
7319 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
7320 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
7321 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
7322 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
7323 anything was changed.
7324 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
7325 from the PHI's annotation rather than the edge associated with
7327 * tree-ssa-dom.c (redirection_edges): Kill.
7328 (redirect_edges_and_update_ssa_graph): Kill.
7329 (tree_ssa_dominator_optimize): Do not reset forwardable flag
7330 for blocks anymore. Do not initialize redirection_edges.
7331 Call thread_through_all_blocks. Simplify code for cleanup
7332 of the CFG and iterating. No longer call cleanup_tree_cfg
7333 outside the iteration loop.
7334 (thread_across_edge): No longer mess with forwardable blocks.
7336 2004-08-09 Zack Weinberg <zack@codesourcery.com>
7338 * explow.c (memory_address): Use memory_address_p.
7339 * recog.c (general_operand): Likewise.
7340 * regrename.c: No need to define REG_OK_STRICT.
7342 2004-08-09 Steven Bosscher <stevenb@suse.de>
7344 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
7346 * gcse.c: Include timevar.h.
7347 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
7348 and global_copy_prop_count.
7349 (local_const_prop_count, local_copy_prop_count): New static globals.
7350 (gcse_main): Set the right timevar for each pass.
7351 (cprop_jump): Increment global_const_prop_count when a constant is
7352 propagated. Add "GLOBAL" to dump output.
7353 (cprop_insn): Increment global_const_prop_count when a constant is
7354 propagated, or global_copy_prop_count when a copy is propagated.
7355 (do_local_cprop): Likewise for local_const_prop_count and
7356 local_copy_prop_count.
7357 (one_cprop_pass): Initialize const/cprop counters to zero.
7358 Print out results of local and global const/cprop separately.
7359 (bypass_block): Break over-length line.
7360 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
7361 for bb-reorder.o and tracer.o.
7363 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
7365 * Makefile.in (GTFILES): Remove stmt.c
7366 (stmt.o): Do not depend on gt-stmt.h.
7367 * emit-rtl.c (emit_line_note): Do not call
7368 set_file_and_line_for_stmt.
7369 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
7371 * function.c (free_after_parsing): Do not free STMT field.
7372 (allocate_struct_function): Do not call init_stmt_for_function.
7373 (assign_stack_temp_for_type): Do not accept values of keep
7375 (init_temp_slots): Do not initialize removed variables.
7376 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
7377 and X_VAR_TEMP_SLOT_LEVEL fields.
7378 * rtl.h (set_file_and_line_for_stmt): Remove.
7379 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
7380 struct stmt_status, cond_stack, case_stack, nesting_stack,
7381 nesting_depth, emit_locus, set_file_and_line_for_stmt,
7382 same_case_target_p, init_stmt_for_function, emit_nop,
7383 expand_start_cond, expand_start_elseif, expand_start_else,
7384 expand_elseif, expand_end_cond): Remove.
7385 (preserve_subexpressions_p): Remove references to CFUN->STMT.
7386 (expand_start_case, expand_end_case_type): Remove, merge into...
7387 (expand_case): ... this one, including other bits from
7388 expand_expr_real_1. Inline same_case_target_p. Turn members
7389 of CASE_STACK into local variables.
7390 (emit_case_bit_tests): Inline same_case_target_p.
7391 (add_case_node): Add HEAD argument, return new head of the list,
7392 do not handle default label here.
7393 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
7394 expand_start_elseif, current_nesting_level, expand_start_case,
7395 expand_end_case_type, expand_end_case, add_case_node,
7396 init_stmt_for_function, expand_elseif): Remove prototypes.
7397 (expand_case): Add prototype.
7399 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
7401 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
7403 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
7405 * expr.c (var_rtx): Remove.
7406 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
7407 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
7408 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
7410 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
7411 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
7412 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
7414 2004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
7415 Ayal Zaks <zaks@il.ibm.com>
7417 * common.opt (freschedule-modulo-scheduled-loops): New flag.
7418 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
7419 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
7420 when -freschedule-modulo-scheduled-loops flag is not specified.
7421 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
7422 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
7423 More accurate placing of insn in row of partial schedule.
7424 (ps_insn_find_column): New function.
7425 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
7426 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
7427 (schedule_region): Use sched_is_disabled_for_current_region_p.
7428 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
7430 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
7432 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
7435 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
7437 * config/i386/i386.c (ix86_expand_clrmem): Properly call
7438 gen_strset for 64bit target.
7440 2004-08-07 Olivier Hainque <hainque@act-europe.fr>
7442 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
7444 2004-08-07 Jason Merrill <jason@redhat.com>
7446 Make return in memory explicit.
7447 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
7448 (assign_parm_find_data_types): Remove code for old front end
7449 invisible reference handling.
7450 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
7451 (expand_function_end): Likewise.
7452 * gimplify.c (gimplify_return_expr): Handle a dereferenced
7454 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
7455 (declare_return_variable): Handle DECL_BY_REFERENCE.
7456 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
7457 (cp_genericize_r): Use convert_from_reference.
7458 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
7459 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
7461 * c-common.c (c_warn_unused_result): Check TREE_USED before
7462 warning about a CALL_EXPR with an unused value.
7464 2004-08-06 Mark Mitchell <mark@codesourcery.com>
7466 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
7467 to the compiler. Use -fshort-wchar by default.
7469 2004-08-06 Pat Haugen <pthaugen@us.ibm.com>
7471 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
7472 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
7474 * doc/invoke.texi (param): Document min-crossjump-insns.
7476 2004-08-06 Richard Sandiford <rsandifo@redhat.com>
7479 * c.opt (Wmissing-field-initializers): New option.
7480 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
7481 * c-typeck.c (pop_init_level): Guard the missing field warning with
7482 warn_missing_field_initializers rather than extra_warnings.
7483 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
7484 some of the explanation from...
7485 (-Wextra): ...here. Say that the missing field warning can be
7486 seperately controlled by -Wmissing-field-initializers.
7488 2004-08-06 Paolo Bonzini <bonzini@gnu.org>
7490 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
7491 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
7492 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
7493 * tree.def (ENTRY_VALUE_EXPR): Remove.
7495 2004-08-06 Jakub Jelinek <jakub@redhat.com>
7497 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
7498 the places where it is actually needed. Don't use repz; stosb
7499 for -Os with sufficiently small constant sizes.
7500 For sufficiently small repz; stos{l,q} repeat counts use a sequence
7501 of stos{l,q} instructions instead.
7503 2004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7505 PR tree-optimization/16807
7506 * loop-iv.c (dump_iv_info): Dump invariants correctly.
7507 (iv_subreg, iv_extend): Express value of invariant purely in
7510 2004-08-06 Mark Mitchell <mark@codesourcery.com>
7512 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
7513 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
7515 2004-08-06 Roman Zippel <zippel@linux-m68k.org>
7517 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
7518 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
7520 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
7521 pattern until reload is finished to allow better code generation
7522 and split them completely into separate instrunctions.
7523 (*andsi3_split): New pattern.
7525 2004-08-05 Mark Mitchell <mark@codesourcery.com>
7527 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
7528 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
7529 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
7530 * tree.h (handle_dll_attribute): Declare. Test
7531 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
7532 * c-common.h (c_determine_visibility): Declare.
7533 * c-common.c (c_determine_visibility): New function.
7534 * c-decl.c (finish_decl): Use it.
7535 (finish_function): Likewise.
7536 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
7537 zero, by default. Use #if, not #ifdef, to test it.
7538 * config/arm/arm.c (arm_attribute_table): Use
7539 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
7541 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
7542 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
7544 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
7545 * config/i386/i386.c (ix86_attribute_table): Use
7546 handle_dll_attribute for dllimport/dllexport. Test
7547 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
7548 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
7549 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
7551 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
7553 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
7555 * doc/extend.texi (dllexport): Clarify and correct documentation.
7556 (dllimport): Likewise.
7557 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
7558 handle_dll_attribute.
7560 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7562 * tree-ssa-loop-manip.c: New file.
7563 * Makefile.in (tree-ssa-loop-manip.o): Add.
7564 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
7566 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
7568 (tree_ssa_loop_done): Verify loop closed ssa form.
7569 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
7571 2004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7573 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
7574 pa_asm_output_aligned_local): New functions.
7575 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
7576 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
7577 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
7578 pa_asm_output_aligned_common.
7579 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
7580 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
7581 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
7582 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
7583 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
7584 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
7585 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
7586 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
7589 2004-08-05 Andrew Pinski <apinski@apple.com>
7591 * objc/objc-act.c (build_objc_string_object): Mark the address
7592 expression as constant.
7594 2004-08-05 David Edelsohn <edelsohn@gnu.org>
7596 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
7597 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
7598 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
7600 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
7602 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
7603 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
7604 out, and associated obsolete comments.
7606 2004-08-05 Nathan Sidwell <nathan@codesourcery.com>
7608 * tree.h (force_fit_type): Return a tree, take three flags.
7609 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
7610 TREE_CONSTANT_OVERFLOW here.
7611 (int_const_binop, const_binop): Adjust.
7612 (size_int_type): Do sign extension here.
7613 (fold_convert_const, optimize_bit_field_compare,
7614 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
7615 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
7616 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
7618 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7620 PR tree-optimization/16864
7621 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
7622 for ssa names without default_def.
7624 2004-08-05 Richard Sandiford <rsandifo@redhat.com>
7626 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
7627 frame pointer, restore eax with an ebp-relative address.
7629 2004-08-04 Geoffrey Keating <geoffk@apple.com>
7632 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
7633 * c-common.h (make_rtl_for_local_static): Delete.
7634 * c-decl.c (shadow_tag_warned): Clean up comment.
7635 (finish_decl): Clean up spacing. Use set_user_assembler_name when
7636 appropriate. Don't pass asmspec to rest_of_decl_compilation.
7637 * c-semantics.c (make_rtl_for_local_static): Delete.
7638 * expr.c (init_block_move_fn): Use set_user_assembler_name.
7639 (init_block_clear_fn): Likewise.
7640 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
7641 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
7642 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
7643 * tree.h (make_decl_rtl): Remove second parameter.
7644 (set_user_assembler_name): New.
7645 * varasm.c (set_user_assembler_name): New.
7646 (make_decl_rtl): Remove second parameter. Update callers in many
7649 2004-08-05 Adam Nemet <anemet@lnxw.com>
7651 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
7652 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
7654 * gthr-lynx.h: New file.
7655 * config/lynx-ng.h: Remove file.
7656 * config/lynx.h: Update to LynxOS 4.0.
7657 * config/t-lynx: New file.
7658 * config/i386/lynx-ng.h: Remove file.
7659 * config/i386/lynx.h: Update to LynxOS 4.0.
7660 * config/rs6000/lynxbase.h: Remove file.
7661 * config/rs6000/lynx.h: Update to LynxOS 4.0.
7662 * config/rs6000/t-lynx: New file.
7663 * doc/install.texi (Options specification): Remove reference to
7664 LynxOS from systems where --with-gnu-as makes a difference.
7666 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
7668 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
7670 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
7672 (c_cpp_builtins): Call it.
7673 * doc/cpp.texi: Update.
7675 2004-08-04 David Edelsohn <edelsohn@gnu.org>
7677 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
7680 2004-08-04 Jan Hubicka <jh@suse.cz>
7682 * basic-block.h (profile_staus): New global variable.
7683 * cfg.c (profile_status): Declare.
7684 (check_bb_profile): Break out from ....; use profile_status
7685 (dump_flow_info): ... here.
7686 * cfgbuild.c (find_basic_blocks): Set profile_status.
7687 * cfgexpand.c (tree_expand_cfg): Likewise.
7688 * predict.c (estimate_probability): Likewise.
7689 * profile.c (branch_prob): Likewise.
7690 * tree-cfg.c (build_tree_cfg): Likewise.
7691 (dump_function_to_file): Use check_bb_profile.
7692 * tree-pretty-print (dump_bb_header): Likewise.
7693 * tree-profile.c (do_tree_profiling): Cleanup.
7695 2004-08-04 Zack Weinberg <zack@codesourcery.com>
7697 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
7698 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
7699 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
7700 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
7701 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
7702 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
7703 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
7704 (ggc-none.o, errors.o): Move rule to generators section;
7705 correct dependencies.
7706 (min-insn-modes.o): Move rule to generators section; remove
7707 unnecessary explicit command; correct dependencies.
7708 (print-rtl.o, print-rtl1.o): Correct dependencies.
7709 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
7710 (mostlyclean): Update.
7712 * errors.c: Include bconfig.h not config.h. Correct comment.
7713 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
7714 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
7715 * print-rtl.c: Don't include tm_p.h.
7717 * rtl.h: Move forward-decl of struct function down where it's
7718 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
7719 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
7721 2004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7722 Jeff Law <law@redhat.com>
7724 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
7725 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
7726 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
7727 manipulate the duplicated ssa names.
7728 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
7729 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
7730 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
7732 (release_ssa_name): Do not release ssa names that may have multiple
7734 * tree.h (release_ssa_name_force, mark_for_rewrite,
7735 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
7736 marked_ssa_names): Declare.
7737 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
7738 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
7739 Update call to rewrite_ssa_into_ssa.
7741 2004-08-04 Mark Mitchell <mark@codesourcery.com>
7743 * defaults.h (TARGET_DECLSPEC): New macro.
7744 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
7745 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
7746 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
7747 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
7749 (TARGET_DECLSPEC): Define.
7750 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
7752 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
7754 (TARGET_DECLSPEC): Define.
7755 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
7757 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
7759 * doc/tm.texi (TARGET_DECLSPEC): Document.
7761 * doc/extend.texi: Fix typo in comment.
7763 2004-08-04 Paul Brook <paul@codesourcery.com>
7765 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
7766 (TARGET_CXX): Use it.
7767 * target.h (struct gcc_target): Add cdtor_returns_this.
7768 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
7769 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
7770 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
7772 2004-08-03 Nathan Sidwell <nathan@codesourcery.com>
7774 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
7775 low/high pair. Do range checking directly.
7776 (interpret_integer): Adjust.
7778 2004-08-04 Nick Clifton <nickc@redhat.com>
7780 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
7782 * doc/invoke.texi: Document this new switch and also the -mrenesas
7785 2004-08-04 Nathan Sidwell <nathan@codesourcery.com>
7787 * cfglayout.c (insn_locators_initialize): Update the current
7788 location before initializing a location.
7790 2004-08-03 Zack Weinberg <zack@codesourcery.com>
7792 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
7793 (dbxout_function_end): Return after emitting the "Lscope" symbol
7794 under the same conditions that this function formerly wasn't called.
7795 Add explanatory comments.
7798 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
7802 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
7803 functions, broken out of dbxout_block.
7804 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
7805 stabs too, if it contains symbols. Use the begin_label and
7806 the Lscope label (emitted by dbxout_function_end) for the
7807 range of this block.
7809 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
7811 * doc/install.texi: Update autoconf version requirements.
7813 2004-08-03 Zack Weinberg <zack@codesourcery.com>
7815 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
7816 * recog.c (general_operand, immediate_operand, nonmemory_operand)
7817 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
7818 * regclass.c (record_reg_classes): Likewise.
7819 * reload.c (find_reloads): Likewise.
7820 * reload1.c (reload): Likewise.
7822 2004-08-03 Zack Weinberg <zack@codesourcery.com>
7824 * gensupport.c (init_md_reader_args_cb): Renamed from
7825 init_md_reader_args. Add third option, callback function for
7826 parsing program-specific options. Add diagnosis of incorrect
7827 number of input files.
7828 (init_md_reader): Fold into init_md_reader_args_cb.
7829 (init_md_reader_args): Now a thin wrapper around
7830 init_md_reader_args_cb.
7831 * gensupport.h: Update prototypes.
7833 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
7834 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
7835 * genrecog.c: No need to diagnose lack of an input file;
7836 init_md_reader_args will handle it.
7837 * genconditions.c: Likewise, and use init_md_reader_args.
7838 * genconstants.c: Likewise, and no need to call read_md_rtx.
7840 2004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
7842 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
7845 2004-08-03 Mike Stump <mrs@apple.com>
7847 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
7849 * doc/invoke.texi (Darwin Options): Update to reflect above.
7851 2004-08-03 Roger Sayle <roger@eyesopen.com>
7854 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
7855 truncations, not just global truncations.
7857 2004-08-03 Andrew Pinski <apinski@apple.com>
7860 * loop-iv.c (simplify_using_assignment): Initialize lhs.
7862 2004-08-03 Paul Brook <paul@codesourcery.com>
7864 * gcc/doc/install.texi: Document MPFR requirement.
7866 2004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
7868 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
7869 and mmap() explicitly instead of relying on preset autoconf cache
7871 * configure: Regenerate.
7873 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
7876 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
7878 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
7879 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
7882 * config/i386/t-gmm_malloc: New file.
7883 * config/i386/t-pmm_malloc: Likewise.
7885 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
7887 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
7888 Tanguy Fautrà <tfautre@pandora.be>
7890 * config/i386/pmm_malloc.h: New file.
7892 2004-08-03 Danny Smith <dannysmith@users.sourceforge.net>
7894 * config/i386/gmm_malloc.h: New file.
7896 2004-08-03 Dale Johannesen <dalej@apple.com>
7898 * config/rs6000/rs6000.c (machopic_output_stub): Align Darwin stubs.
7899 * c-common.c: Include opts.h.
7900 (c_common_get_alias_set): Fix check for a single input file.
7901 * toplev.c: Remove current_file_decl.
7904 2004-08-03 Mark Mitchell <mark@codesourcery.com>
7906 * config.gcc (arm*-*-symbianelf*): New target.
7907 * config/arm/symbian.h: New file.
7909 * gthr-gnat.c: Add visibility #pragmas.
7910 * gthr-gnat.h : Likewise.
7912 * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
7913 (__ffsDI2): Likewise.
7914 (__clzSI2): Likewise.
7915 (__ctzSI2): Likewise.
7916 (__ctzDI2): Likewise.
7917 (__popcountSI2): Likewise.
7918 (__popcountDI2): Likewise.
7919 (__paritySI2): Likewise.
7920 (__parityDI2): Likewise.
7921 * libgcc2.h: Add visibility #pragmas.
7922 (__clzDI2): Add prototype.
7923 (__clzSI2): Likewise.
7924 (__ctzSI2): Likewise.
7925 (__ffsDI2): Likewise.
7926 (__ffsSI2): Likewise.
7927 (__ctzDI2): Likewise.
7928 (__popcountSI2): Likewise.
7929 (__popcountDI2): Likewise.
7930 (__paritySI2): Likewise.
7931 (__parityDI2): Likewise.
7932 * unwind-dw2-fde.h: Add visibility #pragmas.
7933 * unwind.h: Likewise.
7935 2004-08-03 David Edelsohn <edelsohn@gnu.org>
7936 Dale Johannesen <dalej@apple.com>
7937 Roger Sayle <roger@eyesopen.com>
7939 * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
7940 constants more accurately. Adjust costs for FMA instructions.
7941 Add cases for most logical and float operations. Recurse into
7944 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
7946 * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
7948 2004-08-03 Pat Haugen <pthaugen@us.ibm.com>
7950 * ra-build.c (conflicts_between_webs): For webs that cross a call add
7951 conflicts to regs_invalidated_by_call.
7953 2004-08-03 Paul Brook <paul@codesourcery.com>
7955 * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
7957 2004-08-03 Jan Hubicka <jh@suse.cz>
7959 * coverage.c (tree_coverage_counter_ref): Fix computation of the new
7962 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
7964 * arm-cores.def: Sort by architecture. Add arm946es, arm966es,
7965 arm968es, arm10e, arm1020e, arm1022e.
7966 * invoke.texi: Update list of ARM cores.
7967 * arm-tune.md: Regenerate.
7969 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
7971 * arm/gentune.sh: New file.
7972 * arm/t-arm: New file.
7973 * arm/arm-tune.md: New file (autogenerated).
7974 * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
7975 * arm.md (attribute tune): Delete. Include arm-tune.md.
7977 2004-08-03 Paolo Bonzini <bonzini@gnu.org>
7979 * gcc.c (add_prefix, add_sysrooted_prefix): Remove
7980 penultimate parameter. All callers adjusted.
7981 (struct prefix_list): Remove used_flag_ptr.
7982 (find_a_file): Do not set *pl->used_flag_ptr.
7983 (warn_B, warn_std_ptr): Remove.
7985 2004-08-03 Yossi Markovich <yossim@il.ibm.com>
7986 Mostafa Hagog <mustafa@il.ibm.com>
7988 * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
7990 2004-08-02 Geoffrey Keating <geoffk@apple.com>
7992 * dwarf2out.c (output_call_frame_info): Don't change data format
7993 due to TARGET_USES_WEAK_UNWIND_INFO. Always refer to the local
7994 label. Use 'true' not '1'.
7995 * doc/install.texi (powerpc-*-darwin*): Mention cctools version
7998 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
8000 * gdbinit.in: Reflect previous changes to rtunion_def.
8002 2004-08-02 Roger Sayle <roger@eyesopen.com>
8004 * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
8005 -> "X % Y" is only valid for TRUNC_MOD_EXPR.
8007 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
8009 * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
8011 * langhooks.h (lang_hooks::builtin_function): Rename parameter
8012 from "class" to "bt_class".
8014 2004-08-02 Paul Brook <paul@codesourcery.com>
8016 PR rtl-optimization/15068
8017 * flow.c (init_propagate_block_info): Check condition is reversible.
8019 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
8021 * gengtype.h (options::info): Change type to const char *.
8022 (enum gc_used_enum): Move out of struct type scope.
8023 * gengtype.c (create_option): Convert initializer for option::info to
8025 (adjust_field_type, walk_type, write_func_for_structure,
8026 write_root, write_roots): Remove pointless cast.
8028 2004-08-02 J"orn Rennecke <joern.rennecke@superh.com>
8030 * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
8032 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
8034 * rtl.h (union rtunion_def): Have all members start with the
8036 (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
8037 X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
8038 X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
8039 XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
8041 * gengtype.c (adjust_field_rtx_def): Likewise.
8042 * rtlanal.c (loc_mentioned_in_p): Likewise.
8044 2004-08-02 Richard Sandiford <rsandifo@redhat.com>
8046 * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
8047 Replace uses of mips/elf64.h with mips/elf.h
8048 * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
8049 (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
8050 (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
8051 (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
8052 (HANDLE_SYSV_PRAGMA): Delete.
8053 (ASM_OUTPUT_DEF): Fix formatting.
8054 * config/mips/elf64.h: Delete.
8056 2004-08-01 Zack Weinberg <zack@codesourcery.com>
8058 * config/ia64/ia64.c (got_symbolic_operand): Do require a
8059 symbol+offset operand to have its offset be zero mod 0x3fff
8060 when GOT entries are in use. Clarify logic in SYMBOL_REF
8061 case. Clarify comments.
8062 (ia64_expand_load_address): Split a symbol+offset load when
8063 the offset is nonzero mod 0x3fff, not 0x1fff.
8065 2004-08-01 Geoffrey Keating <geoffk@apple.com>
8067 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
8068 if trying to *store* to a non-offsettable address.
8069 * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
8070 a nonoffsettable address.
8071 (movdi_internal32): Don't move GPRs to a nonoffsettable address.
8073 (movti_string): Don't move GPRs to a nonoffsettable address.
8074 (movti_ppc64): Don't move GPRs to a nonoffsettable address. Clean up.
8076 2004-08-02 Ben Elliston <bje@au.ibm.com>
8079 * config/rs6000/altivec.h: Replace typeof with __typeof__.
8081 2004-08-01 Richard Henderson <rth@redhat.com>
8083 * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
8084 variable sized types.
8086 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
8088 * doc/invoke.texi: In the MIPS options section, remove the passage
8089 saying that -mexplicit-relocs is usually disabled for -mabicalls
8090 -fno-unit-at-a-time.
8091 * config/mips/mips.c (override_options): Remove the code that enforced
8094 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
8096 * config/mips/mips.md (cprestore): Provide two alternatives, one for
8097 an in-range offset and one for an out-of-range offset. Wrap the latter
8098 in .set macro/.set nomacro if it's inside a .set nomacro block.
8100 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
8102 * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
8103 (mips_restore_gp): Declare.
8104 * config/mips/mips.c (mips_add_offset): Add a scratch register
8105 argument. Reimplement in rtl only, reusing MIPS16 logic from
8106 mips_output_mi_thunk.
8107 (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
8109 (mips_gp_save_slot): Delete.
8110 (mips_restore_gp): New function.
8111 (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
8112 * config/mips/mips.md (exception_receiver): Turn into a
8113 define_insn_and_split. Use mips_restore_gp to do the split.
8114 (call_internal, call_value_internal, call_value_multiple_internal): Use
8115 mips_restore_gp to restore $gp.
8117 2004-07-31 Andrew Pinski <apinski@apple.com>
8120 * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
8122 2004-07-31 Joseph S. Myers <jsm@polyomino.org.uk>
8124 * c-decl.c (diagnose_mismatched_decls): Give error for external
8125 redeclaration of identifier declared with no linkage, not just
8126 warning with -Wtraditional. Do not check DECL_CONTEXT to give
8127 error for redeclaration with no linkage.
8129 2004-07-30 Geoffrey Keating <geoffk@apple.com>
8130 Fariborz Jahanian <fjahanian@apple.com>
8132 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
8133 non-offsettable addresses even for DImode.
8134 (rs6000_split_multireg_move): Cope with non-offsettable addresses
8135 being moved into multiple GPRs.
8137 * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
8139 (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
8140 * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
8142 * config/rs6000/darwin-ldouble.c (isless): New macro.
8144 (nonfinite): New macro.
8146 (_xlqadd): Completely rewrite.
8147 (_xlqmul): Correct overflow handling.
8148 (_xlqdiv): Correct overflow handling.
8149 * config/rs6000/darwin-ldouble-format: New file.
8151 2004-07-30 Roger Sayle <roger@eyesopen.com>
8152 Richard Henderson <rth@redhat.com>
8154 * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
8155 9 into the equivalent lea instruction.
8157 2004-07-30 Richard Henderson <rth@redhat.com>
8159 * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
8160 with DECL_INITIAL if fb_lvalue.
8161 * tree-gimple.c (is_gimple_id): Add CONST_DECL.
8162 * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
8164 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
8166 2004-07-30 Diego Novillo <dnovillo@redhat.com>
8168 * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
8169 pointer escapes through a function call, assume that the
8170 callee will dereference it.
8171 (add_pointed_to_var): Assume that VALUE is always an
8173 (collect_points_to_info_r): Only call add_pointed_to_var if
8174 the value is an ADDR_EXPR.
8176 2004-07-30 Diego Novillo <dnovillo@redhat.com>
8178 * tree-ssa-alias.c (create_alias_map_for): Do not get the
8179 alias set of the inner type of ARRAY_TYPEs.
8181 2004-07-29 Diego Novillo <dnovillo@redhat.com>
8183 * tree-ssa-ccp.c (visit_assignment): Move code to prevent
8184 setting a non-register to UNDEFINED right before the call to
8187 2004-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
8189 * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
8191 2004-07-29 Diego Novillo <dnovillo@redhat.com>
8193 * tree-ssa.c (verify_flow_sensitive_alias_info): When
8194 comparing points-to sets of different pointers, make sure the
8195 second pointer is actually referenced in the code.
8197 2004-07-29 Zack Weinberg <zack@codesourcery.com>
8199 * config/ia64/ia64.c (setjmp_operand): Delete, unused.
8200 (got_symbolic_operand): Remove unreachable code.
8201 * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
8202 setjmp_operand; add entry for tls_symbolic_operand.
8203 * config/ia64/ia64-protos.h: Remove all prototypes of
8204 predicate functions.
8206 2004-07-29 Mark Mitchell <mark@codesourcery.com>
8208 * c-common.h (lang_post_pch_load): New variable.
8209 * c-pch.c (lang_post_pch_load): Define it.
8210 (c_common_read_pch): Use it.
8211 * cgraphunit.c (record_call_1): Give the front end a chance to
8212 record additional needed entities when a variable is marked as
8214 * tlink.c (recompile_files): Robustify.
8215 (scan_linker_output): If a symbol is assigned to a file,
8216 but after recompilation is not present there, issue an error
8219 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8221 * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
8222 Take orig_loop argument and pass it to set_level.
8223 (schedule_sm): Pass the correct orig_loop to force_move_till.
8225 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8227 * cfgloop.c (update_latch_info): Update dominator of the new block.
8228 (canonicalize_loop_headers, flow_loops_find): Do not free dominance
8230 * dominance.c (verify_dominators): Check that the dominance tree is
8232 (recount_dominator): Ignore unreachable blocks.
8233 (iterate_fix_dominators): Cleanup old dominance information before
8236 2004-07-29 Diego Novillo <dnovillo@redhat.com>
8238 * tree-ssa-operands.c (get_expr_operands): Revert changes
8239 to ADDR_EXPR processing introduced by:
8240 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8241 * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
8243 2004-07-29 Joseph S. Myers <jsm@polyomino.org.uk>
8245 * doc/implement-c.texi: Add C90 subclause references. Point to
8246 preprocessor documentation instead of duplicating it. Add points
8247 only present in C90. Fill in documentation for all points.
8249 2004-07-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8251 * pa.c (output_movb): Correct typo.
8253 2004-07-29 Pat Haugen <pthaugen@us.ibm.com>
8255 * ra.h (single_reg_in_regclass): Declare.
8256 * ra.c (single_reg_in_regclass): Define.
8257 (first_hard_reg): New.
8258 (init_ra): Initialize single_reg_in_regclass.
8259 * ra-colorize.c (ok_class): New.
8260 (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
8262 2004-07-29 Nathan Sidwell <nathan@codesourcery.com>
8264 * gcov-io.h: Allow zero tag as EOF indicator.
8265 (gcov_is_eof): Remove.
8266 (gcov_truncate): Remove.
8267 * gcov-io.c (gcov_seek): Always SEEK_SET.
8268 * libgcov.c (gcov_exit): Don't use gcov_truncate. Write explicit
8270 * coverage.c (read_counts_file): Don't use gcov_is_eof.
8271 * gcov-dump.c (dump_file): Likewise.
8272 * gcov.c (read_graph_file, read_count_file): Likewise.
8274 * c-decl.c (complete_array_type): Don't gratuitously copy
8275 maxindex. Check it always has a type.
8277 2004-07-29 Steven Bosscher <stevenb@suse.de>
8279 * rtl.c (currently_expanding_to_rtl): New.
8280 * rtl.h (currently_expanding_to_rtl): Export it.
8281 * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
8283 * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
8285 * config/sh/sh.c: Replace rtx_equal_function_value_matters
8286 with currently_expanding_to_rtl.
8287 * config/sh/sh.md: Likewise.
8288 * config/ia64/ia64.c (got_symbolic_operand): Likewise.
8290 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
8292 Introduce sh2a support.
8293 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
8294 * config.gcc: Build multilibs for sh2a and sh2a-single by
8296 * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
8297 default. Split their tests out of the corresponding SH4
8299 * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
8301 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
8302 * config.gcc: Handle sh2a multilibs and cpu selection.
8303 * config/sh/sh.h: Likewise. Handle sh2a command line flags.
8304 * config/sh/t-mlib-sh2a: New.
8305 * config/sh/t-mlib-sh2a-nofpu: New.
8306 * config/sh/t-mlib-sh2a-single: New.
8307 * config/sh/t-mlib-sh2a-single-only: New.
8308 2004-07-09 Nick Clifton <nickc@redhat.com>
8310 * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
8311 -ml and -m2a are used together.
8312 2004-03-23 DJ Delorie <dj@redhat.com>
8313 * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
8314 when we have a double-sized FPU.
8315 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
8316 * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
8318 * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
8319 -msh2a-single and -msh2a-single-only
8320 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
8321 * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
8323 2004-02-20 DJ Delorie <dj@delorie.com>
8324 * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
8325 2004-02-20 Fred Fish <fnf@redhat.com>,
8326 Corinna Vinschen <vinschen@redhat.com>
8327 * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
8328 (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
8329 2004-02-18 DJ Delorie <dj@redhat.com>
8330 * config/sh/sh.c (broken_move): Add support for movi20.
8331 * config/sh/sh.h: Likewise.
8332 (SHIFT_COUNT_TRUNCATED): Set for sh2a.
8333 * config/sh/sh.md (udivsi3_sh2a): New.
8338 (ashlsi3_sh2a): New.
8339 (ashrsi3_sh2a): New.
8340 (lshrsi3_sh2a): New.
8341 (movsi_i): Disable for sh2a.
8342 (movsi_ie): Add movi20.
8343 (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
8344 sh2a, for -m2a-nofpu mode.
8345 2004-02-13 DJ Delorie <dj@redhat.com>
8346 * config/sh/lib1funcs.asm: Handle double vs single better.
8347 * config/sh/sh.h: Likewise.
8348 2004-02-09 DJ Delorie <dj@redhat.com>
8349 * config/sh/crt1.asm: Add support for sh2a.
8350 * config/sh/elf.h: Likewise.
8351 * config/sh/lib1funcs.asm: Likewise.
8352 * config/sh/sh.c: Likewise.
8353 * config/sh/sh.md: Likewise.
8354 * config/sh/sh.h: Likewise.
8355 * config/sh/t-sh: Likewise.
8357 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
8359 * config/frv/frv.md (movqi_internal, movhi_internal,
8360 movsi_internal): Add backup alternatives for memory inputs.
8362 2004-07-28 Matt Austern <austern@apple.com>
8364 * config/darwin.c (darwin_one_byte_bool): New global variable.
8365 * config/darwin.h (darwin_one_byte_bool): Declare.
8366 (SUBTARGET_OPTIONS): Define macro. (for -mone-byte-bool flag.)
8367 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
8368 value of darwin_one_byte_bool.
8369 * doc/invoke.texi: Document -mone-byte-bool flag.
8371 2004-07-28 Eric Christopher <echristo@redhat.com>
8373 * c-common.c (c_common_unsafe_for_reeval): Delete.
8374 * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
8375 * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
8376 * calls.c (fix_unsafe_tree): Delete.
8377 (expand_call): Delete code which used above.
8378 * dojump.c (do_jump): Delete UNSAVE_EXPR case.
8379 * expr.c (expand_expr_real_1): Ditto.
8380 * fold-const.c (non_lvalue): Ditto.
8381 * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
8382 (lhd_unsafe_for_reeval): Ditto.
8383 * langhooks.c (lhd_unsafe_for_reeval): Ditto.
8384 * langhooks.h (unsafe_for_reeval): Ditto.
8385 (unsave_expr_now): Adjust comment.
8386 * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
8387 (estimate_num_insns_1): Ditto.
8388 * tree-pretty-print.c (dump_generic_node): Ditto.
8389 * tree.c (expr_align): Ditto.
8390 (unsave_expr): Delete.
8391 (unsafe_for_reeval): Ditto.
8392 * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
8393 * tree.def (UNSAVE_EXPR): Delete.
8394 * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
8396 2004-07-28 Zack Weinberg <zack@codesourcery.com>
8398 * tree.h (enum tls_model): Move ...
8399 * coretypes.h: ... here.
8401 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
8403 * config/frv/frv.h (EPILOGUE_USES): New. Use LR.
8405 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
8407 * cse.c (validate_canon_reg): New function, split out from...
8408 (canon_reg): ...here. Use validate_canon_reg for both 'e' and 'E'.
8410 2004-07-28 Diego Novillo <dnovillo@redhat.com>
8412 * tree-ssa-alias.c (maybe_create_global_var): Don't just
8413 return if .GLOBAL_VAR has been created.
8415 2004-07-28 Diego Novillo <dnovillo@redhat.com>
8417 * tree-ssa.c (verify_flow_insensitive_alias_info): Process
8418 every variable that may have aliases, not just tags.
8420 2004-07-28 Aldy Hernandez <aldyh@redhat.com>
8422 * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
8423 move_from_CR_eq_bit.
8424 Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
8427 * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
8430 * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
8431 output_e500_flip_eq_bit.
8433 * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
8434 output_e500_flip_eq_bit.
8435 (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
8436 output_e500_flip_eq_bit.
8437 Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
8438 (print_operand): case D. Get to EQ bit.
8440 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
8442 * gcov.c (function_summary): Add missing \n.
8444 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
8446 Introduce sh4a support.
8447 * config.gcc: Handle sh4a multilibs and cpu selection.
8448 * config/sh/sh.h: Likewise. Handle sh4a command line flags.
8449 * config/sh/t-mlib-sh4a: New.
8450 * config/sh/t-mlib-sh4al: New.
8451 * config/sh/t-mlib-sh4a-nofpu: New.
8452 * config/sh/t-mlib-sh4a-single: New.
8453 * config/sh/t-mlib-sh4a-single-only: New.
8454 2004-02-20 DJ Delorie <dj@redhat.com>
8455 * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
8456 * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
8457 2003-08-22 Eric Christopher <echristo@redhat.com>
8458 * config/sh/sh4a.md: Update for chip errata.
8459 2003-08-07 Eric Christopher <echristo@redhat.com>
8460 * config/sh/sh4a.md: New file. sh4a processor description.
8461 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
8462 * config/sh/sh.h (TARGET_SWITCHES): Added 4al. Adjust description
8464 (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
8465 * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
8466 * doc/invoke.texi (SH Options): Document -m4al.
8467 2003-07-03 Alexandre Oliva <aoliva@redhat.com>
8468 * config/sh/sh.c (expand_block_move): Remove commented-out code
8469 checked in by mistake.
8470 (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
8471 single elements from SFmode vectors.
8472 * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
8474 (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
8475 2003-07-01 Alexandre Oliva <aoliva@redhat.com>
8476 * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
8477 sh_fsca_int2sf): Remove variable declarations.
8478 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
8479 sh_fsca_int2sf): New functions.
8480 (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
8481 sh_fsca_int2sf_rtx): New static variables.
8482 * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
8483 sh_fsca_int2sf): Declare.
8484 * config/sh/sh.md: Adjust.
8485 * doc/invoke.texi (SH Options): Document new options.
8486 * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
8487 compatibility from SH4 code.
8488 2003-06-27 Alexandre Oliva <aoliva@redhat.com>
8489 * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
8491 (memory_movsrc_operand): Renamed to...
8492 (unaligned_load_operand): ... this. Simplified.
8493 * config/sh/sh.h (PREDICATE_CODES): Adjust.
8494 * config/sh/sh.md (movua, extv, extzv): Likewise. Change movua's
8495 input operand to SImode, and adjust the others. Introduce
8496 post-increment by peephole.
8497 * config/sh/sh.c (expand_block_move): Give the target address the
8498 same mode as the temp reg.
8499 * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
8501 2003-06-26 Alexandre Oliva <aoliva@redhat.com>
8502 Introduce support for SH4a.
8503 * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
8504 __SH4A__. Emit 4 4kb blocks and touch all of them otherwise.
8505 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
8506 sh_fsca_int2sf): New.
8507 (sh_init_builtins): Initialize them.
8508 (print_operand): Support `d'.
8509 (expand_block_move): Use movua if src is misaligned.
8510 (memory_movsrc_operand): New.
8511 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
8512 and one of the SH4 macros.
8513 (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
8514 SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
8515 SELECT_SH4A_SINGLE): New.
8516 (TARGET_NONE): Add SH4A_BIT.
8517 (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
8518 (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
8519 (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
8520 (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
8521 (enum processor_type): Added PROCESSOR_SH4A.
8522 (PREDICATE_CODES): Add memory_movsrc_operand.
8523 * config/sh/sh.md: Removed unused variables.
8524 (attr cpu): Add sh4a.
8525 (attr type): Add movua, fsrra and fsca.
8526 (prefetch): New, for SH4.
8527 (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
8528 (toggle_sz): Set type to fp.
8529 (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
8530 (movua, extv, extzv): New.
8531 * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
8534 2004-07-28 Diego Novillo <dnovillo@redhat.com>
8536 * tree-optimize.c (init_tree_optimization_passes): Schedule
8537 pass_may_alias right after the program is renamed into SSA.
8538 * tree-pass.h (PROP_alias): Define.
8539 * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
8540 * tree-sra.c (pass_sra): Likewise.
8541 * tree-ssa-ccp.c (pass_ccp): Likewise.
8542 * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
8543 * tree-ssa-dce.c (pass_dce): Likewise.
8544 * tree-ssa-dom.c (pass_dominator): Likewise.
8545 * tree-ssa-dse.c (pass_dse): Likewise.
8546 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
8547 * tree-ssa-loop-ch.c (pass_ch): Likewise.
8548 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
8549 * tree-ssa-pre.c (pass_pre): Likewise.
8550 * tree-tailcall.c (pass_tail_recursion): Likewise.
8551 * tree-ssa.c (pass_redundant_phi): Likewise.
8552 * tree-ssa-alias.c (aliases_computed_p): Remove.
8554 (init_alias_info): Do not mark all type tags for renaming
8556 Clear may_aliases from every symbol.
8557 (setup_pointers_and_addressables): If a pointer has not been
8558 dereferenced and it had a type tag, clear it and mark the old
8561 2004-07-28 Diego Novillo <dnovillo@redhat.com>
8563 PR tree-optimization/16705
8564 * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
8567 2004-07-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8569 * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
8572 * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
8573 don't make another one.
8575 PR optimization/15077
8576 * function.h (struct function): Add field saved_static_chain_decl.
8577 Fix comment for static_chain_decl.
8578 * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
8579 * tree-inline.h (save_body): Add new arg.
8580 * tree-optimize.c (tree_rest_of_compilation): Handle saving
8583 2004-07-27 Richard Henderson <rth@redhat.com>
8585 * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
8586 (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
8587 is_gimple_addressable.
8588 * tree-gimple.c (is_gimple_addressable): Rename from
8589 is_gimple_addr_expr_arg; accept INDIRECT_REF.
8590 (is_gimple_lvalue): Don't test INDIRECT_REF directly.
8591 * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
8592 rename to is_gimple_addressable.
8594 2004-07-28 Alan Modra <amodra@bigpond.net.au>
8596 * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
8598 2004-07-27 Richard Henderson <rth@redhat.com>
8600 * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
8603 2004-07-27 Zack Weinberg <zack@codesourcery.com>
8605 * libgcc2.c: Change all conditionals testing
8606 LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
8607 * libgcc2.h: Likewise.
8608 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
8609 TYPE_PRECISION of float80_type to 80.
8610 * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
8611 of fpreg_type and float80_type to 80.
8612 * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
8613 * config/m68k/netbsd-elf.h:
8614 Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
8615 to evaluate to 80 whenever they would formerly have evaluated to 96.
8616 * config/i386/sco5.h: Remove unnecessary redefinition of
8617 LONG_DOUBLE_TYPE_SIZE.
8618 * doc/rtl.texi: Clarify uses of XFmode and TFmode.
8619 * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
8620 XFmode, with a bitsize of 80. Update commentary.
8621 * config/ia64/ia64-modes.def: Likewise.
8622 * config/m68k/m68k-modes.def: Likewise.
8624 2004-07-27 Steven Bosscher <stevenb@suse.de>
8626 * cfgexpand.c (tree_expand_cfg): Fix comment.
8628 * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
8629 * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
8631 (prepare_function_start): Don't set rtx_equal_function_value_matters.
8632 * integrate.c (copy_rtx_and_substitute): Don't test for it.
8633 * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
8634 Don't set rtx_equal_function_value_matters. Don't register RTL hooks
8635 here again. Update leading comment.
8636 * rtl.c (rtx_equal_function_value_matters): Remove.
8637 (rtx_equal_p): Don't test for it.
8638 * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
8641 * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
8642 * rtl.c (note_insn_name): Likewise.
8643 * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
8644 * final.c (final_scan_insn): Likewise.
8646 * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
8647 * passes.c (rest_of_handle_eh): Do it here.
8649 * stmt.c (struct nesting): Remove struct nesting block member.
8650 (struct stmt_status): Remove x_block_start_count field.
8651 (current_block_start_count): Remove.
8653 2004-07-27 Brian Booth <bbooth@redhat.com>
8655 * tree-optimize.c (register_one_dump_file): Update condition that uses
8657 (dup_pass_1): Replace with...
8658 (next_pass_1): This.
8659 (NEXT_PASS): Call next_pass_1.
8661 (init_tree_optimization_passes): Remove uses of DUP_PASS.
8662 (execute_one_pass): Update condition that uses
8664 * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
8667 2004-07-27 Nick Clifton <nickc@redhat.com>
8669 * config/m32r/m32r.c: Include integrate.h in order to get the
8670 prototype for get_hard_reg_initial_val().
8672 * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
8673 and tidy up indentation.
8674 (final_presence_set): Use absence_set instead, so that if there is
8675 nothing in the "o" pipe the "s" pipe can be scheduled.
8677 2004-07-27 Diego Novillo <dnovillo@redhat.com>
8679 * tree-ssa-alias.c (create_name_tags): Ignore pointers that
8680 don't have PT_VARS nor PT_MALLOC set.
8681 Clear name tag from pointers that have not been dereferenced.
8682 (set_pt_anything, set_pt_malloc): Forward declare.
8683 * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
8684 not type compatibility when determining if a pointer can be
8687 2004-07-27 Richard Sandiford <rsandifo@redhat.com>
8689 * expr.h (canonicalize_condition, get_condition): Add an int argument.
8690 * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
8691 it to check whether the condition is still valid at the jump insn.
8692 * ifcvt.c (noce_get_condition): Likewise.
8693 (noce_get_alt_condition): Update call to canonicalize_condition.
8694 * loop-iv.c (simplify_using_initial_values): Update call to
8695 get_condition. Remove FIXME.
8696 (check_simple_exit): Update call to get_condition.
8697 * loop-unswitch.c (may_unswitch_on): Likewise.
8698 * loop.c (check_dbra_loop): Likewise.
8699 (canonicalize_condition, get_condition): Add an argument to say whether
8700 the condition must still be valid at INSN.
8701 (get_condition_for_loop): Update call to get_condition. Require that
8702 the condition be valid at INSN.
8703 * predict.c (estimate_probability): Update call to get_condition.
8704 Remove unused earliest parameter.
8705 (expected_value_to_br_prob): Update call to canonicalize_condition.
8707 2004-07-26 Eric Christopher <echristo@redhat.com>
8709 * tree-dfa.c (add_referenced_var): Register initializers of global
8712 2004-07-26 Paolo Bonzini <bonzini@gnu.org>
8714 * config/i386/i386.c (function_arg): Always treat 8-
8715 and 16-byte wide vectors the same, even if MMX/SSE
8717 (contains_128bit_aligned_vector_p): Add comment.
8719 2004-07-26 J"orn Rennecke <joern.rennecke@superh.com>
8721 * ra.h (enum node_type): Rename to:
8722 (enum ra_node_type).
8723 * ra-colorize.c: Likewise.
8725 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
8727 * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
8728 after simplifying the jump.
8730 2004-06-26 Richard Henderson <rth@redhat.com>
8732 * calls.c (combine_pending_stack_adjustment_and_call): Make
8733 preferred_unit_stack_boundary argument unsigned. Make
8734 unadjusted_alignment unsigned.
8735 (expand_call): Make preferred_stack_boundary and
8736 preferred_unit_stack_boundary variables unsigned.
8737 * function.c (assign_stack_local_1): Make alignment unsigned.
8738 * function.h (struct function): Make stack_alignment_needed,
8739 preferred_stack_boundary unsigned.
8740 * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
8741 (ix86_compute_frame_layout): Make stack_alignment_needed,
8742 preferred_alignment variables unsigned.
8743 * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
8745 2004-07-26 Tom Tromey <tromey@redhat.com>
8747 * tree.h: Fix typo in comment.
8749 2004-07-26 Daniel Jacobowitz <dan@debian.org>
8752 * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
8753 (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
8754 (ggc_free): Remove incorrect freeing.
8755 (sweep_pages): Advance PP for large pages. Fix indentation.
8757 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
8759 PR rtl-optimization/16643
8760 * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
8761 * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
8762 * basic-block.h (reorder_basic_blocks): Add a flags parameter.
8763 * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
8764 (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
8765 * function.c (thread_prologue_and_epilogue_insns): Likewise.
8766 * rtl.h (tracer): Add a flags parameter.
8767 * tracer.c (tracer): Pass it to cfg_layout_initialise.
8768 * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
8769 (rest_of_handle_reorder_blocks): Update calls to tracer and
8770 reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
8771 (rest_of_handle_tracer): Pass 0 to tracer.
8772 (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
8774 2004-07-25 David Edelsohn <edelsohn@gnu.org>
8777 * config/rs6000/rs6000.md (movdi_internal64): Further disparage
8780 2004-07-24 Nathan Sidwell <nathan@codesourcery.com>
8782 * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
8783 (BINFO_BASE_ACCESS): Adjust.
8784 (BINFO_BASE_ACCESS_APPEND): New.
8785 (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
8786 * dbxout.c (dbxout_type): Adjust binfo access accessing.
8787 * dwarf2out.c (gen_member_die): Likewise.
8788 * tree-dump.c (deque_and_dump): Likewise.
8790 2004-07-26 Falk Hueffner <falk@debian.org>
8792 * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
8795 2004-07-25 Roger Sayle <roger@eyesopen.com>
8797 * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
8798 value off of the stack if TARGET_USE_FFREEP.
8800 2004-07-26 Bernardo Innocenti <bernie@develer.com>
8802 * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
8803 * gengtype-yacc.y: Likewise. Replace free() with XDELETE ().
8804 * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
8805 check on invocation of XRESIZEVEC ().
8807 2004-07-26 Bernardo Innocenti <bernie@develer.com>
8809 * c-common.c (disable_builtin_function): Rename variable n to
8810 new_disabled_builtin.
8811 * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
8812 Rename local variable old to old_decl.
8813 * gensupport.c (shift_output_template): Rename parameter old to src.
8814 * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
8815 old_rtx and newx to new_rtx.
8817 2004-07-26 Bernardo Innocenti <bernie@develer.com>
8819 * Makefile.in (C_PRAGMA_H): New variable to track dependencies
8821 * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
8823 * c-lex.c: Likewise.
8825 2004-07-25 Roger Sayle <roger@eyesopen.com>
8827 * fold-const.c (constant_boolean_node): Make extern.
8828 (make_range): Wrap long lines.
8829 (fold_cond_expr_with_comparison): Remove unnecessary call to
8830 pedantic_non_lvalue. Add missing calls to fold_convert.
8831 (fold_truthop): Add missing calls to fold_convert.
8833 * tree.h (constant_boolean_node): Add prototype here.
8834 * builtins.c (expand_builtin_strncmp): Add missing calls to
8836 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
8837 Call fold_convert and constant_boolean_node to correct types.
8838 * tree-ssa-forwprop.c (substitute_single_use_vars): Add
8839 missing call to fold_convert to correct types.
8841 2004-07-26 Niall Douglas <s_fsfeurope2@nedprod.com>
8842 Brian Ryner <bryner@brianryner.com>
8846 * c-common.c (c_common_attribute_table): Allow
8847 handle_visibility_attribute to be called for types.
8848 (handle_visibility_attribute) When given a type, set the visibility
8849 bits on the TYPE_NAME. When given a decl, don't set no_add_attrs
8850 so that we can check later whether the attribute was present. Added
8851 warning if attribute applied to non class type.
8852 * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
8853 decls and checking that they are consistent.
8854 * common.opt: Added -fvisibility.
8855 * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
8856 * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
8857 * flags.h, tree.h: Added assorted support defines for overall patch
8858 * opts.c: Added parsing support for -fvisibility.
8859 * tree.c (build_decl): Set visibility for all decls to be whatever
8860 is in force at that time.
8861 * varasm.c (default_binds_local_p_1): Reworked logic determining
8862 when to make a symbol locally bound.
8863 * doc/invoke.texi: Added documentation for -fvisibility and
8864 -fvisibility-inlines-hidden.
8866 2004-07-25 Bernardo Innocenti <bernie@develer.com>
8868 * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
8869 * c-common.c: Add missing casts from void * to other types.
8870 * c-decl.c: Likewise.
8871 * c-format.c: Likewise.
8872 * c-lex.c: Likewise.
8873 * c-pragma.c: Likewise.
8874 * c-typeck.c: Likewise.
8875 * defaults.h: Likewise.
8876 * genconstants.c: Likewise.
8877 * gengtype-lex.l: Likewise.
8878 * genmodes.c: Likewise.
8879 * read-rtl.c: Likewise.
8882 2004-07-25 Bernardo Innocenti <bernie@develer.com>
8884 * bitmap.c: Use type-safe memory allocation macros from libiberty.
8885 * c-common.c: Likewise.
8886 * c-decl.c: Likewise.
8887 * c-lang.c: Likewise.
8888 * c-lex.c: Likewise.
8889 * c-opts.c: Likewise.
8890 * c-parse.in: Likewise.
8891 * c-typeck.c: Likewise.
8892 * genconditions.c: Likewise.
8893 * gengtype-lex.l: Likewise.
8894 * gengtype-yacc.y: Likewise.
8895 * gengtype.c: Likewise.
8896 * genmodes.c: Likewise.
8897 * gensupport.c: Likewise.
8898 * read-rtl.c: Likewise.
8899 * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
8902 2004-07-25 Bernardo Innocenti <bernie@develer.com>
8904 * c-decl.c (groktypename, groktypename_in_param_context): Rename
8905 variable typename to type_name.
8906 * c-lex.c (interpret_float): Likewise.
8908 2004-07-25 Roger Sayle <roger@eyesopen.com>
8910 * convert.c (convert_to_real, convert_to_integer,
8911 convert_to_complex): Replace calls to build with calls to buildN.
8912 * coverage.c (tree_coverage_counter_ref): Likewise.
8913 * dojump.c (do_jump): Likewise.
8914 * dwarf2out.c (loc_descriptor_from_tree): Likewise.
8915 * emit-rtl.c (component_ref_for_mem_expr,
8916 set_mem_attributes_minus_bitpos): Likewise.
8917 * explow.c (update_nonlocal_goto_save_area): Likewise.
8918 * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
8919 expand_mult_add): Likewise.
8920 * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
8921 store_constructor, get_inner_reference, expand_expr_real_1,
8922 try_casesi, try_tablejump): Likewise.
8923 * function.c (expand_function_start): Likewise.
8924 * stmt.c (emit_case_bit_tests, expand_end_case_type,
8925 node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
8926 * stor-layout.c (place_union_field, layout_type): Likewise.
8927 * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
8928 * varasm.c (copy_constant): Likewise.
8930 2004-07-25 Bernardo Innocenti <bernie@develer.com>
8932 * c-common.c: Rename all identifiers named `new'.
8933 * c-decl.c: Likewise.
8934 * gensupport.c: Likewise.
8935 * simplify-rtx.c: Likewise.
8936 * c-common.c (disable_builtin_function): Replace a call to xmalloc()
8938 * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
8941 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
8944 * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
8945 declarations until after calling pushdecl.
8946 (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
8947 "extern" and not on whether the declaration is initialized.
8949 2004-07-25 Daniel Jacobowitz <dan@debian.org>
8951 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
8952 (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
8953 * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
8954 "cpplib.h", "c-pragma.h", "c-common.h".
8955 (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
8956 (solaris_register_pragmas): New functions.
8957 * config/sol2-protos.h: New file.
8958 * config/sol2.c: New file.
8959 * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
8960 (REGISTER_TARGET_PRAGMAS): New macros.
8961 (solaris_pending_aligns, solaris_pending_inits)
8962 (solaris_pending_finis): New variables.
8963 * config/t-sol2 (sol2-c.o): Update dependencies.
8965 * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
8966 SUBTARGET_INSERT_ATTRIBUTES.
8967 (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
8968 * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
8969 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
8970 * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
8971 * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
8972 * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
8973 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
8974 * config/sparc/sparc.c (sparc_attribute_table): New.
8975 (TARGET_INSERT_ATTRIBUTES): Define in terms of
8976 SUBTARGET_INSERT_ATTRIBUTES.
8977 (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
8979 * doc/extend.texi (Solaris Pragmas): New section.
8981 2004-07-25 Bernardo Innocenti <bernie@develer.com>
8983 * c-common.c: Rename all identifiers named `class' to `cl'.
8984 * c-common.h: Likewise.
8985 * c-parse.in: Likewise.
8986 * c-typeck.c: Likewise.
8987 * genmodes.c: Likewise.
8990 * recog.c: Likewise.
8991 * recog.h: Likewise.
8992 * regrename.c: Likewise.
8994 * c-common.c (builtin_function_2): Change type of 5th parameter from
8995 int to enum built_in_function. Change type of 8th parameter from int
8997 * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
8999 * c-typeck.c (convert_arguments): Change type of formal_prec from
9000 int to unsigned int.
9001 * genmodes.c (blank_mode): Make a few negative constants unsigned.
9002 (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
9003 emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
9004 emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
9005 emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
9006 iterator to for_all_modes () instead of an enum because enums can't
9007 be incremented in C++.
9010 2004-07-25 Daniel Jacobowitz <dan@debian.org>
9012 * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
9015 2004-07-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9017 * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
9018 Handle ARRAY_RANGE_REF like ARRAY_REF.
9020 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
9022 * c-typeck.c (digest_init): Don't allow arrays of signed or
9023 unsigned variants of wchar_t to be initialized by wide string
9024 constants. Do allow arrays of enumerated types compatible with
9025 wchar_t to be initialized by wide string constants. Refine tests
9026 distinguishing wide and narrow strings and arrays. Give specific
9027 error for arrays of other integer types initialized by string
9029 (output_init_element, process_init_element): Check for
9030 INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
9031 initializing with string constants.
9033 2004-07-25 Richard Henderson <rth@redhat.com>
9035 * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
9037 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
9038 * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
9039 DECL_IGNORED_P to new decl.
9041 2004-07-24 Zack Weinberg <zack@codesourcery.com>
9043 * config/ia64/ia64.c (general_xfmode_operand)
9044 (destination_xfmode_operand): Delete.
9045 * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
9046 * config/ia64/ia64.md (*movxf_internal): Use general_operand
9047 and destination_operand.
9049 2004-07-24 Alexander Kabaev <kan@freebsd.org>
9051 * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
9052 (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
9054 2004-07-24 Alexander Kabaev <kan@freebsd.org>
9055 Zack Weinberg <zack@codesourcery.com
9058 * c-decl.c (diagnose_mismatched_decls): Don't issue a
9059 redundant-declaration warning the first time a builtin is
9060 declared explicitly.
9062 2004-07-25 Bernardo Innocenti <bernie@develer.com>
9064 * tree.h (staticp): Change return type to bool.
9066 2004-07-25 Bernardo Innocenti <bernie@develer.com>
9068 * c-common.c (c_staticp): Last episode of the staticp saga.
9070 2004-07-25 Bernardo Innocenti <bernie@develer.com>
9072 * c-common.h (c_staticp): Change return type from int to bool.
9073 * tree.c (staticp): Likewise.
9074 * langhooks.h (staticp): Likewise.
9076 2004-07-25 Bernardo Innocenti <bernie@develer.com>
9078 * langhooks-def.h (lhd_staticp): Change return type from int to
9079 bool in prototype to match definition.
9081 2004-07-25 Bernardo Innocenti <bernie@develer.com>
9083 * system.h (bool, true, false): Don't redefine as preprocessor macros
9086 2004-07-24 Roger Sayle <roger@eyesopen.com>
9088 * expmed.c (init_expmed): A signed modulus by a power of two is
9089 considered cheap if its less than or equal to four instructions.
9091 2004-07-25 Bernardo Innocenti <bernie@develer.com>
9093 * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
9094 GGC_CNEWVAR): New macros.
9096 2004-07-25 Bernardo Innocenti <bernie@develer.com>
9098 * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
9100 * c-decl.c: Likewise.
9101 * c-format.c: Likewise.
9102 * c-lex.c: Likewise.
9103 * c-opts.c: Likewise.
9104 * c-pragma.c: Likewise.
9105 * c-typeck.c: Likewise.
9106 * gencheck.c: Likewise.
9107 * genconditions.c: Likewise.
9108 * genconfig.c: Likewise.
9109 * genflags.c: Likewise.
9110 * gengtype.c: Likewise.
9111 * gensupport.c: Likewise.
9112 * ggc-none.c: Likewise.
9113 * langhooks.c: Likewise.
9114 * statistics.h: Likewise.
9115 * stub-objc.c: Likewise.
9116 * java/decl.c: Likewise.
9118 2004-07-24 Roman Zippel <zippel@linux-m68k.org>
9120 * config/m68k/m68k.c (output_scc_di): Fix coding style.
9121 (symbolic_operand): Fix prototype.
9122 * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
9123 * config/m68k/m68k.md: Add constants for registers a0 and sp and
9124 use them, change from the "{...}" syntax to the simpler {...}
9126 (*cfv4_extendqisi2): Fix destination predicate.
9127 * config/m68k/m68k-protos.h: Remove various declarations also
9128 generated via PREDICATE_CODES.
9130 2004-07-23 Mike Stump <mrs@apple.com>
9132 * c-typeck.c (convert_for_assignment): Tightened up pointer
9133 converstions that differ in signedness.
9135 2004-07-23 Zack Weinberg <zack@codesourcery.com>
9137 * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
9139 2004-07-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9141 * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
9142 * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
9144 * gimplify.c (gimplify_compound_lval): Check for no handled
9145 operations, rather than checking for explicit list of nodes.
9146 (is_gimple_addr_expr_arg_or_indirect): New function.
9147 (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
9148 redundant setting of TREE_INVARIANT.
9149 (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
9150 * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
9152 2004-07-23 Diego Novillo <dnovillo@redhat.com>
9154 PR tree-optimization/16688
9155 PR tree-optimization/16689
9156 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
9157 unnecessary initialization of 'tag'.
9158 (get_tmt_for): Check that the new type tag has the same alias
9159 set as the pointed-to type.
9160 (group_aliases): Only regular variables need to be removed
9161 from the alias set of a name tag.
9162 * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
9163 propagation if the two types are not compatible.
9164 (merge_alias_info): Rename from replace_ssa_names_ann.
9166 (replace_exp_1): If both arguments are SSA_NAMEs, check that
9167 the propagation can be done.
9168 Only call merge_alias_info on pointers.
9169 (propagate_value): Likewise.
9170 * tree-ssa-copyrename.c: Include langhooks.h.
9171 (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
9173 Do not coalesce variables with incompatible types.
9174 (rename_ssa_copies): Call replace_ssa_name_symbol.
9175 * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
9176 the same type as the underlying _DECL.
9177 * tree-ssanames.c (replace_ssa_name_symbol): New function.
9178 * tree.h (replace_ssa_name_symbol): Declare.
9180 2004-07-23 Richard Henderson <rth@redhat.com>
9183 * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
9184 unshare it properly.
9185 (gimplify_modify_expr_rhs): Push assignment from a conditional into
9186 the conditional for all non-register types.
9188 2004-07-23 Richard Henderson <rth@redhat.com>
9190 * expr.c (expand_expr_real_1): Don't handle non-local variables.
9191 * expr.h (fix_lexical_addr): Remove.
9192 * function.c (NEED_SEPARATE_AP): Remove.
9193 (fix_lexical_addr): Remove.
9194 * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
9195 not null decl_function_context.
9196 (create_alias_vars): Likewise.
9197 * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
9198 (simple_goto_p): Likewise.
9199 * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
9200 * tree-ssa-ccp.c (get_default_value): Likewise.
9201 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
9202 * tree.c (needs_to_live_in_memory): Likewise.
9203 * tree-flow-inline.h (may_be_aliased): Move...
9204 * tree-ssa-alias.c (may_be_aliased): ... here. Enhance check for
9205 when TREE_STATIC variables may be addressable.
9207 2004-07-24 Jakub Jelinek <jakub@redhat.com>
9209 * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
9211 2004-07-23 Zack Weinberg <zack@codesourcery.com>
9213 * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
9214 bitmap contents if GENERATOR_FILE is defined.
9215 * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
9216 ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
9218 2004-07-23 Joseph S. Myers <jsm@polyomino.org.uk>
9220 * c-decl.c (start_function): Form composite type of function types
9221 rather than copying type from previous prototype declaration.
9223 2004-07-23 Janis Johnson <janis187@us.ibm.com>
9225 * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
9226 the const qualifier for the second argument in the C++ functions.
9228 * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
9229 specific pointer types.
9231 * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
9232 vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
9233 for vector bool and/or vector pixel, add C++ and C missing support.
9234 (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
9235 vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
9236 vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
9237 vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
9238 vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
9239 missing C++ and C support for vector bool and/or vector pixel.
9240 (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
9241 vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
9242 vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
9243 vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
9244 vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
9245 C++ and C types used for vector bool and/or vector pixel.
9246 (vec_st, vec_stl): Add C++ support for vector pixel.
9247 (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
9248 (vec_all_ne): Add C++ support for vector pixel.
9250 * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
9251 (vec_vmulesb): Add missing C++ function.
9252 (vec_perm): Fix type of third argument in C++ function.
9253 (vec_vsum4shs): Fix C++ function name.
9254 (vec_any_ge): Remove C++ functions for unsupported arg combinations.
9255 (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
9256 argument passed to the error handler in C macro.
9257 (vec_nmsub): Remove extra parens around argument names in C macro.
9258 (vec_packpx): Add missing parens in C macro.
9260 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
9262 * machmode.def: Remove vector modes.
9263 * config/alpha/alpha-modes.def: Add supported vector modes.
9264 * config/arm/arm-modes.def: Likewise.
9265 * config/frv/frv-modes.def: Likewise.
9266 * config/i386/i386-modes.def: Likewise.
9267 * config/rs6000/rs6000-modes.def: Likewise.
9268 * config/sh/sh-modes.def: Likewise.
9270 2004-07-23 Matthias Klose <doko@debian.org>
9272 * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
9273 * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
9274 * config.h: Regenerate.
9275 * configure: Likewise.
9277 2004-07-22 Mark Mitchell <mark@codesourcery.com>
9279 * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
9280 generated SYMBOL_REFs for labels.
9281 * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
9283 (machopic_stub_name): Remove.
9284 (machopic_indirection_name): New function.
9285 (machopic_mcount_stub_name): Likewise.
9286 (machopic_classify_name): Remove.
9287 (machopic_function_base_sym): New function.
9288 (machpoic_classify_symbol): Likewise.
9289 (machopic_classify_ident): Remove.
9290 (machopic_define_ident): Likewise.
9291 (machopic_define_name): Likewise.
9292 (machopic_name_defined_p): Likewise.
9293 (machopic_ident_defined_p): Likewise.
9294 (darwin_strip_name_encoding): Likewise.
9295 (machopic_define_symbol): New function.
9296 * config/darwin.c (hashtab.h): Include.
9297 (machopic_defined_list): Remove.
9298 (machopic_classify_ident): Likewise.
9299 (machopic_classify_name): Likewise.
9300 (machopic_ident_defined_p): Likewise.
9301 (machopic_define_ident): Likewise.
9302 (machopic_define_name): Likewise.
9303 (machopic_symbol_defined_p): New function.
9304 (machopic_classify_symbol): Likewise.
9305 (machopic_data_defined_p): Use machopic_classify_symbol.
9306 (machopic_define_symbol): New function.
9307 (machopic_function_base_sym): New function.
9308 (machopic_non_lazy_pointers): Remove.
9309 (machopic_non_lazy_ptr_name): Likewise.
9310 (machopic_stubs): Likewise.
9311 (machopic_stub_name): Likewise.
9312 (NON_LAZY_POINTER_SUFFIX): New macro.
9313 (STUB_SUFFIX): Likewise.
9314 (machopic_indirection): New structure.
9315 (machopic_indirections): New variable.
9316 (machopic_indirection_hash): New function.
9317 (machopic_indirection_eq): Likewise.
9318 (machopic_indirection_name): Likewise.
9319 (machopic_mcount_stub_name): New function.
9320 (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
9322 (machopic_indirect_data_reference): Rework to use new functions.
9323 (machopic_indirect_call_target): Likewise.
9324 (machopic_legitimize_pic_address): Likewise.
9325 (machopic_output_indirection): New function.
9326 (machopic_finish): Use it.
9327 (machopic_operand_p): Rework to use new functions.
9328 (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
9329 (darwin_strip_name_encoding): Remove.
9330 (update_non_lazy_ptrs): Remove.
9331 (update_stubs): Likewise.
9332 (darwin_non_lazy_pcrel): Use new functions.
9333 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
9334 (ASM_OUTPUT_LABELREF): Likewise.
9335 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
9336 (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
9337 (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
9338 (TARGET_STRIP_NAME_ENCODING): Do not use
9339 darwin_strip_name_encoding.
9340 (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
9341 darwin_strip_name_encoding.
9342 * config/i386/darwin.h (FUNCTION_PROFILER): Use
9343 machopic_mcount_stub_name.
9344 * config/i386/i386.c (x86_output_mi_thunk): Use
9345 machopic_indirection_name, not machopic_stub_name.
9346 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
9347 machopic_function_base_sym.
9348 (print_operand): Use machopic_classify_symbol.
9349 (rs6000_emit_prologue): Use machopic_function_base_sym.
9350 (output_profile_hook): Do not use machopic_stub_name.
9351 (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
9353 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
9356 * fold-const.c (extract_muldiv_1): Do not treat signed left shift
9359 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
9361 * doc/implement-c.texi: New file.
9362 * doc/extend.texi (C Implementation): Move to there.
9363 * doc/gcc.texi: Include implement-c.texi.
9364 * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
9366 2004-07-22 Jason Merrill <jason@redhat.com>
9368 * integrate.c (copy_decl_for_inlining): Remove invisible reference
9370 * tree-inline.c (setup_one_parameter): Likewise.
9372 2004-07-22 Brian Booth <bbooth@redhat.com>
9374 * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
9375 (substitute_and_fold): Propigate into VUSE operands when possible.
9376 (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
9377 (cp_lattice_meet): Handle merging of latticevalues when
9378 UNKNOWN_VAL is present.
9379 (visit_stmt): Visit assignments with V_MUST_DEFs.
9380 (visit_assignment): Gather ccp information for V_MUST_DEF operands.
9381 (ccp_fold): Deal with RHS' that are constant and virtual.
9382 (evaluate_stmt): Handle UNKNOWN_VAL likely values.
9383 (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
9384 (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
9385 V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
9386 computing immediate uses.
9387 (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
9389 (replace_vuse_in): New function.
9390 (likely_value): Add check of vuse operands.
9391 (get_default_value): Set the default value of virtually defined
9392 variables to UKNOWN_VAL instead of VARYING.
9394 2004-07-22 Richard Henderson <rth@redhat.com>
9396 * expr.c (emit_push_insn): Don't use set_mem_attributes.
9398 2004-07-22 Richard Henderson <rth@redhat.com>
9400 * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
9401 variables due to conditional compilation.
9403 2004-07-22 Diego Novillo <dnovillo@redhat.com>
9405 * tree-into-ssa.c (set_livein_block): Fix typo in comment.
9406 (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
9407 Release SSA names that have been re-renamed.
9408 * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
9410 * tree-ssa-alias.c (init_alias_info): If aliases have been
9411 computed before, clear existing alias information.
9412 (create_name_tags): Do no fixup PT_ANYTHING pointers.
9413 If the new name tag for a pointer is different than the one it
9414 had before, mark the old tag for renaming.
9415 (replace_may_alias): New function.
9416 (group_aliases): Call it.
9417 (setup_pointers_and_addressables): Always call get_tmt_for.
9418 (maybe_create_global_var): Don't create .GLOBAL_VAR more than
9420 (set_pt_anything): New local function.
9421 (set_pt_malloc): New local function.
9422 (merge_pointed_to_info): Don't merge pointed-to variables from
9423 the original pointer if the destination is pointing to an
9425 (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
9426 (add_pointed_to_var): Do not add a variable to the points-to
9427 set if the pointer is already pointing to anywhere.
9428 (collect_points_to_info_r): If the defining statement is a PHI
9429 node, only merge pointed-to information if the argument has
9430 already been visited.
9431 (get_tmt_for): Only create a new tag if the pointer didn't
9433 (dump_alias_info): Emit more information.
9434 (dump_points_to_info_for): Likewise.
9435 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
9436 try to get the annotation of an SSA_NAME.
9437 * tree-ssa-operands.c (add_stmt_operand): Only check for empty
9438 alias sets when checking is enabled.
9439 * tree-ssa-pre.c (need_eh_cleanup): New local variable.
9440 (eliminate): Mark basic blocks that will need
9441 EH information cleaned up.
9442 (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
9444 Initialize need_eh_cleanup.
9445 (fini_pre): Call tree_purge_all_dead_eh_edges and
9446 cleanup_tree_cfg if needed.
9447 Free need_eh_cleanup.
9448 * tree-ssa.c (verify_ssa_name): New function.
9449 (verify_def): Call it.
9450 Re-arrange to avoid printing too many error messages.
9451 (verify_use): Likewise.
9452 (verify_phi_args): Likewise.
9453 (verify_flow_insensitive_alias_info): New function.
9454 (verify_flow_sensitive_alias_info): New function.
9455 (verify_alias_info): New function.
9456 (verify_ssa): Call verify_alias_info.
9457 Clear TREE_VISITED on all the SSA_NAMEs before scanning the
9459 Re-arrange to avoid printing too many error messages.
9460 * tree-ssanames.c (make_ssa_name): Clear
9461 SSA_NAME_IN_FREE_LIST.
9462 (release_ssa_name): Never release a default definition.
9463 (release_defs): New function.
9464 * tree.h: Declare it.
9465 * tree-ssa-dce.c (remove_dead_stmt): Call it.
9467 2004-07-22 Diego Novillo <dnovillo@redhat.com>
9469 * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
9470 If true, do a depth-first search. Do a breadht-first search,
9472 (walk_use_def_chains): Add new argument IS_DFS.
9474 * tree-flow.h (walk_use_def_chains): Update prototype.
9476 2004-07-22 Hans-Peter Nilsson <hp@axis.com>
9478 * config/cris/cris.md: Tweak formatting.
9479 (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
9480 (mover2side, moverside, movemside, movei, op3, andu): Replace
9481 live define_peephole:s with define_peephole2 near-equivalents.
9483 ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap". Match all
9485 ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
9486 Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
9487 "*mov_sidesi_mem" respectively.
9489 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
9491 * tree-cfg.c (gimplify_val): Move from tree-complex.c.
9492 (gimplify_build1): Move from tree-complex.c do_unop.
9493 (gimplify_build2): Move from tree-complex.c do_binop.
9494 (gimplify_build3): New.
9495 * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
9496 Adjust throughout to call the functions above.
9497 * tree-flow.h: Declare the functions above.
9498 * tree-nested.c (gimplify_val): Rename to...
9499 (tsi_gimplify_val): ... this.
9501 * Makefile.in (tree_complex.o): Update dependencies.
9502 (stor-layout.o): Depend on regs.h.
9503 * c-common.c (handle_vector_size_attribute): Update for
9504 vector types without corresponding vector modes.
9505 * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
9506 a corresponding vector mode is not available.
9507 * print-tree.c (print_node): Print nunits for vector types
9508 * regclass.c (have_regs_of_mode): New.
9509 (init_reg_sets_1): Initialize it and use it instead
9510 of allocatable_regs_of_mode.
9511 * regs.h (have_regs_of_mode): Declare it.
9512 * stor-layout.c (layout_type): Pick a mode for vector types.
9513 * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
9514 build_replicated_const, do_unop, do_binop, do_plus_minus,
9515 do_negate, expand_vector_piecewise, expand_vector_parallel,
9516 expand_vector_addition, expand_vector_operations_1,
9517 expand_vector_operations, tree_lower_operations,
9518 pass_lower_vector_ssa, pass_pre_expand): New.
9519 (expand_complex_operations, pass_lower_complex): Remove.
9520 * tree-optimize.c (init_tree_optimization_passes): Adjust
9521 pass ordering for changes in tree-complex.c.
9522 * tree-pass.h: Declare new passes.
9523 * tree.c (finish_vector_type): Remove.
9524 (make_vector_type): New.
9525 (build_vector_type_for_mode, build_vector_type): Rewritten.
9526 * tree.def (VECTOR_TYPE): Document where the number of
9528 * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
9529 (make_vector): Remove declaration.
9531 2004-07-21 Richard Henderson <rth@redhat.com>
9533 * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
9534 TREE_THIS_VOLATILE, may_aliases, or optimization level.
9535 (remove_useless_vars): Dump debugging info.
9536 (expand_used_vars): Move ...
9537 * cfgexpand.c (expand_used_vars): ... here. Make static.
9538 * tree-flow-inline.h (set_is_used): New.
9539 (set_default_def): Use get_var_ann.
9540 * tree-flow.h: Update decls.
9541 * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
9542 (create_ssa_var_map): Use it.
9543 * tree-ssa.c (set_is_used): Remove.
9545 2004-07-22 Ben Elliston <bje@au.ibm.com>
9547 * gdbinit.in: Set a breakpoint on internal_error.
9549 2004-07-21 Richard Henderson <rth@redhat.com>
9551 * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
9552 to create a new basic block.
9554 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
9557 * c-decl.c (grokdeclarator): Only pedwarn for qualified void
9558 return type on function definitions. Move other warnings for
9559 qualified return type to -Wreturn-type. Do not condition any such
9560 warnings on -pedantic. Update comments.
9561 (start_function): Only copy function type from previous prototype
9562 declaration if return types are compatible.
9563 * c-typeck.c (function_types_compatible_p): Don't condition
9564 warning for incompatibility of volatile qualifiers on the return
9565 type on -pedantic. Update comment.
9566 * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
9568 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
9570 * c-typeck.c (set_init_index): Require designator to be of integer
9573 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
9576 * c-parse.in (init): Change to exprtype.
9577 (primary): Set original_code for STRING to STRING_CST.
9578 Call maybe_warn_string_init for compound literals.
9579 (initdcl, notype_initdcl): Call maybe_warn_string_init.
9581 * c-tree.h (maybe_warn_string_init): New.
9582 (pop_init_level, process_init_element): Use struct c_expr.
9583 (struct c_expr): Update comment.
9584 * c-typeck.c (maybe_warn_string_init): New function.
9585 (digest_init): Call it. Additional parameter strict_string. All
9587 (output_init_element): Likewise.
9588 (struct constructor_stack): Use struct c_expr for
9590 (really_start_incremental_init, push_init_level): Update.
9591 (pop_init_level): Update. Return struct c_expr.
9592 (process_init_level): Update. Take struct c_expr argument.
9594 2004-07-21 David S. Miller <davem@nuts.davemloft.net>
9596 * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
9599 2004-07-21 Eric Christopher <echristo@redhat.com>
9601 * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
9603 * c-decl.c (pop_scope): Ditto.
9604 * calls.c (expand_call): Remove call to current_nesting_level,
9605 update comment accordingly. Remove calls to expand_start_target_temps
9606 and expand_end_target_temps.
9607 * cfgexpand.c (construct_init_block): Remove call to
9608 expand_start_bindings_and_block.
9609 (construct_exit_block): Remove call to expand_end_bindings.
9610 * expr.c (safe_from_p): Remove BIND_EXPR handling.
9611 (expand_expr_real_1): Ditto. Fix formatting.
9612 (expand_vars): Delete.
9613 * stmt.c (POPSTACK): Remove block_stack.
9614 (stmt_status): Remove x_block_stack.
9615 (block_stack): Delete.
9616 (expand_start_bindings_and_block): Ditto.
9617 (expand_start_target_temps): Ditto.
9618 (expand_end_target_temps): Ditto.
9619 (current_nesting_level): Ditto.
9620 (warn_about_unused_variables): Ditto.
9621 (expand_end_bindings): Ditto.
9622 * tree.h: Remove declarations for above.
9624 2004-07-21 Steven Bosscher <stevenb@suse.de>
9626 * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
9627 * rtl.c (note_insn_name): Likewise.
9628 * print-rtl.c (print_rtx): Don't print it.
9629 * cfgrtl.h (can_delete_note_p): Don't handle it.
9630 (rtl_delete_block): Likewise.
9631 * passes.c (rest_of_handle_guess_branch_prob): Remove.
9632 (rest_of_compilation): Don't call it.
9633 * predict.c (process_note_predictions, process_note_prediction,
9634 note_prediction_to_br_prob): Remove.
9635 * basic-block.c (note_prediction_to_br_prob): Remove prototype.
9636 * stmt.c (return_prediction): Remove.
9637 (expand_value_return): Don't call it. Don't add prediction
9638 notes for return statements.
9640 2004-07-21 Josef Zlomek <zlomekj@suse.cz>
9642 * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
9645 2004-07-21 Paolo Bonzini <bonzini@gnu.org>
9647 * c-common.c (vector_types_convertible_p): Use vector types'
9648 TYPE_SIZE and TREE_TYPE instead of their mode.
9649 * convert.c (convert_to_integer): Likewise.
9650 (convert_to_vector): Likewise.
9651 * fold-const.c (fold_convert): Likewise.
9652 * varasm.c (output_constant): Likewise.
9653 * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
9654 Allow a VECTOR_TYPE initializer to be made of several vectors.
9655 For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
9656 of cleared and need_to_clear, and use fold_convert.
9657 * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
9660 2004-07-20 Richard Henderson <rth@redhat.com>
9662 * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
9663 (expand_gimple_basic_block): out from here. Renamed from expand_block.
9665 2004-07-20 David S. Miller <davem@nuts.davemloft.net>
9667 * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
9668 enormous cost if not TARGET_HARD_MUL.
9670 2004-07-20 Andrew Pinski <apinski@apple.com>
9673 * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
9676 2004-07-21 Paul brook <paul@codesourcery.com>
9678 * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
9680 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9682 * fold-const.c (operand_equal_p): Temporarily support NULL args.
9683 (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
9684 (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
9686 2004-07-20 Zack Weinberg <zack@codesourcery.com>
9688 * rtl.h (plus_constant): Delete.
9689 (plus_constant_wide): Rename to plus_constant.
9690 (plus_constant_for_output_wide): Delete vestigial prototype.
9691 (GEN_INT): Remove unnecessary cast.
9692 * tree.h (build_int_2, size_int_type): Delete.
9693 (build_int_2_wide): Rename to build_int_2.
9694 (size_int_wide): Rename to size_int_kind.
9695 (size_int_type_wide): Rename to size_int_type.
9696 (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
9697 Remove unnecessary cast.
9698 * tree.c (build_int_2_wide): Rename build_int_2; update comment.
9699 * explow.c (plus_constant_wide): Rename plus_constant; update comment.
9700 * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
9701 (size_int_type_wide): Rename size_int_type.
9702 (int_const_binop): Use size_int_type.
9703 * c-lex.c (interpret_integer): Use build_int_2.
9704 * final.c (split_double): Remove unnecessary casts.
9705 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
9707 2004-07-20 Richard Henderson <rth@redhat.com>
9709 * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
9710 (gimplify_compound_lval): Use is_gimple_tmp_reg.
9711 * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
9712 (is_gimple_tmp_reg): New.
9713 * tree-gimple.h (is_gimple_tmp_reg): Declare.
9715 2004-07-20 Richard Henderson <rth@redhat.com>
9717 * tree-pretty-print.c (dump_generic_node): Dump
9718 CALL_EXPR_HAS_RETURN_SLOT_ADDR.
9720 2004-07-20 Frank Ch. Eigler <fche@redhat.com>
9722 * tree-mudflap.c (mf_set_options_fndecl): New tree.
9723 (mudflap_init): Set it.
9724 (mudflap_register_call): Remove __mf_init call.
9725 (mudflap_finish_file): Emit call to __mf_init here. Emit a call to
9726 to pass "-ignore-reads" option to libmudflap if needed.
9728 2004-07-20 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
9731 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
9732 (MAKE_DECL_ONE_ONLY): Undefine.
9733 * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
9734 readonly_data, one_only_data_section, forget_section): New prototypes.
9735 * pa.c (pa_init_machine_status, som_text_section_asm_op): New
9737 (pa_select_section): Add one-only (COMDAT) support.
9738 * pa.h (struct machine_function): Define.
9739 * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
9740 (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
9741 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
9742 ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
9743 ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
9744 (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
9745 (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
9746 (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
9747 ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
9748 for EXTRA_SECTION_FUNCTIONS.
9749 * doc/install.texi: Update binutils requirements.
9751 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
9753 * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
9754 VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
9755 VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
9757 (struct VEC): Use unsigned for num and alloc.
9758 * vec.c (struct vec_prefix): Likewise.
9759 (vec_o_reserve): Adjust.
9761 * dbxout.c (dbxout_type): Fix printf format.
9763 * tree.h (binfo_member): Remove.
9764 * tree.c (binfo_member): Remove.
9766 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
9768 * tree.h: Include vec.h
9769 (DEF_VEC_P(tree)): New type.
9770 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
9771 (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
9772 (BINFO_LANG_SLOT): Remove.
9773 (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
9774 (struct tree_binfo): Turn base_binfos into a trailing
9775 VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
9776 (binfo_lang_slots): Remove.
9777 * tree.c (binfo_lang_slots): Remove.
9778 (make_tree_binfo_stat): Take a base binfo count, not a
9779 lang slot count. Adjust.
9780 * Makefile.in (TREE_H): Add vec.h
9781 * alias.c (record_component_aliases): Adjust BINFO access.
9782 * dbxout.c (dbxout_type): Likewise.
9783 * dwarf2out.c (gen_member_die): Likewise.
9784 * sdbout.c (sdbout_one_type): Likewise.
9785 * tree-dump.c (deque_and_dump): Likewise.
9786 * config/i386/i386.c (classify_argument,
9787 contains_128bit_aligned_vector_p): Likewise.
9788 * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
9789 * doc/c-tree.texi (Classes): Update BINFO documentation.
9791 2004-07-20 Steven Bosscher <stevenb@suse.de>
9793 * c-common.h (check_case_value): Remove prototype.
9794 (c_add_case_label): Adjust prototype.
9795 * c-common.c (check_case_value): Make static.
9796 (check_case_bounds): New function.
9797 (c_add_case_label): Use it. Take new argument orig_type.
9798 * c-typeck.c (struct c_switch): New orig_type field.
9799 (c_start_case): Set it.
9800 (do_case): Pass it to c_add_case_label.
9801 * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
9802 cases from here. Add the labels in reverse order.
9803 * stmt.c (struct case_node): Adjust comment. Remove balance field.
9804 (add_case_node): Return nothing, don't check for duplicate cases.
9805 Insert new case nodes in a list, not in an AVL tree.
9806 (expand_end_case_type): Don't turn a case tree into a case list.
9807 (case_tree2list): Remove.
9808 * tree.h (add_case_node): Adjust prototype.
9810 2004-07-19 Paolo Bonzini <bonzini@gnu.org>
9812 * genattr.c (struct range, struct function_unit,
9813 write_units, extend_range, init_range): Remove them.
9814 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
9815 Output "#define INSN_SCHEDULING" here.
9816 * genattrtab.c (struct range, struct function_unit_op,
9817 struct function_unit, struct dimension, enum operator,
9818 operate_exp, expand_units, simplify_knowing,
9819 encode_units_mask, simplify_by_exploding,
9820 find_and_mark_used_attributes, unmark_used_attributes,
9821 add_values_to_cover, increment_current_value,
9822 test_for_current_value, simplify_with_current_value,
9823 simplify_with_current_value_aux, gen_unit,
9824 write_unit_name, write_function_unit_info,
9825 write_complex_function, write_toplevel_expr,
9826 find_single_value, extend_range): Remove.
9827 (write_attr_get): Do not handle common_av->value
9829 (struct attr_desc): Remove func_units_p and blockage_p.
9830 (write_attr_valueq): Do not handle them.
9831 (find_attr): Do not clear them.
9832 (make_internal_attr): Do not initialize them.
9833 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
9834 * sched-vis.c (init_target_units, insn_print_units,
9835 init_block_visualization, print_block_visualization,
9836 visualize_scheduled_insns, visualize_no_unit,
9837 visualize_stall_cycles, visualize_alloc,
9838 visualize_free, target_units, get_visual_tbl_length,
9839 MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
9840 visual_tbl_line_length, visual_tbl, n_vis_no_unit,
9841 MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
9842 * haifa-sched.c (blockage_range, clear_units,
9843 schedule_unit, actual_hazard, potential_hazard,
9844 insn_unit, unit_last_insn, unit_tick,
9845 actual_hazard_this_instance, potential_hazard,
9846 schedule_unit, max_insn_queue_index_value): Remove.
9847 (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
9848 max_insn_queue_index.
9849 * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
9850 * doc/md.texi (Processor pipeline description): Remove
9851 references to old pipeline descriptions.
9852 (Automaton pipeline description): Merge with the above.
9853 (Old pipeline description, Comparison of the two descriptions):
9856 * bt-load.c (migrate_btr_def): Remove references to
9857 use_pipeline_interface.
9858 * haifa-sched.c (insn_cost, schedule_insn,
9859 schedule_block, advance_one_cycle, sched_init,
9860 queue_to_ready, sched_finish): Likewise.
9861 * modulo-sched.c (sms_schedule, advance_one_cycle,
9862 ps_has_conflicts): Likewise.
9863 * sched-rgn.c (init_ready): Likewise.
9864 (debug_dependencies): Likewise, and remove an "if (1)".
9865 * target.h (use_dfa_pipeline_interface): Remove.
9866 * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
9867 * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
9868 * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
9869 * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
9870 * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
9871 * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
9872 * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
9873 * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
9874 * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
9875 * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
9876 * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
9877 * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
9878 * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
9879 * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
9880 * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
9881 * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
9882 * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
9883 * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
9884 * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
9886 2004-07-19 Roger Sayle <roger@eyesopen.com>
9888 * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
9890 2004-07-19 Jeff Law <law@redhat.com>
9892 * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
9893 (get_eq_expr_value): Use it. Simplify slightly.
9895 2004-07-19 Maciej W. Rozycki <macro@linux-mips.org>
9897 * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
9898 (umulsidi3_32bit_r4000): Likewise.
9900 2004-07-19 Nathan Sidwell <nathan@codesourcery.com>
9902 * vec.h: Propagate location information properly.
9903 (VEC_T_iterate): Add result pointer parameter.
9905 (VEC_T_reserve): Use it.
9907 2004-07-19 Daniel Jacobowitz <dan@debian.org>
9909 * Makefile.in (c-format.o): Depend on c-format.h.
9910 * c-format.h: New file.
9911 (struct format_char_info): Add CHAIN member.
9912 * c-format.c: Move some types and constants to c-format.h.
9913 (format_type_error): Set to -1.
9914 (struct function_format_info): Use an int for format_type.
9915 (decode_format_type): Return an int. Return format_type_error
9917 (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
9918 (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
9919 (scan_char_table, time_char_table, monetary_char_table): Initialize
9921 (n_format_types): New variable.
9922 (check_format_info_main): Handle CHAIN in format_char_info.
9923 (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
9924 TARGET_N_FORMAT_TYPES.
9925 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
9926 (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
9927 * config/sol2-c.c: New file.
9928 * config/t-sol2: New file.
9929 * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
9930 * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
9931 TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
9933 * doc/extend.texi (Target Format Checks): New section.
9934 (Function Attributes): Mention it.
9935 * doc/invoke.texi: Mention target format checks.
9936 * doc/sourcebuild.texi: Mention target format checks.
9937 * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
9938 TARGET_FORMAT_TYPES.
9940 2004-07-19 Andreas Krebbel <krebbel1@de.ibm.com>
9942 * config/s390/s390-protos.h (s390_return_address_offset): Prototype
9944 * config/s390/s390.c (regclass_map initializer): Register 35 added to
9946 (load_multiple_operation, store_multiple_operation): Removed
9947 pointless sanity check.
9948 (s390_decompose_address): Added check for return_address_pointer_rtx.
9949 (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
9950 (s390_return_address_offset): New function.
9951 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
9952 (FRAME_REGNO_P): Added check for register 35.
9953 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
9954 REG_ALLOC_ORDER): Appended entry for register 35.
9955 (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
9956 (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
9957 (RETURN_ADDRESS_POINTER_REGNUM): New macro.
9958 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
9959 is eliminable using stack pointer or hard frame pointer.
9960 (REGISTER_NAMES): Added name for register 35.
9961 * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
9962 pointless sanity check.
9964 2004-07-19 Roger Sayle <roger@eyesopen.com>
9966 * fold-const.c (tree_expr_nonzero_p): Add function prototype.
9967 (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
9968 fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
9969 (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
9970 of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
9971 (fold_relational_const): Tidy up handling of floating point
9972 comparisons by calling real_compare. Remove tree_expr_nonzero_p
9973 transformation; fold_relational_const assumes constant operands.
9975 2004-07-19 Gabriel Dos Reis <gdr@integrable-solution.net>
9977 * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
9980 2004-07-19 Joseph S. Myers <jsm@polyomino.org.uk>
9982 * c-tree.h (struct c_expr): Define.
9983 (C_SET_EXP_ORIGINAL_CODE): Remove.
9984 (parser_build_binary_op, build_compound_expr): Update prototypes.
9985 * c-parse.in (%union): Add exprtype.
9986 (FUNC_NAME): Mark as ttype.
9987 (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
9989 (expr): Update. Define directly in terms of expr_no_commas
9990 instead of using nonnull_exprlist.
9991 (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
9992 offsetof_member_designator, typespec_nonreserved_nonattr, init,
9993 initval, designator, component_declarator,
9994 component_notype_declarator, enumerator, array_declarator,
9995 condition, exexpr, switch_statement, stmt_nocomp, stmt,
9996 nonnull_asm_operands, ivar_declarator, receiver): Update. Don't
9997 set C_EXP_ORIGINAL_CODE. Use TREE_NO_WARNING for assignments
9999 * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
10000 * c-common.c (c_common_truthvalue_conversion): Don't check
10001 C_EXP_ORIGINAL_CODE.
10002 * c-typeck.c (parser_build_binary_op): Use c_expr structures.
10003 Don't use C_EXP_ORIGINAL_CODE.
10004 (default_conversion, default_function_array_conversion): Don't use
10005 C_EXP_ORIGINAL_CODE. Preserve TREE_NO_WARNING.
10006 (internal_build_compound_expr): Merge into build_compound_expr.
10007 (build_compound_expr): Take two operands instead of a TREE_LIST.
10008 * objc/objc-act.c (get_super_receiver): Update calls to
10009 build_compound_expr.
10011 2004-07-18 Paolo Bonzini <bonzini@gnu.org>
10013 * config/sh/sh.c (sh_use_dfa_interface): Remove.
10014 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
10016 * config/sh/sh.md: Extract pipeline descriptions
10017 into separate files.
10018 * config/sh/sh1.md: New file, extracted from sh.md.
10019 * config/sh/sh4.md: New file, extracted from sh.md.
10020 * config/sh/shmedia.md: New file, extracted from sh.md
10021 and rewritten using new-style pipeline description.
10023 2004-07-18 Zack Weinberg <zack@codesourcery.com>
10025 * config/pa/pa.md: Delete the two remaining define_peephole
10028 2004-07-18 Steven Bosscher <stevenb@suse.de>
10029 Joseph S. Myers <jsm@polyomino.org.uk>
10031 * c-common.c (c_common_truthvalue_conversion): Don't warn if
10032 TREE_NO_WARNING is set.
10034 2004-07-18 Roger Sayle <roger@eyesopen.com>
10036 * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
10037 simplify_builtin_strncmp): Delete.
10038 (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
10039 Change argument to accept an arglist instead of an "exp". Assume
10040 that the return type is always integer_type_node. Copy missing
10041 transformations from their now obsolete simplify_builtin_*
10043 (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
10044 fold_builtin_strcmp and fold_builtin_strncmp.
10045 (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
10046 and fold_builtin_strncmp instead of simplify_builtin_memcmp,
10047 simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
10049 2004-07-18 Daniel Jacobowitz <dan@debian.org>
10051 * Makefile.in (tree-alias-common.o): Update dependencies.
10053 2004-07-17 Sebastian Pop <pop@cri.ensmp.fr>
10055 * cfgloop.c (flow_loop_nested_p): Fix comment.
10057 2004-07-17 Jason Merrill <jason@redhat.com>
10060 * stor-layout.c (relayout_decl): New fn.
10061 * tree.h: Declare it.
10062 (DECL_BY_REFERENCE): New macro.
10064 2004-07-17 Eric Botcazou <ebotcazou@act-europe.fr>
10066 * libgcc2.c (__enable_execute_stack): New symbol.
10067 * libgcc-std.ver (GCC_3.4.2): New version. Inherit from GCC_3.4
10068 and declare __enable_execute_stack.
10069 * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
10070 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
10071 * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
10072 ENABLE_EXECUTE_STACK.
10073 * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
10074 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
10075 * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
10076 ENABLE_EXECUTE_STACK.
10077 * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
10078 * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
10079 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
10080 * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
10081 ENABLE_EXECUTE_STACK.
10082 * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
10083 * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
10084 * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
10085 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
10086 * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
10087 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
10088 (sparc64_initialize_trampoline): Likewise.
10089 * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
10091 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
10093 * langhooks.h (builtin_function): New langhook.
10094 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
10095 (LANG_HOOKS_INITIALIZER): Update.
10096 * tree.h (builtin_function): Remove.
10097 * doc/tm.texi: Update.
10098 * c-tree.h (builtin_function): Declare.
10099 * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
10100 config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
10101 config/ia64/ia64.c, config/iq2000/iq2000.c,
10102 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
10103 config/stormy16/stormy16.c: All callers of builtin_function
10106 2004-07-17 Andrew Pinski <pinskia@physics.uc.edu>
10109 * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
10110 Remove white space after the backslash.
10112 2004-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
10114 PR rtl-optimization/16294
10115 * resource.c (return_insn_p): New predicate.
10116 (mark_target_live_regs): Use it. Special-case return insns.
10117 (init_resource_info): Use it. Don't scan the epilogue past
10120 2004-07-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10122 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
10123 destroy dominance information.
10124 * passes.c (rest_of_handle_loop2): Free dominance information.
10125 * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
10127 (thread_jumps): Update dominance information and remove unreachable
10129 * tree-ssa-phiopt.c (replace_phi_with_stmt): Update dominance
10130 information and remove the unreachable block.
10132 2004-07-17 Graham Stott <graham.stott@btinternet.com>
10134 * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
10136 2004-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
10138 * doc/sourcebuild.texi: Remove libf2c entry.
10140 2004-07-17 Paolo Bonzini <bonzini@gnu.org>
10142 * config/i386/i386.md (movv16qi_internal): Fix typo.
10144 2004-07-17 Steven Bosscher <stevenb@suse.de>
10146 * final.c (final_scan_insn): Fix broken commit from previous
10149 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
10151 * c-typeck.c (parser_build_binary_op): Condition warnings for
10152 X<=Y<=Z on -Wparentheses instead of -Wextra.
10153 * doc/invoke.texi: Update. Document that most of -Wparentheses is
10154 supported for C only.
10156 2004-07-17 Steven Bosscher <stevenb@suse.de>
10158 * cfgcleanup.c (try_simplify_condjump): Don't remove line
10159 notes to avoid unreachable code warnings.
10160 * toplev.c (backend_init): Don't emit line notes for
10161 unreachable code warnings.
10163 * combine.c (distribute_notes): Don't distribute a
10164 REG_VTABLE_REF note.
10165 * final.c (final_scan_insn): Don't handle it.
10166 * rtl.c (reg_note_name): Remove it.
10167 * rtl.h (enum reg_node): Dito.
10169 * emit-rtl.c (force_line_numbers, restore_line_number_status):
10171 * rtl.h (force_line_numbers, restore_line_number_status):
10174 * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
10175 * tree-eh.c (using_eh_for_cleanups_p): ...here. Make static.
10176 (using_eh_for_cleanups): Also moved here.
10178 * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
10179 <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY. Update calls
10180 to expand_start_case and add_case_node.
10181 * stmt.c (struct nesting): Cleanup unused fields condition_code,
10182 last_unconditional_cleanup, nominal_type, printname, and
10183 line_number_status.
10184 (struct fixup_goto): Remove.
10185 (struct stmt_status): Remove x_goto_fixup_chain field.
10186 (goto_fixup_chain): Remove.
10187 (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
10188 pushcase, pushcase_range): Remove.
10189 (expand_start_bindings_and_block): Don't set unused fields in
10191 (expand_start_case, add_case_node): Cleanup unused formal arguments.
10192 (expand_end_case_type): Don't simplify the case-list. Use emit_jump
10193 instead of emit_jump_if_reachable.
10194 (emit_case_nodes): Likewise.
10195 * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
10197 (update_eh_label): Work around left-over exception handing regions.
10198 * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
10199 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
10200 (pass_cleanup_cfg_post_optimizing): New pass.
10201 (init_tree_optimization_passes): Run the new pass after all
10203 * tree.h (pushcase, pushcase_range): Remove prototypes.
10204 (expand_start_case, add_case_node): Update prototypes.
10206 2004-07-16 Krister Walfridsson <cato@df.lth.se>
10208 * tree-inline.c (estimate_num_insns_1): Correct increase of count.
10210 2004-07-16 Richard Henderson <rth@redhat.com>
10212 * builtins.c (std_expand_builtin_va_arg): Remove.
10213 (expand_builtin_va_arg): Remove.
10214 * expr.h: Don't declare them.
10215 * gimplify.c (mark_decls_volatile_r): Remove.
10216 (copy_if_shared_r): Don't call it.
10217 * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
10218 * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
10219 * gimple-low.c (lower_stmt): Likewise.
10220 * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
10221 * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
10222 * tree-ssa-operands.c (get_expr_operands): Likewise.
10223 * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
10224 EXPAND_BUILTIN_VA_ARG.
10225 * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
10226 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
10227 config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
10228 config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
10230 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
10232 * tree-ssa-pre.c (insert_aux): Break out if we hit
10235 2004-07-16 Richard Henderson <rth@redhat.com>
10237 * basic-block.h (remove_fake_exit_edges): Declare.
10238 * cfganal.c (remove_fake_predecessors): Rename from
10239 remove_fake_successors; iterate over predecessors.
10240 (remove_fake_exit_edges): New.
10241 * cfgcleanup.c (try_optimize_cfg): Use it.
10242 * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
10243 * predict.c (estimate_probability): Likewise.
10244 (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
10245 * tree-cfg.c (make_edges): Likewise.
10246 * tree-ssa-pre.c (fini_pre): Likewise.
10247 * profile.c (instrument_edges): Don't remove_fake_edges.
10248 (branch_prob): Do it earlier here.
10250 2004-07-16 Richard Henderson <rth@redhat.com>
10252 * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
10253 switchification wrt CONSTRUCTOR. Document the reason.
10255 2004-07-16 Frank Ch. Eigler <fche@redhat.com>
10257 * tree-mudflap.c (mf_file_function_line_tree): Correct typo
10258 that prevented descriptive __mf_check source location strings.
10260 2004-07-16 Richard Henderson <rth@redhat.com>
10262 * tree-def (WITH_SIZE_EXPR): New.
10263 * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
10264 * expr.c (expand_expr_real_1): Likewise.
10265 * gimplify.c (maybe_with_size_expr): New.
10266 (gimplify_arg, gimplify_modify_expr): Use it.
10267 (gimplify_modify_expr_to_memcpy): Take size parameter.
10268 (gimplify_modify_expr_to_memset): Likewise.
10269 (gimplify_expr): Handle WITH_SIZE_EXPR.
10270 * tree-alias-common.c (find_func_aliases): Likewise.
10271 * tree-eh.c (tree_could_trap_p): Likewise.
10272 (tree_could_throw_p): Likewise.
10273 * tree-gimple.c (is_gimple_lvalue): Likewise.
10274 (get_call_expr_in): Likewise.
10275 * tree-inline.c (estimate_num_insns_1): Likewise.
10276 (expand_calls_inline): Likewise.
10277 * tree-nested.c (convert_call_expr): Likewise.
10278 * tree-pretty-print.c (dump_generic_node): Likewise.
10279 * tree-sra.c (sra_walk_expr): Likewise.
10280 * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
10281 * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
10282 * tree-ssa-operands.c (get_expr_operands): Likewise.
10283 * tree-tailcall.c (find_tail_calls): Likewise.
10285 * calls.c (expand_call): Reset old_stack_allocated after
10286 calling emit_stack_restore.
10288 2004-07-16 Richard Henderson <rth@redhat.com>
10290 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
10291 lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
10292 * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
10293 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
10294 copy_res_decl_for_inlining.
10296 * tree-inline.c (declare_return_variable): New modify_dest argument.
10297 Use it as the return value, when possible or manditory. Handle
10298 TREE_ADDRESSABLE types.
10299 (expand_call_inline): Extract MODIFY_EXPR lhs for call. Simplify
10300 replacement of CALL_EXPR.
10302 2004-07-16 Richard Henderson <rth@redhat.com>
10304 * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
10305 * gimple-low.c (expand_var_p): Don't check it.
10306 * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
10307 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
10308 * tree-ssa-operands.c (add_stmt_operand): Likewise.
10309 * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
10310 (find_referenced_vars): Don't call them.
10311 * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
10313 2004-07-16 Richard Henderson <rth@redhat.com>
10315 * function.c (pass_by_reference): True for all variable sized types.
10317 2004-07-16 Sebastian Pop <pop@cri.ensmp.fr>
10319 * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
10320 * tree-pretty-print.c: Include tree-chrec.h.
10321 (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
10322 and POLYNOMIAL_CHREC nodes.
10324 2004-07-16 Steve Ellcey <sje@cup.hp.com>
10326 * builtins.c (expand_builtin_stpcpy): Do not create temporary
10329 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
10331 * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
10333 2004-07-16 Andreas Krebbel <krebbel1@de.ibm.com>
10335 * config/s390/s390.md: Changed every occurence of BASE_REGISTER
10337 * config/s390/s390.c: Likewise.
10338 * config/s390/s390.h: Likewise.
10340 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
10342 * config/mips/mips.md (addsi3, adddi3): Remove special handling
10343 of $sp adds. Remove REGNO checks from mips16 patterns.
10345 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
10347 * config/mips/mips.md: Delete outdated comment.
10349 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
10351 * config/mips/mips.c (get_float_compare_codes): Delete.
10352 (mips_emit_compare): New function, mostly extracted from
10353 get_float_compare_codes and gen_conditional_branch.
10354 (gen_conditional_branch, gen_conditional_move): Use it.
10356 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
10358 * genautomata.c (add_vect): Speedup by using integers as
10359 bit-vectors for walking through the comb_vect and finding
10362 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
10364 * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
10365 operand is an uns_arith_operand; use subtraction otherwise.
10366 * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
10367 not just arith_operands.
10369 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
10371 * config/mips/mips-protos.h (gen_int_relational): Delete.
10372 (mips_emit_scc): Declare.
10373 * config/mips/mips.c (internal_test): Delete.
10374 (sle_operand, sleu_operand): New functions.
10375 (map_test_to_internal_test, gen_int_relational): Delete.
10376 (mips_emit_binary, mips_relational_operand_ok_p)
10377 (mips_emit_int_relational, mips_zero_if_equal)
10378 (mips_emit_scc): New functions.
10379 (gen_conditional_branch): Rework to use mips_emit_int_relational.
10380 * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
10382 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
10383 (sltu, sleu): Use mips_emit_scc.
10384 (*sge_[sd]i, *sgeu_[sd]i): New patterns.
10385 (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
10386 (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
10388 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
10390 * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
10392 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
10394 * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
10395 (*sne_[sd]i): Likewise sne_[sd]i_zero.
10396 (*sgt_[sd]i): ...and sgt_[sd]i.
10397 (*slt_[sd]i): ...and slt_[sd]i.
10398 (*sgtu_[sd]i): ...and sgtu_[sd]i.
10399 (*sltu_[sd]i): ...and sltu_[sd]i.
10400 (*sleu_[sd]i): ...and sleu_[sd]i_const.
10401 Name previously unnamed mips16 patterns. Formatting fixes.
10403 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
10405 * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
10406 (branch_type): Delete.
10407 (gen_conditional_branch, gen_conditional_move)
10408 (mips_gen_conditional_trap): Update after name change. Get the
10409 comparison mode from cmp_operands[0].
10410 * config/mips/mips.h (cmp_type, branch_type): Delete.
10411 (cmp_operands): Renamed from branch_cmp.
10412 * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
10413 name change. Don't set branch_type.
10414 (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
10415 mode class of cmp_operands[0] rather than branch_type. Update after
10418 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
10420 * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
10421 of 0...255 to 0 when inside a SET.
10423 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
10425 * config/mips/mips.md: Remove mips16 define_peepholes.
10427 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
10429 * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
10430 (fini_pre): Remove fake edges.
10432 2004-07-15 Richard Henderson <rth@redhat.com>
10434 * tree-ssa-operands.c (get_expr_operands): Use a switch. Split out...
10435 (get_indirect_ref_operands, get_call_expr_operands): ... these.
10437 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
10439 * vec.h (VEC_address): New function.
10441 2004-07-14 Jason Merrill <jason@redhat.com>
10443 PR middle-end/15885
10444 * gimplify.c (gimplify_arg): New fn, split out from...
10445 (gimplify_call_expr): Here. Special-case BUILT_IN_VA_START.
10447 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
10449 * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
10450 generate code which is generated by pushqi1 now
10451 * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
10453 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
10455 * combine.c (simplify_set): match the mode of the constant 0 with
10456 the tested operand to match the compare behaviour and the
10457 simplify_relational_operation() expectation.
10459 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
10461 * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
10462 ("bordered"): Same.
10464 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
10466 * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
10468 * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
10470 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
10472 * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
10473 calls in mips16 code.
10475 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
10477 * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
10478 the destination of the li as well as for the neg.
10480 2004-07-15 Frank Ch. Eigler <fche@redhat.com>
10483 * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
10484 * cgraph.h: Update declaration.
10485 * c-decl.c (build_cdtor): Update call with default priority.
10486 * coverage.c (create_coverage): Ditto.
10487 * tree-mudflap.c (mf_init_fndecl): New tree.
10488 (mudflap_init): Set it.
10489 (mudflap_register_call): Arrange to call __mf_init before the first
10490 __mf_register call.
10491 (mudflap_finish_file): Mark the mudflap static initializer as extra
10492 high priority, to beat all C++ static constructors.
10494 2004-07-15 Jeff Law <law@redhat.com>
10496 * loop.c (check_insn_for_givs): Restore check for code labels that was
10497 accidentally deleted by a recent checkin.
10499 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
10501 * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
10502 (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
10504 2004-07-14 Richard Henderson <rth@redhat.com>
10506 * print-tree.c (print_node): Fix casts last change.
10508 2004-07-15 Paul Brook <paul@codesourcery.com>
10510 * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
10511 to TARGET_UNWIND_INFO.
10512 * except.c (output_function_exception_table): Ditto.
10514 * opts.c (decode_options): Ditto.
10515 * passes.c (rest_of_handle_final): Ditto.
10516 * final.c (final_start_function): Ditto.
10517 (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
10519 * targhooks.h (default_unwind_emit): Declare.
10520 * targhooks.c (default_unwind_emit): New function.
10521 * target-def.h: Define and use TARGET_UNWIND_EMIT.
10522 * target.h (struct gcc_target): Add unwind_emit.
10523 * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
10524 * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
10525 Remove IA64_UNWIND_EMIT.
10526 * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
10528 2004-07-14 Richard Henderson <rth@redhat.com>
10530 * print-tree.c (print_node): Handle SSA_NAME.
10532 2004-07-14 James E Wilson <wilson@specifixinc.com>
10535 * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
10536 and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
10538 2004-07-15 Jakub Jelinek <jakub@redhat.com>
10540 * expr.c (expand_assignment): Reenable bitfield += optimizations.
10541 Use alias set 0 for memory, do proper mode calculations and adjust
10542 address for memories.
10544 2004-07-14 Per Bothner <per@bothner.com>
10546 * input.h: If USE_MAPPED_LOCATION, define separate expanded_location
10547 structure with extra column field.
10548 * tree.c (expand_location): Also fill in column field.
10549 * gengtype-lex.l: Ignore expanded_location typedef, sinze gengtype
10550 gets confused by the two conditionally-compiled definitions.
10552 2004-07-14 Eric Christopher <echristo@redhat.com>
10554 * calls.c (expand_call): Fix typo in comment.
10556 2004-07-14 Steve Ellcey <sje@cup.hp.com>
10558 * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
10559 comparision of TFmode.
10561 2004-07-14 Richard Henderson <rth@redhat.com>
10563 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
10564 (alpha_gimplify_va_arg): ... handling here. Use pass_by_reference.
10565 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
10566 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
10567 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
10568 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
10569 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
10570 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
10571 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
10573 2004-07-14 Mike Stump <mrs@apple.com>
10575 * config/darwin.h (WINT_TYPE): Define to be int to match
10576 system header files.
10578 2004-07-14 Bob Wilson <bob.wilson@acm.org>
10580 * config/xtensa/xtensa.c (function_arg_advance): Check for args
10581 that must be passed in the stack.
10582 (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
10583 arguments if the size is not a constant.
10585 2004-07-14 Per Bothner <per@bothner.com>
10587 * c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION
10588 instead of EXPR_LOCUS in a boolean context, which is always true
10589 if --enable-mapped-location.
10590 * stmt.c (warn_if_unused_value): Likewise. Also use EXPR_LOCATION.
10592 2004-07-14 Richard Henderson <rth@redhat.com>
10594 * dominance.c (struct dom_info): Add fake_exit_edge.
10595 (init_dom_info): Allocate it.
10596 (free_dom_info): Free it.
10597 (calc_dfs_tree): Set it. Handle noreturn and infinite loops
10599 (calc_idoms): Honor fake_exit_edge.
10601 2004-07-13 Jason Merrill <jason@redhat.com>
10603 * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
10604 (rhs_test_for): New fn.
10605 (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
10606 * tree-gimple.h: Declare them.
10607 * gimplify.c (gimplify_modify_expr): Use the new fns.
10609 2004-07-14 Richard Henderson <rth@redhat.com>
10611 * config/arm/arm-protos.h (arm_va_arg): Remove.
10612 * config/arm/arm.c (arm_va_arg): Remove.
10613 (arm_init_expanders): Fix alignment of arg_pointer_rtx.
10614 * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
10616 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10618 * pa.c (fix_range): New function to mark a range(s) of registers as
10620 (override_options): Call fix_range if the -mfixed-range option string
10622 * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
10623 * doc/invoke.texi (-mfixed-range): Document new option.
10625 2004-07-14 David Edelsohn <edelsohn@gnu.org>
10627 * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
10629 (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
10631 2004-07-14 Roger Sayle <roger@eyesopen.com>
10633 * expmed.c (expand_sdiv_pow2): New function to expand signed division
10634 by a positive power of two, split out from expand_divmod. Provide
10635 an alternate implementation when shifts are expensive. Lower the
10636 threshold for using a branchless implementation to BRANCH_COST >= 2.
10637 (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
10639 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
10641 * tree-dfa.c (make_rename_temp): *Really* work just
10642 like create_tmp_var if called while outside SSA form.
10644 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
10646 * config/s390/s390.md ("udivsi3"): Ensure trap is generated
10647 for division by zero.
10648 ("umodsi3"): Likewise.
10650 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
10652 * config/mips/mips.c (mips_output_move): When generating mips16 code,
10653 force loads of negative constants to be split.
10654 * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
10655 Generalize SImode li/neg splitter to cope with other modes.
10657 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
10659 * expmed.c: Remove more references to QUEUED in the comments.
10660 * expr.c: Likewise.
10662 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
10665 2004-07-13 Richard Henderson <rth@redhat.com>
10666 * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
10669 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
10671 * tree-dfa.c (make_rename_temp): Work just like
10672 create_tmp_var if called while outside SSA form.
10674 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
10676 * expr.c (enqueue_insn, finish_expr_for_function,
10677 protect_from_queue, queued_subexp_p, mark_queue,
10678 emit_insns_enqueued_after_mark, emit_queue,
10679 expand_increment): Remove.
10680 (store_constructor): Expand increment as an assignment.
10681 (expand_expr_real_1 <case PREINCREMENT_EXPR,
10682 case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
10683 case POSTDECREMENT_EXPR>): Abort.
10684 * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
10685 QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
10686 protect_from_queue, emit_queue, queued_subexp_p): Remove.
10687 * function.h (pending_chain, x_pending_chain): Remove.
10688 * rtl.def (QUEUED): Remove.
10690 * emit-rtl.c (copy_insn_1, copy_most_rtx,
10691 set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
10692 * genattrtab.c (attr_copy_rtx, clear_struct_flag,
10693 encode_units_mask): Likewise.
10694 * local-alloc.c (equiv_init_varies_p): Likewise.
10695 * rtl.c (copy_rtx): Likewise.
10696 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
10697 * simplify-rtx.c (simplify_gen_subreg): Likewise.
10698 * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
10700 * builtins.c (expand_builtin, expand_builtin_apply,
10701 expand_builtin_mathfn, expand_builtin_mathfn_2,
10702 expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
10703 Remove calls to emit_queue and protect_from_queue.
10704 * calls.c (expand_call, precompute_arguments,
10705 precompute_register_parameters, rtx_for_function_call,
10706 store_one_arg): Likewise.
10707 * dojump.c (do_compare_and_jump, do_jump): Likewise.
10708 * explow.c (memory_address): Likewise.
10709 * expmed.c (clear_by_pieces_1, clear_storage,
10710 clear_storage_via_libcall, emit_group_load,
10711 emit_group_store, emit_store_flag,
10712 expand_expr_real_1, store_by_pieces,
10713 store_constructor, store_expr, try_casesi,
10714 try_tablejump): Likewise.
10715 * function.c (expand_pending_sizes): Likewise.
10716 * optabs.c (emit_cmp_and_jump_insns,
10717 emit_conditional_add, emit_conditional_move,
10718 expand_fix, expand_float, prepare_cmp_insn): Likewise.
10719 * stmt.c (emit_case_bit_tests,
10720 expand_asm_expr, expand_computed_goto,
10721 expand_decl_init, expand_end_case_type,
10722 expand_end_stmt_expr, expand_expr_stmt_value,
10723 expand_return, expand_start_case,
10724 optimize_tail_recursion): Likewise.
10725 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
10726 * config/s390/s390.c (s390_expand_cmpmem): Likewise.
10728 2004-07-14 Ben Elliston <bje@au.ibm.com>
10730 * vec.h: Comment fix.
10732 2004-07-13 Richard Henderson <rth@redhat.com>
10734 * target.h (struct gcc_target): Add calls.pass_by_reference.
10735 * target-def.h (TARGET_PASS_BY_REFERENCE): New.
10736 * function.c (pass_by_reference): Use the hook.
10737 * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
10738 * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
10739 (hook_pass_by_reference_must_pass_in_stack): New.
10740 * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
10741 (alpha_pass_by_reference): New.
10742 (TARGET_PASS_BY_REFERENCE): New.
10743 * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10744 * config/arc/arc.c (arc_pass_by_reference): New.
10745 (TARGET_PASS_BY_REFERENCE): New.
10746 * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10747 (FUNCTION_ARG_CALLEE_COPIES): True.
10748 * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
10749 * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
10750 (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
10751 * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10752 * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10753 * config/cris/cris.c (cris_pass_by_reference): New.
10754 (TARGET_PASS_BY_REFERENCE): New.
10755 * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
10756 (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
10757 (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10758 * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
10759 * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10760 * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
10761 * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
10762 (frv_function_arg_pass_by_reference): Remove.
10763 * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10764 * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
10765 * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
10766 (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
10767 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10768 * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
10769 * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
10770 (ia64_pass_by_reference): Rename from
10771 ia64_function_arg_pass_by_reference.
10772 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10773 * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10774 * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
10775 * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
10776 (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
10777 * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10778 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
10779 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
10780 * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
10781 (m32r_pass_by_reference): Adjust prototype. Make static.
10782 Handle mode sizes correctly.
10783 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10784 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
10785 (m68hc11_function_arg_pass_by_reference): Remove.
10786 * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10787 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
10788 * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
10789 * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10790 * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
10791 * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
10792 (mips_va_arg): Use pass_by_reference.
10793 (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
10794 Handle mode sizes correctly.
10795 * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10796 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
10797 * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
10798 * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
10799 (mmix_pass_by_reference): Rename from
10800 mmix_function_arg_pass_by_reference.
10801 * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10802 (FUNCTION_ARG_CALLEE_COPIES): True.
10803 * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
10804 (mn10300_pass_by_reference): New.
10805 * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10806 (FUNCTION_ARG_CALLEE_COPIES): True.
10807 * config/pa/pa.c (pa_pass_by_reference): New.
10808 (TARGET_PASS_BY_REFERENCE): New.
10809 * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10810 (FUNCTION_ARG_CALLEE_COPIES): True.
10811 * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
10812 * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
10813 (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
10814 * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10815 * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
10816 * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
10817 (s390_pass_by_reference): Rename from
10818 s390_function_arg_pass_by_reference.
10819 (s390_function_arg_advance): Don't query pass-by-ref.
10820 (s390_function_arg): Likewise.
10821 (s390_gimplify_va_arg): Use pass_by_reference.
10822 (s390_call_saved_register_used): Likewise.
10823 * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10824 * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
10825 (shcompact_byref, sh_pass_by_reference): New.
10826 * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10827 (SHCOMPACT_BYREF): Remove.
10828 * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
10829 * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
10830 (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
10831 (sparc_gimplify_va_arg): Use pass_by_reference.
10832 * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10833 * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10834 * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
10835 (v850_pass_by_reference): New.
10836 * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10837 (FUNCTION_ARG_CALLEE_COPIES): True.
10838 * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
10839 FUNCTION_ARG_PASS_BY_REFERENCE docs.
10841 2004-07-14 Richard Henderson <rth@redhat.com>
10842 Richard Sandiford <rsandifo@redhat.com>
10844 * config/mips/mips-protos.h (mips_va_arg): Delete.
10845 * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
10846 * config/mips/mips.c: Include tree-gimple.h.
10847 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
10848 (mips_arg_info): Remove special handling of must_pass_in_stck args.
10849 (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
10850 (function_arg_pass_by_reference): Return true if must_pass_in_stack.
10852 2004-07-13 Bob Wilson <bob.wilson@acm.org>
10854 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
10855 arguments for COND_EXPR in big-endian adjustment code.
10857 2004-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10859 * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
10860 * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
10861 * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
10862 * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
10864 2004-07-13 Diego Novillo <dnovillo@redhat.com>
10866 PR tree-optimization/16443
10867 * tree-ssa-alias.c: Add more description for
10868 CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
10869 * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
10870 clobbering of call-clobbered and addressable variables. If
10871 there are any before aliases have been computed, add them.
10873 2004-07-13 Diego Novillo <dnovillo@redhat.com>
10875 * tree-optimize.c (execute_todo): Flush DUMP_FILE before
10878 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
10880 * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
10881 of build_int_2. Convert both operands of PLUS_EXPR and MULT_EXPR
10884 2004-07-13 Per Bothner <per@bothner.com>
10886 * collect2.c (main): Handle --no-demangle and --demangle flags.
10888 2004-07-13 Sebastian Pop <pop@cri.ensmp.fr>
10890 * Makefile.in (OBJS-common): Add tree-data-ref.o.
10891 (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
10892 (tree-data-ref.o): New rule.
10893 * lambda.h: New file.
10894 * tree-data-ref.c: New file.
10895 * tree-data-ref.h: New file.
10896 * tree.c (int_cst_value, tree_fold_gcd): New functions.
10897 * tree.h (int_cst_value, tree_fold_gcd): Declared here.
10899 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
10902 * config/sparc/sparc-protos.h (output_ubranch): New prototype.
10903 * config/sparc/sparc.c (output_ubranch): New function.
10904 * config/sparc/sparc.md (jump pattern): Use it.
10906 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
10909 * config/sparc/sparc.c (output_cbranch): Properly guard
10910 the code handling far branches with TARGET_V9.
10911 * config/sparc/sparc.md (length attribute): Document the
10912 side-effect of having a length greater or equal to 3.
10914 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
10915 Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
10918 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
10919 /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
10921 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
10922 Martin Sebor <sebor@roguewave.com>
10925 * doc/invoke.texi (SPARC options): Document -threads
10926 and -pthreads on Solaris.
10928 2004-07-13 Richard Henderson <rth@redhat.com>
10930 * builtins.c (std_gimplify_va_arg_expr): Handle types passed
10932 (ind_gimplify_va_arg_expr): Remove.
10933 * tree.h (ind_gimplify_va_arg_expr): Remove.
10934 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
10935 * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
10938 * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
10939 (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
10940 * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
10941 config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
10942 config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
10944 2004-07-13 Richard Henderson <rth@redhat.com>
10946 * function.c (pass_by_reference): New.
10947 (assign_parm_find_data_types): Use it.
10948 * calls.c (initialize_argument_information): Likewise.
10949 (emit_library_call_value_1): Likewise.
10950 * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
10951 * function.h (pass_by_reference): Declare.
10953 2004-07-13 Richard Henderson <rth@redhat.com>
10955 * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
10956 * target.h (struct gcc_target): Add calls.must_pass_in_stack.
10957 * expr.h (MUST_PASS_IN_STACK): Remove.
10958 * system.h (MUST_PASS_IN_STACK): Poison.
10959 * tree.h (must_pass_in_stack_var_size): Declare.
10960 (must_pass_in_stack_var_size_or_pad): Declare.
10961 * calls.c (must_pass_in_stack_var_size): New.
10962 (must_pass_in_stack_var_size_or_pad): Rename from
10963 default_must_pass_in_stack.
10964 * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
10965 (TARGET_MUST_PASS_IN_STACK): New.
10966 * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
10967 * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
10968 (TARGET_MUST_PASS_IN_STACK): New.
10969 * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
10970 * config/frv/frv.c (frv_must_pass_in_stack): New.
10971 (TARGET_MUST_PASS_IN_STACK): New.
10972 * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
10973 * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
10974 * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
10975 (ix86_must_pass_in_stack): Make static.
10976 * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
10977 * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
10978 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
10979 * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
10980 * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
10981 * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
10982 * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
10983 (mcore_must_pass_on_stack): Remove.
10984 * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
10985 * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
10986 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
10987 * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
10988 * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
10989 * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
10990 * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
10991 * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
10992 (TARGET_MUST_PASS_IN_STACK): New.
10993 * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
10994 * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
10995 * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
10996 * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
10997 * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
10998 * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
10999 * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
11000 MUST_PASS_IN_STACK.
11002 * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
11003 config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
11004 config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
11005 config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
11006 config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
11007 config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
11008 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
11009 config/xtensa/xtensa.c: Use target hook.
11011 2004-07-13 Anthony Heading <aheading@jpmorgan.com>
11013 * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
11014 * configure: Rebuilt.
11016 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
11018 * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
11019 * config/mips/mips.h (mips_reg_names): Don't declare.
11020 (MASK_NAME_REGS): Delete. Shuffle other MASK_* values down.
11021 (TARGET_NAME_REGS): Delete.
11022 (TARGET_SWITCHES): Remove -mrnames.
11023 (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
11024 (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
11026 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
11027 (override_options): Remove handling of TARGET_NAME_REGS.
11029 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
11031 * config/mips/mips.h (TARGET_*): Boolify.
11033 2004-07-12 Nick Clifton <nickc@redhat.com>
11035 * config.gcc: Add sh-*-symbianelf target.
11036 * config/sh/sh.c: Add new target macros:
11037 TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
11038 TARGET_CXX_IMPORT_EXPORT_CLASS.
11039 (sh_file_start): Create a definition of the .directive section.
11040 (sh_attribute): Add dllimport and dllexport attributes.
11041 * config/sh/symbian-pre.h: New file.
11042 * config/sh/symbian-post.h: New file.
11043 * config/sh/symbian.c: New file. Contains Symbian specific
11045 * config/sh/sh-protos.h: Add prototypes for new functions
11046 provided by symbian.c.
11047 * config/sh/t-symbian: New file.
11048 * doc/extend.texi: Document support for dllimport and dllexport
11049 attributes by the sh-symbianelf target.
11051 2004-07-12 James E Wilson <wilson@specifixinc.com>
11053 * Makefile.in (AR): Use @AR@ not ar.
11055 (AR_FOR_TARGET): Use $(AR) not ar for native.
11056 (NM_FOR_TARGET): Use $(NM) not nm for native.
11057 * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
11058 * configure: Regenerate.
11060 2004-07-12 David S. Miller <davem@nuts.davemloft.net>
11062 * config/sparc/sparc.md (ashlsi3): Eliminate const 1
11064 (ashldi3_sp64): Likewise.
11066 2004-07-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11069 * pa.c (function_arg): Update comment.
11070 * pa.h (BLOCK_REG_PADDING): Define.
11072 2004-07-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11074 PR tree-optimization/16461
11075 * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
11076 arguments of phi nodes.
11078 2004-07-12 Devang Patel <dpatel@apple.com>
11080 * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
11082 2004-07-12 Steve Ellcey <sje@cup.hp.com>
11084 * function.c (expand_function_start): Ensure r_save is in Pmode.
11085 * calls.c (prepare_call_address): Ensure static_chain_value is
11087 * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
11088 r_save_area are in Pmode.
11089 * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
11090 fnaddr, and static_chain are in Pmode.
11092 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
11095 * config/ia64/ia64.c (bundling): Don't count ignored insns.
11097 2004-07-12 Richard Henderson <rth@redhat.com>
11099 * target.h (struct gcc_target): Move gimplify_va_arg_expr
11100 next to build_builtin_va_list.
11101 * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
11102 * builtins.c (gimplify_va_arg_expr): Likewise.
11103 * gimplify.c (copy_if_shared_r): Likewise.
11105 2004-07-12 Alexandre Oliva <aoliva@redhat.com>
11107 * passes.c (rest_of_decl_compilation): Don't defer call of
11108 assemble_variable if its DECL_RTL is already set.
11110 2004-07-12 Sebastian Pop <pop@cri.ensmp.fr>
11112 * cfgloop.h (struct loop): Add nb_iterations field.
11113 (current_loops): Declare.
11114 * tree-chrec.c (chrec_not_analyzed_yet,
11115 chrec_dont_know, chrec_known, count_ev_in_wider_type,
11116 chrec_contains_symbols_defined_in_loop): Remove the temporary
11118 * tree-flow-inline.h (loop_containing_stmt): New function.
11119 * tree-scalar-evolution.c: Add implementation.
11120 * tree-scalar-evolution.h: Add declarations.
11122 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
11124 PR rtl-optimization/15921
11125 * Makefile.in (global.o): Add recog.h.
11127 * global.c (recog.h): Add the include-clause.
11128 (bb_info): New member earlyclobber.
11129 (allocate_bb_info, free_bb_info): Initialize/finish the new
11131 (earlyclobber_regclass, earlyclobber_regclass_length): The new
11133 (check_earlyclobber, regclass_intersect,
11134 mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
11136 (calculate_local_reg_bb_info): Calculate value of earlyclobber.
11137 (make_accurate_live_analysis): Modify pavin.
11139 2004-07-12 Diego Novillo <dnovillo@redhat.com>
11141 * tree-cfg.c (find_taken_edge): Statically compute the truth
11142 value of a predicate comparing an SSA_NAME to itself.
11144 2004-07-12 Roger Sayle <roger@eyesopen.com>
11146 * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
11147 rs6000 doesn't have shift-and-add or shift-and-sub instructions
11148 by returning the cost of a multiplication plus an addition.
11150 2004-07-12 Paolo Bonzini <bonzini@gnu.org>
11152 PR tree-optimization/14107
11153 * gimplify.c (gimplify_return_expr): Accept a
11154 RETURN_EXPR with an error argument.
11155 * tree-optimize.c (init_tree_optimization_passes):
11156 Run pass_warn_function_return at -O0.
11158 2004-07-12 Roger Sayle <roger@eyesopen.com>
11160 * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
11163 2004-07-12 Richard Sandiford <rsandifo@redhat.com>
11165 * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
11166 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
11167 * config/mips/3000.md: Add copyright notice. Remove automota and
11168 function units; use generic ones instead. Only define reservations
11169 for things that are different from generic.md. Extend each clause
11171 * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
11172 * config/mips/mips.md: Include them. Remove define_function_units.
11173 (alu, imuldiv): New automata and units.
11175 2004-07-12 Ben Elliston <bje@au.ibm.com>
11177 * doc/invoke.texi (Optimize Options): Document -frename-registers
11178 not being enabled by default at -O3.
11180 2004-07-11 Roger Sayle <roger@eyesopen.com>
11182 * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
11183 floating point additions, to keep real immediate constant positive.
11184 <MINUS_EXPR>: For floating point subtractions, only transform X - -C
11185 into X + C, and leave positive real constants as X - C.
11187 2004-07-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11189 * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
11191 2004-07-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11193 PR tree-optimization/15654
11194 * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
11196 2004-07-11 Roger Sayle <roger@eyesopen.com>
11198 * builtins.c (fold_builtin_fputs): Don't bother converting the
11199 return type to integer_type_node, as we've already checked that
11200 the result will be ignored.
11202 * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
11203 that signed addition, subtraction, multiplication, division,
11204 remainder, negation and absolute value may potentially trap.
11206 * fold-const.c (fold_ignored_result): New function to strip
11207 non-side-effecting tree nodes from an expression whose result
11209 (fold_convert): Call fold_ignored_result when casting a value
11211 (omit_one_operand): Call fold_ignored_result on the "omitted"
11212 operand when building a COMPOUND_EXPR.
11213 (pedantic_omit_one_operand): Likewise.
11214 * tree.h (fold_ignored_result): Prototype here.
11215 * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
11216 when we're going to ignore the result.
11218 2004-07-11 Richard Henderson <rth@redhat.com>
11221 * tree-ssa-ccp.c (fold_stmt_r): Split out...
11222 * tree.c (fields_compatible_p, find_compatible_field): ... new.
11223 * tree.h (fields_compatible_p, find_compatible_field): Declare.
11224 * tree-sra.c (sra_hash_tree): Hash fields by offset.
11225 (sra_elt_eq): Use fields_compatible_p.
11226 (generate_one_element_ref): Use find_compatible_field.
11228 2004-07-11 Richard Henderson <rth@redhat.com>
11231 * tree-sra.c (generate_one_element_init): New.
11232 (generate_element_init): Use it.
11233 (scalarize_init): Push/pop gimplify context around it.
11234 (find_new_referenced_vars_1, find_new_referenced_vars): New.
11235 * gimplify.c (gimplify_expr): Allow SSA_NAME.
11237 2004-07-11 Roger Sayle <roger@eyesopen.com>
11239 * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
11240 combine.c's combine_insn_cost.
11241 * rtl.h (insn_rtx_cost): Prototype here.
11242 * combine.c (combine_insn_cost): Delete function.
11243 (combine_validate_cost): Update callers of combine_insn_cost to
11244 call insn_rtx_cost instead.
11245 (combine_instructions): Likewise. Use NONJUMP_INSN_P to avoid
11246 requesting the rtx_cost of call and/or jump instructions.
11248 * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
11249 rtx_cost directly. Don't request/use the cost of call or jump
11250 instructions. Return -1 if the cost of any instruction can't be
11251 determined (or the BB contains a function call).
11252 (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
11253 -1 (i.e. can't determine the cost of any instruction or the basic
11254 block contains a subroutine call).
11255 (find_if_case_2): Likewise.
11257 2004-07-11 Roger Sayle <roger@eyesopen.com>
11259 * rs6000.c (struct processor_costs): Change semantics of fields to
11260 include the COST_N_INSNS scaling, and update all initializers.
11261 (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
11262 Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
11263 Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP. When
11264 optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
11266 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
11268 * LANGUAGES: Remove obsolete information.
11270 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
11272 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
11273 SIGBUS signal frames, the PSW address points *to* the faulting
11274 instruction, not after it.
11276 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
11278 * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
11279 added to TLS symbol addresses.
11281 2004-07-11 Richard Henderson <rth@redhat.com>
11283 * expmed.c (init_expmed): Use stack-local structures for
11284 temporary rtl. Don't recognize shifts.
11286 2004-07-11 Richard Henderson <rth@redhat.com>
11288 * expr.c (store_expr): Don't fiddle subreg promotion for types
11289 with precision smaller than the mode.
11291 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
11293 * tree.h (all_types_permanent): Remove.
11295 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
11297 * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
11298 maybe_build_cleanup, update_decl_after_saving): Remove hooks.
11299 * langhooks.c (lhd_clear_binding_stack): Remove.
11300 * langhooks-def.h (lhd_clear_binding_stack,
11301 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
11302 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
11303 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
11304 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
11305 (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
11306 * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
11307 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
11308 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
11309 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
11310 * tree.h (poplevel): Don't declare.
11311 * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
11312 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
11313 * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
11314 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
11317 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
11319 PR tree-optimization/16437
11320 * c-common.c (shorten_compare): Don't mark result of conversion to
11321 narrower signed type as overflowing.
11322 * fold-const.c (decode_field_reference): Determine whether
11323 signedness comes from outer type using precision rather than size.
11325 2004-07-11 Phil Edwards <phil@codesourcery.com>
11327 * configure.ac: Alphabetize --enable-checking list, add
11328 missing valgrind entry.
11329 * configure: Regenerate.
11331 2004-07-11 Phil Edwards <phil@codesourcery.com>
11333 * doc/install.texi (Testing): Fix syntax in "make check" example.
11335 2004-07-10 James E Wilson <wilson@specifixinc.com>
11337 * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
11339 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11341 PR rtl-optimization/16001
11342 * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
11345 2004-07-10 Geoffrey Keating <geoffk@apple.com>
11347 * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
11349 2004-07-10 Steve Kargl <sgk@troutmask.apl.washington.edu>
11350 James Morrison <phython@gcc.gnu.org>
11352 * doc/contrib.texi (Contributors): Add gfortran contributors and
11353 fix a couple of typos.
11355 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11357 PR rtl-optimization/15387
11358 * calls.c (check_sibcall_argument_overlap_1): Handle pointers
11359 to incoming args space correctly.
11361 2004-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11363 * pa.c (output_indirect_call): Only use %r2 as the link register in
11364 indirect calls with the long PA 2.0 pc-relative branch.
11366 2004-07-10 Daniel Jacobowitz <dan@debian.org>
11368 * config/i386/i386.c (override_options): Pick a 64-bit CPU
11369 for the default tuning if TARGET_64BIT.
11371 2004-07-10 Richard Henderson <rth@redhat.com>
11373 * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
11374 to HOST_WIDE_INT. Fold pad-args-down arithmetic.
11376 2004-07-10 Jakub Jelinek <jakub@redhat.com>
11378 * expr.h (store_bit_field, extract_bit_field): Remove last argument.
11379 * expmed.c (store_bit_field, extract_bit_field): Remove last
11381 * builtins.c (expand_builtin_signbit): Adjust callers.
11382 * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
11383 * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
11384 * ifcvt.c (noce_emit_move_insn): Likewise.
11385 * stmt.c (expand_return): Likewise.
11386 * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
11387 store_field, expand_expr_real_1): Likewise.
11389 2004-07-10 Richard Henderson <rth@redhat.com>
11391 * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
11393 2004-07-09 Mike Stump <mrs@apple.com>
11395 * config/darwin.c (no_dead_strip): Add.
11396 (HAVE_DEAD_STRIP): Add.
11397 (darwin_emit_unwind_label): Ensure that we don't dead code strip
11400 2004-07-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11402 * tree-ssa-loop-im.c: New file.
11403 * Makefile.in (tree-ssa-loop-im.o): Add.
11404 * cfgloop.c (superloop_at_depth): New function.
11405 * cfgloop.h (superloop_at_depth): Declare.
11406 * common.opt (ftree-lim): New flag.
11407 * expr.c (array_ref_up_bound): New function.
11408 * params.def (PARAM_LIM_EXPENSIVE): New parameter.
11409 * timevar.def (TV_LIM): New timevar.
11410 * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
11411 computing immediate uses of a phi node.
11412 * tree-flow.h (struct tree_ann_common_d): Add aux field.
11413 (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
11414 * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
11415 * tree-pass.h (pass_lim): Declare.
11416 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
11418 (pass_lim): New pass structure.
11419 * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
11420 * tree.c (in_array_bounds_p): New function.
11421 * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
11422 (in_array_bounds_p, array_ref_up_bound): Declare.
11423 * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
11424 * doc/passes.texi (tree-ssa-loop-im.c): Document.
11426 2004-07-09 Richard Henderson <rth@redhat.com>
11428 * builtins.c (expand_builtin_stpcpy): Don't modify len.
11430 * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
11433 2004-07-10 Kelley Cook <kcook@gcc.gnu.org>
11435 * flags.h: Delete redundant prototypes that are being generated
11436 in options.h from common.opt.
11437 * common.opt: Add in the expository comments formerly in flags.h.
11439 2004-07-09 Jan Beulich <jbeulich@novell.com>
11441 * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
11442 available for use only when TARGET_MMX/_SSE is set, and check for
11443 variable argument function if any register count is non-zero.
11444 (function_arg): Correctly suppress repeated warnings for passing SSE
11445 vectors are arguments without SSE enabled.
11446 (ix86_function_arg_boundary): Without SSE enabled, the use of what
11447 would be SSE register modes does no longer influence the alignment.
11449 2004-07-09 Richard Henderson <rth@redhat.com>
11451 * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
11452 Always align upward to arg boundary. Use size_in_bytes/round_up.
11453 Maintain type-correctness of constants.
11454 * stor-layout.c (round_up, round_down): Special-case powers of 2.
11456 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
11458 * config/sparc/sparc.c (*_costs): Scale instruction costs
11460 (sparc_rtx_costs): Adjust as appropriate.
11462 2004-07-09 Jan Beulich <jbeulich@novell.com>
11464 * config/i386/mm3dnow.h: New.
11465 * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
11467 2004-07-09 Richard Henderson <rth@redhat.com>
11469 * simplify-rtx.c (simplify_const_relational_operation): Only
11470 look at bounds of scalar integers.
11472 2004-07-09 Jan Beulich <jbeulich@novell.com>
11474 * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
11476 2004-07-09 Andrew Pinski <apinski@apple.com>
11478 * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
11480 (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
11481 UOBJC_METACLASS_decl.
11483 2004-07-09 James E Wilson <wilson@specifixinc.com>
11486 * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
11487 do return a parallel if hfa_mode == XFmode and mode == TImode.
11489 2004-07-09 Jan Beulich <jbeulich@novell.com>
11491 * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
11492 permissible for unary plus.
11494 2004-07-09 Jan Beulich <jbeulich@novell.com>
11496 * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
11497 (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
11498 (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
11499 (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
11500 BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
11501 * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
11502 BUILTIN_POPCOUNTxxx): Arguments are unsigned.
11503 (BUILTIN_xxxIMAX): New.
11504 * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
11505 BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
11506 BUILT_IN_PARITYIMAX.
11508 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
11510 * config/sparc/sparc.h (processor_costs): Define.
11511 (sparc_costs): Declare.
11512 * config/sparc/sparc.c (cypress_costs, supersparc_costs,
11513 hypersparc_costs, sparclet_costs, ultrasparc_costs,
11514 ultrasparc3_costs): New.
11515 (sparc_override_options): Set sparc_costs as appropriate.
11516 (sparc_rtx_costs): Use sparc_costs instead of messy
11519 2004-07-09 Steven Bosscher <stevenb@suse.de>
11521 * doc/md.texi (Processor pipeline description): Mention that
11522 the old pipeline description is deprecated.
11524 * config/rs6000/7450.md (automaton ppc7450): Split up, move
11525 mciu_7450 function unit to...
11526 (automaton ppc7450mciu): ...new automaton.
11528 * haifa-sched.c (insert_schedule_bubbles_p): Remove.
11529 (schedule_block): Don't consider inserting bubbles.
11530 (sched_init): Don't initialize DFA bubbles.
11531 * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
11532 TARGET_SCHED_DFA_BUBBLE): Remove.
11533 * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
11534 * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
11535 TARGET_SCHED_DFA_BUBBLE): Remove documentation.
11537 * stmt.c (conditional_context): Remove prototype.
11538 * tree.h (conditional_context): Remove.
11539 * tree-cfg.c (pre_insert_on_edge): Remove.
11541 * c-common.h (c_expand_asm_operands): Remove prototype.
11542 * c-typeck.c (c_expand_asm_operands): Remove.
11544 2004-07-09 Jan Beulich <jbeulich@novell.com>
11546 * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
11547 their base modes. CTImode, TCmode, and XCmode must be passed in memory.
11548 TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
11549 and V8QI are class SSE. All sufficiently small remaining vector modes
11550 must be passed in one or two integer registers.
11551 (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
11552 returned in memory.
11553 (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
11554 __builtin_ia32_pmuludq128 have non-uniform argument and return types
11555 and must thus be handled explicitly.
11556 * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
11558 (movv8qi_internal, movv4hi_internal, movv2si_internal,
11559 movv2sf_internal): Permit moving between MMX and XMM registers (since
11560 MMX areguments and return values are passed in XMM registers).
11561 (sse2_umulsidi3): Correct type and mode.
11563 2004-07-09 Richard Henderson <rth@redhat.com>
11565 * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
11567 2004-07-09 Eric Christopher <echristo@redhat.com>
11569 * config/rs6000/40x.md: Split into two automatons.
11571 2004-07-09 Zack Weinberg <zack@codesourcery.com>
11572 Andrew Pinski <apinski@apple.com>
11574 * c-opts.c (c_common_post_options): Force unit-at-a-time mode
11575 on when we have more than one input file.
11576 (c_common_parse_file): Restore loop over all input files.
11577 Clarify diagnostic for -dy when YYDEBUG wasn't defined.
11579 * c-decl.c (set_type_context): New function.
11580 (pop_scope): Use it to set context of types. When we
11581 encounter a TYPE_DECL, set the context of the attached type too.
11582 (pop_file_scope): Don't call cpp_undef_all here.
11583 (diagnose_mismatched_decls): Do not complain about a second
11584 definition of an 'extern inline' function if it's not in the
11585 same translation unit. Do not complain about inline
11586 declaration after use if the use was in a different
11588 (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
11589 (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
11590 the external scope.
11591 (pushdecl_top_level): Likewise.
11592 (grokdeclarator): Clarify what is going on with setting
11593 DECL_EXTERNAL on function types, a little.
11594 (c_write_global_declarations): Don't do anything if
11595 -fsyntax-only or errors have been encountered.
11597 2004-07-09 Zack Weinberg <zack@codesourcery.com>
11599 * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
11601 2004-07-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11604 * pa.c (output_indirect_call): Use %r2 as the link register when
11605 calling $$dyncall with a pc-relative branch.
11607 2004-07-08 Gerald Pfeifer <gerald@pfeifer.com>
11609 * doc/install.texi (Binaries): Mention OpenPKG.
11611 2004-07-09 Diego Novillo <dnovillo@redhat.com>
11613 Fix PR tree-optimization/15555
11614 * tree-dfa.c (dump_variable): If the variable is a pointer
11615 SSA_NAME, also dump its points-to information.
11616 * tree-flow.h (struct ptr_info_def): Add field
11618 (dump_points_to_info_for): Declare.
11619 (debug_points_to_info_for): Declare.
11620 * tree-optimize.c (init_tree_optimization_passes): Add a
11621 second alias analysis pass after DOM2.
11622 Move pass_del_pta to a later spot.
11623 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
11624 create a name tags when we find a dereferenced pointer. Just
11625 mark the pointer dereferenced.
11626 (collect_points_to_info_for): Move code to clear points-to
11627 information to create_name_tags.
11628 (create_name_tags): New function.
11629 (compute_flow_sensitive_aliasing): Call it.
11630 (setup_pointers_and_addressables): Mark type tags for renaming
11631 here instead of ...
11632 (create_memory_tag): ... here.
11633 (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
11634 (dump_points_to_info_for): Declare extern.
11635 (debug_points_to_info_for): New function.
11637 2004-07-09 Paolo Bonzini <bonzini@gnu.org>
11639 * config/arc/arc.md: Switch to DFA-based scheduler description.
11640 * config/arc/arc.c: Switch to DFA-based scheduler description.
11642 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
11644 * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
11647 2004-07-09 Richard Henderson <rth@redhat.com>
11649 * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
11650 * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
11651 (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
11652 * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
11654 * config/v850/v850-protos.h (v850_va_arg): Remove.
11655 * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
11656 (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
11657 * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
11658 (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
11659 (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
11661 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
11664 * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
11665 and DImode to use +/-4k offset.
11667 2004-07-09 Richard Henderson <rth@redhat.com>
11669 * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
11671 * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
11672 (xstormy16_gimplify_va_arg_expr): Rewrite from
11673 xstormy16_expand_builtin_va_arg.
11674 * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
11676 * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
11677 * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
11679 * config/sh/sh-protos.h (sh_va_arg): Remove.
11680 * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
11681 (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
11682 * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
11684 * config/pa/pa-protos.h (hppa_va_arg): Remove.
11685 * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
11686 (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
11687 * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
11689 * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
11690 * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
11691 (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
11692 * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
11694 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
11696 * config/sparc/sparc.md (return): Rewrite length formula.
11697 * config/sparc/sparc.c (output_return): Pass 1 as 5th
11698 argument to final_scan_insn when in a delay slot.
11699 (output_sibcall): Likewise.
11701 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
11703 * arm.c (arm_cpp_interwork): New variable.
11704 (arm_override_options): Set it if TARGET_INTERWORK was on the command
11706 * arm.h (arm_cpp_interwork): Declare it.
11707 (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
11708 __THUMB_INTERWORK__ in the preprocessor.
11710 2004-07-09 Nathan Sidwell <nathan@codesourcery.com>
11712 * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
11714 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
11717 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
11718 Override default settings to account for -m32 and -m64.
11720 2004-07-08 Randolph Chung <tausq@debian.org>
11722 * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
11724 2004-07-09 Alexandre Oliva <aoliva@redhat.com>
11726 * builtins.c (fold_builtin_strncpy): Make sure len is a constant
11727 before comparing it as such.
11729 2004-07-08 Richard Henderson <rth@redhat.com>
11731 * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
11732 temporary. Use bit arithmetic to align.
11734 2004-07-08 Jerry Quinn <jlquinn@optonline.net>
11736 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
11737 nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
11738 NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
11739 * bb-reorder.c (mark_bb_for_unlikely_executed_section,
11740 add_labels_and_missing_jumps, find_jump_block,
11741 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
11743 * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
11744 link_btr_uses, move_btr_def): Likewise.
11745 * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
11746 expand_builtin_expect_jump): Likewise.
11747 * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
11748 * calls.c (expand_call, emit_library_call_value_1): Likewise.
11749 * cfganal.c (forwarder_block_p): Likewise.
11750 * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
11751 make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
11752 find_bb_boundaries): Likewise.
11753 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
11754 merge_blocks_move_predecessor_nojumps,
11755 merge_blocks_move_successor_nojumps, insns_match_p,
11756 flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
11757 try_optimize_cfg): Likewise.
11758 * cfgexpand.c (expand_block, construct_exit_block): Likewise.
11759 * cfglayout.c (skip_insns_after_block, label_for_bb,
11760 record_effective_endpoints, insn_locators_initialize,
11761 fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
11762 * cfgmainloop.c (create_loop_notes): Likewise.
11763 * cfgrtl.c (delete_insn, delete_insn_chain,
11764 create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
11765 update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
11766 block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
11767 redirect_branch_edge, force_nonfallthru_and_redirect,
11768 rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
11769 rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
11770 update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
11771 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
11772 cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
11773 cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
11774 need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
11775 * combine.c (combine_instructions, can_combine_p, try_combine,
11776 find_split_point, record_dead_and_set_regs, reg_dead_at_p,
11777 distribute_notes, distribute_links, insn_cuid): Likewise.
11778 * cse.c (fold_rtx, cse_insn, cse_around_loop,
11779 invalidate_skipped_block, cse_set_around_loop,
11780 cse_end_of_basic_block, cse_main, cse_basic_block,
11781 cse_condition_code_reg): Likewise.
11782 * cselib.c (cselib_process_insn): Likewise.
11783 * ddg.c (create_ddg): Likewise.
11784 * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
11786 * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
11787 gen_label_die, dwarf2out_var_location): Likewise.
11788 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
11789 next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
11790 last_call_insn, active_insn_p, next_label, prev_label,
11791 link_cc0_insns, next_cc0_user, try_split, add_insn_after,
11792 add_insn_before, remove_insn, add_function_usage_to,
11793 reorder_insns, find_line_note, remove_unnecessary_notes,
11794 emit_insn_after_1, classify_insn): Likewise.
11795 * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
11796 connect_post_landing_pads, sjlj_mark_call_sites,
11797 sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
11798 can_throw_internal, can_throw_external, set_nothrow_function_flags,
11799 convert_to_eh_region_ranges): Likewise.
11800 * explow.c (optimize_save_area_alloca): Likewise.
11801 * expr.c (expand_expr_real): Likewise.
11802 * final.c (insn_current_reference_address, compute_alignments,
11803 shorten_branches, final, scan_ahead_for_unlikely_executed_note,
11804 final_scan_insn, output_asm_label, leaf_function_p): Likewise.
11805 * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
11806 propagate_block_delete_insn, propagate_one_insn,
11807 init_propagate_block_info, propagate_block, libcall_dead_p,
11808 mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
11810 * function.c (instantiate_virtual_regs, reorder_blocks_1,
11811 expand_function_start, expand_function_end, contains,
11812 thread_prologue_and_epilogue_insns,
11813 reposition_prologue_and_epilogue_notes): Likewise.
11814 * gcse.c (constprop_register, bypass_conditional_jumps,
11815 insert_insn_end_bb, gcse_after_reload): Likewise.
11816 * genemit.c (gen_expand, gen_split): Likewise.
11817 * genpeep.c (gen_peephole, main): Likewise.
11818 * global.c (build_insn_chain): Likewise.
11819 * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
11820 * haifa-sched.c (unlink_other_notes, unlink_line_notes,
11821 get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
11822 restore_line_notes, rm_redundant_line_notes, rm_other_notes,
11823 ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
11824 * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
11825 cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
11826 merge_if_block, block_jumps_and_fallthru_p, find_if_block,
11827 dead_or_predicable): Likewise.
11828 * integrate.c (try_constants): Likewise.
11829 * jump.c (rebuild_jump_labels, cleanup_barriers,
11830 purge_line_number_notes, init_label_info, mark_all_labels,
11831 squeeze_notes, get_label_before, get_label_after,
11832 reversed_comparison_code_parts, simplejump_p, pc_set,
11833 returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
11834 delete_barrier, delete_prior_computation, delete_computation,
11835 delete_related_insns, delete_for_peephole, redirect_jump):
11837 * lcm.c (optimize_mode_switching): Likewise.
11838 * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
11840 * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
11841 * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
11842 * loop-iv.c (simplify_using_assignment): Likewise.
11843 * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
11844 libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
11845 find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
11846 loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
11847 check_insn_for_givs, check_final_value, update_giv_derive,
11848 basic_induction_var, product_cheap_p, check_dbra_loop,
11849 loop_insn_first_p, last_use_this_basic_block,
11850 canonicalize_condition, get_condition, loop_regs_scan, load_mems,
11851 try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
11852 * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
11853 sms_schedule_by_order): Likewise.
11854 * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
11855 * postreload.c (reload_cse_simplify_operands, reload_combine,
11856 reload_cse_move2add): Likewise.
11857 * predict.c (can_predict_insn_p, estimate_probability,
11858 expected_value_to_br_prob, process_note_predictions): Likewise.
11859 * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
11860 * profile.c (branch_prob): Likewise.
11861 * ra-build.c (live_out_1, livethrough_conflicts_bb,
11862 detect_webs_set_in_cond_jump): Likewise.
11863 * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
11864 ra_print_rtl_with_bb): Likewise.
11865 * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
11866 * recog.c (next_insn_tests_no_inequality, find_single_use,
11867 split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
11868 * reg-stack.c (next_flags_user, record_label_references,
11869 emit_swap_insn, swap_rtx_condition, subst_stack_regs,
11870 compensate_edge, convert_regs_1): Likewise.
11871 * regclass.c (scan_one_insn): Likewise.
11872 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
11873 regmove_optimize, fixup_match_1, single_set_for_csa,
11874 combine_stack_adjustments_for_block): Likewise.
11875 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
11876 * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
11877 find_equiv_reg): Likewise.
11878 * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
11879 reload_as_needed, emit_input_reload_insns, do_output_reload,
11880 delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
11882 * reorg.c (find_end_label, emit_delay_sequence,
11883 delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
11884 get_jump_flags, rare_destination, mostly_true_jump,
11885 try_merge_delay_insns, redundant_insn, own_thread_p,
11886 fill_simple_delay_slots, fill_slots_from_thread,
11887 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
11888 dbr_schedule): Likewise.
11889 * resource.c (find_basic_block, next_insn_no_annul,
11890 find_dead_or_set_registers, mark_target_live_regs): Likewise.
11891 * rtl.h (RTX_PREV): Likewise.
11892 * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
11893 no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
11894 reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
11895 find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
11896 tablejump_p, computed_jump_p, insns_safe_to_move_p,
11897 find_first_parameter_load, can_hoist_insn_p): Likewise.
11898 * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
11899 sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
11900 * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
11901 schedule_ebbs): Likewise.
11902 * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
11903 is_conditionally_protected, can_schedule_ready_p,
11904 add_branch_dependences, debug_dependencies): Likewise.
11905 * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
11907 * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
11908 reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
11909 set_dominates_use, ujump_to_loop_cont): Likewise.
11910 * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
11911 * varasm.c (output_constant_pool_1): Likewise.
11913 2004-07-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11915 * tree-scalar-evolution.c: New file.
11916 * tree-scalar-evolution.h: New file.
11917 * tree-ssa-loop-niter.c: New file.
11918 * Makefile.in (SCEV_H): New.
11919 (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
11920 * cfgloop.h (struct loop): Add bounds field.
11921 * tree-flow.h (struct tree_niter_desc): New type.
11922 (number_of_iterations_cond, number_of_iterations_exit,
11923 loop_niter_by_eval, find_loop_niter_by_eval,
11924 estimate_numbers_of_iterations, can_count_iv_in_wider_type,
11925 free_numbers_of_iterations_estimates): Declare.
11926 * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
11927 * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
11928 * doc/invoke.texi (max-iterations-to-track): Document.
11930 2004-07-08 Kaz Kojima <kkojima@gcc.gnu.org>
11932 * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
11933 * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
11934 (MODE_AFTER): Add cast appropriately.
11935 * config/sh/sh.md (movdi splitter): Likewise.
11936 (casesi_worker_2): Add const qualifier appropriately.
11937 (eh_return): Remove unused variable.
11938 (insv): Initialize v;
11940 2004-07-08 Richard Henderson <rth@redhat.com>
11942 * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
11943 * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
11944 (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
11945 * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
11946 (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
11948 * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
11949 * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
11950 (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
11951 * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
11953 * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
11954 * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
11955 (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
11956 * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
11958 * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
11959 * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
11960 (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
11961 * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
11963 * config/i860/i860-protos.h (i860_va_arg): Remove.
11964 * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
11965 (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
11966 * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
11968 2004-05-31 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
11970 * system.h: Prototype getpagesize if missing.
11971 * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
11972 * configure: Regenerate.
11973 * config.in: Regenerate.
11975 2004-07-08 Richard Henderson <rth@redhat.com>
11977 * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
11978 * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
11979 (fr30_gimplify_va_arg_expr): New.
11980 (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
11981 * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
11983 2004-07-08 Vladimir Makarov <vmakarov@redhat.com>
11986 * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
11987 of asm_noperands result.
11989 2004-07-08 Richard Henderson <rth@redhat.com>
11991 * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
11992 * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
11993 (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
11994 * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
11996 2004-07-08 Richard Henderson <rth@redhat.com>
11998 * builtins.c (ind_gimplify_va_arg_expr): New.
11999 * tree.h (ind_gimplify_va_arg_expr): Declare.
12000 * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
12002 2004-07-08 Jan Beulich <jbeulich@novell.com>
12004 * expmed.c (extract_bit_field): Correct condition to use vec_extract
12005 patterns also on vector elements other than the first one.
12006 * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
12009 2004-07-08 Geoffrey Keating <geoffk@apple.com>
12011 * config/rs6000/darwin-ldouble.c: Correct reference
12012 to the Linnainmaa paper.
12014 2004-07-08 Richard Henderson <rth@redhat.com>
12016 * config/arc/arc-protos.h (arc_va_arg): Remove.
12017 * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12018 (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
12019 * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
12021 * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
12022 * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12023 (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
12024 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
12026 2004-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12028 * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
12030 2004-07-08 Zack Weinberg <zack@codesourcery.com>
12032 * c-decl.c (static_ctors, static_dtors): Make static.
12033 (pop_file_scope): Call c_common_write_pch and
12034 cgraph_finalize_compilation_unit here.
12035 (build_cdtor): Moved here from c-objc-common.c; simplify.
12036 (c_write_global_declarations_1): Clarify comment.
12037 (c_write_global_declarations): Close the external scope before
12038 doing anything else. Call build_cdtor, cgraph_optimize, and
12039 mudflap_finish_file here.
12040 * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
12042 * c-objc-common.c: No need to include cgraph.h.
12043 (build_cdtor): Moved to c-decl.c.
12044 (c_objc_common_finish_file): Delete.
12045 * c-tree.h: Update to match.
12046 * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
12047 (generate_static_references): Set TREE_USED before calling finish_decl.
12048 Eliminate unnecessary dummy declaration. Call rest_of_decl_compilation
12049 on the static_instances_decl.
12051 2004-07-08 Zack Weinberg <zack@codesourcery.com>
12053 * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
12054 decls when there is only one input translation unit.
12055 * langhooks.c (lhd_set_decl_assembler_name): Partially revert
12056 change of 2004-07-05; do not treat declarations with
12057 DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
12058 * opts.c (cur_in_fname): Delete.
12059 * opts.h: Likewise.
12060 * tree.c: Revert changes of 2004-07-05; no special treatment
12061 for TRANSLATION_UNIT_DECLs.
12062 * Makefile.in (tree.o): Update dependencies.
12064 2004-07-08 Roger Sayle <roger@eyesopen.com>
12066 * builtins.c (fold_builtin_strcpy): Merge functionality from
12067 simplify_builtin_strcpy. Add additional len argument. No longer
12068 static. Remove function prototype.
12069 (fold_builtin_strncpy): Likewise integrate functionality from
12070 simplify_builtin_strncpy. Add additional slen argument. No
12071 longer static. Remove function prototype.
12072 (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
12073 (simplify_builtin_fputs): Rename to fold_builtin_fputs. Change
12074 types of "ignore" and "unlocked" parameters to bool.
12075 (fold_builtin_1): Add additional ignore argument. Call renamed
12076 fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
12077 builtins. Update arguments to fold_builtin_strncpy and
12078 fold_builtin_strcpy. Add function prototype.
12079 (fold_builtin): Add additional Boolean ignore argument to pass
12081 (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
12082 and fold_builtin_strncpy instead of simplify_builtin_fputs,
12083 simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
12085 * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
12086 simplify_builtin_strncpy): Delete function prototypes.
12087 * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
12088 fold_builtin_strncpy): Add function prototypes here.
12089 (fold_builtin): Update function prototype with new "bool ignore".
12091 * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
12092 (ccp_fold_builtin): Update call to fold_builtin. Call
12093 fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
12094 instead of simplify_builtin_fputs, simplify_builtin_strcpy and
12095 simplify_builtin_strncpy respectively.
12096 * fold-const.c (fold): Update call to fold_builtin.
12098 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
12100 * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
12103 * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
12104 (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
12105 (FUNCTION_ARG_CALLEE_COPIES): Likewise.
12106 * calls.c: Remove ifdefs of macros above.
12107 * functions.c: Likewise.
12108 * expr.c: Likewise.
12110 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
12112 * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
12113 (arch attribute): Delete.
12114 (current_function_calls_alloca attribute): Rename into calls_alloca.
12115 (calls_eh_return): New attribute.
12116 (leaf_function): Likewise.
12117 (length attribute): Fix formula for sibcalls.
12118 (return insn): Correctly compute the 'length' attribute.
12119 (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
12121 2004-07-08 Richard Henderson <rth@redhat.com>
12123 * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
12124 (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
12125 (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
12126 * tree-eh.c (lower_eh_constructs_1): Likewise.
12127 * tree-sra.c (sra_walk_modify_expr): Likewise.
12128 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
12129 (eliminate_unnecessary_stmts): Likewise.
12130 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
12131 * tree-tailcall.c (optimize_tail_call): Likewise.
12132 * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
12134 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
12135 Jakub Jelinek <jakub@redhat.com>
12137 * config/i386/i386.c (override_options): Enable
12138 SSE prefetches with -mtune, as long as we are
12139 compiling for i686 or higher. All i686 processors
12140 accept SSE prefetches as NOPS, some i586's don't.
12142 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
12145 * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
12147 2004-07-08 Diego Novillo <dnovillo@redhat.com>
12149 * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
12150 the handling of clobbering ASM_EXPRs.
12152 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
12155 * config/sparc/sparc.c (function_value): In 64-bit mode,
12156 return the aggregates larger than 16 bytes like unions.
12158 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
12161 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
12162 'temp' is zero, generate new pseudos as needed and emit the
12163 sequence of insns in single-assignment form. Resync comments
12165 (sparc_emit_set_const64): Pass zero as 'temp' argument to above
12166 function before reload.
12168 2004-07-08 Nathan Sidwell <nathan@codesourcery.com>
12170 * vec.c (vec_assert_fail): Remove duplicate 'function'.
12172 * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
12174 * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
12175 Allocation is signed.
12176 (VEC_reserve): Return flag, allocation is signed.
12178 2004-07-08 Richard Henderson <rth@redhat.com>
12180 * tree-ssa-ccp.c (fold_stmt): Get type directly from
12181 OBJ_TYPE_REF_OBJECT.
12183 2004-07-08 Joseph S. Myers <jsm@polyomino.org.uk>
12184 Neil Booth <neil@daikokuya.co.uk>
12188 * c-decl.c (finish_struct): Ensure bit-fields are given the
12190 * c-common.c (c_common_signed_or_unsigned_type): For C, require
12191 the precision to match as well as the mode.
12192 * expr.c (reduce_to_bit_field_precision): New function.
12193 (expand_expr_real_1): Reduce expressions of bit-field type to
12195 * langhooks.h (reduce_bit_field_operations): New hook.
12196 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
12198 * c-lang.c, objc/objc-lang.c
12199 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
12200 * objc/objc-act.c (check_ivars): Convert types to bit-field types
12202 * tree.c (build_nonstandard_integer_type): New function.
12203 * tree.h (build_nonstandard_integer_type): New prototype.
12204 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
12205 conversions between integer and boolean types as useless.
12207 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
12209 * c-common.c (c_common_nodes_and_builtins): Do not
12210 create __builtin_ptrdiff_t and __builtin_size_t.
12212 2004-07-08 Andrew Pinski <apinski@apple.com>
12214 * Makefile.in (libbackend.o): Add -combine to the gcc
12217 2004-07-08 Nick Clifton <nickc@redhat.com>
12219 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
12222 2004-07-08 Richard Henderson <rth@redhat.com>
12224 * except.c (expand_eh_region_start, expand_eh_region_end,
12225 expand_eh_handler, expand_eh_region_end_cleanup,
12226 expand_start_all_catch, expand_start_catch, expand_end_catch,
12227 expand_end_all_catch, expand_eh_region_end_allowed,
12228 expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
12229 expand_eh_region_end_fixup): Remove.
12230 * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
12231 cleanups, outer_cleanups, label_chain, exception_region.
12232 (struct goto_fixup): Remove stack_level, cleanup_list_list.
12233 (struct label_chain): Remove.
12234 (struct stmt_status): Remove x_stack_block_stack.
12235 (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
12236 fixup_gotos, save_stack_pointer, expand_decl_cleanup,
12237 expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
12238 end_cleanup_deferral, last_cleanup_this_contour,
12239 containing_blocks_have_cleanups_or_stack_level,
12240 any_pending_cleanups): Remove.
12241 (expand_null_return_1): Take no arguments.
12242 (expand_label, expand_naked_return, expand_return,
12243 expand_start_bindings_and_block, expand_end_bindings, expand_decl,
12244 expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
12245 expand_end_case_type): Don't use any of them.
12246 * calls.c (expand_call): Likewise.
12247 * dojump.c (do_jump): Likewise.
12248 * function.c (expand_function_end): Likewise.
12249 * expr.c (store_expr, expand_expr_real_1): Likewise.
12250 (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
12251 (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
12252 CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
12253 EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
12254 * fold-const.c (fold_checksum_tree): Use first_rtl_op.
12255 * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
12256 * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
12257 for WITH_CLEANUP_EXPR.
12258 (gimple_push_cleanup): Likewise.
12259 * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
12260 * print-tree.c (print_node): Likewise.
12261 * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
12262 * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
12263 (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
12264 * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
12265 (GOTO_SUBROUTINE_EXPR): Remove.
12266 * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
12267 (DECL_TOO_LATE): Remove.
12268 * except.h, tree.h: Update decls.
12270 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
12272 * explow.c (optimize_save_area_alloca): Do not accept parameters.
12273 * passes.c (rest_of_handle_final): Handle symout.
12274 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
12276 (rest_of_handle_sched): Break out SMS. Remove ifs for
12277 flag_schedule_insns and flag_modulo_sched.
12278 (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
12279 collect at the end.
12280 (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
12281 (rest_of_handle_partition_blocks, rest_of_handle_sms,
12282 rest_of_handle_if_after_reload, rest_of_handle_peephole2,
12283 rest_of_handle_mode_switching, rest_of_handle_jump,
12284 rest_of_handle_guess_branch_prob, rest_of_handle_eh,
12285 rest_of_handle_jump2, rest_of_handle_postreload,
12286 rest_of_handle_flow2, rest_of_clean_state,
12287 rest_of_handle_shorten_branches,
12288 rest_of_handle_prologue_epilogue,
12289 rest_of_handle_branch_target_load_optimize): New.
12290 (rest_of_compilation): Call the above. Remove ggc_collect
12291 calls moved to rest_of_handle_*.
12292 * rtl.h (optimize_save_area_alloca): Do not accept parameters.
12294 * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
12295 * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
12296 * except.h (set_nothrow_function_flags): Update comment.
12297 * function.c (current_function_nothrow): Remove.
12298 * output.h (current_function_nothrow): Remove.
12299 * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
12300 * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
12302 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
12305 * reorg.c: Revert 2004-06-30 change.
12306 (find_end_label): If HAVE_epilogue and !HAVE_return,
12307 return 0 instead of creating a label at the end of the insn chain.
12308 (optimize_skip): Account for the failure mode of find_end_label.
12309 (fill_simple_delay_slots): Likewise.
12310 (fill_slots_from_thread): Likewise.
12311 (relax_delay_slots): Likewise.
12313 2004-07-08 Diego Novillo <dnovillo@redhat.com>
12315 * tree-flow.h (addressable_vars): Declare.
12316 * tree-ssa-alias.c (addressable_vars): Define.
12317 (setup_pointers_and_addressables): Add addressable variables
12318 to addressable_vars.
12319 * tree-ssa-operands.c (get_stmt_operands): Move
12320 handling of ASM_EXPRs ...
12321 (get_asm_expr_operands): ... here.
12322 When the ASM_EXPR clobbers memory, also clobber addressable
12324 * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
12325 (delete_tree_ssa): Reset addressable_vars.
12327 2004-07-07 Jan Beulich <jbeulich@novell.com>
12328 Richard Henderson <rth@redhat.com>
12330 * varasm.c (assemble_variable): Use assemble_zeros for
12331 zero-initialized variables.
12332 (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
12333 for SECCAT_BSS and SECCAT_TBSS.
12335 2004-07-07 Jan Beulich <jbeulich@novell.com>
12337 * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
12339 * expmed.c (emit_store_flag): Also special-case double-word
12340 (in-)equality comparison against -1.
12342 * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
12343 passing arguments the containers for which are registers.
12345 * calls.c (emit_library_call_value_1): Use mode of function parameter
12346 rather than that of argument since constants have none.
12348 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
12350 Introduce H8SX support.
12351 * expr.c (expand_strcpy): Renamed and moved to...
12352 * builtins.c (expand_movstr): ... here. Tweak.
12353 (expand_builtin_strcpy): Adjust. Use movstr if len can't be
12354 computed or has side effects.
12355 (expand_builtin_stpcpy): Likewise. Use strcpy if return value is
12356 unused, or if mempcpy fails. Adjust the return value in the
12357 latter case. Use movstr if everything else fails.
12358 * doc/md.texi (movstr): Document.
12359 (movmemM, clrmemM): Fix explanation of memory block operands.
12360 * config/h8300/h8300.md (stpcpy): Renamed to...
12361 (movstr): ... this. Adjust.
12362 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
12363 * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
12364 movmem* and clrstr* to clrmem*.
12365 2004-06-27 Alexandre Oliva <aoliva@redhat.com>
12366 * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
12367 GENERAL_REGS, always.
12368 (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
12369 getting the stack pointer as addr.
12370 * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
12371 from general_operand_dst.
12372 * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
12374 (movmd_internal): ... this. Add modes to operands. Disparage `D'
12375 instead of requiring it to match only before reload.
12376 (stpcpy_internal_normal): New, normal-mode variant of...
12377 (stpcpy_internal): ... this. Add modes to operands. Disparage
12378 `D' instead of requiring it to match only before reload.
12379 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
12381 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
12382 * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
12384 * config/h8300/h8300.md (attr type): Add call.
12385 (attr can_delay): If type is call, set it no.
12386 (call, call_value): Set type to call.
12387 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
12388 * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
12389 2004-06-16 Alexandre Oliva <aoliva@redhat.com>
12390 * tree.c (get_narrower): Don't narrow integral types into
12391 non-integral types.
12392 * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
12393 frame_size *before* the first use.
12394 * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
12396 (peephole2): Don't widen instructions that push SP. Move
12397 decrement of SP to the end of all stm-generating peepholes.
12398 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
12399 * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
12400 and OR to set it to all ones.
12401 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
12402 * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
12403 (call, call_value): Set can_delay to "no".
12404 2003-07-22 Richard Sandiford <rsandifo@redhat.com>
12405 * config/h8300/h8300.md (extzv): Make subreg check more robust.
12406 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
12407 * config/h8300/h8300.md (*brabit): Remove.
12408 * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
12409 zero_extract. Use bit_memory_operand as the predicate for
12410 operand 1 and 'WU' as the constraint. Check the difference
12411 between the base length and the final one when deciding which
12412 type of branch to use.
12413 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
12414 * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
12415 Use convert_move to extend the result for TARGET_H8300SX. Check
12416 for QImode memory references. Optimize the case where the
12417 destination is a paradoxical subreg.
12418 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
12419 * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
12420 * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
12421 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
12422 * config/h8300/h8300.md: Include mova.md
12423 (length_table): Add mova and mova_zero.
12424 * config/h8300/h8300.c (print_operand): Handle '%o'. Print a length
12425 after all constant addresses for '%R', '%X', '%T' and '%S'.
12426 (h8300_mova_length): New function.
12427 (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
12428 * config/h8300/t-h8300 (mova.md): Generate from genmova.sh. Add to
12429 dependencies for s-config, etc.
12430 * config/h8300/gemova.sh: New file.
12431 * config/h8300/mova.md: Generated.
12432 2003-07-20 Alexandre Oliva <aoliva@redhat.com>
12433 * config/h8300/h8300.c (h8300_bitfield_length): New.
12434 (nibble_operand): Adjust.
12435 (h8300_binary_length): Handle conditional binary op.
12436 (h8300_insn_length_from_table): Handle bitfield and bitbranch.
12437 * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
12438 P#<X, respectively. The original P is now IP4>X. Introduced P#>0
12439 and P#<0, unused so far. W and Y are now prefixes to multi-letter
12440 constraints. WU is introduced as a variant of U that requires a
12441 mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
12442 * config/h8300/h8300.md (attr type): Added bitbranch.
12443 (attr length_table): Added bitfield and bitbranch.
12444 (attr length): Compute bitbranch length.
12445 (andqi): Separate pattern for H8300SX. Use bfld for loading the
12446 least-significant bit of a byte.
12447 (brabit, brabc, brabs): New.
12448 (insv, extzv): Emit bfst and bfld on H8300SX.
12449 (bfld, bfst, seq, sne): New.
12450 (bstzhireg, cmpstz, bstz, bistz): New.
12451 (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
12452 (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
12453 2003-07-11 Richard Sandiford <rsandifo@redhat.com>
12454 * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
12455 (h8sx_unary_memory_operator): New function.
12456 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
12457 (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
12458 * config/h8300/h8300.md: Add peepholes to combine reloads and
12460 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
12461 * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
12462 (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
12463 (and?i, ior?i, xor?i): Likewise.
12464 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
12465 * config/h8300/h8300.c: Move enums and prototypes to head of file.
12466 Various whitespace fixes.
12467 (h8300_constant_length): New function, split out from...
12468 (h8300_displacement_size): ...here. Rename h8300_displacement_length.
12469 (h8300_classify_operand): Use IN_RANGE.
12470 (h8300_classify_operand): Use h8300_constant_length.
12471 (h8300_short_move_mem_p): Tighten size check.
12472 (h8sx_mergeable_memrefs_p): Tighten equality check.
12473 2003-06-30 Richard Sandiford <rsandifo@redhat.com>
12474 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
12476 * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
12477 * config/h8300/crtn.asm: Likewise.
12478 * config/h8300/lib1funcs.asm: Likewise. Use 32-bit pointers
12479 if __H8300SX__ is defined.
12480 2003-06-27 Richard Sandiford <rsandifo@redhat.com>
12481 * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
12482 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
12483 (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
12484 addresses as mode-dependent.
12485 * config/h8300/h8300.c (print_operand_address): Update call to
12487 (h8300_get_index): Take a mode argument. Rework to fix an
12488 earlier misunderstanding.
12489 2003-06-26 Richard Sandiford <rsandifo@redhat.com>
12490 * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
12491 into a register if TARGET_H8300SX.
12492 (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
12493 TARGET_H8300SX. Also disable related define_splits.
12494 (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
12495 2003-06-23 Richard Sandiford <rsandifo@redhat.com>
12496 * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
12497 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
12498 * config/h8300/h8300.h (OK_FOR_Z): New macro.
12499 (EXTRA_CONSTRAINT_STR): Check it.
12500 * config/h8300/h8300.c (h8300_classify_operand): Accept null
12502 (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
12503 * config/h8300/h8300.md (length_table): Add mov_imm4.
12504 (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
12505 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
12506 * genattrtab.c (write_eligible_delay): Allow candidate_insn to
12508 * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
12509 * config/h8300/h8300.c (h8300_reorg): New function.
12510 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12511 * config/h8300/h8300.md (length): Subtract the length of the
12512 delay slot from (pc) when checking the range of forward branches.
12513 (delay_slot, can_delay): New attributes.
12514 (define_delay): Add bra/s handling.
12515 (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
12516 (jump): Add delayed-branch handling.
12517 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
12518 * expr.c (expand_strcpy): New function.
12519 * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
12520 (expand_builtin_stpcpy): Likewise.
12521 * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
12522 (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
12523 * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
12524 handling to improve register allocation for -fno-omit-frame-pointer.
12525 (h8sx_split_movmd): Delete, moving er6 handling into...
12526 (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
12527 * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
12528 (movmd): Add calls to copy_rtx.
12529 (movmd_internal): In the second alternative, allow the initial and
12530 final destination registers to be different . Update the splitter
12531 accordingly. Call h8300_swap_into_er6 and h8300_swap_out_of_er6
12532 instead of h8sx_split_movmd.
12533 (stpcpy, movsd): New expanders.
12534 (movsd_internal): New define_insn.
12535 2003-06-13 Richard Sandiford <rsandifo@redhat.com>
12536 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
12537 (h8sx_emit_movmd, h8sx_split_movmd): Declare.
12538 * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
12539 and DESTINATION_REGS.
12540 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
12541 (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
12542 (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
12543 (h8300_move_ratio): Declare.
12544 (MOVE_RATIO): Use it.
12545 * config/h8300/h8300.c (h8300_move_ratio): New variable.
12546 (h8300_init_once): Initialize it.
12547 (h8300_reg_class_from_letter): New function.
12548 (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
12549 (h8sx_emit_movmd, h8sx_split_movmd): New functions.
12550 * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
12551 (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
12552 (movstrsi, movmd): New expanders.
12553 (movmd_internal): New insn.
12554 2003-06-06 Richard Sandiford <rsandifo@redhat.com>
12555 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
12556 2003-06-04 Richard Sandiford <rsandifo@redhat.com>
12557 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
12558 * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
12559 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
12560 * config/h8300/h8300.c (nibble_operand): Fix warning.
12561 * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
12562 (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
12563 (movsf_h8300h): Disable for TARGET_H8300SX.
12564 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
12565 * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
12566 h8300_stm_parallel and h8300_return_parallel.
12567 * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
12568 h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
12569 h8300_stm_parallel, h8300_return_parallel): New functions.
12570 (h8300_expand_prologue): Don't enforce ldm/stm register alignment
12571 if TARGET_H8300SX. Use h8300_push_pop.
12572 (h8300_expand_epilogue): Likewise. Try to merge the return insn
12573 and final pop when generating h8sx code. Always emit some form
12575 * config/h8300/h8300.md: Don't enforce register alignment in
12576 stm peepholes if TARGET_H8300SX.
12577 (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
12578 (ldm_h8300s_[234], stm_h8300_[234]): Disable.
12579 (epilogue): Expect h8300_expand_epilogue to emit a return insn.
12580 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
12581 * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
12582 (MULTILIB_DIRNAMES): Add a directory for it.
12583 (MULTILIB_MATCHES): Delete.
12584 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
12585 * final.c (walk_alter_subreg): Handle addresses with subregs
12586 inside a ZERO_EXTEND or AND.
12587 * config/h8300/h8300-protos.h (h8300_get_index): Declare.
12588 * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
12590 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
12591 * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
12592 @(dd,Rn.w) and @(dd,ERn.L).
12593 (h8300_displacement_size): Take the whole address as argument.
12594 (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
12595 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
12596 * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
12597 (h8sx_mergeable_memrefs_p): Declare.
12598 * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
12599 (HAVE_PRE_INCREMENT): Likewise.
12600 (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
12601 addresses for TARGET_H8300SX,
12602 * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
12604 (movb_length_table, movl_length_table): New tables.
12605 (movw_length_table): Define to movb_length_table.
12606 (h8300_displacement_size): New, split out from...
12607 (h8300_classify_address): ...here. Handle pre/post inc/dec.
12608 (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
12609 (h8300_insn_length_from_table): Add cases for movb, movw and movl.
12610 (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
12611 (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
12612 (compute_plussi_length, compute_plussi_cc): Update accordingly.
12613 (h8sx_unary_shift_operator): Get the mode from the operator.
12614 (binary_shift_operator): Likewise.
12615 * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
12616 a memory reference, check whether the reference is offsettable.
12617 (length_table): Add movb, movw and movl.
12618 (movqi): Add new h8sx pattern. Don't force one operand to be a
12619 register when generating h8sx code.
12620 (movhi, movsi, movsf): Likewise.
12621 (movstrictqi): Use the length_table attribute.
12622 (movstricthi): Likewise. Add h8sx alternative for mov.w #xx:3,Rn.
12623 (addqi3): Split into a define_expand and define_insn. Don't accept
12624 memory operands in the expander. Use h8300_operands_match_p to
12625 check for matching operands in the define_insn.
12626 (subqi3, negqi2, one_cmplqi2): Likewise.
12627 (add[hs]i3): Don't accept memory operands in the expander. Likewise
12628 in any patterns that are unused in h8sx code. In the h8sx patterns,
12629 use h8300_operands_match_p to check whether operands match.
12630 (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
12631 one_cmpl[hs]i3): Likewise.
12632 (andqi3, iorqi3, xorqi3): Likewise. Don't call fix_bit_operand
12634 2003-05-23 Richard Sandiford <rsandifo@redhat.com>
12635 * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
12636 (h8300_insn_length_from_table): Add a second parameter.
12637 (output_h8sx_shift): Declare.
12638 * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
12639 (EXTRA_CONSTRAINT): Replace with...
12640 (EXTRA_CONSTRAINT_STR): ...this. Use OK_FOR_W and OK_FOR_Y.
12641 (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
12642 (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
12643 and h8sx_binary_shift_operator.
12644 * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
12645 for TARGET_H8300SX.
12646 (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
12647 (bit_memory_operand, fix_bit_operand): Likewise.
12648 (h8300_length_table_for_insn): Remove.
12649 (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
12651 (h8300_short_immediate_length, h8300_binary_length): New functions.
12652 (h8300_insn_length_from_table): Add an opcodes parameter. Rework.
12653 (output_plussi): Use sub to add negative constants.
12654 (compute_plussi_length): Adjust accordingly.
12655 (h8sx_single_shift_type): New enum.
12656 (h8sx_single_shift, h8sx_unary_shift_operator,
12657 h8sx_binary_shift_operator, output_h8sx_shift): New functions.
12658 (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
12659 single h8sx instruction. Return false in this case.
12660 * config/h8300/h8300.md (length_table): Add short_immediate.
12661 (length): Pass the operand array to h8300_insn_length_from_table.
12662 (adjust_length): Assume "no" for insns with a length_table attribute.
12663 (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
12664 (*addhi3_h8300hs): Don't use for h8sx.
12665 (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
12667 (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
12668 1's predicate to nonimmediate_operand. Only skip default expansion
12669 if expand_a_shift or expand_a_rotate returns true. Add new patterns
12670 for single h8sx shift instructions.
12671 2003-05-22 Alexandre Oliva <aoliva@redhat.com>
12672 * config/h8300/h8300.c (nibble_operand): Split out of...
12673 (reg_or_nibble_operand): ... this.
12674 * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
12675 * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
12676 umulhisi3): Introduce expand, and introduce separate insns for
12677 sign- or zero-extended REG and already-extended CONST_INT.
12678 2003-05-20 Richard Sandiford <rsandifo@redhat.com>
12679 * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
12680 * config/h8300/h8300.md (subqi3): Generalize for h8sx.
12681 (subhi3): Likewise. Don't accept immediates for operand 1.
12682 Remove the early clobber from second alternative of the h8300s pattern.
12683 (subsi3): Generalize for h8sx. Force operand 2 into a register
12684 on plain h8300 targets.
12685 (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
12686 (subsi3_h8300h): Generalize for h8sx.
12687 (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
12688 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
12689 * config/h8300/h8300.c (reg_or_nibble_operand): New.
12690 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
12691 (TARGET_H8300SXMUL): New.
12692 (CONST_OK_FOR_P): New.
12693 (CONST_OK_FOR_LETTER_P): Adjust.
12694 * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
12695 umulhisi3): Accept 4-bit immediate on H8SX.
12696 (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
12697 (udivsi3, divhi3, udivsi3, divsi3): New.
12698 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
12699 * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
12700 * config/h8300/h8300.h (OK_FOR_Q): New macro.
12701 (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
12702 (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
12703 Add ADDRESSOF to the bit_operand entry.
12704 * config/h8300/h8300.c (h8300_dst_operand): New predicate.
12705 (h8300_src_operand): Likewise.
12706 (bit_operand): Check nonimmediate_operand rather than general_operand.
12707 Accept any nonimmediate_operand in h8sx code.
12708 (h8300_and_costs): Initialize operands[1].
12709 (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
12710 (h8300_operand_class): New enum.
12711 (h8300_length_table): New typedef.
12712 (addb_length_table, addw_length_table, addl_length_table,
12713 logicl_length_table): New tables.
12714 (logicb_length_table, logicw_length_table): New macros.
12715 (h8300_classify_operand, h8300_length_from_table,
12716 h8300_length_table_for_insn, h8300_unary_length,
12717 h8300_insn_length_from_table): New functions.
12718 (output_plussi): Only use adds and subs for register destinations.
12719 Disable redundant clause.
12720 (compute_plussi_cc): Likewise.
12721 (compute_plussi_length): Likewise. Use h8300_length_from_table
12722 to work out the length of an insn.
12723 (output_logical_op): Only use narrower immediate instructions
12724 if the destination is a register.
12725 (compute_logical_op_cc): Likewise.
12726 (compute_logical_op_length): Likewise. Use h8300_length_from_table.
12727 (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
12728 * config/h8300/h8300.md (length_table): New attribute.
12729 (length): When an instruction has a length_table attribute, use
12730 h8300_insn_length_from_table to calculate its default length.
12731 (cmpqi): Use h8300_dst_operand for the first operand and
12732 h8300_src_operand for the second.
12733 (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
12734 negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
12735 addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
12736 iorsi3, xorhi3, xorsi3): Likewise.
12737 (andqi3): Use h8300_src_operand for operand 2. Adjust the condition
12738 so that it allows any combination of operands for TARGET_H8300SX.
12739 (iorqi3, xorqi3): Likewise.
12740 (cmpqi): Use the length_table attribute.
12741 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
12742 xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
12743 (cmpqi): Add 'Q' constraint.
12744 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
12745 iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
12746 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
12747 * config/h8300/h8300.h (MASK_H8300SX): New macro.
12748 (TARGET_H8300S): True for both -ms and -msx.
12749 (TARGET_H8300SX): New macro.
12750 (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
12751 * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
12752 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
12753 * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
12754 [Temporary change.]
12755 2003-02-28 Alexandre Oliva <aoliva@redhat.com>
12756 * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
12757 16-bit pointers and 32-bit ints.
12758 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
12759 CONST_DOUBLE with mode no wider than SImode.
12760 * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
12762 2003-02-27 Alexandre Oliva <aoliva@redhat.com>
12763 * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
12765 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
12766 2003-02-22 Alexandre Oliva <aoliva@redhat.com>
12767 * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
12769 2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
12771 * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
12773 2004-07-07 Per Bothner <per@bothner.com>
12775 * flow.c (attempt_auto_inc): Remove now-redundant PUT_CODE.
12777 2004-07-07 Mike Stump <mrs@apple.com>
12779 * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
12780 * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
12781 (machopic_finish): Likewise.
12783 2004-07-07 Richard Henderson <rth@redhat.com>
12785 * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
12786 through any value-preserving cast.
12788 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
12790 * function.c (assign_parm_find_data_types): Call
12791 FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
12793 2004-07-07 Steven Bosscher <stevenb@suse.de>
12795 * tree-cfg.c (group_case_labels): Remove case labels that have
12796 the same target as the default case.
12798 2004-07-07 Steven Bosscher <stevenb@suse.de>
12800 * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
12801 regardless of DECL_LANG_SPECIFIC being present or not.
12802 * tree.h (DECL_NUM_STMTS): Purge.
12804 2004-07-07 Andrew Pinski <apinski@apple.com>
12806 * configure: Regenerate with the right autoconf.
12808 2004-07-07 David Edelsohn <edelsohn@gnu.org>
12810 * ifcvt.c (total_bb_rtx_cost): New function.
12811 (find_if_case_1): Compare rtx_cost of basic block to cost of
12813 (find_if_case_2): Same.
12815 2004-07-07 Eric Botcazou <ebotcazou@libertysurf.fr>
12818 * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
12819 (output_return): Likewise.
12820 (output_sibcall): Abort if !flag_delayed_branch.
12821 (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
12822 (emit_and_preserve): New function.
12823 (sparc_output_mi_thunk): Use it. Honor flag_delayed_branch. Emit an
12824 indirect jump to the thunked-to function if !flag_delayed_branch.
12825 * config/sparc/sparc.md (delayed_branch): New attribute.
12826 (load_pcrel_sym): Honor flag_delayed_branch. Use above
12827 attribute to compute the length of the insn.
12828 (goto_handler_and_restore): Likewise.
12830 2004-07-07 Andrew Pinski <apinski@apple.com>
12832 PR tree-optimization/15777
12833 * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
12835 * expr.c (expand_expr_real_1): Fix formating.
12836 BUFFER_REF and IN_EXPR are dead.
12837 * fold-const.c (non_lvalue): BUFFER_REF is dead.
12838 * tree-inline.c (estimate_num_insns_1): Likewise.
12839 * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
12840 IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
12841 * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
12843 2004-07-07 H.J. Lu <hongjiu.lu@intel.com>
12845 * collect2.c (dump_file): Don't call cplus_demangle if
12846 HAVE_LD_DEMANGLE is defined.
12847 (main): Pass "--demangle" to ld if no_demangle is not 0 and
12848 HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
12849 if HAVE_LD_DEMANGLE is defined.
12851 * configure.ac (--with-demangler-in-ld): Added
12852 (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
12853 --with-demangler-in-ld is used.
12854 * config.in: Regenerated.
12855 * configure: Likewise.
12857 2004-07-07 Roger Sayle <roger@eyesopen.com>
12859 * config/rs6000/rs6000.c (struct processor_costs): Add new fields
12860 for simple floating point operations "fp", double precision
12861 multiplication "dmul", and single and double precision division
12862 "sdiv" and "ddiv". Update all CPU variant tables as appropriate.
12863 (ppc630_cost): New table split from ppc620_cost, to distinguish
12864 differences in floating point latencies.
12865 (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
12866 (rs6000_rtx_costs): Add support for single and double precision
12867 floating point addition, subtraction, multiplication, division,
12868 fused-multiply-add, fused-multiply-sub, negation, absolute value
12869 and negative absolute value. Tweak MEM case to use prefered idiom.
12871 2004-07-07 Richard Henderson <rth@redhat.com>
12873 * tree-flow-inline.h (may_propagate_copy): Move...
12874 * tree-ssa-copy.c (may_propagate_copy): ... here. Fail if we
12875 attempt to copy between types requiring conversion.
12876 * tree-flow.h (may_propagate_copy): Update decl.
12877 * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
12879 2004-07-07 Jakub Jelinek <jakub@redhat.com>
12881 * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
12882 from -mtune= option.
12884 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
12886 * builtins.c: Rename movstr*, except for movstrict*, to
12887 movmem* and clrstr* to clrmem*.
12888 * expr.c: Likewise.
12889 * expr.h: Likewise.
12890 * genopinit.c: Likewise.
12891 * integrate.c: Likewise.
12892 * local-alloc.c: Likewise.
12893 * optabs.c: Likewise.
12894 * optabs.h: Likewise.
12895 * config/alpha/alpha.h: Likewise.
12896 * config/alpha/alpha.md: Likewise.
12897 * config/arm/arm-protos.h: Likewise.
12898 * config/arm/arm.c: Likewise.
12899 * config/arm/arm.md: Likewise.
12900 * config/avr/avr.md: Likewise.
12901 * config/c4x/c4x.c: Likewise.
12902 * config/c4x/c4x.md: Likewise.
12903 * config/frv/frv.md: Likewise.
12904 * config/i386/i386-protos.h: Likewise.
12905 * config/i386/i386.c: Likewise.
12906 * config/i386/i386.h: Likewise.
12907 * config/i386/i386.md: Likewise.
12908 * config/i860/i860.c: Likewise.
12909 * config/i860/i860.md: Likewise.
12910 * config/ip2k/ip2k.md: Likewise.
12911 * config/ip2k/libgcc.S: Likewise.
12912 * config/ip2k/t-ip2k: Likewise.
12913 * config/m32r/m32r.c: Likewise.
12914 * config/m32r/m32r.md: Likewise.
12915 * config/mcore/mcore.md: Likewise.
12916 * config/mips/mips.c: Likewise.
12917 * config/mips/mips.md: Likewise.
12918 * config/ns32k/ns32k.c: Likewise.
12919 * config/ns32k/ns32k.h: Likewise.
12920 * config/ns32k/ns32k.md: Likewise.
12921 * config/pa/pa.c: Likewise.
12922 * config/pa/pa.md: Likewise.
12923 * config/pdp11/pdp11.h: Likewise.
12924 * config/pdp11/pdp11.md: Likewise.
12925 * config/rs6000/rs6000.c: Likewise.
12926 * config/rs6000/rs6000.md: Likewise.
12927 * config/s390/s390-protos.h: Likewise.
12928 * config/s390/s390.c: Likewise.
12929 * config/s390/s390.md: Likewise.
12930 * config/sh/lib1funcs.asm: Likewise.
12931 * config/sh/sh.c: Likewise.
12932 * config/sh/sh.md: Likewise.
12933 * config/sh/t-sh: Likewise.
12934 * config/sparc/sparc.h: Likewise.
12935 * config/vax/vax.md: Likewise.
12936 * config/xtensa/xtensa.c: Likewise.
12937 * config/xtensa/xtensa.md: Likewise.
12938 * doc/invoke.texi: Likewise.
12939 * doc/md.texi: Likewise.
12940 * doc/rtl.texi: Likewise.
12942 2004-07-07 Richard Sandiford <rsandifo@redhat.com>
12945 * config/mips/mips-protos.h (mips_declare_common_object): Declare.
12946 * config/mips/mips.c (mips_declare_common_object): New function,
12947 mostly split out from...
12948 (mips_output_aligned_decl_common): ...here.
12949 * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
12950 (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
12951 * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
12952 rather than ASM_OUTPUT_LOCAL. Call mips_declare_common_object.
12954 2004-07-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12957 * function.c (assign_parms): Fix typo from previous change.
12959 2004-07-07 Jason Merrill <jason@redhat.com>
12962 * doc/extend.texi (C++ Interface): Correct information and
12965 2004-07-07 Vladimir Makarov <vmakarov@redhat.com>
12970 * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
12973 2004-07-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
12976 * config/m32r/m32r.c (m32r_function_symbol): New function:
12977 Generate a symbol name RTX with the correct m32r specific flags
12979 (block_move_call): Use new function to generate correct symbol.
12980 * config/m32r/m32r-protos.h: Add prototype for new funcion.
12981 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
12984 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
12986 * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
12987 TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
12988 TYPE_BINFO_BASETYPE): Remove.
12989 (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
12991 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
12993 (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
12994 (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
12995 (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
12996 (struct tree_binfo): Rename base_types to base_binfos.
12997 * alias.c (record_component_aliases): Adjust BINFO macros.
12998 * dbxout.c (dbxout_type): Likewise.
12999 * dwarf2out.c (gen_member_die): Likewise.
13000 * sdbout.c (sdbout_one_type): Likewise.
13001 * tree-dump.c (deque_and_dump): Likewise.
13002 * config/i386/i386.c (classify_argument,
13003 contains_128bit_aligned_vector_p): Likewise.
13005 2004-07-07 Nick Clifton <nickc@redhat.com>
13007 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
13008 arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
13010 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
13012 * vec.h: Fix the example use.
13014 2004-07-06 Richard Henderson <rth@redhat.com>
13016 * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
13017 * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
13018 * tree-inline.c (copy_body_r, setup_one_parameter,
13019 initialize_inlined_parameters, expand_call_inline,
13020 declare_inline_vars): Don't check it.
13021 (expand_calls_inline): Remove old version, rename new version
13022 from gimple_expand_calls_inline.
13023 * tree-optimize.c (execute_gimple): Remove.
13024 (pass_gimple): Don't run anything.
13026 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
13028 * doc/sourcebuild.texi: Use semicolons instead of commas in
13031 2004-07-06 Richard Henderson <rth@redhat.com>
13033 * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
13034 (sra_walk_modify_expr, scan_init): Likewise.
13035 (generate_element_zero): Check visited before scanning children.
13036 (generate_element_init): Set visited on error.
13037 (scalarize_init): Handle generate_element_init failure similar
13040 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
13042 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
13043 (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
13045 2004-07-06 Richard Henderson <rth@redhat.com>
13047 * config/i386/i386.c (legitimize_pic_address): Make static.
13048 (legitimize_address): Handle CONST with TLS operand.
13049 (ix86_expand_move): Don't call legitimize_pic_address directly.
13050 * config/i386/i386-protos.h (legitimize_pic_address): Remove.
13052 2004-07-06 Roger Sayle <roger@eyesopen.com>
13054 * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
13055 (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
13056 (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
13057 is currently executed unconditionally, i.e. not in "else_bb".
13059 2004-07-06 Steven Bosscher <stevenb@suse.de>
13061 * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
13062 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
13063 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
13064 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
13065 * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
13066 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
13067 * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
13068 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
13069 * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
13070 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
13071 * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
13072 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
13073 * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
13074 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
13075 * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
13076 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
13078 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
13080 * dojump.c (do_jump): REFERENCE_EXPR is dead.
13081 * expr.c (expand_expr_real_1): Ditto.
13082 * tree-inline.c (estimate_num_insns_1): Ditto.
13083 * tree-pretty-print.c (dump_generic_node): Ditto.
13084 (op_symbol): Ditto.
13087 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
13089 * tree-ssa-pre.c (reference_node_pool): New pool.
13090 (find_or_generate_expression): Class 'r' is okay too.
13091 (create_value_expr_from): Ditto.
13092 (add_to_sets): LHS should not include vuses.
13093 (eliminate): Ditto.
13094 (compute_avail): Reverse ordering of tests.
13095 Valuize INDIRECT_REF as well.
13097 2004-07-06 Richard Sandiford <rsandifo@redhat.com>
13099 PR rtl-optimization/16380
13100 * loop.c (check_dbra_loop): Sink comparison instructions if they
13101 do something other than set cc0.
13103 2004-07-06 James E Wilson <wilson@specifixinc.com>
13105 * doc/interface.texi (longjmp and automatic variables): Delete
13106 paragraph recommending taking the address of a variable.
13108 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
13110 * vec.h (VEC_embedded_alloc): Remove.
13111 (VEC_embedded_size, VEC_embedded_init): New.
13112 (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
13114 (VEC_truncate): New.
13115 (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
13116 (vec_embedded_alloc): Remove.
13117 * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
13118 (vec_embedded_alloc): Remove.
13120 2004-07-06 Mark Mitchell <mark@codesourcery.com>
13122 * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
13123 (gt-langhooks.h): Remove.
13125 2004-07-06 George Helffrich <george@gly.bris.ac.uk>
13127 * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
13129 2004-07-06 Eric Botcazou <ebotcazou@libertysurf.fr>
13131 * config/sparc/sparc.c (get_pc_symbol): Rename into
13132 add_pc_to_pic_symbol.
13133 (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
13134 (load_pic_register): Account for previous changes.
13135 Use reg_names. Don't create the label twice.
13136 * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
13137 UNSPEC_LOAD_PCREL_SYM.
13138 (get_pc): Rename into load_pcrel_sym. Add predicate to
13139 operands. Remove condition.
13141 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
13143 * dbxout.c (dbxout_type): Don't test whether the binfo slot of
13144 RECORD, UNION & QUAL_UNION is actually a binfo.
13146 * tree.h (TREE_VIA_VIRTUAL): Rename to ...
13147 (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
13148 (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
13149 * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
13150 * dwarf2out.c (add_data_member_location_attribute): Likewise.
13151 (gen_inheritance_die): Likewise.
13152 * tree-dump.c (deque_and_dump): Likewise.
13153 * doc/c-tree.texi (Binfos): Add under reconstruction note.
13155 2004-07-06 Steven Bosscher <stevenb@suse.de>
13157 * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
13159 * config/mcore/mcore.md: Model memory latency with a simple DFA
13160 pipeline description instead of a define_function_unit.
13162 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13164 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
13165 * langhooks.h (var_mod_type_p): Likewise.
13166 * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
13167 * expr.c (count_type_elements): Properly handle return from
13168 array_type_nelts and properly test for overflow.
13169 * gimplify.c (gimplify_init_constructor): Properly handle return
13170 from array_type_nelts.
13171 (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
13172 * integrate.c (copy_decl_for_inlining): Correct comments.
13173 * tree-inline.c (remap_decl): Update comments, remove dead code,
13174 and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
13175 (remap_type): Only remap if variably modified by vars in function
13177 (copy_body_r): Use compatible_type langhooks to see when can fold.
13178 (setup_one_parameter): Don't remap type.
13179 (inline_forbidden_p_1): Add arg to variably_modified_type_p.
13180 * tree.c (recompute_tree_invarant_for_addr_expr): Properly
13181 compute TREE_INVARIANT for decl case.
13182 (find_var_from_fn): New function.
13183 (variably_modified_type_p): Add arg and call new function.
13184 * tree.h (variably_modified_type_p): Add extra arg.
13186 2004-07-05 Eric Botcazou <ebotcazou@libertysurf.fr>
13188 * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
13189 (goto_handler_and_restore_v9): Delete disabled insn.
13190 (goto_handler_and_restore_v9_sp64): Likewise.
13192 2004-07-05 Roger Sayle <roger@eyesopen.com>
13194 * calls.c (load_register_parameters): Call expand_shift instead
13195 of expand_binop with ashl_optab (or other shift optab) directly.
13196 * expr.c (emit_group_load, emit_group_store): Likewise.
13197 * function.c (assign_parm_setup_block): Likewise.
13198 * stmt.c (shift_return_value): Likewise.
13200 2004-07-05 Jakub Jelinek <jakub@redhat.com>
13202 * expr.c (expand_assignment): Disable the bitfield += optimizations.
13204 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
13206 * doc/sourcebuild.texi: Revert previous patch.
13208 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
13210 * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
13211 TARGET_MEM_FUNCTIONS.
13212 * system.h: Poison TARGET_MEM_FUNCTIONS.
13213 * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
13214 bcmp_libfunc, bzero_libfunc): Remove.
13215 * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
13217 * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
13218 * doc/standards.texi: Don't mention calling BSD string functions.
13219 * doc/invoke.texi: Likewise. Mention that memmove may be called.
13220 * config/vax/t-memfuncs: New.
13221 * config/memcmp.c, config/memcpy.c, config/memmove.c,
13222 config/memset.c: New.
13223 * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
13224 * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
13226 * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
13227 config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
13228 config/elfos.h, config/gnu.h, config/h8300/h8300.h,
13229 config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
13230 config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
13231 config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
13232 config/netbsd.h, config/openbsd.h, config/pa/pa.h,
13233 config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
13234 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
13235 config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
13237 2004-07-05 Richard Henderson <rth@redhat.com>
13239 * function.c (assign_parm_setup_reg): Properly rename variables in
13240 FUNCTION_ARG_CALLEE_COPIES section.
13242 2004-07-05 Zack Weinberg <zack@codesourcery.com>
13244 * tree-mudflap.c: Include cgraph.h.
13245 (mf_init_extern_trees): Rename to mudflap_init. Export.
13246 Rewrite to create synthetic declarations instead of looking
13247 up declarations from mf-runtime.h.
13248 (mf_make_builtin, mf_make_cache_struct_type): New functions.
13249 (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
13250 Correct commentary.
13251 (execute_mudflap_function_decls, mudflap_register_call):
13252 Don't call mf_init_extern_trees.
13253 (mudflap_finish_file): Use cgraph_build_static_cdtor.
13255 * tree-mudflap.h: Update prototypes.
13256 * c-mudflap.c: Delete file.
13257 * c-common.c: Include tree-mudflap.h.
13258 (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
13259 * Makefile.in: Remove all references to c-mudflap.o.
13260 Update dependencies.
13262 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13264 * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
13265 displacements with the spatial-locality cache-control completer.
13267 2004-07-05 Zack Weinberg <zack@codesourcery.com>
13269 * langhooks.c: Don't include gt-langhooks.h.
13270 (var_labelno): Delete.
13271 (lhd_set_decl_assembler_name): Do not append a distinguishing
13272 number to file-scope internal-linkage declarations for the first
13273 input file, even if they have DECL_CONTEXT set. Use DECL_UID of
13274 the declaration itself (if at block scope), or its containing
13275 TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
13278 * opts.c (cur_in_fname): New global.
13279 * opts.h: Declare it.
13280 * tree.c: Include opts.h.
13281 (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
13282 DECL_UID equal to cur_in_fname.
13283 (copy_node_stat): Do not change DECL_UID when copying a
13284 TRANSLATION_UNIT_DECL.
13285 (build_common_tree_nodes): Adjust next_decl_uid to reserve the
13286 range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
13288 * c-decl.c (c_static_assembler_name): Delete.
13289 * c-tree.h (c_static_assembler_name): Delete prototype.
13290 * c-lang.c, objc/objc-lang.c: Don't override
13291 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
13293 * Makefile.in (tree.o): Update dependencies.
13294 (GTFILES): Remove langhooks.c.
13296 2004-07-05 Roger Sayle <roger@eyesopen.com>
13298 * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
13299 by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
13300 Normalize "X % C" as "X % -C" for signed modulus and negative C.
13301 Optimize "X % -Y" as "X % Y" for signed modulus.
13302 <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
13303 into "((unsigned) X % Y) == 0".
13305 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
13307 * sourcebuild.texi (Config Fragments): Use @comma{} in
13308 cross-reference to section title.
13310 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13312 * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
13313 * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
13314 (gimplify_target_expr, gimplify_expr): Likewise.
13315 (copy_if_shared_r): No longer need special case for BIND_EXPR.
13316 (unshare_body, unvisit_body): Only look at nested if BODY_P is
13318 (gimplify_compound_lval): See if we can strip any useless conversion.
13319 (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
13321 (gimplify_modify_expr_to_memset): Likewise.
13322 (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
13323 * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
13324 (declare_inline_vars): Likewise.
13325 (walk_type_fields): New function.
13326 (walk_tree): Use it.
13327 * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
13329 * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
13330 (sra_walk_modify_expr): Allow init function to fail.
13331 (scan_init): Now returns bool.
13332 (generate_element_init): If can't understand INIT, return false.
13333 (scalarize_init): Return false if generate_element_init does.
13335 * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
13338 * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
13339 bounds if bounds aren't constant.
13341 * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
13343 * function.c, langhooks-def.h, langhooks.h: Move max_size hook
13344 to type hooks; remove bogus PARAMS.
13346 2004-07-05 Nathan Sidwell <nathan@codesourcery.com>
13348 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
13349 * dwarf2out.c (add_data_member_location_attribute): Check for
13351 * tree.c (tree_node_kinds): Add "binfos".
13352 (binfo_lang_slots): New.
13353 (make_node_stat): Add TREE_BINFO.
13354 (make_tree_binfo_stat): New.
13355 (tree_node_structure): Add TREE_BINFO.
13356 * tree.def (TREE_BINFO): New.
13357 * tree.h (REC_OR_UNION_CHECK): Rename to ...
13358 (RECORD_OR_UNION_CHECK): ... here.
13359 (NOT_RECORD_OR_UNION_CHECK): New.
13360 (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
13361 (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
13362 RECORD_OR_UNION_CHECK.
13363 (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
13364 (TYPE_LANG_SLOT_1): New.
13365 (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
13366 BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
13367 BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
13368 (BINFO_ELTS): Remove.
13369 (BINFO_LANG_SLOT): New.
13370 (struct tree_binfo): New.
13371 (binfo_lang_slots): Declare.
13372 (enum tree_node_structure_enum): Add TS_BINFO.
13373 (union tree_node): Add binfo.
13374 (make_tree_binfo_stat): Declare.
13375 (make_tree_binfo): New.
13376 (enum tree_node_kind): Add binfo_kind.
13378 * objc/objc-act.c (start_class, objc_declare_protocols,
13379 start_protocols): Use TYPE_LANG_SLOT_1.
13380 * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
13382 (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
13383 (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
13384 CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
13385 PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
13387 2004-07-05 Steven Bosscher <stevenb@suse.de>
13389 * rtl.h (struct rtx_def): Remove the integrated flag.
13390 Use the return_val flag for MEM_SCALAR_P.
13391 Reshuffle and update flags in CLEAR_RTX_FLAGS.
13393 2004-07-05 Richard Sandiford <rsandifo@redhat.com>
13396 * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
13397 to mips_expand_unaligned_load, mips_expand_unaligned_store, and
13400 2004-07-05 Josef Zlomek <zlomekj@suse.cz>
13402 * var-tracking.c: Fix some comments.
13403 (frame_stack_adjust): New.
13404 (vt_stack_adjustments): Init stack_adjust of entry block to
13405 minus stack adjustment of function prologue.
13406 (adjust_stack_reference): Do not adjust if adjustment == 0.
13407 (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
13408 (emit_notes_in_bb): Likewise.
13409 (vt_add_function_parameters): Do not adjust locations of
13410 function arguments.
13411 (vt_initialize): Compute the stack adjustment of function
13412 prologue and offset the initial "location" of frame_base_decl
13413 from the stack pointer after prologue.
13415 2004-07-04 Richard Henderson <rth@redhat.com>
13417 * function.c (struct assign_parm_data_all): New.
13418 (struct assign_parm_data_one): New.
13419 (assign_parms_initialize_all, assign_parms_augmented_arg_list,
13420 assign_parm_find_data_types, assign_parms_setup_varargs,
13421 assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
13422 assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
13423 assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
13424 assign_parm_setup_block, assign_parm_setup_reg,
13425 assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
13426 (assign_parms): ... here.
13428 2004-07-04 Daniel Berlin <dberlin@dberlin.org>
13430 * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
13431 now are bitmap_set_t's.
13432 (bitmap_insert_into_set): No point in inserting the value if
13434 (bitmap_set_contains): New function.
13435 (bitmap_set_replace_value): Add comment on why we do it
13437 (set_contains): Removed.
13438 (bitmap_set_subtract_from_value_set): New name of
13439 set_subtract now that it's arguments are two different
13442 (bitmap_find_leader): Change algorithm used.
13443 (find_or_generate_expression): Update use of functions for new
13445 (create_expression_by_pieces): Ditto.
13446 (insert_aux): Ditto.
13448 (add_to_sets): Ditto.
13450 (execute_pre): Ditto.
13451 (compute_avail): Ditto.
13452 Also ignore virtual phis.
13454 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
13456 * combine.c (simplify_comparison): Fix comment typo.
13458 2004-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
13460 * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
13461 into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
13462 (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
13463 (output_restore): Change parameter from 'insn' to 'pat'.
13464 (output_return): Adjust call to output_restore.
13465 (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
13466 Adjust call to output_restore.
13468 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
13470 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
13471 and assert system is bsd.
13473 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
13475 * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
13476 (TARGET_SWITCHES): Remove -mdebugc.
13477 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
13478 (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
13479 (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
13480 (sle_[sd]i_reg): Delete.
13482 2004-07-04 Steven Bosscher <stevenb@suse.de>
13484 * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
13486 * config/iq2000/iq2000.md: Translate old pipeline description to an
13487 equivalent new one.
13489 2004-07-04 Roger Sayle <roger@eyesopen.com>
13491 * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
13492 Ensure the replacement rhs is valid gimple before performing
13493 the substitution. Return false if these sanity checks fail.
13494 (fold_stmt): Only set changed to true, if set_rhs returns true.
13495 (execute_fold_all_builtins): Only call modify_stmt if set_rhs
13498 2004-07-04 Richard Henderson <rth@redhat.com>
13501 * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
13503 2004-07-04 Mark Mitchell <mark@codesourcery.com>
13505 * configure.ac (ranlib_flags): New variable.
13506 * Makefile.in (RANLIB_FLAGS): New variable.
13507 (libbackend.a): Use it.
13508 * configure: Regenerated.
13510 2004-07-04 Roger Sayle <roger@eyesopen.com>
13512 * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
13513 a "sign mask" instead of using ashr_optab directly.
13515 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
13517 * doc/cpp.texi: Don't document what we do for ill-formed expressions.
13518 * doc/cppopts.texi: Clarify processing of command-line defines.
13520 2004-07-04 Gerald Pfeifer <gerald@pfeifer.com>
13522 * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
13524 2004-07-04 Richard Henderson <rth@redhat.com>
13526 * rtl.def (ADDRESSOF): Remove.
13527 * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
13528 (find_base_term, memrefs_conflict_p): Likewise.
13529 * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
13530 (fold_rtx, cse_insn, set_live_p): Likewise.
13531 * dwarf2out.c (mem_loc_descriptor): Likewise.
13532 (add_location_or_const_value_attribute): Likewise.
13533 * emit-rtl.c (copy_insn_1): Likewise.
13534 * explow.c (memory_address): Likewise.
13535 * expmed.c (store_split_bit_field): Likewise.
13536 * expr.c (expand_expr_real_1): Likewise.
13537 * function.c (instantiate_decl
13538 (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
13539 * genrecog.c (preds, validate_pattern): Likewise.
13540 * integrate.c (copy_rtx_and_substitute): Likewise.
13541 * recog.c (general_operand, register_operand): Likewise.
13542 (memory_address_p): Likwise.
13543 * reload1.c (eliminate_regs, elimination_effects): Likewise.
13544 * rtl.c (copy_rtx): Likewise.
13545 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
13546 (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
13547 * rtlhooks.c (gen_lowpart_general): Likewise.
13548 * stmt.c (expand_asm_operands): Likewise.
13549 * web.c (entry_register, replace_ref, web_main): Likewise.
13550 * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
13551 alpha_expand_block_move, alpha_expand_block_clear): Likewise.
13552 * config/arm/arm.c (thumb_rtx_costs): Likewise.
13553 * config/c4x/c4x.c (c4x_valid_operands): Likewise.
13554 * config/frv/frv.c (move_destination_operand, move_source_operand,
13555 condexec_dest_operand, condexec_source_operand,
13556 condexec_memory_operand): Likewise.
13557 * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
13558 * config/ia64/ia64.c (general_xfmode_operand): Likewise.
13559 (destination_xfmode_operand): Likewise.
13560 * config/mips/mips.h (PREDICATE_CODES): Likewise.
13561 * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
13562 * config/s390/s390.c (general_s_operand): Likewise.
13563 * config/s390/s390.md (mov*): Likewise.
13564 * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
13566 * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
13567 * expr.c (expand_expr_real_1): Likewise.
13568 * stmt.c (expand_decl): Likewise.
13569 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
13571 * function.c (struct fixup_replacement, struct insns_for_mem_entry,
13572 postponed_insns, put_var_into_stack, put_reg_into_stack,
13573 schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
13574 fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
13575 fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
13576 walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
13577 gen_mem_addressof, flush_addressof, put_addressof_into_stack,
13578 purge_bitfield_addressof_replacements, purge_addressof_replacements,
13579 purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
13580 struct insns_for_mem_walk_info, insns_for_mem_walk,
13581 compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
13582 setjmp_protect_args): Remove.
13583 (push_function_context_to): Don't handle var_refs_queue.
13584 (pop_function_context_from, free_after_compilation): Likewise.
13585 (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
13586 (assign_parms, allocate_struct_function): Likewise.
13587 (use_register_for_decl): New.
13588 (expand_function_end): Don't setjmp_protect.
13589 * function.h (struct emit_status): Update commentary.
13590 (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
13591 (max_parm_reg, parm_reg_stack_loc): Remove.
13592 * passes.c (DFI_addressof): Remove.
13593 (dump_file_info): Remove addressof.
13594 (rest_of_handle_addressof): Remove.
13595 (rest_of_compilation): Don't call it.
13596 * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
13597 * stmt.c (expand_decl): Use use_register_for_decl.
13598 * tree.h: Update decls.
13599 * web.c (mark_addressof): Remove.
13600 * doc/invoke.texi (-dF): Remove.
13602 2004-07-03 Richard Henderson <rth@redhat.com>
13604 * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
13605 instead of gen_mem_addressof.
13606 * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
13607 TImode output register.
13609 2004-07-03 Richard Henderson <rth@redhat.com>
13611 PR tree-optimization/16341
13612 * tree-sra.c (sra_walk_function): Increment to next stmt before
13613 processing the current stmt.
13614 (sra_insert_after): Always use BSI_SAME_STMT.
13616 2004-07-03 Richard Henderson <rth@redhat.com>
13618 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
13619 fp plus with minus.
13621 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
13623 * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
13624 with tree_int_cst_equal.
13626 2004-07-03 Andreas Schwab <schwab@suse.de>
13628 * config/ia64/ia64.md: Define new attribute "empty".
13629 (prologue_use, nop_x, insn_group_barrier): Set it.
13631 * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
13632 skip over "empty" insns.
13634 2004-07-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13636 * tree-inline.c (initialize_inlined_parameters): Pass proper function
13637 context to gimplify_body.
13638 (walk_tree): Don't walk into types twice.
13639 (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
13641 * tree-sra.c (generate_element_init): Remove any useless conversions.
13643 * gimplify.c (gimplify_conversion): Remove stripping useless
13644 conversions from here.
13645 (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
13646 (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
13647 Unshare before substituting PLACEHOLDER_EXPR.
13648 (gimplify_modify_expr_to_memset): Likewise.
13649 Pass address of TO to memset, not TO itself.
13650 (gimplify_init_constructor): Make copy of OBJECT so we have it each
13651 time we make an expression (to match a PLACEHOLDER_EXPR).
13653 * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
13654 VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
13655 * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
13656 * tree-ssa-dom.c (local_fold): Likewise.
13658 * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
13659 * langhooks.h (strct lang_hooks): New field type_max_size.
13660 * function.c (assign_temp): Call it.
13662 2004-07-03 Steven Bosscher <stevenb@suse.de>
13664 * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
13665 * config/sh/sh.md: Convert the SH1 pipeline description to
13668 2004-07-02 Zack Weinberg <zack@codesourcery.com>
13670 * c-decl.c (struct c_binding): Remove contour field; add
13671 depth, invisible, nested fields.
13672 (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
13673 (B_IN_EXTERNAL_SCOPE): New convenience macros.
13674 (bind): Add invisible and nested arguments. Initialize
13675 new fields of struct c_binding; adjust loop scanning for
13677 (free_binding_and_advance): Clear structure with memset.
13678 (pop_scope): Adjust to match. Set DECL_CONTEXT on everything
13679 in file scope, even if it's in external scope too.
13680 (pushdecl): Adjust to match. Create invisible file-scope
13681 declarations for block-scope forward declarations of static functions.
13682 (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
13683 (undeclared_variable, lookup_label, declare_label, define_label)
13684 (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
13685 (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
13686 (store_parm_decls_oldstyle): Adjust to match.
13687 (diagnose_mismatched_decls): Correct handling of linkage clashes.
13688 (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
13690 * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
13691 (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
13693 2004-07-02 Richard Henderson <rth@redhat.com>
13695 * c-decl.c (grokdeclarator): Don't frob current_function_decl
13696 around variable_size.
13697 (set_decl_nonlocal): Remove.
13698 (store_parm_decls): Add stmts for pending sizes.
13699 * calls.c (calls_function, calls_function_1): Remove.
13700 (precompute_arguments): Don't call it.
13701 * cfgexpand.c (set_save_expr_context): Remove.
13702 (tree_expand_cfg): Don't call it.
13703 * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
13704 (dwarf2out_finish): Likewise.
13705 * expr.c (emit_block_move): Adjust addresses to BLKmode.
13706 (store_constructor): Don't pre-evaluate SAVE_EXPR.
13707 (safe_from_p): Don't queue SAVE_EXPRs.
13708 (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
13709 or build plain VAR_DECLs.
13710 * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
13712 (fold_checksum_tree): Don't special-case SAVE_EXPR.
13713 * function.c (free_after_compilation): Don't clear x_save_expr_regs.
13714 (put_var_into_stack): Don't handle SAVE_EXPR.
13715 (gen_mem_addressof): Likewise.
13716 * function.h (struct function): Remove x_save_expr_regs.
13717 (save_expr_regs): Remove.
13718 * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
13719 * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
13720 * stor-layout.c (variable_size): Don't set it.
13721 (force_type_save_exprs, force_type_save_exprs_1): Remove.
13722 * tree-inline.c (remap_save_expr): Remove fn argument. Update
13723 all callers. Don't set SAVE_EXPR_CONTEXT.
13724 * tree-inline.h (remap_save_expr): Update decl.
13725 * tree.c (save_expr): Update build size.
13726 (first_rtl_op): Don't handle SAVE_EXPR.
13727 (unsave_expr_1, contains_placeholder_p): Likewise.
13728 (decl_function_context): Likewise.
13729 * tree.def (SAVE_EXPR): Remove args 1 and 2.
13730 * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
13731 (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
13733 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
13735 * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
13736 doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
13737 doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
13738 doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
13739 some first-person references and patronizing comments. Based on
13741 * doc/invoke.texi: Don't reference fortran@gnu.org.
13742 * doc/trouble.texi (Warning when a non-void function value is
13743 ignored): Rewrite. From Russ Allbery and Chris Devers.
13745 2004-07-02 Daniel Berlin <dberlin@dberlin.org)
13747 * tree-ssa-pre.c (bitmap_set_t): New.
13748 (bb_value_sets): avail_out is now a bitmap_set_t.
13749 (bitmap_find_leader): New function.
13750 (bitmap_value_insert_into_set): Ditto.
13751 (bitmap_set_copy): Ditto.
13752 (bitmap_value_replace_in_set): Ditto.
13753 (bitmap_set_contains_value): Ditto.
13754 (bitmap_set_new): Ditto.
13755 (bitmap_set_pool): New pool.
13756 (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
13757 (insert_aux): Ditto.
13758 (add_to_sets): Ditto.
13759 (compute_avail): Ditto
13760 (eliminate): Ditto.
13763 (execute_pre): Ditto.
13765 2004-07-02 Roger Sayle <roger@eyesopen.com>
13767 * config/rs6000/rs6000.c (struct processor_costs): New structure
13768 used to hold instruction latencies/sizes for processor types.
13769 (rs6000_cost): New global variable pointing to current CPU's costs.
13770 (rs6000_override_options): Initialize rs6000_cost to point to the
13771 appropriate cost table based upon rs6000_cpu and optimize_size.
13772 (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
13775 2004-07-02 Richard Henderson <rth@redhat.com>
13777 * expmed.c (make_tree): Don't use SET_DECL_RTL.
13779 2004-07-02 Steven Bosscher <stevenb@suse.de>
13781 * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
13783 2004-07-01 Richard Henderson <rth@redhat.com>
13785 * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
13786 (alpha_gp_save_rtx): Use assign_stack_local instead of
13789 2004-07-01 Richard Henderson <rth@redhat.com>
13791 * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
13792 (alpha_rtx_cost_data): Update to match.
13793 (alpha_rtx_cost_size): New.
13794 (alpha_rtx_costs): Honor optimize_size.
13796 2004-07-01 Richard Henderson <rth@redhat.com>
13798 * gimple-low.c (lower_function_body): Don't reset_block_changes here.
13799 * cfgexpand.c (tree_expand_cfg): Do it here.
13800 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
13801 * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
13802 * config/mips/mips.c (mips_output_mi_thunk): And here.
13803 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
13804 * config/sh/sh.c (sh_output_mi_thunk): And here.
13805 * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
13807 2004-07-01 Richard Henderson <rth@redhat.com>
13809 * tree.def (RTL_EXPR): Remove.
13810 * c-typeck.c (lvalue_p): Don't handle it.
13811 * expr.c (safe_from_p): Likewise.
13812 (expand_expr_real_1): Likewise.
13813 * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
13814 (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
13815 * gengtype.c (adjust_field_tree_exp): Likewise.
13816 * stmt.c (warn_if_unused_value): Likewise.
13817 * tree-gimple.c (recalculate_side_effects): Likewise.
13818 * tree-pretty-print.c (dump_generic_node): Likewise.
13819 * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
13820 (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
13821 * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
13823 * stmt.c (struct stmt_status): Remove x_last_expr_type,
13824 x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
13825 (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
13826 (expand_expr_stmt): Merge with expand_expr_stmt_value. Remove
13827 all the bits that tracked last_expr.
13828 (expand_end_bindings): Don't track last_expr.
13829 (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
13830 (clear_last_expr): Remove.
13831 (expand_asm): Don't call it.
13832 (expand_asm_operands, expand_end_cond): Likewise.
13833 (expand_naked_return, expand_null_return_1): Likewise.
13834 * c-typeck.c (c_begin_compound_stmt): Likewise.
13835 * cfgexpand.c (expand_block): Use expand_expr_stmt.
13836 * expr.c (expand_expr_real_1): Likewise.
13837 * tree.h: Update prototypes.
13839 * function.h (struct sequence_stack): Remove sequence_rtl_expr.
13840 (struct emit_status): Remove sequence_rtl_expr.
13841 (struct function): Remove x_rtl_expr_chain.
13842 (seq_rtl_expr, rtl_expr_chain): Remove.
13843 * function.c (struct temp_slot): Remove rtl_expr.
13844 (assign_stack_temp_for_type): Don't set it.
13845 (free_temp_slots, pop_temp_slots): Don't check it.
13846 (free_after_compilation): Don't clear x_rtl_expr_chain.
13847 (fixup_var_refs): Don't search it.
13848 (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
13849 * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
13851 (push_topmost_sequence): Likewise.
13852 (end_sequence, init_emit): Likewise.
13853 (start_sequence_for_rtl_expr): Remove.
13854 * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
13855 * rtl.h (preserve_rtl_expr_result): Remove.
13857 2004-07-02 Kazu Hirata <kazu@cs.umass.edu>
13859 * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
13860 tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
13863 2004-07-02 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
13865 * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
13866 (STANDARD_STARTFILE_PREFIX_2): Define.
13867 (standard_startfile_prefix_1): Initialize to
13868 STANDARD_STARTFILE_PREFIX_1.
13869 (standard_startfile_prefix_2): Initialize to
13870 STANDARD_STARTFILE_PREFIX_2.
13871 * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
13872 (STANDARD_STARTFILE_PREFIX_1): Define.
13873 (STANDARD_STARTFILE_PREFIX_2): Define.
13874 * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
13875 (STANDARD_STARTFILE_PREFIX_2): Document.
13877 2004-07-01 Richard Henderson <rth@redhat.com>
13879 * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
13880 in order to disable scalarization. Instead set a flag and wait
13881 for a candidate decl.
13883 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
13885 * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
13886 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
13887 Use terminology "testsuite" and "enumerated".
13889 2004-07-01 Richard Henderson <rth@redhat.com>
13891 * dwarf2out.c (reg_save): Use INVALID_REGNUM.
13892 (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
13893 (initial_return_save): Likewise.
13894 (flush_queued_reg_saves): Remap register numbers.
13895 (dwarf2out_return_reg): Likewise.
13897 2004-07-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13899 * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
13901 * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
13902 access functions for lower bound and element size and only output
13903 if lower bound nonzero or element size not same as that of type.
13904 (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
13906 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
13908 * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
13910 2004-07-01 Per Bothner <per@bothner.com>
13912 * final.c (final): Fix typo reported by Aaron W. LaFramboise.
13914 2004-07-01 Jakub Jelinek <jakub@redhat.com>
13916 * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
13917 bitfields as well. STRIP_NOPS from src operand and PLUS_EXPR's
13918 first operand. Don't optimize if the bitfield is volatile.
13920 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
13922 * c-pretty-print.c (pp_c_postfix_expression): Handle
13923 floating-point comparison operators.
13924 (pp_c_expression): Pass floating-point comparison
13925 operators to pp_c_postfix_expression.
13927 2004-07-01 Roger Sayle <roger@eyesopen.com>
13929 * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
13930 rtx_cost instead of "had_mult" to determine whether the transformed
13931 expression is cheaper than the original.
13933 2004-07-01 Jerry Quinn <jlquinn@optonline.net>
13935 * alias.c (get_alias_set, canon_rtx, get_addr,
13936 nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
13938 * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
13939 expand_builtin): Likewise.
13940 * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
13942 * combine.c (can_combine_p, combinable_i3pat, try_combine,
13943 find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
13944 rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
13945 record_dead_and_set_regs_1, get_last_value_validate,
13946 mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
13947 * cse.c (check_dependence, canon_hash, equiv_constant,
13948 gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
13949 cse_around_loop, cse_check_loop_start, cse_set_around_loop,
13950 count_reg_usage): Likewise.
13951 * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
13952 cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
13953 cselib_record_sets): Likewise.
13954 * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
13955 dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
13956 * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
13957 * df.c (df_uses_record): Likewise.
13958 * dojump (do_jump): Likewise.
13959 * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
13960 loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
13961 decl_start_label): Likewise.
13962 * emit-rtl.c (gen_complex_constant_part, gen_highpart,
13963 operand_subword, change_address_1, make_safe_from): Likewise.
13964 * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
13965 stabilize, force_not_mem): Likewise.
13966 * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
13967 expand_mult_const, expand_divmod, emit_store_flag): Likewise.
13968 * expr.c (convert_move, convert_modes, emit_block_move,
13969 emit_group_load, emit_group_store, clear_storage, emit_move_insn,
13970 emit_move_insn_1, expand_assignment, store_expr,
13971 store_constructor_field, store_constructor, store_field,
13972 force_operand, safe_from_p, expand_expr_real_1, expand_increment):
13974 * final.c (cleanup_subreg_operands, alter_subreg,
13975 get_mem_expr_from_op): Likewise.
13976 * flow.c (notice_stack_pointer_modification_1,
13977 init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
13979 * function.c (mark_temp_addr_taken, preserve_temp_slots,
13980 preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
13981 optimize_bit_field, flush_addressof, purge_addressof_1,
13982 instantiate_decl, instantiate_virtual_regs_1, assign_parms,
13983 setjmp_protect, setjmp_protect_args, fix_lexical_addr,
13984 keep_stack_depressed): Likewise.
13985 * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
13986 noce_process_if_block, find_memory): Likewise.
13987 * integrate.c (subst_constants, allocate_initial_values): Likewise.
13988 * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
13989 update_equiv_regs): Likewise.
13990 * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
13991 maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
13992 * optabs.c (expand_abs, emit_unop_insn): Likewise.
13993 * passes.c (rest_of_handle_final): Likewise.
13994 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
13995 move2add_note_store): Likewise.
13996 * ra-build.c (detect_remat_webs): Likewise.
13997 * ra-debug.c (dump_static_insn_cost): Likewise.
13998 * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
13999 * recog.c (validate_change, apply_change_group, cancel_changes,
14000 validate_replace_rtx_1, general_operand, register_operand,
14001 nonmemory_operand, push_operand, pop_operand, memory_operand,
14002 indirect_operand, asm_operand_ok, offsettable_memref_p,
14003 offsettable_nonstrict_memref_p, constrain_operands,
14004 store_data_bypass_p): Likewise.
14005 * reg-stack.c (subst_stack_regs_pat): Likewise.
14006 * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
14007 copy_cost, reg_scan_mark_refs): Likewise.
14008 * regmove.c (optimize_reg_copy_3, stack_memref_p,
14009 combine_stack_adjustments_for_block): Likewise.
14010 * regrename.c (copyprop_hardreg_forward_1): Likewise.
14011 * reload.c (can_reload_into, push_reload, decompose, immune_p,
14012 find_reloads, find_reloads_address, find_reloads_address_1,
14013 reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
14014 find_equiv_reg): Likewise.
14015 * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
14016 reload_as_needed, choose_reload_regs, emit_input_reload_insns,
14017 do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
14018 delete_address_reloads): Likewise.
14019 * resource.c (mark_referenced_resources): Likewise.
14020 * rtlanal.c (get_jump_table_offset, count_occurrences,
14021 reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
14022 reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
14023 num_sign_bit_copies1): Likewise.
14024 * rtlhooks.c (gen_lowpart_general): Likewise.
14025 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
14026 * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
14027 sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
14028 sdbout_global_decl): Likewise.
14029 * simplify-rtx.c (simplify_subreg): Likewise.
14030 * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
14031 expand_anon_union_decl, expand_end_case_type): Likewise.
14032 * unroll.c (calculate_giv_inc): Likewise.
14033 * var-tracking.c (stack_adjust_offset_pre_post,
14034 bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
14035 add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
14036 vt_add_function_parameters): Likewise.
14037 * varasm.c (make_var_volatile, notice_global_symbol,
14038 assemble_external, decode_addr_const, mark_weak,
14039 default_encode_section_info): Likewise.
14041 2004-07-01 Steven Bosscher <stevenb@suse.de>
14043 * stmt.c (check_seenlabel): Remove.
14044 (pushcase, pushcase_range, expand_end_case_type): Don't call it.
14046 2004-07-01 Richard Henderson <rth@redhat.com>
14048 * function.h (struct function): Remove x_function_call_count.
14049 (function_call_count): Remove.
14050 * calls.c (expand_call): Don't set it.
14051 * integrate.c (copy_rtx_and_substitute): Likewise.
14053 * function.h (struct function): Remove x_cleanup_label.
14054 (cleanup_label): Remove.
14055 * stmt.c (expand_value_return): Don't use it.
14056 * function.c (free_after_compilation): Don't set it.
14057 (expand_function_start): Likewise. Remove parms_have_cleanups arg.
14058 * cfgexpand.c (tree_expand_cfg): Update call.
14059 * tree.h (expand_function_start): Update decl.
14061 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
14064 * c-lang.c (c_initialize_diagnostics): Move from here ...
14065 * c-objc-common.c: ... to here. Include "c-pretty-print.h".
14066 (c_tree_printer): Use pretty-printer to format %T.
14067 * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
14068 before '*' if not C++.
14069 (pp_c_direct_abstract_declarator): Don't try to print array upper
14070 bound for flexible array members.
14071 * c-tree.h: Include "diagnostic.h".
14072 (c_initialize_diagnostics): Declare.
14073 * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
14074 * c-format.c (format_type_warning): New function. Improve
14075 diagnostics for incorrect format argument types.
14076 (check_format_types): Use it. Add two parameters. Use the
14077 TYPE_MAIN_VARIANT of wanted_type.
14078 (check_format_info_main): Pass new parameters to
14079 check_format_types.
14080 (struct format_wanted_type): Update comment.
14082 2004-07-01 Nick Clifton <nickc@redhat.com>
14084 * target.h (struct gcc_target): Add new field to struct cxx:
14085 import_export_class.
14086 * target-def.h (TARGET_CXX): Initialise the new field.
14087 (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
14089 * doc/tm.texi: Document the new target hook.
14091 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
14093 * builtins.c (fold_builtin_classify): Fix typo.
14095 2004-07-01 Richard Henderson <rth@redhat.com>
14097 * function.c (identify_blocks, identify_blocks_1): Remove.
14098 * function.h (identify_blocks): Remove.
14099 * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
14101 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
14103 * builtins.c (fold_builtin_classify): New.
14104 (fold_builtin_unordered_cmp): Fix commentary.
14105 (fold_builtin): Use it.
14106 * builtins.def: Define builtins for isnan,
14107 isnanf, isnanl, finite, finitef, finitel,
14108 isinf, isinff, isinfl.
14110 2004-07-01 Richard Henderson <rth@redhat.com>
14112 * function.h (struct function): Remove dont_emit_block_notes.
14113 * gimple-low.c (lower_function_body): Don't set it.
14114 * cfgexpand.c (expand_block): Don't check it.
14115 * cfglayout.c (insn_locators_initialize): Likewise.
14116 * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
14117 * passes.c (rest_of_compilation): Likewise.
14118 * stmt.c (expand_start_bindings_and_block): Likewise.
14119 (expand_end_bindings): Likewise.
14121 2004-07-01 Richard Henderson <rth@redhat.com>
14123 * cgraph.h (cgraph_build_static_cdtor): Declare.
14124 * cgraphunit.c (cgraph_build_static_cdtor): New.
14125 * c-objc-common.c (build_cdtor): Use it.
14126 * coverage.c (create_coverage): Likewise.
14127 * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
14128 * optabs.c (init_optabs): Don't set gcov_init_libfunc.
14130 See ChangeLog.11 for earlier changes.