public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/modula-2] Missing patch for hwint.h, removal of the __cplusplus guard.
@ 2022-01-21 20:48 Gaius Mulley
0 siblings, 0 replies; only message in thread
From: Gaius Mulley @ 2022-01-21 20:48 UTC (permalink / raw)
To: gcc-cvs
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 */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-21 20:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-21 20:48 [gcc/devel/modula-2] Missing patch for hwint.h, removal of the __cplusplus guard Gaius Mulley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).