[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] how to compile stik/sting stuff with gcc4
2010/1/12 Vincent Rivière <email@example.com>:
> Paul Wratt wrote:
>> One last question, does "It is defined in include/compiler.h" imply
>> there are more changes to be made elsewhere?
> No, include/compiler.h is a header provided by the MiNTLib, where the
> __CLOBBER_RETURN macro is defined.
> For instance:
> /* Convenience macros to test the versions of glibc and gcc.
> Use them like this:
> #if __GNUC_PREREQ (2,8)
> ... code requiring gcc 2.8 or later ...
> Note - they won't work for gcc1 or glibc1, since the _MINOR macros
> were not defined then. */
> #if defined __GNUC__ && defined __GNUC_MINOR__
> # define __GNUC_PREREQ(maj, min) \
> ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
> # define __GNUC_PREREQ(maj, min) 0
> #if __GNUC_PREREQ(3, 3)
> # define __CLOBBER_RETURN(a)
> # define __CLOBBER_RETURN(a) a,
> Vincent Rivière
and this reflects some knowledge I gained elsewhere that 3.3.x is a
bit of a special case in gcc development history, does it not.
If so, would I be right in thinking that certain packages that were or
do build with 3.3.6 may be restrictive in there source, concerning the
use of other gcc versions, both older and newer