This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: newlib/libc/include/sys/config.h vs. gcc.dg/cpp/19990407-1.c
- From: "J. Johnston" <jjohnstn at redhat dot com>
- To: joern dot rennecke at st dot com
- Cc: newlib at sources dot redhat dot com, gcc at gcc dot gnu dot org
- Date: Mon, 25 Feb 2002 18:53:53 -0500
- Subject: Re: newlib/libc/include/sys/config.h vs. gcc.dg/cpp/19990407-1.c
- Organization: Red Hat Inc.
- References: <3C7ABC99.5EB5179A@st.com>
Joern Rennecke wrote:
>
> I see a regression on gcc.dg/cpp/19990407-1.c- and a number
> of other testcases - because newlib/libc/include/sys/config.h
> uses 'long long' and gcc complains about this when invoked
> with -ansi -pedantic-errors: ISO C89 does not support `long long'
>
> config.h is included by _ansi.h, which in turn is included by
> string.h .
>
> The problem goes away when I add __extension__ in front
> of the __int64_t / __uint64_t typedefs in line 143 / 144
> of config.h. Is that the right change?
Yes. Checked in.
-- Jeff J.