# HG changeset patch # User asl # Date 1096890512 0 # Node ID 97ddf0e44c8923518baaf7da47175f8a086e6aee # Parent 9ae0b11ee799237d9aaf3900ebb74912c87ed09b * heapgen.tcl: place the CYGBLD_ATTRIB_INIT_PRI such that it compiles for gcc 3.4.2 which is more picky about its placement. diff --git a/packages/services/memalloc/common/current/ChangeLog b/packages/services/memalloc/common/current/ChangeLog --- a/packages/services/memalloc/common/current/ChangeLog +++ b/packages/services/memalloc/common/current/ChangeLog @@ -1,3 +1,8 @@ +2004-10-01 Oyvind Harboe + + * heapgen.tcl: place the CYGBLD_ATTRIB_INIT_PRI such that it + compiles for gcc 3.4.2 which is more picky about its placement. + 2004-06-24 Oyvind Harboe * Added cyg_memalloc_alloc_fail() fn which is invoked before diff --git a/packages/services/memalloc/common/current/src/heapgen.tcl b/packages/services/memalloc/common/current/src/heapgen.tcl --- a/packages/services/memalloc/common/current/src/heapgen.tcl +++ b/packages/services/memalloc/common/current/src/heapgen.tcl @@ -172,15 +172,15 @@ puts $cfile "" foreach heap $heaps { puts $cfile "#ifdef HAL_MEM_REAL_REGION_TOP\n" - puts $cfile [ format "%s cygmem_pool_%s ( (cyg_uint8 *)CYGMEM_SECTION_%s ," \ + puts $cfile [ format "%s CYGBLD_ATTRIB_INIT_PRI(CYG_INIT_MEMALLOC) cygmem_pool_%s ( (cyg_uint8 *)CYGMEM_SECTION_%s ," \ $malloc_impl_class $heap $heap ] puts $cfile [ format " HAL_MEM_REAL_REGION_TOP( (cyg_uint8 *)CYGMEM_SECTION_%s + CYGMEM_SECTION_%s_SIZE ) - (cyg_uint8 *)CYGMEM_SECTION_%s ) " \ $heap $heap $heap ] - puts $cfile " CYGBLD_ATTRIB_INIT_PRI(CYG_INIT_MEMALLOC);\n" + puts $cfile " ;\n" puts $cfile "#else\n" - puts $cfile [ format "%s cygmem_pool_%s ( (cyg_uint8 *)CYGMEM_SECTION_%s , CYGMEM_SECTION_%s_SIZE ) CYGBLD_ATTRIB_INIT_PRI(CYG_INIT_MEMALLOC);\n" \ + puts $cfile [ format "%s CYGBLD_ATTRIB_INIT_PRI(CYG_INIT_MEMALLOC) cygmem_pool_%s ( (cyg_uint8 *)CYGMEM_SECTION_%s , CYGMEM_SECTION_%s_SIZE ) ;\n" \ $malloc_impl_class $heap $heap $heap ] puts $cfile "#endif"