This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] gas/arc: Change 'LENGHT' to 'LENGTH'
- From: Andrew Burgess <andrew dot burgess at embecosm dot com>
- To: binutils at sourceware dot org
- Cc: Claudiu Zissulescu <claziss at gmail dot com>
- Date: Fri, 1 Apr 2016 15:49:29 +0100
- Subject: Re: [PATCH] gas/arc: Change 'LENGHT' to 'LENGTH'
- Authentication-results: sourceware.org; auth=none
- References: <1459430557-9082-1-git-send-email-andrew dot burgess at embecosm dot com> <CAL0iMy0w3q_N-jfvFAZbjczyn4gy_+eYAGx34FFWMJ5N2JpkAg at mail dot gmail dot com>
* Claudiu Zissulescu <claziss@gmail.com> [2016-03-31 15:25:46 +0200]:
> Sorry for the typo. Fine by me.
>
I've pushed this as an obvious fix given that Claudiu is happy.
Thanks,
Andrew
> Cheers,
> Claudiu
>
> On Thu, Mar 31, 2016 at 3:22 PM, Andrew Burgess
> <andrew.burgess@embecosm.com> wrote:
> > Is probably "obvious", but....
> >
> > ---
> >
> > Small spelling mistake in a #define, fixed in this commit.
> >
> > gas/ChangeLog:
> >
> > * config/tc-arc.h (MAX_FLAG_NAME_LENGHT): Rename to...
> > (MAX_FLAG_NAME_LENGTH): ...this.
> > (struct arc_flags): Update to use MAX_FLAG_NAME_LENGTH.
> > * config/tc-arc.c (tokenize_flags): Likewise.
> > ---
> > gas/ChangeLog | 7 +++++++
> > gas/config/tc-arc.c | 2 +-
> > gas/config/tc-arc.h | 4 ++--
> > 3 files changed, 10 insertions(+), 3 deletions(-)
> >
> > diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c
> > index 3f4e2d3..e47ac5c 100644
> > --- a/gas/config/tc-arc.c
> > +++ b/gas/config/tc-arc.c
> > @@ -1078,7 +1078,7 @@ tokenize_flags (const char *str,
> > goto err;
> >
> > flgnamelen = strspn (input_line_pointer, "abcdefghilmnopqrstvwxz");
> > - if (flgnamelen > MAX_FLAG_NAME_LENGHT)
> > + if (flgnamelen > MAX_FLAG_NAME_LENGTH)
> > goto err;
> >
> > memcpy (flags->name, input_line_pointer, flgnamelen);
> > diff --git a/gas/config/tc-arc.h b/gas/config/tc-arc.h
> > index 95efd77..93a7d77 100644
> > --- a/gas/config/tc-arc.h
> > +++ b/gas/config/tc-arc.h
> > @@ -210,12 +210,12 @@ extern int tc_arc_regname_to_dw2regnum (char *regname);
> > #define NOP_OPCODE_S 0x000078E0
> > #define NOP_OPCODE_L 0x264A7000 /* mov 0,0. */
> >
> > -#define MAX_FLAG_NAME_LENGHT 3
> > +#define MAX_FLAG_NAME_LENGTH 3
> >
> > struct arc_flags
> > {
> > /* Name of the parsed flag. */
> > - char name[MAX_FLAG_NAME_LENGHT + 1];
> > + char name[MAX_FLAG_NAME_LENGTH + 1];
> >
> > /* The code of the parsed flag. Valid when is not zero. */
> > unsigned char code;
> > --
> > 2.5.1
> >