This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, MIPS] Fix PR target/68273, passing args in wrong regs


> So this doesnât fix aarch64, c6x, epiphany, ia64, iq2000, rs6000, rx, sparc,
> tilegx, tilepro or xtensa.
> :-(  Thatâs one of the problems by having each port copy and paste swaths of
> :code from other ports to express the same thing instead of ports sharing
> :just one copy of code.  My port is also broken in the same way
> :(currently).

Yes, fixing a compiler bug by changing the ABI is a no-no, and the argument of 
the compatibility with LLVM has IMO little merit since it's a GCC extension.

> Iâm curious why the caller of the hook canât grab the main variant, if it
> wants.  If it did this, then all the ports are fixed wrt this issue.

Or just fix PRE wrt the alignment discrepancy, which looks a lot safer to me.
It's not because this works on x86 that this is necessarily correct for all 
the other architectures, especially the strict-alignment architectures.

-- 
Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]