Message ID | CAMe9rOoJRM6J4OubVoeVTHarZn0FFkqwyhGFsnS9bTPkfYyBuA@mail.gmail.com |
---|---|
State | New |
Headers | show |
On Mon, Oct 29, 2012 at 10:53:42PM -0700, H.J. Lu wrote: > ---2012-10-30 H.J. Lu <hongjiu.lu@intel.com> > > * gimple-pretty-print.c (dump_gimple_bb_header): Avoid alloca. Ok, thanks. Jakub
diff --git a/gcc/gimple-pretty-print.c b/gcc/gimple-pretty-print.c index 4b3235e..a5a493a 100644 --- a/gcc/gimple-pretty-print.c +++ b/gcc/gimple-pretty-print.c @@ -2068,9 +2068,6 @@ dump_gimple_bb_header (FILE *outf, basic_block bb, int indent, int flags) if (flags & TDF_LINENO) { gimple_stmt_iterator gsi; - char *s_indent = (char *) alloca ((size_t) indent + 1); - memset (s_indent, ' ', (size_t) indent); - s_indent[indent] = '\0'; if (flags & TDF_COMMENT)