# HG changeset patch # User asl # Date 1122721798 0 # Node ID a8e7459270c04eca7c8e247133891fb92496fcc0 # Parent b91ea40cb652531d038e402b484e4f8d9e9e5436 * 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. diff --git a/packages/hal/common/current/ChangeLog b/packages/hal/common/current/ChangeLog --- a/packages/hal/common/current/ChangeLog +++ b/packages/hal/common/current/ChangeLog @@ -1,3 +1,10 @@ +2005-06-27 Andrew Lunn + + * 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 * doc/hal.sgml: make HAL_DELAY_US() mandatory and define it to be diff --git a/packages/hal/common/current/include/hal_tables.h b/packages/hal/common/current/include/hal_tables.h --- 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 /*------------------------------------------------------------------------*/