[COMMITTED] Use fatal_error instead of internal_error for when ZSTD is not enabled

Message ID 20240329040546.604625-1-quic_apinski@quicinc.com
State Committed
Commit 22f48d78f033922fd2fbf9252041cd97ce201052
Headers
Series [COMMITTED] Use fatal_error instead of internal_error for when ZSTD is not enabled |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_gcc_check--master-aarch64 warning Patch is already merged
linaro-tcwg-bot/tcwg_gcc_build--master-arm warning Patch is already merged

Commit Message

Andrew Pinski March 29, 2024, 4:05 a.m. UTC
  This changes an internal error to be a fatal error for when the ZSTD
is not enabled but the section was compressed as ZSTD.

Committed as approved after bootstrap/test on x86_64-linux-gnu.

gcc/ChangeLog:

	* lto-compress.cc (lto_end_uncompression): Use
	fatal_error instead of internal_error when ZSTD
	is not enabled.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
---
 gcc/lto-compress.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/gcc/lto-compress.cc b/gcc/lto-compress.cc
index c167ac967aa..bebf0277ef6 100644
--- a/gcc/lto-compress.cc
+++ b/gcc/lto-compress.cc
@@ -408,7 +408,7 @@  lto_end_uncompression (struct lto_compression_stream *stream,
     }
 #endif
   if (compression == ZSTD)
-    internal_error ("compiler does not support ZSTD LTO compression");
+    fatal_error (UNKNOWN_LOCATION, "compiler does not support ZSTD LTO compression");
 
   lto_uncompression_zlib (stream);
 }