This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fixincludes for darwin stdint.h


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]