public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/ARM/heads/morello)] config: Fix up build following introduction of ADDR_EXPR_CODE_P
@ 2023-06-28 13:33 Alex Coplan
0 siblings, 0 replies; only message in thread
From: Alex Coplan @ 2023-06-28 13:33 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:c98362bd4de6c48421711026df353c7bfcfb5808
commit c98362bd4de6c48421711026df353c7bfcfb5808
Author: Alex Coplan <alex.coplan@arm.com>
Date: Thu Apr 27 13:05:38 2023 +0100
config: Fix up build following introduction of ADDR_EXPR_CODE_P
The target hooks takes an int here but ADDR_EXPR_CODE_P expects
a tree_code, so the arm port was failing to build.
Fix this up by casting back to tree_code.
Diff:
---
gcc/config/arm/arm.c | 2 +-
gcc/config/ia64/ia64.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 1d8a9e3e686..a3004a7e294 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -33262,7 +33262,7 @@ static const char *
arm_invalid_unary_op (int op, const_tree type)
{
/* Reject all single-operand operations on BFmode except for &. */
- if (element_mode (type) == BFmode && !ADDR_EXPR_CODE_P (op))
+ if (element_mode (type) == BFmode && !ADDR_EXPR_CODE_P ((tree_code) op))
return N_("operation not permitted on type %<bfloat16_t%>");
/* Operation allowed. */
diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c
index f24f6b76f53..7122c731e97 100644
--- a/gcc/config/ia64/ia64.c
+++ b/gcc/config/ia64/ia64.c
@@ -11256,7 +11256,7 @@ ia64_invalid_unary_op (int op, const_tree type)
/* Reject operations on __fpreg other than unary + or &. */
if (TYPE_MODE (type) == RFmode
&& op != CONVERT_EXPR
- && !ADDR_EXPR_CODE_P (op))
+ && !ADDR_EXPR_CODE_P ((tree_code) op))
return N_("invalid operation on %<__fpreg%>");
return NULL;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-06-28 13:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-28 13:33 [gcc(refs/vendors/ARM/heads/morello)] config: Fix up build following introduction of ADDR_EXPR_CODE_P Alex Coplan
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).