From: Kewen Lin Date: Thu, 13 Jul 2023 02:22:26 +0000 (-0500) Subject: tree: Hide wi::from_mpz from GENERATOR_FILE X-Git-Tag: basepoints/gcc-15~7653 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7f6e6c483bcb9888d680e47e29c4a7859a61d4f;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/tree.h b/gcc/tree.h index fa02e2907a1f..4c04245e2b1b 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