> Sorry for not being fast enough to rewrite the patch on my end to integrate > your changes (I'm maintaining this patch for both gcc 14 and master at the > same time, which is a little complicated), but I appreciate the help :) How > did you figure out the issue so quickly?
By comparing what happens in 32-bit and 64-bit modes: the 32-bit code is !PIC whereas the 64-bit is PIC internally, so the processing in the various hooks legitimate_* and legitimize_* is subtly different between them. Anyway, let's continue the discussion in the audit trail of PR target/80881. -- Eric Botcazou