changeset 2023:a8e7459270c0

* include/hal_tables.h (CYG_HAL_TABLE_{QUALIFIED_}ENTRY): added CYGBLD_ATTRIB_USED so that gcc 3.4.4 does not discard entries which are not refereced explicitly. Problem reported by Oliver Munz.
author asl
date Sat, 30 Jul 2005 11:09:58 +0000
parents b91ea40cb652
children 9a657f4effed
files packages/hal/common/current/ChangeLog packages/hal/common/current/include/hal_tables.h
diffstat 2 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/common/current/ChangeLog
+++ b/packages/hal/common/current/ChangeLog
@@ -1,3 +1,10 @@
+2005-06-27  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* include/hal_tables.h (CYG_HAL_TABLE_{QUALIFIED_}ENTRY): added
+	CYGBLD_ATTRIB_USED so that gcc 3.4.4 does not discard entries
+	which are not refereced explicitly. Problem reported by
+	Oliver Munz.
+	
 2005-06-26  Bart Veer  <bartv@ecoscentric.com>
 
 	* doc/hal.sgml: make HAL_DELAY_US() mandatory and define it to be
--- a/packages/hal/common/current/include/hal_tables.h
+++ b/packages/hal/common/current/include/hal_tables.h
@@ -101,13 +101,15 @@
 
 #ifndef CYG_HAL_TABLE_ENTRY
 #define CYG_HAL_TABLE_ENTRY( _name ) \
-        CYGBLD_ATTRIB_SECTION(".ecos.table." __xstring(_name) ".data")
+        CYGBLD_ATTRIB_SECTION(".ecos.table." __xstring(_name) ".data") \
+        CYGBLD_ATTRIB_USED
 #endif
 
 #ifndef CYG_HAL_TABLE_QUALIFIED_ENTRY
 #define CYG_HAL_TABLE_QUALIFIED_ENTRY( _name, _qual ) \
         CYGBLD_ATTRIB_SECTION(".ecos.table." __xstring(_name) ".data." \
-                              __xstring(_qual))
+                              __xstring(_qual))                        \
+        CYGBLD_ATTRIB_USED
 #endif
 
 /*------------------------------------------------------------------------*/