changeset 2313:772d97322f45

* include/cyg_types.h: fixed typo, __GNU_PATCHLEVEL__ was checked, should be __GNUC_PATCHLEVEL__ (which is already used later) * include/cyg_types.h: fixed comment for CYGBLD_ATTRIB_USED, wrong GCC version was referenced
author jlarmour
date Thu, 26 Oct 2006 18:25:08 +0000
parents add057b8af25
children 8f08bf870f7f
files packages/infra/current/ChangeLog packages/infra/current/include/cyg_type.h
diffstat 2 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/packages/infra/current/ChangeLog
+++ b/packages/infra/current/ChangeLog
@@ -1,3 +1,10 @@
+2006-10-26  Stefan Sommerfeld <sommerfeld@mikrom.com>
+
+	* include/cyg_types.h: fixed typo, __GNU_PATCHLEVEL__ was checked,
+	should be __GNUC_PATCHLEVEL__ (which is already used later)
+	* include/cyg_types.h: fixed comment for CYGBLD_ATTRIB_USED, wrong
+	GCC version was referenced
+
 2006-08-25  Gary Thomas  <gary@mlbassoc.com>
 
 	* cdl/infra.cdl: 
--- a/packages/infra/current/include/cyg_type.h
+++ b/packages/infra/current/include/cyg_type.h
@@ -318,7 +318,7 @@ typedef cyg_haladdrword CYG_ADDRWORD;
 // COMPILER-SPECIFIC STUFF
 
 #ifdef __GNUC__
-#if defined(__GNU_PATCHLEVEL__)
+#if defined(__GNUC_PATCHLEVEL__)
 # define __GNUC_VERSION__ (__GNUC__ * 10000 \
                             + __GNUC_MINOR__ * 100 \
                             + __GNUC_PATCHLEVEL__)
@@ -397,11 +397,11 @@ typedef cyg_haladdrword CYG_ADDRWORD;
 # define CYGBLD_ATTRIB_STRFTIME_FORMAT(__format__, __args__) \
         __attribute__((format (strftime, __format__, __args__)))
 
-// Tell the compiler not to throw away a variable or function. Only
-// available on 3.3.4 or above. Old version's didn't throw them away,
+// Tell the compiler not to throw away a variable or function. Only known
+// available on 3.3.2 or above. Old version's didn't throw them away,
 // but using the unused attribute should stop warnings.
 # if !defined(CYGBLD_ATTRIB_USED)
-#  if __GNUC_VERSION__ >= 30404
+#  if __GNUC_VERSION__ >= 30302
 #   define CYGBLD_ATTRIB_USED __attribute__((used))
 #  else
 #   define CYGBLD_ATTRIB_USED __attribute__((unused))