List Info

Thread: bogus gcc versoion check




bogus gcc versoion check
user name
2008-06-11 15:38:35
newlib/libc/include/machine/_default_types.h has this code:

#if defined(__GNUC__) && (__GNUC__ >= 3 ) 
  && defined(__GNUC_MINOR__) &&
(__GNUC_MINOR__ > 2 )
/* GCC >= 3.3.0 has __<val>__ implicitly defined.
*/

This fails to do the intended version check for gcc 4.0, 4.1
and 4.2 .

Re: bogus gcc versoion check
user name
2008-06-11 17:14:51
Thanks for catching this.  A patch has been made.

-- Jeff J.

Joern Rennecke wrote:
> newlib/libc/include/machine/_default_types.h has this
code:
>
> #if defined(__GNUC__) && (__GNUC__ >= 3 ) 
>   && defined(__GNUC_MINOR__) &&
(__GNUC_MINOR__ > 2 )
> /* GCC >= 3.3.0 has __<val>__ implicitly
defined. */
>
> This fails to do the intended version check for gcc
4.0, 4.1 and 4.2 .
>   

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )