[gcc r17-1441] pdp11-aout: Remove invalid conversion and restore build
Martin Jambor
jamborm@gcc.gnu.org
Tue Jun 9 10:01:08 GMT 2026
https://gcc.gnu.org/g:e7fdcf4738f4e4699022e8ea72776cbc5989de8e
commit r17-1441-ge7fdcf4738f4e4699022e8ea72776cbc5989de8e
Author: Martin Jambor <mjambor@suse.cz>
Date: Tue Jun 9 12:00:26 2026 +0200
pdp11-aout: Remove invalid conversion and restore build
When cross compiling to pdp11-aout, the build has been recently
failing with
error: invalid conversion from 'int*' to 'unsigned int*'
This patch changes the variable in question to the appropriate type
and fixes the issue (I have not looked at the code beyond that).
Tested by successfully configuring gcc with
../src/configure --prefix=/home/mjambor/gcc/mine/inst --enable-languages=c,c++ --enable-checking=yes --disable-bootstrap --disable-multilib --enable-obsolete --target=pdp11-aout
and running make all-host.
gcc/ChangeLog:
2026-06-09 Martin Jambor <mjambor@suse.cz>
* config/pdp11/pdp11.cc (pdp11_conditional_register_usage): Change i
from int to unsigned int.
Diff:
---
gcc/config/pdp11/pdp11.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/pdp11/pdp11.cc b/gcc/config/pdp11/pdp11.cc
index 7aee804439d0..f8fe020b2467 100644
--- a/gcc/config/pdp11/pdp11.cc
+++ b/gcc/config/pdp11/pdp11.cc
@@ -2209,7 +2209,7 @@ pdp11_function_arg_advance (cumulative_args_t cum_v,
static void
pdp11_conditional_register_usage (void)
{
- int i;
+ unsigned int i;
HARD_REG_SET x;
if (!TARGET_FPU)
{
More information about the Gcc-cvs
mailing list