This is the mail archive of the gcc-patches@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: [PATCH] Unify tree/RTL dump file handling (1/5)


Look at the contents. It's garbage.

It is what cfgexpand.c outputs. We can revert this part of the patch, or add a *.rtl dump different from *.expand but it is apparently what Honza wanted to have in the output.


>>The name was changed from *.rtl exactly because it is now the
>>interleaved GIMPLE/RTL dump that cfgexpand.c is equipped to produce.
>
> (3) It does *not* contain the debugging data generated by
>     cfgexpand.c, in particular, dump_stack_var_partition.

It does at least for the attached file.

;; Function d (d)

Partition 0: size 4 align 4
     x, offset 0
;; basic block 0, loop depth 0, count 0

etc.

Paolo
extern int x;

static void a(void)
{
  x++;
}

__attribute__ ((noinline)) static void c(int b, int *a)
{
  x += b + *a;
}

int d(int y)
{
  int x;
  a();
  c(42, &x);
  return x;
}


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