[PATCH 1/2] BZ#13743: PowerPC - Add a new header for platform specific functions

Carlos O'Donell carlos@systemhalted.org
Tue Mar 6 23:23:00 GMT 2012


On Tue, Mar 6, 2012 at 6:17 PM, Ulrich Drepper <drepper@gmail.com> wrote:
> On Tue, Mar 6, 2012 at 15:04, Carlos O'Donell <carlos@systemhalted.org> wrote:
>> That's a very good suggestion, but in my opinion it complicates
>> things needlessly. That's not to say that I don't like the
>> solution, I like it *better* than sys/platform.h, but
>> we should think about users too and what the interface looks
>> like to them.
>
> Which is exactly why the header files must have the architecture name
> in the filename,  There is no commonality between the headers for
> different archs withing glibc and not between different platforms.
> Suggesting anything else causes problems for programmers who cannot
> know all these details.

That's a very good point.

> There is no need to disturb the general tree for a ppc-specific
> problem.  Just add the headers in the ppc directories and makefiles
> and be done with it.

Is your suggestion something along the lines of sys/ppc-platform.h then?

Cheers,
Carlos.



More information about the Libc-alpha mailing list