tree ssa and type issues
Gabriel Dos Reis
gdr@integrable-solutions.net
Sat May 21 18:34:00 GMT 2005
Andreas Jaeger <aj@suse.de> writes:
| Gabriel Dos Reis <gdr@integrable-solutions.net> writes:
|
| > Hi again,
| >
| > I just hit this one from tree-ssa-into.c:rewrite_into_ssa()
| >
| > /* Initialize dominance frontier. */
| > dfs = (bitmap *) xmalloc (last_basic_block * sizeof (bitmap *));
| > ^^^^^^^^
| >
| > If the sizeof operand really supposed to be "bitmap*" and not "bitmap"?
|
| This indeed looks wrong - and could lead to real memory corruption
| :-(. If this is wrong, he should be changed on the 4.0 branch as
| well,
And if it is wrong, it would be interesting to know wheter we already
have PRs related to that memory corruption -- but I guess it would be
hard to know :-)
Parenthetically, I was wondering who is freeing those extensive
regions of storage xmalloc/xcalloc()ed here and there?
-- Gaby
More information about the Gcc
mailing list