From: Martin Jambor Date: Tue, 9 Jun 2026 10:00:26 +0000 (+0200) Subject: pdp11-aout: Remove invalid conversion and restore build X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7fdcf4738f4e4699022e8ea72776cbc5989de8e;p=thirdparty%2Fgcc.git 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 * config/pdp11/pdp11.cc (pdp11_conditional_register_usage): Change i from int to unsigned int. --- diff --git a/gcc/config/pdp11/pdp11.cc b/gcc/config/pdp11/pdp11.cc index 7aee804439d..f8fe020b246 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) {