This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch installed to libiberty to turn on -pedantic
- To: KelleyCook at attglobal dot net
- Subject: Re: Patch installed to libiberty to turn on -pedantic
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Thu, 8 Jun 2000 16:45:29 -0400 (EDT)
- Cc: gcc-patches at gcc dot gnu dot org
> From: Kelley Cook <kelleycook@yahoo.com>
>
> 2000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> said
>
> > * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
> > __extension__.
>
> >-typedef unsigned long long gcc_uint64_t;
> >+__extension__ typedef unsigned long long gcc_uint64_t;
>
> But since the adoption of C99, "long long" is no longer just a GCC
> extension ... it shouldn't be flagged with a pedantic warning, IMO.
>
> And it certainly shouldn't be required to be marked with
> "__extension__".
>
> -- Kelley Cook
The default mode for gcc today is c89, not c99. I don't think all
aspects of c99 are implemented yet. Even if we were to switch the
default to c99, bootstrapping with older gcc's would still require the
__extension__ keyword to avoid a pedantic warning on the use of "long
long" in libiberty.
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions