This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 11/15] RISC-V: Linux ABI


On Mon, 1 Jan 2018, Joseph Myers wrote:

> I see that in the latest port version you've renamed the function to 
> __riscv_flush_icache.  Whether that's appropriate depends on whether this 
> function is intended to be used in libraries such as libgcc with namespace 
> concerns - normally public APIs do not have the leading __ on the name of 
> the public interface, but an __ name is needed in certain cases if the 
> function is expected to be called from somewhere like libgcc.

I see GCC will now generate calls to __riscv_flush_icache - which, like 
use in libgcc, is a reason that justifies having the leading __.

> I think this machine-specific interface, whatever the function ends up 
> being called, needs documenting in the glibc manual - presumably in 
> platform.texi, where sys/platform/ppc.h is already documented.

Given that you have an installed header declaring the function, and so 
it's presumably intended for users and not *just* for compiler-generated 
use (unlike a few functions in some configurations that really are just 
for compiler use), this still applies - the API should be documented.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]