Build error 4.6.1 for x86_64

Ian Lance Taylor iant@google.com
Fri Aug 5 16:33:00 GMT 2011


david.hagood@gmail.com writes:

> /space/tools/ppc/src/gcc-4.6.1/libmudflap/mf-runtime.c:168:11: error:
> conflicting types for ‘__mf_lc_mask’
> /space/tools/ppc/src/gcc-4.6.1/libmudflap/mf-runtime.h:46:23: note:
> previous declaration of ‘__mf_lc_mask’ was here

Looks like uintptr_t and __mf_uintptr_t are somehow different types.
__mf_uintptr_t is defined via

typedef unsigned int __mf_uintptr_t __attribute__ ((__mode__ (__pointer__)));

uintptr_t is defined by some system header file.  I would guess that the
types normally wind up the same, but in the C library that you are using
they somehow wind up being different.

Probably mf-runtime.c should be changed to use __mf_uintptr_t rather
than uintptr_t.

Ian



More information about the Gcc-help mailing list