* [Darwin, PPC, committed] Improve mdebug=stack for Darwin.
@ 2019-05-11 23:45 Iain Sandoe
0 siblings, 0 replies; only message in thread
From: Iain Sandoe @ 2019-05-11 23:45 UTC (permalink / raw)
To: GCC-patches; +Cc: Segher Boessenkool
[-- Attachment #1: Type: text/plain, Size: 504 bytes --]
It seems to be quite frequently the case that we need to look at the pro/epilogue behaviour.
This adds the state of the “save_world” computation to the debug output that’s printed in
response to -mdebug=stack on powerpc-darwin.
tested on powerpc-darwin9, applied to trunk.
thanks
Iain
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.
[-- Attachment #2: ppc-mdebug-stack-save-world.diff --]
[-- Type: application/octet-stream, Size: 919 bytes --]
Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog (revision 271100)
+++ gcc/ChangeLog (working copy)
@@ -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: gcc/config/rs6000/rs6000.c
===================================================================
--- gcc/config/rs6000/rs6000.c (revision 271100)
+++ gcc/config/rs6000/rs6000.c (working copy)
@@ -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");
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-05-11 23:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-11 23:45 [Darwin, PPC, committed] Improve mdebug=stack for Darwin Iain Sandoe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).