PATCH: remove more if (0) code
Ben Elliston
bje@au1.ibm.com
Mon Mar 31 06:28:00 GMT 2008
Found a few more instances of dead code, after grepping.
Okay for mainline?
Ben
2008-03-31 Ben Elliston <bje@au.ibm.com>
* expmed.c (extract_split_bit_field): Remove if (0) code.
* tree-ssa-structalias.c (do_sd_constraint): Likewise.
(do_ds_constraint): Likewise.
Index: expmed.c
===================================================================
--- expmed.c (revision 133745)
+++ expmed.c (working copy)
@@ -2002,16 +2002,7 @@ extract_split_bit_field (rtx op0, unsign
if (REG_P (op0) || GET_CODE (op0) == SUBREG)
unit = BITS_PER_WORD;
else
- {
- unit = MIN (MEM_ALIGN (op0), BITS_PER_WORD);
- if (0 && bitsize / unit > 2)
- {
- rtx tmp = extract_force_align_mem_bit_field (op0, bitsize, bitpos,
- unsignedp);
- if (tmp)
- return tmp;
- }
- }
+ unit = MIN (MEM_ALIGN (op0), BITS_PER_WORD);
while (bitsdone < bitsize)
{
Index: tree-ssa-structalias.c
===================================================================
--- tree-ssa-structalias.c (revision 133745)
+++ tree-ssa-structalias.c (working copy)
@@ -1428,9 +1428,6 @@ do_sd_constraint (constraint_graph_t gra
else if (add_graph_edge (graph, lhs, t))
flag |= bitmap_ior_into (sol, get_varinfo (t)->solution);
}
- else if (0 && dump_file && !(get_varinfo (j)->is_special_var))
- fprintf (dump_file, "Untypesafe usage in do_sd_constraint\n");
-
}
done:
@@ -1514,8 +1511,6 @@ do_ds_constraint (constraint_t c, bitmap
}
}
}
- else if (0 && dump_file && !(get_varinfo (j)->is_special_var))
- fprintf (dump_file, "Untypesafe usage in do_ds_constraint\n");
}
}
More information about the Gcc-patches
mailing list