public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-1700] aix: Debugging does not require a stack frame.
@ 2023-06-12  1:23 David Edelsohn
  0 siblings, 0 replies; only message in thread
From: David Edelsohn @ 2023-06-12  1:23 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:f47ecca87573244c138a585b2a734e4d7ab5d0a2

commit r14-1700-gf47ecca87573244c138a585b2a734e4d7ab5d0a2
Author: David Edelsohn <dje.gcc@gmail.com>
Date:   Sat Jun 3 20:27:16 2023 -0400

    aix: Debugging does not require a stack frame.
    
    The rs6000 port has allocated a stack frame when debugging is enabled
    on AIX since the earliest versions of the port.  Apparently the
    earliest versions of the debuggers for AIX had difficulty with stackless
    frames.
    
    Both AIX DBX and GDB support stackless frames on AIX, and IBM XLC,
    OpenXL and LLVM for AIX do not generate an extraneous stack frame when
    debugging is enabled.  This patch updates the rs6000 stack info function
    to not set the stack frame flag when debugging is enabled for AIX.
    
    gcc/ChangeLog:
    
            * config/rs6000/rs6000-logue.cc (rs6000_stack_info):
            Do not require a stack frame when debugging is enabled for AIX.
    
    Signed-off-by: David Edelsohn <dje.gcc@gmail.com>

Diff:
---
 gcc/config/rs6000/rs6000-logue.cc | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/gcc/config/rs6000/rs6000-logue.cc b/gcc/config/rs6000/rs6000-logue.cc
index bc6b153b59f..98846f781ec 100644
--- a/gcc/config/rs6000/rs6000-logue.cc
+++ b/gcc/config/rs6000/rs6000-logue.cc
@@ -928,9 +928,6 @@ rs6000_stack_info (void)
   else if (frame_pointer_needed)
     info->push_p = 1;
 
-  else if (TARGET_XCOFF && write_symbols != NO_DEBUG && !flag_compare_debug)
-    info->push_p = 1;
-
   else
     info->push_p = non_fixed_size > (TARGET_32BIT ? 220 : 288);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-12  1:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-12  1:23 [gcc r14-1700] aix: Debugging does not require a stack frame David Edelsohn

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).