darwin, ppc - improve debug for mdebug-stack
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 11 May 2019 23:31:56 +0000 (23:31 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sat, 11 May 2019 23:31:56 +0000 (23:31 +0000)
Darwin uses an out of line save when complete context
needs to be saved, including the vector regs.

This patch prints the status of that when -mdebug=stack
is given.

gcc/

2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>

* config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
is given, print the state of the EH "save world" computation for
Darwin.

From-SVN: r271101

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index e4b0099552fc26f72e996aea8322c520ad63d6a7..2628c240010c495f6199c1804cc547d33c170c4b 100644 (file)
@@ -1,3 +1,9 @@
+2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
+       is given, print the state of the EH "save world" computation for
+       Darwin.
+
 2019-05-11  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/59813
index 3d1af9f1bc9e4eaa018c9e1ef9d6130f00fe8eb3..933356d5382c4ca200f7bca385daed1c95d6f1cd 100644 (file)
@@ -24721,6 +24721,9 @@ debug_stack_info (rs6000_stack_t *info)
 
     fprintf (stderr, "\tsave-strategy       =  %04x\n", info->savres_strategy);
 
+  if (info->abi == ABI_DARWIN)
+    fprintf (stderr, "\tWORLD_SAVE_P        = %5d\n", WORLD_SAVE_P(info));
+
   fprintf (stderr, "\n");
 }