Linux-man Archive on lore.kernel.org
 help / color / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: Shawn Landden <shawn@git.icu>
Cc: linux-man@vger.kernel.org
Subject: Re: [PATCH] bcmp: note that this function is no longer legacy due to LLVM 9
Date: Fri, 17 Jan 2020 12:57:14 +0100
Message-ID: <87o8v2pa79.fsf@oldenburg2.str.redhat.com> (raw)
In-Reply-To: <20200111145544.5592-1-shawn@git.icu> (Shawn Landden's message of "Sat, 11 Jan 2020 18:55:44 +0400")

* Shawn Landden:

> +This function was deprecated (marked as LEGACY) by POSIX.1-2001).
>  POSIX.1-2008 removes the specification of
>  .BR bcmp ().
> +LLVM 9, released in 2019, revived
> +.BR bcmp ()
> +and generates calls to it instead of
> +.BR memcmp (3)
> +as appropiate as an optimization (as
> +.BR bcmp ()
> +need not traverse memory in-order).
> +.\" http://releases.llvm.org/9.0.0/docs/ReleaseNotes.html#noteworthy-optimizations

This is a pessimation on GNU/Linux if the program uses memcmp as well
because it introduces another relocation.

Thanks,
Florian


  reply index

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-11 14:55 Shawn Landden
2020-01-17 11:57 ` Florian Weimer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-01-11 14:50 Shawn Landden
2020-01-11 16:11 ` Dmitry V. Levin
2020-01-21 19:52   ` Michael Kerrisk (man-pages)

Reply instructions:

You may reply publically 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=87o8v2pa79.fsf@oldenburg2.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=linux-man@vger.kernel.org \
    --cc=shawn@git.icu \
    /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

Linux-man Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
		linux-man@vger.kernel.org
	public-inbox-index linux-man

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-man


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git