[PATCH 1/5] [ARC] Update handling AUX-registers.
Nick Clifton
nickc@redhat.com
Tue Jul 31 16:03:00 GMT 2018
Hi Claudiu,
> Update aux-registers data-base, and accept aux-registers names with
> upper/lowercase names.
If you were the maintainer for the ARC target you could self-approve these patches you know...
> + /* For compatibility reasons, an aux register can
> + be spelled with upper or lower case
> + letters. */
> + tmpp = strdup (p);
> + for (pp = tmpp; *pp; ++pp) *pp = TOLOWER (*pp);
> +
> + auxr = hash_find (arc_aux_hash, tmpp);
Memory leak - you do not free tmpp. Trivial I know, but I have started
having to fix things like this in Fedora land.
Cheers
Nick
More information about the Binutils
mailing list