From: Iain Sandoe Date: Sat, 11 May 2019 23:31:56 +0000 (+0000) Subject: darwin, ppc - improve debug for mdebug-stack X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=65ecff904b65ee1c0b8d7b642a72cad3222f2ecd;p=gcc.git darwin, ppc - improve debug for mdebug-stack 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 * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e4b0099552f..2628c240010 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-05-12 Iain Sandoe + + * 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 PR c++/59813 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 3d1af9f1bc9..933356d5382 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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"); }