[patch] Fixincludes for darwin stdint.h

Bruce Korb bkorb@gnu.org
Mon Jun 15 15:20:00 GMT 2009


Hi Dominique,

I thought there was some reason why I cast the thing.
The correct fix is to ensure that the casting type has
been defined when the macro gets used, not to remove
the cast.

Thanks - Bruce

On Mon, Jun 15, 2009 at 2:12 AM, Dominique Dhumieres<dominiq@lps.ens.fr> wrote:
> FX,
>
> Your patch fix darwin stdint.h for -m32, but not for -m64:
>
> [ibook-dhum] f90/bug% gcc45 -c -m64 -std=iso9899:1999 -pedantic-errors -fhosted /opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/c99-stdint-1.c
> /opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/c99-stdint-1.c: In function 'test_max':
> /opt/gcc/_gcc_clean/gcc/testsuite/gcc.dg/c99-stdint-1.c:202:3: error: initialization from incompatible pointer type



More information about the Gcc-patches mailing list