[gcc r17-3154] driver: match up signal termination diagnostics

Alexander Monakov via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:b444c2adde7ad5cfc8262d5ff43e7ff438c2e2c8

commit r17-3154-gb444c2adde7ad5cfc8262d5ff43e7ff438c2e2c8
Author: Alexander Monakov <[email protected]>
Date:   Sat Aug 8 18:50:07 2026 +0300

    driver: match up signal termination diagnostics
    
    gcc/ChangeLog:
    
            * gcc.cc (execute) [default]: Use the same wording as above.

Diff:
---
 gcc/gcc.cc | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/gcc/gcc.cc b/gcc/gcc.cc
index ca4e397bb5cb..973a34023305 100644
--- a/gcc/gcc.cc
+++ b/gcc/gcc.cc
@@ -3564,8 +3564,7 @@ execute (void)
 		 the user or OOM killer nuked it.  */
 	      fatal_error (input_location,
 			   "%s terminated by signal %d (%s)",
-			   commands[i].prog,
-			   WTERMSIG (status),
+			   commands[i].prog, WTERMSIG (status),
 			   strsignal (WTERMSIG (status)));
 	      break;
 
@@ -3588,9 +3587,9 @@ execute (void)
 
 	    default:
 	      /* The inferior failed to catch the signal.  */
-	      internal_error_no_backtrace ("%s signal terminated program %s",
-					   strsignal (WTERMSIG (status)),
-					   commands[i].prog);
+	      internal_error_no_backtrace ("%s terminated by signal %d (%s)",
+					   commands[i].prog, WTERMSIG (status),
+					   strsignal (WTERMSIG (status)));
 	    }
 	else if (WIFEXITED (status)
 		 && WEXITSTATUS (status) >= MIN_FATAL_STATUS)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.