[gcc/devel/modula-2] Missing patch for hwint.h, removal of the __cplusplus guard.
Gaius Mulley
gaius@gcc.gnu.org
Fri Jan 21 20:48:55 GMT 2022
https://gcc.gnu.org/g:77bed2016630758ae9d8c740827acf5fc9d382be
commit 77bed2016630758ae9d8c740827acf5fc9d382be
Author: Gaius Mulley <gaius.mulley@southwales.ac.uk>
Date: Fri Jan 21 20:46:56 2022 +0000
Missing patch for hwint.h, removal of the __cplusplus guard.
gcc/ChangeLog:
* gcc/hwint.h: Missing patch applied.
Removal of the __cplusplus guard.
Signed-off-by: Gaius Mulley <gaius.mulley@southwales.ac.uk>
Diff:
---
gcc/hwint.h | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/gcc/hwint.h b/gcc/hwint.h
index 279b5975183..c160bea0cb2 100644
--- a/gcc/hwint.h
+++ b/gcc/hwint.h
@@ -257,14 +257,11 @@ exact_log2 (unsigned HOST_WIDE_INT x)
(HOST_WIDE_INT_1U << (HOST_BITS_PER_WIDE_INT - 1))
#define HOST_WIDE_INT_MAX (~(HOST_WIDE_INT_MIN))
-#ifndef __cplusplus
extern HOST_WIDE_INT abs_hwi (HOST_WIDE_INT);
extern unsigned HOST_WIDE_INT absu_hwi (HOST_WIDE_INT);
+extern HOST_WIDE_INT gcd (HOST_WIDE_INT, HOST_WIDE_INT);
extern HOST_WIDE_INT pos_mul_hwi (HOST_WIDE_INT, HOST_WIDE_INT);
extern HOST_WIDE_INT mul_hwi (HOST_WIDE_INT, HOST_WIDE_INT);
-#endif /* !cplusplus. */
-
-extern HOST_WIDE_INT gcd (HOST_WIDE_INT, HOST_WIDE_INT);
extern HOST_WIDE_INT least_common_multiple (HOST_WIDE_INT, HOST_WIDE_INT);
/* Like ctz_hwi, except 0 when x == 0. */
@@ -319,7 +316,6 @@ zext_hwi (unsigned HOST_WIDE_INT src, unsigned int prec)
}
}
-#ifdef __cplusplus
/* Compute the absolute value of X. */
inline HOST_WIDE_INT
@@ -378,6 +374,5 @@ mul_hwi (HOST_WIDE_INT a, HOST_WIDE_INT b, bool *overflow)
return result;
#endif
}
-#endif /* ! __cplusplus */
#endif /* ! GCC_HWINT_H */
More information about the Gcc-cvs
mailing list