[csw-maintainers] RFC: idea to unify 32/64 bit headers
Maciej Bliziński
maciej at opencsw.org
Fri Sep 9 09:31:13 CEST 2011
2011/9/8 Igor Galić <igalic at opencsw.org>:
>
>
> ----- Original Message -----
>> No dia 23 de Agosto de 2010 20:49, Dagobert Michelsen
>> <dam at opencsw.org> escreveu:
>> > If you do
>> > diff -D __amd64 curlbuild-32.h curlbuild-64.h
>> > It will generate an include file where the differences only in the
>> > second
>> > file will be shielded by C preprocessor ifdefs with the string
>> > after the -D.
>> > I like this that much that I am really thinking of making this
>> > fully
>> > automatic: On merge GAR currently just copies over the default (32
>> > bit)
>> > modulation. I could just merge over the diff'ed 32/64 between the
>> > default 32 bit ISA and 64 bit ISA easily making these special
>> > things
>> > obsolete.
>> >
>> > Thoughts?
>
> Two thoughts: +1
> And: Which headers are currently included?
The first modulation, which is 32-bit.
>> I'm definitely for it. Our libgmp build can serve as a testbed. I'd
>> be also willing to write some code to facilitate this. How would you
>> envision the implementation, Dago?
>
> I just tried this out in the shell..
>
> igalic at unstable10x ...ar/pkg/hwloc/trunk/work/solaris9-i386 % for f in $( find install-isa-i386/opt/csw/include/ -type f ) ; do
> x86="${f}"
> amd64="${f/install-isa-i386/install-isa-amd64}"
> diff -D __amd64 "${x86}" "${amd64}"
> done
>
> And found some rather disturbing things
>
> /* Defined to 1 if you have the <stdint.h> header file. */
> #ifndef __amd64
> /* # undef HWLOC_HAVE_STDINT_H */
> #else /* __amd64 */
> # define HWLOC_HAVE_STDINT_H 1
> #endif /* __amd64 */
That might be related to Solaris Studio magic.
More information about the maintainers
mailing list