[PATCH] treewide: remove current_text_addr

Linus Torvalds torvalds at linux-foundation.org
Sun Aug 26 07:02:43 AEST 2018


On Tue, Aug 21, 2018 at 1:31 PM Nick Desaulniers
<ndesaulniers at google.com> wrote:
>
> I suspect that current_text_addr predated GNU C extensions for statement
> expressions and/or taking the address of a label, then the macro was
> reimplemented for every new archs include/asm/processor.h, even though
> there were very few call sites, and none required an assembly
> implementation vs the C implementation.

I actually have this very dim memory that we had some compiler issues
where a label in the code resulted in gcc generating worse code
elsewhere in that same function.

But current_text_addr() predates both the git and the BK history, so
it's all shrouded in antiquity, and even if my dim recollection is
true, it may not be true any more. There aren't so many call sites
that it is likely to matter anyway.

             Linus


More information about the Linuxppc-dev mailing list