[Uclinux-h8-devel] [PATCH] treewide: remove current_text_addr

アーカイブの一覧に戻る

Linus Torvalds torva****@linux*****
2018年 8月 26日 (日) 06:02:43 JST


On Tue, Aug 21, 2018 at 1:31 PM Nick Desaulniers
<ndesa****@googl*****> 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




Uclinux-h8-devel メーリングリストの案内
アーカイブの一覧に戻る