[PATCH v3] kvx: New port.
Paul Iannetta
piannetta@kalrayinc.com
Fri Aug 18 07:13:24 GMT 2023
On Fri, Aug 18, 2023 at 08:50:14AM +0930, Alan Modra wrote:
> On Thu, Aug 17, 2023 at 05:09:53PM +0200, Paul Iannetta via Binutils wrote:
> > On Thu, Aug 17, 2023 at 10:45:09AM +0100, Luis Machado wrote:
> > >
> > > The builders have caught a few hiccups related to printf modifiers for 32-bit architectures.
>
> > I was not able to fully reproduce but the attached patch should fix
> > the build errors. However, we did not do any validation on 32 bits
> > hosts, so I think that even with this patch it will not be enough to
> > pass `make check'.
>
I've tested it against a 32-bit host in a virtual machine and I
think it is enough to pass the build and the validation phase since
the `make check' does not seem to actually validate all targets but the
host so it should be fine. I still need to improve the validation
when the kvx targets are validated on 32 bits hosts but I can do that
in a second time.
What is the process to get the changes merged?
> On x86_64-linux, I check a 32-bit host binutils compile using
> CC="gcc -m32" CXX="g++ -m32" \
> CFLAGS="-g -O2" CXXFLAGS="-g -O2" \
> ~/src/binutils-gdb/configure --build=i686-linux --enable-targets=all \
> --enable-gold --enable-threads --disable-gdb --disable-gdbserver \
> --disable-sim --disable-readline --disable-libdecnumber \
> --disable-libbacktrace --disable-gprofng --disable-nls
>
> Specifying --build may not be necessary nowadays, this is from a very
> old recipe.
I'll try that thanks, it will be faster than using a virtual machine.
> > I'll work on it so that everything pass by the end
> > of the week, so you may want to wait until I have also fixed the
> > validation before applying the patch.
> >
> > Paul
> >
> >
>
> > @@ -31,8 +31,8 @@ static reloc_howto_type elf_kvx_howto_table[] =
> > bfd_elf_generic_reloc, /* special_function */
> > "R_KVX_NONE", /* name */
> > false, /* partial_inplace */
> > - 0, /* src_mask */
> > - 0, /* dst_mask */
> > + (bfd_vma) 0, /* src_mask */
> > + (bfd_vma) 0, /* dst_mask */
> > false), /* pcrel_offset */
> > HOWTO (R_KVX_16, /* type */
> > 0, /* rightshift */
>
> Please don't add unnecessary casts like the above.
>
This is a generated file, that is why the casts are everywhere. I'll
get rid of them when unnecessary.
Thanks
Paul
More information about the Binutils
mailing list