]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree: Hide wi::from_mpz from GENERATOR_FILE
authorKewen Lin <linkw@linux.ibm.com>
Thu, 13 Jul 2023 02:22:26 +0000 (21:22 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Thu, 13 Jul 2023 04:12:15 +0000 (23:12 -0500)
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

index fa02e2907a1f2b642bd3971ed399a85882188890..4c04245e2b1bc16d723704201bd3a2897743dd4f 100644 (file)
@@ -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 <typename T>