Comment 6 for bug 799206

Revision history for this message
Didier Barvaux (didier-barvaux) wrote :

Revision 370 adds a configure check for bit-fields lengths. This way compilers that will generates unexpected code for the library are detected earlier.

$ CC=/tmp/tcc/bin/tcc LD=/tmp/tcc/bin/tcc ./autogen.sh
[...]
checking whether the compiler computes bit-field lengths as expected... no
configure: error: in `/home/didier/documents/tech/dev/rohc/rohc-main':
configure: error: The compiler does not behave as expect for bit-field lengths, it would break the library
See `config.log' for more details

$ CC=gcc LD=gcc ./autogen.sh
[...]
checking whether the compiler computes bit-field lengths as expected... yes
[...]

$ CC=clang LD=clang ./autogen.sh
[...]
checking whether the compiler computes bit-field lengths as expected... yes
[...]