[gcc r14-2486] tree: Hide wi::from_mpz from GENERATOR_FILE
Kewen Lin
linkw@gcc.gnu.org
Thu Jul 13 04:14:31 GMT 2023
https://gcc.gnu.org/g:a7f6e6c483bcb9888d680e47e29c4a7859a61d4f
commit r14-2486-ga7f6e6c483bcb9888d680e47e29c4a7859a61d4f
Author: Kewen Lin <linkw@linux.ibm.com>
Date: Wed Jul 12 21:22:26 2023 -0500
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:
---
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 <typename T>
More information about the Gcc-cvs
mailing list