This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

eCos tools' gcc minor version


Hi,

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)
 ....
#endif

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__?

Thanks,

Robin



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


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