diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-23 07:09:01 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-23 07:09:01 +0000 |
commit | 3c1d743647d4a3e4d7d9dd541b495065b717b022 (patch) | |
tree | 4183e55ab6067150a8673b18a5d244e1d1a9df55 /gcc/alias.c | |
parent | aa17a02a2b06df3eabf20d8ed0c6f2b61d031389 (diff) | |
download | gcc-3c1d743647d4a3e4d7d9dd541b495065b717b022.tar.gz |
Warning fixes:
* alias.c (record_alias_subset): Remove ignored `&'.
(init_alias_once): Likewise.
* c-lex.c (UNGETC): Cast first argument of comma expression to void.
* config/mips/mips.c (mips_asm_file_end): Cast the result of
fwrite to `int' when comparing against one.
* config/mips/mips.h (CAN_ELIMINATE): Add parens around && within ||.
(INITIAL_ELIMINATION_OFFSET): Add braces to avoid ambiguous `else'.
* cse.c (rehash_using_reg): Change type of variable `i' to
unsigned int.
* dwarf2out.c (initial_return_save): Cast -1 to unsigned before
assigning it to one.
* except.c (duplicate_eh_handlers): Remove unused variable `tmp'.
* final.c (final_scan_insn): Likewise for variable `i'.
(output_asm_insn): Cast a char to unsigned char when used as an
array index.
* gcse.c (compute_pre_ppinout): Cast -1 to SBITMAP_ELT_TYPE when
assigning it to one.
* loop.c (strength_reduce): Remove unused variables `count' and `temp'.
* recog.c (preprocess_constraints): Cast a char to unsigned char
when used as an array index.
* regmove.c (find_matches): Likewise.
* reload1.c (calculate_needs): Add default case in switch.
(eliminate_regs_in_insn): Initialize variable `offset'.
(set_offsets_for_label): Change type of variable `i' to unsigned.
(reload_as_needed): Wrap variable `i' in macro check on
AUTO_INC_DEC || INSN_CLOBBERS_REGNO_P.
* scan-decls.c (scan_decls): Mark parameters `argc' and `argv'
with ATTRIBUTE_UNUSED. Cast variable `start_written' to size_t
when comparing against one.
* stor-layout.c (layout_decl): Cast maximum_field_alignment to
unsigned when comparing against one. Likewise for
GET_MODE_ALIGNMENT().
(layout_record): Cast record_align to int when comparing against a
signed value.
(layout_type): Cast TYPE_ALIGN() to int when comparing against a
signed value.
* tree.c (get_identifier): Cast variable `len' to unsigned when
comparing against one.
(maybe_get_identifier): Likewise
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24403 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index ce5a4994365..1adc8b31071 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -302,7 +302,7 @@ record_alias_subset (superset, subset) (alias_set_entry) xmalloc (sizeof (struct alias_set_entry)); superset_entry->alias_set = superset; superset_entry->children - = splay_tree_new (&alias_set_compare, 0, 0); + = splay_tree_new (alias_set_compare, 0, 0); splay_tree_insert (alias_sets, (splay_tree_key) superset, (splay_tree_value) superset_entry); @@ -314,7 +314,7 @@ record_alias_subset (superset, subset) /* There is an entry for the subset. Enter all of its children (if they are not already present) as children of the SUPERSET. */ splay_tree_foreach (subset_entry->children, - &insert_subset_children, + insert_subset_children, superset_entry->children); /* Enter the SUBSET itself as a child of the SUPERSET. */ @@ -1295,7 +1295,7 @@ init_alias_once () && HARD_REGNO_MODE_OK (i, Pmode)) SET_HARD_REG_BIT (argument_registers, i); - alias_sets = splay_tree_new (&alias_set_compare, 0, 0); + alias_sets = splay_tree_new (alias_set_compare, 0, 0); } void |