cfgexpand.c (stack_var): Remove OFFSET...
authorEaswaran Raman <eraman@google.com>
Thu, 21 Apr 2011 19:16:57 +0000 (19:16 +0000)
committerEaswaran Raman <eraman@gcc.gnu.org>
Thu, 21 Apr 2011 19:16:57 +0000 (19:16 +0000)
commit6ddfda8a98c084192e8fd16c56b722fddf53dc5a
treeef898c33327daffef683acff7ad8deb8b5f3c357
parent8e20e8b13e7c5dea9f33ec17870a8f36f68cdd55
cfgexpand.c (stack_var): Remove OFFSET...

2011-04-21  Easwaran Raman  <eraman@google.com>

* gcc/cfgexpand.c (stack_var): Remove OFFSET...
(add_stack_var): ...and its reference here...
(expand_stack_vars): ...and here.
(stack_var_cmp): Sort by descending order of size.
(partition_stack_vars): Change heuristic.
(union_stack_vars): Fix to reflect changes in
partition_stack_vars.
(dump_stack_var_partition): Add newline after each partition.

testsuite/Changelog:

2011-04-21  Easwaran Raman  <eraman@google.com>

* gcc.dg/stack-layout-2.c: New test.

From-SVN: r172837
gcc/ChangeLog
gcc/cfgexpand.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/stack-layout-2.c [new file with mode: 0644]