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]

Re: Patch installed to libiberty to turn on -pedantic


 > 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

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