public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Martin Liska <mliska@suse.cz>
To: binutils@sourceware.org
Subject: [PATCH 0/5] Start using startswith instead of strncmp
Date: Wed, 24 Mar 2021 09:19:24 +0100	[thread overview]
Message-ID: <cover.1616573964.git.mliska@suse.cz> (raw)
In-Reply-To: <20210323000245.GZ6791@bubble.grove.modra.org>

Hey.

The patchset continues with replacement of the strncmp where it's used
in startswith context. The patches rely on Alan's patch and I've just
tested all possible targets.

Thoughts?
Thanks,
Martin

Martin Liska (5):
  Replace const_strneq with startswith.
  Use startswith more for strncmp function calls.
  Use startswith in gas subfolder.
  Remove strneq macro and use startswith.
  Use startswith in gdb subfolder.

 bfd/ecoff.c                |   5 +-
 bfd/elf-bfd.h              |   3 +-
 bfd/elf.c                  |  21 ++++---
 bfd/elf32-arc.c            |   2 +-
 bfd/elf32-m32r.c           |   4 +-
 bfd/elf32-microblaze.c     |   2 +-
 bfd/elf32-nds32.c          |  13 ++---
 bfd/elf32-or1k.c           |   2 +-
 bfd/elf32-ppc.c            |   6 +-
 bfd/elf32-rx.c             |   6 +-
 bfd/elf32-spu.c            |  26 ++++-----
 bfd/elf32-tilepro.c        |   2 +-
 bfd/elf32-xtensa.c         |   2 +-
 bfd/elf64-ppc.c            |   6 +-
 bfd/elflink.c              |  10 ++--
 bfd/elfnn-riscv.c          |   2 +-
 bfd/elfxx-riscv.c          |   4 +-
 bfd/elfxx-tilegx.c         |   2 +-
 bfd/opncls.c               |   2 +-
 binutils/dllwrap.c         |   8 +--
 binutils/dwarf.c           |   8 +--
 binutils/elfcomm.c         |   7 ++-
 binutils/elfcomm.h         |   2 -
 binutils/objcopy.c         |  20 +++----
 binutils/objdump.c         |   2 +-
 binutils/readelf.c         | 116 ++++++++++++++++++-------------------
 gas/as.c                   |   5 +-
 gas/config/m68k-parse.y    |  18 +++---
 gas/config/obj-aout.c      |   4 +-
 gas/config/obj-coff.c      |   5 +-
 gas/config/obj-elf.c       |  40 ++++++-------
 gas/config/obj-evax.c      |   2 +-
 gas/config/obj-macho.c     |   4 +-
 gas/config/tc-aarch64.c    |  11 ++--
 gas/config/tc-alpha.c      |  30 +++++-----
 gas/config/tc-arc.c        |  10 ++--
 gas/config/tc-arm.c        |  23 ++++----
 gas/config/tc-avr.c        |   8 +--
 gas/config/tc-cr16.c       |  26 ++++-----
 gas/config/tc-crx.c        |   1 -
 gas/config/tc-csky.c       |   6 +-
 gas/config/tc-d30v.c       |   2 +-
 gas/config/tc-dlx.c        |   4 +-
 gas/config/tc-epiphany.c   |   4 +-
 gas/config/tc-h8300.c      |  11 ++--
 gas/config/tc-hppa.c       |  26 ++++-----
 gas/config/tc-i386.c       |  12 ++--
 gas/config/tc-ia64.c       |  23 ++++----
 gas/config/tc-m32c.c       |   4 +-
 gas/config/tc-m68hc11.c    |  34 +++++------
 gas/config/tc-m68k.c       |  12 ++--
 gas/config/tc-mcore.c      |   2 +-
 gas/config/tc-metag.c      |   5 +-
 gas/config/tc-microblaze.c |  13 ++---
 gas/config/tc-mips.c       |  61 ++++++++++---------
 gas/config/tc-mmix.c       |   2 +-
 gas/config/tc-mn10300.c    |   4 +-
 gas/config/tc-msp430.c     |  30 +++++-----
 gas/config/tc-nds32.c      |   2 +-
 gas/config/tc-nds32.h      |   2 +-
 gas/config/tc-nios2.c      |  45 +++++++-------
 gas/config/tc-ns32k.c      |  18 +++---
 gas/config/tc-pdp11.c      |  64 ++++++++++----------
 gas/config/tc-pj.c         |   4 +-
 gas/config/tc-ppc.c        |  12 ++--
 gas/config/tc-s12z.c       |  24 ++++----
 gas/config/tc-s390.c       |   4 +-
 gas/config/tc-score.c      |   7 +--
 gas/config/tc-score7.c     |   7 +--
 gas/config/tc-sh.h         |   4 +-
 gas/config/tc-sparc.c      |  82 +++++++++++++-------------
 gas/config/tc-tic54x.c     |   4 +-
 gas/config/tc-tic6x.c      |   3 +-
 gas/config/tc-v850.c       |  26 ++++-----
 gas/config/tc-vax.c        |   2 +-
 gas/config/tc-wasm32.c     |   8 +--
 gas/config/tc-xstormy16.c  |   2 +-
 gas/config/tc-xtensa.c     |  14 ++---
 gas/config/xtensa-relax.c  |  10 ++--
 gas/dw2gencfi.c            |   7 +--
 gas/dwarf2dbg.c            |   2 +-
 gas/ehopt.c                |   6 +-
 gas/input-file.c           |   4 +-
 gas/listing.c              |  32 +++++-----
 gas/read.c                 |   2 +-
 gas/write.c                |   7 +--
 gdb/cp-name-parser.y       |  68 +++++++++++-----------
 gdb/m2-exp.y               |   4 +-
 gdb/macroexp.c             |   2 +-
 gdb/mi/mi-main.c           |   8 +--
 gdb/rust-exp.y             |   2 +-
 include/opcode/cr16.h      |   1 -
 ld/ldbuildid.c             |   7 +--
 opcodes/arm-dis.c          |   5 --
 opcodes/cr16-dis.c         |   2 +-
 opcodes/score-dis.c        |   8 ---
 opcodes/score7-dis.c       |   4 --
 97 files changed, 599 insertions(+), 641 deletions(-)

-- 
2.30.2


  parent reply	other threads:[~2021-03-24  8:24 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-18 14:20 [PATCH] [RFC] Come up with startswith function Martin Liška
2021-03-18 14:54 ` Tom Tromey
2021-03-18 15:26   ` Martin Liška
2021-03-18 18:00     ` Tom Tromey
2021-03-18 18:29 ` Hans-Peter Nilsson
2021-03-19  6:37   ` Alan Modra
2021-03-19 12:44     ` [PATCH] Add startswith function and use it instead of CONST_STRNEQ Martin Liška
2021-03-19 17:55       ` Hans-Peter Nilsson
2021-03-20  7:00       ` Alan Modra
2021-03-20 18:58         ` Tom Tromey
2021-03-21 13:12           ` Alan Modra
2021-03-22  2:13             ` Tom Tromey
2021-03-22 12:06               ` Alan Modra
2021-03-22 16:13                 ` Luis Machado
2021-03-22 22:56                   ` Alan Modra
2021-03-25 10:53                     ` Luis Machado
2021-03-25 11:54                       ` Alan Modra
2021-03-25 12:05                         ` Luis Machado
2021-03-25 19:47                         ` Luis Machado
2021-03-25 22:31                           ` Mike Frysinger
2021-03-26 11:44                             ` Luis Machado
2021-03-30 11:58                               ` Luis Machado
2021-03-31 13:12                                 ` Martin Liška
2021-03-31 13:44                                   ` Luis Machado
2021-03-22 16:42                 ` Martin Liška
2021-03-23  0:02                   ` Alan Modra
2021-03-23  4:49                     ` Mike Frysinger
2021-03-24  8:19                     ` Martin Liska [this message]
2021-03-18 14:16                       ` [PATCH 2/5] Use startswith more for strncmp function calls Martin Liska
2021-03-22 11:12                       ` [PATCH 1/5] Replace const_strneq with startswith Martin Liska
2021-03-22 12:33                       ` [PATCH 3/5] Use startswith in gas subfolder Martin Liska
2021-03-22 13:56                       ` [PATCH 4/5] Remove strneq macro and use startswith Martin Liska
2021-03-23  9:02                       ` [PATCH 5/5] Use startswith in gdb subfolder Martin Liska
2021-03-31 20:26                         ` Tom Tromey
2021-04-01  5:21                       ` [PATCH 0/5] Start using startswith instead of strncmp Martin Liška
2021-04-01 12:47                         ` Alan Modra
2021-04-01 13:03                           ` Martin Liška
2021-03-31 20:18                     ` [PATCH] Add startswith function and use it instead of CONST_STRNEQ Tom Tromey
2021-03-22  6:57             ` Mike Frysinger
2021-03-21 13:19       ` Alan Modra
2021-03-22 10:04         ` Martin Liška

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1616573964.git.mliska@suse.cz \
    --to=mliska@suse.cz \
    --cc=binutils@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).