This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
eCos tools' gcc minor version
- From: Robin Farine <robin dot farine at acn-group dot ch>
- To: eCos users <ecos-discuss at sources dot redhat dot com>
- Date: 12 Feb 2002 16:05:28 +0100
- Subject: [ECOS] 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