Hello community,

here is the log from the commit of package gdb for openSUSE:Factory checked in 
at 2019-12-24 14:29:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gdb (Old)
 and      /work/SRC/openSUSE:Factory/.gdb.new.6675 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gdb"

Tue Dec 24 14:29:20 2019 rev:135 rq:757565 version:8.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/gdb/gdb.changes  2019-11-15 22:33:02.184053311 
+0100
+++ /work/SRC/openSUSE:Factory/.gdb.new.6675/gdb.changes        2019-12-24 
14:29:26.170560447 +0100
@@ -1,0 +2,6 @@
+Fri Dec  6 14:20:21 UTC 2019 - Tom de Vries <[email protected]>
+
+- Fix build with gcc 10 [bsc#1158539, swo#24653].
+  * gdb-0001-remove-alloca-0-calls.patch
+
+-------------------------------------------------------------------

New:
----
  gdb-0001-remove-alloca-0-calls.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gdb.spec ++++++
--- /var/tmp/diff_new_pack.hLbVsr/_old  2019-12-24 14:29:28.574561610 +0100
+++ /var/tmp/diff_new_pack.hLbVsr/_new  2019-12-24 14:29:28.574561610 +0100
@@ -247,6 +247,7 @@
 Patch2009:      gdb-s390-handle-arch13.diff
 Patch2010:      gdb-fix-heap-use-after-free-in-typename-concat.patch
 Patch2011:      gdb-dwarf-reader-reject-sections-with-invalid-sizes.patch
+Patch2012:      gdb-0001-remove-alloca-0-calls.patch
 
 # Proposed patch for PR symtab/24971
 Patch2500:      gdb-symtab-prefer-var-def-over-decl.patch
@@ -599,6 +600,7 @@
 %patch2009 -p1
 %patch2010 -p1
 %patch2011 -p1
+%patch2012 -p1
 
 %patch2500 -p1
 %patch2501 -p1

++++++ gdb-0001-remove-alloca-0-calls.patch ++++++
Remove alloca(0) calls

PR gdb/24653 points out that a gcc snapshot will complain about the
calls to alloca(0) in gdb.

These calls are only needed when using the C alloca.  I'm inclined to
think that no current platform needs this, so this patch removes the
calls.

Let me know what you think.

gdb/ChangeLog
2019-06-14  Tom Tromey  <[email protected]>

        PR gdb/24653:
        * regcache.c (registers_changed): Don't call alloca.
        * top.c (execute_command): Don't call alloca.

---
 gdb/ChangeLog  | 6 ++++++
 gdb/regcache.c | 7 -------
 gdb/top.c      | 4 ----
 3 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/gdb/regcache.c b/gdb/regcache.c
index 6e3eee96631..323f0f5ab4e 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -454,13 +454,6 @@ void
 registers_changed (void)
 {
   registers_changed_ptid (minus_one_ptid);
-
-  /* Force cleanup of any alloca areas if using C alloca instead of
-     a builtin alloca.  This particular call is used to clean up
-     areas allocated by low level target code which may build up
-     during lengthy interactions between gdb and the target before
-     gdb gives control to the user (ie watchpoints).  */
-  alloca (0);
 }
 
 void
diff --git a/gdb/top.c b/gdb/top.c
index b46de90f755..857207c3767 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -560,10 +560,6 @@ execute_command (const char *p, int from_tty)
   auto cleanup_if_error = make_scope_exit (bpstat_clear_actions);
   scoped_value_mark cleanup = prepare_execute_command ();
 
-  /* Force cleanup of any alloca areas if using C alloca instead of
-     a builtin alloca.  */
-  alloca (0);
-
   /* This can happen when command_line_input hits end of file.  */
   if (p == NULL)
     {

Reply via email to