emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 42c6cf4e580 2/4: Remove no-longer-needed pdumper_load workaround


From: Paul Eggert
Subject: master 42c6cf4e580 2/4: Remove no-longer-needed pdumper_load workaround
Date: Sun, 18 Feb 2024 03:38:24 -0500 (EST)

branch: master
commit 42c6cf4e5804312defa9d9caac8882500bd38179
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Paul Eggert <eggert@cs.ucla.edu>

    Remove no-longer-needed pdumper_load workaround
    
    * src/pdumper.c (pdumper_load): Revert my commit "Pacify GCC
    12.1.1 in default developer build" dated 2022-06-13 13:21:18 -07,
    as GCC bug 105961 is fixed, and this workaround is not needed for
    unfixed GCC as these builds should not use --enable-gcc-warnings.
---
 src/pdumper.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/pdumper.c b/src/pdumper.c
index 5c488d8e90f..509fb079db7 100644
--- a/src/pdumper.c
+++ b/src/pdumper.c
@@ -5593,10 +5593,7 @@ pdumper_load (const char *dump_filename, char *argv0)
 
   struct dump_header header_buf = { 0 };
   struct dump_header *header = &header_buf;
-  struct dump_memory_map sections[NUMBER_DUMP_SECTIONS];
-
-  /* Use memset instead of "= { 0 }" to work around GCC bug 105961.  */
-  memset (sections, 0, sizeof sections);
+  struct dump_memory_map sections[NUMBER_DUMP_SECTIONS] = { 0 };
 
   const struct timespec start_time = current_timespec ();
   char *dump_filename_copy;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]