[ECOS] eCos tools' gcc minor version

Robin Farine robin.farine@acn-group.ch
Tue Feb 12 07:05:00 GMT 2002


The eCos tools I'm using have a version string like 2.9-ecos-99r1-001005
spread over the different tools sources. In the case of gcc, if I am
correct, the Makefile extracts the values for __GNUC__ and
__GNUC_MINOR__ from the first part of the version string, which results
into __GNUC_MINOR__ == 9. But since the gcc version is 2.95.x, I
expected __GNUC_MINOR__ == 95. At least some "portable" third party
software uses tests like

#if (__GNUC__ == 2) && (__GNUC_MINOR__ >= 95)

to detect supported features or known bugs of gcc.

Besides editing the "specs" file after installation, any idea of what to
do to obtain a correct definition of __GNUC_MINOR__?



Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

More information about the Ecos-discuss mailing list