Mercurial > ecos
changeset 1780:97ddf0e44c89
* heapgen.tcl: place the CYGBLD_ATTRIB_INIT_PRI such that it
compiles for gcc 3.4.2 which is more picky about its placement.
| author | asl |
|---|---|
| date | Mon, 04 Oct 2004 11:48:32 +0000 |
| parents | 9ae0b11ee799 |
| children | 22d367a6f8f2 |
| files | packages/services/memalloc/common/current/ChangeLog packages/services/memalloc/common/current/src/heapgen.tcl |
| diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/services/memalloc/common/current/ChangeLog +++ b/packages/services/memalloc/common/current/ChangeLog @@ -1,3 +1,8 @@ +2004-10-01 Oyvind Harboe <oyvind.harboe@zylin.com> + + * 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 <oyvind.harboe@zylin.com> * Added cyg_memalloc_alloc_fail() fn which is invoked before
--- 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"
