Question about insn lengths
Eric Christopher
echristo@redhat.com
Tue Nov 2 22:28:00 GMT 2004
> Well, it doesn't seem to be difficult to fix the situation in the
> assembler. In fact, the binutils I have (patched for r5900, naturally)
> currently emits a warning if the loop is too short.
>
> However, I've seen other places where CPU errata is handled by gcc,
> which made me think there is a policy that gcc should always generate
> correct assembly for the target processor. You wouldn't know if it is
> so? Inserting the nops in the assembler might be easier, even.
For this case you'll definitely want to deal with it in the assembler
for a couple of reasons:
user defined macro instructions
it's just easier
The sony development toolchain should have a patch already to do this.
-eric
--
Eric Christopher <echristo@redhat.com>
More information about the Gcc
mailing list