[ARM][Testsuite]make dump_stack function call conditional in cold-lc.c
authorRenlin Li <renlin.li@arm.com>
Tue, 13 Jun 2017 13:57:45 +0000 (13:57 +0000)
committerRenlin Li <renlin@gcc.gnu.org>
Tue, 13 Jun 2017 13:57:45 +0000 (13:57 +0000)
commitef0e3441246ee1dc01b3bf39622bc53644b181f8
tree29cbc02ece61148554817c43818f33ca453eabf1
parent09a871c46619af0461d2c079d4de953745a11b68
[ARM][Testsuite]make dump_stack function call conditional in cold-lc.c

After r249013, die () and dump_stack () are both in cold section. This makes
the compiler generate bl instruction for the function call, instead of
honoring the -mlong-calls option.

This patch changes the dump_stack function call conditional, which fixes the
regression.

gcc/testsuite/

* gcc.target/arm/cold-lc.c: Update coding style, call dump_stack
conditionally.

From-SVN: r249157
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/cold-lc.c