]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Use fatal_error instead of internal_error for when ZSTD is not enabled
authorAndrew Pinski <quic_apinski@quicinc.com>
Thu, 28 Mar 2024 23:46:33 +0000 (16:46 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Fri, 29 Mar 2024 04:06:43 +0000 (21:06 -0700)
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

index c167ac967aa2847268b6f6acf9cf1b817e842a94..bebf0277ef6724da1537a4f707f1ee01e94e53e9 100644 (file)
@@ -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);
 }