This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tree ssa and type issues


>>>>> "Gabriel" == Gabriel Dos Reis <gdr@integrable-solutions.net> writes:

Gabriel> I just hit this one from tree-ssa-into.c:rewrite_into_ssa()
Gabriel>   /* Initialize dominance frontier.  */
Gabriel>   dfs = (bitmap *) xmalloc (last_basic_block * sizeof (bitmap *));
Gabriel>                                                        ^^^^^^^^

Maybe we should be using the XNEWVEC macro (libiberty.h) everywhere.
That would avoid this problem.

How did you catch this btw?  (If gcc or g++ warns about this, it is
cool news... and if it doesn't, wouldn't that be nice?)

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]