From a7f6e6c483bcb9888d680e47e29c4a7859a61d4f Mon Sep 17 00:00:00 2001 From: Kewen Lin Date: Wed, 12 Jul 2023 21:22:26 -0500 Subject: [PATCH] tree: Hide wi::from_mpz from GENERATOR_FILE Similar to r0-85707-g34917a102a4e0c for PR35051, the uses of mpz_t should be guarded with "#ifndef GENERATOR_FILE". This patch is to fix it and avoid some possible build errors. gcc/ChangeLog: * tree.h (wi::from_mpz): Hide from GENERATOR_FILE. --- gcc/tree.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/tree.h b/gcc/tree.h index fa02e2907a1..4c04245e2b1 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -6467,7 +6467,9 @@ namespace wi wide_int min_value (const_tree); wide_int max_value (const_tree); +#ifndef GENERATOR_FILE wide_int from_mpz (const_tree, mpz_t, bool); +#endif } template