[opensuse-packaging] GCC 4.2 in STABLE soon
Hi, we just submitted the switch to GCC 4.2 into STABLE (not yet checked in). BETA builds already quite some time with that as default compiler, so you can check your packages there, if they show funny compiler errors or warnings. Once checked in (which requires some magic from the autobuild guys to prefer the right compiler) you might see such errors: I: Expression compares a char* pointer with a string literal. Usually a strcmp() was intended by the programmer E: pfstools stringcompare picture_io.cpp: 90 It's not clear yet, if that check gets disabled or not, but it's clearly a bogus construct, so fixing it is the proper thing to do. You might also hit error messages about changes in handling of some inline functions (which mostly are used only in glibc in the problematic way, which is already fixed because we also have glibc 2.6 in STABLE since a week or so). See http://gcc.gnu.org/gcc-4.2/changes.html for that, in particular the "C family" chapter. An abstract: * In the next release of GCC, 4.3, -std=c99 or -std=gnu99 will direct GCC to handle inline functions as specified in the C99 standard. In preparation for this, GCC 4.2 will warn about any use of non-static inline functions in gnu99 or c99 mode. This new warning may be disabled with the new gnu_inline function attribute or the new -fgnu89-inline command line option. Also, GCC 4.2 and later will define one of the preprocessor macros __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__ to indicate the semantics of inline functions in the current compilation. So, look in beta, or wait for gcc42 to be checked into STABLE as default compiler. Happy fixing :-) Ciao, Michael. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (1)
-
Michael Matz