diff options
author | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-10 10:38:10 +0000 |
---|---|---|
committer | aj <aj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-07-10 10:38:10 +0000 |
commit | 97b330ca3e32dc8619baac1c75cdf0feb101cbf6 (patch) | |
tree | ad12dd2a1d25ac756c1fd1eb5332e8573ccbd174 /gcc/cp | |
parent | 47fc4abca338b7494326ef229851eca882ae6da4 (diff) | |
download | gcc-97b330ca3e32dc8619baac1c75cdf0feb101cbf6.tar.gz |
2001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
* regmove.c (replace_in_call_usage): Fix warnings.
* sched-deps.c (add_dependence): Fix warnings.
* simplify-rtx.c (simplify_subreg): Likewise.
Return NULL_RTX instead of NULL.
* reg-stack.c (emit_swap_insn): Eliminate warnings.
(subst_asm_stack_regs): Likewise.
* combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
warnings.
* dwarf2out.c (output_call_frame_info): Declare i as int.
(build_abbrev_table): Declare n_alloc as int.
(dwarf2out_finish): Initialize die.
* except.c: Declare sjlj_funcdef_number as unsigned.
(connect_post_landing_pads): Declare j as unsigned.
(convert_to_eh_region_ranges): Initialize call_site.
(output_function_exception_table): Initialize tt_format_size.
* expr.c (move_by_pieces_1): Initialize to1.
(store_constructor): Initialize minelt and maxelt.
* flow.c (mark_regs_live_at_end): Declare i as unsigned.
* function.c (instantiate_decls): Avoid signed/unsigned warning.
* c-decl.c (combine_parm_decls): Unused, remove.
* c-tree.h: Remove prototype for combine_parm_decls.
* reload.c (push_reload): Fix warning.
(regno_clobbered_p): Likewise.
* reload1.c (replace_pseudos_in_call_usage): Likewise.
(reload_combine): Likewise.
* bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
* bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
warnings.
* bitmap.c (bitmap_operation): Change user.
* bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
For cp/:
2001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
* call.c (build_op_delete_call): Initialize fn.
(convert_like_real): Delete conditional.
(joust): Initialize *w and *l.
* class.c: Add prototype for binfo_ctor_vtable.
(get_primary_binfo): Initialize result.
* init.c (build_java_class_ref): Initialize name.
* typeck.c (unary_complex_lvalue): Do not duplicate the
argument to modify, pre-, or post-increment when used as an
lvalue and when the argument has side-effects.
For ch/:
2001-07-10 Jan van Male <jan.vanmale@fenk.wau.nl>
* ch-tree.h: Remove prototype for combine_parm_decls, unused
function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43893 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/call.c | 8 | ||||
-rw-r--r-- | gcc/cp/class.c | 3 | ||||
-rw-r--r-- | gcc/cp/init.c | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c index e7b6bbd824b..7cfbd96f8cf 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -3555,7 +3555,8 @@ build_op_delete_call (code, addr, size, flags, placement) tree addr, size, placement; int flags; { - tree fn, fns, fnname, fntype, argtypes, args, type; + tree fn = NULL_TREE; + tree fns, fnname, fntype, argtypes, args, type; int pass; if (addr == error_mark_node) @@ -3871,8 +3872,7 @@ convert_like_real (convs, expr, fn, argnum, inner) /* Copy-initialization where the cv-unqualified version of the source type is the same class as, or a derived class of, the class of the destination [is treated as direct-initialization]. [dcl.init] */ - if (fn) - savew = warningcount, savee = errorcount; + savew = warningcount, savee = errorcount; expr = build_new_method_call (NULL_TREE, complete_ctor_identifier, build_tree_list (NULL_TREE, expr), TYPE_BINFO (totype), @@ -5425,7 +5425,7 @@ tweak: if (!pedantic) { int rank1 = IDENTITY_RANK, rank2 = IDENTITY_RANK; - struct z_candidate *w, *l; + struct z_candidate *w = 0, *l = 0; for (i = 0; i < len; ++i) { diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 013b3ba7576..fac4a3891a9 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -202,6 +202,7 @@ static void update_vtable_entry_for_fn PARAMS ((tree, tree, tree, tree *)); static tree copy_virtuals PARAMS ((tree)); static void build_ctor_vtbl_group PARAMS ((tree, tree)); static void build_vtt PARAMS ((tree)); +static tree binfo_ctor_vtable PARAMS ((tree)); static tree *build_vtt_inits PARAMS ((tree, tree, tree *, tree *)); static tree dfs_build_secondary_vptr_vtt_inits PARAMS ((tree, void *)); static tree dfs_ctor_vtable_bases_queue_p PARAMS ((tree, void *data)); @@ -6796,7 +6797,7 @@ get_primary_binfo (binfo) tree binfo; { tree primary_base; - tree result; + tree result = NULL_TREE; tree virtuals; primary_base = CLASSTYPE_PRIMARY_BINFO (BINFO_TYPE (binfo)); diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 6bce1937652..d2b2b05f887 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -2200,7 +2200,7 @@ tree build_java_class_ref (type) tree type; { - tree name, class_decl; + tree name = NULL_TREE, class_decl; static tree CL_suffix = NULL_TREE; if (CL_suffix == NULL_TREE) CL_suffix = get_identifier("class$"); |